:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;color:#292330;background:#f7f5f7;font-synthesis:none;-webkit-font-smoothing:antialiased;--ink:#292330;--muted:#817988;--line:#ebe6ed;--lavender:#79488b;--dark-purple:#60366f;--lilac:#f1eaf4;--white:#fff;--positive:#44806d;--negative:#b76f6a;--shadow:0 12px 45px rgba(55,27,66,.045)}
*,*::before,*::after{box-sizing:border-box}body{margin:0;min-width:300px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}h1{font-size:clamp(26px,3vw,38px);font-weight:720;margin-bottom:7px}h2{font-size:20px;margin:0;font-weight:690}h3{font-size:15px;margin:0;font-weight:650}p{line-height:1.55}.app-shell{min-height:100dvh;display:flex}.sidebar{width:242px;position:sticky;top:0;height:100dvh;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:35px 17px 22px;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-sidebar{padding:0 10px;margin-bottom:49px}.brand-emblem{display:flex;background:var(--lavender);color:white;padding:9px;border-radius:13px}.brand-emblem svg{width:24px;height:24px;stroke-width:1.6}.brand-name{font-size:22px;letter-spacing:-.06em;font-weight:750;color:var(--dark-purple);line-height:1}.brand-caption{display:block;font-size:9px;letter-spacing:.21em;color:#aaa0ad;margin-top:7px;font-weight:750}.sidebar-section{font-size:10px;font-weight:720;letter-spacing:.12em;color:#aea6b1;padding:0 16px;margin-bottom:14px}.desktop-nav{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;gap:14px;align-items:center;border:0;background:transparent;width:100%;padding:13px 15px;text-align:left;border-radius:11px;color:#79717f;font-weight:570;font-size:14px}.nav-item:hover{background:#f6f1f8;color:var(--dark-purple)}.nav-item.active{background:var(--lilac);color:var(--dark-purple);font-weight:700}.nav-item svg{width:19px;height:19px}.sidebar-spacer{flex:1}.sidebar-note{font-size:11px;background:#fbf9fc;border:1px solid #f0ebf1;border-radius:12px;padding:12px;display:flex;gap:9px;line-height:1.5;color:#756f7b;margin-top:24px}.sidebar-note small{color:#a09aa2;font-size:10px}.status-dot{width:7px;height:7px;background:#b99bc5;border-radius:50%;margin-top:5px;flex-shrink:0}.main-shell{min-width:0;flex:1}.main-content{max-width:1240px;margin:auto;padding:48px clamp(22px,4vw,57px) 70px}.mobile-header,.mobile-nav{display:none}.eyebrow{letter-spacing:.14em;color:#8b678f;font-size:10px;font-weight:780;margin-bottom:10px}.intro{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:29px}.intro p{color:var(--muted);margin-bottom:0;font-size:14px}.intro-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.btn{border:1px solid transparent;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;font-size:13px;font-weight:680;line-height:1.2;min-height:41px;white-space:nowrap;text-decoration:none;transition:transform .15s,background .15s}.btn:active{transform:scale(.99)}.btn svg{width:17px;height:17px}.btn-primary{background:var(--lavender);color:#fff}.btn-primary:hover{background:var(--dark-purple)}.btn-secondary{background:var(--lilac);color:var(--dark-purple)}.btn-secondary:hover{background:#e9dded}.btn-outline{background:white;color:#695c70;border-color:#e7e1e9}.btn-quiet{background:transparent;color:#766c7b}.btn-danger{background:#fff1ef;color:#a3504b;border-color:#f5dcd8}.btn-small{padding:8px 11px;min-height:33px;font-size:12px}.icon-button{width:37px;height:37px;display:grid;place-items:center;color:#84788c;border:1px solid #ece6ec;background:white;border-radius:10px;flex-shrink:0}.icon-button svg{width:17px;height:17px}.icon-button:hover{background:var(--lilac);color:var(--lavender)}.test-notice{display:flex;gap:10px;align-items:flex-start;background:#f3edf5;border:1px solid #e9dfed;padding:13px 15px;border-radius:12px;color:#634771;font-size:12px;line-height:1.5;margin-bottom:24px}.test-notice svg{width:17px;height:17px;margin-top:1px}.test-notice strong{font-weight:750}.grid-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:23px}.metric{padding:21px;min-width:0;background:#fff;border-radius:17px;border:1px solid var(--line);box-shadow:var(--shadow)}.metric-top{display:flex;justify-content:space-between;gap:8px;align-items:start}.metric-label{font-size:12px;color:#827a86;line-height:1.35;font-weight:570}.metric-icon{display:grid;place-items:center;background:#f6f0f8;border-radius:9px;width:31px;height:31px;color:var(--lavender)}.metric-icon svg{width:17px;height:17px}.metric-value{font-size:clamp(20px,2vw,28px);font-weight:730;letter-spacing:-.055em;margin:17px 0 7px;font-variant-numeric:tabular-nums;white-space:nowrap}.metric-note{font-size:11px;color:#9c94a0;line-height:1.35}.metric.positive .metric-value{color:#427b68}.metric.negative .metric-value{color:#a96865}.surface{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow)}.dashboard-columns{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.surface-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.surface-header p{font-size:12px;color:var(--muted);margin:7px 0 0}.surface-content{padding:23px}.month-controls{display:flex;align-items:center;gap:6px}.month-controls .icon-button{width:30px;height:30px}.month-name{color:#66576d;font-size:12px;min-width:111px;text-align:center;font-weight:710}.progress-track{background:#eee8ef;height:11px;overflow:hidden;border-radius:30px;margin-top:15px}.progress-track>div{height:100%;background:#9668aa;border-radius:30px;transition:width .3s}.coverage-title{font-size:30px;font-weight:740;letter-spacing:-.045em;margin-top:9px;color:#674075}.coverage-caption{font-size:12px;color:var(--muted);line-height:1.55;margin:14px 0 0}.coverage-labels{display:flex;justify-content:space-between;color:#897c8e;font-size:11px;margin-top:9px;font-variant-numeric:tabular-nums}.tag{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:30px;background:#f2edf5;color:#765081;font-size:10px;font-weight:720;letter-spacing:.015em}.empty{padding:36px 16px;text-align:center}.empty-icon{margin:auto auto 13px;width:47px;height:47px;display:grid;place-items:center;border-radius:14px;background:#f3edf5;color:#82538f}.empty-icon svg{width:23px;height:23px}.empty h3{margin-bottom:7px}.empty p{color:#918894;font-size:12px;max-width:300px;margin:0 auto 19px}.list-clean{list-style:none;margin:0;padding:0}.record{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #f0ebf1}.record:last-child{border-bottom:0;padding-bottom:0}.record:first-child{padding-top:0}.record-glyph{width:36px;height:36px;background:#eef4f0;color:#52846e;display:grid;place-items:center;border-radius:11px;flex-shrink:0}.record-glyph.expense{background:#fcf2ef;color:#ae7369}.record-glyph svg{width:18px;height:18px}.record-details{flex:1;min-width:0}.record-title{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-meta{color:#998f9d;font-size:11px;margin-top:4px;line-height:1.4}.record-value{font-size:13px;font-weight:720;white-space:nowrap;font-variant-numeric:tabular-nums}.record-value.income{color:#4d826f}.record-value.outgoing{color:#ac6d69}.record-actions{display:flex;gap:5px;margin-left:7px}.record-actions button{border:0;background:none;padding:6px;border-radius:7px;color:#8f8493}.record-actions button:hover{background:#f3eaf5;color:#6b4777}.record-actions svg{width:16px;height:16px}.section-stack{display:flex;flex-direction:column;gap:18px}.section-spacer{height:18px}.quick-tiles{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:19px}.quick-tile{border:1px solid var(--line);border-radius:12px;padding:13px 12px;background:#fbfafb;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#65566a;font-size:12px;font-weight:700}.quick-tile svg{width:17px;height:17px}.quick-tile:hover{border-color:#cbb8d1;background:#f8f1fa}.subheading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:23px 0 15px}.subheading p{color:var(--muted);font-size:12px;margin:5px 0 0}.segmented{display:flex;gap:3px;border-radius:12px;background:#eeeaef;padding:4px;width:max-content;max-width:100%}.segmented button{border:0;border-radius:9px;background:transparent;color:#8c8290;padding:9px 16px;font-size:12px;font-weight:700}.segmented button.active{background:#fff;color:var(--dark-purple);box-shadow:0 2px 5px #2817310b}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.total-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border-radius:12px;background:#f3edf5;margin:15px 0;color:#714b7e;font-size:13px;font-weight:700}.total-line strong{font-size:18px;font-variant-numeric:tabular-nums}.table-wrap{width:100%;overflow-x:auto}.ledger-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.ledger-table th{color:#a099a4;font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:780;padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}.ledger-table td{padding:14px 12px;border-bottom:1px solid #f1edf1;vertical-align:middle}.ledger-table tr:last-child td{border-bottom:0}.ledger-table td strong{font-weight:700}.ledger-table .muted{color:#8e8592;font-size:11px}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.table-tools{text-align:right;white-space:nowrap}.table-tools button{border:0;background:none;color:#807488;padding:6px;margin:0 1px;border-radius:7px}.table-tools button svg{width:17px;height:17px}.table-tools button:hover{background:#f2ebf4;color:#633974}.pill{display:inline-block;padding:5px 9px;background:#f5f0f6;color:#7b6484;border-radius:20px;font-size:11px;font-weight:650}.pill.outline{background:#f7f7f7;color:#948a98}.fixed-total{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;background:#eee4f0;border-radius:15px;padding:21px 25px;color:#654172;margin-bottom:19px}.fixed-total small{font-size:12px;color:#866d8d}.fixed-total strong{display:block;font-size:30px;letter-spacing:-.045em;margin-top:5px;font-variant-numeric:tabular-nums}.switch{position:relative;display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#9a919c}.switch input{appearance:none;width:35px;height:21px;background:#d9d2da;border-radius:20px;margin:0;position:relative;transition:background .2s;cursor:pointer}.switch input:checked{background:#815392}.switch input:after{content:"";position:absolute;top:3px;left:3px;width:15px;height:15px;background:#fff;border-radius:50%;transition:transform .2s}.switch input:checked:after{transform:translateX(14px)}.switch input:disabled{cursor:wait}.help-box{background:#f8f6f8;border:1px solid #eee8ef;border-radius:13px;padding:14px 16px;display:flex;gap:11px;color:#827688;font-size:12px;line-height:1.55;margin-top:18px}.help-box svg{width:17px;height:17px;color:#9875a3;margin-top:1px}.search-area{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.input-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e6dfe8;border-radius:11px;padding:0 12px;min-width:200px;flex:1}.input-search svg{width:17px;height:17px;color:#ab9cac}.input-search input{border:0;outline:0;height:43px;width:100%;color:var(--ink);background:transparent;font-size:13px}.input-select{background:#fff;border:1px solid #e6dfe8;border-radius:11px;color:#655c6a;min-height:43px;padding:0 13px;font-size:12px;max-width:100%}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.template-card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;min-width:0}.template-thumb{background:#f1ebf3;height:160px;display:grid;place-items:center;overflow:hidden;position:relative}.template-thumb img{height:100%;width:100%;object-fit:contain;background:#f4eff5}.file-symbol{border-radius:15px;border:1px solid #d6c9dc;background:white;width:74px;height:85px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#9065a0}.file-symbol svg{width:29px;height:29px}.file-symbol strong{font-size:10px;letter-spacing:.15em}.template-details{padding:14px}.template-title{font-size:13px;font-weight:740;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px}.template-meta{font-size:11px;color:#968a9b;margin-bottom:12px}.template-tools{display:flex;gap:7px}.template-tools button{flex:1;padding:7px 7px;font-size:11px;min-height:32px}.template-tools .icon-button{flex:0 0 34px;min-height:32px;width:34px}.setting-row{padding:21px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.setting-row:first-child{padding-top:0}.setting-row:last-child{border:0;padding-bottom:0}.setting-row h3{margin-bottom:7px}.setting-row p{font-size:12px;color:var(--muted);margin:0;max-width:450px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.setting-card{padding:24px}.setting-card h2{margin-bottom:18px}.security-panel{border-left:3px solid #aa83b4;background:#f8f3fa;padding:14px 15px;font-size:12px;color:#745b7d;line-height:1.65;border-radius:0 10px 10px 0;margin-top:20px}.form-field{display:flex;flex-direction:column;gap:7px;min-width:0}.form-field label{font-size:12px;color:#6a5e6e;font-weight:730}.form-field input,.form-field select,.form-field textarea{border:1px solid #ded6e0;background:#fff;border-radius:10px;padding:11px 12px;min-height:43px;outline:0;color:var(--ink);font-size:14px;width:100%}.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.input-search:focus-within{border-color:#9c74aa;box-shadow:0 0 0 3px #a77db023}.form-field textarea{resize:vertical;min-height:76px}.form-field input[type="file"]{font-size:12px;padding:9px}.form-field .hint{font-size:11px;color:#998e9e;line-height:1.45}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid .span-all{grid-column:1/-1}.form-summary{background:#f5eef7;border-radius:12px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:13px;color:#715080}.form-summary strong{font-size:19px}.editor-dialog,.preview-dialog{border:1px solid #e8dfe9;border-radius:19px;box-shadow:0 35px 80px #26112f40;background:#fff;max-width:min(520px,calc(100vw - 26px));width:100%;padding:0;max-height:calc(100dvh - 28px);color:var(--ink)}dialog::backdrop{background:rgba(38,24,43,.48);backdrop-filter:blur(4px)}.dialog-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 28px)}.dialog-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;padding:23px 24px 18px;border-bottom:1px solid #f0eaf1}.dialog-heading .eyebrow{margin-bottom:5px}.dialog-fields{overflow-y:auto;padding:22px 24px;display:flex;flex-direction:column;gap:16px}.dialog-footer{display:flex;gap:9px;justify-content:flex-end;padding:16px 24px 22px;border-top:1px solid #f0eaf1}.preview-dialog{max-width:min(820px,calc(100vw - 25px));width:100%}.preview-head{padding:14px 19px;display:flex;align-items:center;justify-content:space-between;gap:9px;border-bottom:1px solid var(--line)}.preview-body{height:min(65dvh,650px);background:#f4f0f5;display:grid;place-items:center;overflow:auto}.preview-body img{max-width:100%;max-height:100%;object-fit:contain}.preview-body iframe{width:100%;height:100%;border:0}.preview-actions{padding:12px 19px;display:flex;justify-content:flex-end}.toast{position:fixed;z-index:100;bottom:32px;left:50%;transform:translate(-50%,25px);opacity:0;pointer-events:none;transition:opacity .22s,transform .22s;padding:12px 18px;max-width:calc(100% - 34px);border-radius:12px;background:#392841;color:white;font-size:12px;box-shadow:0 16px 40px #1d162b40;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.empty-mini{color:#9b8fa1;font-size:12px;text-align:center;padding:20px 8px}.notice-inline{font-size:11px;color:#8f8795;line-height:1.45;margin:11px 0 0}.mobile-only{display:none}.chart{display:flex;align-items:end;gap:11px;height:148px;padding:10px 1px 0}.chart-item{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;height:100%;justify-content:end;gap:7px}.chart-bars{height:107px;display:flex;justify-content:center;align-items:end;width:100%;gap:4px}.chart-bar{border-radius:6px 6px 2px 2px;min-width:7px;width:22%;background:#a781b3;min-height:2px;max-width:27px}.chart-bar.cost{background:#ddc8de}.chart-bar.none{opacity:.25}.chart-item>span{font-size:10px;color:#9a8d9e;white-space:nowrap}.chart-key{display:flex;gap:14px;align-items:center;margin-top:15px;font-size:10px;color:#a092a3}.chart-key span{display:flex;gap:5px;align-items:center}.chart-key i{width:8px;height:8px;border-radius:2px;background:#a781b3}.chart-key .cost i{background:#ddc8de}.info-list{padding-left:18px;color:#817786;font-size:12px;line-height:1.85}.info-list li{padding-left:3px}.version-pill{font-size:9px;letter-spacing:.08em;padding:7px 10px;border:1px solid #ece4ed;background:#fff;border-radius:100px;color:#896d94;font-weight:790}
@media (min-width:1200px){.grid-metrics{gap:18px}.metric{padding:24px}.main-content{padding-top:57px}.dashboard-columns{gap:21px}}
@media (max-width:1080px){.sidebar{width:200px}.brand-sidebar{padding:0 3px}.brand-name{font-size:20px}.main-content{padding-left:26px;padding-right:26px}.grid-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:18px}.metric-value{font-size:25px}.dashboard-columns{grid-template-columns:1fr 1fr}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.sidebar{display:none}.main-shell{width:100%}.mobile-header{display:flex;justify-content:space-between;align-items:center;height:75px;padding:calc(13px + env(safe-area-inset-top)) 18px 14px;background:#f7f5f7;border-bottom:1px solid #f0ebf0;box-sizing:content-box;height:40px}.mobile-header .brand-emblem{padding:7px;border-radius:10px}.mobile-header .brand-emblem svg{width:22px;height:22px}.mobile-header .brand-name{font-size:21px}.main-content{padding:26px 17px calc(107px + env(safe-area-inset-bottom));max-width:620px}.mobile-nav{z-index:20;position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 4px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #eee7ef;box-shadow:0 -12px 25px #27172a05}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;color:#9b8f9f;font-size:10px;padding:5px 0;min-width:0}.mobile-nav button svg{width:21px;height:21px}.mobile-nav button.active{color:#753f86;font-weight:800}.mobile-nav button.active svg{stroke-width:2.2}.toast{bottom:calc(95px + env(safe-area-inset-bottom))}.intro{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:20px}.intro h1{font-size:28px}.intro-actions{width:100%;justify-content:flex-start}.intro-actions .btn{flex:1}.test-notice{margin-bottom:18px}.dashboard-columns{grid-template-columns:1fr}.grid-metrics{gap:10px;margin-bottom:16px}.metric{padding:16px;border-radius:14px}.metric-value{font-size:24px;margin:14px 0 5px}.metric-label{font-size:11px}.metric-note{font-size:10px}.surface-content{padding:19px}.fixed-total{padding:18px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-thumb{height:140px}.template-details{padding:11px}.settings-grid{grid-template-columns:1fr}.setting-card{padding:19px}.mobile-only{display:initial}}
@media (max-width:400px){.main-content{padding-left:12px;padding-right:12px}.grid-metrics{gap:8px}.metric{padding:13px}.metric-value{font-size:21px}.metric-icon{width:27px;height:27px}.metric-icon svg{width:15px;height:15px}.template-thumb{height:120px}.template-tools{gap:4px}.template-tools button{padding:6px}.intro-actions .btn{padding-left:9px;padding-right:9px;font-size:12px}}
@media (max-width:520px){.form-grid{grid-template-columns:1fr}.form-grid.mobile-two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid .span-all{grid-column:1/-1}.dialog-heading{padding:20px 18px 15px}.dialog-fields{padding:19px 18px}.dialog-footer{padding:15px 18px 20px}.editor-dialog{margin:auto auto max(6px,env(safe-area-inset-bottom));max-height:calc(100dvh - 15px);border-radius:18px 18px 8px 8px}.dialog-panel{max-height:calc(100dvh - 15px)}.preview-dialog{max-height:calc(100dvh - 25px)}.preview-body{height:55dvh}.search-area .input-search{flex-basis:100%}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

.mobile-ledger{display:none}.mobile-record{padding:15px 0;border-bottom:1px solid #eee8ef}.mobile-record:last-child{border:0;padding-bottom:0}.mobile-record:first-child{padding-top:0}.mobile-record-head{display:flex;justify-content:space-between;align-items:baseline;gap:15px;font-size:13px}.mobile-record-head strong:first-child{min-width:0;overflow-wrap:anywhere}.mobile-price{font-size:15px;letter-spacing:-.025em;font-variant-numeric:tabular-nums;white-space:nowrap}.positive-text{color:#3f8067}.negative-text{color:#b16e69}.mobile-record-sub{font-size:11px;color:#8e8291;line-height:1.55;margin-top:7px}.mobile-record-note{color:#85798b;font-size:11px;margin-top:7px}.mobile-record-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.mobile-record-actions{display:flex;gap:6px}.mobile-record-actions button{border:1px solid #eee7ef;width:34px;height:32px;border-radius:8px;background:#fff;color:#8e7d97;display:grid;place-items:center}.mobile-record-actions svg{width:16px;height:16px}@media(max-width:760px){.table-wrap.mobile-replaced{display:none}.mobile-ledger{display:block}}

.chart-empty{height:125px;display:flex;align-items:center;justify-content:center;gap:12px;color:#a295a8;font-size:12px;line-height:1.6;text-align:center}.chart-empty svg{width:24px;height:24px;color:#b297bd}.chart-empty span{max-width:225px}

/* Authenticated entry – no financial DOM is created before login. */
[hidden]{display:none!important}.auth-gate{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:28px 16px calc(28px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 20% 10%,#f0e2f4 0,transparent 50%),#f7f5f8}.auth-card{background:white;width:min(100%,420px);border-radius:22px;padding:clamp(24px,5vw,36px);border:1px solid #e9e1eb;box-shadow:0 20px 60px rgba(68,38,77,.08)}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:34px}.auth-brand strong{display:block;font-size:23px;letter-spacing:-.06em;color:var(--dark-purple)}.auth-brand small{display:block;color:#9b83a3;letter-spacing:.19em;font-size:9px;font-weight:750;margin-top:3px}.auth-card h1{font-size:28px;margin:0 0 10px}.auth-card>p{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:25px}.auth-card .form-field{margin:0 0 17px}.auth-submit{width:100%;margin-top:4px;min-height:47px;font-size:14px}.auth-waiting{font-size:13px;color:#795d82;padding:15px 0}.auth-message{font-size:12px;line-height:1.6;color:#955468;min-height:19px;margin:12px 0 0}.auth-footer{margin-top:29px;padding-top:18px;border-top:1px solid #f0eaf1;display:flex;align-items:center;gap:8px;font-size:11px;color:#9a8fa0}.auth-footer svg{width:16px;height:16px}.auth-retry{width:100%;margin-top:8px}.status-dot{background:#6b9a81}

/* Z-Bon reader and tax breakdown */
.zbon-upload {padding:14px;border:1px solid #dbcede;border-radius:12px;background:#f8f5fb;display:grid;gap:8px;}
.zbon-upload input[type=file]{max-width:100%;font:inherit;}
#zbonStatus{font-size:.88rem;line-height:1.5;font-weight:600;color:#64486b;}
.zbon-voucher {border-radius:10px;background:#fff9ec;padding:10px 12px;font-size:.9rem;}
.zbon-voucher label{display:flex;align-items:flex-start;gap:10px;}
.zbon-voucher p{margin:7px 0 0;color:#665b47;}
.tax-details {border:1px solid #e1dbe3;border-radius:12px;padding:10px 12px;}
.tax-details summary{font-weight:600;cursor:pointer;}
.tax-rate-rows{display:grid;gap:5px;padding-top:10px;}
.tax-rate-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;font-size:.85rem;}
.tax-rate-row span{color:#625a66;}
.tax-overview{display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;padding:6px 0 15px;color:#5f5663;font-size:.9rem;}
@media (max-width:680px){.tax-overview{display:grid;gap:5px}.tax-rate-row{display:grid;grid-template-columns:35px 1fr;gap:3px 8px;}}

.mobile-record .muted{font-size:.78rem;line-height:1.42;overflow-wrap:anywhere;margin-top:5px;}
.ledger-table .muted{font-size:.79rem;line-height:1.45;margin-top:4px;}
