#cosOperationsMount[hidden],#cosOperationsLegacy[hidden],#cosOperationsTechReturn[hidden]{display:none!important}
#cosOperationsFrame{display:block;width:100%;height:100dvh;min-height:0;border:0;background:#03131f}
body.cos-operations-host{overflow:hidden!important}
body.cos-operations-host #appView{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
body.cos-operations-host #appView:has(#view-owner:not(.hidden))>.mobileTop{display:none!important}
/* The legacy owner grid reserves a 220px sidebar. Operations owns this entire
   viewport; keep that grid and its bottom-nav padding only in legacy mode. */
body.cos-operations-host #appView #view-owner:not(.hidden){display:block!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;height:100dvh!important;min-height:0!important}
body.cos-operations-host #cosOperationsMount{width:100%!important;height:100dvh}
#cosOperationsReturn,#cosOperationsTechReturn{position:fixed;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:20000;min-height:44px;margin:0;border:1px solid #2b90ad;background:#082c3c;color:#dffaff;box-shadow:0 4px 20px #0006}
body.cos-operations-legacy:has(#view-owner:not(.hidden)){overflow-y:auto!important;overflow-x:hidden!important;height:auto!important;min-height:100dvh!important}
body.cos-operations-legacy #appView{overflow:visible!important;height:auto!important;max-height:none!important}
@media(max-width:700px){#cosOperationsFrame{min-height:0;height:100dvh}}

#cosProductionAssignmentsButton[hidden],#cosProductionAssignmentsOverlay[hidden]{display:none!important}
#cosProductionAssignmentsButton{position:fixed;right:12px;bottom:calc(148px + env(safe-area-inset-bottom));z-index:19990;min-height:44px;border:1px solid #2b90ad;background:#082c3c;color:#dffaff;box-shadow:0 4px 20px #0006}
#cosProductionAssignmentsOverlay{position:fixed;inset:0;z-index:30000;background:#07121f}
#cosProductionAssignmentsFrame{display:block;width:100%;height:100dvh;border:0;background:#07121f}
#cosProductionAssignmentsClose{position:absolute;right:12px;top:12px;z-index:1;min-height:44px;width:44px;border:1px solid #2b90ad;background:#082c3c;color:#dffaff}
body.cos-production-assignments-open{overflow:hidden!important}
@media(max-width:700px){#cosProductionAssignmentsClose{width:36px;font-size:22px;right:8px;top:8px}}

/* Authenticated native assignments stay visible on the IT landing. */
.cos-native-assignments{margin:12px 0 18px;padding:16px;border:1px solid #3d6681;border-left:4px solid #55c5e8;border-radius:14px;background:#102331;color:#e6edf7}
.cos-native-assignment-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cos-native-assignment-head h2{flex:1;margin:0;min-width:160px;font-size:20px}.cos-native-assignment-head button{min-height:44px;padding:8px 12px;border:1px solid #52748a;background:#173749;color:#e6edf7;border-radius:8px}
.cos-native-assignments>p{margin:8px 0 12px;color:#aec0ce;font-size:13px}.cos-native-assignment-content{display:grid;gap:8px}.cos-native-assignment-content>p{margin:8px 0;color:#bfd0dd}
.cos-native-assignment-row{display:grid;gap:5px;text-align:left;width:100%;min-width:0;padding:12px;border:1px solid #3d6179;border-radius:9px;background:#081927;color:#e6edf7;overflow-wrap:anywhere}.cos-native-assignment-row strong{font-size:15px}.cos-native-assignment-row span{font-size:13px;color:#bbccda}.cos-native-assignment-row small{color:#f3c56b;font-weight:700}.cos-native-assignment-row:hover{border-color:#64c9e5;background:#122e40}
@media(max-width:700px){.cos-native-assignments{padding:12px}.cos-native-assignment-head h2{flex-basis:100%;font-size:18px}}
/* Tech Checks has one front door in VISION. Retain the original tool mounts,
   but do not expose the older, competing full owner dashboard around them. */
body.cos-operations-legacy #appView:has(#view-owner:not(.hidden))>.mobileTop,
body.cos-operations-legacy #ownerPrimaryNav,
body.cos-operations-legacy #ownerApp>.ownerAppWorkspace>.ownerItTopbar,
body.cos-operations-legacy #ownerApp>.ownerAppWorkspace>.ownerWorkspaceTools{display:none!important}
body.cos-operations-legacy #view-owner:not(.hidden),
body.cos-operations-legacy #ownerApp{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:0!important}
body.cos-operations-legacy #ownerApp>.ownerAppWorkspace{width:100%!important;max-width:none!important;margin:0!important;min-height:0!important;padding:16px!important}
body.cos-operations-legacy #appView{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.cos-tech-check-header{display:flex;align-items:center;gap:16px;padding:16px;border-bottom:1px solid #2C3B51;background:#111B2A;color:#E6EDF7}
.cos-tech-check-header>div{display:grid;gap:4px;flex:1;min-width:0}
.cos-tech-check-header span{font-size:11px;letter-spacing:.08em;color:#A3B3CA}
.cos-tech-check-header b{font-size:20px}
.cos-tech-check-header #cosOperationsReturn{position:static;margin:0;box-shadow:none;background:#172337;border-color:#617895;color:#E6EDF7;white-space:nowrap}
.cos-tech-check-source{margin:0;padding:12px 16px;border-bottom:1px solid #2C3B51;background:#0B111C;color:#A3B3CA;font-size:13px}
@media(max-width:700px){.cos-tech-check-header{gap:10px;padding:12px;flex-wrap:wrap}.cos-tech-check-header b{font-size:17px}.cos-tech-check-header>div{min-width:130px}.cos-tech-check-header>.mini:last-child{margin-left:auto}}
/* The protected owner CSS also fixes the old workspace to the whole screen.
   Scoped tools now flow below their Tech Checks header at every viewport. */
html:has(body.cos-operations-legacy #view-owner:not(.hidden)),
html body.cos-operations-legacy:has(#view-owner:not(.hidden)){background:#0B111C!important;color:#E6EDF7!important}
html body.cos-operations-legacy #appView #view-owner:not(.hidden),
html body.cos-operations-legacy #appView #view-owner #ownerApp,
html body.cos-operations-legacy #appView #view-owner #ownerApp>.ownerAppWorkspace{position:relative!important;inset:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;background:#0B111C!important;color:#E6EDF7!important}
html body.cos-operations-legacy #appView #view-owner #ownerApp>.ownerAppWorkspace{min-height:calc(100dvh - 150px)!important}
html body.cos-operations-legacy #cosOperationsLegacy>.cos-tech-check-header{position:relative;z-index:1;margin:0;background:#111B2A!important;color:#E6EDF7!important}
html body.cos-operations-legacy .cos-tech-check-header .mini{width:auto;min-height:44px;background:#172337!important;color:#C5D2E4!important;border:1px solid #617895!important;border-radius:7px}
html body.cos-operations-legacy #appView #view-owner :is(#ownerAppPage,#ownerRouteView,#ownerPersistentControls,#ownerPersistentAccounts){background:#0B111C!important;color:#E6EDF7!important}

/* VISION Tech Checks tools are dark regardless of the device's saved/system
   theme. The legacy light media queries must not paint white cards or black
   headings inside this dark host. Scope everything to the owner tool mount;
   technician screens, visibility, event handlers and workflow state are owned
   by the original application. */
html body.cos-operations-legacy #appView #view-owner #ownerApp {
  color-scheme:dark;
  --oa-bg:#0B111C;--oa-panel:#111B2A;--oa-panel2:#172337;
  --oa-text:#E6EDF7;--oa-muted:#A3B3CA;--oa-line:#2C3B51;
  --oa-red:#C8102E;--oa-blue:#C8102E;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp :is(#ownerAppPage,#ownerRouteView,#ownerPersistentControls,#ownerPersistentAccounts) {
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
  background:#0B111C!important;color:#E6EDF7!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage {
  padding:8px 0 32px!important;overflow-x:visible!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage * {
  color:#E6EDF7!important;border-color:#2C3B51!important;
  text-shadow:none!important;box-sizing:border-box;min-width:0;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(section,article,header,details,summary,table,thead,tbody,tr,th,td,[class^="owner"],[class*=" owner"],.card,.panel,.item,.warn,.ok,.bad) {
  background:#111B2A!important;box-shadow:none!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(.ownerAppPageHeader,.ownerAppGroup,.ownerTestForm,.ownerTestWorkflowActions,.ownerGlobalSearchTop,.ownerGlobalSearchTop>div,.ownerGlobalSearchInputWrap) {
  background:transparent!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(h1,h2,h3,h4,label,b,strong,legend) {
  color:#E6EDF7!important;opacity:1!important;overflow-wrap:anywhere;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(p,small,.small,.muted,.ownerAppPageHeader>span,.ownerTestWarning>span,.ownerAppEmpty>span) {
  color:#A3B3CA!important;opacity:1!important;overflow-wrap:anywhere;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(input,textarea,select,select option) {
  background:#111B2A!important;color:#E6EDF7!important;color-scheme:dark!important;
  border-color:#617895!important;max-width:100%;font-size:16px!important;box-shadow:none!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(input,textarea)::placeholder {
  color:#A3B3CA!important;opacity:1!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(button,.btn) {
  background:#172337!important;color:#E6EDF7!important;border-color:#617895!important;
  box-shadow:none!important;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(button,.btn):hover {
  background:#203456!important;border-color:#FF8A93!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(.btn,button.primary,button.active,button.selected,button[aria-pressed="true"],.ownerTestCreateButton,.ownerGlobalSearchInputWrap button) {
  background:#C8102E!important;color:#fff!important;border-color:#FF8A93!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(button,a,input,textarea,select,summary):focus-visible {
  outline:2px solid #FF8A93!important;outline-offset:3px!important;border-color:#FF8A93!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(.warn,.ownerTestWarning) {
  background:#3B2D18!important;border-color:#60492B!important;
}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(.warn,.ownerTestWarning) * {color:#EDC27B!important}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(.ok,.complete) {background:#15352D!important;color:#83D6AD!important;border-color:#2B5948!important}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(.danger,.bad,.missing) {background:#3E202B!important;color:#F4A2AC!important;border-color:#673746!important}
@media(max-width:700px) {
  html body.cos-operations-legacy #appView #view-owner #ownerApp>.ownerAppWorkspace {padding:12px!important;box-sizing:border-box!important}
  html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(.grid4,.ownerTestForm) {grid-template-columns:minmax(0,1fr)!important}
  html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage .ownerGlobalSearchTop {flex-wrap:wrap;gap:12px}
  html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage :is(.ownerGlobalSearchBar,.ownerTestCreate,.ownerAppAccountCreate) {padding:16px!important;max-width:100%!important}
}
/* The old desktop shell reserves a sidebar column even after its navigation
   is hidden. Remove that column only while VISION owns the tool navigation. */
html body.cos-operations-legacy #appView #view-owner #ownerApp {display:block!important}
html body.cos-operations-legacy #appView #view-owner #ownerApp #ownerAppPage .ownerAppGroup>h2>span {background:#172337!important;color:#E6EDF7!important}

/* Anchor both the host document and its embedded workspace on mobile Safari. */
html:has(body.cos-operations-host){width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
@supports(overflow:clip){html:has(body.cos-operations-host){overflow-x:clip}}
body.cos-operations-host,#cosOperationsMount,#cosOperationsFrame{max-width:100%;min-width:0;overscroll-behavior-x:none}
