:root {
  --ink: #26261f;
  --muted: #6e706a;
  --paper: #fffdf7;
  --cream: #f5f1e8;
  --forest: #3e4a39;
  --sage: #81887a;
  --terra: #b05a32;
  --line: rgba(62, 74, 57, .18);
  --soft: rgba(255, 255, 255, .54);
  font-family: Kinetika, Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 85% 0%, rgba(150, 188, 166, .2), transparent 32rem), var(--cream); }
body.is-locked { overflow: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; opacity: .55; pointer-events: none; background-image: linear-gradient(rgba(129,136,122,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(129,136,122,.08) 1px, transparent 1px); background-size: 48px 48px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
.auth-screen { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 22px; overflow-y: auto; background: linear-gradient(145deg, rgba(62,74,57,.94), rgba(38,38,31,.9)); }
.auth-screen[hidden] { display: none; }
.auth-card { width: min(100%, 470px); padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(255,253,247,.38); background: var(--paper); box-shadow: 0 24px 90px rgba(0,0,0,.25); }
.auth-card__brand { display: flex; align-items: center; min-height: 38px; margin-bottom: 38px; }
.auth-card__brand img { display: block; width: 158px; height: auto; }
.auth-card > p:not(.eyebrow):not(.auth-card__note) { margin: 18px 0 28px; color: var(--muted); line-height: 1.5; }
.auth-form { display: grid; gap: 17px; }
.auth-form label { display: grid; gap: 8px; color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.auth-form input { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #fffefa; color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.auth-form input:focus { border-color: var(--sage); outline: 3px solid rgba(150,188,166,.35); outline-offset: 1px; }
.auth-form .button { width: 100%; margin-top: 5px; }
.auth-form__error { min-height: 1.35em; margin: 0; color: #98431f; font-size: 13px; line-height: 1.35; }
.auth-card__note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.app-shell { width: min(1440px, calc(100% - 40px)); display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 44px; margin: 0 auto; padding: 30px 0 80px; }
.sidebar { position: sticky; top: 24px; align-self: start; display: grid; gap: 36px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 162px; height: auto; }
.navigation { display: grid; gap: 2px; }
.navigation__link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-left: 2px solid transparent; color: var(--muted); font-weight: 700; text-decoration: none; }
.navigation__link:hover, .navigation__link:focus-visible { color: var(--forest); background: rgba(255,255,255,.48); outline: none; }
.navigation__link.is-active { border-left-color: var(--terra); color: var(--forest); background: rgba(176,90,50,.08); }
.main { min-width: 0; }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 180px; gap: 34px; margin-bottom: 18px; padding: clamp(28px, 4vw, 46px); overflow: hidden; border: 1px solid rgba(255,253,247,.16); background: #3e4a39; color: var(--paper); box-shadow: 0 18px 46px rgba(38,38,31,.12); }
.topbar::after { content: ''; position: absolute; width: 220px; height: 220px; top: -132px; right: -66px; border: 1px solid rgba(217,226,212,.14); border-radius: 50%; box-shadow: 0 0 0 48px rgba(217,226,212,.025); pointer-events: none; }
.topbar__content { min-width: 0; }
.eyebrow { margin: 0 0 12px; color: var(--terra); font-size: 11px; font-weight: 700; letter-spacing: .18em; line-height: 1.2; text-transform: uppercase; }
h1, h2 { margin: 0; color: var(--ink); font-family: Berlingske Serif, Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(44px, 5vw, 66px); line-height: .92; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: .98; }
.topbar h1 { color: var(--paper); }
.topbar__intro { max-width: 550px; margin: 12px 0 0; color: rgba(255,253,247,.72); line-height: 1.45; }
.topbar__actions { display: grid; justify-items: end; gap: 15px; min-width: max-content; }
.topbar__button-group { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.today { margin: 0; color: rgba(255,253,247,.72); font-size: 13px; text-transform: capitalize; }
.topbar .button--primary { min-width: 190px; border-color: var(--terra); box-shadow: 0 10px 30px rgba(31,22,17,.18); }
.topbar .button--secondary { min-width: 190px; border-color: rgba(255,253,247,.55); color: var(--paper); }
.topbar .button--secondary:hover { border-color: var(--paper); background: var(--paper); color: var(--forest); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 17px; border: 1px solid transparent; border-radius: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1; text-transform: uppercase; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:focus-visible { outline: 3px solid rgba(150,188,166,.7); outline-offset: 3px; }
.button:hover { transform: translateY(-1px); }
.button--primary { border-color: var(--terra); background: var(--terra); color: #fffdf8; }
.button--primary:hover { background: #904522; }
.button--secondary { border-color: var(--forest); background: transparent; color: var(--forest); }
.button--secondary:hover { background: var(--forest); color: var(--paper); }
.button--quiet { min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--forest); font-size: 12px; letter-spacing: .02em; text-transform: none; }
.notice { margin-bottom: 18px; padding: 15px 18px; border: 1px solid rgba(176,90,50,.34); background: rgba(176,90,50,.08); color: var(--ink); line-height: 1.45; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric, .panel { border: 1px solid var(--line); background: rgba(255,253,247,.8); box-shadow: 0 16px 42px rgba(38,38,31,.055); }
.metric { display: grid; align-content: space-between; min-height: 142px; padding: 18px; }
.metric--attention { border-color: rgba(176,90,50,.45); background: linear-gradient(150deg, rgba(176,90,50,.11), rgba(255,253,247,.8)); }
.metric span, .metric small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.metric span { font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.metric strong { color: var(--forest); font: 500 clamp(42px, 4.5vw, 58px)/.84 Berlingske Serif, Georgia, serif; letter-spacing: -.05em; }
.panel { margin-bottom: 18px; padding: clamp(18px, 3vw, 30px); }
.panel--compact { margin: 0; min-height: 264px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading__tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.section-heading__tools .button { white-space: nowrap; }
.section-note { color: var(--muted); font-size: 12px; }
.task-list { display: grid; }
.task { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 78px; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task__signal { display: block; width: 10px; height: 10px; border-radius: 50%; background: #7ba45e; }
.task.is-urgent .task__signal { background: var(--terra); }
.task__content { display: grid; gap: 5px; }
.task__content strong { font-size: 15px; line-height: 1.25; }
.task__content span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.task-list__empty { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.search input { width: min(220px, 30vw); min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--soft); color: var(--ink); }
.search input:focus { border-color: var(--sage); outline: 2px solid rgba(150,188,166,.36); outline-offset: 1px; }
.booking-list { border-top: 1px solid var(--line); }
.booking { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, .8fr) minmax(165px, .9fr) auto auto; gap: 16px; align-items: center; min-height: 80px; border-bottom: 1px solid var(--line); }
.booking__guest { display: grid; gap: 4px; }
.booking__guest strong { font-size: 15px; }
.booking__guest span, .booking__meta { color: var(--muted); font-size: 12px; line-height: 1.35; }
.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 27px; padding: 0 9px; border: 1px solid var(--line); color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.badge--attention { border-color: rgba(176,90,50,.45); background: rgba(176,90,50,.08); color: #81421f; }
.badge--success { border-color: rgba(123,164,94,.5); background: rgba(123,164,94,.1); color: #496b35; }
.badge--neutral { color: var(--muted); }
.badge--present { border-color: rgba(176,90,50,.5); background: rgba(176,90,50,.1); color: #81421f; }
.booking__actions { display: flex; align-items: center; justify-content: flex-end; }
.button--compact { min-height: 34px; padding: 0 11px; font-size: 10px; }
.booking-list__empty { padding: 28px 0 4px; color: var(--muted); }
.booking-archive { margin-top: 18px; border-top: 1px solid var(--line); }
.booking-archive summary { display: flex; align-items: center; justify-content: flex-start; min-height: 52px; color: var(--forest); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.booking-archive summary::-webkit-details-marker { display: none; }
.booking-archive summary::after { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: auto; border: 1px solid var(--line); font-size: 19px; font-weight: 400; line-height: 1; }
.booking-archive[open] summary::after { content: '−'; }
.booking-archive summary span { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.hold-dialog { width: min(calc(100% - 32px), 600px); max-height: min(760px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.hold-dialog::backdrop { background: rgba(30,35,28,.62); backdrop-filter: blur(4px); }
.hold-dialog__backdrop { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.hold-dialog__backdrop button { width: 100%; height: 100%; border: 0; background: transparent; }
.hold-dialog__card { position: relative; max-height: min(760px, calc(100dvh - 32px)); overflow-y: auto; padding: clamp(22px, 4vw, 34px); background: var(--paper); }
.hold-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.hold-dialog__header .eyebrow { margin-bottom: 9px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--forest); font-size: 30px; font-weight: 300; line-height: 1; }
.icon-button:hover { border-color: var(--forest); background: var(--forest); color: var(--paper); }
.hold-dialog__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 22px 0; border: 1px solid var(--line); }
.hold-dialog__facts > div { min-height: 78px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hold-dialog__facts > div:nth-child(even) { border-right: 0; }
.hold-dialog__facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.hold-dialog__facts dt { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; line-height: 1.2; text-transform: uppercase; }
.hold-dialog__facts dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.3; }
.hold-dialog__message { margin: 0 0 18px; padding: 14px; border-left: 3px solid var(--sage); background: rgba(129,136,122,.1); color: var(--ink); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.hold-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hold-dialog__actions .button { min-height: 44px; }
.body-copy { max-width: 520px; margin: 16px 0 22px; color: var(--muted); line-height: 1.55; }
.guest-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 20px; border: 1px solid var(--line); }
.guest-summary > div { display: grid; align-content: center; min-height: 102px; padding: 16px 18px; border-right: 1px solid var(--line); }
.guest-summary > div:last-child { border-right: 0; }
.guest-summary strong { color: var(--forest); font: 500 38px/.9 Berlingske Serif, Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
.guest-summary span { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.guest-summary__present { background: rgba(176,90,50,.07); }
.guest-summary__present strong { color: var(--terra); }
.guest-list { border-top: 1px solid var(--line); }
.guest-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(190px, auto) 34px; align-items: center; gap: 18px; min-height: 82px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; transition: background .18s ease, padding .18s ease, margin .18s ease; }
.guest-row:hover, .guest-row:focus-visible { margin-inline: -12px; width: calc(100% + 24px); padding-inline: 12px; background: rgba(129,136,122,.08); outline: none; }
.guest-row:focus-visible { box-shadow: inset 3px 0 var(--terra); }
.guest-row.is-repeat { margin-inline: -12px; padding-inline: 12px; background: linear-gradient(90deg, rgba(176,90,50,.08), transparent 70%); }
.guest-row.is-repeat:hover, .guest-row.is-repeat:focus-visible { width: calc(100% + 24px); background: linear-gradient(90deg, rgba(176,90,50,.14), rgba(129,136,122,.07)); }
.guest-row__identity { display: grid; gap: 5px; min-width: 0; }
.guest-row__identity strong { overflow: hidden; font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.guest-row__identity span, .guest-row__count span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.guest-row__count { display: flex; align-items: baseline; gap: 7px; }
.guest-row__count strong { color: var(--forest); font: 500 31px/.9 Berlingske Serif, Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
.guest-row .badge { justify-self: end; text-align: center; }
.guest-row__open { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); color: var(--forest); font-size: 20px; line-height: 1; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.guest-row:hover .guest-row__open, .guest-row:focus-visible .guest-row__open { border-color: var(--forest); background: var(--forest); color: var(--paper); transform: translateX(2px); }
.guest-list__empty { margin: 0; padding: 28px 0 4px; color: var(--muted); line-height: 1.5; }
.guest-dialog { width: min(calc(100% - 32px), 720px); max-height: min(820px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.guest-dialog::backdrop { background: rgba(30,35,28,.66); backdrop-filter: blur(5px); }
.guest-dialog__backdrop { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.guest-dialog__backdrop button { width: 100%; height: 100%; border: 0; background: transparent; }
.guest-dialog__card { position: relative; max-height: min(820px, calc(100dvh - 32px)); overflow-y: auto; padding: clamp(22px, 4vw, 36px); background: var(--paper); }
.guest-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.guest-dialog__header .eyebrow { margin-bottom: 9px; }
.guest-dialog__state { min-height: 150px; display: grid; place-items: center; padding: 28px; color: var(--muted); text-align: center; }
.guest-dialog__state[hidden], .guest-dialog__content[hidden] { display: none; }
.guest-dialog__state.is-error { color: #98431f; }
.guest-dialog__summary { display: grid; gap: 7px; margin: 22px 0 16px; padding: 18px; border-left: 3px solid var(--sage); background: rgba(129,136,122,.1); }
.guest-dialog__summary.is-repeat { border-left-color: var(--terra); background: rgba(176,90,50,.09); }
.guest-dialog__summary strong { color: var(--forest); font-size: 16px; line-height: 1.25; }
.guest-dialog__summary.is-repeat strong { color: var(--terra); }
.guest-dialog__summary span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.guest-dialog__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 26px; border: 1px solid var(--line); }
.guest-dialog__contacts > div { min-height: 78px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guest-dialog__contacts > div:nth-child(even) { border-right: 0; }
.guest-dialog__contacts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.guest-dialog__contacts dt { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; line-height: 1.2; text-transform: uppercase; }
.guest-dialog__contacts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.35; }
.guest-dialog__history-heading { margin-bottom: 12px; }
.guest-dialog__history-heading .eyebrow { margin-bottom: 6px; }
.guest-dialog__history h3 { margin: 0; color: var(--forest); font: 500 28px/.98 Berlingske Serif, Georgia, serif; letter-spacing: -.035em; }
.guest-stay-list { border-top: 1px solid var(--line); }
.guest-stay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: 18px; min-height: 76px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.guest-stay__main, .guest-stay__reference { display: grid; gap: 5px; }
.guest-stay__main strong, .guest-stay__reference strong { color: var(--ink); font-size: 14px; line-height: 1.3; }
.guest-stay__main span, .guest-stay__reference span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.guest-stay__reference { justify-items: end; text-align: right; }
.guest-stay-list__empty { margin: 0; padding: 22px 0; color: var(--muted); }
.manual-dialog { width: min(calc(100% - 32px), 680px); max-height: min(860px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.manual-dialog::backdrop { background: rgba(30,35,28,.66); backdrop-filter: blur(5px); }
.manual-dialog__backdrop { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.manual-dialog__backdrop button { width: 100%; height: 100%; border: 0; background: transparent; }
.manual-dialog__card { position: relative; max-height: min(860px, calc(100dvh - 32px)); overflow-y: auto; padding: clamp(22px, 4vw, 36px); background: var(--paper); }
.manual-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.manual-dialog__header .eyebrow { margin-bottom: 9px; }
.questionnaire-form { display: grid; gap: 18px; }
.questionnaire-form__fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.questionnaire-options { display: grid; gap: 10px; }
.questionnaire-option { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 82px; padding: 14px 15px; border: 1px solid var(--line); background: #fffefa; color: var(--ink); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.questionnaire-option:hover { border-color: rgba(176,90,50,.55); background: rgba(176,90,50,.035); }
.questionnaire-option:has(input:checked) { border-color: var(--terra); background: rgba(176,90,50,.07); }
.questionnaire-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--terra); }
.questionnaire-option__body { min-width: 0; display: grid; align-content: center; gap: 5px; }
.questionnaire-option__body strong { overflow-wrap: anywhere; color: var(--forest); font-size: 15px; line-height: 1.25; }
.questionnaire-option__body span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.questionnaire-option .badge { align-self: center; white-space: nowrap; }
.questionnaire-options__empty { margin: 0; padding: 18px; border: 1px solid var(--line); background: rgba(129,136,122,.07); color: var(--muted); font-size: 13px; line-height: 1.5; }
.manual-form { display: grid; gap: 18px; }
.manual-form__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.manual-form__field { display: grid; gap: 8px; color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.manual-form__field input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #fffefa; color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.manual-form__field input:focus { border-color: var(--sage); outline: 3px solid rgba(150,188,166,.35); outline-offset: 1px; }
.manual-select { position: relative; }
.manual-select__trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); background: #fffefa; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1; text-align: left; text-transform: none; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.manual-select__trigger:hover { border-color: rgba(62,74,57,.55); background: #fff; }
.manual-select__trigger:focus-visible, .manual-select__trigger[aria-expanded="true"] { border-color: var(--sage); outline: 3px solid rgba(150,188,166,.35); outline-offset: 1px; }
.manual-select__trigger svg { flex: 0 0 auto; width: 16px; height: 10px; margin-left: 14px; fill: none; stroke: var(--terra); stroke-width: 1.5; transition: transform .18s ease; }
.manual-select__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.manual-select__menu { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; right: 0; display: grid; padding: 6px; border: 1px solid var(--line); background: #fffefa; box-shadow: 0 16px 34px rgba(30,35,28,.16); }
.manual-select__menu[hidden] { display: none; }
.manual-select__menu button { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 46px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.manual-select__menu button:hover, .manual-select__menu button:focus-visible { background: rgba(129,136,122,.12); outline: none; }
.manual-select__menu button[aria-selected="true"] { background: var(--forest); color: var(--paper); }
.manual-form__languages { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.manual-form__languages legend { width: 100%; margin-bottom: 1px; color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.manual-form__languages label { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); color: var(--forest); font-size: 13px; font-weight: 700; cursor: pointer; }
.manual-form__languages input { width: 16px; height: 16px; margin: 0 9px 0 0; accent-color: var(--terra); }
.manual-form__confirmation { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; color: var(--forest); font-size: 14px; font-weight: 700; line-height: 1.35; cursor: pointer; }
.manual-form__confirmation input { width: 20px; height: 20px; margin: 0; accent-color: var(--terra); }
.manual-form__help { margin: -5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.manual-form__error { margin: 0; padding: 12px 14px; border-left: 3px solid var(--terra); background: rgba(176,90,50,.08); color: #81421f; font-size: 13px; line-height: 1.45; }
.manual-form__error[hidden], .manual-result[hidden] { display: none; }
.manual-form__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.manual-result { display: grid; gap: 14px; margin-top: 24px; padding: 22px; border: 1px solid rgba(123,164,94,.5); background: rgba(123,164,94,.08); }
.manual-result .eyebrow { margin-bottom: 0; color: #496b35; }
.manual-result > strong { color: var(--forest); font-size: 18px; line-height: 1.3; }
.manual-result > label { color: var(--muted); font-size: 13px; line-height: 1.4; }
.manual-result textarea { width: 100%; min-height: 180px; padding: 13px 14px; resize: vertical; border: 1px solid var(--line); border-radius: 0; background: #fffefa; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.55; }
.manual-result__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.manual-result__copy input { min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: #fffefa; color: var(--ink); font-size: 13px; }
.manual-result > .button { justify-self: start; }
.guide-form { display: grid; gap: 18px; }
.guide-result__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.guide-result__actions .button { text-decoration: none; }
.request-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); align-items: center; gap: 34px; }
.request-panel__intro { display: grid; justify-items: start; gap: 14px; }
.request-panel__intro .eyebrow { margin: 0; }
.request-panel__intro > p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.request-panel__totals { border-bottom: 1px solid var(--line); }
.request-summary { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-top: 1px solid var(--line); }
.request-summary span { color: var(--muted); }
.request-summary strong { color: var(--forest); font: 500 36px/.9 Berlingske Serif, Georgia, serif; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 920px) {
  .app-shell { width: min(100% - 28px, 760px); display: block; padding-top: 18px; }
  .sidebar { position: static; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
  .navigation { display: flex; gap: 2px; overflow-x: auto; margin-left: auto; }
  .navigation__link { flex: 0 0 auto; min-height: 38px; padding: 0 9px; border-bottom: 2px solid transparent; border-left: 0; font-size: 12px; }
  .navigation__link.is-active { border-bottom-color: var(--terra); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .app-shell { width: min(100% - 22px, 560px); padding-bottom: 40px; }
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 14px; padding-top: 8px; }
  .brand { justify-self: center; min-height: 52px; }
  .brand img { width: 138px; }
  .navigation { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); order: 2; margin-left: 0; overflow: visible; }
  .navigation__link { justify-content: center; min-width: 0; padding-inline: 5px; }
  .topbar { min-height: 0; display: grid; align-items: stretch; gap: 22px; padding: 26px 22px; }
  .topbar__actions { grid-template-columns: minmax(0, 1fr); align-content: end; justify-items: stretch; min-width: 0; }
  .topbar__button-group { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .topbar .today { text-align: left; }
  .topbar .button--primary, .topbar .button--secondary { width: 100%; min-width: 0; }
  .button--primary { width: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { min-height: 136px; padding: 14px; }
  .metric strong { font-size: 43px; }
  .panel { padding: 18px; }
  .section-heading { align-items: flex-end; }
  .section-heading--actions, .section-heading--guests { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .section-heading__tools { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .section-heading__tools .search, .section-heading__tools .search input, .section-heading__tools .button { width: 100%; }
  .search input { width: 112px; }
  .task { grid-template-columns: 10px minmax(0, 1fr); padding: 14px 0; }
  .task .button { grid-column: 2; justify-content: flex-start; }
  .booking { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 15px 0; }
  .booking__guest { grid-column: 1 / -1; }
  .booking .badge { grid-column: 2; grid-row: 2; justify-self: end; }
  .booking__actions { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .panel--compact { min-height: 0; }
  .guest-summary { grid-template-columns: 1fr 1fr; }
  .guest-summary > div:nth-child(2) { border-right: 0; }
  .guest-summary__present { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .guest-row { grid-template-columns: minmax(0, 1fr) auto 34px; gap: 10px 12px; }
  .guest-row .badge { grid-column: 1 / 3; justify-self: start; }
  .guest-row__open { grid-column: 3; grid-row: 1 / 3; }
  .request-panel { grid-template-columns: 1fr; gap: 24px; }
  .hold-dialog { width: min(calc(100% - 20px), 560px); max-height: calc(100dvh - 20px); }
  .hold-dialog__card { max-height: calc(100dvh - 20px); padding: 20px; }
  .hold-dialog__facts { grid-template-columns: 1fr; }
  .hold-dialog__facts > div, .hold-dialog__facts > div:nth-child(even) { border-right: 0; border-bottom: 1px solid var(--line); }
  .hold-dialog__facts > div:last-child { border-bottom: 0; }
  .hold-dialog__actions .button { width: 100%; }
  .guest-dialog { width: min(calc(100% - 20px), 680px); max-height: calc(100dvh - 20px); }
  .guest-dialog__card { max-height: calc(100dvh - 20px); padding: 20px; }
  .guest-dialog__contacts { grid-template-columns: 1fr; }
  .guest-dialog__contacts > div, .guest-dialog__contacts > div:nth-child(even) { border-right: 0; border-bottom: 1px solid var(--line); }
  .guest-dialog__contacts > div:last-child { border-bottom: 0; }
  .guest-stay { grid-template-columns: 1fr; gap: 8px; }
  .guest-stay__reference { justify-items: start; text-align: left; }
  .manual-dialog { width: min(calc(100% - 20px), 640px); max-height: calc(100dvh - 20px); }
  .manual-dialog__card { max-height: calc(100dvh - 20px); padding: 20px; }
  .questionnaire-option { grid-template-columns: 22px minmax(0, 1fr); }
  .questionnaire-option .badge { grid-column: 2; justify-self: start; }
  .manual-form__dates, .manual-result__copy { grid-template-columns: 1fr; }
  .manual-form__actions { display: grid; grid-template-columns: 1fr; }
  .manual-form__actions .button, .manual-result__copy .button, .manual-result > .button, .guide-result__actions .button { width: 100%; }
  .guide-result__actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .section-heading--guests { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; justify-content: stretch; }
  .section-heading--guests .search input { width: 100%; }
  .section-heading--guests .search { width: 100%; }
  .guest-summary { grid-template-columns: 1fr; }
  .guest-summary > div, .guest-summary > div:nth-child(2) { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
  .guest-summary > div:last-child { grid-column: auto; border-bottom: 0; }
  .section-heading--guests > *, .section-heading--actions > * { width: 100%; min-width: 0; }
  .guest-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .guest-row__count { justify-content: flex-start; }
  .guest-row .badge { grid-column: 1; }
  .guest-row__open { grid-column: 2; grid-row: 1 / 4; }
}
