:root {
  --navy:#0c2d57; --navy2:#0a2548; --blue:#1769e0; --ink:#17243a;
  --muted:#748197; --line:#dde4ed; --soft:#f3f6fa; --green:#19795f;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:#edf1f6;color:var(--ink);font:14px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,textarea{font:inherit}
button{color:inherit;cursor:pointer}
.app{display:flex;min-height:100vh;overflow:hidden}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;display:flex;width:252px;flex-direction:column;background:linear-gradient(180deg,var(--navy),var(--navy2));color:#dbe8f6;box-shadow:8px 0 25px #0b264a14}
.brand{display:flex;min-height:78px;align-items:center;gap:12px;border-bottom:1px solid #ffffff1c;padding:0 20px}
.daisy-mark{display:grid;width:36px;height:36px;place-items:center;color:#fff;font-size:35px;line-height:1;text-shadow:0 2px 8px #0003}
.brand>div:nth-child(2){display:grid;gap:3px}
.brand strong{color:#fff;font-size:19px;letter-spacing:.14em}
.brand span{color:#9db4ce;font-size:10px}
.sidebar nav{display:grid;gap:4px;padding:20px 12px}
.sidebar nav button,.side-bottom>button{display:flex;width:100%;height:41px;align-items:center;gap:11px;border:0;border-radius:8px;background:transparent;color:#b9cbe0;padding:0 12px;text-align:left}
.sidebar nav button:hover,.side-bottom>button:hover{background:#ffffff12;color:#fff}
.sidebar nav button.active{background:#468be633;box-shadow:inset 3px 0 #59a4ff;color:#fff}
.sidebar nav button>span,.side-bottom>button>span{display:grid;width:17px;place-items:center}
.sidebar nav button>b{margin-left:auto;font-size:11px}
.side-label{border-top:1px solid #ffffff15;color:#7892ad;padding:18px 22px 9px;font-size:9px;font-weight:800;letter-spacing:.14em}
.project-card{display:grid;grid-template-columns:34px 1fr 20px;align-items:center;gap:9px;border:0;border-radius:9px;background:#ffffff13;color:#fff;margin:0 12px;padding:10px;text-align:left}
.file-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:7px;background:#244f82}
.project-card>span:nth-child(2){display:grid;min-width:0;gap:3px}
.project-card strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.project-card small{color:#8fa7c0;font-size:10px}
.project-card i{color:#8fa7c0;font-size:10px}
.side-bottom{display:grid;gap:3px;margin-top:auto;padding:12px}
.integrity-card{border:1px solid #ffffff1c;border-radius:10px;background:#0000001f;margin-bottom:8px;padding:13px}
.integrity-card strong{color:#fff;font-size:11px}
.integrity-card p{color:#91a8c1;margin:8px 0 10px;font-size:10px}
.mini-track{height:4px;border-radius:4px;background:#ffffff1c}
.mini-track span{display:block;width:38%;height:100%;border-radius:4px;background:#55a0ef}
.integrity-card small{display:block;color:#7891ab;margin-top:7px;font-size:9px}
.profile{display:grid;grid-template-columns:32px 1fr;align-items:center;gap:9px;border-top:1px solid #ffffff1a;margin-top:8px;padding:15px 8px 4px}
.profile>span{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#447bb8;color:#fff;font-size:10px;font-weight:800}
.profile div{display:grid;gap:2px}.profile strong{color:#fff;font-size:11px}.profile small{color:#809ab6;font-size:9px}
.mobile-close,.scrim{display:none}

.workspace{min-width:0;flex:1;margin-left:252px}
.topbar{display:flex;min-height:78px;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);background:#fff;padding:0 27px}
.crumbs{display:flex;min-width:0;align-items:center;gap:8px;font-size:12px}
.crumbs>span{color:#8794a6}.crumbs>i{color:#a5afbc;font-style:normal}.crumbs>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crumbs>em{display:flex;align-items:center;gap:7px;border-radius:20px;background:#edf8f4;color:#21765f;margin-left:10px;padding:6px 10px;font-size:10px;font-style:normal;font-weight:700}
.crumbs>em i{width:6px;height:6px;border-radius:50%;background:#2eaa80;box-shadow:0 0 0 3px #d8f1e8}
.top-actions{display:flex;gap:8px}
.top-actions button{display:flex;height:36px;align-items:center;gap:7px;border-radius:7px;padding:0 13px;font-size:11px;font-weight:700}
.top-actions .ghost{border:0;background:transparent;color:#66758a}.top-actions .outline{border:1px solid #cfd8e4;background:#fff}
.top-actions .primary{border:0;background:var(--blue);color:#fff;box-shadow:0 4px 12px #1769e033}
.top-actions .primary:disabled{opacity:.65;cursor:wait}
.menu-button{display:none!important}
.heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;padding:23px 28px 18px}
.eyebrow{display:block;color:#705ab9;margin-bottom:6px;font-size:9px;font-weight:800;letter-spacing:.12em}
.heading h1{color:#12233b;font:600 clamp(22px,2.1vw,30px)/1.2 Georgia,serif;letter-spacing:-.02em;margin:0}
.heading p{color:var(--muted);margin:7px 0 0;font-size:12px}
.safety-badge{display:flex;flex:0 0 auto;align-items:center;gap:10px;border:1px solid #d6e2ee;border-radius:9px;background:#ffffffb8;padding:10px 13px}
.safety-badge>span{display:grid;width:20px;height:20px;place-items:center;border-radius:50%;background:#e6f6f0;color:var(--green);font-weight:800}
.safety-badge div{display:grid;gap:2px}.safety-badge strong{font-size:10px}.safety-badge small{color:#7b8799;font-size:9px}
.mobile-tabs{display:none}

.work-grid{display:grid;height:calc(100vh - 154px);min-height:610px;grid-template-columns:minmax(280px,.88fr) minmax(270px,.8fr) minmax(390px,1.22fr);gap:1px;border-top:1px solid var(--line);background:var(--line)}
.panel{min-width:0;overflow:hidden;background:#fff}
.panel-title{display:flex;min-height:70px;align-items:center;gap:11px;border-bottom:1px solid #e5eaf0;padding:0 17px}
.panel-title>span,.evidence-title>span{display:grid;width:24px;height:24px;flex:0 0 auto;place-items:center;border-radius:50%;background:#e9f1fc;color:#2c67b4;font-size:10px;font-weight:800}
.panel-title>div{display:grid;gap:2px}.panel-title h2{margin:0;font-size:13px}.panel-title p{color:#8793a4;margin:0;font-size:9px}
.icon-action{display:grid;width:30px;height:30px;place-items:center;border:1px solid #dde4ec;border-radius:7px;background:#fff;margin-left:auto;color:#748399}
.inputs-panel,.structure-panel,.evidence-panel{display:flex;flex-direction:column}
.input-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e3e9f0}
.input-tabs button{height:44px;border:0;border-bottom:2px solid transparent;background:#fff;color:#7f8b9f;font-size:10px;font-weight:700}
.input-tabs button.active{border-bottom-color:var(--blue);color:#22599e}
.input-tabs button span{border-radius:10px;background:#eef2f7;margin-left:5px;padding:2px 6px;font-size:8px}
.file-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 15px 10px}
.file-meta>div{display:flex;min-width:0;align-items:center;gap:9px}
.doc-icon{display:grid;width:29px;height:29px;place-items:center;border-radius:6px;background:#e7f2fd;color:#2773bd}
.file-meta p{display:grid;min-width:0;gap:2px;margin:0}.file-meta strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.file-meta small{color:#8b96a6;font-size:8px}
.file-meta button{border:0;background:transparent;color:#3472ba;font-size:9px;font-weight:700}
#sourceEditor{width:calc(100% - 30px);min-height:255px;flex:1;resize:none;border:1px solid #dfe6ee;border-radius:7px 7px 0 0;outline:0;background:#fbfcfe;color:#344258;margin:0 15px;padding:14px;font:11px/1.7 Georgia,serif}
#sourceEditor:focus{border-color:#86aee2;box-shadow:0 0 0 3px #e9f2fe}
.editor-footer{display:flex;justify-content:space-between;gap:10px;border:1px solid #dfe6ee;border-top:0;border-radius:0 0 7px 7px;color:#8793a4;margin:0 15px;padding:7px 10px;font-size:8px}
.editor-footer span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drop-zone{display:grid;grid-template-columns:35px 1fr 18px;align-items:center;gap:9px;border:1px dashed #c9d7e7;border-radius:7px;background:#f7faff;margin:13px 15px 0;padding:9px 11px;text-align:left}
.drop-zone:hover{border-color:#79a8dc;background:#f1f7fe}.drop-zone>span{display:grid;width:33px;height:33px;place-items:center;border-radius:7px;background:#e6f0fc;color:#3474bd;font-weight:800}
.drop-zone p{display:grid;gap:2px;margin:0}.drop-zone strong{font-size:9px}.drop-zone small{color:#8894a5;font-size:8px}
.research-note{display:flex;align-items:flex-start;gap:9px;border-top:1px solid #e5eaf0;background:#f9fbfd;margin-top:14px;padding:11px 15px 14px}
.research-note>span{color:var(--green);font-weight:800}.research-note p{display:grid;gap:3px;margin:0}.research-note strong{font-size:9px}.research-note small{color:#7f8b9a;font-size:8px;line-height:1.5}

.analysis-summary{display:grid;grid-template-columns:31px 1fr auto;align-items:center;gap:9px;border-bottom:1px solid #e5eaf0;background:#faf9ff;padding:12px 15px}
.analysis-summary>span{display:grid;width:29px;height:29px;place-items:center;border-radius:7px;background:#eee8fb;color:#7455c5}
.analysis-summary p{display:grid;gap:2px;margin:0}.analysis-summary strong{font-size:10px}.analysis-summary small{color:#8b91a1;font-size:8px}
.analysis-summary>b{border-radius:12px;background:#eef1f5;color:#6d7889;padding:4px 7px;font-size:7px}
.analysis-summary>b.ai{background:#e8f1ff;color:#276ab9}
.theme-list{min-height:0;flex:1;overflow-y:auto;padding:10px}
.theme-group{overflow:hidden;border:1px solid transparent;border-radius:8px;margin-bottom:5px}
.theme-group.active{border-color:#cbdbee;background:#f8fbff;box-shadow:0 2px 8px #2550820f}
.theme-row{display:grid;width:100%;min-height:56px;grid-template-columns:15px 9px 1fr 15px;align-items:center;gap:8px;border:0;background:transparent;padding:9px 10px;text-align:left}
.theme-row:hover{background:#f5f8fb}.theme-row .dot{width:8px;height:8px;border-radius:3px;background:#6b60c5}.theme-row .dot.c2{background:#2e8b85}.theme-row .dot.c3{background:#d79735}.theme-row .dot.c4{background:#c75e76}
.theme-row p{display:grid;min-width:0;gap:3px;margin:0}.theme-row strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.theme-row small{color:#8994a4;font-size:8px}
.codes{border-top:1px solid #dfe7f0;margin-left:31px;padding:7px 7px 8px 0}
.code-row{display:grid;width:100%;grid-template-columns:17px 1fr 14px;align-items:center;gap:7px;border:0;border-radius:6px;background:transparent;padding:9px;text-align:left}
.code-row:hover,.code-row.active{background:#e9f2fd}.code-row p{display:grid;gap:2px;margin:0}.code-row strong{font-size:9px}.code-row small{color:#8491a3;font-size:8px}
.structure-footer{border-top:1px solid #e5eaf0;background:#fafbfc;color:#8490a1;padding:12px 15px;font-size:8px}

.evidence-panel{background:#f7f9fc}
.evidence-title{display:flex;min-height:70px;align-items:center;gap:11px;border-bottom:1px solid #e1e7ef;background:#fff;padding:0 18px}
.evidence-title>div{display:grid;min-width:0;gap:2px}.evidence-title small{color:#8c97a8;font-size:7px;font-weight:800;letter-spacing:.12em}.evidence-title h2{overflow:hidden;margin:0;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.result-view-tabs{display:flex!important;min-width:max-content!important;grid-template-columns:none!important;gap:3px!important;border-radius:7px;background:#edf2f7;margin-left:auto;padding:3px}
.result-view-tabs button{height:27px;border:0;border-radius:5px;background:transparent;color:#6d7b8e;padding:0 9px;font-size:8px;font-weight:750}
.result-view-tabs button.active{background:#fff;color:#245f9f;box-shadow:0 1px 4px #193a621a}
.result-view{display:flex;min-height:0;flex:1;flex-direction:column}
.result-view.hidden{display:none}
.rationale{border-bottom:1px solid #e0e7ef;background:#f8fbff;padding:12px 18px}.rationale strong{display:block;font-size:9px}.rationale p{color:#718096;margin:6px 0 0;font:9px/1.55 Georgia,serif}
.review-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e0e7ef;background:#fff;padding:9px 17px}
.review-tools label{display:flex;width:min(230px,48%);height:31px;align-items:center;gap:7px;border:1px solid #dce3eb;border-radius:6px;padding:0 9px}
.review-tools input{width:100%;border:0;outline:0;font-size:9px}.review-tools>div{display:flex;gap:10px;color:#788598;font-size:8px}.review-tools>div span{display:flex;align-items:center;gap:4px;white-space:nowrap}.review-tools i{width:6px;height:6px;border-radius:50%}.review-tools .pending{background:#e3a43e}.review-tools .accepted{background:#26936f}
.evidence-list{min-height:0;flex:1;overflow-y:auto;padding:13px 16px 18px}
.evidence-card{border:1px solid #dce3eb;border-left:3px solid #6a78b6;border-radius:8px;background:#fff;box-shadow:0 2px 8px #162c4d0b;margin-bottom:11px}
.evidence-card.accepted{border-left-color:#23916c;background:#fbfffd}.evidence-card.rejected{border-left-color:#c86b78;opacity:.7}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 12px 0}.card-top>span{color:#7e8a9b;font-size:7px;font-weight:800;letter-spacing:.1em}.signals{display:flex;gap:5px}.signals span{border-radius:10px;background:#eef2f7;color:#657386;padding:4px 6px;font-size:7px;font-weight:700}.signals span:first-child{background:#eaf7f1;color:#26745e}
.evidence-card blockquote{position:relative;color:#2b3950;margin:0;padding:13px 17px 12px 34px;font:11px/1.65 Georgia,serif}.evidence-card blockquote:before{position:absolute;left:13px;top:12px;color:#97a6b8;content:"“";font-size:22px}
.source-line{display:flex;align-items:center;gap:6px;color:#7c899a;padding:0 13px 10px;font-size:8px}.source-line strong{overflow:hidden;max-width:50%;color:#4f6681;text-overflow:ellipsis;white-space:nowrap}.source-line i{width:3px;height:3px;border-radius:50%;background:#a6afbb}
.evidence-actions{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0f4;padding:8px 11px}.evidence-actions>div{display:flex;gap:5px}.decision{display:flex;height:28px;align-items:center;gap:5px;border:1px solid #d8e0e9;border-radius:6px;background:#fff;padding:0 9px;color:#667488;font-size:8px;font-weight:700}.decision.accept:hover,.decision.accept.active{border-color:#7db9a5;background:#e9f7f1;color:#167254}.decision.reject:hover,.decision.reject.active{border-color:#df9ba6;background:#fff0f2;color:#a64555}.memo{border:0;background:transparent;color:#4978ad;font-size:8px;font-weight:700}
.empty{display:grid;min-height:250px;place-items:center;align-content:center;gap:6px;color:#8995a5}.empty strong{color:#405068}.empty span{font-size:10px}
.review-footer{display:flex;min-height:50px;align-items:center;gap:10px;border-top:1px solid #dce3eb;background:#fff;padding:0 16px}.progress{width:72px;height:5px;overflow:hidden;border-radius:5px;background:#e5eaf0}.progress span{display:block;width:0;height:100%;background:#278c6d;transition:.2s}.review-footer p{color:#7b8799;margin:0;font-size:8px}.review-footer p strong{color:#344258}.review-footer button{border:0;background:transparent;color:#2869b2;margin-left:auto;font-size:8px;font-weight:800}

.visual-view{background:#f4f7fb}
.visual-toolbar{display:flex;min-height:55px;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dfe6ee;background:#fff;padding:9px 16px}
.visual-toolbar>div{display:grid;gap:2px}.visual-toolbar strong{font-size:10px}.visual-toolbar span{color:#8190a3;font-size:8px}
.visual-toolbar label{display:flex;align-items:center;gap:7px;color:#718096;font-size:8px;font-weight:700}
.visual-toolbar select{height:30px;border:1px solid #d6dee8;border-radius:6px;outline:0;background:#fff;color:#33445c;padding:0 25px 0 8px;font-size:8px}
.visual-scroll{min-height:0;flex:1;overflow:auto;padding:13px}
.insight-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:9px}
.insight-stat{display:flex;min-width:0;align-items:center;gap:9px;border:1px solid #dce4ed;border-radius:8px;background:#fff;padding:10px}
.insight-stat>span{display:grid;width:30px;height:30px;flex:0 0 auto;place-items:center;border-radius:7px;background:#e9f2fd;color:#2c68b2;font-size:12px;font-weight:800}
.insight-stat:nth-child(2)>span{background:#eeeafb;color:#6f57bc}.insight-stat:nth-child(3)>span{background:#e8f6f1;color:#24775f}.insight-stat:nth-child(4)>span{background:#fff3dc;color:#a36b16}
.insight-stat div{display:grid;min-width:0;gap:1px}.insight-stat strong{font-size:14px;line-height:1}.insight-stat small{overflow:hidden;color:#7c899a;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
.charts-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:9px}
.chart-card,.coverage-card{overflow:hidden;border:1px solid #dce4ed;border-radius:8px;background:#fff;box-shadow:0 2px 8px #173a6208}
.chart-card>header,.coverage-card>header{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e8edf3;padding:8px 11px}
.chart-card>header>div,.coverage-card>header>div{display:grid;gap:2px}.chart-card header strong,.coverage-card header strong{font-size:9px}.chart-card header span,.coverage-card header span{color:#8491a2;font-size:7px}
.chart-card header>b{border-radius:10px;background:#eef2f7;color:#718096;padding:3px 6px;font-size:6px;letter-spacing:.08em}
.chart-card-wide{min-width:0}
.bar-chart{display:grid;gap:10px;min-height:195px;align-content:center;padding:13px}
.bar-row{display:grid;grid-template-columns:minmax(75px,110px) 1fr 36px;align-items:center;gap:8px}
.bar-row>span{overflow:hidden;font-size:8px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.bar-track{height:14px;overflow:hidden;border-radius:4px;background:#eef2f6}
.bar-track>span{display:block;min-width:3px;height:100%;border-radius:4px;background:#5a6fc1;transition:width .3s}
.bar-row:nth-child(2) .bar-track>span{background:#2f918a}.bar-row:nth-child(3) .bar-track>span{background:#d39a3d}.bar-row:nth-child(4) .bar-track>span{background:#c6657b}
.bar-row>b{color:#485970;font-size:8px;text-align:right}
.donut-layout{display:grid;min-height:195px;grid-template-columns:110px 1fr;align-items:center;gap:12px;padding:12px}
.donut{position:relative;width:106px;height:106px;border-radius:50%;background:conic-gradient(#5a6fc1 0 40%,#2f918a 40% 70%,#d39a3d 70% 100%)}
.donut:after{position:absolute;inset:22px;border-radius:50%;background:#fff;content:""}
.donut>span{position:absolute;inset:0;z-index:1;display:grid;place-items:center;color:#263850;font-size:13px;font-weight:800}
.donut-legend{display:grid;gap:8px}.donut-legend>div{display:grid;grid-template-columns:7px 1fr auto;align-items:center;gap:6px}.donut-legend i{width:7px;height:7px;border-radius:2px}.donut-legend span{overflow:hidden;color:#516176;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.donut-legend b{font-size:7px}
.treemap{display:flex;min-height:185px;gap:4px;padding:11px}
.tree-block{display:flex;min-width:58px;flex-direction:column;justify-content:flex-end;border-radius:6px;background:#5a6fc1;color:#fff;padding:8px}
.tree-block:nth-child(2){background:#2f918a}.tree-block:nth-child(3){background:#d39a3d}.tree-block:nth-child(4){background:#c6657b}
.tree-block strong{overflow:hidden;font-size:8px;text-overflow:ellipsis}.tree-block small{margin-top:3px;font-size:7px;opacity:.82}
.word-bars{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 13px;min-height:185px;align-content:center;padding:11px}
.word-row{display:grid;grid-template-columns:65px 1fr 22px;align-items:center;gap:6px}.word-row>span{overflow:hidden;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.word-row>i{height:7px;border-radius:3px;background:#e7ecf3}.word-row>i b{display:block;height:100%;border-radius:3px;background:#7898c1}.word-row>strong{font-size:7px;text-align:right}
.coverage-card{margin-top:9px}.coverage-card header button{border:0;background:transparent;color:#2869b2;font-size:7px;font-weight:800}
.coverage-table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:8px}th,td{border-bottom:1px solid #edf1f5;padding:9px 11px;text-align:left;white-space:nowrap}th{background:#fafbfd;color:#718096;font-size:7px;text-transform:uppercase;letter-spacing:.05em}td:first-child{font-weight:700}td:last-child,td:nth-last-child(2){color:#2869b2;font-weight:700}
.interpretation-note{border:1px solid #ead7a9;border-radius:7px;background:#fff9e9;color:#6d6040;margin-top:9px;padding:9px 11px;font-size:7px;line-height:1.5}.interpretation-note strong{color:#554720}
.toast{position:fixed;right:22px;bottom:22px;z-index:60;max-width:330px;border-radius:9px;background:#152a45;color:#fff;box-shadow:0 12px 35px #07182b38;padding:12px 15px;opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#9b3342}
.account-pill{display:flex;align-items:center;gap:4px;border:1px solid #d5e2f0;border-radius:18px;background:#f5f9fe;color:#61728a;padding:7px 10px;font-size:8px;white-space:nowrap}.account-pill b{color:#2369b2;font-size:10px}.logout-link{color:#68778b;font-size:8px;font-weight:750;text-decoration:none}.logout-link:hover{color:#245f9f}
.side-admin-link{display:flex;align-items:center;gap:9px;border-radius:6px;color:#d4e0ec;padding:8px 10px;font-size:9px;font-weight:700;text-decoration:none}.side-admin-link:hover{background:#ffffff0d;color:#fff}

.auth-page{min-height:100vh;background:linear-gradient(135deg,#092749 0%,#124778 50%,#eef5fc 50%,#f7f9fc 100%)}
.auth-shell{display:grid;width:min(920px,calc(100% - 34px));min-height:540px;grid-template-columns:1.08fr .92fr;overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 25px 70px #06182f38;margin:6vh auto}.auth-shell.single{display:block;width:min(510px,calc(100% - 34px));min-height:0}.auth-brand{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#0a2c52,#174f80);color:#fff;padding:54px}.auth-logo{display:grid;width:54px;height:54px;place-items:center;border-radius:16px;background:#ffffff17;font-size:30px}.auth-brand>strong{margin-top:18px;font-size:25px;letter-spacing:.12em}.auth-brand>span{color:#bdd4e8;font-size:11px}.auth-brand h1{max-width:390px;margin:55px 0 14px;font:30px/1.18 Georgia,serif}.auth-brand p{max-width:390px;color:#d2e1ee;font-size:12px;line-height:1.7}.auth-card{display:flex;flex-direction:column;justify-content:center;padding:48px}.auth-card h2{margin:8px 0 7px;font-size:26px}.auth-card>p{color:#77869a;margin:0 0 24px;font-size:11px;line-height:1.6}.auth-card form{display:grid;gap:15px}.auth-card label,.admin-form label,.account-fields label{display:grid;gap:6px;color:#40516a;font-size:9px;font-weight:750}.auth-card input,.admin-form input,.admin-form select,.account-fields input{width:100%;height:42px;border:1px solid #d6e0ea;border-radius:8px;outline:0;background:#fff;padding:0 12px;color:#24364d;font:11px inherit}.auth-card input:focus,.admin-form input:focus,.admin-form select:focus,.account-fields input:focus{border-color:#4b87c3;box-shadow:0 0 0 3px #4b87c315}.auth-submit,.admin-primary{display:grid;min-height:43px;place-items:center;border:0;border-radius:8px;background:#175d9f;color:#fff;font-size:10px;font-weight:800;text-decoration:none}.auth-card>small{color:#8a96a6;margin-top:20px;font-size:8px;line-height:1.5}.form-alert{border-radius:8px;margin:0 0 17px;padding:11px 13px;font-size:9px;line-height:1.5}.form-alert.error{border:1px solid #efc3ca;background:#fff2f4;color:#933746}.form-alert.success{border:1px solid #b9decf;background:#effaf5;color:#23694f}.link-button{margin-top:15px}

.admin-page{min-height:100vh;background:#f3f6fa}.admin-topbar{display:flex;height:64px;align-items:center;justify-content:space-between;background:#0b2e55;padding:0 max(22px,calc((100% - 1180px)/2));color:#fff}.admin-topbar>a{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none}.admin-topbar>a span{font-size:22px}.admin-topbar>a strong{font-size:15px;letter-spacing:.1em}.admin-topbar nav{display:flex;gap:18px}.admin-topbar nav a{color:#d1e2f1;font-size:9px;font-weight:700;text-decoration:none}.admin-main{width:min(1180px,calc(100% - 34px));margin:0 auto;padding:34px 0 60px}.admin-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:24px}.admin-heading h1{margin:7px 0 5px;font-size:28px}.admin-heading p{color:#718096;margin:0;font-size:10px}.admin-stats{display:flex;gap:8px}.admin-stats div{display:grid;min-width:92px;border:1px solid #dce4ed;border-radius:9px;background:#fff;padding:12px}.admin-stats b{font-size:18px}.admin-stats span{color:#8491a3;font-size:8px}.admin-card{border:1px solid #dce4ed;border-radius:11px;background:#fff;box-shadow:0 3px 14px #1837530b;margin-bottom:18px;padding:20px}.admin-card h2{margin:0 0 16px;font-size:15px}.admin-form{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr .55fr .9fr auto;align-items:end;gap:10px}.admin-form select{appearance:auto}.admin-primary{height:42px;padding:0 17px;white-space:nowrap}.admin-card-title{display:flex;align-items:center;justify-content:space-between}.admin-card-title span{color:#8190a2;font-size:9px}.account-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.account-card{overflow:hidden;border:1px solid #dae3ec;border-radius:9px;background:#fbfcfe}.account-card.inactive{opacity:.72}.account-card>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6ebf1;background:#fff;padding:13px}.account-card>header>div{display:flex;align-items:center;gap:9px}.account-card>header>div>span{display:grid;width:32px;height:32px;place-items:center;border-radius:8px;background:#e7f0fb;color:#2464a6;font-size:11px;font-weight:800}.account-card header p{display:grid;gap:2px;margin:0}.account-card header strong{font-size:10px}.account-card header small{color:#8290a2;font-size:8px}.status-badge{border-radius:12px;background:#f4e7e9;color:#a14a58;padding:5px 7px;font-size:7px}.status-badge.active{background:#e5f5ee;color:#237358}.account-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:13px}.account-fields input{height:35px;background:#fff}.account-fields .wide{grid-column:1/-1}.account-fields label small{color:#8a96a5;font-size:7px;font-weight:500}.account-card footer{display:flex;align-items:center;gap:10px;border-top:1px solid #e6ebf1;background:#fff;padding:10px 13px}.account-card footer span{color:#7b899a;margin-left:auto;font-size:8px}.account-card footer button{height:30px;border:0;border-radius:6px;background:#1b619f;color:#fff;padding:0 11px;font-size:8px;font-weight:800}.switch-label{display:flex!important;align-items:center;gap:6px!important;font-size:8px!important}.switch-label input{width:14px;height:14px}.admin-empty{color:#8491a2;padding:30px;text-align:center;font-size:10px}

@media(max-width:1120px){.work-grid{grid-template-columns:minmax(250px,.75fr) minmax(235px,.7fr) minmax(355px,1fr)}.safety-badge,.crumbs>em,.ghost{display:none!important}.insight-stats{grid-template-columns:repeat(2,1fr)}.charts-grid{grid-template-columns:1fr}.word-bars{grid-template-columns:1fr}.admin-form{grid-template-columns:repeat(3,1fr)}.account-grid{grid-template-columns:1fr}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.22s}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.menu-button{display:grid!important;width:32px;height:32px;place-items:center;border:0;border-radius:7px;background:#edf2f8}.mobile-close{display:grid;width:28px;height:28px;place-items:center;border:0;border-radius:6px;background:#ffffff15;color:#fff;margin-left:auto}.scrim.show{position:fixed;inset:0;z-index:35;display:block;border:0;background:#0819307a}.work-grid{grid-template-columns:minmax(250px,.72fr) minmax(355px,1fr)}.inputs-panel{display:none}}
@media(max-width:680px){.topbar{min-height:66px;padding:0 14px}.crumbs>span,.crumbs>i{display:none}.outline{display:none!important}.heading{padding:17px 16px 14px}.heading p{font-size:10px}.heading h1{font-size:22px}.mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:#fff;padding:7px}.mobile-tabs button{height:34px;border:0;border-radius:6px;background:transparent;color:#778498;font-size:9px;font-weight:700}.mobile-tabs button.active{background:#eaf2fc;color:#245f9f}.work-grid{display:block;height:calc(100vh - 201px);min-height:570px}.panel{display:none!important;height:100%}.panel.mobile-active{display:flex!important}.heading p{max-width:95%}.top-actions .primary span{display:none}.evidence-list{padding-left:11px;padding-right:11px}.result-view-tabs{position:absolute;right:10px;top:8px}.evidence-title{position:relative;min-height:82px;align-items:flex-end;padding-bottom:10px}.insight-stats{grid-template-columns:repeat(2,1fr)}.donut-layout{grid-template-columns:100px 1fr}.visual-scroll{padding:9px}}
@media(max-width:680px){.topbar{min-height:66px;padding:0 14px}.crumbs>span,.crumbs>i{display:none}.outline,.logout-link{display:none!important}.account-pill{padding:6px 8px}.heading{padding:17px 16px 14px}.heading p{font-size:10px}.heading h1{font-size:22px}.mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:#fff;padding:7px}.mobile-tabs button{height:34px;border:0;border-radius:6px;background:transparent;color:#778498;font-size:9px;font-weight:700}.mobile-tabs button.active{background:#eaf2fc;color:#245f9f}.work-grid{display:block;height:calc(100vh - 201px);min-height:570px}.panel{display:none!important;height:100%}.panel.mobile-active{display:flex!important}.heading p{max-width:95%}.top-actions .primary span{display:none}.evidence-list{padding-left:11px;padding-right:11px}.result-view-tabs{position:absolute;right:10px;top:8px}.evidence-title{position:relative;min-height:82px;align-items:flex-end;padding-bottom:10px}.insight-stats{grid-template-columns:repeat(2,1fr)}.donut-layout{grid-template-columns:100px 1fr}.visual-scroll{padding:9px}.auth-shell{display:block;margin:18px auto}.auth-brand{display:none}.auth-card{padding:34px 24px}.admin-heading{align-items:flex-start;flex-direction:column}.admin-stats{width:100%}.admin-stats div{min-width:0;flex:1}.admin-form{grid-template-columns:1fr}.account-fields{grid-template-columns:1fr}.account-fields .wide{grid-column:auto}.account-card footer{align-items:flex-start;flex-wrap:wrap}.account-card footer span{margin-left:0}.admin-topbar{padding:0 17px}.admin-topbar nav a:first-child{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
