@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Baloo+2:wght@600;700&display=swap');
:root{--bg:#FFFDF7;--ink:#16181D;--muted:#5A5D66;--line:#EFE9DA;--blue:#2F45C5;--blue2:#1F2F8F;--soft:#EEF0FB;--orange:#FF8A3D;--green:#0F6E56;--gsoft:#E6F4EF;--red:#A12626;--rsoft:#FDE8E8;--osoft:#FFF1E6}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,sans-serif;font-size:15px;line-height:1.5}
a{color:var(--blue)}h1,h2,.brand{font-family:'Baloo 2',sans-serif;line-height:1.15}h1{font-size:30px;margin:0}h2{font-size:22px;margin:0}
.wrap{max-width:1100px;margin:auto;padding:0 20px}.narrow{max-width:460px;margin:auto;padding:16px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.row{display:flex;gap:10px;align-items:center}.col{display:flex;flex-direction:column;gap:10px}.grid{display:grid;gap:12px}.between{justify-content:space-between}.wrapf{flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:14px;border:none;background:var(--blue);color:#fff;font:600 15px Inter,sans-serif;cursor:pointer;text-decoration:none}
.btn.orange{background:var(--orange)}.btn.ghost{background:#fff;color:var(--ink);border:1px solid #D6D6D0}.btn.danger{background:var(--red)}.btn.small{min-height:34px;padding:0 12px;font-size:13px;border-radius:10px}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.block{width:100%}
input,select,textarea{width:100%;min-height:46px;padding:10px 12px;border:1px solid #D6D6D0;border-radius:12px;font:15px Inter,sans-serif;background:#fff}textarea{min-height:120px}
label.f{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:14px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px}.check input{width:20px;height:20px;min-height:0;flex:none;margin-top:2px}
.chip{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid #D6D6D0;background:#fff;font-size:13px;cursor:pointer}.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.tag{display:inline-block;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:700}.tag.g{background:var(--gsoft);color:var(--green)}.tag.o{background:var(--osoft);color:#9A4A12}.tag.r{background:var(--rsoft);color:var(--red)}.tag.b{background:var(--soft);color:var(--blue2)}
.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:11px}.center{text-align:center}.hide{display:none!important}
.note{padding:10px 12px;border-radius:12px;background:var(--soft);color:var(--blue2);font-size:13px}.note.warn{background:var(--osoft);color:#7A3A0E}.note.ok{background:var(--gsoft);color:var(--green)}.note.err{background:var(--rsoft);color:var(--red)}
.bubble{padding:10px 14px;border-radius:4px 14px 14px 14px;background:#fff;border:1px solid var(--line);max-width:85%}.bubble.me{align-self:flex-end;background:var(--blue);color:#fff;border:none;border-radius:14px 14px 4px 14px}
.bar{height:6px;border-radius:3px;background:#E4E4DF;overflow:hidden}.bar>i{display:block;height:100%;background:var(--blue)}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:8px 6px;border-bottom:1px solid #F1EEE4;vertical-align:top}th{color:var(--muted);font-weight:500}
.top{display:flex;justify-content:space-between;align-items:center;padding:14px 20px}.brand{font-size:22px;font-weight:700;color:var(--ink);text-decoration:none}
.robot{display:inline-block}.robot svg{display:block}.robot.speaking .mouth{animation:talk .35s infinite alternate}.robot.listening .ring{opacity:1;animation:pulse 1.2s infinite}.robot.thinking .dots{opacity:1}
@keyframes talk{from{transform:scaleY(.4)}to{transform:scaleY(1.2)}}@keyframes pulse{0%{r:44;opacity:.6}100%{r:54;opacity:0}}
.rec{width:72px;height:72px;border-radius:50%;background:var(--orange);border:none;color:#fff;font-size:26px;cursor:pointer}.rec.on{background:var(--red);animation:pr 1s infinite}@keyframes pr{50%{transform:scale(1.08)}}
.opt{display:block;width:100%;text-align:left;min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid #D6D6D0;background:#fff;font:15px Inter;cursor:pointer;margin-bottom:8px}.opt.right{background:var(--gsoft);border-color:var(--green)}.opt.wrong{background:var(--rsoft);border-color:var(--red)}
.steps{display:flex;gap:4px}.steps i{flex:1;height:5px;border-radius:3px;background:#E4E4DF}.steps i.on{background:var(--blue)}
#chatw{position:fixed;right:16px;bottom:16px;z-index:50}#chatw .panel{position:absolute;right:0;bottom:70px;width:340px;max-width:calc(100vw - 32px);height:480px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.12);display:flex;flex-direction:column}
#chatw .msgs{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px}#chatw .fab{width:60px;height:60px;border-radius:50%;background:var(--blue);border:none;cursor:pointer;box-shadow:0 6px 16px rgba(47,69,197,.35)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;z-index:99;font-size:14px}
@media(max-width:720px){h1{font-size:26px}.hide-m{display:none!important}}
