/* The new staff UI (Moriya, 29.10.2026). Big targets, few words, one task
   per screen. Phone first; tablet and computer get more room, not more stuff. */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #1D2420;
  --muted: #5A6660;
  --primary: #1F5E4A;
  --primary-ink: #FFFFFF;
  --line: #E7E2D7;
  --border: #D9D3C6;
  --amber: #E8A33D;
  --warn-bg: #FBF0DF;
  --warn-fg: #8A4F06;
  --warm: #B5541C;
  --warm-soft: #F8E7DB;
  --ok-soft: #EDF4F0;
  --leaving-bg: #E8EEF6;
  --leaving-fg: #244A78;
  --turnover-bg: #EFE9F7;
  --turnover-fg: #5A3A8C;
  --out-bg: #FDECEA;
  --out-fg: #9B1C14;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 36, 32, .06), 0 4px 14px rgba(29, 36, 32, .05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
/* Date and time fields, everywhere (Moriya, 5.11.2026, remark 12). iOS gives them
   a width of their own that ignores their box, so they spill over their cell:
   without the native look, and allowed to shrink, they keep to it. The value
   then starts where text starts, and an empty one keeps its height. */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
  -webkit-appearance: none; appearance: none;
  max-width: 100%; min-width: 0;
}
input::-webkit-date-and-time-value { min-height: 1.4em; text-align: start; }
input::-webkit-datetime-edit { padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2 { margin: 0; font-weight: 600; }
h1 { font-size: 26px; }
h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.icon { flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 48px; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar__who, .topbar__dates { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.topbar__who { align-items: flex-start; }
.topbar__who strong { font-size: 18px; font-weight: 600; }
.topbar__who span { font-size: 14px; color: var(--muted); }
.topbar__who > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__dates { align-items: flex-end; text-align: end; font-size: 14px; color: var(--muted); white-space: nowrap; }
.topbar__dates span:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 480px) {
  .topbar { gap: 8px; padding-inline: 12px; }
  .topbar__who strong { font-size: 16px; }
  .topbar__who span, .topbar__dates { font-size: 13px; }
}
/* Demo mode (026): whoever is presenting always sees they are in the demo. */
@media (max-width: 640px) { .demo-pill__more { display: none; } }
.demo-pill { font-style: normal; font-size: 12px; font-weight: 600; padding: 0 8px; margin-top: 2px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--amber); }
.icon-btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink);
}
.icon-btn:hover { background: var(--bg); }

/* ---------- Screens ---------- */
.screen { max-width: 1180px; margin: 0 auto; padding: 18px 16px 48px; }
.screen--narrow { max-width: 760px; }
.screen--narrow .search-box { flex: 1 1 100%; }
.screen--narrow .card-grid { grid-template-columns: 1fr; }
.screen-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.screen-head > h1 { line-height: 44px; }
.screen-head h1, .screen-head__title { flex: 1 1 auto; min-width: 0; }
.screen-head__start:empty { display: none; }
/* Back: the arrow alone, at the start of the title row. */
.back-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--ink);
}
.back-btn:hover { background: var(--bg); }
.title-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.title-row h1 { flex: 0 1 auto; min-width: 0; }
.title-row .chip { flex: none; }
.more-menu { position: relative; margin-inline-start: auto; flex: none; }
.booking-more { width: 44px; height: 44px; border-radius: 50%; }
.more-menu__list {
  position: absolute; z-index: 20; inset-inline-end: 0; top: calc(100% + 6px); min-width: 200px;
  display: flex; flex-direction: column; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.more-menu__list a, .more-menu__list button {
  display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-weight: 500; text-align: start; color: var(--ink); cursor: pointer;
}
.more-menu__list a:hover, .more-menu__list button:hover { background: var(--bg); }
.more-menu__list .is-danger { color: var(--out-fg); }
.screen-sub { margin: 4px 0 0; color: var(--muted); }
.screen-sub--note { color: var(--warn-fg); }
.screen-hint { margin: 0 0 10px; color: var(--muted); font-weight: 500; }
.empty { color: var(--muted); padding: 32px 8px; margin: 0; text-align: center; font-size: 18px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.is-busy { opacity: .7; pointer-events: none; }

.center-message {
  min-height: 70vh; display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: center; color: var(--muted); font-size: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px;
  border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; font-size: 17px; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--quiet { background: var(--surface); border-color: var(--border); }
.btn--wide { width: 100%; }
.btn--tall { min-height: 60px; font-size: 19px; }
.link-btn {
  background: none; border: 0; padding: 8px 4px;
  font-weight: 700; font-size: 19px; color: var(--primary); text-decoration: underline;
}

/* ---------- Reception home ---------- */
.home-actions { display: grid; gap: 14px; }
.big-action {
  display: flex; align-items: center; gap: 18px;
  min-height: 120px; padding: 20px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .08s ease;
}
.big-action:active { transform: scale(.985); }
.big-action--primary { background: var(--primary); color: #fff; }
.big-action--warm { background: var(--warm); color: #fff; }
.big-action__icon {
  flex: none; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 22px; background: rgba(255, 255, 255, .15);
}
.big-action__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.big-action__title { font-size: 28px; font-weight: 600; }
.big-action__sub { font-size: 17px; opacity: .9; }
.home-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.more-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 10px 6px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500; font-size: 15px;
}
.more-btn .icon { color: var(--primary); }

/* ---------- Who arrived? ---------- */
.search-box {
  flex: 1 1 100%; display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 16px;
  background: var(--surface); border: 2px solid var(--border); border-radius: 16px;
  color: var(--muted);
}
.search-box:focus-within { border-color: var(--primary); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 19px; color: var(--ink); }
.card-grid { display: grid; gap: 12px; }
.guest-card {
  display: flex; align-items: center; gap: 16px;
  min-height: 88px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.guest-card__time {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 72px; padding: 8px; border-radius: 12px; background: var(--ok-soft); color: var(--primary);
}
.guest-card__time strong { font-size: 21px; }
.guest-card__time small { font-size: 13px; color: var(--muted); }
.guest-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.guest-card__name { font-size: 21px; font-weight: 600; overflow-wrap: anywhere; }
.guest-card__detail { color: var(--muted); }
.guest-card__chevron { color: var(--muted); }
.guest-card--static { flex-wrap: wrap; }
.guest-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.note {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--warn-bg); color: var(--warn-fg);
}
.note--ok { background: var(--ok-soft); color: var(--primary); }
.note--error { background: var(--out-bg); color: var(--out-fg); margin: 0 0 14px; }
.note--big { font-size: 20px; font-weight: 500; padding: 20px; }
.note--warn { background: var(--warm-soft); color: var(--warm); }
/* Check-out (meeting with Pini): the late check-out form, and a finish button
   that waits for the key and the payment. */
.late-form { display: flex; flex-direction: column; gap: 10px; }
.late-form .field--inline { flex: 0 1 180px; }
.checkout .section-title { margin: 8px 0 0; }
.key-step .finish-btn:disabled { cursor: not-allowed; opacity: .75; }

/* ---------- Guest card: steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step--done { background: var(--ok-soft); border-color: #BFD8CB; }
/* The step that is open is the one to act on. */
.step--open { background: var(--surface); border: 2px solid var(--primary); box-shadow: var(--shadow); }
.step__head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px;
  background: none; border: 0; border-radius: inherit; color: inherit; font: inherit; text-align: start;
}
button.step__head { cursor: pointer; }
.step__mark {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border); font-size: 16px; font-weight: 700; color: var(--muted);
}
.step--done .step__mark { background: var(--primary); border-color: var(--primary); color: #fff; }
.step--open .step__mark { background: var(--primary); border-color: var(--primary); color: #fff; }
.step__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.step__title { font-size: 17px; font-weight: 600; }
.step__status { color: var(--muted); font-size: 15px; }
.step--warn .step__status { color: var(--warn-fg); font-weight: 500; }
.step__chevron, .more-row__chevron { flex: none; color: var(--muted); transition: transform .15s; }
[aria-expanded="true"] > .step__chevron, [aria-expanded="true"] > .more-row__chevron { transform: rotate(180deg); }
.step__body { display: flex; flex-direction: column; gap: 12px; padding: 2px 14px 14px; }
.step__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.step__actions .btn { min-height: 48px; padding: 0 20px; font-size: 16px; border-radius: 12px; }
.step__actions .btn--primary { flex: 1 1 100%; min-height: 56px; font-size: 18px; }
/* Inside a step only the main action looks like a button; the rest are quiet text. */
.step__actions .btn--quiet {
  flex: 0 0 auto; min-height: 40px; background: none; border-color: transparent; color: var(--muted); padding: 0 8px;
  text-decoration: underline; text-underline-offset: 3px; font-weight: 500; font-size: 15px;
}
.step__actions .btn--quiet:hover { color: var(--ink); }
.key-step { display: grid; gap: 8px; }
.key-step .finish-btn { width: 100%; min-height: 72px; font-size: 21px; border-radius: var(--radius); }
.key-step .finish-btn--outline { min-height: 60px; font-size: 18px; background: var(--surface); color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.key-step .finish-btn small { font-size: 14px; }
.split-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 4px 12px; }
.split-choice label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.split-choice select { min-height: 44px; font: inherit; padding-inline: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.split-choice .screen-sub { flex: 1 1 100%; margin: 0; }
.split-choice .link-btn { min-height: 44px; padding: 4px 0; color: var(--muted); font-size: 15px; font-weight: 500; text-align: start; }
.key-step__note { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--primary); font-weight: 600; }
.key-step__note .btn { width: 100%; min-height: 52px; font-size: 17px; border: 2px solid var(--warn-fg); color: var(--warn-fg); background: var(--warn-bg); }
/* Taking a payment */
.pay-panel { display: flex; flex-direction: column; gap: 10px; flex: 1 1 100%; }
.pay-panel .field__hint { margin: 0; }
.pay-panel__amount { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.pay-panel__amount input { width: 150px; min-height: 48px; padding: 0 12px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 18px; font-weight: 600; }
.pay-panel .segmented { padding: 3px; border-radius: 12px; }
.pay-panel .segmented button { min-height: 42px; padding: 0 12px; font-size: 14px; font-weight: 600; border-radius: 9px; }
.pay-panel__buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pay-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 68px; padding: 8px 12px; border-radius: 14px; }
.pay-btn span { font-size: 15px; font-weight: 600; opacity: 1; }
.pay-btn strong { font-size: 19px; }
.pay-btn small { font-size: 12px; opacity: .8; }
/* The lines under the steps */
.card-more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* A form inside a step */
.step-form { display: flex; flex-direction: column; gap: 14px; }
.step-form .field__label { font-size: 15px; }
.step-form .field input { min-height: 48px; font-size: 17px; }
.step-form .counters { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.step-form .counter { flex-direction: column; align-items: flex-start; gap: 4px; }
.step-form .counter__label { font-size: 15px; }
.step-form .counter__btn { width: 44px; height: 44px; }
.step-form .counter__value { min-width: 32px; font-size: 22px; }
.btn--step { width: 100%; min-height: 56px; font-size: 18px; border-radius: 12px; }
/* Under a long list of rooms the way on stays in reach, as in the passport form. */
.btn--stays { position: sticky; bottom: 10px; z-index: 2; box-shadow: var(--shadow); }
.field-row--two { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* Two dates side by side, also on a phone. */
.field-row.field-row--dates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field-row--dates .field input { padding-inline: 10px; font-size: 16px; }
/* A secondary action, in a step or beside a main button: quiet text. */
.step-form .link-btn, .meal-buttons .link-btn { padding: 8px 4px; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
.step-form > .link-btn { align-self: flex-start; }
.step-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.step-links .link-btn { padding: 4px; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
.step-form .guest-rows { margin: 0; }
.step-form .guest-row input { min-height: 48px; font-size: 17px; }
.step-form .plan-row .field__label { font-size: 13px; }
.step-form textarea { font-size: 16px; }
.filters .filters__dates, .guest-card__actions .link-btn { padding: 8px 4px; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
.filters .filters__dates { align-self: center; }
.meal-buttons { align-items: center; }
.key-step .finish-btn--warm.finish-btn--outline { color: var(--warm); border-color: var(--warm); }
.card-more > * + * { border-top: 1px solid var(--line); }
.more-row__head {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px;
  background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.more-row__head > .icon:first-child { flex: none; color: var(--muted); }
.more-row__title { flex: none; font-weight: 600; }
.more-row__summary { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 15px; }
.more-row__chevron { margin-inline-start: auto; }
.more-row__body { padding: 0 14px 14px; }
.more-row__body > .manage-card, .more-row__body > .print-panel, .more-row__body > .confirm-panel { padding: 0; background: none; border: 0; box-shadow: none; }
.more-row__body .meals-card > h2 { display: none; }
.card-more .history { border: 0; border-radius: 0; padding: 0 14px; background: none; }
.card-more .history summary { min-height: 52px; gap: 10px; color: inherit; list-style: none; }
.card-more .history summary::-webkit-details-marker { display: none; }
.card-more .history summary > .icon:first-child { flex: none; color: var(--muted); }
.card-more .history[open] .more-row__chevron { transform: rotate(180deg); }
.guest-card__time--unknown strong { font-size: 15px; font-weight: 600; }
.inline-form { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Passports at the desk (ui/passport.js): what was read, one person at a time. */
.passport-form { position: relative; display: flex; flex-direction: column; gap: 10px; }
/* The confirm stays in reach however long the page is on a phone: one tap. */
.passport-form > button[type="submit"] { position: sticky; bottom: 10px; z-index: 2; box-shadow: var(--shadow); }
.passport-form > .x-btn { top: -2px; inset-inline-end: 0; width: 44px; height: 44px; }
.passport-form__head { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-inline-end: 52px; }
.passport-form__photo { flex: none; width: 72px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.passport-form__title { min-width: 0; display: flex; flex-direction: column; }
.passport-form__title strong { font-size: 19px; overflow-wrap: anywhere; }
.passport-form__title small { font-size: 14px; color: var(--muted); }
.passport-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.passport-form__wide { grid-column: 1 / -1; }
.passport-form .field { gap: 2px; min-width: 0; }
.passport-form .field__label { font-size: 14px; font-weight: 500; color: var(--muted); }
.passport-form .field input, .passport-form .field select { width: 100%; min-width: 0; min-height: 46px; padding: 0 10px; font-size: 16px; font-weight: 600; }
.passport-form .field input.is-empty { border-color: var(--amber); background: var(--warn-bg); }
.passport-form .field input.is-missing { border-color: var(--out-fg); background: var(--out-bg); }
.passport-form .segmented { display: flex; padding: 3px; border-radius: 12px; }
.passport-form .segmented button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px; font-size: 15px; }
.passport-form__family { align-self: stretch; }
.passport-form__more { align-self: flex-start; min-height: 44px; padding: 4px; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
.passport-form__expired[hidden] { display: none; }
.passport-form__expired { margin: 0; }
.passport-list { list-style: none; margin: 0; padding: 0; display: grid; }
.passport-list > li + li { border-top: 1px solid var(--line); }
.passport-row { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.passport-row__mark { flex: none; color: var(--primary); }
.passport-row__name { flex: 0 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.passport-row__sub { flex: 1 1 auto; color: var(--muted); font-size: 15px; }
.passport-row .step__chevron { margin-inline-start: auto; }
.passport-details { display: flex; flex-direction: column; gap: 8px; padding-block: 2px 12px; }
.passport-details .screen-sub { margin: 0; font-size: 14px; }
.passport-details .step-links .link-btn { min-height: 44px; padding: 4px; }
.passport-details .link-btn--danger { margin-inline-start: 0; color: var(--out-fg); }
/* The photo: a small picture that enlarges, its actions as icons beside it. */
.passport-media { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.passport-thumb { flex: none; display: grid; place-items: center; width: 84px; height: 60px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--muted); cursor: zoom-in; }
.passport-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.passport-thumb:disabled { cursor: default; }
.passport-thumb--none { padding: 4px; font-size: 12px; line-height: 1.2; text-align: center; cursor: default; }
.passport-media__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.passport-icon { width: 44px; height: 44px; border-radius: 12px; }
.passport-icon--danger { color: var(--out-fg); }
.photo-view { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(29, 36, 32, .85); cursor: zoom-out; }
.photo-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
/* Goes to another screen: a real arrow, not a row that opens (remark 22). */
.go-arrow { flex: none; margin-inline-start: auto; color: var(--primary); }
.passport-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.passport-facts dt { font-size: 13px; color: var(--muted); }
.passport-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.guest-row--passport input { border-color: var(--primary); background: var(--ok-soft); }
.guest-row__passport { flex: 1 1 100%; order: 3; display: flex; align-items: center; gap: 4px; color: var(--primary); font-size: 14px; font-weight: 600; }
.guest-row__passport .link-btn { min-height: 44px; margin-inline-start: 8px; padding: 4px; font-size: 15px; font-weight: 500; color: var(--muted); }
.step-form > [data-slot]:empty { display: none; }
.step-links .link-btn { min-height: 44px; }
.screen-sub--names { font-weight: 600; color: var(--ink); }
/* The guest file (ui/guest-file.js). */
.title-row .chip--returning { display: inline-flex; align-items: center; gap: 4px; background: var(--ok-soft); color: var(--primary); }
.guest-card--stay { min-height: 72px; padding: 10px 14px; gap: 10px; }
.guest-card--stay .guest-card__name { font-size: 18px; }
.guest-card--stay .guest-card__chips { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
a.more-row__head { text-decoration: none; }
.guest-file-names { display: grid; }
.guest-file-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; font-weight: 600; color: inherit; text-decoration: none; }
.guest-file-name + .guest-file-name { border-top: 1px solid var(--line); }
.guest-file-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-block: 8px 0; color: var(--muted); font-size: 15px; }
.guest-file-links .chip--file { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; padding-inline: 14px; background: var(--ok-soft); color: var(--primary); text-decoration: none; }
.title-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 480px) { .title-name { font-size: 22px; } }
.guest-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.inline-form input {
  min-height: 52px; padding: 0 12px; min-width: 0; width: 140px;
  border: 2px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 18px;
}
.inline-form input[type="text"] { flex: 1 1 200px; width: auto; }
.finish-btn {
  flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px;
  min-height: 92px; padding: 14px 20px;
  border: 0; border-radius: var(--radius); background: var(--primary); color: #fff;
  font-size: 24px; font-weight: 600; box-shadow: var(--shadow);
}
.finish-btn small { flex-basis: 100%; text-align: center; font-size: 16px; font-weight: 500; opacity: .9; }
.finish-btn[aria-disabled="true"] { background: #C9CFCB; color: var(--ink); box-shadow: none; }

/* ---------- Walk-in ---------- */
.walkin-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-weight: 600; font-size: 17px; }
.field input, .field__money input {
  min-height: 56px; padding: 0 14px; width: 100%;
  border: 2px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 19px;
}
.field input:focus, .field__money input:focus { outline: 0; border-color: var(--primary); }
/* The phone field (ui/phone-field.js): one box, the same size as any other, with
   the flag and the dialing code inside it. The native list lies over the flag. */
.phone-input {
  display: flex; align-items: stretch; min-height: 56px; width: 100%; min-width: 0;
  border: 2px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden;
}
.phone-input:focus-within { border-color: var(--primary); }
.phone-input__country {
  position: relative; flex: none; display: flex; align-items: center; gap: 5px; padding-inline: 10px 6px;
  background: var(--bg); border-inline-end: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink);
}
.phone-input__flagbox { display: grid; }
.phone-input__flag { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(29, 36, 32, .12); }
.phone-input__caret { color: var(--muted); }
.phone-input__country select {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  opacity: 0; cursor: pointer; font-size: 16px; min-height: 0;
}
.phone-input > input, .field .phone-input > input, .step-form .field .phone-input > input {
  flex: 1 1 0; width: auto; min-width: 0; min-height: 0; padding: 0 12px; border: 0; border-radius: 0; background: none; outline: 0; font-size: 18px; text-align: left;
}
.step-form .phone-input { min-height: 48px; }
/* Where the field is narrow, the code beside the number gets smaller so the whole
   number still shows (Moriya, 5.11.2026, task 6). */
.phone-field { container-type: inline-size; }
@container (max-width: 259px) {
  .phone-input__country { gap: 3px; padding-inline: 7px 4px; font-size: 13px; }
  .phone-input__flag { width: 20px; height: 14px; }
  .phone-input__caret { width: 12px; height: 12px; }
  .phone-input > input, .field .phone-input > input, .step-form .field .phone-input > input { padding: 0 8px; font-size: 16px; }
}
@container (max-width: 199px) {
  .phone-input__country { padding-inline: 5px 3px; font-size: 12px; }
  .phone-input__flag { width: 16px; height: 11px; }
  .phone-input__caret { display: none; }
  .phone-input > input, .field .phone-input > input, .step-form .field .phone-input > input { padding: 0 5px; font-size: 15px; }
}
.phone-field__why { margin: 0; font-size: 14px; color: var(--warn-fg); font-weight: 500; }
.phone-field__why[hidden] { display: none; }
.field__money { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); }
.field__money input { max-width: 200px; }
.counters { display: grid; grid-template-columns: 1fr; gap: 12px; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.counter__label { font-weight: 600; font-size: 18px; }
.counter__controls { display: flex; align-items: center; gap: 6px; }
.counter__btn {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 16px; border: 2px solid var(--border); background: var(--surface); color: var(--primary);
}
.counter__btn:disabled { color: var(--border); cursor: default; }
.counter__value { min-width: 48px; text-align: center; font-size: 28px; font-weight: 700; }
.walkin-fit { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--ok-soft); color: var(--primary); font-weight: 600; }
.walkin-fit--none { background: var(--out-bg); color: var(--out-fg); }
.finish-btn--warm { background: var(--warm); }
.walkin-form .finish-btn { flex: none; }
.form-submit { align-self: flex-start; min-width: 200px; }
.section-title { font-size: 18px; margin: 20px 0 10px; }
.chip--pending { background: var(--warn-bg); color: var(--warn-fg); }
.chip--approved { background: var(--ok-soft); color: var(--primary); }
.chip--rejected { background: var(--out-bg); color: var(--out-fg); }
.answer {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 30px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.answer h2 { justify-content: center; font-size: 26px; }
.answer__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--warn-bg); color: var(--warn-fg); }
.answer--pending .answer__icon .icon { animation: answer-wait 2.4s linear infinite; }
.answer--approved { border-color: #BFD8CB; }
.answer--approved .answer__icon { background: var(--primary); color: #fff; }
.answer--rejected { border-color: #F2B8B2; }
.answer--rejected .answer__icon { background: var(--out-bg); color: var(--out-fg); }
.answer__guest { margin: 0; font-size: 22px; font-weight: 600; }
.answer__actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; }
.answer__actions .finish-btn { flex: none; width: 100%; max-width: 480px; }
@keyframes answer-wait { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .answer--pending .answer__icon .icon { animation: none; } }

/* ---------- A manager's price approvals ---------- */
.approvals {
  margin-bottom: 18px; padding: 16px; border-radius: var(--radius);
  background: var(--warm-soft); border: 2px solid #EBC3A6;
}
.approvals__title { font-size: 20px; color: var(--warm); margin-bottom: 12px; }
.approvals__list { display: grid; gap: 10px; }
.approval {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface); border-radius: 16px;
}
.approval__text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.approval__text strong { color: var(--ink); font-size: 20px; }
.approval__note { color: var(--warn-fg); }
.approval__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.approval__actions .inline-form { flex: 0 1 auto; }
.approval__actions .field__money input { min-height: 52px; max-width: 130px; padding: 0 12px; border: 2px solid var(--border); border-radius: 12px; font-size: 18px; }
.btn--danger { color: var(--out-fg); }

/* ---------- Housekeeping ---------- */
.progress { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 18px; }
.progress__bar { display: block; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.hk-rooms { display: flex; flex-direction: column; gap: 10px; }
.hk-list { display: grid; gap: 10px; }
.hk-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.hk-card--done { background: var(--ok-soft); border-color: #BFD8CB; }
.hk-card__room {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 68px; min-height: 52px; padding: 4px 6px; border-radius: 14px; background: var(--bg);
}
.hk-card__room strong { font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
/* What the room is, one small colour for each group. */
.hk-tag--turnover { background: var(--turnover-bg); color: var(--turnover-fg); }
.hk-tag--arriving { background: var(--warn-bg); color: var(--warn-fg); }
.hk-tag--leaving { background: var(--leaving-bg); color: var(--leaving-fg); }
.hk-tag--tidy { background: var(--ok-soft); color: var(--primary); }
/* A manager's handle: only here does a finger drag instead of scrolling. */
.hk-card__grip {
  flex: none; display: grid; place-items: center; width: 44px; min-height: 52px; margin-inline: -8px -6px; padding: 0;
  border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: grab; touch-action: none;
}
.hk-card__grip:hover { background: var(--line); }
.hk-card__grip:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.hk-card.is-dragging { position: relative; z-index: 3; border-color: var(--primary); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.hk-card.is-dragging .hk-card__grip { cursor: grabbing; }
.hk-auto { align-self: flex-start; min-height: 44px; margin-block: -10px; padding: 4px; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
.hk-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.hk-card__arriving { color: var(--warn-fg); font-weight: 600; }
.hk-card__action { flex: 1 1 100%; display: flex; }
.hk-card__action .btn { flex: 1; }
/* One on every card, so it doesn't shout: green outline, not a wall of green. */
.hk-card__done { min-height: 48px; padding: 0 18px; font-size: 17px; background: var(--surface); color: var(--primary); border: 2px solid var(--primary); }

/* ---------- Kitchen ---------- */
.kitchen-days { display: grid; gap: 14px; }
.kitchen-day { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kitchen-day--today { border: 2px solid var(--primary); }
.kitchen-day--pick { cursor: pointer; }
.kitchen-day--pick.kitchen-day--today { cursor: default; }
.meals-detail { margin-top: 6px; }
.meals-detail__lines { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.meals-detail__lines strong { color: var(--ink); font-weight: 600; }
.kitchen-day h2 { align-items: baseline; }
.meals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 8px; }
.meal { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 16px; background: var(--bg); text-align: center; }
.meal__title { font-weight: 600; }
.meal__total { font-size: 54px; line-height: 1.05; color: var(--primary); }
.meal__split { font-size: 14px; color: var(--muted); }

/* ---------- Forms (bookings, management) ---------- */
.field select, .field textarea, .field--inline input, .filters input[type="date"] {
  min-height: 52px; padding: 0 12px; width: 100%;
  border: 2px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 18px;
}
.field textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.4; }
.field select:focus, .field textarea:focus { outline: 0; border-color: var(--primary); }
.field__hint { font-size: 14px; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field--inline { flex: 1 1 150px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters .search-box { flex: 1 1 100%; }
.filters__date { flex: 1 1 140px; min-width: 0; }
.filters__owing { align-self: flex-end; }
.filters__owing span { min-height: 52px; white-space: nowrap; }
.filters .field--inline select { min-width: 0; }
.guest-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.guest-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guest-row input {
  flex: 1 1 220px; min-height: 56px; padding: 0 14px;
  border: 2px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 19px;
}
.guest-row input:focus { outline: 0; border-color: var(--primary); }
.guest-row input.is-known { border-color: var(--primary); background: var(--ok-soft); }
.suggestions { flex-basis: 100%; display: grid; gap: 6px; }
.suggestions:empty { display: none; }
.suggestion {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; text-align: start;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 500;
}
.suggestion small { color: var(--muted); margin-inline-start: auto; font-weight: 400; }
.request-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.request-chip, .day-chip { position: relative; }
.request-chip input, .day-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.request-chip span, .day-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 500;
}
.request-chip input:checked + span, .day-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.request-chip input:focus-visible + span, .day-chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip span { min-width: 52px; justify-content: center; padding: 0 10px; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }
.check--big { font-size: 18px; }
.checks { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- Guest card: status, history ---------- */
.screen-head__title > .confirm-box { margin-top: 10px; }
.confirm-box {
  flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 14px; background: var(--out-bg); color: var(--out-fg); font-weight: 600;
}
.confirm-box span { flex: 1 1 200px; }
.confirm-box { position: relative; padding-inline-end: 60px; }
.confirm-box .x-btn { top: 50%; transform: translateY(-50%); inset-inline-end: 8px; width: 40px; height: 40px; background: rgba(155, 28, 20, .12); color: var(--out-fg); }
.btn--danger-solid { background: var(--out-fg); color: #fff; }
.chip--draft { background: var(--warn-bg); color: var(--warn-fg); }
.chip--confirmed { background: var(--ok-soft); color: var(--primary); }
.chip--checked_in { background: var(--primary); color: #fff; }
.chip--urgent { background: var(--out-bg); color: var(--out-fg); font-weight: 600; }
.chip--vip { display: inline-flex; align-items: center; gap: 4px; background: var(--warm-soft); color: var(--warm); }
.guest-phone { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.guest-phone a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--primary); text-decoration: none; }
.chip--checked_out { background: var(--leaving-bg); color: var(--leaving-fg); }
.chip--cancelled { background: var(--out-bg); color: var(--out-fg); }
.history { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; }
.history summary { min-height: 52px; display: flex; align-items: center; font-weight: 600; cursor: pointer; color: var(--muted); }
.history h3 { font-size: 16px; margin: 12px 0 6px; }
.history ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.history li small { display: block; color: var(--muted); }
.history li.is-cancelled { color: var(--muted); }
.history li.is-cancelled > span { text-decoration: line-through; }
.history li .confirm-box { margin-top: 8px; }
.link-btn--danger { color: var(--out-fg); font-size: 15px; font-weight: 500; padding: 4px 0; margin-inline-start: 10px; }
.history .empty { padding: 0; list-style: none; }

/* ---------- Rooms on a date ---------- */
.date-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.date-bar input {
  min-height: 52px; padding: 0 12px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 18px;
}
.date-bar .btn { min-width: 52px; padding: 0 14px; }
.sheet-subtitle { font-size: 18px; margin: 6px 0 0; }
.guest-card--pick { width: 100%; text-align: start; min-height: 72px; cursor: pointer; }

/* ---------- Management ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a {
  flex: none; min-height: 48px; display: grid; place-items: center; padding: 0 18px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--muted);
}
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.manage-list { display: grid; gap: 10px; }
.chat-row { width: 100%; text-align: start; cursor: pointer; font: inherit; }
.chat-row.is-open { border-color: var(--primary); }
.chat-thread .chat-lines { display: grid; gap: 8px; }
.chat-line { max-width: min(560px, 88%); padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); justify-self: start; }
.chat-line--out { justify-self: end; background: var(--ok-soft); }
.chat-line small { display: block; color: var(--muted); font-size: 13px; }
.chat-line p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.manage-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
/* A column that wraps would size its rows as if they wrapped too (blank space above the fields). */
.manage-card--edit { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; padding: 18px; }
.manage-card--edit h2 { font-size: 20px; }
.manage-card.is-inactive { opacity: .6; }
.manage-card__main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.manage-card__main strong { color: var(--ink); font-size: 20px; overflow-wrap: anywhere; }
.manage-card__tags { font-size: 14px; }
.manage-card__phone { text-align: start; }
.manage-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.manage-card__controls { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.manage-card__controls .field--inline { flex: 0 1 180px; }
.manage-card--edit > .manage-card__controls { flex: none; }
.file-btn { cursor: pointer; align-self: flex-start; }
.rooms-table tr.is-bad td { color: var(--out-fg); background: var(--out-bg); }
.import-result { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); border: 1px solid var(--line); }
.import-result p { margin: 0; }
.import-result p + p { margin-top: 6px; }
/* Management → Housekeeping: the groups in order, dragged by the manager. */
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 64px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  cursor: grab; touch-action: none; user-select: none;
}
.order-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.order-item.is-dragging { cursor: grabbing; border-color: var(--primary); box-shadow: var(--shadow); background: var(--ok-soft); }
.order-item__number {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); font-weight: 700;
}
.order-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.order-item__text strong { font-size: 17px; }
.order-item__text span { font-size: 14px; color: var(--muted); }
.order-item__grip { flex: none; color: var(--muted); display: grid; }
/* Meals: the day at reception, a walk-in diner, the guest card, prices. */
.meals--three { grid-template-columns: repeat(3, 1fr); }
/* A discount at the desk: one light row under the price. */
.discount { display: flex; flex-direction: column; gap: 6px; }
.discount__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.discount__value { flex: 0 1 110px; }
.discount .segmented { padding: 3px; border-radius: 12px; }
.discount .segmented button { min-height: 44px; padding: 0 12px; font-size: 15px; border-radius: 9px; }
.discount .x-btn { width: 44px; height: 44px; margin-inline-start: auto; }
.discount .meal-line { margin: 0; }
.discount .meal-line:empty { display: none; }
/* Meals on the guest card: the package, read as rows; two small ways to add. */
.guest-meals { display: flex; flex-direction: column; gap: 10px; }
.meal-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.meal-plan li { display: flex; justify-content: space-between; gap: 12px; min-height: 28px; align-items: baseline; }
.meal-plan__meal { font-weight: 600; }
.meal-plan__who { color: var(--muted); text-align: end; }
.meal-plan__title { margin: 0; font-size: 14px; color: var(--muted); }
.meal-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.meal-entry { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.meal-entry .icon { color: var(--primary); }
.meal-links { display: flex; flex-wrap: wrap; gap: 0 14px; }
.meal-links .link-btn { min-height: 44px; padding: 4px 0; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
.meal-why { margin: 0; font-size: 15px; font-weight: 500; color: var(--warn-fg); }
.meal-why[hidden] { display: none; }
.day-pick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.day-pick::-webkit-scrollbar { display: none; }
.day-pick button { flex: none; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.day-pick button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.meal-form .segmented.segmented--full { display: flex; align-self: stretch; }
.meal-form .segmented--full button { flex: 1 1 0; min-width: 0; padding: 0 6px; }
.meal-steppers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.meal-stepper { display: flex; flex-direction: column; gap: 2px; }
.meal-stepper__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.meal-stepper__controls { display: flex; align-items: center; justify-content: space-between; max-width: 150px; }
.meal-stepper__controls .counter__btn { width: 44px; height: 44px; border-radius: 12px; }
.meal-stepper__controls output { min-width: 28px; text-align: center; font-size: 20px; font-weight: 700; }
.meal-add { align-self: flex-start; }
.meal-form { display: flex; flex-direction: column; gap: 12px; }
.meal-form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meal-form .segmented { align-self: flex-start; }
.meal-counts { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.meal-counts .field { flex: 0 1 160px; }
.meal-row { flex-wrap: wrap; }
.meal-row .chip--warn { background: var(--warn-bg); color: var(--warn-fg); }
.meal-change { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.meal-change > span:first-child { flex: 1 1 0; min-width: 0; }
.meal-change .chip { flex: none; }
.meal-change .x-btn { flex: none; width: 40px; height: 40px; }
.meal-approval { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-block: 8px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); }
.meal-approval > span:first-child { flex: 1 1 200px; font-weight: 600; }
.meal-approval__actions { display: flex; gap: 8px; }
.meal-approval__over { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; }
.manage-card__sub { margin: 6px 0 0; font-size: 17px; }
/* A setting set once in a while, inside a form: one line that opens (the same
   look as .more-row), and what is typed in it stays when it folds. */
.form-fold { border: 1px solid var(--line); border-radius: 12px; }
.form-fold > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; cursor: pointer; list-style: none; }
.form-fold > summary::-webkit-details-marker { display: none; }
.form-fold[open] .more-row__chevron { transform: rotate(180deg); }
.form-fold__body { display: grid; gap: 12px; padding: 0 14px 14px; }
.form-fold .shabbat-list { grid-template-columns: minmax(0, 8.5em) minmax(120px, 150px); justify-content: start; align-items: center; }
.shabbat-list input[type="time"] { width: 100%; min-height: 48px; padding: 0 12px; border: 2px solid var(--border); border-radius: 12px; font: inherit; background: var(--surface); }
.meal-prices { display: grid; grid-template-columns: auto minmax(0, 160px) minmax(0, 160px); gap: 8px 12px; align-items: center; justify-content: start; }
.meal-prices__name { font-weight: 600; }
.chip--special { background: var(--primary); color: #fff; }
/* Under the adults and children in a day's cube: one line, also on a phone. */
.meal .chip--special { margin-top: 4px; padding-inline: 8px; font-size: 13px; white-space: nowrap; }
.meal-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.meal-line { font-weight: 600; color: var(--ink); }
.meal-form__head h3 { margin: 0; font-size: 17px; }
.meal-form__head .x-btn { position: static; flex: none; }
.plan-rows { display: grid; gap: 10px; }
/* One meal of the plan, one line, also on a phone. */
.plan-row { display: grid; grid-template-columns: 96px minmax(0, 110px) minmax(0, 110px); align-items: end; gap: 8px; }
.plan-row .request-chip span { display: flex; justify-content: center; padding: 0 8px; min-height: 48px; }
.plan-row .field input { padding-inline: 10px; }
.holiday-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.holiday-date { display: inline-flex; align-items: center; gap: 6px; padding-block: 2px; padding-inline: 12px 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; }
.holiday-date .x-btn { width: 32px; height: 32px; }
.holiday-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.holiday-add input { min-height: 44px; padding: 0 12px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 16px; }
@media (max-width: 480px) { .meals--three .meal__total { font-size: 40px; } }
.list-preview {
  margin: 0; padding: 14px; white-space: pre-wrap; font-family: inherit; font-size: 15px;
  background: var(--bg); border-radius: 12px; border: 1px solid var(--line);
}

/* ---------- Room card ---------- */
.date-bar__field { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.room-card__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.room-card__beds { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.room-card__features { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.room-card__section h2 { font-size: 18px; margin-bottom: 10px; }
.room-card__subtitle { font-size: 16px; color: var(--muted); margin: 14px 0 8px; }
.room-card__line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 17px; }
.guest-card__log { color: var(--muted); font-size: 14px; }
.guest-card.is-cancelled { opacity: .6; }
.guest-card.is-cancelled .guest-card__name { text-decoration: line-through; }
.log-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
}
.log-row strong { color: var(--ink); min-width: 48px; }

/* ---------- Rooms: map and table ---------- */
.segmented { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--line); }
.segmented a { min-height: 44px; display: grid; place-items: center; padding: 0 20px; border-radius: 11px; font-weight: 600; color: var(--muted); }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 11px; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented button:disabled { opacity: .4; cursor: not-allowed; }
.inline-form .field__hint { margin: 0; flex: 1 1 100%; }
/* The hotel's map: colours say the same as the board's tiles. */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr)); grid-auto-flow: dense; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 8px; min-width: 0; }
.plan--open { grid-column: 1 / -1; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.plan__floor { margin: 0; font-size: 17px; font-weight: 700; }
.plan__expand {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-block: -10px; margin-inline-end: -10px;
  padding: 0; border: 0; border-radius: 12px; background: none; color: var(--muted);
}
.plan__expand:hover { color: var(--ink); }
.plan__off { margin: 18px 0 8px; }
.plan__note { margin: 0 0 12px; color: var(--muted); }
.plan__scroll { overflow-x: auto; }
.plan__drawing { display: block; width: 100%; height: auto; direction: ltr; }
.plan-outline { fill: var(--line); stroke: var(--muted); stroke-width: 11; stroke-linejoin: miter; }
.plan-balcony { fill: none; stroke: var(--border); stroke-width: 3; }
.plan-stairs line { stroke: var(--muted); stroke-width: 2; opacity: .55; }
.plan-shaft { fill: var(--surface); stroke: var(--muted); stroke-width: 3; opacity: .7; }
.plan-door { fill: var(--surface); stroke: var(--muted); stroke-width: 3; pointer-events: none; }
.plan-room polygon { stroke: var(--muted); stroke-width: 6; }
.plan-room__bath { fill: rgba(40, 40, 40, .1); stroke: var(--muted); stroke-width: 3; pointer-events: none; }
.plan-room text { fill: currentColor; text-anchor: middle; pointer-events: none; unicode-bidi: plaintext; }
.plan-room .icon { pointer-events: none; }
.plan-room__number { font-size: 58px; font-weight: 700; }
.plan-room__short { font-size: 38px; }
.plan-room__short--phone { display: none; }
.plan-room__beds { font-size: 40px; font-weight: 600; }
a.plan-room { cursor: pointer; outline: none; }
a.plan-room:hover polygon { filter: brightness(.94); }
a.plan-room:focus-visible polygon { stroke: var(--ink); stroke-width: 12; }
.plan-room--none polygon { fill: var(--surface); opacity: .55; }
.plan-room--none { color: var(--muted); }
.plan-room--none text { opacity: .7; }
.plan-room--busy polygon { fill: var(--primary); }
.plan-room--busy { color: #fff; }
.plan-room--arriving polygon { fill: var(--warn-bg); }
.plan-room--arriving { color: var(--warn-fg); }
.plan-room--leaving polygon { fill: var(--leaving-bg); }
.plan-room--leaving { color: var(--leaving-fg); }
.plan-room--free polygon { fill: var(--surface); }
.plan-room--free { color: var(--ink); }
.plan-room--out polygon { fill: var(--surface); }
.plan-room--out { color: var(--ink); }
.plan-room__fault { color: var(--out-fg); }
.plan-room--locked polygon { fill: var(--warm-soft); stroke-dasharray: 18 12; }
.plan-room--locked { color: var(--warm); }
.floors { display: grid; gap: 12px; }
.floor { display: flex; gap: 8px; align-items: stretch; }
.floor__label {
  flex: none; width: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--line); color: var(--muted); font-size: 12px;
}
.floor__label strong { font-size: 22px; color: var(--ink); }
.floor__rooms { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.room-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px;
  min-height: 78px; padding: 8px 8px; text-align: start;
  border-radius: 14px; border: 2px solid transparent;
}
.room-tile strong { font-size: 20px; overflow-wrap: anywhere; line-height: 1.1; }
.room-tile span { font-size: 13px; white-space: nowrap; }
[dir="rtl"] .room-tile span { text-align: right; }
[dir="ltr"] .room-tile span { text-align: left; }
.room-tile .room-tile__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2px 6px; width: 100%; }
/* A label loses whole words, never half of one: the words are laid out in a row
   one line high, and one that doesn't fit wraps to the line nobody sees. */
.room-tile .room-tile__name { display: flex; flex-wrap: wrap; gap: 0 .28em; flex: 0 1 auto; max-width: 100%; height: 1.4em; line-height: 1.4; overflow: hidden; }
.room-tile__name::before { content: ''; width: 0; height: 1.4em; margin-inline-end: -.28em; }
/* Beds (Moriya, 29.10.2026): small and quiet, in the bottom inline-end corner — bottom left in Hebrew. */
.room-tile .room-tile__beds { flex: none; display: inline-flex; align-items: center; gap: 2px; margin-inline-start: auto; font-size: 12px; font-weight: 500; opacity: .6; }
.room-tile--busy { background: var(--primary); color: #fff; }
.room-tile--arriving { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--amber); }
.room-tile--leaving { background: var(--leaving-bg); color: var(--leaving-fg); border-color: #B9C9DE; }
.room-tile--free { background: var(--surface); color: var(--ink); border-color: var(--border); }
.room-tile--out { background: var(--surface); color: var(--ink); border-color: var(--border); }
.room-tile__fault { display: inline-flex; vertical-align: middle; margin-inline-start: 6px; color: var(--out-fg); }
.legend__fault { display: inline-flex; vertical-align: middle; margin-inline-end: 4px; color: var(--out-fg); }
.room-tile--locked { background: var(--warm-soft); color: var(--warm); border-color: #E9C9AF; border-style: dashed; }
.chip--locked { background: var(--warm-soft); color: var(--warm); }
.lock-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.lock-form .field--wide { grid-column: 1 / -1; }
.lock-rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 2px solid transparent; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rooms-table { width: 100%; border-collapse: collapse; }
.rooms-table th, .rooms-table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rooms-table th { font-size: 14px; color: var(--muted); font-weight: 500; background: #FBFAF6; }
.rooms-table tr:last-child td { border-bottom: 0; }

/* Here it's the dates that stay on screen while the rooms scroll under them, not the heading. */
.rooms-screen .screen-head { position: static; align-items: center; margin-bottom: 0; }
.rooms-screen .date-bar { position: sticky; top: var(--topbar-height, 76px); z-index: 4; margin-bottom: 6px; padding: 8px 0; background: var(--bg); }

/* A phone (Moriya, 5.11.2026): the heading and its controls in one line, the two
   dates in one line, and as much of the map as the screen holds. */
@media (max-width: 699px) {
  .rooms-screen { padding-top: 10px; }
  .rooms-screen .screen-head { flex-wrap: nowrap; gap: 8px; padding-block: 0 2px; }
  .rooms-screen .screen-head > h1 { font-size: 18px; line-height: 1.15; }
  /* On another day the dates below already say which: the words give way to the way back. */
  .rooms-screen--other-day .screen-head > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rooms-screen .rooms-today { flex: none; min-height: 44px; padding: 0 12px; font-size: 15px; }
  .rooms-screen .back-btn { flex: none; }
  .rooms-screen .segmented { flex: none; margin-inline-start: auto; padding: 2px; }
  .rooms-screen .segmented a { min-width: 44px; padding: 0 7px; font-size: 14px; }
  .rooms-screen .date-bar { flex-wrap: nowrap; gap: 4px; margin-bottom: 4px; padding: 6px 0; }
  .rooms-screen .date-bar .btn { flex: none; min-width: 44px; min-height: 44px; padding: 0; }
  .rooms-screen .date-bar__field {
    position: relative; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: stretch; gap: 0; min-height: 44px; padding: 2px 6px;
    border: 2px solid var(--border); border-radius: 12px; background: var(--surface);
  }
  .rooms-screen .date-bar__field > span { font-size: 11px; font-weight: 500; line-height: 1.2; }
  .rooms-screen .date-bar input { width: 100%; min-width: 0; min-height: 0; height: 20px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 16px; font-weight: 500; line-height: 20px; text-align: start; }
  /* The whole cell opens the calendar, and its little icon doesn't take a date's width. */
  .rooms-screen .date-bar input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; }
  .rooms-screen .date-bar input::-webkit-date-and-time-value { text-align: start; min-height: 0; margin: 0; width: 100%; }
  .rooms-screen .legend { gap: 4px 12px; margin-top: 12px; font-size: 13px; }
}
@media (max-width: 369px) { .rooms-screen .date-bar input { font-size: 14px; } }

/* The whole floor inside the card. Number and colour at any size; the letters
   grow against the room, so the label holds fewer of them (PLAN_LABEL_CHARS_PHONE). */
@media (max-width: 559px) {
  .plans { gap: 8px; }
  .plan { position: relative; padding: 4px; }
  /* The floor's name and its expand icon in the drawing's empty corner, not above it. */
  .plan:not(.plan--open) .plan__head { position: absolute; top: 4px; left: 4px; z-index: 1; width: 46%; margin: 0; padding-inline-start: 6px; }
  .plan--open .plan__head { padding: 8px 8px 4px; margin-bottom: 0; }
  .plan__floor { font-size: 15px; }
  .plan .plan__expand { margin: 0; }
  .plan:not(.plan--open) .plan__scroll { direction: ltr; overflow: hidden; }
  /* Without the side balconies: 1995 wide on the drawing becomes 1783. */
  .plan:not(.plan--open) .plan__drawing { width: 111.9%; max-width: none; margin-left: -5.9%; }
  .plan:not(.plan--open) .plan-balcony--side { display: none; }
  .plan:not(.plan--open) .plan-room__number { font-size: 80px; }
  .plan:not(.plan--open) .plan-room__short { display: none; }
  .plan:not(.plan--open) .plan-room__short--phone { display: inline; font-size: 52px; }
  .plan:not(.plan--open) .plan-room__beds { font-size: 50px; }
  .plan--open .plan__drawing { min-width: 860px; }
  /* The table fits too: the name may take two lines, nothing scrolls sideways. */
  .rooms-screen .rooms-table th, .rooms-screen .rooms-table td { padding: 8px 6px; font-size: 14px; }
  .rooms-screen .rooms-table th:first-child, .rooms-screen .rooms-table td:first-child { padding-inline-start: 12px; }
  .rooms-screen .rooms-table td:nth-child(3) { white-space: normal; }
  .rooms-screen .rooms-table .chip { padding: 2px 8px; font-size: 12px; }
  .rooms-screen .rooms-table td a { display: inline-grid; place-items: center; min-height: 44px; }
  .room-tile { padding: 8px 6px; }
  .room-tile span { font-size: 12px; }
}
/* Between a phone and two floors side by side a floor already has the full width, so enlarging means larger. */
@media (min-width: 560px) and (max-width: 1141px) { .plan--open .plan__drawing { min-width: 150%; } }
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip--busy { background: var(--ok-soft); color: var(--primary); }
.chip--arriving { background: var(--warn-bg); color: var(--warn-fg); }
.chip--leaving { background: var(--leaving-bg); color: var(--leaving-fg); }
.chip--free { background: var(--bg); color: var(--muted); }
.chip--feature { display: inline-flex; align-items: center; gap: 5px; }
.chip--feature .icon { flex: none; }
.room-pick__features { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.room-pick__features .chip { font-size: 13px; font-weight: 500; padding: 0; background: none; gap: 3px; }
.room-pick__features { column-gap: 8px; }
.chip--out { background: var(--out-bg); color: var(--out-fg); }

/* ---------- Sheets, menu, toast ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(29, 36, 32, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  position: relative; width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 16px 28px;
}
.sheet-backdrop--top { align-items: flex-start; }
.sheet--top { border-radius: 0 0 24px 24px; max-height: 94vh; max-height: 94dvh; }
/* A question that has to be answered before going on. */
.ask-backdrop { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(29, 36, 32, .45); }
.ask { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; padding: 22px 18px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.ask p { margin: 0; padding-inline-end: 44px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.ask .x-btn { top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; }
/* Closing is always an X, never a "close" button (Moriya, 29.10.2026, a fixed
   rule): in the inline-end corner — left in Hebrew, right in other languages. */
.x-btn {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink);
}
.x-btn:hover { background: var(--border); }
.manage-card--edit, .list-preview-wrap { position: relative; }
.manage-card--edit > h2 { padding-inline-end: 56px; }
.list-preview-wrap .x-btn { top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; }
.list-preview-wrap .list-preview { padding-inline-end: 56px; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; padding-inline-end: 52px; }
.sheet-body .room-pick-grid, .sheet-body .sheet-actions { margin-inline-end: -52px; }
.sheet-guest { margin: 0; font-size: 19px; font-weight: 500; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.room-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.room-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 92px; padding: 12px 14px; text-align: start;
  background: var(--surface); border: 2px solid var(--border); border-radius: 16px;
}
.room-pick strong { font-size: 26px; overflow-wrap: anywhere; line-height: 1.15; }
.room-pick span { color: var(--muted); font-size: 14px; }
.room-pick small { color: var(--primary); font-weight: 600; }
.room-pick small.is-warn { color: var(--warn-fg); }
/* The row of feature chips over every room picker (task 18): one line that
   scrolls on its own on a phone, the page never does. */
.room-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.room-filter::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .room-filter { flex-wrap: wrap; overflow-x: visible; } }
.room-filter button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.room-filter button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.room-filter button.is-none { color: var(--muted); border-style: dashed; }
/* Clears the row: at its end, and in reach however far the row has scrolled. */
.room-filter .room-filter__clear { position: sticky; inset-inline-end: 0; z-index: 1; justify-content: center; width: 44px; padding: 0; background: var(--line); border-color: var(--line); color: var(--ink); box-shadow: 0 0 0 4px var(--bg); }
.step-form .room-filter .room-filter__clear { box-shadow: 0 0 0 4px var(--surface); }
.room-filter button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sheet-body [data-slot="filter"] { margin-inline-end: -52px; min-width: 0; }
.room-filter-none { margin: 0; color: var(--muted); }
/* The flight, the landing and the expected arrival: one row, and on a phone the
   number above the two times, so nothing is cut off. */
.flight { display: flex; flex-direction: column; gap: 6px; }
.flight-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .flight-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flight-row .field:first-child { grid-column: 1 / -1; } }
.flight-row .field { min-width: 0; }
.flight__why { margin: 0; font-size: 14px; color: var(--warn-fg); font-weight: 500; }
.flight__why[hidden] { display: none; }
.flight__saved { color: var(--primary); font-weight: 600; font-size: 14px; }
.flight__saved[hidden] { display: none; }
.flight-row input { width: 100%; min-width: 0; padding-inline: 8px; }
.flight__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
.flight__hint[hidden] { display: none; }
.flight__hint .link-btn { min-height: 44px; padding: 4px; font-size: 14px; }
.flight__drive { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.flight__drive input { width: 90px; }
.early-switch { display: flex; flex-direction: column; gap: 4px; }
.early-switch .field__hint { margin: 0; }
/* The price list by date (task 22). */
.price-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.price-floors { display: flex; flex-direction: column; gap: 10px; }
.price-floor { display: flex; flex-direction: column; gap: 6px; }
.price-floor__rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.price-floor__rooms .request-chip span { min-width: 56px; justify-content: center; padding: 0 10px; }
.price-all { align-self: flex-start; }
.price-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-block: 6px; border-top: 1px solid var(--line); }
.price-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.price-row__main small { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.price-row .x-btn { position: static; flex: none; width: 44px; height: 44px; }
.room-pick--match { border-color: var(--primary); background: var(--ok-soft); }
.room-pick--unavailable { border-style: dashed; background: var(--bg); opacity: 0.7; cursor: not-allowed; }
.room-pick--unavailable small { color: var(--muted); }
.receipt-name { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 8px; }
.receipt-name .field { flex: 1 1 200px; }
.confirm-panel { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.confirm-panel__contact, .field-row--contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.confirm-panel__text { margin: 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 15px; line-height: 1.55; background: var(--bg); border-radius: 12px; }
.confirm-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.confirm-panel .btn { min-height: 42px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.confirm-panel .screen-sub, .confirm-panel .field__hint { margin: 0; }
.print-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.print-panel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.print-panel__name { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 200px; font-weight: 600; }
.print-panel .btn { min-height: 42px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
/* The print station, also on a tablet beside the printer (task 58): big
   targets everywhere on it. Its gear hides the one-time setup: tiles to tick. */
.station-gear {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--muted);
}
.station-gear:hover, .station-gear[aria-expanded="true"] { background: var(--line); color: var(--ink); }
.station [data-slot="setup"]:not(:empty) { margin-bottom: 16px; }
.station .note { margin-top: 0; }
.station .print-job { align-items: center; }
.station .print-job__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-inline-start: auto; }
.station .print-job .btn, .station .print-jobs .btn--step { min-height: 56px; }
.station .print-job .btn { padding-inline: 14px; font-size: 16px; }
.station .print-job .link-btn { min-height: 48px; padding-inline: 12px; font-size: 16px; font-weight: 600; color: var(--muted); }
.station-auto { min-height: 56px; }
.station-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.station-kind { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 18px; font-weight: 600; cursor: pointer; }
.station-kind input { flex: none; width: 26px; height: 26px; accent-color: var(--primary); }
.station-kind:has(input:checked) { border-color: var(--primary); background: var(--ok-soft); }
.screen-address { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; text-align: start; }
.hotel-photo { display: block; width: 100%; max-width: 480px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.notice-list { display: grid; gap: 8px; }
.notice-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.notice-row p { margin: 0; white-space: pre-line; font-weight: 500; }
.notice-row small { color: var(--muted); grid-column: 1; }
.notice-row .btn { grid-column: 2; grid-row: 1 / span 2; }
.notice-form textarea { min-height: 72px; padding: 10px 14px; border: 2px solid var(--border); border-radius: 14px; font: inherit; font-size: 17px; width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }
.prayer-days { display: grid; gap: 12px; }
.prayer-day { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; display: grid; gap: 8px; margin: 0; }
.prayer-day legend { font-weight: 700; padding: 0 6px; }
.prayer-day > .btn { justify-self: start; }
.prayer-rows { display: grid; gap: 8px; }
.prayer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prayer-row input, .prayer-row select { min-height: 48px; padding: 0 12px; border: 2px solid var(--border); border-radius: 12px; font: inherit; background: var(--surface); }
.prayer-row input[type="text"] { flex: 1 1 140px; min-width: 0; }
.prayer-row input[type="number"] { width: 90px; }
.x-btn.x-btn--inline { position: static; }
.print-jobs { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.print-jobs .btn--step { white-space: normal; height: auto; padding-block: 10px; }
.cards-summary { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.cards-section { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.print-job { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.print-job span { color: var(--muted); }
.print-job--failed { border-color: var(--out-fg); }
.print-job--pending, .print-job--processing { border-color: var(--amber); }
.room-pick--before { border-color: var(--amber); }
.screen-sub.returning { display: flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; }
.returning-box p { margin: 0 0 4px; }
.returning-box .btn { margin-top: 6px; }
.room-pick--part small { color: var(--warn-fg); }
.room-pick:disabled { opacity: .5; cursor: not-allowed; }
.partly { display: flex; flex-direction: column; gap: 8px; margin-inline-end: -52px; border-top: 1px solid var(--line); }
.partly__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 8px 0; background: none; border: 0; font: inherit; font-weight: 600; color: inherit; text-align: start; cursor: pointer; }
.partly__head[aria-expanded="true"] .more-row__chevron { transform: rotate(180deg); }
.partly .screen-sub { margin: 0; }
.partly .room-pick-grid { margin-inline-end: 0; }
/* An on/off switch: the checkbox stays in the page for keyboard and screen readers. */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; align-self: flex-start; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--border); transition: background .15s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: inset-inline-start .15s; }
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { inset-inline-start: 21px; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--amber); outline-offset: 2px; }
.sheet.menu { padding-top: 72px; }
.menu__links { display: grid; gap: 8px; }
/* One white row per destination, the pin inside it at the inline-end edge. */
.menu__item {
  display: flex; align-items: center; min-height: 60px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.menu__item a { flex: 1; align-self: stretch; }
/* "Make this my home screen" (Moriya, 29.10.2026): a house in the row's
   inline-end corner, shown on hover or once chosen; faintly always on touch. */
.pin-btn {
  flex: none; width: 44px; height: 44px; margin-inline-end: 8px; display: grid; place-items: center;
  border: 0; border-radius: 14px; background: transparent; color: var(--muted); opacity: 0;
  transition: opacity .15s;
}
.menu__links .pin-btn .icon { color: inherit; }
.menu__item:hover .pin-btn, .pin-btn:focus-visible { opacity: 1; }
.pin-btn[aria-pressed="true"] { opacity: 1; color: var(--primary); background: var(--ok-soft); }
@media (hover: none) { .pin-btn { opacity: .45; } }
.menu__links a {
  display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 18px;
  border-radius: 16px; font-size: 19px; font-weight: 500;
}
.menu__links .icon { color: var(--primary); }
.menu__lang { display: flex; gap: 8px; margin-top: 16px; }
.menu__lang button {
  flex: 1; min-height: 52px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 500;
}
.menu__lang button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu__notify { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 12px; }
.menu__notify small { color: var(--muted); }
.menu__foot { display: flex; gap: 10px; margin-top: 16px; }
.menu__foot .btn { flex: 1; }
.toast {
  position: fixed; z-index: 30; bottom: 20px; left: 16px; right: 16px; margin: 0 auto; width: fit-content;
  padding: 14px 22px; border-radius: 16px;
  background: var(--ink); color: #fff; font-size: 18px; font-weight: 500; box-shadow: var(--shadow);
}
.toast--error { background: var(--out-fg); }

/* ---------- Sign-in ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login__card {
  width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 32px 24px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); text-align: center;
}
.login__card [data-slot="action"] { width: 100%; }
.login .menu__lang { width: 100%; }
/* The hotel's photo behind it, when a manager uploaded one (task 122): the whole
   page, the card resting low on it so the building shows above. Only this class
   changes anything; without a photo it isn't set. */
.login--photo { position: relative; isolation: isolate; overflow: hidden; }
.login__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: login-photo .6s ease-out; }
.login--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(29, 36, 32, .45), rgba(29, 36, 32, .08) 55%); }
.login--photo { place-items: end center; padding-bottom: max(20px, env(safe-area-inset-bottom), 7vh); }
.login--photo .login__card { background: rgba(255, 255, 255, .94); box-shadow: 0 8px 40px rgba(29, 36, 32, .22); }
@keyframes login-photo { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .login__photo { animation: none; } }

/* ---------- Reports (task 94): plain lines of label and number ---------- */
.report-head { display: grid; gap: 12px; }
.report-head .segmented { display: flex; width: 100%; max-width: 560px; }
.report-head .segmented button { flex: 1; min-width: 0; padding: 0 6px; font-size: 15px; }
.report-head .date-bar { margin: 0; }
.report-block { gap: 10px; }
.report-lines { display: grid; }
.report-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.report-lines > div:last-child { border-bottom: 0; }
.report-lines span { color: var(--muted); }
.report-lines strong { font-weight: 600; text-align: end; }
.report-table th, .report-table td { padding: 8px 10px; font-size: 15px; }
.report-table td { white-space: normal; }
.report-table .is-number { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-block .card-more { margin-inline: -6px; }
.report-export { align-self: stretch; }
.report-receipts { display: grid; }
.report-receipt + .report-receipt { border-top: 1px solid var(--line); }
.report-receipt__head { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 6px 0; border: 0; background: none; text-align: start; }
.report-receipt__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.report-receipt__meta { color: var(--muted); font-size: 15px; }
.report-receipt__head strong { font-weight: 600; white-space: nowrap; }
.report-receipt__form { display: grid; gap: 14px; padding: 4px 0 14px; }
.report-receipt__photo img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; background: var(--bg); }
.report-receipt__fields { display: grid; gap: 10px; align-content: start; }
.report-receipt__fields .field input, .report-receipt__fields .field select { width: 100%; }
.report-receipt__form .link-btn { min-height: 44px; }
.report-receipt__money { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
@media (min-width: 700px) { .report-receipt__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- The wine list (task 121) ---------- */
.wine-rows { display: grid; gap: 8px; }
.wine-rows:empty { display: none; }
.wine-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 44px; align-items: center; gap: 8px; }
.wine-row input { width: 100%; min-width: 0; min-height: 52px; padding: 0 12px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 18px; }
.wine-row input:focus { outline: 0; border-color: var(--primary); }
.wine-row--new { grid-template-columns: minmax(0, 1fr) 160px auto; }
/* On a phone the name has the whole line, the price and the X under it. */
@media (max-width: 559px) {
  .wine-row, .wine-row--new { grid-template-columns: minmax(0, 1fr) auto; }
  .wine-row > input { grid-column: 1 / -1; }
  .wine-row + .wine-row { padding-top: 8px; border-top: 1px solid var(--line); }
  .wine-row--new { padding-top: 8px; border-top: 1px solid var(--line); }
}
.wine-form .field select { width: 100%; }

/* Choosing a file, and beside it the template to fill in (task 96). */
.import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.import-actions .link-btn { min-height: 44px; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
/* A receipt for a payment, in the booking's record (task 107). */
.payment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 2px; }
.payment-actions .link-btn--danger { margin-inline-start: 0; }
.payment-actions__receipt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 500; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .topbar { padding: 12px 24px; }
  .screen { padding: 24px 24px 56px; }
  h1 { font-size: 30px; }
  .home-actions { grid-template-columns: 1fr 1fr; gap: 12px; }
  .big-action { min-height: 148px; padding: 22px; }
  .big-action__title { font-size: 26px; }
  .big-action__sub { font-size: 16px; }
  .home-more { grid-template-columns: repeat(4, 1fr); }
  .more-btn { flex-direction: row; min-height: 60px; font-size: 16px; }
  .search-box { flex: 0 1 420px; }
  .counters { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .filters .search-box { flex: 1 1 320px; }
  .field--wide { grid-column: 1 / -1; }
  .manage-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  .manage-list > .manage-card--edit { grid-column: 1 / -1; }
  .kitchen-days { grid-template-columns: 1fr 1fr; }
  .counter { flex-direction: column; align-items: flex-start; }
  .walkin-form { padding: 26px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
  .floor { gap: 10px; }
  .floor__label { width: 52px; }
  .floor__rooms { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
  .room-tile { padding: 10px 12px; }
  .room-tile { min-height: 92px; }
  .room-tile strong { font-size: 26px; }
  .sheet-backdrop { align-items: center; }
  .sheet { max-width: 560px; border-radius: 24px; padding: 26px 24px 28px; }
  .sheet-backdrop--top { align-items: flex-start; padding-top: 6vh; }
  .sheet--top { max-height: 88vh; }
  .menu { max-width: 420px; }
}

/* ---------- Computer ---------- */
@media (min-width: 1100px) {
  .floor__rooms { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
}
/* Reception v2 */
.guest-card__chips { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.guest-card__detail.is-due { color: var(--warn, #9a5b00); }
.hk-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* Who cleans the room (task 74): names to tap on the card itself. */
/* The names open under the room's text, not the chip: that column is wider than
   they are, so wherever the chip wrapped to they stay on a phone's screen. */
.hk-card__text { position: relative; }
.hk-who { display: inline-flex; }
.hk-who__chip { position: relative; border: 1px dashed var(--border); background: var(--surface); color: var(--muted); font-family: inherit; line-height: inherit; cursor: pointer; }
.hk-who__chip.is-set { border-style: solid; color: var(--ink); }
/* A small chip with a finger's room around it. */
.hk-who__chip::after { content: ""; position: absolute; inset: -10px -2px; }
.hk-who__chip:focus-visible, .hk-picker button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.hk-picker {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 5; display: flex; flex-direction: column; min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.hk-picker button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 16px; font-weight: 500; text-align: start; cursor: pointer; white-space: nowrap; }
.hk-picker button:hover { background: var(--bg); }
.hk-picker button[aria-pressed="true"] { background: var(--ok-soft); color: var(--primary); font-weight: 600; }
/* Whose list this phone shows. */
.hk-whose { display: flex; flex-direction: column; gap: 6px; }
.hk-whose__label { font-size: 15px; color: var(--muted); }
.hk-whose .segmented { display: flex; flex-wrap: wrap; max-width: 560px; }
.hk-whose .segmented button { flex: 1 1 0; min-height: 48px; padding: 0 10px; }
.hk-send { width: 100%; min-height: 56px; font-size: 17px; }
/* Where it fits a room is one row, so the order reads straight down. */
@media (min-width: 600px) {
  .hk-card { flex-wrap: nowrap; }
  .hk-card__action { flex: 0 0 190px; }
}
/* The buttons on the room card, and choosing from them. */
.request-pick { display: flex; flex-direction: column; gap: 12px; }
.request-pick [hidden] { display: none; }
.request-pick__other { min-height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; font-size: 17px; }
.request-pick__send { width: 100%; min-height: 56px; font-size: 17px; }
.manage-card--edit [hidden] { display: none; }
.manage-card--edit > .segmented { align-self: flex-start; }
.item-rows { display: grid; gap: 8px; }
.item-row { display: flex; align-items: center; gap: 8px; }
.item-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; }
.item-row .x-btn, .schedule__day .x-btn { position: static; flex: none; width: 44px; height: 44px; }
/* A contact's week and days off. */
.manage-card > .card-more { flex: 1 1 100%; }
.manage-list > .manage-card:has(> .card-more) { align-content: flex-start; }
.schedule { display: flex; flex-direction: column; gap: 12px; }
.schedule__off { display: grid; gap: 6px; }
.schedule__off:empty { display: none; }
.schedule__day { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding-inline-start: 12px; background: var(--bg); border-radius: var(--radius); }
.walkin-rooms { display: flex; flex-direction: column; gap: 10px; }
.room-pick[aria-pressed="true"] { outline: 3px solid var(--primary); outline-offset: 1px; }
.print-panel > .field__hint { margin: 0 0 8px; }
/* The amount in other currencies */
.price-info { position: relative; display: inline-flex; margin-inline-start: 6px; vertical-align: middle; }
.price-info__btn { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: inherit; font: italic 700 13px/1 Georgia, serif; cursor: pointer; }
.price-info__pop { position: absolute; top: 28px; inset-inline-start: 0; z-index: 20; display: flex; flex-direction: column; gap: 4px; min-width: 130px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); color: var(--ink, #1c1c1a); font-size: 14px; font-weight: 600; }
.price-info__pop[hidden] { display: none; }
.price-info__pop small { font-weight: 400; opacity: .7; }
.rates-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Requests for housekeeping on the room card */
.room-requests { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.room-requests:empty { display: none; }
.room-requests li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.room-requests li.is-done strong { font-weight: 500; opacity: .75; }
/* The top of the screen stays in view, under the header */
.screen-head { position: sticky; top: var(--topbar-height, 76px); z-index: 4; margin-inline: -16px; padding: 8px 16px; background: var(--bg); }
.screen-head__start + .screen-head__title { flex-basis: 0; }
.screen-head-more { margin: -12px 0 16px; }
/* The confirmation: edit in place */
.confirm-panel__box { position: relative; }
.confirm-panel__box .confirm-panel__text { display: block; width: 100%; box-sizing: border-box; padding-inline-end: 56px; }
textarea.confirm-panel__text { border: 2px solid var(--primary); resize: vertical; }
.confirm-panel__edit { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; }
.confirm-panel .link-btn { align-self: flex-start; padding: 4px; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
/* A request, with its own box */
.request-rows { display: grid; gap: 8px; }
.request-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.request-row input { flex: none; width: 26px; height: 26px; accent-color: var(--primary); }
.request-row__room { flex: none; font-size: 20px; }
.request-row__text { display: flex; flex-direction: column; min-width: 0; }
.request-row__text small { color: var(--muted); }
.request-row.is-done { background: var(--ok-soft); border-color: #BFD8CB; }
.request-row.is-done strong { font-weight: 500; }
/* The print station list */
.print-job__actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.print-job__actions .btn { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.print-job__actions .link-btn { padding: 4px; font-size: 15px; font-weight: 500; color: var(--muted); text-underline-offset: 3px; }
.print-job--cancelled { opacity: .6; }
/* Dragging the order */
.order-item.is-dragging { position: relative; z-index: 2; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.log-row__end { margin-inline-start: auto; }
/* "What's today" (Pini 59) */
/* Today, in three quiet numbers under the day's buttons (remark 2). */
.today-strip { display: flex; flex-direction: column; gap: 8px; margin-block: 14px 0; }
.today-strip__marks { display: flex; flex-wrap: wrap; gap: 6px; }
.today-strip__counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.today-strip__counts a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 6px; min-height: 56px; padding: 8px 6px; align-content: center; text-align: center; color: var(--ink); text-decoration: none; }
.today-strip__counts a + a { border-inline-start: 1px solid var(--line); }
.today-strip__counts a:hover { background: var(--bg); }
.today-strip__counts strong { font-size: 20px; font-weight: 600; color: var(--primary); }
.today-strip__counts span { font-size: 14px; color: var(--muted); }

/* The dining room (meeting with Pini, 46-51): the same look as the hotel's map,
   with the list beside it, or above it on a phone. */
.dining-way { flex: none; }
.dining-when { gap: 8px; }
.dining-when .segmented { margin-inline-start: auto; }
.dining-grid { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); gap: 16px; align-items: start; }
.dining-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dining-count { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.dining-count strong { font-size: 18px; }
.dining-count span { color: var(--muted); font-size: 15px; }
.dining-list { display: flex; flex-direction: column; gap: 8px; }
.dining-list .section-title { margin: 4px 0 0; }
.dining-family {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px 14px; text-align: start;
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer;
  user-select: none;
}
@media (pointer: fine) { .dining-family { cursor: grab; } .dining-family:hover { border-color: var(--primary); } }
.dining-family[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.dining-family__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dining-family__name { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.dining-family__facts { font-size: 14px; color: var(--muted); }
.dining-family__people { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.dining-family__people strong { font-size: 20px; color: var(--ink); }
.dining-helpers { display: flex; flex-direction: column; gap: 8px; }
.dining-helper { width: 100%; min-height: 52px; }
.dining-note { margin: 0; }
.dining-edit-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; padding: 8px 4px; font-size: 15px; font-weight: 500; color: var(--muted); }
.dining-seated { display: flex; flex-direction: column; gap: 2px; }
.dining-seated__row { display: flex; align-items: center; gap: 6px; }
.dining-seated__who {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px; text-align: start;
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; user-select: none;
}
.dining-seated__table { flex: none; min-width: 38px; font-size: 17px; }
.dining-seated__who > span:not(.dining-seated__people) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dining-seated__people { flex: none; color: var(--muted); }
.dining-plan { padding-top: 12px; scroll-margin-top: calc(var(--topbar-height, 0px) + 68px); }
.dining-hint { margin: 0 2px 10px; }
/* Beside a long list the plan stays in view, and nothing jumps when a family is
   picked: the line above it keeps its height. */
@media (min-width: 901px) {
  .dining-plan { position: sticky; top: calc(var(--topbar-height, 0px) + 68px); }
  .dining-plan [data-slot="banner"] { min-height: 76px; display: flex; flex-direction: column; justify-content: center; }
}
.dining-banner {
  position: sticky; top: calc(var(--topbar-height, 0px) + 62px); z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; padding: 10px 14px;
  background: var(--ok-soft); border: 1px solid var(--primary); border-radius: var(--radius);
}
.dining-banner__text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dining-banner__text > strong { display: flex; align-items: center; gap: 6px; font-size: 18px; overflow-wrap: anywhere; }
.dining-banner__who strong { font-size: 18px; overflow-wrap: anywhere; }
.dining-banner__who span { color: var(--muted); font-size: 15px; }
.dining-banner__next { font-weight: 600; color: var(--primary); }
.dining-banner__next--warn { color: var(--warn-fg); }
.dining-banner__actions { flex: none; display: flex; align-items: center; gap: 8px; }
.dining-banner__actions .link-btn { min-height: 44px; font-size: 15px; font-weight: 500; color: var(--muted); }
.dining-banner__actions--wide { flex: 1 1 280px; }
.dining-banner__actions--wide .btn { flex: 1 1 0; min-height: 52px; }
.dining-banner__list { flex: 1 1 100%; }
.dining-banner--warn { background: var(--warn-bg); border-color: var(--amber); color: var(--warn-fg); }
.dining-banner--proposal { background: var(--leaving-bg); border-color: var(--leaving-fg); }
.dining-anyway { background: var(--warn-fg); color: #fff; }
.dining-ghost { position: fixed; top: 0; inset-inline-start: 0; left: 0; z-index: 50; padding: 6px 12px; pointer-events: none; font-weight: 600; color: #fff; background: var(--primary); border-radius: 10px; box-shadow: var(--shadow); }
.dining-room { user-select: none; }
/* A drawing, so it starts from table 1 whatever the language. */
.dining-plan .plan__scroll { direction: ltr; }
.dining-floor { fill: var(--line); stroke: var(--muted); stroke-width: 7; }
.dining-vip { fill: var(--warm-soft); }
.dining-window { stroke: var(--surface); stroke-width: 7; }
.dining-door { stroke: var(--bg); stroke-width: 9; }
.dining-mark { font-size: 24px; fill: var(--muted); text-anchor: middle; unicode-bidi: plaintext; }
.dining-mark--vip { font-weight: 700; fill: var(--warm); font-size: 28px; }
.dining-partition__line { stroke: var(--warm); stroke-width: 5; stroke-dasharray: 16 10; }
.dining-partition__hit { fill: transparent; cursor: ew-resize; touch-action: none; }
.dining-table { cursor: pointer; outline: none; color: var(--ink); }
.dining-table text { fill: currentColor; text-anchor: middle; pointer-events: none; unicode-bidi: plaintext; }
.dining-table__hit { fill: transparent; }
.dining-table__top { fill: var(--surface); stroke: var(--muted); stroke-width: 3; }
.dining-table__joint { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; pointer-events: none; }
.dining-table__number { font-size: 27px; font-weight: 700; }
.dining-table__who { font-size: 22px; font-weight: 600; }
.dining-table__count { font-size: 19px; opacity: .8; }
.dining-chair { stroke: var(--muted); stroke-width: 2.5; }
.dining-chair--free { fill: var(--surface); }
.dining-chair--used { fill: var(--primary); stroke: var(--primary); }
.dining-chair--proposed { fill: var(--leaving-fg); stroke: var(--leaving-fg); }
.dining-table:hover .dining-table__top { filter: brightness(.96); }
.dining-table:focus-visible .dining-table__top { stroke: var(--ink); stroke-width: 6; }
.dining-table--partly .dining-table__top { fill: var(--ok-soft); stroke: var(--primary); }
.dining-table--full { color: #fff; }
.dining-table--full .dining-table__top { fill: var(--primary); stroke: var(--primary); }
.dining-table--over { color: var(--warn-fg); }
.dining-table--over .dining-table__top { fill: var(--warn-bg); stroke: var(--amber); stroke-width: 5; }
.dining-table--over .dining-chair--used { fill: var(--amber); stroke: var(--amber); }
.dining-table--proposed { color: var(--leaving-fg); }
.dining-table--proposed .dining-table__top { fill: var(--leaving-bg); stroke: var(--leaving-fg); stroke-dasharray: 10 6; }
.dining-table--nofit { opacity: .4; }
.dining-table--match .dining-table__top, .dining-table--drop .dining-table__top { stroke: var(--primary); stroke-width: 7; }
.dining-table--current .dining-table__top, .dining-table--asked .dining-table__top { stroke: var(--ink); stroke-width: 6; }
.dining-swatch--free { background: var(--surface); }
.dining-swatch--partly { background: var(--ok-soft); border-color: var(--primary); }
.dining-swatch--full { background: var(--primary); }
.dining-swatch--over { background: var(--warn-bg); border-color: var(--amber); }
.dining-swatch--proposed { background: var(--leaving-bg); border-color: var(--leaving-fg); }
.dining-room--edit .dining-table { cursor: grab; touch-action: none; }
.dining-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dining-add .btn { min-height: 52px; }
.dining-table-panel { display: flex; flex-direction: column; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dining-table-panel .counter__label { font-size: 17px; }
.dining-table-panel .counter__value { min-width: 40px; font-size: 24px; }
.dining-table-panel .field--inline { flex: none; }
.dining-features { display: flex; flex-direction: column; gap: 6px; }
.dining-panel-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dining-panel-actions .link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px; font-size: 16px; font-weight: 500; color: var(--ink); }
.dining-panel-actions .confirm-box { width: 100%; }
.dining-panel-actions .dining-remove { color: var(--out-fg); }
.dining-templates .confirm-box { flex-wrap: wrap; background: var(--warn-bg); color: var(--warn-fg); }
.dining-templates .confirm-box .x-btn { background: rgba(138, 79, 6, .12); color: var(--warn-fg); }
.dining-template { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.dining-template__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dining-template__main span { font-size: 14px; color: var(--muted); }
.table-prefs__body { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.table-prefs__body .field--inline { flex: none; max-width: 180px; }
@media (max-width: 900px) {
  .dining-grid { grid-template-columns: minmax(0, 1fr); }
  /* One thing at a time on a phone: a family picked, the room takes the screen. */
  .dining-grid.is-focused .dining-side { display: none; }
  .dining-when .segmented { margin-inline-start: 0; flex: 1 1 100%; }
  .dining-when .segmented a { flex: 1 1 0; padding: 0 8px; }
  .dining-room { min-width: 760px; }
}

/* ---------- Management: one compact style ---------- */
/* Moriya, 5.11.2026: Management is for a manager at a desk, not daily work, so as
   much as possible is on screen without scrolling. Reports is the example. This
   is the one place it is defined: every section just sits under .manage, and
   nothing here reaches the daily screens. On a touch screen nothing to tap is
   under 40px. */
.manage {
  --m-control: 36px; /* buttons, inputs, tabs */
  --m-chip: 30px; /* chips, ticks, an X */
  --m-row: 40px; /* a closed row */
  --m-input-font: 14.5px;
  font-size: 15px; line-height: 1.35;
}
@media (pointer: coarse), (max-width: 699px) {
  /* 16px in an input: under that an iPhone zooms in on tapping it. */
  .manage { --m-control: 40px; --m-chip: 40px; --m-row: 44px; --m-input-font: 16px; }
}
.manage.screen { padding: 10px 16px 28px; }
.manage .stack { gap: 10px; }
.manage h2 { font-size: 16px; gap: 6px; }
.manage h3, .manage .manage-card__sub { margin: 2px 0 0; font-size: 14.5px; }
.manage .screen-sub { margin: 0; font-size: 13px; }
.manage .field__hint { font-size: 12.5px; }
.manage .empty { padding: 10px 4px; font-size: 14px; }

/* The top: the way back and the tabs on one line. The title is in the top bar. */
.manage-top { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
.manage-top__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.manage-top .back-btn { flex: none; width: var(--m-control); height: var(--m-control); border-radius: 10px; }
.manage-top .back-btn .icon { width: 18px; height: 18px; }
.manage .tabs { flex: 1; min-width: 0; margin: 0; gap: 4px; }
.manage .tabs a { min-height: var(--m-control); padding: 0 10px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
@media (max-width: 699px) {
  .manage .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .manage .tabs::-webkit-scrollbar { display: none; }
}

/* Cards */
.manage .manage-card { min-width: 0; gap: 6px 10px; padding: 8px 12px; border-radius: 12px; }
.manage .manage-card--edit { gap: 8px; padding: 10px 14px; }
.manage .manage-card--edit > h2 { padding-inline-end: 0; }
.manage .manage-card--edit > .x-btn + h2 { padding-inline-end: 36px; }
.manage .manage-card__main strong { font-size: 15px; }
.manage .manage-card__tags { font-size: 12.5px; }
.manage .manage-card__actions { gap: 6px; }
.manage .manage-card__controls { gap: 6px 10px; }
.manage .manage-card__controls .field--inline { flex: 0 1 150px; }
.manage .manage-list { gap: 6px; grid-template-columns: minmax(0, 1fr); }
.manage-columns { display: grid; gap: 10px; align-items: start; }
@media (min-width: 900px) { .manage-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
@media (min-width: 700px) {
  .manage .manage-list { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .manage .manage-list--contacts { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
}

/* Controls */
.manage .btn { min-height: var(--m-control); padding: 0 12px; gap: 6px; border-radius: 10px; font-size: 14px; }
.manage .btn .icon { width: 16px; height: 16px; }
.manage .btn--step { width: auto; align-self: flex-start; }
.manage .link-btn { display: inline-flex; align-items: center; gap: 4px; min-height: var(--m-control); padding: 0 4px; font-size: 13.5px; font-weight: 500; }
.manage .link-btn .icon { width: 16px; height: 16px; }
.manage input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .manage select, .manage textarea {
  min-height: var(--m-control); padding-block: 0; padding-inline: 10px; border-width: 1px; border-radius: 8px; font-size: var(--m-input-font);
}
.manage textarea, .manage .notice-form textarea { min-height: 54px; padding-block: 6px; }
.manage .field { gap: 2px; }
.manage .field__label { font-size: 13px; }
.manage .field__money { gap: 5px; font-size: 12.5px; }
.manage .field-row { gap: 6px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manage .field-row > .field--wide { grid-column: 1 / -1; }
/* A phone number doesn't fit in one of these narrow columns, even with the code made small. */
.manage .field-row > .phone-field { grid-column: span 2; }
.manage .field__money input { min-width: 0; width: 100%; }
@media (min-width: 700px) {
  .manage .field-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .manage .field-row > .field--wide { grid-column: span 3; }
  .manage .field-row > .checks.field--wide { grid-column: 1 / -1; }
}
.manage .segmented { padding: 3px; border-radius: 10px; }
.manage .segmented button, .manage .segmented a { min-height: var(--m-chip); padding: 0 12px; border-radius: 8px; font-size: 14px; }
.manage .report-head .segmented { max-width: 460px; }
.manage .report-head .segmented button { padding: 0 6px; font-size: 14px; }
.manage .check { min-height: var(--m-chip); gap: 6px; font-size: 14px; }
.manage .check input { width: 18px; height: 18px; }
.manage .check--big { font-size: 14px; }
.manage .checks { gap: 2px 12px; }
.manage .switch { min-height: var(--m-chip); gap: 8px; font-size: 14px; font-weight: 500; }
.manage .request-chips, .manage .lock-rooms, .manage .day-chips { gap: 4px; }
.manage .request-chip span, .manage .day-chip span { min-height: var(--m-chip); padding: 0 8px; border-width: 1px; font-size: 13.5px; }
.manage .request-chip span { min-width: 44px; justify-content: center; }
.manage .day-chip span { min-width: 34px; padding: 0 4px; }
.manage .x-btn { top: 6px; inset-inline-end: 6px; width: var(--m-chip); height: var(--m-chip); }
.manage .x-btn .icon { width: 14px; height: 14px; }
.manage .x-btn--inline { width: var(--m-chip); height: var(--m-chip); }

/* Rows that fold */
.manage .card-more { border-radius: 12px; }
.manage .more-row__head { min-height: var(--m-row); padding-block: 2px; gap: 8px; font-size: 14px; }
.manage .more-row__head > .icon:first-child { width: 17px; height: 17px; }
.manage .more-row__summary { font-size: 13px; }
.manage .more-row__body { padding: 0 12px 10px; }
.manage .more-row__body > .manage-card { padding: 0; }
.manage .more-row__body > .manage-card > h2 { display: none; }
.manage .form-fold { border-radius: 10px; }
.manage .form-fold > summary { min-height: var(--m-row); padding: 2px 12px; gap: 8px; font-size: 14px; }
.manage .form-fold__body { gap: 8px; padding: 0 12px 10px; }
.manage > .stack > .card-more { background: var(--surface); }
/* Closed rows side by side on a computer; the open one takes the line under them. */
@media (min-width: 700px) {
  .manage > .stack > .card-more { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .manage > .stack > .card-more > * + * { border-top: 0; border-inline-start: 1px solid var(--line); }
  .manage > .stack > .card-more > .more-row:has(> .more-row__body) { grid-column: 1 / -1; order: 1; border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* Tables */
.manage .table-wrap { border-radius: 10px; }
.manage .rooms-table th, .manage .rooms-table td { padding: 5px 10px; font-size: 14px; }
.manage .rooms-table th { font-size: 13px; }

/* WhatsApp: a person's name and number on one line */
.manage .manage-list--contacts { align-items: start; }
.manage .manage-list--contacts .manage-card__main { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.manage .manage-list--contacts .manage-card__phone { font-size: 13.5px; }
.manage .manage-list--contacts .manage-card__controls .field--inline { flex: 1 1 100px; }
.manage .manage-list--contacts .checks { gap: 2px 8px; }

/* Rooms: a tile each, under the floor */
.manage .manage-list--rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manage-list__title { grid-column: 1 / -1; margin-top: 4px; color: var(--muted); }
.manage .manage-list__title { font-size: 13.5px; font-weight: 600; }
.manage .manage-list--rooms > .manage-card--edit { grid-column: 1 / -1; }
.room-tile-row { flex-wrap: nowrap; align-items: center; width: 100%; min-height: var(--m-row); text-align: start; cursor: pointer; font: inherit; color: inherit; }
.manage .room-tile-row { padding: 5px 10px; border-radius: 10px; }
.room-tile-row > strong { flex: none; font-size: 15px; font-weight: 700; }
.room-tile-row:hover { border-color: var(--border); background: var(--ok-soft); }
.room-tile-row .manage-card__main { flex: 1 1 0; font-size: 13px; line-height: 1.25; }
.room-tile-row .manage-card__tags { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.room-tile-row__pencil { flex: none; color: var(--muted); opacity: .55; }
@media (min-width: 700px) { .manage .manage-list--rooms { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); } }
@media (max-width: 699px) { .room-tile-row__pencil { display: none; } }

/* Prices */
.manage .price-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.manage .price-floors { gap: 6px; }
.manage .price-floor { gap: 4px; }
.manage .price-floor__rooms { gap: 4px; }
.manage .price-floor__rooms .request-chip span { min-width: 42px; padding: 0 4px; }
@media (min-width: 900px) {
  .manage .price-floor { flex-direction: row; align-items: flex-start; }
  .manage .price-floor > .price-all { flex: none; min-width: 84px; }
  .manage .price-floor > .price-all span { width: 100%; }
}
.manage .price-row { min-height: var(--m-row); padding-block: 3px; gap: 8px; }
.manage .price-row__main small { font-size: 12.5px; }
.manage .price-row .x-btn { width: var(--m-chip); height: var(--m-chip); }

/* Payments */
.manage .rates-auto { gap: 8px 14px; }
.manage .meal-prices { gap: 4px 8px; grid-template-columns: auto minmax(0, 120px) minmax(0, 120px); }
.manage .meal-prices__name { font-size: 13.5px; }
/* The meals across on a computer: the same cells, read by column. */
@media (min-width: 700px) {
  .manage .meal-prices { grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-template-columns: auto repeat(5, minmax(0, 1fr)); justify-content: stretch; }
}
.manage .holiday-dates { gap: 4px; }
.manage .holiday-date { padding-inline: 10px 2px; font-size: 14px; }
.manage .holiday-date .x-btn { width: var(--m-chip); height: var(--m-chip); }
.manage .holiday-add { gap: 6px; }
.manage .wine-rows { gap: 4px; }
.manage .wine-row { gap: 6px; grid-template-columns: minmax(0, 1fr) 130px var(--m-chip); }
.manage .wine-row--new { grid-template-columns: minmax(0, 1fr) 130px auto; }
@media (max-width: 559px) {
  .manage .wine-row, .manage .wine-row--new { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Housekeeping */
.manage .order-list { gap: 4px; }
.manage .order-item { min-height: var(--m-row); padding: 3px 10px; gap: 10px; border-radius: 10px; }
.manage .order-item__number { width: 24px; height: 24px; font-size: 13px; }
.manage .order-item__text { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.manage .order-item__text strong { font-size: 14.5px; }
.manage .order-item__text span { font-size: 12.5px; }
.manage .order-item__grip .icon { width: 18px; height: 18px; }
.manage .item-rows { gap: 4px 10px; }
.manage .item-row { gap: 4px; }
.manage .item-row .x-btn { width: var(--m-chip); height: var(--m-chip); }
@media (min-width: 700px) { .manage .item-rows { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

/* Screens */
.manage .screen-address { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.manage .notice-list { gap: 4px; }
.manage .notice-row { padding: 6px 10px; border-radius: 10px; }
.manage .notice-form { display: grid; gap: 6px; }
.manage .hotel-photo { max-width: 260px; border-radius: 8px; }
.manage .prayer-days { gap: 8px; }
.manage .prayer-day { padding: 4px 10px 8px; gap: 4px; border-radius: 10px; }
.manage .prayer-day legend { font-size: 13.5px; }
.manage .prayer-rows { gap: 4px; }
.manage .prayer-row { gap: 4px; }
.manage .prayer-row input[type="text"] { flex: 1 1 90px; }
.manage .prayer-row input[type="number"] { width: 64px; }
.manage .prayer-row > span { font-size: 12.5px; }
@media (min-width: 1000px) { .manage .prayer-days { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }

/* Morning lists: each on one line on a computer */
.manage .list-card > .field-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.manage .list-card > .field-row .field--inline { flex: none; flex-direction: row; align-items: center; gap: 6px; }
@media (min-width: 900px) {
  .manage .list-card { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .manage .list-card > h2 { flex: 0 0 4.5em; }
  .manage .list-card > .manage-card__actions { margin-inline-start: auto; }
  .manage .list-card > .form-fold, .manage .list-card > .list-preview-wrap { flex: 1 1 100%; order: 1; }
}
.manage .list-card input[type="time"] { width: 120px; }
.manage .form-fold .shabbat-list { gap: 6px 10px; }

/* Reports keeps its look; only its rows of folded lists and receipts follow the sizes above */
.manage .report-head { gap: 8px; }
.manage .report-head .date-bar__field { font-size: 13.5px; }
.manage .report-lines > div { padding: 5px 0; }
.manage .report-receipt__head { min-height: var(--m-row); }
.manage .report-receipt__form { gap: 8px; }
.manage .report-export { min-height: var(--m-row); }
.amenities__title { font-size: 17px; margin: 14px 0 6px; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; }
.amenities li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.amenities li svg { flex: none; color: var(--ink); }

/* ---------- Guests (meeting with Hoffman, task 12; design/guests-screen) ---------- */
/* The row is the booking list's card; what it owes and "+ Charge" sit at its end,
   inside the same frame, and drop to a line of their own on a phone. */
.guest-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  min-height: 72px; padding-inline-end: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.guest-row__card { flex: 1 1 260px; min-width: 0; min-height: 72px; border: 0; box-shadow: none; background: none; }
.guest-row__end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.guest-row__money { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.guest-row__money.is-due { color: var(--warn-fg); font-weight: 600; }
.guest-row__charge { min-height: 48px; min-width: 48px; }
.guest-card__detail .is-leaving { color: var(--warm); font-weight: 500; }
@media (max-width: 599px) {
  .guest-row { padding: 0 14px 12px; }
  .guest-row__card { flex-basis: 100%; padding-inline: 4px; }
  .guest-row__end { width: 100%; justify-content: space-between; margin-inline-start: 0; }
}
.charge-form { display: flex; flex-direction: column; gap: 12px; }
.charge-form__kinds { display: flex; padding: 3px; border-radius: 12px; }
.charge-form__kinds button { flex: 1; min-height: 48px; font-size: 17px; }
.payment-actions--stay { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 8px; }

/* ---------- Occupancy (meeting with Hoffman, task 4; design/occupancy-grid) ---------- */
/* One grid: the room column and the two header rows stay while the rest
   scrolls under them; on a phone the grid scrolls sideways inside itself. */
.occ {
  --room-col: 76px; --col-min: 48px; --head-h: 52px;
  overflow: auto; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.occ--dense { --col-min: 34px; }
.occ__row { display: grid; grid-template-columns: var(--room-col) repeat(var(--nights), minmax(var(--col-min), 1fr)); min-width: calc(var(--room-col) + var(--nights) * var(--col-min)); }
.occ__row > * { grid-row: 1; min-width: 0; }
.occ__room {
  grid-column: 1; position: sticky; inset-inline-start: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 10px;
  background: var(--surface); border-inline-end: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.occ__room strong { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; }
.occ__room small { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
.occ__head { position: sticky; top: 0; z-index: 4; background: var(--surface); }
.occ__head .occ__room { z-index: 5; }
.occ__day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: var(--head-h); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.occ__day strong { font-size: 14px; color: var(--ink); }
.occ__day.is-today { box-shadow: inset 0 0 0 2px var(--primary); border-radius: 8px; }
.occ__free { position: sticky; top: var(--head-h); z-index: 4; background: var(--bg); }
.occ__free .occ__room { z-index: 5; background: var(--bg); font-weight: 600; font-size: 14px; }
.occ__count { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; border-bottom: 1px solid var(--border); }
.occ__count strong { font-size: 16px; }
.occ__count small { color: var(--warn-fg); font-size: 11px; font-weight: 600; text-align: center; line-height: 1.1; }
.occ__floor { min-width: calc(var(--room-col) + var(--nights) * var(--col-min)); padding: 6px 10px 4px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
.occ__floor span { position: sticky; inset-inline-start: 10px; }
.occ__line { min-height: 48px; }
.occ__line .occ__room { border-bottom: 1px solid var(--line); }
.occ__cell { display: grid; place-items: center; min-height: 48px; border-inline-start: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--warm); }
.occ__cell.is-special, .occ__day.is-special { background-color: #F1EDE4; }
.occ__cell--locked { background: repeating-linear-gradient(45deg, var(--warm-soft) 0 6px, #FBEFE4 6px 12px); }
.occ__cell--out { background: repeating-linear-gradient(45deg, var(--line) 0 6px, var(--surface) 6px 12px); }
.occ__bar {
  z-index: 1; align-self: center; height: 34px; margin-inline: 3px;
  display: flex; align-items: center; padding: 0 8px; border-radius: 9px;
  font-size: 13px; font-weight: 600; text-decoration: none; overflow: hidden;
}
.occ__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.occ__bar--in { background: var(--primary); color: #fff; }
.occ__bar--booked { background: var(--ok-soft); color: var(--primary); border: 1px solid #B9D3C6; }
.occ__bar.is-cut-start { margin-inline-start: 0; border-start-start-radius: 0; border-end-start-radius: 0; }
.occ__bar.is-cut-end { margin-inline-end: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
.occ--dense .occ__bar { height: 10px; padding: 0; border-radius: 5px; }
.occ--dense .occ__bar.is-cut-start { border-start-start-radius: 0; border-end-start-radius: 0; }
.occ--dense .occ__bar.is-cut-end { border-start-end-radius: 0; border-end-end-radius: 0; }
.swatch.occ__swatch--in { background: var(--primary); }
.swatch.occ__swatch--booked { background: var(--ok-soft); border: 1px solid #B9D3C6; }
.date-bar__span { align-self: center; padding: 8px 4px; }
@media (max-width: 599px) { .occ { --room-col: 64px; max-height: calc(100dvh - 260px); } }
/* On a phone the month link takes a line of its own under the dates. */
@media (max-width: 599px) {
  .rooms-screen .date-bar:has(.date-bar__span) { flex-wrap: wrap; }
  .rooms-screen .date-bar__span { flex-basis: 100%; padding: 0 4px; text-align: end; }
}
.occ--dense .occ__day strong { font-size: 13px; }

/* ---------- Emailed documents at the print station (task 19; design/print-email) ---------- */
.inbox { margin-bottom: 18px; }
.inbox__rows { display: flex; flex-direction: column; gap: 10px; }
.inbox-row {
  display: flex; flex-direction: column; gap: 6px; min-height: 88px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.inbox-row__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.inbox-row__from { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.inbox-row__address { color: var(--muted); font-weight: 500; }
.inbox-row__time { flex: none; color: var(--muted); font-size: 14px; }
.inbox-row__subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row__files { color: var(--muted); font-size: 15px; }
.inbox-row__skip { color: var(--muted); }
.inbox-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.inbox-row__print { min-height: 48px; }
.inbox-row--done { flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; padding: 10px 18px; color: var(--muted); box-shadow: none; }
@media (max-width: 599px) { .inbox-row__print { flex: 1 1 100%; } }
.zmanim-print { margin-top: 18px; }
.zmanim-print__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.menu__count { margin-inline-start: auto; }
.inbox-row__done { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.inbox-row--done .inbox-row__from { font-size: 15px; font-weight: 500; }
/* A long label on a phone, in German above all, goes onto a second line
   instead of pushing the page sideways. */
.btn--wrap { max-width: 100%; white-space: normal; height: auto; min-height: 48px; padding-block: 8px; text-align: center; overflow-wrap: anywhere; }

/* The offer to install the app and turn on its notifications: one at a time, and it
   stays out of the screen's way until it is answered or closed. */
.app-offer {
  position: fixed; z-index: 20; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 460px; margin: 0 auto; padding: 14px 16px; display: grid; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(29, 36, 32, .18);
}
.app-offer p { margin: 0; padding-inline-end: 36px; font-weight: 500; }
.app-offer .x-btn { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; }

/* On the home screen there's no browser around the app: keep clear of the iPhone's bar. */
@media (display-mode: standalone) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* The person's own notifications, and the dot that says some are unread. */
.options-btn { position: relative; }
.unread-dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--out-fg); }
.app-notes { display: grid; gap: 10px; max-width: 640px; margin-inline: auto; }
.app-note { padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.app-note.is-new { border-color: var(--primary); }
.app-note small { color: var(--muted); }
.app-note p { margin: 4px 0 0; white-space: pre-line; }

/* The menu fits the screen with no scrollbar (Moriya, 8.11.2026): each part is a share
   of the screen's height, down to a minimum. Only a screen shorter than that scrolls. */
.sheet.menu { max-height: 96vh; max-height: 96dvh; padding-top: clamp(46px, 7.5dvh, 72px); padding-bottom: clamp(10px, 2dvh, 28px); }
.sheet.menu > .x-btn { top: clamp(4px, 1dvh, 14px); width: clamp(36px, 5.5dvh, 48px); height: clamp(36px, 5.5dvh, 48px); }
.sheet.menu .menu__links { gap: clamp(3px, .8dvh, 8px); }
.sheet.menu .menu__item { min-height: 0; height: clamp(36px, 6.6dvh, 60px); }
.sheet.menu .menu__links a { min-height: 0; font-size: clamp(16px, 2.3dvh, 19px); }
.sheet.menu .pin-btn { height: clamp(32px, 5.2dvh, 44px); }
.sheet.menu .menu__lang, .sheet.menu .menu__notify, .sheet.menu .menu__foot { margin-top: clamp(6px, 1.4dvh, 16px); }
.sheet.menu .menu__lang button, .sheet.menu .menu__foot .btn { min-height: clamp(36px, 5.6dvh, 52px); }
.sheet.menu .menu__notify .check { min-height: clamp(30px, 4.5dvh, 44px); }

/* How to put the app on a phone. */
.menu__guide { font-weight: 500; color: var(--primary); text-decoration: underline; min-height: 30px; display: inline-flex; align-items: center; }
.install-guide { display: grid; gap: 14px; }
.install-guide__why, .install-guide__done { margin: 0; font-size: 18px; line-height: 1.45; }
.install-guide__done { font-weight: 600; color: var(--primary); }
.install-guide__part { padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.install-guide__part h2 { margin: 0 0 8px; font-size: 19px; }
.install-guide__part ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; line-height: 1.45; }
