:root { --accent: #6154d9; --ink: #24233a; --muted: #69697c; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #f4f3f9; }
.shell { max-width: 500px; margin: 0 auto; padding: 28px 18px; }
header { display: flex; align-items: center; gap: 12px; font-weight: 650; margin-bottom: 24px; }
.brand-icon { color: var(--accent); font-size: 28px; }
.lab-notice { padding: 14px 18px; border: 1px solid #e4d7ae; background: #fff9e8; border-radius: 14px; font-size: 13px; margin-bottom: 18px; color: #6c5624; }
.card { background: white; border: 1px solid #e8e6ef; padding: 30px; border-radius: 22px; box-shadow: 0 12px 44px #322d6610; }
.eyebrow { display: block; font-size: 10px; font-weight: 750; letter-spacing: .15em; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 18px; }
p { color: var(--muted); margin: 14px 0; }
button, input, a { -webkit-tap-highlight-color: transparent; font: inherit; }
button, a.primary { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b7b0ff; outline-offset: 3px; }
.primary, .secondary, .demo { display: block; border: 0; width: 100%; padding: 15px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; margin-top: 18px; }
.primary { background: var(--accent); color: white; }
.secondary { background: #efedf9; color: #393066; }
.demo { border: 1px dashed #bb9f66; background: #fff9ed; color: #765922; font-size: 12px; }
.back, .text-button { background: none; border: 0; padding: 0; color: var(--accent); font-size: 13px; }
.back { margin-bottom: 22px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
input { width: 100%; border: 1px solid #d6d2e4; border-radius: 12px; padding: 14px; font-size: 18px; color: var(--ink); background: #fcfbfe; }
.hint, .small { font-size: 12px; line-height: 1.6; }
.number { font-size: 25px; font-weight: 650; color: var(--ink); user-select: all; overflow-wrap: anywhere; margin: 22px 0 6px; }
.timer { font-size: 13px; color: var(--accent); }
.message { font-size: 13px; color: #84552b; overflow-wrap: anywhere; margin-bottom: 0; }
.message:empty { display: none; }
.result-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; background: #e6f5ef; color: #298461; border-radius: 50%; font-size: 26px; margin-bottom: 20px; }
footer { text-align: center; font-size: 11px; color: #888596; padding: 24px 6px; }
[hidden] { display: none !important; }
@media (max-width: 360px) { .card { padding: 22px; } h1 { font-size: 26px; } }
