:root{color:#16211a;background:#f2f5ef;font-family:system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:1;color:#fff;background:#16211a;min-width:24px;min-height:24px;padding:.6rem 1rem;position:absolute;top:.5rem;left:.5rem;transform:translateY(-150%)}.skip-link:focus-visible{transform:translateY(0)}.app-header{background:#fff;border-block-end:1px solid #c7d2c8;justify-content:space-between;align-items:center;gap:1rem;min-height:3.5rem;padding:.5rem 1.5rem;display:flex}.app-header nav{flex-wrap:wrap;gap:.5rem;display:flex}.app-header a,.card>a:not(.button){color:#174a29;align-items:center;min-width:24px;min-height:24px;display:inline-flex}.brand{font-weight:800;text-decoration:none}.app-shell{place-items:center;min-height:calc(100vh - 3.5rem);padding:1.5rem;display:grid}.card{background:#fff;border:1px solid #c7d2c8;border-radius:1rem;width:min(100%,30rem);padding:2rem}.field{gap:.35rem;margin-block:1rem;display:grid}input{min-height:44px;font:inherit;border:1px solid #607064;border-radius:.4rem;padding:.6rem}input[type=number]{appearance:textfield}input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.denomination-row{grid-template-columns:72px 12px 76px 12px minmax(0,1fr);align-items:center;gap:4px;margin-block:4px;display:grid}.denomination-value,.denomination-row input,.denomination-subtotal{font-variant-numeric:tabular-nums;background:#edf4f0;border:1px solid #607064;border-radius:.5rem;justify-content:flex-end;align-items:center;width:100%;min-width:0;min-height:44px;padding:0 .6rem;font-weight:650;display:flex}.denomination-row input{text-align:right;background:#fff}.row-operator{text-align:center;font-weight:800}.denomination-row .error{grid-column:1/-1}:root[data-theme=dark] .denomination-value,:root[data-theme=dark] .denomination-subtotal{background:#22312e;border-color:#43554f}:root[data-theme=dark] .denomination-row input,:root[data-theme=dark] .count-title-input{color:#f3f7f4;background:#182522;border-color:#43554f}.count-title-input{width:100%;font-size:2rem;font-weight:700}.currency-fieldset{min-inline-size:0;margin-block:1rem}.denomination-subtotal{font-variant-numeric:tabular-nums;font-weight:650}.currency-total{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;border-block-start:2px solid #607064;max-width:100%;margin:0;padding:.35rem .5rem;font-size:1.15rem}button,.button{color:#fff;min-width:24px;min-height:44px;font:inherit;background:#205c35;border:0;border-radius:.4rem;justify-content:center;align-items:center;padding:.6rem 1rem;text-decoration:none;display:inline-flex}.denomination-subtotal--long{font-size:.75rem}.denomination-row input:focus-visible{outline-offset:-3px;outline:2px solid #0759b5}:focus-visible{outline-offset:3px;outline:3px solid #0759b5;scroll-margin-block:1rem}.error{color:#9b1c1c;font-weight:600}.status{background:#e8f3e9;border-inline-start:4px solid #205c35;padding:.75rem}.confirmation{border:2px solid #9b1c1c;border-radius:.5rem;width:min(100% - 2rem,28rem);padding:1rem}.actions{flex-wrap:wrap;gap:.75rem;display:flex}button.danger{background:#9b1c1c}button.secondary{background:#46524a}@media (width<=42rem){.currency-total{z-index:1;background:#fff;width:100%;margin-block-start:.5rem;margin-inline-start:auto;position:sticky;inset-block-start:.5rem}.currency-fieldset .denomination-row input:focus-visible{scroll-margin-block-start:7rem}.count-page.card{padding-inline:.75rem}.count-page .currency-fieldset{padding-inline:.4rem}.count-page .denomination-row input{font-size:.8rem}.denomination-row{grid-template-columns:minmax(max-content,8ch) 10px minmax(44px,1fr) 10px minmax(0,1.2fr);gap:2px}.denomination-value,.denomination-row input,.denomination-subtotal{overflow-wrap:anywhere;padding-inline:.25rem}.denomination-value{white-space:nowrap;overflow-wrap:normal}}@media (width<=20rem){.denomination-row{grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);grid-template-areas:"denomination multiply quantity""equals equals subtotal"}.denomination-value{grid-area:denomination}.denomination-row input{grid-area:quantity}.row-operator:first-of-type{grid-area:multiply}.row-operator:nth-of-type(2){grid-area:equals}.denomination-subtotal{grid-area:subtotal}.denomination-row .error{grid-column:1/-1}}.receipt-actions{flex-wrap:wrap;align-items:center;gap:.75rem;margin-block-start:1.5rem;display:flex}:root[data-theme=dark],:root[data-theme=dark] body{color:#f3f7f4;background:#101917}.app-header{background:#182522;border-color:#43554f;grid-template-columns:44px 1fr auto;min-height:68px;padding:12px 16px;display:grid;position:relative}:root[data-theme=light] .app-header{background:#fff;border-color:#c7d2c8}.brand{color:#f3f7f4;align-items:center;gap:8px;display:flex;position:absolute;left:50%;transform:translate(-50%)}:root[data-theme=dark] .app-header .brand,:root[data-theme=dark] .app-header .home-control{color:#f3f7f4}:root[data-theme=light] .brand{color:#16211a}.header-actions{grid-column:3;gap:8px;display:flex}.header-control{width:44px;height:44px;color:inherit;background:#22312e;border:1px solid #43554f;border-radius:12px;place-items:center;text-decoration:none;display:grid}:root[data-theme=light] .header-control{color:#16211a;background:#edf4f0;border-color:#c7d2c8}.home-control{grid-column:1}.bottom-nav{z-index:2;padding:8px 8px max(8px, env(safe-area-inset-bottom));background:#182522;border-top:1px solid #43554f;grid-template-columns:repeat(3,1fr);gap:4px;display:grid;position:sticky;bottom:0}:root[data-theme=light] .bottom-nav{background:#fff;border-color:#c7d2c8}.bottom-nav a{color:#b0c0ba;text-align:center;place-content:center;gap:2px;min-height:44px;font-size:.75rem;font-weight:700;text-decoration:none;display:grid}:root[data-theme=light] .bottom-nav a{color:#52625d}.bottom-nav a[aria-current=page]{color:#8ce5ca}:root[data-theme=light] .bottom-nav a[aria-current=page]{color:#174a29}.app-shell{place-items:start center;min-height:calc(100vh - 124px);padding:16px}.card{border-radius:18px;width:min(100%,40rem);padding:20px}.eyebrow{color:#0a7a60;letter-spacing:.08em;text-transform:uppercase;margin:0 0 4px;font-size:.75rem;font-weight:800}.dashboard-intro{color:#52625d}.dashboard-start{width:100%;margin:8px 0 16px}.dashboard-section{margin-top:20px}.dashboard-section h2{font-size:1.05rem}.dashboard-card{background:#fff;border:1px solid #c7d2c8;border-radius:18px;gap:12px;padding:12px;display:grid}.dashboard-card ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.dashboard-card li{font-variant-numeric:tabular-nums;background:#edf4f0;border-radius:12px;padding:8px}.dashboard-data{margin-top:24px}.history-intro{color:#52625d;margin:4px 0 16px;font-size:.875rem;line-height:1.4}.history-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.history-record-card{background:#fff;border:1px solid #c7d2c8;border-radius:18px;gap:12px;padding:12px;display:grid}.history-record-date{color:#52625d;font-variant-numeric:tabular-nums;font-size:.8rem;font-weight:700}.history-subtotals{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.history-subtotals li{font-variant-numeric:tabular-nums;background:#edf4f0;border-radius:12px;min-width:0;padding:8px;font-weight:800}.history-record-link{min-height:44px;color:inherit;border:1px solid #c7d2c8;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:0 12px;font-size:.875rem;font-weight:850;text-decoration:none;display:inline-flex}.history-record-link span{color:#0a7a60;font-size:1.1rem}.history-empty-state{background:#fff;border:1px dashed #c7d2c8;border-radius:18px;justify-items:start;gap:12px;min-height:292px;padding:20px;display:grid}.history-empty-symbol{color:#0a7a60;background:#edf4f0;border:1px solid #c7d2c8;border-radius:50%;place-items:center;width:44px;height:44px;font-size:1.2rem;display:grid}.history-empty-state h2{margin:8px 0 0;font-size:1.1rem}.history-empty-state p{color:#52625d;margin:0;font-size:.9rem;line-height:1.45}.history-empty-action{gap:8px;padding-inline:16px}:root[data-theme=dark] .card,:root[data-theme=dark] .dashboard-card,:root[data-theme=dark] .history-record-card,:root[data-theme=dark] .history-empty-state{background:#182522;border-color:#43554f}:root[data-theme=dark] .dashboard-intro,:root[data-theme=dark] .history-intro,:root[data-theme=dark] .history-record-date,:root[data-theme=dark] .history-empty-state p{color:#b0c0ba}:root[data-theme=dark] .dashboard-card li,:root[data-theme=dark] .history-subtotals li,:root[data-theme=dark] .history-empty-symbol{background:#22312e}:root[data-theme=dark] .history-record-link,:root[data-theme=dark] .history-empty-symbol{border-color:#43554f}:root[data-theme=dark] .history-record-link{color:#f3f7f4}:root[data-theme=dark] .history-record-link span,:root[data-theme=dark] .history-empty-symbol,:root[data-theme=dark] .card>a:not(.button){color:#8ce5ca}:root[data-theme=dark] .currency-total{color:#f3f7f4;background:#22312e;border-color:#43554f}.settings-page .eyebrow{margin-top:0}.settings-page h1{margin:0}.settings-intro,.settings-repair-note{color:#52625d;font-size:.875rem;line-height:1.45}.settings-intro{margin:8px 0 16px}.settings-repair-note{margin:0;font-size:.75rem}.settings-page form{gap:12px;display:grid}.settings-currency{min-width:0}.currency-order-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.currency-order-actions button{min-width:0;padding-inline:.5rem}.currency-order-actions button:disabled{opacity:.45}.settings-page fieldset{border:1px solid #c7d2c8;border-radius:18px;min-inline-size:0;margin:0;padding:12px}.settings-page legend{padding-inline:4px;font-size:.875rem;font-weight:800}.settings-page .field{gap:4px;margin-block:8px}.settings-page .field:first-of-type{margin-block-start:4px}.settings-page label{color:#52625d;font-size:.75rem;font-weight:750}.settings-page input{background:#edf4f0;border-radius:12px;width:100%}.settings-page input[aria-invalid=true]{border:2px solid #9b1c1c}.field-error{margin:0;font-size:.75rem;line-height:1.35}.field-error:before{content:"! "}.settings-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.settings-actions button{min-width:0;padding-inline:12px}.settings-actions button:first-child{color:#16211a;background:#edf4f0;border:1px solid #c7d2c8}.dashboard-reset-button{color:#9b1c1c;background:0 0;border:1px solid #9b1c1c}.confirmation{color:#16211a;background:#fff;box-shadow:0 16px 36px #00000047}.confirmation::backdrop{background:#16201e7a}.confirmation--reset{border:1px solid #c7d2c8;border-radius:18px;padding:20px}.confirmation--reset h3{margin:0;font-size:1.3rem}.confirmation--reset>p:not(.danger-kicker){color:#52625d;margin:8px 0 16px;font-size:.875rem;line-height:1.45}.danger-kicker{color:#9b1c1c;letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px;font-size:.75rem;font-weight:850}.dialog-actions{grid-template-columns:1fr;gap:8px;display:grid}.dialog-actions button{width:100%}:root[data-theme=dark] .settings-intro,:root[data-theme=dark] .settings-repair-note,:root[data-theme=dark] .settings-page label,:root[data-theme=dark] .confirmation--reset>p:not(.danger-kicker){color:#b0c0ba}:root[data-theme=dark] .settings-page fieldset,:root[data-theme=dark] .settings-actions button:first-child{border-color:#43554f}:root[data-theme=dark] .settings-page input,:root[data-theme=dark] .settings-actions button:first-child{color:#f3f7f4;background:#22312e}:root[data-theme=dark] .confirmation{color:#f3f7f4;background:#182522;border-color:#43554f}:root[data-theme=dark] .dashboard-reset-button{color:#ffb4ab;border-color:#ffb4ab}:root[data-theme=dark] .danger-kicker,:root[data-theme=dark] .error{color:#ffb4ab}:root[data-theme=dark] .status{color:#f3f7f4;background:#174a29}@media (width<=24rem){.app-header{grid-template-columns:44px minmax(0,1fr) auto;gap:4px;min-height:60px;padding:8px}.brand{justify-self:center;position:static;transform:none}.header-actions{gap:4px}#offline-ready{margin:0;padding:.4rem .65rem;font-size:.8rem;line-height:1.3}}:root{--paper:#f8f4eb;--sheet:#fffdf8;--ink:#192d3c;--muted:#485e69;--rule:#8a9ca2;--red:#17566d;--on-red:#fff}:root[data-theme=dark]{--paper:#151f28;--sheet:#253642;--ink:#f5f0e5;--muted:#c1cdd0;--rule:#7d949d;--red:#9ed5e0;--on-red:#102b36}:root,:root[data-theme=dark],:root[data-theme=dark] body{color:var(--ink);background:var(--paper)}body{font-family:Georgia,Times New Roman,serif}.app-header,:root[data-theme=light] .app-header{background:var(--paper);border-bottom:3px double var(--ink)}.app-header .brand,:root[data-theme=light] .app-header .brand,:root[data-theme=dark] .app-header .brand{color:var(--red);letter-spacing:.045em;font-family:Georgia,Times New Roman,serif}.brand-letter{color:#0000;width:1.05em;display:inline-block;position:relative}.brand-letter svg{width:100%;height:1.05em;color:var(--red);position:absolute;inset:0}.brand small{font-size:.75em}.header-control,:root[data-theme=light] .header-control,:root[data-theme=dark] .app-header .home-control{color:var(--ink);background:var(--sheet);border:1px solid var(--rule);border-radius:0}.bottom-nav,:root[data-theme=light] .bottom-nav{background:var(--paper);border-color:var(--rule);font-family:system-ui,sans-serif}.bottom-nav a,:root[data-theme=light] .bottom-nav a{color:var(--muted)}.bottom-nav a[aria-current=page],:root[data-theme=light] .bottom-nav a[aria-current=page]{color:var(--red);text-underline-offset:4px;text-decoration:underline}.card,:root[data-theme=dark] .card{background:var(--paper);border:0;border-radius:0}.card h1{font-size:1.5rem}.eyebrow{color:var(--red);font-family:system-ui,sans-serif}.dashboard-intro,.history-intro,.settings-intro,.settings-repair-note,:root[data-theme=dark] .dashboard-intro,:root[data-theme=dark] .history-intro,:root[data-theme=dark] .settings-intro,:root[data-theme=dark] .settings-repair-note{color:var(--muted)}button,.button{border:1px solid var(--red);background:var(--red);color:var(--on-red);border-radius:0;font-family:system-ui,sans-serif;font-weight:800}.dashboard-card,:root[data-theme=dark] .dashboard-card{background:var(--sheet);border:1px solid var(--rule);box-shadow:3px 4px 0 var(--rule);border-radius:0}.dashboard-card time{color:var(--red);text-transform:uppercase;font:900 .7rem system-ui,sans-serif}.dashboard-card ul,.history-subtotals{flex-wrap:wrap;gap:.5rem;display:flex}.dashboard-card li,.history-subtotals li,:root[data-theme=dark] .dashboard-card li,:root[data-theme=dark] .history-subtotals li{overflow-wrap:anywhere;background:0 0;border-radius:0;padding:0}.dashboard-card a,.history-record-link{color:var(--red);font-family:system-ui,sans-serif;font-weight:800}.history-list{gap:0}.history-record-card,:root[data-theme=dark] .history-record-card{border:0;border-bottom:1px solid var(--rule);background:0 0;border-radius:0;gap:8px;padding:13px 0}.history-record-card h3{margin:0}.history-record-date,:root[data-theme=dark] .history-record-date{color:var(--muted);font-family:system-ui,sans-serif}.history-record-link,:root[data-theme=dark] .history-record-link{color:var(--red);border:0;justify-content:start;padding:0}.history-record-link span,:root[data-theme=dark] .history-record-link span{color:var(--red)}.history-empty-state,:root[data-theme=dark] .history-empty-state{background:var(--sheet);border:1px solid var(--rule);border-radius:0}.history-empty-symbol,:root[data-theme=dark] .history-empty-symbol{color:var(--red);background:var(--sheet);border-color:var(--rule)}.history-empty-state p,:root[data-theme=dark] .history-empty-state p{color:var(--muted)}.status,:root[data-theme=dark] .status{color:var(--ink);background:var(--sheet);border-color:var(--red)}.card>a:not(.button),:root[data-theme=dark] .card>a:not(.button){color:var(--red)}.settings-page fieldset,:root[data-theme=dark] .settings-page fieldset{background:var(--sheet);border:1px solid var(--rule);box-shadow:3px 4px 0 var(--rule);border-radius:0;padding:12px}.settings-page label,:root[data-theme=dark] .settings-page label{color:var(--ink)}.field input{color:var(--ink);background:var(--sheet);border-color:var(--rule)}.settings-page input,:root[data-theme=dark] .settings-page input{color:var(--ink);background:var(--sheet);border:1px solid var(--rule);border-radius:0}.settings-actions button:first-child:not(:last-child),:root[data-theme=dark] .settings-actions button:first-child:not(:last-child){color:var(--red);border-color:var(--red);background:0 0}.settings-actions button:only-child,:root[data-theme=dark] .settings-actions button:only-child{color:var(--on-red);background:var(--red);border-color:var(--red)}.dashboard-reset-button,:root[data-theme=dark] .dashboard-reset-button{color:var(--red);border-color:var(--red);background:0 0}.confirmation,:root[data-theme=dark] .confirmation{color:var(--ink);background:var(--paper);border-color:var(--ink);border-radius:0}.denomination-value,.denomination-subtotal,:root[data-theme=dark] .denomination-value,:root[data-theme=dark] .denomination-subtotal,.denomination-row input,:root[data-theme=dark] .denomination-row input,.count-title-input,:root[data-theme=dark] .count-title-input{color:var(--ink);background:var(--sheet);border-color:var(--rule);border-radius:0}.denomination-subtotal{overflow-wrap:anywhere;text-align:right}.currency-total,:root[data-theme=dark] .currency-total{z-index:1;color:var(--ink);background:var(--paper);border-color:var(--ink);position:sticky;inset-block-start:.5rem}.currency-fieldset .denomination-row input:focus-visible{scroll-margin-block-start:7rem}.detail-sheet{border:1px solid var(--rule);background:var(--sheet);box-shadow:3px 4px 0 var(--rule);overflow-wrap:anywhere;margin:1rem 0;padding:12px}.detail-sheet h2{font-size:1.05rem}.detail-sheet ul{padding-left:1.3rem}.detail-sheet section>p{border-bottom:3px double var(--ink);padding-bottom:.6rem;font-weight:700}.detail-note{background:var(--sheet);overflow-wrap:anywhere;white-space:pre-wrap;border-left:3px solid #b18a30;padding:10px}.detail-actions{flex-wrap:wrap;gap:8px;display:flex}.detail-actions>button{flex:12rem}.detail-actions>button:last-child{color:var(--red);background:0 0}@media print{:root,:root[data-theme=dark],:root[data-theme=dark] body{--paper:#fff;--sheet:#fff;--ink:#000;--muted:#000;--rule:#777;--red:#000;color:#000;background:#fff}.detail-sheet{box-shadow:none}.detail-actions,#offline-ready,.skip-link,.app-header,.bottom-nav,.receipt-actions{display:none}.app-shell{min-height:0;padding:0;display:block}.card{border:0;width:100%;padding:0}}.currency-selector{border:0;flex-wrap:wrap;gap:.5rem;margin:1rem 0;padding:0;display:flex}.currency-selector legend{margin-bottom:.5rem;font-weight:700}.currency-selector label{border:1px solid var(--rule);align-items:center;gap:.4rem;min-height:44px;padding:.3rem .7rem;display:flex}.currency-selector input{width:1.15rem;height:1.15rem;min-height:0}.denomination-value,.denomination-subtotal{text-align:center;justify-content:center}.denomination-row input{text-align:center}.app-header{top:var(--visual-offset,0px);z-index:4;position:sticky}.header-control,:root[data-theme=light] .header-control,:root[data-theme=dark] .app-header .home-control{background:0 0;border:0}#offline-ready[data-home=false]{display:none}.currency-total,:root[data-theme=dark] .currency-total{inset-block-start:calc(68px + var(--visual-offset,0px))}.detail-page>h1{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.detail-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.detail-table th,.detail-table td{text-align:center;border-bottom:1px solid var(--rule);padding:.5rem .15rem}.detail-table th{font:700 .7rem system-ui,sans-serif}.count-page .actions,.detail-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.count-page .actions>button,.detail-actions>button{overflow-wrap:anywhere;min-width:0;padding-inline:.5rem}.detail-actions>:not(button){grid-column:1/-1}@media print{.detail-actions{display:none}}@media (width<=24rem){.currency-total,:root[data-theme=dark] .currency-total{inset-block-start:calc(60px + var(--visual-offset,0px))}.app-header .brand{gap:2px}:root[data-theme] .app-header .brand{letter-spacing:0}.app-header .brand small{font-size:.75em}}
