:root {
  --ink: #16252d;
  --ink-soft: #28404a;
  --canvas: #edf3f4;
  --paper: #fbfcfa;
  --line: #d9e3e4;
  --muted: #718188;
  --teal: #087e8b;
  --teal-pale: #d9f0ef;
  --gold: #f0b54c;
  --coral: #dc6b62;
  --coral-pale: #fbe9e7;
  --violet: #8370d1;
  --radius: 18px;
  --shadow: 0 15px 40px rgba(29, 52, 58, .08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(8,126,139,.3); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 26px 14px 18px; display: flex; flex-direction: column; color: #d3e3e4; background: var(--ink); z-index: 4; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 10px 38px; color: #f8fffd; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px 4px 10px 4px; color: var(--ink); background: var(--gold); font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.brand-copy { display: grid; gap: 2px; letter-spacing: .02em; }
.brand-copy b { font-size: 14px; }.brand-copy small { color: #789198; font-size: 9px; letter-spacing: .14em; }
.nav-section-label { margin: 18px 12px 8px; color: #708b91; font-size: 10px; letter-spacing: .13em; font-weight: 700; }
.main-nav { display: grid; gap: 3px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: #b8cbce; text-align: left; background: transparent; transition: .2s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }.nav-item.active { color: var(--ink); background: #edf8f5; font-weight: 700; box-shadow: 0 3px 12px rgba(0,0,0,.17); }
.nav-icon { width: 17px; color: inherit; font-size: 18px; line-height: 1; text-align: center; }.nav-item i { margin-left: auto; padding: 2px 5px; color: #91a8ac; border: 1px solid rgba(147,176,179,.32); border-radius: 5px; font-size: 9px; font-style: normal; }
.sidebar-bottom { margin-top: auto; }.sync-indicator { display: flex; gap: 7px; align-items: center; margin: 16px 12px; color: #829ca1; font-size: 11px; }.sync-indicator span { width: 7px; height: 7px; border-radius: 100%; background: #6bd0b1; box-shadow: 0 0 0 3px rgba(107,208,177,.12); }.settings-link { margin-top: 5px; }
.workspace { width: calc(100% - 244px); min-height: 100vh; margin-left: 244px; }.topbar { min-height: 104px; padding: 22px 42px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(127,153,157,.2); background: rgba(237,243,244,.88); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 3; }.page-heading p { margin: 0 0 4px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .1em; }.page-heading h1 { margin: 0; font-family: "Aptos Display", "Microsoft YaHei UI", sans-serif; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.045em; }.topbar-actions { display: flex; align-items: center; gap: 12px; }.period-picker { min-width: 138px; display: grid; gap: 2px; padding: 5px 9px; border: 1px solid #d1ddde; border-radius: 10px; background: var(--paper); }.period-picker span { color: var(--muted); font-size: 9px; font-weight: 700; }.period-picker select { padding: 0; border: none; color: var(--ink); font-weight: 700; background: transparent; outline: none; }.mobile-nav { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; transition: transform .15s ease, box-shadow .15s ease; }.button:hover { transform: translateY(-1px); }.button-primary { color: #fff; background: var(--ink); box-shadow: 0 6px 15px rgba(18,37,45,.17); }.button-primary:hover { box-shadow: 0 9px 21px rgba(18,37,45,.23); }.button-secondary { color: var(--ink); border-color: #d3dfe0; background: #fff; }.button-small { min-height: 33px; padding: 0 10px; font-size: 12px; }.text-button { padding: 0; color: var(--teal); font-size: 12px; font-weight: 800; background: none; }.text-button span { font-size: 16px; }
.page { display: none; max-width: 1540px; padding: 28px 42px 48px; margin: 0 auto; }.page.active { display: block; animation: rise .32s ease; } @keyframes rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.month-ribbon { margin-bottom: 18px; display: flex; align-items: center; gap: 8px; color: #647b80; font-size: 12px; }.month-ribbon b { color: var(--ink); }.month-ribbon span { width: 3px; height: 3px; border-radius: 50%; background: #94a9ad; }
.summary-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 14px; }.summary-card, .panel { overflow: hidden; border: 1px solid rgba(205,221,222,.82); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }.summary-card { min-height: 165px; padding: 19px; position: relative; }.balance-card { color: #effaf8; border-color: var(--ink); background: var(--ink); }.balance-card:after { content: ""; position: absolute; right: -32px; bottom: -54px; width: 155px; height: 155px; border: 1px solid rgba(166,222,219,.22); border-radius: 50%; box-shadow: 0 0 0 18px rgba(166,222,219,.04), 0 0 0 43px rgba(166,222,219,.025); }.card-label { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; color: #728389; font-size: 11px; font-weight: 800; letter-spacing: .05em; }.balance-card .card-label { color: #9db8b9; }.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #78dfbe; box-shadow: 0 0 0 4px rgba(120,223,190,.14); }.balance-number { position: relative; z-index: 1; margin-top: 17px; font-family: "Cascadia Mono", Consolas, monospace; font-size: clamp(25px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.09em; }.balance-context { position: relative; z-index: 1; margin-top: 6px; color: #a5c8c8; font-size: 12px; }.ledger-stamp { position: absolute; right: 18px; bottom: 14px; color: rgba(194,231,229,.25); font-family: "Cascadia Mono", monospace; font-size: 8px; line-height: 1.28; letter-spacing: .12em; }.summary-number { margin-top: 18px; color: var(--ink); font-family: "Cascadia Mono", Consolas, monospace; font-size: 25px; font-weight: 800; letter-spacing: -.07em; }.summary-number small { font-family: inherit; font-size: 13px; }.card-symbol { color: var(--teal); font-size: 18px; }.expense-card .card-symbol { color: var(--coral); }.delta { margin-top: 8px; color: var(--muted); font-size: 11px; }.delta.positive { color: #168468; }.delta.negative { color: #ce6058; }.mini-bars { position: absolute; right: 17px; bottom: 17px; display: flex; align-items: end; gap: 3px; height: 27px; }.mini-bars span { width: 4px; border-radius: 4px; background: var(--teal); }.mini-bars.muted span { background: #d48477; }.account-note { margin-top: 11px; color: var(--muted); font-size: 12px; }.account-card .text-button { position: absolute; bottom: 16px; }
.dashboard-grid { display: grid; gap: 14px; margin-top: 14px; }.primary-grid { grid-template-columns: minmax(0, 1.75fr) minmax(280px, .8fr); }.secondary-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }.panel { padding: 22px; }.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }.panel-head.compact { margin-bottom: 14px; }.panel-head h2, .analysis-intro h2, .settings-grid h2 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.04em; }.kicker { color: var(--teal); font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .09em; }.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: var(--muted); font-size: 10px; white-space: nowrap; }.legend { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }.legend.income, .legend.current { background: var(--teal); }.legend.expense { background: #db8980; }.legend.balance { background: var(--gold); }.legend.previous { background: #bfcbd0; }
.large-bar-chart { height: 224px; padding: 9px 2px 0; display: grid; grid-template-columns: repeat(12, minmax(28px,1fr)); gap: 8px; align-items: stretch; border-bottom: 1px solid #d5e0e0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, rgba(214,226,226,.6) 55px); }.bar-group { min-width: 0; display: grid; grid-template-rows: 1fr auto; gap: 7px; align-items: end; }.bar-stack { height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; }.bar { width: min(22%, 12px); min-height: 2px; border-radius: 5px 5px 1px 1px; transition: height .45s cubic-bezier(.3,.9,.4,1); }.bar.income { background: var(--teal); }.bar.expense { background: #d88980; }.bar.balance { background: var(--gold); }.bar-group.active .bar { box-shadow: 0 0 0 3px rgba(8,126,139,.12); }.bar-group-label { color: #849499; font-size: 10px; text-align: center; }.bar-group.active .bar-group-label { color: var(--ink); font-weight: 800; }.chart-insight { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 9px 11px; color: #567075; border-radius: 9px; background: #f1f6f5; font-size: 11px; }.chart-insight strong { color: var(--ink); }.chart-insight:before { content: "↗"; width: 20px; height: 20px; display: grid; place-items: center; color: #147d6d; border-radius: 6px; background: #d7ede5; font-weight: 900; }
.source-breakdown { display: grid; gap: 13px; margin-top: 7px; }.source-line { display: grid; grid-template-columns: 29px minmax(0,1fr) auto; gap: 9px; align-items: center; }.source-dot { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: white; font-family: Georgia, serif; font-size: 15px; }.source-name { min-width: 0; font-size: 12px; font-weight: 700; }.source-name small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }.source-amount { font-family: "Cascadia Mono", monospace; font-size: 11px; font-weight: 700; }.source-progress { height: 4px; margin-top: 6px; overflow: hidden; border-radius: 10px; background: #e6eeee; }.source-progress i { display: block; height: 100%; border-radius: inherit; }.source-total { margin-top: 18px; padding-top: 15px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px dashed #cfdddd; font-size: 12px; }.source-total strong { color: var(--ink); font-family: "Cascadia Mono", monospace; font-size: 13px; }
.record-list { display: grid; }.record-row { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #edf1f0; }.record-row:first-child { border-top: 0; }.record-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #46747a; background: #e5f1f1; font-size: 14px; }.record-row.expense .record-avatar { color: #ba625b; background: #fbebe9; }.record-main { min-width: 0; }.record-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.record-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.record-money { font-family: "Cascadia Mono", monospace; font-size: 12px; font-weight: 800; white-space: nowrap; }.record-money.income { color: #147d6d; }.record-money.expense { color: var(--coral); }.record-money.transfer { color: #7a8790; }.evidence-mark { margin-left: 4px; color: var(--teal); }
.note-panel { display: flex; flex-direction: column; color: #ddf3ef; border-color: #0f5d67; background: #075f6b; background-image: linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.035) 50%, rgba(255,255,255,.035) 75%, transparent 75%); background-size: 18px 18px; }.note-top { display: flex; justify-content: space-between; }.note-panel .kicker { color: #a7d5d0; }.note-pin { width: 26px; height: 26px; display: grid; place-items: center; color: #075f6b; border-radius: 50%; background: var(--gold); }.note-panel h2 { max-width: 260px; margin: 15px 0 9px; font-size: 21px; line-height: 1.35; letter-spacing: -.05em; }.note-panel p { max-width: 350px; margin: 0 0 19px; color: #b3d7d4; font-size: 12px; line-height: 1.7; }.note-panel .button { align-self: flex-start; margin-top: auto; }
.page-toolbar { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 16px; }.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }.filter-group select, .check-filter { min-height: 36px; padding: 0 10px; color: #52676d; border: 1px solid #d3dfe0; border-radius: 9px; background: #fff; font-size: 12px; }.check-filter { display: inline-flex; align-items: center; gap: 6px; }.check-filter input { accent-color: var(--teal); }.table-panel { padding: 0; }.table-meta { padding: 14px 21px; display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid #e4eceb; font-size: 12px; }.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 700px; } th { padding: 12px 21px; color: #849499; background: #fbfcfb; font-size: 10px; font-weight: 800; text-align: left; letter-spacing: .05em; } td { padding: 12px 21px; border-top: 1px solid #edf1f0; vertical-align: middle; } .item-title { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }.item-date { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.type-pill { display: inline-flex; padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; }.type-pill.income { color: #087b6d; background: #e3f3ec; }.type-pill.expense { color: #b85c54; background: #faecea; }.type-pill.transfer { color: #6d7881; background: #eef1f3; }.amount-cell { font-family: "Cascadia Mono", monospace; font-weight: 800; }.evidence-button { padding: 4px 7px; color: var(--teal); border-radius: 6px; background: #e5f3f2; font-size: 11px; font-weight: 800; }.delete-button { color: #a4b1b3; background: none; font-size: 17px; }.delete-button:hover { color: var(--coral); }
.source-page-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(310px,.7fr); gap: 14px; }.muted-copy { margin: -5px 0 17px; color: var(--muted); line-height: 1.65; font-size: 12px; }.management-grid, .account-grid { display: grid; gap: 10px; }.management-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.source-management-item, .account-management-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e0e9e9; border-radius: 12px; }.source-management-item.disabled { opacity: .48; }.management-text { min-width: 0; flex: 1; }.management-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.management-text span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.tiny-toggle { padding: 4px 6px; color: #5c7479; border-radius: 5px; background: #edf3f3; font-size: 10px; }.tiny-toggle.active { color: #087b6d; background: #e0f0ea; }.account-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #3d6670; border-radius: 10px; background: #e6f0f1; font-size: 16px; }.account-management-item { justify-content: flex-start; }.account-management-item .management-text { flex: 1; }
.analysis-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }.analysis-intro h2 { font-size: 24px; }.analysis-intro p { max-width: 550px; margin: 8px 0 0; color: var(--muted); line-height: 1.65; font-size: 13px; }.analysis-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 14px; }.analysis-stat { padding: 17px 19px; border: 1px solid #d8e4e4; border-radius: 14px; background: rgba(255,255,255,.6); }.analysis-stat span { color: var(--muted); font-size: 11px; }.analysis-stat strong { display: block; margin-top: 8px; font-family: "Cascadia Mono", monospace; font-size: 20px; letter-spacing: -.08em; }.analysis-stat small { display: block; margin-top: 5px; color: #4e6d70; font-size: 10px; }.compare-chart { height: 265px; padding: 12px 0 0; display: grid; grid-template-columns: repeat(12, minmax(35px,1fr)); gap: 8px; align-items: stretch; border-bottom: 1px solid #d7e2e2; background: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, rgba(214,226,226,.58) 60px); }.compare-month { display: grid; grid-template-rows: 1fr auto; gap: 7px; align-items: end; }.compare-bars { height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; }.compare-bar { width: min(31%, 16px); min-height: 2px; border-radius: 5px 5px 1px 1px; }.compare-bar.current { background: var(--teal); }.compare-bar.previous { background: #bdcbd0; }.compare-month span { color: #849499; font-size: 10px; text-align: center; }.analysis-bottom-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-top: 14px; }.annual-rank { display: grid; gap: 14px; }.rank-line { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 9px; align-items: center; }.rank-index { color: #83969b; font-family: Georgia, serif; font-size: 15px; }.rank-name { font-size: 12px; font-weight: 700; }.rank-name div { margin-top: 5px; height: 5px; border-radius: 10px; background: #e8eeee; overflow: hidden; }.rank-name i { height: 100%; display: block; border-radius: inherit; }.rank-value { font-family: "Cascadia Mono", monospace; font-size: 11px; font-weight: 800; }.insight-panel { display: flex; flex-direction: column; background: #f7e8c9; border-color: #ead19d; }.insight-panel div { margin-top: auto; }.insight-panel h3 { margin: 6px 0; font-size: 20px; line-height: 1.35; letter-spacing: -.05em; }.insight-panel p { margin: 0; color: #7e6640; line-height: 1.7; font-size: 12px; }
.attendance-hero { min-height: 306px; display: flex; justify-content: space-between; gap: 24px; padding: 38px; color: #e8f7f4; border-color: #103b45; background: #13363e; background-image: radial-gradient(circle at 75% 40%, rgba(26,151,158,.48), transparent 20%), linear-gradient(135deg, transparent 70%, rgba(255,255,255,.03) 70%); }.attendance-copy { max-width: 560px; }.attendance-copy .kicker { color: #94d1ce; }.attendance-copy h2 { margin: 9px 0; font-size: clamp(24px,3vw,36px); line-height: 1.25; letter-spacing: -.06em; }.attendance-copy p { margin: 0 0 23px; color: #b0d0cf; line-height: 1.7; }.attendance-preview { display: flex; align-items: center; gap: 12px; margin: auto 20px auto 0; }.calendar-card { width: 155px; padding: 16px; color: #153b43; border-radius: 13px; background: #f3f7ef; box-shadow: 11px 12px 0 rgba(4,19,23,.18); }.calendar-card span, .calendar-card small { display: block; font-size: 11px; }.calendar-card b { display: block; margin: 4px 0; font-family: Georgia, serif; font-size: 54px; line-height: 1; }.calendar-dots { display: flex; gap: 6px; margin-top: 16px; }.calendar-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3aaf9f; }.calendar-dots i:nth-child(3),.calendar-dots i:nth-child(5) { background: #f1b453; }.people-stack { display: grid; }.people-stack span, .people-stack em { width: 31px; height: 31px; display: grid; place-items: center; margin-top: -7px; color: white; border: 2px solid #153b43; border-radius: 50%; background: #b96763; font-size: 10px; font-style: normal; }.people-stack span:nth-child(2) { background: #997ac6; }.people-stack span:nth-child(3) { background: #15939b; }.people-stack em { color: #153b43; background: var(--gold); }.reserved-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 14px; }.reserved-features article { padding: 21px; border: 1px solid #d8e4e4; border-radius: 14px; background: rgba(255,255,255,.6); }.reserved-features span { color: var(--teal); font-family: Georgia, serif; font-size: 18px; }.reserved-features h3 { margin: 11px 0 6px; font-size: 15px; }.reserved-features p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.settings-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }.settings-grid .panel { min-height: 214px; }.settings-grid p { max-width: 430px; margin: 10px 0 21px; color: var(--muted); line-height: 1.7; }.settings-actions { display: flex; gap: 9px; }.import-label { cursor: pointer; }
.modal { width: min(650px, calc(100vw - 28px)); max-height: min(825px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: #f9fcfb; box-shadow: 0 30px 90px rgba(1,22,27,.35); }.modal::backdrop { background: rgba(8,25,30,.55); backdrop-filter: blur(3px); }.modal form { padding: 22px; }.compact-modal { width: min(430px, calc(100vw - 28px)); }.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }.modal-head h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.05em; }.modal-close { width: 29px; height: 29px; display: grid; place-items: center; color: #647b80; border-radius: 8px; background: #eef3f3; font-size: 22px; }.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }.field { display: grid; gap: 6px; }.field-wide { grid-column: 1 / -1; }.field > span { color: #597075; font-size: 11px; font-weight: 800; }.field > span small { color: #93a4a8; font-weight: normal; }.field input:not([type="color"]), .field select { width: 100%; height: 39px; padding: 0 10px; color: var(--ink); border: 1px solid #d3e0e0; border-radius: 9px; background: #fff; outline: none; }.field input[type="color"] { width: 100%; height: 38px; padding: 3px; border: 1px solid #d3e0e0; border-radius: 9px; background: #fff; }.money-input { display: flex; align-items: center; height: 39px; padding: 0 10px; border: 1px solid #d3e0e0; border-radius: 9px; background: #fff; }.money-input b { color: var(--teal); }.money-input input { height: 100%; width: 100%; padding: 0 7px; border: 0 !important; background: transparent !important; }.type-tabs { display: grid; grid-template-columns: repeat(3,1fr); padding: 3px; border-radius: 10px; background: #edf3f3; }.type-tab { min-height: 32px; color: #6e8388; border-radius: 7px; background: transparent; font-size: 12px; font-weight: 800; }.type-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 5px rgba(31,57,62,.08); }.upload-zone { min-height: 94px; padding: 13px; display: grid; justify-items: center; align-content: center; border: 1px dashed #a8c4c5; border-radius: 11px; color: #668085; background: #f4faf9; cursor: pointer; }.upload-zone:hover { border-color: var(--teal); background: #eef8f6; }.upload-zone b { margin: 3px 0; color: var(--ink); font-size: 12px; }.upload-zone small { color: #819397; font-size: 10px; }.upload-icon { color: var(--teal); font-size: 20px; }.attachment-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }.attachment-thumbnail { width: 54px; height: 54px; overflow: hidden; position: relative; border-radius: 8px; border: 1px solid #d8e2e2; background: #edf3f3; }.attachment-thumbnail img { width: 100%; height: 100%; object-fit: cover; }.attachment-thumbnail button { position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; padding: 0; color: white; border-radius: 50%; background: rgba(18,37,45,.7); line-height: 15px; }.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; padding-top: 15px; border-top: 1px solid #e5eded; }.local-save { color: #809399; font-size: 10px; }.local-save::first-letter { color: #4ec49d; }.toast { position: fixed; left: 50%; bottom: 26px; z-index: 10; padding: 11px 15px; color: white; border-radius: 10px; background: var(--ink); box-shadow: 0 12px 30px rgba(15,33,37,.28); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: .25s ease; }.toast.visible { opacity: 1; transform: translate(-50%,0); }.image-lightbox { position: fixed; inset: 0; display: grid; place-items: center; z-index: 12; padding: 30px; background: rgba(8,20,24,.86); }.image-lightbox img { max-width: min(100%, 1000px); max-height: 90vh; border-radius: 10px; box-shadow: 0 16px 50px #000; }.image-lightbox button { position: fixed; top: 18px; right: 24px; width: 35px; height: 35px; color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; font-size: 23px; }
/* The lightbox is hidden until a stored receipt image is opened. */
.image-lightbox[hidden] { display: none; }
.smart-import-button { color: var(--teal); border-color: #b9d9d9; background: #f7fffd; }.smart-import-button span { font-size: 17px; }
.recognition-modal { width: min(860px, calc(100vw - 28px)); }.recognition-modal > * { margin-left: 22px; margin-right: 22px; }.recognition-head { margin-top: 22px; }.recognition-head h2 { margin-bottom: 8px; }.recognition-head p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.6; font-size: 12px; }.recognition-steps { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #8b9b9f; border-radius: 10px; background: #f1f6f5; font-size: 10px; font-weight: 800; }.recognition-steps span.active { color: var(--teal); }.recognition-steps i { width: 18px; height: 1px; background: #cbdada; }.recognition-input-grid { display: grid; grid-template-columns: 165px; gap: 14px; margin-top: 15px; }.recognition-upload-section { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(200px, .85fr); align-items: center; gap: 12px; margin-top: 13px; }.recognition-upload { min-height: 70px; padding: 10px 14px; display: grid; grid-template-columns: 25px auto; column-gap: 9px; align-items: center; border: 1px dashed #83b8b8; border-radius: 11px; color: #668085; background: #f4faf9; cursor: pointer; }.recognition-upload:hover { border-color: var(--teal); background: #eef8f6; }.recognition-upload .upload-icon { grid-row: 1 / span 2; color: var(--teal); font-size: 20px; }.recognition-upload b { color: var(--ink); font-size: 12px; }.recognition-upload small { color: #819397; font-size: 10px; line-height: 1.4; }.recognition-upload-status { color: #70878b; font-size: 10px; line-height: 1.55; }.recognition-body { min-height: 142px; margin-top: 15px; overflow: auto; border: 1px solid #dfe9e8; border-radius: 12px; background: #fff; }.recognition-empty { min-height: 142px; padding: 28px; display: grid; justify-items: center; align-content: center; gap: 7px; color: #6b8186; text-align: center; }.recognition-empty span { color: var(--teal); font-size: 24px; }.recognition-empty b { color: var(--ink); font-size: 12px; }.recognition-empty small { font-size: 11px; }.recognition-table { width: 100%; min-width: 640px; border-collapse: collapse; }.recognition-table th { padding: 10px 12px; color: #839599; background: #f8fbfa; font-size: 10px; text-align: left; }.recognition-table td { padding: 8px 12px; border-top: 1px solid #edf2f1; }.recognition-table input, .recognition-table select { width: 100%; height: 31px; padding: 0 7px; border: 1px solid #d5e2e1; border-radius: 6px; color: var(--ink); background: #fff; font-size: 11px; }.recognition-table .recognition-amount { min-width: 87px; font-family: "Cascadia Mono", Consolas, monospace; font-weight: 800; }.recognition-table .recognition-amount.income { color: #087b6d; }.recognition-table .recognition-amount.expense { color: #c16058; }.recognition-delete { padding: 3px 5px; color: #9ba9ab; background: transparent; font-size: 17px; }.recognition-delete:hover { color: var(--coral); }.recognition-raw { margin-top: 13px; }.recognition-raw-title { display: flex; justify-content: space-between; margin-bottom: 7px; color: #667e82; font-size: 11px; font-weight: 800; }.recognition-raw-actions { display: flex; align-items: center; gap: 12px; }.recognition-raw textarea { width: 100%; resize: vertical; padding: 9px; border: 1px solid #d9e5e4; border-radius: 9px; color: #4b666b; background: #f9fcfb; font: 11px/1.55 "Cascadia Mono", Consolas, monospace; }.recognition-footer { margin-top: 16px; margin-bottom: 22px; }.recognition-footer span { max-width: 420px; color: #71868b; line-height: 1.45; font-size: 10px; }.recognition-footer .button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
@media (max-width: 1150px) { .summary-grid { grid-template-columns: repeat(2,1fr); }.primary-grid, .secondary-grid, .source-page-grid, .analysis-bottom-grid { grid-template-columns: 1fr; }.note-panel { min-height: 235px; }.workspace { width: calc(100% - 220px); margin-left: 220px; }.sidebar { width: 220px; } }
.compare-bar.current.negative { background: var(--coral); }
.compare-bar.previous.negative { background: #d7a8a3; }
.compare-month { position: relative; cursor: crosshair; }
.compare-tooltip { position: absolute; top: -3px; left: 50%; z-index: 2; min-width: 146px; padding: 9px 10px; border: 1px solid #d9e5e4; border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 9px 23px rgba(22,48,53,.18); opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .16s ease, transform .16s ease; }
.compare-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; border-right: 1px solid #d9e5e4; border-bottom: 1px solid #d9e5e4; background: #fff; transform: translateX(-50%) rotate(45deg); }
.compare-tooltip > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 6px; font-size: 10px; }.compare-tooltip > div + div { margin-top: 7px; }.compare-tooltip span { color: var(--muted); font-size: 10px; text-align: left; }.compare-tooltip b { font-family: "Cascadia Mono", Consolas, monospace; font-size: 11px; letter-spacing: -.04em; }.tooltip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }.tooltip-dot.previous { background: #bdcbd0; }
.compare-month:hover .compare-tooltip, .compare-month:focus-visible .compare-tooltip { opacity: 1; transform: translate(-50%, 0); }.compare-month:hover .compare-bar, .compare-month:focus-visible .compare-bar { filter: brightness(.92); }
@media (max-width: 760px) { .sidebar { width: 244px; transform: translateX(-100%); transition: .25s ease; }.sidebar.open { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,.2); }.workspace { width: 100%; margin-left: 0; }.topbar { min-height: 84px; padding: 14px 18px; }.mobile-nav { display: block; width: 34px; height: 34px; color: var(--ink); border-radius: 8px; background: #fff; font-size: 18px; }.page-heading { flex: 1; }.page-heading h1 { font-size: 18px; }.topbar-actions .period-picker { display: none; }.topbar-actions .button { padding: 0 10px; }.page { padding: 20px 16px 36px; }.summary-grid, .analysis-stat-row, .reserved-features, .settings-grid { grid-template-columns: 1fr; }.balance-card { min-height: 155px; }.page-toolbar, .analysis-intro { align-items: stretch; flex-direction: column; }.page-toolbar .button { align-self: flex-start; }.analysis-intro .period-picker { width: 155px; }.management-grid { grid-template-columns: 1fr; }.attendance-hero { padding: 24px; }.attendance-preview { display: none; }.form-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.panel { padding: 17px; }.table-panel { padding: 0; }.large-bar-chart { gap: 4px; }.bar-stack { gap: 2px; }.bar { width: 28%; }.chart-legend { display: none; } }
