/* Owner app (inside HighLevel). Quiet frame; the timetable and the passes carry the page. */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--ridge); }
.top-in { display: flex; align-items: center; gap: 16px; padding: 0 20px; min-height: 56px; max-width: 1360px; margin: 0 auto; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 750; white-space: nowrap; }
.brand-mark { width: 26px; height: 18px; border-radius: 4px; background: var(--pass); position: relative; }
.brand-mark::before { content: ""; position: absolute; left: 5px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 9px 0 0 rgba(255,255,255,.45); }
.brand small { font-weight: 500; color: var(--ink-3); font-size: .85rem; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs a { padding: 17px 12px 15px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a:hover { color: var(--ink); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--late); color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
main { max-width: 1360px; margin: 0 auto; padding: 20px; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin-right: auto; }
.panel { background: var(--paper); border: 1px solid var(--ridge); border-radius: var(--r); }
.panel-pad { padding: 16px 18px; }
.section-title { font-size: .95rem; font-weight: 700; margin: 0 0 10px; }

/* ---------- Today: the timetable ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
@media (max-width: 1040px) { .today { grid-template-columns: 1fr; } .today.has-roster .timetable { display: none; } }
@media (min-width: 1041px) { .roster-back { display: none !important; } }
.daybar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.daybar h1 { margin: 0 8px; min-width: 0; }
.timetable { overflow: visible; }
.timetable > .slot:first-child { border-radius: var(--r) var(--r) 0 0; }
.timetable > .slot:last-child { border-radius: 0 0 var(--r) var(--r); }
.day-done { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--ridge); color: var(--ink-2); }
.slot { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--ridge-2);
  cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; position: relative; }
.slot:last-child { border-bottom: 0; }
.slot:hover { background: #F8F9FC; }
.slot[aria-current="true"] { background: var(--punch-soft); }
.slot[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--punch); }
.slot.past .t, .slot.past .what { opacity: .55; }
.slot.cancelled .what b { text-decoration: line-through; }
.slot .t { font-variation-settings: "wdth" 62; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.slot .t small { font-size: .8rem; font-weight: 650; margin-left: 2px; font-variation-settings: var(--narrow); color: var(--ink-3); letter-spacing: 0; }
.slot .what b { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.slot .what b i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.slot .what span { color: var(--ink-2); font-size: .88rem; }
.slot .fillw { display: grid; justify-items: end; gap: 6px; }
.seats { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 9px); gap: 3px; }
.seats.one { grid-template-rows: 9px; }
.seats i { width: 9px; height: 9px; border-radius: 2px; background: var(--ridge); }
.seats i.b { background: var(--ink); }
.seats i.a { background: var(--check); }
.fill-n { font-variation-settings: var(--narrow); font-weight: 750; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fill-n .faint { font-weight: 600; }
.wait-n { font-size: .8rem; font-weight: 650; color: #8A5A12; }
.now-line { height: 0; border-top: 2px solid var(--late); position: relative; margin: -1px 0; z-index: 1; }
.now-line span { position: absolute; left: 18px; top: -10px; background: var(--late); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; }

/* ---------- Roster ---------- */
.roster { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.roster-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--ridge-2); }
.roster-head .rt { font-variation-settings: "wdth" 62; font-weight: 800; font-size: 1.6rem; line-height: 1; }
.roster-head h2 { font-size: 1.2rem; margin: 6px 0 2px; }
.roster-head .counts { display: flex; gap: 14px; margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.roster-head .counts b { color: var(--ink); font-variation-settings: var(--narrow); font-size: 1.05rem; }
.rlist { list-style: none; margin: 0; padding: 4px 0; }
.rlist li { display: flex; align-items: center; gap: 12px; padding: 8px 18px; min-height: 58px; }
.rlist li + li { border-top: 1px solid var(--ridge-2); }
.ci { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ridge); background: var(--paper); cursor: pointer; display: grid; place-items: center; color: #D3D8E1; transition: background .15s, border-color .15s; }
.ci:hover { border-color: var(--check); }
.ci svg { width: 20px; height: 20px; }
.ci[aria-pressed="true"] { background: var(--check); border-color: var(--check); color: #fff; }
.ci.x { border-style: dashed; cursor: default; }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .row { gap: 6px; margin-top: 2px; }
.who .note { font-size: .8rem; color: #8A5A12; }
.pos { width: 44px; text-align: center; font-variation-settings: var(--narrow); font-weight: 800; font-size: 1.25rem; color: var(--ink-3); flex: none; }
.sub-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 4px; font-weight: 700; font-size: .92rem; border-top: 1px solid var(--ridge); }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); background: var(--paper); border: 1px solid var(--ridge); border-radius: var(--r-s); box-shadow: 0 10px 30px rgba(23,32,51,.14); z-index: 20; min-width: 190px; padding: 4px; }
.menu-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 4px; cursor: pointer; font-weight: 550; }
.menu-list button:hover { background: var(--floor); }
.menu-list button.danger { color: var(--late); }

/* ---------- Members ---------- */
.mtable { width: 100%; border-collapse: collapse; }
.mtable th { text-align: left; font-size: .82rem; color: var(--ink-3); font-weight: 650; padding: 10px 16px; border-bottom: 1px solid var(--ridge); }
.mtable td { padding: 11px 16px; border-bottom: 1px solid var(--ridge-2); vertical-align: middle; }
.mtable tr.click { cursor: pointer; }
.mtable tr.click:hover td { background: #F8F9FC; }
.mtable .bal { font-variation-settings: var(--narrow); font-weight: 750; margin-left: 6px; }
@media (max-width: 760px) { .mtable .hide-s { display: none; } .mtable td, .mtable th { padding: 10px; } }
.member { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .member { grid-template-columns: 1fr; } }
.passes { display: grid; gap: 12px; }
.pass-actions { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0 4px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ridge-2); }
.list li:last-child { border-bottom: 0; }
.list .when { font-variation-settings: var(--narrow); font-weight: 750; min-width: 120px; }
.ledger td { padding: 7px 8px; border-bottom: 1px solid var(--ridge-2); font-size: .9rem; }
.ledger .d { font-variation-settings: var(--narrow); font-weight: 750; text-align: right; width: 48px; }
.ledger .d.minus { color: var(--ink-2); } .ledger .d.plus { color: #0B7A3B; }

/* ---------- Plans, schedule, reports, settings ---------- */
.plans .plan { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--ridge-2); }
.plans .plan:last-child { border-bottom: 0; }
.plan .kind { font-size: .8rem; font-weight: 650; color: var(--ink-3); }
.plan .price { font-variation-settings: var(--narrow); font-weight: 800; font-size: 1.3rem; }
.plan.off { opacity: .55; }
.week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 0; overflow-x: auto; }
.week .day { border-right: 1px solid var(--ridge-2); min-height: 200px; }
.week .day:last-child { border-right: 0; }
.week .dh { padding: 10px 12px; font-weight: 700; border-bottom: 1px solid var(--ridge); font-size: .9rem; }
.week .tpl { margin: 8px; padding: 8px 10px; border-radius: var(--r-s); background: var(--floor); border-left: 3px solid; cursor: pointer; }
.week .tpl b { display: block; font-variation-settings: var(--narrow); font-weight: 800; font-size: 1.05rem; }
.week .tpl span { font-size: .82rem; color: var(--ink-2); display: block; }
.week .add { margin: 8px; width: calc(100% - 16px); }
.ctypes .ct { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--ridge-2); }
.ctypes .ct:last-child { border-bottom: 0; }
.swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--ridge); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.stats > div { padding: 14px 18px; border-right: 1px solid var(--ridge-2); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-variation-settings: "wdth" 62; font-weight: 800; font-size: 2.1rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { font-size: .85rem; color: var(--ink-2); }
.owed { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.owed .big { font-variation-settings: "wdth" 62; font-weight: 800; font-size: 3rem; line-height: 1; }
.bars .bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 46px; gap: 12px; align-items: center; padding: 6px 0; }
.bars .track { height: 12px; background: var(--ridge-2); border-radius: 3px; overflow: hidden; }
.bars .track i { display: block; height: 100%; border-radius: 3px; }
.bars .pct { font-variation-settings: var(--narrow); font-weight: 750; text-align: right; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }
.settings { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 24px; }
@media (max-width: 800px) { .settings { grid-template-columns: 1fr; } }
.snav { display: grid; gap: 2px; align-content: start; }
.snav a { padding: 9px 12px; border-radius: var(--r-s); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.snav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ridge); }
.rule { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ridge-2); align-items: center; }
.rule:last-of-type { border-bottom: 0; }
.rule b { display: block; }
.rule p { margin: 2px 0 0; color: var(--ink-2); font-size: .88rem; }
@media (max-width: 560px) { .rule { grid-template-columns: 1fr; } }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--floor); padding: 2px 6px; border-radius: 4px; }
.results { max-height: 320px; overflow: auto; margin: 8px -4px 0; }
.results button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; padding: 10px; border: 0; background: none; border-radius: var(--r-s); cursor: pointer; }
.results button:hover, .results button:focus-visible { background: var(--floor); }
.results .grow small { display: block; color: var(--ink-2); }
.notice { padding: 12px 14px; border-radius: var(--r-s); background: var(--low-soft); color: #6B4510; font-size: .92rem; margin-bottom: 14px; }
.notice.info { background: var(--punch-soft); color: #2D2580; }
