:root {
  color-scheme: dark;
  --tech-bg: #050b19;
  --tech-panel: #0a1830;
  --tech-border: #1a435d;
  --tech-cyan: #3ce4ff;
  --tech-blue: #4d88ff;
  --tech-amber: #ffb44c;
  --tech-red: #ff5c73;
  --tech-green: #3ee5b0;
  --tech-text: #e4f3ff;
  --tech-muted: #87a6be;
  --bg: var(--tech-bg); --panel: var(--tech-panel); --border: var(--tech-border);
  --text: var(--tech-text); --muted: var(--tech-muted); --cyan: var(--tech-cyan);
  --blue: var(--tech-blue); --amber: var(--tech-amber); --red: var(--tech-red); --green: var(--tech-green);
}
* { box-sizing: border-box; }
html { margin: 0; background: var(--tech-bg); }
body.tech-screen {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  color: var(--tech-text); font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 45% -15%, rgba(27, 107, 157, .22), transparent 56%),
    linear-gradient(rgba(46, 115, 153, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 115, 153, .035) 1px, transparent 1px), var(--tech-bg);
  background-size: auto, 36px 36px, 36px 36px, auto;
}
.tech-screen a { color: inherit; text-decoration: none; }
.tech-screen button { font: inherit; }
.tech-screen button, .tech-screen a { -webkit-tap-highlight-color: transparent; }
.tech-screen :focus-visible { outline: 2px solid var(--tech-cyan); outline-offset: 4px; }
.tech-screen svg { width: 20px; height: 20px; flex: 0 0 auto; }
.tech-screen ::selection { background: #256d8b; color: #fff; }
.tech-screen ::-webkit-scrollbar { width: 4px; height: 4px; }
.tech-screen ::-webkit-scrollbar-thumb { background: #244b65; border-radius: 4px; }
.tech-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 28px 18px; border-bottom: 1px solid rgba(60, 228, 255, .13);
  background: linear-gradient(90deg, rgba(11, 32, 56, .8), rgba(5, 11, 25, .5));
  position: relative;
}
.tech-header::after { content: ""; position: absolute; left: 28px; bottom: -1px; width: 160px; height: 2px; background: var(--tech-cyan); box-shadow: 0 0 16px rgba(60, 228, 255, .35); }
.tech-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tech-brand-mark { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid #205773; border-radius: 12px; color: var(--tech-cyan); background: linear-gradient(135deg, rgba(60, 228, 255, .1), transparent); }
.tech-brand-mark svg { width: 31px; height: 31px; }
.tech-eyebrow { color: var(--tech-muted); font-size: 10px; letter-spacing: 2.4px; font-weight: 600; margin-bottom: 6px; }
.tech-title { margin: 0; font-size: clamp(22px, 1.7vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: 2px; color: #eefaff; }
.tech-subtitle { color: var(--tech-muted); font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
.tech-header-aside { display: flex; align-items: center; justify-content: flex-end; gap: 26px; min-width: 0; }
.tech-status { border-left: 1px solid #20465d; padding-left: 16px; font-size: 11px; color: #a7bfd1; line-height: 1.65; min-width: 0; }
.tech-status-first { display: flex; align-items: center; gap: 8px; color: #d4ebf6; }
.tech-source-label { color: var(--tech-cyan); font-weight: 600; white-space: nowrap; }
.tech-status #refreshStatus, .tech-status #dataTime { padding-left: 15px; }
.sync-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #708ba1; flex: 0 0 auto; }
.sync-dot.green { background: var(--tech-green); box-shadow: 0 0 10px rgba(62, 229, 176, .5); }
.sync-dot.yellow { background: var(--tech-amber); }
.sync-dot.red { background: var(--tech-red); }
.tech-clock { text-align: right; flex-shrink: 0; }
.tech-clock-time { font-size: 25px; line-height: 1.3; color: var(--tech-cyan); letter-spacing: 1px; font-weight: 600; }
.tech-clock-date { color: var(--tech-muted); font-size: 11px; margin-top: 3px; }
.tech-subbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; }
.tech-section-name { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.tech-section-name::before { content: ""; width: 3px; height: 15px; background: var(--tech-cyan); }
.tech-section-name small { font-size: 11px; letter-spacing: 0; font-weight: 400; color: var(--tech-muted); margin-left: 4px; }
.tech-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tech-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 10px 15px; border: 1px solid #23465f; border-radius: 6px;
  color: #b5d0e3; background: rgba(12, 29, 49, .65); font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.tech-button svg { width: 16px; height: 16px; }
.tech-button:hover { color: #fff; border-color: #3e7c9e; background: #112d47; }
.tech-button-primary { color: var(--tech-cyan); border-color: #246078; background: rgba(31, 109, 135, .14); }
.tech-button[aria-pressed="true"] { border-color: var(--tech-cyan); color: var(--tech-cyan); }
.tech-feedback { color: var(--tech-amber); font-size: 12px; }
.tech-feedback:empty { display: none; }
.tech-panel {
  min-width: 0; min-height: 0; position: relative; border: 1px solid var(--tech-border); border-radius: 8px;
  padding: 18px; background: linear-gradient(145deg, rgba(14, 35, 60, .91), rgba(7, 20, 39, .94));
  box-shadow: inset 0 1px 0 rgba(142, 211, 240, .025), 0 4px 16px rgba(0, 0, 0, .08);
}
.tech-panel::before, .tech-panel::after { content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none; opacity: .75; }
.tech-panel::before { left: -1px; top: -1px; border-left: 2px solid #3594af; border-top: 2px solid #3594af; border-radius: 7px 0 0; }
.tech-panel::after { right: -1px; bottom: -1px; border-right: 2px solid #296a88; border-bottom: 2px solid #296a88; border-radius: 0 0 7px; }
.tech-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; margin: 0 0 15px; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: .4px; color: #d8ecfa; }
.tech-panel-heading { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.tech-panel-heading svg { width: 17px; height: 17px; color: var(--tech-cyan); }
.tech-panel-badge { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 10px; line-height: 1.4; font-weight: 400; padding: 3px 7px; border: 1px solid #24465e; border-radius: 4px; color: #91b9ce; letter-spacing: .3px; }
.tech-kpi {
  min-width: 0; position: relative; padding: 15px 18px 13px; border: 1px solid #183c55; border-radius: 8px;
  background: linear-gradient(135deg, rgba(17, 42, 67, .94), rgba(8, 23, 42, .93));
}
.tech-kpi::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--accent, var(--tech-cyan)), transparent 90%); }
.tech-kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #a2bed2; line-height: 1.5; }
.tech-kpi-label svg { width: 18px; height: 18px; color: var(--accent, var(--tech-cyan)); opacity: .85; }
.tech-kpi-value { font-size: clamp(28px, 2.15vw, 42px); color: var(--accent, var(--tech-cyan)); font-weight: 650; line-height: 1.25; letter-spacing: 1px; margin: 7px 0 3px; }
.tech-kpi-meta { color: var(--tech-muted); font-size: 11px; line-height: 1.5; min-height: 17px; }
.tech-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 28px 10px; color: #718da3; font-size: 10px; line-height: 1.6; }
.tech-footer-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tech-footer a:hover { color: #d3ecfa; }
.tech-loading { position: fixed; inset: 0; z-index: 99; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--tech-bg); color: var(--tech-muted); font-size: 13px; transition: opacity .2s; }
.tech-loading.hide { opacity: 0; pointer-events: none; }
.tech-spinner { width: 30px; height: 30px; border: 2px solid #163a53; border-top-color: var(--tech-cyan); border-radius: 50%; animation: tech-spin .9s linear infinite; }
@keyframes tech-spin { to { transform: rotate(360deg); } }
@media (max-width: 1400px) {
  .tech-header { padding: 16px 20px; gap: 14px; }
  .tech-header-aside { gap: 16px; }
  .tech-brand { gap: 11px; }
  .tech-brand-mark { width: 43px; height: 43px; }
  .tech-title { font-size: 23px; letter-spacing: 1px; }
  .tech-eyebrow { font-size: 9px; letter-spacing: 1.8px; }
  .tech-status { font-size: 10px; padding-left: 12px; }
  .tech-clock-time { font-size: 21px; }
  .tech-subbar { padding: 8px 20px; }
  .tech-kpi { padding: 12px 13px; }
  .tech-kpi-value { font-size: 30px; margin-top: 5px; }
  .tech-kpi-meta { font-size: 10px; }
  .tech-panel { padding: 12px; }
  .tech-panel-title { font-size: 13px; margin-bottom: 10px; }
  .tech-footer { padding: 6px 20px; }
}
@media (max-width: 1050px) {
  .tech-header { flex-wrap: wrap; align-items: flex-start; }
  .tech-header-aside { width: 100%; justify-content: space-between; }
  .tech-status { font-size: 11px; }
  .tech-subbar { flex-wrap: wrap; }
  .tech-footer { flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  .tech-header { padding: 18px 14px; }
  .tech-title { font-size: 21px; }
  .tech-brand-mark { width: 39px; height: 39px; }
  .tech-eyebrow { font-size: 8px; letter-spacing: 1.25px; }
  .tech-header-aside { flex-wrap: wrap; gap: 12px; }
  .tech-status { border-left: 0; padding-left: 0; font-size: 10px; width: 100%; overflow-wrap: anywhere; }
  .tech-clock { text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .tech-clock-time { font-size: 20px; }
  .tech-subbar { padding: 10px 14px 14px; gap: 12px; }
  .tech-section-name small { display: none; }
  .tech-actions { width: 100%; }
  .tech-button { flex: 1; padding: 9px; font-size: 11px; white-space: nowrap; }
  .tech-footer { padding: 16px; gap: 6px; }
  .tech-footer-links { justify-content: center; gap: 7px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-screen *, .tech-screen *::before, .tech-screen *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
