.ops-menu-shade{position:fixed;inset:0;background:#182d3066;z-index:10000;display:flex;overflow:hidden;overscroll-behavior:none}
.ops-drawer{width:min(340px,88vw);background:#fcfefe;color:#23383c;height:100%;max-height:100dvh;min-height:0;padding:calc(20px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;box-shadow:6px 0 28px #17383b26;animation:ops-slide .2s ease-out}
@keyframes ops-slide{from{transform:translateX(-100%)}to{transform:translateX(0)}}
.ops-menu-closing{pointer-events:none;background:transparent;transition:background .18s}.ops-menu-closing .ops-drawer{animation:ops-slide .18s ease-in reverse forwards}
@media(prefers-reduced-motion:reduce){.ops-drawer{animation:none}}
.ops-drawer-head{display:flex;align-items:center;gap:12px;padding:0 0 18px;border-bottom:1px solid #dce7e7}
.ops-drawer-head>div{flex:1;min-width:0}.ops-drawer-head strong,.ops-drawer-head span{display:block;overflow-wrap:anywhere}.ops-drawer-head span{color:#667c7f;font-size:13px;margin-top:5px}
.ops-drawer nav{display:grid;gap:4px;padding-top:14px}.ops-drawer nav button{border:0;background:transparent;text-align:left;display:flex;gap:12px;align-items:center;min-height:46px;padding:10px;border-radius:6px;color:inherit;font:inherit;font-size:14px}
.ops-drawer nav button[aria-current]{background:#e0eeee;color:#00656b;font-weight:700}.ops-drawer nav button:hover{background:#edf3f3}.ops-drawer nav svg{width:20px;height:20px;flex:none}
.ops-drawer nav button [data-device-queue-count]{margin-left:auto;min-width:22px;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#c62828;color:#fff;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.ops-drawer nav button [data-device-queue-count][hidden]{display:none}
.ops-menu-button{flex:none!important;width:38px!important;height:38px!important}.ops-menu-lines{width:18px;height:12px;border-top:2px solid;border-bottom:2px solid;position:relative}.ops-menu-lines:after{content:'';position:absolute;left:0;right:0;top:4px;border-top:2px solid}
.title-row:has(.ops-menu-button){gap:8px}.title-row:has(.ops-menu-button) .mistral-header-logo{width:36px;max-width:36px}.title-row:has(.ops-menu-button) .screen-title{font-size:23px;min-width:0;overflow-wrap:anywhere}
[data-ops-form] fieldset{border:0;border-bottom:1px solid #d9e5e5;padding:16px 0;margin:0;min-width:0}[data-ops-form] legend{font-weight:700;font-size:15px}[data-ops-form] details{margin:10px 0}[data-ops-form] summary{cursor:pointer;padding:10px 0;font-weight:600}
.ops-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px}.ops-check input{width:18px;height:18px;min-height:18px;flex:none;accent-color:#00666b}.ops-check[hidden]{display:none}
.ops-segments{display:flex;gap:20px}.ops-segments label{display:flex;gap:8px;align-items:center}.ops-segments input{width:18px;height:18px;min-height:18px;accent-color:#00666b}
.ops-recipients{max-height:300px;overflow:auto;overscroll-behavior:contain}.ops-selection,.ops-result{font-size:14px;color:#245a60;overflow-wrap:anywhere}.ops-result:empty{display:none}.ops-preview{border-top:1px solid #b4cece;padding-top:16px}.ops-preview h2{font-size:20px;overflow-wrap:anywhere}.ops-prewrap{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.ops-toolbar{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin:12px 0}.ops-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ops-filters label{font-size:13px;display:grid;gap:5px}.ops-filters label.ops-check{display:flex}.ops-filters input,.ops-filters select{width:100%;min-width:0;box-sizing:border-box}
.ops-person{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:15px 0;border:0;border-bottom:1px solid #dce5e6;background:none;text-align:left;color:inherit;font:inherit;font-size:14px}.ops-person>span{min-width:0;overflow-wrap:anywhere}.ops-person>span:last-child{text-align:right}.ops-person small{display:block;font-size:12px;color:#687d80;margin-top:5px}.ops-person:hover{background:#eaf3f3}.ops-movement{padding:15px 0;border-bottom:1px solid #dce5e6;display:grid;gap:6px;font-size:14px}.ops-movement span{color:#526c70}.ops-pager{display:flex;justify-content:space-between;align-items:center;margin:18px 0;font-size:13px}
.ops-content-item{border-bottom:1px solid #dce5e6;padding:16px 0}.ops-content-item summary{cursor:pointer;font-weight:600}.ops-content-item small{display:block;font-size:12px;color:#60787b;margin-top:6px}.ops-content-item h2{font-size:20px}.notice-detail dt{font-size:13px;color:#657b7e;margin-top:18px}.notice-detail dd{margin:6px 0;overflow-wrap:anywhere}.notice-detail p{line-height:1.7}.ops-list-builder{border-top:1px solid #dce5e6;padding-top:18px}
.ops-drawer button:focus-visible,[data-op]:focus-visible,.ops-person:focus-visible{outline:3px solid #4c969c;outline-offset:2px}
.action-grid [hidden]{display:none!important}
.ops-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}.ops-groups .ops-check{line-height:1.5;align-items:flex-start;padding:8px 0}.ops-groups .ops-check input{margin-top:2px}
.ops-filters .ops-check input{width:18px;height:18px;flex:0 0 18px}.ops-filters .ops-check span{min-width:0;overflow-wrap:anywhere}
[data-ops-form] select,.ops-toolbar select{min-height:44px;max-width:100%;border:1px solid #cddddd;border-radius:6px;background:#fff;color:#24383c;padding:8px;font:inherit;font-size:14px}
.ops-records{min-width:0}.content:has(.ops-records)>h2{font-size:20px;overflow-wrap:anywhere}
[data-recipient-search]{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #cddddd;border-radius:6px;padding:10px 12px;font:inherit;font-size:14px;background:#fff;color:#24383c}
/* Authorization editor shares the existing form and navigation components. */
.auth-screen { display: grid; gap: 16px; min-width: 0; }
.auth-screen fieldset { min-width: 0; border: 1px solid #d9e3e2; border-radius: 8px; padding: 12px; }
.auth-screen legend { font-weight: 700; padding: 0 6px; }
.auth-screen h2 { font-size: 20px; }
.auth-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 180px); gap: 12px; padding: 10px 0; border-bottom: 1px solid #e0e7e6; align-items: center; }
.auth-profile label, .auth-permission label { min-width: 0; display: grid; gap: 5px; font-size: 13px; }
.auth-profile .ops-check { display: flex; }
.auth-screen input, .auth-screen select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.auth-screen select, .auth-screen input:not([type="checkbox"]) { min-height: 44px; border: 1px solid #cddddd; border-radius: 6px; background: #fff; color: #24383c; padding: 8px; font: inherit; font-size: 16px; }
.auth-screen select[multiple] { min-height: 96px; }
.auth-screen :is(input,select,button):focus-visible { outline: 3px solid #4c969c; outline-offset: 2px; }
.auth-screen input[type="checkbox"] { width: 20px; flex: 0 0 20px; }
.auth-resource { border-bottom: 1px solid #d9e3e2; padding: 12px 0; min-width: 0; }
.auth-resource > summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.auth-permission { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 14px 0; border-bottom: 1px solid #e0e7e6; }
.auth-permission > strong, .auth-assigned { grid-column: 1 / -1; }
.auth-screen pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 280px; overflow: auto; }
.auth-overview, .auth-modes { display: grid; gap: 8px; padding: 12px 0; }
.auth-warning { width: 100%; display: grid; text-align: left; gap: 5px; padding: 12px 0; border: 0; border-bottom: 1px solid #d9e3e2; background: transparent; color: inherit; }
.auth-warning span { font-size: 13px; color: #626e73; }
.auth-audit { padding: 12px 0; border-bottom: 1px solid #d9e3e2; }
.auth-context { padding: 0 18px; }
@media (max-width: 440px) { .auth-columns, .auth-profile { grid-template-columns: minmax(0,1fr); } }
.people-search {display:grid;gap:12px;min-width:0}
.people-result {display:grid;gap:4px;text-align:left;width:100%;min-height:52px;padding:10px 4px;border:0;border-bottom:1px solid #dce5e4;background:transparent;color:inherit;font:inherit;cursor:pointer}
.people-result small {color:#69777b;font-size:13px}
.people-result:hover,.people-result:focus-visible {background:#eef6f5;outline:2px solid #5b979d;outline-offset:-2px}
.people-search select,.report-filters select {min-height:44px;width:100%;min-width:0;font:inherit;font-size:16px;padding:9px;border:1px solid #cbd9d8;border-radius:6px;background:#fff;color:inherit}
.report-filters {display:grid;gap:16px;padding:12px 0 18px;min-width:0}
.report-range,.report-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.report-range {padding:0;border:0;margin:0}.report-range legend {margin-bottom:8px;font-weight:650}
.report-filters .field {min-width:0}.report-filters input {width:100%;min-width:0;box-sizing:border-box;font-size:16px}
.report-filters input:is([type="date"],[type="time"]) {display:block;max-width:100%;min-height:46px;color:#243438;-webkit-text-fill-color:#243438;background:#fff;}
.report-filters input::-webkit-date-and-time-value {min-height:1.4em;text-align:left;}
.report-filters .ops-check input {width:20px;flex:0 0 20px;margin:0}.report-filters .ops-check span {min-width:0;overflow-wrap:anywhere}
.report-actions {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;gap:10px;align-items:center}
.report-actions button {min-height:46px;padding:10px;font-size:15px}.report-summary {font-weight:650}
.ops-person {border-radius:0;gap:10px}.ops-person>span {min-width:0;overflow-wrap:anywhere}
.ops-person>span:last-child {flex:0 0 110px;font-size:13px}.ops-person small {line-height:1.45}
.authorization-summary {padding:12px 0;border-top:1px solid #dce5e4;border-bottom:1px solid #dce5e4;font-size:14px}
.authorization-summary p {margin:5px 0}.authorization-summary ul {padding-left:20px;line-height:1.6}
[data-gate-editor] {border:0;padding:12px 0;min-width:0}[data-gate-editor] legend {font-weight:650}
.gate-day {display:grid;justify-items:center;gap:6px;font-size:13px;cursor:pointer}.gate-day input {width:20px;height:20px;accent-color:#086b70}
.notice-detail h2 {font-size:18px}.notice-detail dd {overflow-wrap:anywhere}
@media(max-width:360px){.report-columns,.report-range {grid-template-columns:minmax(0,1fr)}}
.visit-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:12px; margin-bottom:16px; }
.visit-filters[hidden] { display:none; }
.visit-filters .field { min-width:0; margin:0; }
.visit-filters input,.visit-filters select { width:100%; min-width:0; }
.visit-table-head,.visit-list-row { display:grid; grid-template-columns:1fr 1.2fr .8fr; gap:12px; align-items:center; text-align:left; width:100%; }
.visit-table-head { padding:12px 8px; font-size:12px; color:var(--muted); }
.visit-list-row { border:0; border-bottom:1px solid #dce5e5; background:transparent; padding:16px 8px; color:inherit; font:inherit; font-size:14px; cursor:pointer; }
.visit-list-row:hover,.visit-list-row:focus-visible { background:#edf5f4; }
.visit-list-row>* { min-width:0; overflow-wrap:anywhere; }
.personal-visit-row { grid-template-columns:minmax(0,1fr); gap:6px; }
.visit-actions { flex-wrap:wrap; margin-block:16px; }
.visit-history { margin-block:24px; }
.notice-fields { display:grid; grid-template-columns:minmax(100px,.7fr) minmax(0,1fr); gap:10px 16px; }
.notice-fields dt { color:#57696b; }
.notice-fields dd { margin:0; overflow-wrap:anywhere; }
.contact-picker { position:relative; display:grid; gap:8px; }
.contact-picker-toggle { width:100%; min-height:44px; text-align:left; background:#fff; border:1px solid #cdd8d8; border-radius:8px; padding:12px 38px 12px 12px; color:inherit; font:inherit; }
.contact-picker-toggle::after { content:'⌄'; position:absolute; right:14px; }
.contact-picker-panel { position:absolute; top:100%; left:0; right:0; z-index:60; max-height:330px; overflow:auto; overscroll-behavior:contain; background:#fff; border:1px solid #bdcece; border-radius:8px; padding:12px; box-shadow:0 8px 24px #1537371f; }
.contact-picker-panel[hidden], [data-meeting-description][hidden], form .field[hidden] { display:none !important; }
.contact-picker-panel.opens-up { top:auto; bottom:calc(100% - 20px); }
.contact-picker-panel .people-result { padding:9px 10px; min-height:40px; }
.contact-picker-panel .people-results { gap:4px; }
.contact-picker-panel .tiny-muted { margin:6px 0; }
.content:has([data-code-search]) { scroll-padding-top:90px; scroll-padding-bottom:calc(104px + env(safe-area-inset-bottom,0px)); }
[data-code-search], [data-code-arrive] { gap:14px; }
[data-code-arrive] :is(input,select,button,.contact-picker) { scroll-margin-block:90px 104px; }
[data-code-arrive] [type=submit] { min-height:48px; }
@media(max-width:440px) {
  [data-code-arrive] { gap:13px; }
  [data-code-arrive] .check-row { min-height:44px; }
}
.arrival-dialog { max-width:calc(100% - 32px); width:360px; border:1px solid #cdd8d8; border-radius:8px; padding:24px; color:#223333; }
.arrival-dialog::backdrop { background:#162d3760; }
.arrival-dialog h2, .daily-detail h2, .daily-queue h2 { font-size:20px; line-height:1.35; }
.daily-detail { margin:20px 0; }
.daily-detail .qr-box { width:min(100%,280px); aspect-ratio:1; margin:16px auto; background:white; }
.daily-detail .qr-box svg { display:block; width:100%; height:100%; }
.daily-print-area { display:none; }
.daily-queue { margin-top:24px; }
.daily-queue .people-result { width:100%; margin:4px 0; }
@media print {
  body:has(.daily-print-area) * { visibility:hidden; }
  body:has(.daily-print-area) .daily-print-area, body:has(.daily-print-area) .daily-print-area * { visibility:visible; }
  body:has(.daily-print-area) .daily-print-area { position:fixed; top:20mm; left:20mm; width:80mm; color:black; background:white; text-align:center; }
  .daily-print-area { display:block; }
  .daily-print-area .qr-box { width:70mm; height:70mm; margin:6mm auto; border:0; background:white; }
  .daily-print-area svg { width:100%; height:100%; }
}
.ops-movement-button{width:100%;box-sizing:border-box;appearance:none;background:#fff;border:1px solid #dce5e6;border-radius:6px;padding:12px;margin-bottom:8px;text-align:left;color:inherit;font:inherit;font-size:14px;cursor:pointer}
.movement-heading{display:flex;justify-content:space-between;gap:12px;align-items:start}
.movement-heading strong{min-width:0;overflow-wrap:anywhere}
.movement-heading time{font-size:12px;flex-shrink:0}
.movement-direction{font-size:12px;font-weight:600;padding:2px 5px;border-radius:4px}
.movement-direction.is-entry{color:#24594d;background:#edf5f0}
.movement-direction.is-exit{color:#805731;background:#f8f0e7}
.movement-detail-dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d9e1df;border-radius:8px;padding:20px;color:#253a36}
.movement-detail-dialog::backdrop{background:rgb(0 0 0 / 35%)}
.profile-rows{display:grid;gap:8px}
.profile-row{display:grid;gap:4px;width:100%;min-width:0;padding:12px;border:1px solid #dce5e6;border-radius:6px;background:#fff;color:inherit;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}
.profile-row span{font-size:13px}
.profile-warning{color:#89500e;font-size:13px}
.notification-swipe{position:relative;overflow:hidden;border-radius:8px;background:#a52e3b;isolation:isolate}
.notification-swipe .notification-card{position:relative;z-index:1;margin:0;width:100%;min-height:88px;background:#fff;touch-action:pan-y;transition:transform .16s ease;overflow-wrap:anywhere}
.notification-swipe .notification-dismiss{position:absolute;right:0;inset-block:0;width:80px;border:0;background:#a52e3b;color:#fff;font:inherit;font-weight:600;cursor:pointer}
.notification-swipe.is-open .notification-card,.notification-swipe:has(.notification-dismiss:focus-visible) .notification-card{transform:translateX(-80px)}
.notification-swipe.is-dragging .notification-card{transition:none;user-select:none;will-change:transform}
@media(hover:hover) and (pointer:fine){.notification-swipe .notification-card{width:calc(100% - 80px)}.notification-swipe.is-open .notification-card{transform:none}}
@media(prefers-reduced-motion:reduce){.notification-swipe .notification-card{transition:none}}
.password-onboarding { width:100%; max-width:520px; margin-inline:auto; padding-top:32px; padding-bottom:max(24px,env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:16px; }
.password-onboarding h1 { font-size:22px; line-height:1.3; overflow-wrap:anywhere; }
.password-onboarding .field-stack { width:100%; }
.personal-password-dialog {box-sizing:border-box;width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d7dfe0;border-radius:8px;padding:20px;padding-bottom:max(20px,env(safe-area-inset-bottom));color:#253c3b;background:#fff;}
.personal-password-dialog::backdrop {background:rgb(0 0 0 / 40%);}
.personal-password-dialog h2 {font-size:20px;margin:0;}
.personal-password-dialog .field input {min-width:0;}
.personal-password-dialog .button-row {display:flex;flex-wrap:wrap;gap:8px;}
.personal-password-dialog [hidden] {display:none!important;}
/* Direct staff reporting scope: stable rows and filters inside an isolated editor. */
.staff-scope-dialog { width:min(640px,calc(100% - 24px)); max-height:calc(100dvh - 32px); box-sizing:border-box; border:1px solid #d7dfe0; border-radius:8px; padding:20px; color:#253c3b; background:#fff; overflow:auto; overscroll-behavior:contain; }
.staff-scope-dialog::backdrop { background:rgba(20,38,36,.4); }
.staff-scope-dialog h2 { font-size:20px; margin:0 0 8px; }
.staff-scope-dialog input, .staff-scope-dialog select { min-width:0; max-width:100%; font-size:16px; }
.staff-scope-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.staff-scope-person { display:flex; align-items:flex-start; gap:12px; padding:12px 4px; border-bottom:1px solid #e1e7e5; overflow-wrap:anywhere; }
.staff-scope-person[hidden], .staff-scope-dialog [hidden] { display:none; }
.staff-scope-person input { flex:0 0 20px; width:20px; height:20px; margin:2px 0; }
.staff-scope-person span { min-width:0; }
.staff-scope-person small { display:block; margin-top:4px; }
.staff-scope-dialog footer { padding-bottom:env(safe-area-inset-bottom); }
.staff-scope-dialog .button-row { flex-wrap:wrap; }
.staff-scope-dialog .button-row button { white-space:normal; }
.staff-scope-launch { margin:12px 0; }
.staff-scope-dialog [data-scope-names] div { max-height:160px; overflow:auto; overflow-wrap:anywhere; overscroll-behavior:contain; padding:8px 0; }
@media(max-width:420px) { .staff-scope-dialog { padding:14px; } }
@media(max-width:359px) { .staff-scope-filters { grid-template-columns:minmax(0,1fr); } }
.office-workspace h2{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.office-workspace h3{font-size:16px}
.office-address-list{display:grid;gap:0}
.office-address-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #dce9eb}
.office-address-row>div{min-width:0;flex:1;overflow-wrap:anywhere}
.office-address-row p{margin:5px 0;line-height:1.5}
.office-address-row .icon-button{flex:none;min-width:44px;min-height:44px}
.office-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:16px 0}
.office-controls .field{flex:1 1 120px;min-width:0}
.office-controls input,.office-controls select{width:100%;min-width:0}
.office-tabs{display:flex;border-bottom:1px solid #dce9eb}
.office-tabs button{flex:1;padding:12px 8px;border:0;background:transparent;color:#35535b;font:inherit;min-height:44px}
.office-tabs [aria-selected=true]{color:#08757a;border-bottom:2px solid #08757a;font-weight:700}
.office-list-row{display:flex;flex-direction:column;text-align:left;gap:6px;width:100%;padding:14px 0;border:0;border-bottom:1px solid #dce9eb;background:transparent;color:inherit;font:inherit;overflow-wrap:anywhere}
.office-list-row span{font-size:13px;color:#50666e}
.office-unit-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px 0;border-bottom:1px solid #dce9eb;overflow-wrap:anywhere}
.office-unit-row small{grid-column:1/-1}
.office-editor{max-height:85dvh;overflow:auto;padding-bottom:max(20px,env(safe-area-inset-bottom));width:min(520px,calc(100% - 24px));box-sizing:border-box}
.office-editor h2{font-size:20px}
.office-editor fieldset{min-width:0;border:0;padding:0;margin:8px 0}
.office-editor [data-vacant-units]{max-height:240px;overflow:auto}
.office-editor .primary-button{height:46px;border-radius:12px;background:#08777b;color:white}
.office-editor input,.office-editor select{max-width:100%;box-sizing:border-box}
