:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #fff;
  --surface-2: #f0f3f7;
  --text: #202b3b;
  --muted: #64748b;
  --line: #e1e6ee;
  --accent: #3f63bf;
  --accent-hover: #3153a7;
  --accent-soft: #eaf0ff;
  --on-accent: #fff;
  --focus: #98b5ff;
  --own-bg: #eaf0ff; --own-fg: #3153a7; --own-line: #6582d2;
  --priority-bg: #f0f2f5; --priority-fg: #596779; --priority-line: #9aa7b7;
  --released-bg: #e3f5e9; --released-fg: #246a43; --released-line: #53a87a;
  --grant-bg: #e3eeff; --grant-fg: #285ba4; --grant-line: #7299db;
  --booked-bg: #fbe9e8; --booked-fg: #9a4141; --booked-line: #d57d7c;
  --extension-bg: #f1eafe; --extension-fg: #6d4b9e; --extension-line: #a284d3;
  --pending-bg: #fff2da; --pending-fg: #885b17; --pending-line: #cc9b47;
  --shadow: 0 4px 20px rgba(25,35,55,.04);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111821; --surface: #1b2430; --surface-2: #263140; --text: #f1f5fa;
  --muted: #a8b6c8; --line: #364255; --accent: #90aeff; --accent-hover: #acc1ff;
  --accent-soft: #283b63; --focus: #b8c9ff; --on-accent: #111821;
  --own-bg: #283b63; --own-fg: #b1c7ff; --own-line: #90aeff;
  --priority-bg: #2a3441; --priority-fg: #c0cad9; --priority-line: #78899f;
  --released-bg: #1e4235; --released-fg: #9de0b4; --released-line: #65ad89;
  --grant-bg: #243d62; --grant-fg: #b2d1ff; --grant-line: #76a9eb;
  --booked-bg: #4a2b30; --booked-fg: #ffc0c0; --booked-line: #df8c92;
  --extension-bg: #3d3055; --extension-fg: #d8bffc; --extension-line: #b295e2;
  --pending-bg: #4c3c24; --pending-fg: #f7d89f; --pending-line: #cca766;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #111821; --surface: #1b2430; --surface-2: #263140; --text: #f1f5fa;
    --muted: #a8b6c8; --line: #364255; --accent: #90aeff; --accent-hover: #acc1ff;
    --accent-soft: #283b63; --focus: #b8c9ff; --on-accent: #111821;
    --own-bg: #283b63; --own-fg: #b1c7ff; --own-line: #90aeff;
    --priority-bg: #2a3441; --priority-fg: #c0cad9; --priority-line: #78899f;
    --released-bg: #1e4235; --released-fg: #9de0b4; --released-line: #65ad89;
    --grant-bg: #243d62; --grant-fg: #b2d1ff; --grant-line: #76a9eb;
    --booked-bg: #4a2b30; --booked-fg: #ffc0c0; --booked-line: #df8c92;
    --extension-bg: #3d3055; --extension-fg: #d8bffc; --extension-line: #b295e2;
    --pending-bg: #4c3c24; --pending-fg: #f7d89f; --pending-line: #cca766;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: 19px; line-height: 26px; font-weight: 650; letter-spacing: -.02em; }
h3 { font-size: 16px; line-height: 22px; font-weight: 650; }
small { font-size: 12px; line-height: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--accent); }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; clip: rect(0,0,0,0); overflow: hidden; }
.skip:focus { z-index: 10; position: fixed; top: 8px; left: 8px; padding: 12px; background: var(--surface); }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.padded { padding: 20px; }
.flow { display: grid; gap: 12px; align-content: start; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.icon { display: inline-grid; place-items: center; flex: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 10px;
  padding: 0 13px; min-height: 44px; min-width: 44px; max-width: 100%; background: var(--surface);
  color: var(--text); border: 1px solid var(--line); font-weight: 600; line-height: 1.3; text-align: center; }
.button:hover { background: var(--surface-2); }
.button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button.quiet:hover, .button.soft { background: var(--surface-2); }
.button.selected, .button.active { background: var(--accent-soft); color: var(--own-fg); border-color: transparent; }
.button.danger { color: var(--booked-fg); }
.button.danger:hover { background: var(--booked-bg); }
.button.icon-button { padding: 0; }
.card-head, .section-head, .page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head { margin-bottom: 2px; }
.page-head .muted, .section-head .muted { margin-top: 4px; }
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100dvh; }
.loading-shell { grid-template-columns: 1fr; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0;
  height: 100dvh; padding: 24px 16px 16px; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: -.012em; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand img { width: 49px; height: 49px; display: block; border-radius: 50%; object-fit: contain; flex: none; }
.brand-copy { display: grid; gap: 2px; line-height: 1.15; }
.brand-copy strong { font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
.brand-copy strong span { color: var(--accent); }
.brand-copy small { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .09em; }
.sidebar > .brand { display: grid; justify-items: start; gap: 9px; margin: 0 6px; }
.sidebar .brand img { width: 38px; height: 38px; }
.sidebar .brand-copy strong { font-size: 20px; text-transform: uppercase; }
.sidebar .brand-copy small { margin-top: 3px; text-transform: uppercase; }
.mobile-brand { display: none; }
.logo-placeholder { font-weight: 700; letter-spacing: .07em; color: var(--muted); border-radius: 50%; border: 1px solid var(--line); padding: 8px; }
.navigation { display: grid; gap: 5px; }
.nav-item { justify-content: flex-start; border-color: transparent; color: var(--muted); text-align: left; min-width: 0; }
.nav-item .icon { margin-right: 2px; }
.nav-item .nav-count { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.body { width: min(100%, 1320px); margin-inline: auto; min-width: 0; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 0 28px; padding: 17px 0; min-height: 76px; border-bottom: 1px solid var(--line); }
.account-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.theme-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.theme-choice.button { gap: 5px; padding-inline: 10px; border: 0; color: var(--muted); background: transparent; }
.theme-choice.button:hover { background: var(--surface-2); }
.theme-choice.button[aria-pressed="true"] { background: var(--accent-soft); color: var(--own-fg); }
.theme-choice .icon { display: inline-grid; }
.account { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 5px; border: 0; background: transparent; border-radius: 10px; font-weight: 650; min-width: 0; }
.account-name { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; }
.top-inbox { position: relative; }
.count { display: grid; place-items: center; min-height: 20px; min-width: 20px; border-radius: 7px; padding: 0 4px; background: var(--pending-bg); color: var(--pending-fg); font-size: 12px; font-weight: 700; }
.top-count { position: absolute; right: -5px; top: -5px; border: 1px solid var(--surface); }
.workspace { min-width: 0; padding: 23px 28px 40px; display: grid; gap: 20px; align-content: start; }
.summary-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 16px; }
.summary-grid.summary-single { grid-template-columns: 1fr; }
.today-card, .quota-card { padding: 16px 20px 18px; }
.today-card .card-head { min-height: 37px; }
.today-card .card-head .button { margin: -5px -6px -4px 0; }
.today-card h2 { margin-bottom: 4px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.next-booking { margin-top: 9px; font-size: 13px; }
.today-strip, .legend-items { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tomorrow-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 3px; }
.tomorrow-strip .today-strip { margin-top: 0; }
.tomorrow-strip > .button { padding-inline: 0; color: var(--text); }
.time-chip.button { background: var(--state-bg); color: var(--state-fg); border: 1px solid transparent; padding: 0 9px; font-size: 13px; font-variant-numeric: tabular-nums; }
.time-chip.button:hover { border-color: var(--state-line); }
.week-bookings-day { display: grid; gap: 6px; padding-top: 9px; border-top: 1px solid var(--line); }
.quota-meter { margin-top: 13px; }
.meter-label { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.meter-label small, .quota-meter > small { color: var(--muted); }
progress { appearance: none; display: block; width: 100%; height: 7px; margin: 5px 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--surface-2); color: var(--accent); }
progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 6px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 6px; }
.state-own { --state-bg: var(--own-bg); --state-fg: var(--own-fg); --state-line: var(--own-line); }
.state-shift, .state-priority, .state-reserved { --state-bg: var(--priority-bg); --state-fg: var(--priority-fg); --state-line: var(--priority-line); }
.state-released, .state-free { --state-bg: var(--released-bg); --state-fg: var(--released-fg); --state-line: var(--released-line); }
.state-grant { --state-bg: var(--grant-bg); --state-fg: var(--grant-fg); --state-line: var(--grant-line); }
.state-booked, .state-fixed { --state-bg: var(--booked-bg); --state-fg: var(--booked-fg); --state-line: var(--booked-line); }
.state-extension { --state-bg: var(--extension-bg); --state-fg: var(--extension-fg); --state-line: var(--extension-line); }
.state-pending { --state-bg: var(--pending-bg); --state-fg: var(--pending-fg); --state-line: var(--pending-line); }
.badge { background: var(--state-bg); color: var(--state-fg); border-radius: 999px; padding: 4px 9px; display: inline-block; font-size: 12px; font-weight: 650; }
.calendar-section { display: grid; gap: 10px; min-width: 0; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(104px, 1fr)); padding: 10px; gap: 6px; overflow-x: auto; }
.week-day { position: relative; border-radius: 10px; border: 1px solid var(--line); min-height: 157px; min-width: 0; padding: 0 7px 7px;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.week-day.day-current { border-color: var(--priority-line); box-shadow: inset 0 0 0 1px var(--priority-line); }
.week-day:hover, .week-day:focus-within { background: var(--surface-2); border-color: var(--priority-line); box-shadow: var(--shadow); }
.day-heading { background: transparent; border: 0; width: 100%; text-align: left; padding: 4px 5px;
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 5px;
  border-bottom: 1px solid var(--line); border-radius: 6px; font-variant-numeric: tabular-nums; }
.fixed-day .day-heading b { color: var(--accent); }
.today-tag { background: var(--priority-bg); color: var(--text); font-size: 12px; font-weight: 650; padding: 2px 5px; border-radius: 6px; }
.state-declined { --state-bg: var(--booked-bg); --state-fg: var(--booked-fg); --state-line: var(--booked-line); }
.fixed-day .mini-event.state-booked { border-inline-start-width: 4px; }
.priority-line { display: block; color: var(--muted); font-size: 12px; line-height: 1.25; margin: 6px 0 1px; overflow-wrap: anywhere; }
.week-events { display: grid; align-content: start; gap: 5px; margin-top: 6px; }
.mini-event { border: 0; border-inline-start: 3px solid var(--state-line); text-align: left; display: grid; align-content: center; gap: 2px;
  font-size: 12px; line-height: 17px; padding: 5px 5px 5px 6px; min-height: 46px; border-radius: 7px; background: var(--state-bg);
  color: var(--state-fg); overflow-wrap: anywhere; transition: box-shadow .15s ease, transform .15s ease; }
.week-day:hover .mini-event { box-shadow: 0 1px 2px rgb(25 35 55 / .08); }
.week-events .mini-event:hover { box-shadow: inset 0 0 0 1px var(--state-line), 0 3px 9px rgb(25 35 55 / .14); transform: translateY(-1px); }
.slot-selected { outline: 2px solid var(--priority-line); outline-offset: 2px; }
.mini-event:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mini-event b, .interval-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.mini-event b { white-space: nowrap; }
.day-switch { display: none; }
.agenda { padding: 16px; display: grid; gap: 10px; scroll-margin-top: 12px; }
.priority-note { color: var(--state-fg); background: var(--state-bg); border-radius: 9px; padding: 9px 12px; font-weight: 650; }
.priority-note small { display: block; font-weight: 400; margin-top: 2px; }
.timeline { display: grid; gap: 8px; }
.timeline > div { border-radius: 10px; scroll-margin: 12px; }
.interval { background: var(--state-bg); color: var(--state-fg); border-inline-start: 4px solid var(--state-line); border-radius: 9px;
  padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.interval-label { font-weight: 650; }
.interval-summary { min-width: 128px; overflow-wrap: anywhere; }
.interval-summary > span, .interval-summary small { display: block; }
.interval-trigger { background: transparent; flex: 1; min-height: 44px; color: inherit; border: 0; border-radius: 7px;
  padding: 4px 8px; margin: -4px -8px; text-align: start; }
.interval-trigger:hover { box-shadow: inset 0 0 0 1px var(--state-line); }
.interval-time .muted, .rights-text { font-size: 12px; font-weight: 500; }
.rights-text { margin-top: 2px; }
.interval-actions .button { font-size: 13px; }
.person { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 650; overflow-wrap: anywhere; }
.person-dot { width: 7px; height: 7px; display: inline-block; align-self: center; flex: none; border-radius: 50%; background: #4e74ba; }
.person-dot.member-1 { background: #bd755b; }
.person-dot.member-2 { background: #398c7a; }
.person-dot.member-3 { background: #8e73af; }
.legend { color: var(--muted); margin-top: -8px; }
.legend summary, .audit-detail summary { min-height: 44px; align-content: center; }
.hours-width { max-width: 560px; }
.list { display: grid; gap: 10px; }
.list-card { padding: 16px; display: grid; align-content: start; gap: 5px; }
.list-card .actions { margin-top: 8px; }
.payment-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.payment-summary dt { color: var(--muted); font-size: 12px; }
.payment-summary dd { margin: 1px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.request-people { color: var(--muted); }
.user-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.notice-list { display: grid; gap: 6px; margin-top: 10px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.notice small { display: block; color: var(--muted); }
.notice.unread { background: var(--accent-soft); }
.empty { display: grid; gap: 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.user-row > div { display: grid; gap: 4px; }
.user-row > .actions { justify-content: flex-end; }
.user-row .person { overflow-wrap: anywhere; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: start; padding: 10px; border-bottom: 1px solid var(--line); }
td, tbody th { white-space: nowrap; }
thead th { background: var(--surface-2); font-size: 12px; }
.audit-detail pre { max-width: 100%; overflow: auto; margin: 4px 0; background: var(--surface-2); padding: 10px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(510px, calc(100% - 24px));
  max-height: calc(100dvh - 24px); overflow: auto; color: var(--text); background: var(--surface); box-shadow: 0 14px 36px #10172432; }
dialog::backdrop { background: #1118218c; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px 8px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 16px; }
.form { display: grid; align-content: start; gap: 12px; min-width: 0; }
.field { display: grid; gap: 5px; min-width: 0; font-weight: 600; }
.field small, .check-field small { display: block; color: var(--muted); font-weight: 400; }
.field input, .field select, textarea { min-height: 44px; width: 100%; min-width: 0; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 400; }
textarea { resize: vertical; }
.split-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.split-form.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.crm-fields, .bare-fieldset { min-width: 0; display: grid; gap: 10px; margin: 0; }
.crm-fields { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px 12px; }
.crm-fields legend { padding: 0 4px; font-weight: 650; }
.private-fields { border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; }
.private-fields > summary { min-height: 44px; align-content: center; font-weight: 650; }
.private-fields > .flow { padding-bottom: 12px; }
.payment-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.payment-balance { color: var(--own-fg); font-weight: 650; }
.bare-fieldset { padding: 0; border: 0; }
.check-field { display: flex; align-items: center; min-height: 44px; gap: 9px; cursor: pointer; }
.check-field input { width: 20px; height: 20px; min-width: 20px; margin: 0; accent-color: var(--accent); }
.error { color: var(--booked-fg); background: var(--booked-bg); border-inline-start: 3px solid var(--booked-line); padding: 9px 12px; border-radius: 7px; }
.entry-shell { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.entry { width: min(100%, 418px); }
.entry-card { padding: 24px; display: grid; gap: 12px; }
.entry-card .brand { margin-bottom: 10px; }
.entry-card .form { margin-top: 8px; }
.entry-card .form .primary { flex-grow: 1; }
.toast { position: fixed; bottom: 16px; right: 16px; max-width: min(400px, calc(100% - 32px)); z-index: 5;
  color: var(--on-accent); background: var(--accent); padding: 10px 14px; border-radius: 9px; box-shadow: var(--shadow); }
.noscript { padding: 12px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .shell { grid-template-columns: 204px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .sidebar .brand-copy strong { font-size: 17px; }
  .workspace { padding-inline: 16px; }
  .topbar { margin-inline: 16px; }
}
@media (max-width: 760px) {
  h1 { font-size: 24px; line-height: 30px; }
  .shell { display: block; }
  .sidebar { height: auto; padding: 0; position: static; border: 0; }
  .sidebar > .brand { display: none; }
  .sidebar-foot { display: none; }
  .mobile-brand { display: block; }
  .brand { gap: 7px; }
  .brand img { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { letter-spacing: .05em; }
  .topbar { margin: 0 12px; min-height: 61px; padding: 8px 0; gap: 6px; justify-content: space-between; }
  .account-actions { gap: 5px; }
  .account { padding-inline: 3px; }
  .account-name { display: none; }
  .theme-choice.button { padding-inline: 6px; }
  .theme-choice .icon { display: inline-grid; }
  .theme-choice > span:not(.icon) { display: none; }
  .navigation { position: fixed; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 3px; padding: 4px 5px max(4px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); z-index: 3; }
  .navigation.member-nav { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .nav-item { min-height: 52px; flex-direction: column; justify-content: center; align-items: center; padding: 1px; gap: 3px; font-size: 11px; position: relative; }
  .user-row { flex-wrap: wrap; }
  .nav-item .icon { margin: 0; }
  .nav-item .nav-count { position: absolute; left: calc(50% + 7px); top: 1px; min-width: 17px; min-height: 17px; }
  .workspace { padding: 14px 12px calc(76px + env(safe-area-inset-bottom)); gap: 14px; }
  .page-head { align-items: flex-start; flex-wrap: wrap; }
  .page-head > .actions { margin-top: 2px; }
  .summary-grid, .settings-grid { grid-template-columns: 1fr; gap: 10px; }
  .today-card, .quota-card, .padded { padding: 13px; }
  .week-toolbar { flex-wrap: wrap; }
  .week-grid { display: none; }
  .day-switch { display: flex; position: relative; padding: 6px; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
  .day-switch .button { flex: 1 0 max-content; padding: 0 9px; }
  .agenda { padding: 12px; }
  .interval-actions { width: 100%; }
  .toast { bottom: calc(65px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .topbar { flex-wrap: wrap; }
  .account-actions { margin-left: auto; }
  .meter-label small { display: block; }
  .interval-actions .button { white-space: normal; }
  .split-form.three { grid-template-columns: 1fr 1fr; }
  .payment-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
