:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2d2537;
  background: #f6f4f8;
  font-synthesis: none;
  --accent: #57289d;
  --accent-soft: #f0e9f8;
  --ink: #2d2537;
  --muted: #6b6075;
  --line: #e5deec;
  --surface: #fff;
  --canvas: #f6f4f8;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; scroll-padding-bottom: 104px; }
body { margin: 0; min-width: 320px; background: var(--canvas); font-size: 14px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); background: var(--surface); font-weight: 650; line-height: 1.25; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #9d74d4; outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0 0 18px; color: var(--ink); font-size: 24px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
h2 { margin: 24px 0 10px; color: var(--ink); font-size: 16px; font-weight: 750; line-height: 1.3; }
h3 { margin: 18px 0 10px; font-size: 14px; line-height: 1.35; }
p { margin: 0 0 14px; }

.mobile-app { width: 100%; max-width: 720px; min-height: 100vh; min-height: 100svh; margin: 0 auto; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.topbar > div:not(.brand-mark) { min-width: 0; }
.topbar strong, .topbar small, .student-row strong, .student-row small, .agenda-line strong, .agenda-line span, .agenda-line small, .account-panel strong, .account-panel small { display: block; }
.topbar strong { font-size: 15px; font-weight: 750; line-height: 1.2; }
.topbar small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; color: #fff; background: var(--accent); font-size: 17px; font-weight: 800; }
.refresh { min-width: 64px; margin-left: auto; padding: 10px; border-color: transparent; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 700; }
main { width: 100%; max-width: 720px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.screen { min-width: 0; }
.screen-heading, .date-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.screen-heading > div { min-width: 0; }
.screen-heading h1 { margin-bottom: 0; text-transform: capitalize; font-size: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .07em; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; border: 1px solid var(--accent); border-radius: 10px; color: #fff; background: var(--accent); font-weight: 750; text-align: center; text-decoration: none; }
.primary.small { min-height: 44px; flex: 0 0 auto; padding: 10px 12px; font-size: 13px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 10px; padding: 9px 0; border: 0; border-radius: 4px; color: var(--accent); background: transparent; font-size: 13px; font-weight: 700; text-align: left; }
.date-nav { margin: 16px 0 12px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fff; font-size: 13px; }
.date-nav button { min-width: 68px; border: 0; background: transparent; font-size: 13px; font-weight: 700; }
.date-nav span { text-align: center; font-variant-numeric: tabular-nums; }

/* Compact cards keep the information and its action together. */
.agenda-list, .student-list { display: grid; gap: 10px; min-width: 0; }
.agenda-row, .student-row, .account-panel { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(45,37,55,.025); }
.student-row { display: flex; align-items: flex-start; gap: 11px; }
.student-row > div:not(.avatar) { min-width: 0; }
.student-row strong { color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.student-row small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.student-button, .agenda-button { width: 100%; text-align: left; font-weight: 400; }
.agenda-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: start; gap: 10px; }
.time { color: var(--accent); font-size: 13px; font-weight: 800; line-height: 1.5; font-variant-numeric: tabular-nums; }
.agenda-line { min-width: 0; }
.agenda-row > .agenda-line:only-child { grid-column: 1 / -1; }
.agenda-line strong { color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.agenda-line span { margin-top: 4px; color: #554b60; font-size: 13px; line-height: 1.35; }
.agenda-line small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.status { padding: 5px 7px; border-radius: 6px; color: #315f3c; background: #edf5ee; font-size: 10px; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.status.planned { color: var(--accent); background: var(--accent-soft); }
.status.cancelled { color: #923838; background: #fff0f0; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.empty { padding: 20px 14px; border: 1px dashed #d9cfe3; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.7); font-size: 13px; line-height: 1.45; text-align: center; }
.account-panel { display: block; margin: 0 0 12px; overflow-wrap: anywhere; }
.account-panel strong { color: var(--ink); font-size: 15px; line-height: 1.35; }
.account-panel small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-panel > button { width: 100%; margin-top: 10px; }
.full-link, .logout { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); background: #fff; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; }
.logout { margin-top: 16px; border-color: #e6c8c8; color: #923838; }
.detail-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.detail-list div { display: grid; grid-template-columns: minmax(80px,.8fr) minmax(0,1.4fr); align-items: start; gap: 14px; padding: 13px 14px; }
.detail-list div + div { border-top: 1px solid var(--line); }
.detail-list span { color: var(--muted); font-size: 13px; }
.detail-list strong { min-width: 0; text-align: right; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.detail-list + .account-panel { margin-top: 12px; }

/* Navigation stays within the app, including on a wider screen. */
.bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 3px; width: 100%; max-width: 720px; padding: 8px max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -3px 14px rgba(45,37,55,.045); transform: translateX(-50%); }
.student-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 56px; padding: 7px 2px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.bottom-nav:not(.student-nav) button { padding-right: 0; padding-left: 0; font-size: 9px; white-space: nowrap; overflow-wrap: normal; }
.student-nav button { font-size: 11px; }
.bottom-nav button.active { color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.bottom-nav button::before { content: ''; display: block; width: 19px; height: 19px; flex: 0 0 19px; background: currentColor; -webkit-mask: var(--nav-icon) center / contain no-repeat; mask: var(--nav-icon) center / contain no-repeat; }
.bottom-nav [data-screen="planning"], .bottom-nav [data-screen="agenda"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M7 3v4m10-4v4M3 11h18m-13 4h2m4 0h2'/%3E%3C/svg%3E"); }
.bottom-nav [data-screen="financial"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 8H5a2 2 0 0 1 0-4h13v4M3 6v12a2 2 0 0 0 2 2h15V8m0 4h-5v4h5'/%3E%3C/svg%3E"); }
.bottom-nav [data-screen="progress"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v17h17M8 15l4-5 4 2 4-6M16 6h4v4'/%3E%3C/svg%3E"); }
.bottom-nav [data-screen="theory"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5c-3-2-6-2-9-1v15c3-1 6-1 9 1 3-2 6-2 9-1V4c-3-1-6-1-9 1v15'/%3E%3C/svg%3E"); }
.bottom-nav [data-screen="more"], .bottom-nav [data-screen="instructors"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E"); }
.bottom-nav [data-screen="students"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2m2-15a3 3 0 0 1 0 6m1 3a5 5 0 0 1 3 4v2'/%3E%3C/svg%3E"); }
.bottom-nav [data-screen="mileage"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 2-6h10l2 6M3 10h18v8H3zM6 18v3m12-3v3M6 14h2m8 0h2'/%3E%3C/svg%3E"); }

/* Pupil planning, finances and progress share one visual hierarchy. */
.onderweg-screen h1 { margin: 0 0 18px; color: var(--ink); text-align: left; font-size: 24px; }
.onderweg-screen > .account-panel { padding: 16px; border-color: #ded0ee; background: #f0e9f8; }
.onderweg-screen > .account-panel > strong { color: var(--accent); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.onderweg-screen > .account-panel > small { color: #61516f; font-size: 12px; }
.underway-card { display: grid; gap: 5px; min-width: 0; margin: 12px 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.underway-card strong { min-width: 0; font-size: 17px; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.underway-card span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.purple-card { grid-template-columns: minmax(0,1fr) auto; column-gap: 14px; color: #fff; border-color: var(--accent); background: var(--accent); }
.purple-card strong, .purple-card span { grid-column: 1; color: #fff; }
.purple-card span { opacity: .9; }
.card-action { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; min-height: 44px; margin-top: 7px; padding: 10px 13px; border: 1px solid #ded0ee; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 13px; font-weight: 750; line-height: 1.3; text-align: center; }
.purple-card .card-action { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 88px; max-width: 128px; margin: 0; border-color: #fff; background: #fff; }
.onderweg-screen > .underway-card:not(.purple-card) { gap: 4px; }
.onderweg-screen > .underway-card:not(.purple-card) .card-action { width: 100%; margin-top: 8px; }
[data-calendar-open] { margin: 0 0 20px; border-color: #d9cbe9; background: #fff; }
.finance-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0 0 16px; }
.finance-tab { min-height: 44px; padding: 9px 6px; border: 1px solid #d9cbe9; border-radius: 10px; color: var(--accent); background: #fff; font-size: 13px; font-weight: 750; }
.finance-tab.active { color: #fff; border-color: var(--accent); background: var(--accent); }
.finance-row-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.finance-row-copy strong { display: block; }
.finance-row-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.finance-row-copy small:first-of-type { color: #5b476f; }
.finance-note { margin: 14px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.finance-document-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid #d9cbe9; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 750; line-height: 1.3; text-align: center; text-decoration: none; }
.progress-group { margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.progress-group h3 { margin: 0; padding: 12px 14px; color: var(--accent); background: var(--accent-soft); font-size: 13px; font-weight: 750; }
.progress-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(84px,38%); align-items: start; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.progress-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.progress-row .finance-row-copy strong { font-size: 13px; }
.progress-row .finance-row-copy small { font-size: 11px; }
.progress-rating { display: flex; align-items: center; justify-content: center; min-height: 28px; padding: 6px 8px; border-radius: 7px; font-size: 11px; font-weight: 650; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.progress-rating.rose { color: #82313d; background: #ffe5e8; }
.progress-rating.amber { color: #715000; background: #fff0c8; }
.progress-rating.green { color: #285a36; background: #e3f1e4; }
.lesson-assessments { margin-top: 10px; }
summary { min-height: 44px; padding: 11px 10px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 12px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.lesson-assessments[open] summary { margin-bottom: 6px; }
.lesson-assessments .progress-row { padding: 10px 0; }
.help-list { display: grid; gap: 10px; }
.help-list .underway-card { margin: 0; padding: 16px; }
.help-image { display: block; width: 100%; max-height: 300px; margin-top: 6px; object-fit: contain; border-radius: 8px; background: #fff; }

/* Forms retain comfortable targets without increasing the whole page. */
label { display: block; color: #554b60; font-size: 13px; font-weight: 650; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 10px 12px; border: 1px solid #cfc3dc; border-radius: 10px; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.35; }
textarea { min-height: 96px; resize: vertical; }
input[readonly] { background: #faf8fc; }
form label { margin-bottom: 14px; }
form .primary { width: 100%; margin-top: 6px; }
.search { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.mobile-form { margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.form-actions { display: flex; align-items: center; gap: 10px; }
.form-actions > button { flex: 1; margin-top: 0; }
.account-panel label { margin-top: 12px; }
[data-calendar-create], [data-calendar-revoke] { width: 100%; margin-top: 8px; }
[data-calendar-revoke] { color: #923838; border-color: #e6c8c8; }
.login { max-width: 440px; padding-top: clamp(28px,8vh,72px); }
.login-brand { margin-bottom: 24px; text-align: center; }
.login-brand .brand-mark { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px; font-size: 22px; }
.login-brand h1 { margin-bottom: 8px; font-size: 26px; }
.login-brand p { margin: 0; color: var(--muted); font-size: 14px; }
.login form { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.error { margin: 0 0 14px; padding: 11px 12px; border: 1px solid #ebcece; border-radius: 10px; color: #8d3232; background: #fff1f1; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.error:empty { display: none; }
.screen[role="status"] { padding: 18px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fff; }

@media (hover: hover) {
  .student-button:hover, .agenda-button:hover, .full-link:hover, .finance-document-link:hover { border-color: #b9a1d2; background: #faf7fd; }
  .primary:hover { background: #492085; }
  .bottom-nav button:hover { color: var(--accent); background: #f5f0fa; }
  .bottom-nav button.active:hover { background: var(--accent-soft); }
}
@media (max-width: 359px) {
  main { padding-right: 12px; padding-left: 12px; }
  .agenda-row { grid-template-columns: 39px minmax(0,1fr) auto; gap: 7px; padding: 12px; }
  .student-nav button { font-size: 10px; }
  .bottom-nav:not(.student-nav) button { font-size: 8px; }
  .purple-card { column-gap: 10px; padding: 14px; }
  .purple-card .card-action { min-width: 76px; padding-right: 9px; padding-left: 9px; font-size: 12px; }
}
@media (min-width: 600px) {
  main { padding: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .bottom-nav button, .bottom-nav:not(.student-nav) button, .student-nav button { font-size: 12px; }
  .underway-card { padding: 18px; }
}
@media (min-width: 720px) {
  .mobile-app { border-right: 1px solid var(--line); border-left: 1px solid var(--line); box-shadow: 0 0 28px rgba(45,37,55,.06); }
}

/* Owner day agenda fills the space between its compact date strip and navigation. */
.owner-agenda-app { height: 100vh; height: 100dvh; min-height: 0; padding-bottom: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; --mobile-minute-height: clamp(.45px,calc((100svh - 164px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) / 420),.9px); }
.owner-agenda-main { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.owner-agenda-main > .error { flex: 0 0 auto; margin: 4px; padding: 6px; }
.owner-agenda { display: grid; grid-template-rows: auto minmax(0,1fr); flex: 1; min-height: 0; margin: 0; }
.mobile-agenda-bar { z-index: 10; padding: calc(2px + env(safe-area-inset-top,0px)) max(5px,env(safe-area-inset-right,0px)) 2px max(5px,env(safe-area-inset-left,0px)); border-bottom: 1px solid var(--line); background: #fff; }
.mobile-agenda-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
.mobile-agenda-week button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 40px; min-width: 0; padding: 0; border: 0; background: transparent; font-weight: 500; }
.mobile-agenda-week span { color: var(--muted); font-size: 10px; line-height: 12px; }
.mobile-agenda-week strong { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 16px; font-weight: 650; }
.mobile-agenda-week [aria-pressed="true"] strong { color: #fff; background: var(--accent); }
.mobile-agenda-controls { display: grid; grid-template-columns: 28px minmax(0,1fr) 28px auto 28px; gap: 3px; align-items: center; }
.mobile-agenda-controls.has-calendar-link { grid-template-columns: 28px minmax(0,1fr) 28px auto 58px 28px; }
.mobile-agenda-controls button { min-height: 28px; padding: 3px 6px; border: 0; background: transparent; font-size: 11px; }
.mobile-agenda-controls .mobile-agenda-link { height: 28px; margin: 0; padding: 0 2px; border-radius: 5px; background: var(--accent-soft); font-size: 10px; line-height: 12px; }
.mobile-agenda-controls.has-calendar-link input { font-size: 13px; }
.mobile-agenda-controls [data-action="prev"], .mobile-agenda-controls [data-action="next"] { padding: 0; font-size: 24px; line-height: 1; }
.mobile-agenda-controls input { box-sizing: border-box; min-width: 0; width: 100%; min-height: 28px; height: 28px; margin: 0; padding: 1px 4px; border: 0; border-radius: 4px; color: var(--accent); background: transparent; font-size: 16px; line-height: 24px; text-align: center; }
.mobile-agenda-menu { position: relative; }
.mobile-agenda-menu summary { display: grid; place-items: center; min-height: 28px; height: 28px; padding: 0; list-style: none; color: var(--accent); background: transparent; font-size: 22px; line-height: 1; }
.mobile-agenda-menu summary::-webkit-details-marker { display: none; }
.mobile-agenda-menu > div { position: absolute; top: 32px; right: 0; z-index: 15; width: 210px; display: grid; padding: 5px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px #30203b26; background: #fff; }
.mobile-agenda-menu > div button, .mobile-agenda-menu > div a { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 9px; color: var(--accent); font-size: 13px; text-align: left; text-decoration: none; }
.mobile-timeline-scroll { position: relative; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; background: #f2f2f3; scrollbar-width: thin; }
.mobile-timeline { position: relative; height: calc(900 * var(--mobile-minute-height)); margin: 10px 0 16px; }
.mobile-timeline-hour { position: absolute; top: calc(var(--minute) * var(--mobile-minute-height)); left: 0; right: 0; height: 0; padding-left: 43px; pointer-events: none; }
.mobile-timeline-hour::after { content: ''; display: block; border-top: 1px solid #ddd9e1; }
.mobile-timeline-hour > span { position: absolute; left: 3px; top: -8px; color: #776d7d; font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.mobile-timeline-lane { position: absolute; inset: 0 4px 0 43px; }
.mobile-timeline-slot { position: absolute; z-index: 1; top: calc(var(--minute) * var(--mobile-minute-height)); height: calc(var(--duration) * var(--mobile-minute-height)); left: 0; right: 0; display: flex; align-items: center; justify-content: center; min-height: 0; text-decoration: none; }
.mobile-timeline-slot span { opacity: 0; font-size: 22px; }
.mobile-timeline-slot:hover, .mobile-timeline-slot:focus-visible { background: #e9e0f3; }
.mobile-timeline-slot:hover span, .mobile-timeline-slot:focus-visible span { opacity: 1; }
.mobile-timeline-event { position: absolute; z-index: 2; top: calc(var(--minute) * var(--mobile-minute-height)); height: calc(var(--duration) * var(--mobile-minute-height)); left: calc(100% * var(--column) / var(--columns)); width: calc(100% / var(--columns)); min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: min-content min-content; align-content: start; align-items: start; gap: 2px 4px; padding: 4px 5px; overflow: hidden; border: 1px solid #ded9e5; border-left: 4px solid #9b77c3; border-radius: 3px; box-shadow: 0 2px 5px #30203b12; color: var(--accent); background: #fff; text-align: left; font-weight: 400; line-height: 1.15; }
.mobile-timeline-event strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 650; }
.mobile-timeline-event .mobile-timeline-range { font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mobile-timeline-event small { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #675d6f; font-size: 11px; }
.mobile-timeline-event.completed { border-left-color: #8a8292; background: #faf9fb; }
.mobile-agenda-empty { position: absolute; z-index: 3; top: 4px; right: 7px; max-width: calc(100% - 55px); margin: 0; color: var(--muted); font-size: 10px; pointer-events: none; }
.mobile-agenda-other { margin: 0 5px 10px 43px; }
.mobile-agenda-other summary { min-height: 36px; padding: 8px; color: var(--accent); }
.owner-agenda-app > .bottom-nav { position: static; left: auto; width: 100%; max-width: none; transform: none; padding: 4px max(4px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left,0px)); }
.owner-agenda-app > .bottom-nav button { min-height: 48px; padding-top: 4px; padding-bottom: 4px; gap: 3px; }
