@charset "UTF-8";
/* 复用原账本的柔光、叶影与底部曲线背景。 */
:root {--ledger-scene:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%201536%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%20aria-hidden%3D%22true%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22account-bg-light%22%3E%3Cstop%20stop-color%3D%22%23fffcf8%22%20stop-opacity%3D%22.95%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fffaf4%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3ClinearGradient%20id%3D%22account-bg-wave%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23d3b78d%22%20stop-opacity%3D%22.19%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23fffcf6%22%20stop-opacity%3D%22.65%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d8ba85%22%20stop-opacity%3D%22.24%22%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%22account-leaf-soft%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2211%22%2F%3E%3C%2Ffilter%3E%3Cfilter%20id%3D%22account-wave-soft%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2214%22%2F%3E%3C%2Ffilter%3E%3Cpath%20id%3D%22account-shadow-leaf%22%20d%3D%22M-42%200C-18-21%2019-23%2045%200%2017%2023-19%2021-42%200Z%22%2F%3E%3C%2Fdefs%3E%3Crect%20width%3D%221024%22%20height%3D%221536%22%20fill%3D%22%23f3ede3%22%2F%3E%3Cellipse%20cx%3D%22489%22%20cy%3D%22786%22%20rx%3D%22720%22%20ry%3D%22900%22%20fill%3D%22url(%23account-bg-light)%22%2F%3E%3Cg%20fill%3D%22%238e795e%22%20opacity%3D%22.15%22%20filter%3D%22url(%23account-leaf-soft)%22%3E%3Cpath%20d%3D%22M1110-40C950%2029%20927%2067%20871%20158L807%20272M946%2044%20775%204M889%20128%201007%20220%22%20fill%3D%22none%22%20stroke%3D%22%23978062%22%20stroke-width%3D%229%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(731%2030)%20rotate(-23)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(817%2049)%20rotate(26)%20scale(1.3)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(934%2015)%20rotate(-39)%20scale(1.3)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(1025%2057)%20rotate(27)%20scale(1.25)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(876%20117)%20rotate(-45)%20scale(1.25)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(977%20165)%20rotate(30)%20scale(1.15)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(838%20205)%20rotate(-49)%20scale(1.2)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(1021%20253)%20rotate(40)%20scale(1.2)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(-30%20380)%20rotate(30)%20scale(1.4)%22%2F%3E%3Cuse%20href%3D%22%23account-shadow-leaf%22%20transform%3D%22translate(30%20430)%20rotate(-23)%20scale(1.25)%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M-40%201231C176%201289%20226%201476%20504%201538H-40Z%22%20fill%3D%22url(%23account-bg-wave)%22%2F%3E%3Cpath%20d%3D%22M-70%201307C101%201379%20258%201442%20457%201491%22%20fill%3D%22none%22%20stroke%3D%22%23e5bd7e%22%20stroke-width%3D%2224%22%20opacity%3D%22.24%22%20filter%3D%22url(%23account-wave-soft)%22%2F%3E%3Cpath%20d%3D%22M-70%201307C101%201379%20258%201442%20457%201491%22%20fill%3D%22none%22%20stroke%3D%22%23fffaf0%22%20stroke-width%3D%222%22%20opacity%3D%22.8%22%2F%3E%3Cpath%20d%3D%22M1049%201297C918%201410%20864%201506%20748%201566H1049Z%22%20fill%3D%22url(%23account-bg-wave)%22%2F%3E%3Cpath%20d%3D%22M1056%201288C919%201397%20858%201503%20736%201577%22%20fill%3D%22none%22%20stroke%3D%22%23ffcd80%22%20stroke-width%3D%2218%22%20opacity%3D%22.3%22%20filter%3D%22url(%23account-wave-soft)%22%2F%3E%3Cpath%20d%3D%22M1056%201288C919%201397%20858%201503%20736%201577%22%20fill%3D%22none%22%20stroke%3D%22%23fffaf0%22%20stroke-width%3D%223%22%20opacity%3D%22.95%22%2F%3E%3C%2Fsvg%3E");--record-fill:linear-gradient(115deg,#fcf9f3f2,#f1eaddf2);--record-shadow:inset 0 1px 0 #ffffffbd,0 3px 9px #68563d12}
/* 全局设计变量：所有页面共用。 */
:root {font-family:var(--font-family);font-size:16px;font-synthesis:none;color:var(--ink);background:var(--canvas);--sidebar:196px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;--ink:#1e2734;--muted:#877c6b;--faint:#737b74;--canvas:#f7f7f4;--surface:#fffcf8;--surface-subtle:#f2f3ef;--line:#deded8;--accent:#9c7b43;--accent-soft:#eee2cb;--on-accent:#ffffff;--danger:#bd3832;--danger-soft:#fbece9;--warning:#8e671d;--warning-soft:#faf1dc;--success:#287b59;--success-soft:#eaf5ef;--radius-control:12px;--radius-panel:16px;--control-height:48px;--font-body:16px;--font-caption:15px;--shadow-floating:0 8px 28px #25302415;--gold:var(--accent);--gold-dark:var(--accent);--shadow:none;--pending-red:var(--warning);--pending-tint:var(--warning-soft);--pending-border:var(--line)}
* {box-sizing:border-box}
body {margin:0;min-width:320px}
button,input,select,textarea {font:inherit;color:inherit}
button {cursor:pointer;background:none;border:0}
a {color:inherit;text-decoration:none}
input,select,textarea {min-width:0}
button,a,input,select,textarea {-webkit-tap-highlight-color:transparent}
button:disabled {opacity:.5;cursor:wait}
[hidden] {display:none!important}
svg {display:inline-block;width:22px;height:22px;vertical-align:middle;flex-shrink:0}
button svg,a svg {pointer-events:none}
h1,h2,h3,p {margin:0}
h1 {font-size:29px;line-height:1.4;letter-spacing:-.6px;font-weight:750;color:var(--ink)}
h2 {font-size:18px;font-weight:700}
h3 {font-size:17px;font-weight:650}
small {font-size:var(--font-caption)}
.positive {color:var(--ink)}
.negative {color:var(--danger)}
.number {font-variant-numeric:tabular-nums}
.sidebar {width:var(--sidebar);position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;z-index:20;padding:32px 16px 22px}
.nav-label {font-size:15px;font-weight:600;color:var(--muted);letter-spacing:1px;padding:0 13px;margin-bottom:29px}
.desktop-nav {display:grid;gap:10px}
.nav-link {display:flex;align-items:center;gap:12px;padding:14px 13px;color:var(--muted);font-size:15px;border-radius:12px}
.nav-link.active {background:var(--surface-subtle);color:var(--danger);font-weight:650}
.nav-count {margin-left:auto;display:grid;place-items:center;background:var(--surface-subtle);color:white;border-radius:50%;height:19px;min-width:19px;padding:0 4px;font-size:var(--font-caption)}
.sidebar-bottom {border-top:1px solid var(--line);display:flex;gap:8px;align-items:center;margin-top:auto;padding-top:18px;font-size:var(--font-caption);color:var(--muted)}
.sidebar-bottom small {display:block;font-size:var(--font-caption);margin-top:5px;color:var(--muted)}
.sidebar-bottom .icon-button {margin-left:auto;width:30px}
.local-dot {width:6px;height:6px;border-radius:50%;background:var(--surface-subtle);flex-shrink:0}
.app-shell {min-height:100dvh;margin-left:var(--sidebar);display:flex;flex-direction:column;background:var(--surface)}
main {width:100%;max-width:646px;margin:0 auto;flex:1;padding:37px 25px 30px;outline:none}
.desktop-footer {display:flex;justify-content:center;align-items:center;gap:6px;color:var(--muted);font-size:var(--font-caption);padding:15px 0 24px}
.desktop-footer button {font-size:var(--font-caption)}
.desktop-footer svg {width:15px;height:15px}
.mobile-nav {display:none}
.page-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px}
.page-heading>div:first-child {min-width:0}
.page-actions {display:flex;align-items:center;gap:9px}
.eyebrow {color:var(--muted);font-size:var(--font-caption);display:flex;align-items:center;gap:8px;margin-bottom:9px}
.btn {display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid transparent;line-height:1.4;white-space:nowrap}
.btn.text {color:var(--gold);padding-inline:5px}
.btn.small {padding:8px 12px}
.btn.danger {color:var(--danger)}
.btn svg {width:21px;height:21px}
.icon-button {width:38px;height:38px;padding:7px;display:inline-grid;place-items:center}
.icon-button:hover {background:var(--surface-subtle)}
.dashboard-heading {position:relative;padding:2px 11px 0;margin-bottom:23px}
.dashboard-date {display:flex;align-items:center;gap:8px;color:var(--muted);line-height:1.5;margin-bottom:12px}
.dashboard-date svg {width:19px;height:19px}
.dashboard-heading h1 {font-size:30px;letter-spacing:-.6px}
.notification-button {position:absolute;right:7px;top:-2px;color:var(--muted)}
.notification-button svg {height:27px;width:27px}
.notification-dot {position:absolute;right:7px;top:5px;border-radius:50%;width:8px;height:8px;background:var(--surface-subtle);border:1.5px solid var(--line)}
.gold-hero-heading {position:relative;display:flex;align-items:center;gap:10px;justify-content:space-between;letter-spacing:.2px}
.period-badge,.comparison {font-size:var(--font-caption);background:var(--surface);color:var(--danger);border-radius:20px;padding:6px 9px;white-space:nowrap;font-weight:600;letter-spacing:0}
.hero-balance {position:relative;display:flex;align-items:baseline;gap:9px;font-family:Arial,sans-serif;font-weight:650;letter-spacing:.2px;z-index:1;font-variant-numeric:tabular-nums}
.hero-currency {font-size:29px;font-weight:500}
.quick-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.quick-action {min-width:0;display:flex;flex-direction:column;align-items:center;padding:17px 4px 15px;border-radius:22px;gap:5px;background:var(--surface);box-shadow:none;border:1px solid var(--line)}
.quick-action>svg {width:33px;height:33px;color:var(--danger);margin-bottom:5px;stroke-width:1.55}
.quick-action strong {font-weight:750;line-height:1.5}
.quick-action>span {color:var(--ink);white-space:nowrap}
.pending-entry {width:100%;display:flex;align-items:center;gap:14px;margin-top:14px;padding:15px 17px;background:var(--surface);box-shadow:none;border-radius:22px;text-align:left;border:1px solid var(--line)}
.pending-entry-icon {color:var(--muted);display:flex}
.pending-entry-icon svg {width:28px;height:32px;stroke-width:1.65}
.pending-entry-text {display:grid;gap:5px;flex:1;min-width:0}
.pending-entry-text strong {font-weight:700}
.pending-entry-text>span {color:var(--muted)}
.pending-entry>svg {width:21px;height:21px}
.red-count {display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:50%;color:white;font-size:var(--font-caption);background:var(--surface);box-shadow:none;font-family:Arial,sans-serif;line-height:1;font-weight:500;flex-shrink:0}
.red-count.small {padding:0 4px}
.sample-note {display:flex;justify-content:center;gap:10px;font-size:var(--font-caption);color:var(--muted);margin-top:20px;align-items:center}
.sample-note button {font-size:var(--font-caption);color:var(--muted);padding:5px}
.search {position:relative;margin-bottom:15px}
.search>svg {position:absolute;left:15px;top:12px;width:20px;height:20px;color:var(--muted);pointer-events:none}
.search input {width:100%;height:44px;border:0;border-radius:25px;padding:10px 14px 10px 43px;background:var(--surface);box-shadow:none;font-size:15px;color:var(--ink)}
.search input::placeholder {color:var(--muted);opacity:1}
.ledger-controls {display:flex;justify-content:space-between;margin-bottom:17px;align-items:center}
.pill-tabs {display:flex;min-width:0}
.pill {display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;border-radius:25px;background:var(--surface);box-shadow:none;min-height:39px;padding:8px 16px;font-size:15px;border:1px solid var(--line);line-height:1.4}
.pill.active {color:white;background:var(--surface);border-color:transparent;box-shadow:none}
.filter-button {gap:6px}
.filter-button svg {width:21px;height:21px}
.filter-button.has-filter {color:var(--danger);background:var(--surface-subtle)}
.filter-button i {width:5px;height:5px;border-radius:50%;background:var(--surface-subtle)}
.filter-field {min-width:0}
.filter-field>label {color:var(--muted);display:block;margin-bottom:8px}
.filter-field .filter-date {width:100%}
.filter-date {padding:10px 12px;min-height:44px;background:var(--surface);border:1px solid var(--line);border-radius:10px;font-size:15px;max-width:100%}
.active-filter {font-size:var(--font-caption);color:var(--muted);display:flex;align-items:center;gap:9px;margin-bottom:15px}
.active-filter svg {width:15px;height:15px}
.day-heading {font-weight:400;color:var(--muted);margin:16px 6px 8px}
.purchase-day:first-child .day-heading {margin-top:0}
.purchase-day-rows {display:grid;gap:10px}
.purchase-item {width:100%;display:flex;gap:12px;align-items:center;text-align:left;min-height:83px;padding:15px 14px;background:var(--surface);border-radius:21px;box-shadow:none;border:1px solid var(--line);transition:none}
.purchase-item:hover,.supplier-item:hover {background:var(--surface)}
.supplier-avatar {height:46px;width:46px;border-radius:50%;background:var(--surface);color:var(--danger);display:inline-grid;place-items:center;flex-shrink:0;font-size:24px;font-weight:550;line-height:1}
.supplier-avatar.rose {background:var(--surface-subtle);color:var(--danger)}
.purchase-main {flex:1;min-width:0;display:grid;gap:8px}
.purchase-title {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px;line-height:1.4}
.purchase-title strong {font-weight:700;overflow-wrap:anywhere}
.purchase-title>span {font-size:var(--font-caption);color:var(--muted);white-space:nowrap}
.purchase-product {line-height:1.5;overflow-wrap:anywhere}
.purchase-value {display:grid;gap:5px;justify-items:end;flex-shrink:0}
.purchase-value b {font:650 16px Arial,sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}
.status {display:inline-flex;align-items:center;justify-content:center;border-radius:18px;white-space:nowrap;line-height:1.3}
.status.pending {background:var(--surface)}
.status.complete {background:var(--surface)}
.row-chevron {display:inline-flex;flex-shrink:0}
.row-chevron svg {height:20px;width:15px}
.ledger-footer {display:flex;gap:12px;justify-content:space-between;align-items:start;font-size:var(--font-caption);color:var(--muted);line-height:1.8;margin:20px 4px 0}
.ledger-footer>span {min-width:0}
.ledger-footer button {font-size:var(--font-caption);white-space:nowrap;color:var(--muted);padding:0}
.ledger-footer svg {height:14px;width:14px;margin-right:3px}
.supplier-filters {display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:0 1px 6px;margin:1px -1px 11px}
.supplier-filters::-webkit-scrollbar {display:none}
.supplier-filters .pill {flex-shrink:0}
.supplier-list {display:grid;gap:11px}
.supplier-item {align-items:center;gap:12px;text-align:left;width:100%;background:var(--surface);border-radius:21px;padding:16px 14px;box-shadow:none;min-height:103px;border:1px solid var(--line)}
.supplier-info {flex:1;min-width:0}
.supplier-title {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 9px;line-height:1.45}
.supplier-title strong {font-weight:700;overflow-wrap:anywhere}
.supplier-title>span {font-size:var(--font-caption);color:var(--muted);white-space:nowrap}
.supplier-contact {display:grid;gap:5px;margin-top:6px;color:var(--muted)}
.supplier-contact>span {display:flex;gap:5px;align-items:start;line-height:1.4;font-size:var(--font-caption);overflow-wrap:anywhere}
.supplier-contact>span:first-child {white-space:nowrap}
.supplier-contact svg {width:14px;height:16px;margin-top:1px;color:var(--muted)}
.supplier-transaction {display:grid;align-self:start;text-align:right;padding-top:1px;flex-shrink:0}
.supplier-transaction>span {color:var(--muted)}
.supplier-transaction>b {font:650 16px Arial,sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}
.month-picker {position:relative;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:24px;padding:10px 13px;background:var(--surface);box-shadow:none;font-size:var(--font-caption);font-weight:650;white-space:nowrap;min-height:40px;cursor:pointer}
.month-picker>svg {transform:rotate(90deg);height:16px;width:16px}
.month-picker>input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;box-sizing:border-box}
.month-picker input::-webkit-calendar-picker-indicator {position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
.segmented {display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface);border-radius:28px;margin:0 8px 17px;min-height:41px;padding:0}
.segmented>button {color:var(--muted);border-radius:28px;padding:10px 9px;line-height:1.3;position:relative}
.segmented>button+button:before {content:"";height:16px;width:1px;background:var(--surface-subtle);position:absolute;left:0;top:13px}
.segmented>button.active {color:white;background:var(--surface);font-weight:600;box-shadow:none}
.segmented>button.active:before,.segmented>button.active+button:before {display:none}
.expense-panel {padding:18px 17px 13px;border-radius:22px;background:var(--surface);box-shadow:none;border:1px solid var(--line);margin-bottom:12px}
.section-heading {display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.section-heading>span {white-space:nowrap}
.section-heading b {font-weight:550;font-family:Arial,sans-serif}
.expense-structure {display:grid;grid-template-columns:minmax(0,45%) minmax(0,1fr);gap:15px;align-items:center;margin-top:3px}
.donut-chart {position:relative;width:100%;aspect-ratio:1}
.donut-chart>svg {height:100%;width:100%;display:block;overflow:visible}
.donut-center {position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;pointer-events:none}
.donut-center>b {font-family:Arial,sans-serif;white-space:nowrap;font-weight:650;letter-spacing:-.3px}
.expense-legend {list-style:none;margin:0;padding:0;display:grid}
.expense-legend>li {align-items:center;gap:7px;min-width:0;font-size:var(--font-caption);line-height:1.4}
.legend-dot {height:11px;width:11px;border-radius:50%;flex-shrink:0}
.expense-legend li>span:nth-child(2) {flex:1;white-space:nowrap}
.expense-legend b {font-family:Arial,sans-serif;font-size:var(--font-caption);font-weight:500;white-space:nowrap}
.report-entry {display:flex;align-items:center;gap:16px;padding:16px 20px;min-height:55px;width:100%;text-align:left;border-radius:21px;background:var(--surface);border:1px solid var(--line);box-shadow:none}
.report-entry>svg:first-child {color:var(--danger);width:25px;height:25px}
.report-entry>strong {flex:1}
.report-entry>svg:last-child {width:18px;height:18px}
.weekly-panel {border-radius:21px;background:var(--surface);padding:20px;margin-bottom:13px;box-shadow:none}
.weekly-legend {display:flex;justify-content:end;gap:15px;margin-top:15px;color:var(--muted)}
.weekly-legend>span {display:flex;gap:5px;align-items:center}
.weekly-legend i {width:8px;height:8px;border-radius:50%;background:var(--surface-subtle)}
.weekly-legend>span+span i {background:var(--surface-subtle)}
.weekly-chart {display:flex;gap:15px;align-items:end;border-bottom:1px solid var(--line);margin-top:10px;padding:0 8px 26px}
.weekly-column {flex:1;min-width:0;position:relative}
.weekly-bars {height:145px;display:flex;align-items:end;justify-content:center;gap:6px}
.weekly-bars>div {width:16px;border-radius:5px 5px 0 0}
.weekly-income {background:var(--surface)}
.weekly-expense {background:var(--surface)}
.weekly-column>span {position:absolute;left:0;right:0;text-align:center;font-size:var(--font-caption);white-space:nowrap;color:var(--muted)}
.chart-data-table {display:grid;font-size:var(--font-caption);margin-top:17px;color:var(--muted)}
.chart-data-table>div {display:grid;padding:7px 0;border-bottom:1px solid var(--line)}
.chart-data-table b {font-family:Arial,sans-serif;font-size:var(--font-caption);font-weight:500;text-align:right}
.account-detail-tools {display:flex;align-items:center;margin:7px 0 15px}
.account-detail-tools>div:last-child {display:flex;gap:5px}
.account-detail-list {display:grid;gap:10px;margin-bottom:16px}
.account-row {display:flex;align-items:center;text-align:left;padding:16px 13px;width:100%;border:1px solid var(--line)}
.account-icon {display:grid;place-items:center;flex-shrink:0}
.account-icon svg {width:23px;height:23px}
.account-info {display:grid;flex:1;min-width:0}
.account-info>strong {font-weight:600}
.account-info>span {color:var(--muted);overflow-wrap:anywhere}
.linked-mark {color:var(--muted);margin-left:5px;display:inline-flex;vertical-align:middle}
.linked-mark svg {width:13px;height:13px}
.account-amount {text-align:right;display:grid;gap:7px;flex-shrink:0}
.account-amount b {font-family:Arial,sans-serif;font-size:15px;white-space:nowrap;font-weight:550}
.account-amount>span {color:var(--muted)}
.income-text {color:var(--muted)}
.expense-text {color:var(--muted)}
.panel {border-radius:21px;background:var(--surface);box-shadow:none;overflow:hidden}
.settings-section {padding:23px 20px;border-bottom:1px solid var(--line)}
.settings-section:last-child {border-bottom:0}
.settings-section h3 {display:flex;align-items:center;gap:8px;font-size:17px}
.settings-section h3 svg {height:20px;width:20px;color:var(--gold)}
.settings-section p {font-size:var(--font-caption);color:var(--muted);line-height:1.8;margin-top:11px}
.settings-options {display:grid;gap:22px;margin-top:23px}
.settings-option {min-width:0}
.settings-option>label {display:flex;align-items:center;gap:8px;font-size:15px;color:var(--muted);margin-bottom:9px}
.settings-option>label svg {width:18px;height:18px;color:var(--muted)}
.empty {text-align:center;color:var(--muted);padding:49px 15px;line-height:1.9;font-size:var(--font-caption)}
.empty>svg {margin:0 auto 13px;height:32px;width:32px;color:var(--muted)}
.toast {position:fixed;bottom:30px;left:calc(50% + var(--sidebar)/2);transform:translate(-50%,12px);opacity:0;z-index:100;padding:13px 20px;max-width:90vw;width:max-content;pointer-events:none;transition:none;text-align:center}
.toast.visible {opacity:1;transform:translate(-50%,0)}
dialog {border:0;border-radius:23px;padding:0;width:min(650px,calc(100% - 36px));max-height:90dvh;color:var(--ink);background:var(--surface);box-shadow:none}
dialog::backdrop {background:var(--surface-subtle);backdrop-filter:blur(4px)}
.modal-header {display:flex;align-items:center;gap:15px;padding:23px 25px;border-bottom:1px solid var(--line)}
.modal-header h2 {font-size:21px}
.modal-body {padding:23px 25px}
.modal-footer {display:flex;align-items:center;justify-content:space-between;gap:13px;padding:17px 25px;border-top:1px solid var(--line);background:var(--surface);position:sticky;bottom:0;z-index:3}
.modal-footer .right {display:flex;justify-content:end;gap:9px;margin-left:auto}
.modal-footer .cell-sub {font-size:var(--font-caption);white-space:nowrap;color:var(--muted)}
.modal-footer .btn {border-radius:13px}
.form-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 17px;margin-bottom:24px}
.field {display:grid;gap:9px;min-width:0;align-content:start}
.field.full,.field:has([data-choice-key="suppliers"]),.field:has([data-choice-key="products"]) {grid-column:1/-1}
.field>label {display:flex;align-items:center;gap:5px;font-size:var(--font-caption);color:var(--muted);line-height:1.5}
.field>label svg {height:17px;width:17px}
.required {color:var(--muted)}
.field input,.field select,.field textarea {width:100%;min-height:46px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:11px 12px;font-size:16px}
.field textarea {resize:vertical;min-height:80px;line-height:1.6}
.field input::placeholder,.field textarea::placeholder {color:var(--muted)}
.field small {font-size:var(--font-caption);color:var(--muted);line-height:1.6}
.input-unit {position:relative}
.input-unit input {padding-right:65px}
.input-unit>span {position:absolute;right:11px;top:15px;font-size:var(--font-caption);color:var(--muted);pointer-events:none}
.form-section-title {display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:19px}
.form-section-title>b {display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600}
.form-section-title>b svg {height:19px;width:19px;color:var(--muted)}
.form-section-title>span {font-size:var(--font-caption);color:var(--muted)}
.form-total {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px;font-size:var(--font-caption);color:var(--muted)}
.form-total b {font:500 29px Arial,sans-serif;color:var(--muted)}
.form-error {color:var(--danger);font-size:var(--font-caption);line-height:1.8;margin:17px 0 0;display:none}
.choice-control {min-width:0}
.choice-row {display:flex;gap:4px;align-items:center;min-width:0}
.select-wrap {position:relative;min-width:0;flex:1}
.select-wrap:after {content:"";width:6px;height:6px;border-bottom:1.5px solid var(--line);border-right:1.5px solid var(--line);transform:rotate(45deg);position:absolute;right:13px;top:17px;pointer-events:none}
select {appearance:none;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:11px 32px 11px 11px;font-size:15px;min-height:44px;max-width:100%;width:100%;text-overflow:ellipsis}
.choice-manage {color:var(--muted);width:30px;height:44px;padding:5px;flex-shrink:0}
.choice-manage svg {width:17px;height:17px}
.choice-custom-row {display:flex;align-items:center;gap:2px;min-width:0}
.choice-custom-row input {width:0;flex:1;min-width:0;min-height:45px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px;font-size:16px}
.choice-custom-row .icon-button {width:28px;height:43px;padding:4px;color:var(--muted);flex-shrink:0}
.choice-custom-row .icon-button svg {width:18px;height:18px}
.unit-factor-label {display:flex;align-items:center;gap:6px;font-size:var(--font-caption);color:var(--muted);margin-top:10px;flex-wrap:wrap}
.unit-factor-label input {width:75px;min-height:35px;padding:6px!important;font-size:15px!important;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.choice-management {border-top:1px solid var(--line);padding-top:10px;margin-top:12px;max-height:255px;overflow-y:auto;overflow-x:hidden;min-width:0}
.choice-manager-head {display:flex;align-items:center;justify-content:space-between;font-size:var(--font-caption);font-weight:550}
.choice-manager-head button {padding:4px;display:grid;place-items:center;color:var(--muted)}
.choice-manager-head svg {height:15px;width:15px}
.choice-hint {line-height:1.6!important;color:var(--muted)!important;margin:5px 0 8px!important}
.option-editor {display:flex;align-items:center;gap:3px;border-top:1px solid var(--line);min-height:42px;padding:6px 0}
.option-editor-name {flex:1;min-width:0;font-size:var(--font-caption);overflow-wrap:anywhere}
.option-editor .icon-button {width:28px;height:32px;padding:4px;flex-shrink:0;color:var(--muted)}
.option-editor .icon-button svg {width:16px;height:16px}
.option-editor .remove-choice {color:var(--muted)}
.option-edit-fields {flex:1;min-width:0;display:grid;gap:6px}
.option-edit-fields input {width:100%;padding:7px!important;font-size:15px!important;min-height:44px!important;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.option-edit-fields label {display:flex;align-items:center;gap:7px;font-size:var(--font-caption);color:var(--muted)}
.option-edit-fields label input {width:75px}
.upload-zone {display:block;cursor:pointer;text-align:center;background:var(--surface);border:1px dashed var(--line);border-radius:12px;padding:20px;color:var(--muted)}
.upload-zone>svg {display:block;height:25px;width:25px;margin:0 auto 8px}
.upload-zone>span {display:block;font-size:var(--font-caption)}
.upload-zone>small {display:block;font-size:var(--font-caption);margin-top:6px}
.photo-grid {display:flex;gap:11px;flex-wrap:wrap;margin-top:11px}
.photo-item {position:relative}
.photo-item img {height:80px;width:80px;object-fit:cover;border-radius:10px;cursor:pointer}
.photo-preview {display:block;padding:0;border-radius:10px}
.photo-preview img {display:block}
.photo-item.photo-expanded {width:100%}
.photo-expanded>.photo-preview {width:100%}
.photo-expanded img {width:100%;height:auto;max-height:50vh;object-fit:contain;background:var(--surface)}
.photo-item [data-action="remove-photo"] {position:absolute;top:-6px;right:-6px;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:50%;width:30px;height:30px;padding:0;font-size:19px;line-height:1}
.large-photo {display:block;margin:auto;max-width:100%;max-height:66dvh}
.detail-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:23px 19px;margin:0 0 24px}
.detail-grid>div.full {grid-column:1/-1}
.detail-grid dt {font-size:var(--font-caption);color:var(--muted);margin-bottom:8px}
.detail-grid dd {margin:0;font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.detail-amount {display:flex;justify-content:space-between;align-items:center;padding:19px 0;border-block:1px solid var(--line);margin-bottom:21px;font-size:var(--font-caption);color:var(--muted)}
.detail-amount strong {font:550 29px Arial,sans-serif;color:var(--muted)}
.confirmation {font-size:16px;line-height:1.9}
.cell-sub {font-size:var(--font-caption);color:var(--muted)}
.report-balance {display:grid;gap:11px;padding-bottom:23px;border-bottom:1px solid var(--line)}
.report-balance>span {font-size:var(--font-caption);color:var(--muted)}
.report-balance>strong {font:550 35px Arial,sans-serif}
.report-facts {display:grid;grid-template-columns:1fr 1fr;gap:21px;margin:23px 0}
.report-facts dt {font-size:var(--font-caption);color:var(--muted);margin-bottom:7px}
.report-facts dd {margin:0;font-size:16px;font-variant-numeric:tabular-nums}
.report-category-heading {margin:28px 0 10px;font-size:16px}
.report-category {display:flex;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line);font-size:var(--font-caption)}
.report-category>b {font-family:Arial,sans-serif;font-weight:500}
.report-note {font-size:var(--font-caption);color:var(--muted);line-height:1.9;margin-top:21px}
.supplier-detail-title {display:flex;align-items:center;gap:15px;margin-bottom:29px}
.supplier-detail-title h3 {font-size:20px;margin-bottom:6px}
.supplier-detail-title>div>span {font-size:var(--font-caption);color:var(--muted)}
.detail-supplier-amount {font-family:Arial,sans-serif;font-size:26px!important;color:var(--muted)}
@media(min-width:1100px) {
main {padding-top:45px}
.hero-balance {font-size:54px}
.gold-hero-heading {font-size:19px}
.dashboard-heading h1 {font-size:34px}
.quick-action {padding:21px 4px 19px;gap:7px}
.quick-action strong {font-size:20px}
.quick-action>span {font-size:var(--font-caption)}
.quick-action svg {height:38px;width:38px}
.pending-entry {padding-block:20px}
.purchase-item {min-height:96px;padding-inline:19px}
.supplier-item {min-height:115px;padding-inline:19px}
.purchase-title strong,.supplier-title strong {font-size:17px}
.supplier-contact>span:last-child {font-size:var(--font-caption)}
.supplier-transaction>b,.purchase-value>b {font-size:18px}
.expense-structure {grid-template-columns:44% 1fr;gap:24px}
.expense-panel {padding:24px 23px 20px}
.expense-legend>li,.expense-legend b {font-size:17px}
.donut-center>b {font-size:19px}
.donut-center>span {font-size:16px}
.section-heading h2 {font-size:20px}
.section-heading>span {font-size:16px}
.report-entry {padding-block:20px}
.report-entry strong {font-size:19px}
}
@media(max-width:760px) {
:root {--sidebar:0px}
.sidebar,.desktop-footer {display:none}
.app-shell {margin:0;min-height:100dvh}
.mobile-nav {position:fixed;inset:auto 0 0;display:flex;justify-content:space-around;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:9px 10px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(14px)}
.mobile-nav .nav-link {flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;border-radius:0;padding:1px 3px;font-size:var(--font-caption);line-height:1.4;position:relative;color:var(--muted);min-height:46px}
.mobile-nav .nav-link svg {height:24px;width:24px;stroke-width:1.7}
.mobile-nav .nav-link.active {background:transparent;color:var(--danger);font-weight:650}
.mobile-nav .nav-count {display:none}
main {padding:28px 16px calc(91px + env(safe-area-inset-bottom));max-width:540px}
h1 {font-size:28px}
.page-heading {margin:1px 10px 19px}
.page-heading .btn {min-height:39px;padding:9px 15px;font-size:15px}
.dashboard-heading {padding:3px 10px 0;margin-bottom:23px}
.dashboard-heading h1 {font-size:29px}
.dashboard-date {font-size:var(--font-caption);margin-bottom:12px}
.notification-button {right:7px;top:-1px}
.gold-hero-heading {font-size:16px}
.hero-balance {font-size:41px;margin-top:11px;gap:7px}
.hero-currency {font-size:27px}
.period-badge,.comparison {font-size:var(--font-caption);padding:6px 8px}
.quick-actions {gap:11px;margin-top:13px}
.quick-action {border-radius:21px;min-height:109px;padding:14px 3px 12px;gap:3px}
.quick-action svg {width:31px;height:31px;margin-bottom:5px}
.quick-action strong {font-size:17px}
.quick-action>span {font-size:var(--font-caption)}
.pending-entry {margin-top:13px;padding:14px 16px;gap:12px;min-height:72px}
.pending-entry-text strong {font-size:17px}
.pending-entry-text>span {font-size:var(--font-caption)}
.pending-entry-icon svg {width:26px;height:29px}
.pending-entry .red-count {height:23px;min-width:23px;font-size:var(--font-caption)}
.sample-note {margin-top:15px;font-size:var(--font-caption)}
.sample-note button {font-size:var(--font-caption)}
.search {margin-inline:10px;margin-bottom:14px}
.search input {font-size:15px;height:43px}
.search>svg {left:14px;top:11px}
.ledger-controls {gap:9px;margin:0 10px 18px}
.pill-tabs {gap:10px}
.pill {font-size:var(--font-caption);min-height:37px;padding:8px 14px;gap:4px}
.filter-button {padding-inline:12px;gap:5px}
.filter-button svg {height:20px;width:20px}
.purchase-item {gap:11px;padding:14px 12px;min-height:81px;border-radius:20px}
.supplier-avatar {width:45px;height:45px;font-size:24px}
.purchase-main {gap:7px}
.purchase-title {gap:3px 7px}
.purchase-title strong {font-size:15px}
.purchase-title>span {font-size:var(--font-caption)}
.purchase-product {font-size:var(--font-caption);line-height:1.6}
.purchase-value>b {font-size:15px}
.purchase-value {gap:5px}
.status {font-size:var(--font-caption);padding:4px 9px}
.row-chevron svg {width:14px;height:19px}
.day-heading {margin:15px 10px 7px;font-size:var(--font-caption)}
.purchase-day-rows {gap:10px}
.ledger-footer {font-size:var(--font-caption);margin-top:19px;margin-inline:6px;gap:10px}
.ledger-footer button {font-size:var(--font-caption)}
.filter-date {font-size:var(--font-caption);padding:10px}
.supplier-filters {margin-inline:9px;gap:10px;margin-bottom:9px}
.supplier-filters .pill {font-size:var(--font-caption);padding-inline:15px}
.supplier-item {gap:11px;padding:14px 12px;border-radius:20px;min-height:99px}
.supplier-list {gap:11px}
.supplier-title {gap:3px 7px}
.supplier-title strong {font-size:15px}
.supplier-title>span {font-size:var(--font-caption)}
.supplier-contact {gap:4px;margin-top:5px}
.supplier-contact>span {font-size:var(--font-caption);line-height:1.45}
.supplier-contact>span:first-child {font-size:var(--font-caption)}
.supplier-contact svg {height:14px;width:13px}
.supplier-transaction {gap:9px}
.supplier-transaction>span {font-size:var(--font-caption)}
.supplier-transaction>b {font-size:15px}
.month-picker {font-size:var(--font-caption);min-height:37px;padding:9px 11px;gap:7px}
.month-picker>svg {height:14px;width:14px}
.segmented {margin:0 10px 16px;min-height:39px}
.segmented>button {font-size:15px;padding:10px 8px}
.expense-panel {padding:17px 16px 13px;border-radius:21px}
.section-heading h2 {font-size:17px}
.section-heading>span {font-size:var(--font-caption)}
.expense-structure {gap:11px;grid-template-columns:45% minmax(0,1fr);margin-top:4px}
.expense-legend {gap:10px}
.expense-legend>li {font-size:var(--font-caption);gap:6px}
.expense-legend b {font-size:var(--font-caption)}
.legend-dot {width:10px;height:10px}
.donut-center b {font-size:var(--font-caption)}
.donut-center>span {font-size:var(--font-caption)}
.report-entry {border-radius:20px;padding:15px 19px;gap:15px;min-height:54px}
.report-entry>strong {font-size:16px}
.report-entry>svg:first-child {width:24px;height:24px}
.account-detail-tools {margin-inline:7px}
.account-detail-tools .btn {font-size:var(--font-caption);padding-inline:10px}
.account-detail-tools .btn svg {width:15px;height:15px}
.account-row {gap:9px;padding:15px 12px}
.account-info>strong {font-size:var(--font-caption)}
.account-amount>b {font-size:var(--font-caption)}
.account-info>span {font-size:var(--font-caption)}
.account-icon {width:32px;height:36px}
.account-icon svg {height:21px;width:21px}
.toast {bottom:calc(89px + env(safe-area-inset-bottom));font-size:var(--font-caption);padding:12px 17px}
.settings-section {padding:22px 19px}
.settings-section h3 {font-size:17px}
.settings-options {gap:22px}
.settings-option>label {font-size:var(--font-caption)}
dialog {width:100%;max-width:100%;margin:auto 0 0;max-height:94dvh;border-radius:23px 23px 0 0}
.modal-header {padding:20px}
.modal-header h2 {font-size:20px}
.modal-body {padding:22px 20px}
.modal-footer {padding:15px 20px calc(15px + env(safe-area-inset-bottom));gap:10px}
.modal-footer .btn {font-size:var(--font-caption);padding-inline:15px;min-height:44px}
.modal-footer .right {gap:8px}
.modal-footer .right .primary {flex:1}
.modal-footer .cell-sub {font-size:var(--font-caption)}
.form-grid {gap:20px 13px}
.form-total b {font-size:28px}
.detail-grid {gap:22px 16px}
.detail-grid dd {font-size:15px}
.choice-management {max-height:230px}
.choice-manage {width:28px}
.choice-custom-row .icon-button {width:26px}
.report-facts {gap:20px 12px}
.report-facts dd {font-size:15px}
.report-balance>strong {font-size:33px}
.report-note {font-size:var(--font-caption)}
}
@media(max-width:370px) {
main {padding-inline:12px}
h1 {font-size:26px}
.page-heading {margin-inline:8px;gap:8px}
.page-heading .btn {padding-inline:13px;font-size:var(--font-caption)}
.dashboard-heading {padding-inline:8px}
.dashboard-heading h1 {font-size:27px}
.quick-action strong {font-size:16px}
.quick-action>span {font-size:var(--font-caption)}
.pill {font-size:var(--font-caption);padding-inline:12px}
.filter-button {gap:4px}
.filter-button svg {height:18px;width:18px}
.supplier-avatar {height:40px;width:40px;font-size:22px}
.purchase-item,.supplier-item {padding-inline:10px;gap:9px}
.supplier-title>span {font-size:var(--font-caption)}
.month-picker {font-size:var(--font-caption);gap:5px;padding-inline:10px}
.expense-panel {padding-inline:13px}
.expense-legend>li,.expense-legend b {font-size:var(--font-caption)}
.section-heading>span {font-size:var(--font-caption)}
.form-grid {column-gap:11px}
.modal-body {padding-inline:17px}
.account-icon {display:none}
.account-detail-tools {gap:8px}
}
.supplier-item {display:grid;grid-template-columns:42px minmax(0,1fr) 15px;column-gap:11px;row-gap:8px}
.supplier-item>.supplier-avatar {grid-column:1;grid-row:1;align-self:center}
.supplier-title {grid-column:2;grid-row:1;align-self:center;min-width:0}
.supplier-item>.row-chevron {grid-column:3;grid-row:1;align-self:center}
.supplier-contact {grid-column:2/-1;grid-row:2;gap:4px;margin-top:0}
.supplier-contact>span:first-child {white-space:normal}
.supplier-transaction {grid-column:2/-1;grid-row:3;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;text-align:left;padding-top:8px;border-top:1px solid #65513a22}
.supplier-transaction>span {display:flex;flex-wrap:wrap;gap:2px 9px}
.supplier-transaction small {color:var(--muted);font-size:var(--font-caption)}
.supplier-transaction>b {max-width:100%;margin-inline-start:auto;text-align:right;white-space:normal;overflow-wrap:anywhere}
.supplier-title strong {font-size:16px}
.purchase-title strong {font-size:16px}
.purchase-value>b {font-size:16px}
.nav-link,.btn,.pill,.quick-action,.pending-entry,.purchase-item,.supplier-item,.report-entry {-webkit-user-select:none;user-select:none}
.quick-action:active,.pending-entry:active,.purchase-item:active,.supplier-item:active,.report-entry:active {filter:brightness(.985)}
@media(max-width:370px) {
.supplier-item {grid-template-columns:40px minmax(0,1fr) 13px;column-gap:8px}
.supplier-title strong {font-size:15px}
.supplier-transaction>span {font-size:var(--font-caption)}
.purchase-title strong {font-size:15px}
.purchase-product {font-size:var(--font-caption)}
.purchase-value>b {font-size:15px}
}
.supplier-filters .pill {padding-inline:12px;gap:4px}
@media(max-width:370px) {
.supplier-filters {gap:8px}
.supplier-filters .pill {font-size:var(--font-caption);padding-inline:11px}
}
@media(prefers-reduced-motion:reduce) {
* {transition:none;scroll-behavior:auto!important}
}
.choice-control {position:relative}
.choice-row {width:100%}
.choice-native,.field .choice-native {position:absolute!important;left:2px;top:2px;width:1px!important;height:1px!important;min-height:0!important;max-height:1px!important;padding:0!important;border:0!important;opacity:0;pointer-events:none}
.choice-trigger {width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:12px 13px;font-size:16px;text-align:left;line-height:1.4}
.choice-trigger>span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.choice-trigger>svg {height:15px;width:15px;transform:rotate(90deg);color:var(--muted)}
.choice-trigger.is-placeholder {color:var(--muted)}
.choice-trigger[aria-expanded="true"] {border-color:var(--line);box-shadow:none}
.choice-trigger[aria-expanded="true"]>svg {transform:rotate(-90deg)}
.choice-menu {position:absolute;top:calc(100% + 7px);left:0;z-index:75;min-width:0;max-width:calc(100vw - 36px);overflow-y:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:none;padding:5px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.choice-menu.opens-up {top:auto;bottom:calc(100% + 7px)}
.choice-menu .choice-management {max-height:none;overflow:visible;border:0;padding:5px 7px;margin:0}
.choice-menu .choice-manager-head {font-size:var(--font-caption);padding:2px 0 6px}
.choice-menu .choice-manager-head>button {font-size:var(--font-caption);color:var(--muted);padding:8px 2px}
.choice-menu .choice-hint {margin:1px 0 7px!important}
.choice-items {display:grid;gap:2px}
.menu-option {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 11px;border-radius:9px;text-align:left;font-size:15px;line-height:1.5;width:100%}
.menu-option>span {overflow-wrap:anywhere;min-width:0}
.menu-option>svg {width:18px;height:18px;color:var(--muted)}
.menu-option:hover {background:var(--surface)}
.menu-option.is-selected {color:var(--accent);font-weight:650}
.choice-menu-footer {display:flex;gap:4px;border-top:1px solid var(--line);padding:7px 4px 3px;background:var(--surface);position:sticky;bottom:-5px;margin-top:5px;z-index:2}
.choice-menu-footer>button {display:flex;gap:5px;align-items:center;color:var(--muted);padding:8px 5px;white-space:nowrap}
.choice-menu-footer svg {height:15px;width:15px}
.choice-menu .option-editor .icon-button {width:34px;min-height:37px}
.choice-menu .option-editor .icon-button svg {height:18px;width:18px}
.field:has(.choice-menu:not([hidden])),.filter-field:has(.choice-menu:not([hidden])),.settings-option:has(.choice-menu:not([hidden])) {position:relative;z-index:20}
.quick-contact {margin:3px 0 17px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.quick-contact>summary {list-style:none;display:flex;gap:8px;align-items:center;padding:15px 0;cursor:pointer;font-size:var(--font-caption);color:var(--muted);min-height:50px}
.quick-contact>summary::-webkit-details-marker {display:none}
.quick-contact>summary>svg {height:17px;width:17px}
.quick-contact>summary>span {margin-left:auto;color:var(--muted);font-size:var(--font-caption)}
.quick-contact>summary>svg:last-child {height:14px;width:14px;transform:rotate(90deg)}
.quick-contact[open]>summary>svg:last-child {transform:rotate(-90deg)}
.quick-contact .contact-fields {margin-top:7px;margin-bottom:18px}
.optional-label {font-size:var(--font-caption);color:var(--muted);margin-left:auto;font-weight:400}
.supplement-banner {display:flex;align-items:start;gap:12px;padding:15px 16px;margin-bottom:23px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--danger)}
.supplement-banner-icon {display:flex;margin-top:2px}
.supplement-banner-icon>svg {height:23px;width:23px;color:var(--muted)}
.supplement-banner>div {flex:1;min-width:0}
.supplement-banner strong {font-size:16px;display:block;font-weight:650}
.supplement-banner #supplement-links {display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--font-caption);line-height:1.8;color:var(--muted);margin-top:6px}
.supplement-banner #supplement-links>button {display:inline-flex;gap:3px;align-items:center;padding:2px 0;font-size:var(--font-caption);text-decoration:underline;text-underline-offset:4px}
.supplement-banner #supplement-links svg {height:12px;width:12px}
.supplement-banner.all-complete {background:var(--surface);border-color:var(--line);color:var(--muted)}
.supplement-banner.all-complete .supplement-banner-icon>svg {color:var(--muted)}
.field[data-completion] {padding:12px 0;transition:none}
.field.pending-field {border:1px solid var(--line);border-radius:12px;padding:12px 11px;background:var(--surface);box-shadow:none}
.field.pending-field>label {font-weight:600;color:var(--danger)}
.field.pending-field input,.field.pending-field .choice-trigger {border-color:var(--line);background:var(--surface)}
.gap-badge {display:none;font-size:var(--font-caption);line-height:1.4;font-weight:500;color:var(--danger);background:var(--surface-subtle);border-radius:5px;padding:3px 5px;margin-left:auto;white-space:nowrap}
.pending-field .gap-badge {display:inline-flex}
.currency-unit,.hero-balance .currency-unit {font-size:16px;font-weight:400;letter-spacing:0;margin-left:1px}
.account-period-range {font-size:var(--font-caption);color:var(--muted);margin:-8px 11px 14px;font-variant-numeric:tabular-nums}
.report-period {font-size:var(--font-caption);color:var(--muted);line-height:1.8;margin-bottom:15px}
.expense-arc {cursor:pointer;transition:none;outline:none}
.expense-arc.is-selected {stroke-width:29}
.expense-arc.is-muted {opacity:.3}
.expense-arc:focus-visible {stroke-width:30;filter:drop-shadow(0 0 2px #6f542d)}
.expense-legend>li {display:block}
.expense-category {display:flex;align-items:center;gap:6px;min-width:0;width:100%;padding:4px 3px;text-align:left;border-radius:6px}
.expense-category>span:nth-child(2) {flex:1;white-space:nowrap}
.expense-category>b {font-family:Arial,sans-serif;font-weight:500;white-space:nowrap}
.expense-category.is-selected {background:var(--surface);color:var(--muted);font-weight:650}
.expense-selection {display:flex;align-items:center;gap:6px;border-top:1px solid var(--line);margin-top:8px;padding-top:10px;min-height:30px;font-size:var(--font-caption);color:var(--muted)}
.expense-selection .legend-dot {height:8px;width:8px}
.expense-selection>strong {font-size:var(--font-caption);color:var(--muted);white-space:nowrap}
.expense-selection>span:not(.legend-dot) {white-space:nowrap}
.expense-selection>button {margin-left:auto;white-space:nowrap;color:var(--muted);font-size:var(--font-caption);padding:3px 0}
.settings-demo-reset {margin:25px 10px 0;padding:5px 0;color:var(--muted)}
.cycle-input-label {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px;color:var(--muted)}
.cycle-input-label>span {display:flex;gap:9px;align-items:center}
.cycle-input-label input {width:79px;min-height:43px;border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:8px 10px;font-size:17px;text-align:center}
.cycle-explanation {font-size:var(--font-caption);color:var(--muted);line-height:1.9;margin-top:14px}
.cycle-preview {display:grid;gap:5px;margin:15px 0 19px;color:var(--muted);line-height:1.7}
.cycle-preview>span {font-size:var(--font-caption);color:var(--muted);font-variant-numeric:tabular-nums}
@media(min-width:1100px) {
.expense-category {font-size:16px}
.expense-category>b {font-size:16px}
.expense-legend {gap:7px}
.expense-selection {font-size:var(--font-caption)}
.expense-selection strong,.expense-selection>button {font-size:var(--font-caption)}
.account-period-range {margin-top:-8px;margin-bottom:19px}
.currency-unit,.hero-balance .currency-unit {font-size:19px}
}
@media(max-width:760px) {
.choice-menu {border-radius:13px}
.choice-menu .choice-management {padding-inline:5px}
.menu-option {font-size:15px}
.field[data-completion] {padding-block:11px}
.field.pending-field {padding:11px 9px}
.field.pending-field>label {flex-wrap:wrap;gap:5px}
.gap-badge {font-size:var(--font-caption);padding:3px 4px}
.field.pending-field .input-unit input {padding-right:56px;padding-left:10px}
.field.pending-field .choice-trigger {padding-inline:10px}
.field.pending-field .input-unit>span {right:8px;font-size:var(--font-caption)}
.supplement-banner {padding:14px 13px;margin-bottom:22px;gap:10px}
.supplement-banner strong {font-size:16px}
.cycle-input-label {font-size:var(--font-caption)}
.cycle-input-label input {font-size:16px}
.expense-category {font-size:var(--font-caption);padding-block:5px}
.expense-category>b {font-size:var(--font-caption)}
.expense-selection {font-size:var(--font-caption);gap:5px}
.expense-selection>strong,.expense-selection>button {font-size:var(--font-caption)}
.account-period-range {margin-top:-8px;margin-bottom:13px;font-size:var(--font-caption)}
.currency-unit,.hero-balance .currency-unit {font-size:15px}
}
@media(max-width:370px) {
.field.pending-field {padding-inline:8px}
.field.pending-field>label {font-size:var(--font-caption)}
.gap-badge {font-size:var(--font-caption)}
.choice-trigger {padding-inline:11px}
.pending-field .choice-trigger {font-size:15px;gap:5px}
.expense-selection {gap:4px;font-size:var(--font-caption)}
.expense-selection>strong,.expense-selection>button {font-size:var(--font-caption)}
}
.form-total b.is-empty {font-family:inherit;font-size:15px;font-weight:400;color:var(--muted)}
form[data-mode="quick"] .field:has([name="date"]) {grid-column:1/-1}
.weekly-chart {height:200px;padding-bottom:39px}
.weekly-column>span {bottom:-37px;line-height:1.4}
@media(max-width:760px) {
.form-grid:has([data-completion]) {grid-template-columns:minmax(0,1fr);gap:14px}
.field[data-completion],.field.pending-field {padding:13px 12px}
.field[data-completion]>label {gap:8px;flex-wrap:nowrap}
.pending-field .gap-badge {font-size:var(--font-caption);padding:3px 6px}
.field.pending-field>label {font-size:var(--font-caption)}
.form-total b.is-empty {font-size:var(--font-caption)}
}
.page-heading h1,.dashboard-heading h1 {font-size:28px;line-height:1.4}
.page-heading .btn {font-size:16px}
.btn.small {font-size:15px;min-height:42px}
.btn.small svg {height:18px;width:18px}
.search input,.field>label,.settings-option>label,.choice-trigger,.menu-option,.choice-custom-row input,.field input,.field textarea,.field select {font-size:16px}
.choice-trigger {min-height:49px}
.purchase-title strong,.supplier-title strong {line-height:1.5}
.purchase-product {font-size:16px}
.purchase-title>span,.supplier-title>span {font-size:var(--font-caption)}
.supplier-contact>span:first-child {font-size:16px}
.supplier-contact>span:last-child {font-size:15px}
.supplier-transaction>span {font-size:var(--font-caption)}
.status {font-size:var(--font-caption);padding:5px 10px}
.day-heading {font-size:15px}
.account-info>strong {line-height:1.5}
.account-info>span {font-size:15px;line-height:1.7}
.account-amount>span {font-size:var(--font-caption)}
.account-row {gap:11px}
.account-detail-tools {flex-wrap:wrap;gap:10px}
.account-detail-tools .btn {font-size:15px}
.account-icon {height:40px;width:36px}
.account-info {gap:8px}
.account-period-range,.report-period {font-size:15px;line-height:1.7}
.segmented>button {font-size:17px}
.section-heading h2 {font-size:19px}
.section-heading>span {font-size:15px}
.expense-category,.expense-category>b {font-size:15px}
.expense-category {padding-block:6px}
.expense-legend {gap:2px}
.expense-panel {position:relative}
.expense-tooltip {position:absolute;z-index:25;min-width:185px;max-width:240px;display:grid;gap:5px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;line-height:1.6;pointer-events:none}
.expense-tooltip>strong {display:flex;gap:7px;align-items:center;color:var(--ink);font-size:16px}
.expense-tooltip .legend-dot {width:10px;height:10px}
.expense-tooltip>span {font-variant-numeric:tabular-nums}
.expense-arc:hover {stroke-width:28}
.donut-center>b {font-size:var(--font-caption)}
.donut-center>span {font-size:15px}
.weekly-column>span,.chart-data-table,.chart-data-table b {font-size:var(--font-caption)}
.weekly-legend {font-size:15px}
.chart-data-table>div {grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr);gap:8px}
.chart-data-table span {overflow-wrap:anywhere}
.gold-hero-heading {font-size:18px;font-weight:550;color:var(--muted)}
.hero-balance {font-size:43px;line-height:1.25;margin-top:15px}
.hero-balance.positive {color:var(--ink)}
.hero-balance.negative {color:var(--danger)}
.hero-balance .currency-unit {font-size:17px}
.dashboard-date {font-size:16px}
.quick-action strong {font-size:19px}
.quick-action>span {font-size:15px}
.quick-action {padding-block:17px}
.pending-entry-text strong {font-size:18px}
.pending-entry-text>span {font-size:15px}
.pending-entry {padding-block:17px}
.sample-note,.sample-note button {font-size:var(--font-caption)}
.cycle-explanation,.report-note {font-size:15px}
.cycle-input-label,.cycle-preview>span {font-size:16px}
.cycle-preview {font-size:15px}
.settings-demo-reset {font-size:15px}
.choice-hint {font-size:15px!important}
.choice-menu .option-editor-name {font-size:16px}
.choice-menu-footer>button {font-size:15px;padding-block:10px}
.choice-search {position:sticky;top:-5px;background:var(--surface);padding:7px 6px 10px;z-index:3;display:flex;align-items:center;gap:8px}
.choice-search>span {position:absolute;left:18px;color:var(--muted);pointer-events:none;display:flex}
.choice-search svg {height:18px;width:18px}
.choice-search-input,.field .choice-search-input {width:100%;height:45px;min-height:45px;font-size:16px;padding:10px 10px 10px 37px;border:1px solid var(--line);background:var(--surface);border-radius:10px}
.menu-option {min-height:48px}
.quick-contact>summary,.quick-contact>summary>span,.modal-footer .cell-sub,.optional-label {font-size:15px}
.modal-footer .btn {font-size:16px}
.gap-badge,.pending-field .gap-badge {font-size:var(--font-caption)}
.weight-stepper {display:flex;align-items:stretch;border:1px solid var(--line);border-radius:11px;background:var(--surface);min-width:0;overflow:hidden}
.weight-stepper>button {width:39px;min-width:39px;min-height:47px;font:500 23px Arial,sans-serif;color:var(--muted);display:grid;place-items:center;padding:0}
.weight-stepper>button:active {background:var(--surface)}
.weight-stepper>input,.field .weight-stepper>input {min-width:0;flex:1;width:0;border:0;border-radius:0;padding:10px 1px;text-align:center;font-size:17px;min-height:47px;background:var(--surface);appearance:textfield}
.weight-stepper input::-webkit-inner-spin-button,.weight-stepper input::-webkit-outer-spin-button {-webkit-appearance:none;margin:0}
.report-period-tabs {display:grid;grid-template-columns:1fr 1fr 1fr 1.3fr;gap:6px;margin:0 10px 15px}
.report-period-tabs>button {font-size:16px;min-height:42px;padding:8px 4px;color:var(--muted);border-radius:10px;border:1px solid var(--line);background:var(--surface);white-space:nowrap}
.report-period-tabs>button.active {color:var(--on-accent);background:var(--surface-subtle);border-color:var(--line)}
.report-period-inputs {display:flex;align-items:center;justify-content:space-between;gap:13px;margin:0 10px 16px}
.report-period-inputs label {font-size:15px;color:var(--muted);min-width:0;display:grid;gap:6px}
.report-period-inputs input {width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:9px 10px;font-size:16px;color:var(--ink)}
.report-period-inputs .report-year {width:108px;flex-shrink:0}
.report-period-inputs .month-picker {display:flex;font-size:16px;min-height:44px;gap:8px;color:var(--ink)}
.report-period-inputs .month-picker>input {position:absolute;opacity:0}
.report-period-inputs.custom-range {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.quarter-stepper {display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:0;align-self:end;flex:1;min-height:44px}
.quarter-stepper button {height:42px;width:36px;padding:0;font:500 22px Arial,sans-serif;color:var(--muted)}
.quarter-stepper strong {white-space:nowrap;font-size:16px;font-weight:500}
.account-export {font-size:15px!important;padding-inline:13px!important}
.account-export>svg {height:18px;width:18px}
.report-entry>strong {font-size:18px}
.mobile-nav .nav-link {gap:5px}
.mobile-nav {padding-block-start:10px}
.pill,.supplier-filters .pill {font-size:16px}
.red-count.small {font-size:var(--font-caption);height:22px;min-width:22px}
.ledger-controls {gap:8px;margin-inline:4px}
.pill-tabs {gap:8px}
.pill {padding-inline:13px}
.filter-button {padding-inline:10px}
.ledger-footer,.ledger-footer button {font-size:var(--font-caption)}
.filter-field>label {font-size:15px}
.form-section-title>span,.field small,.upload-zone>small {font-size:var(--font-caption)}
.detail-grid dt,.report-facts dt {font-size:15px}
.detail-grid dd,.report-facts dd {font-size:17px}
body[data-auth="loading"]>.sidebar,body[data-auth="loading"]>.app-shell,body[data-auth="loading"]>.mobile-nav,body[data-auth="login"]>.sidebar,body[data-auth="login"]>.app-shell,body[data-auth="login"]>.mobile-nav {display:none}
.auth-loading {font-size:17px;color:var(--muted);padding:45px 25px;text-align:center}
.auth-page {width:100%;max-width:420px;margin:auto;padding:42px 25px 35px}
.auth-page h1 {margin:17px 0 10px}
.auth-page>p {font-size:16px;color:var(--muted);line-height:1.8}
.auth-symbol {height:48px;width:48px;border-radius:13px;background:var(--surface-subtle);color:var(--muted);display:grid;place-items:center;box-shadow:none}
.auth-symbol svg {height:32px;width:32px}
.auth-tabs {display:grid;grid-template-columns:1fr 1fr;margin:25px 0 22px;background:var(--surface-subtle);border-radius:12px;padding:4px;gap:4px}
.auth-tabs>button {font-size:17px;padding:10px;border-radius:9px;color:var(--muted);min-height:44px}
.auth-tabs>.active {background:var(--surface);color:var(--muted);box-shadow:none}
.auth-page form>label,.auth-page #auth-workspace-fields>label {display:block;font-size:16px;color:var(--muted);margin:16px 0 8px}
.auth-page form>input,.auth-page #auth-workspace-fields>input {width:100%;min-height:49px;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:12px 13px;font-size:17px}
.auth-submit {width:100%;min-height:50px;font-size:18px;margin-top:15px;border-radius:12px}
.auth-page .auth-error {font-size:15px;line-height:1.7;min-height:0;color:var(--danger);margin-top:12px}
.auth-note {font-size:15px!important;margin-top:21px}
.auth-preview {font-size:15px;color:var(--muted);display:block;padding:12px 0;margin-top:7px}
.workspace-mode {border:0;padding:0;margin:22px 0 0;display:flex;flex-wrap:wrap;gap:6px 22px}
.workspace-mode legend {font-size:16px;color:var(--muted);margin-bottom:7px}
.workspace-mode>label {font-size:16px;min-height:42px;display:flex;align-items:center;gap:7px}
.workspace-mode input {accent-color:var(--accent);width:18px;height:18px}
.shared-sync-status {position:fixed;bottom:92px;left:50%;transform:translateX(-50%);max-width:92vw;padding:10px 15px;border:1px solid var(--line);z-index:55;text-align:center}
.shared-members {display:grid;gap:0;margin:15px 0 18px}
.shared-members>span {display:flex;justify-content:space-between;gap:12px;padding:11px 0;font-size:16px;border-bottom:1px solid var(--line)}
.shared-members small {font-size:var(--font-caption);color:var(--muted)}
.join-space-form {margin-top:22px}
.join-space-form>label {font-size:16px;color:var(--muted);display:block;margin-bottom:9px}
.join-space-form>div {display:flex;gap:9px}
.join-space-form input {min-width:0;flex:1;width:0;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:16px;background:var(--surface)}
.workspace-switch {display:grid;gap:9px;margin:20px 0}
.workspace-switch>p {font-size:15px;color:var(--muted)}
.workspace-switch>button {font-size:16px;text-align:left;border-bottom:1px solid var(--line);padding:11px 0;color:var(--muted)}
@media(min-width:761px) {
.shared-sync-status {left:calc(50% + var(--sidebar)/2);bottom:24px}
.auth-page {padding-top:65px}
.hero-balance {font-size:51px}
.report-period-tabs>button {font-size:17px}
.account-info>span {font-size:16px}
.account-info>strong {font-size:18px}
}
@media(max-width:370px) {
.page-heading h1,.dashboard-heading h1 {font-size:26px}
.hero-balance {font-size:38px}
.pill,.supplier-filters .pill {font-size:15px;padding-inline:11px}
.filter-button {padding-inline:8px}
.pill-tabs {gap:6px}
.ledger-controls {margin-inline:2px;gap:6px}
.supplier-contact>span:first-child {font-size:15px}
.supplier-contact>span:last-child {font-size:var(--font-caption)}
.supplier-transaction>b,.purchase-value>b {font-size:17px}
.purchase-item,.supplier-item {column-gap:8px}
.report-period-tabs {margin-inline:5px;gap:5px}
.report-period-tabs>button {font-size:15px}
.report-period-inputs {margin-inline:5px;gap:10px}
.report-period-inputs .report-year {width:100px}
.quarter-stepper strong {font-size:15px}
.account-amount>b {font-size:17px}
.account-info>strong {font-size:16px}
.mobile-nav .nav-link {font-size:var(--font-caption)}
.expense-structure {gap:7px;grid-template-columns:43% minmax(0,1fr)}
.expense-category,.expense-category>b {font-size:var(--font-caption)}
.donut-center>b {font-size:var(--font-caption)}
.donut-center>span {font-size:var(--font-caption)}
.choice-menu-footer>button {font-size:var(--font-caption)}
.modal-footer .btn {font-size:16px;padding-inline:13px}
.weight-stepper>button {width:35px;min-width:35px}
}
.account-info>span,.account-amount>span,.supplier-contact,.supplier-transaction>span,.day-heading,.account-period-range,.cycle-explanation,.quick-contact>summary>span,.field>label,.settings-option>label,.report-note,.report-period,.cycle-preview,.auth-page>p {color:var(--muted)}
.status.pending {color:var(--danger)}
.status.complete {color:var(--muted)}
.sample-note,.sample-note button {color:var(--muted)}
.auth-page h1 {font-size:28px}
#auth-root {position:relative;isolation:isolate;overflow:hidden;min-height:100svh}
.auth-page.auth-screen {width:100%;max-width:470px;min-height:100svh;margin:0 auto;padding:0 0 36px!important;position:relative;z-index:1}
.login-brand {padding:clamp(35px,9svh,90px) 9.5% 0}
.login-mark {display:grid;place-items:center;width:clamp(54px,13.8vw,65px);height:clamp(54px,13.8vw,65px);border-radius:clamp(15px,3.7vw,19px);background:var(--surface);color:var(--on-accent);box-shadow:none}
.login-mark>svg {overflow:visible}
.auth-page.auth-screen .login-brand>h1 {font-family:"Microsoft YaHei","PingFang SC",-apple-system,BlinkMacSystemFont,sans-serif;font-size:clamp(28px,7.23vw,34px);font-weight:700;color:var(--ink);letter-spacing:1px;margin:17px 0 0;padding:0}
.auth-page.auth-screen .login-brand>p {font-size:clamp(14px,3.4vw,16px);font-weight:400;line-height:1.75;letter-spacing:.3px;color:var(--muted);margin:7px 0 0;white-space:nowrap}
.login-form {width:calc(100% - 48px);margin:clamp(25px,5.5svh,48px) auto 0;position:relative}
.auth-fields,.settings-password-form {display:grid;gap:12px}
.sr-only {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.login-field {position:relative;display:flex;align-items:center;width:100%;height:56px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.login-field-icon {position:absolute;z-index:1;left:16px;display:flex;color:var(--muted);pointer-events:none}
.login-field-icon>svg {width:22px;height:23px}
.login-field>input {width:100%;height:100%;min-width:0;min-height:0;font-family:inherit;font-weight:400;line-height:normal;color:var(--ink);background:transparent;border:0;border-radius:inherit;padding:10px 14px 10px 49px;box-shadow:none;outline:none}
.login-field:has(.password-visibility)>input {padding-right:57px}
.login-field>input::placeholder {color:var(--muted);opacity:1;font-weight:400}
.login-field:focus-within {border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.login-field>input:focus {outline:0;box-shadow:none}
.login-field>input:-webkit-autofill {box-shadow:0 0 0 100px var(--surface) inset;-webkit-text-fill-color:var(--ink);caret-color:var(--ink)}
.password-visibility {position:absolute;right:5px;display:grid;place-items:center;width:44px;height:44px;padding:3px;color:var(--muted);border-radius:8px}
.password-visibility>svg {width:23px;height:23px}
.password-visibility:active {background:var(--surface-subtle)}
.auth-page.auth-screen .auth-error {font-size:15px;line-height:1.7;color:var(--danger);margin:13px 4px 0}
.auth-page.auth-screen .auth-error:empty {display:none}
.auth-page.auth-screen .login-submit {width:100%;margin:14px 0 0;min-height:52px;padding:12px 18px;border-radius:14px;border:1px solid var(--accent);color:var(--on-accent);background:var(--accent);box-shadow:none;font-family:inherit;font-size:19px;line-height:1.3;font-weight:600}
.auth-page.auth-screen .login-submit:active {filter:brightness(.98)}
.auth-page.auth-screen .login-submit:hover {filter:brightness(1.025)}
.login-switch {display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;margin:28px auto 0;padding:7px 12px;font-size:17px;line-height:1.5;letter-spacing:.3px;color:var(--muted);font-weight:400}
.login-switch>svg {width:18px;height:18px;stroke-width:1.4}
.auth-screen.auth-register .register-preview {font-size:var(--font-caption);padding:8px 10px;color:var(--muted);margin:5px auto 0}
.auth-screen .login-submit:disabled {cursor:wait;opacity:.68}
@media(min-width:761px) {
.auth-page.auth-screen .login-brand>h1 {font-size:34px}
.auth-page.auth-screen .login-brand>p {font-size:16px}
.login-mark {width:65px;height:65px}
.login-field {height:58px}
.login-field>input {font-size:19px}
}
@media(max-height:700px) {
.auth-page.auth-screen .login-brand {padding-top:clamp(24px,6svh,42px)}
.auth-page.auth-screen .login-form {margin-top:24px}
.auth-page.auth-screen .login-switch {margin-top:18px}
}
.login-mark>svg {width:72%;height:72%}
.auth-page.auth-screen .login-brand>h1 {line-height:1.25;margin-top:15px}
.auth-page.auth-screen .login-brand>p {margin-top:4px}
.login-field>input {font-size:clamp(17px,4vw,18px)}
.auth-login .login-switch {margin-top:22px}
body[data-current-page="accounts"] .app-shell {background:var(--surface)}
main.account-page {position:relative;isolation:isolate;max-width:720px;min-height:100dvh;padding:40px clamp(22px,7.5vw,46px) calc(102px + env(safe-area-inset-bottom));background:transparent}
.account-heading-copy {min-width:0}
.account-heading-copy>h1 {font-size:28px;font-weight:750;letter-spacing:-.8px;line-height:1.25;margin:0;color:var(--ink);white-space:nowrap}
.account-current-date {display:block;font-size:var(--font-caption);color:var(--muted);line-height:1.55;white-space:nowrap}
.account-heading-controls {display:flex;align-items:center;gap:8px;flex-shrink:0}
.account-period-control {display:flex;align-items:center;justify-content:space-between;gap:7px;max-width:185px;min-height:39px;padding:9px 13px;border:1px solid var(--line);border-radius:23px;background:var(--surface);color:var(--muted);font-size:var(--font-caption);line-height:1.4;white-space:nowrap;box-shadow:none}
.account-period-control>span {min-width:0;overflow:hidden;text-overflow:ellipsis}
.account-period-control>svg {height:12px;width:12px;transform:rotate(90deg);color:var(--muted)}
.account-more-control {display:grid;place-items:center;padding:8px;width:37px;height:37px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--muted);box-shadow:none}
.account-more-control>svg {height:21px;width:21px}
.account-period-control[aria-expanded="true"],.account-more-control[aria-expanded="true"] {background:var(--surface);box-shadow:none}
.account-header-popover {position:absolute;right:0;width:222px;max-width:calc(100vw - 40px);max-height:calc(100svh - 130px);overflow-y:auto;background:var(--surface);border:6px solid var(--line);border-radius:20px;box-shadow:none;backdrop-filter:blur(16px)}
.account-header-popover:has(.account-period-picker) {width:264px}
.account-header-popover:has(.account-more-menu) {width:218px}
.account-period-options,.account-more-menu {display:grid;gap:3px}
.account-period-options>button,.account-more-menu>button {display:flex;align-items:center;gap:12px;padding:12px 11px;min-height:46px;width:100%;font-size:17px;line-height:1.45;color:var(--muted);text-align:left;border-radius:12px}
.account-period-options>button>svg,.account-more-menu>button>svg {height:21px;width:21px;color:var(--muted)}
.account-period-options>button>span {flex:1}
.account-period-options>button.is-selected {background:var(--surface);color:var(--muted)}
.account-period-options>button.is-selected>svg {color:var(--muted)}
.account-period-options>button>svg:last-child {height:18px;width:18px}
.account-period-options>button>svg:last-child>circle {display:none}
.account-more-menu>button {font-size:16px;min-height:45px}
.account-period-options>button:hover,.account-more-menu>button:hover {background:var(--surface)}
.account-menu-divider {height:1px;background:var(--surface-subtle);margin:5px 10px}
.account-period-picker {padding:8px 10px 11px}
.account-picker-heading {display:flex;align-items:center;gap:8px;font-size:16px;color:var(--muted);margin:0 0 16px}
.account-picker-heading>button {display:grid;place-items:center;padding:3px;width:24px;height:30px}
.account-picker-heading svg {height:15px;width:15px;transform:rotate(180deg)}
.account-picker-heading strong {font-weight:550}
.account-period-picker>label {display:grid;gap:8px;margin-bottom:14px;color:var(--muted);font-size:var(--font-caption);min-width:0}
.account-period-picker input {width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:16px}
.account-period-picker>.btn {width:100%;font-size:16px;min-height:42px;border-radius:11px}
.account-picker-error {font-size:var(--font-caption);line-height:1.6;color:var(--danger);margin-bottom:10px}
.account-picker-error:empty {display:none}
.account-quarter-picker {display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:10px;margin-bottom:15px;min-height:43px;color:var(--muted)}
.account-quarter-picker>button {display:grid;place-items:center;width:36px;height:41px;font:500 22px Arial,sans-serif}
.account-quarter-picker>strong {font-size:16px;font-weight:500}
.account-snapshot {position:relative;z-index:1;margin:0 0 17px}
.account-metal-hero {position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:11px 11px 15px 15px;padding:18px 20px 34px;color:var(--on-accent);box-shadow:none}
.account-metal-hero:before {content:"";position:absolute;inset:0;background:var(--surface);pointer-events:none}
.account-hero-label {font-size:17px;line-height:1.5;position:relative}
.account-hero-income {font:550 clamp(32px,7.4vw,40px)/1.25 Arial,sans-serif;letter-spacing:.2px;font-variant-numeric:tabular-nums;margin-top:6px;position:relative;z-index:1;color:var(--on-accent);white-space:nowrap}
.account-hero-income>span {font-size:15px;letter-spacing:0;font-family:"Microsoft YaHei",sans-serif;margin-left:8px;font-weight:400}
.account-hero-meta {font-size:var(--font-caption);line-height:1.65;margin-top:9px;position:relative;z-index:1;color:var(--on-accent)}
.account-hero-meta strong {font-family:Arial,sans-serif;font-weight:500;margin-left:7px;font-size:15px}
.account-hero-curves {position:absolute;right:-7%;bottom:-6px;width:110%;height:100px;pointer-events:none;opacity:.55}
.account-hero-curves path {fill:none;stroke:#fff5d6;stroke-width:.8}
.account-hero-curves path+path {stroke:#f7e4b8;stroke-opacity:.7}
.account-hero-curves circle {fill:#fff4d1;stroke:#fff9e5;stroke-width:.6}
.account-total-strip {position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:-20px;min-height:82px;padding:14px 6px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:none}
.account-total-strip>div {min-width:0;display:grid;align-content:center;gap:7px;padding:0 9px}
.account-total-strip>div+div {border-left:1px solid var(--line)}
.account-total-strip span {font-size:var(--font-caption);color:var(--muted);line-height:1.4;white-space:nowrap}
.account-total-strip b {font:550 clamp(15px,3.9vw,20px)/1.3 Arial,sans-serif;letter-spacing:-.2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:var(--ink)}
.account-total-strip b.positive {color:var(--ink)}
.account-total-strip b.negative {color:var(--danger)}
.account-trend-panel,.account-reference-expenses {position:relative;z-index:1;border:1px solid var(--line);border-radius:19px;background:var(--surface);box-shadow:none;padding:15px 15px 14px;margin-bottom:15px}
.account-section-heading {display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:0;min-height:29px;color:var(--ink)}
.account-section-heading>svg:first-child {height:23px;width:23px;color:var(--muted)}
.account-section-heading h2 {font-size:18px;font-weight:650;line-height:1.4;flex:1;letter-spacing:.1px}
.account-section-heading>svg:last-child,.account-section-decoration>svg {width:14px;height:17px;color:var(--muted)}
.account-section-decoration {display:flex;margin-left:auto}
.account-trend-legend {display:flex;justify-content:end;align-items:center;gap:17px;margin:2px 0 13px;font-size:var(--font-caption);color:var(--muted);line-height:1.4}
.account-trend-legend>span {display:flex;gap:6px;align-items:center}
.account-trend-legend i {height:8px;width:8px;border-radius:50%;background:var(--surface-subtle)}
.account-trend-legend>span+span i {background:var(--surface-subtle)}
.account-trend-plot {display:grid;grid-template-columns:47px minmax(0,1fr);grid-template-rows:132px auto;gap:7px 8px}
.account-trend-y {display:flex;flex-direction:column;justify-content:space-between;grid-column:1;grid-row:1;font-size:var(--font-caption);color:var(--muted);line-height:1;align-items:end;font-variant-numeric:tabular-nums;transform:translateY(-5px)}
.account-trend-svg {grid-column:2;grid-row:1;border-left:1px solid var(--line);min-width:0;overflow:hidden}
.account-trend-svg>svg {width:100%;height:100%;display:block;overflow:visible}
.account-trend-grid {fill:none;stroke-width:.8}
.account-income-column {opacity:.83}
.account-expense-line {fill:none}
.account-trend-x {grid-column:2;grid-row:2;display:flex;justify-content:space-between;gap:5px;font-size:var(--font-caption);color:var(--muted);font-variant-numeric:tabular-nums;line-height:1.4}
.account-trend-x>span {white-space:nowrap}
.account-reference-expenses .expense-structure {grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);gap:13px;margin-top:12px}
.account-reference-expenses .donut-chart {width:100%;align-self:center}
.account-reference-expenses .donut-center {gap:5px}
.account-reference-expenses .donut-center>b {font-size:var(--font-caption);color:var(--ink);letter-spacing:-.2px}
.account-reference-expenses .donut-center>span {font-size:var(--font-caption);color:var(--muted)}
.account-reference-expenses .expense-legend {gap:0}
.account-reference-expenses .expense-legend>li+li {border-top:1px solid var(--line)}
.account-reference-expenses .expense-category {padding:7px 0;gap:7px;line-height:1.4;font-size:var(--font-caption);color:var(--ink)}
.account-reference-expenses .expense-category>b {font-size:var(--font-caption);font-weight:400;flex-shrink:0}
.account-reference-expenses .legend-dot {width:9px;height:9px}
.account-reference-expenses .expense-category>span:nth-child(2) {white-space:nowrap}
.account-reference-expenses .expense-tooltip {font-size:var(--font-caption);min-width:178px}
.account-reference-expenses .expense-tooltip strong {font-size:15px}
.account-reference-expenses .expense-arc:hover {stroke-width:28}
.account-recent-entry {display:flex;align-items:center;gap:12px;width:100%;min-height:54px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:none;padding:13px 16px;text-align:left;color:var(--ink)}
.account-recent-entry>svg:first-child {color:var(--muted);width:23px;height:23px}
.account-recent-entry strong {flex:1;font-size:18px;font-weight:600}
.account-recent-entry>svg:last-child {width:14px;height:17px;color:var(--muted)}
.account-subview-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 17px}
.account-subview-heading>button {display:flex;align-items:center;gap:3px;font-size:15px;padding:5px 0;color:var(--muted)}
.account-subview-heading>button svg {width:13px;height:15px;transform:rotate(180deg)}
.account-subview-heading h2 {font-size:17px;color:var(--muted);font-weight:550}
.account-page .account-detail-tools {margin-inline:0;gap:10px}
.account-page .account-detail-tools .btn {font-size:var(--font-caption);padding-inline:11px}
.account-page .account-row {padding:15px 11px;gap:9px}
.account-page .account-amount b {font-size:16px}
.account-page .account-info>strong {font-size:16px}
.account-page .account-info>span {font-size:15px}
.account-page .account-icon {width:32px;height:36px}
.account-trend-table {display:grid;margin-top:21px;font-size:var(--font-caption);color:var(--muted)}
.account-trend-table>div {display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:10px 0;border-top:1px solid var(--line);align-items:center}
.account-trend-table b {font:500 15px Arial,sans-serif;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.account-trend-table-head {color:var(--muted)}
.account-trend-table-head b {font-family:inherit}
@media(min-width:761px) {
main.account-page {padding-top:44px}
.account-heading-copy>h1 {font-size:30px}
.account-current-date {font-size:15px}
.account-heading-controls {gap:10px}
.account-period-control {font-size:16px;padding-inline:17px;min-height:43px;max-width:230px}
.account-more-control {width:42px;height:42px}
.account-header-popover {width:235px}
.account-reference-header {margin-bottom:25px}
.account-metal-hero {padding:23px 27px 41px}
.account-hero-label {font-size:19px}
.account-hero-income {font-size:43px}
.account-hero-meta {font-size:16px}
.account-total-strip {padding:18px 11px;min-height:94px;border-radius:21px;margin-top:-23px}
.account-total-strip>div {padding-inline:17px;gap:10px}
.account-total-strip span {font-size:16px}
.account-total-strip b {font-size:23px}
.account-trend-panel,.account-reference-expenses {padding:21px 23px 19px;margin-bottom:20px;border-radius:22px}
.account-section-heading h2 {font-size:21px}
.account-section-heading>svg:first-child {height:26px;width:26px}
.account-trend-legend {font-size:15px;margin-bottom:16px}
.account-trend-plot {grid-template-rows:170px auto;grid-template-columns:51px 1fr;gap:10px}
.account-trend-y,.account-trend-x {font-size:15px}
.account-reference-expenses .expense-structure {grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:26px;margin-top:15px}
.account-reference-expenses .donut-chart {max-width:220px;margin:auto}
.account-reference-expenses .expense-category,.account-reference-expenses .expense-category>b {font-size:17px;padding-block:9px}
.account-reference-expenses .legend-dot {height:11px;width:11px}
.account-reference-expenses .donut-center>b {font-size:19px}
.account-reference-expenses .donut-center>span {font-size:16px}
.account-recent-entry {min-height:62px;padding:16px 23px;border-radius:21px}
.account-recent-entry strong {font-size:20px}
}
@media(max-width:370px) {
main.account-page {padding-top:31px;padding-inline:23px}
.account-reference-header {gap:8px;margin-bottom:18px}
.account-heading-copy>h1 {font-size:26px}
.account-current-date {font-size:var(--font-caption);letter-spacing:-.3px}
.account-heading-controls {gap:6px}
.account-period-control {font-size:var(--font-caption);padding-inline:10px;gap:6px;max-width:146px;min-height:37px}
.account-more-control {width:33px;height:33px;padding:6px}
.account-period-control>svg {height:10px;width:10px}
.account-header-popover {top:46px;width:211px}
.account-metal-hero {padding:17px 17px 32px}
.account-hero-label {font-size:16px}
.account-hero-income {font-size:32px}
.account-total-strip {padding-inline:5px}
.account-total-strip>div {padding-inline:7px}
.account-total-strip span {font-size:var(--font-caption)}
.account-total-strip b {font-size:15px;letter-spacing:-.3px}
.account-trend-panel,.account-reference-expenses {padding-inline:13px}
.account-section-heading {gap:9px}
.account-section-heading h2 {font-size:18px}
.account-trend-plot {grid-template-columns:52px minmax(0,1fr);gap-inline:7px}
.account-trend-x {font-size:var(--font-caption);gap:3px;letter-spacing:-.5px}
.account-reference-expenses .expense-structure {gap:9px;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)}
.account-reference-expenses .expense-category,.account-reference-expenses .expense-category>b {font-size:var(--font-caption)}
.account-reference-expenses .expense-category {gap:6px}
.account-reference-expenses .legend-dot {height:8px;width:8px}
.account-reference-expenses .donut-center>b {font-size:var(--font-caption);letter-spacing:-.5px}
.account-reference-expenses .donut-center>span {font-size:var(--font-caption)}
.account-reference-expenses .expense-tooltip {font-size:var(--font-caption);min-width:165px}
.account-page .account-detail-tools .btn {font-size:var(--font-caption);padding-inline:9px}
.account-page .account-icon {display:none}
.account-page .account-row {padding-inline:12px}
.account-recent-entry strong {font-size:17px}
}
.account-heading-copy {flex:0 0 auto}
.account-heading-controls {flex:0 1 auto;min-width:0}
.account-period-control {min-width:0;flex:0 1 auto}
.account-more-control {flex-shrink:0}
.account-metal-hero {min-height:140px}
.account-trend-panel .account-trend-legend {margin-bottom:9px}
.account-reference-expenses .expense-category {padding-block:5px}
@media(max-width:760px) {
.account-trend-plot {grid-template-rows:110px auto}
.account-total-strip {min-height:77px}
.account-snapshot {margin-bottom:16px}
}
body[data-auth="ready"] {color:var(--ink);background:var(--canvas)}
body[data-auth="ready"] .app-shell {background:var(--surface)}
main.ledger-page:not(.account-page) {position:relative;isolation:isolate;max-width:720px;min-height:100dvh;padding:40px clamp(22px,7.5vw,46px) calc(102px + env(safe-area-inset-bottom));background:transparent}
.ledger-page:not(.account-page)>.page-heading,.ledger-page .dashboard-heading {margin:0 0 20px;padding:0;min-height:61px}
.ledger-page .page-heading {align-items:flex-start}
.ledger-page .page-heading h1,.ledger-page .dashboard-heading h1 {font-size:28px;line-height:1.25;font-weight:750;letter-spacing:-.8px;color:var(--ink)}
.page-current-date,.ledger-page .dashboard-date {display:block;font-size:var(--font-caption);color:var(--muted);line-height:1.55;margin:4px 0 0}
.ledger-page .page-heading .btn {min-height:39px;padding:8px 14px;font-size:16px}
.ledger-page .notification-button {right:0;top:0;background:var(--surface);border:1px solid var(--line);border-radius:50%;width:38px;height:38px;color:var(--muted)}
.ledger-page .notification-button svg {width:24px;height:24px}
body[data-auth="ready"] .btn.text {color:var(--muted)}
.ledger-page .search {margin:0 0 15px}
.ledger-page .search input {height:44px;background:transparent;border:0;border-radius:0;box-shadow:none;font-size:16px;color:var(--ink)}
.ledger-page .search input::placeholder {color:var(--muted)}
.ledger-page .search>svg {color:var(--muted);top:13px}
.ledger-page .ledger-controls {margin:0 0 18px;gap:9px}
.ledger-page .pill-tabs {gap:8px}
.ledger-page .pill {min-height:40px;padding:9px 14px;font-size:15px;border-color:var(--line);background:var(--surface);color:var(--muted);box-shadow:none}
.ledger-page .pill.active {border:1px solid var(--line);font-weight:600}
.ledger-page .filter-button {padding-inline:12px}
.ledger-page .pill.filter-button:is(.has-filter,[aria-expanded="true"]) {background:var(--accent-soft);border-color:transparent;color:#745725}
.ledger-page .filter-button i {background:currentColor}
.ledger-page .filter-button svg {width:19px;height:19px}
.ledger-page .supplier-filters {gap:9px;margin:1px -1px 13px}
.ledger-page .supplier-filters .pill {padding-inline:13px}
.ledger-page .day-heading {font-size:15px;color:var(--muted);margin-inline:1px;margin-bottom:9px}
.ledger-page .purchase-day-rows,.ledger-page .supplier-list {gap:11px}
.ledger-page .purchase-item:hover,.ledger-page .supplier-item:hover {background:var(--record-fill);border-color:#c5b597}
.ledger-page .supplier-avatar {background:var(--surface-subtle);color:var(--muted)}
.ledger-page .supplier-avatar.rose {background:var(--surface-subtle);color:var(--muted)}
.ledger-page .purchase-product,.ledger-page .supplier-contact>span {font-size:15px;color:var(--muted)}
.ledger-page .purchase-title>span,.ledger-page .supplier-title>span,.ledger-page .supplier-transaction>span {color:var(--muted);font-size:var(--font-caption)}
.ledger-page .purchase-value b,.ledger-page .supplier-transaction>b {font-size:16px;font-weight:550;color:var(--ink)}
.ledger-page .supplier-contact svg,.ledger-page .row-chevron {color:var(--muted)}
.ledger-page .status.pending {background:var(--surface-subtle);color:var(--muted)}
.ledger-page .status.complete {background:var(--surface);color:var(--muted)}
.ledger-page .red-count {background:var(--surface-subtle);box-shadow:none}
.ledger-page .ledger-footer {margin-inline:0;color:var(--muted)}
.ledger-page .ledger-footer button {color:var(--muted)}
.home-snapshot {position:relative;margin-bottom:17px}
.ledger-page .gold-hero-heading {font-size:17px;font-weight:400;color:var(--on-accent);gap:8px}
.ledger-page .hero-balance {font:550 clamp(32px,8.2vw,42px)/1.25 Arial,sans-serif;margin-top:12px;gap:8px;letter-spacing:.1px;white-space:nowrap}
.ledger-page .hero-balance.positive {color:var(--ink)}
.ledger-page .hero-balance.negative {color:var(--danger)}
.ledger-page .hero-balance .hero-currency {font:400 16px/1.4 "Microsoft YaHei",sans-serif;color:inherit}
.ledger-page .quick-actions {margin-top:17px}
.ledger-page .quick-action {border:1px solid var(--line)}
.ledger-page .quick-action>svg {margin-bottom:4px}
.ledger-page .quick-action strong {color:var(--ink)}
.ledger-page .quick-action>span {font-size:var(--font-caption);color:var(--muted)}
.ledger-page .pending-entry {border:1px solid var(--line);box-shadow:none;margin-top:15px}
.ledger-page .pending-entry-icon {color:var(--muted)}
.ledger-page .pending-entry-text strong {color:var(--ink)}
.ledger-page .pending-entry-text>span {color:var(--muted)}
.ledger-page .pending-entry>svg {color:var(--muted);width:15px}
.ledger-page .sample-note {color:var(--muted);margin-top:22px}
.ledger-page .sample-note button {color:var(--muted)}
.settings-menu {border-top:1px solid var(--line);margin-top:7px}
.settings-link,.settings-operation {display:flex;align-items:center;width:100%;gap:15px;padding:22px 2px;text-align:left;border-bottom:1px solid var(--line);color:var(--ink)}
.settings-link>svg:first-child,.settings-operation>svg:first-child {width:24px;height:24px;color:var(--muted);stroke-width:1.6}
.settings-link>span,.settings-operation>span {display:grid;gap:6px;flex:1;min-width:0}
.settings-link strong,.settings-operation strong {font-size:18px;font-weight:600;line-height:1.4}
.settings-link small,.settings-operation small {font-size:15px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.settings-link>svg:last-child,.settings-operation>svg:last-child {height:18px}
.settings-page .settings-demo-reset {margin:25px 2px 0;color:var(--muted);font-size:15px}
.settings-back {display:flex;align-items:center;gap:5px;color:var(--muted);font-size:16px;min-height:37px;padding:0 3px 0 0;margin:-10px 0 13px}
.settings-back>svg {width:14px;height:18px;transform:rotate(180deg)}
.settings-detail-header>h1 {font-size:28px;font-weight:750;letter-spacing:-.8px;color:var(--ink)}
.settings-detail-content {padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none}
.settings-detail-content>p,.settings-storage-note {font-size:16px;line-height:1.9;color:var(--muted)}
.settings-detail-content .cycle-input-label {font-size:17px;color:var(--muted);min-height:63px;padding-bottom:17px;border-bottom:1px solid var(--line)}
.settings-detail-content .cycle-input-label input {background:var(--surface);border-color:var(--line);border-radius:11px;font-size:18px;min-height:47px}
.settings-detail-content .cycle-explanation {font-size:16px;color:var(--muted);margin-top:19px;line-height:1.9}
.settings-detail-content .cycle-preview {font-size:15px;color:var(--muted);gap:8px;margin:23px 0 27px;line-height:1.8}
.settings-detail-content .cycle-preview>span {font-size:16px;color:var(--muted)}
.settings-detail-content .settings-save {min-height:46px;font-size:16px}
.settings-detail-content .settings-options {margin:0;gap:0;display:grid;grid-template-columns:minmax(0,1fr)}
.settings-detail-content .settings-option {padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid var(--line);min-width:0}
.settings-detail-content .settings-option>label {display:flex;align-items:center;gap:9px;font-size:16px;color:var(--muted);margin-bottom:12px}
.settings-detail-content .settings-option>label svg {color:var(--muted);width:20px;height:20px}
.settings-operation-list {margin-top:19px;border-top:1px solid var(--line)}
.settings-operation {min-height:94px}
.shared-account-content .account-space-name {font-size:21px;color:var(--ink);font-weight:600;line-height:1.5;margin-bottom:10px;overflow-wrap:anywhere}
.shared-account-content .shared-members {margin:22px 0}
.shared-account-content .shared-members>span {border-color:var(--line);padding-block:15px;color:var(--ink)}
.shared-account-content .shared-members small {color:var(--muted)}
.shared-account-content>.btn {margin-top:19px}
.shared-account-content .join-space-form>label {color:var(--muted)}
.shared-account-content .join-space-form input {border-color:var(--line);background:var(--surface)}
.shared-account-content .workspace-switch>button {border-color:var(--line);color:var(--muted)}
body[data-auth="ready"] .choice-trigger,body[data-auth="ready"] .field input,body[data-auth="ready"] .field textarea,body[data-auth="ready"] .filter-date {border-color:var(--line);background:var(--surface);color:var(--ink)}
body[data-auth="ready"] .choice-trigger>span {color:var(--muted)}
body[data-auth="ready"] .choice-menu {background:var(--surface);border-color:var(--line);box-shadow:none}
body[data-auth="ready"] .menu-option.selected {background:var(--surface);color:var(--muted)}
body[data-auth="ready"] .choice-search-input {background:var(--surface);border-color:var(--line)}
body[data-auth="ready"] .mobile-nav {background:var(--surface);border-color:var(--line);backdrop-filter:blur(16px)}
body[data-auth="ready"] .mobile-nav .nav-link {color:var(--muted)}
body[data-auth="ready"] .sidebar {background:var(--surface);border-color:var(--line)}
body[data-auth="ready"] .sidebar .nav-link.active {background:var(--surface-subtle);color:var(--muted)}
body[data-auth="ready"] .sidebar .nav-label {color:var(--muted)}
body[data-auth="ready"] dialog {background:var(--surface);color:var(--ink);border-color:var(--line)}
body[data-auth="ready"] .modal-header,body[data-auth="ready"] .modal-footer {border-color:var(--line)}
@media(min-width:761px) {
main.ledger-page:not(.account-page) {padding-top:44px}
.ledger-page .page-heading h1,.ledger-page .dashboard-heading h1,.settings-detail-header>h1 {font-size:30px}
.page-current-date,.ledger-page .dashboard-date {font-size:15px}
.ledger-page .page-heading {margin-bottom:25px}
.ledger-page .hero-balance {font-size:44px}
.ledger-page .quick-action {border-radius:21px}
.ledger-page .pending-entry {padding:21px;border-radius:21px}
.settings-link {padding-block:25px}
}
@media(max-width:370px) {
main.ledger-page:not(.account-page) {padding-top:31px;padding-inline:23px}
.ledger-page .page-heading h1,.ledger-page .dashboard-heading h1,.settings-detail-header>h1 {font-size:26px}
.ledger-page .page-heading .btn {font-size:15px;padding-inline:12px}
.ledger-page .pill-tabs {gap:6px}
.ledger-page .filter-button {padding-inline:9px;gap:4px}
.ledger-page .filter-button svg {width:17px;height:17px}
.ledger-page .purchase-item,.ledger-page .supplier-item {padding-inline:11px;gap:8px}
.ledger-page .purchase-title strong,.ledger-page .supplier-title strong {font-size:16px}
.ledger-page .purchase-product,.ledger-page .supplier-contact>span {font-size:var(--font-caption)}
.ledger-page .purchase-value b,.ledger-page .supplier-transaction>b {font-size:15px}
.ledger-page .gold-hero-heading {font-size:16px;gap:5px}
.ledger-page .hero-balance {font-size:33px}
.ledger-page .quick-action strong {font-size:17px}
.ledger-page .pending-entry {padding-inline:13px;gap:9px}
.ledger-page .pending-entry-text>span {font-size:var(--font-caption)}
.settings-link,.settings-operation {gap:12px}
}
.dashboard-balance-heading>span {font-size:var(--font-caption);color:var(--muted);letter-spacing:.8px}
.dashboard-balance-heading h2 {font-size:18px;font-weight:500;color:var(--muted);margin-top:9px;line-height:1.5}
.dashboard-balance-totals {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:20px;border-top:1px solid var(--line);margin-top:0;gap:0}
.dashboard-balance-totals>div {min-width:0;padding:0 9px;display:grid;justify-items:center;gap:8px}
.dashboard-balance-totals>div+div {border-left:1px solid var(--line)}
.dashboard-balance-totals span {display:flex;align-items:center;gap:5px;color:var(--muted);font-size:16px}
.dashboard-balance-totals svg {width:16px;height:16px;color:var(--muted)}
.dashboard-balance-totals b {font:550 clamp(20px,5.7vw,26px)/1.3 Arial,sans-serif;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.income-import-entry,.entry-import-link {display:flex;align-items:center;gap:10px;width:100%;padding:17px 3px;color:var(--muted);font-size:16px;text-align:left}
.income-import-entry>span,.entry-import-link>span {flex:1}
.income-import-entry>svg:first-child,.entry-import-link>svg:first-child {width:20px;height:20px}
.income-import-entry>svg:last-child,.entry-import-link>svg:last-child {width:13px;height:16px;margin-left:auto}
.entry-import-link {padding:0 0 19px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.ledger-page .page-heading {position:relative;display:block;text-align:center;padding:0 82px}
.ledger-page:not(.account-page)>.page-heading {padding:0 82px}
.ledger-page .page-heading>div:first-child {width:100%}
.ledger-page .page-heading h1 {white-space:nowrap;text-align:center}
.ledger-page .page-actions {position:absolute;right:0;top:0;padding-top:1px}
.ledger-page .page-current-date {text-align:center;white-space:nowrap}
.ledger-page .dashboard-heading {text-align:center}
.ledger-page .dashboard-heading h1 {white-space:nowrap}
.account-reference-header {grid-template-columns:minmax(0,1fr) auto;gap:13px 10px}
.account-heading-copy {display:contents}
.account-heading-copy>h1 {grid-column:1/-1;grid-row:1;text-align:center}
.account-current-date {grid-column:1;grid-row:2;margin-top:0}
.account-heading-controls {grid-column:2;grid-row:2;max-width:190px;justify-self:end;padding-top:0}
.account-header-popover {top:calc(100% + 8px)}
.settings-detail-header {display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px}
.settings-detail-header>h1 {grid-column:2;text-align:center;line-height:1.4}
.settings-detail-header .settings-back {grid-column:1;grid-row:1;display:grid;place-items:center;width:48px;height:48px;min-height:48px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface)}
.settings-detail-header .settings-back>svg {width:24px;height:24px;stroke-width:1.9}
.settings-detail-content .settings-save {display:flex;margin-inline:auto;min-width:150px}
.settings-detail-content .cycle-preview {text-align:center}
.shared-account-content .account-space-name,.shared-account-content .account-sharing-description {text-align:center}
.shared-account-content .account-space-name>span {font-size:16px;font-weight:400;color:var(--muted)}
.shared-account-content .account-space-name>strong {font-size:21px;font-weight:600}
.shared-account-content>.btn {display:flex;width:max-content;max-width:100%;margin-inline:auto}
.shared-account-content .join-space-form>label {text-align:center}
.auth-screen .login-brand {text-align:center}
.auth-screen .login-mark {margin-inline:auto}
.auth-screen .login-brand>h1,.auth-screen .login-brand>p {text-align:center}
.auth-screen .login-brand>p {white-space:normal}
.auth-screen .workspace-mode {justify-content:center}
.modal-header {position:sticky;top:0;z-index:4;justify-content:center;padding-inline:58px;background:var(--surface)}
.modal-header h2 {text-align:center}
.modal-header>.icon-button {position:absolute;right:16px;top:50%;transform:translateY(-50%)}
.quick-price {margin-top:23px}
.purchase-notes {margin-top:22px}
.entry-note-field {margin-top:22px}
.entry-order-fields {border-block:1px solid var(--line);margin-top:23px;padding:16px 0}
.entry-order-fields>summary {cursor:pointer;font-size:16px;color:var(--muted);line-height:1.6}
.entry-order-fields>summary>span {font-size:var(--font-caption);color:var(--muted);margin-left:8px}
.entry-order-fields .form-grid {margin-top:20px}
.account-entry-search {margin-top:4px}
.account-info .entry-reference {display:block;color:var(--muted);font-size:var(--font-caption);line-height:1.6;margin-top:5px;overflow-wrap:anywhere;word-break:break-word}
.income-import-intro {font-size:16px;line-height:1.9;color:var(--muted);text-align:center;margin-bottom:22px}
.income-import-upload {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:27px 15px;min-height:153px;background:var(--surface);border:1px dashed var(--line);border-radius:15px;cursor:pointer;color:var(--muted);text-align:center}
.income-import-upload>svg {width:27px;height:27px;stroke-width:1.5}
.income-import-upload>strong {font-size:18px;font-weight:550}
.income-import-upload>span {font-size:var(--font-caption);color:var(--muted);line-height:1.7}
.income-import-rules {margin-top:23px;font-size:15px;color:var(--muted);line-height:1.9;display:grid;gap:8px}
.import-error {font-size:15px;line-height:1.8;margin-top:17px}
.income-import-file-name {font-size:15px;color:var(--muted);line-height:1.7;margin-bottom:23px;overflow-wrap:anywhere;text-align:center}
.income-import-fields,.income-column-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:19px}
.income-import-fields>label,.income-column-label {display:block;min-width:0;font-size:16px;line-height:1.6;color:var(--muted)}
.income-import-fields input,.income-import-fields select,.income-column-label select {display:block;width:100%;max-width:100%;margin-top:9px;min-height:47px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font-size:16px;line-height:1.5}
.income-column-label select,.income-import-fields select {appearance:none;padding-right:31px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239c7b43' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}
.income-import-section {font-size:18px;color:var(--ink);margin-top:28px;text-align:center;font-weight:600}
.income-import-hint {font-size:15px;color:var(--muted);line-height:1.8;margin:11px 0 20px}
.income-import-extra {border-top:1px solid var(--line);margin-top:23px;padding-top:18px}
.income-import-extra>summary {cursor:pointer;font-size:16px;color:var(--muted);line-height:1.6}
.income-import-extra .income-column-grid {margin-top:19px}
.income-import-summary {text-align:center}
.income-import-summary>span {font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.income-import-summary>strong {display:block;font-size:25px;color:var(--ink);font-weight:650;margin-top:10px;line-height:1.6}
.income-import-summary>p {font-size:var(--font-caption);color:var(--muted);line-height:1.8;margin-top:6px}
.income-import-totals {margin:22px 0;border-block:1px solid var(--line);padding:8px 0}
.income-import-totals>div {display:flex;justify-content:space-between;gap:12px;padding:9px 0;font-size:16px}
.income-import-totals dt {color:var(--muted)}
.income-import-totals dd {margin:0;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.income-import-preview-list>div {display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:15px}
.income-import-preview-list>div>span {min-width:0;color:var(--muted)}
.income-import-preview-list small {display:block;font-size:var(--font-caption);line-height:1.7;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.income-import-preview-list b {font:500 17px Arial,sans-serif;white-space:nowrap}
.income-import-issues {padding-top:21px;font-size:15px;line-height:1.8;color:var(--muted)}
.income-import-issues h3 {font-size:17px;margin-bottom:12px;color:var(--muted);text-align:center}
.income-import-issues p {margin-bottom:8px}
.income-import-ack {display:flex;align-items:start;gap:10px;margin-top:23px;font-size:15px;line-height:1.8;color:var(--muted);cursor:pointer}
.income-import-ack input {accent-color:var(--accent);width:21px;height:21px;flex-shrink:0;margin:3px 0 0}
.income-import-finished {padding:21px 0;text-align:center;color:var(--muted);font-size:16px;line-height:1.9}
.income-import-finished>svg {width:39px;height:39px;color:var(--muted);margin-bottom:17px}
.income-import-finished h3 {font-size:22px;color:var(--ink);font-weight:600;margin-bottom:15px}
.income-import-finished p {margin:7px 0}
@media(min-width:761px) {
.dashboard-balance-totals b {font-size:28px}
.account-heading-controls {max-width:260px}
.account-header-popover {top:calc(100% + 8px)}
.income-import-fields,.income-column-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:370px) {
.ledger-page .page-heading,.ledger-page:not(.account-page)>.page-heading {padding-inline:75px}
.account-heading-controls {max-width:177px}
.settings-detail-header {grid-template-columns:48px minmax(0,1fr) 48px;gap:4px}
.settings-detail-header>h1 {font-size:25px}
}
@media(max-width:350px) {
.ledger-page .dashboard-heading h1 {font-size:24px}
.ledger-page .dashboard-heading {padding-inline:35px}
}
.choice-row {position:relative}
.choice-row .choice-input,.field .choice-row .choice-input {display:block;width:100%;min-height:49px;padding:11px 39px 11px 12px;text-align:left;font-size:16px;line-height:1.5;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink)}
.choice-row .choice-input::placeholder {color:var(--muted);opacity:1}
.choice-caret {position:absolute;right:1px;top:1px;bottom:1px;width:35px;display:grid;place-items:center;color:var(--muted);border-radius:0 10px 10px 0;padding:0}
.choice-caret svg {width:12px;height:12px;transform:rotate(90deg)}
.choice-menu .choice-items {max-height:none;overflow:visible}
.choice-menu-footer {justify-content:flex-end;padding-top:6px}
.choice-menu .menu-add-option {color:var(--muted);background:var(--surface);font-size:16px;justify-content:flex-start;gap:8px}
.menu-add-option svg {width:18px;height:18px}
.choice-menu .menu-option.is-highlighted>span {text-decoration:underline;text-underline-offset:4px}
.unit-inline-factor {margin-top:9px}
.unit-inline-factor .unit-factor-label {font-size:var(--font-caption);color:var(--muted);justify-content:flex-start}
.unit-inline-factor input {max-width:92px}
.ledger-page .home-metal-hero .hero-balance {position:relative;z-index:1}
.ledger-page .home-metal-hero .hero-balance.positive {color:var(--ink)}
.ledger-page .home-metal-hero .hero-balance.negative {color:var(--danger)}
.ledger-page .home-metal-hero .hero-currency {color:inherit}
.home-metal-hero>.comparison {display:block;width:max-content;max-width:100%;position:relative;z-index:1;font-weight:400}
.home-balance-totals {grid-template-columns:repeat(2,minmax(0,1fr))}
.home-balance-totals b {font-size:23px;font-weight:550;white-space:nowrap}
.ledger-transfer-tools {display:flex;align-items:center;justify-content:flex-end;gap:19px;margin:-1px 1px 17px}
.ledger-transfer-tools>button {display:flex;align-items:center;gap:6px;color:var(--muted);font-size:15px;padding:5px 0}
.ledger-transfer-tools svg {width:17px;height:17px}
.entry-import-tools {display:grid;gap:0;margin-bottom:20px;border-block:1px solid var(--line)}
.entry-import-tools .entry-import-link {margin:0;padding:14px 0;border:0;font-size:16px;min-height:47px}
.entry-import-tools .entry-import-link+.entry-import-link {border-top:1px solid var(--line)}
.structured-account .account-settings-section {padding:0 0 23px;margin:0 0 25px;border-bottom:1px solid var(--line)}
.structured-account .account-settings-section:last-child {margin-bottom:0;border-bottom:0}
.structured-account .account-settings-section>h3 {font-size:17px;font-weight:550;line-height:1.5;color:var(--muted);text-align:left;margin:0 0 16px}
.structured-account .account-settings-section>p {font-size:15px;line-height:1.9;color:var(--muted)}
.account-properties {margin:0;display:grid;gap:0}
.account-properties>div {display:grid;grid-template-columns:86px minmax(0,1fr);align-items:start;gap:13px;padding:10px 0;font-size:16px;line-height:1.6}
.account-properties dt {color:var(--muted)}
.account-properties dd {margin:0;text-align:right;color:var(--ink);overflow-wrap:anywhere}
.account-properties>div:first-child dd {font-size:18px;font-weight:600}
.structured-account .account-sharing-description {margin-top:16px;font-size:15px;line-height:1.8;text-align:center;color:var(--muted)}
.structured-account .shared-members {margin:0}
.structured-account .shared-members>span {padding:11px 0;border:0;font-size:16px}
.structured-account .shared-members>span+span {border-top:1px solid var(--line)}
.structured-account .join-space-form {margin:0}
.structured-account .join-space-form>label {text-align:left;font-size:15px;margin-bottom:10px;color:var(--muted)}
.structured-account .join-space-form>div {gap:9px}
.structured-account .join-space-form .btn {border-radius:11px;min-width:70px}
.structured-account .workspace-switch {display:block}
.structured-account .workspace-switch>:is(button,.workspace-current) {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 0;border:0}
.workspace-current {color:var(--ink);font-weight:600}
.structured-account .workspace-switch small {color:var(--muted);font-size:var(--font-caption);white-space:nowrap}
.structured-account .account-operation {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:11px 0;font-size:16px;text-align:left;color:var(--muted)}
.account-operation svg {width:13px;height:18px}
.structured-account .account-logout {border-top:1px solid var(--line);margin-top:6px;color:var(--danger);justify-content:center}
@media(min-width:761px) {
.home-balance-totals {padding-block:18px}
}
@media(max-width:370px) {
.home-metal-hero {padding:19px 17px 32px}
.ledger-page .home-metal-hero .hero-balance {font-size:34px}
.ledger-transfer-tools {font-size:var(--font-caption);gap:15px}
}
.purchase-page-heading {position:relative;z-index:40;margin:0 0 23px;min-height:38px;display:flex;align-items:center;justify-content:center;padding:0 45px}
.purchase-page-heading>h1 {font-size:28px;line-height:1.3;font-weight:750;letter-spacing:-.8px;color:var(--ink);text-align:center;white-space:nowrap}
.purchase-page-heading>#purchase-more-button {position:absolute;right:0;top:0}
.purchase-more-popover {top:47px;width:224px}
.purchase-more-menu {display:grid;gap:3px}
.purchase-more-menu>button {display:flex;align-items:center;gap:12px;width:100%;min-height:47px;padding:12px 10px;font-size:16px;text-align:left;color:var(--muted);border-radius:11px}
.purchase-more-menu>button:hover {background:var(--surface)}
.purchase-more-menu>button>svg {width:21px;height:21px;color:var(--muted)}
.purchase-more-menu>p {font-size:var(--font-caption);color:var(--muted);line-height:1.7;padding:7px 10px 4px}
.purchase-search-row {display:flex;align-items:center;gap:10px;margin-bottom:17px}
.purchase-search-row>.search {flex:1;min-width:0;margin:0}
.purchase-search-row>.btn {min-height:46px;padding-inline:13px;font-size:16px;flex-shrink:0}
.purchase-search-row>.search input {font-size:15px}
.ledger-page:not(.account-page)>.page-heading {min-height:39px;margin-bottom:23px}
.ledger-page .page-heading {min-height:39px}
.account-reference-header {margin-bottom:14px}
.account-visible-actions {z-index:1}
.account-visible-actions>.btn {font-size:16px;min-height:45px;border-radius:13px}
.account-visible-actions svg {height:20px;width:20px}
.account-detail-tools {justify-content:flex-start}
.book-sheet-list {border-top:1px solid var(--line)}
.book-sheet-config {padding:18px 0;border-bottom:1px solid var(--line)}
.book-sheet-title {display:flex;align-items:center;justify-content:space-between;gap:12px}
.book-sheet-title>strong {font-size:17px;line-height:1.6;color:var(--ink);font-weight:550;min-width:0;overflow-wrap:anywhere}
.book-sheet-title>select {max-width:145px;width:43%;flex-shrink:0;min-height:43px;padding:9px 25px 9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:15px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239c7b43' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}
.book-sheet-count {font-size:var(--font-caption);line-height:1.8;color:var(--muted);margin-top:7px}
.book-sheet-details {margin-top:12px}
.book-sheet-details>summary {font-size:15px;line-height:1.8;color:var(--muted);cursor:pointer}
.book-sheet-details .income-import-fields {margin-top:18px}
.book-sheet-details .income-column-grid {margin-top:18px}
.book-import-counts {display:grid;margin:23px 0 0;border-top:1px solid var(--line);padding-top:9px}
.book-import-counts>div {display:flex;justify-content:space-between;gap:15px;font-size:16px;line-height:1.7;padding:9px 0}
.book-import-counts dt {color:var(--muted)}
.book-import-counts dd {margin:0;color:var(--ink);text-align:right}
main.ledger-page,main.ledger-page.account-page,main.ledger-page:not(.account-page) {padding-top:20px}
.ledger-page:not(.account-page)>.page-heading,.purchase-page-heading {margin-bottom:15px}
.settings-detail-header {min-height:48px;margin-bottom:17px}
.account-reference-header {margin:0 0 16px;position:relative;z-index:1}
.account-reference-header>h1 {margin:0;text-align:center;font-size:28px;font-weight:750;line-height:1.35;letter-spacing:-.8px;color:var(--ink)}
.account-hero-title-row {position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.account-hero-title-row>.account-hero-label {font-size:16px;white-space:nowrap;flex-shrink:0}
.account-hero-title-row .account-heading-controls {display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;padding:0;margin:0}
.account-hero-title-row .account-period-control {min-height:35px;padding:7px 10px;gap:6px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:var(--font-caption);box-shadow:none}
.account-hero-title-row .account-period-control>span {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.account-hero-title-row .account-period-control>svg {width:11px;height:11px;flex-shrink:0}
.account-hero-title-row .account-more-control {width:34px;height:35px;padding:7px;border:1px solid var(--line);background:var(--surface);color:var(--muted);box-shadow:none}
.account-metal-hero:not(.home-metal-hero) {padding-top:14px}
.account-metal-hero:not(.home-metal-hero) .account-hero-income {margin-top:13px}
.account-snapshot:has(>.account-header-popover:not([hidden])) {z-index:50}
.account-snapshot>.account-header-popover {top:58px;right:17px;width:239px;max-height:calc(100svh - 180px);z-index:5}
.account-snapshot>.account-header-popover:has(.account-period-picker) {width:264px;max-width:calc(100% - 26px)}
.account-subview-toolbar {position:relative;display:flex;justify-content:flex-end;min-height:40px;margin:0 0 13px;z-index:40}
.account-subview-toolbar .account-heading-controls {display:flex;gap:8px;max-width:250px}
.account-subview-toolbar .account-header-popover {top:calc(100% + 8px)}
.account-visible-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px;position:relative;top:auto}
.account-visible-actions>button {display:flex;align-items:center;justify-content:center;gap:12px;min-height:66px;padding:15px 12px;background:var(--surface);border:1px solid var(--line);border-radius:17px;box-shadow:none;color:var(--ink);font-size:18px;font-weight:550}
.account-visible-actions>button>svg {width:25px;height:25px;stroke:#a58245}
.account-visible-actions>button:active {background:var(--surface-subtle)}
.account-trend-empty>p {margin:0;padding:29px 4px 21px;text-align:center;font-size:16px;line-height:1.7;color:var(--muted)}
.account-trend-table,.account-trend-table b {font-size:15px}
.import-sync-message {font-size:15px;color:var(--muted)}
.import-sync-message.is-pending {color:var(--muted)}
.confirmation-message {font-size:16px;line-height:1.9;color:var(--muted)}
@media(min-width:761px) {
main.ledger-page,main.ledger-page.account-page,main.ledger-page:not(.account-page) {padding-top:26px}
.account-reference-header>h1 {font-size:30px}
.account-reference-header,.ledger-page:not(.account-page)>.page-heading,.purchase-page-heading {margin-bottom:18px}
.account-hero-title-row>.account-hero-label {font-size:19px}
.account-hero-title-row .account-heading-controls {max-width:240px;gap:8px}
.account-hero-title-row .account-period-control {font-size:16px;max-width:198px;min-height:39px;padding:8px 13px}
.account-hero-title-row .account-more-control {width:38px;height:39px}
.account-metal-hero:not(.home-metal-hero) {padding-top:19px}
.account-snapshot>.account-header-popover {top:65px;right:25px}
.account-visible-actions>button {min-height:73px;font-size:19px}
}
@media(max-width:370px) {
.account-reference-header>h1 {font-size:26px}
.account-hero-title-row {gap:6px}
.account-hero-title-row .account-period-control {max-width:119px;padding-inline:8px}
.account-hero-title-row .account-heading-controls {max-width:159px}
}
@media(min-width:761px) {
.purchase-page-heading>h1 {font-size:30px}
.purchase-page-heading {min-height:43px;margin-bottom:18px}
.purchase-more-popover {top:53px}
}
@media(max-width:370px) {
.purchase-page-heading>h1 {font-size:26px}
.purchase-search-row {gap:8px}
.purchase-search-row>.btn {padding-inline:11px;font-size:15px;gap:4px}
.purchase-search-row>.search input {font-size:var(--font-caption);padding-left:36px}
.purchase-search-row>.search>svg {left:12px;height:18px;width:18px}
.account-visible-actions {gap:10px}
}
.ledger-page .dashboard-heading {position:relative;display:grid;grid-template-columns:50px minmax(0,1fr) 40px;align-items:center;gap:8px;min-height:49px;padding:0;margin:0 0 18px}
.ledger-page .dashboard-heading h1 {grid-column:2;grid-row:1;min-width:0;font-size:clamp(23px,6.8vw,28px);line-height:1.35;font-weight:750;letter-spacing:-.7px;text-align:center;margin:0}
.ledger-page .dashboard-date {grid-column:1;grid-row:1;display:grid;gap:3px;margin:0;text-align:left;line-height:1.35;white-space:nowrap;color:var(--muted)}
.dashboard-date>b {font:550 18px/1.25 Arial,sans-serif;letter-spacing:.3px;color:var(--muted)}
.dashboard-date>span {font-size:var(--font-caption);font-weight:400}
.ledger-page .dashboard-heading .notification-button {grid-column:3;grid-row:1;position:relative;inset:auto;justify-self:end;width:38px;height:38px}
.home-ledger-snapshot {margin-bottom:18px}
.home-metal-hero {min-height:158px;padding:19px 20px 35px;background:var(--surface)}
.ledger-page .home-metal-hero .hero-balance {display:flex;align-items:baseline;justify-content:flex-start;text-align:left;font-size:clamp(34px,9.7vw,41px);line-height:1.25;font-weight:550;letter-spacing:-.4px;gap:8px;margin:14px 0 5px}
.ledger-page .home-metal-hero .hero-currency {font-size:16px;margin:0;letter-spacing:0}
.home-metal-hero>.comparison {margin:9px 0 0;padding:0;background:none;color:var(--on-accent);font-size:var(--font-caption);line-height:1.6}
.home-balance-totals {min-height:94px;padding:17px 8px;margin-top:-21px;border-radius:18px}
.home-balance-totals>div {text-align:left;gap:9px;padding-inline:13px}
.home-balance-totals span {display:flex;align-items:center;gap:6px;font-size:15px;color:var(--muted)}
.home-balance-totals span>svg {width:17px;height:17px;color:var(--muted);flex-shrink:0}
.home-balance-totals b {font:550 24px/1.25 Arial,sans-serif;color:var(--ink);letter-spacing:-.2px;font-variant-numeric:tabular-nums}
.ledger-page .quick-actions {gap:12px;margin:0 0 17px}
.ledger-page .quick-action {min-height:108px;padding:19px 8px 17px;gap:10px;border-radius:18px;background:var(--surface);box-shadow:none}
.ledger-page .quick-action>svg {height:31px;width:31px;margin:0;color:var(--muted);stroke-width:1.55}
.ledger-page .quick-action strong {font-size:18px;font-weight:550;line-height:1.4}
.ledger-page .pending-entry {min-height:80px;padding:17px 16px;gap:12px;margin:0;border-radius:18px;background:var(--surface)}
.ledger-page .pending-entry-text {gap:5px}
.ledger-page .pending-entry-text strong {font-size:18px;font-weight:600;line-height:1.45}
.ledger-page .pending-entry-text>span {font-size:15px;line-height:1.5}
.account-reference-header {padding:0 48px;min-height:39px;display:flex;align-items:center;justify-content:center}
.account-reference-header>#account-more-button {position:absolute;right:0;top:0;width:39px;height:39px}
.account-reference-header:has(>.account-header-popover:not([hidden])) {z-index:55}
.account-reference-header>.account-header-popover {top:calc(100% + 8px);right:0;z-index:5}
.account-hero-title-row .account-heading-controls {max-width:173px}
.account-hero-title-row .account-period-control {max-width:173px}
.supplier-search-row>.btn {min-width:86px}
@media(min-width:761px) {
.ledger-page .dashboard-heading {grid-template-columns:60px minmax(0,1fr) 44px;min-height:53px;margin-bottom:20px}
.ledger-page .dashboard-heading h1 {font-size:30px}
.dashboard-date>b {font-size:20px}
.ledger-page .dashboard-heading .notification-button {width:42px;height:42px}
.home-metal-hero {min-height:174px;padding:23px 27px 39px}
.ledger-page .home-metal-hero .hero-balance {font-size:46px;margin-top:16px}
.home-balance-totals {min-height:101px;padding:19px 11px;border-radius:21px}
.home-balance-totals>div {padding-inline:17px}
.home-balance-totals span {font-size:16px}
.home-balance-totals b {font-size:27px}
.ledger-page .quick-action {min-height:118px;padding-block:21px}
.ledger-page .quick-action>svg {height:33px;width:33px}
.ledger-page .quick-action strong {font-size:19px}
.account-reference-header {min-height:43px}
.account-reference-header>#account-more-button {width:42px;height:42px}
.account-hero-title-row .account-heading-controls,.account-hero-title-row .account-period-control {max-width:225px}
}
@media(max-width:370px) {
.ledger-page .dashboard-heading {gap:6px;margin-bottom:16px}
.home-metal-hero {padding-inline:17px}
.home-balance-totals>div {padding-inline:10px}
.home-balance-totals b {font-size:22px}
.ledger-page .quick-actions {gap:10px}
.ledger-page .quick-action {min-height:102px;padding-inline:5px}
.account-hero-title-row .account-heading-controls,.account-hero-title-row .account-period-control {max-width:156px}
}
.settings-profile {padding:4px 0 18px;border-bottom:1px solid var(--line);margin:0}
.settings-profile-identity {display:flex;align-items:center;gap:14px;margin:0 0 15px}
.settings-profile-avatar {display:grid;place-items:center;width:55px;height:55px;flex-shrink:0;border-radius:50%}
.settings-profile-avatar>svg {width:29px;height:29px}
.settings-profile-identity>div {display:grid;flex:1;gap:2px;min-width:0}
.settings-profile-identity>div>span {font-size:15px;color:var(--muted);line-height:1.5}
.settings-profile-identity strong {font-size:23px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}
#settings-nickname {position:relative;display:flex;align-items:center;gap:5px;height:42px;min-width:0}
#settings-nickname>strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#settings-nickname .workspace-name-error {z-index:1;background:var(--canvas)}
.settings-profile-details {margin:0;display:grid;gap:0}
.settings-profile-details>div {display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;padding:8px 0;font-size:16px;line-height:1.6}
.settings-profile-details dt {color:var(--muted)}
.settings-profile-details dd {margin:0;text-align:right;color:var(--ink);overflow-wrap:anywhere}
.settings-profile-details>div:first-child dd {font-weight:550}
.settings-page .settings-link {min-height:78px;padding:16px 2px;gap:14px}
.settings-page .settings-link>span {gap:4px}
.settings-logout {display:block;min-height:44px;margin:16px auto 0;padding:8px 14px;text-align:center;line-height:1.6;background:none;border:0}
.settings-profile-details dd {display:flex;align-items:center;justify-content:flex-end;gap:7px}
.settings-profile-details dd>span {min-width:0}
.workspace-name-edit {display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;color:var(--muted)}
.workspace-name-edit:hover {background:var(--surface-subtle)}
.workspace-name-edit>svg {width:19px;height:19px}
.workspace-name-form {display:grid;grid-template-columns:minmax(0,1fr) 38px 38px;align-items:center;gap:4px;width:min(100%,380px);text-align:left}
.workspace-name-form>input {min-width:0;width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:16px}
.workspace-name-form>button {display:grid;place-items:center;width:38px;height:42px;border-radius:10px;color:var(--muted)}
.workspace-name-form>button:hover {background:var(--surface-subtle)}
.workspace-name-form>button>svg {width:21px;height:21px}
.workspace-name-form>.workspace-name-save {color:var(--muted)}
.workspace-name-error {position:absolute;top:100%;right:0;left:0;margin:2px 0 0;color:var(--danger);font-size:var(--font-caption);line-height:1.55}
.workspace-name-error:empty {display:none}
.sharing-space-intro {font-size:15px;line-height:1.8;text-align:center;color:var(--muted);margin:0 0 22px}
.account-page.account-subpage .account-reference-header {min-height:44px;margin-bottom:10px;padding-inline:49px}
.account-view-back {position:absolute;left:0;top:0;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--muted)}
.account-view-back>svg {width:24px;height:24px;stroke-width:1.9;transform:rotate(180deg)}
.account-subpage .account-reference-header>#account-more-button {top:2px}
.account-page.account-subpage .account-subview-toolbar {justify-content:space-between;align-items:center;gap:12px;min-height:38px;margin:0 0 13px}
.account-selected-dates {font-size:var(--font-caption);line-height:1.5;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.account-subpage .account-subview-toolbar .account-heading-controls {max-width:190px;flex-shrink:1}
.account-subpage .account-subview-toolbar .account-period-control {min-height:38px;padding:8px 11px;font-size:15px;gap:7px}
.account-subpage .account-subview-toolbar .account-period-control>span {min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.account-trend-detail {padding:4px 0 0;margin-bottom:18px}
.account-trend-detail .account-section-heading {min-height:25px;gap:8px}
.account-trend-detail .account-section-heading>h2 {font-size:17px;line-height:1.5;font-weight:600}
.account-chart-unit {font-size:var(--font-caption);line-height:1.5;color:var(--muted)}
.account-trend-detail .account-trend-legend {margin:5px 0 12px;font-size:var(--font-caption)}
.account-trend-detail .account-trend-plot {grid-template-rows:145px auto;gap:8px 7px}
.account-trend-series .account-trend-table {margin-top:0}
.account-trend-series .account-trend-table>div {min-height:43px;padding:9px 1px;line-height:1.55;border-top:0;border-bottom:1px solid var(--line)}
.account-trend-series .account-trend-table b {font-size:16px;color:var(--ink)}
.account-trend-series .account-trend-table-head b {font-size:15px;color:var(--muted)}
.account-trend-detail.account-trend-empty {padding-bottom:12px}
.account-page.account-subpage .account-detail-tools {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 11px}
.account-detail-tools .pill {min-width:58px;justify-content:center}
#main .account-detail-tools .pill.active {color:#745725;font-weight:650}
#account-filtered-count {font-size:15px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.account-detail-search-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-bottom:10px}
.account-subpage .search.account-entry-search {margin:0;min-width:0}
.account-subpage .account-entry-search>input {height:44px;font-size:16px;border-radius:13px}
.account-filter-toggle {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);font-size:15px;white-space:nowrap}
.account-filter-toggle>svg {width:17px;height:17px;color:var(--muted)}
.account-filter-toggle:where([aria-expanded="true"],.has-filter) {background:var(--accent-soft);border-color:transparent;color:#745725}
.account-filter-toggle small {min-width:17px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
.filter-anchor {position:relative}
.filter-anchor:has(>.filter-popover:not([hidden])) {z-index:32}
.filter-anchor>.filter-popover {position:absolute;top:calc(100% + 8px);right:0;width:min(100%,350px);padding:3px 13px}
#purchase-filters {padding-top:12px}
.account-filter {position:relative;min-width:0}
.account-filter+.account-filter {border-top:1px solid var(--line)}
.account-filter>summary {display:grid;grid-template-columns:auto minmax(0,1fr) 17px;align-items:center;gap:8px;min-height:46px;cursor:pointer;list-style:none}
.account-filter>summary::-webkit-details-marker {display:none}
.account-filter>summary>span {font-size:16px;color:var(--ink)}
.account-filter>summary strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:15px;font-weight:500;color:var(--muted)}
.account-filter>summary>svg {width:17px;height:17px;transform:rotate(90deg);color:var(--muted)}
.account-filter[open] {z-index:24}
.account-filter[open]>summary strong {color:var(--accent)}
.account-filter[open]>summary>svg {transform:rotate(-90deg)}
.account-filter-options {position:absolute;top:calc(100% + 3px);right:0;width:min(100%,225px);max-height:min(245px,37vh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8baa4 transparent;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-floating)}
.account-filter-options>button {width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;text-align:left;font-size:16px;color:var(--ink);overflow-wrap:anywhere}
.account-filter-options>button:hover {background:var(--surface-subtle)}
.account-filter-options>button[aria-pressed="true"] {background:var(--accent-soft);color:#745725}
.account-filter-options>button>svg {width:17px;height:17px;flex-shrink:0}
.account-filter-options>button[aria-pressed="false"]>svg {visibility:hidden}
.account-filter :is(summary,button):focus-visible,.account-filter-toggle:focus-visible {outline:2px solid var(--accent);outline-offset:-2px}
.filter-panel-actions {display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line)}
.filter-panel-actions .btn {min-height:44px;padding:4px 3px;font-size:15px}
.filter-panel-actions .btn:last-child {color:#745725;font-weight:550;padding-inline:8px}
.account-subpage .account-detail-list {display:grid;gap:0;margin-bottom:0}
.account-page.account-subpage .account-row {padding:13px 0;gap:9px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:none}
.account-page.account-subpage .account-row:last-child {border-bottom:0}
.account-subpage .account-info {gap:5px}
.account-subpage .account-info>strong {font-size:16px;line-height:1.5}
.account-subpage .account-info>span {font-size:15px;line-height:1.6}
.account-subpage .account-info .entry-reference {margin-top:0;line-height:1.5}
.account-subpage .account-amount>b {font-size:17px}
.account-subpage .account-amount>span {font-size:var(--font-caption);line-height:1.5}
.account-subpage .account-detail-list>.empty {font-size:16px;min-height:145px;padding:30px 5px}
.period-report-summary {padding:17px 18px 15px;color:var(--muted)}
.period-report-summary>span {font-size:16px;line-height:1.5}
.period-report-summary>strong {display:block;font:550 clamp(27px,8vw,34px)/1.3 Arial,sans-serif;font-variant-numeric:tabular-nums;margin:8px 0 0;overflow-wrap:anywhere}
.period-report-summary>strong.positive {color:var(--ink)}
.period-report-summary>strong.negative {color:var(--danger)}
.period-report-summary>strong>small {font:400 15px 'Microsoft YaHei',sans-serif;margin-left:8px;white-space:nowrap}
.period-report-summary>dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:13px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.period-report-summary dt {font-size:15px;line-height:1.5;color:var(--muted)}
.period-report-summary dd {font:550 21px/1.4 Arial,sans-serif;color:var(--ink);margin:6px 0 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.period-report-counts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:15px 2px;color:var(--muted);font-size:15px;line-height:1.6}
.period-report-counts>span {display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.period-report-counts b {font-size:16px;font-weight:500;color:var(--muted);white-space:nowrap}
.period-report-breakdown {border-top:1px solid var(--line);padding-top:15px}
.period-report-section-title {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.period-report-section-title h2 {font-size:18px;line-height:1.5;font-weight:600;color:var(--ink)}
.period-report-section-title>span {font-size:var(--font-caption);color:var(--muted)}
.period-report-table {display:grid}
.period-report-table>div {display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,.85fr) 52px;gap:10px;align-items:center;min-height:43px;padding:8px 0;border-bottom:1px solid var(--line);font-size:16px;line-height:1.5;color:var(--muted)}
.period-report-table>div>span:first-child {display:flex;align-items:center;gap:8px;white-space:nowrap}
.period-report-table i {width:8px;height:8px;border-radius:50%;flex-shrink:0}
.period-report-table b {font:500 16px/1.5 Arial,sans-serif;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.period-report-table>div>span:last-child {font-size:15px;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.period-report-table .period-report-table-head {min-height:34px;padding:4px 0 8px;font-size:var(--font-caption);color:var(--muted)}
.period-report-table-head>span:nth-child(2) {text-align:right}
.period-report-empty {font-size:16px;line-height:1.8;padding:18px 0 14px;color:var(--muted);text-align:center}
.period-report-note {font-size:var(--font-caption);line-height:1.8;color:var(--muted);margin:13px 0 0}
.period-report-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.period-report-actions>.btn {min-height:44px;font-size:16px;border-radius:12px;padding-inline:10px}
.period-report-actions>.btn>svg {width:18px;height:18px}
.purchase-filter-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.purchase-filter-fields .filter-field>label {font-size:15px;line-height:1.5;color:var(--muted);margin:0 0 8px}
.purchase-filter-fields .choice-row .choice-input,.purchase-filter-fields .filter-date {display:block;width:100%;min-width:0;height:46px;min-height:46px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--muted);font-size:16px;line-height:1.5;padding:10px 11px}
.purchase-filter-fields .choice-row .choice-input {padding-right:34px}
.purchase-filter-fields .filter-date {font-family:inherit;appearance:none}
.purchase-filter-fields .choice-menu {min-width:205px;max-width:calc(100vw - 70px)}
#purchase-filters .filter-panel-actions {margin-top:10px}
@media(min-width:761px) {
.settings-profile {padding-bottom:20px}
.settings-profile-identity strong {font-size:25px}
.account-page.account-subpage .account-reference-header {min-height:46px;margin-bottom:12px}
.account-trend-detail .account-trend-plot {grid-template-rows:185px auto}
.account-trend-detail .account-section-heading>h2 {font-size:19px}
.account-subpage .account-amount>b {font-size:18px}
.period-report-summary {padding:20px 23px 18px}
.period-report-summary>strong {font-size:38px}
.period-report-summary dd {font-size:24px}
.purchase-filter-fields {gap:17px}
}
@media(max-width:370px) {
.account-subpage .account-subview-toolbar .account-period-control {font-size:var(--font-caption);padding-inline:9px}
.account-page.account-subpage .account-subview-toolbar {gap:8px}
.account-selected-dates {font-size:var(--font-caption);letter-spacing:-.2px}
.period-report-summary {padding-inline:15px}
.period-report-summary dd {font-size:19px}
.period-report-counts {gap:12px;font-size:var(--font-caption)}
.period-report-table>div {gap:7px;font-size:15px;grid-template-columns:minmax(0,1fr) minmax(60px,.8fr) 47px}
.period-report-table>div>span:first-child {gap:6px}
.period-report-table b {font-size:15px}
.purchase-filter-fields {grid-template-columns:minmax(0,1fr);gap:14px}
}
.settings-page .settings-menu {border-top:0;margin-top:0;padding-top:0}
.account-page.account-subpage .account-row {display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:10px;row-gap:3px;align-items:start}
.account-subpage .account-row>.account-icon {display:grid;grid-area:1 / 1 / span 2;align-self:start;width:36px;height:36px;background:#efe5d5;color:#765a2f}
.account-row-title {grid-area:1 / 2;min-width:0;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.account-row-amount {grid-area:1 / 3;justify-self:end;white-space:nowrap;font-size:clamp(15px,4.3vw,18px);line-height:1.4;font-variant-numeric:tabular-nums;color:var(--ink)}
.account-row>time,.account-row-payment,.account-row-note {font-size:15px;line-height:1.4;color:var(--muted)}
.account-row>time {grid-area:2 / 2;white-space:normal}
.account-row-payment {grid-area:2 / 3;justify-self:end;max-width:9em;text-align:right;overflow-wrap:anywhere}
.account-row-note {grid-area:3 / 2 / auto / -1;overflow-wrap:anywhere;margin-top:3px}
.filter-month-control {position:relative;display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;height:46px;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--muted);line-height:1.5;font-size:16px}
.filter-month-control>span {min-width:0;white-space:nowrap}
.filter-month-control>svg {width:18px;height:18px;color:var(--muted);flex-shrink:0}
.purchase-filter-fields .filter-month-control>.filter-date,.account-date-field>.filter-date {position:absolute;inset:0;display:block;width:100%;max-width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.account-date-field {width:100%;max-width:100%}
.filter-month-control>.filter-date::-webkit-calendar-picker-indicator {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.filter-month-control:focus-within {outline:2px solid var(--accent);outline-offset:2px}
.expense-breakdown-empty>p {padding:19px 4px 13px;text-align:center;font-size:16px;line-height:1.6;color:var(--muted)}
#purchase-form[data-mode="full"] .modal-body {padding:17px 19px 8px}
#purchase-form[data-mode="full"] .supplement-banner {margin:0 0 17px;padding:11px 12px;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted)}
#purchase-form[data-mode="full"] .supplement-banner>div {display:flex;align-items:center;flex-wrap:wrap;gap:6px 11px}
#purchase-form[data-mode="full"] .supplement-banner-icon {margin:0}
#purchase-form[data-mode="full"] .supplement-banner-icon svg {width:19px;height:19px}
#purchase-form[data-mode="full"] #supplement-links {margin:0;gap:5px 9px;color:var(--muted)}
#purchase-form[data-mode="full"] #supplement-links:empty {display:none}
#purchase-form[data-mode="full"] .supplement-banner.all-complete {background:var(--surface);border-color:var(--line);color:var(--muted)}
.purchase-edit-section {padding:0 0 16px;min-width:0}
.purchase-edit-section+.purchase-edit-section {padding-top:16px;border-top:1px solid var(--line)}
.purchase-edit-section h3,.purchase-edit-section .form-section-title b {font-size:18px;font-weight:650;color:var(--ink);line-height:1.5}
.purchase-edit-section h3,.purchase-edit-section .form-section-title {margin:0 0 13px;padding:0;border:0}
.purchase-edit-section .form-section-title svg {display:none}
.purchase-edit-section .form-grid {gap:13px 11px}
.purchase-edit-section .field>input[type="date"] {width:100%;min-width:0}
#purchase-form[data-mode="full"] .field[data-completion] {padding:0;border:0;box-shadow:none}
#purchase-form[data-mode="full"] .field.pending-field>label {color:var(--muted)}
#purchase-form[data-mode="full"] .field.pending-field .input-unit>input,#purchase-form[data-mode="full"] .field.pending-field .choice-row>.choice-input {border-color:var(--line);background:var(--surface)}
#purchase-form[data-mode="full"] .gap-badge {padding:2px 5px;font-size:var(--font-caption);background:var(--surface);color:var(--muted);line-height:1.25}
.purchase-edit-section .form-total {margin:12px 0 0;padding:11px 12px;border:0;border-radius:11px;background:var(--surface);color:var(--muted);font-size:15px}
.purchase-edit-section .form-total>b {font-size:24px;color:var(--ink);font-variant-numeric:tabular-nums}
.purchase-edit-section .form-total>b.is-empty {font-size:15px;color:var(--muted)}
.purchase-contact-disclosure {margin-top:11px}
.purchase-contact-disclosure>summary,.purchase-photo-button {list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:45px;font-size:16px;color:var(--muted)}
.purchase-contact-disclosure>summary::-webkit-details-marker {display:none}
.purchase-contact-disclosure>summary>svg {width:15px;height:15px;margin-left:auto;color:var(--muted)}
.purchase-contact-disclosure[open]>summary>svg {transform:rotate(90deg)}
.purchase-contact-disclosure .contact-fields {margin-top:8px}
#purchase-form .purchase-photo-button {margin:0;color:var(--muted)}
.purchase-photo-button>svg {width:20px;height:20px;color:var(--muted);flex-shrink:0}
.purchase-photo-button>svg:last-child {width:14px;height:14px}
.purchase-photo-button>small {font-size:var(--font-caption);color:var(--muted);margin-left:auto;white-space:nowrap}
.purchase-attachments .photo-grid:empty {display:none}
.purchase-edit-section .purchase-notes {margin:12px 0 0}
.purchase-edit-section .purchase-notes textarea {min-height:70px}
#purchase-form[data-mode="full"] .modal-footer>.right {display:grid}
#purchase-form[data-mode="full"] .modal-footer .btn {min-height:46px;border-radius:12px;font-size:16px}
@media(min-width:761px) {
#purchase-form[data-mode="full"] .modal-body {padding-inline:25px}
.purchase-edit-section .form-grid {gap:15px 17px}
}
.auth-page .login-form>.auth-remember-option {display:flex;align-items:center;gap:9px;min-height:44px;margin:8px 0 0;color:var(--muted);font-size:16px;cursor:pointer}
.auth-remember-option>input {width:19px;height:19px;accent-color:var(--accent)}
.register-invite>small {display:block;margin:8px 2px 0;color:var(--muted);font-size:15px;line-height:1.5;text-align:left;text-wrap:pretty}
.settings-password-form {max-width:420px;margin-inline:auto;gap:16px}
.password-field-label {display:block;color:var(--ink);font-size:16px;font-weight:600;margin:0 2px 7px}
.password-session-note {margin:0;color:var(--muted);font-size:15px;line-height:1.6}
.settings-password-form .auth-error {margin:0}
.settings-password-form .auth-error:empty {display:none}
.settings-password-form .settings-save {justify-content:center;width:100%;min-height:48px}
.join-space-error {margin-top:9px;color:var(--danger);font-size:15px;line-height:1.55}
.auth-page.auth-screen.auth-register .login-form {margin-top:clamp(24px,4.3svh,36px)}
.auth-page.auth-screen.auth-register .login-switch {margin-top:16px}
.join-space-error:empty {display:none}
.notification-empty {padding:25px 5px;color:var(--muted);font-size:16px;line-height:1.65;text-align:center}
.notification-retry {display:flex;margin:0 auto 12px}
.notification-list {list-style:none;margin:0;padding:0}
.notification-list>li {display:flex;align-items:flex-start;gap:12px;padding:19px 0;border-bottom:1px solid var(--line)}
.notification-list>li:last-child {border-bottom:0}
.notification-item-heading {display:flex;align-items:baseline;justify-content:space-between;gap:4px 14px;flex-wrap:wrap}
.notification-item-heading>strong {font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.notification-item-heading>strong>span {font-weight:550}
.notification-item-heading>time {font-size:var(--font-caption);color:var(--muted);white-space:nowrap}
.notification-item-content {min-width:0;flex:1}
.notification-item-content>p {margin-top:7px;color:var(--muted);font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.notification-event-icon {display:grid;place-items:center;flex-shrink:0}
.notification-event-icon>svg {width:21px;height:21px}
.notification-demo-note {font-size:15px;color:var(--muted);margin:0 0 3px;text-align:center}
.notification-example-link {display:block;min-height:44px;margin:12px auto;padding:8px 12px;font-size:16px;color:var(--muted);text-align:center}
.notification-error>p {font-size:15px;color:var(--danger);text-align:center;margin:12px 0}
.notification-page-header {margin-bottom:12px}
#main>.notification-page-header .ledger-header-trailing>.notification-clear {background:transparent;border:0;color:var(--danger);font-size:15px}
html,#modal {scrollbar-width:none;scrollbar-gutter:auto}
html::-webkit-scrollbar,#modal::-webkit-scrollbar {display:none;width:0;height:0}
#main {overflow-anchor:none}
.settings-profile-details>div {align-items:center}
.settings-profile-details dd {height:44px;min-width:0}
.settings-profile-details dd>span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-name-edit {margin:0 -7px 0 0}
.workspace-name-form {position:relative;height:44px;min-width:0}
.workspace-name-form>input {height:42px;min-height:42px}
.red-count,.red-count.small,.ledger-page .red-count,.nav-count {background:var(--surface-subtle);color:var(--on-accent);box-shadow:none;font-weight:650}
.red-count,.red-count.small {min-width:25px;height:25px;border-radius:999px}
.ledger-page .pending-entry .red-count {min-width:27px;height:27px;font-size:16px}
.ledger-page .notification-dot {background:var(--surface-subtle)}
.ledger-page .status.pending,.status.pending {color:var(--pending-red);background:var(--surface)}
.ledger-page .pending-text,#modal .pending-text,.pending-text {color:var(--pending-red)}
#purchase-form .field.pending-field>label,#purchase-form[data-mode="full"] .field.pending-field>label {color:var(--pending-red)}
#purchase-form .field.pending-field {border-color:var(--pending-border);background:var(--pending-tint);box-shadow:none}
#purchase-form .field.pending-field input,#purchase-form .field.pending-field .choice-row>.choice-input,#purchase-form[data-mode="full"] .field.pending-field .input-unit>input,#purchase-form[data-mode="full"] .field.pending-field .choice-row>.choice-input {border-color:var(--pending-border);background:var(--surface)}
#purchase-form .gap-badge,#purchase-form[data-mode="full"] .gap-badge {color:var(--pending-red);background:var(--surface-subtle)}
#purchase-form[data-mode="full"] .field[data-completion] {background:none}
#purchase-form .supplement-banner:not(.all-complete) {color:var(--pending-red);background:var(--pending-tint);border-color:var(--pending-border)}
#purchase-form .supplement-banner:not(.all-complete) .supplement-banner-icon {color:inherit}
#purchase-form .supplement-banner:not(.all-complete) #supplement-links,#purchase-form #form-status,#purchase-form .form-total>b.is-empty,#purchase-form[data-mode="quick"] .quick-price .optional-label {color:var(--pending-red)}
.ledger-page .home-metal-hero .hero-balance.positive>.home-balance-number {color:var(--on-accent)}
.purchase-assignee {margin:-4px 0 17px;font-size:15px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.notification-pending-section {padding:9px 0 16px;border-bottom:1px solid var(--line);margin-bottom:8px}
.notification-pending-section>h2 {display:flex;align-items:center;gap:9px;font-size:18px;font-weight:650;color:var(--ink);margin:0 0 5px}
.notification-pending-row {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:65px;padding:10px 0;width:100%;text-align:left;border-bottom:1px solid var(--line)}
.notification-pending-row:last-child {border-bottom:0}
.notification-pending-row>span {display:grid;gap:4px;min-width:0}
.notification-pending-row strong {font-size:17px;font-weight:550;color:var(--ink);overflow-wrap:anywhere}
.notification-pending-row small {font-size:15px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
.notification-pending-row>svg {width:17px;height:17px;color:var(--muted);flex-shrink:0}
.ledger-page .dashboard-heading,.account-page:not(.account-subpage) .account-reference-header {min-height:49px;margin-bottom:18px}
.account-metal-hero,.account-metal-hero.home-metal-hero {min-height:154px;padding:14px 20px 34px;background:var(--surface)}
.account-metal-hero .account-hero-title-row {min-height:35px}
.account-metal-hero .account-hero-income {font:550 clamp(32px,7.4vw,40px)/1.25 Arial,sans-serif;letter-spacing:.2px;margin-top:13px;color:var(--on-accent)}
.account-metal-hero .account-hero-income.negative {color:var(--danger)}
.summary-period-label {display:inline-flex;align-items:center;justify-content:center;min-height:35px;padding:7px 10px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--muted);font-size:var(--font-caption);line-height:1.4;white-space:nowrap;box-shadow:none}
.home-metal-hero .account-hero-meta>.comparison {padding:0;background:none;color:inherit;font-size:inherit}
@media(min-width:761px) {
.ledger-page .dashboard-heading,.account-page:not(.account-subpage) .account-reference-header {min-height:53px;margin-bottom:20px}
.account-metal-hero,.account-metal-hero.home-metal-hero {min-height:174px;padding:19px 27px 41px}
.account-metal-hero .account-hero-title-row {min-height:39px}
.account-metal-hero .account-hero-income {font-size:43px}
.summary-period-label {min-height:39px;padding:8px 13px;font-size:16px}
}
@media(max-width:370px) {
.account-metal-hero,.account-metal-hero.home-metal-hero {padding-inline:17px}
.summary-period-label {padding-inline:8px}
}
:root {--page-header-height:52px;--page-header-gap:18px;--page-header-slot:48px;--page-header-font:28px}
#main>.ledger-header {position:relative;z-index:40;display:grid;grid-template-columns:var(--page-header-slot) minmax(0,1fr) var(--page-header-slot);grid-template-rows:var(--page-header-height);align-items:center;gap:8px;height:var(--page-header-height);min-height:var(--page-header-height);padding:0;margin:0 0 var(--page-header-gap);text-align:center}
/* 页面标题、导航、搜索与记录列表。 */
#main>.ledger-header>h1 {grid-column:2;grid-row:1;display:block;position:static;min-width:0;width:100%;margin:0;padding:0;text-align:center;font-size:var(--page-header-font);font-weight:750;line-height:1.35;letter-spacing:-.8px;white-space:nowrap}
#main>.ledger-header>.ledger-header-leading,#main>.ledger-header>.ledger-header-trailing {grid-row:1;display:flex;align-items:center;min-width:0;width:var(--page-header-slot);height:100%;margin:0;padding:0}
#main>.ledger-header>.ledger-header-leading {grid-column:1;justify-content:flex-start}
#main>.ledger-header>.ledger-header-trailing {grid-column:3;justify-content:flex-end}
#main>.ledger-header .ledger-header-leading>button,#main>.ledger-header .ledger-header-trailing>button {position:relative;inset:auto;display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;min-height:48px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%}
#main>.ledger-header .ledger-header-leading>button>svg,#main>.ledger-header .ledger-header-trailing>button>svg {width:24px;height:24px}
#main>.ledger-header:has(>.account-header-popover:not([hidden])) {z-index:55}
#main>.ledger-header>.account-header-popover {top:calc(100% + 8px);right:0}
@media(min-width:761px) {
:root {--page-header-height:56px;--page-header-gap:20px;--page-header-slot:52px;--page-header-font:30px}
}
@media(max-width:370px) {
:root {--page-header-font:clamp(22px,calc(10vw - 10px),26px)}
#main>.ledger-header {gap:6px}
}
.menu-option>span>small,.option-editor-name>small {display:block;font-size:var(--font-caption);line-height:1.6;color:var(--muted);margin-top:3px;white-space:normal;overflow-wrap:anywhere}
#confirm-modal {position:fixed;inset:0;width:calc(100% - 40px);max-width:380px;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--line);color:var(--ink);overflow:auto;scrollbar-width:none}
#confirm-modal::backdrop {background:var(--surface-subtle);backdrop-filter:blur(5px)}
.confirm-dialog-body {padding:26px 25px 15px;text-align:center}
.confirm-dialog-symbol {display:grid;place-items:center;width:48px;height:48px;margin:0 auto 14px;border-radius:16px;background:var(--surface-subtle);color:var(--muted)}
.confirm-dialog-symbol>svg {width:25px;height:25px}
.confirm-dialog-body>h2 {margin:0 0 13px;font-size:22px;font-weight:650;line-height:1.4;color:var(--ink)}
#confirm-message {font-size:16px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
#confirm-message>strong {display:block;margin-bottom:8px;color:var(--ink);font-size:16px;font-weight:550}
#confirm-message>span {display:block}
#confirm-error {margin-top:10px;font-size:15px;line-height:1.65;color:var(--danger)}
#confirm-error:empty {display:none}
.confirm-dialog-actions {display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:6px 22px 23px}
.confirm-dialog-actions>.btn {min-height:48px;font-size:17px;border-radius:13px;padding-inline:8px}
.confirm-dialog-actions:has(.draft-discard) {grid-template-columns:minmax(0,1fr)}
.confirm-dialog-actions>.draft-discard {color:var(--danger)}
#modal .modal-footer:has(.editor-draft-status:not([hidden])) {flex-wrap:wrap}
.editor-draft-status {flex:0 0 100%;margin:0;color:var(--danger);font-size:15px;line-height:1.5}
#confirm-modal[data-destructive="true"] #confirm-operation {box-shadow:none}
#confirm-modal[data-busy="true"] .confirm-dialog-actions>.btn {opacity:.6}
.amount-text-action {min-height:44px;padding:5px 0;font-size:15px;color:var(--muted);background:none;border:0}
#manual-amount-fields {margin:10px 0 0}
#manual-amount-fields[hidden],#amount-review-row[hidden] {display:none}
#manual-amount-fields>label:first-child {display:flex;align-items:center;gap:10px;font-size:16px;color:var(--muted);margin-bottom:8px}
.manual-amount-tag {font-size:var(--font-caption);color:var(--muted)}
#f-final-amount {width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:11px}
.manual-amount-meta {display:flex;align-items:center;justify-content:space-between;color:var(--muted)}
#amount-review-row {display:flex;align-items:flex-start;gap:8px;font-size:15px;line-height:1.7;color:var(--danger);padding:8px 0}
#amount-reviewed {width:20px;height:20px;flex-shrink:0;margin-top:3px;accent-color:var(--accent)}
#purchase-form[data-mode="full"] .end-supplement {min-height:42px;color:var(--muted);background:none}
#purchase-form[data-mode="full"] .modal-body,#purchase-detail.modal-body {padding:13px 19px 20px}
.purchase-form-summary {display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;padding-bottom:15px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.purchase-form-summary>.status {align-self:center;grid-column:1;grid-row:1}
.purchase-form-summary>strong {font-size:19px;font-weight:650;color:var(--ink);overflow-wrap:anywhere}
.purchase-form-summary>span:not(.status) {grid-column:2;font-size:16px;color:var(--muted);overflow-wrap:anywhere}
#purchase-form[data-mode="full"] .purchase-form-summary .supplement-banner {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:3px 7px;margin:5px 0 0;padding:0;border:0;border-radius:0;background:none;font-size:var(--font-caption)}
#purchase-form[data-mode="full"] .supplement-banner[hidden] {display:none}
#purchase-form[data-mode="full"] .supplement-banner>strong {font-size:var(--font-caption);font-weight:400}
#purchase-form[data-mode="full"] .purchase-settlement-section>.form-section-title {display:none}
#purchase-form[data-mode="full"] .purchase-settlement-section {padding-bottom:15px}
#purchase-form[data-mode="full"] .purchase-settlement-section>.form-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.purchase-final-amount {padding:15px 0 0;margin-top:15px;border-top:1px solid var(--line)}
.final-amount-heading {display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:15px;color:var(--muted)}
.amount-value-row {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:55px}
.amount-value-row[hidden],.manual-amount-tag[hidden] {display:none}
.amount-value-row>b {font:550 31px/1.4 Arial,sans-serif;color:var(--ink);font-variant-numeric:tabular-nums}
.amount-value-row>b.is-empty {font:400 19px/1.6 "Microsoft YaHei",sans-serif;color:var(--danger)}
#manual-amount-fields {margin-top:9px}
#f-final-amount {height:53px;font-size:31px;font-weight:550;color:var(--ink);background:var(--surface);border-color:var(--line);scroll-margin-bottom:110px}
.manual-amount-meta {gap:6px;font-size:var(--font-caption);flex-wrap:wrap}
.manual-amount-meta .amount-text-action {margin-left:auto}
.purchase-full-info {border-top:1px solid var(--line)}
.purchase-full-info>summary {display:flex;align-items:center;gap:9px;min-height:49px;list-style:none;font-size:16px;color:var(--muted);cursor:pointer}
.purchase-full-info>summary::-webkit-details-marker {display:none}
.purchase-full-info>summary>span {margin-left:auto;font-size:var(--font-caption);color:var(--muted)}
.purchase-full-info>summary>svg {width:15px;height:15px;margin-left:auto;flex-shrink:0;color:var(--muted)}
.purchase-full-info[open]>summary>svg {transform:rotate(90deg)}
.purchase-full-info-body {padding:8px 0 0}
.purchase-full-info-body>.form-grid {gap:13px 12px}
.purchase-full-info-body>.contact-fields {margin-top:13px}
.purchase-full-info-body .purchase-assignee {margin:11px 0 0;font-size:var(--font-caption);color:var(--muted)}
#purchase-form[data-mode="full"] .modal-footer {display:flex;flex-wrap:nowrap;gap:10px;padding:11px 19px calc(11px + env(safe-area-inset-bottom));background:var(--surface)}
#purchase-form[data-mode="full"] .modal-footer>.right {flex:1;min-width:0;width:auto;grid-template-columns:1fr 1.5fr;gap:8px}
#purchase-form[data-mode="full"] .end-supplement {flex-shrink:0;margin:0;padding:0 2px;font-size:15px}
.purchase-detail-meta {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px;color:var(--muted)}
.purchase-detail-core {padding:15px 0 17px}
.purchase-detail-core>h3 {font-size:22px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;color:var(--ink)}
.purchase-detail-core>p {display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-top:5px;font-size:17px;color:var(--muted);overflow-wrap:anywhere}
.purchase-detail-core>p>span {flex-shrink:0}
.purchase-detail-amount {border-block:1px solid var(--line);padding:15px 0}
.purchase-detail-amount>span {font-size:15px;color:var(--muted)}
.purchase-detail-amount>strong {display:block;margin-top:5px;font:550 34px/1.4 Arial,sans-serif;color:var(--ink);overflow-wrap:anywhere}
.purchase-detail-amount>strong.is-empty {font:500 22px/1.6 "Microsoft YaHei",sans-serif;color:var(--danger)}
.purchase-detail-amount>div {display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;margin-top:5px;font-size:15px;color:var(--muted)}
.purchase-detail-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 20px;margin:0}
.purchase-detail-grid>.full {grid-column:1/-1}
.purchase-detail-grid dt {font-size:var(--font-caption);color:var(--muted);margin-bottom:3px}
.purchase-detail-grid dd {margin:0;font-size:16px;line-height:1.7;color:var(--ink);overflow-wrap:anywhere;white-space:pre-wrap}
.purchase-detail-contact {padding:15px 0}
.purchase-detail-photos {padding-top:12px;border-top:1px solid var(--line)}
.purchase-detail-photos h3 {font-size:16px;font-weight:550;color:var(--muted)}
.purchase-detail-photos>p {margin-top:5px;color:var(--muted);font-size:15px}
.purchase-detail-footer>.btn {min-height:46px;border-radius:12px;font-size:16px}
.purchase-detail-footer>.btn.text {color:var(--danger);border:1px solid var(--line);background:none}
@media(max-width:370px) {
.purchase-full-info>summary>span {display:none}
#purchase-form[data-mode="full"] .modal-footer {gap:6px}
#purchase-form[data-mode="full"] .modal-footer .btn {padding-inline:8px}
.manual-amount-meta {font-size:var(--font-caption)}
.purchase-detail-core>p {font-size:16px}
}
#purchase-form[data-mode="full"] .purchase-settlement-section .gap-badge {display:none}
.amount-value-row>b,#f-final-amount,.purchase-detail-amount>strong:not(.is-empty) {font-size:32px}
#manual-amount-fields {position:relative}
#manual-amount-fields>.final-amount-unit {position:absolute;top:14px;right:13px;font-size:16px;color:var(--muted);pointer-events:none}
#f-final-amount {padding-right:43px}
/* 公共组件：文字、操作、状态与反馈。 */
html {font-family:var(--font-family);font-size:16px;color:var(--ink);background:var(--canvas);color-scheme:light}
body {font-family:var(--font-family);line-height:1.55;background:var(--canvas);color:var(--ink)}
body[data-auth="ready"] .app-shell,.sidebar {background:var(--canvas)}
#main.ledger-page {background:var(--canvas) var(--ledger-scene) center top / cover no-repeat}
button,input,select,textarea {font-family:inherit}
button:focus-visible,a:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
input:focus,select:focus,textarea:focus {outline:2px solid var(--accent);outline-offset:1px}
input::placeholder,textarea::placeholder {color:var(--faint);opacity:1}
h1,h2,h3,strong {color:var(--ink)}
.positive,.income-text {color:var(--ink)}
.negative,.expense-text.negative {color:var(--danger)}
.btn {min-height:var(--control-height);border-radius:var(--radius-control);font-size:16px;font-weight:550;padding:10px 16px;box-shadow:none}
.btn.primary {background:linear-gradient(135deg,#c6a56a,#987339);border-color:var(--accent);color:var(--on-accent);box-shadow:none}
.btn.primary:hover {filter:brightness(.97)}
.btn.secondary {background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:none}
.btn.text,.amount-text-action,.notification-example-link {background:none;border-color:transparent;color:var(--muted);box-shadow:none}
.btn.text:hover,.amount-text-action:hover {color:var(--accent)}
.icon-button {color:var(--muted);border-radius:var(--radius-control)}
.red-count,.ledger-page .red-count,.nav-count {background:var(--danger);color:var(--on-accent);box-shadow:none}
.status,.ledger-page .status {font-size:15px;font-weight:500;line-height:1.5;padding:3px 9px;border-radius:7px;white-space:nowrap}
.status.pending,.ledger-page .status.pending {background:var(--warning-soft);color:var(--warning)}
.ledger-page .purchase-item .status.pending {color:var(--danger)}
.status.recorded {background:var(--surface-subtle);color:var(--muted)}
.status.complete,.ledger-page .status.complete {background:var(--success-soft);color:var(--success)}
.form-error,.auth-error,.join-space-error,#confirm-error {font-size:15px;line-height:1.65;color:var(--danger)}
.empty,.notification-empty,.period-report-empty {padding:30px 12px;font-size:16px;color:var(--muted);text-align:center}
.empty>svg {display:none}
.toast {border:1px solid #2e241c;border-radius:14px;background:#443429;color:#fffaf2;font-size:15px;font-weight:600;line-height:1.5;box-shadow:0 6px 22px #4030233b}
.shared-sync-status {background:var(--warning-soft);border-color:var(--line);border-radius:12px;color:var(--warning);font-size:15px;box-shadow:none}
.shared-sync-status[data-error="true"] {background:var(--warning-soft);color:var(--warning);border-color:var(--line)}
#main>.ledger-header>h1 {color:var(--ink)}
#main>.ledger-header .ledger-header-leading>button,#main>.ledger-header .ledger-header-trailing>button {background:var(--surface);border-color:var(--line);color:var(--muted)}
.sidebar {border-color:var(--line)}
.nav-label,.sidebar-bottom,.sidebar-bottom small,.dashboard-date,.desktop-footer {color:var(--muted)}
.desktop-nav .nav-link.active {background:var(--accent-soft);color:var(--accent)}
.mobile-nav {background:var(--surface);border-top:1px solid var(--line);box-shadow:none}
.mobile-nav {padding-inline:4px}
.mobile-nav .nav-link {padding-inline:0;font-size:15px;color:var(--muted)}
.mobile-nav .nav-link>span {white-space:nowrap}
@media(max-width:360px) {.mobile-nav .nav-link {font-size:14px}}
.mobile-nav .nav-link.active {color:#704d18;font-weight:750}
.mobile-nav .nav-link.active::before {content:"";position:absolute;inset:0 auto auto 50%;transform:translateX(-50%);width:44px;height:29px;border-radius:16px;background:#eadcbf;pointer-events:none}
.mobile-nav .nav-link svg {width:24px;height:24px;fill:none}
.mobile-nav .nav-link.active svg {position:relative;stroke-width:2.1}
.mobile-nav .active[data-page="overview"] svg,.mobile-nav .active[data-page="suppliers"] svg {fill:none}
.search {min-height:46px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-control);box-shadow:none;color:var(--muted)}
.search>input {font-size:16px;color:var(--ink)}
.search:focus-within {outline:2px solid var(--accent);outline-offset:2px}
.ledger-page .search input:focus {outline:0}
.ledger-page .pill,.supplier-filters .pill {min-height:40px;font-size:15px;border:1px solid #d8cdbb;background:var(--record-fill);color:var(--muted);box-shadow:none}
.ledger-page .pill.active {background:var(--accent-soft);color:var(--accent);border-color:transparent;box-shadow:none}
.purchase-search-row,.supplier-search-row {gap:10px}
.day-heading,.ledger-footer,.account-selected-dates {color:var(--muted);font-size:15px}
.ledger-page .purchase-item,.ledger-page .supplier-item {background:var(--record-fill);border:1px solid #d8cdbb;border-radius:14px;box-shadow:var(--record-shadow);padding:14px;min-height:82px}
.purchase-day-rows,.supplier-list {gap:9px}
.purchase-title strong,.supplier-title strong {font-size:17px;color:var(--ink);font-weight:600}
.purchase-title>span,.supplier-title>span,.purchase-product,.supplier-contact,.supplier-contact>span:last-child,.supplier-transaction>span {font-size:15px;color:var(--muted)}
.purchase-value>b,.supplier-transaction>b {font-size:18px;color:var(--ink);font-weight:600}
.supplier-avatar,.supplier-avatar.rose {background:var(--surface-subtle);color:var(--muted);box-shadow:none;font-size:23px;width:42px;height:42px}
.row-chevron {color:var(--faint)}
.account-row {padding-block:14px;border-color:var(--line);background:none;border-radius:0;box-shadow:none}
.account-icon {background:var(--surface-subtle);color:var(--muted);border-radius:10px}
.account-info>strong {font-size:17px;color:var(--ink)}
.account-info>span,.account-amount>span,.account-row-reference {font-size:15px;color:var(--muted)}
.account-amount>b {font-size:18px;font-weight:600;color:var(--ink)}
.account-amount>b.expense-text {color:var(--muted)}
.notification-list>li {border-color:var(--line);padding-block:16px}
.notification-item-heading>strong {font-size:17px;color:var(--ink)}
.notification-item-content>p,.notification-item-heading>time {color:var(--muted);font-size:15px}
.notification-event-icon {background:var(--surface-subtle);color:var(--muted);border-radius:10px;width:36px;height:36px}
/* 经营汇总与图表：布局按业务区分，视觉变量共用。 */
#main .account-metal-hero,#main .home-metal-hero {background:linear-gradient(111deg,#927b47 0%,#ae9660 47%,#d8bd8b 100%);border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0;box-shadow:none;min-height:152px;padding-bottom:33px;color:var(--ink)}
#main .account-metal-hero::before {display:none}
#main .account-hero-label {color:#fff9eb}
#main .account-metal-hero .account-hero-income {color:#fff9eb;font-weight:600}
#main .account-metal-hero .account-hero-income.negative {color:var(--danger)}
#main .account-hero-meta {color:#fff9eb}
#main .summary-period-label,#main .account-period-control {background:var(--surface);border-color:var(--line);color:var(--muted);box-shadow:none}
#main .account-total-strip {background:var(--surface);border:1px solid var(--line);border-top:0;border-radius:14px;margin-top:-17px;padding:17px 10px;box-shadow:none}
#main .account-total-strip>div {border-color:var(--line);padding-inline:7px}
#main .account-total-strip>div>span {color:var(--muted);font-size:15px}
#main .account-total-strip b {color:var(--ink);font-size:20px;font-weight:600;white-space:nowrap;overflow-wrap:normal;letter-spacing:-.4px}
#main .account-total-strip.wide-amounts {grid-template-columns:1fr;padding-block:7px}
#main .account-total-strip.wide-amounts>div {display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block:10px;border:0}
#main .account-total-strip.wide-amounts>div+div {border-top:1px solid var(--line)}
#main .account-metal-hero .account-hero-income.long-amount {font-size:clamp(22px,5.6vw,30px);letter-spacing:-.5px}
#main .account-total-strip b.negative {color:var(--danger)}
#main .home-balance-totals b {font-size:25px}
#main .home-balance-totals svg {display:none}
#main .quick-actions {gap:10px;margin:17px 0}
#main .quick-action {padding:16px 5px;min-height:93px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:none;gap:7px}
#main .quick-action svg {width:26px;height:26px;color:var(--accent)}
#main .quick-action strong {font-size:18px;font-weight:600}
#main .pending-entry {background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:none;padding:14px;min-height:75px}
#main .pending-entry-icon {color:var(--muted)}
#main .pending-entry-text strong {color:var(--ink);font-size:17px}
#main .pending-entry-text>span {color:var(--muted);font-size:15px}
.account-trend-panel,.expense-panel,.account-reference-expenses,.account-recent-entry,.report-entry {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);box-shadow:none}
.account-section-heading>h2,.section-heading>h2,.account-recent-entry>strong,.report-entry>strong {font-size:19px;color:var(--ink);font-weight:600}
.account-section-heading>svg:first-child,.account-recent-entry>svg:first-child,.report-entry>svg:first-child {display:none}
.account-section-heading>svg:last-child {color:var(--faint)}
.account-income-column {fill:#efa52a}
.account-expense-line {stroke:#258ee3;stroke-width:2.5}
.account-expense-point {stroke:#ffffff;fill:#258ee3;stroke-width:1.5}
.account-trend-legend>span:first-child>i {background:#efa52a}
.account-trend-legend>span:last-child>i {background:#258ee3}
.account-trend-grid {stroke:var(--line)}
.account-trend-x,.account-trend-y,.account-trend-legend,.account-chart-unit {color:var(--muted);font-size:15px}
.account-trend-table>div,.period-report-table>div {border-color:var(--line);font-size:15px}
.account-trend-table>div {grid-template-columns:minmax(0,.65fr) minmax(0,1fr) minmax(0,1fr)}
.filter-popover {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);box-shadow:var(--shadow-floating)}
.expense-category {font-size:15px;color:var(--ink)}
.expense-category>b {font-size:15px;color:var(--ink)}
.expense-tooltip {border-color:var(--line);background:var(--surface);box-shadow:var(--shadow-floating);font-size:15px;color:var(--ink)}
.period-report-summary {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);box-shadow:none}
.period-report-section-title>h2 {color:var(--ink)}
.period-report-note {font-size:15px;color:var(--muted)}
/* 编辑弹窗、分组表单、金额及详情。 */
#modal {background:var(--canvas);border:1px solid var(--line);border-radius:20px 20px 0 0;box-shadow:none;scroll-padding-block:72px 94px;max-height:calc(100dvh - 16px)}
#modal .modal-header {min-height:64px;padding:10px 62px;background:var(--canvas);border-color:var(--line);position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:center}
#modal .modal-header>h2 {font-size:21px;line-height:1.4;font-weight:650;color:var(--ink);text-align:center;letter-spacing:0}
#modal .modal-header>h2:focus {outline:0}
#modal:focus,#confirm-modal:focus {outline:none}
html.dialog-scroll-locked {overflow:hidden;overscroll-behavior:none}
html.dialog-scroll-locked body {position:fixed;top:var(--locked-scroll-top);left:0;right:0}
#modal,#confirm-modal {overscroll-behavior:contain}
#modal .modal-header>.icon-button {position:absolute;inset:auto 12px auto auto;top:50%;transform:translateY(-50%);width:44px;height:44px;background:var(--surface-subtle);color:var(--muted);border:0;border-radius:50%}
#modal .modal-body {padding:14px 19px 20px}
#modal .modal-footer {min-height:69px;background:var(--canvas);border-top:1px solid var(--line);padding:10px 19px calc(10px + env(safe-area-inset-bottom));gap:10px;position:sticky;bottom:0;z-index:20}
#modal .modal-footer .btn {min-height:46px;border-radius:var(--radius-control);font-size:16px;box-shadow:none}
#modal .modal-footer .primary {background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
#modal .modal-footer .secondary {background:var(--surface);border-color:var(--line);color:var(--muted)}
#modal .modal-footer .text {background:none;border-color:transparent;color:var(--muted)}
#modal .modal-footer .right {gap:8px}
#modal .purchase-detail-footer {display:grid;grid-template-columns:1fr 1.5fr}
#modal .supplier-detail-footer {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#modal .supplier-detail-footer>.btn {padding-inline:4px;white-space:nowrap}
#modal .supplier-detail-footer>.danger {color:var(--danger)}
#modal .modal-footer .btn>svg {display:none}
#modal .modal-footer .cell-sub {min-width:0;flex:1;white-space:normal;line-height:1.5}
#modal :is(input:not([type="checkbox"]):not([type="file"]),select,textarea) {min-height:46px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font-size:16px;padding:10px 12px;box-shadow:none}
#modal .choice-row>.choice-native {display:none}
#modal .choice-row>.choice-input {padding-right:38px}
#modal .field>label {font-size:15px;color:var(--muted);line-height:1.55;font-weight:400}
#modal .required {color:var(--accent);font-size:15px}
#modal .optional-label {color:var(--faint);font-size:15px}
#modal .input-unit>span,#modal .choice-caret {color:var(--muted)}
#modal .choice-caret {width:44px;height:44px;background:none}
#modal .choice-caret svg {width:16px;height:16px}
#modal .choice-caret[aria-expanded="true"] {color:var(--accent)}
#modal .choice-caret[aria-expanded="true"] svg {transform:rotate(-90deg)}
#modal .choice-menu {background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-floating)}
#modal .menu-option {min-height:46px;padding:10px 12px;font-size:16px;color:var(--ink);border-radius:8px}
#modal .menu-option.is-selected {background:transparent;color:#745725}
#modal .menu-add-option,#modal .choice-menu-footer {background:var(--surface);color:var(--accent);border-color:var(--line)}
#modal .choice-menu-footer button {min-height:44px;font-size:15px;color:var(--muted)}
#modal .choice-hint,#modal .choice-manager-head {font-size:15px;color:var(--muted)}
#modal .choice-menu .option-editor .icon-button {width:44px;min-width:44px;min-height:44px}
#modal .form-section {margin:0 0 17px;min-width:0}
#modal .form-section>h3 {font-size:19px;font-weight:650;color:var(--ink);margin:0 0 5px;padding:0}
#modal .form-section>.form-grid,#modal .form-section .contact-fields {display:block;gap:0;background:transparent;border-block:1px solid var(--line);padding:0;border-radius:0;margin-bottom:0}
#modal .form-section .field {display:grid;grid-template-columns:7rem minmax(0,1fr);gap:10px;align-items:center;min-height:56px;border:0;border-bottom:1px solid var(--line);padding:5px 0;background:none;box-shadow:none;border-radius:0;margin:0}
#modal .form-section .field:last-child {border-bottom:0}
#modal.record-page .field>label {font-size:17px;font-weight:500;color:#202124}
#modal .form-section .field>label {display:block;margin:0;white-space:nowrap}
#modal .required {margin-inline-start:5px}
#modal .form-section .field>label>.optional-label {display:inline;margin-left:0;font-size:15px;font-weight:400;white-space:nowrap}
#modal .form-section .field :is(input:not([type="checkbox"]),select,textarea) {border-color:transparent;background:transparent;padding-inline:4px;min-height:44px;outline-offset:0}
/* 单价和单位分别参与布局，长单位可以自然换行。 */
#modal .input-unit {display:flex;align-items:center;gap:8px;min-width:0}
#modal .form-section .input-unit>input {min-width:0;flex:1;width:0;padding-inline:4px}
#modal .input-unit>span {position:static;max-width:45%;overflow-wrap:anywhere;text-align:right}
#modal #manual-amount-fields {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px}
#modal #manual-amount-fields>.final-amount-unit {position:static}
#modal #manual-amount-fields>#f-final-amount {width:100%;padding-inline:10px}
#modal #manual-amount-fields>:is(.manual-amount-meta,#amount-review-row) {grid-column:1/-1}
#modal.record-page input[type="number"] {appearance:textfield}
#modal.record-page input[type="number"]::-webkit-inner-spin-button,
#modal.record-page input[type="number"]::-webkit-outer-spin-button {-webkit-appearance:none;margin:0}

#modal .form-section .weight-stepper {border-color:transparent;background:none}
#modal .form-section .weight-stepper>button {width:44px;height:44px;min-width:44px;min-height:44px;background:#f5eee2;border:1px solid #d8cbb4;border-radius:50%;color:#755b31}
#modal .form-section .weight-stepper>button>svg {width:19px;height:19px}
#modal .form-section .weight-stepper>input {width:100%;padding:8px 2px;text-align:center}
#modal .form-section textarea {min-height:70px;resize:vertical}
#modal .form-section .choice-row>.choice-input {padding-right:44px}
#modal .form-section .choice-control {min-width:0}
#modal .form-section .purchase-notes {display:block;border:0;padding:0;background:none}
#modal .form-section .purchase-notes>label {margin-bottom:8px}
#modal .form-section .field.purchase-notes textarea {display:block;width:100%;min-height:100px;padding:12px;border:1px solid var(--line);border-radius:12px;background:transparent;resize:vertical}
#modal .quick-price {padding-inline:0;background:transparent}
#modal #purchase-form #form-status,#modal #purchase-form .quick-price .optional-label {color:var(--muted)}
#modal .purchase-notes {padding:8px 12px;background:var(--surface)}
#modal #entry-form .entry-note-field {margin:14px 0 0}
#modal #entry-form .entry-note-field>label {margin-bottom:7px}
#entry-form .purchase-attachments {margin-top:12px;border-top:1px solid var(--line)}
.purchase-photo-button {width:100%;padding-inline:0;text-align:left}
#modal .entry-order-fields {padding:0;border-color:var(--line)}
#modal .entry-order-fields>summary {min-height:44px;padding-block:9px;color:var(--muted);font-size:16px}
#modal .entry-order-fields .form-grid {margin:8px 0 14px;gap:14px 12px}
#modal .detail-grid {gap:14px 18px}
#modal .supplier-detail-title {margin-bottom:16px}
#modal .entry-import-link {min-height:44px;color:var(--accent);font-size:15px}
#modal .entry-import-tools {margin-bottom:9px}
#modal .purchase-form-summary {border-color:var(--line);padding-bottom:13px;margin-bottom:14px}
#modal .purchase-form-summary>strong {color:var(--ink);font-size:19px}
#modal .purchase-form-summary>span:not(.status) {color:var(--muted);font-size:16px}
#modal #purchase-form .supplement-banner:not(.all-complete),#modal #purchase-form #supplement-links {background:none;border:0;color:var(--warning)}
#modal #purchase-form .field.pending-field {background:none;border:0;box-shadow:none}
#modal #purchase-form .field.pending-field>label {color:var(--muted);font-weight:400}
#modal #purchase-form .field.pending-field input,#modal #purchase-form .field.pending-field .choice-input {background:var(--surface);border-color:var(--line)}
#modal #purchase-form .purchase-settlement-section {padding-bottom:14px}
#modal .purchase-final-amount {border-color:var(--line);padding-top:13px;margin-top:14px}
#modal .final-amount-heading,#modal .manual-amount-tag {color:var(--muted);font-size:15px}
#modal .amount-value-row>b,#modal .purchase-detail-amount>strong,#modal #f-final-amount {font:600 32px/1.4 var(--font-family);color:var(--ink)}
#modal #f-final-amount {height:53px;padding-right:42px;border-color:var(--line)}
#modal .amount-value-row>b.is-empty,#modal .purchase-detail-amount>strong.is-empty {font:500 20px/1.5 var(--font-family);color:var(--muted)}
#modal .manual-amount-meta,#modal .final-amount-unit {color:var(--muted)}
#modal .amount-text-action {color:var(--accent);font-size:15px}
#modal #amount-review-row {color:var(--warning);font-size:15px}
#modal .purchase-full-info,#modal .purchase-full-info-body {border-color:var(--line)}
#modal .edit-full-info {border:0}
#modal .edit-full-info .purchase-full-info-body {padding-top:0}
#modal .purchase-full-info>summary {color:var(--muted);font-size:16px;min-height:48px}
#modal .purchase-photo-button {min-height:46px;color:var(--muted);font-size:16px}
#modal .purchase-photo-button>svg {color:var(--muted)}
#modal .purchase-assignee {color:var(--faint);font-size:15px}
#modal .end-supplement {color:var(--muted);font-size:15px}
#modal .purchase-detail-meta {color:var(--muted);font-size:15px}
#modal .purchase-detail-core {padding:13px 0 16px}
#modal .purchase-detail-core>h3 {font-size:21px;color:var(--ink)}
#modal .purchase-detail-core>p {font-size:17px;color:var(--muted)}
#modal .purchase-detail-amount {border-color:var(--line);padding-block:15px}
#modal .purchase-detail-amount>span,#modal .purchase-detail-amount>div {color:var(--muted);font-size:15px}
#modal .purchase-detail-grid {gap:12px 20px}
#modal .purchase-detail-grid dt {font-size:15px;color:var(--muted)}
#modal .purchase-detail-grid dd {font-size:16px;color:var(--ink)}
#modal .purchase-detail-photos {border-color:var(--line)}
/* 设置与共享空间。 */
.settings-profile,.settings-profile-details>div,.settings-link,.settings-menu,.settings-operation,.account-settings-section,.shared-members>span {border-color:var(--line);background:none;box-shadow:none}
.settings-profile-avatar {background:var(--surface-subtle);color:var(--muted)}
.settings-profile-identity strong {color:var(--ink)}
.settings-profile-identity>div>span,.settings-profile-details dt,.settings-link small,.settings-operation small,.sharing-space-intro,.shared-members small,.account-settings-section>p {color:var(--muted);font-size:15px}
.settings-link>span>strong,.settings-operation>span>strong,.account-settings-section>h3 {color:var(--ink);font-size:17px;font-weight:550}
.settings-link>svg,.settings-operation>svg {color:var(--muted);width:22px;height:22px}
.settings-link,.settings-operation {min-height:76px;padding-block:15px}
.settings-link>svg:last-child,.settings-operation>svg:last-child {width:16px;color:var(--faint)}
:is(.settings-link,.settings-operation):active>svg:last-child {color:var(--accent)}
.settings-logout {color:var(--danger);font-size:17px}
.settings-storage-note,.cycle-explanation,.cycle-preview,.settings-option>label {color:var(--muted);font-size:15px}
.settings-page input,.settings-page select {border-color:var(--line);background:var(--surface);color:var(--ink);border-radius:var(--radius-control);font-size:16px;min-height:46px}
.settings-page .settings-save {background:var(--accent);color:var(--on-accent);box-shadow:none}
.workspace-name-edit,.workspace-name-save {color:var(--muted)}
.structured-account .invitation-section {padding-bottom:16px;margin-bottom:16px}
.invitation-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
.invitation-heading h3 {margin:0;color:var(--ink);font-size:18px;font-weight:650;line-height:1.4}
.structured-account .invitation-description {margin:3px 0 0;line-height:1.5}
.invitation-heading .invitation-generate {flex:none;min-width:108px;min-height:44px;padding:8px 12px;border-radius:22px;background:var(--accent-soft);color:#745725;font-size:15px}
.invite-result {display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:11px;padding:6px 8px 6px 12px;background:#f4ede0;border:1px solid #e8deca;border-radius:var(--radius-control)}
.invite-result output {flex:1 1 max-content;min-width:0;max-width:100%;padding-block:3px;color:var(--ink);font:600 clamp(15px,4.1vw,19px)/1.5 ui-monospace,"SF Mono",Consolas,monospace;letter-spacing:.035em;overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}
.invite-result .invitation-copy {min-height:44px;margin-inline-start:auto;padding:7px 10px;gap:5px;background:var(--surface);color:#745725;font-size:15px}
.invitation-copy>svg {width:17px;height:17px}
.invitation-generate:active,.invitation-copy:active {filter:brightness(.94)}
.account-settings-section>h3 {margin-bottom:13px}
/* 账单与完整账本导入。 */
#modal .income-import-upload {background:var(--surface);border:1px dashed var(--line);border-radius:14px;box-shadow:none;color:var(--ink);padding:22px 16px}
#modal .income-import-upload>svg {display:none}
#modal .income-import-upload strong {font-size:18px}
#modal .income-import-intro,#modal .income-import-rules,#modal .income-import-hint,#modal .income-import-file-name,#modal .book-sheet-count {font-size:15px;color:var(--muted)}
#modal .income-import-summary {padding:0 0 14px;border-bottom:1px solid var(--line);background:none;border-radius:0;box-shadow:none}
#modal .income-import-summary>strong {color:var(--ink);font-size:24px}
#modal .income-import-totals,#modal .book-import-counts {background:var(--surface);border:1px solid var(--line);border-radius:12px}
#modal .income-import-totals dt,#modal .book-import-counts dt {font-size:15px;color:var(--muted)}
#modal .income-column-label,#modal .income-import-fields>label {font-size:15px;color:var(--muted)}
#modal .book-sheet-config {background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:none}
#modal .book-sheet-title>strong {color:var(--ink);font-size:17px}
#modal .income-import-ack {font-size:15px;line-height:1.7;color:var(--ink)}
#modal .income-import-ack>input {accent-color:var(--accent);width:20px;height:20px}
#modal .import-sync-message {font-size:15px;color:var(--muted)}
#modal .import-sync-message.is-pending {color:var(--warning)}
/* 居中确认弹窗。 */
#confirm-modal {background:var(--surface);border-color:var(--line);border-radius:20px;box-shadow:var(--shadow-floating)}
#confirm-modal::backdrop,#modal::backdrop {background:#20282055;backdrop-filter:blur(3px)}
#confirm-modal .confirm-dialog-symbol {background:var(--surface-subtle);color:var(--muted)}
#confirm-modal[data-destructive="true"] .confirm-dialog-symbol {background:var(--danger-soft);color:var(--danger)}
#confirm-modal[data-destructive="true"] #confirm-operation {background:var(--danger);border-color:var(--danger);color:var(--on-accent)}
#confirm-modal .confirm-dialog-body>h2 {color:var(--ink);font-size:22px}
#confirm-message,#confirm-message>strong {color:var(--muted);font-size:16px}
#confirm-modal .confirm-dialog-actions>.btn {min-height:48px;border-radius:12px}
/* 登录与注册。 */
#auth-root {background:var(--canvas);color:var(--ink)}
#auth-root .auth-page {background:none}
#auth-root .login-mark {background:var(--accent);border-radius:20px;box-shadow:none;color:var(--on-accent)}
#auth-root .login-brand h1 {color:var(--ink);font-size:34px;letter-spacing:-1px}
#auth-root .login-brand>p {font-size:16px;color:var(--muted);line-height:1.7}
#auth-root .login-field input {font-size:18px;color:var(--ink)}
#auth-root .login-field input::placeholder {color:var(--faint)}
#auth-root .login-field-icon,#auth-root .password-visibility {color:var(--muted)}
#auth-root .login-submit {min-height:52px;border-radius:14px;font-size:19px;background:var(--accent);border-color:var(--accent);color:var(--on-accent);box-shadow:none}
#auth-root .login-switch,#auth-root .auth-preview {font-size:16px;color:var(--muted)}
@media(max-width:370px) {
#modal .modal-body {padding-inline:15px}
#modal .modal-footer {padding-inline:15px;gap:6px}
#modal .modal-footer .btn {padding-inline:10px;font-size:15px}
#modal .form-section .field {grid-template-columns:7rem minmax(0,1fr);gap:7px}
.ledger-page .pill {padding-inline:10px;font-size:15px}
.purchase-title strong,.supplier-title strong {font-size:16px}
.purchase-value>b,.supplier-transaction>b {font-size:17px}
#main .account-total-strip {padding-inline:6px}
#main .account-total-strip>div {padding-inline:4px}
#main .account-total-strip b {font-size:18px}
#main .home-balance-totals b {font-size:23px}
#auth-root .login-brand h1 {font-size:30px}
}

/* 登记采用完整页面；沿用表单校验、保存与独立删除确认。 */
#modal.record-page {position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;transform:none;padding:0;background:var(--canvas)}
#modal.record-page {background:var(--canvas) var(--ledger-scene) center top / cover no-repeat}
#modal.record-page .modal-header,#modal.record-page .modal-footer {background:#f8f5ef}
#modal.record-page .form-section>.form-grid {border:0}
#modal.record-page .form-section .field {border-bottom:0}
#modal.record-page .form-section .field>input:not([type="hidden"]),
#modal.record-page .form-section .choice-row>.choice-input,
#modal.record-page .form-section .weight-stepper {border:0;border-bottom:1px solid #bcb2a2;border-radius:0;background:transparent}
#modal.record-page .form-section .weight-stepper {align-items:center;gap:8px;padding:3px 2px 5px;overflow:visible}
#modal.record-page .form-section .choice-row>.choice-input:focus {outline:0;border-bottom-color:var(--accent);box-shadow:0 1px 0 var(--accent)}
#modal.record-page .choice-caret:focus-visible {outline-offset:-2px;border-radius:50%}
#modal.record-page .form-section .input-unit {border-bottom:1px solid #bcb2a2}
#modal.record-page .form-section .field .input-unit input[type="number"] {border:0}
#modal.record-page :is(#f-note,#f-notes) {background:transparent}
#modal.record-page::backdrop {background:var(--canvas);backdrop-filter:none}
#modal.record-page #modal-content {width:100%;max-width:720px;min-height:100%;margin-inline:auto}
#modal.record-page #modal-content>form {display:flex;flex-direction:column;min-height:calc(100dvh - 64px)}
#modal.record-page .modal-body {flex:1;padding-top:18px}
#modal.record-page .modal-header>.icon-button {left:12px;right:auto;background:none;border-radius:12px;width:48px;height:48px}
#modal.record-page .modal-header>.icon-button svg {transform:rotate(180deg);width:26px;height:26px}
#modal.record-page .modal-footer {margin-top:auto}
#modal.record-page .choice-menu {position:fixed;bottom:auto;overscroll-behavior:contain}
#modal.record-page .choice-menu-footer {position:static}
#modal.record-page .field:has(.choice-menu:not([hidden])) {z-index:40}
@media(max-width:760px) and (pointer:coarse) {
  #modal.record-page .choice-menu {max-width:none}
  #modal.record-page .menu-option {min-height:48px;padding-inline:14px}
}
#modal.record-page.keyboard-open .modal-footer {padding-bottom:10px}
@media (max-width:760px) {
  #modal.record-page .form-section>h3 {display:flex;align-items:center;gap:8px}
  #modal.record-page .form-section>h3::before {content:"";flex:none;width:3px;height:.8em;border-radius:2px;background:var(--accent)}
}
#modal.record-page .quick-price {padding-inline:0}
#modal.record-page .form-grid:has(.quick-price) {margin-bottom:0}
#modal #purchase-form[data-mode="quick"] .purchase-final-amount {margin-top:0}
#modal #purchase-form[data-mode="quick"] .amount-value-row {flex-wrap:wrap;min-height:44px}
#modal #purchase-form[data-mode="quick"] .amount-value-row>b {font-size:clamp(20px,6vw,25px);overflow-wrap:anywhere}
#modal #purchase-form[data-mode="quick"] .amount-value-row>b.is-empty {font-size:16px}
.ledger-page .supplier-filters {flex-wrap:wrap;gap:6px}
.ledger-page .supplier-filters .pill {padding-inline:10px}
.settings-operation[data-action="clear-workspace"] :is(strong,svg) {color:var(--danger)}
.confirm-verification {display:grid;gap:7px;margin:14px 0 4px;text-align:left;font-size:15px;color:var(--ink)}
.confirm-verification input {width:100%;min-height:46px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:16px}

/* Match the iPhone status area to the top of the ledger background. */
@media (display-mode:standalone) {
  html,body,body[data-auth="ready"] {background-color:#f3ede3}
}

/* 仅在用户允许动态效果时显示按压及聚焦反馈。 */
@media (prefers-reduced-motion: no-preference) {
  #modal.record-page :is(.btn,.icon-button,.weight-stepper>button,.menu-option) {transition:background-color .15s ease,opacity .15s ease,transform .12s ease}
  #modal.record-page :is(.btn,.icon-button,.weight-stepper>button,.menu-option):active {transform:scale(.97);opacity:.84}
  #modal.record-page .modal-header>.icon-button:active {transform:translateY(-50%) scale(.97)}
}
