/* BnB - the "Coast" look: warm page, navy ink, coral buttons, teal accent.
   Rules this file keeps (a test checks the colour rule):
   - no gray text: every text colour is navy, white on a dark fill, or a coloured ink
   - text 4.5:1 or better; touch targets 46px or more; inputs 16px or more (no iPhone zoom)
   - no inline styles anywhere in the app: everything is a class here */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #FBF7F0;
  --card: #F1E8DA;
  --card-edge: #E2D3BC;
  --white: #FFFFFF;
  --ink: #14283B;
  --ink-soft: #2C4258;
  --coral: #C2410C;
  --coral-deep: #9A3412;
  --teal: #0E6A6E;
  --teal-pale: #D9ECEC;
  --red-ink: #9B1C1C;
  --red-pale: #F8DADA;
  --green-ink: #14532D;
  --green-pale: #D8EFDF;
  --amber-ink: #7C3A00;
  --amber-pale: #FBE7C3;
  --blue-pale: #DCE9F6;
  --blue-ink: #1D4E89;
  --coral-pale: #FBE0D3;
  --teal-edge: #A6CFD0;
  --green-edge: #A9D8B8;
  --amber-edge: #EBCB8E;
  --blue-edge: #B3CCE6;
  --coral-edge: #F0BFA6;
  --amber-accent: #C99A0B;
  --violet-ink: #4B3F7A;
  --violet-edge: #6F5FA0;
  --soft-aqua: #E3F1F1;
  --soft-mint: #E8F3EC;
  --soft-cream: #FBF2DD;
  --soft-sky: #E7EEF6;
  --soft-lavender: #ECE8F7;
  --soft-peach: #FDEBE3;
  --soft-blush: #FBE9E7;
  --red-edge: #EBB4B4;
  --radius: 6px;
  --radius-small: 5px;
  --radius-button: 4px;
  --touch: 48px;
  --gap: 16px;
  --shadow: 0 6px 20px rgba(20, 40, 59, 0.14);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 8px; color: var(--ink); }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
a { color: var(--teal); font-weight: 600; }
.small { font-size: 15px; color: var(--ink-soft); }
.center { text-align: center; }
.hidden { display: none !important; }
.offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- layout */
#app { min-height: 100vh; }
.page { width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 16px 120px; }
.page-head { margin-bottom: 16px; }
.stack > * + * { margin-top: var(--gap); }
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.grid-2 > * { min-width: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
@media (min-width: 900px) {
  .page { max-width: 960px; padding-top: 32px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 18px;
}
.card.white { background: var(--white); }
.card h2, .card h3 { margin-bottom: 6px; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field { margin-bottom: 14px; }
input, select, textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--card-edge);
  border-radius: var(--radius-small);
}
input[type="checkbox"] { width: 26px; min-height: 26px; flex: none; accent-color: var(--teal); }
label.row { font-weight: 600; min-height: var(--touch); flex-wrap: nowrap; margin-bottom: 0; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
::placeholder { color: var(--ink-soft); opacity: 1; }
/* Search box: a magnifying glass on the left, a plain white box with a quiet border and small corners (no pill). */
.search-box { position: relative; }
.search-box svg { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search-box input { padding-left: 46px; }
.hint { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 10px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  background: var(--coral);
  border: 0;
  border-radius: var(--radius-button);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--coral-deep); }
.btn.block { display: flex; width: 100%; }
.btn.teal { background: var(--teal); }
.btn.teal:hover { background: #0A5559; }
.btn.plain { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.btn.plain:hover { background: var(--card); }
.btn.danger { background: var(--red-ink); }
.btn[disabled], .btn.busy { opacity: 0.7; cursor: progress; }
.btn.small { min-height: 46px; padding: 8px 16px; font-size: 16px; }

/* ---------------------------------------------------------------- messages */
.notice { padding: 12px 14px; border-radius: var(--radius-small); font-weight: 600; margin-bottom: 14px; }
.notice.error { background: var(--red-pale); color: var(--red-ink); }
.notice.good { background: var(--green-pale); color: var(--green-ink); }
.notice.warn { background: var(--amber-pale); color: var(--amber-ink); }
.notice.info { background: var(--teal-pale); color: var(--ink); }

.pill { display: inline-block; padding: 3px 12px; border-radius: 4px; font-size: 14px; font-weight: 700; background: var(--teal-pale); color: var(--ink); }
.pill.good { background: var(--green-pale); color: var(--green-ink); }
.pill.warn { background: var(--amber-pale); color: var(--amber-ink); }
.pill.bad { background: var(--red-pale); color: var(--red-ink); }

#toasts { position: fixed; left: 0; right: 0; bottom: 100px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: var(--radius-button); font-weight: 600; box-shadow: var(--shadow); max-width: 480px; }
.toast.error { background: var(--red-ink); }

/* ---------------------------------------------------------------- auth pages */
.auth-wrap { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); }
.lang-switch { position: absolute; top: 14px; right: 14px; z-index: 2; }
.auth-brand { padding: 22px 16px 22px; background: var(--ink); color: var(--white); border-bottom: 4px solid var(--coral); }
.auth-brand-top { max-width: 460px; margin: 0 auto; }
.auth-hero-id { display: flex; align-items: center; gap: 14px; }
.auth-hero-id .brand-badge { display: grid; width: 54px; height: 54px; font-size: 30px; border-radius: var(--radius); }
.auth-hero-word { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 38px; line-height: 1; color: var(--white); }
.auth-hero-word .dot { color: var(--coral); }
.auth-hero-tag { margin: 6px 0 0; font-family: var(--font-head); font-style: italic; font-size: 16px; color: var(--amber-pale); }
.auth-board { display: none; position: relative; margin-top: 22px; padding: 20px 22px 16px; border-radius: var(--radius); background: var(--page); color: var(--ink); }
.auth-board h3 { margin: 0 0 8px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal); }
.auth-board ul { list-style: none; margin: 0; padding: 0; }
.auth-board li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 16px; }
.auth-board li i { flex: 1; border-bottom: 2px dotted var(--ink); transform: translateY(-3px); }
.auth-board li b { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.auth-board p { margin: 8px 0 0; text-align: center; font-family: var(--font-head); font-style: italic; font-size: 14px; }
@media (min-height: 780px) { .auth-board { display: block; } }
.auth-form-col { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 22px 16px 44px; }
.auth-card { width: 100%; max-width: 460px; padding: 22px 20px 24px; background: var(--white); border: 1px solid var(--card-edge); border-top: 4px solid var(--coral); border-radius: var(--radius); }
.auth-title { margin: 0 0 12px; font-size: 26px; }
.auth-links { margin-top: 18px; display: grid; gap: 10px; text-align: center; }
@media (min-width: 860px) {
  .auth-wrap { flex-direction: row; }
  .auth-brand { flex: 0 0 46%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 48px; border-bottom: 0; border-right: 4px solid var(--coral); }
  .auth-brand-top { width: 100%; max-width: 440px; }
  .auth-hero-id { flex-direction: column; align-items: flex-start; gap: 18px; }
  .auth-hero-id .brand-badge { width: 72px; height: 72px; font-size: 42px; }
  .auth-hero-word { font-size: 64px; }
  .auth-hero-tag { font-size: 20px; }
  .auth-board { display: block; margin-top: 34px; padding: 26px 28px 20px; }
  .auth-board li { font-size: 17px; padding: 8px 0; }
  .auth-form-col { align-items: center; padding: 40px; }
  .auth-card { width: 460px; padding: 28px 28px 30px; }
}

/* ---------------------------------------------------------------- the bottom bar (phone) and the top strip */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--ink);
  border-top: 3px solid var(--coral);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
}
.tab {
  flex: 1;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: var(--radius-button);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { background: var(--coral); }

/* The strip along the top: dark on a phone, slim and white on a wide screen. */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--ink); color: var(--white); border-bottom: 3px solid var(--coral);
}
.topbar-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-badge { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--coral); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 21px; }
.topbar-name { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-out { flex: none; min-height: 44px; padding: 0 16px; background: transparent; color: var(--white); border: 2px solid var(--white); border-radius: var(--radius-button); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.topbar-out:hover { background: rgba(255, 255, 255, 0.16); }

/* Home: the greeting card, then the figures, then a main and a side column. */
.hero { margin-bottom: var(--gap); padding: 18px 22px; background: var(--ink); color: var(--white); border-radius: var(--radius); border: 1px solid var(--ink); border-left: 4px solid var(--teal); border-right: 4px solid var(--teal); }
.hero h1 { margin: 0 0 4px; font-size: 26px; color: var(--white); }
.hero p { margin: 0; font-weight: 600; color: var(--white); }
/* The cards of the two home columns are laid out as one grid, so cards in the same row are always the same height. */
.home-cols { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.home-cols > div { display: contents; }

/* ---------------------------------------------------------------- lists, switches, sheets */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--card-edge); }
.list li:first-child { border-top: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.kv b { text-align: right; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--card-edge); }
.switch-row:first-of-type { border-top: 0; }
.switch-text { flex: 1; }
.switch-text b { display: block; }
.switch {
  position: relative; flex: none; width: 76px; min-height: 46px; height: 46px; padding: 0;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card-edge); cursor: pointer;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 4px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); transition: left 0.15s;
}
.switch[aria-checked="true"] { background: var(--teal); border-color: var(--teal); }
.switch[aria-checked="true"]::after { left: 32px; background: var(--white); }

.veil { position: fixed; inset: 0; background: rgba(20, 40, 59, 0.55); z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: var(--page); border-radius: 10px 10px 0 0; padding: 22px 18px 28px; }
.sheet .actions { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 700px) {
  .veil { align-items: center; }
  .sheet { border-radius: 10px; }
}

.code-big { font-family: var(--font-head); font-size: 34px; letter-spacing: 3px; text-align: center; background: var(--white); border: 2px dashed var(--teal); border-radius: var(--radius-small); padding: 14px 8px; margin: 10px 0; word-break: break-all; }

.loading { text-align: center; padding: 40px 0; font-weight: 600; }

/* ---------------------------------------------------------------- admin */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.num-big { font-family: var(--font-head); font-size: 34px; line-height: 1; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--card-edge); vertical-align: top; }
th { font-weight: 700; }

/* ---------------------------------------------------------------- stays and booking */
#bFree { margin-top: 16px; }
#bFree h3 { margin-top: 4px; }

/* ---------------------------------------------------------------- calendar (Step 4) */
.page.wide { max-width: 1200px; }
.cal-filters { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cal-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cal-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--card-edge); border-radius: var(--radius-small); background: var(--white); }
table.cal { width: auto; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cal th, .cal td { padding: 0; border-bottom: 1px solid var(--card-edge); border-right: 1px solid var(--card-edge); text-align: center; vertical-align: middle; }
.cal-head { min-width: 46px; width: 46px; padding: 4px 0; font-size: 14px; color: var(--ink); background: var(--page); }
.cal-head b { display: block; font-size: 16px; }
.cal-wd { display: block; font-weight: 600; }
.cal-today { background: var(--teal-pale); }
.cal-weekend { background: var(--amber-pale); }
.cal-head.cal-today { background: var(--teal); color: var(--white); }
.cal-room { position: sticky; left: 0; z-index: 2; min-width: 96px; width: 96px; max-width: 96px; padding: 0 8px; background: var(--page); text-align: left; font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-cell { height: 48px; min-width: 46px; }
.cal-free, .cal-bar { display: block; width: 100%; height: 48px; min-width: 46px; margin: 0; padding: 0 6px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cal-bar { text-align: left; overflow: hidden; border-radius: var(--radius-button); }
.cal-bar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-hold { background: var(--amber-pale); color: var(--amber-ink); border: 2px dashed var(--amber-ink); }
.cal-confirmed { background: var(--teal); color: var(--white); }
.cal-checked_in { background: var(--green-ink); color: var(--white); }
.cal-checked_out { background: var(--card-edge); color: var(--ink); }
.cal-block { background: var(--ink); color: var(--white); }

/* ---------------------------------------------------------------- Today and housekeeping (Step 4) */
.list .row { margin-top: 8px; }
.list .notice { margin-top: 8px; }
.clean-pick { margin-top: 8px; }

/* ---------------------------------------------------------------- money (Step 5) */
.money-row .actions, .money-row .btn { margin-top: 6px; }
.neg { color: var(--red-ink); }
.kv.total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; }
.doc-head { text-align: center; margin-bottom: 10px; }
.doc-head h2, .doc-head h3, .doc-head p { margin: 4px 0; }

/* ---------------------------------------------------------------- reports and guests (Step 7) */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--card-edge); border-radius: var(--radius-small); }
.stat-label { font-size: 15px; font-weight: 700; }
.stat-value { font-family: var(--font-head); font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.row-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row-pair + .btn { margin-top: 4px; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Printing a receipt or invoice: only the document comes out, not the app around it. */
@media print {
  body > *:not(.veil) { display: none !important; }
  .veil { position: static; background: none; display: block; padding: 0; }
  .veil .sheet { box-shadow: none; border: 0; max-width: none; width: 100%; padding: 0; }
  .veil:has(~ .veil) { display: none !important; }
  .no-print, .toasts, #toasts { display: none !important; }
}

/* ---------------------------------------------------------------- online booking (Step 6) */
.address { font-weight: 700; word-break: break-all; }
.top-gap { margin-top: 14px; }
.book { max-width: 560px; margin: 0 auto; }
.book-head { padding: 8px 0 14px; }
.book .btn.block + .btn.block { margin-top: 10px; }
.book-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 18px 0 10px; text-align: center; }
.book-foot .small { width: 100%; }

/* ---------------------------------------------------------------- home tiles and three-column cards */
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.grid-3 > * { min-width: 0; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--gap); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--white); border: 1px solid var(--card-edge); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.tile:hover { box-shadow: 0 3px 12px rgba(20, 40, 59, 0.16); }
.tile-label { font-size: 15px; font-weight: 700; }
.tiles.wrap-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.top-gap { margin-top: 0; }
/* Soft colour behind each tile with a matching border, as on the Pharma app. Labels use the dark ink of the same colour. */
.card.t-teal, .tile.t-teal, .stat.t-teal { background: var(--soft-aqua); border-color: var(--teal); } .t-teal .tile-label, .t-teal .stat-label { color: var(--teal); }
.card.t-green, .tile.t-green, .stat.t-green { background: var(--soft-mint); border-color: var(--green-ink); } .t-green .tile-label, .t-green .stat-label { color: var(--green-ink); }
.card.t-amber, .tile.t-amber, .stat.t-amber { background: var(--soft-cream); border-color: var(--amber-accent); } .t-amber .tile-label, .t-amber .stat-label { color: var(--amber-ink); }
.card.t-blue, .tile.t-blue, .stat.t-blue { background: var(--soft-sky); border-color: var(--blue-ink); } .t-blue .tile-label, .t-blue .stat-label { color: var(--blue-ink); }
.card.t-violet, .tile.t-violet, .stat.t-violet { background: var(--soft-lavender); border-color: var(--violet-edge); } .t-violet .tile-label, .t-violet .stat-label { color: var(--violet-ink); }
.card.t-coral, .tile.t-coral, .stat.t-coral { background: var(--soft-peach); border-color: var(--coral); } .t-coral .tile-label, .t-coral .stat-label { color: var(--coral-deep); }
.card.t-red, .tile.t-red, .stat.t-red { background: var(--soft-blush); border-color: var(--red-ink); } .t-red .tile-label, .t-red .stat-label { color: var(--red-ink); }
.tile-value { font-family: var(--font-head); font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- the sidebar (wide screens) */
.side-brand, .side-label, .side-link, .side-foot { display: none; }
@media (min-width: 1024px) {
  #app.has-side { padding-left: 252px; }
  .tabbar {
    left: 0; right: auto; top: 0; bottom: 0; width: 252px; max-width: none; border-top: 0;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 2px;
    border-radius: 0; padding: 14px 12px; overflow-y: auto; box-shadow: none;
  }
  .tabbar .tab[href="#/more"] { display: none; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 16px; min-height: 44px; font-size: 16px; border-radius: var(--radius-button); }
  .tab:hover, .side-link:hover { background: rgba(255, 255, 255, 0.16); }
  .tab.active:hover, .side-link.active:hover { background: var(--coral-deep); }
  .side-brand { display: block; padding: 2px 16px 14px; margin-bottom: 4px; }
  .brand-name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 32px; color: var(--white); }
  .brand-name .dot { color: var(--amber-pale); }
  .side-label { display: block; padding: 12px 16px 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-pale); }
  .side-label.first { padding-top: 6px; }
  .side-link { display: flex; align-items: center; gap: 14px; min-height: 36px; padding: 0 8px 0 16px; border-radius: var(--radius-button); color: var(--white); font-size: 16px; font-weight: 600; text-decoration: none; }
  .side-link svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .side-link.active { background: var(--coral); }
  .side-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: var(--white); font-size: 14px; }
  .side-foot b { font-size: 15px; color: var(--white); }
  .topbar { padding: 12px 40px; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--card-edge); }
  .brand-badge { display: none; }
  .topbar-name { font-size: 20px; color: var(--ink); }
  .topbar-out { color: var(--ink); border-color: var(--ink); background: var(--white); }
  .topbar-out:hover { background: var(--card); }
  .home-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page { max-width: 1160px; padding: 28px 40px 56px; }
  .page.wide { max-width: 1560px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tiles.wrap-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { padding: 22px 24px; }
  .tile-value { font-size: 36px; }
  #toasts { bottom: 24px; }
  #app.has-side .btn.block { display: flex; width: fit-content; min-width: 220px; }
  .stack.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
  .stack.cols-3 > * + * { margin-top: 0; }
  .cal-room { min-width: 150px; width: 150px; max-width: 150px; }
  .cal-head { min-width: 54px; width: 54px; }
  .cal-cell, .cal-free, .cal-bar { height: 56px; }
}

/* Lists whose rows are small cards (Guests, Money) and stacks that sit two across: use the width of a wide screen. */
.list.cells li, .list.cells li:first-child { background: var(--white); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 14px 16px; }
.list.cells li + li { margin-top: 12px; }
@media (min-width: 1024px) {
  .list.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .list.cells li + li { margin-top: 0; }
  .stack.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
  .stack.cols-2 > * + * { margin-top: 0; }
  .stack.inline-wide { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--gap); }
  .stack.inline-wide > * + * { margin-top: 0; }
  .tiles.wrap-4 .tile-value { font-size: 28px; }
  .stack.cols-2 > .notice, .stack.cols-2 > .btn { grid-column: 1 / -1; }
}
@media (min-width: 1500px) { .page.wide .list.cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Spacing left over from the first pass, and the narrow pages that must stay narrow on a wide screen. */
.stack.inline-wide { margin-bottom: var(--gap); }
.list .row, .list .actions { margin-top: 12px; }
.card .row + .small, .card .actions + .small { margin-top: 10px; }
.card h2 + .field { margin-top: 10px; }
.after-cards { margin-top: var(--gap); }
@media (min-width: 1024px) {
  .page.book { max-width: 640px; padding-top: 28px; }
  .stack.cols-2.span-last > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  #app.has-side .stack.cols-3 > .btn.block { width: auto; min-width: 0; }
}

.quick { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--gap); }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; font-weight: 700; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 3px; background: var(--white); }
.checklist li.done::before { background: var(--teal); border-color: var(--teal); }
.checklist li.done::after { content: ""; position: absolute; left: 6px; top: 12px; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist li.done a { text-decoration: line-through; }
.checklist a { color: var(--ink); }
@media (max-width: 1023px) { .quick .btn { flex: 1 1 140px; } }

/* Tinted tiles and cards, as on the Pharma app: a soft colour behind, a border of the full colour all round, and a
   thicker band of that colour on the left and right edges. Last in the file so no earlier border rule resets it. */
.tile, .stat, .card.t-teal, .card.t-green, .card.t-amber, .card.t-blue, .card.t-violet, .card.t-coral, .card.t-red { border-style: solid; border-width: 1px 4px; }
