:root { --green: #1E6B3A; --green-dark: #14502A; --mint: #E8F1EA; --cream: #FBF7EE; --sand: #F1ECE0; --line: #D9D1BE; --ink: #2B2B26; --muted: #5F5F57; --yellow: #FFE135; --error: #A33A12; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 Nunito, system-ui, sans-serif; }
h1, h2, .brand { font-family: Quicksand, Nunito, sans-serif; line-height: 1.2; }
h1 { margin: 0; font-size: 28px; }
h2 { margin: 0; font-size: 20px; }
p { margin: 0; }
a { color: var(--green); font-weight: 700; }
.narrow { max-width: 430px; min-height: 100vh; margin: 0 auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.wide { max-width: 1120px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 20px; }
.slots, .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks .check { align-items: center; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
a.brand { text-decoration: none; display: inline-block; }
input[type=file] { padding: 10px; }
.stack { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.brand { color: var(--green); font-size: 20px; font-weight: 700; }
.topbar, .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--error); font-weight: 700; font-size: 14px; }
.card { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.promise { border: 1.5px dashed var(--green); }
.test-code { background: #FFF4B8; font-weight: 700; }
form, .field { display: flex; flex-direction: column; gap: 8px; }
form { gap: 14px; }
label { font-weight: 700; font-size: 15px; }
textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); font: inherit; resize: vertical; }
input, select { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; color: var(--ink); font: inherit; }
input[type=checkbox] { width: 22px; min-height: 22px; height: 22px; flex: none; accent-color: var(--green); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
button { min-height: 48px; border: 0; border-radius: 12px; padding: 0 16px; background: var(--green); color: #fff; font: 700 16px Nunito, sans-serif; cursor: pointer; }
button:hover { background: var(--green-dark); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
button.link { min-height: 44px; background: none; color: var(--green); padding: 0; }
:focus-visible { outline: 3px solid #2F7DE1; outline-offset: 2px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { background: var(--sand); color: var(--ink); }
.tabs button[aria-pressed=true] { background: var(--green); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; }
th, td { padding: 10px 6px; border-top: 1px solid #E6DFCF; vertical-align: top; }
thead th { border-top: 0; }
.pill { display: inline-block; align-self: flex-start; border-radius: 999px; padding: 3px 10px; background: var(--mint); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.field-error { display: block; color: var(--error); font-size: 13px; font-weight: 700; }
[aria-invalid=true] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.has-error .check { border-color: var(--error); }
.card.incomplete { outline: 2px solid var(--error); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.steps li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--green); border-color: var(--green); }
.steps li.current { color: var(--ink); font-weight: 700; }
.steps li.current::before { border-color: var(--green); background: var(--yellow); }
.facts { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.hero { background: var(--green); color: #fff; }
.hero h2 { color: #fff; }
.hero button.secondary { background: #fff; }
.rate { background: #FFF4B8; }
.books-note { background: #FFF4B8; border-left: 4px solid #E0A800; padding: 10px 12px; border-radius: 6px; }
.journey { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid #E6DFCF; }
.journey:first-of-type { border-top: 0; }
.journey small, .bubble small { color: var(--muted); }
.button-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--green); border-radius: 12px; text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.stats strong, .big { display: block; font-size: 24px; }
.stats small { color: var(--muted); }
.chat { gap: 8px; }
.bubble { align-self: flex-start; max-width: 85%; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 12px; background: var(--sand); }
.bubble.mine { align-self: flex-end; background: var(--mint); }
.tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; text-align: center; }
.badge[hidden] { display: none; }
.block { display: block; }
.list-row { padding: 10px 0; border-top: 1px solid #E6DFCF; }
.list-row:first-of-type { border-top: 0; }
.pending { color: var(--error); font-weight: 700; }
.good { padding: 10px 12px; border-radius: 12px; background: var(--mint); color: var(--green-dark); font-weight: 700; }
.done-card { border: 2px solid var(--green); }
.inbox-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; color: var(--ink); border: 1.5px solid var(--line); text-align: left; }
.inbox-row:hover { background: var(--mint); }
.inbox-row.unread { border-color: var(--green); font-weight: 800; }
.chat-list { display: flex; flex-direction: column; gap: 10px; }
.chat-list .inbox-row > span:first-child { flex: 1; min-width: 0; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; text-align: right; }
.bubble.note { align-self: center; background: transparent; border: 1px dashed var(--line); font-style: italic; }
.chat { display: flex; flex-direction: column; }
.calendar { table-layout: fixed; min-width: 300px; }
.calendar th, .calendar td { padding: 3px 2px; border-top: 0; text-align: center; }
.calendar tbody th { color: var(--ink); white-space: nowrap; font-size: 12px; }
.cal-cell { width: 100%; min-width: 36px; min-height: 44px; padding: 0; border-radius: 8px; font-size: 12px; }
.cal-cell.free { background: var(--mint); color: var(--green-dark); border: 1.5px solid var(--green); }
.cal-cell.free:hover { background: #D3E6D8; }
.cal-cell.selected { background: var(--green); color: #fff; font-size: 18px; }
.cal-cell.blocked, .cal-cell.full { background: var(--sand); color: var(--muted); cursor: not-allowed; opacity: 1; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; }
.cal-legend i.free { background: var(--mint); border: 1.5px solid var(--green); }
.cal-legend i.selected { background: var(--green); }
.cal-legend i.full { background: var(--sand); }
.pill.warn { background: #FFF4B8; color: var(--error); }
.warnings { margin: 0; padding-left: 20px; color: var(--error); font-weight: 700; font-size: 14px; }
.board { min-width: 760px; table-layout: fixed; }
.board th:first-child, .board td:first-child { width: 120px; }
.board-cell { display: flex; flex-direction: column; gap: 4px; }
.board-session { min-height: 36px; padding: 4px 6px; border-radius: 8px; background: var(--mint); color: var(--green-dark); border: 1.5px solid var(--green); font-size: 12px; text-align: left; }
.board-session:hover { background: #D3E6D8; }
.board-session.cover { background: #FFF4B8; border-color: var(--error); color: var(--error); }
.board-busy { padding: 4px 6px; border-radius: 8px; background: var(--sand); color: var(--muted); font-size: 12px; }
.slide { min-height: 220px; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.slide ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--green); }
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.call-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--green); border-radius: 12px; text-decoration: none; white-space: nowrap; }
.call-link::before { content: "☎"; font-size: 15px; }
.board-days { display: none; }
@media (max-width: 600px) {
  /* Section buttons: one row the person swipes, instead of several rows above the content. */
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; min-height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  /* Lists: one card per row, each value labelled, buttons underneath. */
  table.stackable thead { display: none; }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { padding: 12px 0; border-top: 1px solid #E6DFCF; }
  table.stackable tr:first-child { border-top: 0; }
  table.stackable td { display: flex; gap: 10px; padding: 3px 0; border: 0; overflow-wrap: anywhere; }
  table.stackable td::before { content: attr(data-label); flex: 0 0 92px; color: var(--muted); font-size: 12px; font-weight: 700; padding-top: 2px; }
  table.stackable td[data-label=""]::before { display: none; }
  table.stackable td[data-label=""] { padding-top: 8px; }
  table.stackable td:empty { display: none; }
  table.stackable td > * { min-width: 0; }
  /* Team schedule: one day at a time. */
  .board-wrap { display: none; }
  .board-days { display: flex; flex-direction: column; gap: 12px; }
  .board-days .tabs { margin: 0 -16px; padding: 0 16px 4px; }
  .board-days .list-row { display: flex; flex-direction: column; gap: 6px; }
}
@media print { .brand, button, .topbar { display: none; } }
.map { width: 100%; height: 300px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sand); }
.suggestions .inbox-row { min-height: 56px; }
