:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f7f9;--panel:#fff;--panel-strong:#f0f4f1;--text:#17211c;--muted:#66756f;--border:#d9e1dd;--accent:#0f7a5a;--accent-strong:#0a5d45;--blue:#315f9b;--amber:#a36a00;--danger:#aa3b3b;--shadow:0 12px 30px #17211c14}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);letter-spacing:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.62}.app-shell{min-height:100vh;padding:22px}.topbar{justify-content:space-between;align-items:center;gap:16px;max-width:1440px;margin:0 auto 16px;display:flex}.eyebrow{color:var(--accent);margin:0 0 4px;font-size:13px;font-weight:700}h1,h2,h3,p{margin:0}h1{font-size:clamp(24px,3vw,34px);line-height:1.15}h2{font-size:16px;line-height:1.3}h3{font-size:18px;line-height:1.35}.user-box{background:var(--panel);border:1px solid var(--border);min-height:42px;box-shadow:var(--shadow);border-radius:8px;align-items:center;gap:10px;padding:6px 8px 6px 14px;display:flex}.notice{color:#664700;background:#fff8e8;border:1px solid #ebd299;border-radius:8px;max-width:1440px;margin:0 auto 16px;padding:10px 12px}.loading-screen{background:var(--bg);place-items:center;min-height:100vh;display:grid}.auth-layout{grid-template-columns:minmax(320px,440px) 1fr;place-items:center stretch;gap:18px;max-width:980px;min-height:calc(100vh - 150px);margin:0 auto;display:grid}.auth-panel,.auth-aside,.panel{background:var(--panel);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:8px}.auth-panel{width:100%;padding:18px}.auth-tabs{background:var(--panel-strong);border-radius:8px;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:16px;padding:4px;display:grid}.auth-tabs button{color:var(--muted);background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;gap:7px;min-height:38px;display:flex}.auth-tabs button.active{background:var(--panel);color:var(--text);font-weight:700}.auth-aside{flex-direction:column;justify-content:center;align-self:stretch;gap:12px;padding:28px;display:flex}.auth-aside svg{color:var(--accent)}.auth-aside p{color:var(--muted);max-width:430px;line-height:1.75}.workspace-grid{grid-template-columns:minmax(280px,340px) minmax(420px,1fr) minmax(300px,360px);gap:14px;max-width:1440px;margin:0 auto;display:grid}.panel{min-width:0;padding:14px}.panel-heading{align-items:center;gap:8px;min-height:34px;display:flex}.panel-heading svg{color:var(--accent);flex:none}.panel-heading .ghost{margin-left:auto}.topic-list,.history-list,.side-stack,.form-stack,.generate-form{flex-direction:column;display:flex}.topic-list{gap:8px;max-height:calc(100vh - 160px);margin-top:14px;overflow:auto}.topic-row{border:1px solid var(--border);color:var(--text);text-align:left;background:#fbfcfd;border-radius:8px;flex-direction:column;gap:6px;width:100%;min-height:72px;padding:10px;display:flex}.topic-row.active{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}.topic-row span{font-weight:700;line-height:1.35}.topic-row small,.history-row small,.config-state small{color:var(--muted)}.generator-panel{flex-direction:column;gap:14px;display:flex}.topic-detail{border:1px solid var(--border);background:#f7fafb;border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.topic-detail p{color:var(--muted);line-height:1.7}.chips{flex-wrap:wrap;gap:8px;display:flex}.chips span{color:var(--accent-strong);background:#edf5f2;border:1px solid #c7ddd4;border-radius:999px;padding:5px 9px;font-size:12px}.generate-form,.form-stack{gap:12px}.form-stack.compact{gap:10px;margin-top:12px}.form-row{grid-template-columns:1fr 1fr 100px;gap:10px;display:grid}label{color:var(--muted);flex-direction:column;gap:6px;font-size:13px;display:flex}input,select{border:1px solid var(--border);color:var(--text);background:#fff;border-radius:8px;outline:none;width:100%;min-width:0;min-height:40px;padding:8px 10px}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #0f7a5a1f}.primary-button,.secondary-button,.icon-button{border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.primary-button,.secondary-button{border:1px solid #0000;gap:8px;width:100%;min-height:42px;padding:9px 13px}.primary-button{background:var(--accent);color:#fff;font-weight:800}.primary-button:hover{background:var(--accent-strong)}.secondary-button{color:var(--blue);background:#eef5ff;border-color:#c6d8f2;font-weight:800}.icon-button{border:1px solid var(--border);color:var(--text);background:#fff;width:34px;height:34px}.icon-button.ghost{background:0 0}.output-box{border:1px solid var(--border);border-radius:8px;min-height:300px;overflow:hidden}.output-heading{border-bottom:1px solid var(--border);background:#f7fafb;justify-content:space-between;align-items:center;min-height:42px;padding:6px 10px;display:flex}.output-heading span{color:var(--muted);font-size:13px}pre{white-space:pre-wrap;word-break:break-word;min-height:256px;margin:0;padding:14px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;line-height:1.72;overflow:auto}.side-stack{gap:14px}.config-state{border:1px solid var(--border);background:#f7fafb;border-radius:8px;flex-direction:column;gap:4px;margin-top:12px;padding:10px;display:flex}.ok{color:var(--accent);margin-left:auto}.history-panel{min-height:260px}.history-list{gap:8px;margin-top:12px}.history-row{border:1px solid var(--border);border-radius:8px;gap:4px;padding:9px 10px;display:grid}.history-row strong{color:var(--accent-strong);font-size:13px}.history-row span{color:var(--muted);font-size:13px}.footer-line{color:var(--muted);max-width:1440px;margin:14px auto 0;font-size:12px}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1180px){.workspace-grid{grid-template-columns:minmax(260px,320px) 1fr}.side-stack{grid-column:1/-1;grid-template-columns:1fr 1fr;display:grid}}@media (max-width:820px){.app-shell{padding:14px}.topbar{flex-direction:column;align-items:flex-start}.auth-layout,.workspace-grid,.side-stack{grid-template-columns:1fr}.topic-list{max-height:none}.form-row{grid-template-columns:1fr}}
