/* 자동 생성 — scripts/build_dark_css.py. 직접 고치지 말고 원본 CSS를 고친 뒤 다시 생성한다. */
:where(html[data-theme="dark"]) .finance-page{--fin-good-bg:#143c24;--fin-warn-bg:#3c3214;--fin-danger-bg:#3a1613;--fin-surface:#131313;--fin-soft:#0f0f0f}
:where(html[data-theme="dark"]) .finance-updated{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-skeleton span{border-radius:18px;background:linear-gradient(90deg, #1f1f1f 0%, #0f0f0f 50%, #1f1f1f 100%)}
:where(html[data-theme="dark"]) .finance-health{border:1px solid var(--line);border-radius:20px;background:var(--fin-surface);box-shadow:var(--surface-shadow)}
:where(html[data-theme="dark"]) .finance-health.is-good{border-color:#267345}
:where(html[data-theme="dark"]) .finance-health.is-warning{border-color:#735e26}
:where(html[data-theme="dark"]) .finance-health.is-danger{border-color:#732b26}
:where(html[data-theme="dark"]) .finance-health-verdict p{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-grade b{border-radius:50%;color:#fff}
:where(html[data-theme="dark"]) .finance-grade.is-good{background:var(--fin-good-bg);color:var(--fin-good)}
:where(html[data-theme="dark"]) .finance-grade.is-good b{background:var(--fin-good)}
:where(html[data-theme="dark"]) .finance-grade.is-warning{background:var(--fin-warn-bg);color:var(--fin-warn)}
:where(html[data-theme="dark"]) .finance-grade.is-warning b{background:var(--fin-warn)}
:where(html[data-theme="dark"]) .finance-grade.is-danger{background:var(--fin-danger-bg);color:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-grade.is-danger b{background:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-check{border-radius:14px;background:var(--fin-soft)}
:where(html[data-theme="dark"]) .finance-check-head{color:#9facbd}
:where(html[data-theme="dark"]) .finance-check p{color:#cbcbcb}
:where(html[data-theme="dark"]) .finance-check small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-kpi{border:1px solid var(--line);border-radius:18px;background:var(--fin-surface);color:var(--ink);box-shadow:var(--surface-shadow);text-decoration:none}
:where(html[data-theme="dark"]) .finance-kpi::before{background:#6d8bff}
:where(html[data-theme="dark"]) .finance-kpi:hover{border-color:#263973;color:var(--ink)}
:where(html[data-theme="dark"]) .finance-kpi.is-warning::before{background:var(--fin-warn)}
:where(html[data-theme="dark"]) .finance-kpi.is-focus{background:linear-gradient(180deg, #0f0f0f, #131313);border-color:#263873}
:where(html[data-theme="dark"]) .finance-kpi.is-focus::before{background:var(--accent)}
:where(html[data-theme="dark"]) .finance-kpi.is-danger::before{background:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-kpi-label{color:#aeaeae}
:where(html[data-theme="dark"]) .finance-kpi-label em{color:#98a2b3}
:where(html[data-theme="dark"]) .finance-kpi small{color:#aeaeae}
:where(html[data-theme="dark"]) .finance-delta.is-up{color:var(--fin-good)}
:where(html[data-theme="dark"]) .finance-delta.is-down{color:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-delta.is-neutral{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-panel-head p{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-kicker{color:var(--accent-text) !important}
:where(html[data-theme="dark"]) .finance-subhead small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-axis{fill:#aeaeae}
:where(html[data-theme="dark"]) .finance-grid-line{stroke:#282828;stroke-width:1}
:where(html[data-theme="dark"]) .finance-zero{stroke:#4e4e4e;stroke-width:1}
:where(html[data-theme="dark"]) .finance-line{fill:none;stroke:var(--fin-in);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
:where(html[data-theme="dark"]) .finance-area{fill:#6ea3e314;stroke:none}
:where(html[data-theme="dark"]) .finance-threshold{stroke:var(--fin-danger);stroke-width:1.5;stroke-dasharray:6 4}
:where(html[data-theme="dark"]) .finance-threshold-label{fill:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-month-end{stroke:#344054;stroke-width:1;stroke-dasharray:2 3}
:where(html[data-theme="dark"]) .finance-month-end-label{fill:#e2e2e2}
:where(html[data-theme="dark"]) .finance-min-dot{fill:#fff;stroke:var(--fin-danger);stroke-width:2}
:where(html[data-theme="dark"]) .finance-cross{stroke:#4e4e4e;stroke-width:1}
:where(html[data-theme="dark"]) .finance-hover-dot,:where(html[data-theme="dark"]) .finance-dot{fill:var(--fin-in);stroke:#212121;stroke-width:2}
:where(html[data-theme="dark"]) .finance-live-dot{fill:#fff;stroke:var(--fin-in);stroke-width:2.5}
:where(html[data-theme="dark"]) .finance-hit:focus-visible,:where(html[data-theme="dark"]) .finance-month:focus-visible,:where(html[data-theme="dark"]) .finance-dot:focus-visible,:where(html[data-theme="dark"]) .finance-live-dot:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:where(html[data-theme="dark"]) .finance-month:hover .finance-band{fill:#637fee0d}
:where(html[data-theme="dark"]) .finance-bar-in{fill:var(--fin-in)}
:where(html[data-theme="dark"]) .finance-bar-out{fill:var(--fin-out)}
:where(html[data-theme="dark"]) .finance-net-dot{fill:#e2e2e2;stroke:#212121;stroke-width:2}
:where(html[data-theme="dark"]) .finance-net-label.is-up{fill:var(--fin-good)}
:where(html[data-theme="dark"]) .finance-net-label.is-down{fill:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-legend{color:#9facbd}
:where(html[data-theme="dark"]) .finance-legend i.is-line{background:var(--fin-in)}
:where(html[data-theme="dark"]) .finance-legend i.is-threshold{border-top:2px dashed var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-legend i.is-min{border:2px solid var(--fin-danger);border-radius:50%}
:where(html[data-theme="dark"]) .finance-legend i.is-in{background:var(--fin-in)}
:where(html[data-theme="dark"]) .finance-legend i.is-out{background:var(--fin-out)}
:where(html[data-theme="dark"]) .finance-legend i.is-net{border-radius:50%;background:#111111}
:where(html[data-theme="dark"]) .finance-tooltip{border:1px solid var(--line);border-radius:12px;background:#131313;color:var(--ink);box-shadow:0 12px 32px #1018282e}
:where(html[data-theme="dark"]) .finance-tooltip i{color:var(--fin-warn)}
:where(html[data-theme="dark"]) .finance-tooltip dt{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-events li,:where(html[data-theme="dark"]) .finance-debts li{border-bottom:1px solid #272727}
:where(html[data-theme="dark"]) .finance-events time{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-events small,:where(html[data-theme="dark"]) .finance-debts small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-events li.is-in b{color:var(--fin-good)}
:where(html[data-theme="dark"]) .finance-events li.is-out b{color:#cbcbcb}
:where(html[data-theme="dark"]) .finance-split > div{border-radius:12px;background:var(--fin-soft)}
:where(html[data-theme="dark"]) .finance-split span{color:#aeaeae}
:where(html[data-theme="dark"]) .finance-split small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-kind.is-payment{background:#0e0e0e;color:#6a82e6}
:where(html[data-theme="dark"]) .finance-kind.is-planned{background:#3b2314;color:#ed8163}
:where(html[data-theme="dark"]) .finance-overdue{color:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-note{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-stack-part.is-cash,:where(html[data-theme="dark"]) .finance-composition i.is-cash{background:var(--fin-cash)}
:where(html[data-theme="dark"]) .finance-stack-part.is-inventory,:where(html[data-theme="dark"]) .finance-composition i.is-inventory{background:var(--fin-inventory)}
:where(html[data-theme="dark"]) .finance-stack-part.is-receivable,:where(html[data-theme="dark"]) .finance-composition i.is-receivable{background:var(--fin-receivable)}
:where(html[data-theme="dark"]) .finance-composition i.is-debt{background:var(--fin-debt)}
:where(html[data-theme="dark"]) .finance-composition small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-composition li.is-minus b{color:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-composition li.is-total{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .finance-table summary{color:var(--accent-text)}
:where(html[data-theme="dark"]) .finance-kpi:focus-visible,:where(html[data-theme="dark"]) .finance-check-button:focus-visible,:where(html[data-theme="dark"]) .finance-split button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:where(html[data-theme="dark"]) .finance-kpi-more{color:var(--accent-text)}
:where(html[data-theme="dark"]) .finance-check-button:hover{background:#0d0d0d}
:where(html[data-theme="dark"]) .finance-check-detail{color:#cbcbcb}
:where(html[data-theme="dark"]) .finance-check-button small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-split button{border:0;border-radius:12px;background:var(--fin-soft);color:inherit}
:where(html[data-theme="dark"]) .finance-split button:hover{background:#0d0d0d}
:where(html[data-theme="dark"]) .finance-split button.is-loan{background:#3b2714}
:where(html[data-theme="dark"]) .finance-kind.is-loan{background:#3b2314;color:#ed8163}
:where(html[data-theme="dark"]) .finance-composition i.is-loan{background:#b93815}
:where(html[data-theme="dark"]) .finance-alert{border:1px solid #732b26;border-radius:10px;background:var(--fin-danger-bg);color:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-risk-band{fill:#eb6f6612}
:where(html[data-theme="dark"]) .finance-legend i.is-risk{background:rgba(180, 35, 24, .18)}
:where(html[data-theme="dark"]) .finance-left-line{fill:none;stroke:#475467;stroke-width:1.5;stroke-dasharray:3 3}
:where(html[data-theme="dark"]) .finance-detail-table th[scope="row"]{color:var(--ink)}
:where(html[data-theme="dark"]) .finance-month-table tr.is-risk th,:where(html[data-theme="dark"]) .finance-month-table tr.is-risk td{background:var(--fin-danger-bg)}
:where(html[data-theme="dark"]) .finance-facts div{border-radius:10px;background:var(--fin-soft)}
:where(html[data-theme="dark"]) .finance-facts dt{color:#aeaeae}
:where(html[data-theme="dark"]) .finance-empty{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-tax-line{fill:none;stroke:var(--fin-out);stroke-width:2;stroke-dasharray:5 4;stroke-linejoin:round}
:where(html[data-theme="dark"]) .finance-tax-dot{fill:var(--fin-out);stroke:#212121;stroke-width:1.5}
:where(html[data-theme="dark"]) .finance-legend i.is-tax-line{border-top:2px dashed var(--fin-out);border-radius:0}
:where(html[data-theme="dark"]) .finance-tax-cell small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-tax-cell.is-same span{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-month-table td.finance-tax-cell.is-risk{background:var(--fin-danger-bg)}
:where(html[data-theme="dark"]) .finance-tax-card{border-radius:12px;background:var(--fin-soft)}
:where(html[data-theme="dark"]) .finance-tax-card span{color:#aeaeae}
:where(html[data-theme="dark"]) .finance-tax-card small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-tax-card.is-soon{background:var(--fin-warn-bg)}
:where(html[data-theme="dark"]) .finance-tax-card.is-danger{background:var(--fin-danger-bg)}
:where(html[data-theme="dark"]) .finance-tax-card.is-danger strong{color:var(--fin-danger)}
:where(html[data-theme="dark"]) .finance-tax-table th[scope="row"]{color:var(--ink)}
:where(html[data-theme="dark"]) .finance-tax-table td small{color:var(--muted)}
:where(html[data-theme="dark"]) .finance-tax-table tr.is-soon th,:where(html[data-theme="dark"]) .finance-tax-table tr.is-soon td{background:var(--fin-warn-bg)}
:where(html[data-theme="dark"]) .finance-tax-soon{color:var(--fin-warn)}
:where(html[data-theme="dark"]) .finance-kind.is-tax-in{background:#1f1f1f;color:#9facbd}
:where(html[data-theme="dark"]) .finance-kind.is-tax-new{background:#3b2314;color:#ed8163}
