/* DS3 workspace: neutral canvas, brand-led hierarchy, compact enterprise controls.
   Reference principles: Fluent 2 color/layout, Carbon tables, Atlassian spacing.
   Screen-only: document print layouts are preserved. */
@media screen {
 body.ops-shell {
  --op-bg:#f5f6fa;--op-surface:#fff;--op-ink:#202538;--op-muted:#626b7f;
  --op-line:#e3e6ee;--op-side:#2b2340;--op-accent:#662d91;--op-red:#b7202e;
  --ds3-soft:#f1eaf8;--ds3-hover:#f8f6fb;--ds3-button-line:#d8dce6;--ds3-button-text:#454d62;
  --ds3-shadow:0 2px 5px #22254004;--ds3-focus:#8b5cb2;
  font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5;
  background:var(--op-bg);color:var(--op-ink);
 }
 .ops-shell :is(button,input,select,textarea){font-family:inherit}
 .ops-shell .ops-side{background:var(--op-surface);border-right:1px solid var(--op-line);box-shadow:none;padding:20px 12px 14px}
 .ops-shell .ops-brand{padding:0 10px 16px;border-bottom:1px solid var(--op-line);margin-bottom:12px}
 .ops-shell .ops-brand .ds3-logo-frame{width:158px;height:78px;margin:0 auto}
 .ops-shell .ops-brand small{font-size:9px;letter-spacing:1.4px;color:var(--op-muted);margin-top:7px;text-align:center;line-height:1.5}
 .ops-shell .ops-side nav{gap:3px}
 .ops-shell .enterprise-nav-label{font-size:9px;font-weight:700;color:#7c8293;letter-spacing:1px;margin:12px 12px 7px}
 .ops-shell .ops-side nav button{border-radius:7px;min-height:42px;padding:10px 12px;font-size:13px;font-weight:500;color:#555d70;gap:11px}
 .ops-shell .ops-side nav button svg{width:19px;height:19px;flex-shrink:0;stroke-width:1.6}
 .ops-shell .ops-side nav button:hover{background:var(--ds3-hover);color:var(--op-accent)}
 .ops-shell .ops-side nav button.active{background:var(--ds3-soft);color:var(--op-accent);box-shadow:inset 3px 0 var(--op-accent);font-weight:700}
 .ops-shell .ops-side-foot{border-top:1px solid var(--op-line);padding:12px 8px 0}
 .ops-shell .ops-side-foot .ops-side-account{padding:8px 0 10px}
 .ops-shell .ops-side-foot strong{color:var(--op-ink);font-size:12px}
 .ops-shell .ops-side-foot small{color:var(--op-muted)}
 .ops-shell .ops-side-foot>button:last-child{border-color:var(--op-line);font-size:11px;color:var(--op-muted);border-radius:6px;padding:5px 10px}
 .ops-shell .m-header{padding:16px 26px;background:var(--op-surface);border-bottom:1px solid var(--op-line);gap:16px;min-height:72px}
 .ops-shell .ops-quick-search{max-width:460px;background:var(--op-bg);border-color:transparent;border-radius:8px;min-height:38px;padding:8px 12px;color:var(--op-muted)}
 .ops-shell .ops-quick-search kbd{background:var(--op-surface);border:1px solid var(--op-line);color:var(--op-muted)}
 .ops-shell .ops-top-actions{gap:8px}
 .ops-shell .ops-top-actions .m-header-refresh{background:var(--op-surface);border-color:var(--op-line);color:var(--op-muted);border-radius:7px}
 .ops-shell .ops-account-badge{background:var(--ds3-soft);color:var(--op-accent);border:1px solid #d9c9e8}
 .ops-shell .ops-account-menu{border-color:var(--op-line);box-shadow:0 8px 30px #25203b20}
 .ops-shell .m-page{padding:24px 26px 40px}
 .ops-shell .m-page-title{font-size:25px;font-weight:700;letter-spacing:-.5px;margin:0 0 5px}
 .ops-shell .m-subtitle{font-size:13px;margin:0 0 18px;line-height:1.5;color:var(--op-muted)}
 .ops-shell .ops-page-heading{margin-bottom:18px}
 .ops-shell :is(.ops-box,.m-record,.register-card,.m-profile,.ops-register-tools,.ops-process-picker){border:1px solid var(--op-line);border-radius:10px;background:var(--op-surface);box-shadow:var(--ds3-shadow)}
 .ops-shell .ops-box{padding:18px}
 .ops-shell .ops-box h2{font-size:15px;line-height:1.4;margin-bottom:14px;letter-spacing:-.15px;font-weight:700;color:var(--op-ink)}
 .ops-shell .ops-hero{background:var(--op-surface);color:var(--op-ink);border:1px solid var(--op-line);border-left:4px solid #662d91;box-shadow:var(--ds3-shadow);border-radius:10px;padding:20px 24px;min-height:128px;margin:0}
 .ops-shell .ops-hero>div:first-child>small{display:block;font-size:9px;letter-spacing:1.4px;color:var(--op-accent);font-weight:700;margin-bottom:7px}
 .ops-shell .ops-hero h1{color:var(--op-ink);font-size:26px;letter-spacing:-.6px;margin:0 0 6px;line-height:1.3}
 .ops-shell .ops-hero p{color:var(--op-muted);font-size:13px}
 .ops-shell .ops-ring{width:84px;height:84px;background:conic-gradient(#662d91 var(--progress),var(--op-line) 0)}
 .ops-shell .ops-ring:before{background:var(--op-surface);inset:6px}
 .ops-shell .ops-ring b{color:var(--op-accent);font-size:22px}
 .ops-shell .ops-hero .ops-ring small{color:var(--op-muted);font-size:8px;max-width:65px;text-align:center;line-height:1.3}
 .ops-shell .ops-scope{font-size:11px;margin:10px 0;color:var(--op-muted)}
 .ops-shell .ops-stats{gap:12px;margin:12px 0 18px}
 .ops-shell .ops-stats button{position:relative;border:1px solid var(--op-line);border-radius:10px;padding:17px 16px;min-height:108px;box-shadow:var(--ds3-shadow);background:var(--op-surface)}
 .ops-shell .ops-stats button:hover{border-color:#c5b1d8;background:var(--ds3-hover)}
 .ops-shell .ops-stats strong{font-size:27px;line-height:1.2;font-weight:700;letter-spacing:-.7px;color:var(--op-ink)}
 .ops-shell .ops-stats span{font-size:12px;margin-top:10px;line-height:1.4;color:var(--op-muted);padding-right:0}
 .enterprise-stat-icon{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--ds3-soft);color:var(--op-accent)}
 .enterprise-stat-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
 .ops-shell .ops-grid{gap:14px;margin-top:14px}
 .ops-shell .ops-box>.m-empty{background:var(--op-bg);border:1px dashed var(--op-line);border-radius:8px;padding:22px 14px;font-size:12px}
 .ops-shell .ops-load{margin:11px 0;grid-template-columns:150px 1fr 24px;font-size:12px}
 .ops-shell .ops-load>span:nth-child(2){height:5px;background:var(--op-line)}
 .ops-shell .ops-load i{background:#8756ac}
 .ops-shell .ops-alert{border-left-width:3px;background:#faf7ef;line-height:1.5;font-size:13px}
 .ops-shell .ops-alert.bad{background:#fff4f3;border-color:#b7202e}
 .ops-shell .proto-segment{height:8px;margin:8px 0 12px}
 .ops-shell .proto-legend{gap:8px 14px;line-height:1.5}
 .ops-shell .smart-today{margin-top:14px}
 .ops-shell .smart-shortcuts{margin:12px 0;gap:8px}
 .ops-shell .smart-today-item{background:var(--op-surface);border-radius:8px;border-color:var(--op-line)}
 .ops-shell .smart-today-item:hover{background:var(--ds3-hover)}
 .ops-shell :is(.m-page,#detail) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
  border-color:#d9dce5;background:var(--op-surface);color:var(--op-ink);border-radius:6px;font-size:13px;box-shadow:none;
 }
 .ops-shell :is(input,select,textarea):focus{border-color:#8954b0;outline:2px solid #8954b024;outline-offset:0}
 .ops-shell :is(input,select,textarea):disabled{background:var(--op-bg);color:var(--op-muted);opacity:1}
 .ops-shell :is(button,summary):focus-visible{outline:2px solid var(--ds3-focus);outline-offset:2px}
 .ops-shell button.primary.primary{background:#662d91;border-color:#662d91;box-shadow:0 1px 2px #33203c10;border-radius:6px}
 .ops-shell button.primary.primary:hover:not(:disabled){background:#542277;border-color:#542277}
 .ops-shell :is(.m-chips,.cfg-tabs,.ops-view-switch) button{border-radius:6px;background:var(--op-surface);border-color:var(--op-line);color:var(--op-muted)}
 .ops-shell :is(.m-chips,.cfg-tabs,.ops-view-switch) button.active{background:var(--ds3-soft);border-color:#d7c5e7;color:var(--op-accent);font-weight:600}
 .ops-shell .proto-split{gap:16px;grid-template-columns:310px minmax(0,1fr)}
 .ops-shell .proto-form label{font-size:12px;margin:9px 0 4px}
 .ops-shell .proto-form input,.ops-shell .proto-form select{min-height:36px}
 .ops-shell .proto-form textarea{min-height:84px}
 .ops-shell .proto-form .proto-note{font-size:11px;line-height:1.5}
 .ops-shell .ops-register-tools{padding:12px;margin-bottom:12px;gap:8px}
 .ops-shell .proto-split:not(.proto-doc-layout) .proto-register-content .ops-register-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
 .ops-shell .proto-split:not(.proto-doc-layout) .proto-register-content .ops-register-tools>input{grid-column:1/-1;min-width:0;width:100%}
 .ops-shell .proto-split:not(.proto-doc-layout) .proto-register-content .ops-register-tools>label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;font-size:11px}
 .ops-shell .proto-split:not(.proto-doc-layout) .proto-register-content .ops-register-tools>label select{width:100%;max-width:none;min-width:0}
 .ops-shell .proto-split:not(.proto-doc-layout) .proto-register-content .ops-view-switch{grid-column:1/-1;gap:5px;flex-wrap:wrap}
 .ops-shell .ops-register-tools :is(input,select){min-height:34px;font-size:12px;border-radius:6px;padding:7px 9px}
 .ops-shell .ops-table-scroll,.ops-shell .process-table-wrap{border:1px solid var(--op-line);border-radius:9px;background:var(--op-surface)}
 .ops-shell :is(.ops-data-table,.process-table,.staff-table){font-size:13px;border-collapse:collapse}
 .ops-shell :is(.ops-data-table,.process-table,.staff-table) th{padding:11px 12px;background:var(--op-bg);color:var(--op-muted);font-size:11px;font-weight:600;border-bottom:1px solid var(--op-line);white-space:normal}
 .ops-shell :is(.ops-data-table,.process-table,.staff-table) td{padding:11px 12px;border-bottom:1px solid var(--op-line);vertical-align:middle}
 .ops-shell :is(.ops-data-table,.process-table,.staff-table) tbody tr:hover{background:var(--ds3-hover)}
 .ops-shell :is(.ops-data-table,.process-table) .late td{background:#fff3f2;color:#992331}
 .ops-shell .ops-kanban-column{background:#eef0f6;border-color:var(--op-line);border-radius:9px;padding:10px}
 .ops-shell .ops-kanban-column h2{font-size:13px;color:var(--op-muted);margin:3px 0 12px}
 .ops-shell .register-card,.ops-shell .proto-task-card{padding:14px;border-radius:8px;background:var(--op-surface)}
 .ops-shell .ops-card-title{font-size:14px;line-height:1.45}
 .ops-shell .process-stats>div{background:var(--op-surface);border:1px solid var(--op-line);border-radius:9px;padding:14px}
 .ops-shell .process-stats strong{color:var(--op-accent);font-size:25px}
 .ops-shell .process-stats span{color:var(--op-muted);font-size:12px}
 .ops-shell .process-filters{gap:8px}
 .ops-shell .process-filters :is(input,select){min-height:36px;padding:8px 10px}
 .ops-shell .ops-process-picker button{font-size:13px;padding:11px 9px}
 .ops-shell .ops-process-picker button.active{background:var(--ds3-soft);color:var(--op-accent)}
 .ops-shell .cfg-inline-grid{gap:14px}
 .ops-shell .cfg-inline-grid>.proto-config-card{border:1px solid var(--op-line);border-radius:9px;box-shadow:var(--ds3-shadow)}
 .ops-shell .cfg-inline-grid>.proto-access-card{border-left:3px solid var(--op-accent)}
 .ops-shell .cfg-inline-grid>.proto-config-card>h2{font-size:14px;padding-bottom:10px;border-bottom:1px solid var(--op-line)}
 .ops-shell .cfg-inline-grid>.proto-access-card>h2{border:0;padding:0}
 .ops-shell .cfg-inline-list .cfg-inline-editor{border-bottom-color:var(--op-line)}
 .ops-shell .pd-list{background:var(--op-bg);border:1px solid var(--op-line);border-radius:8px}
 .ops-shell .pd-list>button{border-bottom-color:var(--op-line)}
 .ops-shell .pd-list>button.active{background:var(--ds3-soft);color:var(--op-accent)}
 .ops-shell .pd-list>h3{color:var(--op-muted);font-size:12px}
 .ops-shell .pd-savebar{border-color:#dfd3e9;box-shadow:0 2px 8px #30203b08}
 .ops-shell .pd-step{border-bottom-color:var(--op-line)}
 .ops-shell .pd-step-templates{background:var(--op-bg);border:1px solid var(--op-line)}
 .ops-shell .pd-step-templates summary{font-size:11px;color:var(--op-muted)}
 .ops-shell .pd-dot{background:var(--ds3-soft);color:var(--op-accent);font-weight:700}
 .ops-shell #detail{border:1px solid var(--op-line);border-radius:12px;background:var(--op-surface);box-shadow:0 18px 70px #20203540;color:var(--op-ink)}
 .ops-shell #detail::backdrop{background:#171b3266}
 .ops-shell #detail .modal-head{border-bottom:1px solid var(--op-line);background:var(--op-surface)}
 .ops-shell #detail .modal-head h2{color:var(--op-ink);font-size:21px;letter-spacing:-.3px}
 .ops-shell #detail label{color:var(--op-muted)}
 .ops-shell #detail .note{background:var(--op-bg);color:var(--op-muted);border-color:#c2add4}
 .ops-shell .staff-action-options,.ops-shell .ops-account-menu{background:var(--op-surface)}
 .ops-shell .m-nav{box-shadow:0 -2px 12px #25203506}
 .auth{background:#f4f5f9}
 .auth-card{border:1px solid #e0e3ec;border-top:3px solid #662d91;border-radius:14px;box-shadow:0 12px 40px #26243b0d}
 .auth-card h1{color:#262334;font-size:25px;letter-spacing:-.4px}
 .auth-card .note{background:#f5f2f9;border-left:2px solid #a080bc;border-radius:6px}
}
@media screen and (min-width:761px) {
 .ops-shell .ops-side{width:224px}
 .ops-shell #operations-app,.ops-shell[data-appview=inventory] #workspace>.layout{margin-left:224px}
}
@media screen and (max-width:1100px) and (min-width:761px) {
 .ops-shell .ops-side{width:204px;padding-left:10px;padding-right:10px}
 .ops-shell #operations-app,.ops-shell[data-appview=inventory] #workspace>.layout{margin-left:204px}
 .ops-shell .m-header,.ops-shell .m-page{padding-left:20px;padding-right:20px}
 .ops-shell .proto-split{grid-template-columns:270px minmax(0,1fr)}
 .ops-shell .ops-stats strong{font-size:24px}
}
@media screen and (max-width:800px){.ops-shell .proto-split{grid-template-columns:1fr}}
@media screen and (max-width:760px){
 .ops-shell .m-header{padding:calc(10px + env(safe-area-inset-top)) 14px 12px;gap:8px}
 .ops-shell .ops-mobile-brand{gap:10px;margin:0}
 .ops-shell .ops-mobile-brand .ds3-logo-frame{width:78px;height:40px}
 .ops-shell .ops-mobile-brand strong{font-size:9px;letter-spacing:.5px}
 .ops-shell .m-page{padding:16px 14px 30px}
 .ops-shell .ops-hero{min-height:116px;padding:16px;gap:10px}
 .ops-shell .ops-hero h1{font-size:21px;max-width:none}
 .ops-shell .ops-hero p{font-size:12px}
 .ops-shell .ops-ring{width:70px;height:70px}
 .ops-shell .ops-ring b{font-size:19px}
 .ops-shell .ops-stats{gap:10px}
 .ops-shell .ops-stats button{padding:15px 12px;min-height:103px}
 .ops-shell .ops-stats span{font-size:11px}
 .enterprise-stat-icon{right:10px;top:12px;width:27px;height:27px}
 .ops-shell .ops-box{padding:15px}
 .ops-shell .ops-load{grid-template-columns:135px 1fr 20px;font-size:11px}
 .ops-shell :is(.proto-form,.cfg-inline-editor) :is(input:not([type=checkbox]),select){min-height:40px}
 .ops-shell .ops-register-tools{gap:8px}
 .ops-shell .proto-split:not(.proto-doc-layout) .proto-register-content .ops-register-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ops-shell .ops-kanban{grid-auto-columns:260px}
 .ops-shell .ops-account-menu{right:0}
}
@media screen {
 body.ops-shell.ops-dark{--op-bg:#171923;--op-surface:#222532;--op-ink:#eff0f7;--op-muted:#b1b7ca;--op-line:#373c4e;--op-accent:#d0a9ec;--op-side:#222532;--ds3-soft:#372b49;--ds3-hover:#2b2c3b;--ds3-button-text:#dce0ee;--ds3-button-line:#454658}
 .ops-shell.ops-dark .ops-side nav button{color:#bdc2d3}
 .ops-shell.ops-dark .ops-side nav button.active{color:#e0bfff}
 .ops-shell.ops-dark .ds3-logo-frame{background:#fff;border-radius:6px;padding:4px}
 .ops-shell.ops-dark :is(.m-page,#detail) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:#45495c}
 .ops-shell.ops-dark .ops-ring{background:conic-gradient(#bd93dc var(--progress),var(--op-line) 0)}
 .ops-shell.ops-dark .ops-alert.bad,.ops-shell.ops-dark :is(.process-table,.ops-data-table) .late td{background:#442830;color:#ffb8c2}
 .ops-shell.ops-dark .ops-kanban-column{background:#1c1f2b}
 .ops-shell.ops-dark .process-stats>div{background:var(--op-surface)}
}
@media(prefers-reduced-motion:reduce){.ops-shell *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
