*{box-sizing:border-box}body{margin:0;min-height:100vh;background-color:#F4F7FC;background-image:radial-gradient(rgba(99,102,241,.14) 1px,transparent 1px);background-size:20px 20px;color:#0f172a;font:14px/1.55 "PingFang SC","Noto Sans SC",Inter,"Segoe UI",sans-serif}header{background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(16px,4vw,64px)}header div,.controls,nav{display:flex;gap:10px;align-items:center}header>div:first-child a{font-weight:700;color:#0f172a}a{color:#4f46e5;text-decoration:none}.pill{border:1px solid #c7d2fe;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:11px;font-weight:650;padding:2px 8px}main{width:min(730px,calc(100% - 32px));margin:38px auto}.card{border:1px solid rgba(226,232,240,.85);border-radius:20px;background:rgba(255,255,255,.86);backdrop-filter:blur(12px);box-shadow:0 4px 20px -2px rgba(15,23,42,.05),0 1px 3px rgba(15,23,42,.03);padding:clamp(20px,4vw,34px)}.narrow{max-width:410px;margin:10vh auto 0}h1{font-size:23px;font-weight:730;margin:0 0 4px}p{color:#64748b}nav{margin-bottom:14px}button,select,input,textarea{font:inherit}button{cursor:pointer;border-radius:9px;background:#fff;border:1px solid #e2e8f0;color:#475569;padding:6px 12px}button:hover,nav [aria-pressed=true]{color:#4338ca;background:#eef2ff;border-color:#c7d2fe}button:disabled{opacity:.55;cursor:default}.primary{color:white;background:linear-gradient(90deg,#4f46e5,#7c3aed);border:0;font-weight:650}.primary:hover{color:white;background:#4338ca}label{display:block;font-weight:600;margin:13px 0 5px;font-size:13px}input,textarea,select{display:block;width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:8px 10px;background:white;margin-top:5px;color:#0f172a;font-weight:400}input:focus,textarea:focus,select:focus{outline:2px solid #a5b4fc;outline-offset:1px}fieldset{margin:0;padding:0;border:0}.check{display:flex;align-items:center;gap:7px;color:#64748b;font-weight:400}.check input{width:auto;margin:0;accent-color:#4f46e5}.pair{display:grid;grid-template-columns:2fr 1fr;gap:12px}.controls,#login{margin-top:16px}output{display:block;white-space:pre-line;background:#eef2ff;color:#3730a3;padding:10px;border-radius:9px;margin-top:12px}#status{margin:12px auto;text-align:center;color:#4338ca}#status.error{color:#be123c}details{padding:12px 0;border-bottom:1px solid #e2e8f0}summary{cursor:pointer;font-weight:650}summary small{color:#64748b;font-weight:400;margin-left:9px}details p{font-size:12px}details button{margin-top:8px}[hidden]{display:none!important}@media(max-width:500px){main{margin:18px auto}.pair{grid-template-columns:1fr}header{font-size:12px}}
.history-toolbar{flex-wrap:wrap}
.history-toolbar .check{margin:0 auto 0 0}
.history-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;padding:13px 0;border-bottom:1px solid #e2e8f0}
.history-row input{width:auto;accent-color:#4f46e5}
.history-row strong{display:block}
.history-row small{color:#64748b;overflow-wrap:anywhere}
.history-row p{margin:4px 0;color:#334155;white-space:pre-wrap;overflow-wrap:anywhere}
.danger{color:#be123c}
.danger:hover{color:#9f1239;background:#fff1f2;border-color:#fecdd3}
