:root { --bg:#0b1020; --card:#151c2f; --line:#26304a; --text:#f3f4f6; --muted:#9aa4b8;
  --accent:#22c55e; --accent2:#16a34a; --warn:#f59e0b; --bad:#ef4444; --blue:#3b82f6; }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--text);
  font:17px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; -webkit-text-size-adjust:100%; }
.top { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between;
  gap:8px; padding:12px 14px; padding-top:max(12px, env(safe-area-inset-top)); background:#111827; border-bottom:1px solid var(--line); }
h1 { font-size:21px; margin:0; }
h2 { font-size:18px; margin:0 0 8px; }
main { padding:12px; max-width:560px; margin:0 auto; }
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:14px; margin-bottom:12px; }
.lbl { display:block; font-weight:600; color:var(--muted); font-size:14px; margin:12px 0 6px; text-transform:uppercase; letter-spacing:.04em; }
.card > .lbl:first-child { margin-top:0; }
.big { width:100%; min-height:52px; font-size:18px; padding:10px 12px; border-radius:12px; border:1px solid var(--line);
  background:#0f1528; color:var(--text); }
select.big { appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size:6px 6px; background-repeat:no-repeat; padding-right:36px; }
input[type=date].big { color-scheme:dark; }
.seg { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
.seg button { min-height:52px; border-radius:12px; border:1px solid var(--line); background:#0f1528; color:var(--text);
  font-size:15px; font-weight:600; padding:0 2px; }
.seg button.on { background:var(--blue); border-color:var(--blue); }
.muted { color:var(--muted); font-size:15px; margin-top:6px; }
.last { margin-top:8px; padding:10px 12px; border-radius:12px; background:#0f1a33; border:1px dashed #2d3b63; font-size:15px; }
.last b { color:#c7d2fe; }
.last:empty { display:none; }
.setrow { display:grid; grid-template-columns:54px 1fr 1fr 48px; gap:8px; align-items:center; margin-bottom:8px; }
.setrow .n { font-weight:700; color:var(--muted); font-size:15px; }
.setrow label { position:relative; display:block; }
.setrow input { width:100%; min-height:52px; font-size:20px; text-align:center; border-radius:12px; border:1px solid var(--line);
  background:#0f1528; color:var(--text); padding:14px 4px 2px; }
.setrow label span { position:absolute; top:3px; left:0; right:0; text-align:center; font-size:11px; color:var(--muted); pointer-events:none; }
.x { min-height:48px; border-radius:12px; border:1px solid var(--line); background:transparent; color:var(--muted); font-size:20px; }
.btn { display:block; width:100%; min-height:54px; border-radius:14px; font-size:18px; font-weight:700; border:0; margin-top:10px; }
.btn.primary { background:var(--accent); color:#06210f; }
.btn.primary:active { background:var(--accent2); }
.btn.ghost { background:transparent; color:var(--text); border:1px dashed var(--line); }
.saved { min-height:22px; margin-top:8px; text-align:center; color:var(--accent); font-weight:600; }
.saved.err { color:var(--bad); }
.pill { border:0; border-radius:999px; padding:8px 12px; font-size:14px; font-weight:700; background:#334155; color:#fff; min-height:36px; }
.pill.ok { background:#14532d; color:#bbf7d0; }
.pill.wait { background:#78350f; color:#fde68a; }
.pill.bad { background:#7f1d1d; color:#fecaca; }
.banner { margin:12px 12px 0; padding:12px; border-radius:12px; background:#3b2a07; color:#fde68a; font-size:15px; }
.ex { border-top:1px solid var(--line); padding:10px 0; }
.ex:first-child { border-top:0; }
.ex h3 { margin:0 0 6px; font-size:16px; }
.lset { display:flex; align-items:center; gap:8px; min-height:48px; }
.lset .what { flex:1; font-size:17px; }
.lset .what small { color:var(--muted); display:block; font-size:13px; }
.lset button { min-height:44px; min-width:64px; border-radius:10px; border:1px solid var(--line); background:#0f1528; color:var(--text); font-size:15px; }
.lset button.del { color:#fca5a5; }
.lset .q { color:var(--warn); font-size:12px; }
.edit { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:6px 0 10px; }
.edit input { min-height:48px; font-size:18px; border-radius:10px; border:1px solid var(--line); background:#0f1528; color:var(--text); padding:6px 10px; width:100%; }
.edit .wide { grid-column:1 / -1; }
.edit button { min-height:48px; border-radius:10px; border:0; font-weight:700; font-size:16px; }
.edit .ok { background:var(--accent); color:#06210f; } .edit .cancel { background:#334155; color:#fff; }
.empty { color:var(--muted); font-size:15px; }
.foot { text-align:center; color:var(--muted); font-size:13px; padding:8px 12px 28px; }
