/* Shared presentation contract 1. Geometry never writes department settings. */
#workspaceSheetContent #b05DepartmentControl { width: 100%; padding: 0 0 12px; }
#workspaceSheetContent #b05DepartmentControl label { display: grid; gap: 6px; color: #213e33; font-size: 14px; }
#workspaceSheetContent #b05DepartmentControl select { width: 100%; min-height: 44px; color: #213e33; background: #fff; }
html { scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
[data-owb-root] .owb-day-header button,
[data-owb-root] .owb-room-header button { scroll-margin-block: 8px calc(86px + env(safe-area-inset-bottom)); }
#appHeader #appSaveStatus {
  position:relative;box-sizing:border-box;width:44px;min-width:44px;max-width:44px;
  height:44px;min-height:44px;max-height:44px;padding:0;transform:none;animation:none;
}
#appHeader #appSaveStatus[hidden] {display:none;}
#appHeader #appSaveStatus .ops-weather {
  position:relative;display:flex;align-items:center;justify-content:center;
  width:24px;min-width:24px;height:32px;overflow:hidden;pointer-events:none;
}
#appHeader #appSaveStatus .ops-weather-cloud {
  position:relative;z-index:2;display:block;flex:0 0 16px;width:16px;height:16px;
  object-fit:contain;pointer-events:none;animation:none;transform:none;filter:none;
}
#appHeader #appSaveStatus .ops-weather-wind {
  position:absolute;z-index:1;width:20px;height:8px;left:1px;opacity:0;
  object-fit:fill;pointer-events:none;animation:none;filter:none;
}
#appHeader #appSaveStatus .ops-weather-wind-top {top:1px;}
#appHeader #appSaveStatus .ops-weather-wind-bottom {bottom:1px;}
#appHeader #appSaveStatus .ops-weather-sun {
  display:none;position:absolute;right:2px;top:3px;width:8px;height:8px;
  object-fit:contain;z-index:3;pointer-events:none;animation:none;transform:none;filter:none;
}
#appHeader #appSaveStatus .ops-weather-warning {
  display:none;position:absolute;left:3px;top:7px;width:18px;height:18px;
  z-index:4;pointer-events:none;animation:none;transform:none;
}
#appHeader #appSaveStatus[data-weather="ready"] .ops-weather-sun {display:block;}
#appHeader #appSaveStatus[data-weather="loading"] .ops-weather-wind {animation:ops-header-wind 1400ms linear infinite;}
#appHeader #appSaveStatus[data-weather="loading"] .ops-weather-wind-bottom {animation-delay:-650ms;}
#appHeader #appSaveStatus[data-weather="warning"] .ops-weather-cloud {display:none;}
#appHeader #appSaveStatus[data-weather="warning"] .ops-weather-warning {display:block;}
@keyframes ops-header-wind {
  0% {opacity:0;transform:translateX(-18px);}
  10% {opacity:1;transform:translateX(-6px);}
  50% {opacity:.9;transform:translateX(4px);}
  76% {opacity:.15;transform:translateX(16px);}
  85%,100% {opacity:0;transform:translateX(22px);}
}
@media (prefers-reduced-motion:reduce) {
  #appHeader #appSaveStatus .ops-weather-wind {animation:none!important;opacity:0!important;}
}
.clinical-panel, .panel { padding-block: 8px; }
.clinical-panel-head, .panel-head { padding-block: 4px; min-height: 44px; }
[data-owb-root] .owb-day-header, [data-owb-root] .owb-room-header { padding-block: 2px; }
[data-owb-root] .owb-day-title, [data-owb-root] .owb-room-toggle,
[data-owb-root] .owb-day-add-room, [data-owb-root] .owb-room-slot-button { min-height: 44px; }
[data-owb-root] .owb-clinical-disclosure { min-width: 44px; min-height: 44px; }
[data-owb-root] .owb-clinical-disclosure[hidden] { display: none; }
[data-owb-root] .owb-clinical-disclosure .sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0;
}
[data-owb-root] .owb-card-actions:not(:has(button:not([hidden]))) { display: none; }
@media screen and (max-width: 980px) {
  .workspace-sheet-root[data-clinical-sheet-kind] .workspace-sheet {
    max-width: calc(100vw - max(8px, env(safe-area-inset-left)) - max(8px, env(safe-area-inset-right)));
  }
  .exchange-route .pe-card { min-height: 44px; }
  .exchange-route .pe-empty-row { min-height: 44px; padding-block: 2px; }
  .exchange-route .pe-card:not(.is-clinical-expanded) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    grid-template-areas: "patient procedure actions"; align-items: center; gap: 2px; padding: 0 2px;
  }
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-patient,
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-mini-name { grid-area: patient; }
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-procedure { grid-area: procedure; }
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-card-actions,
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-mini-actions { grid-area: actions; display: flex; margin: 0; }
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-card-actions button:not([data-pe-clinical-toggle]),
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-mini-actions button:not([data-pe-clinical-toggle]),
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-note,
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-team,
  .exchange-route .pe-card:not(.is-clinical-expanded) [data-pe-caption="Диагноз"],
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-mini-meta { display: none; }
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-procedure,
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-procedure [data-pe-clinical],
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-patient strong,
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-mini-name,
  .exchange-route .pe-card:not(.is-clinical-expanded) .pe-patient-meta {
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-height: 32px; line-height: 16px; padding: 0; font-size: 12px;
  }
  .exchange-route .pe-card [data-pe-clinical-toggle] { min-height: 44px; min-width: 44px; padding: 1px; font-size: 10px; overflow-wrap: anywhere; }
  .exchange-route .pe-card.is-clinical-expanded [data-pe-clinical],
  .exchange-route .pe-card.is-clinical-expanded .pe-team,
  .exchange-route .pe-card.is-clinical-expanded .pe-note-text {
    display: block; -webkit-line-clamp: unset; max-height: none; white-space: pre-wrap; overflow: visible;
  }
  .exchange-route .pe-card.is-clinical-expanded .pe-name-full { display:inline; position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; }
  .exchange-route .pe-mini-card.is-clinical-expanded .pe-mini-expanded-only { display: block; }
  .exchange-route .pe-card.is-clinical-expanded .pe-name-mobile { display: none; }
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-patient-name-full { display: inline; }
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-patient-name-mobile { display: none; }
}
@media print {
  [data-owb-root] .owb-clinical-disclosure { display: none !important; }
  [data-owb-root] .owb-card-actions { display: none !important; }
}
/* Photo-derived mobile table. One floor is intentionally explicit. */
@media screen and (max-width: 980px) {
  :root { --ops-mobile-floor: 34px; }
  #appHeader .unified-header-brand {
    display:flex; min-height:86px; height:auto; align-items:center;
    gap:4px; padding:0 6px; background:#054f42;
  }
  #appHeader .unified-brand-identity { display:flex; flex:1 1 auto; min-width:0; gap:3px; }
  #appHeader .unified-brand-identity > div { display:block; min-width:0; }
  #appHeader .unified-brand-divider { display:block; height:30px; }
  #appHeader .unified-moscow-mark { width:27px; height:34px; flex:0 0 27px; }
  #appHeader .unified-mknc-mark { width:34px; height:38px; flex:0 0 34px; }
  #appHeader .unified-mknc-logo { width:90px; height:38px; max-width:none; }
  #appHeader .unified-brand-lines { display:block; font-size:10px; line-height:1.15; }
  #appHeader .unified-brand-lines span { display:block; white-space:nowrap; }
  #appHeader .unified-brand-title h1, #appHeader .unified-version { display:none; }
  #appHeader #operationsClockDepartment {
    display:block; max-width:120px; overflow:hidden; text-overflow:ellipsis;
    white-space:nowrap; margin-top:3px; color:var(--branding-foreground,#c7e3d7); font-size:10px; line-height:12px;
  }
  #appHeader .unified-header-session,
  #appHeader .unified-header-session:has(.operations-clock-panel[data-branding-name]) {
    flex:0 0 auto; width:auto; display:grid;
    grid-template-columns:clamp(46px,18vw,76px) 136px; grid-template-rows:92px; gap:2px;
  }
  #appHeader .operations-clock-panel { grid-column:1; grid-row:1; width:100%; min-width:0; }
  #appHeader .operations-clock-figure { width:100%; height:auto; aspect-ratio:1; }
  #appHeader #appSaveStatus { grid-column:2; grid-row:1; width:44px; min-width:44px; min-height:44px; align-self:center; }
  #appHeader #appHeaderAccount { grid-column:3; grid-row:1; width:44px; min-width:44px; min-height:44px; padding:2px; align-self:center; overflow:hidden; text-overflow:ellipsis; font-size:10px; }
  #appHeader #appHeaderMenu { grid-column:4; grid-row:1; min-width:44px; min-height:44px; align-self:center; }
  #appHeader #b05DepartmentControl { display:none; }
  #appHeader .unified-brand-title { display:block; min-width:0; }
  #appHeader .operations-clock-panel .operations-clock-copy { display:none; }
  #appHeaderActions.unified-header-controls { min-height:52px; padding:4px 5px; gap:3px; }
  #appHeaderActions .unified-calendar-controls {
    width:auto; grid-template-columns:44px minmax(0,1fr) 44px; gap:2px;
  }
  #appHeaderActions .unified-calendar-controls > button,
  #appHeaderActions .unified-header-actions > button { min-width:44px; min-height:44px; padding:2px; }
  #appHeaderPeriodLabel { display:block; font-size:12px; line-height:1.2; }
  #appHeaderWeekNumber, #appHeaderWeekFreshness, #appHeaderActions .unified-mobile-period { display:none; }
  #b05DepartmentControl select { min-height:44px; width:100%; }
  [data-owb-root] {
    --owb-radius-day:5px; --owb-radius-room:0px; --owb-row-height:var(--ops-mobile-floor);
    --owb-patient-card-gap:0px; --owb-patient-card-inset:0px;
    --ops-mobile-columns:13px minmax(80px,24fr) minmax(95px,42fr) minmax(70px,22fr) 44px;
  }
  body.operations-day-board-active #content { padding:0; }
  [data-owb-root] .owb-week { gap:6px; padding:6px; }
  [data-owb-root] .owb-board-tools { min-height:44px; padding:0 6px; margin:0; }
  [data-owb-root] .owb-day-empty { display:none; }
  [data-owb-root] .owb-day-header { min-height:44px; padding:0 5px; gap:3px; flex-wrap:nowrap; }
  [data-owb-root] .owb-day-title { min-height:44px; min-width:0; justify-content:flex-start; gap:4px; }
  [data-owb-root] .owb-day-name { font-size:11px; white-space:nowrap; overflow:hidden; }
  [data-owb-root] .owb-day-date, [data-owb-root] .owb-day-count { font-size:10px; }
  [data-owb-root] .owb-day-header-zone--right { gap:3px; }
  [data-owb-root] .owb-day-add-room { min-width:44px; padding:0 3px; font-size:10px; border-radius:3px; }
  [data-owb-root] .owb-day-lock { min-width:44px; min-height:44px; padding:2px; }
  [data-owb-root] .owb-rooms-list { padding:0; gap:3px; }
  [data-owb-root] .owb-room { border:0; border-radius:0; overflow:hidden; }
  [data-owb-root] .owb-room-header { min-height:44px; padding:0 3px; gap:3px; grid-template-columns:minmax(0,1fr) auto auto; }
  [data-owb-root] .owb-room-header .owb-room-toggle { grid-column:1; grid-row:1; }
  [data-owb-root] .owb-room-header .owb-room-slot-actions { grid-column:2; grid-row:1; }
  [data-owb-root] .owb-room-header .owb-room-actions { grid-column:3; grid-row:1; }
  [data-owb-root] .owb-room-toggle { min-height:44px; padding:2px 4px; justify-content:flex-start; }
  [data-owb-root] .owb-room-title { font-size:11px; color:#476157; }
  [data-owb-root] .owb-room-slot-actions { gap:2px; }
  [data-owb-root] .owb-room-slot-button { min-width:44px; min-height:44px; padding:2px; font-size:10px; border-radius:4px; }
  [data-owb-root] .owb-room-delete { min-width:44px; min-height:44px; padding:2px; }
  [data-owb-root] .owb-room-delete-full { display:none; }
  [data-owb-root] .owb-room-delete-mobile { display:inline; }
  [data-owb-root] .owb-patient-header { display:block; min-height:18px; margin:0; padding:0; }
  [data-owb-root] .owb-patient-header .owb-row-layout--narrow,
  [data-owb-root] .owb-patient-row .owb-row-layout--narrow {
    display:grid; grid-template-columns:var(--ops-mobile-columns);
    grid-template-areas:"slot patient clinical team notes"; gap:0; padding:0;
  }
  [data-owb-root] .owb-patient-header .owb-row-layout--medium,
  [data-owb-root] .owb-patient-header .owb-row-layout--wide,
  [data-owb-root] .owb-patient-row .owb-row-layout--medium,
  [data-owb-root] .owb-patient-row .owb-row-layout--wide { display:none; }
  [data-owb-root] .owb-patient-header .owb-cell { min-height:18px; padding:1px 2px; font-size:10px; line-height:14px; white-space:nowrap; overflow:hidden; }
  [data-owb-root] .owb-patient-header .owb-primary-text { font-size:10px; line-height:14px; white-space:nowrap; }
  [data-owb-root] .owb-patient-header .owb-cell-clinical .owb-primary-text { font-size:9px; }
  [data-owb-root] .owb-patient-row,
  [data-owb-root] .owb-patient-row[data-operation-id] {
    position:relative; display:grid; grid-template-columns:var(--ops-mobile-columns);
    min-height:var(--ops-mobile-floor); gap:0; margin:0; padding:0; border:0;
    border-radius:0; box-shadow:inset 0 0 0 1px #d3e0d8;
  }
  [data-owb-root] .owb-patient-row .owb-edit-surface {
    grid-column:1 / -1; grid-row:1; min-height:var(--ops-mobile-floor); min-width:0; padding:0;
  }
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-row-layout--narrow {
    height:var(--ops-mobile-floor); min-height:var(--ops-mobile-floor); overflow:hidden;
  }
  [data-owb-root] .owb-patient-row .owb-cell { min-height:0; padding:2px; gap:0; }
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-cell-team,
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-cell-notes { display:flex; }
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-cell-notes { visibility:hidden; }
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-primary-text,
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-secondary-text,
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-patient-name {
    display:block; min-height:0; max-height:20px; font-size:10px; line-height:10px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) [data-owb-clinical="operation"] {
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
    white-space:normal; font-size:11px; line-height:10px; max-height:20px; font-weight:750;
  }
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-patient-meta {
    display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:0 2px;
    width:100%; min-height:0; font-size:10px; line-height:10px; max-height:20px; overflow:hidden;
  }
  [data-owb-root] .owb-patient-meta > span { min-height:0; font-size:10px; line-height:10px; }
  [data-owb-root] .owb-patient-meta .owb-patient-meta-separator { display:none; }
  [data-owb-root] .owb-patient-meta .owb-patient-age { flex:0 0 auto; }
  [data-owb-root] .owb-patient-meta .owb-funding-badge {
    flex:1 1 0; min-width:0; min-height:0; max-width:100%; padding:0 1px; border-radius:2px;
    font-size:10px; line-height:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  [data-owb-root] .owb-patient-meta .owb-card-number { flex:0 0 100%; text-align:center; }
  [data-owb-root] .owb-patient-row .owb-surgeons,
  [data-owb-root] .owb-patient-row .owb-assistants { display:block; width:100%; line-height:10px; }
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) .owb-team-role {
    display:block; width:100%; max-width:100%; font-size:10px; line-height:10px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  [data-owb-root] .owb-patient-row .owb-team-role::after { content:none; }
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) [data-team-role="surgeon-2"],
  [data-owb-root] .owb-patient-row:not(.is-clinical-expanded) [data-team-role="assistant-2"] { display:none; }
  [data-owb-root] .owb-patient-row .owb-clinical-disclosure {
    grid-column:5; grid-row:1; align-self:start; justify-self:stretch; z-index:1;
    width:44px; min-width:44px; height:var(--ops-mobile-floor); min-height:var(--ops-mobile-floor);
    padding:2px; border:0; border-left:1px solid #d3e0d8; border-radius:0;
    overflow:hidden; white-space:normal; overflow-wrap:anywhere; font-size:10px; line-height:12px;
    background:#eef6f1; color:#315a49;
  }
  [data-owb-root] .owb-patient-row .owb-clinical-disclosure[hidden] { display:none; }
  [data-owb-root] .owb-patient-row .owb-card-actions { display:none; }
  [data-owb-root] .owb-patient-row .owb-emias-marker {
    display:inline-grid; place-items:center; width:24px; height:24px; border-radius:5px;
    color:#a53735; background:#f8e8e6; font-size:20px; line-height:1; font-weight:750;
  }
  [data-owb-root] .owb-patient-row [data-emias="submitted"] .owb-emias-marker { color:#26714c; background:#e4f1e8; }
  [data-owb-root] .owb-patient-row .owb-note-present { font-size:12px; }
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-clinical-disclosure {
    grid-column:1 / -1; grid-row:1; width:auto; display:flex; gap:6px; align-items:center; justify-content:flex-end;
  }
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-edit-surface { grid-row:2; padding:0; }
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-row-layout--narrow {
    height:auto; overflow:visible; grid-template-columns:13px minmax(0,1fr);
    grid-template-areas:"slot patient" "slot clinical" "slot team" "slot notes";
  }
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-cell { overflow:visible; min-width:0; }
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-cell-notes:not(.is-empty-note) { display:flex; visibility:visible; }
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-primary-text,
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-secondary-text,
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-patient-meta,
  [data-owb-root] .owb-patient-row.is-clinical-expanded .owb-team-role {
    display:block; max-height:none; font-size:12px; line-height:1.35;
    white-space:pre-wrap; overflow:visible; overflow-wrap:anywhere; -webkit-line-clamp:unset;
  }
  [data-owb-root] .owb-patient-row-empty .owb-row-layout--narrow {
    grid-template-columns:13px minmax(0,1fr); grid-template-areas:"slot empty";
  }
  [data-owb-root] .owb-patient-row-empty { min-height:var(--ops-mobile-floor); }
  .exchange-route .pe-card, .exchange-route .pe-empty-row,
  .exchange-route .pe-card [data-pe-clinical-toggle] { min-height:var(--ops-mobile-floor); }
  .exchange-route .pe-row:has(.pe-fund-card), .exchange-route .pe-row:has(.pe-empty-row),
  .exchange-route .pe-row-number, .exchange-route .pe-plan-row .pe-empty { min-height:var(--ops-mobile-floor); }
  .exchange-route .pe-plan-row, .exchange-route .pe-plan-row.pe-occupied { height:var(--ops-mobile-floor); padding:0; }
}

@media screen and (max-width: 359px) {
  #appHeader .unified-header-session, #appHeader .unified-header-session:has(.operations-clock-panel[data-branding-name]) { grid-template-columns:46px 136px; }
  #appHeader .unified-moscow-mark { width:18px; flex-basis:18px; }
  #appHeader .unified-mknc-mark { width:24px; flex-basis:24px; }
  #appHeader .unified-brand-identity { gap:2px; }
  #appHeader .unified-brand-lines { font-size:9px; }
}

/* Weather and date share the top row within the account/menu block. */
#appHeader .unified-account-menu {
  display:grid; grid-column:2; grid-row:1; grid-template-columns:auto auto;
  grid-template-rows:56px 44px; column-gap:2px; row-gap:6px; align-items:center; align-self:center;
  min-width:160px;
}
#appHeader .unified-account-status {
  display:grid; grid-column:1 / -1; grid-row:1;
  grid-template-columns:56px minmax(0,1fr); column-gap:6px; align-items:center;
}
#appHeader .unified-account-status #appSaveStatus { grid-column:1; grid-row:1; align-self:center; margin:0; }
#appHeader .unified-account-status #appSaveStatus:focus-visible { outline-offset:-3px; }
#appHeader .unified-account-menu #appHeaderAccount { grid-column:1; grid-row:2; }
#appHeader .unified-account-menu #appHeaderMenu { grid-column:2; grid-row:2; }
#appHeader .unified-account-menu #operationsClockDate {
  display:block; grid-column:2; grid-row:1; justify-self:stretch;
  margin:0; width:auto; max-width:none; text-align:center; white-space:nowrap;
  font-size:16px; line-height:20px; color:var(--branding-foreground,#fff);
}
#appHeader .operations-clock-copy { display:none; }
@media screen and (min-width:981px) {
  #appHeader .unified-header-session { grid-template-columns:auto auto; align-items:center; }
  #appHeader #operationsClockPanel { display:block; width:101px; min-width:0; padding:0; }
  #appHeader .operations-clock-figure { width:101px; height:101px; flex-basis:101px; }
  #appHeader #appSaveStatus { width:56px; min-width:56px; max-width:56px; height:56px; min-height:56px; max-height:56px; }
  #appHeader #appSaveStatus .ops-weather { width:48px; min-width:48px; height:48px; }
  #appHeader #appSaveStatus .ops-weather-cloud { flex-basis:32px; width:32px; height:32px; }
  #appHeader #appSaveStatus .ops-weather-sun { width:18px; height:18px; top:2px; right:1px; }
  #appHeader #appSaveStatus .ops-weather-wind { width:40px; height:12px; left:4px; }
  #appHeader #appSaveStatus .ops-weather-warning { width:32px; height:32px; left:8px; top:8px; }
  #appHeader #appSaveStatus[data-weather="loading"] .ops-weather-wind { animation-name:ops-header-wind-desktop; }
}
@media screen and (min-width:1401px) {
  #appHeader #operationsClockPanel { width:146px; }
  #appHeader .operations-clock-figure { width:146px; height:146px; flex-basis:146px; }
}
@keyframes ops-header-wind-desktop {
  0% {opacity:0;transform:translateX(-36px);}
  10% {opacity:1;transform:translateX(-12px);}
  50% {opacity:.9;transform:translateX(8px);}
  76% {opacity:.15;transform:translateX(32px);}
  85%,100% {opacity:0;transform:translateX(44px);}
}
@media screen and (max-width:980px) {
  #appHeader .unified-account-menu { width:136px; min-width:136px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:44px 44px; row-gap:4px; }
  #appHeader .unified-account-status { grid-template-columns:44px minmax(0,1fr); column-gap:2px; }
  #appHeader .unified-account-menu #appHeaderAccount,
  #appHeader .unified-account-menu #appHeaderMenu { width:100%; max-width:none; }
  #appHeader .unified-account-menu #operationsClockDate { font-size:12px; line-height:16px; }
}

/* Approved web header composition; native presentation keeps its own controls. */
body:not(.ops-native-client) #appHeader .unified-account-menu {
  width: 176px;
  min-width: 176px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 64px 44px;
  gap: 0;
}
body:not(.ops-native-client) #appHeader .unified-account-status { display: contents; }
body:not(.ops-native-client) #appHeader .unified-account-status #appSaveStatus {
  justify-self: center;
  align-self: start;
  transform: none;
}
body:not(.ops-native-client) #appHeader .unified-account-status #appSaveStatus .ops-weather { transform:translateY(-4px); }
body:not(.ops-native-client) #appHeader .unified-account-menu #operationsClockDate {
  justify-self: stretch;
  white-space: normal;
  line-height: 1.1;
}
body:not(.ops-native-client) #operationsClockDate [data-clock-date-day] {
  display: block;
  font-size: 28px;
  font-weight: 750;
}
body:not(.ops-native-client) #operationsClockDate [data-clock-date-month] {
  display: block;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
}
body:not(.ops-native-client) #appHeader .unified-account-menu #appHeaderAccount,
body:not(.ops-native-client) #appHeader .unified-account-menu #appHeaderMenu {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 5%);
  color: var(--branding-foreground, #fff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.ops-native-client) #appHeader .unified-account-menu #appHeaderAccount {
  border-right: 0;
  border-radius: 9px 0 0 9px;
}
body:not(.ops-native-client) #appHeader .unified-account-menu #appHeaderMenu { border-radius: 0 9px 9px 0; }
body:not(.ops-native-client) #appHeader #operationsClockDepartment {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  line-height: 1.2;
}
.clinical-menu-group { margin-top: 16px; }
.clinical-menu-group h4 { margin: 0 0 8px; font-size: 13px; color: #52685f; }
.clinical-menu-exit { border-top: 1px solid #d6e3dc; margin-top: 16px; padding-top: 12px; }
@media screen and (max-width: 980px) {
  body:not(.ops-native-client) #appHeader .unified-account-menu {
    --ops-account-scale: .6666666667;
    width: calc(136px * var(--ops-account-scale));
    min-width: calc(136px * var(--ops-account-scale));
    height: calc(88px * var(--ops-account-scale));
    grid-template-rows: repeat(2, calc(44px * var(--ops-account-scale)));
    align-self: center;
  }
  body:not(.ops-native-client) #appHeader .unified-header-session,
  body:not(.ops-native-client) #appHeader .unified-header-session:has(.operations-clock-panel[data-branding-name]) {
    grid-template-columns: clamp(46px,18vw,76px) calc(136px * .6666666667);
    column-gap: 8px;
  }
  body:not(.ops-native-client) #operationsClockDate [data-clock-date-day] { font-size: calc(22px * var(--ops-account-scale)); }
  body:not(.ops-native-client) #operationsClockDate [data-clock-date-month] { font-size: calc(11px * var(--ops-account-scale)); }
  body:not(.ops-native-client) #appHeader .unified-account-menu #appHeaderAccount,
  body:not(.ops-native-client) #appHeader .unified-account-menu #appHeaderMenu {
    height: calc(44px * var(--ops-account-scale));
    min-height: calc(44px * var(--ops-account-scale));
    font-size: calc(10px * var(--ops-account-scale));
    padding: 0 calc(6px * var(--ops-account-scale));
    border-width: calc(1px * var(--ops-account-scale));
  }
  body:not(.ops-native-client) #appHeader .unified-account-menu #appHeaderAccount { border-right-width:0; border-radius:calc(11px * var(--ops-account-scale)) 0 0 calc(11px * var(--ops-account-scale)); }
  body:not(.ops-native-client) #appHeader .unified-account-menu #appHeaderMenu { padding:calc(9px * var(--ops-account-scale)) calc(12px * var(--ops-account-scale)); border-radius:0 calc(11px * var(--ops-account-scale)) calc(11px * var(--ops-account-scale)) 0; }
  body:not(.ops-native-client) #appHeader .unified-account-status #appSaveStatus {
    width:calc(44px * var(--ops-account-scale)); min-width:0; max-width:none;
    height:calc(44px * var(--ops-account-scale)); min-height:0; max-height:none; align-self:center;
  }
  body:not(.ops-native-client) #appHeader #appSaveStatus .ops-weather {width:calc(44px * var(--ops-account-scale));min-width:0;height:calc(44px * var(--ops-account-scale));overflow:visible;transform:translateY(calc(-4px * var(--ops-account-scale)));}
  body:not(.ops-native-client) #appHeader #appSaveStatus .ops-weather-cloud {position:absolute;left:0;top:calc(9px * var(--ops-account-scale));flex:none;width:calc(36px * var(--ops-account-scale));height:calc(36px * var(--ops-account-scale));z-index:3;}
  body:not(.ops-native-client) #appHeader #appSaveStatus .ops-weather-sun {left:calc(15px * var(--ops-account-scale));right:auto;top:calc(10px * var(--ops-account-scale));width:calc(24px * var(--ops-account-scale));height:calc(24px * var(--ops-account-scale));z-index:1;}
  /* The cloud PNG is an outline. Only ready uses its inner silhouette to hide
     the lower sun; loading/offline/warning retain their original state artwork. */
  body:not(.ops-native-client) #appHeader #appSaveStatus[data-weather="ready"] .ops-weather::before {
    content:"";position:absolute;left:0;top:calc(9px * var(--ops-account-scale));width:96px;height:96px;
    transform:scale(calc(.375 * var(--ops-account-scale)));transform-origin:0 0;
    background:var(--branding-background,#054f42);z-index:2;pointer-events:none;
    clip-path:path("M21 68 C14 68 13 61 16 57 C18 54 22 54 25 52 C24 43 30 34 38 31 C48 26 59 30 64 38 C66 41 66 46 68 49 C78 47 83 54 82 61 C82 66 77 69 72 69 Z");
  }
  body:not(.ops-native-client) #appHeader #appSaveStatus .ops-weather-warning {left:6.6667px;top:6.6667px;width:16px;height:16px;}
}
@media screen and (max-width: 359px) {
  body:not(.ops-native-client) #appHeader .unified-header-brand { gap:2px; padding-inline:3px; }
  body:not(.ops-native-client) #appHeader .unified-header-session,
  body:not(.ops-native-client) #appHeader .unified-header-session:has(.operations-clock-panel[data-branding-name]) {grid-template-columns:46px calc(136px * .6666666667);}
}

/* Opt-in visual placement: existing consumers retain the legacy select. */
#placementModal .placement-visual-chooser { display: grid; gap: 12px; }
#placementModal .placement-visual-chooser[hidden], #placementModal #placementTarget[hidden], #placementModal label[for="placementTarget"][hidden] { display: none; }
#placementModal .placement-visual-chooser > label { display: grid; gap: 6px; }
#placementModal .placement-week-choice { width: 100%; min-height: 44px; font: inherit; font-size: 16px; }
#placementModal .placement-choice-group { min-width: 0; border: 0; padding: 0; margin: 0; }
#placementModal .placement-choice-group legend { padding: 0; margin-bottom: 6px; }
#placementModal .placement-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#placementModal .placement-choice-grid button { min-width: 0; min-height: 44px; white-space: normal; overflow-wrap: anywhere; text-align: left; }


/* Mobile WEB Plan only. Waiting/native keep their independent existing geometry. */
.unified-period-cue {display:none;}
@media screen and (max-width:980px) {
  body:not(.ops-native-client) #appHeaderCalendarButton {position:relative;padding-inline:12px;justify-items:center;align-items:center;text-align:center;}
  body:not(.ops-native-client) #appHeaderPeriodLabel {font-size:calc(13px * 2 / 3);line-height:1.4;white-space:normal;text-align:center;}
  body:not(.ops-native-client) #appHeaderCalendarButton .unified-period-cue {display:block;position:absolute;right:3px;top:50%;transform:translateY(-50%);font-size:14px;line-height:1;}
  body:not(.ops-native-client) [data-owb-root] {
    --owb-row-height:40px;
    --ops-mobile-columns:13px minmax(80px,24fr) minmax(95px,42fr) minmax(70px,22fr) 32px;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-add-room-standard-label,
  body:not(.ops-native-client) [data-owb-root] .owb-empty-standard-label {display:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-add-room-mobile-label,
  body:not(.ops-native-client) [data-owb-root] .owb-empty-mobile-label {display:inline;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-title {flex-wrap:wrap;gap:2px 4px;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-empty {display:block;min-height:0;margin:4px 6px;padding:4px;font-size:11px;line-height:1.3;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row[data-operation-id],
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-edit-surface,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow {
    height:40px;min-height:40px;max-height:40px;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow {
    overflow:hidden;grid-template-columns:var(--ops-mobile-columns);grid-template-areas:"slot patient clinical team notes";
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row-empty .owb-row-layout--narrow {
    grid-column:1 / -1;grid-template-columns:13px minmax(0,1fr);grid-template-areas:"slot empty";
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-cell {
    min-width:0;padding:2px;gap:0;overflow:hidden;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-primary-text,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-secondary-text,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-patient-name {
    display:block;min-height:0;max-height:1.1em;font-size:var(--owb-field-size,11px);line-height:1.1;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-patient-name {
    font-size:var(--owb-field-size,11.5px);font-weight:700;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row [data-owb-clinical="operation"] {
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.1em;white-space:normal;
    font-size:var(--owb-field-size,11.5px);line-height:1.05;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-patient-meta {
    display:flex;flex-wrap:wrap;width:100%;max-height:22px;font-size:10.5px;line-height:1.05;gap:0 2px;overflow:hidden;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-meta>span {
    min-height:0;max-height:1.1em;font-size:var(--owb-field-size,10.5px);line-height:1.05;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-meta .owb-card-number {
    display:block;flex:0 0 100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-surgeons {
    display:block;width:100%;font-size:11px;line-height:1.1;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-assistants {
    display:block;width:100%;font-size:10px;line-height:1.1;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-team-role {
    display:block;width:100%;max-width:100%;max-height:1.1em;font-size:var(--owb-field-size,inherit);line-height:1.1;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row [data-team-role="surgeon-2"],
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row [data-team-role="assistant-2"] {display:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-cell-notes {display:flex;visibility:visible;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-cell-notes .owb-primary-text {
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:3.3em;
    white-space:normal;font-size:var(--owb-field-size,10.5px);line-height:1.1;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-clinical-disclosure,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-card-actions,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-emias-marker {display:none!important;}
  body:not(.ops-native-client) [data-owb-root] .owb-field-overflow {cursor:zoom-in;position:relative;box-sizing:border-box;min-width:0;max-width:100%;padding-right:8px;}
  body:not(.ops-native-client) [data-owb-root] .owb-field-overflow::after {
    content:"…";position:absolute;right:0;bottom:0;padding-left:1px;background:#fff;color:#315b4c;font-size:10px;line-height:1;
  }
  body:not(.ops-native-client) [data-owb-root] .owb-field-overflow:focus-visible {outline:2px solid #31836b;outline-offset:-2px;}
  body:not(.ops-native-client) #compactCardModal.is-field-viewer {
    align-items:center;justify-content:center;
    padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right))
      max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  }
  body:not(.ops-native-client) #compactCardModal.is-field-viewer>.modal-card {
    display:flex;flex-direction:column;width:min(420px,100%);min-width:0;height:auto;
    max-height:min(70dvh,560px);margin:0;border-radius:14px;overflow:hidden;
  }
  body:not(.ops-native-client) #compactCardModal.is-field-viewer .modal-body {
    flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  }
  body:not(.ops-native-client) #compactCardModal.is-field-viewer .compact-field-summary {
    margin:0 0 12px;color:#576a61;font-size:13px;line-height:1.35;overflow-wrap:anywhere;
  }
  body:not(.ops-native-client) #compactCardModal.is-field-viewer .compact-field-value {
    white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.4;-webkit-user-select:text;user-select:text;
  }
  body:not(.ops-native-client) #compactCardModal.is-field-viewer .compact-field-copy-status {margin:8px 0 0;color:#576a61;font-size:12px;}
  body:not(.ops-native-client) #compactCardModal.is-field-viewer .compact-field-surgeon {display:block;font-weight:700;}
  body:not(.ops-native-client) #compactCardModal.is-field-viewer .compact-field-assistant {display:block;text-align:right;}
  body:not(.ops-native-client) #compactCardModal.is-field-viewer .modal-foot {display:flex;flex:0 0 auto;justify-content:flex-end;gap:8px;}
  body:not(.ops-native-client) #compactCardModal.is-field-viewer .modal-foot button {min-height:44px;}
}

/* Desktop web status proportions; native/mobile status geometry is unchanged. */
@media screen and (min-width:981px) {
  body:not(.ops-native-client) #appHeader .unified-account-menu {grid-template-rows:72px 44px;}
  body:not(.ops-native-client) #appHeader .unified-account-status #appSaveStatus {
    width:72px;min-width:72px;max-width:72px;height:65px;min-height:65px;max-height:65px;
  }
  body:not(.ops-native-client) #appHeader #appSaveStatus .ops-weather {width:72px;min-width:72px;height:65px;}
  body:not(.ops-native-client) #appHeader #appSaveStatus .ops-weather-cloud {position:absolute;left:11.5px;top:23px;flex:none;width:49px;height:35px;}
  body:not(.ops-native-client) #appHeader #appSaveStatus .ops-weather-sun {left:42.5px;right:auto;top:4px;width:31px;height:31px;}
  body:not(.ops-native-client) #appHeader #appSaveStatus .ops-weather-warning {left:16px;top:15px;width:40px;height:40px;}
}

/* Keep medium desktop time clear of the unchanged101px anatomical wall. */
@media screen and (min-width:981px) and (max-width:1400px) {
  body:not(.ops-native-client) #appHeader .operations-clock-time {font-size:18px;}
}

/* The large desktop figure is146px; its time must not keep growing withvw. */
@media screen and (min-width:1401px) {
  body:not(.ops-native-client) #appHeader .operations-clock-time {font-size:26px;}
}

/* Web Plan density follows content instead of leaving the legacy 80px floor. */
@media screen {
  body:not(.ops-native-client) [data-owb-root] {--owb-row-height:40px;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row[data-operation-id] {height:auto;min-height:40px;max-height:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row-empty {height:auto;min-height:40px;max-height:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row-empty .owb-row-layout {height:auto;min-height:38px;max-height:none;}
}

/* Installed compact51 presentation, scoped to web. Source51 outer bars are24px,
   inner controls22px; no native page zoom or native viewport policy is copied. */
@media screen and (max-width:980px) {
  /* Transfer exactly6px from clinical to team. Percentage tracks use the same
     remaining width as the former24/42/11/19fr, so no resize can accumulate it. */
  body:not(.ops-native-client) [data-owb-root] {--owb-row-height:30px;--ops-mobile-columns:13px minmax(0,calc((100% - 13px) * .25)) minmax(0,calc((100% - 13px) * .4375 - 6px)) minmax(0,calc((100% - 13px) * .114583333333 + 6px)) minmax(0,calc((100% - 13px) * .197916666667));}
  body:not(.ops-native-client) [data-owb-root] .owb-week {gap:5px;padding:5px 6px 12px;}
  body.operations-day-board-active:not(.ops-native-client) #appLayout {padding:0;}
  body.operations-day-board-active:not(.ops-native-client) #appLayout > .content > .panel {padding-block:0;}
  body:not(.ops-native-client) [data-owb-root] .owb-board-tools {display:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-empty {display:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-header,
  body:not(.ops-native-client) [data-owb-root] .owb-room-header {box-sizing:border-box;height:24px;min-height:24px;padding:0 3px;gap:3px;align-items:center;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-header button,
  body:not(.ops-native-client) [data-owb-root] .owb-room-header button {height:22px;min-height:22px;padding:0 3px;line-height:1;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-title {height:22px;align-items:center;flex-wrap:nowrap;gap:4px;min-width:0;white-space:nowrap;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-name {font-size:8px;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-date {font-size:8px;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-count {display:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-add-room {font-size:8px;min-width:0;width:auto;white-space:nowrap;}
  body:not(.ops-native-client) [data-owb-root] .owb-day-lock {width:22px;min-width:22px;flex-basis:22px;}
  body:not(.ops-native-client) [data-owb-root] .owb-room-header {display:flex;height:20px;min-height:20px;max-height:20px;gap:2px;}
  body:not(.ops-native-client) [data-owb-root] .owb-room-toggle {height:18px;min-height:18px;min-width:0;flex:1;margin:0 auto 0 0;justify-content:flex-start;}
  body:not(.ops-native-client) [data-owb-root] .owb-room-title {box-sizing:border-box;font-size:8px;line-height:10px;padding:1px 4px;max-height:14px;border-radius:3px;}
  body:not(.ops-native-client) [data-owb-root] .owb-room-count {font-size:8px;line-height:12px;}
  body:not(.ops-native-client) [data-owb-root] .owb-room-header.has-compact-room-menu .owb-room-slot-actions,
  body:not(.ops-native-client) [data-owb-root] .owb-room-header.has-compact-room-menu .owb-room-actions {display:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-room-header .owb-room-menu {display:block;width:24px;min-width:24px;flex:0 0 24px;height:18px;min-height:18px;max-height:18px;padding:0;font-size:13px;border-radius:4px;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-header,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-header .owb-row-layout,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-header .owb-cell {height:12px;min-height:12px;max-height:12px;box-sizing:border-box;padding:0 1px;line-height:1;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-header {border-inline:0;padding:0;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-header .owb-row-layout {padding:0;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-header .owb-primary-text {font-size:7.5px;line-height:1;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-header .owb-cell-notes .owb-primary-text {font-size:7px;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row[data-operation-id],
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-edit-surface,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow {height:30px;min-height:30px;max-height:30px;box-sizing:border-box;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-cell {padding:1px 3px;text-align:center;justify-content:center;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-primary-text,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-secondary-text,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-patient-name {font-size:var(--owb-field-size,8px);line-height:1.1;max-height:1.1em;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row [data-owb-clinical="operation"] {font-size:var(--owb-field-size,8px);font-weight:700;line-height:1.1;max-height:2.2em;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row [data-owb-clinical="diagnosis"] {font-size:var(--owb-field-size,8px);line-height:1.1;max-height:2.2em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-patient-meta {font-size:8px;line-height:1.1;max-height:20px;justify-content:center;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-meta>span {font-size:var(--owb-field-size,8px);line-height:1.1;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-surgeons,
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-assistants {display:block;width:100%;max-width:100%;text-align:center;font-size:6px;line-height:1.1;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-surgeons {font-weight:700;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-assistants {font-weight:400;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-team-role {display:block;width:100%;max-width:100%;white-space:nowrap;font-size:var(--owb-field-size,6px);font-weight:inherit;line-height:1.1;text-align:center;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-team-role::after {content:none;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-cell-notes .owb-primary-text {font-size:var(--owb-field-size,8px);line-height:1.1;}
  body:not(.ops-native-client) [data-owb-root] .owb-patient-row-empty .owb-row-layout {height:30px;min-height:30px;max-height:30px;}
  body:not(.ops-native-client) [data-owb-root] .owb-empty-mobile-label {font-size:8px;}
}
.owb-room-menu {display:none;}
@media screen and (max-width:980px) {
  body:not(.ops-native-client) [data-owb-root] .owb-room-menu {display:block;}
}

/* Installed51 bottom navigation; safe area remains owned by the existing shell. */
@media screen and (max-width:980px) {
  body:not(.ops-native-client) .clinical-primary-nav {min-height:38px;padding:3px 6px;background:#0e5948;}
  body:not(.ops-native-client) .clinical-primary-nav button {display:flex;flex-direction:row;align-items:center;justify-content:center;min-height:30px;padding:3px;gap:4px;font-size:8px;}
  body:not(.ops-native-client) .clinical-primary-nav button svg {width:12px;height:12px;}
  body:not(.ops-native-client) .clinical-primary-nav .workspace-nav-icon {width:12px;height:12px;flex:0 0 12px;}
  body:not(.ops-native-client) .clinical-primary-nav button>span:last-child {font-size:8px;white-space:nowrap;}
  body:not(.ops-native-client) #workspaceBottomNav.clinical-primary-nav button {background:transparent;border-color:transparent;color:var(--branding-foreground,#fff);}
  body:not(.ops-native-client) #workspaceBottomNav.clinical-primary-nav button.is-active {background:rgb(255 255 255 / 16%);border-color:rgb(255 255 255 / 26%);color:var(--branding-foreground,#fff);}
  body:not(.ops-native-client) #workspaceBottomNav.clinical-primary-nav button:disabled {background:transparent;opacity:.55;}
}
@media screen and (max-width:340px) {
  body:not(.ops-native-client) .clinical-primary-nav button {gap:2px;padding:2px;}
  body:not(.ops-native-client) .clinical-primary-nav button>span:last-child {font-size:6.5px;}
}

/* Match the selected source51 patient/clinical/team typography, mobile main plan only. */
@media screen and (max-width:980px) {
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow :is(.owb-cell-patient,.owb-cell-clinical,.owb-cell-team) { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:normal; font-size:8px; color:#234a3e; padding:1px 2px; gap:0; text-align:center; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow .owb-patient-name { font-weight:650; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow .owb-patient-meta { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:0 3px; max-height:22px; font-weight:400; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow .owb-web-demographics { display:flex; flex:0 1 auto; width:100%; min-width:0; max-width:100%; align-items:center; justify-content:center; gap:3px; white-space:nowrap; max-height:none; font-size:8px; line-height:1.1; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow .owb-web-demographics .owb-patient-age { flex-shrink:0; font-size:var(--owb-field-size,8px); line-height:1.1; max-height:none; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow .owb-web-demographics .owb-funding-badge { flex:0 1 auto; width:auto; max-width:calc(100% - 32px); min-width:0; padding:0 2px; font-size:var(--owb-field-size,8px); font-weight:400; line-height:1.1; max-height:none; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow .owb-card-number { flex:0 0 100%; width:100%; font-weight:400; color:#698277; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow [data-owb-clinical] { display:block; width:100%; margin:0; padding:0; overflow:hidden; text-overflow:clip; white-space:var(--owb-preview-space,pre-line); max-height:var(--owb-preview-height,2.2em); -webkit-line-clamp:unset; word-break:normal; overflow-wrap:normal; hyphens:none; line-height:1.1; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow [data-owb-clinical=operation] { font-size:var(--owb-field-size,8px); font-weight:750; color:#143e2d; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow [data-owb-clinical=diagnosis] { font-size:var(--owb-field-size,10px); font-weight:400; color:#5b7065; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow :is(.owb-surgeons,.owb-assistants) { font-size:8px; line-height:1.2; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow .owb-surgeons { font-weight:700; color:#234a3e; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow .owb-assistants { font-weight:400; color:#7a9086; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow .owb-team-role { display:block; width:100%; margin:0; padding:0; text-align:center; font-size:var(--owb-field-size,6px); font-weight:inherit; line-height:1.1; white-space:nowrap; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow .owb-team-role :is(.owb-team-role-name,.owb-team-role-suffix) { font-size:inherit; white-space:nowrap; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-patient-row .owb-row-layout--narrow .owb-cell-slot .owb-primary-text { font-size:var(--owb-field-size,8px); }
}

@media screen and (max-width:980px) {
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow .owb-patient-meta:has(.owb-funding-badge:not([style*="display: none"])) .owb-patient-age:not([data-empty=true])::after { content:' |'; }
  body.operations-day-board-active:not(.ops-native-client) [data-owb-root] .owb-row-layout--narrow .owb-card-number:not([data-empty=true]):not([data-owb-has-card-prefix=true])::before { content:'№'; }
}
