  :root{
    --bg:#f6f7f9; --surface:#ffffff; --surface-2:#fbfbfd;
    --line:#e6e8ec; --line-strong:#d6d9df;
    --ink:#0e1116; --ink-soft:#5b626e; --ink-muted:#9aa1ad;
    --brand:#4f46e5; --brand-2:#6366f1; --brand-soft:#eef0ff;
    --ok:#0f9d58; --ok-soft:#e7f6ee; --err:#d92d20; --err-soft:#fdecea;
    --warn:#c2710c; --warn-soft:#fbf0e0;
    --shadow-md:0 4px 12px rgba(16,17,22,.06), 0 12px 28px rgba(16,17,22,.07);
    --font:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    --mono:ui-monospace,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace;
  }
  html[data-theme="dark"]{
    --bg:#0b0d10; --surface:#13161b; --surface-2:#0f1216;
    --line:#262b33; --line-strong:#333a45;
    --ink:#eef1f5; --ink-soft:#a4adba; --ink-muted:#6c7480;
    --brand:#7c83ff; --brand-2:#8b91ff; --brand-soft:#1b1f3a;
    --ok:#41c98a; --ok-soft:#10271d; --err:#ff6b5e; --err-soft:#2a1614;
    --warn:#e2a44a; --warn-soft:#2a2113;
    --shadow-md:0 8px 30px rgba(0,0,0,.5);
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html,body{height:100%}
  body{font-family:var(--font);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;line-height:1.5;letter-spacing:-.01em;min-height:100vh;display:grid;place-items:center;padding:28px}
  .shell{width:min(960px,100%);background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-md);display:grid;grid-template-columns:1.05fr 1fr;overflow:hidden;min-height:560px}
  .aside{position:relative;padding:38px 36px;color:#fff;display:flex;flex-direction:column;
    background:radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,.18), transparent 45%),radial-gradient(130% 130% at 100% 100%, rgba(34,211,238,.35), transparent 50%),linear-gradient(150deg,var(--brand-2),var(--brand) 60%,#3b35b8);overflow:hidden}
  .aside::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.10) 1px,transparent 1px);background-size:18px 18px;opacity:.5;pointer-events:none}
  .aside-brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:15px;position:relative;z-index:1}
  .aside-home{display:inline-flex;align-items:center;gap:11px;color:inherit;text-decoration:none;border-radius:9px;transition:opacity .15s}
  .aside-home:hover{opacity:.85}
  .aside-logo{width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,.18);display:grid;place-items:center;color:#fff;border:1px solid rgba(255,255,255,.25)}
  .aside-logo svg{width:18px;height:18px}
  .aside-pill{font-size:11px;font-weight:600;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);padding:3px 9px;border-radius:999px;margin-left:2px}
  .aside-hero{margin-top:auto;position:relative;z-index:1}
  .aside-hero h1{font-size:27px;line-height:1.2;font-weight:750;letter-spacing:-.02em}
  .aside-hero p{margin-top:12px;font-size:14px;color:rgba(255,255,255,.85);max-width:34ch}
  .feats{margin-top:26px;display:flex;flex-direction:column;gap:13px;position:relative;z-index:1}
  .feat{display:flex;align-items:center;gap:11px;font-size:13.5px;color:rgba(255,255,255,.95)}
  .feat .fic{width:26px;height:26px;border-radius:8px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;flex:none}
  .feat .fic svg{width:15px;height:15px}
  .main{padding:38px 40px;display:flex;flex-direction:column}
  .main-top{display:flex;align-items:center;gap:8px;margin-bottom:30px}
  .main-top .spacer{flex:1}
  .icon-btn{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);display:grid;place-items:center;cursor:pointer;transition:.15s}
  .icon-btn:hover{border-color:var(--line-strong);color:var(--ink)}
  .icon-btn svg{width:16px;height:16px}
  .flag-btn{width:34px;height:34px;padding:0;border-radius:9px;border:1px solid var(--line);background:var(--surface);cursor:pointer;display:grid;place-items:center;transition:.15s;overflow:hidden}
  .flag-btn:hover{border-color:var(--line-strong)}
  .flag-btn[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
  .flag-btn svg{width:20px;height:14px;border-radius:2px;display:block}
  .head h2{font-size:22px;font-weight:730;letter-spacing:-.02em;display:flex;align-items:center;gap:9px}
  .head p{margin-top:6px;font-size:13.5px;color:var(--ink-soft)}
  .beta-tag{font-size:10.5px;font-weight:700;letter-spacing:.04em;color:#1d4ed8;background:#e7effe;border:1px solid #bcd3fb;padding:2px 7px;border-radius:999px;transform:translateY(1px)}
  html[data-theme="dark"] .beta-tag{color:#93b4ff;background:#16233f;border-color:#274777}
  form{margin-top:24px;display:flex;flex-direction:column;gap:15px}
  .field label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-soft);margin-bottom:6px}
  .input{position:relative;display:flex;align-items:center}
  .input svg.lead{position:absolute;left:12px;width:16px;height:16px;color:var(--ink-muted);pointer-events:none}
  .input input{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--ink);padding:0 12px 0 38px;font-size:14px;font-family:var(--font)}
  .input input::placeholder{color:var(--ink-muted)}
  .input input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft);background:var(--surface)}
  .input .eye{position:absolute;right:8px;width:30px;height:30px;border:none;background:transparent;color:var(--ink-muted);display:grid;place-items:center;cursor:pointer;border-radius:7px}
  .input .eye:hover{color:var(--ink)}
  .input .eye svg{width:17px;height:17px}
  .row{display:flex;align-items:center;justify-content:space-between;margin-top:-3px}
  .check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-soft);cursor:pointer;user-select:none}
  .check .box{width:18px;height:18px;border-radius:6px;border:1.5px solid var(--line-strong);background:var(--surface-2);display:grid;place-items:center;color:#fff}
  .check input{display:none}
  .check input:checked + .box{background:var(--brand);border-color:var(--brand)}
  .check input:checked + .box svg{opacity:1}
  .check .box svg{width:12px;height:12px;opacity:0}
  .link{font-size:13px;color:var(--brand);font-weight:600;text-decoration:none}
  .link:hover{text-decoration:underline}
  .btn-primary{height:46px;border:none;border-radius:11px;background:linear-gradient(180deg,var(--brand-2),var(--brand));color:#fff;font-weight:700;font-size:14.5px;font-family:var(--font);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 1px 2px rgba(79,70,229,.4),inset 0 1px 0 rgba(255,255,255,.18);transition:.15s;margin-top:4px;text-decoration:none}
  .btn-primary:hover{filter:brightness(1.06)}
  .btn-primary svg{width:17px;height:17px}
  .beta-note{display:flex;align-items:flex-start;gap:9px;margin-top:8px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);font-size:12.5px;line-height:1.45;color:var(--ink-soft)}
  .beta-note svg{width:16px;height:16px;flex:none;color:var(--brand);margin-top:1px}
  .alert{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border-radius:11px;font-size:13px;line-height:1.45}
  .alert.err{background:var(--err-soft);color:var(--err);border:1px solid color-mix(in srgb,var(--err) 30%,transparent)}
  .alert.ok{background:var(--ok-soft);color:var(--ok);border:1px solid color-mix(in srgb,var(--ok) 30%,transparent)}
  .codebox{font-family:var(--mono);font-size:12.5px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:9px 11px;color:var(--ink);word-break:break-all;margin-top:8px}
  .foot{margin-top:22px;text-align:center;font-size:13px;color:var(--ink-soft)}
  .foot a{color:var(--brand);font-weight:600;text-decoration:none}
  .foot a:hover{text-decoration:underline}
  @media(max-width:760px){.shell{grid-template-columns:1fr}.aside{display:none}}
