:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #172f2b;
  background: #f3f5f2;
  font-synthesis: none;
  --forest: #17473d;
  --dark: #153832;
  --ink: #172f2b;
  --muted: #526661;
  --line: #dce5df;
  --paper: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, select, input, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #489482; outline-offset: 3px;
}
svg { width: 21px; height: 21px; flex: none; vertical-align: middle; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.055em; }
h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.025em; }
p { line-height: 1.55; }
small { font-size: .86rem; }
.loading { padding: 2rem; }
.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; font-size: 1rem; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; }
.brand-icon { display: block; flex: none; width: 68px; height: 42px; object-fit: contain; border-radius: 6px; background: #fff; }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; min-height: 0; overflow: auto; padding: 24px 15px 14px; color: #eff8f2; background: var(--dark); }
.sidebar > .brand { margin: 0 0 30px 11px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-label { color: #afd0c4; font-weight: 650; font-size: .82rem; padding: 0 12px; margin: 20px 0 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; text-align: left; text-decoration: none;
  border: 0; border-radius: 8px; background: transparent; color: #e2efe8; font-weight: 550; font-size: .94rem;
}
.nav-item svg { width: 18px; height: 18px; opacity: .9; }
.nav-item:hover { background: #244e44; }
.nav-item.selected { color: #d7ffe9; background: #2a5b4e; box-shadow: inset 3px 0 #7bdeb1; }
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.sidebar-foot > .nav-item { margin-bottom: 12px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 13px 5px 2px; border-top: 1px solid #426358; }
.profile > div { min-width: 0; flex: 1; }
.profile strong { display: block; font-size: .91rem; overflow-wrap: anywhere; }
.profile small { color: #aed0c2; }
.avatar { width: 35px; height: 35px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #daeee4; color: #245347; font-weight: 700; font-size: .82rem; }
.workspace { min-width: 0; }
.topbar { height: 67px; padding: 0 clamp(20px,4vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: .9rem; }
.breadcrumb span { color: #81958c; margin: 0 7px; }
.breadcrumb strong { color: var(--ink); }
.content { max-width: 1550px; margin: auto; padding: 28px clamp(20px,4vw,48px) 40px; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 228px; color: #fff; background: linear-gradient(105deg,#17463e,#256252); border-radius: 17px; }
.hero-content { max-width: 690px; padding: 26px clamp(24px, 4vw, 40px); position: relative; z-index: 1; }
.hero small { display: flex; align-items: center; gap: 8px; color: #d2e9dc; margin-bottom: 15px; }
.hero small svg { width: 17px; height: 17px; }
.hero p { color: #d7e9e0; font-size: 1.04rem; margin-top: 8px; }
.hero .button { margin-top: 19px; }
.hero-pattern { position: absolute; width: 520px; height: 520px; top: 42%; right: -40px; transform: translateY(-42%) rotate(-32deg); opacity: .55; }
.hero-pattern i { position: absolute; inset: 5%; border: 1px solid #6ab498; border-radius: 46%; }
.hero-pattern i:nth-child(2) { inset: 12%; }
.hero-pattern i:nth-child(3) { inset: 19%; }
.hero-pattern i:nth-child(4) { inset: 26%; background: #3a7b67; }
.button, .icon-button, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
.button { border-radius: 8px; border: 1px solid #cbd9d1; min-height: 41px; padding: 8px 13px; font-size: .92rem; font-weight: 650; color: #225246; background: #fff; }
.button:hover { background: #eaf3ed; }
.button svg { width: 17px; height: 17px; }
.button.primary { color: #fff; background: var(--forest); border-color: var(--forest); }
.button.primary:hover { background: #266454; }
.button.hero-button { background: #d3f0de; border-color: #d3f0de; color: #163d32; }
.button.hero-button:hover { background: #eefff4; }
.icon-button { font-size: 0; border: 0; color: inherit; background: transparent; width: 34px; min-width: 34px; height: 34px; border-radius: 7px; }
.icon-button:hover { background: #8ab3a330; }
.text-button { color: #215d4e; font-weight: 650; border: none; background: transparent; padding: 6px 0; font-size: .9rem; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
[data-action="claim-note-install"][hidden] { display: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(158px,1fr)); gap: 14px; margin: 19px 0; }
.stat { min-width: 0; display: grid; justify-items: start; gap: 3px; padding: 16px; text-align: left; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 13px; }
.stat:hover { border-color: #84ae9c; background: #fcfffc; }
.stat-icon { width: 39px; height: 39px; display: inline-grid; place-items: center; border-radius: 10px; flex: none; }
.stat-icon svg { width: 20px; height: 20px; }
.mint { background: #e0f2e7; color: #255a49; }
.blue { background: #e4eff7; color: #315d79; }
.lilac { background: #eee8f8; color: #5e4d7b; }
.amber { background: #faf0d7; color: #73500f; }
.neutral { background: #edf1ed; color: #485e55; }
.stat-title { font-size: .91rem; margin-top: 6px; font-weight: 650; }
.stat strong { font-size: 1.75rem; line-height: 1.12; letter-spacing: -.04em; }
.stat small { color: var(--muted); }
.tag { display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; font-size: .84rem; font-weight: 650; line-height: 1.25; padding: 5px 10px; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 17px; }
.panel { overflow: hidden; border: 1px solid var(--line); background: white; border-radius: 13px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 19px; border-bottom: 1px solid #e7ece8; }
.activity { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 18px; background: white; border: 0; border-bottom: 1px solid #eaf0ec; color: var(--ink); text-align: left; }
.activity:last-child { border-bottom: 0; }
.activity:hover { background: #f7faf7; }
.activity-main { flex: 1; min-width: 0; }
.activity strong { display: block; font-size: .94rem; margin-bottom: 2px; }
.activity small { color: var(--muted); }
.activity > small:last-child { text-align: right; }
.empty { padding: 22px; color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 22px; }
.page-heading p { color: var(--muted); margin-top: 9px; }
.actions { flex-shrink: 0; }
.billing-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.billing-nav .button.current { background: #e2f2e8; border-color: #80ae99; }
.billing-nav .button:last-child:not([data-page]) { margin-inline-start: auto; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.invoice-samples { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 19px; }
.invoice-number { display: block; font-size: .9rem; }
.form-grid label[hidden] { display: none; }
.form-grid fieldset[hidden] { display: none; }
.batch-help { margin: 0 21px 12px; color: var(--muted); font-size: .92rem; }
.modal-head + form > .batch-help:first-child { margin-top: 16px; }
.batch-options { margin: 0 21px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; max-height: 12rem; overflow: auto; }
.batch-option { flex-direction: row; align-items: center; padding: 4px; font-size: .94rem; }
.batch-option input { width: 18px; min-height: 18px; }
#batch-editor .form-error, #invoice-editor .form-error { margin: 0 21px 10px; }
.filters { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; padding: 15px 18px; }
.shift-month-picker, .kitchen-date-picker { display: flex; align-items: end; gap: 6px; }
.kitchen-week-heading { flex-wrap: wrap; }
.kitchen-week-picker { display: flex; align-items: center; gap: 6px; }
.shift-month-picker button, .kitchen-date-picker button, .kitchen-week-picker button { padding-inline: 8px; }
.search { display: flex; flex-direction: row; align-items: center; gap: 8px; max-width: 335px; flex: 1 1 200px; border: 1px solid #cbd9d1; padding-left: 9px; border-radius: 8px; color: var(--muted); }
.search input { width: 100%; border: 0; background: transparent; }
.search svg { width: 17px; height: 17px; }
.inline-field { font-size: .89rem; min-width: 135px; max-width: 250px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .94rem; }
th, td { padding: 13px 17px; border-top: 1px solid #e6ede8; }
th { font-size: .88rem; font-weight: 650; color: #405b53; background: #f5f8f5; }
td { overflow-wrap: anywhere; }
#kitchen-production-editor th[scope="row"] { min-width: 7rem; overflow-wrap: normal; }
td .text-button { white-space: nowrap; }
.table-person { display: flex; align-items: center; gap: 9px; }
.info-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #ecdfb8; background: #fffaed; border-radius: 11px; padding: 14px 18px; margin-bottom: 16px; }
.info-panel p { margin-top: 4px; font-size: .91rem; color: #614d25; }
.spaced { margin-top: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #c9d9cf; border-radius: 7px; min-height: 41px; padding: 8px 10px; background: #fff; color: var(--ink); font-weight: 400; }
textarea { min-height: 84px; resize: vertical; }
.form-error { color: #a13731; font-size: .92rem; min-height: 1.4em; }
dialog { width: min(660px, calc(100vw - 28px)); max-height: calc(100dvh - 26px); padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: 0 15px 65px #11252450; }
dialog::backdrop { background: #102b27a0; }
dialog:has(#shift-month-controls[data-own="false"]) { width: min(1440px, calc(100vw - 28px)); }
dialog:has(#kitchen-week-print, #fluid-balance-print, #employee-editor, [data-intake-section]) { width: min(1120px, calc(100vw - 28px)); }
#kitchen-week-print { padding: 18px; }
.transfer-signature { margin-top: 24px; break-inside: avoid; }
@media print {
  @page menu-week { size: A4 landscape; margin: 10mm; }
  body:has(#kitchen-production-sheet, #kitchen-week-print, #clinical-visits-print) .shell { display: none; }
  dialog:has(#kitchen-production-sheet, #kitchen-week-print, #clinical-visits-print) { position: static; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  dialog:has(#kitchen-week-print) { page: menu-week; }
  dialog:has(#kitchen-production-sheet, #kitchen-week-print)::backdrop,
  dialog:has(#kitchen-production-sheet, #kitchen-week-print) .modal-head,
  dialog:has(#kitchen-production-sheet, #kitchen-week-print) .modal-foot { display: none; }
  #kitchen-production-sheet .table-scroll, #kitchen-week-print .table-scroll { overflow: visible; }
  #kitchen-week-print { padding: 0; }
  #kitchen-week-print table { table-layout: fixed; width: 100%; min-width: 0; font-size: 9pt; }
  #kitchen-week-print th, #kitchen-week-print td { padding: 5px; overflow-wrap: anywhere; }
  #kitchen-week-print tr { break-inside: avoid; }
  dialog:has(#clinical-visits-print)::backdrop, dialog:has(#clinical-visits-print) .modal-head,
  dialog:has(#clinical-visits-print) .modal-foot, dialog:has(#clinical-visits-print) .filters, #clinical-visits-print .visits-action { display: none; }
  #clinical-visits-print .table-scroll { overflow: visible; }
  #clinical-visits-print tr { break-inside: avoid; }
  body:has(#transfer-report-print, #assessment-print) .shell,
  dialog:has(#transfer-report-print, #assessment-print)::backdrop,
  dialog:has(#transfer-report-print, #assessment-print) .modal-head,
  dialog:has(#transfer-report-print, #assessment-print) .modal-foot, #transfer-copy-editor { display: none; }
  dialog:has(#transfer-report-print, #assessment-print) { position: static; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  #transfer-report-print, #assessment-print { padding: 0; }
  #transfer-report-print h2, #transfer-report-print h3, #transfer-report-print dt, #assessment-print dt { break-after: avoid; }
  body:has(#diagnoses-print) .shell, dialog:has(#diagnoses-print) > :not(#diagnoses-print),
  dialog:has(#diagnoses-print)::backdrop, #diagnoses-print .diagnoses-control { display: none; }
  dialog:has(#diagnoses-print) { position: static; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  #diagnoses-print .table-scroll { overflow: visible; }
  #diagnoses-print tr { break-inside: avoid; }
  body:has(#fluid-balance-print) .shell, dialog:has(#fluid-balance-print) > :not(#fluid-balance-print),
  dialog:has(#fluid-balance-print)::backdrop, #fluid-balance-print .fluid-balance-control { display: none; }
  dialog:has(#fluid-balance-print) { position: static; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  #fluid-balance-print { padding: 0; }
  #fluid-balance-print .table-scroll { overflow: visible; }
  #fluid-balance-print table { width: 100%; min-width: 0; font-size: 9pt; }
  #fluid-balance-print th, #fluid-balance-print td { padding: 3px; overflow-wrap: anywhere; }
  #fluid-balance-print tr { break-inside: avoid; }
  :root:has(#fluid-balance-print, #bed-rail-print, #fall-report-print) { background: white; }
  body:has(#bed-rail-print) .shell, dialog:has(#bed-rail-print) > :not(#bed-rail-print),
  dialog:has(#bed-rail-print)::backdrop { display: none; }
  dialog:has(#bed-rail-print) { position: static; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  #bed-rail-print { padding: 0; }
  #bed-rail-print .table-scroll { overflow: visible; }
  #bed-rail-print tr { break-inside: avoid; }
  body:has(#fall-report-print) .shell, dialog:has(#fall-report-print) > :not(#fall-report-print),
  dialog:has(#fall-report-print)::backdrop { display: none; }
  dialog:has(#fall-report-print) { position: static; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  #fall-report-print { padding: 0; }
  #fall-report-print h2, #fall-report-print h3, #fall-report-print dt { break-after: avoid; }
}
.shift-month-scroll { max-height: 65dvh; overflow: auto; }
.shift-month-table th, .shift-month-table td { min-width: 62px; padding: 6px 8px; white-space: nowrap; }
.shift-month-table thead th { position: sticky; top: 0; z-index: 1; background: #eef5f1; }
.shift-month-table tr > th:first-child { position: sticky; left: 0; background: #f7faf8; }
.shift-month-table thead tr > th:first-child { z-index: 2; }
.shift-month-table .weekend, .shift-month-personal .weekend { background: #edf0f9; }
.shift-month-table .holiday, .shift-month-personal .holiday { background: #faebd7; }
.shift-month-table .shift-time { display: block; padding: 4px 2px; color: #215d4e; }
.shift-month-table .shift-exception { color: #79471c; }
.shift-month-table .shift-archived { display: block; color: #634179; background: #f3ebf8; padding: 2px 6px; border-radius: 4px; }
.shift-month-table .shift-on-duty > th:first-child,
.shift-month-table .shift-on-duty > td:nth-child(2) { background: #e7f3eb; }
.shift-month-table .shift-selected-day { box-shadow: inset 1px 0 #9cbbab, inset -1px 0 #9cbbab; }
.shift-workgroup { display: block; font-weight: normal; }
.shift-add-cell { width: 100%; padding: 3px; border: 0; background: transparent; color: #456359; cursor: pointer; }
.shift-add-cell:hover, .shift-add-cell:focus-visible { background: #dcece4; }
.shift-month-personal { list-style: none; padding: 0; }
.shift-month-personal li { display: grid; gap: 3px; border-bottom: 1px solid var(--line); padding: 8px; }
.modal-head, .modal-foot { display: flex; align-items: center; gap: 10px; padding: 15px 21px; }
.modal-head { justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.3rem; }
.modal-foot { justify-content: end; border-top: 1px solid var(--line); }
.form-grid, .details { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; padding: 17px 21px; }
.form-grid .full { grid-column: 1 / -1; }
#nursing-shift-editor fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; margin: 0; }
#editor .form-error { margin: 0 21px 10px; }
.details { margin: 0; }
.details dt { color: var(--muted); font-size: .87rem; margin-bottom: 4px; }
.details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.plan-history { padding: 17px 21px; }
.plan-history details { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.plan-history summary { cursor: pointer; font-weight: 600; }
.plan-history .details { padding: 8px 0 0; }
.modal-foot { flex-wrap: wrap; }
.client-imported { margin: 0 21px 14px; border: 1px solid var(--line); border-radius: 8px; }
.client-imported summary { padding: 10px 12px; cursor: pointer; font-weight: 650; }
.plan-report-text { padding: 8px 12px 12px; overflow-wrap: anywhere; }
.plan-report-text p + p { margin-top: 6px; }
.source-preview { margin: 0; padding: 18px 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 21px 16px; }
#notice { position: fixed; z-index: 6; right: 18px; bottom: 20px; max-width: min(440px,calc(100vw - 36px)); background: #193f35; color: white; border-radius: 9px; padding: 12px 15px; box-shadow: 0 8px 30px #132f2850; }
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.login-feature { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px,5vw,72px); background: linear-gradient(155deg,#102f6c 15%,#153832 100%); color: white; }
.login-identity { display: grid; gap: clamp(18px,3vh,32px); }
.login-logo { display: block; width: min(100%, 410px); height: auto; border-radius: 12px; background: #fff; }
.login-feature h1 { font-size: clamp(2.6rem,5.2vw,5.5rem); }
.login-feature p { color: #e0ece8; font-size: 1.12rem; max-width: 370px; margin-top: 15px; }
.login-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.login-tiles span { display: flex; align-items: center; gap: 8px; border: 1px solid #679684; border-radius: 24px; padding: 7px 12px; }
.login-tiles svg { width: 17px; height: 17px; }
.login-panel { display: grid; place-items: center; padding: 24px; background: #fbfdfa; }
.login-content { width: min(100%, 385px); }
.login-content h2 { font-size: 2.2rem; margin: 8px 0; }
.login-content p { color: var(--muted); }
.login-content form { display: grid; gap: 13px; margin-top: 19px; }
.login-content .form-error { color: #a13731; }
.login-content .form-error:empty { display: none; }
.demo { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.mobile-shell { min-height: 100dvh; max-width: 680px; margin: auto; background: #f5f8f5; border-inline: 1px solid var(--line); }
.mobile-header { background: var(--dark); color: #edf8ef; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; }
.mobile-header .profile { border: 0; padding: 0; }
.mobile-header .profile > div { display: none; }
.mobile-content { padding: 19px 18px 98px; }
.mobile-content h1 { margin: 9px 0 20px; }
.mobile-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 15px; margin-bottom: 12px; }
.mobile-card-head { display: flex; gap: 10px; align-items: center; }
.mobile-card-head > div { flex: 1; }
.mobile-card p { color: var(--muted); font-size: .91rem; margin-top: 5px; }
.mobile-card > p { margin-top: 11px; }
.mobile-card-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 12px; color: #3a5b52; }
.mobile-card .text-button { margin-top: 6px; }
.mobile-calendar-controls { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-bottom: 14px; }
.mobile-calendar-controls label { min-width: 0; }
.mobile-calendar-controls button { display: grid; place-items: center; min-width: 38px; min-height: 41px; padding: 6px; }
.mobile-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mobile-calendar-weekday { text-align: center; font-size: .75rem; color: var(--muted); padding-block: 4px; }
.mobile-calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 48px; min-width: 0; padding: 4px 1px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); }
.mobile-calendar-day.weekend { background: #f0f3f1; }
.mobile-calendar-day.scheduled { background: #e2f2e8; }
.mobile-calendar-day[aria-current="date"] strong { text-decoration: underline; }
.mobile-calendar-day[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.mobile-calendar-day small { font-size: .68rem; overflow-wrap: anywhere; max-width: 100%; }
.mobile-calendar-detail { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.mobile-calendar-detail ul { margin-block: 6px 0; padding-inline-start: 20px; }
.mobile-lunch + .mobile-lunch { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.meal-portion-count { white-space: nowrap; }
.preserve { white-space: pre-wrap; }
.mobile-nav { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 680px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: white; border: 1px solid var(--line); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); }
.mobile-nav .nav-item { flex-direction: column; gap: 4px; text-align: center; color: #395c52; }
.mobile-nav .nav-item:hover { background: #f0f7f2; }
.mobile-nav .nav-item.selected { color: #215647; background: #e2f2e8; box-shadow: none; }
.mobile-shell ~ #notice, body:has(.mobile-shell) #notice { bottom: 82px; }
@media (max-width: 1050px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 12px; }
  .sidebar > .brand { margin: 0 0 8px 5px; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar .nav-label { display: none; }
  .sidebar .nav-item { width: auto; padding: 7px 8px; gap: 6px; }
  .sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
  .sidebar-foot > .nav-item { margin: 0; }
  .sidebar-foot .profile { border: 0; padding: 0; }
  .sidebar-foot .profile > div { display: none; }
  .topbar { min-height: 45px; height: auto; padding-block: 9px; }
  .content { padding-top: 16px; }
  .page-heading, .info-panel { align-items: flex-start; flex-direction: column; }
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-feature { padding: 22px; }
  .login-logo { width: min(100%, 230px); }
  .login-feature h1 { font-size: 2.55rem; }
  .login-tiles { display: none; }
  .login-panel { align-items: start; }
  .hero-pattern { right: -300px; opacity: .35; }
}
@media (max-width: 430px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .activity { padding: 10px; gap: 7px; }
  .activity small { font-size: .8rem; }
  .panel-heading { padding: 12px; }
}
