:root { color-scheme: dark; font-family: Inter, "Microsoft YaHei", system-ui, sans-serif; color: #e9efff; background: #080d1a; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; background: radial-gradient(circle at 90% 0, #15254b 0, transparent 32rem), #080d1a; } [hidden] { display: none !important; }
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }.sidebar { padding: 26px 16px; border-right: 1px solid #273451; background: #0b1223cc; }.page { max-width: 1600px; width: 100%; padding: 30px 34px 60px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-bottom: 34px; }.brand > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #06101b; font-weight: 900; background: linear-gradient(135deg, #3cd6f2, #7987ff); }.brand strong { line-height: 1.1; }.brand small { display: block; margin-top: 3px; color: #91a1c4; font-size: 11px; font-weight: 500; }.section-nav { display: grid; gap: 5px; }.section-nav button { text-align: left; }
.topbar, .header-actions, .panel-heading, .filters, .subfilters, .form-row { display: flex; align-items: center; gap: 12px; }.topbar, .panel-heading { justify-content: space-between; }.topbar { margin-bottom: 24px; }.header-actions, .filters, .subfilters { flex-wrap: wrap; justify-content: flex-end; }
h1, h2, h3, p { margin: 0; } h1 { font-size: clamp(25px, 3vw, 34px); } h2 { font-size: 20px; } h3 { font-size: 15px; }.eyebrow { margin-bottom: 7px; color: #67d6ed; font-size: 11px; letter-spacing: .1em; font-weight: 700; }.sidebar-note, .meta, .panel-heading span, .filter-note, .user-note, .auth-copy, small { color: #9eacca; font-size: 13px; }.sidebar-note { margin-top: 26px; line-height: 1.6; }
.surface, .panel, .summary article, .metrics article, .advice-group { border: 1px solid #273451; border-radius: 14px; background: linear-gradient(145deg, #121b30e8, #0e1628e8); box-shadow: 0 16px 40px #0002; }.filters { padding: 14px 16px; justify-content: flex-start; margin-bottom: 26px; }.panel-heading { margin: 0 0 14px; }.view > .panel-heading { padding: 0 2px; }.metrics, .summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 12px; }.metrics article, .summary article { padding: 17px; }.metrics strong, .summary strong { display: block; margin: 8px 0; color: #fff; font-size: 23px; }.summary { margin-bottom: 16px; }.subfilters { justify-content: flex-start; margin: 0 0 14px; }.advice-groups, .trend-grid { display: grid; gap: 16px; }.trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.advice-group, .trend-grid > .surface, #health-view > .surface, .panel { padding: 16px; }
label { display: grid; gap: 6px; color: #c7d3ed; font-size: 13px; } input, select, textarea, button { font: inherit; } input, select, textarea { min-height: 38px; color: #eef4ff; border: 1px solid #354563; border-radius: 8px; padding: 8px 10px; background: #0b1324; } textarea { resize: vertical; } input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid #44d9f6; outline-offset: 2px; } button, .button-link { min-height: 38px; border: 1px solid #47cbe9; border-radius: 8px; padding: 8px 12px; cursor: pointer; color: #06101b; background: #50d3ef; text-decoration: none; font-weight: 700; } button:hover, .button-link:hover { background: #8be7fa; } button:disabled { cursor: not-allowed; opacity: .48; }.quiet-button { color: #c9d8f5; border-color: #435475; background: transparent; }.quiet-button:hover { background: #1c2a45; color: #fff; }.inline-button { min-height: auto; margin-left: 6px; padding: 2px 6px; color: #9edff0; border-color: #435475; background: transparent; font-size: 12px; }.section-nav button { color: #b6c4df; border-color: transparent; background: transparent; }.section-nav button[aria-pressed="true"] { color: #fff; border-color: #2e6b93; background: linear-gradient(90deg, #153755, #202557); }.context-pill { padding: 7px 10px; border: 1px solid #3e4f70; border-radius: 999px; color: #a9bce1; font-size: 12px; }
.table-wrap { overflow: auto; } table { width: 100%; min-width: 650px; border-collapse: collapse; } th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid #263550; font-size: 13px; vertical-align: middle; } th { position: sticky; top: 0; color: #9eb2d7; background: #141f36; font-weight: 600; } tr:last-child td { border-bottom: 0; } tr.highlight td { background: #173758aa; }.margin.positive { color: #53e2a3; }.margin.negative { color: #ff9da0; }.empty { padding: 16px 2px; color: #9eacca; }.status { margin-top: 8px; font-size: 13px; }.status-ok { color: #57e2aa; }.status-warn { color: #ffcd70; }.status-error { color: #ff9ca2; }.status-neutral { color: #9eacca; }
.detail-dialog { width: min(720px, calc(100vw - 28px)); color: #e9efff; border: 1px solid #40557c; border-radius: 15px; background: #111a2d; box-shadow: 0 30px 100px #000b; }.detail-dialog::backdrop { background: #020611b8; }.dialog-close { float: right; min-height: 30px; padding: 2px 10px; font-size: 20px; }.detail-dialog h2 { margin: 24px 0 8px; }.detail-dialog h3 { margin: 20px 0 8px; }.detail-dialog p { color: #c6d2eb; line-height: 1.8; }
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }.auth-card { width: min(460px, 100%); padding: 30px; border: 1px solid #314565; border-radius: 18px; background: #10192c; box-shadow: 0 30px 80px #0008; }.auth-card .brand { margin-bottom: 30px; }.auth-copy { margin: 10px 0 22px; line-height: 1.6; }.form-stack { display: grid; gap: 15px; }
@media (max-width: 860px) { .app-shell { grid-template-columns: 1fr; }.sidebar { padding: 16px; border-right: 0; border-bottom: 1px solid #273451; }.sidebar .brand { margin-bottom: 14px; }.section-nav { display: flex; overflow-x: auto; }.section-nav button { white-space: nowrap; }.sidebar-note { display: none; }.page { padding: 22px 16px 40px; }.topbar { align-items: flex-start; flex-direction: column; }.header-actions { justify-content: flex-start; }.trend-grid { grid-template-columns: 1fr; } }

.raw-response { max-height: 55vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #c6d2eb; }

.ledger-page { max-width: none; padding-inline: clamp(18px, 3vw, 54px); }
.ledger-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ledger-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid #273451; }
.ledger-nav button { min-height: 42px; border-radius: 8px 8px 0 0; }
.ledger-nav .quiet-link { margin-left: auto; color: #91a1c4; font-size: 13px; text-decoration: none; }
.ledger-view > .panel-heading { margin-bottom: 14px; }
.ledger-filters, .account-settings { margin-bottom: 16px; }
.cost-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.cost-form label { min-width: 170px; }
.ledger-page table { min-width: 980px; }
.ledger-page th.money, .ledger-page td.money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-page .status-tag { display: inline-block; width: max-content; padding: 4px 8px; border: 1px solid #735f32; border-radius: 999px; background: #352b18; }
.ledger-page .status-tag.status-exact { color: #72e7d0; border-color: #287a75; background: #103b3c; }
.ledger-page .status-tag.status-approximate { color: #ffce73; border-color: #735f32; background: #352b18; }
.ledger-page .status-tag.status-muted { color: #a7b5ce; border-color: #435475; background: #172238; }
.ledger-page select[multiple] { min-height: 112px; }
.match-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.match-comparison > section, .match-choice { padding: 13px; border: 1px solid #2d3c5b; border-radius: 10px; background: #0c1527; }
.match-comparison h3, .match-choice h3 { margin: 0 0 10px; color: #c8d9f4; }
.match-comparison dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 0; font-size: 13px; }
.match-comparison dt { color: #9eacca; }.match-comparison dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.match-choice-list { display: grid; gap: 10px; margin-top: 12px; }
.match-choice { display: grid; gap: 8px; }.match-choice p { color: #c6d2eb; font-size: 13px; line-height: 1.6; }
.match-actions, .match-confirmation > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.match-confirmation { margin-top: 16px; padding: 13px; border: 1px solid #8a543a; border-radius: 10px; background: #351d1b; }.match-confirmation p { color: #ffd3c1; }
@media (max-width: 760px) { .match-comparison { grid-template-columns: 1fr; } }
.ledger-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid #2d3c5b; border-radius: 10px; background: #2d3c5b; }
.ledger-detail-grid > div { display: grid; gap: 6px; min-width: 0; padding: 12px; background: #111a2d; }
.ledger-detail-grid span { color: #9eacca; font-size: 12px; }
.ledger-detail-grid strong { overflow-wrap: anywhere; font-size: 14px; }
.ledger-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; color: #9eacca; font-size: 13px; }
@media (max-width: 760px) { .ledger-header { flex-direction: column; }.ledger-nav { overflow-x: auto; }.ledger-nav .quiet-link { margin-left: 0; white-space: nowrap; }.ledger-detail-grid { grid-template-columns: 1fr; } }

.my-ledger-page > .panel { margin-bottom: 16px; }
.my-ledger-page #my-ledger-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.my-ledger-page .ledger-filters label { flex: 1 1 180px; }
.my-ledger-page .ledger-filters label:first-child { flex-grow: 2; }
@media (max-width: 1000px) { .my-ledger-page #my-ledger-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .my-ledger-page #my-ledger-summary { grid-template-columns: 1fr; }.my-ledger-page .ledger-filters label, .my-ledger-page .ledger-filters button { width: 100%; } }
