:root{font-family:'Segoe UI',Arial,sans-serif;color:#17212d;background:#f6f7f9;--blue:#2357eb;--muted:#66717f;--line:#e2e5ec}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #88a5ff;outline-offset:3px}header{height:96px;max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:28px;font-weight:800;letter-spacing:-1.5px;text-decoration:none;color:inherit}.brand b{display:grid;place-items:center;width:37px;height:37px;background:var(--blue);color:#fff;border-radius:10px;font-size:29px;letter-spacing:0}.brand>span{margin-left:-10px;color:var(--blue)}.quiet{border:0;background:none;padding:8px 0;color:var(--muted);font-size:13px;font-weight:500}.quiet:hover{color:var(--blue)}main{max-width:1100px;margin:auto;padding:48px 30px 0}.eyebrow{font-size:11px!important;font-weight:700;letter-spacing:2px;color:var(--blue)!important;margin:0 0 17px!important}.intro h1{font-size:clamp(38px,4.3vw,58px);line-height:1.08;letter-spacing:-2.5px;margin:0;font-weight:800}.intro h1 span{color:var(--blue)}.intro>p:last-child{color:var(--muted);font-size:15px;margin:21px 0 32px}.workspace{display:grid;grid-template-columns:360px 1fr;border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 10px 40px #22365706}.settings{padding:28px 30px;border-right:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.section-title h2,.history-heading h2{font-size:16px;margin:0;font-weight:600}.section-title>span{color:#8d97a6;font-size:12px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-size:12px;font-weight:500}input[type=number],input:not([type]){display:block;width:100%;border:1px solid var(--line);background:#fafbfc;border-radius:9px;padding:12px 14px;margin-top:9px;color:#17212d;font-size:15px;min-width:0}input::placeholder{color:#788391;font-size:12px}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;margin:0}.quantity-label{margin-top:20px}.stepper{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:9px;margin-top:9px;height:44px;background:#fafbfc}.stepper button{border:0;background:transparent;width:48px;height:42px;font-size:20px;color:var(--muted)}.stepper input{border:0;margin:0;text-align:center;padding:8px;width:100px;background:transparent}.toggles{margin:18px 0;border-bottom:1px solid var(--line);padding-bottom:13px}.toggle-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:37px;font-size:13px;cursor:pointer}.toggle-row input{position:absolute;right:0;opacity:0;width:36px;height:24px}.toggle-row i{width:33px;height:20px;flex:none;border-radius:20px;background:#d3d8e2;position:relative;pointer-events:none}.toggle-row i:after{content:'';position:absolute;width:14px;height:14px;border-radius:50%;background:white;top:3px;left:3px;transition:transform .15s}.toggle-row input:checked+i{background:var(--blue)}.toggle-row input:checked+i:after{transform:translateX(13px)}.toggle-row input:focus-visible+i{outline:3px solid #88a5ff;outline-offset:3px}.optional{float:right;color:#66717f;font-size:10px}.hint{color:var(--muted);font-size:11px;line-height:1.6;margin:8px 0 0}.primary{width:100%;border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:600;font-size:14px;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;margin-top:20px}.primary:hover{background:#1744c9}.primary span{font-size:19px;line-height:16px}.keyboard{text-align:center;color:#66717f;font-size:10px;margin:12px 0 0}kbd{font-family:inherit;border:1px solid var(--line);border-radius:3px;padding:2px 5px;margin-left:3px}.error{color:#b42335;font-size:12px;line-height:1.5;margin:10px 0 0}.error:empty{display:none}.result-panel{display:flex;flex-direction:column;background:radial-gradient(ellipse at center,#edf2ff 0,#f9fbff 70%);padding:24px 30px;min-width:0}.result-top,.result-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.mode{border:1px solid #dbe3f3;background:#ffffff88;border-radius:6px;padding:7px 10px;font-size:10px;color:#45618d}.result-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 0}.result-center>p:first-child{font-size:13px;color:var(--muted);margin:0}.result{font-size:clamp(64px,10vw,140px);font-weight:800;letter-spacing:-6px;color:var(--blue);line-height:1.3;overflow-wrap:anywhere;max-width:100%;font-variant-numeric:tabular-nums}.result.multiple{font-size:42px;letter-spacing:-1px;line-height:1.5;padding:20px 0}.result-center>p:last-child{color:var(--muted);font-size:11px;margin:5px 0}.result-bottom{border-top:1px solid #e3e9f5;padding-top:16px}.demo-banner{background:#fff1ce;color:#775111;padding:10px 12px;font-size:12px;border-radius:6px;margin-top:15px}.history-section{margin-top:30px}.history-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.history-heading h2 span{font-size:11px;color:var(--muted);background:#e9ecf1;border-radius:5px;padding:3px 6px;margin-left:7px}.empty{border:1px dashed #d8dde6;border-radius:10px;text-align:center;color:#66717f;padding:24px;font-size:12px}.history-row{display:grid;grid-template-columns:90px 1fr auto;gap:15px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);font-size:12px}.history-row strong{font-size:17px;overflow-wrap:anywhere;color:#273d67}.history-meta{font-size:11px;color:var(--muted)}.demo-tag{color:#926412}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;margin-top:35px;padding:23px 0 28px;font-size:10px;color:var(--muted)}footer>span:first-child{color:#17212d;font-weight:700}footer>span:first-child>span{font-weight:400;color:var(--muted);margin-left:10px}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;width:440px;max-width:calc(100% - 28px);box-shadow:0 20px 80px #17212d30}dialog::backdrop{background:#18274466;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:19px;margin:0}.dialog-description{color:var(--muted);font-size:13px;line-height:1.6}.forced-label{margin-top:18px}#admin .hint+.toggle-row{margin-top:15px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 22px;background:#17212d;color:white;font-size:13px;border-radius:10px;z-index:10}.result-panel:fullscreen{padding:40px;min-height:100dvh}.result-panel:fullscreen .result{font-size:clamp(80px,20vw,250px)}.result-panel:fullscreen .multiple{font-size:60px}@media(max-width:740px){header{height:77px;padding:0 20px}.brand{font-size:24px}header .quiet{font-size:11px}main{padding:35px 18px 0}.intro h1{letter-spacing:-1.8px}.intro>p:last-child{font-size:13px}.workspace{grid-template-columns:1fr}.settings{border-right:0;border-bottom:1px solid var(--line);padding:24px}.result-panel{min-height:330px;padding:22px 24px;grid-row:1}.result{font-size:90px;letter-spacing:-4px}.result-center{padding:25px 0}.keyboard{display:none}footer{flex-direction:column;gap:10px}.history-row{grid-template-columns:65px 1fr}.history-meta{grid-column:2}footer>span:first-child>span{display:block;margin:6px 0 0}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Dark palette */
:root{color-scheme:dark;color:#e9edf7;background:#0c1017;--blue:#80a5ff;--muted:#a1adbf;--line:#29313f;--ease-out:cubic-bezier(0.23,1,0.32,1)}
.brand{font-size:25px;letter-spacing:-1px}.brand b{background:#3d70ee;color:#fff}.workspace{background:#141b26;box-shadow:0 18px 60px #00000020}.settings{background:#141b26}.result-panel{background:radial-gradient(ellipse at center,#1c2d4d 0,#111a29 72%)}
input[type=number],input:not([type]),.stepper{background:#0e1520;color:#edf2ff;border-color:#303c4e}.stepper input{background:transparent}.stepper button{color:#bac6d8}.toggle-row i{background:#475367}.toggle-row input:checked+i{background:#4277f4}.toggle-row i:after{background:#fff}.section-title>span{color:#9cacc2}.primary{background:#3f72ef;color:#fff}.primary:hover{background:#4e80fc}.primary:disabled{opacity:.7}.mode{background:#1c293f;border-color:#34445f;color:#b3cbff}.result-bottom{border-color:#2d3c55}.result{min-height:1.3em}.result.multiple{min-height:1.5em}.result.spinning{opacity:.74}.result-panel[aria-busy=true] .result-center>p:last-child{color:#bacdff}.history-heading h2 span{background:#263043;color:#c1cede}.empty{border-color:#344054;color:#a1adbf}.history-row strong{color:#b9ceff}.demo-banner{background:#3a3018;color:#f1ce7d}.demo-tag{color:#e8c478}footer>span:first-child{color:#e9edf7}dialog{background:#141b26;color:#e9edf7}dialog::backdrop{background:#03070dbb}.toast{background:#dce7ff;color:#142541}.brand,.quiet,.primary{transition:color 150ms ease,background-color 150ms ease}.primary:active{transform:translateY(1px)}
@media(max-width:740px){.brand{font-size:19px}.brand b{width:31px;height:31px;font-size:24px}header .quiet{font-size:10px}}
@media(prefers-reduced-motion:reduce){.primary:active{transform:none}}
.intro .tagline{font-size:22px;color:var(--blue);margin:16px 0 32px;letter-spacing:-.4px}.admin-page{max-width:650px;padding-top:35px}.back-link{display:inline-block;text-decoration:none;margin-bottom:24px}.admin-page h1{font-size:40px;letter-spacing:-1.5px}.admin-card{background:#141b26;border:1px solid var(--line);border-radius:18px;padding:28px}.admin-card .once-row{margin-top:20px}.admin-card .open-generator{display:inline-block;color:var(--blue);margin-top:22px;font-size:13px;text-decoration:none}#admin-status{font-size:13px;line-height:1.5;color:#a8c6ff}#admin-status.error{color:#ff9fae}@media(max-width:740px){.intro .tagline{font-size:19px}.admin-card{padding:22px}.intro h1{font-size:clamp(34px,7vw,58px)}}
.generator-link-box{margin-top:18px;border:1px solid #34445f;background:#17233a;border-radius:10px;padding:16px}.generator-link-box p{font-size:13px;line-height:1.6;color:#c0cce0;margin:0}.generator-link-box .open-generator{margin-top:12px;font-weight:600}.admin-card #random-mode{display:block;margin-top:12px}
