.ops-workbench{padding:18px;margin:0 0 14px;border-color:#bedbd5;background:linear-gradient(135deg,#f4fbf9,#fff 62%)}
.ops-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.ops-head h2{font-size:17px;margin:4px 0}.ops-head p{font-size:11px;line-height:1.5;color:#65768b;margin:5px 0}.ops-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.ops-pipeline{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:15px 0;padding:10px 12px;border:1px solid #e0e9ed;border-radius:8px;background:#fff;color:#63748a;font-size:9px}.ops-pipeline b{color:#43566d}.ops-pipeline .current{color:#087c70;font-weight:800}.ops-summary{display:flex;align-items:center;gap:12px;margin:12px 0;padding:12px 14px;border-radius:8px;border:1px solid #dce6ed;background:#fff}.ops-summary strong{font-size:12px;color:#20334b}.ops-summary small{display:block;color:#6b7b8f;font-size:9px;line-height:1.45;margin-top:3px}.ops-state{flex:none;padding:6px 9px;border-radius:999px;background:#eef2f6;color:#526276;font-size:9px;font-weight:800}.ops-state.blocked{background:#fff1ea;color:#9b4329}.ops-state.ready{background:#e6f7f2;color:#117966}.ops-state.review{background:#fff6df;color:#83631b}.ops-message{display:none;padding:10px 12px;border-radius:7px;margin:10px 0;font-size:10px;line-height:1.5}.ops-message.show{display:block}.ops-message.error{background:#fff1ee;border:1px solid #f0c9c1;color:#8c392e}.ops-message.info{background:#eff7fb;border:1px solid #cce0ea;color:#405e70}.ops-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}.ops-kpi{padding:11px;border:1px solid #e0e7ec;background:#fff;border-radius:8px}.ops-kpi b{display:block;font-size:15px;color:#20334b}.ops-kpi span{display:block;margin-top:3px;color:#718095;font-size:9px}.ops-protocols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.ops-protocol{min-width:0;padding:13px;border:1px solid #e0e7ec;background:#fff;border-radius:9px}.ops-protocol-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.ops-protocol-head h3{font-size:11px;line-height:1.4;margin:0;color:#233750}.ops-protocol-head p{font-size:9px;color:#718095;margin:4px 0 0}.ops-protocol .ops-state{font-size:8px}.ops-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.ops-fact{padding:7px 8px;background:#f7f9fb;border-radius:6px}.ops-fact b{display:block;font-size:10px;color:#354961}.ops-fact span{font-size:8px;color:#718095}.ops-observation{font-size:9px;line-height:1.5;color:#56677c;margin:9px 0}.ops-gap-list{display:flex;flex-direction:column;gap:5px;margin:8px 0}.ops-gap{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:7px 8px;border:1px solid #edf0f3;border-radius:6px;font-size:9px;color:#596a7e}.ops-gap b{color:#8291a1;font-size:8px;white-space:nowrap}.ops-protocol-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.ops-protocol-actions .btn{font-size:9px;padding:6px 8px}.ops-empty{padding:18px;border:1px dashed #cad8df;border-radius:8px;background:#fff;color:#66788c;font-size:10px;line-height:1.5}.ops-subtle{font-size:9px;color:#77879b;line-height:1.5;margin:8px 0 0}.ops-case-action{font-size:9px;padding:6px 9px;white-space:nowrap}.ops-row-cell{display:flex;align-items:center;justify-content:space-between;gap:8px}.ops-row-status{font-size:8px;color:#6c7d90;white-space:nowrap}.ops-row-status.blocked{color:#a34b31}.ops-row-status.review{color:#8a681c}.ops-batch-btn{white-space:nowrap}
@media(max-width:900px){.ops-head{flex-direction:column}.ops-actions{justify-content:flex-start}.ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-protocols{grid-template-columns:1fr}}
@media(max-width:600px){.ops-actions .btn{flex:1}.ops-kpis{grid-template-columns:1fr 1fr}.ops-facts{grid-template-columns:1fr}}
.ops-ai-setup,.ops-ai-integrated{margin:13px 0;padding:14px;border:1px solid #dce8eb;border-radius:9px;background:#fbfdfd}.ops-ai-setup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ops-ai-setup h3{margin:4px 0;color:#20334b;font-size:12px}.ops-ai-setup-head p{margin:5px 0;color:#65768b;font-size:9px;line-height:1.5}.ops-ai-form{display:grid;grid-template-columns:minmax(240px,1fr) minmax(170px,.55fr) auto;gap:9px;align-items:end;margin:11px 0}.ops-ai-form label{display:flex;flex-direction:column;gap:5px;color:#56677c;font-size:9px;font-weight:700}.ops-ai-form input{width:100%;min-width:0;border:1px solid #dce3ec;border-radius:6px;padding:8px 9px;background:white;color:#24334a;font:10px Inter,Segoe UI,Arial,sans-serif}.ops-ai-form input:disabled{background:#f0f3f5;color:#768397}.ops-ai-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 4px}.ops-ai-actions span{font-size:9px;line-height:1.4;color:#718095}.ops-ai-result{margin:10px 0 2px;padding:10px;border:1px solid #dbe7ec;border-radius:7px;background:#f8fbfc}.ops-ai-result.stale{border-color:#e9d8aa;background:#fffaf0}.ops-ai-result-head{display:flex;justify-content:space-between;gap:8px;color:#334961;font-size:9px}.ops-ai-result-head span{font-weight:500;color:#758398;text-align:right}.ops-ai-result>p{margin:5px 0}.ops-ai-findings{display:grid;gap:7px;margin-top:8px}.ops-ai-finding,.ops-ai-conclusion{padding:8px 9px;border:1px solid #e3eaee;border-radius:6px;background:white;font-size:9px;line-height:1.5;color:#53657a}.ops-ai-finding>b,.ops-ai-conclusion>b{display:block;color:#2d435b;margin-bottom:3px}.ops-ai-finding p,.ops-ai-conclusion p{margin:4px 0;white-space:pre-wrap}.ops-ai-finding small,.ops-ai-conclusion small{display:block;margin-top:4px;color:#758398;font-size:8px}.ops-ai-conclusion{margin-top:8px;border-left:3px solid #1d9c8d}.ops-ai-warning{color:#9b512c!important}.ops-ai-details{margin-top:7px;color:#5d6e82;font-size:9px}.ops-ai-details summary{cursor:pointer}.ops-ai-details ul{padding-left:20px}.ops-ai-raw{max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px;border-radius:5px;background:#f2f5f7;color:#45566a;font:9px/1.5 Consolas,monospace}.ops-ai-result .ops-protocol-actions{margin-top:8px}.ops-ai-integrated>.sect{margin:0 0 8px}.ops-ai-setup button:disabled,.ops-protocol-actions button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:760px){.ops-ai-form{grid-template-columns:1fr}.ops-ai-setup-head{flex-direction:column}.ops-ai-result-head{flex-direction:column}}
.ops-ai-finding,.ops-ai-conclusion{font-size:10px;line-height:1.6}.ops-ai-finding small,.ops-ai-conclusion small{font-size:9px;line-height:1.5;overflow-wrap:anywhere}.ops-ai-range-warning{margin-top:8px;padding:9px 10px;border:1px solid #efd6bd;border-radius:6px;background:#fff8f1;font-size:9px;line-height:1.5}.ops-ai-range-warning>b{display:block;color:#8d4927}.ops-ai-range-warning p{margin:5px 0 0;color:#76482e}
.ops-state.incident{background:#fdebed;color:#a23d49}.ops-row-status.incident{color:#a23d49;font-weight:800}.ops-screening-signals{margin:7px 0;padding:0 0 0 18px;color:#83591c;font-size:9px;line-height:1.5}.ops-screening-signals li+li{margin-top:4px}

/* Full-width work area and sequential wizard navigation. */
.shell{display:block;min-height:100vh}.side{display:none!important}main{width:100%;min-width:0}
.top{height:auto;min-height:62px;padding:9px clamp(14px,3vw,38px);gap:14px;flex-wrap:wrap}
.top-brand{display:flex;align-items:center;gap:9px;color:#20334b;text-decoration:none;font-size:14px;white-space:nowrap}
.top-brand .mark{padding:7px 10px}.top-context{display:flex;align-items:center;gap:7px;color:#8693a4;font-size:10px;min-width:0}.top-context b{color:#30445f;font-size:11px}
.top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}.top-actions .btn{padding:7px 9px;font-size:10px}.top-user{display:flex;align-items:center;white-space:nowrap;font-size:10px}
.wizard-shell{margin:14px clamp(14px,3vw,38px) 0;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 3px 11px #14243a08;overflow:hidden}
.wizard-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px}
.wizard-position{display:flex;flex-direction:column;gap:4px}.wizard-position .eyebrow{color:#159383}.wizard-position>b{font-size:12px;color:#263a56}
.wizard-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.wizard-controls .btn{font-size:10px}
.wizard-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #edf0f4}
.wizard-tab{display:flex;align-items:center;gap:10px;min-width:0;position:relative;padding:11px 13px;border:0;border-right:1px solid #edf0f4;background:#fff;color:#69798e;text-align:left;cursor:pointer}
.wizard-tab:last-child{border-right:0}.wizard-tab:hover{background:#f8fbfc}.wizard-tab.active{background:#f0faf8;color:#147d70}
.wizard-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#20a994}
.wizard-number{flex:none;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#eef2f6;color:#718096;font-size:9px;font-weight:800}
.wizard-tab.active .wizard-number{background:#d5f0ea;color:#117b6e}
.wizard-tab>span:last-child{display:grid;gap:3px;min-width:0}.wizard-tab b{font-size:10px;color:#334961}.wizard-tab small{font-size:8px;color:#8491a2;line-height:1.3}
.wrap{width:100%;max-width:1580px;margin:0 auto;padding:20px clamp(14px,3vw,38px) 44px}
.wrap>*{min-width:0}.heading{flex-wrap:wrap}.heading h1{font-size:clamp(20px,2.2vw,26px)}
#overview .metrics{display:none}#overview .grid{display:block}#overview #detail{margin-top:12px}
.panelhead,.history-head{flex-wrap:wrap}.panelhead>div{min-width:0}.panelhead small{line-height:1.45}
.tablewrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
#overview table{min-width:800px}#cases table{min-width:1000px}
#rows1 td:last-child,#rows2 td:last-child{min-width:205px;white-space:normal}
.ops-row-cell{min-width:190px;flex-wrap:wrap;align-items:center}.ops-row-cell .btn{flex:0 0 auto;white-space:nowrap}
.history-filterbar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(5,minmax(120px,1fr)) auto;gap:9px;align-items:end;padding:13px 15px;border-bottom:1px solid #edf0f4}
.history-filterbar label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#64758a;font-size:9px;font-weight:700}
.history-filterbar input,.history-filterbar select{width:100%;min-width:0;height:34px;padding:7px 8px;border:1px solid #dce3ec;border-radius:7px;background:#fff;color:#263a56;font:10px Inter,Segoe UI,Arial,sans-serif}
.history-filterbar input:focus,.history-filterbar select:focus{outline:2px solid #a4e2d8;border-color:#20a994}
.history-filterbar #historyClear{height:34px;white-space:nowrap}
.history-summary{padding:10px 15px;color:#69798e;font-size:10px;border-bottom:1px solid #edf0f4}
.history-empty td{text-align:center!important;padding:22px!important;color:#77879b!important;white-space:normal!important}
.api-status{margin:0}

@media(max-width:1120px){
  .wizard-tabs{grid-template-columns:repeat(5,minmax(138px,1fr));overflow-x:auto}
  .history-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}
  .history-search{grid-column:span 2}
  .history-filterbar #historyClear{width:100%}
}
@media(max-width:760px){
  .top{align-items:flex-start}.top-actions{width:100%;margin-left:0;justify-content:flex-start}.top-user{margin-left:auto}
  .wizard-shell{margin:10px 10px 0}.wizard-bar{align-items:flex-start;flex-direction:column;padding:11px 12px}.wizard-controls{width:100%;justify-content:space-between}
  .wizard-tabs{grid-template-columns:repeat(5,minmax(132px,1fr));overflow-x:auto;scroll-snap-type:x proximity}
  .wizard-tab{scroll-snap-align:start;padding:10px}.wizard-tab small{white-space:normal}
  .wrap{padding:15px 10px 30px}.warning{align-items:flex-start;line-height:1.5}.warning b{white-space:normal}
  .heading{align-items:flex-start;flex-direction:column}.heading>.buttons{width:100%}.heading>.buttons .btn{flex:1}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:1fr}.cards{grid-template-columns:1fr}
  .history-filterbar{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}
  .history-search{grid-column:1/-1}.history-filterbar #historyClear{grid-column:1/-1}
  .history-head{align-items:flex-start}.panelhead{align-items:flex-start}.toolbar{flex-wrap:wrap}
  .ops-head{flex-direction:column}.ops-actions{justify-content:flex-start}.ops-protocols{grid-template-columns:1fr}
}
@media(max-width:600px){
  .top-brand{font-size:12px}.top-context{font-size:9px}.top-actions .btn{flex:1}
  .top-user{display:none}.api-status{font-size:8px}
  .history-filterbar{grid-template-columns:1fr 1fr}.history-filterbar label{font-size:9px}
  #overview .tablewrap,#cases .tablewrap{overflow:visible}
  #overview .tablewrap table,#cases .tablewrap table{display:block;width:100%;min-width:0;border-collapse:separate}
  #overview .tablewrap thead,#cases .tablewrap thead{display:none}
  #overview .tablewrap tbody,#cases .tablewrap tbody{display:grid;gap:9px;padding:9px}
  #overview .tablewrap tr.row,#cases .tablewrap tr.row{display:block;overflow:hidden;border:1px solid #e1e8ed;border-radius:9px;background:#fff;box-shadow:0 2px 8px #182b4008}
  #overview .tablewrap tr.row.sel td{background:#f0faf8}
  #overview .tablewrap td,#cases .tablewrap td{display:grid;grid-template-columns:minmax(90px,.42fr) minmax(0,1fr);align-items:start;gap:8px;padding:8px 10px;border-top:1px solid #edf0f4;white-space:normal;text-align:right;overflow-wrap:anywhere}
  #overview .tablewrap td:first-child,#cases .tablewrap td:first-child{display:block;text-align:left;border-top:0;padding-top:11px;padding-bottom:10px}
  #overview .tablewrap td:first-child:before,#cases .tablewrap td:first-child:before{content:attr(data-label);display:block;margin-bottom:4px;color:#8491a2;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
  #overview .tablewrap td:not(:first-child):before,#cases .tablewrap td:not(:first-child):before{content:attr(data-label);color:#8491a2;font-size:8px;font-weight:800;letter-spacing:.06em;text-align:left;text-transform:uppercase}
  #overview .tablewrap td:last-child,#cases .tablewrap td:last-child{display:block;min-width:0;text-align:left;padding:10px;border-top:1px solid #e8edf1}
  #overview .tablewrap td:last-child:before,#cases .tablewrap td:last-child:before{display:block;margin-bottom:7px}
  .ops-row-cell{display:grid;grid-template-columns:1fr;min-width:0;gap:7px}
  .ops-row-cell .ops-row-status{white-space:normal}
  .ops-row-cell .btn{width:100%;min-height:38px;white-space:normal;text-align:center}
  .caption{max-width:none;white-space:normal}
  .tablewrap table{min-width:0}
}
@media(max-width:380px){
  .top-actions{gap:5px}.top-actions .btn{padding:7px 5px;font-size:9px}
  .history-filterbar{grid-template-columns:1fr}.history-search,.history-filterbar #historyClear{grid-column:auto}
  .wizard-tab{gap:7px;min-width:125px;padding:9px}.wizard-number{width:24px;height:24px}
}
@media(max-width:1000px){
  #overview .tablewrap,#cases .tablewrap{overflow:visible}
  #overview .tablewrap table,#cases .tablewrap table{display:block;width:100%;min-width:0;border-collapse:separate}
  #overview .tablewrap thead,#cases .tablewrap thead{display:none}
  #overview .tablewrap tbody,#cases .tablewrap tbody{display:grid;gap:9px;padding:9px}
  #overview .tablewrap tr.row,#cases .tablewrap tr.row{display:block;overflow:hidden;border:1px solid #e1e8ed;border-radius:9px;background:#fff;box-shadow:0 2px 8px #182b4008}
  #overview .tablewrap tr.row.sel td{background:#f0faf8}
  #overview .tablewrap td,#cases .tablewrap td{display:grid;grid-template-columns:minmax(100px,.42fr) minmax(0,1fr);align-items:start;gap:8px;padding:8px 10px;border-top:1px solid #edf0f4;white-space:normal;text-align:right;overflow-wrap:anywhere}
  #overview .tablewrap td:first-child,#cases .tablewrap td:first-child{display:block;text-align:left;border-top:0;padding-top:11px;padding-bottom:10px}
  #overview .tablewrap td:first-child:before,#cases .tablewrap td:first-child:before{content:attr(data-label);display:block;margin-bottom:4px;color:#8491a2;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
  #overview .tablewrap td:not(:first-child):before,#cases .tablewrap td:not(:first-child):before{content:attr(data-label);color:#8491a2;font-size:8px;font-weight:800;letter-spacing:.06em;text-align:left;text-transform:uppercase}
  #overview .tablewrap td:last-child,#cases .tablewrap td:last-child{display:block;min-width:0;text-align:left;padding:10px;border-top:1px solid #e8edf1}
  #overview .tablewrap td:last-child:before,#cases .tablewrap td:last-child:before{display:block;margin-bottom:7px}
  .ops-row-cell{display:grid;grid-template-columns:1fr;min-width:0;gap:7px}
  .ops-row-cell .ops-row-status{white-space:normal}
  .ops-row-cell .btn{width:100%;min-height:38px;white-space:normal;text-align:center}
  .caption{max-width:none;white-space:normal}
}
.source-file-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px}
.source-file-remove{padding:3px 7px;font-size:10px;line-height:1.2}
