:root{--bg: #161117;--surface: #211a23;--surface-2: #2b222e;--line: #3b3040;--text: #f5ede8;--muted: #b4a6b1;--accent: #e8919b;--accent-ink: #2a1418;--talk: #b9a6d9;--danger: #f08a7e;--radius: 14px;color-scheme:dark}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:17px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}.wrap{max-width:520px;margin:0 auto;min-height:100dvh;padding:calc(20px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));display:flex;flex-direction:column}h1{font-size:30px;line-height:1.15;font-weight:680;letter-spacing:-.01em;margin:12px 0;text-wrap:balance}h2{font-size:19px;line-height:1.3;font-weight:650;margin:28px 0 10px}p{margin:0 0 14px}.muted{color:var(--muted)}.small{font-size:15px}.brand{display:flex;align-items:center;gap:10px;font-weight:650;font-size:16px;color:var(--muted);margin-bottom:8px}.brand img{width:28px;height:28px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin:14px 0}.card h2{margin-top:0}.card.notice{border-color:var(--talk)}ul.plain,ol.steps{margin:0;padding-left:22px}ul.plain li,ol.steps li{margin:6px 0}.stack{display:flex;flex-direction:column;gap:10px;margin-top:14px}.grow{flex:1}.btn{appearance:none;display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;padding:12px 18px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:inherit;font-weight:600;text-align:center;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:transform .12s ease,background-color .12s ease}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.45;cursor:default;transform:none}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.ghost{background:transparent}.btn.danger{background:transparent;border-color:color-mix(in srgb,var(--danger) 50%,var(--line));color:var(--danger)}.btn.danger.solid{background:var(--danger);border-color:var(--danger);color:#2a120f}.link{appearance:none;background:none;border:0;padding:10px 4px;color:var(--muted);font:inherit;font-size:15px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;touch-action:manipulation}.row{display:flex;gap:10px}.row>*{flex:1}label.field{display:block;margin:16px 0 6px;font-weight:600}input[type=text],input[type=password],input[inputmode=numeric]{width:100%;min-height:52px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:18px}input:focus-visible,.btn:focus-visible,.link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input+p,.stack+p{margin-top:8px}input.pin{letter-spacing:.5em;text-align:center;font-size:24px;max-width:200px}.check{display:flex;gap:12px;align-items:flex-start;margin:18px 0 4px;cursor:pointer}.check input{width:24px;height:24px;margin:2px 0 0;accent-color:var(--accent);flex:none}.error{color:var(--danger);margin:10px 0 0;min-height:1.5em}.linkbox{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;word-break:break-all;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:10px 0;color:var(--muted);user-select:all;-webkit-user-select:all}.quiz{display:flex;flex-direction:column;flex:1}.quiz-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14px;color:var(--muted)}.bar{height:6px;border-radius:3px;background:var(--line);overflow:hidden;margin:10px 0 4px}.bar>i{display:block;height:100%;width:0;background:var(--accent);border-radius:3px;transition:width .2s ease}.question{flex:1;display:flex;flex-direction:column;justify-content:center;padding:24px 0}.question h1{font-size:28px}.enter{animation:enter .18s ease-out}@keyframes enter{0%{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.enter{animation:none}.bar>i,.btn{transition:none}}.answers{display:flex;flex-direction:column;gap:10px}.answer{justify-content:flex-start;text-align:left;min-height:62px;flex-direction:column;align-items:flex-start;gap:1px}.answer small{font-weight:400;font-size:14px;color:var(--muted)}.answer.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.answer.selected small{color:color-mix(in srgb,var(--accent-ink) 75%,transparent)}.quiz-foot{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.sections{list-style:none;padding:0;margin:0}.sections li{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:6px 0}.sections li:last-child{border-bottom:0}.headline{font-size:34px}.matches{list-style:none;padding:0;margin:0}.matches li{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:8px 0}.matches .who{display:block;font-size:15px;color:var(--muted);margin-top:3px}.matches .tag{display:inline-block;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);margin-top:6px}.talk h2{color:var(--talk)}.talk .matches li{background:transparent;border-style:dashed;color:color-mix(in srgb,var(--text) 85%,transparent)}.center{text-align:center}.spinner{margin:30vh auto 0;width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:18px;padding:22px 20px 18px;width:min(92vw,420px)}dialog::backdrop{background:#0009}dialog h2{margin-top:0}.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%);background:var(--text);color:var(--bg);padding:10px 16px;border-radius:999px;font-size:15px;font-weight:600;pointer-events:none}@media print{:root{--bg: #fff;--surface: #fff;--line: #bbb;--text: #111;--muted: #444;--accent: #8a2b3a;--talk: #4b3a6b}body{font-size:12pt}.wrap{min-height:0;max-width:none;padding:0}.no-print,.btn,.link,.toast{display:none!important}.matches li{break-inside:avoid}}
