:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
  background: #f2f3ef;
  color: #18231f;
  --ink: #18231f;
  --muted: #67716a;
  --line: #dfe3dc;
  --paper: #ffffff;
  --canvas: #f2f3ef;
  --forest: #276657;
  --forest-soft: #e8f1ed;
  --rust: #af6149;
  --rust-soft: #f8eee9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #bc9255; outline-offset: 3px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: #192824; color: #eaf0e9; padding: 31px 20px 24px; display: flex; flex-direction: column; min-width: 0; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; padding: 3px 9px 37px; }
.brand strong { display: block; font-size: 18px; letter-spacing: .025em; white-space: nowrap; }
.brand small { display: block; color: #9bb2a7; font-size: 8px; letter-spacing: .18em; margin-top: 3px; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: flex; align-items: flex-end; gap: 4px; border: 1px solid #6f9684; padding: 6px 5px; transform: rotate(-6deg); flex: none; }
.brand-mark i { width: 4px; background: #a5c3a9; display: block; }
.brand-mark i:nth-child(1) { height: 9px; }.brand-mark i:nth-child(2) { height: 16px; }.brand-mark i:nth-child(3) { height: 12px; }
.sidebar-group-label { color: #8ca99a; font-size: 11px; letter-spacing: .17em; padding: 0 12px 12px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 7px; text-decoration: none; color: #b9cdc1; font-size: 13px; font-weight: 600; }
.side-nav a:hover, .side-nav a:focus-visible { background: #283a33; color: #fff; }
.side-nav a.active { background: #34473d; color: #fff; }
.nav-symbol { color: #a7c6b4; width: 17px; text-align: center; font-size: 16px; line-height: 1; }
.sidebar-spacer { flex: 1; }
.sidebar-note { padding: 0 11px; max-width: 190px; }
.sidebar-note-rule { display: block; width: 24px; height: 2px; background: #bad1b9; margin-bottom: 15px; }
.sidebar-note strong { font-size: 12px; letter-spacing: .04em; }
.sidebar-note p { color: #a2b8a9; font-size: 11px; line-height: 1.65; margin: 8px 0 0; }

.main-content { min-width: 0; }
.topbar { height: 68px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 43px; gap: 20px; background: #f8f9f6; }
.breadcrumb { display: flex; align-items: center; gap: 13px; color: #8a948d; font-size: 12px; white-space: nowrap; }
.breadcrumb strong { color: #334239; font-weight: 650; }
.topbar-actions { display: flex; align-items: center; gap: 21px; }
.auto-refresh { display: flex; align-items: center; gap: 8px; color: #59695f; font-size: 11px; white-space: nowrap; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ca384; box-shadow: 0 0 0 3px #e0ede2; }
.refresh-button { border: 1px solid #ccd6cb; background: #fff; color: #233c2f; border-radius: 6px; min-height: 34px; padding: 0 13px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.refresh-button:hover { border-color: #769681; background: #f3f7f2; }
.refresh-button:disabled { opacity: .55; cursor: wait; }
.refresh-button span { font-size: 17px; font-weight: 400; vertical-align: -1px; margin-right: 4px; }
.logout-button { border: 0; background: transparent; color: #68786d; padding: 8px 0 8px 2px; margin-left: 4px; font-size: 11px; white-space: nowrap; }
.logout-button:hover { color: #163f2e; text-decoration: underline; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: #edf0ea; }
.auth-card { width: min(100%, 388px); background: #fff; border: 1px solid #d8e0d4; border-top: 3px solid #426c53; padding: 31px 34px 36px; box-shadow: 0 22px 60px #263d2a14; }
.auth-brand { display: flex; align-items: center; gap: 11px; font-size: 15px; margin-bottom: 42px; }.auth-brand .brand-mark { border-color: #5a8b6c; }.auth-brand .brand-mark i { background: #5a8b6c; }
.auth-card h1 { font-size: 23px; }.auth-intro { color: #788579; font-size: 12px; line-height: 1.7; margin: 10px 0 27px; }
.auth-card form { display: grid; gap: 8px; }.auth-card label { color: #485c4c; font-size: 11px; font-weight: 750; margin-top: 5px; }.auth-card input { border: 1px solid #cbd6c9; height: 40px; padding: 0 11px; font: inherit; font-size: 13px; border-radius: 4px; }
.auth-card form button { background: #26583b; border: 1px solid #26583b; color: #fff; font-size: 12px; font-weight: 750; min-height: 41px; margin-top: 15px; border-radius: 4px; }.auth-card form button:hover { background: #1e472f; }.auth-card form button:disabled { opacity: .6; cursor: wait; }
.login-error { color: #a14a38; background: #fff3ee; font-size: 11px; line-height: 1.6; padding: 8px 10px; margin: 2px 0 0; }

.page-content { max-width: 1530px; margin: auto; padding: 39px 43px 31px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 35px; }
.eyebrow { color: #658273; font-size: 10px; font-weight: 750; letter-spacing: .19em; margin: 0 0 12px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(27px, 3vw, 35px); letter-spacing: -.045em; margin: 0; line-height: 1.18; font-weight: 760; }
.page-lead { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 11px 0 0; }
.update-panel { border-left: 2px solid #9fb8a6; min-width: 170px; padding: 2px 0 2px 14px; display: grid; gap: 5px; }
.update-label { font-size: 10px; color: #687a6e; }
.update-panel strong { font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.update-panel > span:last-child { color: #859189; font-size: 10px; }
.global-message { border: 1px solid #e7cabb; background: #fff8f2; color: #77442d; border-radius: 6px; padding: 10px 14px; font-size: 12px; margin: -14px 0 24px; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 15px; }
.section-kicker { color: #78907e; font-size: 10px; font-weight: 750; letter-spacing: .14em; margin: 0 0 6px; }
h2 { font-size: 17px; letter-spacing: -.02em; margin: 0; }
.section-caption { color: #869188; font-size: 11px; white-space: nowrap; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.confidence-panel { display: grid; grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr); gap: 23px; align-items: center; margin-bottom: 11px; background: #213a2e; color: #e9f1e9; padding: 21px 25px; border: 1px solid #355342; }
.confidence-number { border-right: 1px solid #577361; padding-right: 22px; }
.confidence-number .metric-label { color: #bcd1bd; }
.confidence-number div { margin-top: 6px; display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.confidence-number strong { font-size: clamp(37px, 4vw, 48px); line-height: 1.05; letter-spacing: -.05em; }
.confidence-number div span { color: #a9c2ad; font-size: 13px; }
.confidence-number small { display: block; margin-top: 6px; font-size: 10px; color: #a9c2ad; line-height: 1.5; }
.confidence-detail { display: grid; gap: 8px; min-width: 0; }
.confidence-detail > strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.confidence-detail > span { font-size: 10px; line-height: 1.5; color: #bdcfc0; }
.confidence-detail .balance-track { margin: 6px 0 0; background: #355144; height: 8px; }
.confidence-counts { font-variant-numeric: tabular-nums; }
.metric-card { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid #b7c7b8; padding: 18px 18px 17px; min-height: 125px; display: flex; flex-direction: column; align-items: flex-start; }
.metric-long { border-top-color: #5f9e83; }.metric-short { border-top-color: #ca8c75; }.metric-evidence { border-top-color: #bcad7f; }
.metric-label { font-size: 11px; color: #5f6c63; font-weight: 650; }
.metric-card strong { font-size: 30px; letter-spacing: -.05em; font-weight: 700; line-height: 1.15; margin: 9px 0 5px; font-variant-numeric: tabular-nums; }
.metric-detail { font-size: 10px; color: #9aa39a; }
.balance-panel { margin-top: 11px; background: var(--paper); border: 1px solid var(--line); padding: 15px 18px 12px; }
.balance-copy { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #607067; }
.balance-copy strong { color: #314f3e; font-weight: 750; font-variant-numeric: tabular-nums; }
.balance-track { height: 7px; background: #e9ede7; display: flex; overflow: hidden; margin-top: 13px; }
.balance-track span { display: block; transition: width .2s ease; }
#balance-long { background: #5d9b7e; width: 0; }#balance-short { background: #c9866b; width: 0; }
.balance-footnote { display: block; color: #98a198; font-size: 10px; margin-top: 10px; }
.coverage-bar { margin-top: 8px; border: 1px solid #d9e3d5; background: #eaf1e9; padding: 10px 14px; display: flex; align-items: center; gap: 10px; color: #526d57; font-size: 10px; line-height: 1.5; }
.coverage-bar strong { color: #28543c; white-space: nowrap; font-size: 11px; }.coverage-bar span { flex: 1; }.coverage-bar a { white-space: nowrap; color: #275e40; font-weight: 700; text-decoration: none; }.coverage-bar a:hover { text-decoration: underline; }

.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 19px; align-items: start; margin-top: 34px; }
.signals-section, .side-column { min-width: 0; }
.signals-title { margin-bottom: 16px; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.asset-select { margin-right: auto; min-width: 125px; }
.asset-select select { min-width: 65px; }
.filter-select { display: flex; align-items: center; gap: 7px; border: 1px solid #d8dfd6; border-radius: 6px; background: #fff; padding: 0 9px 0 10px; height: 36px; font-size: 11px; }
.filter-select:focus-within { outline: 3px solid #bc9255; outline-offset: 2px; }
.filter-select span { color: #879287; }
.filter-select select { border: 0; outline: 0; color: #32463a; background: transparent; max-width: 147px; font-size: 11px; font-weight: 650; cursor: pointer; }
.ai-status { color: #2f6247; background: #eaf2e9; border-left: 2px solid #78a685; padding: 9px 12px; margin: 0 0 11px; font-size: 10px; line-height: 1.6; }
.ai-status.is-disabled, .ai-status.is-pending { color: #806644; background: #f7f3e9; border-left-color: #c6a77d; }
.ai-status.has-error { color: #924c39; background: #fff2ec; border-left-color: #ce8c74; }
.sort-note { color: #879388; font-size: 10px; line-height: 1.55; margin: -2px 0 13px; }
.signals-list { display: grid; gap: 10px; }
.signal-card { background: #fff; border: 1px solid #dde3db; padding: 18px 19px 16px; }
.signal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.signal-origin { min-width: 0; }
.signal-source { font-size: 12px; font-weight: 750; color: #23332a; }
.signal-byline { font-size: 10px; color: #879289; margin-top: 4px; line-height: 1.5; }
.signal-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; flex: none; }
.tag { border-radius: 3px; padding: 4px 7px; font-size: 10px; line-height: 1.15; font-weight: 750; white-space: nowrap; }
.tag-asset { color: #647465; background: #eef1eb; }.tag-long { color: #277254; background: #e7f3eb; }.tag-short { color: #a3573f; background: #fbede6; }.tag-neutral { color: #59665b; background: #eef0ed; }
.signal-excerpt { margin: 16px 0 15px; color: #344139; font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.signal-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #e8ece5; border: 1px solid #e8ece5; }
.level { background: #f8f9f6; padding: 10px 11px 9px; min-width: 0; }
.level span { display: block; font-size: 10px; color: #7e8a7e; }
.level strong { display: block; margin-top: 5px; font-size: 11px; color: #27392d; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.level.missing strong { color: #a7afa6; font-weight: 500; }
.ai-review { padding: 11px 13px; border: 1px solid #d9e7dc; background: #f5f9f4; border-top: 0; }
.ai-review.ai-not_useful, .ai-review.ai-uncertain, .ai-review.ai-not_evaluated, .ai-review.ai-pending, .ai-review.ai-expired { background: #faf9f4; border-color: #e9e5d9; }
.ai-review.ai-error { background: #fff7f3; border-color: #efd9cf; }
.ai-review-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
.ai-review-heading strong { color: #326849; font-size: 11px; }
.ai-review.ai-not_useful .ai-review-heading strong, .ai-review.ai-uncertain .ai-review-heading strong, .ai-review.ai-not_evaluated .ai-review-heading strong, .ai-review.ai-pending .ai-review-heading strong, .ai-review.ai-expired .ai-review-heading strong { color: #8c714b; }
.ai-review.ai-error .ai-review-heading strong { color: #a25740; }
.ai-review-score { color: #326849; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ai-review-reason, .ai-review-evidence p { margin: 6px 0 0; color: #5d6e61; font-size: 10px; line-height: 1.55; }
.ai-review-evidence { border-top: 1px solid #e3ebe3; margin-top: 8px; padding-top: 3px; }
.ai-review-evidence p { color: #56675a; }
.ai-review-meta { display: block; margin-top: 8px; color: #91a095; font-size: 9px; line-height: 1.5; }
.signal-meta { display: flex; gap: 7px 18px; flex-wrap: wrap; border-bottom: 1px solid #ebeee9; padding: 14px 0; }
.signal-meta span { color: #718076; font-size: 10px; line-height: 1.5; }
.signal-meta strong { color: #34483a; font-weight: 650; }
.signal-engagement { display: flex; flex-wrap: wrap; gap: 5px 17px; padding: 11px 0 0; }
.signal-engagement span { color: #7d8a7f; font-size: 10px; line-height: 1.5; }
.signal-engagement strong { color: #3f604b; font-weight: 700; font-variant-numeric: tabular-nums; }
.signal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; }
.evidence { font-size: 10px; color: #75592f; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; line-height: 1.45; }
.evidence::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c5ac76; flex: none; }
.evidence.verified { color: #24644b; }.evidence.verified::before { background: #4d9771; }
.evidence.unverified { color: #778178; }.evidence.unverified::before { background: #aeb7a9; }
.signal-link { font-size: 10px; font-weight: 750; color: #255e43; text-decoration: none; white-space: nowrap; }
.signal-link:hover { text-decoration: underline; }
.list-state { background: #fff; border: 1px dashed #cbd6ca; color: #748174; padding: 43px 24px; text-align: center; font-size: 12px; line-height: 1.7; }
.list-state strong { display: block; color: #334d39; font-size: 14px; margin-bottom: 5px; }
.load-more-button { display: block; width: 100%; min-height: 42px; margin-top: 11px; border: 1px solid #cad8ca; background: #fff; color: #275b3b; font-size: 11px; font-weight: 750; border-radius: 4px; }
.load-more-button:hover { background: #edf4ec; border-color: #95b498; }.load-more-button:disabled { opacity: .6; cursor: wait; }
.load-more-error { margin: 10px 0 0; color: #a1543e; font-size: 11px; line-height: 1.5; }

.side-column { display: grid; gap: 11px; padding-top: 32px; }
.info-panel { background: #fff; border: 1px solid var(--line); padding: 18px 17px 17px; }
.panel-title { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid #ebeee9; }
.panel-title h2 { font-size: 13px; }.panel-index { font-size: 10px; color: #7c9a83; font-weight: 750; }
.source-list { display: grid; }
.source-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; border-bottom: 1px solid #eff1ed; padding: 13px 0; }
.source-row:last-child { border-bottom: 0; }
.source-row strong { font-size: 11px; display: block; }.source-row small { display: block; color: #929e93; font-size: 9px; margin-top: 5px; line-height: 1.4; }
.source-row small.source-error { color: #a5684d; }
.source-status { font-size: 9px; font-weight: 750; white-space: nowrap; color: #2e7758; }
.source-status.issue { color: #a5684d; }.source-status.unknown { color: #929a91; }
.panel-empty, .source-note { color: #929c91; font-size: 10px; line-height: 1.65; margin: 13px 0 0; }.source-note { border-top: 1px solid #ebeee9; padding-top: 11px; }
.method-list { margin: 0; }
.method-list div { border-bottom: 1px solid #eff1ed; padding: 13px 0; }.method-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.method-list dt { font-size: 11px; color: #34473a; font-weight: 750; }.method-list dd { margin: 5px 0 0; color: #879288; line-height: 1.55; font-size: 10px; }
.page-footer { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 17px; color: #98a298; font-size: 10px; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }.brand { gap: 8px; }.brand strong { font-size: 15px; }.brand small { font-size: 7px; }
  .topbar { padding-inline: 25px; }.page-content { padding-inline: 25px; }
  .body-grid { grid-template-columns: minmax(0, 1fr) 226px; gap: 12px; }
  .metric-card { padding-inline: 12px; }.metric-card strong { font-size: 26px; }
}
@media (max-width: 830px) {
  .app-shell { display: block; }
  .sidebar { padding: 11px 19px; flex-direction: row; align-items: center; gap: 14px; }
  .brand { padding: 0; }.sidebar-group-label, .sidebar-note, .sidebar-spacer { display: none; }
  .side-nav { display: flex; margin-left: auto; }.side-nav a { padding: 8px; font-size: 0; }.nav-symbol { font-size: 16px; }
  .topbar { height: 56px; }.page-content { padding-top: 27px; }
  .body-grid { grid-template-columns: 1fr; }.side-column { grid-template-columns: repeat(2, minmax(0,1fr)); padding-top: 3px; }
}
@media (max-width: 600px) {
  .sidebar { padding-inline: 13px; }.brand strong { font-size: 14px; }.brand small { display: none; }
  .side-nav { gap: 0; }.side-nav a { padding: 7px; }.side-nav a:nth-child(n+4) { display: none; }
  .topbar { padding: 0 16px; }.topbar-actions { gap: 0; }.auto-refresh { display: none; }
  .page-content { padding: 25px 16px 25px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 27px; }
  .update-panel { width: 100%; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 11px; }
  .confidence-panel { grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .confidence-number { border-right: 0; border-bottom: 1px solid #577361; padding: 0 0 13px; }
  .confidence-number strong { font-size: 39px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }.metric-card { min-height: 113px; }.metric-card strong { font-size: 27px; }
  .coverage-bar { align-items: flex-start; flex-wrap: wrap; }.coverage-bar span { flex-basis: 100%; order: 2; }.coverage-bar a { margin-left: auto; }
  .body-grid { margin-top: 30px; }.side-column { grid-template-columns: 1fr; }
  .filter-bar { gap: 7px; }.asset-select { width: 100%; margin-right: 0; }.filter-select { flex: 1; justify-content: space-between; }.filter-select select { max-width: 112px; }
  .signal-card { padding: 15px; }.signal-top { flex-direction: column; }.signal-tags { justify-content: flex-start; }.signal-excerpt { margin-top: 13px; }
  .signal-levels { grid-template-columns: 1fr; }.level { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }.level strong { margin-top: 0; text-align: right; }
}
