:root { color-scheme: dark; --bg:#101116; --surface:#1c1e25; --line:#363941; --text:#f6f7fa; --muted:#aeb4c2; --accent:#c7ceff; --mint:#9ce8c4; --danger:#ff919d; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:0; }
button,input,a { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
button { font:inherit; cursor:pointer; color:inherit; }
button:disabled { cursor:wait; opacity:.6; }
a { color:inherit; text-decoration:none; }
[hidden] { display:none!important; }
.shell { max-width:540px; min-height:100svh; margin:auto; padding:env(safe-area-inset-top) 24px env(safe-area-inset-bottom); display:flex; flex-direction:column; }
header { min-height:84px; display:flex; align-items:center; gap:12px; }
.brand { display:flex; align-items:center; gap:9px; font-weight:650; font-size:19px; }
.brand img { object-fit:contain; }
.preview { margin-left:auto; font-size:11px; color:var(--mint); border-bottom:1px solid var(--mint); }
main { flex:1; padding:16px 0 24px; }
.view { animation:enter 180ms ease-out; }
@keyframes enter { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
h1 { margin:0; font-size:32px; font-weight:650; line-height:1.18; overflow-wrap:anywhere; }
h2 { margin:0 0 14px; font-size:18px; line-height:1.35; font-weight:600; }
p { margin:0; }
.heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:34px; }
.icon-button { width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; border:1px solid var(--line); background:transparent; border-radius:8px; }
.icon-button svg { width:20px; height:20px; }
.status { margin-bottom:28px; }
.status .eyebrow { display:flex; align-items:center; gap:8px; color:var(--mint); font-size:14px; margin-bottom:8px; }
.status .eyebrow:before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.status strong { font-weight:500; font-size:25px; }
.status .date { color:var(--accent); font-size:18px; margin-top:5px; }
.status.inactive .eyebrow { color:var(--muted); }
.button { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:62px; padding:16px 20px; border:1px solid var(--line); background:var(--surface); border-radius:8px; text-align:left; line-height:1.3; }
.button span { flex:1; min-width:0; overflow-wrap:anywhere; }
.button svg { width:21px; height:21px; flex:0 0 21px; }
.button.primary { color:#161922; background:var(--accent); border-color:var(--accent); font-weight:600; }
.button:hover { filter:brightness(1.06); }
.button:active { transform:translateY(1px); }
.section { padding:30px 0 0; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.count { color:var(--muted); font-size:14px; font-weight:400; }
.rows { border-top:1px solid var(--line); }
.row { display:flex; align-items:center; gap:13px; width:100%; min-height:76px; padding:17px 0; border:0; border-bottom:1px solid var(--line); text-align:left; background:transparent; }
.row .device-icon { width:38px; height:38px; display:grid; place-items:center; color:var(--accent); background:var(--surface); border-radius:8px; flex:0 0 38px; }
.row .device-icon svg { width:20px; height:20px; }
.row .row-content { flex:1; min-width:0; overflow-wrap:anywhere; }
.row .row-content strong { display:block; font-size:16px; font-weight:500; }
.row .row-content small { display:block; margin-top:3px; font-size:13px; color:var(--muted); }
.row > svg { color:var(--muted); width:19px; height:19px; flex:0 0 19px; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:28px; }
.split .button { min-height:58px; padding:14px; font-size:14px; gap:8px; }
.split .button svg { width:18px; height:18px; flex-basis:18px; }
.empty { color:var(--muted); padding:24px 0; font-size:15px; }
.segments { display:flex; gap:4px; padding:4px; background:var(--surface); border:1px solid var(--line); border-radius:8px; flex-wrap:wrap; }
.segments button { flex:1 0 48px; min-height:42px; padding:8px 6px; background:transparent; border:0; border-radius:4px; font-size:13px; white-space:nowrap; }
.segments button[aria-pressed=true] { background:var(--accent); color:#161922; font-weight:600; }
.price-band { padding:28px 0; display:grid; gap:6px; }
.price-band span { color:var(--muted); font-size:14px; }
.price-band strong,.payment-amount { font-size:30px; font-weight:600; }
.field { display:grid; gap:12px; color:var(--muted); }
.field input { width:100%; min-height:50px; padding:12px; background:var(--surface); border:1px solid var(--line); border-radius:8px; color:var(--text); font:inherit; }
.stack { display:grid; gap:12px; margin-top:22px; }
.detail-icon { width:88px; height:108px; margin:8px auto 32px; display:grid; place-items:center; color:var(--accent); }
.detail-icon svg { width:64px; height:80px; stroke-width:1.25; }
.detail-title { text-align:center; }
.detail-title p { margin-top:10px; font-size:14px; color:var(--muted); }
.device-actions { margin-top:40px; }
.caption { color:var(--muted); font-size:13px; padding:8px 0 10px; }
.danger { color:var(--danger); }
.amount { flex:0 0 auto; font-weight:500; white-space:nowrap; }
footer { display:flex; justify-content:space-between; gap:12px; padding:20px 0 24px; border-top:1px solid var(--line); color:#777f8e; font-size:12px; }
.loading { display:flex; align-items:center; justify-content:center; gap:12px; min-height:300px; color:var(--muted); }
.spinner { width:19px; height:19px; border-radius:50%; border:2px solid var(--line); border-top-color:var(--accent); animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.error { padding:54px 0; }
.error p { color:var(--muted); margin:14px 0 24px; }
dialog { width:min(360px,calc(100% - 32px)); border:1px solid var(--line); border-radius:8px; padding:24px; background:var(--surface); color:var(--text); }
dialog::backdrop { background:#0009; }
.dialog-body > svg { color:var(--mint); width:30px; height:30px; margin-bottom:16px; }
.dialog-body p { color:var(--muted); font-size:15px; margin-bottom:24px; }
.dialog-body .button { min-height:50px; justify-content:center; }
:focus-visible { outline:2px solid var(--mint); outline-offset:4px; }
@media(max-width:360px) { .shell { padding-left:18px; padding-right:18px; } h1 { font-size:28px; } .split { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; scroll-behavior:auto!important; } }
