:root {
  color-scheme: light;
  --home-bg: #f3f5f7;
  --home-surface: #ffffff;
  --home-text: #17191c;
  --home-muted: #5e6670;
  --home-muted-soft: #747c86;
  --home-accent: #155eef;
  --home-green: #18794e;
  --home-green-soft: #e9f6ef;
  --home-amber: #8a5c00;
  --home-amber-soft: #fff5d6;
  --home-red: #b42318;
  --home-red-soft: #fff0ee;
  --home-neutral-soft: #eef1f4;
  --home-wash-1: rgba(21, 94, 239, 0.26);
  --home-wash-2: rgba(0, 186, 176, 0.24);
  --home-wash-3: rgba(255, 149, 0, 0.2);
  --home-wash-4: rgba(148, 87, 235, 0.18);
  --home-radius-lg: 28px;
  --home-radius: 20px;
  --home-radius-sm: 14px;
  --home-radius-xs: 10px;
  --home-glass: rgba(255, 255, 255, 0.58);
  --home-glass-strong: rgba(255, 255, 255, 0.72);
  --home-glass-soft: rgba(255, 255, 255, 0.4);
  --home-glass-sheet: rgba(255, 255, 255, 0.82);
  --home-glass-line: rgba(255, 255, 255, 0.55);
  --home-glass-edge: rgba(15, 23, 42, 0.08);
  --home-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(15, 23, 42, 0.05);
  --home-glass-shadow: 0 26px 50px -30px rgba(15, 23, 42, 0.55);
  --home-glass-blur: blur(24px) saturate(180%);
  --home-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.45);
}

/* V2 command center: primary decisions appear before the supporting research. */
.home-command-grid {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.1fr) minmax(220px, .9fr);
  gap: 12px;
  margin-top: 22px;
}

.home-command-grid > article,
.home-command-detail-grid > article,
.home-transmission,
.home-quality-line {
  border: 1px solid var(--home-glass-edge);
  box-shadow: var(--home-glass-inset), var(--home-shadow);
}

.home-command-card {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--home-radius-sm);
  background: var(--home-glass-soft);
  backdrop-filter: var(--home-glass-blur);
}

.home-command-card > span,
.home-command-panel-head span,
.home-quality-line {
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 700;
}

.home-command-card strong {
  margin-top: 10px;
  color: var(--home-text);
  font-size: 22px;
  line-height: 1.2;
}

.home-command-card b {
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 600;
}

.home-command-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: auto;
  color: var(--home-accent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.home-command-card[data-state="ready"] strong {
  color: var(--home-amber);
}

.home-command-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 12px;
}

.home-change-panel,
.home-action-panel {
  padding: 18px;
  border-radius: var(--home-radius-sm);
  background: var(--home-glass-soft);
  backdrop-filter: var(--home-glass-blur);
}

.home-command-panel-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.home-command-panel-head h2 {
  margin: 3px 0 0;
  color: var(--home-text);
  font-size: 17px;
  line-height: 1.25;
}

.home-command-panel-head small {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--home-muted);
  background: var(--home-neutral-soft);
  font-size: 12px;
  white-space: nowrap;
}

.home-command-panel-head > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--home-accent);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.home-change-panel > p {
  margin: 14px 0 10px;
  color: var(--home-text);
  font-size: 14px;
  font-weight: 650;
}

.home-change-list,
.home-command-actions {
  display: grid;
  gap: 8px;
}

.home-change-item {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px solid var(--home-glass-edge);
}

.home-change-item b {
  color: var(--home-red);
  font-size: 12px;
}

.home-change-item[data-direction="down"] b {
  color: var(--home-green);
}

.home-change-item span,
.home-change-empty,
.home-command-empty {
  color: var(--home-muted);
  font-size: 12px;
}

.home-command-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--home-glass-edge);
}

.home-command-action:first-child {
  border-top: 0;
}

.home-command-action-copy small {
  color: var(--home-amber);
  font-size: 12px;
  font-weight: 750;
}

.home-command-action[data-tone="danger"] .home-command-action-copy small {
  color: var(--home-red);
}

.home-command-action-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--home-text);
  font-size: 13px;
}

.home-command-action-copy p {
  margin: 3px 0 0;
  color: var(--home-muted);
  font-size: 12px;
}

.home-command-action-controls {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.home-command-action-controls a,
.home-command-action-controls button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 0;
  color: var(--home-accent);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.home-command-action-controls button:disabled {
  color: var(--home-muted-soft);
  cursor: default;
}

.home-transmission {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--home-radius-xs);
  color: inherit;
  background: linear-gradient(90deg, var(--home-amber-soft), var(--home-glass-soft));
  text-decoration: none;
}

.home-transmission > span {
  color: var(--home-amber);
  font-size: 12px;
  font-weight: 800;
}

.home-transmission strong {
  color: var(--home-text);
  font-size: 13px;
}

.home-transmission small {
  color: var(--home-muted);
  font-size: 12px;
  text-align: right;
}

.home-quality-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: var(--home-radius-xs);
  background: var(--home-glass-soft);
}

.home-quality-line strong {
  color: var(--home-text);
}

@media (max-width: 900px) {
  .home-command-grid,
  .home-command-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-score {
    grid-column: span 2;
  }

  .home-command-card {
    min-height: 132px;
  }
}

@media (max-width: 640px) {
  .home-command-grid,
  .home-command-detail-grid {
    grid-template-columns: 1fr;
  }

  .home-score {
    grid-column: auto;
  }

  .home-command-action,
  .home-transmission {
    grid-template-columns: 1fr;
  }

  .home-command-action-controls {
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
  }

  .home-transmission small {
    text-align: left;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --home-bg: #101214;
  --home-surface: #181b1f;
  --home-text: #f3f5f7;
  --home-muted: #a8b0ba;
  --home-muted-soft: #9099a4;
  --home-accent: #84adff;
  --home-green: #62cf91;
  --home-green-soft: #142b20;
  --home-amber: #f0bd58;
  --home-amber-soft: #322815;
  --home-red: #ff8178;
  --home-red-soft: #351b1a;
  --home-neutral-soft: #23282e;
  --home-wash-1: rgba(38, 99, 235, 0.42);
  --home-wash-2: rgba(0, 168, 160, 0.32);
  --home-wash-3: rgba(196, 108, 0, 0.28);
  --home-wash-4: rgba(126, 68, 214, 0.32);
  --home-glass: rgba(26, 30, 36, 0.52);
  --home-glass-strong: rgba(28, 32, 39, 0.68);
  --home-glass-soft: rgba(38, 44, 52, 0.38);
  --home-glass-sheet: rgba(24, 27, 32, 0.84);
  --home-glass-line: rgba(255, 255, 255, 0.12);
  --home-glass-edge: rgba(255, 255, 255, 0.08);
  --home-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --home-glass-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.8);
  --home-shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--home-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--home-text);
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 16% 10%, var(--home-wash-1), transparent 64%),
    radial-gradient(36% 40% at 84% 6%, var(--home-wash-2), transparent 66%),
    radial-gradient(48% 50% at 80% 82%, var(--home-wash-3), transparent 68%),
    radial-gradient(42% 46% at 10% 90%, var(--home-wash-4), transparent 68%);
  filter: blur(24px);
  animation: home-wash-drift 44s ease-in-out infinite;
}

@keyframes home-wash-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(2.5%, -2%, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--home-accent) 45%, transparent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  min-height: 44px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--home-radius);
  background: var(--home-text);
  color: var(--home-surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--home-glass-line);
  background: transparent;
}

.home-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--home-glass-strong);
  box-shadow: var(--home-glass-inset), 0 18px 40px -34px rgba(15, 23, 42, 0.6);
  backdrop-filter: var(--home-glass-blur);
}

.home-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  /* 品牌与右侧操作贴着玻璃条内边缘会显得"靠边"，
     这里留出与玻璃条等宽的呼吸位。 */
  padding-inline: clamp(14px, 1.6vw, 22px);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  min-width: 0;
}

.home-brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.home-brand-mark .brand-glyph {
  display: block;
  width: 100%;
  height: 100%;
}

.home-brand-mark .brand-glyph-solid {
  fill: currentColor;
}

.home-brand-mark .brand-glyph-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.home-brand-mark .brand-glyph-beam {
  fill: none;
  stroke: var(--home-amber);
  stroke-width: 1.75;
  stroke-linecap: round;
}

.home-brand-copy {
  display: grid;
  min-width: 0;
}

.home-brand-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-brand-copy small {
  color: var(--home-muted);
  font-size: 12px;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.home-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 650;
}

.home-nav a:hover,
.home-nav a.is-active {
  border-color: var(--home-glass-line);
  background: var(--home-glass);
  color: var(--home-text);
  box-shadow: var(--home-glass-inset);
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-icon-button,
.home-menu-toggle,
.home-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--home-glass-line);
  border-radius: 50%;
  background: var(--home-glass);
  box-shadow: var(--home-glass-inset);
  cursor: pointer;
}

.home-icon-button svg,
.home-menu-toggle svg,
.home-refresh svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-icon-button:hover,
.home-menu-toggle:hover,
.home-refresh:hover {
  border-color: var(--home-glass-edge);
  background: var(--home-glass-strong);
}

.home-icon-button .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .home-icon-button .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .home-icon-button .theme-icon-moon {
  display: block;
}

.home-account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--home-glass-line);
  border-radius: 999px;
  background: var(--home-glass);
  box-shadow: var(--home-glass-inset);
  font-size: 13px;
  font-weight: 650;
  gap:8px;
}
.home-account-avatar { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:50%; overflow:hidden; background:var(--home-glass); }
.home-account-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.home-account-avatar:empty { display:none; }
.home-nav a { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.home-nav a>svg { width:18px; height:18px; flex:0 0 18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }

.home-menu-toggle {
  display: none;
}

.home-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.home-hero {
  padding: 28px;
  border: 1px solid var(--home-glass-line);
  border-radius: var(--home-radius-lg);
  background: var(--home-glass-strong);
  box-shadow: var(--home-glass-inset), var(--home-glass-shadow);
  backdrop-filter: var(--home-glass-blur);
}

.home-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.home-eyebrow {
  margin: 0 0 4px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-hero-slogan {
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

.home-sync-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 44px;
  color: var(--home-muted);
  font-size: 12px;
  white-space: nowrap;
}

.home-sync-state time {
  font-variant-numeric: tabular-nums;
}

.home-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-amber);
}

.home-status-dot.is-live {
  background: var(--home-green);
}

.home-status-dot.is-error {
  background: var(--home-red);
}

.home-refresh {
  width: 44px;
  height: 44px;
  margin-left: 4px;
}

.home-refresh svg {
  width: 16px;
  height: 16px;
}

.home-refresh.is-loading svg {
  animation: home-spin 800ms linear infinite;
}

@keyframes home-spin {
  to {
    transform: rotate(360deg);
  }
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.55fr) minmax(180px, 0.78fr);
  gap: 12px;
  margin-top: 24px;
}

.home-score,
.home-priority,
.home-quality {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--home-glass-line);
  border-radius: var(--home-radius);
  background: var(--home-glass-soft);
  box-shadow: var(--home-glass-inset);
}

.home-score span,
.home-priority > span,
.home-quality > span {
  display: block;
  margin-bottom: 8px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 700;
}

.home-score strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.home-score[data-tone="danger"] strong {
  color: var(--home-red);
}

.home-score[data-tone="warning"] strong {
  color: var(--home-amber);
}

.home-score[data-tone="calm"] strong {
  color: var(--home-green);
}

.home-score b {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.home-score small {
  display: block;
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 12px;
}

.home-priority strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.home-priority p,
.home-quality p {
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 13px;
}

.home-quality strong {
  display: block;
  font-size: 16px;
}

.home-dimensions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.home-dimension {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--home-glass-line);
  border-radius: var(--home-radius-sm);
  background: var(--home-glass-soft);
  box-shadow: var(--home-glass-inset);
}

.home-dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-dimension-head span {
  color: var(--home-muted);
  font-size: 12px;
}

.home-dimension-head b {
  font-size: 12px;
  white-space: nowrap;
}

.home-dimension[data-tone="danger"] .home-dimension-head b {
  color: var(--home-red);
}

.home-dimension[data-tone="warning"] .home-dimension-head b {
  color: var(--home-amber);
}

.home-dimension[data-tone="calm"] .home-dimension-head b {
  color: var(--home-green);
}

.home-dimension-track {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--home-text) 12%, transparent);
}

.home-dimension-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--home-accent);
}

.home-dimension[data-tone="danger"] .home-dimension-track i {
  background: var(--home-red);
}

.home-dimension[data-tone="warning"] .home-dimension-track i {
  background: var(--home-amber);
}

.home-dimension[data-tone="calm"] .home-dimension-track i {
  background: var(--home-green);
}

.home-dimension small {
  display: block;
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.4;
}

.home-hero-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--home-glass-line);
}

.home-hero-foot p {
  max-width: 820px;
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
}

.home-hero-foot a,
.home-section-head > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  margin-right: -12px;
  border-radius: 999px;
  color: var(--home-accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.home-hero-foot a:hover,
.home-section-head > a:hover {
  background: var(--home-glass);
  box-shadow: var(--home-glass-inset);
}

.home-section {
  margin-top: 36px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.home-section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.home-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-evidence-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--home-glass-line);
  border-radius: var(--home-radius);
  background: var(--home-glass);
  box-shadow: var(--home-glass-inset), var(--home-shadow);
  backdrop-filter: var(--home-glass-blur);
  transition: transform var(--motion-base) var(--ease-apple), box-shadow var(--motion-base) var(--ease-soft);
}

.home-evidence-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-evidence-head span {
  color: var(--home-muted);
  font-size: 12px;
}

.home-evidence-head b {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--home-neutral-soft);
  font-size: 12px;
  white-space: nowrap;
}

.home-evidence-card[data-tone="danger"] .home-evidence-head b {
  background: var(--home-red-soft);
  color: var(--home-red);
}

.home-evidence-card[data-tone="warning"] .home-evidence-head b {
  background: var(--home-amber-soft);
  color: var(--home-amber);
}

.home-evidence-card[data-tone="calm"] .home-evidence-head b {
  background: var(--home-green-soft);
  color: var(--home-green);
}

.home-evidence-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 10px;
}

.home-evidence-value strong {
  font-size: 27px;
  line-height: 1;
}

.home-evidence-value span {
  color: var(--home-muted);
  font-size: 12px;
}

.home-evidence-chart {
  height: 44px;
  margin-top: 10px;
}

.home-evidence-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-evidence-detail {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-evidence-publication {
  margin: 9px 0 3px;
  color: var(--home-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.home-evidence-publication[data-tone="warning"] {
  color: var(--amber, #a16910);
}

.home-evidence-time {
  display: block;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.home-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 12px;
}

.home-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--home-glass-line);
  border-radius: var(--home-radius);
  background: var(--home-glass);
  box-shadow: var(--home-glass-inset), var(--home-shadow);
  backdrop-filter: var(--home-glass-blur);
}

.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-panel-head h3 {
  margin: 0;
  font-size: 16px;
}

.home-panel-head span,
.home-panel-head a {
  color: var(--home-muted);
  font-size: 12px;
}

.home-panel-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  margin-right: -10px;
  border-radius: var(--home-radius);
}

.home-alert-list,
.home-event-list {
  display: grid;
  gap: 8px;
}

.home-alert-item {
  padding: 11px 12px;
  border-left: 3px solid var(--home-accent);
  border-radius: var(--home-radius-xs);
  background: var(--home-glass-soft);
}

.home-alert-item[data-tone="danger"] {
  border-left-color: var(--home-red);
}

.home-alert-item[data-tone="warning"] {
  border-left-color: var(--home-amber);
}

.home-alert-item[data-tone="calm"] {
  border-left-color: var(--home-green);
}

.home-alert-item strong {
  display: block;
  font-size: 14px;
}

.home-alert-item p {
  margin: 4px 0 0;
  color: var(--home-muted);
  font-size: 12px;
}

.home-event-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--home-glass-line);
}

.home-event-item:last-child {
  border-bottom: 0;
}

.home-event-item time {
  color: var(--home-accent);
  font-size: 12px;
  font-weight: 700;
}

.home-event-item strong {
  display: block;
  font-size: 13px;
}

.home-event-item p {
  margin: 3px 0 0;
  color: var(--home-muted);
  font-size: 12px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-news-card {
  display: flex;
  min-width: 0;
  min-height: 150px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--home-glass-line);
  border-radius: var(--home-radius);
  background: var(--home-glass);
  box-shadow: var(--home-glass-inset), var(--home-shadow);
  backdrop-filter: var(--home-glass-blur);
  transition: transform var(--motion-base) var(--ease-apple), box-shadow var(--motion-base) var(--ease-soft);
}

.home-news-card:hover,
.home-evidence-card:hover,
.home-opportunity-row:hover {
  border-color: var(--home-glass-edge);
  box-shadow: var(--home-glass-inset), 0 30px 60px -34px rgba(15, 23, 42, 0.6);
  transform: translateY(-2px);
}

.home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--home-muted);
  font-size: 12px;
}

.home-news-meta b {
  color: var(--home-accent);
  font-weight: 700;
}

.home-news-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-news-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: auto 0 0;
  padding-top: 12px;
  color: var(--home-muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-opportunity-list {
  display: grid;
  gap: 8px;
}

.home-opportunity-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--home-glass-line);
  border-radius: var(--home-radius);
  background: var(--home-glass);
  box-shadow: var(--home-glass-inset), var(--home-shadow);
  backdrop-filter: var(--home-glass-blur);
  transition: transform var(--motion-base) var(--ease-apple), box-shadow var(--motion-base) var(--ease-soft);
}

.home-opportunity-symbol strong {
  display: block;
  font-size: 16px;
}

.home-opportunity-symbol span {
  color: var(--home-muted);
  font-size: 12px;
}

.home-opportunity-copy strong {
  display: block;
  font-size: 14px;
}

.home-opportunity-copy p {
  margin: 3px 0 0;
  color: var(--home-muted);
  font-size: 12px;
}

.home-opportunity-score {
  text-align: right;
}

.home-opportunity-score strong {
  display: block;
  font-size: 18px;
}

.home-opportunity-score span {
  color: var(--home-muted);
  font-size: 12px;
}

.home-empty {
  padding: 20px;
  border: 1px dashed var(--home-glass-edge);
  border-radius: var(--home-radius);
  background: var(--home-glass-soft);
  color: var(--home-muted);
  text-align: center;
}

.home-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--home-glass-line);
  color: var(--home-muted);
  font-size: 12px;
}

.home-footer strong {
  color: var(--home-text);
  font-size: 14px;
}

.home-footer p {
  margin: 4px 0 0;
}

.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.home-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-muted);
}

@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
  }

  .home-quality {
    grid-column: 1 / -1;
  }

  .home-dimensions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-header-inner,
  .home-main,
  .home-footer {
    width: min(100% - 32px, 1240px);
  }

  .home-header-inner {
    gap: 10px;
  }

  .home-brand-copy small {
    display: none;
  }

  .home-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--home-glass-line);
    border-radius: var(--home-radius-lg);
    background: var(--home-glass-sheet);
    box-shadow: var(--home-glass-inset), var(--home-glass-shadow);
    backdrop-filter: var(--home-glass-blur);
  }

  .home-header[data-open="true"] .home-nav {
    display: flex;
  }

  .home-nav a {
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--home-radius-sm);
  }

  .home-menu-toggle {
    display: inline-flex;
  }

  .home-account-link {
    padding: 0 12px;
  }

  .home-hero {
    padding: 20px;
  }

  .home-hero-head {
    display: block;
  }

  .home-hero h1 {
    font-size: 25px;
  }

  .home-sync-state {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .home-hero-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
  }

  .home-priority {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .home-score strong {
    font-size: 36px;
  }

  .home-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dimension:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-hero-foot,
  .home-section-head,
  .home-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .home-hero-foot a,
  .home-section-head > a {
    min-height: 44px;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .home-news-card {
    min-height: 132px;
  }
}

@media (max-width: 520px) {
  .home-header-inner,
  .home-main,
  .home-footer {
    width: calc(100% - 24px);
  }

  .home-brand-copy strong {
    max-width: 132px;
    font-size: 14px;
  }

  .home-icon-button {
    display: none;
  }

  .home-main {
    padding-top: 16px;
  }

  .home-hero {
    padding: 16px;
  }

  .home-hero h1 {
    font-size: 23px;
  }

  .home-sync-state {
    flex-wrap: wrap;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-score,
  .home-priority,
  .home-quality {
    grid-column: auto;
    grid-row: auto;
  }

  .home-dimensions,
  .home-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dimension:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-evidence-card {
    padding: 13px;
  }

  .home-evidence-value strong {
    font-size: 23px;
  }

  .home-evidence-detail {
    display: none;
  }

  .home-evidence-chart {
    height: 36px;
  }

  .home-section {
    margin-top: 28px;
  }

  .home-section-head h2 {
    font-size: 20px;
  }

  .home-panel {
    padding: 14px;
  }

  .home-opportunity-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .home-opportunity-score {
    grid-column: 2;
    text-align: left;
  }

  .home-opportunity-score strong,
  .home-opportunity-score span {
    display: inline;
    margin-right: 6px;
  }

  .home-footer {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-refresh.is-loading svg {
    animation: none;
  }
}
