:root{
  --ink:#07111f;--ink-2:#0d1a2a;--ink-3:#122238;--teal:#16b89f;--teal-2:#5ddfcb;--teal-soft:#e8f8f5;
  --bg:#f4f7fa;--panel:#fff;--line:#dbe4ec;--line-2:#cbd6e0;--text:#0b1524;--muted:#667689;--muted-2:#8a98a8;
  --danger:#ae4150;--warn:#946500;--shadow:0 10px 30px rgba(7,17,31,.055);--shadow-lg:0 26px 70px rgba(7,17,31,.12);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:"DM Sans",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}
body.modal-open{overflow:hidden}
button,input,select,textarea{font:inherit}button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
h1,h2,h3,strong{font-family:Manrope,"DM Sans",sans-serif}
h1,h2,h3,p{margin-top:0}
.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:24px 16px}
.sidebar-brand{display:flex;gap:11px;align-items:center;padding:0 9px 30px}
.sidebar-brand>div:last-child{display:grid;line-height:1.1}.sidebar-brand strong{font-size:15px;letter-spacing:.02em}.sidebar-brand span{color:var(--teal);font-size:13px;font-weight:800;letter-spacing:.08em}
.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--teal);display:grid;place-items:center;color:#fff;font:800 18px Manrope,sans-serif;box-shadow:0 8px 22px rgba(22,184,159,.25)}
.brand-mark.small{width:34px;height:34px;border-radius:10px;font-size:15px}
.sidebar-group-label,.section-kicker,.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800}
.sidebar-group-label{color:var(--muted-2);padding:0 11px 10px}
.sidebar-nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;text-align:left;color:var(--muted);font-weight:700;border-radius:11px;padding:11px 12px;display:flex;align-items:center;gap:11px;transition:.15s}
.nav-item:hover{background:#f4f7fa;color:var(--text)}.nav-item.active{background:var(--teal-soft);color:#087d6d}
.nav-icon{width:20px;text-align:center;font-size:17px;color:#8b98a7}
.nav-item.active .nav-icon{color:#087d6d}
.sidebar-spacer{flex:1}
.sidebar-note{margin:0 4px 16px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#f8fafb}
.sidebar-note .eyebrow{color:#087d6d}.sidebar-note p{margin:7px 0 0;color:var(--muted);font-size:11px}
.sidebar-user{border-top:1px solid var(--line);padding:16px 8px 0;display:flex;align-items:center;gap:10px}.user-avatar{width:34px;height:34px;border-radius:10px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:12px}
.user-meta{min-width:0}.user-meta strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:165px}.user-meta span{display:block;color:var(--muted-2);font-size:10px}
.main-shell{min-width:0}.topbar{height:70px;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:40}
.topbar-title{font-size:13px;color:var(--muted);font-weight:700}.mobile-brand{display:none}.topbar-actions{display:flex;align-items:center;gap:14px}
.status-dot{font-size:11px;font-weight:800}.status-dot::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:7px}.status-dot.pending{color:#9aa6b3}.status-dot.ready{color:#16a58f}.status-dot.demo{color:#b17c10}.status-dot.error{color:var(--danger)}
.button{border:0;border-radius:11px;padding:11px 15px;font-weight:800;display:inline-flex;justify-content:center;align-items:center;gap:8px;transition:.15s}.button.primary{background:var(--teal);color:#03211c;box-shadow:0 9px 22px rgba(22,184,159,.17)}.button.primary:hover{transform:translateY(-1px)}.button.primary.large{padding:13px 18px}.button.ghost{background:transparent;border:1px solid var(--line-2);color:var(--text)}.button.secondary-dark{background:#fff;border:1px solid var(--line-2);color:var(--text)}.button.outline-dark{background:transparent;border:1px solid #3a4a5c;color:#fff}.button.wide{width:100%}.text-link{background:none;border:0;color:#087d6d;font-weight:800;padding:0}
.mobile-nav{display:none}
.content{max-width:1460px;margin:0 auto;padding:42px 44px 68px}.view{display:none}.view.active{display:block}
.page-head{max-width:1180px;margin:0 auto 30px;display:flex;justify-content:space-between;gap:28px;align-items:flex-end}.page-head.compact{align-items:flex-start}.eyebrow{color:#087d6d;display:block}.eyebrow.light{color:var(--teal-2)}
.page-head h1{font-size:clamp(38px,4.8vw,64px);letter-spacing:-.052em;line-height:.98;margin:9px 0 16px}.page-head p:not(.eyebrow){max-width:760px;color:var(--muted);font-size:16px;margin:0}
.hero-head{padding:8px 0 12px}.hero-head>div:first-child{max-width:760px}.hero-head .button{margin-bottom:7px}.head-meta{padding-top:6px}
.secure-pill,.step-pill,.counter-pill{display:inline-flex;align-items:center;border:1px solid var(--line);background:#fbfcfd;color:#667689;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;white-space:nowrap}.secure-pill{background:#f7fafb}.counter-pill{min-width:31px;justify-content:center}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px}
.panel-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.panel h2{font-size:21px;line-height:1.15;margin:7px 0 6px}.panel h3{font-size:17px}.muted{color:var(--muted)}
.metric-grid{max-width:1180px;margin:0 auto 18px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.metric-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px 21px;box-shadow:var(--shadow)}.metric-card span{font-size:9px;letter-spacing:.15em;color:var(--muted-2);font-weight:800}.metric-card strong{display:block;font-size:30px;letter-spacing:-.03em;margin:6px 0 1px}.metric-card small{color:var(--muted);font-size:11px}.metric-accent{background:linear-gradient(145deg,#effaf7,#fff)}
.overview-grid{max-width:1180px;margin:0 auto 18px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);gap:14px}.workflow-card,.quick-card{min-height:250px}.workflow-rail{display:flex;align-items:center;gap:10px;margin-top:28px}.flow-step{min-width:105px}.flow-index{font-size:10px;color:#a1adb9;font-weight:800;margin-bottom:5px}.flow-step b{display:block;font-size:13px}.flow-step span{display:block;color:var(--muted);font-size:10px;margin-top:2px}.flow-step.active .flow-index,.flow-step.active b{color:#087d6d}.flow-connector{height:1px;background:#dfe5eb;flex:1;min-width:9px}.workflow-caption{margin-top:25px;display:flex;gap:8px;flex-wrap:wrap}.workflow-caption span{font-size:10px;font-weight:800;color:#718092;background:#f5f7f9;border-radius:999px;padding:6px 9px}.quick-card{background:var(--ink);color:#fff;border-color:var(--ink)}.quick-card p{color:#b9c4cf;margin-bottom:19px}.quick-card h2{font-size:22px}.quick-link{margin-top:13px;padding-top:13px;border-top:1px solid #ffffff16}.quick-link button{background:none;border:0;color:#a8dbd2;font-weight:750;padding:0;display:flex;justify-content:space-between;width:100%}
.recent-card{max-width:1180px;margin:0 auto}.record-empty{padding:22px 0;color:var(--muted)}
.response-workbench{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.source-card{min-width:0}.response-steps{display:grid;gap:14px}.step-card,.scan-card{margin:0}.step-list{margin-top:15px}.step-list-item{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:13px 0;border-top:1px solid var(--line)}.step-list-item:first-child{border-top:0}.step-list-item b{font-size:10px;color:#a0aebc;padding-top:2px}.step-list-item strong{display:block;font-size:12px}.step-list-item span{display:block;color:var(--muted);font-size:10px;margin-top:2px}.step-list-item.active b,.step-list-item.active strong{color:#087d6d}
.drop-zone{margin-top:22px;border:1.5px dashed #b9c6d2;border-radius:15px;background:#fbfcfd;padding:62px 22px;text-align:center;transition:.15s}.drop-zone.drag{border-color:var(--teal);background:#effaf7}.drop-icon{width:55px;height:55px;border-radius:15px;display:grid;place-items:center;background:var(--teal-soft);color:#087d6d;font-size:27px;margin:0 auto 14px}.drop-zone h3{font-size:22px;margin:0 0 5px}.drop-zone p{color:var(--muted);margin-bottom:18px}.selected-file{min-height:20px;color:#4e6173;font-size:12px;margin-top:14px;overflow-wrap:anywhere}.source-note{margin-top:17px;background:#f6f8fa;border:1px solid #e5ebf0;border-radius:12px;padding:12px 13px;display:flex;gap:9px;font-size:11px}.source-note strong{color:#087d6d;white-space:nowrap}.source-note span{color:var(--muted)}
.scan-card{background:var(--ink);color:#fff;border-color:var(--ink)}.scan-card p{color:#b7c4d1;font-size:12px}.scan-card h3{margin:8px 0}.scan-card-head{display:flex;align-items:center;gap:10px}.scan-glyph{width:28px;height:28px;border:1px solid #ffffff2b;border-radius:8px;display:grid;place-items:center;color:#64d9c8}.scan-summary{font-size:10px;color:#91a1b1;margin-top:9px}
.result-workspace{max-width:1180px;margin:24px auto 0;scroll-margin-top:90px}.result-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;border:1px solid var(--line);background:#fff;border-radius:18px;padding:20px 22px;box-shadow:var(--shadow)}.result-toolbar h2{margin:7px 0 3px;font-size:26px;letter-spacing:-.03em}.result-source{font-size:11px;color:var(--muted)}.result-actions{display:flex;gap:8px;flex-wrap:wrap}.analysis-shell{margin-top:13px}.analysis-summary{display:grid;grid-template-columns:1.4fr .9fr;gap:13px}.analysis-summary-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:21px;box-shadow:var(--shadow)}.analysis-summary-card h3{margin:6px 0 8px}.analysis-summary-text{color:#4f6173;line-height:1.7}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.meta-box{background:#f5f8fa;border-radius:11px;padding:12px}.meta-box span{display:block;color:#8a98a7;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.meta-box strong{display:block;font-size:11px;overflow-wrap:anywhere}.tab-bar{margin-top:13px;display:flex;gap:6px;overflow:auto;border-bottom:1px solid var(--line);padding-bottom:8px}.result-tab{white-space:nowrap;border:1px solid transparent;background:transparent;color:var(--muted);padding:8px 11px;border-radius:9px;font-size:11px;font-weight:800}.result-tab.active{background:var(--teal-soft);color:#087d6d}.result-pane{display:none;margin-top:12px}.result-pane.active{display:block}.result-pane .panel{box-shadow:none}
.compliance-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.compliance-card{padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff}.compliance-card strong{display:block;font-size:26px}.compliance-card span{font-size:10px;color:var(--muted)}.status-strip{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.status-chip{font-size:10px;padding:6px 9px;border-radius:999px;font-weight:800}.status-chip.supported{background:#e4f7f2;color:#087d6d}.status-chip.confirm{background:#fff4da;color:#946500}.status-chip.missing{background:#fbecef;color:#ae4150}
.requirements-table{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}.req-row{display:grid;grid-template-columns:76px 1.4fr .65fr .8fr;gap:10px;padding:13px 15px;border-top:1px solid var(--line);align-items:start}.req-row:first-child{border-top:0}.req-head{background:#f8fafb;color:#8a98a7;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.req-row>div{min-width:0}.req-id{font-weight:800;font-size:11px}.req-text{font-size:12px}.req-sub{font-size:10px;color:var(--muted);margin-top:3px}.badge{display:inline-flex;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:800}.badge.supported{background:#e4f7f2;color:#087d6d}.badge.needs_confirmation{background:#fff4da;color:#946500}.badge.missing{background:#fbecef;color:#ae4150}
.draft-shell{background:var(--ink);color:#eaf1f7;border-radius:14px;padding:24px}.draft-shell h3{color:#fff}.draft-shell p{color:#c0cbd6;line-height:1.75}.draft-section{padding:16px 0;border-top:1px solid #ffffff16}.draft-section strong{display:block;color:#fff;margin-bottom:7px}.draft-section small{color:#8fa0b0}.evidence-list,.risk-list{display:grid;gap:10px}.evidence-row,.risk-row{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff}.evidence-row b{display:block;font-size:12px}.evidence-row span,.risk-row{font-size:11px;color:var(--muted)}.empty-pane{padding:28px;color:var(--muted);border:1px dashed var(--line-2);border-radius:12px;text-align:center}
.knowledge-grid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:18px}.knowledge-form{display:grid;grid-template-columns:1.25fr .8fr;gap:12px}.knowledge-form label{font-size:11px;color:#5f7184;font-weight:800}.knowledge-form input,.knowledge-form select,.knowledge-form textarea,.search-row input{width:100%;margin-top:6px;padding:12px 13px;border:1px solid var(--line);background:#fff;border-radius:10px;outline:0}.knowledge-form textarea{min-height:180px;resize:vertical}.knowledge-form input:focus,.knowledge-form select:focus,.knowledge-form textarea:focus,.search-row input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(22,184,159,.08)}.full{grid-column:1/-1}.check-row{display:flex;align-items:center;gap:7px;font-weight:600!important;color:var(--muted)!important}.check-row input{width:auto;margin:0}.search-row{margin:2px 0 13px}.record-list{display:grid;gap:9px;max-height:600px;overflow:auto;padding-right:2px}.record{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fcfdfe}.record-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.record strong{font-size:12px}.record small{color:var(--muted-2);font-size:10px}.record p{white-space:pre-wrap;color:#506274;font-size:11px;margin:8px 0 10px}.record-actions{display:flex;gap:6px}.mini-button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 8px;font-size:10px;font-weight:800}.mini-button.danger{color:var(--danger)}
.history-panel{max-width:1180px;margin:0 auto}.history-head,.history-row{display:grid;grid-template-columns:minmax(0,1.8fr) 140px 160px 88px;gap:12px;align-items:center}.history-head{color:#8a98a7;font-size:9px;letter-spacing:.1em;font-weight:800;padding:0 14px 10px}.history-row{padding:14px;border-top:1px solid var(--line)}.history-row strong{font-size:12px;display:block}.history-row small{font-size:10px;color:var(--muted)}.history-count{font-size:11px}.history-date{font-size:10px;color:var(--muted)}.history-action{justify-self:end}
.auth-gate{position:fixed;inset:0;background:radial-gradient(circle at 10% 10%,#12243a 0,#07111f 40%,#050b13 100%);z-index:100;overflow:auto;padding:28px}.auth-shell{width:min(1120px,100%);margin:auto}.auth-brand{display:flex;align-items:center;gap:12px;color:#fff;margin-bottom:28px}.auth-brand>div:last-child{display:grid}.auth-brand strong{font-size:14px}.auth-brand span{color:#91a1b2;font-size:10px;margin-top:2px}.auth-columns{display:grid;grid-template-columns:1.25fr .8fr;gap:30px;align-items:center}.auth-intro{padding:18px 10px 18px 0}.auth-intro h1{color:#fff;max-width:680px;font-size:clamp(40px,5.5vw,68px);line-height:.97;letter-spacing:-.05em;margin:10px 0 18px}.auth-intro>p{max-width:640px;color:#b7c4d0;font-size:16px}.auth-proof{display:grid;gap:9px;margin-top:25px;max-width:520px}.auth-proof div{border:1px solid #ffffff14;background:#ffffff07;border-radius:12px;padding:12px 13px;display:flex;gap:11px;align-items:center;color:#d8e1e8;font-size:11px}.auth-proof b{color:#69dbca;font-size:10px}.auth-card{background:#fff;border-radius:22px;padding:30px;box-shadow:var(--shadow-lg)}.auth-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.auth-card h2{font-size:29px;line-height:1.05;margin:18px 0 9px}.auth-card>p{color:var(--muted);font-size:13px;margin-bottom:20px}.auth-card form{display:grid;gap:11px}.auth-card label{color:#526477;font-size:11px;font-weight:800}.auth-card input{width:100%;margin-top:6px;padding:13px;border:1px solid var(--line);border-radius:10px;outline:0}.auth-card input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(22,184,159,.09)}.auth-card .text-link{margin-top:14px}.auth-message{min-height:18px;margin-top:12px;color:var(--muted);font-size:11px}.auth-message.error{color:var(--danger)}.auth-message.success{color:#087d6d}.auth-footer{border-top:1px solid var(--line);margin-top:20px;padding-top:14px;color:var(--muted-2);font-size:10px}
.modal{position:fixed;inset:0;background:#03101ecc;backdrop-filter:blur(8px);display:grid;place-items:center;padding:18px;z-index:120}.scanner-card{width:min(520px,100%);background:#fff;border-radius:20px;padding:22px;box-shadow:var(--shadow-lg)}.scanner-head{display:flex;justify-content:space-between;align-items:flex-start}.scanner-head h2{margin:6px 0}.scanner-card p{color:var(--muted);font-size:12px}.icon-button{width:35px;height:35px;border-radius:9px;border:1px solid var(--line);background:#fff;font-size:23px;line-height:1;color:#667789}.scanner-card video{width:100%;aspect-ratio:4/3;object-fit:cover;background:#06111e;border-radius:14px;margin:8px 0 11px}.scanner-status{font-size:11px;color:var(--muted);margin-bottom:10px}
.toast-root{position:fixed;top:16px;right:16px;z-index:150;display:grid;gap:8px}.toast{min-width:250px;max-width:360px;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-lg);font-size:11px}.toast strong{display:block;margin-bottom:2px}.toast.success{border-color:#b9eadf}.toast.error{border-color:#f0ccd2}.app-footer{max-width:1180px;margin:0 auto;padding:0 18px 28px;color:#8a98a7;font-size:9px}
[hidden]{display:none!important}
@media(max-width:1100px){.app-shell{grid-template-columns:215px 1fr}.content{padding:32px 26px}.overview-grid{grid-template-columns:1fr}.response-workbench{grid-template-columns:1fr}.response-steps{grid-template-columns:1fr 1fr}.knowledge-grid{grid-template-columns:1fr}.analysis-summary{grid-template-columns:1fr}}
@media(max-width:780px){
  .app-shell{display:block}.sidebar{display:none}.topbar{height:66px;padding:0 15px}.mobile-brand{display:flex;align-items:center;gap:8px}.mobile-brand strong{font-size:12px;color:var(--text)}.mobile-brand em{color:var(--teal);font-style:normal}.topbar-title{display:none}.topbar-actions{gap:8px}.status-dot{font-size:9px}.button.ghost{padding:8px 10px;font-size:11px}
  .mobile-nav{display:flex;position:sticky;top:66px;z-index:35;overflow:auto;gap:4px;background:#fff;border-bottom:1px solid var(--line);padding:8px 10px}.mobile-nav .nav-item{white-space:nowrap;font-size:11px;padding:8px 10px}
  .content{padding:24px 14px 42px}.page-head{display:block;margin-bottom:23px}.page-head h1{font-size:41px}.hero-head h1{font-size:46px}.hero-head .button{width:100%;margin-top:20px}.metric-grid{grid-template-columns:1fr 1fr}.metric-card:last-child{grid-column:1/-1}.metric-card strong{font-size:24px}
  .workflow-rail{display:grid;gap:0}.flow-connector{display:none}.flow-step{min-width:0;border-top:1px solid var(--line);padding:11px 0}.flow-step:first-child{border-top:0}.workflow-caption{margin-top:16px}
  .panel{padding:19px;border-radius:15px}.response-steps{grid-template-columns:1fr}.drop-zone{padding:48px 18px}.result-toolbar{display:block}.result-actions{margin-top:13px}.result-actions .button{flex:1}.compliance-grid{grid-template-columns:1fr 1fr}.req-row{grid-template-columns:64px 1fr}.req-row.req-head{display:none}.req-row>div:nth-child(3),.req-row>div:nth-child(4){grid-column:2}
  .history-head{display:none}.history-row{grid-template-columns:1fr auto;gap:7px}.history-row .history-count,.history-row .history-date{grid-column:1}.history-row .history-action{grid-row:1/4;grid-column:2}
  .knowledge-form{grid-template-columns:1fr}.full{grid-column:auto}
  .auth-gate{padding:15px}.auth-columns{grid-template-columns:1fr}.auth-intro{padding:10px 0}.auth-intro h1{font-size:42px}.auth-proof{display:none}.auth-brand{margin-bottom:14px}.auth-card{padding:23px;border-radius:18px}
}
@media(max-width:460px){
  .page-head h1{font-size:36px}.hero-head h1{font-size:42px}.metric-grid{grid-template-columns:1fr}.metric-card:last-child{grid-column:auto}.meta-grid{grid-template-columns:1fr 1fr}.compliance-grid{grid-template-columns:1fr}.result-actions{display:grid;grid-template-columns:1fr}.auth-intro{display:none}
}
@media print{
  body{background:#fff}.sidebar,.topbar,.mobile-nav,.app-footer,.page-head,.metric-grid,.overview-grid,.recent-card,.response-workbench,.result-toolbar .result-actions,.result-toolbar .section-kicker,.result-source,.toast-root{display:none!important}.main-shell{display:block}.content{padding:0}.view{display:none!important}.view#view-new-response{display:block!important}.result-workspace{display:block!important;max-width:none;margin:0}.result-toolbar{border:0;box-shadow:none;padding:0 0 15px}.analysis-shell{margin-top:0}.tab-bar{display:none!important}.result-pane{display:block!important}.panel,.analysis-summary-card,.analysis-summary-card{box-shadow:none}.draft-shell{color:#111;background:#f5f7f9}.draft-shell p{color:#3d4b58}
}
