:root{color-scheme:light;--ink:#17212b;--muted:#5c6b76;--line:#dce3e8;--green:#0f7a4d;--orange:#d66500;--red:#b52323;--bg:#f4f6f7;--brand:#0e6ba8}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.app-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;height:58px;padding:0 18px;background:#fff;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-weight:850}.brand img{width:30px;height:30px}
main{max-width:760px;margin:0 auto;padding:20px 14px 48px;display:grid;gap:16px}
.panel{background:#fff;border:1px solid var(--line);border-radius:6px;padding:18px;box-shadow:0 2px 8px #17212b0b}.panel h2{margin:0 0 15px;font-size:19px}
label{display:grid;gap:6px;margin-bottom:12px;font-weight:650}input,select{width:100%;min-height:42px;border:1px solid #b7c2ca;border-radius:4px;padding:9px 11px;background:#fff;font-size:16px}
button{min-height:42px;border:0;border-radius:4px;padding:0 16px;background:var(--brand);color:#fff;font-weight:750;cursor:pointer}button:hover{filter:brightness(.94)}
button.secondary{background:#e8ecef;color:var(--ink)}button.ghost{background:#eef2f4;color:var(--ink);min-height:34px}
button:disabled{background:#9aa8b0;cursor:not-allowed}.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.actions{display:flex;gap:10px;margin-top:6px}.actions button{flex:1}
.hidden{display:none!important}.muted{color:var(--muted)}.notice{min-height:18px;color:var(--muted);margin:10px 0 0}
.notice.error{color:var(--red);font-weight:650}.notice.success{color:var(--green);font-weight:650}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-head h2{margin:0}
.cards{display:grid;gap:10px}.order{border:1px solid var(--line);border-radius:5px;padding:12px;background:#fbfcfc}
.order-top{display:flex;justify-content:space-between;gap:10px;font-weight:750}.state{font-size:12px;padding:3px 7px;border-radius:3px;background:#e7ecef}
.state.paid,.state.printing,.state.ready_shipping{background:#fff0cd;color:#8a5300}.state.ready_pickup,.state.completed{background:#dcf3e6;color:#14794e}.state.failed,.state.cancelled,.state.refunded{background:#fde4e4;color:#b52323}
.order-meta{margin-top:7px;color:var(--muted);font-size:13px}dl{display:grid;grid-template-columns:100px 1fr;gap:8px;margin:0}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:none;background:#17212b;color:#fff;padding:10px 16px;border-radius:4px;z-index:99}
.toast.show{display:block}
@media(max-width:560px){main{padding:14px 10px 40px}.panel{padding:15px}.grid,.grid.four{grid-template-columns:1fr}}
