:root{--bg: #f3f1fa;--surface: #ffffff;--ink: #1f1b4d;--muted: #66648a;--primary: #2d2a6e;--primary-hover: #232058;--primary-disabled: #a9a7c9;--border: #c9c6e0;--focus: #6c63d9;--error: #b42318;--error-bg: #fdeceb;--success: #1f7a4d;--success-bg: #e7f6ee;--notice-bg: #fff6e0;--notice-ink: #6b4a00;--radius: 12px;font-family:DM Sans,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg);min-height:100vh}button,input,select{font:inherit;color:inherit}.page{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:24px 16px 48px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;margin:8px 0 24px}.brand-mark{width:36px;height:36px;border-radius:10px;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:700}.card{width:100%;max-width:440px}.card.center{text-align:center;padding-top:12vh}h1{font-size:26px;line-height:1.2;margin:0 0 8px}.lead{color:var(--muted);margin:0 0 24px;line-height:1.5}.back{background:none;border:0;padding:8px 8px 8px 0;cursor:pointer;font-size:22px;line-height:1}.field{margin-bottom:16px}.field label,.field .label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}.input-wrap{position:relative}.input,select.input{width:100%;height:48px;padding:0 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.input:focus-visible,.btn:focus-visible,.seg button:focus-visible,.link:focus-visible,.back:focus-visible,input[type=checkbox]:focus-visible,input[type=range]:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.input[aria-invalid=true]{border-color:var(--error)}.input-action{position:absolute;right:6px;top:6px;height:36px;padding:0 10px;border:0;background:none;color:var(--primary);font-weight:600;font-size:13px;cursor:pointer;border-radius:8px}.field-error{color:var(--error);font-size:13px;margin-top:6px}.hint{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;margin:-8px 0 16px}.hint.met{color:var(--success)}.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;margin-bottom:16px;line-height:1.4}.check input{width:18px;height:18px;margin-top:1px;accent-color:var(--primary);flex:none}.btn{width:100%;height:50px;border:0;border-radius:var(--radius);background:var(--primary);color:#fff;font-weight:600;cursor:pointer}.btn:hover{background:var(--primary-hover)}.btn:disabled{background:var(--primary-disabled);cursor:not-allowed}.btn.secondary{background:var(--surface);color:var(--primary);border:1px solid var(--border)}.link{background:none;border:0;padding:0;color:var(--primary);font-weight:600;text-decoration:underline;cursor:pointer}.below{text-align:center;color:var(--muted);font-size:14px;margin-top:16px}.banner{border-radius:var(--radius);padding:12px 14px;font-size:14px;line-height:1.45;margin-bottom:16px}.banner.error{background:var(--error-bg);color:var(--error)}.banner.success{background:var(--success-bg);color:var(--success)}.banner.notice{background:var(--notice-bg);color:var(--notice-ink)}.dev-box{border:1px dashed var(--border);border-radius:var(--radius);padding:10px 12px;font-size:13px;color:var(--muted);margin-top:20px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;margin-bottom:16px}.panel h2{font-size:15px;margin:0 0 12px}.code-input{letter-spacing:.6em;text-align:center;font-size:24px;font-weight:600;height:56px}.progress{display:flex;align-items:center;gap:12px;margin-bottom:20px}.progress-track{flex:1;height:6px;background:#dedbf0;border-radius:3px;overflow:hidden}.progress-fill{height:100%;background:var(--primary);border-radius:3px}.progress-count{font-size:13px;color:var(--muted);white-space:nowrap}.measure{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:20px;text-align:center;margin-bottom:20px}.measure .label{font-size:13px;color:var(--muted);margin-bottom:12px}.seg{display:inline-flex;background:var(--bg);border-radius:999px;padding:4px;margin-bottom:16px}.seg button{border:0;background:none;padding:6px 18px;border-radius:999px;cursor:pointer;font-weight:600;color:var(--muted)}.seg button[aria-pressed=true]{background:var(--primary);color:#fff}.big-value{display:flex;justify-content:center;align-items:baseline;gap:8px;margin-bottom:12px}.big-value input{width:150px;border:0;border-bottom:2px solid var(--border);background:none;text-align:center;font-size:44px;font-weight:700;padding:0}.big-value select{font-size:32px;font-weight:700;border:0;border-bottom:2px solid var(--border);background:none;padding:0 4px}.big-value .unit{color:var(--muted);font-weight:600}input[type=range]{width:100%;accent-color:var(--primary)}.summary dl{display:grid;grid-template-columns:1fr auto;gap:10px 16px;margin:0}.summary dt{color:var(--muted)}.summary dd{margin:0;font-weight:600;text-align:right}.tag{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--notice-bg);color:var(--notice-ink);margin-left:6px;vertical-align:middle}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(prefers-reduced-motion:no-preference){.btn,.seg button{transition:background-color .12s ease}}
