/* Open Desk prototype. Deliberately rough "wireframe" look: operators should feel free
   to say "that's wrong, we do it like this", not comment on button colours. */
:root {
  --paper: #faf8f3;
  --card: #ffffff;
  --ink: #1d1d1b;
  --muted: #6b6860;
  --line: #1d1d1b;
  --soft: #d9d5cb;
  --taken: #cfcbc1;
  --free: #ffffff;
  --overdue: #f2b8a8;
  --overdue-ink: #9a2f14;
  --hold: #f6dd8f;
  --ok: #bfe0c2;
  --ok-ink: #1f6a2a;
  --hand: 'Kalam', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 var(--body);
}
h1, h2, h3 { font-family: var(--hand); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
  background: var(--card);
}
.brand { display: flex; flex-direction: column; min-width: 0; }
.logo { font-family: var(--hand); font-weight: 700; font-size: 22px; }
.space { font-size: 13px; color: var(--muted); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  padding: 5px 12px; border: 2px solid var(--line); border-radius: 6px;
  text-decoration: none; color: var(--ink); background: var(--card); font-weight: 600;
}
.tab.on { background: var(--ink); color: var(--paper); }
.tab.wrapup { border-style: dashed; margin-left: 6px; }
.tab.wrapup.on { border-style: solid; }
.tab.soon { border-style: dashed; color: var(--muted); border-color: var(--soft); cursor: default; }
.tab small { font-size: 11px; margin-left: 5px; font-weight: 400; }
.proto {
  margin-left: auto; font-size: 12px; color: var(--muted);
  border: 1.5px dashed var(--soft); padding: 4px 8px; border-radius: 6px;
}
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--muted); font-size: 12px; }

/* ---------- Page layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--card); border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--hand); font-size: 26px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.alert { background: #fdeee9; border-color: var(--overdue-ink); }
.stat.alert b { color: var(--overdue-ink); }

.card { background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 2px solid var(--line); border-radius: 6px;
  background: var(--card); cursor: pointer; font-weight: 600; font-size: 14px;
}
a.btn { color: var(--ink); text-decoration: none; }
.btn:hover { background: #f1eee6; }
.btn.primary, a.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #3a3a36; }
.btn:focus-visible, .tab:focus-visible, .unit:focus-visible, .linkish:focus-visible, .chip:focus-visible, .row:focus-visible {
  outline: 3px solid #3b6fd8; outline-offset: 2px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card);
  cursor: pointer; font-size: 13px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1.5px solid currentColor; white-space: nowrap; }
.pill.paid, .pill.ok { color: var(--ok-ink); background: var(--ok); border-color: var(--ok-ink); }
.pill.overdue, .pill.bad { color: var(--overdue-ink); background: var(--overdue); border-color: var(--overdue-ink); }
.pill.hold { color: #6b5200; background: var(--hold); border-color: #6b5200; }
.pill.plain { color: var(--muted); }

/* ---------- Floor map ---------- */
.floor-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; margin: 10px 0 14px; }
.legend i { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 3px; vertical-align: -3px; margin-right: 5px; }
.floor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.zone { border: 2px dashed var(--soft); border-radius: 10px; padding: 10px; }
.zone.wide { grid-column: 1 / -1; }
.zone h3 { margin-bottom: 8px; }
.zone h3 small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.units.big { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

.unit {
  position: relative; min-height: 50px; padding: 5px 6px; text-align: left;
  border: 2px solid var(--line); border-radius: 6px; background: var(--free); cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; font-size: 12px;
}
.units.big .unit { min-height: 76px; }
.unit b { font-family: var(--mono); font-size: 12px; }
.unit .who { font-size: 11px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit.free { border-style: dashed; color: var(--muted); }
.unit.taken, .unit.booked { background: var(--taken); }
.unit.overdue { background: var(--overdue); color: var(--overdue-ink); }
.unit.overdue::after { content: '!'; position: absolute; top: 2px; right: 6px; font-weight: 800; font-size: 14px; }
.unit.hold { background: repeating-linear-gradient(45deg, var(--hold), var(--hold) 6px, #fbeec4 6px, #fbeec4 12px); }
.unit.sel { box-shadow: 0 0 0 3px var(--ink); }
.unit.dim { opacity: .25; }
.legend i.free { border-style: dashed; }
.legend i.taken { background: var(--taken); }
.legend i.overdue { background: var(--overdue); }
.legend i.hold { background: var(--hold); }

.panel { position: sticky; top: 12px; }
.panel .empty { color: var(--muted); font-size: 14px; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0; font-size: 14px; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.panel .note { font-size: 13px; background: #f4f1ea; border-radius: 6px; padding: 8px 10px; margin-top: 10px; }
.wa {
  margin-top: 12px; background: #e7f6e3; border: 1.5px solid #7fb573; border-radius: 10px 10px 10px 2px;
  padding: 10px 12px; font-size: 14px; white-space: pre-line;
}
.wa small { display: block; color: var(--muted); margin-top: 6px; font-size: 11px; }

.ask {
  margin-top: 20px; border: 2px dashed var(--line); border-radius: 10px; padding: 12px 14px; background: #fffdf5;
}
.ask h3 { margin-bottom: 4px; }
.ask ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }

/* ---------- Payments ---------- */
.pay-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.list { background: var(--card); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--soft); cursor: pointer; width: 100%;
  background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: #f7f5ef; }
.row.sel { background: #efece4; box-shadow: inset 4px 0 0 var(--ink); }
.row.problem { background: #fdf3ef; }
.row.problem.sel { background: #f8e3db; }
.row .ch { font-size: 12px; font-weight: 700; }
.row .ch small { display: block; font-weight: 400; color: var(--muted); }
.row .from { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .amt { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.row .amt .pill { margin-top: 3px; }

.match-box { border: 2px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 12px; }
.match-box.suggest { border-style: dashed; background: #fffdf5; }
.match-box h3 { font-size: 15px; margin-bottom: 6px; }
.match-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.problem-tag { color: var(--overdue-ink); font-weight: 700; font-size: 14px; margin: 8px 0 4px; }

.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th, .inv-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--soft); }
.inv-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.inv-table td.num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.inv-section { margin-top: 18px; }
.inv-section .list-head h2 { font-size: 18px; }
.table-scroll { overflow-x: auto; }

/* ---------- Shared bits for leads and rooms ---------- */
.btn[disabled] { opacity: .4; cursor: not-allowed; }
[hidden] { display: none !important; }
select, input:not([type="radio"]):not([type="checkbox"]) {
  font: inherit; font-size: 14px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 6px;
  background: var(--card); color: var(--ink); min-width: 0;
}
.field { margin-top: 14px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.inline { display: flex; gap: 8px; }
.inline select { flex: 1; }
.them {
  margin-top: 12px; background: #f1efe9; border: 1.5px solid var(--soft); border-radius: 10px 10px 2px 10px;
  padding: 10px 12px; font-size: 14px;
}
.them small { display: block; color: var(--muted); margin-top: 6px; font-size: 11px; }

/* ---------- Leads ---------- */
.leads-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.col { border: 2px dashed var(--soft); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.col h3 { font-size: 16px; }
.col h3 small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); }
.lead {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%;
  padding: 8px 9px; text-align: left; border: 2px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; font-size: 13px;
}
.lead b { font-size: 14px; }
.lead .src { font-size: 11px; color: var(--muted); }
.lead .pill { margin-top: 3px; font-size: 11px; }
.lead.cold { border-color: var(--overdue-ink); background: #fdf3ef; }
.lead.sel { box-shadow: 0 0 0 3px var(--ink); }
.lead:focus-visible { outline: 3px solid #3b6fd8; outline-offset: 2px; }
.lost-box { margin-top: 12px; border: 2px dashed var(--soft); border-radius: 10px; padding: 8px 10px; }
.lost-box summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.lost-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }

/* ---------- Rooms ---------- */
.rooms-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.requests:empty { display: none; }
.requests { margin-bottom: 16px; }
.requests h2 { margin-bottom: 8px; }
.requests h2 small { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--muted); }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.req { border-color: var(--overdue-ink); }
.req .them { margin-top: 0; }
.timeline-scroll { overflow-x: auto; }
.timeline { min-width: 640px; padding: 8px 12px 4px; }
.tl-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: stretch; margin-bottom: 8px; }
.tl-name { display: flex; flex-direction: column; justify-content: center; font-size: 13px; }
.tl-name .muted { font-size: 11px; }
.tl-track {
  position: relative; height: 58px; border: 2px dashed var(--soft); border-radius: 8px; cursor: copy;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 11 - 1px), var(--soft) calc(100% / 11 - 1px), var(--soft) calc(100% / 11));
}
.tl-head .tl-track { height: 18px; border: 0; background: none; cursor: default; }
.ticks span { position: absolute; top: 0; font-size: 11px; color: var(--muted); transform: translateX(-2px); }
.blk {
  position: absolute; top: 4px; bottom: 4px; padding: 3px 6px; overflow: hidden; text-align: left;
  border: 2px solid var(--line); border-radius: 6px; background: var(--taken); cursor: pointer; font-size: 11px;
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.blk b { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.blk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk.guest { background: repeating-linear-gradient(45deg, var(--taken), var(--taken) 6px, #dcd8cf 6px, #dcd8cf 12px); }
.blk.mine { background: var(--ok); }
.blk.sel { box-shadow: 0 0 0 3px var(--ink); z-index: 2; }
.blk:focus-visible { outline: 3px solid #3b6fd8; outline-offset: 2px; }
.now { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px solid var(--overdue-ink); z-index: 3; pointer-events: none; }
.ghost { position: absolute; top: 4px; bottom: 4px; border: 2px dashed var(--ink); border-radius: 6px; background: rgba(29, 29, 27, .06); pointer-events: none; }
.form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Snapshot ---------- */
.snap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-sub { font-size: 13px; margin: 4px 0 10px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--soft); stroke-width: 1; }
.chart .grid.base { stroke: var(--ink); stroke-width: 1.5; }
.chart .axis { font: 11px var(--body); fill: var(--muted); }
.chart .val { font: 700 12px var(--body); fill: var(--ink); }
.chart .bar { fill: #aaa597; }
.chart .bar.now { fill: var(--ink); }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:hover, .chart .hit:focus-visible { fill: rgba(29, 29, 27, .06); }
.table-view { margin-top: 10px; font-size: 14px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 14px; border-radius: 4px; }
.hbar:focus-visible { outline: 3px solid #3b6fd8; outline-offset: 3px; }
.hb-track { height: 18px; }
.hb-track i { display: block; height: 100%; background: #aaa597; border-radius: 0 4px 4px 0; min-width: 4px; }
.hbar:hover .hb-track i, .hbar:focus-visible .hb-track i { background: var(--ink); }
.hb-val { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.hb-val small { color: var(--muted); font-family: var(--body); }
.inv-table .pill { margin: 2px 0; white-space: normal; }
.tip {
  position: absolute; z-index: 20; pointer-events: none; background: var(--ink); color: var(--paper);
  font-size: 13px; padding: 6px 10px; border-radius: 6px; max-width: 260px;
}
.tip[hidden] { display: none; }

/* ---------- Wrap-up ---------- */
main.narrow { max-width: 820px; }
.wrap-form { display: flex; flex-direction: column; gap: 16px; }
.wrap-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
.wrap-form input, .wrap-form textarea { font-weight: 400; font-size: 15px; }
textarea { font: inherit; font-size: 14px; padding: 8px; border: 2px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); resize: vertical; width: 100%; }
.wrap-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 2px dashed var(--soft); border-radius: 8px; padding: 10px 12px 12px; margin: 0; }
legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.opt { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; padding: 8px 10px; border: 1.5px solid var(--soft); border-radius: 6px; cursor: pointer; background: var(--card); }
.opt:has(input:checked) { border-color: var(--ink); background: #f1eee6; }
.opt input { margin-top: 3px; accent-color: var(--ink); }
.other-row { margin-top: 8px; }
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.saved-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.notion-setup { margin-top: 10px; max-width: 460px; }
.notion-setup label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.notion-setup p { font-size: 13px; margin: 6px 0 0; }
a.pill { text-decoration: none; }
.saved { margin-bottom: 10px; font-size: 14px; }
.saved p { margin: 6px 0 0; }
.saved-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.copy-box { margin-top: 10px; font-family: var(--mono); font-size: 12px; }

/* ---------- Guided flow: progress, intro, questions ---------- */
a.brand { text-decoration: none; color: var(--ink); }
.steps { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.step {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; border: 1.5px solid transparent;
}
.step i {
  font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--soft); font-size: 12px; background: var(--card);
}
.step.done { color: var(--ink); }
.step.done i { background: var(--ok); border-color: var(--ok-ink); color: var(--ok-ink); }
.step.on { color: var(--ink); border-color: var(--ink); }
.step.on i { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.step:focus-visible { outline: 3px solid #3b6fd8; outline-offset: 2px; }
.step-intro { margin-bottom: 12px; }
.step-intro:empty { display: none; }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.try {
  background: #fff8dc; border: 2px solid #d9b84a; border-radius: 10px; padding: 10px 14px; font-size: 15px;
}
.try .muted { display: block; font-size: 13px; margin-top: 4px; }

.qcard {
  margin-top: 28px; background: var(--card); border: 3px solid var(--ink); border-radius: 12px; padding: 18px 18px 14px;
  box-shadow: 5px 5px 0 var(--ink); scroll-margin-top: 16px;
}
.qcard h2 { margin-bottom: 12px; font-size: 24px; }
fieldset.q { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.q legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  padding: 9px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer;
  font-size: 15px; text-align: left; line-height: 1.25;
}
.choice:hover { background: #f1eee6; }
.choice[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.choice[aria-checked="true"] small { color: #d9d5cb; }
.choice small { color: var(--muted); font-size: 12px; }
.choice:focus-visible { outline: 3px solid #3b6fd8; outline-offset: 2px; }
fieldset.q.missing legend, .final-form .missing legend { color: var(--overdue-ink); }
fieldset.q.missing .choice, .final-form .missing .opt { border-color: var(--overdue-ink); }
.err { color: var(--overdue-ink); font-weight: 600; font-size: 14px; margin: 6px 0 0; }
.note-field { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.note-field textarea { display: block; margin-top: 6px; }
.note-field textarea { font-weight: 400; }
.q-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.q-nav .btn { padding: 10px 16px; font-size: 15px; }
.skip { text-align: center; margin: 12px 0 0; }
.q-jump {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); white-space: nowrap; transition: opacity .2s;
}
.q-jump.hide { opacity: 0; pointer-events: none; }

/* ---------- Welcome ---------- */
.welcome h1 { font-size: 36px; margin: 8px 0 12px; }
.intro-text { font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.greet { display: inline-block; background: var(--ok); color: var(--ok-ink); font-weight: 700; padding: 6px 12px; border-radius: 999px; margin: 0 0 6px; }
.how { padding-left: 22px; margin: 0 0 22px; font-size: 16px; }
.how li { margin-bottom: 10px; }
.btn.big { padding: 13px 20px; font-size: 17px; }
.small { font-size: 13px; }
.start { margin: 0 0 8px; }
.perks { margin-top: 24px; }
.perks h2 { font-size: 20px; }
.perks ul { margin: 8px 0; padding-left: 20px; }

/* ---------- Final page ---------- */
.final-form { display: flex; flex-direction: column; gap: 18px; }
.final-form label { display: block; font-size: 14px; font-weight: 600; }
.final-form label > input, .final-form label > select, .final-form label > textarea { display: block; width: 100%; margin-top: 5px; }
.final-form label.opt { display: flex; }
.final-form input, .final-form select, .final-form textarea { font-weight: 400; font-size: 15px; }
.final-form .two, .final-form .three { display: grid; gap: 12px; }
.final-form .two { grid-template-columns: 1fr 1fr; }
.final-form .three { grid-template-columns: 1fr 1fr 1fr; }
.final-form h2.about { font-size: 20px; margin: 4px 0 -6px; }
.final-form .bad { border-color: var(--overdue-ink); background: #fdf3ef; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks h2 { font-size: 28px; margin-bottom: 8px; }

/* ---------- Free exploring: header tabs, reaction, cards ---------- */
.brand { flex-direction: row; align-items: center; gap: 8px; }
.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: #fff8dc; border: 1.5px solid #d9b84a; color: #6b5200; padding: 2px 7px; border-radius: 999px;
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs .seen { color: var(--ok-ink); font-size: 12px; }
.tab.on .seen { color: var(--paper); }
.cta { margin-left: auto; white-space: nowrap; }
.cta-spacer { margin-left: auto; }
.welcome-note { margin: 0 0 10px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.react {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px;
  background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.react-q { font-weight: 700; }
.choice.sm { padding: 6px 12px; font-size: 14px; }
.react-note { flex-basis: 100%; font-size: 14px; font-weight: 600; }
.react-note textarea { display: block; margin-top: 6px; font-weight: 400; }
.dots { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--soft); }
.dots i.done { background: var(--ok-ink); }
.dots i.on { background: var(--ink); transform: scale(1.3); }
.dots span { margin-left: 6px; font-size: 13px; color: var(--muted); }
.talk { padding: 20px; scroll-margin-top: 16px; }
.talk h2 { font-size: 24px; margin-bottom: 14px; }
.talk p { font-size: 16px; }
.btn[disabled].primary { background: var(--muted); border-color: var(--muted); }
.nudge { background: #fff8dc; border: 1.5px solid #d9b84a; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; }
.nudge a { color: var(--ink); font-weight: 700; }
.vision h2, .goal h2 { font-size: 21px; margin-bottom: 6px; }
.vision p, .goal p { font-size: 16px; line-height: 1.55; margin: 0 0 10px; }
.goal { margin: 16px 0 20px; border-color: #d9b84a; background: #fffdf5; }

/* ---------- Who's asking, proof, footer ---------- */
.who { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 20px; }
.who h2 { font-size: 21px; margin-bottom: 6px; }
.who p { font-size: 16px; line-height: 1.55; margin: 0 0 8px; }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); background: var(--hold);
  display: grid; place-items: center; font-family: var(--hand); font-size: 24px; font-weight: 700;
}
.contact-row { margin: 4px 0 6px; align-items: center; }
.contact-row .btn { padding: 8px 14px; line-height: 1.2; }
.btn.wa { background: #1f8f4e; border-color: #146b39; color: #fff; }
.btn.wa:hover { background: #146b39; }
.proof { margin: 0 0 16px; font-weight: 700; color: var(--ok-ink); }
.privacy { margin-top: 10px; }
.foot { text-align: center; font-size: 13px; color: var(--muted); padding: 18px 16px 80px; border-top: 1px solid var(--soft); margin-top: 20px; }
.foot a { color: var(--ink); }

/* ---------- Members' side: tab divider, device frames ---------- */
.tab-group { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 8px; text-transform: uppercase; letter-spacing: .04em; }
.tab.member-tab { border-color: #1f6a8f; }
.tab.member-tab.on { background: #1f6a8f; border-color: #1f6a8f; }
.center { text-align: center; }
.device { margin: 0 auto; background: #1d1d1b; box-shadow: 6px 6px 0 rgba(0,0,0,.15); }
.tablet-frame { max-width: 960px; border-radius: 28px; padding: 18px; }
.phone-frame { width: 360px; max-width: 100%; border-radius: 40px; padding: 12px; }

/* Room tablet */
.kiosk { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 520px; border-radius: 12px; overflow: hidden; background: #fff; font-size: 17px; }
.k-main { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.k-main.free { background: #e8f5e9; }
.k-main.busy { background: #fdeee9; }
.k-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.k-room { font-family: var(--hand); font-size: 36px; font-weight: 700; }
.k-meta { color: var(--muted); font-size: 14px; }
.k-status { display: flex; flex-direction: column; }
.k-status span { font-size: 56px; font-weight: 800; line-height: 1; }
.k-status.free span { color: #1b6e2c; }
.k-status.busy span { color: var(--overdue-ink); }
.k-status b { font-size: 22px; margin-top: 4px; }
.k-status small { font-size: 16px; color: var(--muted); }
.k-body { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.k-label { font-weight: 700; margin: 0; }
.k-label.sm { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.k-hint { margin: 0; color: var(--muted); font-size: 16px; }
.k-big { font-size: 24px; font-weight: 700; margin: 0; }
.k-err { color: var(--overdue-ink); font-weight: 700; margin: 0; font-size: 15px; }
.k-row { display: flex; gap: 10px; flex-wrap: wrap; }
.k-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; border-radius: 12px;
  border: 2px solid var(--ink); background: #fff; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink);
}
.k-btn small { font-weight: 400; font-size: 13px; color: var(--muted); }
.k-btn.big { min-width: 150px; padding: 16px 22px; font-size: 22px; }
.k-btn.go, .k-btn.on { background: var(--ink); color: #fff; }
.k-btn.go small, .k-btn.on small { color: #ddd; }
.k-link { background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; color: var(--ink); cursor: pointer; font-size: 15px; }
.k-pin { display: flex; gap: 10px; }
.k-pin span { width: 48px; height: 56px; border: 2px solid var(--ink); border-radius: 10px; display: grid; place-items: center; font-size: 26px; font-weight: 700; background: #fff; }
.k-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 8px; }
.k-key { height: 56px; font-size: 22px; font-weight: 700; border: 2px solid var(--ink); border-radius: 10px; background: #fff; cursor: pointer; }
.k-form { display: flex; flex-direction: column; gap: 10px; }
.k-form label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 700; max-width: 360px; }
.k-form input { font-size: 17px; padding: 10px; }
.k-side { background: #f4f1ea; border-left: 2px solid var(--soft); padding: 20px; display: flex; flex-direction: column; }
.k-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.k-list li { background: #fff; border: 1.5px solid var(--soft); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 15px; }
.k-list li.on { border-color: var(--overdue-ink); background: #fdeee9; }
.k-list li.past { opacity: .5; }
.k-foot { margin-top: auto; font-size: 12px; color: var(--muted); }
.kiosk button:focus-visible, .kiosk a:focus-visible { outline: 3px solid #3b6fd8; outline-offset: 2px; }

/* Member app */
.member-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.member-head { display: block; }
.app { position: relative; background: #fbfaf7; border-radius: 30px; overflow: hidden; height: 700px; display: flex; flex-direction: column; font-size: 15px; }
.a-bar { display: flex; justify-content: space-between; padding: 10px 20px 6px; font-size: 12px; font-weight: 700; }
.a-body { flex: 1; overflow-y: auto; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.a-hi { font-family: var(--hand); font-size: 26px; margin: 4px 0; }
.a-title { font-family: var(--hand); font-size: 22px; margin: 4px 0 0; font-weight: 700; }
.a-sec { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 6px 0 -4px; }
.a-card { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.a-card small { color: var(--muted); font-size: 12px; }
.a-card b { font-size: 18px; }
.a-card.due { border-color: var(--overdue-ink); background: #fdf3ef; }
.a-card.ok { border-color: var(--ok-ink); background: #eef8ef; }
.a-btn { margin-top: 8px; padding: 12px; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; width: 100%; }
.a-btn.pay { background: #1f8f4e; border-color: #146b39; }
.a-btn[disabled] { opacity: .4; cursor: not-allowed; }
.a-link { background: none; border: 0; padding: 6px 0 0; text-decoration: underline; cursor: pointer; font-size: 14px; color: var(--ink); text-align: left; }
.a-row { background: #fff; border: 1.5px solid var(--soft); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; font-size: 14px; }
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.a-tile { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 8px; font-size: 22px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.a-tile span { font-size: 13px; font-weight: 700; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a-chips.col { flex-direction: column; }
.a-chip { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; }
.a-chip small { color: var(--muted); }
.a-chip.on { background: var(--ink); color: #fff; }
.a-chip.on small { color: #ccc; }
.a-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.a-field input { font-size: 15px; padding: 10px; }
.a-nav { display: flex; border-top: 1.5px solid var(--soft); background: #fff; }
.a-nav button { flex: 1; background: none; border: 0; padding: 8px 0 12px; font-size: 18px; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--muted); }
.a-nav button span { font-size: 11px; font-weight: 700; }
.a-nav button.on { color: var(--ink); }
.a-shade { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 10px; max-height: 85%; overflow-y: auto; }
.a-sheet.center { align-items: center; text-align: center; }
.a-spin { width: 40px; height: 40px; border: 4px solid var(--soft); border-top-color: #1f8f4e; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-receipt { border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.a-receipt div { display: flex; justify-content: space-between; gap: 10px; }
.a-receipt hr { border: 0; border-top: 1.5px dashed var(--soft); width: 100%; margin: 6px 0; }
.a-receipt small { color: var(--muted); font-size: 11px; }
.app button:focus-visible { outline: 3px solid #3b6fd8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .a-spin { animation: none; } }

/* ---------- Open questions and voice notes ---------- */
.card-intro { margin: -8px 0 12px; font-size: 14px; }
.open-q { display: block; margin-bottom: 14px; }
.open-q span { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.open-q textarea { font-size: 16px; }
.voice { display: inline-block; margin-top: 8px; font-size: 14px; color: #146b39; font-weight: 700; }
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; margin: 0; }

.open-q input { width: 100%; font-size: 16px; padding: 10px; }
.muted.inline { display: inline; font-weight: 400; font-size: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  font-size: 14px; max-width: calc(100vw - 32px); z-index: 10; transition: opacity .3s; pointer-events: none;
}
.toast.out { opacity: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 1100px) {
  .leads-wrap { grid-template-columns: minmax(0, 1fr); }
  .leads-wrap .panel { position: static; }
}
@media (max-width: 900px) {
  .floor-wrap, .pay-wrap, .rooms-wrap, .snap-grid, .member-wrap { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { position: static; }
}
@media (max-width: 600px) {
  .floor { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: minmax(0, 1fr); }
  .wrap-form .two, .final-form .two, .final-form .three { grid-template-columns: minmax(0, 1fr); }
  .tabs { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .tab { white-space: nowrap; }
  .cta { padding: 5px 10px; font-size: 13px; }
  .who { flex-direction: column; }
  .kiosk { grid-template-columns: minmax(0, 1fr); }
  .k-side { border-left: 0; border-top: 2px solid var(--soft); }
  .tablet-frame { padding: 8px; border-radius: 16px; }
  .k-main { padding: 16px; }
  .k-status span { font-size: 44px; }
  .k-pad { grid-template-columns: repeat(3, minmax(0, 72px)); }
  .phone-frame { padding: 0; border-radius: 16px; background: none; box-shadow: none; }
  .app { border: 2px solid var(--ink); border-radius: 16px; height: 640px; }
  .welcome h1 { font-size: 28px; }
  .q-jump { font-size: 13px; }
  .hbar { grid-template-columns: 96px minmax(0, 1fr) 74px; font-size: 13px; }
  .proto { margin-left: 0; }
  h1 { font-size: 26px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .ch { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
