:root{color-scheme:light;--bg:#f5f7fb;--surface:#fff;--surface2:#f7f9fc;--text:#172033;--muted:#718096;--line:#e5eaf1;--primary:#4f6df5;--primary2:#3855df;--accent:#16a477;--shadow:0 16px 45px rgba(25,42,75,.07);--danger:#dc4c55}html[data-theme=dark]{color-scheme:dark;--bg:#0d1421;--surface:#151f30;--surface2:#1b293d;--text:#edf2fa;--muted:#9aa9bd;--line:#2b3a50;--primary:#7890ff;--primary2:#637cff;--accent:#47c99c;--shadow:0 16px 45px rgba(0,0,0,.22);--danger:#ff727a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-height:100vh;transition:background .2s,color .2s}button,input{font:inherit}button{cursor:pointer}.topbar{height:72px;padding:0 max(24px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--surface)}.brand{display:flex;align-items:center;gap:11px;color:var(--text);font:800 19px Inter,ui-sans-serif,system-ui,sans-serif;text-decoration:none;letter-spacing:-.7px}.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--primary);display:grid;place-items:center}.brand-mark svg{width:21px;stroke:white;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.brand-accent{color:var(--primary)}.icon-btn{width:39px;height:39px;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:11px;display:grid;place-items:center}.icon-btn svg,.btn svg,.secure-pill svg,.privacy-note svg,.admin-footnote svg,.search-box svg,.small-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.main-wrap{width:min(720px,calc(100% - 36px));margin:0 auto;padding:66px 0 28px}.hero{text-align:center;margin-bottom:35px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--primary);display:flex;align-items:center;justify-content:center;gap:8px}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 13%,transparent)}h1,h2,p{margin-top:0}.hero h1,.dash-head h1{font:800 clamp(30px,5vw,43px)/1.18 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-1.8px;margin:19px 0 13px}.gradient-text{background:linear-gradient(100deg,var(--primary),#13a982);-webkit-background-clip:text;background-clip:text;color:transparent}.hero-copy{max-width:550px;margin:0 auto;color:var(--muted);line-height:1.75;font-size:14px}.upload-card,.login-card,.inbox-card{background:var(--surface);border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow)}.upload-card{padding:27px}.card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.card-heading h2,.inbox-toolbar h2{font:750 19px Inter,ui-sans-serif,system-ui,sans-serif;margin:0 0 5px;letter-spacing:-.5px}.card-heading p,.inbox-toolbar p{font-size:12px;color:var(--muted);margin:0}.secure-pill{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:30px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);font-size:11px;font-weight:700}.secure-pill svg{width:14px;height:14px}.dropzone{min-height:225px;border:1.5px dashed color-mix(in srgb,var(--primary) 45%,var(--line));border-radius:15px;background:color-mix(in srgb,var(--primary) 4%,var(--surface));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;cursor:pointer;text-align:center;padding:22px;transition:.2s}.dropzone:hover,.dropzone.dragging{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,var(--surface))}.upload-icon{width:53px;height:53px;border-radius:16px;background:color-mix(in srgb,var(--primary) 12%,var(--surface));display:grid;place-items:center;color:var(--primary);margin-bottom:5px}.upload-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.dropzone strong{font-size:14px}.muted,.file-hint{font-size:12px;color:var(--muted)}.file-hint{font-size:10px}.file-list{margin-top:15px;display:grid;gap:8px}.picked-file{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px}.file-type{width:34px;height:36px;flex:0 0 34px;border-radius:8px;background:color-mix(in srgb,var(--primary) 11%,var(--surface));color:var(--primary);font-size:8px;font-weight:800;display:grid;place-items:center}.picked-name,.file-name{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.picked-size{font-size:10px;color:var(--muted);white-space:nowrap}.remove-file{border:0;background:none;color:var(--muted);font-size:20px}.upload-actions{display:flex;align-items:center;gap:14px;margin-top:18px;flex-wrap:wrap}.btn{min-height:42px;padding:0 16px;border-radius:10px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:700;transition:.18s}.btn svg{width:16px;height:16px}.btn-primary{background:var(--primary);color:white}.btn-primary:hover{background:var(--primary2);transform:translateY(-1px)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.btn-outline{background:var(--surface);border-color:var(--line);color:var(--text)}.btn-outline:hover{border-color:var(--primary);color:var(--primary)}.status-text{font-size:11px;color:var(--muted)}.privacy-note{display:flex;align-items:flex-start;gap:9px;margin-top:19px;padding-top:17px;border-top:1px solid var(--line);font-size:10px;line-height:1.6;color:var(--muted)}.privacy-note svg{flex:0 0 17px;color:var(--accent);width:17px;height:17px}.public-footer{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding:20px 4px}.public-footer a,.back-link{color:var(--primary);text-decoration:none;font-weight:700}.hidden{display:none!important}.admin-body{background:var(--bg)}.top-actions{display:flex;align-items:center;gap:15px}.admin-label{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:800}.admin-wrap{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:55px 0}.login-card{width:min(420px,100%);margin:35px auto;padding:35px}.login-symbol{width:51px;height:51px;border-radius:15px;background:color-mix(in srgb,var(--primary) 12%,var(--surface));color:var(--primary);display:grid;place-items:center;margin-bottom:20px}.login-symbol svg{width:25px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.login-card h1{font:800 24px Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.8px;margin:0 0 8px}.login-card>p{font-size:12px;color:var(--muted);margin-bottom:25px}.field-label{display:block;font-size:11px;font-weight:700;margin-bottom:8px}.text-input{width:100%;height:45px;border:1px solid var(--line);border-radius:9px;padding:0 12px;background:var(--surface2);color:var(--text);outline:none}.text-input:focus,.search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}.full-btn{width:100%;margin-top:15px}.error-text{font-size:11px;color:var(--danger);margin-top:10px;min-height:15px}.back-link{display:block;text-align:center;font-size:11px;margin-top:22px}.dashboard{width:100%}.dash-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:27px}.dash-head .eyebrow{justify-content:flex-start}.dash-head h1{font-size:31px;margin:12px 0 6px}.dash-head p{font-size:12px;color:var(--muted);margin:0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px}.stat-card span,.stat-card small{display:block;color:var(--muted);font-size:10px}.stat-card strong{display:block;font:800 25px Inter,ui-sans-serif,system-ui,sans-serif;margin:8px 0 3px;letter-spacing:-.8px}.inbox-card{overflow:hidden}.inbox-toolbar{padding:22px 22px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px}.toolbar-actions{display:flex;gap:8px}.toolbar-actions .btn{min-height:38px;padding:0 12px;font-size:10px}.toolbar-actions .btn svg{width:14px}.filter-row{padding:0 22px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.search-box{height:37px;width:min(310px,100%);display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface2)}.search-box svg{width:15px;color:var(--muted)}.search-box input{border:0;outline:0;background:transparent;color:var(--text);width:100%;font-size:11px}.text-btn{border:0;background:none;color:var(--primary);font-size:10px;font-weight:700}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:var(--surface2)}th{font-size:9px;letter-spacing:.8px;color:var(--muted);font-weight:800;padding:13px 12px}td{padding:12px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}th:first-child,td:first-child{padding-left:22px}.check-col{width:42px}.action-col{text-align:right;padding-right:22px}.file-cell{display:flex;align-items:center;gap:9px;max-width:280px}.file-cell .file-type{width:30px;height:32px;flex-basis:30px}.file-name{color:var(--text);font-size:11px}.row-actions{display:flex;justify-content:flex-end;gap:6px}.small-action{width:30px;height:30px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);display:grid;place-items:center}.small-action svg{width:14px;height:14px}.download-action:hover{color:var(--primary);border-color:var(--primary)}.delete-action:hover{color:var(--danger);border-color:var(--danger)}input[type=checkbox]{accent-color:var(--primary);width:14px;height:14px;cursor:pointer}.expiry-tag{font-size:9px}.empty-cell{text-align:center;padding:28px}.empty-state{display:flex;flex-direction:column;align-items:center;gap:7px;padding:28px;color:var(--muted);font-size:11px}.empty-state strong{color:var(--text);font-size:13px}.empty-icon{width:42px;height:42px;border-radius:12px;background:var(--surface2);display:grid;place-items:center}.empty-icon svg{width:22px;stroke:var(--muted);fill:none;stroke-width:1.6}.notice{margin:0 22px 13px;padding:10px 12px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);font-size:11px;border-radius:8px}.error-notice{background:color-mix(in srgb,var(--danger) 10%,var(--surface));color:var(--danger)}.admin-footnote{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;margin:17px 2px}.admin-footnote svg{width:15px;height:15px;color:var(--accent)}
@media(max-width:680px){.topbar{height:62px;padding:0 18px}.main-wrap{padding-top:42px}.hero h1{font-size:32px}.upload-card{padding:19px}.dropzone{min-height:195px}.admin-wrap{padding:32px 0}.dash-head{align-items:flex-start}.dash-head h1{font-size:26px}.dash-head>.btn{padding:0 10px;font-size:10px}.stats-grid{gap:8px}.stat-card{padding:13px}.stat-card strong{font-size:20px}.inbox-toolbar{align-items:flex-start;flex-direction:column;padding:18px}.toolbar-actions{width:100%}.toolbar-actions .btn{flex:1}.filter-row{padding:0 18px 14px}.login-card{padding:27px 22px}.admin-label{display:none}}
@media(max-width:420px){.stats-grid{grid-template-columns:1fr 1fr}.stats-grid .stat-card:last-child{grid-column:span 2}.dash-head{gap:8px}.dash-head>.btn{min-height:35px}.hero h1{font-size:28px}.card-heading h2{font-size:17px}.secure-pill{font-size:9px}.upload-actions .btn{width:100%}}

/* Upload reference receipt */
.upload-receipt{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:16px 18px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.upload-receipt>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.receipt-label{font-size:10px;font-weight:800;letter-spacing:.13em;color:var(--muted)}
.upload-receipt strong{font-size:23px;letter-spacing:.12em;font-variant-numeric:tabular-nums}
.upload-receipt small{font-size:12px;color:var(--muted)}
.upload-code{display:inline-flex;white-space:nowrap;border:1px solid var(--border);border-radius:7px;padding:5px 7px;font-size:11px;font-weight:750;letter-spacing:.06em;font-variant-numeric:tabular-nums;background:var(--surface)}
@media(max-width:640px){.upload-receipt{align-items:flex-start;flex-direction:column}.upload-receipt .btn{width:100%}}
