:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #292925;
  background: #f5f4f0;
  font-synthesis: none;
  --line: #eeece8;
  --muted: #89877f;
  --green: #526a55;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
.app-shell { min-height: 100vh; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #292925; font-size: 18px; font-weight: 750; letter-spacing: -.5px; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--green); color: white; font-weight: 700; }
.brand-light { color: #89877f; font-weight: 500; }
.eyebrow { color: #99968e; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { display: inline-grid; flex: none; width: 44px; height: 44px; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #77756f; }
.icon-button:hover { background: #f1f0ed; }
.main-content { min-height: 100vh; margin: 0; padding: 28px 48px 26px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1440px; margin: 0 auto 27px; }
.main-navigation { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #f0efeb; }
.main-nav-button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: #77746e; font-size: 13px; font-weight: 600; white-space: nowrap; }
.main-nav-button.active { background: #fff; color: #32332f; box-shadow: 0 1px 4px #1f1e1b1a; }
.eyebrow { margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
.topbar h1 { margin-bottom: 0; font-size: 29px; letter-spacing: -.9px; }
.export-actions { display: flex; gap: 8px; }
.sync-control { display: flex; flex: none; flex-direction: column; align-items: stretch; gap: 4px; }
.last-sync-time { max-width: 205px; color: var(--muted); font-size: 11px; line-height: 1.3; text-align: center; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid #e7e5e0; border-radius: 8px; background: white; font-size: 13px; font-weight: 600; }
.button[hidden], .icon-button[hidden] { display: none; }
.button:hover { border-color: #c9c7c0; background: #fbfaf8; }
.button-outline { color: #56554f; }
.sync-button { color: #405643; }
.sync-button.sync-pending { border-color: #e5c44f; background: #fff2b8; color: #654f08; box-shadow: 0 0 0 2px #f4db7b55; }
.sync-button.sync-pending:hover { border-color: #cfad32; background: #ffeb9a; }
.create-entry-button { width: auto; margin: 0; border-color: var(--green); background: var(--green); color: #fff; }
.create-entry-button:hover { border-color: #405643; background: #405643; color: #fff; }
.sync-button:disabled { cursor: wait; opacity: .65; }
.language-picker { display: inline-flex; align-items: center; }
.language-picker select { min-height: 44px; padding: 0 8px; border: 1px solid #e7e5e0; border-radius: 8px; background: #fff; color: #56554f; font: inherit; font-size: 13px; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.calendar-panel { width: 100%; max-width: 1440px; margin: 0 auto; overflow: hidden; border: 1px solid #ebe9e4; border-radius: 12px; background: white; box-shadow: 0 6px 24px #37302208; }
.calendar-toolbar { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.booking-filter { display: flex; align-items: center; gap: 8px; color: #77746e; font-size: 11px; }
.booking-filter select { max-width: 190px; min-height: 32px; padding: 0 25px 0 9px; border: 1px solid #e7e5e0; border-radius: 7px; background: white; color: #45443f; font-size: 11px; }
.date-navigation { display: flex; align-items: center; gap: 4px; }
.date-navigation > .icon-button { font-size: 23px; line-height: 1; }
.date-navigation h2 { min-width: 165px; margin: 0 5px; font-size: 16px; letter-spacing: -.2px; }
.button-today { min-height: 31px; padding: 0 11px; color: #5d5b55; }
.view-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f7f6f3; }
.view-button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #77746e; font-size: 13px; }
.view-button.active { background: white; color: #32332f; box-shadow: 0 1px 4px #1f1e1b1a; font-weight: 600; }
.calendar-hint { margin: 0; padding: 10px 19px 0; color: #77746e; font-size: 12px; line-height: 1.5; }
.calendar-view { min-height: 620px; }
.calendar-view[hidden], .booking-list-view[hidden] { display: none; }
.booking-list-view { min-height: 300px; padding: 18px 20px 24px; overflow-x: auto; }
.booking-list { width: 100%; }
.booking-list-heading, .booking-list-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr); align-items: center; gap: 12px; }
.booking-list.financial-visible { min-width: 1060px; }
.booking-list.financial-visible .booking-list-heading, .booking-list.financial-visible .booking-list-row { grid-template-columns: minmax(170px, 1.35fr) repeat(2, minmax(105px, .8fr)) repeat(5, minmax(120px, 1fr)); gap: 10px; }
.booking-list.financial-visible .booking-list-heading { font-size: 10px; }
.booking-list.financial-visible .booking-list-row { font-size: 12px; }
.booking-list.financial-visible .booking-list-total { display: grid; grid-template-columns: minmax(170px, 1.35fr) repeat(2, minmax(105px, .8fr)) repeat(5, minmax(120px, 1fr)); gap: 10px; align-items: center; min-height: 52px; padding: 10px 15px; border-top: 2px solid #d8d5ce; background: #f7f6f3; font-size: 12px; }
.booking-list-total .total-label { grid-column: 1; }
.booking-list-row.finance-incomplete .booking-list-name::after { content: "Finanzdaten fehlen"; color: #ae4942; font-size: 10px; font-weight: 600; }
.booking-list-row.finance-test { opacity: .72; }
.booking-test-label { display: inline-flex; width: fit-content; padding: 2px 7px; border-radius: 999px; background: #eee6d4; color: #655634; font-size: 10px; font-weight: 600; }
.booking-guest-count { color: var(--muted); font-size: 10px; font-weight: 500; }
.financial-test-excluded { grid-column: span 5; color: var(--muted); font-style: italic; }
.list-finances-button[aria-pressed="true"] { border-color: #d5c37f; background: #fbf6e6; color: #62531f; }
.booking-list-heading { padding: 0 15px 10px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: left; }
.booking-list-row { width: 100%; min-height: 52px; padding: 8px 15px; border: 0; border-top: 1px solid var(--line); background: #fff; color: #45443f; font-size: 13px; text-align: left; }
.booking-list-row:hover { background: #f8f8f5; }
.booking-list-row:focus-visible { position: relative; outline: 2px solid #849583; outline-offset: -2px; }
.booking-list-row.source-google { box-shadow: inset 4px 0 #d3b33c; }
.booking-list-row.source-google:hover { background: #fffdf3; }
.booking-list-row.source-booking { box-shadow: inset 4px 0 #5286c5; }
.booking-list-row.source-booking:hover { background: #f5f9ff; }
.booking-list-row.source-direct { box-shadow: inset 4px 0 #67846b; }
.booking-list-row.source-direct:hover { background: #f5f9f4; }
.booking-list-row.source-other { box-shadow: inset 4px 0 #a6a39a; }
.booking-list-row.source-cancelled { box-shadow: inset 4px 0 #a6a39a; color: #77746e; }
.booking-list-row.finance-incomplete { border: 1px solid #ce5b52; }
.booking-list-name { display: grid; justify-items: start; gap: 4px; color: #405643; font-weight: 650; }
.booking-source-label { display: inline-flex; width: fit-content; align-items: center; min-height: 19px; padding: 1px 7px; border-radius: 999px; background: #eeece8; color: #5d5b55; font-size: 10px; font-weight: 600; }
.source-google .booking-source-label { background: #f7e7a1; color: #5d4b0a; }
.source-booking .booking-source-label { background: #cfe2fb; color: #163d70; }
.source-direct .booking-source-label { background: #e1eadf; color: #405643; }
.source-cancelled .booking-source-label { background: #deddda; color: #66645e; }
.list-empty { margin: 18px 0; color: var(--muted); font-size: 13px; text-align: center; }
.month-grid { padding: 0 18px 18px; }
.weekday-row { display: grid; height: 43px; grid-template-columns: repeat(7, 1fr); align-items: center; border-bottom: 1px solid var(--line); }
.weekday { padding-left: 9px; color: #88857e; font-size: 11px; font-weight: 600; }
.month-weeks { display: grid; }
.month-week { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: var(--calendar-day-row-height); padding-bottom: calc(var(--booking-lanes) * 20px); --calendar-day-row-height: 86px; }
.month-week:not(:last-child) { border-bottom: 1px solid var(--line); }
.month-day { position: relative; grid-row: 1; min-width: 0; min-height: var(--calendar-day-row-height); padding: 9px 7px; border-right: 1px solid var(--line); }
.date-add-button { padding: 0; border: 0; border-radius: 50%; background: transparent; }
.date-add-button:hover { background: #edf1eb; color: #405643; }
.outside-month .date-add-button { color: #c6c3bd; }
.is-today .date-add-button { background: var(--green); color: #fff; }
.date-add-button:focus-visible { outline: 2px solid #849583; outline-offset: 2px; }
.month-day:nth-child(7) { border-right: 0; }
.month-day.weekend { background: #fdfcfb; }
.day-number { display: inline-grid; width: 26px; height: 26px; place-items: center; color: #45443f; font-size: 12px; }
.outside-month .day-number { color: #c6c3bd; }
.is-today .day-number { border-radius: 50%; background: var(--green); color: white; }
.today-label { display: block; margin: 5px 0 0 4px; color: #82917f; font-size: 10px; }
.booking-bar { position: absolute; z-index: 1; display: block; min-width: 0; height: 16px; overflow: hidden; padding: 1px 6px; border: 0; border-radius: 0; color: #25251f; font-family: inherit; font-size: 10px; line-height: 14px; text-align: left; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.booking-bar.has-details { box-shadow: inset 0 -2px #405643; }
.booking-bar:not(.continues-left) { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.booking-bar:not(.continues-right) { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.booking-bar.continues-left, .booking-bar.continues-right { padding-right: 2px; padding-left: 2px; }
.booking-bar.source-google { background: #f7e7a1; color: #5d4b0a; }
.booking-bar.source-booking { background: #cfe2fb; color: #163d70; }
.booking-bar.source-other { background: #e7e5df; color: #4d4b45; }
.booking-bar.source-cancelled { background: #deddda; color: #66645e; opacity: .78; }
.compact .month-weeks { grid-template-rows: none; }
.compact .month-week { position: relative; display: grid; min-height: 18px; grid-template-rows: 18px; padding: 0 0 calc(var(--booking-lanes) * 12px); }
.compact .month-day { display: flex; min-height: 0; align-items: center; justify-content: center; padding: 0; border: 0; }
.compact .booking-bar { height: 10px; padding: 0 2px; border-radius: 0; font-size: 7px; line-height: 10px; }
.compact .booking-bar:not(.continues-left) { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
.compact .booking-bar:not(.continues-right) { border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
.year-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 21px; }
.year-month { min-width: 0; padding: 10px 8px 7px; border: 1px solid #efede9; border-radius: 9px; }
.year-month.current-month { border-color: #d8e1d4; background: #fbfcfa; }
.year-month h3 { margin: 0 0 8px 4px; font-size: 12px; font-weight: 600; }
.month-grid.compact { padding: 0; }
.compact .weekday-row { height: 21px; border: 0; }
.compact .weekday { padding: 0; font-size: 8px; text-align: center; }
.compact .day-number { width: 17px; height: 17px; font-size: 9px; }
.compact .outside-month { visibility: hidden; }
.week-bookings { position: relative; height: calc(var(--booking-lanes) * 20px); margin-left: 55px; }
.week-view { min-width: 670px; padding: 0 18px 18px; }
.week-head { display: grid; height: 67px; grid-template-columns: 55px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.week-head > div:first-child { border-right: 1px solid var(--line); }
.week-heading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-right: 1px solid var(--line); color: #838078; font-size: 10px; }
.week-heading strong { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #44433f; font-size: 12px; }
.week-heading.is-today strong { background: var(--green); color: white; }
.week-body { display: grid; grid-template-columns: 55px minmax(0, 1fr); }
.hour-labels { display: grid; grid-template-rows: repeat(15, 42px); }
.hour-label { padding: 5px 7px 0 0; color: #98958f; font-size: 10px; text-align: right; }
.week-columns { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week-column { border-right: 1px solid var(--line); }
.week-column:first-child { border-left: 1px solid var(--line); }
.today-column { background: #fbfcfa; }
.hour-cell { height: 42px; border-bottom: 1px solid var(--line); }
.page-footer { display: flex; align-items: center; gap: 8px; max-width: 1440px; margin: 17px auto 0; color: #98958f; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #91a58f; }
.login-page { display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at center, #fbfaf7, #f5f4f0 70%); }
.login-card { width: min(100%, 410px); padding: 40px 40px 32px; border: 1px solid #ebe9e4; border-radius: 14px; background: white; box-shadow: 0 15px 55px #3730220f; }
.login-language-picker { float: right; margin: 0 0 10px 12px !important; }
.login-card .brand { margin-bottom: 38px; }
.login-card .eyebrow { margin-bottom: 10px; }
.login-card h1 { margin-bottom: 9px; font-size: 24px; letter-spacing: -.7px; }
.login-copy { margin-bottom: 24px; color: #85827b; font-size: 13px; line-height: 1.65; }
.login-card label { display: block; margin-bottom: 8px; color: #45443f; font-size: 12px; font-weight: 600; }
.login-card input { width: 100%; min-height: 50px; padding: 0 12px; border: 1px solid #e8e6e1; border-radius: 7px; outline: none; font-size: 16px; }
.login-card input:focus { border-color: #849583; box-shadow: 0 0 0 3px #526a551a; }
.form-error { margin: 9px 0 0; color: #a33f37; font-size: 12px; }
.button-primary { width: 100%; min-height: 43px; margin-top: 17px; border-color: var(--green); background: var(--green); color: white; }
.button-primary:hover { border-color: #405643; background: #405643; }
.login-submit { justify-content: space-between; padding: 0 14px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 26px 0 0; color: #96938d; font-size: 11px; }
.booking-dialog { width: min(560px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 900px); max-height: min(90dvh, 900px); overflow-y: auto; padding: 0; border: 1px solid #ebe9e4; border-radius: 14px; background: #fff; color: #292925; box-shadow: 0 18px 60px #29292533; }
.booking-dialog::backdrop { background: #29292566; }
.booking-dialog form { padding: 25px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-header .eyebrow { margin-bottom: 6px; }
.dialog-header h2 { margin: 0 0 5px; font-size: 21px; }
.dialog-booking-summary { margin: 0; color: var(--muted); font-size: 13px; }
.form-hint { margin: -3px 0 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.dialog-close { font-size: 23px; }
.booking-tabs { display: flex; gap: 6px; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.booking-tab { min-height: 38px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; }
.booking-tab.active { background: #edf1ec; color: var(--green); }
.booking-tab[hidden], .booking-tab-panel[hidden] { display: none; }
.booking-tab:focus-visible { outline: 2px solid #849583; outline-offset: 2px; }
.google-info { margin: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.google-dialog-actions { border-color: #ead8d5; }
.booking-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.form-field { display: grid; min-width: 0; gap: 6px; color: #45443f; font-size: 12px; font-weight: 600; }
.form-field[hidden], .google-finance-hint[hidden] { display: none; }
.guest-type-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.guest-type-field[hidden] { display: none; }
.guest-type-field legend { margin-bottom: 6px; padding: 0; color: #45443f; font-size: 12px; font-weight: 600; }
.guest-type-options { display: flex; min-height: 42px; align-items: center; gap: 4px; padding: 4px; border: 1px solid #e8e6e1; border-radius: 8px; background: #f7f6f3; }
.guest-type-options label { position: relative; display: flex; flex: 1; min-height: 32px; align-items: center; justify-content: center; cursor: pointer; }
.guest-type-options input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.guest-type-options span { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 6px; color: #77746e; font-size: 12px; font-weight: 600; }
.guest-type-options input:checked + span { background: #fff; color: #405643; box-shadow: 0 1px 4px #1f1e1b1a; }
.guest-type-options input:focus-visible + span { outline: 2px solid #849583; outline-offset: 1px; }
.booking-finance-note { gap: 8px; padding: 11px 13px; border: 1px solid #e9e7e1; border-radius: 8px; background: #f8f7f4; color: #5d5b55; font-size: 12px; }
.google-finance-hint { margin: 0; padding: 10px 12px; border: 1px solid #eee5c8; border-radius: 8px; background: #fbf8ed; color: #6b6041; font-size: 12px; font-weight: 400; line-height: 1.5; }
.booking-finance-note > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.booking-finance-note strong { color: #405643; }
.booking-finance-note span { display: flex; gap: 5px; }
.form-field-wide, .form-section-title { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid #e8e6e1; border-radius: 7px; background: #fff; color: #292925; font: inherit; font-size: 16px; font-weight: 400; }
.form-field textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #849583; outline: none; box-shadow: 0 0 0 3px #526a551a; }
.form-section-title { margin: 5px 0 -3px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 13px; }
.dialog-error { margin: 14px 0 0; color: #a33f37; font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.button-danger { margin-right: auto; border-color: #ead8d5; color: #a33f37; }
.button-danger:hover { border-color: #d9b9b4; background: #fcf5f4; }
.button-danger:disabled { cursor: wait; opacity: .65; }
.dialog-save { width: auto; min-width: 120px; margin: 0; }
.create-entry-dialog { width: min(480px, calc(100% - 32px)); }
.create-entry-dialog .dialog-save:disabled { cursor: wait; opacity: .65; }
@media (min-width: 1500px) { .month-week { grid-template-rows: minmax(102px, auto) repeat(var(--booking-lanes), 20px); } }
@media (max-width: 1050px) {
  .main-content { padding-right: 26px; padding-left: 26px; }
  .topbar { flex-wrap: wrap; }
  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .main-content { min-height: 100vh; min-height: 100dvh; margin: 0; padding: 20px 14px 21px; padding-right: max(14px, env(safe-area-inset-right)); padding-bottom: max(21px, env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); }
  .topbar { align-items: center; flex-wrap: wrap; margin-bottom: 19px; }
  .topbar h1 { font-size: 25px; }
  .main-navigation { order: 3; width: 100%; }
  .main-nav-button { flex: 1; }
  .export-actions { width: 100%; flex-wrap: wrap; }
  .sync-control { flex: 1 1 18%; }
  .export-actions .button { flex: 1 1 18%; }
  .export-actions .logout-button { flex: none; }
  .booking-list-view { padding: 13px 9px 18px; }
  .booking-list-heading, .booking-list-row { grid-template-columns: minmax(0, 1.2fr) minmax(88px, 1fr) minmax(88px, 1fr); gap: 7px; }
  .booking-list-heading { padding-right: 8px; padding-left: 8px; }
  .booking-list-row { padding-right: 8px; padding-left: 8px; font-size: 12px; }
  .calendar-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 11px; }
  .booking-filter { width: 100%; }
  .booking-filter select { flex: 1; max-width: none; }
  .date-navigation { width: 100%; justify-content: space-between; }
  .date-navigation h2 { min-width: 0; flex: 1; font-size: 14px; text-align: center; }
  .view-switch { width: 100%; }
  .view-button { min-height: 40px; flex: 1; padding: 0 9px; }
  .calendar-view { min-height: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .month-grid { min-width: 0; padding: 0 7px 12px; }
  .weekday-row { height: 36px; }
  .weekday { padding: 0; text-align: center; }
  .month-week { --calendar-day-row-height: 66px; }
  .month-day { padding: 5px 2px; text-align: center; }
  .day-number { width: 24px; height: 24px; }
  .today-label { margin: 3px 0 0; font-size: 9px; }
  .booking-bar { padding-right: 2px; padding-left: 2px; font-size: 9px; }
  .year-grid { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .week-view { min-width: 670px; padding-right: 10px; padding-left: 10px; }
  .login-page { min-height: 100vh; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .login-card input { min-height: 46px; font-size: 16px; }
  .booking-dialog { width: calc(100% - 24px); max-height: 90vh; max-height: 90dvh; }
  .booking-dialog form { padding: 20px 16px max(20px, env(safe-area-inset-bottom)); }
  .form-field input, .form-field select, .form-field textarea { min-height: 44px; font-size: 16px; }
  .calendar-hint { padding: 9px 11px 0; }
  .dialog-actions { flex-wrap: wrap; }
  .button-danger { width: 100%; margin-right: 0; }
  .dialog-actions .button-outline, .dialog-actions .dialog-save { flex: 1; }
}
@media (max-width: 420px) {
  .topbar .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .topbar h1 { font-size: 22px; }
  .export-actions { gap: 5px; }
  .export-actions .button { min-height: 42px; padding: 0 6px; font-size: 11px; }
  .sync-button { padding: 0 7px; }
  .date-navigation { gap: 1px; }
  .date-navigation h2 { margin: 0 2px; font-size: 13px; }
  .date-navigation .icon-button, .logout-button { width: 42px; height: 42px; }
  .button-today { min-height: 42px; }
  .booking-filter select { min-height: 42px; }
  .month-week { --calendar-day-row-height: 58px; }
  .month-day { padding: 4px 0; }
  .day-number { width: 22px; height: 22px; font-size: 11px; }
  .year-grid { gap: 6px; padding: 8px; }
  .login-card { padding: 31px 24px 27px; }
}
@media (hover: none) and (pointer: coarse) {
  button, select { touch-action: manipulation; }
  .button, .view-button, select { min-height: 44px; }
  .icon-button { min-width: 44px; min-height: 44px; }
  .main-nav-button { min-height: 44px; }
}
:focus-visible { outline: 2px solid #526a55; outline-offset: 2px; }
