/* Application layout on top of shared.css (the design canvas styles, design/src/shared.css).
   No web fonts are loaded: the font stacks of shared.css fall back to system fonts. */

.app { display: flex; min-height: 100vh; }
.sidebar { width: 220px; flex: 0 0 220px; background: #ffffff; border-right: 1px solid #e4ddd2; display: flex; flex-direction: column; padding: 20px 12px 16px; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand-logo { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #c4702a; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 30px; }
.nav:hover { background: #faf3ea; text-decoration: none; }
.who { position: relative; margin-top: auto; padding-top: 10px; border-top: 1px solid #efe9e0; font-size: 13px; }
.who-name { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.who-name::-webkit-details-marker { display: none; }
.who-name > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.who-name:hover, .who[open] .who-name { background: #f6efe6; }
.who-chev { color: #8a8278; font-size: 13px; transition: transform .15s; }
.who[open] .who-chev { transform: rotate(180deg); }
.who-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 50; background: #fff; border: 1px solid #e3dbcf; border-radius: 10px; padding: 5px; box-shadow: 0 8px 24px rgba(0,0,0,.10); display: flex; flex-direction: column; gap: 1px; }
.who-menu a, .who-menu button, .who-menu span { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; border: 0; background: none; font: inherit; font-size: 13.5px; color: #2a2622; text-decoration: none; cursor: pointer; }
.who-menu a:hover, .who-menu button:hover { background: #f6efe6; }
.who-menu a.on { background: #fbead9; color: #7a4512; font-weight: 600; }
.who-menu .who-sim { color: #8a5a1e; }
.who-menu span.who-sim { cursor: default; }
.who-menu form { margin: 0; border-top: 1px solid #f1ece4; padding-top: 3px; margin-top: 2px; }
.link-button { background: none; border: none; padding: 0; color: #a85d1e; font-size: 13px; }
.link-button:hover { text-decoration: underline; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content-body { flex: 1; min-width: 0; display: flex; }
.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 20px 24px 16px; gap: 12px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }

.notice { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
/* Every message closes with its × (owner, 2026-09-26; static/notices.js). */
.notice[data-closable]:has(.notice-x) { position: relative; padding-right: 34px; }
.notice-x { position: absolute; top: 5px; right: 6px; width: 24px; height: 24px; padding: 0; border: none; border-radius: 6px; background: none; color: inherit; opacity: .6; font-size: 18px; line-height: 22px; cursor: pointer; }
.notice-x:hover, .notice-x:focus-visible { opacity: 1; background: rgba(0, 0, 0, .06); outline: none; }
.notice-ok { background: #e6f1e8; color: #2f5f3a; border: 1px solid #bfd9c5; }
.notice-error { background: #f6e3e0; color: #7a2a20; border: 1px solid #e3b9b2; }
.notice-sample { background: #fbead9; color: #7a4512; border: 1px dashed #c4702a; }

/* Planner grid */
.grid { padding: 0; overflow: auto; }
.grid-head { display: flex; border-bottom: 1px solid #e4ddd2; background: #faf8f4; position: sticky; top: 0; z-index: 6; }
.grid-head .bedlbl { font-size: 12px; color: #6b645b; }
.dayhead { width: 612px; flex: 0 0 612px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: 12px; color: #6b645b; text-align: center; }
.dayhead > div { padding: 6px 0; }
.dayhead .weekend { background: #f1ece3; }
.dayhead b { font-size: 14px; color: #2a2622; }
.roomhdr .spacer { flex: 1; }
.roomhdr .small { height: 24px; padding: 0 8px; font-size: 12px; }
.days { position: relative; }
.cell { grid-row: 1; margin: 3px 1px; border: 1px dashed transparent; border-radius: 6px; background: transparent; }
.cell:hover, .cell:focus-visible { border-color: #c4702a; background: #fcefe2; outline: none; }
button.bar { border: none; text-align: left; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
button.bar.st-hold { border: 1px dashed #c4702a; }
button.bar:focus-visible { outline: 2px solid #c4702a; outline-offset: 1px; }
.bar .cont { font-weight: 400; opacity: .8; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Forms in the side panel */
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4d463f; }
.form input[type=date], .form input[type=datetime-local], .form input[type=text], .form input[type=search], .form input[type=email],
.form input[type=password], .form input[type=number], .form select, .form textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #d5cdc0; border-radius: 8px; background: #fff; color: #2a2622; }
.form .row { display: flex; gap: 8px; }
.form .row > label { flex: 1; }
.form .check { flex-direction: row; align-items: flex-start; gap: 8px; }
.options { display: flex; flex-direction: column; gap: 6px; }
.option { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #efe9e0; border-radius: 8px; font-size: 13.5px; }

.login { max-width: 380px; margin: 12vh auto; padding: 28px; }

/* Planner scrolling (six weeks): the grid scrolls both ways inside its card; the date row
   stays on top and the bed column stays on the left. */
.grid { --col: 51px; --label: 136px; max-height: calc(100vh - 190px); overflow: auto; }
.grid-head, .bedrow, .roomhdr, .areahdr { width: calc(var(--label) + var(--days) * var(--col)); }
.dayhead, .grid .days { width: calc(var(--days) * var(--col)); flex: 0 0 auto;
  grid-template-columns: repeat(var(--days), var(--col));
  background: repeating-linear-gradient(90deg, transparent 0 calc(var(--col) - 1px), #efe9e0 calc(var(--col) - 1px) var(--col)); }
.dayhead { background: none; }
/* Above every bar, ringed or found, so a stay begun earlier slides under the names. */
.grid .bedlbl { position: sticky; left: 0; z-index: 5; background: #ffffff; width: var(--label); flex: 0 0 var(--label); padding: 0 8px 0 12px; gap: 6px; font-size: 13px; white-space: nowrap; }
.grid .bedlbl .muted { font-size: 12px; }
.grid-head .bedlbl { background: #faf8f4; z-index: 3; }
.roomhdr, .areahdr { padding: 0; }
.sticky-left { position: sticky; left: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; width: max-content; }
.areahdr { display: flex; align-items: center; height: 34px; background: #f1ece3; border-bottom: 1px solid #e4ddd2; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.dayhead .today { color: #a85d1e; box-shadow: inset 0 -3px 0 #c4702a; }
.dayhead .today b { color: #a85d1e; }
/* One background layer for the whole grid: only weekends are tinted; today is a line
   (owner, 2026-09-24: no today tint, no month separators). */
.grid { isolation: isolate; }
.grid-inner { position: relative; width: max-content; }
.colbg { position: absolute; top: 0; bottom: 0; left: var(--label); z-index: -1; display: grid;
  grid-template-columns: repeat(var(--days), var(--col)); pointer-events: none; }
.cb-we { background: rgba(241, 236, 227, 0.7); }
.cb-now { box-shadow: inset 2px 0 0 #c4702a; }
.dayhead .month { color: #a85d1e; font-weight: 700; }
.days[data-bed] { cursor: pointer; }
.hover-cell { grid-row: 1; margin: 3px 1px; border: 1px dashed #c4702a; border-radius: 6px; background: #fcefe2; pointer-events: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #7a4512; white-space: nowrap; overflow: hidden; }
.days[data-bed] { user-select: none; }
.bedbtn { background: none; border: none; padding: 0; font-weight: 700; color: #2a2622; cursor: pointer; }
.bedbtn:hover, .bedbtn:focus-visible { color: #a85d1e; text-decoration: underline; outline: none; }

/* Calendar on the whole width; details open in a drawer over it (feedback of 2026-09-23). */
.workspace { padding: 16px 20px 12px; gap: 10px; }
.filters { display: flex; align-items: center; gap: 16px; }
.filters .areas { flex: 1 1 auto; min-width: 0; }
.areas { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.areas > * { flex: 0 0 auto; }
.legend { display: flex; flex-direction: column; gap: 8px; margin: 18px 10px 0; font-size: 12.5px; color: #6b645b; }
.toolbar { flex-wrap: nowrap; }
.drawer { position: fixed; top: 0; right: 0; z-index: 20; width: 400px; max-width: 100vw; height: 100vh; overflow-y: auto; overflow-x: hidden;
  background: #ffffff; border-left: 1px solid #e4ddd2; box-shadow: -12px 0 32px rgba(42, 38, 34, 0.14); padding: 20px; }
.drawer[hidden] { display: none; }
.drawer #panel { display: flex; flex-direction: column; gap: 14px; }
.drawer #panel > :first-child { padding-right: 40px; }
.drawer-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #d5cdc0;
  background: #ffffff; font-size: 20px; line-height: 1; color: #4d463f; }
.drawer-close:hover, .drawer-close:focus-visible { background: #faf3ea; outline: none; border-color: #c4702a; }

/* Reservations coloured by the guest's gender, like the Women and Men tags. */
.st-res-w { background: #ecc9dc; border: 1px solid #b86c9a; color: #5e2449; }
.st-res-m { background: #c9dbec; border: 1px solid #5f86ad; color: #1f3d5c; }
button.bar.st-res-w, button.bar.st-res-m { border-style: solid; border-width: 1px; }

/* Confirmation window (moves by drag and drop). */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(42, 38, 34, 0.35); display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 480px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow-y: auto; background: #ffffff;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(42, 38, 34, 0.3); padding: 22px; }
/* The one way to close a window (owner, 2026-09-25): the × at the top right. */
.modal-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #d5cdc0;
  background: #ffffff; font-size: 20px; line-height: 1; color: #4d463f; cursor: pointer; }
.modal-x:hover, .modal-x:focus-visible { background: #faf3ea; outline: none; border-color: #c4702a; }
.modal-box h2:first-of-type, .confirm-box h2 { padding-right: 40px; }
#modal-body { display: flex; flex-direction: column; gap: 14px; }
button.bar[data-move] { cursor: grab; }
/* The right end of a stay still to end: drag it to make the stay longer (owner, 2026-09-25). */
button.bar { position: relative; }
.bar-grip { position: absolute; top: 0; right: 0; bottom: 0; width: 9px; cursor: ew-resize; border-radius: 0 6px 6px 0; }
.bar-grip:hover, .stretching .bar-grip { background: rgba(196, 112, 42, 0.45); }
.stretching { cursor: ew-resize; }
.drag-preview { pointer-events: none; outline: 2px dashed #c4702a; outline-offset: 1px; box-shadow: 0 6px 18px rgba(42, 38, 34, 0.25); z-index: 2; }
.drag-source { opacity: .35; }
.move-shift { font-weight: 400; }
.drop-target { background: rgba(196, 112, 42, 0.12); }

/* Result of the last action: floats over the page, never pushes the calendar down. */
.toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 8px 8px 8px 14px; white-space: nowrap; border-radius: 10px; background: #2f5f3a; color: #ffffff;
  box-shadow: 0 10px 30px rgba(42, 38, 34, 0.25); font-size: 14px; }
.toast[hidden] { display: none; }
.toast { animation: toast-in .3s ease-out backwards; transition: opacity .25s, transform .25s; }
.toast.toast-leaving { opacity: 0; transform: translate(-50%, -12px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast-mark { font-weight: 700; }
.toast-text { overflow: hidden; text-overflow: ellipsis; }
.toast-close { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent; color: #ffffff; font-size: 18px; line-height: 1; }
.toast-close:hover, .toast-close:focus-visible { background: rgba(255, 255, 255, 0.15); outline: none; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.big { font-size: 16px; font-weight: 700; }
.suggestion { align-items: flex-start; }
.suggestion > span:nth-child(2) { flex: 1; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form label.option { flex-direction: row; align-items: flex-start; gap: 10px; }
.form label.option input[type=radio] { margin-top: 3px; }

/* Reservation file (task 1.16) */
.file { gap: 14px; overflow: auto; }
.crumbs { display: flex; gap: 8px; font-size: 13px; }
.file-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-head h1 { font-size: 30px; letter-spacing: -0.01em; margin-right: 4px; }
.file-columns { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.file-main, .file-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.file-summary { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; }
.file-summary .big { margin-top: 6px; font-size: 15px; }
.file-summary .muted { font-size: 13px; margin-top: 2px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid #efe9e0; }
.card-head-inline { display: flex; align-items: center; justify-content: space-between; }
.file-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.file-card { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.file-card .line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.file-card .line.total { border-top: 1px solid #efe9e0; padding-top: 6px; }
.file-action summary { cursor: pointer; color: #9a5518; font-size: 13.5px; margin-top: 4px; }
.file-action .form { margin-top: 10px; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.history { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 14px; font-size: 13px; }
.bubble { align-self: flex-start; background: #faf8f4; border: 1px solid #e4ddd2; border-radius: 10px 10px 10px 3px; padding: 9px 12px; font-size: 13.5px; white-space: pre-wrap; }
.pre { white-space: pre-wrap; }
.email-archive { max-width: 760px; }
.email-body { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: #faf8f4; border: 1px solid #e4ddd2; border-radius: 8px; padding: 14px 16px; margin: 6px 0 0; }
@media (max-width: 1100px) { .file-columns, .file-pair, .file-summary { grid-template-columns: 1fr; } }

/* Phase 2 pages */
.page { gap: 14px; overflow: auto; }
.page-title { font-size: 30px; letter-spacing: -0.01em; }
.page-card { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.form.narrow { max-width: 520px; }
.reg-line { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.reg-line form { margin: 0; }

/* Guest pages */
body.guest { background: #faf8f4; }
.guest-main { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.guest-head { display: flex; align-items: center; gap: 12px; }
.guest-langs { margin-left: auto; display: flex; gap: 8px; font-size: 13px; text-transform: uppercase; }
.guest-langs a[aria-current] { font-weight: 700; text-decoration: underline; }
.guest-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.guest-card h1 { font-size: 28px; }
.guest-contact { font-size: 13px; color: #6b645b; }
.companion { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form textarea { font: inherit; padding: 8px 10px; border: 1px solid #d9d1c5; border-radius: 8px; }
@media (max-width: 600px) { .date-pair, .companion { grid-template-columns: 1fr; } }
.alot-bar { height: 10px; border-radius: 5px; background: #efe9e0; overflow: hidden; }
.alot-bar span { display: block; height: 100%; background: #c4702a; }
.email-preview { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
code { font-size: 12.5px; background: #faf8f4; padding: 1px 4px; border-radius: 4px; }
.msg { border-radius: 10px; padding: 9px 12px; font-size: 13.5px; max-width: 760px; }
.msg-in { background: #faf8f4; border: 1px solid #e4ddd2; align-self: flex-start; }
.msg-out { background: #fbead9; align-self: flex-end; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.msg-subject { font-weight: 700; margin-top: 2px; }
.msg-body { white-space: pre-wrap; margin-top: 4px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input[type=text] { height: 34px; padding: 0 10px; border: 1px solid #d9d1c5; border-radius: 8px; min-width: 240px; }
.conversation { gap: 12px; }
.suggestion { margin-top: 8px; padding: 8px 10px; border: 1px dashed #c4b8a6; border-radius: 8px; background: #ffffff; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.suggestion .chip { margin-right: 4px; }
/* An extra bed at check-in (A171): not set up, being set up, ready. */
.badge.b-bed-missing { background: #f8e0dd; color: #8a2a1f; border: 1px solid #e3a79f; }
.badge.b-bed-busy { background: #fcefd6; color: #7a4c0c; border: 1px solid #e8c683; }
.badge.b-bed-ready { background: #e3f1e3; color: #2f6b35; border: 1px solid #9fcca4; }
/* Several people in one booking (A173). */
.party-person { display: flex; flex-direction: column; gap: 6px; }
.party-person-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #2a2622; }
.party-person-x { border: 0; background: none; color: #8a8278; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.link-button.add-person { align-self: flex-start; font-size: 12.5px; }
.form label.choice-party { flex-direction: row; align-items: flex-start; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #f0e9df; cursor: pointer; font-size: 13px; }
.choice-party span { display: flex; flex-direction: column; gap: 2px; }
.choice-party small { color: #6b6158; font-size: 12px; }
.form label.choice-party:has(input:checked) { background: #fcefe2; }
/* The Inbox's booking window: an email per person only when paying separately (A174). */
.share-email { display: none; grid-column: 1 / -1; }
form:has(input[name=pay_separately]:checked) .share-email { display: block; }
/* Something not done (A175): the red line and the fields to change. */
.toast.toast-error { background: #8a2a1f; }
.form .field-error, input.field-error, select.field-error, textarea.field-error { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .18) !important; }
.field-hint { color: #8a2a1f; font-size: 12.5px; line-height: 1.4; margin-top: -2px; }
.person-error > input[data-guest-q], .person-error .guest-chosen { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); background: #fdf1ef; }
.person-warn > input[data-guest-q], .person-warn .guest-chosen { border-color: #d9a441 !important; background: #fff8e8; }
.person-hint { font-size: 12.5px; line-height: 1.4; color: #8a2a1f; }
.person-warn .person-hint { color: #7a4c0c; }
.override { padding: 8px 10px; border: 1px solid #e3b9b2; border-radius: 8px; background: #fdf1ef; }
.override[hidden], [data-share-email][hidden] { display: none !important; }
/* Paying separately (A174). */
.party-shares { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid #e3dbcf; border-radius: 10px; background: #fdfaf6; }
.party-shares:empty { display: none; }
#party-shares:empty { display: none; }
.share-line { display: flex; flex-direction: column; gap: 4px; }
.share-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.share-head b { font-weight: 600; }
.share-total { border-top: 1px solid #efe7db; padding-top: 6px; font-weight: 600; }
/* The room's type menu (A172). */
.type-menu { position: relative; display: inline-block; }
/* The open menu sits above the rows and headers below it. */
.roomhdr:has(.type-menu[open]) { position: relative; z-index: 40; }
.roomhdr:has(.type-menu[open]) .sticky-left { z-index: 41; }
.type-menu > summary { cursor: pointer; list-style: none; }
.type-menu > summary::-webkit-details-marker { display: none; }
.type-form { position: absolute; top: 26px; left: 0; z-index: 30; background: #ffffff; border: 1px solid #d5cdc0; border-radius: 10px; padding: 12px; display: grid; grid-template-columns: auto auto; gap: 6px 22px; min-width: 330px; box-shadow: 0 8px 24px rgba(40, 30, 20, .14); font-weight: 400; }
.type-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.type-form legend { font-size: 11.5px; color: #6b645b; margin-bottom: 4px; }
.type-form label { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.type-form .faint { grid-column: 1 / -1; font-size: 11.5px; line-height: 1.45; margin: 4px 0 0; white-space: normal; }
.type-form button { grid-column: 1 / -1; justify-self: start; }
.roomhdr .tag-c { background: #efe9e0; color: #4d463f; }
/* Extra beds (A171): the mattress row is hatched where nobody is on it. */
.tag-extra { background: #fcefe2; color: #7a4512; }
.grid .bedrow-extra .bedbtn, .grid .bedrow-extra .bedlbl b { color: #7a4512; }
.grid .bedrow-extra .days { background:
  repeating-linear-gradient(90deg, transparent 0 calc(var(--col) - 1px), #efe9e0 calc(var(--col) - 1px) var(--col)),
  repeating-linear-gradient(135deg, #f3efe8 0 5px, #e9e2d7 5px 7px); }

/* Public booking pages (design/guest-booking) */
.book-hero { border-radius: 14px; background-size: cover; background-position: center; min-height: 190px; display: flex; align-items: flex-end; overflow: hidden; }
.book-hero > div { width: 100%; padding: 18px 20px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); }
.book-hero h1 { font-size: 30px; color: #fff; }
.book-hero p { margin: 6px 0 0; }
.book-person { align-items: end; }
.book-offer { display: grid; grid-template-columns: 200px 1fr; overflow: hidden; padding: 0; }
.book-offer img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.book-offer-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.book-offer-body h3 { margin: 0; font-size: 18px; }
.book-price b { font-size: 20px; }
.book-countdown { font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; }
@media (max-width: 560px) { .book-offer { grid-template-columns: 1fr; } .book-offer img { max-height: 180px; } }

.checkin-person { border: 1px solid var(--line, #e7e2da); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.checkin-person legend { padding: 0 6px; }

.panel-name { font-size: 20px; font-weight: 700; margin-top: 6px; }
.open-booking { margin-top: 10px; }
.panel-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-sec { border-top: 1px solid var(--line, #e7e2da); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }

/* The drawer never scrolls sideways (feedback of 2026-09-24): two columns whose fields
   shrink to fit. A fieldset is as wide as its content by default; min-width: 0 lets it
   shrink, and minmax(0, 1fr) lets each column be narrower than its field's default. */
.checkin-person { min-width: 0; }
.drawer .date-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.drawer .date-pair > label { min-width: 0; }
.drawer input, .drawer select, .drawer textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.drawer .form .row { flex-wrap: wrap; }
.drawer .form .row > label { flex: 1 1 140px; min-width: 0; }
.checkin-value { font-size: 13px; color: #4d463f; }

/* "Paid at reception": as tall as "Check in", in the secondary style (check-in comes first). */
.pay-form { margin-top: 8px; }
.btn-pay { width: 100%; justify-content: center; border: 1.5px solid #c4702a; color: #b8622a; background: #fff; font-weight: 700; }
.btn-pay:hover { background: #fbead9; }

/* Who sleeps here: the found guests as one-click rows, the chosen guest, the new guest form. */
.drawer input[type=radio], .drawer input[type=checkbox] { width: auto; flex: 0 0 auto; }
.guest-options { display: flex; flex-direction: column; gap: 6px; }
.guest-options:empty { display: none; }
.guest-option { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 10px; border: 1px solid #d5cdc0; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; color: #2a2622; }
.guest-option:hover, .guest-option:focus-visible { border-color: #c4702a; background: #fbead9; }
.guest-option span { font-size: 12.5px; color: #7a7066; overflow-wrap: anywhere; }
.guest-new-link { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: #b8622a; cursor: pointer; }
.guest-new-open { justify-content: center; }
.guest-picker { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.guest-chosen { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #cfe3d3; border-radius: 8px; background: #f1f8f2; min-width: 0; }
.guest-chosen[hidden] { display: none; }
.guest-chosen-mark { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #2f7a3e; color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
.guest-chosen div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guest-chosen b { font-size: 14px; color: #2a2622; }
.guest-chosen span:not(.guest-chosen-mark) { font-size: 12.5px; color: #5d6b5f; overflow-wrap: anywhere; }
input.chosen { border-color: #2f7a3e !important; background: #f1f8f2 !important; }
.guest-new { border: 1px solid #e3dbcf; border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.guest-new[hidden], .terms [hidden] { display: none; }
.guest-new legend { font-weight: 700; padding: 0 4px; }
.terms, .terms-pay { display: flex; flex-direction: column; gap: 10px; }
.drawer .check { display: flex; gap: 8px; align-items: flex-start; }

/* The part of a bar before today is drawn dimmer (owner, 2026-09-24): what happened reads
   as past; clicks still reach the bar. */
.bar.has-past { position: relative; }
.bar.has-past::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--past) * var(--col) - 1px); background: rgba(255, 255, 255, 0.5); pointer-events: none; }

/* The nights being selected (drag, or the open "Book this bed" panel), echoed on the dates. */
.dayhead .in-range { background: #fcefe2; box-shadow: inset 0 -3px 0 #e3b58c; }
.dayhead .weekend.in-range { background: #f6e3cf; }
.dayhead .today.in-range { box-shadow: inset 0 -3px 0 #c4702a; }

/* Cancel booking: last in the panel, in the danger colour but outlined (owner, 2026-09-24). */
.btn-cancel { width: 100%; justify-content: center; border: 1.5px solid #b3412f; color: #a8372a; background: #fff; font-weight: 700; }
.btn-cancel:hover { background: #fbeae6; }

/* The Cancel booking window, in the style of the guest's check-in page. */
.modal-box:has(.cancel-sheet) { width: 560px; padding: 28px 30px; }
.cancel-sheet { display: flex; flex-direction: column; gap: 18px; }
.cancel-sheet h2 { font-size: 30px; margin: 0; line-height: 1.1; }
.cancel-sheet .muted { margin: 6px 0 0; font-size: 14px; }
.cancel-sum { padding: 12px 14px; border-radius: 10px; background: #faf8f4; border: 1px solid #efe9e0; font-weight: 700; font-size: 16px; }
.cancel-form { gap: 14px; }
.cancel-choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.cancel-choices legend { font-weight: 700; font-size: 14px; color: #2a2622; padding: 0; margin-bottom: 8px; }
.form label.cancel-choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 40px; border: 1.5px solid #e3dbcf; border-radius: 12px; background: #fff; cursor: pointer; color: #2a2622; }
.form label.cancel-choice:hover { border-color: #d9b48e; }
.form label.cancel-choice:has(input:checked) { border-color: #c4702a; background: #fcefe2; box-shadow: 0 0 0 3px rgba(196, 112, 42, 0.12); }
.cancel-choice input[type=radio] { position: absolute; left: 14px; top: 16px; width: auto; margin: 0; accent-color: #c4702a; }
.cc-title { font-weight: 700; font-size: 15px; }
.cc-amount { font-size: 17px; font-weight: 700; color: #a85d1e; }
.cc-note { font-size: 12.5px; color: #6b6158; line-height: 1.45; }
.cancel-form textarea { resize: vertical; }
.cancel-form .faint { font-size: 12.5px; margin: -6px 0 0; }
.btn-danger-solid { width: 100%; justify-content: center; background: #b3412f; border-color: #b3412f; color: #fff; font-weight: 700; }
.btn-danger-solid:hover { background: #9c3727; }
.btn-plain { align-self: center; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 14px; color: #6b6158; cursor: pointer; }
.btn-plain:hover { color: #2a2622; text-decoration: underline; }
@media (max-width: 560px) { .cancel-choices { grid-template-columns: 1fr; } }

/* The planner's filter bar (owner, 2026-09-24): short buttons, all alike; a wide list opens
   below each; one filter at a time. */
.toolbar-2 { margin-top: -4px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Every pill on one line, drop-down or not (owner, 2026-09-28): no baseline gap below an
   inline pill inside its details or form. */
.filter-bar .pill { vertical-align: top; }
.filter-bar > form { display: flex; margin: 0; }
.pill { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 13.5px; line-height: 1.2; padding: 8px 28px 8px 12px; border: 1px solid #d5cdc0; border-radius: 999px; background: #fff; color: #2a2622; cursor: pointer; position: relative; }
.pill::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid #7a7066; border-bottom: 1.5px solid #7a7066; transform: translateY(-70%) rotate(45deg); }
.pill-toggle { padding-right: 12px; }
.pill-toggle::after { display: none; }
.pill:hover { border-color: #c4a07c; }
.pill-on { border-color: #c4702a; background: #fcefe2; color: #7a4512; font-weight: 700; }
details.dropdown { position: relative; }
details.dropdown > summary { list-style: none; }
details.dropdown > summary::-webkit-details-marker { display: none; }
details.dropdown[open] > summary { border-color: #c4702a; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: max-content; min-width: 240px; max-width: 380px; padding: 8px; background: #fff; border: 1px solid #e3dbcf; border-radius: 12px; box-shadow: 0 12px 30px rgba(42, 38, 34, 0.18); display: flex; flex-direction: column; gap: 6px; }
.dropdown-list { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }
.dropdown-check { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.dropdown-check input { margin: 2px 0 0; flex: 0 0 auto; accent-color: #c4702a; }
.dropdown-check:hover { background: #faf5ee; }
.dropdown-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 6px 4px 0; border-top: 1px solid #efe9e0; }
.bar.dim { opacity: .3; }

/* "+ New booking": the beds that fit, by room. */
.bed-choices { display: flex; flex-direction: column; gap: 8px; }
.choice-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-chip { font: inherit; font-size: 12.5px; padding: 4px 10px; border: 1px solid #d5cdc0; border-radius: 999px; background: #fff; color: #4d463f; cursor: pointer; }
.choice-chip.on { border-color: #c4702a; background: #fcefe2; color: #7a3f12; font-weight: 700; }
.choice-section > summary { display: flex; justify-content: space-between; align-items: center; padding: 9px 0 6px; border-bottom: 1px solid #e3dbcf; cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b6158; }
.choice-section > summary::-webkit-details-marker { display: none; }
.choice-section > summary::after { content: "▾"; font-size: 12px; margin-left: 8px; transition: transform 0.15s; }
.choice-section:not([open]) > summary::after { transform: rotate(-90deg); }
.choice-section > summary small { margin-left: auto; font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.choice-section.kept > summary { color: #9a5518; }
.choice-note { margin: 6px 0 0; font-size: 12.5px; }
.choice-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0e9df; }
.choice-room { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.choice-room small { font-size: 11.5px; color: #7a7066; }
.choice-beds { display: flex; flex-wrap: wrap; gap: 5px; }
.form label.choice-bed { flex-direction: row; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid #d5cdc0; border-radius: 999px; cursor: pointer; font-size: 12.5px; color: #2a2622; }
.choice-bed input { position: absolute; opacity: 0; pointer-events: none; }
.choice-footer { position: sticky; bottom: -20px; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin: 4px -20px 0; padding: 12px 20px 16px; background: #fff; border-top: 1px solid #e3dbcf; box-shadow: 0 -6px 14px rgba(42, 38, 34, 0.06); }
.chosen-bed { font-size: 13px; color: #6b6158; }
.chosen-bed b { color: #2a2622; }
.form label.choice-bed:has(input:checked) { border-color: #c4702a; background: #fcefe2; font-weight: 700; }

.choice-bed small { color: #7a7066; font-weight: 400; }

/* An active filter: a round × on the left removes it (owner, 2026-09-24). */
.pill-on { padding-left: 34px; }
.pill-x { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: #c4702a; color: #fff; font-size: 14px; line-height: 20px; text-align: center; text-decoration: none; font-weight: 700; }
.pill-x:hover { background: #a85d1e; }
.planner-empty { position: sticky; left: 0; margin: 0; padding: 28px 20px; color: #7a7066; font-size: 14px; }

/* The search bar on top of every page (owner, 2026-09-24). */
.topbar { position: sticky; top: 0; z-index: 15; height: 52px; flex: 0 0 52px; display: flex; align-items: center; padding: 0 24px; background: #ffffff; border-bottom: 1px solid #e4ddd2; }
.search { position: relative; width: min(560px, 100%); }
.search input { width: 100%; height: 36px; padding: 0 52px 0 36px; border: 1px solid #d9d1c5; border-radius: 10px; font: inherit; font-size: 14px; background: #faf8f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7066' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50%; }
.search input:focus { outline: none; border-color: #c4702a; background-color: #fff; box-shadow: 0 0 0 3px rgba(196, 112, 42, 0.12); }
.search-key { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 11.5px; color: #7a7066; border: 1px solid #e3dbcf; border-radius: 6px; padding: 1px 6px; background: #fff; pointer-events: none; }
.search-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 25; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid #e3dbcf; border-radius: 12px; box-shadow: 0 16px 40px rgba(42, 38, 34, 0.18); padding: 6px; }
.search-group + .search-group { border-top: 1px solid #efe9e0; margin-top: 4px; padding-top: 4px; }
.search-group-title { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9a8f84; padding: 6px 10px 2px; }
.search-hit { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 8px; color: #2a2622; text-decoration: none; }
.search-hit b { font-size: 14px; }
.search-hit span { font-size: 12.5px; color: #7a7066; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hit:hover, .search-hit.active { background: #fcefe2; }
.search-ask b { color: #a85d1e; }
.search-none { margin: 0; padding: 10px; color: #7a7066; font-size: 13.5px; }
.roomhdr.roomhdr-found { background: #fcefe2; box-shadow: inset 3px 0 0 #c4702a; }

/* The guest profile (owner, 2026-09-24). */
.profile-head { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: #fbead9; color: #a85d1e; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.profile-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-who h1 { font-size: 30px; margin: 0; line-height: 1.1; }
.profile-contact { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid #ece5da; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 12.5px; color: #7a7066; }
.stat b { font-size: 20px; }
.next-stay { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1.5px solid #e3b58c; color: inherit; text-decoration: none; }
.next-stay:hover { background: #fffaf4; }
.next-when { font-weight: 700; font-size: 16px; }
.next-ref { font-size: 11.5px; }
.year { font-size: 12px; font-weight: 700; color: #9a8f84; letter-spacing: .05em; margin-top: 4px; }
.stay-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 210px; gap: 12px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: inherit; text-decoration: none; }
.stay-row:hover { background: #faf5ee; }
.stay-row small { display: block; font-size: 12px; color: #7a7066; }
.stay-money { text-align: right; }
.stay-dim { opacity: .6; }
.link-line { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; }
a.link-line:hover { background: #faf5ee; }
.link-line small { font-size: 12px; color: #7a7066; }
.profile .internal textarea { width: 100%; box-sizing: border-box; resize: vertical; background: #fffdf8; }
@media (max-width: 900px) { .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Names that open something: underlined at rest, so it is clear they can be clicked. */
.plain-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(168, 93, 30, 0.35); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.plain-link:hover { color: #a85d1e; text-decoration: underline; text-decoration-thickness: 1px; }

/* The reservation file (owner, 2026-09-24). */
.res-head { display: flex; flex-direction: column; gap: 6px; }
.res-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.res-title h1 { font-size: 30px; margin: 0; }
.res-ref { margin-left: auto; font-size: 12px; }
.next-step { border: 1.5px solid #e3b58c; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.next-step p { margin: 0; font-size: 15px; }
.next-step-done { border-color: #e4ddd2; }
.next-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.next-actions:empty { display: none; }
.next-actions .btn-pay { width: auto; }
.card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.inline-action > summary { cursor: pointer; font-size: 13px; color: #a85d1e; list-style: none; }
.inline-action > summary::-webkit-details-marker { display: none; }
.inline-action[open] { flex-basis: 100%; }
.inline-action[open] > summary { margin-bottom: 10px; }
.more-actions { display: flex; flex-direction: column; gap: 16px; }
.more-actions .form { padding-top: 12px; border-top: 1px solid #efe9e0; }
.guest-line { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #f1ece4; }
.guest-line:first-of-type { border-top: 0; }
.guest-line small { display: block; font-size: 12px; color: #7a7066; }
.guest-form { font-size: 12.5px; text-align: right; }
.form-ok { color: #2f7a3e; }
.form-missing { color: #a8372a; }
.form-later { color: #7a7066; }
.money { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; font-size: 14px; }
.money-note { font-size: 12.5px; color: #7a7066; grid-column: 1 / -1; }
.money-total { font-weight: 700; padding-top: 6px; border-top: 1px solid #efe9e0; }
.guest-note { margin-top: 8px; font-size: 12.5px; }
.arrival-form { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.arrival-form .check { display: flex; gap: 8px; align-items: center; }
.arrival-form .check input { width: auto; margin: 0; }
.arrival-time { display: flex; gap: 8px; align-items: center; }
.arrival-time label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #6b6158; }
.arrival-time input { width: 72px; padding: 6px 8px; border: 1px solid #d5cdc0; border-radius: 8px; font: inherit; font-size: 14px; }
.namesakes { border-color: #e3b58c; }
.namesake { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.namesake .link-line { flex: 1; min-width: 0; }

/* Confirmation window (owner, 2026-09-25): our own, never the browser's. */
.confirm-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(42, 38, 34, 0.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.confirm-backdrop[hidden] { display: none; }
.confirm-box { position: relative; width: 440px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(42, 38, 34, 0.3); padding: 24px 26px 20px; display: flex; flex-direction: column; gap: 10px; }
.confirm-box h2 { font-size: 24px; margin: 0; line-height: 1.15; }
.confirm-box p { margin: 0; font-size: 15px; color: #4d463f; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.confirm-actions .btn { min-width: 96px; justify-content: center; }

/* "Paid at reception": the amount shows only for a part (owner, 2026-09-25). */
.pay-sheet .part-amount { display: none; }
.pay-sheet form:has(input[name=part][value=part]:checked) .part-amount { display: flex; }
.modal-box:has(.pay-sheet) { width: 560px; padding: 28px 30px; }
.cancel-sheet .btn-plain { align-self: center; }

/* "Today" filter (owner, 2026-09-25): how many arrive or leave, and where they stand. */
.today-summary { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #faf3ea; border: 1px solid #ecdcc6; font-size: 14px; font-weight: 600; color: #4d463f; }

/* The booking's Money settings and the small windows they open (owner, 2026-09-25). */
.card-links { display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
.link-button { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; color: #a85d1e; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.settings { display: flex; flex-direction: column; margin-top: 6px; }
.setting { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #efe8dd; font-size: 14px; }
.setting > span:last-child { display: flex; gap: 14px; justify-content: flex-end; }
.dialog-sheet { display: flex; flex-direction: column; gap: 14px; }
.dialog-sheet h2 { font-size: 26px; margin: 0; }
.dialog-sheet p { margin: 4px 0 0; }
.dialog-sheet .form { gap: 12px; }

/* Every drop-down draws its own arrow, away from the right edge (owner, 2026-09-25). */
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b6158' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
/* The × of windows and of the side panel: two strokes, exactly in the middle of the square. */
.modal-x, .drawer-close { font-size: 0; padding: 0; }
.modal-x::before, .modal-x::after, .drawer-close::before, .drawer-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; border-radius: 1px; background: currentColor; }
.modal-x::before, .drawer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-x::after, .drawer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
/* The booking's windows: space between the answer and its button; the deadline greys out
   when the guest pays at reception. */
.dates-preview { display: flex; flex-direction: column; gap: 12px; }
#dates-result:not(:empty) { margin-top: 2px; }
.terms-form:has(select[name=payment] option[value=at_reception]:checked) .due-field { opacity: 0.4; pointer-events: none; }

/* The stay a booking pointed at ("Show in planner"): a white gap and a ring in the bar's own
   ink (plum on a woman's stay, navy on a man's, dark brown otherwise), breathing three times
   with a soft halo, then a quiet ring stays (owner, 2026-09-25). */
@keyframes bar-found {
  0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px currentColor, 0 0 0 4px transparent; }
  50% { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px currentColor, 0 0 14px 7px color-mix(in srgb, currentColor 28%, transparent); }
}
.bar.bar-found { animation: bar-found 1.1s ease-in-out 3; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px currentColor; z-index: 3; }

/* The extension window: the amount field shows only for "A part now". */
.extend-form .part-amount { display: none; }
.extend-form:has(input[name=pay][value=part]:checked) .part-amount { display: flex; }
.extend-form .cancel-choices { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Settings: the pages it opens (owner, 2026-09-25). */
.settings-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.settings-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: inherit; text-decoration: none; }
.settings-link:hover { border-color: #d9b48e; }
.settings-link b { color: #a85d1e; }

/* The Inbox (owner, 2026-09-25; docs/14 section 4). */
.nav-count { display: flex; align-items: center; }
.nav-row { position: relative; }
.nav-row .nav-count:has(+ .nav-badge-mine) { padding-right: 46px; }
.nav-badge-mine { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); margin: 0; background: #fff; color: #a85d1e; border: 1.5px solid #c4702a; text-decoration: none; }
.nav-badge-mine:hover { background: #fcefe2; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #c4702a; color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.mail { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.mail-folders { display: flex; flex-direction: column; gap: 2px; }
.mail-folder { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: #4d463f; text-decoration: none; font-size: 14px; }
.mail-folder:hover { background: #f4ede3; }
.mail-folder.on { background: #fcefe2; color: #7a3f12; font-weight: 700; }
.mail-folder small { color: #8a8076; font-weight: 700; }
.mail-list { padding: 0; overflow: visible; }
.mail-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #efe8dd; }
.mail-search { margin-left: auto; min-width: 200px; padding: 6px 10px; border: 1px solid #d5cdc0; border-radius: 8px; font: inherit; font-size: 13.5px; }
.mail-row { display: grid; grid-template-columns: 22px 24px 190px minmax(0, 1fr) 90px; gap: 10px; align-items: start; padding: 10px 12px; border-bottom: 1px solid #f3ede4; color: #2a2622; text-decoration: none; font-size: 13.5px; }
.mail-row:not(:has(.mail-check)) { grid-template-columns: 24px 190px minmax(0, 1fr) 90px; }
.mail-open { display: contents; color: inherit; text-decoration: none; }
.mail-row.ticked { background: #fcefe2; }
.mail-check { display: flex; align-items: center; justify-content: center; height: 20px; cursor: pointer; }
.mail-check input { width: 15px; height: 15px; accent-color: #c4702a; cursor: pointer; }
.mail-bulk-actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mail-row:hover { background: #faf6f0; }
.mail-row.unread { background: #fffaf4; }
.mail-row.unread .mail-who, .mail-row.unread .mail-subject { font-weight: 700; }
.mail-star { color: #c4702a; font-size: 20px; line-height: 20px; width: 24px; height: 22px; padding: 0; border: none; background: none; cursor: pointer; border-radius: 6px; }
.mail-star:hover { background: #fcefe2; }
.mail-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-who small { color: #8a8076; }
.mail-main { min-width: 0; }
.mail-subject, .mail-snippet { white-space: nowrap; }
.mail-main { overflow: hidden; text-overflow: ellipsis; }
.mail-snippet { color: #8a8076; }
.mail-tags { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.tag-booking { background: #e7f0e3; color: #2f5a22; }
.tag-waiting { background: #fcefe2; color: #7a3f12; }
.tag-owner { background: #e6eef7; color: #1f3d5c; }
.tag-decision { background: #f7e1dc; color: #8a2b1c; }
.tag-intent { background: #fcefe2; color: #7a3f12; }
.mail-tags .tag:not([class*="tag-"]) { background: #f1ede6; color: #5f574f; }
.mail-tags .tag { font-size: 11px; padding: 1px 7px; border-radius: 6px; }
.mail-at { color: #8a8076; font-size: 12px; text-align: right; }
.mail-empty { padding: 16px; margin: 0; }
.mail-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mail-head h1 { font-size: 28px; margin: 0; flex: 1; min-width: 240px; }
.mail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mail-thread { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; margin-top: 12px; }
.mail-messages { display: flex; flex-direction: column; gap: 10px; }
.mail-messages .msg { background: #fff; border: 1px solid #e8e0d4; border-radius: 12px; padding: 12px 14px; max-width: none; align-self: stretch; }
.mail-messages .msg-out { background: #fbf8f3; }
.msg-note { font-size: 12.5px; margin-top: 6px; }
.mail-signature { margin: 0; font: inherit; font-size: 12.5px; color: #8a8076; white-space: pre-wrap; }
.mail-context { display: flex; flex-direction: column; gap: 12px; }
.mail-assign { flex-direction: row; gap: 6px; margin-top: 6px; }
.mail-assign select, .mail-assign input { flex: 1; min-width: 0; }
@media (max-width: 900px) { .mail, .mail-thread { grid-template-columns: 1fr; } .mail-row, .mail-row:not(:has(.mail-check)) { grid-template-columns: 22px 20px minmax(0, 1fr) 70px; } .mail-who { grid-column: 3; } .mail-main { grid-column: 3 / 5; } }
.mail-pill { font: inherit; font-size: 13px; padding: 5px 11px; border: 1px solid #d5cdc0; border-radius: 999px; background: #fff; color: #4d463f; cursor: pointer; }
.mail-pill.on { border-color: #c4702a; background: #fcefe2; color: #7a3f12; font-weight: 700; }

/* The reply box (owner, 2026-09-25): like a mail program's, padded, the send button on the right. */
.reply-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.reply-to { font-size: 13.5px; padding-bottom: 8px; border-bottom: 1px solid #efe8dd; }
.reply-box textarea { width: 100%; box-sizing: border-box; min-height: 150px; resize: vertical; padding: 10px 12px; border: 1px solid #d5cdc0; border-radius: 10px; font: inherit; font-size: 14px; line-height: 1.5; background: #fff; color: #2a2622; }
.reply-box textarea:focus { outline: none; border-color: #c4702a; box-shadow: 0 0 0 3px rgba(196, 112, 42, 0.12); }
.reply-signature { margin: 0; padding: 8px 12px; border-left: 3px solid #efe3d3; font: inherit; font-size: 12.5px; color: #8a8076; white-space: pre-wrap; }
.reply-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.reply-attach { cursor: pointer; }
.reply-files:not(:empty) { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.reply-files .notice { flex-basis: 100%; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line, #ddd); border-radius: 999px; font-size: 12.5px; color: inherit; text-decoration: none; background: #fff; max-width: 100%; overflow-wrap: anywhere; }
a.file-chip:hover { border-color: #4c63b6; }
.reply-actions .btn { min-width: 120px; justify-content: center; }

/* Two-way translation (owner, 2026-09-25). */
.msg-translation { margin-top: 8px; padding: 8px 12px; border-left: 3px solid #d9b48e; background: #fdf8f1; font-size: 13.5px; white-space: pre-wrap; }
.msg-translation .lbl { display: block; margin-bottom: 4px; }
.msg-original { margin-top: 6px; font-size: 12.5px; color: #8a8076; white-space: pre-wrap; }
.msg-original summary { cursor: pointer; color: #a85d1e; }

/* Proposals under a guest's email (owner, 2026-09-25; docs/14 section 4.3): the tool's
   suggestions, in a cool colour so they never look like an email (owner, 2026-09-26). */
.mail-subject-original { font-size: 13px; margin-top: 2px; }
.proposals { padding: 12px 14px 12px 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid #cdd6ee; border-left: 4px solid #4c63b6; border-radius: 12px; background: #eef2fb; }
.proposals-head { display: flex; align-items: center; gap: 8px; }
.proposals-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: #4c63b6; color: #fff; font-size: 12px; }
.proposals-title { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #34478f; }
.proposals-model { margin-left: auto; font-size: 12px; color: #6b76a0; }
.proposals-reading { margin: 0; font-size: 13px; color: #56608a; }
.proposals-done { font-size: 13.5px; color: #2f5a27; background: #e3f1e0; border-radius: 8px; padding: 7px 10px; }
.proposals-others summary { cursor: pointer; font-size: 13px; color: #34478f; }
.proposals-others[open] summary { margin-bottom: 8px; }
.proposals-others .proposal + .proposal { margin-top: 8px; }
.proposal { padding: 10px 12px; border: 1px solid #d9e0f2; border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.proposal-title { font-size: 14px; }
.proposal-facts { display: flex; gap: 6px; flex-wrap: wrap; }
.proposal-facts .chip { font-size: 12px; background: #f4f6fc; border-color: #d9e0f2; }
.proposal-text { font-size: 13.5px; white-space: pre-wrap; padding: 8px 10px; border-left: 3px solid #9fb0e0; background: #f7f9fe; border-radius: 0 8px 8px 0; }
.proposal .msg-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.proposals-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #56608a; }
.proposals-foot .link-button { color: #34478f; }
.reply-using { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: #fcefe2; color: #7a3f12; }

/* The quoted history under an email, folded like a mail program does (owner, 2026-09-26). */
.msg-quoted { margin-top: 6px; }
.msg-quoted summary { display: inline-block; list-style: none; cursor: pointer; padding: 0 8px; border-radius: 6px; background: #efe8dd; color: #6b6259; font-size: 12px; line-height: 16px; letter-spacing: 1px; }
.msg-quoted summary::-webkit-details-marker { display: none; }
.msg-quoted-text { margin-top: 6px; padding-left: 10px; border-left: 3px solid #e8e0d4; color: #8a8076; font-size: 13px; white-space: pre-wrap; }

/* The booking's emails in its file, one line each (owner, 2026-09-26). */
.file-mails { display: flex; flex-direction: column; margin: 4px -4px 0; }
.file-mail { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 1px; padding: 7px 4px; border-top: 1px solid #f3ede4; color: #2a2622; text-decoration: none; font-size: 13px; border-radius: 6px; }
.file-mail:first-child { border-top: 0; }
.file-mail:hover { background: #faf6f0; }
.file-mail-dir { color: #a89e93; }
.file-mail.in .file-mail-dir { color: #c4702a; }
.file-mail-who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-mail-at { color: #8a8076; font-size: 12px; white-space: nowrap; }
.file-mail-text { grid-column: 2 / 4; color: #6b6259; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg:target { box-shadow: 0 0 0 3px rgba(196, 112, 42, 0.25); }
.file-mail-flag { grid-column: 2 / 4; justify-self: start; margin-top: 3px; padding: 1px 8px; border-radius: 6px; background: #fcefe2; color: #7a3f12; font-size: 12px; }
.book-people { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.book-people legend { font-size: 13px; color: #6b6259; margin-bottom: 4px; }
.book-person { display: grid; grid-template-columns: minmax(0, 1fr) 110px 120px; gap: 6px; }
.book-person input, .book-person select { font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid #d5cdc0; border-radius: 8px; background: #fff; min-width: 0; }
.proposal-held { flex-basis: 100%; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: #e8f3e6; color: #2f5a27; }
/* Arrives late today (owner, 2026-09-26): an outline reception cannot miss. */
/* A stay needing reception's attention (owner, 2026-10-05; A200): an orange and a white ring
   inside the bar (nothing drawn outside it, so nothing shows over the bed names), and "!"
   where the name starts. */
.bar.attention { box-shadow: inset 0 0 0 2px #d9480f, inset 0 0 0 3.5px #fff; }
.bar-alert { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #d9480f; color: #fff; font-size: 11px; font-weight: 800; margin-right: 6px; vertical-align: -2px; flex: none; }
.grid[data-zoom="2"] .bar-alert, .grid[data-zoom="1"] .bar-alert { display: none; }
/* Blocking several rooms (owner, 2026-09-26): the drag's rectangle. */
.grid.blocking .days { cursor: crosshair; }
.block-sel { position: relative; z-index: 3; grid-row: 1; align-self: stretch; margin: 2px 0; border-radius: 6px; background: rgba(76, 99, 182, 0.18); border: 1px dashed #4c63b6; pointer-events: none; }
.block-rooms { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.block-rooms legend { font-size: 13px; color: #6b6259; margin-bottom: 4px; }

/* The waiting list window (owner, 2026-09-26). */
.waitlist .wl-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.wl-item { border: 1px solid #efe3d3; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.wl-item.wl-offered { border-color: #9fcf95; background: #f3faf1; }
.wl-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wl-pos { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #efe8dd; align-items: center; justify-content: center; font-size: 12px; }
.wl-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.wl-actions input[type=datetime-local] { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid #d5cdc0; border-radius: 6px; }
.wl-add summary { cursor: pointer; color: #a85d1e; }

/* Planner zoom (owner, 2026-09-26): level 4 is the usual size; lower levels make rows lower
   and nights narrower; level 0 shows one row per room with the taken beds per night. */
.zoom { display: inline-flex; gap: 4px; }
.zoom .btn { min-width: 36px; justify-content: center; font-size: 16px; }
.zoom .btn:disabled { opacity: .45; cursor: default; }
.roomrow { display: none; }
.grid[data-zoom="5"] { --col: 64px; }
.grid[data-zoom="5"] .bedrow { height: 42px; }
.grid[data-zoom="5"] .bar { height: 30px; margin: 6px 1px; font-size: 13.5px; }
.grid[data-zoom="3"] { --col: 40px; --label: 124px; }
.grid[data-zoom="3"] .bedrow { height: 28px; }
.grid[data-zoom="3"] .bar { height: 20px; margin: 4px 1px; font-size: 11.5px; padding: 0 6px; }
.grid[data-zoom="3"] .roomhdr { height: 26px; }
.grid[data-zoom="2"] { --col: 30px; --label: 112px; }
.grid[data-zoom="2"] .bedrow { height: 20px; }
.grid[data-zoom="2"] .bar { height: 14px; margin: 3px 1px; font-size: 10px; padding: 0 4px; border-radius: 4px; }
.grid[data-zoom="2"] .roomhdr { height: 22px; font-size: 11.5px; }
.grid[data-zoom="1"] { --col: 22px; --label: 104px; }
.grid[data-zoom="1"] .bedrow { height: 12px; }
.grid[data-zoom="1"] .bar { height: 8px; margin: 2px 1px; font-size: 0; padding: 0; border-radius: 3px; }
.grid[data-zoom="1"] .bar .bar-grip { display: none; }
.grid[data-zoom="1"] .roomhdr { height: 20px; font-size: 11px; }
.grid[data-zoom="0"] { --col: 22px; --label: 176px; }
.grid[data-zoom="0"] .bedrow, .grid[data-zoom="0"] .roomhdr { display: none; }
.grid[data-zoom="0"] .roomrow { display: flex; height: 24px; border-bottom: 1px solid #efe9e0; width: calc(var(--label) + var(--days) * var(--col)); }
.grid[data-zoom="0"] .roomrow .bedlbl { display: flex; align-items: center; font-size: 12px; overflow: hidden; }
.grid[data-zoom="0"] .roomrow .tag { font-size: 9.5px; padding: 1px 4px; }
.grid[data-zoom="2"] .roomhdr .small, .grid[data-zoom="1"] .roomhdr .small { display: none; }
.grid[data-zoom="2"] .bedlbl, .grid[data-zoom="1"] .bedlbl { font-size: 10.5px; }
.grid[data-zoom="1"] .bedlbl .muted, .grid[data-zoom="1"] .bedlbl .bedbtn { font-size: 9.5px; }
.grid[data-zoom="1"] .bedlbl .muted { display: none; }
.grid[data-zoom="2"] .dayhead, .grid[data-zoom="1"] .dayhead, .grid[data-zoom="0"] .dayhead { font-size: 9.5px; }
.grid[data-zoom="2"] .dayhead b, .grid[data-zoom="1"] .dayhead b, .grid[data-zoom="0"] .dayhead b { font-size: 11px; }
.grid[data-zoom="1"] .areahdr, .grid[data-zoom="0"] .areahdr { height: 24px; font-size: 11.5px; }
.roomdays { display: grid; }
.rn { grid-row: 1; margin: 3px 1px; border-radius: 4px; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.rn-some { background: #f4dcc0; color: #7a4512; }
.rn-full { background: #c4702a; color: #fff; }
.rn-blocked { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 3px, transparent 3px 6px); }

/* The blocking menu of the planner (owner, 2026-09-26). */
.block-menu > summary { cursor: pointer; }
.block-menu .dropdown-menu { left: auto; right: 0; min-width: 300px; }
.dropdown-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border: none; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #2a2622; cursor: pointer; }
.dropdown-item .faint { font-size: 12px; font-weight: 400; }
.dropdown-item:hover, .dropdown-item:focus-visible { background: #faf5ee; outline: none; }
.website-closed { margin: 0 0 10px; }
.block-menu > summary.btn-danger { background: #f6e3e0; border-color: #e3b9b2; color: #7a2a20; font-weight: 700; }

/* The list's one bar (owner, 2026-09-26). */
.mail-tools { flex-wrap: nowrap; min-height: 52px; }
.mail-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.mail-filters .mail-search { margin-left: auto; min-width: 180px; max-width: 280px; flex: 1; }
.mail-check-all { flex: 0 0 22px; }
.mail-bulk-actions { flex: 1; }
.mail-bulk-actions[hidden] { display: none; }
.mail-bulk-count { font-size: 13px; font-weight: 700; color: #7a3f12; margin-right: 4px; }
.mail-handover .dropdown-menu { min-width: 220px; }
.mail-pages { display: flex; align-items: center; gap: 6px; margin-left: 8px; white-space: nowrap; font-size: 13px; }
.mail-pages [aria-disabled="true"] { opacity: .4; cursor: default; }
#bulk-result:empty, #check-result:empty { display: none; }
.check-icon { font-size: 15px; }
.mail-filters[hidden] { display: none; }

/* The thread's bar and title (owner, 2026-09-26). */
.mail-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mail-bar form { display: inline-flex; margin: 0; }
.mail-bar .dropdown-menu { left: auto; right: 0; }
.mail-move .dropdown-menu form { display: block; }
.mail-move .dropdown-item { width: 100%; }
.mail-title { margin-top: 14px; }
.mail-title h1 { font-size: 28px; margin: 0; }
.mail-with { font-size: 13px; margin-top: 4px; }
.mail-bar .spacer { flex: 1; }
.msg-translation-wait .faint::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border: 2px solid #e3b58c; border-top-color: transparent; border-radius: 50%; animation: spin 0.9s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.mail-owner .dropdown-menu form, .mail-owner .dropdown-item { display: block; width: 100%; }
.mail-owner .dropdown-item { display: flex; }
.mail-owner summary b { font-weight: 700; color: #7a3f12; }
.mail-owner-line { font-size: 13px; margin-right: 6px; }

/* New-email notices (owner, 2026-09-26): variant A, slide in at the top right. */
.mail-notices { position: fixed; top: 14px; right: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: 340px; max-width: calc(100vw - 32px); pointer-events: none; }
.mail-notice { position: relative; display: block; pointer-events: auto; padding: 10px 34px 10px 12px; background: #fff; border: 1px solid #e3dbcf; border-left: 4px solid #c4702a; border-radius: 0 12px 12px 0; box-shadow: 0 12px 30px rgba(42, 38, 34, 0.16); color: #2a2622; text-decoration: none; font-size: 13px; animation: notice-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.mail-notice.again { animation: none; }
.mail-notice:hover { border-color: #d9c7b1; border-left-color: #a85d1e; background: #fffaf4; }
.mail-notice.leaving { transition: opacity .2s, transform .2s; opacity: 0; transform: translateX(40px); }
@keyframes notice-in { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.mail-notice-head { display: flex; justify-content: space-between; color: #8a8076; font-size: 12px; }
.mail-notice-who { font-weight: 700; margin-top: 3px; }
.mail-notice-subject { margin-top: 1px; }
.mail-notice-snippet { color: #8a8076; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-notice-tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.mail-notice-tags .tag { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #f1ede6; color: #5f574f; }
.mail-notice-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; padding: 0; border: none; border-radius: 6px; background: none; color: #8a8076; font-size: 18px; line-height: 22px; cursor: pointer; }
.mail-notice-x:hover { background: #f4ede3; color: #2a2622; }
.mail-notice-more { pointer-events: auto; align-self: flex-end; padding: 6px 12px; background: #fff; border: 1px solid #e3dbcf; border-radius: 999px; box-shadow: 0 6px 16px rgba(42, 38, 34, 0.12); color: #a85d1e; font-size: 12.5px; font-weight: 700; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .mail-notice { animation: none; } }

/* Closing a period (owner, 2026-09-26; A152). */
.website-closed { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.period-cancel { border: 1px solid #e3b9b2; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: #fdf6f4; }
.period-cancel-more { display: flex; flex-direction: column; gap: 8px; }
.period-cancel-more[hidden] { display: none; }
.period-summary ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.period-list { max-height: 180px; overflow-y: auto; font-size: 12.5px; }

/* Events and seasons (owner, 2026-09-27). */
.event-cards { display: flex; flex-direction: column; gap: 8px; }
.event-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
.event-card:hover { border-color: #d9c7b1; background: #fffaf4; }
.event-name { font-weight: 700; font-size: 15px; }
.event-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-soft { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 6px; background: #f1ede6; color: #5f574f; }
.chip-warm { background: #fcefe2; color: #7a3f12; }
.more-fields > summary { cursor: pointer; color: #a85d1e; font-size: 13px; }
.more-fields[open] > summary { margin-bottom: 8px; }
.section-lbl { margin: 6px 2px -4px; }

/* Seasons over the planner's dates (owner, 2026-09-27): a band and the season's name. */
.dayhead > div { position: relative; }
.group-person { border: 1px solid #e3dbcf; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }

/* New group and Edit (owner, 2026-09-28): no sideways scroll, the button always at the bottom. */
.modal-box:has(.group-dialog) { width: 540px; padding-bottom: 0; overflow-x: hidden; }
.group-form { gap: 0; }
.group-form-head { padding-bottom: 12px; }
.group-form-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.group-form-body input, .group-form-body select { min-width: 0; width: 100%; box-sizing: border-box; }
.group-form-body .check input { width: auto; }
.group-form-body [hidden] { display: none; }
.group-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.group-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.group-rooms { font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.room-list { display: flex; flex-direction: column; border: 1px solid #e3dbcf; border-radius: 10px; overflow: hidden; }
.room-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) 40px 64px; gap: 8px; align-items: center; padding: 6px 10px; border-top: 1px solid #f1ede6; }
.room-line:first-child { border-top: none; }
.room-head { font-size: 11.5px; color: #8a8279; text-transform: uppercase; letter-spacing: 0.03em; background: #faf6f0; }
.room-name, .room-rule { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form .room-line input[type=number] { padding: 4px 6px; }
.room-others summary { cursor: pointer; color: #7a4512; padding: 4px 0; }
.room-others .room-list { margin-top: 6px; }
.group-form-foot, .sheet-foot { position: sticky; bottom: 0; background: #ffffff; margin: 12px -22px 0; padding: 12px 22px 16px; border-top: 1px solid #efe8dd;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-foot { justify-content: flex-end; }
.modal-box:has(.resident-dialog) { width: 540px; padding-bottom: 0; overflow-x: hidden; }
.resident-dialog select, .resident-dialog input:not([type=checkbox]) { min-width: 0; width: 100%; box-sizing: border-box; }
.resident-bed { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.group-form-result { flex-basis: 100%; order: -1; }
.group-form-result:empty { display: none; }
[data-group-count].short { color: #8a2f22; }
@media (max-width: 520px) { .room-line { grid-template-columns: minmax(0, 1fr) 36px 56px; } .room-rule { display: none; } }
.group-progress { display: flex; gap: 10px; margin: 10px 0; }
.group-progress > div { flex: 1; background: #faf6f0; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.group-progress b { font-size: 22px; }
.group-progress span { font-size: 12.5px; color: #6b645b; }

/* One list of groups, events and seasons (owner, 2026-09-27). */
.schedule-filters { margin: 4px 0 10px; }
.schedule-filters .dropdown-menu { min-width: 200px; }
.kind-group { background: #e8eefb; color: #2f4a8a; }
.kind-event { background: #f3e8f7; color: #6b3a80; }
.kind-season { background: #fcefe2; color: #7a3f12; }
.status-now { background: #e6f1e8; color: #2f5f3a; }
.status-past { color: #9a928a; }
.chip-alert { background: #fbe9e6; color: #8a2f22; }
/* A guest checked in before the room was ready (A187): first on the board. */
.chip-waiting { background: #b3261e; color: #fff; font-weight: 600; white-space: nowrap; }
.chip-soft.hk-rent { background: #f5ecdc; color: #8a6d3e; font-weight: 600; white-space: nowrap; }
.needs-attention { border-color: #e3b9b2; }
.fill-bar { height: 5px; width: 200px; background: #f1ede6; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.fill-bar span { display: block; height: 100%; background: #c4702a; }
.event-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.past-cards > summary { cursor: pointer; color: #8a8076; margin: 10px 2px; }
a.pill { text-decoration: none; }

/* The list as rows of fixed columns (owner, 2026-09-27). */
.schedule-head, .schedule-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 36px; column-gap: 24px; align-items: center; }
.schedule-head { padding: 0 16px 6px; font-size: 11px; font-weight: 700; color: #8a8076; text-transform: uppercase; letter-spacing: .05em; }
.schedule-row { height: 60px; padding: 0 16px; background: #fff; border: 1px solid #e3dbcf; border-radius: 10px; cursor: pointer; }
.schedule-row:hover, .schedule-row:focus-visible { background: #fffaf4; border-color: #d9c7b1; outline: none; }
.schedule-row.needs-attention { border-color: #e9c2bb; }
.schedule-row .sc { min-width: 0; }
.schedule-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-tags { display: flex; gap: 4px; margin-top: 4px; white-space: nowrap; }
.schedule-tags .chip-soft { font-size: 11px; padding: 1px 7px; }
.schedule-row .v { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-row .sub { font-size: 12px; color: #8a8076; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-row .sub.late { color: #a33b2c; font-weight: 700; }
.schedule-row .dash { color: #c9c1b6; }
.schedule-row .fill-bar { width: 100%; margin-top: 6px; height: 4px; }
.sc-action { display: flex; justify-content: flex-end; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #d5cdc0; background: #fff; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.icon-btn:hover { border-color: #c4702a; background: #fcefe2; }
.event-cards { gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; color: #4d463f; } .icon-btn:hover { color: #a85d1e; }

/* The group page (owner, 2026-09-28). */
.group-head { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.group-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-title h1 { margin: 0; }
.group-about { font-size: 13.5px; }
.group-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.group-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.group-stats > div { background: #ffffff; border: 1px solid #e3dbcf; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(42, 38, 34, 0.04); }
.group-stats b { font-size: 22px; }
.group-stats small { font-size: 13px; font-weight: 400; color: #6b645b; }
.group-stats span { font-size: 12.5px; color: #6b645b; }
.group-people-card { padding: 0; overflow: hidden; }
.group-people-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 6px; }
.group-people-head h2 { margin: 0; font-size: 17px; }
.group-people-head form { margin: 0; }
#release-result:not(:empty) { padding: 0 18px 8px; }
.group-people th, .group-people td { padding-left: 18px; }
.group-people th { white-space: nowrap; }
.group-people th:last-child, .group-people td:last-child { padding-right: 18px; }
@media (max-width: 640px) { .group-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Housekeeping (owner, 2026-09-29): today's board by rooms, the next days, the cleaners. */
.hk-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: 8px; }
.hk-toolbar { flex-wrap: wrap; gap: 8px; }
.hk-tabs .spacer { flex: 1; }
.hk-tabs a:not(.btn) { padding: 6px 14px; border-radius: 16px; border: 1px solid #d5cdc0; background: #fff; color: #2a2622; font-size: 13.5px; text-decoration: none; }
.hk-tabs a.on:not(.btn) { background: #2a2622; border-color: #2a2622; color: #fff; }
.hk-table { padding: 0; overflow: hidden; margin-bottom: 14px; }
.hk-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid #efe9e0; font-size: 13.5px; }
.hk-row:first-child { border-top: none; }
.hk-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8278; padding-top: 12px; padding-bottom: 8px; }
.hk-row-next { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr) minmax(0, 2.2fr); }
.hk-row-cleaners { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.hk-row .chip-soft { margin-top: 3px; }
.hk-w { background: #f7e3ec; color: #7a2e52; }
.hk-m { background: #e2ecf8; color: #1f4f86; }
.hk-off { color: #9a928a; }
.hk-actions { display: flex; gap: 6px; justify-content: flex-end; }
.hk-actions form { margin: 0; }
.hk-invite-slot:empty { display: none; }
.hk-invite-slot { padding: 0 18px 12px; }
.hk-invite { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hk-invite input { flex: 1; min-width: 240px; font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid #d5cdc0; border-radius: 8px; }
.hk-invite p { flex-basis: 100%; margin: 0; font-size: 12.5px; }
.hk-stats .hk-alert { border-color: #e3b9b2; }
.hk-stats .hk-alert b { color: #8a2f22; }
.hk-day-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px 6px; }
.hk-day-head h2 { margin: 0; font-size: 16px; }
.hk-day .hk-head { border-top: none; }
@media (max-width: 760px) { .hk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .hk-head { display: none; } }

/* The cleaners' board in Telegram (owner, 2026-09-29): a phone screen, big buttons. */
.hk-app-body { background: #faf7f2; margin: 0; }
.hk-app { max-width: 560px; margin: 0 auto; padding: calc(var(--hk-top, 0px) + 14px) 12px 40px; color: #2a2622; font-size: 14px; }
/* Full screen before Telegram tells its buttons' height: the phone's notch and ~Telegram's bar. */
.hk-fullscreen { --hk-top: calc(env(safe-area-inset-top, 0px) + 56px); }
.hk-top { font-weight: 700; font-size: 16px; }
/* The title and the tabs stay put while the page scrolls under them (owner, 2026-10-01);
   the band reaches the top edge, under Telegram's own buttons in full screen. */
.hk-sticky { position: sticky; top: 0; z-index: 20; background: #faf7f2;
  margin: calc(-1 * (var(--hk-top, 0px) + 14px)) -12px 8px;
  padding: calc(var(--hk-top, 0px) + 14px) 12px 2px; border-bottom: 1px solid #ece4d8; }
.hk-sticky .hk-switch, .hk-sticky .hk-seg { margin-bottom: 8px; }
.hk-switch { display: flex; gap: 8px; margin: 10px 0 8px; }
.hk-switch button { flex: 1; font: inherit; padding: 9px; border-radius: 10px; border: 1px solid #e3dbcf; background: #fff; color: #2a2622; }
.hk-switch button.on { background: #2a2622; border-color: #2a2622; color: #fff; }
.hk-sub { color: #6b645b; font-size: 13px; margin-bottom: 10px; }
.hk-card { background: #fff; border: 1px solid #e3dbcf; border-radius: 14px; padding: 11px 12px; margin-bottom: 10px; }
.hk-card.faded { opacity: .55; }
.hk-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.hk-card-head b { font-size: 15px; margin-right: 2px; }
.hk-line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid #f1ede6; }
.hk-line span:last-child { text-align: right; }
.hk-line.done { color: #9a928a; text-decoration: line-through; }
.hk-note { color: #6b645b; font-size: 13px; margin-top: 6px; }
.hk-btn { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; padding: 11px; border-radius: 10px; border: none; background: #c4702a; color: #fff; font: inherit; font-weight: 700; text-align: center; }
.hk-btn.ok { background: #3f7d4e; }
.hk-btn.link { background: none; color: #7a4512; font-weight: 400; padding: 6px; }
.hk-btn.ghost { background: #fff; color: #8a8278; border: 1px solid #d5cdc0; font-weight: 400; }
.hk-empty { text-align: center; margin-top: 30px; }
.hk-noaccess { background: #fff; border: 1px solid #e3dbcf; border-radius: 14px; padding: 16px; margin-top: 20px; }

/* Housekeeping, stage 3 (owner, 2026-09-29): the manager's board, the team, the timeline. */
.hk-row-manage { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr) minmax(0, 1.9fr) minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); }
.hk-assign { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #d5cdc0; border-radius: 8px; background: #fff; max-width: 100%; }
.hk-row-team { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) repeat(6, minmax(0, 0.8fr)) minmax(0, 1.3fr); }
.hk-row-team .faint { font-size: 12px; }
.hk-bad { color: #8a2f22; font-weight: 700; }
.hk-period { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; font-size: 13px; }
.hk-period a { padding: 3px 10px; border-radius: 12px; border: 1px solid #d5cdc0; background: #fff; color: #2a2622; text-decoration: none; }
.hk-period a.on { background: #2a2622; border-color: #2a2622; color: #fff; }
.hk-only { margin: 0 0 10px; font-size: 13.5px; }
.tl-wrap { overflow: auto; max-height: calc(100vh - 128px); background: #fff; border: 1px solid #e3dbcf; border-radius: 12px; }
.tl { --label: 64px; --col: 34px; width: calc(var(--label) + var(--days) * var(--col)); font-size: 12px; }
.tl-headbox { display: flex; position: sticky; top: 0; z-index: 5; background: #faf8f4; border-bottom: 1px solid #e4ddd2; }
.tl-corner { display: flex; align-items: flex-end; padding-bottom: 8px; color: #8a8278; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.tl-dates { width: calc(var(--days) * var(--col)); }
.tl-days { display: grid; grid-template-columns: repeat(var(--days), var(--col)); text-align: center; font-size: 10.5px; color: #6b645b; line-height: 1.25; padding: 4px 0 5px; }
.tl-days b { font-size: 12.5px; color: #2a2622; }
.tl-days .tl-we { background: #f1ece3; }
.tl-days .today { color: #a85d1e; box-shadow: inset 0 -3px 0 #c4702a; }
.tl-days .today b { color: #a85d1e; }
.tl-label { width: var(--label); flex: 0 0 var(--label); padding-left: 10px; font-weight: 700; position: sticky; left: 0; z-index: 3; background: #fff; box-sizing: border-box; }
.tl-headbox .tl-label { background: #faf8f4; z-index: 6; }
.tl-area, .tl-room { border-top: 1px solid #efe9e0; background: #faf6f0; }
.tl-area span, .tl-room span { position: sticky; left: 0; display: inline-block; padding: 5px 10px; }
.tl-area span { font-weight: 700; font-size: 13px; }
.tl-room { background: #fdfbf8; }
.tl-room span { font-weight: 700; font-size: 11.5px; color: #4d463f; padding: 3px 10px; }
.tl-row { display: grid; grid-template-columns: var(--label) repeat(var(--days), var(--col)); grid-auto-rows: 26px; align-items: center; border-top: 1px solid #f4efe8;
  background: repeating-linear-gradient(90deg, transparent 0 calc(var(--col) - 1px), #f1ece4 calc(var(--col) - 1px) var(--col)) var(--label) 0 / calc(100% - var(--label)) 100% no-repeat; }
.tl-row > * { grid-row: 1; }
.tl-row .tl-label { grid-column: 1; height: 100%; display: flex; align-items: center; }
.tl-bar { height: 17px; margin: 0 1px; border-radius: 5px; background: #f3d5e2; border: 1px solid #d9a9bf; color: #6a2446; font-size: 10px; line-height: 17px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.tl-bar.m { background: #d6e4f5; border-color: #a9c2e3; color: #1f4f86; }
.tl-mark { justify-self: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.tl-c { background: #c4702a; }
.tl-i { background: #2f6f8f; }
.tl-r { background: #8a8278; }
.tl-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 10px; }
.tl-range { min-width: 230px; justify-content: center; font-weight: 700; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; color: #6b645b; align-items: center; }
.tl-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.tl-sep { width: 1px; height: 14px; background: #d5cdc0; }
.tl-sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; border-top: 4px solid; }
.tl-sw.band-group { border-color: #3f8f6a; }
.tl-sw.band-event { border-color: #c4702a; }
.tl-sw.band-season { border-color: #7b5ea8; }
.hk-invite-field { font: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid #d5cdc0; border-radius: 8px; min-width: 220px; }
.btn.copied { background: #e6f1e8; border-color: #bfd9c5; color: #2f5f3a; }
.hk-switch-4 button { padding: 8px 2px; font-size: 13px; }
.hk-select { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; font: inherit; padding: 9px 10px; border: 1px solid #d5cdc0; border-radius: 10px; background: #fff; }
.hk-pair { display: flex; gap: 8px; }
.hk-pair .hk-btn { flex: 1; }
.hk-back { border: none; background: none; color: #7a4512; font: inherit; padding: 0 0 8px; }
.hk-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.hk-nums div { background: #fff; border: 1px solid #e3dbcf; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: #6b645b; }
.hk-nums b { display: block; font-size: 17px; color: #2a2622; }
.hk-nums .bad b { color: #8a2f22; }
.hk-person { display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.hk-app .tl-wrap { margin: 0 -12px; border-radius: 0; border-left: none; border-right: none; }
.hk-row .chip-soft { white-space: nowrap; }

/* Groups, events and seasons over the dates (owner, 2026-09-29): a coloured line with the name
   under it, each on its own row above the weekdays; the planner and the housekeeping timeline. */
.dayhead-wrap { display: flex; flex-direction: column; }
.bands { display: grid; grid-template-columns: repeat(var(--days), var(--col)); grid-auto-rows: 17px; padding-top: 4px; }
.band { border-top: 4px solid; border-radius: 2px; margin: 0 1px; padding: 1px 4px 0; font-size: 10px; font-weight: 700; line-height: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band-group { border-color: #3f8f6a; color: #2f6f52; }
.band-event { border-color: #c4702a; color: #a85d1e; }
.band-season { border-color: #7b5ea8; color: #5e4488; }
.btn.btn-small { padding: 5px 11px; font-size: 12.5px; border: 1px solid #cfc6b9; background: #fff; border-radius: 8px; white-space: nowrap; }
.btn.btn-small:hover { border-color: #c4702a; }
/* The timeline's zoom (owner, 2026-09-29): smaller cells, more days on screen. */
.tl[data-zoom="0"] { --col: 22px; }
.tl[data-zoom="1"] { --col: 28px; }
.tl[data-zoom="3"] { --col: 44px; }
.tl[data-zoom="4"] { --col: 58px; }
.tl[data-zoom="0"] .tl-days, .tl[data-zoom="1"] .tl-days { font-size: 9px; }
.tl[data-zoom="0"] .tl-days b, .tl[data-zoom="1"] .tl-days b { font-size: 11px; }
.tl[data-zoom="0"] .tl-mark { width: 15px; height: 15px; font-size: 8.5px; }
.tl[data-zoom="3"] .tl-row, .tl[data-zoom="4"] .tl-row { grid-auto-rows: 30px; }
.tl[data-zoom="3"] .tl-bar, .tl[data-zoom="4"] .tl-bar { height: 21px; line-height: 21px; font-size: 11px; }
.tl-legend { margin-top: 6px; }
/* Today's line down the timeline and the past paler, as in the planner (owner, 2026-09-29). */
.tl { position: relative; }
.tl-now { position: absolute; top: 0; bottom: 0; left: calc(var(--label) + var(--at) * var(--col)); width: 2px; background: #c4702a; z-index: 2; pointer-events: none; }
.tl-bar.has-past { position: relative; }
.tl-bar.has-past::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--past) * var(--col) - 1px); background: rgba(255, 255, 255, 0.55); pointer-events: none; }
.tl-area span, .tl-room span { z-index: 3; background: inherit; border-radius: 0 4px 4px 0; }

/* Each team's menu (owner, 2026-09-29): the administrator's sections, the "soon" ones. */
.nav-section { margin: 12px 12px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #a09688; }
.nav-soon { color: #9a928a; }
.nav-soon span { font-size: 11px; color: #b4aba0; margin-left: 4px; }
.login-logo { display: block; width: 52px; height: 52px; margin-bottom: 12px; }
/* Users (owner, 2026-09-29). */
.users-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.4fr); }
.users-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-choice { gap: 6px; }
.form label.role-option { flex-direction: row; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid #e3dbcf; border-radius: 10px; cursor: pointer; }
.form label.role-option:has(input:checked) { border-color: #c4702a; background: #fcefe2; }
.role-option input { margin-top: 3px; }
.role-option > span { display: flex; flex-direction: column; gap: 1px; }
.role-option b { color: #2a2622; }
.role-choice { border: none; padding: 0; margin: 0; }
/* People sleeping here each night, under the dates (owner, 2026-09-30). */
.people-row { display: grid; grid-template-columns: repeat(var(--days), var(--col)); border-top: 1px dashed #e8e1d6; }
.people-row div { height: 18px; line-height: 18px; text-align: center; font-size: 10.5px; font-weight: 700; color: #2f5f3a; cursor: default; }
.grid-head .bedlbl-head { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; }
.bedlbl-head .people-lbl, .tl-corner .people-lbl { height: 18px; line-height: 18px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #8a8278; }
.tl-corner { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 0; }
.tl-corner > span:first-child { padding-bottom: 6px; }
.hk-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hk-stats .hk-people { border-color: #bfd9c5; }
.hk-stats .hk-people b { color: #2f5f3a; }
.grid[data-zoom="0"] .people-row div, .grid[data-zoom="1"] .people-row div, .tl[data-zoom="0"] .people-row div { font-size: 8.5px; }
.hk-sum { font-size: 12.5px; color: #6b645b; }
.hk-sum b { color: #2a2622; font-size: 14px; }
.hk-day-head { flex-wrap: wrap; gap: 16px; }
/* The admin in Telegram, 2026-09-30: five short tabs, numbers, the team. */
.hk-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: #efe8dd; border-radius: 10px; padding: 3px; margin: 10px 0 8px; }
.hk-seg button { font: inherit; font-size: 12px; padding: 7px 0; border: none; border-radius: 8px; background: none; color: #4d463f; }
.hk-seg button.on { background: #fff; color: #2a2622; font-weight: 700; box-shadow: 0 0 0 1px #e3dbcf; }
.hk-nums .good b { color: #2f5f3a; }
.hk-day-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 11.5px; color: #6b645b; margin-top: 4px; }
.hk-day-sum b { display: block; font-size: 17px; color: #2a2622; }
.hk-day-rooms summary { color: #7a4512; margin-top: 8px; cursor: pointer; }
.hk-add { margin-bottom: 10px; }
.hk-add > summary { list-style: none; }
.hk-add > summary::-webkit-details-marker { display: none; }
.hk-add-form { background: #fff; border: 1px solid #e3dbcf; border-radius: 14px; padding: 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.hk-opt { display: flex; gap: 8px; align-items: center; border: 1px solid #e3dbcf; border-radius: 10px; padding: 9px 10px; }
.hk-opt:has(input:checked) { border-color: #c4702a; background: #fcefe2; }
[data-gender-choice] { display: flex; flex-direction: column; gap: 8px; }
[data-gender-choice][hidden] { display: none; }
.hk-input { font: inherit; padding: 10px; border: 1px solid #d5cdc0; border-radius: 10px; }
.hk-name { border: none; background: none; font: inherit; font-weight: 700; font-size: 15px; padding: 0; color: #2a2622; }
.hk-right { text-align: right; margin-top: 6px; }
.hk-small { font: inherit; font-size: 13px; padding: 7px 12px; border: 1px solid #cfc6b9; border-radius: 9px; background: #fff; color: #2a2622; }
.hk-yours { margin-top: 8px; padding: 9px; border-radius: 10px; background: #e6f1e8; color: #2f5f3a; text-align: center; font-weight: 700; }
.hk-invite-box { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.hk-invite-box input { font: inherit; font-size: 12px; padding: 8px; border: 1px solid #d5cdc0; border-radius: 8px; }
/* Work that came during the day (owner, 2026-09-30): "New 13:05", the new line lit. */
.hk-new { background: #2f6f8f; color: #fff; }
.hk-line.new { background: #eaf2f7; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }

/* The timeline sideways on a phone (owner, 2026-10-01): the whole screen is the timeline;
   the title, the tabs and the legend come back upright. */
@media (orientation: landscape) and (max-height: 560px) {
  .hk-app:has(.hk-tl-tab) { max-width: none; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
  .hk-app:has(.hk-tl-tab) .hk-sticky,
  .hk-tl-tab > .hk-sub,
  .hk-tl-tab > .tl-legend { display: none; }
  .hk-tl-tab .tl-wrap { max-height: none; height: calc(100vh - env(safe-area-inset-top, 0px)); height: calc(100dvh - env(safe-area-inset-top, 0px)); border-radius: 0; border-left: 0; border-right: 0; }
}

/* ---- Settings (owner, 2026-10-02; docs/02 A178) ----------------------------------------- */
.settings-wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-nav { position: sticky; top: 12px; padding: 8px; display: flex; flex-direction: column; gap: 1px; }
.settings-nav .lbl { margin: 10px 8px 4px; font-size: 10px; }
.settings-nav .lbl:first-child { margin-top: 4px; }
.settings-nav a { padding: 6px 9px; border-radius: 7px; color: inherit; text-decoration: none; font-size: 13px; display: flex; justify-content: space-between; gap: 6px; }
.settings-nav a:hover { background: #f6efe6; }
.settings-nav a.on { background: #fbead9; color: #7a4512; font-weight: 600; }
.settings-nav a small { font-size: 10.5px; color: #9a9186; font-weight: 400; }
.settings-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.settings-who { font-size: 12px; color: #8a8278; }
.set-group { display: flex; flex-direction: column; }
.set-group + .set-group { margin-top: 10px; }
.set-group > .lbl { margin-bottom: 4px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 260px); gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid #f1ece4; }
.set-group .set-row:first-of-type { border-top: 0; }
.set-row.set-wide { grid-template-columns: 1fr; }
.set-label { font-size: 13px; line-height: 1.4; }
.set-input { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.set-row.set-wide .set-input { justify-content: stretch; }
/* Inputs and lists of Settings: full size, as in the other forms (owner, 2026-10-02). */
.set-input input:not([type=checkbox]):not([type=radio]), .set-input select, .set-input textarea,
.set-table input:not([type=checkbox]):not([type=radio]), .set-table select {
  box-sizing: border-box; height: 38px; padding: 0 12px; border: 1px solid #d5cdc0; border-radius: 8px;
  background-color: #fff; color: #2a2622; font: inherit; font-size: 14px; }
.set-input textarea { height: auto; padding: 9px 12px; line-height: 1.5; resize: vertical; }
.set-input input:focus, .set-input select:focus, .set-input textarea:focus,
.set-table input:focus, .set-table select:focus { outline: none; border-color: #c4702a; box-shadow: 0 0 0 3px rgba(196, 112, 42, .15); }
.set-input input:disabled, .set-input select:disabled, .set-input textarea:disabled,
.set-table input:disabled, .set-table select:disabled { background-color: #f7f4ef; color: #6b645b; }
.set-input input[type=number] { width: 88px; text-align: right; }
.set-input input[type=time] { width: 120px; }
.set-input input[type=text], .set-input input[type=email] { width: 100%; min-width: 220px; }
.set-input select { width: 100%; min-width: 220px; }
.set-input textarea { width: 100%; }
.set-input .unit { font-size: 12.5px; color: #8a8278; white-space: nowrap; }
/* The words after the last input share one width, so the inputs stand in a column. */
.set-input .unit:last-child { min-width: 128px; }
.set-input input[type=checkbox], .set-table input[type=checkbox] { width: 18px; height: 18px; accent-color: #c4702a; cursor: pointer; margin: 0; }
.set-note { font-size: 12px; color: #8a8278; line-height: 1.5; margin: 6px 0 0; }
.set-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.set-table th { text-align: left; font-weight: 600; color: #6b645b; font-size: 12px; padding: 6px 8px; white-space: nowrap; }
.set-table td { padding: 6px 8px; border-top: 1px solid #f1ece4; vertical-align: middle; white-space: nowrap; }
.set-table td:first-child { white-space: normal; min-width: 130px; }
.set-table input[type=number] { width: 76px; text-align: right; }
.set-table input[type=text] { width: 100%; min-width: 220px; }
.set-table select { min-width: 140px; width: 100%; }
.set-table td.wide-select select { min-width: 260px; }
.set-table td.center { text-align: center; }
.set-table.rooms input[type=text] { min-width: 200px; }
.set-table.rooms select { min-width: 112px; }
.set-table.rooms input[type=number] { width: 60px; }
.set-input label.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.set-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.set-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.trial { font-size: 12.5px; line-height: 1.5; }
.trial-item { border-top: 1px solid #f1ece4; padding: 8px 0; white-space: pre-wrap; }
.chips { display: inline-flex; gap: 4px; }
.chips label { display: inline-flex; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { border: 1px solid #d5cdc0; border-radius: 7px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; background: #fff; }
.chips input:checked + span { background: #2a2622; border-color: #2a2622; color: #fff; }
.chips input:focus-visible + span { outline: 2px solid #c4702a; outline-offset: 1px; }
.chips input:disabled + span { opacity: .6; cursor: default; }

/* The "i" of a setting and its explanation (static/info.js). */
.info { position: relative; display: inline-block; vertical-align: 1px; }
.info-i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; margin-left: 5px; border-radius: 50%; border: 1px solid #b9ae9f; background: #fff; color: #6b645b; font: 600 10px/1 Georgia, serif; cursor: pointer; }
.info-i:hover, .info-i[aria-expanded=true] { background: #c4702a; border-color: #c4702a; color: #fff; }
.info-pop { position: absolute; left: -14px; top: 24px; z-index: 40; width: 320px; max-width: calc(100vw - 32px); background: #2a2622; color: #fff; border-radius: 10px; padding: 11px 30px 11px 13px; font-size: 12.5px; line-height: 1.5; font-weight: 400; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 6px; white-space: normal; letter-spacing: normal; text-transform: none; }
.info-pop[hidden] { display: none; }
.info-pop::before { content: ""; position: absolute; top: -6px; left: 18px; border: 6px solid transparent; border-top: 0; border-bottom-color: #2a2622; }
.info-pop.info-left { left: auto; right: -14px; }
.info-pop.info-left::before { left: auto; right: 18px; }
.info-pop b { font-weight: 600; }
.info-ex { color: #eadfce; }
.info-who { font-size: 11.5px; color: #c4b8a6; }
.info-x { position: absolute; top: 5px; right: 7px; border: 0; background: none; color: #c4b8a6; font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 4px; }

@media (max-width: 860px) {
  .settings-wrap { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .settings-nav .lbl { width: 100%; }
  .set-row { grid-template-columns: 1fr; }
  .set-input { justify-content: flex-start; }
}

/* Room types sold online: the name on top, its terms under it (no table to cut them). */
.rt-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #6b645b; font-weight: 600; margin-bottom: 4px; }
.rt-row { border-top: 1px solid #f1ece4; padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.rt-top { display: flex; align-items: center; gap: 12px; }
.rt-top input[type=text] { flex: 1; min-width: 0; }
.rt-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rt-line label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6b645b; }
.rt-pair { display: flex; align-items: center; gap: 6px; color: #8a8278; }
.rt-pair input { width: 100% !important; min-width: 0; }
.rt-row input:not([type=checkbox]), .rt-row select { box-sizing: border-box; height: 38px; padding: 0 12px; border: 1px solid #d5cdc0; border-radius: 8px; background-color: #fff; color: #2a2622; font: inherit; font-size: 14px; width: 100%; }
.rt-row input[type=number] { text-align: right; }
.rt-row input:focus, .rt-row select:focus { outline: none; border-color: #c4702a; box-shadow: 0 0 0 3px rgba(196, 112, 42, .15); }
.rt-row input:disabled, .rt-row select:disabled { background-color: #f7f4ef; color: #6b645b; }
.rt-row label.check { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; color: #6b645b; }
.rt-row input[type=checkbox] { width: 18px; height: 18px; accent-color: #c4702a; margin: 0; }
.rt-new .rt-top input { border-style: dashed; }

/* Read only (owner, 2026-10-02): a setting this person cannot change is plainly grey, without
   a frame or an arrow, so it reads as a value, not a field. */
.set-input input:disabled:not([type=checkbox]):not([type=radio]), .set-input select:disabled, .set-input textarea:disabled,
.set-table input:disabled:not([type=checkbox]), .set-table select:disabled,
.rt-row input:disabled:not([type=checkbox]), .rt-row select:disabled {
  background-color: #efebe4; border-color: transparent; color: #6b645b; cursor: default;
  background-image: none; padding-right: 12px !important; box-shadow: none; opacity: 1; -webkit-text-fill-color: #6b645b; }
.set-input input[type=time]:disabled::-webkit-calendar-picker-indicator { display: none; }
.set-input input[type=checkbox]:disabled, .set-table input[type=checkbox]:disabled, .rt-row input[type=checkbox]:disabled { opacity: .55; cursor: default; }
.set-input textarea:disabled { resize: none; }

/* Settings → Glamping and containers: one small card per tent or container (docs/15). */
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.gl-unit { border: 1px solid #e3dbcf; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; background: #fff; }
.gl-unit b { font-size: 13.5px; }
.gl-unit label { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #6b645b; }
.gl-unit input[type=number], .gl-unit select { box-sizing: border-box; height: 32px; border: 1px solid #d5cdc0; border-radius: 7px; padding: 0 8px; background-color: #fff; font: inherit; font-size: 13px; color: #2a2622; }
.gl-unit input[type=number] { width: 60px; text-align: right; }
.gl-unit select { width: 96px; }
.gl-unit label.check { justify-content: flex-start; }
.gl-unit input[type=checkbox] { width: 16px; height: 16px; accent-color: #c4702a; margin: 0; }
.gl-unit.gl-off { background: #f7f4ef; }
.gl-unit input:disabled, .gl-unit select:disabled { background-color: #efebe4; border-color: transparent; background-image: none; padding-right: 8px !important; -webkit-text-fill-color: #6b645b; }
.set-input input[type=date] { width: 160px; }

/* The administrator's menu: every role's menu, folding (owner, 2026-10-02; A184). */
.nav-group { margin: 2px 0; }
.nav-group > summary.nav-section { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 7px; padding-right: 8px; }
.nav-group > summary.nav-section::-webkit-details-marker { display: none; }
.nav-group > summary.nav-section::after { content: "›"; margin-left: auto; font-size: 14px; color: #a9a196; transition: transform .15s; }
.nav-group[open] > summary.nav-section::after { transform: rotate(90deg); }
.nav-group > summary.nav-section:hover { background: #f6efe6; }
.nav-group > summary small { font-size: 10px; letter-spacing: 0; text-transform: none; color: #a9a196; font-weight: 400; }
.nav-group[open] { padding-bottom: 4px; }
.view-as-line { background: #fbead9; color: #7a4512; padding: 7px 18px; font-size: 13px; border-bottom: 1px solid #efd9bf; }
.view-as-line a { color: #a85d1e; margin-left: 8px; font-weight: 600; }
.profile-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
/* The centre switcher (A188): the centre's name at the top of the menu. */
.centre-switch { position: relative; }
.centre-switch > summary { list-style: none; cursor: pointer; border-radius: 10px; }
.centre-switch > summary::-webkit-details-marker { display: none; }
.centre-switch > summary:hover { background: #f6efe6; }
.centre-chev { font-size: 12px; color: #9a6a3a; }
.centre-menu { position: absolute; left: 0; top: calc(100% + 4px); width: 250px; z-index: 50; background: #fff; border: 1px solid #e3dbcf; border-radius: 10px; padding: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 2px; }
.centre-menu .lbl { padding: 6px 8px; }
.centre-menu form { margin: 0; }
.centre-item { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 8px; border-radius: 8px; border: 0; background: none; font: inherit; font-size: 13.5px; color: #2a2622; cursor: pointer; }
.centre-item > span:first-child { display: flex; flex-direction: column; }
.centre-item .faint { font-size: 12px; }
.centre-item:hover { background: #f6efe6; }
.centre-item.on { background: #fbeee2; cursor: default; }
.centre-all { display: block; border-top: 1px solid #eee3d6; margin-top: 6px; padding: 8px 8px 4px; font-size: 13px; }
.centres-row { grid-template-columns: 1.6fr 1fr .9fr 1.6fr .7fr .7fr 1.3fr; }
.centre-code { overflow-wrap: anywhere; color: #6b6158; }
/* New centre (A188). */
.centre-langs { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.centre-langs label { white-space: nowrap; }
.check.nowrap { white-space: nowrap; }
.centre-rooms { border: 1px solid #efe9e0; border-radius: 10px; }
.centre-room-row { grid-template-columns: .8fr 1.4fr .8fr 1.6fr .7fr .4fr; }
.centre-room-row input, .centre-room-row select { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #d9d1c5; border-radius: 8px; font: inherit; background: #fff; }
.centre-rooms-foot { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.centre-rooms-foot input { width: 80px; height: 34px; padding: 0 10px; border: 1px solid #d9d1c5; border-radius: 8px; font: inherit; }
.gl-note { font-size: 12px; }
.set-address { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.form-rows { display: flex; flex-direction: column; margin: 0; }
.centre-domain { gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid #efe9e0; }
.centre-domain b { min-width: 160px; }
/* Guests of other centres in the search (A188). */
.guest-section { margin: 8px 0 2px; }
.guest-other-note { font-size: 12px; margin: 2px 0 6px; }
/* "Keep it longer…" (A190). */
.keep-longer { margin-top: 8px; }
.keep-longer > summary { list-style: none; display: inline-flex; cursor: pointer; }
.keep-longer > summary::-webkit-details-marker { display: none; }
.keep-longer .form { margin-top: 8px; gap: 8px; }
/* A group by rooms (A191): the window's table of room types, the total, the group's page. */
.modal-box:has(.gr-dialog) { width: 660px; }
.gr-lbl { margin-bottom: -6px; }
.gr-rooms { width: 100%; border-collapse: collapse; font-size: 13px; }
.gr-rooms th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a8278; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #efe8dd; }
.gr-rooms td { padding: 5px 6px; border-bottom: 1px solid #f4efe7; vertical-align: middle; }
.gr-rooms .num { text-align: right; white-space: nowrap; }
.group-form-body .gr-rooms input { width: 64px; padding: 5px 8px; text-align: right; }
.gr-rooms tr.gr-sub td { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a8278; font-weight: 600; padding-top: 10px; border-bottom: 0; }
.gr-rooms tr.gr-zero td { color: #9a9288; }
.gr-pays { margin: 0; }
.gr-box { border-left: 3px solid #e7c9a0; padding: 2px 0 2px 12px; display: flex; flex-direction: column; gap: 10px; }
.gr-box [hidden], .gr-quote [hidden] { display: none; }
.gr-nowrap { white-space: nowrap; }
.gr-hint { font-size: 12.5px; margin: 0; }
.gr-total { background: #fbf6ee; border: 1px solid #ecdcc4; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
.gr-total .gr-big { font-size: 18px; }
.gr-total .gr-total-note { grid-column: 1 / -1; font-size: 12px; }
.gr-cards { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-bottom: 14px; }
.gr-cards .card { padding: 16px 18px; margin: 0; }
.gr-cards h2 { margin: 0 0 8px; font-size: 17px; }
.gr-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; margin-bottom: 10px; }
.gr-kv > span:nth-child(odd) { color: #6b645b; }
.gr-bar { height: 8px; background: #f0e9df; border-radius: 6px; overflow: hidden; margin: 6px 0 4px; }
.gr-bar i { display: block; height: 100%; background: #6a9a5b; }
.gr-small { font-size: 13px; }
.gr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gr-cards .gr-actions { margin-top: 10px; }
.gr-actions form { margin: 0; }
.gr-note { padding: 16px 18px; margin-top: 14px; background: #fffdf8; border-style: dashed; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gr-note textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid #d5cdc0; border-radius: 8px; }
@media (max-width: 760px) { .gr-cards { grid-template-columns: 1fr; } }
/* A family room's free bed is its booking's (A192): hatched, with their name. */
.bar.st-theirs { background: repeating-linear-gradient(135deg, #f6efe4 0 5px, #ece2d3 5px 7px); border: 1px dashed #c9b79c; color: #6b5a44; font-weight: 500; }
/* Ways to stay (A193): several rooms in one booking. */
.way-rooms { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.way-rooms li { margin: 3px 0; }
.way-best { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #e4efdf; color: #3f6b33; vertical-align: middle; margin-left: 6px; }
.way-more > summary { list-style: none; width: 100%; justify-content: center; margin: 4px 0 10px; box-sizing: border-box; }
.way-more > summary::-webkit-details-marker { display: none; }
.more-people { margin: 2px 0 8px; }
.more-people > summary { cursor: pointer; font-size: 14px; margin-bottom: 6px; }
.way-rooms-photos { list-style: none; padding: 0; }
.way-rooms-photos li { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.book-offer .way-rooms-photos li img { width: 64px; height: 48px; min-height: 0; max-height: 48px; object-fit: cover; border-radius: 6px; flex: none; grid-row: auto; }
/* A "Room ready" card (A187): green, the guest can go to the room. */
.mail-notice[data-room] { border-left-color: #4f8a5b; }
.mail-notice[data-room]:hover { border-left-color: #3f7049; background: #f6faf6; }

/* ===== Guest pages in the look of the centre's website (docs/20) ===== */
body.guest { --g-navy: #182752; --g-gold: #8d734a; --g-purple: #614776; --g-purple-dark: #4d3860; --g-lilac: #ddd6e9; --g-sand: #e6decd; --g-grey: #f2f2f2; --g-line: #e3e0ea; --g-muted: #5b6480; --g-green: #4f8a5b;
  background: #fff; color: var(--g-navy); font-family: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif; font-size: 16px; }
body.guest a { color: var(--g-purple); }
body.guest .serif { font-family: inherit; }
.g-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; border-bottom: 1px solid var(--g-line); background: #fff; }
.g-brand { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; }
.g-brand small { display: block; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--g-muted); font-size: 12px; }
.g-top-right { display: flex; gap: 18px; align-items: center; font-size: 14px; }
body.guest .guest-langs { margin: 0; display: flex; gap: 4px; }
body.guest .guest-langs a { border: 1px solid var(--g-line); border-radius: 99px; padding: 2px 10px; text-decoration: none; color: var(--g-navy); }
body.guest .guest-langs a[aria-current] { background: var(--g-navy); color: #fff; border-color: var(--g-navy); text-decoration: none; }
.g-steps { display: flex; justify-content: center; flex-wrap: wrap; padding: 12px 16px; background: var(--g-grey); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.g-steps span { padding: 4px 14px; color: #8a90a6; }
.g-steps span.on { color: var(--g-navy); font-weight: 700; border-bottom: 2px solid var(--g-gold); }
.g-steps span.done { color: var(--g-green); }
/* A step passed is a link back: the same green, a hand and a light green on hover. */
.g-steps a.done { padding: 4px 14px; color: var(--g-green); text-decoration: none; border-radius: 6px; }
.g-steps a.done:hover, .g-steps a.done:focus-visible { background: #e4efdf; text-decoration: underline; text-underline-offset: 4px; }
/* "Change dates or guests", "Choose another" under what was chosen. */
.g-change { display: block; width: max-content; margin-top: 3px; font-size: 13px; color: var(--g-purple); text-decoration: underline; text-underline-offset: 3px; }
/* A room's photos in full size (no script: the photo's address #photo-N opens it). */
.g-gallery a { display: block; min-height: 0; cursor: zoom-in; }
.g-gallery a:first-child { grid-row: 1 / 3; }
.g-lightbox { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(12, 16, 32, .92); align-items: center; justify-content: center; }
.g-lightbox:target { display: flex; }
.g-lightbox img { position: relative; z-index: 1; max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.g-lightbox .lb-close { position: absolute; inset: 0; cursor: zoom-out; }
.g-lightbox .lb-x, .g-lightbox .lb-prev, .g-lightbox .lb-next { position: absolute; z-index: 1; color: #fff; text-decoration: none; font-size: 30px; line-height: 1; padding: 10px 16px; border-radius: 99px; background: rgba(255,255,255,.12); }
.g-lightbox .lb-x { top: 18px; right: 18px; font-size: 26px; }
.g-lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.g-lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.g-lightbox .lb-x:hover, .g-lightbox .lb-prev:hover, .g-lightbox .lb-next:hover { background: rgba(255,255,255,.25); }
body.guest .guest-main { max-width: 760px; margin: 0 auto; padding: 26px 20px 44px; display: flex; flex-direction: column; gap: 18px; }
body.guest .guest-main.g-wide { max-width: 1040px; }
body.guest .guest-contact { text-align: center; color: var(--g-muted); font-size: 13px; padding: 24px 16px 36px; border-top: 1px solid var(--g-line); }
body.guest .card { background: #fff; border: 1px solid var(--g-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(24, 39, 82, .07); }
body.guest .guest-card { padding: 24px 26px; gap: 14px; }
body.guest h1, body.guest .guest-card h1 { color: var(--g-gold); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; font-size: 24px; margin: 0; }
body.guest h2 { color: var(--g-gold); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; font-size: 19px; margin: 0; }
body.guest h3 { margin: 0; font-size: 18px; color: var(--g-navy); }
body.guest .muted, body.guest .faint { color: var(--g-muted); }
body.guest .lbl { color: var(--g-gold); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: 13px; }
body.guest .form label, body.guest label { color: var(--g-muted); font-size: 13px; }
body.guest .form input, body.guest .form select, body.guest .form textarea, body.guest input[type=text], body.guest input[type=email], body.guest input[type=date], body.guest select { font: inherit; font-size: 15px; color: var(--g-navy); padding: 11px 12px; border: 1px solid #cfd2dd; border-radius: 10px; background: #fff; }
body.guest .form .check, body.guest label.check { color: var(--g-navy); font-size: 15px; }
body.guest .btn { border-radius: 6px; font: inherit; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; padding: 11px 22px; border: 1px solid var(--g-purple); color: var(--g-purple); background: #fff; }
body.guest .btn-primary { background: var(--g-purple); color: #fff; border-color: var(--g-purple); }
body.guest .btn-primary:hover { background: var(--g-purple-dark); }
body.guest .btn-lg { padding: 14px 26px; font-size: 16px; justify-content: center; }
body.guest .notice { border-radius: 10px; font-size: 14px; }
body.guest .notice-sample { background: var(--g-lilac); color: var(--g-navy); border: 0; }
body.guest .notice-ok { background: #e4efdf; color: #2f5f3a; border: 0; }
body.guest .notice-error { border-radius: 10px; }
body.guest .checkin-person { border-color: var(--g-line); border-radius: 12px; }
body.guest .checkin-person legend b { color: var(--g-gold); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
/* The booking page: the photo, the search over it, the facts. */
.g-hero { border-radius: 16px; background: linear-gradient(to top, rgba(24,39,82,.68), rgba(24,39,82,.12)), url("/static/img/hero-mural.webp") center/cover; color: #fff; text-align: center; padding: 56px 24px 110px; }
.g-hero h1 { color: #fff !important; font-weight: 300 !important; letter-spacing: .12em !important; font-size: 38px !important; }
.g-hero p { margin: 8px 0 0; font-size: 17px; }
.g-search { margin: -96px auto 0; width: min(860px, 100%); position: relative; padding: 26px 28px !important; }
.g-search .book-person { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-facts { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--g-muted); }
.g-facts b { color: var(--g-navy); }
.g-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
/* A way to stay (A193). */
body.guest .book-offer { display: grid; grid-template-columns: 260px minmax(0, 1fr) 210px; padding: 0; overflow: hidden; }
body.guest .book-offer > img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
body.guest .book-offer-body { padding: 18px 20px; gap: 6px; }
.g-side { padding: 18px 20px; border-left: 1px solid var(--g-line); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; gap: 6px; }
.g-price { font-size: 26px; font-weight: 700; white-space: nowrap; }
.g-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.g-tag { font-size: 12px; background: var(--g-grey); border-radius: 99px; padding: 3px 10px; color: var(--g-muted); }
body.guest .way-best { background: #e4efdf; color: #3f6b33; }
body.guest .way-rooms-photos li img { width: 70px; height: 52px; max-height: 52px; border-radius: 8px; }
body.guest .way-more > summary { border-radius: 14px; }
/* Details and payment: the form beside the stay's summary. */
.g-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.g-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--g-line); font-size: 15px; }
.g-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; margin-top: 6px; }
.g-note { background: var(--g-lilac); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.g-note.sand { background: var(--g-sand); }
.g-test { background: #fff4e5; border: 1px solid #f5c26b; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #6b4a12; }
.g-card-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
/* Done: the tick, what comes next. */
.g-done { text-align: center; padding: 36px 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.g-tick { width: 64px; height: 64px; border-radius: 50%; background: #e4efdf; color: var(--g-green); font-size: 34px; display: inline-flex; align-items: center; justify-content: center; }
.g-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.g-next .card { padding: 18px 20px; }
.g-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; height: 340px; margin-bottom: 16px; }
.g-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 12px; }
.g-gallery > img:first-child { grid-row: 1 / 3; }
.g-check { list-style: none; padding: 0; margin: 6px 0; }
.g-check li { margin: 6px 0; padding-left: 26px; position: relative; }
.g-check li::before { content: "✓"; position: absolute; left: 4px; color: var(--g-green); font-weight: 700; }
@media (max-width: 760px) {
  .g-top { padding: 12px 16px; } .g-help { display: none; }
  .g-hero { padding: 36px 16px 96px; } .g-hero h1 { font-size: 26px !important; }
  .g-search { padding: 18px 16px !important; }
  .g-cols, .g-next { grid-template-columns: 1fr; }
  body.guest .book-offer { grid-template-columns: 1fr; } body.guest .book-offer > img { height: 170px; min-height: 0; }
  .g-side { border-left: 0; border-top: 1px solid var(--g-line); flex-direction: row; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: center; text-align: left; }
  .g-side > :first-child { flex-basis: 100%; }
  .g-bar { flex-direction: column; align-items: flex-start; }
  .g-steps { font-size: 11px; } .g-steps span { padding: 4px 8px; }
  .g-gallery { height: 220px; }
}
body.guest .book-hero { border-radius: 16px; }
body.guest .book-hero h1 { color: #fff; }
.g-person { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
body.guest .g-line b { white-space: nowrap; }
body.guest fieldset.first-visit, body.guest fieldset.late-choice { border: 1px solid var(--g-line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
body.guest fieldset.first-visit legend, body.guest fieldset.late-choice legend { padding: 0 6px; color: var(--g-navy); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .g-person { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; } }
/* Each room of a way opens its own page of photos (docs/20). */
.way-rooms-photos .way-thumb { flex: none; display: block; border-radius: 8px; cursor: zoom-in; }
.way-rooms-photos .way-thumb:hover img { outline: 2px solid var(--g-purple); outline-offset: 1px; }
.way-room-link { font-size: 13px; color: var(--g-purple); text-decoration: underline; text-underline-offset: 3px; }
/* A room type's words and photos in Settings (docs/20 section 7). */
.rt-more { margin-top: 8px; border-top: 1px dashed #e6dfd3; padding-top: 8px; }
.rt-more summary { cursor: pointer; font-size: 13.5px; color: #6b645b; }
.rt-shop { font-size: 12px; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.rt-shop.ok { background: #e4efdf; color: #3f6b33; } .rt-shop.wait { background: #fdf0d8; color: #8a5a12; } .rt-shop.bad { background: #fbe3e1; color: #9a3027; }
.rt-desc { display: grid; gap: 4px; font-size: 13px; color: #6b645b; margin: 10px 0; }
.rt-desc textarea { font: inherit; padding: 8px 10px; border: 1px solid #d5cdc0; border-radius: 8px; width: 100%; box-sizing: border-box; }
.rt-photos { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.rt-ph { position: relative; } .rt-ph img { width: 132px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
.rt-ph-built img { opacity: .7; }
.rt-ph-tag { position: absolute; top: 4px; left: 4px; background: #182752; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.rt-ph-x { position: absolute; top: 4px; right: 4px; background: #fff; border: 0; border-radius: 99px; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.rt-ph-cover { position: absolute; bottom: 4px; left: 4px; background: rgba(255,255,255,.92); border: 0; border-radius: 6px; font-size: 11px; padding: 2px 6px; cursor: pointer; }
.ep-ph img { width: 300px; height: 100px; }
.rt-ph-add { position: relative; width: 132px; height: 90px; border: 2px dashed #c9bfae; border-radius: 8px; display: grid; place-items: center; color: #8a7f6d; font-size: 13px; cursor: pointer; text-align: center; }
.rt-ph-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rt-photos-msg { color: #9a3027; font-size: 13px; margin: 6px 0 0; }
/* Settings → What we sell online (docs/20 section 7). */
.sell-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.sell-card { background: #fff; border: 1px solid #e6dfd3; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.sell-card:hover { border-color: #d7b796; box-shadow: 0 2px 10px rgba(80, 60, 30, .08); }
.sell-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.sell-body { padding: 12px 14px; display: grid; gap: 6px; flex: 1; }
.sell-chips { display: flex; gap: 6px; flex-wrap: wrap; } .sell-chips span { font-size: 12px; background: #f3ede4; color: #6b645b; padding: 2px 8px; border-radius: 6px; }
.sell-price { font-size: 18px; font-weight: 700; color: #182752; }
.sell-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid #f0ebe3; }
.sell-pill { font-size: 12px; padding: 2px 9px; border-radius: 99px; }
.sell-pill.ok { background: #e4efdf; color: #3f6b33; } .sell-pill.wait { background: #fdf0d8; color: #8a5a12; } .sell-pill.bad { background: #fbe3e1; color: #9a3027; }
.sell-add { border-style: dashed; align-items: center; justify-content: center; color: #a4521b; font-weight: 600; min-height: 280px; }
.sell-form { display: grid; gap: 14px; margin-top: 10px; }
.sell-part { padding: 18px 20px; } .sell-part h2 { font-size: 16px; margin: 0 0 2px; } .sell-part > p.muted { font-size: 13px; margin: 0 0 12px; }
.sell-step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #182752; color: #fff; font-size: 12px; margin-right: 8px; vertical-align: 1px; }
.sell-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid #f0ebe3; }
.sell-row.sell-top { align-items: start; }
.sell-row input:not([type=radio]):not([type=file]), .sell-row textarea { font: inherit; padding: 8px 10px; border: 1px solid #d5cdc0; border-radius: 8px; }
.sell-row input[name=name], .sell-row textarea { width: 100%; box-sizing: border-box; }
.sell-row input[type=number] { width: 70px; }
.sell-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sell-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.sell-choice label { border: 1px solid #d5cdc0; border-radius: 8px; padding: 6px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.sell-choice label:has(input:checked) { border-color: #c06a2b; background: #fbe9d9; color: #a4521b; font-weight: 600; }
.sell-choice input { accent-color: #c06a2b; }
.sell-rooms { display: flex; gap: 5px; flex-wrap: wrap; } .sell-rooms span { font-size: 12.5px; background: #f3ede4; border-radius: 6px; padding: 2px 7px; }
.sell-bar { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 12px 4px; }
.sell-stop { margin-top: 14px; } .sell-stop h2 { color: #9a3027; }
.sell-form .rt-more { border: 0; margin: 0; padding: 0; }
@media (max-width: 760px) { .sell-row { grid-template-columns: 1fr; gap: 6px; } }
.sell-card .btn-ghost, .sell-bar .btn-ghost { background: #fff; color: #a4521b; border: 1px solid #e0c3aa; }
.sell-stop .btn-danger { background: #b3412f; border-color: #b3412f; color: #fff; font-weight: 700; }
/* Settings → Payments and cancellation (A197). */
.mo-picture { display: flex; height: 34px; border-radius: 8px; overflow: hidden; font-size: 12px; color: #fff; margin: 6px 0 4px; }
.mo-picture div { display: grid; place-items: center; white-space: nowrap; }
.mo-marks { display: flex; justify-content: space-between; font-size: 12px; color: #9a8f80; }
.mo-steps { display: grid; gap: 6px; margin-top: 12px; }
.mo-step { display: grid; grid-template-columns: 50px 1fr 150px 90px; gap: 10px; align-items: center; }
.mo-step input[type=number] { width: 70px; font: inherit; padding: 6px 8px; border: 1px solid #d5cdc0; border-radius: 8px; }
.mo-new { opacity: .85; } .mo-remove { display: inline-flex; gap: 4px; align-items: center; }
.mo-sample { background: #fdf6ea; border: 1px solid #f0dfc0; border-radius: 10px; padding: 10px 14px; color: #6b5a44; margin: 10px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .mo-step { grid-template-columns: 1fr; } }
/* The price's words follow "Sold" at once (no script). */
.sell-per-room { display: none; }
.sell-form:has(input[name=sold][value=per_room]:checked) .sell-per-room { display: inline; }
.sell-form:has(input[name=sold][value=per_room]:checked) .sell-per-bed { display: none; }
.sell-per-bed, .sell-per-room { font-weight: 600; color: #182752; }
/* Rooms and beds: under which room type the website sells the room (A197). */
.rm-sold { font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; }
.rm-sold.ok { background: #e4efdf; color: #3f6b33; } .rm-sold.warn { background: #fdf0d8; color: #8a5a12; } .rm-sold.off { color: #9a8f80; }
.rm-sold.rent { background: #f5ecdc; color: #8a6d3e; font-weight: 600; }
/* A rental room (A201): the renter decides who sleeps there; no who, no standard/premium. */
.gl-unit:has(select[name$="_kept"] option[value="rentals"]:checked) .rm-who { visibility: hidden; }
/* Guruji's guests: no who (owner, 2026-10-06); a room not sold online has no standard or
   premium (that is a price on the website). */
.gl-unit:has(select[name$="_kept"] option[value="guruji"]:checked) .rm-who { visibility: hidden; }
.gl-unit:has(select[name$="_kept"] option:not([value="everyone"]):checked) .rm-kind { visibility: hidden; }
/* Payments: refunds through Shopify (A199). */
.pay-refund { font-size: 12px; margin-top: 3px; } .pay-refund.ok { color: #3f6b33; } .pay-refund.wait { color: #8a5a12; } .pay-refund.bad { color: #9a3027; }
.pay-refund-box summary { list-style: none; cursor: pointer; display: inline-block; }
.pay-refund-box summary::-webkit-details-marker { display: none; }
.pay-refund-form { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border: 1px solid #e6dfd3; border-radius: 8px; background: #fffdf9; min-width: 280px; }
.pay-refund-form label { display: flex; gap: 6px; align-items: center; }
/* Payments: the list and the refund window (A199). */
.tbl td.nowrap { white-space: nowrap; }
.pay-guest { display: block; font-size: 12.5px; color: #6b645b; }
.pay-chip { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: #f3ede4; color: #6b645b; white-space: nowrap; }
.pay-chip.shop { background: #e8f0e4; color: #3f6b33; } .pay-chip.ok { background: #e4efdf; color: #3f6b33; }
.pay-chip.wait { background: #fdf0d8; color: #8a5a12; } .pay-chip.bad, .pay-chip.warn { background: #fbe3e1; color: #9a3027; }
.pay-act { text-align: right; }
.pay-refund-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; line-height: 1; }
.refund-amount { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: #b0562a; }
.refund-amount input { width: 120px; font: inherit; font-size: 18px; padding: 6px 10px; border: 1px solid #d5cdc0; border-radius: 8px; color: inherit; }
.refund-go { width: 100%; justify-content: center; }
.refund-part { display: none; }
.refund-form:has(input[name=how][value=part]:checked) .refund-part { display: inline; }
.refund-form:has(input[name=how][value=part]:checked) .refund-all { display: none; }

/* Living on site (owner, 2026-10-06): one row per person, a click opens their page. */
.live-list { background: #fff; border: 1px solid #e4ddd2; border-radius: 12px; overflow: hidden; }
.live-row { display: grid; grid-template-columns: minmax(160px, 1.3fr) 110px minmax(150px, 1.2fr) minmax(170px, 1.3fr) 130px 20px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid #efe9df; font-size: 14px; color: inherit; text-decoration: none; }
.live-row:first-child { border-top: 0; }
a.live-row:hover { background: #fbf8f2; }
.live-head { font-size: 12px; color: #8a7f70; font-weight: 600; background: #faf8f4; }
.live-go { color: #b9ad9c; font-size: 18px; }
.back-link { display: inline-block; margin-bottom: 6px; font-size: 13.5px; }
.live-card { padding: 18px 20px; display: grid; gap: 12px; margin-bottom: 12px; }
.live-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.live-facts div { font-size: 13px; color: #8a7f70; }
.live-facts b { display: block; font-size: 15px; color: #2a2622; margin-top: 2px; }
.live-visits { width: 100%; border-collapse: collapse; font-size: 14px; }
.live-visits th { text-align: left; font-size: 12px; color: #8a7f70; font-weight: 600; padding: 6px 8px; }
.live-visits td { padding: 10px 8px; border-top: 1px solid #f1ebe2; }
.live-visits tr.past td { color: #9a8f80; }
.live-act { text-align: right; white-space: nowrap; }
.live-act > *, .live-act form { display: inline-block; margin: 0 0 0 6px; }
.live-foot { display: flex; gap: 10px; align-items: center; }
.live-foot .spacer { flex: 1; }
.live-forms { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .live-row { grid-template-columns: 1fr 1fr; } .live-head { display: none; } .live-facts, .live-forms { grid-template-columns: 1fr 1fr; } }

/* A room rented long-term in the planner (A201): its tag; the renter's room while they are
   here; pale stripes while they are away, clicked through like a free night. */
.tag.tag-rent { background: #f5ecdc; color: #8a6d3e; font-weight: 700; }
.bar.st-rent-here { background: #eef2f7; border: 1px solid #cfd9e6; color: #6a7f99; font-weight: 600; pointer-events: none; }
.bar.st-rent-away { background: repeating-linear-gradient(135deg, #f7f1e6 0 6px, #efe5d4 6px 8px); border: 1px dashed #cdb894; color: #8a6d3e; font-weight: 600; pointer-events: none; }
.notice.rent-notice { background: #fbf6ee; border: 1px solid #e6d6bb; color: #5a4a30; }
/* A masked passport or ID number with "Show" (review 2026-10-08). */
.doc-number { display: flex; gap: 6px; align-items: center; }
.doc-number input { flex: 1; min-width: 0; }
/* A guest's data rights on the profile (review 2026-10-08; A206). */
.privacy-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.privacy-erase { color: #b3261e; }
.privacy-list { margin: 4px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.modal-box:has(.privacy-sheet) { width: 600px; padding: 28px 30px; }
/* Privacy policy and imprint (A209): next to a guest form's button, and in the footer. */
body.guest .g-privacy { margin: 4px 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--g-muted); }
body.guest .g-privacy a, body.guest .guest-contact .g-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.guest .guest-contact .g-legal { display: block; margin-top: 6px; }
.login-privacy { margin: 14px 0 0; text-align: center; font-size: 13px; }
.login-privacy a, .hk-privacy a { color: var(--muted, #6b645b); text-decoration: underline; text-underline-offset: 3px; }
.hk-privacy { margin: 18px 0 8px; text-align: center; font-size: 13px; }
/* A guest dragged onto another: they would swap beds (A211). */
.bar.swap-target { outline: 2px solid #c4702a; outline-offset: 1px; }
/* A room's type for some dates (A212), in the planner's type menu. */
.type-form .type-dates { grid-column: 1 / -1; margin-top: 8px; }
.type-date-pair { display: flex; gap: 10px; flex-wrap: wrap; }
.type-date-pair label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.type-dated { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
/* Several beds booked from the planner: the guests in the first one's booking (owner, 2026-10-08). */
.party-same { border-left: 3px solid #e3d3bf; padding-left: 10px; margin-left: 2px; }
/* The waiting list's free places to decide about (A215). */
.wl-decide { border: 1px solid #e8c9a8; background: #fdf6ee; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.wl-decide-head { font-weight: 700; }
.wl-decide-sub { font-size: 13px; color: #6a5a45; margin: 2px 0 6px; }
.wl-who { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed #e8c9a8; font-size: 14px; }
.wl-who-since { display: block; font-size: 12.5px; color: #7a6a55; }
.wl-who-price { font-size: 12.5px; color: #7a6a55; }
.wl-decide-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn.wl-hot { box-shadow: 0 0 0 2px #c0392b inset; position: relative; }
.wl-badge { position: absolute; top: -8px; right: -8px; background: #c0392b; color: #fff; font: 700 12px/1 sans-serif; border-radius: 99px; padding: 4px 7px; }
/* A group's rooms and beds one by one (A217). */
.gr-pick { background: #fbf7f1; border: 1px solid #eadfce; border-radius: 8px; padding: 8px 12px; margin: 2px 0 8px; }
.gr-pick-room { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed #eadfce; flex-wrap: wrap; }
.gr-pick-room:first-child { border-top: 0; }
.gr-pick-room b { min-width: 84px; }
.gr-bed { display: inline-flex; align-items: center; border: 1px solid #d9c9b4; border-radius: 6px; padding: 3px 9px; font-size: 13px; background: #fff; cursor: pointer; }
.gr-bed input { position: absolute; opacity: 0; pointer-events: none; }
.gr-bed:has(input:checked) { background: #c4702a; color: #fff; border-color: #c4702a; }
.gr-bed.taken { background: #f1ece5; color: #b5a894; text-decoration: line-through; cursor: default; }
.gr-bed:has(input:focus-visible) { outline: 2px solid #c4702a; outline-offset: 2px; }
.gr-whole { margin-left: auto; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; }
.gr-pick-note { margin: 6px 0 0; font-size: 12.5px; }
.gr-chosen { font-size: 12.5px; color: #6a5a45; line-height: 1.35; }
.gr-chosen-mark { display: inline-block; font-size: 12px; border: 1px solid #d9c9b4; border-radius: 6px; padding: 4px 8px; background: #fff; color: #6a5a45; }
.link-btn { background: none; border: 0; padding: 0; color: #a85a1c; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
/* Users and roles with Bhakti ID (A218). */
.users-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.users-table th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #7a6a55); padding: 8px 10px; border-bottom: 1px solid #eadfce; }
.users-table td { padding: 10px; border-bottom: 1px solid #f1e9de; vertical-align: top; }
.role-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #e3d3bf; border-radius: 99px; padding: 2px 10px; font-size: 12.5px; margin: 2px 4px 2px 0; background: #fff; }
.invite-roles { border: 1px solid #eadfce; border-radius: 8px; padding: 4px 12px; margin: 6px 0 10px; }
.invite-role { display: grid; grid-template-columns: 22px 1fr minmax(0, 196px); gap: 8px; align-items: center; padding: 6px 0; border-top: 1px dashed #eadfce; }
.invite-role:first-child { border-top: 0; }
.login-bhakti { display: flex; justify-content: center; text-decoration: none; }
.login-note { font-size: 13.5px; margin: 12px 0 0; }
.centre-place { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.centre-place b { min-width: 160px; }
/* Settings → Centres: the centres as hotels in Bhakti ID (A220, A221): one table, every
   field, button and mark the same height. */
.bid { --bid-h: 40px; }
.bid-intro { font-size: 14px; color: #6b645b; line-height: 1.55; margin: 6px 0 18px; max-width: 760px; }
.bid-notice { margin: 0 0 18px; }
.bid-grid { display: grid; align-items: stretch; }
.bid-centres { grid-template-columns: minmax(180px, 1fr) minmax(0, 1fr) 140px 104px; }
.bid-row { display: contents; }
.bid-head, .bid-cell { padding-right: 12px; }
.bid-centres > .bid-head:nth-child(4), .bid-centres .bid-row > .bid-cell:nth-child(4) { padding-right: 0; }
.bid-head { display: flex; align-items: flex-end; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8178; padding-bottom: 8px; border-bottom: 1px solid #ece5da; }
.bid-cell { display: flex; align-items: center; min-height: var(--bid-h); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #f1ebe2; min-width: 0; }
.bid-grid .bid-row:last-child > .bid-cell { border-bottom: 0; }
.bid-name { font-weight: 700; color: #2a2622; overflow: hidden; text-overflow: ellipsis; }
.bid-field { width: 100%; height: var(--bid-h); box-sizing: border-box; font: inherit; font-size: 14px; padding: 0 12px; border: 1px solid #d5cdc0; border-radius: 8px; background: #fff; color: #2a2622; }
select.bid-field { appearance: none; -webkit-appearance: none; padding-right: 34px; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, #7a7066 50%), linear-gradient(135deg, #7a7066 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.bid-field::placeholder { color: #a39a90; }
.bid-field:focus { outline: 2px solid #e8c9a8; outline-offset: 0; border-color: #c4a07c; }
.bid-btn { width: 100%; height: var(--bid-h); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px; border: 1px solid #d5cdc0; background: #fff; color: #2a2622; cursor: pointer; }
.bid-btn:hover { border-color: #c4a07c; }
.bid-chip { width: 100%; height: var(--bid-h); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bid-ok { background: #e8f3ea; color: #2f6b3a; }
.bid-not { background: #fbeee0; color: #8a4b14; }
@media (max-width: 760px) {
  .bid-centres { grid-template-columns: 1fr; }
  .bid-head { display: none; }
  .bid-cell { border-bottom: 0; padding: 4px 0; }
  .bid-row > .bid-cell:last-child { border-bottom: 1px solid #f1ebe2; padding-bottom: 12px; }
}
/* Users and roles: "Remove" and "Cancel invite" in their own column (A223). */
.users-table .users-act { text-align: right; white-space: nowrap; width: 1%; }
.users-table .btn-remove { color: #b3261e; }
/* "My booking" (A232): the booking page's look. */
.mb-hero { border-radius: 16px; background: linear-gradient(to top, rgba(24,39,82,.72), rgba(24,39,82,.15)), url("/static/img/hero-mural.webp") center/cover; color: #fff; padding: 30px 28px 26px; }
.mb-hero h1 { color: #fff !important; font-weight: 300 !important; letter-spacing: .12em !important; font-size: 32px !important; }
.mb-hero p { margin: 6px 0 0; font-size: 16px; }
.mb-center { text-align: center; }
.mb-pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 99px; padding: 3px 12px; background: #e4efdf; color: #2f5f3a; margin-left: 8px; vertical-align: 2px; }
.mb-pill-off { background: #f3e3e0; color: #8a2c1c; }
.mb-col { display: flex; flex-direction: column; gap: 18px; }
.mb-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.mb-date { background: var(--g-grey); border-radius: 12px; padding: 12px 16px; }
.mb-date b { display: block; font-size: 20px; margin: 2px 0; }
.mb-person { padding: 12px 0; border-top: 1px solid var(--g-line); }
.mb-person small { display: block; color: var(--g-muted); font-size: 13px; }
.mb-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--g-line); text-decoration: none; color: var(--g-navy) !important; }
.mb-act b { display: block; font-size: 16px; }
.mb-act span span { color: var(--g-muted); font-size: 14px; }
.mb-act i { font-style: normal; color: var(--g-purple); font-size: 22px; }
.mb-act.red b, .mb-act.red i { color: #a8321e; }
/* "Arriving after 20:00?" opens in place: the time, saved for reception (A236). */
.mb-late { display: block; }
.mb-late summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.mb-late summary::-webkit-details-marker { display: none; }
.mb-late[open] summary i { transform: rotate(90deg); }
.mb-late-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mb-late-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--g-muted); }
.mb-late-form input { font: inherit; font-size: 16px; color: var(--g-navy); padding: 9px 12px; border: 1px solid var(--g-line); border-radius: 10px; background: #fff; }
.mb-link { background: none; border: 0; padding: 0; margin-top: 10px; color: var(--g-purple); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.mb-ok { color: var(--g-green) !important; }
.mb-full { width: 100%; justify-content: center; text-align: center; }
.mb-form { display: flex; flex-direction: column; gap: 10px; }
.mb-form label input { width: 100%; margin-top: 4px; }
@media (max-width: 760px) { .mb-hero { padding: 24px 18px 20px; } .mb-hero h1 { font-size: 26px !important; } }
/* "My booking": changing dates and people (A234). */
.mb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 14px; }
.mb-cal > * { padding: 8px 0; border-radius: 8px; color: var(--g-navy); text-decoration: none; }
.mb-cal a:hover { background: var(--g-grey); }
.mb-cal .h { color: var(--g-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.mb-cal .sel { background: var(--g-purple); color: #fff; font-weight: 700; }
.mb-cal .no, .mb-cal .past { color: #c3c7d3; }
.mb-cal .no { text-decoration: line-through; }
.mb-cal .now { outline: 2px solid var(--g-gold); outline-offset: -2px; }
.mb-key { display: inline-block; min-width: 26px; text-align: center; border-radius: 4px; padding: 0 4px; }
.mb-key.now { outline: 2px solid var(--g-gold); outline-offset: -2px; }
.mb-key.sel { background: var(--g-purple); color: #fff; }
.mb-key.no { color: #c3c7d3; text-decoration: line-through; }
.mb-diff { background: #e4efdf; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.mb-diff b { font-size: 22px; color: #2f5f3a; }
/* A change waiting for its payment (A235): the time left in the panel, a banner on My booking. */
.mb-timer { background: #fff4e5; border: 1px solid #f5c26b; border-radius: 12px; padding: 12px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.mb-timer .lbl { color: #8a5a12; }
.mb-timer b { font-size: 34px; letter-spacing: .04em; color: #6b4a12; font-variant-numeric: tabular-nums; }
.mb-wait { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff4e5; border: 1px solid #f5c26b; border-radius: 14px; padding: 14px 18px; }
.mb-wait b { color: #6b4a12; }
.mb-wait #countdown { font-variant-numeric: tabular-nums; }
.mb-wait .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.mb-wait form { margin: 0; }
.mb-person-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mb-remove { color: #a8321e !important; font-size: 14px; }
.mb-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.mb-two label select, .mb-two label input { width: 100%; margin-top: 4px; }
