/* Pedrito's Board Rentals: shared styles for the booking site and staff system. */

/* Layout: customer site = one phone-width column (centered on big screens); staff = teal sidebar + light workspace (tabs on phones). */
:root {
  --teal: #1A4955; --teal-deep: #123A44; --peach: #F6B193; --sun: #FFBD59;
  --bg: #F6F6F6; --surface: #FFFFFF; --surface-2: #EEF3F3; --ink: #15323A; --ink-soft: #4F676D; --line: #DCE5E6;
  --head-bg: #1A4955; --head-ink: #FFFFFF; --accent: #F6B193; --accent-ink: #15323A; --focus: #1A4955;
  --ok: #2F7D5B; --ok-bg: #E2F3EA; --warn: #8A5200; --warn-bg: #FFF1D6; --bad: #B23B2E; --bad-bg: #FBE6E2; --info: #1F5E8C; --info-bg: #E3EEF8;
  --held: #8A5200; --held-bg: #FFE7B8; --pend: #1F5E8C; --pend-bg: #D6E7F5; --conf: #1A4955; --conf-bg: #CBE3E6; --act: #2F7D5B; --act-bg: #CDEBD9; --late: #B23B2E; --late-bg: #F8D3CC; --maint: #59656A; --maint-bg: #E2E6E8;
  --shadow: 0 1px 2px rgba(18,58,68,.06), 0 8px 24px rgba(18,58,68,.08);
  --f-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E242A; --surface: #15323A; --surface-2: #1B3D46; --ink: #EDF3F3; --ink-soft: #A5BBBF; --line: #2A4C55;
  --head-bg: #123A44; --head-ink: #FFFFFF; --accent: #F6B193; --accent-ink: #15323A; --focus: #F6B193;
  --ok: #7FD1A8; --ok-bg: #18382C; --warn: #FFCF7A; --warn-bg: #3A2E14; --bad: #FF9C8F; --bad-bg: #3D1F1B; --info: #8EC3EC; --info-bg: #17324A;
  --held: #FFCF7A; --held-bg: #4A3814; --pend: #8EC3EC; --pend-bg: #1C3D5A; --conf: #BFE3E8; --conf-bg: #24525C; --act: #8FDDB4; --act-bg: #1D4A35; --late: #FF9C8F; --late-bg: #55261F; --maint: #BCC6C9; --maint-bg: #34474C;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0E242A; --surface: #15323A; --surface-2: #1B3D46; --ink: #EDF3F3; --ink-soft: #A5BBBF; --line: #2A4C55;
  --head-bg: #123A44; --head-ink: #FFFFFF; --accent: #F6B193; --accent-ink: #15323A; --focus: #F6B193;
  --ok: #7FD1A8; --ok-bg: #18382C; --warn: #FFCF7A; --warn-bg: #3A2E14; --bad: #FF9C8F; --bad-bg: #3D1F1B; --info: #8EC3EC; --info-bg: #17324A;
  --held: #FFCF7A; --held-bg: #4A3814; --pend: #8EC3EC; --pend-bg: #1C3D5A; --conf: #BFE3E8; --conf-bg: #24525C; --act: #8FDDB4; --act-bg: #1D4A35; --late: #FF9C8F; --late-bg: #55261F; --maint: #BCC6C9; --maint-bg: #34474C;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* buttons, inputs, pills */
.btn { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; background: var(--surface-2); color: var(--ink); min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--teal); color: #FFFFFF; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.danger { background: var(--bad-bg); color: var(--bad); }
.btn.sm { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.input { width: 100%; min-height: 48px; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 10px 12px; font-size: 16px; }
.input.sm { min-height: 38px; font-size: 14px; padding: 6px 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--teal); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-held { color: var(--held); background: var(--held-bg); }
.s-pend { color: var(--pend); background: var(--pend-bg); }
.s-conf { color: var(--conf); background: var(--conf-bg); }
.s-act { color: var(--act); background: var(--act-bg); }
.s-late { color: var(--late); background: var(--late-bg); }
.s-maint { color: var(--maint); background: var(--maint-bg); }
.s-done { color: var(--ink-soft); background: var(--surface-2); }
.s-bad { color: var(--bad); background: var(--bad-bg); }
.alert { border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--warn-bg); color: var(--warn); }

/* ===== Customer site (phone-first) ===== */
.cust { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100%; }
@media (min-width: 560px) { .cust { box-shadow: var(--shadow); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.chead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--head-bg); color: var(--head-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px; padding-inline: 16px; }
.chead img { height: 54px; width: auto; display: block; }
.chead .brandline { display: flex; align-items: center; gap: 10px; }
.chead .sub { font-family: var(--f-display); font-weight: 700; font-size: 13px; line-height: 1.1; letter-spacing: .02em; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #FFFFFF; display: grid; place-items: center; }
.cnav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; pointer-events: none; }
.cnav nav { pointer-events: auto; width: 100%; max-width: 480px; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.cnav a { text-decoration: none; color: var(--ink-soft); display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px; font-size: 11.5px; font-weight: 700; }
.cnav a svg { width: 22px; height: 22px; }
.cnav a[aria-current="page"] { color: var(--ink); }
.cnav a[aria-current="page"] svg { color: var(--teal); }
:root[data-theme="dark"] .cnav a[aria-current="page"] svg { color: var(--peach); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cnav a[aria-current="page"] svg { color: var(--peach); } }
.cmain { padding: 16px 16px 110px; display: grid; gap: 22px; }
.hero { background: var(--teal); color: #FFFFFF; border-radius: var(--r-lg); padding: 26px 20px 22px; position: relative; overflow: hidden; display: grid; gap: 12px; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; max-width: 12ch; }
.hero p { color: #D6E6E8; max-width: 30ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; position: relative; }
.hero .ctas .btn.ghost { color: #FFFFFF; border-color: rgba(255,255,255,.4); }
.hero svg.waves { position: absolute; right: -10px; top: 14px; width: 150px; height: auto; opacity: .95; }
.sect { display: grid; gap: 12px; }
.sect > h2 { font-size: 22px; }
.catcard { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; }
.catcard .ph { aspect-ratio: 4/3; max-width: 100%; background: linear-gradient(160deg, #DCEBEE, #C4DCE0); display: grid; place-items: center; position: relative; color: var(--teal); }
:root[data-theme="dark"] .catcard .ph { background: linear-gradient(160deg, #1F4650, #173A43); color: var(--peach); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .catcard .ph { background: linear-gradient(160deg, #1F4650, #173A43); color: var(--peach); } }
.catcard .ph svg { width: 70%; max-height: 80%; }
.catcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.catcard .ph .phnote { position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 700; color: var(--ink-soft); background: var(--surface); padding: 2px 8px; border-radius: 999px; }
.catcard .body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.catcard .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.catcard h3 { font-size: 20px; }
.price { font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.price small { font-family: var(--f-body); font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.avail { font-weight: 700; font-size: 13px; }
.steps4 { display: grid; gap: 10px; counter-reset: s; }
.steps4 li { list-style: none; background: var(--surface); border-radius: var(--r-md); padding: 12px 14px 12px 54px; position: relative; }
.steps4 li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-family: var(--f-display); }
.steps4 { padding: 0; margin: 0; }
.steps4 b { display: block; }
.infocard { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 6px; }

/* booking flow */
.bstep { background: var(--surface); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.bstep h2 { font-size: 18px; display: flex; gap: 10px; align-items: center; }
.bstep h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #FFFFFF; font-size: 14px; display: grid; place-items: center; flex: none; }
.bstep.locked { opacity: .5; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.choices.wide { grid-template-columns: 1fr; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 10px 8px; min-height: 52px; display: grid; gap: 1px; justify-items: center; text-align: center; font-weight: 700; }
.chip small { font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: #FFFFFF; }
.chip[aria-pressed="true"] small { color: #CFE2E5; }
.chip[disabled] { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.chip.cat { grid-template-columns: 44px 1fr auto; justify-items: start; text-align: left; align-items: center; gap: 12px; padding: 10px 12px; }
.chip.cat svg { width: 44px; height: 30px; color: var(--teal); }
.chip.cat[aria-pressed="true"] svg { color: var(--peach); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.days .chip { min-width: 70px; flex: none; }
.totalbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.totalbar .price { font-size: 24px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.paytabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.acct { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 8px; }
.acct .big { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.drop { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 18px; text-align: center; display: grid; gap: 8px; justify-items: center; background: var(--surface-2); }
.drop img { max-height: 220px; border-radius: var(--r-sm); }
.timer { font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.statuscard { background: var(--surface); border-radius: var(--r-lg); padding: 20px 16px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.statuscard h1 { font-size: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 14px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); margin-top: 6px; }
.policy { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 6px; }
.policy h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }

/* ===== Staff ===== */
.staff { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--teal); color: #FFFFFF; padding: 18px 12px; display: grid; align-content: start; gap: 4px; position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; overflow-y: auto; }
.side img { width: 120px; margin: 0 auto 6px; }
.side .who { padding: 6px 8px 12px; border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 8px; font-size: 13px; }
.side .who b { display: block; font-size: 14px; }
.side a { color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 10px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.side a[aria-current="page"] { background: #2B6170; }
.side a .cnt { background: var(--peach); color: #15323A; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.side a.later { color: #9FBEC4; font-weight: 500; }
.side .grp { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9FBEC4; padding: 12px 10px 4px; }
.work { padding-block: 22px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 18px; align-content: start; min-width: 0; }
@media (min-width: 900px) { .work { padding-inline: 28px; } }
.work > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; }
.work h1 { font-size: 26px; }
.card { background: var(--surface); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; min-width: 0; }
.card h2 { font-size: 17px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.tile .v { font-family: var(--f-display); font-weight: 800; font-size: 26px; }
.tile .l { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.tile.pend { border-left: 4px solid var(--pend); }
.tile.late { border-left: 4px solid var(--late); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 110px 1fr 90px; gap: 10px; align-items: center; font-size: 14px; }
.bar .track { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--teal); border-radius: 999px; }
:root[data-theme="dark"] .bar .fill { background: var(--peach); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar .fill { background: var(--peach); } }
.bar .amt { text-align: right; font-weight: 700; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.rowacts { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vq { display: grid; gap: 12px; }
.vitem { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px; }
.vitem .shot { width: 150px; height: 220px; border-radius: var(--r-sm); background: var(--surface-2); object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 560px) { .vitem { grid-template-columns: 1fr; } .vitem .shot { width: 100%; height: 260px; object-fit: contain; } }
.vitem dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.vitem dt { color: var(--ink-soft); }
.vitem dd { margin: 0; font-weight: 600; }
/* calendar */
.cal { overflow-x: auto; }
.cal-grid { min-width: 860px; display: grid; grid-template-columns: 96px 1fr; font-size: 13px; }
.cal-hours { display: grid; position: relative; height: 26px; border-bottom: 1px solid var(--line); }
.cal-hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; color: var(--ink-soft); font-size: 11.5px; top: 4px; }
.cal-row { display: contents; }
.cal-label { padding: 8px 6px; border-bottom: 1px solid var(--line); font-weight: 700; display: grid; line-height: 1.2; }
.cal-label small { font-weight: 500; color: var(--ink-soft); font-size: 11px; }
.cal-lane { position: relative; border-bottom: 1px solid var(--line); min-height: 46px;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--hours)) 100%; }
.cal-lane.maint { background-color: var(--maint-bg); }
.blk { position: absolute; top: 6px; bottom: 6px; border-radius: 8px; padding: 3px 7px; font-size: 11.5px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 0; text-align: left; line-height: 1.25; }
.blk small { display: block; font-weight: 500; }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); z-index: 2; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
/* POS */
.pos { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) { .pos { grid-template-columns: 1fr; } }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bchip { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 10px 12px; text-align: left; display: grid; gap: 4px; min-height: 76px; }
.bchip b { font-size: 15px; }
.bchip[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.bchip[disabled] { cursor: not-allowed; background: var(--surface-2); }
.bchip .why { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.active-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.arent { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 8px; border-top: 5px solid var(--act); }
.arent.over { border-top-color: var(--late); }
.arent .clockbig { font-family: var(--f-display); font-weight: 800; font-size: 26px; }
.later-box { display: grid; gap: 10px; }
.later-box ul { margin: 0; padding-left: 20px; }
.setgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10,30,36,.55); display: grid; place-items: end center; padding: 0; }
@media (min-width: 640px) { .modal { place-items: center; padding: 20px; } }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
@media (min-width: 640px) { .sheet { border-radius: var(--r-lg); } }
.sheet header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); background: #15323A; color: #FFFFFF; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

@media (max-width: 760px) {
  .staff { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; display: flex; overflow-x: auto; gap: 4px; padding: 8px 10px; z-index: 15; }
  .side img, .side .grp, .side a.later, .side a[aria-label="Overview"] { display: none; }
  .side .who { display: flex; align-items: center; gap: 6px; border: 0; margin: 0; padding: 0 6px 0 0; flex: none; }
  .side .who b, .side .who > span { display: none; }
  .side .who .seg { margin-top: 0 !important; }
  .side a { white-space: nowrap; flex: none; }
  .bar { grid-template-columns: 84px 1fr 80px; }
}
.cal-hours span:last-child { transform: translateX(-100%); }
.pol { display: grid; gap: 8px; }
.pol h3 { font-size: 18px; }
.pol ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.pol li { padding: 4px 0; }
.pol li p { margin: 2px 0 0; font-size: 14px; }
.pol li.hi { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 8px 10px; margin-left: -10px; }
.pol li.hi b::after { content: " Important"; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.polbox { max-height: 340px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--bg); }
.remind { background: var(--sun); color: #15323A; border-radius: var(--r-md); padding: 14px 16px; font-weight: 700; font-size: 16px; line-height: 1.4; }
.btnrow { display: grid; gap: 8px; }
.shotcard { background: var(--surface); border: 2px solid var(--teal); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; }
textarea.input { min-height: 120px; line-height: 1.45; }
.noshot { display: grid; place-items: center; text-align: center; padding: 12px; font-size: 13px; color: var(--ink-soft); }
.linkbtn { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font-weight: 700; }
.mapcard { display: grid; border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); background: var(--surface); }
.mapcard svg { width: 100%; height: 170px; display: block; }
.m-land { fill: #E8EFE3; } .m-sea { fill: #9FD3DC; } .m-surf { fill: none; stroke: #FFFFFF; stroke-width: 3; } .m-road { fill: none; stroke: #FFFFFF; stroke-width: 7; stroke-linecap: round; }
.m-pin { fill: #E5582B; stroke: #FFFFFF; stroke-width: 2; } .m-dot { fill: #FFFFFF; }
.mapcap { display: grid; padding: 10px 14px; font-size: 13px; }
.mapcap b { font-size: 15px; }
.mapcap span { color: var(--ink-soft); }
.chip.partial { border-style: dashed; }
.chip.partial small { color: var(--warn); font-weight: 700; }

/* ---- real-system additions ---- */
.qrbox { display: block; justify-self: center; background: #FFFFFF; padding: 10px; border-radius: var(--r-md); border: 1.5px solid var(--line); max-width: 280px; width: 100%; }
.qrbox img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
html, body { margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--head-bg); }
a { color: inherit; }
.mapframe { width: 100%; aspect-ratio: 4/3; max-width: 100%; border: 0; border-radius: var(--r-md); display: block; background: var(--surface-2); }
.center { text-align: center; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { color: var(--ink-soft); padding: 24px; text-align: center; }
.login { max-width: 440px; margin: 32px auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; }
.login .logo { width: 140px; justify-self: center; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pinpad button { min-height: 60px; font-size: 24px; font-weight: 700; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); }
.pindots { display: flex; gap: 12px; justify-content: center; min-height: 20px; }
.pindots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal); }
.pindots span.on { background: var(--teal); }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.names button { min-height: 56px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; text-align: left; padding: 8px 12px; }
.names button small { display: block; font-weight: 500; color: var(--ink-soft); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9FBEC4; padding: 6px 10px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7FD1A8; }
.live.off::before { background: #FF9C8F; }
.formgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.mini { display: grid; gap: 4px; background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow); text-decoration: none; border: 0; text-align: left; width: 100%; }
.pol li.hi { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 8px 10px; margin-left: -10px; }
.wrap-anywhere { overflow-wrap: anywhere; }
@media print { body::before, .cnav, .chead, .noprint { display: none !important; } body { background: #fff; color: #000; } .shotcard { border-color: #000; } }

/* Choose your board (1.4) */
.chip.any { width: 100%; margin: 8px 0 10px; }
.boardgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .boardgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.boardcard { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 0; overflow: hidden; text-align: left; display: grid; grid-template-rows: auto 1fr; }
.boardcard .ph { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-2); }
.boardcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boardcard .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--ink-soft); }
.boardcard .tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow); }
.boardcard .bd { display: grid; gap: 2px; padding: 8px 10px 10px; }
.boardcard .bd small { font-size: 12px; line-height: 1.3; }
.boardcard .taken { color: var(--bad); font-weight: 600; }
.boardcard[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.boardcard[disabled] { cursor: not-allowed; }
.boardcard[disabled] .ph img { filter: grayscale(1); opacity: .45; }
.minis { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 13px; }
.mini img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.bthumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.bthumb { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: var(--r-md); padding: 4px 10px 4px 4px; }
.bthumb img, .bthumb .noph { border-radius: 10px; object-fit: cover; display: block; }
.bthumb .noph { display: grid; place-items: center; background: var(--line); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.bthumb > span:last-child { display: grid; line-height: 1.2; }
.bthumb small { font-size: 12px; color: var(--ink-soft); }
.bookboards { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.paylist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.paylist li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.rcpt { width: 64px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-size: 11px; color: var(--ink-soft); }
.rcpt img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.eqph { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); font-size: 10px; color: var(--ink-soft); text-align: center; }
/* Cash on arrival on the calendar (1.4.1): dashed; drops to the lower half when a paid booking took the same board */
.blk.cash { border: 1.5px dashed var(--held); z-index: 1; }
.blk.cash.under { top: 55%; padding-top: 0; padding-bottom: 0; }
.bad-t { color: var(--bad); font-weight: 600; }
.cipick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 6px; }
.ci-b img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.ci-b[aria-pressed="true"] { outline: 2.5px solid var(--teal); }
.collect { display: grid; gap: 4px; background: var(--held-bg); color: var(--held); border: 2px solid var(--held); border-radius: var(--r-md); padding: 12px 14px; }
.collect > span { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.collect > b { font-size: 34px; line-height: 1.1; }
.collect small { font-size: 13px; color: var(--ink); }
.collect .chg { color: var(--ok); font-size: 15px; }
.collect .short { color: var(--bad); font-weight: 700; font-size: 15px; }

/* Elements hidden from script stay hidden even if a class sets display */
[hidden] { display: none !important; }
/* Gift vouchers (1.5) */
.vbox { display: grid; gap: 6px; }
.vbox summary { cursor: pointer; font-weight: 600; color: var(--teal); }
.vbox .vrow { display: flex; gap: 6px; margin-top: 6px; }
.vbox .vrow .input { flex: 1; min-width: 0; }
.vbox.ok { background: var(--ok-bg, #e3f3ea); border-radius: var(--r-md); padding: 10px 12px; }
.vbox.ok .btn { justify-self: start; }
.ok-t { color: var(--ok); font-weight: 600; }
.ci-b[disabled] { opacity: .45; cursor: not-allowed; }
/* Boards now + notifications (1.6) */
.bnow { display: grid; gap: 10px; }
.bnow-cat { display: grid; gap: 6px; }
.bnow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.bnow-b { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; text-align: left; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 6px; }
.bnow-b img, .bnow-b .noph { width: 44px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--surface-2); display: block; }
.bnow-b > span { display: grid; gap: 2px; justify-items: start; }
.bnow-b small { font-size: 12px; color: var(--ink-soft); }
.bnow-b[disabled] { cursor: default; }
.bnow-b.n-free { border-color: var(--ok); background: var(--ok-bg); }
.bnow-b.n-overdue { border-color: var(--bad); background: var(--bad-bg); }
.bnow-b.n-soon { border-color: var(--warn); background: var(--warn-bg); }
.bnow-b.n-maint { opacity: .6; }
.nlist { display: grid; gap: 0; padding: 4px 0; }
.nitem { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
.nitem:last-child { border-bottom: 0; }
.nitem small { display: block; color: var(--ink-soft); font-size: 13px; }
.nitem.new { background: var(--info-bg); }
.nic { font-size: 18px; line-height: 1.2; }
.s-ok { color: var(--ok); background: var(--ok-bg); }
.s-exp, .s-can { color: var(--ink-soft); background: var(--surface-2); }
/* long labels wrap inside the rental cards */
.arent .pill { white-space: normal; max-width: 100%; }
.arent { min-width: 0; overflow-wrap: break-word; }
/* Rental cards (1.6.6): who + status, boards, time, payment strip, buttons */
.ar-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ar-head > div { display: grid; min-width: 0; }
.ar-name { font-size: 16px; line-height: 1.25; }
.ar-boards .bthumbs { gap: 6px; }
.ar-boards .bthumb { padding: 3px 8px 3px 3px; }
.ar-boards .bthumb b { white-space: nowrap; font-size: 13px; }
.paystrip { display: grid; gap: 1px; border-radius: 10px; padding: 8px 10px; border-left: 4px solid currentColor; font-size: 14px; }
.paystrip span { font-size: 12.5px; color: var(--ink-soft); }
.paystrip.paid { background: var(--ok-bg); color: var(--ok); }
.paystrip.part { background: var(--warn-bg); color: var(--warn); }
.paystrip.due { background: var(--bad-bg); color: var(--bad); }
.paystrip.pend { background: var(--info-bg); color: var(--info); }
