:root{--bg:#0a0f1c;--panel:#111726;--panel-soft:#151d2e;--line:#22304a;--line-strong:#30425f;--text:#edf2ff;--muted:#90a0c0;--accent:#f38b3c;--accent-soft:#24170f;--success-bg:#12261b;--success-line:#285539;--success-text:#91d5a2;--error-bg:#26151a;--error-line:#5d2d34;--error-text:#ff9da4}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);margin:0;font-family:Segoe UI,sans-serif}body{padding:20px}button,input,select,textarea{font:inherit}a{color:inherit}.workspace-shell{width:min(1600px,100%);margin:0 auto}.auth-shell{place-items:center;min-height:calc(100vh - 40px);display:grid}.auth-card{border:1px solid var(--line);background:var(--panel);border-radius:18px;gap:14px;width:min(480px,100%);padding:24px;display:grid}.auth-card h1,.auth-card p{margin:0}.auth-card-loading{gap:16px}.auth-loading-stack{gap:10px;display:grid}.auth-loading-inline{color:var(--muted);align-items:center;gap:10px;font-size:.95rem;display:inline-flex}.auth-loading-spinner{border:2px solid #f38b3c38;border-top-color:var(--accent);border-radius:999px;width:18px;height:18px;animation:.9s linear infinite auth-loading-spinner}.auth-loading-bar{border:1px solid var(--line);background:var(--panel-soft);border-radius:999px;height:10px;position:relative;overflow:hidden}.auth-loading-bar span{background:linear-gradient(90deg,#f38b3c00 0%,#f38b3cf2 50%,#f38b3c00 100%);border-radius:999px;width:34%;animation:1.25s ease-in-out infinite auth-loading-bar;position:absolute;inset:1px auto 1px -34%}.auth-loading-dots{align-items:center;gap:8px;display:flex}.auth-loading-dots span{background:var(--accent);opacity:.35;border-radius:999px;width:10px;height:10px;animation:1s ease-in-out infinite auth-loading-dot}.auth-loading-dots span:nth-child(2){animation-delay:.15s}.auth-loading-dots span:nth-child(3){animation-delay:.3s}@keyframes auth-loading-bar{0%{transform:translate(0)}to{transform:translate(420%)}}@keyframes auth-loading-dot{0%,to{opacity:.25;transform:scale(.9)}50%{opacity:1;transform:scale(1.05)}}@keyframes auth-loading-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.workspace-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px;padding-bottom:14px;display:flex}.header-copy{gap:4px;display:grid}.header-copy h1{margin:0;font-size:1.38rem}.header-copy p{color:var(--muted);margin:0;line-height:1.4}.header-actions,.action-row,.message-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.account-button-strip{flex-wrap:wrap;align-items:stretch;gap:10px;display:flex}.account-chip{text-align:left;border:1px solid var(--line);background:var(--panel-soft);min-width:150px;color:var(--text);cursor:pointer;border-radius:12px;gap:4px;padding:10px 12px;display:grid}.account-chip strong{font-size:.92rem}.account-chip span{color:var(--muted);font-size:.8rem;line-height:1.2}.account-chip.is-active,.account-chip:hover{border-color:var(--accent);background:#1e2738}.sync-controls{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.sync-mode-toggle{gap:8px;display:inline-flex}.sync-toggle.is-active{background:var(--accent);border-color:var(--accent);color:#21160f}.sync-interval{min-width:150px}.action-row-split{justify-content:space-between}.action-group{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.action-group-end{justify-content:flex-end}.filter-toggle-row{padding-top:2px}.workspace-grid{gap:16px;display:grid}.workspace-grid-console{grid-template-columns:minmax(300px,.92fr) minmax(520px,1.35fr);align-items:start}.workspace-grid-settings{grid-template-columns:repeat(2,minmax(320px,1fr));align-items:start}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px}.stack-panel{gap:14px;padding:16px;display:grid}.panel-header,.section-title-row,.list-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.panel-header h2,.section-title-row h3{margin:0;font-size:1rem}.panel-status,.section-meta,.status-chip{border:1px solid var(--line);background:var(--panel-soft);min-height:24px;color:var(--muted);border-radius:999px;align-items:center;padding:0 9px;font-size:.78rem;display:inline-flex}.status-chip.is-success{color:#91d5a2;background:#12261b;border-color:#285539}.status-chip.is-warning{color:#ffc98c;background:#2a1b0d;border-color:#6a4a1f}.list-grid,.stack-section{gap:8px;display:grid}.inline-stack-section{border:1px solid var(--line);background:#0c142673;border-radius:12px;padding:10px}.global-context-grid{gap:12px}.global-context-card{border:1px solid var(--line);background:#0c142673;border-radius:12px;gap:10px;padding:12px;display:grid}.global-context-card textarea{min-height:136px}.checkbox-grid{flex-wrap:wrap;gap:8px;display:flex}.checkbox-chip{border:1px solid var(--line);background:var(--panel-soft);color:var(--muted);border-radius:999px;align-items:center;gap:8px;padding:8px 10px;display:inline-flex}.checkbox-chip input{width:auto;margin:0}.questions-list{max-height:72vh;padding-right:2px;overflow:auto}.question-card,.result-card{border:1px solid var(--line);background:var(--panel-soft);width:100%;color:inherit;border-radius:12px;gap:6px;padding:12px;display:grid}.question-card{text-align:left;cursor:pointer}.question-card:hover,.question-card.is-selected{border-color:var(--line-strong);background:#18233a}.question-card strong,.result-card strong{font-size:.94rem}.question-card p,.question-card span,.result-card p,.empty-copy{color:var(--muted);margin:0;line-height:1.45}.question-copy{color:var(--text);font-weight:600}.status-chip{text-transform:lowercase}select,input,textarea{border:1px solid var(--line);width:100%;color:var(--text);background:#0c1426;border-radius:10px;padding:11px 12px}textarea{resize:vertical}.draft-textarea{min-height:160px}.composer-textarea{min-height:108px}.context-textarea{min-height:260px}.prompt-textarea{min-height:340px}.helper-copy{color:var(--muted);margin:0;font-size:.88rem;line-height:1.45}.review-strip{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.score-control{min-width:110px;color:var(--muted);gap:6px;font-size:.82rem;display:grid}.score-control select{min-width:86px}.trace-card p{color:var(--text)}.trace-card strong{color:var(--muted);margin-right:4px;font-size:.82rem}.publication-block{border-top:1px solid #ffffff0f;gap:8px;padding-top:4px;display:grid}.simple-list{color:var(--text);gap:4px;margin:0;padding-left:18px;display:grid}.simple-list li{line-height:1.4}.marker-editor{gap:8px;display:grid}.marker-row{grid-template-columns:minmax(120px,.9fr) minmax(0,1.4fr) auto;align-items:center;gap:8px;display:grid}.marker-remove{min-width:88px}.primary-button,.secondary-button,.danger-button{border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;min-height:40px;padding:0 14px;font-weight:600;text-decoration:none;display:inline-flex}.primary-button{background:var(--accent);color:#21160f;cursor:pointer}.primary-button:disabled{opacity:.75;cursor:not-allowed}.secondary-button{background:var(--accent-soft);color:#ffc39d;cursor:pointer;border-color:#5b3d2a}.secondary-button.is-active{border-color:var(--accent);color:#ffd6b8;background:#2a2016}.danger-button{color:#ffb9c2;cursor:pointer;background:#30151a;border-color:#7a2b39}.danger-button:disabled{opacity:.75;cursor:not-allowed}.filter-toggle.is-active{background:var(--accent);border-color:var(--accent);color:#21160f}.settings-panel{margin-bottom:16px}.settings-panel .inline-stack-section{gap:10px}.settings-panel .panel{min-height:100%}.settings-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.marker-row-email{grid-template-columns:minmax(0,1fr) auto}.inline-feedback,.inline-error{border:1px solid #0000;border-radius:10px;margin:0;padding:12px 14px}.inline-feedback{background:var(--success-bg);border-color:var(--success-line);color:var(--success-text)}.inline-error{background:var(--error-bg);border-color:var(--error-line);color:var(--error-text)}.detail-panel{min-height:72vh}.dev-login-divider{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;align-items:center;gap:12px;margin:8px 0 2px;font-size:.82rem;display:flex}.dev-login-divider:before,.dev-login-divider:after{content:"";border-top:1px solid var(--line);flex:1}.dev-login-row{align-items:center;gap:8px;display:flex}.dev-login-input{flex:1;min-width:200px}@media (max-width:1280px){.workspace-grid-console{grid-template-columns:minmax(260px,.86fr) minmax(0,1.14fr)}.workspace-grid-settings{grid-template-columns:1fr}.workspace-header{align-items:start}}@media (max-width:900px){body{padding:16px}.workspace-header,.workspace-grid-console{grid-template-columns:1fr;align-items:start;display:grid}.questions-list,.detail-panel{min-height:auto;max-height:none}.marker-row{grid-template-columns:1fr}.account-chip{min-width:100%}.settings-meta-grid{grid-template-columns:1fr}}.workspace-shell-v2{width:min(1680px,100%)}.workspace-shell-layout{grid-template-columns:280px minmax(0,1fr);align-items:start;gap:20px;display:grid}.workspace-rail,.surface-card,.shell-auth-card,.shell-loading-card{background:radial-gradient(circle at 100% 0,#f38b3c1f,#0000 34%),linear-gradient(#141e32f5,#0b1221f5);border:1px solid #53688d52;border-radius:24px;box-shadow:0 22px 70px #0308125c}.workspace-rail{gap:18px;padding:22px;display:grid;position:sticky;top:20px}.workspace-brand,.workspace-rail-group,.workspace-account-list,.workspace-main-shell,.workspace-module,.context-card-stack,.module-stack,.editor-stack,.knowledge-grid,.question-grid,.analysis-grid,.context-grid,.summary-grid{gap:14px;display:grid}.workspace-brand h1,.workspace-topbar h2,.surface-header h3,.shell-auth-card h1,.shell-loading-card h1{letter-spacing:-.02em;margin:0;font-family:Georgia,Times New Roman,serif}.workspace-brand p,.workspace-topbar p,.surface-card p,.shell-auth-card p,.module-empty p,.context-card p,.metric-card p{color:var(--muted);margin:0;line-height:1.5}.workspace-eyebrow,.rail-label,.surface-kicker,.context-kicker{color:#ffb887;letter-spacing:.12em;text-transform:uppercase;font-size:.76rem}.workspace-nav-button,.workspace-account-card,.question-list-item{width:100%;color:var(--text);text-align:left;cursor:pointer;background:#0d1527cc;border:1px solid #53688d47;border-radius:16px;gap:6px;padding:14px;transition:border-color .18s,background .18s,transform .18s;display:grid}.workspace-nav-button:hover,.workspace-account-card:hover,.question-list-item:hover,.workspace-nav-button.is-active,.workspace-account-card.is-active,.question-list-item.is-selected{background:#152138eb;border-color:#f38b3c8c;transform:translateY(-1px)}.workspace-nav-button{font-weight:600}.workspace-account-card strong,.question-list-item strong{font-size:.96rem}.workspace-account-card span,.question-list-meta span{color:var(--muted);font-size:.82rem}.workspace-main-shell{gap:18px}.workspace-topbar{justify-content:space-between;align-items:start;gap:16px;display:flex}.topbar-actions,.filter-chip-row,.shell-auth-actions,.shell-auth-meta,.module-toolbar,.module-toolbar-group,.question-list-meta,.editor-toolbar,.score-inline,.inline-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.shell-banner{border:1px solid #0000;border-radius:16px;padding:14px 16px}.shell-banner strong{margin-bottom:4px;display:block}.shell-banner-success{color:#9ed0ad;background:#12261be0;border-color:#2f6d45}.shell-banner-warning{color:#ffd39d;background:#32200be0;border-color:#8f5f1d}.shell-banner-danger{color:#ffc0c7;background:#2c1216eb;border-color:#8e3340}.runtime-pill{min-height:28px;color:var(--muted);background:#0a101fd9;border:1px solid #53688d59;border-radius:999px;align-items:center;padding:0 10px;font-size:.8rem;display:inline-flex}.runtime-pill.is-success{color:#9ed0ad;background:#12261be0;border-color:#2f6d45}.runtime-pill.is-warning{color:#ffd39d;background:#32200be0;border-color:#8f5f1d}.runtime-pill.is-danger{color:#ffc0c7;background:#2c1216eb;border-color:#8e3340}.surface-card{padding:20px}.surface-header{justify-content:space-between;align-items:start;gap:14px;margin-bottom:16px;display:flex}.operation-grid{grid-template-columns:minmax(320px,.95fr) minmax(0,1.05fr);gap:18px;display:grid}.summary-grid,.analysis-grid,.context-grid,.knowledge-grid,.question-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card,.context-card{background:#09101f94;border:1px solid #53688d33;border-radius:18px;gap:6px;padding:14px;display:grid}.metric-card span,.context-card span{color:var(--muted);font-size:.8rem}.metric-card strong,.context-card strong{font-size:1rem}.question-list{gap:10px;max-height:70vh;padding-right:4px;display:grid;overflow:auto}.question-list-item p,.module-empty.compact p{margin:0}.module-empty{background:#09101f73;border:1px dashed #53688d59;border-radius:18px;gap:8px;padding:18px;display:grid}.module-empty strong,.surface-card strong,.workspace-topbar h2,.workspace-brand h1,.shell-auth-card h1,.shell-loading-card h1{color:var(--text)}.editor-label{color:#ffcfac;text-transform:uppercase;letter-spacing:.08em;font-size:.82rem}.inline-row input{flex:1}.score-inline label{color:var(--muted);font-size:.82rem}.shell-auth,.shell-loading-card{place-items:center;min-height:calc(100vh - 40px);display:grid}.shell-auth-card,.shell-loading-card{gap:16px;width:min(760px,100%);padding:28px}.shell-auth-meta{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.shell-auth-meta div{background:#09101f94;border:1px solid #53688d33;border-radius:16px;gap:6px;padding:12px;display:grid}.shell-auth-meta span{color:var(--muted);font-size:.78rem}.shell-dev-login{flex:1;align-items:center;gap:10px;display:flex}.shell-dev-login input{flex:1}@media (max-width:1280px){.workspace-shell-layout{grid-template-columns:1fr}.workspace-rail{position:static}.operation-grid,.summary-grid,.analysis-grid,.context-grid,.knowledge-grid,.question-grid{grid-template-columns:1fr}}@media (max-width:900px){.workspace-topbar,.module-toolbar,.module-toolbar-group,.shell-auth-actions,.shell-auth-meta{grid-template-columns:1fr;display:grid}.workspace-rail,.surface-card,.shell-auth-card,.shell-loading-card{border-radius:20px}}
