:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17283c;background:#f5f6f8;font-synthesis:none;color-scheme:light;--accent:#315ce8;--muted:#66758a;--line:#e4e9f0}
*{box-sizing:border-box}body{margin:0}.app{max-width:680px;margin:auto;padding:24px 18px calc(28px + env(safe-area-inset-bottom))}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #91acff;outline-offset:2px}[hidden]{display:none!important}.header{display:flex;align-items:center;gap:13px}.brand-mark{width:44px;height:44px;display:grid;place-items:center;background:var(--accent);color:white;font-size:25px;font-weight:700;border-radius:15px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--muted);margin:0 0 4px}h1{font-size:21px;letter-spacing:-.5px;margin:0;font-weight:700}h2,.field-title{font-size:16px;font-weight:650;margin:0}.muted{font-size:13px;color:var(--muted);margin:17px 0 22px}.tabs{display:flex;padding:4px;background:#e9edf3;border-radius:13px;gap:4px;margin-bottom:22px}.tab{flex:1;border:0;background:none;color:#596a80;font-size:13px;padding:12px 7px;border-radius:10px;font-weight:600}.tab.selected{background:#fff;color:var(--accent);box-shadow:0 2px 5px #2339590d}.card{background:white;border:1px solid var(--line);border-radius:17px;padding:20px;margin-bottom:15px}.hint{color:var(--muted);font-size:12px;line-height:1.6;margin:7px 0 15px}label{display:block;font-size:12px;color:#536378;margin:0 0 7px}input,select,textarea{width:100%;border:1px solid #dce3ed;background:#fbfcfe;border-radius:10px;padding:12px;color:#17283c;font-size:15px;min-height:46px}textarea{resize:vertical;margin-top:9px}input::placeholder,textarea::placeholder{color:#94a1b3}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.badge{font-size:10px;font-weight:600;color:var(--muted);background:#f1f4f8;padding:5px 8px;border-radius:6px}.item{padding:16px 0;border-top:1px solid var(--line)}.item-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.item-number{font-size:11px;font-weight:700;color:#8b97a8}.remove-item{border:0;background:none;color:#a13b4d;font-size:12px;padding:5px}.item-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin-top:13px}.button{border:0;border-radius:11px;padding:13px 18px;font-size:14px;font-weight:600;min-height:46px}.wide{width:100%}.primary{background:var(--accent);color:#fff;box-shadow:0 5px 10px #315ce81a}.secondary{background:#eef2fa;color:#3b5fae}.danger{background:#c53f51;color:white}.small{min-height:36px;padding:8px 12px;font-size:12px}.optional{font-size:11px;color:#8a96a8;font-weight:400;padding-left:7px}.save-bar{background:#f5f6f8;padding:4px 0 12px}.total{display:flex;justify-content:space-between;align-items:center;padding:13px 4px 17px;font-size:14px}.total strong{font-size:26px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}fieldset{border:0;padding:0;margin:0;min-width:0}.notice{padding:13px 15px;border-radius:12px;background:#e6f3eb;color:#276640;font-size:13px;line-height:1.5;margin-bottom:16px}.notice.error{background:#fff0f0;color:#a02f41}.demo{padding:10px 12px;margin-bottom:18px;border-radius:10px;font-size:12px;background:#fff0cf;color:#876125}.history-heading{display:flex;justify-content:space-between;align-items:start;gap:10px}.history-heading h2{font-size:18px}.summary{display:flex;align-items:center;justify-content:space-between;background:#e9eefc;color:#37559c;padding:16px;border-radius:13px;margin:2px 0 18px;font-size:13px}.summary strong{font-size:19px}.purchase-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.purchase-meta{color:var(--muted);font-size:12px;margin:7px 0 14px}.status{font-size:10px;padding:5px 7px;border-radius:6px;background:#eaf5ef;color:#308052}.status.cancelled{background:#f0f1f4;color:#8390a2}.history-item{display:flex;justify-content:space-between;gap:12px;margin:12px 0;font-size:14px;overflow-wrap:anywhere}.history-item small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.history-item strong{white-space:nowrap;font-size:13px}.purchase-total{border-top:1px solid var(--line);padding-top:12px;margin:14px 0;display:flex;justify-content:space-between;font-size:14px}.cancel-button{color:#a13b4d;background:#fff1f3}.comment-text{white-space:pre-wrap;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.empty{text-align:center;color:var(--muted);padding:40px 15px;background:white;border:1px dashed #d5ddea;border-radius:15px;font-size:14px;line-height:1.7}.history-note{text-align:center;margin:20px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}footer{font-size:10px;color:#95a0b0;text-align:center;margin:21px 0 0}dialog{max-width:calc(100% - 32px);width:430px;border:0;border-radius:18px;padding:24px;color:#17283c}dialog::backdrop{background:#17283c70}dialog p{font-size:14px;line-height:1.5;color:var(--muted)}.dialog-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.dialog-buttons .button{font-size:12px;padding:12px}.loading{color:var(--muted);font-size:13px;padding:22px;text-align:center}@media(max-width:380px){.app{padding:18px 12px}h1{font-size:18px}.card{padding:16px}.tab{font-size:11px}.item-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.summary{font-size:11px}.summary strong{font-size:17px}}
