:root{--bg: #0A1220;--surface: #111C2E;--surface2: #16233A;--border: #24344F;--border2: #34486A;--text: #E8EDF5;--muted: #9FB0C8;--soft: #C5D1E2;--steel: #C9D6E8;--on-steel: #0A1220;--ice: #7FB2FF;--ice-bg: #12233F;--ice-bd: #2F5A92;--warn: #E9B65A;--warn-bg: #221B10;--warn-bd: #6B4A16;--err: #FF9B8A;--err-bg: #24161A;--err-bd: #5A2A2A;--ok: #5FD4A8;--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;--sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--mono: ui-monospace, "SF Mono", Consolas, monospace;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);-webkit-text-size-adjust:100%}body{min-height:100dvh}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}:focus-visible{outline:2px solid var(--ice);outline-offset:2px}h1,h2,p{margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.screen{max-width:460px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;gap:22px;padding:max(24px,env(safe-area-inset-top)) 20px max(28px,env(safe-area-inset-bottom))}.screen.panel{gap:18px;padding-left:16px;padding-right:16px}.grow{flex-grow:1}.stack{display:flex;flex-direction:column;gap:8px}.stack-lg{display:flex;flex-direction:column;gap:20px}.center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;flex-grow:1}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:10px}.brand img{width:36px;height:36px;display:block}.brand-name{font-family:var(--serif);font-size:18px;font-weight:700;letter-spacing:.12em}.hero-logo{width:220px;height:220px;display:block}.title{font-size:26px;line-height:1.2;font-weight:700}.title-md{font-size:22px;line-height:1.25;font-weight:700}.lead{font-size:15px;line-height:1.5;color:var(--muted)}.small{font-size:12px;line-height:1.5;color:var(--muted)}.small.c{text-align:center}.narrow{max-width:310px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label{font-size:13px;font-weight:600}.input{height:48px;padding:0 14px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:16px;min-width:0;width:100%}.input.dark{background:var(--bg)}.input.digits{letter-spacing:.15em}.input[aria-invalid=true]{border-color:var(--err)}.field-error{font-size:12px;color:var(--err)}.steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}.steps li{display:flex;gap:12px;align-items:center;font-size:15px}.step-n{width:26px;height:26px;border-radius:13px;background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:var(--steel);flex-shrink:0}.card{display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px}.card.hl{background:var(--ice-bg);border-color:var(--ice-bd);gap:12px}.card.tight{padding:12px 14px;border-radius:12px}.card.flat{flex-direction:row;align-items:center;justify-content:space-between}.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.seg.two{grid-template-columns:repeat(2,minmax(0,1fr));background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:4px}.seg button,.seg a{height:44px;border-radius:9px;font-size:14px;font-weight:600;background:transparent;color:var(--muted);border:1px solid transparent;display:flex;align-items:center;justify-content:center;text-decoration:none}.seg.two button,.seg.two a{height:40px}.seg [aria-pressed=true],.seg [aria-current=page]{background:var(--border);color:var(--text);border-color:var(--border2)}.device-text{font-size:14px;line-height:1.5;color:var(--soft)}.btn{height:54px;border-radius:12px;border:none;font-size:17px;font-weight:700;width:100%;display:flex;align-items:center;justify-content:center;gap:10px}.btn-primary{background:var(--steel);color:var(--on-steel)}.btn-secondary{height:50px;background:var(--surface);color:var(--text);border:1px solid var(--border);font-size:16px;font-weight:600}.btn-sm{height:44px;border-radius:10px;font-size:15px}.btn-ghost{height:44px;padding:0 20px;border-radius:10px;border:1px solid var(--border);background:transparent;color:var(--text);font-size:15px;width:auto;font-weight:500}.btn-text{height:44px;padding:0 12px;border:none;background:transparent;color:var(--muted);font-size:14px}.btn-danger{background:transparent;color:var(--err);border:1px solid var(--border);font-weight:600}.btn-mini{height:36px;padding:0 12px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text);font-size:13px}.two-btn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.alert{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:12px;border:1px solid}.alert svg{flex-shrink:0;margin-top:1px}.alert .a-title{font-size:14px;font-weight:600;line-height:1.4}.alert .a-body{font-size:13px;line-height:1.45;color:var(--soft)}.alert.info{background:var(--ice-bg);border-color:var(--ice-bd);color:var(--ice)}.alert.warn{background:var(--warn-bg);border-color:var(--warn-bd);color:var(--warn)}.alert.err{background:var(--err-bg);border-color:var(--err-bd);color:var(--err)}.alert.info .a-title,.alert.warn .a-title,.alert.err .a-title{color:var(--text)}.safety p{font-size:13px;line-height:1.5;color:var(--soft)}.spinner{width:64px;height:64px;border-radius:32px;border:4px solid var(--border);border-top-color:var(--steel);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.round-icon{width:64px;height:64px;border-radius:32px;background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center}.round-icon.lg{width:72px;height:72px;border-radius:36px}.pill{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:13px;color:var(--soft)}.dot{width:8px;height:8px;border-radius:4px;background:var(--ice);flex-shrink:0}.dot.live{background:var(--ok);animation:pulse 2s ease-in-out infinite}.dot.off{background:var(--muted)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.spinner,.dot.live{animation:none}}.badge{font-size:12px;font-weight:600;color:var(--on-steel);background:var(--steel);padding:4px 10px;border-radius:999px}.badge.xs{font-size:11px;font-weight:700;padding:2px 7px}.sec-title{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.sec-title.hl{color:var(--steel)}.m-name{font-size:17px;font-weight:700;overflow-wrap:anywhere}.m-name.n{font-size:16px;font-weight:600}.m-meta{font-size:13px;color:var(--soft);overflow-wrap:anywhere}.m-meta.s{font-size:12px;color:var(--muted)}.col{display:flex;flex-direction:column;gap:4px;min-width:0}.st-open{font-size:12px;font-weight:600;color:var(--ok)}.st-used{font-size:12px;font-weight:600;color:var(--muted)}.st-expired{font-size:12px;font-weight:600;color:var(--err)}.codebox{padding:10px 12px;border-radius:10px;background:var(--bg);border:1px solid var(--border);font-size:13px;line-height:1.5;overflow-wrap:anywhere;user-select:all;-webkit-user-select:all}.codebox.mono{font-family:var(--mono);font-size:12px}.only-now{font-size:12px;line-height:1.5;color:var(--warn)}.label-grid{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px}.link{color:var(--steel)}dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:14px;padding:18px;max-width:340px;width:calc(100% - 40px)}dialog::backdrop{background:#040810b3}.ac{align-items:center}.title-sm{font-size:16px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}.row.start{justify-content:flex-start;gap:8px}
