:root{--navy:#193d54;--navy2:#285d73;--teal:#1a7772;--paper:#f3f5f5;--ink:#26364b;--muted:#627383;--line:#dce4e8;--accent:#b8985e;--red:#ac3e3e;--amber:#946325;--green:#26745b;--radius:14px}*{box-sizing:border-box}body{margin:0;font:15px/1.5 'Segoe UI',Arial,sans-serif;background:var(--paper);color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--navy2)}:focus-visible{outline:3px solid #a0cfc9;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:31px;letter-spacing:-.8px;line-height:1.2;margin-bottom:12px}h2{font-size:21px;letter-spacing:-.3px;margin-bottom:14px}h3{font-size:17px;margin-bottom:9px}small,.muted{color:var(--muted)}.skip{position:absolute;top:-100px;background:white;padding:12px;z-index:50}.skip:focus{top:0}.loading{padding:40px}.shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#fff;padding:30px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:26px}.brand{display:flex;align-items:center;gap:12px;padding:0 9px}.brand-mark{height:40px;width:40px;border:1px solid #7096a6;border-radius:12px;display:grid;place-items:center;color:#d2e9e7}.brand b{font-size:23px;letter-spacing:1px}.brand small{display:block;color:#a7c1cc;font-size:11px;letter-spacing:1.2px}.nav{display:grid;gap:7px}.nav button{background:none;border:0;color:#c8dce4;text-align:left;padding:12px 14px;border-radius:9px;display:flex;align-items:center;gap:12px}.nav button.active,.nav button:hover{background:#2e5368;color:#fff}.nav svg{width:19px;height:19px}.sidebar-bottom{margin-top:auto;border-top:1px solid #365a6d;padding:22px 8px 0;font-size:12px;color:#adcad3}.sidebar-bottom strong{display:block;color:#fff;margin-bottom:5px}.workspace{min-width:0}.topbar{height:80px;padding:0 40px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar-title{font-size:14px;color:var(--muted)}.online{font-size:12px;border:1px solid var(--line);border-radius:99px;padding:6px 11px;display:flex;align-items:center;gap:7px}.dot{width:7px;height:7px;border-radius:50%;background:var(--green)}.main{max-width:1420px;margin:auto;padding:34px 40px 60px}.eyebrow{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--teal);font-weight:700;margin-bottom:10px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;margin-bottom:28px}.page-head p{color:var(--muted);max-width:750px;margin-bottom:0}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.btn{border:1px solid var(--line);background:#fff;color:var(--navy);padding:10px 15px;border-radius:9px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-size:13px;min-height:42px}.btn svg{width:17px;height:17px}.btn:hover{border-color:#91a9b5;background:#f8fafb}.btn.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.primary:hover{background:var(--navy2)}.btn.teal{background:var(--teal);color:white;border-color:var(--teal)}.btn.danger{color:var(--red)}.btn.small{padding:6px 10px;font-size:12px;min-height:34px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px}.stat strong{font-size:28px;display:block;margin:4px 0}.stat span{font-size:12px;color:var(--muted)}.stat .stat-label{font-size:13px;color:var(--ink)}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:20px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.card-heading h2{margin:0}.toolbar{display:flex;gap:12px;margin-bottom:18px;flex-wrap:wrap}.toolbar input{flex:1;min-width:210px}.toolbar select{min-width:170px}.field input,.field select,.field textarea,.toolbar input,.toolbar select,.control{border:1px solid #ccd8df;border-radius:8px;background:white;color:var(--ink);padding:10px 12px;min-height:42px;width:100%}.field{display:block}.field label{font-size:12px;font-weight:600;display:block;margin-bottom:6px}.field textarea{resize:vertical;min-height:105px;line-height:1.55}.field small{display:block;margin-top:5px;font-size:11px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.fields .full{grid-column:1/-1}.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.case-row{display:grid;grid-template-columns:48px minmax(200px,1fr) 145px 170px auto;align-items:center;gap:18px;border-bottom:1px solid #e7ecef;padding:20px 0}.case-row:first-child{padding-top:6px}.case-row:last-child{border-bottom:0;padding-bottom:0}.avatar{width:44px;height:44px;background:#edf3f5;border-radius:12px;color:var(--navy2);display:grid;place-items:center;font-size:15px;font-weight:600}.case-name{font-weight:650;margin-bottom:3px}.case-meta{font-size:12px;color:var(--muted)}.progress{height:5px;background:#e9eef1;border-radius:3px;margin-top:7px;overflow:hidden}.progress i{display:block;height:100%;background:var(--teal)}.pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:6px;font-size:11px;font-weight:600;white-space:nowrap;background:#edf3f5;color:var(--navy2)}.pill.good{background:#e8f4ed;color:var(--green)}.pill.warn{background:#fff4de;color:var(--amber)}.pill.bad{background:#fbecec;color:var(--red)}.empty{text-align:center;padding:46px 20px;color:var(--muted)}.empty h3{color:var(--ink);margin:10px 0}.empty .btn{margin-top:10px}.footer-note{font-size:12px;color:var(--muted);margin-top:28px}.case-title{display:flex;align-items:center;gap:15px}.case-title h1{font-size:27px;margin:0 0 5px}.tabs{display:flex;gap:6px;padding:7px;background:#e8eef0;border-radius:11px;margin:22px 0;overflow-x:auto}.tabs button{border:0;background:none;padding:10px 14px;font-weight:600;font-size:13px;color:var(--muted);border-radius:7px;white-space:nowrap}.tabs .active{color:var(--navy);background:white;box-shadow:0 1px 4px #193d5410}.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 24px}.info-grid dt{font-size:11px;color:var(--muted);margin-bottom:3px}.info-grid dd{margin:0;font-size:14px}.narrative{white-space:pre-wrap;line-height:1.75;color:#425264}.alert{border-radius:10px;padding:16px 19px;margin:16px 0;background:#eef5f6;font-size:13px;line-height:1.6;border:1px solid #d7e9eb}.alert.warn{background:#fff8e9;border-color:#f1e2c1;color:#775623}.alert.bad{background:#fff0f0;border-color:#efcfcf;color:#953a3a}.alert p:last-child{margin-bottom:0}.alert ul{padding-left:20px;margin:7px 0 0}.capture-top{display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap}.capture-top .progress-block{max-width:320px;min-width:220px;flex:1}.capture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 18px;margin-top:24px}.response-row{display:flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;min-width:0}.response-row .item{min-width:35px;font-size:13px;font-weight:600}.response-row button{flex:1;padding:7px 4px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px;min-height:33px}.response-row button.selected{background:var(--navy);border-color:var(--navy);color:white}.response-row button.clear{flex:0 0 26px;border:0;color:var(--muted)}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:23px;gap:15px;flex-wrap:wrap}.pagination input{width:85px;padding:7px;min-height:35px}.sequential{max-width:660px;margin:35px auto;text-align:center}.sequential .item-number{font-size:12px;letter-spacing:1.5px;color:var(--teal)}.question{font-size:23px;line-height:1.65;margin:20px 0}.sequential .choices{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:25px 0}.sequential .choices button{padding:20px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--navy)}.sequential .choices button.selected{background:var(--navy);color:white}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px}table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.6}th{background:#edf3f5;color:var(--navy);font-weight:650;text-align:left;white-space:nowrap}td,th{padding:11px 12px;border-bottom:1px solid #e3e9ed;vertical-align:top}tbody tr:nth-child(even){background:#f9fbfb}tbody tr:last-child td{border-bottom:0}.score-number{font-weight:700;font-variant-numeric:tabular-nums}.table-wrap details{max-width:290px;font-size:11px;color:var(--muted)}details summary{cursor:pointer}.group-select{max-width:350px}.chart{margin:20px 0;background:#fcfdfd;border:1px solid var(--line);padding:15px;border-radius:12px}.chart svg{width:100%;height:auto}.chart figcaption{font-size:11px;color:var(--muted)}.results-summary{display:grid;grid-template-columns:1.7fr 1fr;gap:18px}.results-summary .card{margin-bottom:0}.check-list{display:flex;flex-wrap:wrap;gap:14px 22px}.check-list label{display:flex;align-items:center;gap:7px;font-size:12px}.check-list input{accent-color:var(--teal);height:16px;width:16px}.report-frame{width:100%;height:760px;border:1px solid var(--line);border-radius:10px;background:white;margin-top:18px}.ai-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:20px}.ai-layout .card{height:100%}.ai-layout textarea{min-height:270px}.prompt-preview{font-size:12px;white-space:pre-wrap;max-height:270px;overflow:auto;background:#f6f8fa;padding:17px;border-radius:8px;border:1px solid var(--line)}.step-label{font-size:11px;font-weight:700;color:var(--teal);letter-spacing:1px;margin-bottom:10px}.source-list{display:grid;gap:20px}.source-item{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.source-item:last-child{border:0}dialog{width:min(820px,calc(100% - 32px));border:1px solid var(--line);border-radius:16px;padding:0;color:var(--ink);box-shadow:0 30px 100px #193d5430;max-height:90vh}dialog::backdrop{background:#102c4166;backdrop-filter:blur(2px)}.dialog-head{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.dialog-body{padding:26px;overflow:auto}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:20px 26px;border-top:1px solid var(--line);background:#f7fafb;position:sticky;bottom:0}.section-label{font-size:12px;font-weight:700;color:var(--navy);border-bottom:1px solid var(--line);padding:10px 0 7px;margin-bottom:18px}#toast{position:fixed;right:25px;bottom:25px;max-width:450px;background:var(--navy);color:white;border-radius:10px;padding:14px 20px;box-shadow:0 4px 20px #193d5430;z-index:100;display:none;font-size:13px}#toast.error{background:#8f3737}.result-bar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:20px 0}.divider{height:1px;background:var(--line);margin:24px 0}.text-btn{border:0;background:none;color:var(--navy2);padding:0;text-decoration:underline;font-size:13px}.history-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 0;gap:20px}.history-row:last-child{border:0}button.loading{pointer-events:none;opacity:.65}.signature-preview{max-width:210px;max-height:75px;display:block}.mobile-brand{display:none}@media(min-width:1500px){.main{padding:40px 50px}.topbar{padding:0 50px}}@media(max-width:1100px){.shell{grid-template-columns:205px 1fr}.sidebar{padding:25px 12px}.main{padding:28px 26px}.topbar{padding:0 26px}.stats{gap:10px}.stat{padding:17px}.case-row{grid-template-columns:44px minmax(150px,1fr) 120px auto}.case-row .row-progress{display:none}.capture-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.results-summary,.ai-layout{grid-template-columns:1fr}.fields.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.shell{display:block}.sidebar{position:relative;height:auto;padding:14px 16px;gap:14px}.brand{padding:0}.brand b{font-size:20px}.brand-mark{height:33px;width:33px}.brand small{font-size:9px}.nav{display:flex;overflow:auto;gap:4px}.nav button{padding:8px 11px;font-size:12px;white-space:nowrap}.nav svg{width:15px}.sidebar-bottom{display:none}.topbar{height:55px;padding:0 18px}.main{padding:24px 18px 45px}.page-head{display:block;margin-bottom:23px}.page-head>.actions{margin-top:18px}h1{font-size:27px}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.card{padding:20px 17px}.case-row{grid-template-columns:39px minmax(0,1fr) auto;gap:11px}.case-row .row-status{display:none}.case-row .actions .btn:not(.primary){display:none}.avatar{width:36px;height:36px;font-size:12px}.fields,.fields.three,.info-grid{grid-template-columns:1fr}.case-title h1{font-size:23px}.tabs{margin:18px 0}.tabs button{padding:9px 11px}.capture-grid{grid-template-columns:1fr}.report-frame{height:650px}.sequential .choices{gap:7px}.sequential .choices button{padding:17px 7px;font-size:13px}.question{font-size:19px}.source-item{display:block}.source-item .actions{margin-top:10px}.dialog-body{padding:20px}.dialog-head{padding:20px}.online{font-size:10px;padding:4px 8px}#toast{left:18px;right:18px;bottom:18px}.page-head .actions .btn{font-size:12px}.btn{padding:9px 12px}.check-list{display:grid;grid-template-columns:1fr 1fr}.toolbar{gap:9px}.toolbar select{width:100%}.card-heading{align-items:flex-start}.card-heading h2{font-size:19px}}

.brand-mark svg{width:23px;height:23px}.empty svg{width:35px;height:35px}

.chart{overflow-x:auto}.chart svg{min-width:650px}
