@font-face { font-family: 'Inter'; src: url('/site/fonts/inter-latin-opsz-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* ======================================================================= Design tokens: Night Garden
   A deep green frame (menu, number band, sign-in), a calm light working area, coral only for the main action and urgent
   signals. Matches the website. Use these tokens; never a raw colour, size or radius in a rule.
   Status colours: green = confirmed or paid, gold = on hold or due, coral = overdue or cancelled, blue = sent or info. */
:root {
  /* frame */
  --navy: #0f2a26; --navy-2: #163a35; --night-line: #23463f; --on-night: #f3f1ea; --on-night-2: #c9d6d2; --on-night-3: #9fb3ad;
  /* neutrals, tinted toward the frame's green */
  --ink: #12201d; --ink-2: #33433f; --muted: #5b6b67; --faint: #82938f;
  --line: #e3e8e6; --line-soft: #edf0ef; --line-strong: #d5ddda;
  --bg: #f4f6f5; --card: #fff; --surface-2: #f8faf9; --hover: #eef2f0; --sunk: #e9eeec;
  /* brand */
  --accent: #0f6b5e; --accent-d: #0a4d43; --accent-soft: #e4f1ee; --accent-line: #b9dcd4; --accent-ring: rgba(15, 107, 94, .22);
  --coral: #ff9c86; --coral-hover: #ffb8a8; --coral-signal: #e2593d; --coral-ink: #a3361d; --coral-ink-d: #8a2c17; --coral-soft: #fbece7; --coral-line: #efc9c0;
  --gold: #d9a514; --gold-ink: #7a5a06; --gold-soft: #fdf3d3; --gold-line: #f0d9a0;
  --info: #1f4b80; --info-soft: #e7eef7;
  --plum: #5b3f86; --plum-soft: #efeaf6;
  /* state aliases */
  --ok: var(--accent); --warn: var(--coral-ink); --danger: #c2412b; --danger-d: #a3361d; --danger-soft: var(--coral-soft);
  /* type scale (15px body) */
  --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-base: 15px; --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 28px; --fs-4xl: 32px;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter', system-ui, sans-serif;
  /* shape and depth */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-pill: 999px; --radius: var(--r-lg);
  --shadow: 0 1px 2px rgba(15, 42, 38, .05);
  --shadow-md: 0 4px 14px rgba(15, 42, 38, .09);
  --shadow-lg: 0 30px 80px rgba(15, 42, 38, .28);
  /* one categorical set for spaces and series, in the order of the space colour names (Blue, Teal, Green, Amber, Orange,
     Rose, Purple, Slate): distinct, and at home next to the greens */
  /* pipeline stages, a green ramp toward Booked; Lost is grey */
  --stage-0: #b7dcd3; --stage-1: #7fbfb0; --stage-2: #3f9484; --stage-3: #0f6b5e; --stage-4: #c9d6d2;
  --cat-0: #2f6f9f; --cat-1: #0f8a74; --cat-2: #5f8f3a; --cat-3: #bf830c; --cat-4: #d0573d; --cat-5: #b04f7a; --cat-6: #7a5aa6; --cat-7: #6b7d79;
  font-family: var(--body); color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: var(--fs-base); line-height: 1.5; font-feature-settings: 'tnum' 1; }
::selection { background: var(--accent-soft); color: var(--accent-d); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; }
a { color: var(--accent-d); text-underline-offset: 2px; }
/* one focus ring for everything that takes focus; the menu (on green) and fields set their own */
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
tr[tabindex]:focus-visible { outline-offset: -2px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.boot, .muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.pad { padding: 8px 4px; }
.spacer { flex: 1; }
.pre { white-space: pre-wrap; }

/* spaces (hc) and pipeline stages (sc) */
.hc0 { --hc: var(--cat-0); } .hc1 { --hc: var(--cat-1); } .hc2 { --hc: var(--cat-2); } .hc3 { --hc: var(--cat-3); }
.hc4 { --hc: var(--cat-4); } .hc5 { --hc: var(--cat-5); } .hc6 { --hc: var(--cat-6); } .hc7 { --hc: var(--cat-7); }
.stage-0 { --sc: var(--stage-0); } .stage-1 { --sc: var(--stage-1); } .stage-2 { --sc: var(--stage-2); } .stage-3 { --sc: var(--stage-3); } .stage-4 { --sc: var(--stage-4); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--hc, var(--faint)); flex: none; margin-right: 8px; }

/* layout */
.layout { --side-w: 248px; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .22s cubic-bezier(.4, 0, .2, 1); }
.layout.nav-compact { --side-w: 72px; }
.layout.nav-hidden { --side-w: 0px; }
.side { background: var(--navy); padding: 20px 14px 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 30; min-width: 0; }
.layout.nav-hidden .side { visibility: hidden; padding-inline: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -.01em; color: var(--on-night); padding: 2px 8px; white-space: nowrap; }
.logo { width: 30px; height: 30px; display: block; flex: none; }
.side .logo { box-shadow: 0 0 0 1px var(--night-line); border-radius: var(--r-sm); }
.nav { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--night-line) transparent; padding-bottom: 6px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-h { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; font-size: var(--fs-xs); font-weight: 500; color: var(--on-night-3); padding: 3px 12px 5px; border-radius: var(--r-sm); white-space: nowrap; cursor: pointer; }
.nav-h:hover { color: #fff; }
.nav-h .chev { width: 15px; height: 15px; margin-left: auto; order: 2; transition: transform .15s; }
.nav-group.folded .nav-h .chev { transform: rotate(-90deg); }
/* a folded group with unread items inside shows one coral dot */
.nav-group.folded:has(.nav-n:not([hidden])) .nav-h::after { content: ''; order: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.nav-h:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; }
.nav-items { display: flex; flex-direction: column; gap: 2px; }
.nav-group.folded .nav-items { display: none; }
.nav a { position: relative; color: #dfe7e4; text-decoration: none; padding: 6px 12px; line-height: 1.35; border-radius: var(--r-md); display: flex; align-items: center; gap: 12px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: var(--navy-2); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px var(--night-line); }
.nav a:focus-visible, .fold:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.tb-btn:focus-visible, .me:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ic { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
.nav a .ic { color: var(--on-night-3); transition: color .15s; }
.nav a:hover .ic, .nav a.active .ic { color: #fff; }
.fold { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--on-night-3); font: inherit; font-weight: 500; padding: 9px 12px; border-radius: 0 0 var(--r-md) var(--r-md); cursor: pointer; border-top: 1px solid var(--night-line); margin-top: auto; white-space: nowrap; }
.fold:hover { background: var(--navy-2); color: #fff; }
/* Help: a link to the help center above Collapse (margin-top: auto keeps both at the bottom), and the "?" on screens */
.side-foot { display: flex; margin-top: auto; border-top: 1px solid var(--night-line); }
.side-foot .fold { margin-top: 0; border-top: 0; flex: 1; }
.nav-help { display: flex; align-items: center; gap: 12px; color: var(--on-night-3); text-decoration: none; font-weight: 500; padding: 9px 12px; white-space: nowrap; border-radius: 0 0 0 var(--r-md); }
.nav-help:hover, .nav-help:focus-visible { background: var(--navy-2); color: #fff; }
.layout.nav-compact .side-foot { flex-direction: column; }
.layout.nav-compact .nav-help { justify-content: center; padding-inline: 0; }
.layout.nav-compact .nav-help .lbl { display: none; }
.layout.nav-compact .side { padding-inline: 12px; }
.layout.nav-compact .brand span, .layout.nav-compact .lbl { display: none; }
@media (min-width: 901px) {
  .layout.nav-compact .nav-h { display: none; }
  .layout.nav-compact .nav-group.folded .nav-items { display: flex; }
  .layout.nav-compact .nav-group + .nav-group { border-top: 1px solid var(--night-line); padding-top: 10px; }
}
.layout.nav-compact .nav a, .layout.nav-compact .fold { justify-content: center; padding-inline: 0; }
.layout.nav-compact .nav a:hover::after, .layout.nav-compact .nav a:focus-visible::after { content: attr(title); position: fixed; left: 78px; background: var(--navy); color: #fff; font-size: var(--fs-sm); font-weight: 500; padding: 5px 9px; border-radius: var(--r-sm); pointer-events: none; z-index: 60; }
.layout.nav-compact .brand { justify-content: center; padding: 2px 0; }
.scrim { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; margin: -32px -44px 28px; padding: 12px 44px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.tb-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); color: var(--muted); cursor: pointer; }
.tb-btn:hover { background: var(--hover); color: var(--ink); }
.topbar .me { color: var(--ink); text-decoration: none; padding: 4px 10px 4px 4px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.topbar .who { display: flex; flex-direction: column; }
.topbar .me small { color: var(--muted); }
.topbar .me:hover, .topbar .me.active { background: var(--hover); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; flex: none; }
/* The account menu: the avatar button opens Your account, Venues and Sign out. */
.me-wrap { position: relative; }
.topbar .me { border: 0; background: transparent; font: inherit; cursor: pointer; }
.me .avatar { position: relative; }
.me .me-n { position: absolute; top: -4px; right: -6px; }
.me-chev { color: var(--muted); }
.me[aria-expanded="true"] .me-chev { transform: rotate(180deg); }
.me-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(15, 42, 38, .18); padding: 6px; z-index: 60; display: grid; gap: 2px; }
.me-menu[hidden] { display: none; }
.me-menu [role=menuitem] { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; padding: 9px 10px; border-radius: var(--r-sm, 6px); cursor: pointer; }
.me-menu [role=menuitem]:hover, .me-menu [role=menuitem]:focus-visible { background: var(--hover); outline: none; }
.me-menu [role=menuitem] .ic { color: var(--muted); }
.me-menu .venue-label { display: flex; flex-direction: column; min-width: 0; }
.me-menu .venue-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.me-menu .venue-switch .nav-n { position: static; margin-left: auto; }
.me-version { margin: 4px 10px 2px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs, .75rem); }
.me-version:empty { display: none; }
/* Help, Report and Collapse (an icon) share the bottom row of the left menu. */
.side-foot .nav-help { flex: 1; justify-content: center; gap: 8px; padding-inline: 8px; border-radius: 0; }
.side-foot .nav-help:first-child { border-radius: 0 0 0 var(--r-md); }
.nav-report { border: 0; background: transparent; font: inherit; cursor: pointer; }
.nav-report:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.side-foot .fold { flex: none; padding-inline: 12px; }
/* The menu button only opens the drawer on phones; wider screens always show the menu. */
.nav-toggle { display: none; } /* phones use the bottom bar's More */
/* "+ New" and Lists: small menus built on <details>. */
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-list { position: absolute; z-index: 70; min-width: 190px; margin-top: 6px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.pop-list a, .pop-list button { all: unset; box-sizing: border-box; display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--r-md); color: var(--ink); font-weight: 500; cursor: pointer; }
.pop-list a:hover, .pop-list button:hover, .pop-list a:focus-visible, .pop-list button:focus-visible { background: var(--hover); outline: 2px solid var(--accent-ring); }
.new-btn { display: inline-flex; align-items: center; gap: 8px; }
.side-new > summary { width: 100%; justify-content: center; box-sizing: border-box; }
.side-new .pop-list { left: 0; right: 0; }
.top-new { display: none; }
.top-new .pop-list { right: 0; }
.nav-lists { margin-top: 6px; }
.nav-lists > summary { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: var(--r-md); color: var(--on-night-3); font-weight: 500; }
.nav-lists > summary:hover, .nav-lists > summary:focus-visible { background: var(--navy-2); color: #fff; outline: 2px solid var(--coral); outline-offset: -2px; }
.nav-lists .pop-list { left: 8px; bottom: 100%; margin-bottom: 6px; }
.nav .setup-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; white-space: normal; gap: 4px; margin-top: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--navy-2); color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px var(--night-line); }
.nav .setup-card small { color: var(--on-night-2); line-height: 1.4; }
.setup-card .pbar { display: block; height: 5px; border-radius: 3px; background: var(--night-line); overflow: hidden; margin-top: 4px; }
.setup-card .pbar i { display: block; height: 100%; background: var(--accent-line); }
.setup-card:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.layout.nav-compact .side-new .lbl, .layout.nav-compact .nav-lists .lbl, .layout.nav-compact .setup-card { display: none; }
.layout.nav-compact .nav-lists > summary { justify-content: center; padding-inline: 0; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.setup-tile { display: block; color: inherit; text-decoration: none; }
.setup-tile h2 { margin: 0 0 4px; font-size: var(--fs-lg); }
.setup-tile p { margin: 0; }
.setup-tile:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.setup-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.today-date { margin: 0 0 -6px; }
.card.today-card { padding: 0; overflow: hidden; }
.today-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.today-card-head h2 { margin: 0; font-size: var(--fs-lg); }
.today-card-head p { margin: 0; }
.today-items { list-style: none; margin: 0; padding: 0; }
.today-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.today-item:first-child { border-top: 0; }
.today-item[hidden] { display: none; }
.today-ico { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-d); }
.today-item.urgent .today-ico { background: var(--coral-soft); color: var(--coral-ink); }
.today-what a { color: inherit; text-decoration: none; }
.today-what a:hover strong, .today-what a:focus-visible strong { text-decoration: underline; }
.today-why { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.today-why.warn-text { color: var(--coral-ink); font-weight: 600; }
.today-item .btn { min-height: 40px; }
.today-more { margin-top: 12px; }
.today-empty { padding: 28px 20px; text-align: center; }
@media (max-width: 700px) {
  .card.today-card { background: none; box-shadow: none; border: 0; }
  .today-card-head { padding: 0 0 10px; border: 0; }
  .today-item { grid-template-columns: minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 10px; padding: 14px 16px; }
  .today-item:first-child { border-top: 1px solid var(--line); }
  .today-ico { display: none; }
  .today-why { order: -1; white-space: normal; }
  .today-item .btn { justify-self: start; min-height: 44px; }
}
.deal-value { margin: -6px 0 10px; font-size: var(--fs-lg); }
.deal-progress { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.deal-progress .step { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.deal-progress .bar { height: 6px; border-radius: 3px; background: var(--line); }
.deal-progress .done .bar { background: var(--accent); }
.deal-progress .done .name { color: var(--accent-d); font-weight: 600; }
.deal-progress .current .bar { background: var(--accent-line); box-shadow: inset 0 0 0 2px var(--accent); }
.deal-progress .current .name { color: var(--ink); font-weight: 700; }
.deal-progress .skipped .bar { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.deal-progress .skipped .name { text-decoration: line-through; }
.deal-progress .name small { font-size: var(--fs-2xs); text-decoration: none; display: inline-block; }
.deal-lost { margin: 0 0 14px; }
.next-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 16px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--navy); color: var(--on-night); }
.next-step h2 { margin: 0 0 4px; font-size: var(--fs-lg); color: #fff; }
.next-step p { margin: 0; color: var(--on-night-2); max-width: 70ch; }
.next-actions { display: flex; align-items: center; gap: 16px; }
.next-step .linkish { color: #fff; text-decoration: underline; }
.next-step .linkish:focus-visible, .next-step .btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.deal-tabs { margin-bottom: 16px; overflow-x: auto; }
@media (max-width: 700px) {
  .deal-progress { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; }
  .deal-progress .name { font-size: var(--fs-2xs); }
}
.deal-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); border-radius: var(--r-pill); padding: 7px 14px; font: inherit; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; min-height: 36px; }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.filter-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.board.deal-board { grid-template-columns: repeat(5, minmax(150px, 1fr)) minmax(110px, .6fr); }
.board.deal-board:has(> .col:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(210px, 360px)); }

.lead-card .card-next { display: block; margin-top: 6px; color: var(--accent-d); font-weight: 600; }
.lead-card .card-flag { display: inline-block; margin-bottom: 4px; font-size: var(--fs-2xs); font-weight: 600; color: var(--info); background: var(--info-soft); border-radius: var(--r-pill); padding: 1px 8px; }
.menu-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--info-soft); color: var(--info); }
.menu-note p { margin: 0; flex: 1 1 300px; }
/* Phones: the bottom bar. */
.bottom-bar { display: none; }
@media (max-width: 900px) {
  .top-new { display: block; }
  .side-new { display: none; }
  .bottom-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .bottom-bar a, .bottom-bar button { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--on-night-2); font-size: var(--fs-xs); font-weight: 500; cursor: pointer; border-radius: var(--r-md); }
  .bottom-bar a.active { color: #fff; font-weight: 700; }
  .bottom-bar a.active .ic { color: var(--coral); }
  .bottom-bar a:focus-visible, .bottom-bar button:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; }
  .bottom-bar .nav-n { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; min-width: 16px; line-height: 16px; font-size: var(--fs-2xs); }
  .layout .main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.main { padding: 32px 44px 64px; min-width: 0; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-family: var(--display); font-size: var(--fs-4xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 8px; text-decoration: none; font-size: var(--fs-sm); }
.section-title { font-family: var(--display); letter-spacing: -.01em; font-size: var(--fs-lg); margin: 22px 0 12px; }

/* ----------------------------------------------------------------------- buttons
   .btn (secondary) · .btn.primary (the one main action: coral) · .btn.danger · .btn.danger-solid · .btn.ghost (on the
   green frame) · .btn.sm · .btn.block. */
.btn { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn:hover { background: var(--hover); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .lead-card:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.primary { background: var(--coral); border-color: var(--coral); color: var(--navy); }
.btn.primary:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.btn.danger { color: var(--danger); border-color: var(--coral-line); }
.btn.danger:hover { background: var(--coral-soft); }
.btn.ghost { background: transparent; color: var(--on-night-2); border-color: var(--night-line); }
.btn.ghost:hover { background: var(--navy-2); }
.btn.sm { padding: 5px 12px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn.block { width: 100%; padding: 11px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 8px; border-radius: var(--r-xs); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }

/* ----------------------------------------------------------------------- fields */
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--card); color: var(--ink); width: 100%; caret-color: var(--accent); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
textarea { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); }
.field.check { flex-direction: row; align-items: center; gap: 8px; }
.field.check > span { order: 2; font-weight: 500; }
.field.full { grid-column: 1 / -1; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.form-error { color: var(--danger); font-size: var(--fs-md); min-height: 0; }
.form-error:empty { display: none; }
.check-row { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-md); }
.check-row.inline { align-items: center; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.page-head input[type=search], .page-head select { width: auto; min-width: 190px; }

/* auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1100px 560px at 12% -10%, #1d4a43 0%, transparent 60%), var(--navy); }
.auth-card { background: var(--card); border-radius: 14px; padding: 30px 28px; width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.auth-card .brand { color: var(--navy); padding: 0; font-size: var(--fs-xl); }
.auth-card h1 { font-size: var(--fs-2xl); }
.qr { display: grid; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); }
.secret { display: block; margin-top: 8px; padding: 8px; background: var(--hover); border-radius: var(--r-xs); word-break: break-all; font-size: var(--fs-sm); letter-spacing: .05em; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; background: var(--hover); border-radius: var(--r-md); }
.codes code { font-size: var(--fs-base); text-align: center; padding: 4px; }
details summary { cursor: pointer; font-size: var(--fs-sm); color: var(--accent-d); }

/* ----------------------------------------------------------------------- cards and data */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 20px; }
.card h3 { font-family: var(--display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.card.error { color: var(--danger); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cards .card { margin: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hall-bar { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--hc); }
.hall.inactive { opacity: .6; }
.meta { display: flex; justify-content: space-between; gap: 12px; width: 100%; font-size: var(--fs-sm); color: var(--muted); }
.meta b { color: var(--ink); }
/* the number band: the one bold moment on a page. Every figure has a divider on its left; the first in each row slides
   it just outside the band, so it never shows. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stat small { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.stat strong { font-family: var(--display); font-size: clamp(24px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 4px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat span { font-size: var(--fs-sm); color: var(--muted); }
.stat.warn span { color: var(--coral-ink); font-weight: 600; }
/* the first figure of a row of figures: the one dark moment on the dashboard */
.stat.lead { background: var(--navy); border-color: var(--navy); color: var(--on-night); }
.stat.lead small, .stat.lead span { color: var(--on-night-2); }
.stat.lead a { color: var(--on-night); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.5fr 1fr; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 28px; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.bar { background: var(--hover); border-radius: var(--r-xs); height: 12px; overflow: hidden; }
.fill { display: block; height: 100%; background: var(--sc); border-radius: var(--r-xs); min-width: 2px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.list li > div { flex: 1; min-width: 0; }
.list li.click { cursor: pointer; }
.list small, .tasks small { display: block; color: var(--muted); }
.empty { color: var(--muted); padding: 18px 4px; text-align: center; }

/* ----------------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
.card table { background: transparent; }
th { text-align: left; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
td.num, th.num, td.amt, th.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tbody tr:hover td { background: var(--surface-2); }
tr.click:hover td { background: var(--hover); }
body > .layout > .main > .view > .table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 12px; }
.dl dt { color: var(--muted); font-size: var(--fs-sm); }
.dl dd { margin: 0; word-break: break-word; }

/* ----------------------------------------------------------------------- status badges: one set everywhere */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--line-soft); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.signed, .badge.paid, .badge.confirmed, .badge.booked, .badge.accepted { background: var(--accent-soft); color: var(--accent); }
.badge.due, .badge.tentative, .badge.draft { background: var(--gold-soft); color: var(--gold-ink); }
.badge.void, .badge.cancelled, .badge.declined { background: var(--coral-soft); color: var(--coral-ink); }
.badge.sent, .badge.admin, .badge.t-email { background: var(--info-soft); color: var(--info); }
.badge.t-call { background: var(--plum-soft); color: var(--plum); }
.badge.t-meeting { background: var(--gold-soft); color: var(--gold-ink); }

/* ----------------------------------------------------------------------- leads board */
.board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.col { background: var(--sunk); border-radius: var(--r-lg); padding: 10px; min-height: 260px; box-shadow: inset 0 3px 0 var(--sc); display: flex; flex-direction: column; gap: 8px; }
.col.over { background: var(--accent-soft); }
.col-head { display: flex; flex-direction: column; margin-bottom: 2px; }
.col-head span { font-size: var(--fs-xs); color: var(--muted); }
.lead-card { background: var(--card); border: 1px solid transparent; border-radius: var(--r-md); padding: 10px 12px; cursor: grab; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.lead-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.lead-card small { color: var(--muted); }

/* timeline + tasks */
.composer { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; margin-bottom: 14px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline li > .badge { align-self: flex-start; text-transform: capitalize; }
.timeline p { white-space: pre-wrap; }
.timeline small { color: var(--muted); }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.tasks li.done strong { text-decoration: line-through; color: var(--muted); }
.tasks .grow { flex: 1; }
.due { font-size: var(--fs-sm); color: var(--muted); }
.due.late { color: var(--coral-ink); font-weight: 700; }

/* ----------------------------------------------------------------------- calendar */
.cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-nav h2 { font-size: var(--fs-lg); min-width: 170px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.cal-dow { background: var(--surface-2); padding: 7px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); text-align: center; }
.cal-cell { min-height: 108px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.cal-cell:nth-child(7n + 1) { border-left: 0; }
.cal-cell.other { background: var(--surface-2); color: var(--muted); }
.cal-cell.today .num { background: var(--navy); color: var(--on-night); border-radius: var(--r-pill); }
.num { font-size: var(--fs-xs); font-weight: 600; padding: 1px 6px; align-self: flex-start; }
.chip { border: 0; border-left: 4px solid var(--hc); background: color-mix(in srgb, var(--hc) 14%, #fff); color: var(--ink); text-align: left; padding: 2px 6px; border-radius: var(--r-xs); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-family: inherit; }
.chip.tentative { border-left-style: dashed; background: var(--card); outline: 1px dashed var(--hc); }
.chip.cancelled { text-decoration: line-through; opacity: .55; }
.more { color: var(--muted); padding-left: 4px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: var(--fs-sm); align-items: center; }
/* phones: a month cell is too narrow for titles, so each booking is a dot in its space's colour (the agenda has the details) */
@media (max-width: 600px) {
  .cal-cell { display: block; }
  .cal-cell .num { display: flex; width: fit-content; margin-bottom: 2px; }
  .cal-cell .chip { display: inline-block; vertical-align: top; width: 8px; height: 8px; margin: 0 3px 3px 0; padding: 0; border: 0; border-radius: 50%; font-size: 0; background: var(--hc); outline-offset: 0; }
  .cal-cell .chip.tentative { background: var(--card); outline: 1.5px solid var(--hc); }
  .cal-cell .more { font-size: var(--fs-2xs); padding: 0; }
}
/* the booking form's live availability line */
.avail { grid-column: 1 / -1; margin: -2px 0 0; font-size: var(--fs-md); }
.avail:empty { display: none; }
.avail::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: currentColor; }
.avail.free { color: var(--accent); }
.avail.taken { color: var(--coral-ink); }

/* ----------------------------------------------------------------------- dialogs, toasts, banners */
.backdrop { position: fixed; inset: 0; background: rgba(15, 42, 38, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: start center; padding: 6vh 12px; overflow-y: auto; z-index: 50; }
.modal { background: var(--card); border-radius: 12px; width: min(560px, 100%); box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal.wide { width: min(640px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: var(--fs-lg); }
.modal-body { padding: 18px 20px 20px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: var(--on-night); padding: 10px 18px; border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(15, 42, 38, .25); opacity: 0; pointer-events: none; transition: .2s; z-index: 80; max-width: 90vw; }
.toast.err { background: var(--danger); color: #fff; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .toast { bottom: calc(76px + env(safe-area-inset-bottom)); } } /* above the bottom bar */
.banner-wrap { margin: -6px 0 14px; }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-d); border-radius: var(--r-md); padding: 9px 14px; margin-bottom: 12px; }
.banner.warn { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-ink); }
.banner a { font-weight: 600; }
.sig-pad { width: 100%; max-width: 560px; height: auto; aspect-ratio: 560 / 180; border: 1.5px dashed var(--faint); border-radius: var(--r-sm); background: var(--surface-2); touch-action: none; cursor: crosshair; display: block; margin-bottom: 6px; }
.sig-img { max-width: 360px; width: 100%; border-bottom: 1px solid var(--ink); }

@media print {
  .topbar, .side, .page-head .actions, .back, .row-actions, .toast { display: none !important; }
  .layout { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* billing */
.plans { grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); }
.plan .price strong { font-size: var(--fs-3xl); }

/* files, messaging, booking settings */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.switch-label { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.card h4 { margin: 18px 0 8px; font-size: var(--fs-md); }
.card h4:first-of-type { margin-top: 4px; }
.toggle-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.toggle-row input { margin-top: 4px; }
.toggle-row input[type=radio] { width: 18px; height: 18px; flex: none; padding: 0; }
.toggle-row small { display: block; color: var(--muted); font-weight: 400; }
.inline-fields { display: flex; gap: 20px; flex-wrap: wrap; margin: 4px 0 10px 24px; }
.inline-field input { width: 64px; }
code.embed { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: var(--fs-xs); background: var(--bg); padding: 6px 8px; border-radius: var(--r-xs); margin-bottom: 6px; }

/* proposals */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
td.amt, th.amt { text-align: right; white-space: nowrap; }
.table-wrap td input { min-width: 70px; }
.table-wrap td:first-child input { min-width: 180px; }
.card p.pre { margin: 0 0 12px; }

/* menu + event orders */
.tag { display: inline-block; padding: 1px 8px; margin: 0 4px 2px 0; border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 600; background: var(--accent-soft); color: var(--accent-d); }
small.block { display: block; }
.beo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.beo-head h2 { margin: 2px 0 0; }
.beo-sheet { display: grid; gap: 18px; }
.beo-sheet h3 { margin: 0 0 6px; font-size: var(--fs-md); }
.beo-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.beo-table th, .beo-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.beo-table th { font-size: var(--fs-xs); color: var(--ink-2); }
.beo-qty { width: 64px; font-variant-numeric: tabular-nums; font-weight: 700; }
.beo-time { width: 110px; white-space: nowrap; font-weight: 700; }
.beo-sheet .price { display: none; }
.beo-sheet.show-prices th.price, .beo-sheet.show-prices td.price { display: table-cell; }
.beo-sheet.show-prices p.price { display: block; }
.beo-total { font-weight: 700; margin: 4px 0 0; }
.beo-info { grid-template-columns: max-content 1fr; }
.row-actions select { max-width: 280px; width: auto; }
@media print {
  .beo-sheet { box-shadow: none; border: 0; padding: 0; }
  .banner-wrap, .page-head label, .page-head h1 { display: none !important; }
}
.beo-table { table-layout: fixed; }
.beo-table th:nth-child(3), .beo-table td:nth-child(3) { width: 24%; }
.beo-table th.price, .beo-table td.price { width: 100px; }
.table-wrap td select { min-width: 112px; }
.table-wrap td input[type=time] { min-width: 130px; }

/* appointments, tour settings */
.hours-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.hours-row .check-row { min-width: 130px; }
.hours-row input[type=time] { min-width: 120px; }
.warn-text { color: var(--warn); font-weight: 600; }

/* reports */
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; }
.chart { width: 100%; max-width: 640px; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--faint); stroke-width: 1; }
.chart .cbar { fill: var(--accent); }
.chart .cbar:hover { fill: var(--accent-d); }
/* SVG user units: the 640-wide chart is drawn at 480-640px, so 15 here reads as 11-15px on screen */
.chart .tick { font-size: 15px; fill: var(--muted); }
.chart .val { font-size: 15px; fill: var(--ink); font-weight: 600; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: var(--fs-md); }
.hbar-track { background: var(--hover); border-radius: var(--r-xs); height: 12px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--accent); border-radius: var(--r-xs); }
.hbar-val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* seating chart */
.seat-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 980px) { .seat-layout { grid-template-columns: 1fr; } }
.room-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.room-controls .field.inline { flex-direction: row; align-items: center; gap: 8px; }
.room-controls input[type=number] { width: 80px; }
.seat-stage { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; touch-action: none; }
.room { display: block; width: 100%; height: auto; user-select: none; }
.room-floor { fill: var(--surface-2); stroke: var(--faint); stroke-width: .2; }
.seat-table { cursor: grab; outline: none; }
.seat-table .tbl { fill: var(--accent-soft); stroke: var(--accent-d); stroke-width: .25; }
.seat-table.full .tbl { fill: var(--accent-soft); stroke: var(--ok); }
.seat-table.sel .tbl { stroke: var(--navy); stroke-width: .5; }
.seat-table:focus-visible .tbl { stroke: var(--navy); stroke-width: .5; stroke-dasharray: .6 .4; }
.seat-table .seat { fill: #fff; stroke: var(--line-strong); stroke-width: .15; }
.seat-table .seat.taken { fill: var(--accent-d); stroke: var(--accent-d); }
.seatno { font-size: .5px; fill: var(--muted); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.seatno.row { font-size: .95px; font-weight: 700; fill: var(--ink); }
.room-out { fill: var(--faint); opacity: .35; }
.outline-draft { fill: none; stroke: var(--accent); stroke-width: .3; stroke-dasharray: .8 .5; pointer-events: none; }
.seatno.taken { fill: #fff; }
.tname.halo { paint-order: stroke; stroke: #fff; stroke-width: .45px; stroke-linejoin: round; }
.suggest-preview .seat { fill: #fff; stroke: var(--line-strong); stroke-width: .15; }
.tname { font-size: 1.25px; fill: var(--ink); font-weight: 600; pointer-events: none; }
.tcount { font-size: 1.1px; fill: var(--muted); pointer-events: none; }
.seat-guests { max-height: 340px; overflow: auto; margin: 8px 0; }
.seat-guests select { max-width: 150px; }
.seating-print { margin-top: 18px; }
.print-title { font-size: var(--fs-lg); margin: 12px 0; }
.print-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.print-table { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; break-inside: avoid; background: #fff; }
.print-table h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.print-table ul { margin: 0; padding-left: 18px; }
.escort { list-style: none; padding: 0; margin: 0; columns: 2 260px; }
.escort li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dotted var(--line); break-inside: avoid; }
.print-room { display: none; }
@media print {
  body:has(.seat-layout) .seat-layout, body:has(.seat-layout) .muted { display: none !important; }
  .seating-print { margin: 0; }
  .print-room { display: block; break-after: page; }
  .print-room svg.room { width: 100%; max-height: 22cm; }
  .print-title.break { break-before: page; }
}

.filter-bar input[type=date] { width: auto; }
.composer textarea { min-height: 84px; }
.tname { font-size: 1.4px; }

/* contract documents */
.agreement { font-family: 'Inter', system-ui, sans-serif; font-size: var(--fs-base); line-height: 1.6; max-width: 72ch; }
.agreement p { margin: 0 0 8px; white-space: pre-wrap; }
.agreement .doc-title { font-weight: 700; font-size: var(--fs-lg); text-align: center; margin-bottom: 14px; letter-spacing: .02em; }
.agreement .doc-head { font-weight: 700; margin-top: 16px; margin-bottom: 4px; }
.agreement-edit { width: 100%; font-family: 'Inter', system-ui, sans-serif; font-size: var(--fs-base); line-height: 1.5; }
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sigbox { border-top: 1px solid var(--ink); padding-top: 8px; }
.sigbox .sig-img { height: 64px; border: 0; object-fit: contain; object-position: left; display: block; }
@media (max-width: 640px) { .sigs { grid-template-columns: 1fr; } }
@media print { .agreement { max-width: none; font-size: 12pt; } .no-print { display: none !important; } .banner { display: none; } }

/* ---- responsive: off-canvas drawer on phones ---- */
@media (max-width: 900px) {
  .layout, .layout.nav-compact, .layout.nav-hidden { grid-template-columns: minmax(0, 1fr); --side-w: 0px; }
  .side, .layout.nav-compact .side, .layout.nav-hidden .side { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); height: 100dvh; visibility: visible; transform: translateX(-102%); transition: transform .22s cubic-bezier(.4, 0, .2, 1); box-shadow: none; z-index: 70; padding-inline: 12px; }
  .layout.nav-open .side { transform: none; box-shadow: 12px 0 40px rgba(15, 42, 38, .3); }
  .layout.nav-compact .brand span, .layout.nav-compact .lbl { display: inline; }
  .layout.nav-compact .nav a, .layout.nav-compact .fold { justify-content: flex-start; padding-inline: 12px; }
  .layout.nav-compact .brand { justify-content: flex-start; padding: 2px 8px; }
  .fold { display: none; }
  .layout.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 42, 38, .4); z-index: 60; }
  .topbar { margin: -22px -16px 20px; padding: 10px 16px; }
  .topbar .who { display: none; }
  .main { padding: 22px 16px 48px; }
  .page-head h1 { font-size: var(--fs-3xl); }
  .two-col, .two-col.wide-left, .form-grid, .composer { grid-template-columns: 1fr; }
  .cal-cell { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) { .layout, .side, .modal { transition: none; animation: none; } }

.warn-box { background: var(--coral-soft); border: 1px solid var(--coral-line); color: var(--coral-ink-d); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-solid:hover:not(:disabled) { background: var(--danger-d); }

/* agreement tables, lists and clauses */
.agreement { max-width: 78ch; }
.agreement .clause strong { font-weight: 700; }
.agreement .doc-list { margin: 0 0 8px; padding-left: 1.4em; }
.agreement .doc-list li { margin: 0 0 4px; }
.agreement .table-wrap { margin: 6px 0 12px; }
.agreement .doc-table { width: 100%; border-collapse: collapse; font-family: system-ui, sans-serif; font-size: var(--fs-md); background: #fff; }
.agreement .doc-table th, .agreement .doc-table td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; font-weight: 400; }
.agreement .doc-table th { background: var(--hover); font-weight: 600; }
.agreement .doc-table td:first-child { font-weight: 600; width: 38%; }
.form-sub { grid-column: 1 / -1; margin: 10px 0 0; font-size: var(--fs-md); display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.form-sub small { font-weight: 400; color: var(--muted); }
@media print { .agreement .doc-table { font-size: 10pt; } .agreement .doc-table th { background: #eee !important; } }

/* website chatbot settings */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.faq-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); }
.faq-row .btn { justify-self: start; }
input[type=color] { width: 56px; height: 36px; padding: 2px; }

/* live chat inbox */
.nav-n { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: var(--fs-xs); font-weight: 700; text-align: center; line-height: 20px; }
.nav-n[hidden] { display: none; }
.layout.nav-compact .nav .nav-n { position: absolute; top: 2px; right: 6px; margin: 0; min-width: 16px; line-height: 16px; font-size: var(--fs-2xs); }
.nav a { position: relative; }
.chat-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 14px; min-height: 520px; height: calc(100vh - 270px); }
.chat-list, .chat-thread { background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.chat-items { overflow-y: auto; display: flex; flex-direction: column; }
.chat-item { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font: inherit; }
.chat-item:hover, .chat-item.on { background: var(--bg); }
.chat-item.unread .ci-prev { font-weight: 700; color: inherit; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-prev { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-meta { display: flex; gap: 8px; align-items: center; min-height: 18px; }
.pad { padding: 14px; }
.chat-empty { display: grid; place-items: center; height: 100%; }
.chat-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ch-who { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.back { display: none; }
.cm-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.cm { max-width: 78%; padding: 8px 12px; border-radius: var(--r-md); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; }
.cm.agent { align-self: flex-end; background: var(--accent); color: #fff; border-color: transparent; }
.cm.system { align-self: center; background: none; border: 0; color: var(--muted); font-size: var(--fs-sm); padding: 2px; }
.cm-who { font-size: var(--fs-2xs); opacity: .75; }
.typing-note { min-height: 18px; padding: 0 14px; }
.chat-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; }
@media (max-width: 900px) {
  .chat-wrap { grid-template-columns: 1fr; height: calc(100vh - 300px); }
  .chat-wrap .chat-thread { display: none; }
  .chat-wrap.has-active .chat-list { display: none; }
  .chat-wrap.has-active .chat-thread { display: flex; }
  .back { display: inline-flex; }
}

.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .plan-opt { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.plan ul { padding-left: 18px; margin: 6px 0; }

.img-pick { display: flex; gap: 16px; align-items: center; margin: 14px 0; }
.img-prev { width: 140px; height: 84px; object-fit: contain; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--r-md); flex: none; }
.img-prev.wide { width: 100%; height: auto; max-height: 160px; object-fit: cover; margin-bottom: 8px; }
.img-prev.none { display: grid; place-items: center; color: var(--muted); font-size: var(--fs-sm); }

.cbar2 { fill: var(--accent); opacity: .35; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.legend .sw1 { background: var(--accent); } .legend .sw2 { background: var(--accent); opacity: .35; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 12px 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; }
.tab { border: 0; background: transparent; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.tab.on { color: var(--ink); background: transparent; border-color: transparent; border-bottom-color: var(--coral-signal); border-radius: 0; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.code-block { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; overflow-x: auto; user-select: all; font-size: var(--fs-sm); white-space: pre-wrap; word-break: break-all; }
.hook-row { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.break { word-break: break-all; }

/* Inbox */
.inbox { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-list, .inbox-pane { background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 0; }
.inbox-list { padding: 12px 8px 8px; max-height: calc(100vh - 170px); overflow: auto; }
.inbox-list .tabs { margin: 0 4px 8px; flex-wrap: wrap; }
.inbox-list .tab { padding: 8px 10px; }
.tab-n { margin-left: 6px; background: var(--coral-signal); color: #fff; border-radius: var(--r-pill); padding: 0 6px; font-size: var(--fs-xs); }
.search-row { padding: 0 6px 8px; }
.search-row input { width: 100%; }
.mail-row { display: block; padding: 10px 12px; border-radius: var(--r-md); text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.mail-row:hover { background: var(--hover); }
.mail-row.on { background: var(--accent-soft); }
.mail-top { display: flex; align-items: center; gap: 8px; }
.mail-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mail-row.unread .mail-top strong, .mail-row.unread .mail-subj { font-weight: 700; }
.mail-row.unread::before { content: ''; float: left; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 7px 8px 0 -4px; }
.mail-top time { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.mail-count { font-size: var(--fs-xs); color: var(--muted); }
.mail-subj, .mail-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-snip { color: var(--muted); font-size: var(--fs-sm); }
.inbox-rows .more { width: 100%; margin-top: 8px; }
.inbox-pane { padding: 18px 20px; min-height: 340px; }
.inbox-none { text-align: center; color: var(--muted); padding: 60px 20px; }
.inbox-none .big { width: 40px; height: 40px; opacity: .5; }
.thread-head h2 { margin: 6px 0 4px; font-size: var(--fs-xl); overflow-wrap: anywhere; }
.thread-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); margin-bottom: 8px; }
.back-link { display: none; }
.mail-msg { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 12px 0; background: var(--card, #fff); }
.mail-msg.out { background: var(--accent-soft); }
.mail-msg header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mail-msg header time { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; line-height: 1.55; }
.mail-atts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.mail-reply { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.mailbox { display: grid; gap: 10px; }
.mailbox .field input, .mailbox .field textarea { width: 100%; }
.mail-files { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-file { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 4px 2px 12px; font-size: var(--fs-sm); }
.card.note { padding: 12px 16px; margin-bottom: 12px; background: var(--gold-soft); border-color: var(--gold-line); }
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .inbox-pane { display: none; }
  .back-link { display: inline-block; margin-bottom: 4px; }
  .inbox-list { max-height: none; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan .plan-size { margin: 0 0 4px; }
.plan .plan-opt .price { margin: 2px 0; }
.plan .plan-opt .price strong { font-size: var(--fs-2xl); }
.plan .plan-opt .row-actions { margin-top: 8px; }
/* Vendors */
.filters { align-items: center; margin: 0 0 14px; }
.filters input[type=search] { max-width: 260px; }
.filters select { width: auto; }
.stars { color: #b7791f; letter-spacing: 1px; font-size: var(--fs-sm); }
.ev-vendors td input[type=time] { width: 112px; }
.ev-vendors tr.muted td { opacity: .6; }
.ev-vendors + form h4, .modal .form h4 { margin: 18px 0 6px; }
.vendor-group h3 { margin: 18px 0 8px; font-size: var(--fs-base); }
.vendor-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vendor-cards li { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; break-inside: avoid; }
.vendor-cards li p { margin: 6px 0 0; }
@media print { .vendor-sheet { border: 0; box-shadow: none; } .vendor-cards li { border-color: #bbb; } }
.ev-vendors td select { min-width: 124px; }
.ev-vendors th, .ev-vendors td { padding-left: 6px; padding-right: 6px; }
.ev-vendors td input[type=time] { width: 108px !important; padding-left: 6px; padding-right: 4px; }
.ev-vendors td select { min-width: 0; width: 118px !important; }
/* Client page, checklists, packages, waitlist, calendar feed */
.progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.progress-row strong { white-space: nowrap; font-size: var(--fs-md); }
.pbar { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); }
.tasks.compact li { padding: 8px 4px; }
.tpl-items td { vertical-align: middle; }
.tpl-items td:first-child { min-width: 220px; }
.tpl-items input[type=number] { width: 70px; }
.tpl-items select { width: auto; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.tpl-list { margin: 6px 0 10px; padding-left: 20px; font-size: var(--fs-md); }
.tpl-list li { margin: 3px 0; }
.tpl-list li small { margin-left: 6px; }
.menu-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; padding: 4px 0 12px; }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0 12px; }
.quote-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .quote-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote-out { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.quote-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.quote-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.quote-table tfoot td { border-bottom: 0; padding-top: 10px; }
.quote-table .amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pkg-price strong { font-size: var(--fs-3xl); }
.pkg ul { padding-left: 18px; margin: 6px 0 10px; }
.waitlist h4 { margin: 14px 0 4px; }
.feed-url { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.feed-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; font-size: var(--fs-sm); }
.plain-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.beo-client { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: 10px 14px; margin: 6px 0 4px; }
.beo-client h3 { margin-top: 0; }
@media print { .beo-client { background: none; border-color: #999; } }
.booking-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.lead-in { margin: 0 0 12px; }
.tpl-items { table-layout: auto; }
.tpl-items td, .tpl-items th { padding-left: 4px; padding-right: 4px; }
.tpl-items td:first-child { min-width: 0; width: 100%; }
.tpl-items td:first-child input { width: 100% !important; min-width: 160px; }
.tpl-items input[type=number] { width: 62px !important; }
.tpl-items select { width: auto !important; max-width: 130px; }
/* Venues and accounting */
.list.venues li { align-items: center; }
.acct-sum { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; }
.acct-sum:empty { display: none; }
.refunded { color: var(--gold-ink); }
[hidden] { display: none !important; }
/* Calendar views */
.cal-nav { flex-wrap: wrap; }
.cal-nav h2 { min-width: 0; text-align: left; margin: 0 0 0 4px; }
.cal-steps { display: inline-flex; gap: 6px; }
.seg { display: inline-flex; background: var(--hover); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: var(--r-sm); font: 600 13px/1 inherit; font-family: inherit; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 42, 38, .12); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-sub { margin: -2px 0 8px; }
.cal-cell .num { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; align-self: flex-start; padding: 1px 6px; border-radius: var(--r-pill); }
.cal-cell .num:hover { background: var(--hover); }
.cal-cell .more { border: 0; background: none; font: inherit; font-size: var(--fs-xs); color: var(--accent-d); text-align: left; cursor: pointer; padding: 0 4px; }
/* time grid (day and week) */
.tg { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.tg-head, .tg-body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(110px, 1fr)); }
.tg-head { border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; z-index: 4; }
.tg-corner { background: var(--surface-2); }
.tg-col-head { padding: 8px 6px; font-size: var(--fs-sm); font-weight: 600; border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; min-width: 0; }
.tg-col-head > span { display: inline-flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-col-head.today { color: var(--accent-d); }
.tg-day-link { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; display: grid; justify-items: center; gap: 1px; padding: 2px 10px; border-radius: var(--r-sm); }
.tg-day-link small { font-size: var(--fs-2xs); color: var(--muted); font-weight: 600; }
.tg-day-link strong { font-size: var(--fs-lg); }
.tg-col-head.today .tg-day-link strong { background: var(--accent); color: #fff; border-radius: var(--r-pill); min-width: 28px; line-height: 28px; }
.tg-day-link:hover { background: var(--hover); }
.tg-scroll { max-height: 640px; overflow: auto; }
.tg-hours { position: relative; }
.tg-hour { height: 44px; position: relative; border-top: 1px solid transparent; }
.tg-hour span { position: absolute; top: -8px; right: 8px; font-size: var(--fs-2xs); color: var(--muted); }
.tg-hour:first-child span { display: none; }
.tg-col { position: relative; height: calc(44px * 24); border-left: 1px solid var(--line); cursor: copy;
  background-image: linear-gradient(to bottom, var(--hover) 1px, transparent 1px), linear-gradient(to bottom, var(--surface-2) 1px, transparent 1px);
  background-size: 100% 44px, 100% 22px; }
.tg-col.today { background-color: var(--surface-2); }
.tg-ev { position: absolute; display: flex; flex-direction: column; gap: 1px; padding: 3px 6px; white-space: normal; overflow: hidden; line-height: 1.25; z-index: 1; cursor: pointer; }
.tg-ev strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-ev small { font-size: var(--fs-2xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 3; pointer-events: none; }
.tg-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
/* year */
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mini-month { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px 12px; box-shadow: var(--shadow); }
.mini-title { border: 0; background: none; width: 100%; display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 8px; cursor: pointer; font: inherit; color: inherit; }
.mini-title:hover strong { color: var(--accent-d); }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-dow { font-size: var(--fs-2xs); color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.mini-day { border: 0; background: none; font: inherit; font-size: var(--fs-xs); aspect-ratio: 1; border-radius: var(--r-xs); cursor: pointer; color: var(--ink); padding: 0; font-variant-numeric: tabular-nums; }
.mini-day:hover { outline: 1px solid var(--line); }
.mini-day.busy { background: color-mix(in srgb, var(--accent) calc(var(--heat, .3) * 100%), #fff); color: #fff; font-weight: 700; }
.mini-day.busy.hold { background: #fff; color: var(--accent-d); outline: 1.5px dashed var(--accent); outline-offset: -2px; }
.mini-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 600px) { .seg button { padding: 6px 9px; } .tg-head, .tg-body { grid-template-columns: 44px repeat(var(--cols), minmax(96px, 1fr)); } }
.tg-hours { position: sticky; left: 0; background: #fff; z-index: 3; }
.tg-corner { position: sticky; left: 0; z-index: 5; }

/* AI chatbot knowledge base and tester */
.kb-meter { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-width: 520px; }
.kb-meter .pbar { flex: none; }
.kb-passages { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.kb-passage { margin: 0; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); white-space: pre-wrap; font-size: var(--fs-md); line-height: 1.5; }
.ai-test-log { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; max-height: 360px; overflow-y: auto; }
.ai-test-log:empty { display: none; }
.ai-q { align-self: flex-end; max-width: 80%; margin: 0; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--accent); color: #fff; }
.ai-a { align-self: flex-start; max-width: 85%; margin: 0; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); border: 1px solid var(--line); }
.ai-a p { margin: 0 0 4px; white-space: pre-wrap; }
.ai-test-row { display: flex; gap: 8px; align-items: center; }
.ai-test-row input { flex: 1; min-width: 0; }

/* Billing plan cards: the website's plan wording */
.plan-flag { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.plan-features { margin: 6px 0 10px; padding-left: 18px; }
.plan-features li { margin: 3px 0; }
.plan-fine { margin-top: 12px; max-width: 760px; }
.plan-fine ul { margin: 4px 0 0; padding-left: 18px; }
.banner.warn ul { margin: 6px 0 0; padding-left: 18px; }

/* AI reply drafts */
.draft-flag { display: inline-block; margin-top: 6px; font-size: var(--fs-2xs); font-weight: 600; color: var(--coral-ink-d); background: var(--coral-soft); border-radius: var(--r-pill); padding: 2px 8px; }
.ai-draft { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 8px 0; }
.ai-draft strong { display: block; margin-bottom: 6px; }
.ai-draft p { margin: 0; line-height: 1.55; }
.ai-facts { margin: 6px 0 10px; padding-left: 18px; }
.ai-draft-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ai-draft-controls input { flex: 1 1 240px; min-width: 0; }
.ai-redo { margin-top: 10px; }
.ai-redo summary { cursor: pointer; font-size: var(--fs-md); color: var(--muted); }

/* Post-event feedback */
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fb-list li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.fb-list li:first-child { border-top: 0; }
.fb-list li.low { background: var(--coral-soft); border-radius: var(--r-md); padding: 14px 12px; }
.fb-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.fb-stars { color: #c27c00; letter-spacing: 2px; font-size: var(--fs-lg); }
.fb-list p { margin: 0; line-height: 1.55; }

/* Onboarding: import and setup checklist */
.import-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; }
.import-head .field { min-width: 180px; }
.import-map { margin-top: 6px; }
.import-sample { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); max-height: 300px; overflow-y: auto; }
.import-sample li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: var(--fs-md); }
.import-sample li:first-child { border-top: 0; }
.import-sample li.bad { background: var(--coral-soft); }
.import-sample .err-text { grid-column: 2; color: var(--coral-ink); }
.btn.disabled { opacity: .5; pointer-events: none; }
.setup-progress { display: flex; align-items: center; gap: 12px; max-width: 420px; margin-bottom: 8px; }
.setup-progress .pbar { flex: 1; }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
.setup-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.setup-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 700; margin-top: 1px; }
.setup-list li.done .setup-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.setup-list li.done strong { color: var(--muted); font-weight: 600; }
.setup-day { margin-top: 14px; }
.setup-day-h { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 2px; }
.setup-day.today .setup-day-h { color: var(--accent); }
.first-week { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 16px; }
.first-week .card-title { flex-basis: 100%; margin: 0; }
.first-week p { margin: 0; flex: 1 1 280px; }
.install-steps { padding-left: 1.2em; }
.install-steps li { margin: 6px 0; }
.linkish { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; text-decoration: underline; }
.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.import-sheet { max-width: 320px; margin-bottom: 4px; }

/* Proposal engagement */
.eng-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.eng-stats > div { background: var(--bg); border-radius: var(--r-sm); padding: 8px 10px; display: flex; flex-direction: column; }
.eng-stats strong { font-size: var(--fs-base); }
.eng-stats span { font-size: var(--fs-xs); color: var(--muted); }
.read-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.read-bars li { display: grid; grid-template-columns: 7.5rem 1fr 4rem; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.read-track { height: 8px; border-radius: var(--r-xs); background: var(--line); overflow: hidden; }
.read-fill { display: block; height: 100%; background: var(--accent); border-radius: var(--r-xs); }
.read-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hint-line { margin-top: 10px; padding: 8px 10px; background: var(--accent-soft); color: var(--accent-d); border-radius: var(--r-sm); }

/* Peak-date pricing hint */
.demand { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: 12px 14px; margin-bottom: 16px; }
.demand:empty { display: none; }
.demand.compact { margin: 10px 0; padding: 10px 12px; }
.demand p { margin: 6px 0 0; }
.demand-head { display: flex; align-items: center; gap: 8px; }
.demand-head .muted { margin-left: auto; }
.demand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.demand.lv-peak .demand.lv-peak .demand-dot { background: var(--coral-signal); }
.demand.lv-busy .demand.lv-busy .demand-dot { background: var(--gold); }
.demand.lv-quiet .demand.lv-quiet .demand-dot { background: var(--accent); }
.demand-why { margin: 6px 0 0; padding-left: 18px; }


@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
}

/* sign-up: the card step */
.cardstep-step { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.cardstep-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.cardstep-tier { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: #fff; font: inherit; cursor: pointer; color: var(--ink); }
.cardstep-tier small { color: var(--muted); font-size: var(--fs-sm); line-height: 1.35; }
.cardstep-tier.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.cardstep-tier:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cardstep-sum { background: var(--bg); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.cardstep-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.cardstep-lock { display: flex; gap: 8px; align-items: flex-start; }
.cardstep-lock .ic { margin-top: 2px; color: var(--accent); }

/* billing: the card on file, masked */
.paycard { width: min(340px, 100%); aspect-ratio: 1.586; box-sizing: border-box; border-radius: var(--r-lg); padding: 18px 20px; background: radial-gradient(400px 220px at 0% 0%, #1d4a43 0%, transparent 70%), var(--navy); color: var(--on-night); display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 12px; }
.paycard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.paycard-num { font-family: var(--display); font-size: var(--fs-xl); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.paycard-exp { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--on-night-3); }
.paycard-exp strong { color: var(--on-night); font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.paycard-h { margin: 18px 0 2px; font-size: var(--fs-base); }
.stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.stack > .form-grid { align-self: stretch; }
.stack .paycard { margin-bottom: 0; }
.paycard-h { margin: 10px 0 0; }
.paycard-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* terms at sign-up, and the footer under every app page */
.terms-accept { background: var(--bg); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.terms-accept .check-row { font-size: var(--fs-md); line-height: 1.45; }
.terms-accept input[type=checkbox] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.app-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.app-foot a { color: var(--muted); }
.app-foot a:hover { color: var(--ink); }
@media print { .app-foot, .bottom-bar, .menu-note, .banner-wrap { display: none !important; } }

/* A row of tabs never widens the page on a phone: it scrolls sideways on its own. */
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { flex: 0 0 auto; white-space: nowrap; }

/* ======================================================================= Design review fixes (October 2026) */
/* Card titles are h2 now (heading order); same look as before. */
.card > h2.card-title, .card-head h2.card-title { font-family: var(--display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; line-height: 1.25; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); border: 2px solid var(--accent); border-radius: var(--r-md); padding: 10px 14px; font: 600 14px inherit; }
.skip-link:focus { top: 12px; }
.view h1:focus { outline: none; }
/* Days from the next or previous month on the calendar: readable (5:1), still clearly paler. */
.cal-cell.other { color: var(--muted); }
/* Headline figures never break inside a number. */
.stat strong { overflow-wrap: normal; white-space: nowrap; }

/* Today, on the dashboard */
.card.today { margin-bottom: 18px; }
.today > h2 { font-family: var(--display); font-size: var(--fs-xl); margin: 0 0 14px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.today > h2 small { font: 500 14px/1.4 system-ui, sans-serif; font-family: inherit; font-size: var(--fs-md); font-weight: 500; letter-spacing: 0; }
.today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; }
.today-group h3 { font-size: var(--fs-md); font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.today-group h3 a { color: inherit; text-decoration: none; }
.today-group h3 a:hover { text-decoration: underline; }
.today-group .count { background: var(--accent-soft); color: var(--accent-d); border-radius: var(--r-pill); padding: 0 8px; font-size: var(--fs-xs); line-height: 20px; }
.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.today-list li { display: block; min-width: 0; }
.today-list li.row { display: flex; gap: 8px; align-items: baseline; }
.today-list li > span:last-child, .today-list li > a { min-width: 0; }
.today-list .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; min-width: 62px; }
.today-list a { color: inherit; }
.dot.appt { --hc: var(--info); }
/* The setup checklist, once mostly done, as one line that opens. */
.setup-compact { margin-bottom: 18px; padding: 14px 18px; }
.setup-compact > summary { cursor: pointer; list-style: none; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.setup-compact > summary::-webkit-details-marker { display: none; }
.setup-compact > summary::before { content: '▸'; color: var(--muted); margin-right: 4px; }
.setup-compact[open] > summary::before { content: '▾'; }
.setup-compact .setup-body { margin-top: 14px; }

/* Leads: "Move to…" on each card (always on phones; on wider screens when the card has keyboard focus or is hovered). */
.lead-card .move { margin-top: 6px; font-size: var(--fs-sm); padding: 4px 8px; border-radius: var(--r-sm); display: none; }
.lead-card:hover .move, .lead-card:focus-within .move { display: block; }
.stage-tabs { display: none; }

/* Settings: a section menu on the left, one area at a time. */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { display: grid; gap: 2px; position: sticky; top: 16px; }
.settings-nav a { padding: 9px 12px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 500; }
.settings-nav a:hover { background: var(--accent-soft); }
.settings-nav a.on { background: var(--card); box-shadow: var(--shadow); font-weight: 700; color: var(--accent-d); }
.settings-pick { display: none; margin-bottom: 12px; }
.settings-main > .section-title { margin-top: 0; }
.settings-main .card + .card { margin-top: 18px; }

/* Calendar agenda */
.agenda { display: grid; gap: 16px; }
.agenda-day h3 { font-size: var(--fs-md); font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.agenda-day.today h3 { color: var(--accent-d); }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda-item { width: 100%; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.agenda-item:hover { border-color: var(--accent); }
.agenda-item.tentative { border-style: dashed; }
.agenda-item .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-md); }
.agenda-item .what strong { display: block; }
.agenda-item .what small { color: var(--muted); display: flex; align-items: center; gap: 0; }

@media (max-width: 900px) {
  .desktop-only { display: none; }
  .stage-tabs { display: flex; margin: 0 0 12px; }
  .board { display: block; overflow: visible; }
  .board .col { display: none; min-height: 0; }
  .board[data-stage="0"] .col:nth-child(1), .board[data-stage="1"] .col:nth-child(2), .board[data-stage="2"] .col:nth-child(3),
  .board[data-stage="3"] .col:nth-child(4), .board[data-stage="4"] .col:nth-child(5) { display: flex; }
  .lead-card .move { display: block; }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { display: none; }
  .settings-pick { display: block; width: 100%; }
  .agenda-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Phones: table rows become cards, each value next to its column name, so nothing scrolls sideways. */
@media (max-width: 600px) {
  .table-wrap { overflow: visible; }
  table.tv-stack, table.tv-stack tbody, table.tv-stack tr, table.tv-stack td { display: block; width: 100%; }
  table.tv-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.tv-stack tbody tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; margin: 0 0 10px; }
  table.tv-stack tbody td { border: 0; padding: 3px 0; text-align: right; overflow-wrap: anywhere; }
  table.tv-stack tbody td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  table.tv-stack tbody td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-align: left; flex: none; }
  table.tv-stack tbody td:first-child { display: block; text-align: left; font-weight: 600; padding-bottom: 6px; }
  table.tv-stack tbody td:first-child::before { content: none; }
  table.tv-stack tbody td:not([data-label]) { text-align: left; padding-top: 8px; }
  table.tv-stack tbody td:empty { display: none; }
}
.banner .banner-x { border: 0; background: none; font-size: var(--fs-xl); line-height: 1; padding: 2px 6px; margin-left: 4px; cursor: pointer; color: inherit; border-radius: var(--r-xs); }
.banner .banner-x:hover { background: rgba(0, 0, 0, .06); }
.row-link { color: inherit; text-decoration: none; }
.row-link:hover strong, .row-link:focus-visible strong { text-decoration: underline; }
/* Sub-headings inside cards and dialogs (h3 under a card's h2; they used to be h4). */
h3.h-sub, .card h3.h-sub, .modal h3.h-sub { font-family: inherit; font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; margin: 18px 0 8px; line-height: 1.3; }
.card h3.h-sub:first-of-type { margin-top: 4px; }
.waitlist h3.h-sub { margin: 14px 0 4px; }
h3.form-sub { grid-column: 1 / -1; }

/* Clean hospitality look (October 2026): the sign-in, sign-up and two-step screens match the website. A white
   page with a soft sage band behind a white card that has a hairline border and a low shadow. */
body:has(> #app > .auth-wrap), body:has(.auth-wrap) { background: #fff; }
.auth-wrap { min-height: 100vh; padding: 40px 16px; background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%); }
.auth-card { border-radius: var(--r-lg); padding: 36px 32px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(19,34,30,.05), 0 30px 60px -28px rgba(19,34,30,.35); }
.auth-card .btn.primary { border-radius: var(--r-md); }
@media (max-width: 560px) { .auth-wrap { padding: 20px 12px; } .auth-card { padding: 28px 20px; border-radius: var(--r-lg); } }

/* Website traffic (platform operator) */
.traffic-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; }

/* 3D floor plans (Premium) */
.floor3d { width: 100%; aspect-ratio: 16 / 10; min-height: 260px; border-radius: var(--r-md); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.floor3d-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.floor3d-canvas:active { cursor: grabbing; }
.floor3d-canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.floor3d-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.floor3d-upsell { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 22px; background: var(--surface-2); display: grid; gap: 10px; justify-items: start; }
.floor3d-upsell p { margin: 0; max-width: 44em; }
.premium-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-pill); font-size: var(--fs-2xs); font-weight: 700; background: var(--coral-soft); color: var(--coral-ink); vertical-align: 1px; }
.room-controls .seg { margin-left: auto; }

/* Tracing the floor plan and suggested layouts (Premium) */
.trace-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.trace-bar .seg { flex-wrap: wrap; }
.trace-hint { margin: 0 0 8px; }
.room.drawing .seat-table { pointer-events: none; }
.room .draw-layer { fill: transparent; cursor: crosshair; touch-action: none; }
.room .feat-wall { stroke: #4a4038; stroke-width: 0.6; stroke-linecap: round; }
.room .feat-wall.preview { stroke: var(--coral-ink); stroke-dasharray: 1 0.6; }
.room .feat-column { fill: #cbbfae; stroke: #6b5f52; stroke-width: 0.2; }
.room .feat-box rect { stroke-width: 0.25; }
.room .feat-stage rect { fill: #b08d6a; stroke: #6b4f36; }
.room .feat-bar rect { fill: #2f5a52; stroke: #1b3a35; }
.room .feat-dance rect { fill: #ecd9b5; stroke: #b98d5c; stroke-dasharray: 0.8 0.5; }
.room .feat-label { font-size: 1.5px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.room .feat-bar .feat-label, .room .feat-stage .feat-label { fill: #fff; }
.room .preview { fill: rgba(180, 64, 42, 0.12); stroke: var(--coral-ink); stroke-width: 0.3; }
.room .scale-pt { fill: var(--coral-ink); stroke: #fff; stroke-width: 0.2; }
.room .erasable { cursor: pointer; }
.room .erasable:hover rect, .room .erasable:hover { opacity: 0.6; }
.suggest { display: grid; gap: 12px; }
.suggest textarea { width: 100%; }
.suggest-out { display: grid; gap: 8px; }
.suggest-out:empty { display: none; }
.suggest-warn { margin: 0; padding-left: 18px; color: #7a3b12; }
.suggest-preview { width: 100%; max-height: 360px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.suggest-preview .room-floor { fill: #f7f4ee; }
.suggest-preview .tbl { fill: #fff; stroke: var(--accent); stroke-width: 0.3; }

/* 3D charts (dashboard, Reports, Website traffic) */
.chart3d-wrap { position: relative; }
.chart3d { display: none; position: relative; width: 100%; min-width: 0; aspect-ratio: 2 / 1; max-height: 420px; }
@media (max-width: 600px) { .chart3d { aspect-ratio: 4 / 3; } }
.chart3d-wrap.is3d .chart3d { display: block; }
.chart3d-wrap.is3d .chart3d-flat { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chart3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; border-radius: var(--r-md); }
.chart3d-canvas:active { cursor: grabbing; }
.chart3d-tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: #fff; padding: 4px 9px; border-radius: var(--r-xs); font-size: var(--fs-sm); font-weight: 600; pointer-events: none; white-space: nowrap; z-index: 2; }
.rep-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rep-bar .tabs { margin-bottom: 0; }
.chart-toggle button { white-space: nowrap; }

/* Chat link (website chatbot settings): a switched-off link is shown struck through. */
code.embed.is-off { text-decoration: line-through; color: var(--muted); }

/* The Topvora logo in the menu and on the sign-in card: the wordmark, or only the mark when the menu is shrunk. */
.brand { min-height: 36px; }
.brand-word { display: block; height: 30px; width: auto; max-width: 100%; }
.brand-mark { display: none; height: 32px; width: 32px; }
.layout.nav-compact .brand-word { display: none; }
.layout.nav-compact .brand-mark { display: block; }
.auth-card .brand-word { height: 38px; }
@media (max-width: 900px) { .layout.nav-compact .brand-word { display: block; } .layout.nav-compact .brand-mark { display: none; } }

/* The brand line under the logo: on the sign-in card, and in the menu (hidden when the menu is shrunk). */
.brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand .tagline { font: 600 12px/1.2 var(--body); letter-spacing: .01em; color: #d8b26a; padding-left: 2px; }
.auth-card .brand .tagline { color: #8a6418; font-size: var(--fs-sm); }
.layout.nav-compact .brand { align-items: center; }
.layout.nav-compact .brand .tagline { display: none; }
@media (max-width: 900px) { .layout.nav-compact .brand .tagline { display: block; } }

/* ---- Texts, phone alerts and follow-ups */
.mail-date { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.mail-row.unread .mail-count { color: #fff; background: var(--accent); border-radius: var(--r-pill); padding: 0 7px; font-weight: 700; }
.sms-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sms-head .card-title { margin: 0; }
.sms-head .back-link { display: none; }
.sms-thread { display: flex; flex-direction: column; gap: 8px; padding: 16px 2px; max-height: calc(100vh - 380px); min-height: 220px; overflow-y: auto; }
.sms-msg { max-width: min(78%, 520px); padding: 9px 13px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); align-self: flex-start; }
.sms-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sms-msg small { display: block; margin-top: 4px; font-size: var(--fs-2xs); color: var(--muted); }
.sms-msg.out { align-self: flex-end; background: var(--accent); border-color: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.sms-msg.out small { color: rgba(255, 255, 255, .82); }
.sms-msg.in { border-bottom-left-radius: 5px; }
.sms-msg.failed { background: var(--coral-soft); border-color: var(--coral-signal); color: var(--ink); }
.sms-msg.failed small { color: var(--coral-ink); }
.sms-compose { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.sms-compose textarea { width: 100%; resize: vertical; }
.note-box { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--ink); border-radius: var(--r-md); padding: 12px 14px; margin: 10px 0; }
.note-box .btn { margin-top: 8px; }
.steps-list { margin: 8px 0 4px; padding-left: 20px; display: grid; gap: 4px; }
.sub-h { font: 600 14px/1.3 var(--display); margin: 18px 0 6px; }
fieldset.plain { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
fieldset.plain > legend { font: 600 15px/1.3 var(--display); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
fieldset.plain > legend + * { clear: both; }
.fu-rule { border-top: 1px solid var(--line) !important; padding-top: 14px !important; }
.fu-steps { display: grid; gap: 12px; margin-top: 10px; }
.fu-step { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 0; min-width: 0; }
.fu-step legend { font-weight: 600; padding: 0 4px; }
.fu-step textarea, .fu-rule textarea { width: 100%; }
.fu-step .field.inline input { width: 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font: 500 12px/1 var(--body); padding: 6px 8px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); color: var(--accent-d); cursor: pointer; }
.chip-btn:hover { background: var(--accent-soft); }
.chip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview-box { background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 14px; white-space: pre-wrap; margin: 12px 0; }
.list.compact li { padding: 6px 0; }
@media (max-width: 900px) {
  .sms-head .back-link { display: inline-block; }
  .sms-thread { max-height: none; min-height: 160px; }
  .sms-msg { max-width: 88%; }
}
.fu-after { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.fu-after input { width: 72px; }
.fu-tags { display: grid; gap: 6px; margin: 4px 0 6px; }
.form-grid > .row.full, .form-grid > .preview-box { grid-column: 1 / -1; }
.sms-head .back-link { white-space: nowrap; }
.card .row:has(> .badge) { align-items: center; }

/* Tabs across the top of a combined page (Messages: Email / Texts / Live chat, Venue setup, Settings...) */
.hub-tabs { display: flex; gap: 6px; margin: 0 0 18px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card, #fff); color: var(--ink); text-decoration: none; font-size: var(--fs-md); font-weight: 600; white-space: nowrap; }
.hub-tab:hover { border-color: var(--navy); }
.hub-tab[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hub-tab:focus-visible { outline: 2px solid var(--coral-signal); outline-offset: 2px; }
.hub-tab .nav-n { margin-left: 2px; min-width: 18px; line-height: 18px; font-size: var(--fs-2xs); background: var(--coral); color: var(--navy); }

/* Sign-up: "Step 2 of 4" with a bar, and the Show/Hide button in password boxes */
.steps { display: flex; flex-direction: column; gap: 8px; }
.steps-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.steps-top strong { color: var(--ink); font-weight: 600; }
.steps-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.steps-bar li { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--line); }
.steps-bar li.done { background: var(--accent); }
.steps-bar li.now { background: var(--navy); }
.field-l { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { padding-right: 66px; }
.pw-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); min-height: 30px; padding: 4px 10px; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--accent-d); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.pw-toggle:hover { background: var(--accent-soft); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
@media (forced-colors: active) { .steps-bar li { border: 1px solid CanvasText; } .steps-bar li.done, .steps-bar li.now { background: CanvasText; } }
.pw-wrap input::-ms-reveal, .pw-wrap input::-ms-clear { display: none; } /* Edge adds its own eye button */

/* Setting up two-step sign-in: the three ways as large choices */
.method-list { display: flex; flex-direction: column; gap: 10px; }
.method-opt { display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card, #fff); color: var(--ink); font: inherit; cursor: pointer; }
.method-opt strong { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); }
.method-opt > span { color: var(--muted); font-size: var(--fs-md); }
.method-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.method-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.method-opt.rec { border-color: var(--accent); }
.method-opt[disabled] { opacity: .6; cursor: progress; }
.method-tag { font-size: var(--fs-2xs); font-weight: 600; color: var(--accent-d); background: var(--accent-soft); border-radius: var(--r-pill); padding: 2px 8px; }
.auth-foot p { margin: 4px 0; }
.signin-ways h3 { font-size: var(--fs-base); margin: 18px 0 6px; }
.signin-ways h3:first-of-type { margin-top: 8px; }
.signin-ways .list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.signin-ways .list small { display: block; color: var(--muted); }

/* Type-ahead contact picker */
.typeahead { position: relative; }
.typeahead input { width: 100%; }
.ta-list { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 30px rgba(15, 42, 38, .16); max-height: 280px; overflow-y: auto; }
.ta-list[hidden] { display: none; }
.ta-list li { padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.ta-list li small { color: var(--muted); font-size: var(--fs-sm); }
.ta-list li.on, .ta-list li:hover { background: var(--accent-soft); }
.ta-list li.ta-none { color: var(--muted); cursor: default; background: none; }
.client-from-lead { margin: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.client-from-lead small { color: var(--muted); margin-left: auto; }

/* Search: list search boxes and the search-everything panel */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.list-tools p { margin: 0; }
.search-box { position: relative; flex: 0 1 340px; min-width: 200px; }
.search-box .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 34px; }
.find-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; }
.find-btn kbd { font: 600 11px/1 Inter, sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 3px 5px; }
.find input[type=search] { font-size: var(--fs-lg); padding: 11px 12px; }
.find-results { margin-top: 10px; max-height: min(60vh, 520px); overflow-y: auto; }
.find-h { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin: 12px 4px 4px; }
.find-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; }
.find-item small { color: var(--muted); }
.find-item.on, .find-item:hover { background: var(--accent-soft); }
@media (max-width: 900px) { .find-btn span { display: none; } .search-box { flex-basis: 100%; } }

/* The leads board fits a 1280px laptop without sideways scrolling */
.board { grid-template-columns: repeat(5, minmax(172px, 1fr)); }

/* The email warning: one short line on phones */
.email-banner .short { display: none; }
@media (max-width: 600px) {
  .email-banner { padding: 4px 4px 4px 12px; gap: 6px; font-size: var(--fs-md); flex-wrap: nowrap; }
  .email-banner > span { flex: 1; }
  .email-banner .long { display: none; }
  .email-banner .short { display: inline; }
}

/* Proposal line items: each line is a small card on phones, so nothing runs off the screen */
@media (max-width: 600px) {
  .line-items thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .line-items, .line-items tbody { display: block; }
  .line-items tr { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .line-items td { display: block; padding: 0; border: 0; }
  .line-items td::before { content: attr(data-label); display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-bottom: 3px; }
  .line-items td[data-label="Item"] { grid-column: 1 / -1; }
  .line-items td.amt { text-align: right; align-self: center; }
  .line-items td:last-child::before { content: none; }
  .line-items input { width: 100%; }
}

/* Checkboxes in a list of options: big enough, and far enough apart, to hit (WCAG 2.2 target size) */
.check-row input[type=checkbox] { width: 18px; height: 18px; flex: none; margin: 1px 0 0; }
.check-row + .check-row, .field + .check-row { margin-top: 8px; }

/* Phones: buttons, fields, menu entries and links at least 44px tall, easy to tap */
@media (max-width: 900px) {
  .btn, .btn.sm, input:not([type=checkbox]):not([type=radio]), select, .tab, .nav a, .nav-h, .icon-btn, .pw-toggle, .hub-tab, .method-opt,
  .tb-btn, .me, .banner-x, .seg button, .linkish { min-height: 44px; }
  .icon-btn, .tb-btn, .banner-x { min-width: 44px; }
  .app-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  a.back, a.row-link, .today-group h3 a { display: inline-flex; align-items: center; min-height: 44px; }
  .cal-cell .num { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  .check-row, .toggle-row { min-height: 44px; align-items: center; }
}

/* The app's own confirmation dialog, and the Undo toast after a delete */
.ask p { margin: 0 0 6px; color: var(--muted); }
.ask .form-actions { margin-top: 14px; }
.btn.danger.solid { background: var(--coral-ink); border-color: var(--coral-ink); color: #fff; }
.btn.danger.solid:hover { background: var(--coral-ink-d); border-color: var(--coral-ink-d); }
.undo-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  background: var(--navy); color: #fff; padding: 10px 12px 10px 18px; border-radius: var(--r-md); box-shadow: 0 14px 40px rgba(15, 42, 38, .3); font-size: var(--fs-base); }
.undo-toast .btn { background: transparent; color: var(--coral); border-color: rgba(255, 255, 255, .25); }
.undo-toast .btn:hover { background: rgba(255, 255, 255, .08); }
.undo-toast .btn:focus-visible { outline: 2px solid var(--coral); }

/* ======================================================================= Dashboard, Bookings, calendar availability */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1240px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-col { display: flex; flex-direction: column; min-width: 0; }
/* one column: what needs action first. Today, then payments to chase, then availability, then the rest */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .dash-col { display: contents; }
  .dash-col > * { order: 4; }
  .dash-grid .card.today { order: 1; }
  .dash-grid .dash-pay { order: 2; }
  .dash-grid .dash-av { order: 3; }
}
/* the overdue figure is a link to the payments to chase */
a.stat-link { text-decoration: none; transition: background .15s; }
a.stat-link:hover { background: var(--navy-2); }
a.stat-link strong { color: var(--coral); }
.dash-pay:focus { outline: none; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2.card-title { margin-bottom: 2px; }
.card-sub { margin: -8px 0 12px; }
.card-foot { margin-top: 12px; }
.page-intro { margin: -14px 0 18px; }
/* availability: one row per space, one square per day */
.av-scroll { overflow-x: auto; }
.av-grid { display: grid; grid-template-columns: 128px repeat(14, minmax(28px, 1fr)); gap: 2px 1px; min-width: 560px; align-items: center; }
.av-day { font-size: var(--fs-2xs); color: var(--muted); text-align: center; line-height: 1.25; padding-bottom: 4px; }
.av-day b { display: block; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; }
.av-day.is-today b { color: var(--accent); }
.av-name { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; min-width: 0; }
.av-name .dot { margin: 0; }
.av-name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.av-row { display: contents; }
.av-cell { display: block; width: 100%; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--faint); background: var(--card); padding: 0; }
button.av-cell { cursor: pointer; font: inherit; }
button.av-cell.free:hover { border-color: var(--accent); background: var(--accent-soft); }
button.av-cell.booked:hover, button.av-cell.hold:hover { box-shadow: inset 0 0 0 2px var(--card); }
.av-cell.booked { background: var(--hc, var(--accent)); border-color: var(--hc, var(--accent)); }
.av-cell.hold { background: color-mix(in srgb, var(--hc, var(--gold)) 16%, #fff); border: 2px dashed var(--hc, var(--gold-ink)); }
/* Friday to Sunday shaded, cells padded so the shade shows around each day */
.av-grid [role="gridcell"] { padding: 2px; border-radius: var(--r-md); }
.av-grid [role="gridcell"].wk, .av-day.wk { background: var(--sunk); }
.av-day { border-radius: var(--r-md) var(--r-md) 0 0; padding-top: 4px; }
.av-day.wk { color: var(--ink-2); font-weight: 600; }
.av-week { display: none; margin-left: auto; }
.av-legend .sw { width: 14px; height: 14px; border-radius: var(--r-xs); vertical-align: -3px; margin-right: 6px; border: 1px solid var(--line); }
.av-legend .sw.av-booked { background: var(--ink-2); border-color: var(--ink-2); }
.av-legend .sw.av-hold { background: var(--card); border: 2px dashed var(--ink-2); }
.av-legend .sw.av-wk { background: var(--sunk); border-color: var(--sunk); }
.av-legend .sw.av-free { background: var(--card); border-color: var(--faint); }
/* payments to chase */
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.pay-list li:first-child { border-top: 0; padding-top: 0; }
.pay-who { flex: 1; min-width: 150px; }
.pay-who a { color: inherit; }
.pay-amt { min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.pay-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); font-weight: 700; margin: 16px 0 6px; }
.pay-h:first-of-type { margin-top: 4px; }
.pay-h .count { background: var(--hover); color: var(--ink-2); border-radius: var(--r-pill); padding: 0 8px; font-size: var(--fs-xs); line-height: 20px; }
.pay-actions { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-top: 4px; }
.pay-actions .linkish { font-size: var(--fs-sm); }
.pay-note { margin: 0 0 8px; padding: 8px 10px; border-radius: var(--r-md); background: var(--gold-soft); color: var(--gold-ink); font-size: var(--fs-sm); }
.pay-note a { color: inherit; font-weight: 600; }
.nowrap .dot, td .dot { margin-right: 6px; }
/* bookings list tabs */
.tab-count { margin-left: 6px; color: var(--muted); font-weight: 500; }
/* month calendar: how many spaces are still free */
.avail-pill { margin-top: auto; padding: 0 4px; font-size: var(--fs-2xs); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.avail-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.avail-pill.free { color: var(--accent); }
.avail-pill.part { color: var(--gold-ink); }
.avail-pill.full { color: var(--coral-ink); }
@media (max-width: 600px) { .avail-pill { font-size: 0; padding: 0; } .cal-cell .avail-pill { display: inline-flex; vertical-align: top; margin: 0 3px 0 0; } }

/* phones: one week of the availability grid at a time, no sideways scroll */
@media (max-width: 600px) {
  .av-grid { grid-template-columns: 92px repeat(7, minmax(0, 1fr)); min-width: 0; gap: 2px; }
  .av-grid:not(.second) [data-half="2"], .av-grid.second [data-half="1"] { display: none; }
  .av-name small { display: none; }
  .av-week { display: inline-flex; }
}
/* phones: each payment keeps its amount on the name's line, the badge underneath; the chart-style switch (flat is the
   default) gives its room to the two buttons */
@media (max-width: 600px) {
  .pay-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
  .pay-list .pay-who { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
  .pay-list .pay-amt { grid-column: 2; grid-row: 1; }
  .pay-list .badge { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
  .page-head .chart-toggle { display: none; }
}

/* money columns on the dashboard's upcoming bookings: right-aligned */
.dash-upcoming th:last-child, .dash-upcoming td:last-child { text-align: right; }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* space cards: rental prices on their own line under the capacity */
.hall-rates { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
/* the booking form's space-rental line, under the Rental field */
.rent-hint { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.rent-hint:empty { display: none; }
/* template merge fields: the code column as wide as the longest code */
.dl.merge-fields { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; align-items: baseline; }
.merge-fields code { font-size: var(--fs-sm); color: var(--accent-d); background: var(--surface-2); border-radius: var(--r-xs); padding: 1px 6px; }
.merge-fields dd { color: var(--ink-2); }

/* User-selectable dark grey appearance (reference: charcoal panels, teal accents). */
:root[data-theme="dark"] {
  --navy: #0b121b; --navy-2: #17212d; --night-line: #293746;
  --on-night: #f1f5f9; --on-night-2: #c4ced9; --on-night-3: #9caec0;
  --ink: #f1f5f9; --ink-2: #d0dae4; --muted: #a5b4c5; --faint: #8c9caf;
  --line: #344251; --line-soft: #2b3948; --line-strong: #4b5b6a;
  --bg: #0d141e; --card: #19232f; --surface-2: #202c39;
  --hover: #293846; --sunk: #111b26;
  --accent: #1dd9a6; --accent-d: #5de9c4; --accent-soft: #173f3b;
  --accent-line: #276e61; --accent-ring: rgba(29,217,166,.25);
  --coral-ink: #ffb7a6; --coral-ink-d: #ffc7b9; --coral-soft: #492d30;
  --gold-ink: #f2cb67; --gold-soft: #43391f; --gold-line: #776333;
  --info: #8dbefb; --info-soft: #1c3656;
  --plum: #c5a7ff; --plum-soft: #382b50;
  --danger: #ff8e81; --danger-d: #ffb0a7;
  --shadow: 0 1px 4px rgba(0,0,0,.25);
  --shadow-md: 0 5px 18px rgba(0,0,0,.3);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.55);
  color-scheme: dark;
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea { color-scheme: dark; }
/* Hard-coded light colours that failed WCAG AA in dark grey (found by e2e/42-bookings-theme). */
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--card); }
:root[data-theme="dark"] .tv-eyebrow,
:root[data-theme="dark"] .tv-section-heading a { color: var(--accent-d); }
:root[data-theme="dark"] .plan-flag { color: var(--navy); }
.appearance-field { margin-top: 14px; max-width: 280px; }
.appearance-select { width: 100%; }

/* Premium charcoal dashboard refinements: appearance selection remains user-controlled. */
:root[data-theme="dark"] .stat { background: linear-gradient(145deg,#202d3b,#131d29); border:1px solid #2b3948; box-shadow:0 10px 28px #0003; border-radius:17px; }
:root[data-theme="dark"] .stat.lead { background:linear-gradient(135deg,#123e38,#182935); border-color:#24715f; }
:root[data-theme="dark"] .stat strong { color:#f6fafc; letter-spacing:-.035em; }
:root[data-theme="dark"] .card { background:linear-gradient(150deg,#1b2733,#151f2b); border:1px solid #2a3948; box-shadow:0 12px 32px #0002; border-radius:17px; }
:root[data-theme="dark"] .nav a.active { background:linear-gradient(95deg,#0b806b,#145347); color:#fff; border-radius:12px; }
:root[data-theme="dark"] .bars .fill { background:linear-gradient(90deg,#0b957c,#39dfb1); }
:root[data-theme="dark"] .dash-upcoming tr:hover { background:#253847; }
:root[data-theme="dark"] .btn.primary { background:linear-gradient(100deg,#10b991,#39d6b1); color:#062a26; border:0; }
:root[data-theme="dark"] .topbar { border-bottom-color:#293847; }

/* Topvora Workspace v2 — consistent calendar-first + AI Employee design */
:root { --tv-forest:#07533f; --tv-forest-dark:#053e32; --tv-cream:#f7f9f6; --tv-outline:#e0e9e3; --tv-ease:cubic-bezier(.2,.7,.2,1); }
.tv-studio { margin: 18px 0 24px; }
.tv-studio-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.tv-studio-header h2 { margin:3px 0 4px; font-size:clamp(1.25rem,2vw,1.65rem); letter-spacing:-.035em; }
.tv-studio-header p { margin:0; color:var(--muted, #64756c); }
.tv-eyebrow {font-size:.7rem;font-weight:800;letter-spacing:.16em;color:#0f6b55;}
.tv-studio-grid {display:grid;grid-template-columns:minmax(0, 1fr) minmax(270px, 330px);gap:16px;align-items:stretch;}
.tv-studio-main {min-width:0;display:grid;gap:14px;}
.tv-calendar-preview,.tv-ai-panel {border:1px solid var(--tv-outline);border-radius:20px;box-shadow:0 9px 32px rgba(15,58,41,.045);overflow:hidden;}
.tv-calendar-preview {padding:18px;background:var(--surface, #fff);}
.tv-section-heading {display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px;}
.tv-section-heading h3 {font-size:1.1rem;margin:0 0 3px;letter-spacing:-.02em;}
.tv-section-heading small {color:var(--muted,#6c7772);}
.tv-section-heading a {font-size:.83rem;font-weight:700;color:var(--tv-forest);text-decoration:none;}
.tv-mini-weekdays,.tv-mini-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));}
.tv-mini-weekdays span {padding:8px 2px;text-align:center;font-size:.73rem;color:var(--muted,#667);font-weight:700;}
.tv-mini-cell {min-height:80px;padding:8px 5px;border-top:1px solid var(--tv-outline);border-right:1px solid var(--tv-outline);text-decoration:none;color:inherit;transition:background .18s var(--tv-ease);min-width:0;}
.tv-mini-cell:nth-child(7n) {border-right:0;}
.tv-mini-cell:not(.tv-mini-empty):hover {background:#eaf6ef;}
.tv-mini-cell.is-today {background:#eef8f1;box-shadow:inset 0 0 0 1px #4fbd90;}
.tv-mini-day {display:block;font-size:.78rem;font-weight:750;margin-bottom:5px;}
.tv-mini-event {display:block;background:#d9f4e4;color:#0b5b3c;font-size:.68rem;font-weight:650;padding:3px 5px;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:3px 0;}
.tv-mini-more {font-size:.66rem;color:var(--muted,#667);}
.tv-workflow-shortcuts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.tv-quick-action {display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--tv-outline);border-radius:13px;text-decoration:none;color:inherit;background:var(--surface,#fff);transition:transform .18s var(--tv-ease),box-shadow .18s var(--tv-ease),border-color .18s var(--tv-ease);min-width:0;}
.tv-quick-action:hover {transform:translateY(-2px);border-color:#8ac8ab;box-shadow:0 8px 20px rgba(8,71,47,.09);}
.tv-quick-icon {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#e6f5ec;color:#076747;font-size:1.2rem;}
.tv-quick-action strong {display:block;font-size:.82rem;}
.tv-quick-action small {display:block;color:var(--muted,#667);font-size:.7rem;line-height:1.4;}
.tv-quick-arrow {margin-left:auto;color:#41966f;}
.tv-ai-panel {display:flex;flex-direction:column;background:var(--surface,#fff);}
.tv-ai-head {display:flex;gap:12px;align-items:center;background:linear-gradient(120deg,#064d3d,#0b7051);color:white;padding:20px;}
.tv-ai-head h2 {margin:0 0 3px;font-size:1.16rem;}
.tv-ai-head small {opacity:.85;}
.tv-ai-spark {font-size:1.9rem;color:#f2d47a;}
.tv-ai-intro {margin:16px 16px 10px;color:var(--muted,#65766b);font-size:.87rem;line-height:1.55;}
.tv-ai-panel .tv-quick-action {margin:5px 14px;background:var(--tv-cream);}
.tv-ai-footer {margin:auto 16px 16px;padding:14px;border-radius:12px;background:#e8f5ed;color:#205943;font-size:.76rem;line-height:1.5;}
.tv-ai-footer span {margin-right:6px;color:#b68a21;}
@media(max-width:1100px){.tv-studio-grid{grid-template-columns:1fr}.tv-ai-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.tv-ai-head,.tv-ai-intro,.tv-ai-footer{grid-column:1/-1}.tv-ai-footer{margin-top:12px}}
@media(max-width:640px){.tv-studio-header{align-items:flex-start;flex-direction:column}.tv-calendar-preview{padding:10px}.tv-mini-cell{min-height:55px;padding:4px 2px}.tv-mini-event{font-size:.59rem}.tv-workflow-shortcuts{grid-template-columns:1fr}.tv-ai-panel{display:flex}.tv-section-heading{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.tv-quick-action,.tv-mini-cell{transition:none}.tv-quick-action:hover{transform:none}}
/* Honor existing app dark-theme setting */
[data-theme="dark"] .tv-calendar-preview,[data-theme="dark"] .tv-ai-panel,[data-theme="dark"] .tv-quick-action{background:var(--surface,#202d2b);border-color:var(--line,#38514b)}
[data-theme="dark"] .tv-mini-cell.is-today,[data-theme="dark"] .tv-mini-cell:hover{background:#174b3b}
[data-theme="dark"] .tv-ai-intro,[data-theme="dark"] .tv-quick-action small{color:#b9cec4}

/* ---------------------------------------------------------------- loading placeholders */
.skel { display: grid; gap: 10px; padding: 4px 0; }
.skel i { display: block; height: 12px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--sunk) 0%, var(--hover) 50%, var(--sunk) 100%); background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite; }
.skel .short { width: 60%; }
.skel-page { gap: 14px; }
.skel-page .skel-title { height: 28px; width: 34%; margin-bottom: 10px; }
.skel-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 10px; }
.skel-tiles i { height: 84px; border-radius: var(--r-lg); }
.skel-page .skel-row { height: 40px; border-radius: var(--r-md); }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------------------------------------------------------------- what just changed */
@keyframes flash { from { background-color: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); } to { background-color: transparent; box-shadow: inset 3px 0 0 transparent; } }
.flash, tr.flash > td { animation: flash 1.6s ease-out; }
.badge.flash { animation: flash 1.6s ease-out; border-radius: var(--r-pill); }

/* ---------------------------------------------------------------- side panel (wide screens) */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(860px, 52vw); z-index: 60; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(15, 42, 38, .18); overflow-y: auto; animation: drawer-in .2s ease-out; }
.drawer-body { padding: 28px 36px 56px; }
@media (max-width: 1499px) { .drawer { width: min(760px, 66vw); } .drawer-body { padding: 20px 24px 48px; } }
.drawer-body .back { display: none; }
.drawer-close { position: sticky; top: 12px; float: right; margin: 12px 16px 0 0; font-size: 22px; z-index: 1; background: var(--card); border: 1px solid var(--line); }
@keyframes drawer-in { from { transform: translateX(40px); } to { transform: none; } }

/* toasts and their action buttons arrive with a short rise */
.undo-toast { animation: toast-in .18s ease-out; }
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .skel i, .flash, tr.flash > td, .badge.flash, .drawer, .undo-toast { animation: none; } }

/* Billing: this month's chatbot answers against the plan's allowance */
.usage-bar { display: block; height: 6px; margin-top: 6px; max-width: 240px; border-radius: var(--r-pill); background: var(--sunk); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--accent); }
.usage-bar.full i { background: var(--coral-signal); }
.error-text { color: #b42318; }

/* Line charts (trends), donut (shares), and the entrance animations. Animations run only on a page just opened (.anim,
   added by animateIn in app.js, never with Reduce motion), and wait until the chart is in view ([data-wait]). */
.lchart { position: relative; }
.lchart .chart { display: block; }
.lline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.lstop-top { stop-color: var(--accent); stop-opacity: .26; }
.lstop-bottom { stop-color: var(--accent); stop-opacity: 0; }
.lpt { position: absolute; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: pointer; }
.lpt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); transition: transform .15s, background .15s; }
.lchart.dense .lpt::after { opacity: 0; }
.lpt:hover::after, .lpt:focus-visible::after { opacity: 1; transform: scale(1.4); background: var(--accent); }
.lpt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ltip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px)); background: var(--ink); color: var(--card); border-radius: 10px; padding: 6px 10px; font-size: 13px; line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.ltip span { display: block; font-size: 12px; opacity: .8; }
.ltip strong { font-size: 15px; }
.donut-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 14px; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: var(--line-soft); stroke-width: 6; }
.donut-seg { fill: none; stroke-width: 6; }
.donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-mid strong { font-size: 24px; font-weight: 700; line-height: 1.1; }
.donut-mid small { color: var(--muted); }
.donut-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.ds0 { stroke: var(--accent-d); background: var(--accent-d); }
.ds1 { stroke: var(--accent); background: var(--accent); }
.ds2 { stroke: #4fa595; background: #4fa595; }
.ds3 { stroke: #8ec5b8; background: #8ec5b8; }
.ds4 { stroke: #c4e2da; background: #c4e2da; }
.ds5 { stroke: var(--faint); background: var(--faint); }
@keyframes tv-grow { from { transform: scaleY(0); } }
@keyframes tv-slide { from { transform: scaleX(0); } }
@keyframes tv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tv-fade { from { opacity: 0; } }
@keyframes tv-sweep { from { stroke-dasharray: 0 100; } }
.anim .chart .cbar { transform-box: fill-box; transform-origin: bottom; animation: tv-grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.anim .hbar-fill, .anim .bars .fill { transform-origin: left; animation: tv-slide .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.anim .lline { animation: tv-draw 1.1s cubic-bezier(.3, .7, .2, 1) both; }
.anim .larea { animation: tv-fade .9s .3s ease-out both; }
.anim .lpt { animation: tv-fade .3s ease-out both; animation-delay: calc(.8s + var(--i, 0) * 25ms); }
.anim .donut-seg { animation: tv-sweep .9s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 120ms); }
.anim [data-wait], .anim [data-wait] * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .anim * { animation: none !important; } }

/* Add a venue: what to copy from the venue it starts from */
.copy-groups { display: grid; gap: 6px; margin: 8px 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.copy-groups legend { padding: 0 4px; font-weight: 600; }
.copy-groups[hidden] { display: none; }
