:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--page-text);
  background: var(--background);
  --background: #f5f5ee;
  --page-text: #23332d;
  --ink: #23332d;
  --sidebar: #253b34;
  --sidebar-text: #e7eee6;
  --sidebar-item: color-mix(in srgb, var(--sidebar) 84%, var(--sidebar-text));
  --surface: #fffefa;
  --border: #e5e8dc;
  --muted: #59665f;
  --accent: #28644f;
  --accent-on: #fff;
  --accent-text: #28644f;
  --pale: color-mix(in srgb, var(--accent) 11%, var(--surface));
  --soft: color-mix(in srgb, var(--accent) 5%, var(--surface));
  --radius: 22px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a, label:has(input[type=checkbox]) { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.065em; font-weight: 720; }
h2 { font-size: 23px; letter-spacing: -.035em; }
h3 { font-size: 17px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 28px 16px 18px; background: var(--sidebar); color: var(--sidebar-text); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: -.025em; margin: 0 0 32px 5px; }
.brand small { display: block; font-size: 12px; color: inherit; font-weight: 450; margin-top: 2px; overflow-wrap: anywhere; }
.brand-mark { width: 41px; height: 41px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--sidebar-item); color: inherit; }
.icon { width: 21px; height: 21px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.sidebar nav, .sidebar-bottom { display: grid; gap: 5px; }
.sidebar-bottom { margin-top: auto; }
.sidebar :is(button, a, select):focus-visible { outline-color: var(--sidebar-text); }
.nav-button { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: inherit; background: transparent; border: 0; border-radius: 12px; text-decoration: none; text-align: left; }
.nav-button.active, .nav-button:hover { background: var(--sidebar-item); color: inherit; }
.nav-button.active { font-weight: 700; }
main { min-width: 0; padding: clamp(16px, 2.8vw, 40px); max-width: 1900px; width: 100%; margin-inline: auto; }
.topbar, .top-actions, .panel-header, .inline, .entry, .section-head { display: flex; align-items: center; gap: 10px; }
.topbar, .panel-header, .section-head { justify-content: space-between; }
.topbar { gap: 20px; margin-bottom: 22px; }
.top-actions { flex-wrap: wrap; }
.active-member { max-width: 154px; }
.active-member span:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-profile-options { display: flex; flex-wrap: wrap; gap: 8px; }
#parent-countdown { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 999px; padding: 5px 10px; background: var(--pale); color: var(--ink); font-size: 13px; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-label { color: var(--page-text); font-weight: 650; margin-bottom: 6px; }
#clock { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 10px; white-space: nowrap; }
.button, .icon-button, .chip { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; }
.button:hover, .icon-button:hover, .chip:hover { background: var(--pale); }
.button.primary { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.button.primary:hover { box-shadow: inset 0 0 0 2px var(--accent-on); }
.icon-button { min-width: 44px; padding: 8px; }
.button.danger { color: #9c3430; }
.profiles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.profiles:empty { display: none; }
.chip { border-radius: 999px; min-height: 39px; padding: 6px 13px; font-size: 14px; }
.chip.active { background: var(--pale); border-color: var(--accent-text); }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 750; color: #172620; background: var(--person, #d6e5d7); overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(245px, 1fr); gap: 17px; align-items: start; }
.stack { display: grid; gap: 16px; }
.panel { background: var(--surface); color: var(--ink); border: 1px solid var(--border); padding: 18px; border-radius: var(--radius); box-shadow: 0 2px 3px #34402c08; min-width: 0; }
.panel-header { margin-bottom: 14px; flex-wrap: wrap; }
.panel-header .inline { flex-wrap: wrap; }
.calendar { padding: 16px; }
.modes { display: inline-flex; gap: 3px; padding: 3px; background: var(--soft); border-radius: 12px; }
.modes button { border: 0; background: transparent; padding: 7px 10px; min-height: 38px; border-radius: 9px; color: var(--muted); font-weight: 650; }
.modes button.active { background: white; color: #20372c; box-shadow: 0 1px 3px #2b3b301c; }
.calendar-scroll { overflow-x: auto; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 420px; }
.calendar-grid.single { grid-template-columns: 1fr; min-width: 0; }
.weekday { text-align: center; font-size: 13px; color: var(--muted); font-weight: 650; padding: 10px 0; }
.day { min-width: 0; min-height: clamp(74px, 10.1vh, 126px); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px; background: #fffefa; }
.day.week-start { border-left: 1px solid var(--border); }
.day.first-row { border-top: 1px solid var(--border); }
.day.outside { background: #f7f8f2; color: #718077; }
.day.week-view { min-height: 260px; }
.day.today { background: var(--soft); }
.day-number { min-width: 36px; min-height: 36px; border-radius: 10px; border: 0; background: transparent; color: inherit; font-weight: 650; }
.day-number:hover, .today .day-number { background: var(--pale); color: var(--accent-text); }
.event { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--person, #79a58b); border-radius: 5px; background: color-mix(in srgb, var(--person, #a3c6ac) 37%, #fff); color: #25352e; font-size: 12px; line-height: 1.25; padding: 5px 5px 5px 6px; margin: 3px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.single .event, .week-view .event { min-height: 35px; white-space: normal; overflow-wrap: anywhere; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0 0 8px; font-size: 13px; }
.calendar-legend li { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.calendar-color-dot { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--calendar-color); border: 1px solid #0002; }
.entry > .calendar-color-dot { margin: 0 4px; }
.more { background: transparent; border: 0; color: var(--accent-text); min-height: 29px; font-size: 12px; }
.weather { background: #e3eee5; border-color: #d5e5d7; }
.weather-main { display: flex; align-items: center; gap: 12px; margin: 12px 0 9px; }
.weather-icon { font-size: 32px; line-height: 1; }
.weather-main .weather-icon { font-size: 46px; }
.weather-main strong { font-size: 42px; letter-spacing: -.065em; line-height: 1; }
.forecast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 15px; gap: 5px; }
.forecast div { text-align: center; display: grid; align-content: start; gap: 6px; padding: 8px 1px; border-radius: 10px; background: #ffffff6b; font-size: 12px; }
.forecast .weather-icon { font-size: 21px; }
.weather-source { display: inline-block; margin-top: 10px; font-size: 11px; color: #465e51; }
.muted, .empty { color: var(--muted); }
.empty { padding: 10px 0; line-height: 1.45; }
.entries { display: grid; gap: 8px; }
.entry { min-width: 0; padding: 10px; background: var(--soft); border-radius: 12px; min-height: 48px; }
.content > .empty, .stack > .sub { color: var(--page-text); }
.entry-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.entry-text small, .sub { display: block; color: var(--muted); margin-top: 4px; font-size: 13px; }
.entry.complete .entry-text strong { text-decoration: line-through; }
.shopping-sources { list-style: none; padding: 0; margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.shopping-sources li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 2px 0; }
.shopping-sources li span + span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.shopping-cart { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.shopping-cart h3 { margin-bottom: 8px; }
.entry button.ghost { border: 0; background: transparent; }
.check { min-width: 42px; min-height: 42px; padding: 0; }
.section-head { margin: 20px 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: start; gap: 16px; }
.note { background: #faf0cc; border-color: #efe3b6; }
.note.read { background: var(--surface); border-color: var(--border); }
.note-text, .detail { white-space: pre-wrap; overflow-wrap: anywhere; margin: 11px 0; line-height: 1.5; }
.settings-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.settings-grid .button { margin-top: 8px; }
.week-table-scroll { overflow-x: auto; width: 100%; }
.week-table { width: 100%; min-width: 550px; border-collapse: separate; border-spacing: 0; }
.school-table { min-width: 690px; table-layout: fixed; }
.week-table th, .week-table td { min-width: 0; padding: 9px 11px; height: 53px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.week-table thead th { background: var(--pale); font-weight: 720; }
.week-table thead th:first-child { border-radius: 12px 0 0 0; }
.week-table thead th:last-child { border-radius: 0 12px 0 0; }
.week-table tbody th { position: sticky; left: 0; background: var(--soft); z-index: 1; width: 112px; }
.week-table tbody th small { display: block; color: var(--muted); font-weight: 500; }
.week-table td { border-left: 1px solid var(--border); }
.week-table .current-day th, .week-table .current-day td { background: var(--pale); }
.cell-button { width: 100%; min-height: 40px; padding: 6px; border: 1px dashed #c5d5c7; border-radius: 9px; color: var(--accent-text); background: transparent; overflow-wrap: anywhere; }
.cell-button:hover { background: var(--pale); }
.meal-table { table-layout: fixed; min-width: calc(88px + var(--compact-meals) * 62px + var(--wide-meals) * 105px); }
.meal-date-column, .meal-table tbody th { width: 88px; }
.meal-compact-column { width: 62px; }
.meal-table .meal-compact-cell { background: var(--soft); }
.meal-table .meal-compact-heading { padding-inline: 3px; }
.meal-column-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 3px; width: 100%; min-height: 38px; border: 0; border-radius: 8px; padding: 3px; background: transparent; color: var(--ink); font-weight: inherit; text-align: left; }
.meal-column-toggle:hover { background: var(--surface); }
.meal-compact-heading .meal-column-toggle { font-size: 11px; }
.meal-column-toggle .icon { width: 13px; height: 13px; }
.meal-cell { display: grid; gap: 4px; }
.meal-cell > .icon-button { justify-self: start; }
.meal-cell .entry { flex-wrap: wrap; padding: 5px 7px; }
.meal-cell .entry-text { min-width: 7ch; }
.panel-header select { max-width: 100%; padding: 7px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: inherit; }
button:disabled { opacity: .55; cursor: default; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 10px; }
dialog { padding: 0; border: 1px solid var(--border); border-radius: 23px; width: min(94vw, 560px); max-height: 90dvh; color: var(--ink); background: var(--surface); box-shadow: 0 20px 60px #14281e50; }
dialog::backdrop { background: #1d312a88; }
#modal-content { padding: 22px; }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
.form label.tick { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.form input:not([type=checkbox]), .form textarea, .form select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #c8d3c8; border-radius: 9px; color: inherit; background: white; min-height: 43px; }
.form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.form textarea { resize: vertical; min-height: 85px; }
.form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.expiry-units { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px 12px; }
.expiry-units legend { font-weight: 650; }
.expiry-units > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.appearance-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); gap: 10px; }
.calendar-people { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 3px 12px 10px; }
.calendar-people legend { font-weight: 650; }
.recipe-actions { flex-wrap: wrap; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; justify-content: flex-end; }
.form-error { color: #9c3430; }
.ambient { position: fixed; inset: 0; z-index: 4; display: grid; align-content: end; overflow: hidden; padding: clamp(20px, 5vw, 75px); color: white; background: radial-gradient(ellipse at 75% 15%, #618778, #162e26 72%); }
.ambient-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; background: #18251f; opacity: 0; }
.ambient-photo.is-current { z-index: 1; opacity: 1; }
.ambient[data-transition="fade"] .ambient-photo { transition: opacity .55s ease; }
.ambient[data-transition="slide"] .ambient-photo.is-current { animation: ambient-slide .5s ease both; }
.ambient[data-transition="zoom"] .ambient-photo.is-current { animation: ambient-zoom .65s ease both; }
@keyframes ambient-slide { from { opacity: .35; transform: translateX(6%); } to { opacity: 1; transform: translateX(0); } }
@keyframes ambient-zoom { from { opacity: .35; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .ambient .ambient-photo, .ambient .ambient-photo.is-current { transition: none; animation: none; }
}
.ambient-time { position: relative; z-index: 2; width: fit-content; padding: 14px 22px; border-radius: 16px; background: #1c302bc9; }
.ambient-notes { position: absolute; z-index: 2; top: 81px; right: clamp(14px, 3vw, 42px); width: min(330px, calc(100vw - 28px)); max-height: calc(100% - 190px); overflow-y: auto; display: grid; align-content: start; gap: 12px; padding: 8px; }
.post-it { padding: 14px 17px 17px; color: #392e20; background: #ffe88e; border: 1px solid #e8c86b; border-radius: 3px 4px 12px 4px; box-shadow: 0 4px 12px #0005; transform: rotate(1deg); overflow-wrap: anywhere; }
.post-it:nth-child(2) { background: #ffd2b4; border-color: #e6ac88; transform: rotate(-1deg); }
.post-it h2 { font-size: 19px; margin: 4px 0 6px; }
.post-it-recipient { font-size: 13px; font-weight: 720; }
.post-it-text { white-space: pre-wrap; line-height: 1.4; max-height: 25vh; overflow-y: auto; }
.ambient time { font-size: clamp(50px, 11vw, 140px); font-weight: 650; letter-spacing: -.07em; line-height: 1; }
.ambient button { position: absolute; z-index: 2; top: 20px; right: 20px; color: #263b32; }
#toast { position: fixed; z-index: 5; bottom: 20px; right: 20px; max-width: min(90vw, 440px); background: #253b34; color: white; border-radius: 13px; padding: 14px 19px; box-shadow: 0 5px 20px #0003; white-space: pre-line; }
.mobile-navigation { display: none; }
.mobile-agenda { display: grid; gap: 7px; }
.agenda-event { display: grid; grid-template-columns: 58px minmax(0, 1fr) 16px; align-items: start; gap: 8px; width: 100%; padding: 10px 9px; min-height: 53px; border: 0; border-left: 3px solid var(--event-color); border-radius: 9px; background: var(--soft); color: var(--ink); text-align: left; }
.agenda-event:hover { background: var(--pale); }
.agenda-time { font-size: 12px; font-weight: 720; font-variant-numeric: tabular-nums; align-self: center; }
.agenda-text { min-width: 0; overflow-wrap: anywhere; }
.agenda-text strong { font-size: 14px; line-height: 1.3; }
.agenda-text small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.agenda-event > .icon { width: 16px; height: 16px; align-self: center; color: var(--muted); }
.mobile-weather { background: var(--pale); color: var(--ink); border: 1px solid var(--border); border-radius: 16px; }
.mobile-weather summary { display: flex; align-items: center; gap: 10px; padding: 9px 13px; min-height: 52px; cursor: pointer; list-style: none; }
.mobile-weather summary::-webkit-details-marker { display: none; }
.mobile-weather summary .weather-icon { font-size: 23px; }
.mobile-weather summary strong { font-size: 24px; letter-spacing: -.05em; }
.mobile-weather-description { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mobile-weather-description b, .mobile-weather-description small { display: block; font-size: 13px; }
.mobile-weather-description small { color: var(--muted); font-size: 11px; }
.mobile-weather summary > .icon { width: 17px; height: 17px; }
.mobile-weather[open] summary > .icon { transform: rotate(180deg); }
.mobile-weather-details { padding: 0 12px 10px; }
.mobile-weather-details .forecast { margin-top: 8px; }
.mobile-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mobile-shortcuts a { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 9px 10px; text-decoration: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 13px; }
.mobile-shortcuts a > .icon { color: var(--accent-text); }
.mobile-shortcuts strong, .mobile-shortcuts small { display: block; font-size: 13px; }
.mobile-shortcuts small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.mobile-next-date { margin-bottom: 8px; }
@media (max-width: 1250px) { .shell { grid-template-columns: 178px minmax(0, 1fr); } .sidebar { padding-inline: 10px; } .layout { grid-template-columns: minmax(0, 1fr) 230px; } }
@media (max-width: 1050px) { .layout { grid-template-columns: minmax(0, 1fr); } .dashboard-side { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); } }
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { display: none; }
  main { padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(81px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .topbar { gap: 8px; margin-bottom: 10px; }
  h1 { font-size: clamp(24px, 6.6vw, 32px); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
  h2 { font-size: 17px; }
  .today-label { margin-bottom: 3px; font-size: 12px; }
  .top-actions { flex: 0 1 auto; justify-content: flex-end; gap: 6px; }
  .active-member { max-width: 103px; padding: 6px 8px; font-size: 12px; gap: 5px; }
  #parent-countdown { min-height: 32px; padding-inline: 7px; }
  #primary, #parent-lock { min-width: 44px; min-height: 44px; padding: 0; }
  #primary span, #parent-lock span { display: none; }
  #clock { display: none; }
  .profiles { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding: 3px 1px; gap: 4px; }
  .profiles .chip { flex: 0 0 auto; font-size: 12px; min-height: 36px; padding: 4px 7px; gap: 4px; }
  .profiles .avatar, .profiles .icon { width: 17px; height: 17px; }
  .mobile-navigation { position: fixed; z-index: 3; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 5px max(7px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); background: var(--surface); color: var(--ink); border-top: 1px solid var(--border); box-shadow: 0 -4px 18px #17262010; }
  .mobile-navigation a, .mobile-navigation button { display: grid; place-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 50px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-decoration: none; font-size: 11px; font-weight: 680; padding: 4px 1px; }
  .mobile-navigation [aria-current], .mobile-navigation .active { background: var(--pale); color: var(--accent-text); }
  .mobile-navigation .icon { width: 20px; height: 20px; }
  .panel { padding: 12px; border-radius: 15px; }
  .panel-header { margin-bottom: 8px; }
  .empty { padding: 5px 0; font-size: 14px; }
  .mobile-stack, .cards { gap: 10px; }
  .mobile-period { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .mobile-period + .mobile-period { margin-top: 6px; }
  .mobile-period .inline { flex-shrink: 0; gap: 4px; }
  .mobile-period .button, .mobile-period .icon-button, .mobile-period .modes button { min-height: 40px; font-size: 13px; }
  .mobile-period .icon-button { min-width: 40px; padding: 4px; }
  .mobile-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
  .mobile-day { display: grid; place-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 44px; border: 1px solid transparent; border-radius: 9px; background: var(--soft); color: var(--ink); padding: 3px 0; }
  .mobile-day small { font-size: 10px; color: var(--muted); }
  .mobile-day strong { font-size: 14px; }
  .mobile-day.active { background: var(--accent); color: var(--accent-on); }
  .mobile-day.active small { color: inherit; }
  .mobile-day.is-today:not(.active) { border-color: var(--accent-text); }
  .mobile-day.outside:not(.active) { color: var(--muted); background: transparent; }
  .mobile-day-dots { display: flex; justify-content: center; gap: 3px; min-height: 4px; }
  .mobile-day-dots .calendar-color-dot { flex-basis: 5px; width: 5px; height: 5px; border-width: 0; }
  .mobile-day.active .calendar-color-dot { background: var(--accent-on); }
  .weekday { font-size: 11px; }
  .mobile-week-grid .weekday { padding: 3px 0; }
  .mobile-calendar-controls .calendar-legend { margin: 8px 0 0; font-size: 11px; }
  .mobile-section-tabs { width: 100%; margin-bottom: 10px; }
  .mobile-section-tabs button { flex: 1; min-height: 40px; }
  .section-head { flex-wrap: wrap; row-gap: 6px; }
  .mobile-sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 520px; max-height: 88dvh; border-radius: 20px 20px 0 0; }
  .mobile-sheet #modal-content { padding: 12px 14px calc(13px + env(safe-area-inset-bottom)); }
  .mobile-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mobile-menu-links a { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 7px; border-radius: 9px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 13px; }
  .mobile-menu-links a .icon { width: 17px; height: 17px; flex-shrink: 0; }
  .mobile-menu-links a .icon:last-child { margin-left: auto; width: 13px; }
  .form input, .form select, .form textarea, .panel-header select { font-size: 16px; }
  #toast { bottom: calc(70px + env(safe-area-inset-bottom)); right: 10px; }
}
