/* Operator OS. Apple system colors and type ramp. Text variants use Apple's
   Increased Contrast values so every text pair clears WCAG AA. */
:root {
  color-scheme: light dark;
  --bg: #F2F2F7;                 /* systemGroupedBackground */
  --bg-2: #FFFFFF;               /* secondarySystemGroupedBackground */
  --bg-3: #F2F2F7;               /* tertiarySystemGroupedBackground */
  --fill: rgba(120, 120, 128, .12);   /* tertiarySystemFill */
  --fill-2: rgba(120, 120, 128, .2);
  --sidebar: #EBEBF0;
  --label: #000000;
  --label-2: #6E6E73;            /* secondaryLabel, AA-safe */
  --label-3: rgba(60, 60, 67, .3);  /* tertiaryLabel: decoration only */
  --sep: rgba(60, 60, 67, .29);  /* separator */
  --sep-opaque: #C6C6C8;         /* opaqueSeparator */
  --blue: #007AFF;  --blue-text: #0066CC;  --blue-fill: #0071E3;  --blue-tint: rgba(0, 122, 255, .12);
  --red: #FF3B30;   --red-text: #D70015;
  --orange: #FF9500; --orange-text: #C93400;
  --green: #34C759; --green-text: #1E7B34;
  --teal: #30B0C7;
  --claude: #C2410C;
  --material: rgba(246, 246, 248, .78);
  --hud: rgba(30, 30, 32, .86);
  --hud-text: #FFFFFF;
  --menu: rgba(255, 255, 255, .97);
  --menu-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 10px 32px rgba(0, 0, 0, .14);
  --focus: #007AFF;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", sans-serif;
  --r: 12px;
  --side-w: 264px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #1C1C1E;
    --bg-3: #2C2C2E;
    --fill: rgba(118, 118, 128, .24);
    --fill-2: rgba(118, 118, 128, .32);
    --sidebar: #161618;
    --label: #FFFFFF;
    --label-2: rgba(235, 235, 245, .62);
    --label-3: rgba(235, 235, 245, .3);
    --sep: rgba(84, 84, 88, .65);
    --sep-opaque: #38383A;
    --blue: #0A84FF;  --blue-text: #409CFF;  --blue-fill: #0071E3;  --blue-tint: rgba(10, 132, 255, .2);
    --red: #FF453A;   --red-text: #FF6961;
    --orange: #FF9F0A; --orange-text: #FFB340;
    --green: #30D158; --green-text: #30DB5B;
    --teal: #40C8E0;
    --claude: #F0905F;
    --material: rgba(22, 22, 24, .78);
    --hud: rgba(58, 58, 60, .9);
    --menu: rgba(44, 44, 46, .97);
    --menu-shadow: 0 0 0 .5px rgba(255, 255, 255, .1), 0 10px 32px rgba(0, 0, 0, .5);
    --focus: #0A84FF;
  }
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (min-width: 1600px) { html { font-size: 18px; } }
body { margin: 0; background: var(--bg); color: var(--label); font-family: var(--font); font-size: 1.0625rem; line-height: 1.375rem; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
.num, .metric-value, time, .trail { font-variant-numeric: tabular-nums; }
.ico { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }

/* ---------- Type ramp ---------- */
.large-title { font-size: 2.125rem; line-height: 2.5625rem; font-weight: 700; letter-spacing: .011em; }
.title-2 { font-size: 1.375rem; line-height: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.headline { font-size: 1.0625rem; line-height: 1.375rem; font-weight: 600; }
.subhead { font-size: .9375rem; line-height: 1.25rem; letter-spacing: -.016em; }
.footnote { font-size: .8125rem; line-height: 1.125rem; letter-spacing: -.006em; }
.secondary { color: var(--label-2); }

/* ---------- Buttons ---------- */
.btn { appearance: none; border: 0; border-radius: 10px; min-height: 44px; padding: 0 1rem; font-size: 1.0625rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .375rem; white-space: nowrap; transition: background-color .2s var(--ease), opacity .2s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-filled { background: var(--blue-fill); color: #FFFFFF; }
.btn-filled:hover { background: #0062C4; }
.btn-tinted { background: var(--blue-tint); color: var(--blue-text); }
.btn-tinted:hover { background: color-mix(in srgb, var(--blue) 18%, transparent); }
.btn-plain { background: transparent; color: var(--blue-text); padding: 0 .5rem; font-weight: 400; }
.btn-plain:hover { background: var(--fill); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn-block { width: 100%; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--blue-text); width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: background-color .2s var(--ease); }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--fill); }
.icon-btn .ico { width: 1.5rem; height: 1.5rem; }

/* ---------- Login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1rem; }
.login-panel { width: min(360px, 100%); display: grid; justify-items: center; }
.app-icon { width: 72px; height: 72px; border-radius: 16px; background: #1C1C1E; color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1); }
@media (prefers-color-scheme: dark) { .app-icon { background: #3A3A3C; } .sidebar { --label-2: rgba(235, 235, 245, .62); } }
.app-icon svg { width: 44px; height: 44px; }
.login-panel h1 { font-size: 1.75rem; line-height: 2.125rem; font-weight: 700; margin-top: 1.25rem; }
.login-sub { color: var(--label-2); margin-top: .25rem; }
.group-label { justify-self: stretch; margin: 2rem 0 .375rem 1rem; color: var(--label-2); font-size: .8125rem; }
.field-group { justify-self: stretch; }
.field-group input { width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--label); font: inherit; font-size: 1.0625rem; padding: 0 1rem; border-radius: var(--r); }
.field-group input::placeholder { color: var(--label-3); }
.field-group input:focus-visible { outline-offset: 0; }
.form-error { justify-self: stretch; color: var(--red-text); font-size: .8125rem; min-height: 1.125rem; margin: .5rem 1rem 1rem; }
.login-foot { color: var(--label-2); font-size: .8125rem; margin-top: 1.25rem; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { --label-2: #636366; position: sticky; top: 0; height: 100vh; background: var(--sidebar); border-right: .5px solid var(--sep); display: flex; flex-direction: column; padding: 1.25rem .75rem 1rem; }
.side-head { padding: .5rem .75rem 1.25rem; }
.side-home { font-size: 1.0625rem; font-weight: 600; }
.side-meta { color: var(--label-2); font-size: .8125rem; line-height: 1.125rem; margin-top: .125rem; }
.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.source-list a { display: flex; align-items: center; gap: .625rem; min-height: 44px; padding: 0 .75rem; border-radius: 8px; color: var(--label); text-decoration: none; font-size: 1.0625rem; transition: background-color .15s var(--ease); }
.source-list a .ico { color: var(--blue); }
.source-list a:hover { background: var(--fill); }
.source-list a.active { background: var(--blue-fill); color: #FFFFFF; }
.source-list a.active .ico, .source-list a.active .count { color: #FFFFFF; }
.source-list .count { margin-left: auto; color: var(--label-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; padding: 0 .75rem; display: grid; gap: .25rem; justify-items: start; }
.sync { display: flex; align-items: center; gap: .5rem; color: var(--label-2); font-size: .8125rem; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sync.stale .sync-dot { background: var(--orange); }
.side-demo { color: var(--label-2); font-size: .8125rem; }
.side-signout { margin: .5rem 0 0 -.5rem; font-size: .9375rem; }
.side-signout .ico { width: 1.125rem; height: 1.125rem; }

.content { min-width: 0; }
.toolbar { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0 clamp(1rem, 3vw, 3rem); border-bottom: .5px solid transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.toolbar.scrolled { background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--sep); }
.toolbar-title { font-size: 1.0625rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toolbar.scrolled .toolbar-title { opacity: 1; transform: none; }
.toolbar-signout { position: absolute; right: .5rem; display: none; font-size: 1.0625rem; }
.main { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 3rem) 3rem; }
.main-foot { display: none; }

/* ---------- Page header ---------- */
.page-head { padding: 0 0 1.5rem; }
.page-head .secondary { margin-top: .25rem; font-size: 1.0625rem; }

/* ---------- Inset grouped lists ---------- */
.group { background: var(--bg-2); border-radius: var(--r); }
.section { margin-bottom: 2rem; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 1rem .5rem; }
.section-head h2 { font-size: 1.25rem; line-height: 1.5625rem; font-weight: 700; letter-spacing: -.02em; }
.section-head .aside { color: var(--label-2); font-size: .9375rem; }
.section-foot { color: var(--label-2); font-size: .8125rem; line-height: 1.125rem; padding: .5rem 1rem 0; max-width: 70ch; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .6875rem 1rem; }
.row + .row::before, .ex-row + .ex-row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--inset, 1rem); border-top: .5px solid var(--sep); }
.row .lead { flex: none; display: grid; place-items: center; width: 1.375rem; color: var(--label-2); }
.row .body { flex: 1; min-width: 0; }
.row .trail { flex: none; color: var(--label-2); text-align: right; font-size: .9375rem; }
.row .t { font-size: 1.0625rem; }
.row .s { color: var(--label-2); font-size: .9375rem; line-height: 1.25rem; margin-top: .125rem; }
.dot { width: .75rem; height: .75rem; border-radius: 50%; display: inline-block; flex: none; background: var(--label-3); }
.dot.red { background: var(--red); } .dot.amber { background: var(--orange); } .dot.green { background: var(--green); } .dot.blue { background: var(--blue); }
.dot.sm { width: .5rem; height: .5rem; }
.text-red { color: var(--red-text) !important; } .text-amber { color: var(--orange-text) !important; } .text-green { color: var(--green-text) !important; }

/* ---------- Summary (Health style) ---------- */
.summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--sep-opaque); overflow: hidden; margin-bottom: 2rem; }
.metric { background: var(--bg-2); padding: .875rem 1.25rem 1rem; min-width: 0; }
.metric-label { color: var(--label-2); font-size: .9375rem; line-height: 1.25rem; }
.metric-value { font-size: 1.75rem; line-height: 2.125rem; font-weight: 600; letter-spacing: -.01em; margin-top: .125rem; white-space: nowrap; }
.metric-value small { font-size: 1.0625rem; font-weight: 600; color: var(--label-2); letter-spacing: 0; }
.metric-note { color: var(--label-2); font-size: .8125rem; line-height: 1.125rem; display: flex; align-items: center; gap: .375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary.aging { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.25rem; }
@media (min-resolution: 2dppx) { .summary { gap: .5px; } }
.summary.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Today ---------- */
.today-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.ex-row { position: relative; display: grid; grid-template-rows: 1fr; transition: grid-template-rows .38s var(--ease), opacity .3s var(--ease); --inset: 2.75rem; }
.ex-row.leaving { grid-template-rows: 0fr; opacity: 0; }
.ex-row.leaving + .ex-row::before { opacity: 0; }
.ex-row.leaving > .ex-inner { overflow: hidden; }
.ex-row.entering { animation: rowIn .45s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }
.ex-inner { min-height: 0; display: grid; grid-template-columns: 1rem minmax(0, 1fr); column-gap: .75rem; padding: .75rem 1rem .8125rem; }
.ex-inner > .dot { margin-top: .3125rem; }
.ex-top { display: flex; align-items: baseline; gap: .75rem; }
.ex-title { flex: 1; min-width: 0; font-size: 1.0625rem; font-weight: 600; }
.ex-when { flex: none; color: var(--label-2); font-size: .9375rem; }
.ex-detail { color: var(--label-2); font-size: .9375rem; line-height: 1.25rem; margin-top: .1875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 72ch; }
.ex-actions { display: flex; align-items: center; gap: .5rem; margin-top: .625rem; position: relative; }
.ex-row.done .ex-inner > .dot { background: var(--green); }
.ex-done { display: flex; align-items: center; gap: .5rem; color: var(--green-text); font-size: .9375rem; margin-top: .25rem; }
.ex-done .ico { width: 1.25rem; height: 1.25rem; }
.ex-row.done .ex-title { color: var(--label-2); }

.menu-anchor { position: relative; display: inline-flex; }
.menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 232px; padding: .3125rem; border-radius: 12px; background: var(--menu); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: var(--menu-shadow); transform-origin: top left; animation: menuIn .18s var(--ease); }
.menu.up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom left; }
@keyframes menuIn { from { opacity: 0; transform: scale(.94); } }
.menu button { display: flex; width: 100%; align-items: center; min-height: 44px; padding: 0 .75rem; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 1.0625rem; cursor: pointer; color: var(--label); }
.menu button:hover, .menu button:focus-visible { background: var(--blue-fill); color: #FFFFFF; outline: none; }
.menu hr { border: 0; border-top: .5px solid var(--sep); margin: .25rem .75rem; }

.empty { padding: 2.5rem 1rem; display: grid; justify-items: center; text-align: center; gap: .375rem; }
.empty .ico { width: 2.75rem; height: 2.75rem; color: var(--green); stroke-width: 1.25; margin-bottom: .25rem; }
.empty .secondary { font-size: .9375rem; }

details.disclosure { margin-top: .75rem; }
details.disclosure > summary { list-style: none; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; cursor: pointer; color: var(--label-2); font-size: .9375rem; border-radius: 8px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary .ico { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
details.disclosure[open] > summary .ico { transform: rotate(90deg); }
details.disclosure .group { margin-top: .25rem; }

.feed .row { align-items: flex-start; padding-top: .75rem; padding-bottom: .75rem; --inset: 3.125rem; }
.feed .lead { margin-top: .0625rem; }
.feed .lead .ico { width: 1.25rem; height: 1.25rem; }
.feed .lead.claude { color: var(--claude); }
.feed .lead.owner { color: var(--blue); }
.feed .t { font-size: .9375rem; line-height: 1.25rem; }
.feed .trail { font-size: .8125rem; line-height: 1.25rem; }
.feed .who { display: block; font-weight: 600; color: var(--label); }
.feed .who.claude { color: var(--claude); }
.feed .row.fresh { animation: fresh 2.6s var(--ease); }
@keyframes fresh { 0%, 30% { background: var(--blue-tint); } 100% { background: transparent; } }
.feed .row:first-child { border-radius: var(--r) var(--r) 0 0; }
.feed .row:last-child { border-radius: 0 0 var(--r) var(--r); }

/* ---------- Compliance ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.readiness { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem; }
.ring { width: 9.5rem; height: 9.5rem; flex: none; }
.ring text { font-family: var(--font); }
.readiness .rows { flex: 1; min-width: 0; }
.readiness .row { padding-left: 0; padding-right: 0; --inset: 0; }
table.grid-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.grid-table th { text-align: left; font-weight: 400; color: var(--label-2); font-size: .8125rem; padding: .75rem 1rem .5rem; white-space: nowrap; }
.grid-table td { padding: .6875rem 1rem; border-top: .5px solid var(--sep); white-space: nowrap; vertical-align: middle; }
.grid-table td:first-child, .grid-table th:first-child { padding-left: 1rem; }
.grid-table .name { font-weight: 400; }
.grid-table .name small { display: block; color: var(--label-2); font-size: .8125rem; }
.cert { display: inline-flex; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; }
.cert small { color: var(--label-2); font-size: .8125rem; margin-left: .25rem; }
.cert.green .dot { background: var(--green); }
.cert.amber .dot { background: var(--orange); }
.cert.red .dot { background: var(--red); }
.cert.red .days { color: var(--red-text); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shift-list { display: none; }
.shift-list .open-txt { color: var(--orange-text); font-weight: 600; }
.metric-value.text-red small { color: inherit; }

/* ---------- Occupancy ---------- */
.beds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.bed { background: var(--bg-2); border-radius: var(--r); padding: .875rem 1rem; min-height: 6rem; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.bed .n { color: var(--label-2); font-size: .8125rem; }
.bed .who { font-size: 1.0625rem; font-weight: 600; }
.bed .payer { color: var(--label-2); font-size: .9375rem; }
.bed.open { background: var(--blue-tint); }
.bed.open .who { color: var(--blue-text); }
.bed.open .payer { color: var(--blue-text); }

/* ---------- Staffing ---------- */
table.shifts { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 720px; }
.shifts th { font-weight: 400; color: var(--label-2); font-size: .8125rem; padding: .75rem .25rem .5rem; text-align: center; }
.shifts th .d { display: block; margin: .25rem auto 0; width: 2rem; height: 2rem; line-height: 2rem; border-radius: 50%; font-size: 1.0625rem; color: var(--label); font-variant-numeric: tabular-nums; }
.shifts th.today .d { background: #D70015; color: #FFFFFF; font-weight: 600; }
.shifts th.slot, .shifts td.slot { text-align: left; width: 8.5rem; padding-left: 1rem; }
.shifts td { border-top: .5px solid var(--sep); padding: .5rem .25rem; text-align: center; font-size: .9375rem; height: 3.5rem; }
.shifts td.slot small { display: block; color: var(--label-2); font-size: .8125rem; }
.shifts td .open { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 2rem; padding: 0 .75rem; border-radius: 8px; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange-text); font-weight: 600; }
.stars { display: inline-flex; gap: 1px; color: var(--label); font-size: .875rem; letter-spacing: 0; }
.stars .off { color: var(--label-3); }
.review .body { display: grid; gap: .375rem; }
.review .r-head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.review .r-head strong { font-weight: 600; }
.review .r-text { font-size: .9375rem; line-height: 1.3125rem; }
.draft { background: var(--bg-3); border-radius: 10px; padding: .625rem .875rem; margin-top: .25rem; }
@media (prefers-color-scheme: light) { .draft { background: var(--bg); } }
.draft .footnote { color: var(--label-2); margin-bottom: .125rem; }
.draft p { font-size: .9375rem; line-height: 1.3125rem; }
.review .btn { justify-self: start; margin-top: .375rem; }
.replied { display: inline-flex; align-items: center; gap: .25rem; color: var(--label-2); font-size: .8125rem; }
.replied .ico { width: 1rem; height: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inv .btn { flex: none; }

/* ---------- HUD ---------- */
.hud { position: fixed; left: 50%; top: 1.25rem; z-index: 60; display: flex; align-items: center; gap: .5rem; max-width: calc(100% - 2rem); padding: .625rem 1.125rem .625rem .875rem; border-radius: 999px; background: var(--hud); color: var(--hud-text); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); font-size: .9375rem; font-weight: 500; opacity: 0; transform: translate(-50%, -12px) scale(.96); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.hud.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hud .ico { width: 1.25rem; height: 1.25rem; color: var(--green); }
.hud.err .ico { color: var(--orange); }
.hud span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Tab bar (narrow) ---------- */
.tabbar { display: none; }

@media (max-width: 1280px) {
  .summary.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .summary.five .metric { grid-column: span 2; }
  .summary.five .metric:nth-child(n+4) { grid-column: span 3; }
  .summary.aging { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  :root { --side-w: 232px; }
  .today-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .toolbar-signout { display: inline-flex; }
  .toolbar { height: 44px; }
  .main { padding-bottom: calc(83px + env(safe-area-inset-bottom) + 1rem); }
  .main-foot { display: block; color: var(--label-2); font-size: .8125rem; text-align: center; padding: .5rem 0 0; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 0 env(safe-area-inset-bottom); background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 50px; padding: 6px 2px 4px; color: var(--label-2); text-decoration: none; font-size: .625rem; line-height: .75rem; font-weight: 500; letter-spacing: .01em; }
  .tabbar a.active { color: var(--blue-text); }
  .tab-ico { position: relative; display: grid; }
  .tab-ico .ico { width: 1.625rem; height: 1.625rem; }
  .badge { position: absolute; top: -3px; left: 17px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D70015; color: #FFFFFF; font-size: .75rem; line-height: 18px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
  .badge:empty { display: none; }
}
@media (max-width: 640px) {
  .large-title { font-size: 2.125rem; }
  .summary.five, .summary.s3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary.five .metric, .summary.five .metric:nth-child(n+4) { grid-column: auto; }
  .summary.five .metric:nth-child(5), .summary.s3 .metric:nth-child(3) { grid-column: 1 / -1; }
  .metric-note { white-space: normal; }
  .metric { padding: .75rem 1rem .875rem; }
  .metric-value { font-size: 1.5rem; line-height: 1.875rem; }
  .ex-actions .btn-tinted { flex: 1; min-width: 0; white-space: normal; text-align: center; line-height: 1.25rem; padding: .5rem .75rem; }
  .readiness { flex-direction: column; align-items: stretch; }
  .ring { align-self: center; }
  .beds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { margin-bottom: 1.75rem; }
  .inv { flex-wrap: wrap; }
  .shifts-wrap { display: none; }
  .shift-list { display: block; }
  .menu { left: auto; right: 0; transform-origin: top right; }
  .menu.up { transform-origin: bottom right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
