/* ==========================================================================
   GYMOS — design tokens + Bootstrap 5 overrides
   ========================================================================== */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/barlow-cond-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/barlow-cond-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/barlow-cond-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/barlow-cond-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0B1B33;
  --navy-2: #13284A;
  --navy-3: #1E3A63;
  --navy-line: #3A5A85;
  --blue: #0A6FD8;
  --blue-soft: #D6E7FB;
  --blue-tint: #EAF3FD;
  --orange: #FF8A1F;
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --line: #DCE2EB;
  --line-2: #EBEFF5;
  --input-line: #C3CDDA;
  --muted: #566275;
  --ink-2: #34405A;
  --soft: #B8C4D6;
  --soft-2: #93A1B7;
  --track: #E6EBF2;
  --head-bg: #F7F9FC;
  --green: #1F6B36;   --green-bg: #E3F4E8;  --green-dot: #2E9E50;
  --amber: #7F4A00;   --amber-bg: #FCEFD6;
  --red: #A3261A;     --red-bg: #FDE7E4;
  --frozen: #24539E;  --frozen-bg: #E4ECFA;
  --peach: #FFF3EC;   --peach-line: #F3C7AF;  --peach-ink: #8A3412;
  --grey-pill: #EEF1F6; --grey-pill-ink: #3E4A5E;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-size: 14px;
  --bs-body-color: var(--navy);
  --bs-body-bg: var(--bg);
  --bs-primary: #0B1B33;
  --bs-primary-rgb: 11, 27, 51;
  --bs-link-color: var(--navy);
  --bs-link-hover-color: var(--blue);
  --bs-border-color: var(--line);
  --bs-border-radius: 10px;
  --bs-focus-ring-color: rgba(10, 111, 216, .25);
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--navy); font-family: var(--bs-body-font-family); font-size: 14px; line-height: 1.4; }
a { color: inherit; }
a:hover { color: inherit; }
.font-display { font-family: var(--font-display); }
.text-muted, .muted { color: var(--muted) !important; }
.fw-800 { font-weight: 800; }
.ico { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; }
.main-pad { padding: 32px; display: flex; flex-direction: column; gap: 20px; max-width: 1640px; }
.sb { width: 248px; flex-shrink: 0; background: var(--navy); color: #E6ECF5; flex-direction: column; justify-content: space-between;
      padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sb-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; color: inherit; }
.sb-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.sb-word { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .06em; color: #fff; line-height: 1; }
.sb-sub { font-size: 12px; color: var(--soft-2); }
.sb-nav { display: flex; flex-direction: column; gap: 4px; }
.sb-link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 10px; color: var(--soft);
           text-decoration: none; font-size: 14px; font-weight: 500; }
.sb-link:hover { background: var(--navy-2); color: #fff; }
.sb-link.on { background: var(--blue); color: #fff; font-weight: 700; }
.sb-count { margin-left: auto; font-size: 12px; color: var(--soft-2); }
.sb-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sb-link.on .sb-badge { background: #fff; color: var(--blue); }
.sb-user { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 12px; background: var(--navy-2); border: 0; color: #fff; }
.sb-user:hover { background: #17305a; }
.sb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-3); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sb-uname { font-size: 14px; font-weight: 600; color: #fff; }
.sb-urole { font-size: 12px; color: var(--soft-2); }

/* ---------- page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.page-title { margin: 0; font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.page-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dot); display: inline-block; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn { --bs-btn-font-size: 14px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
       display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; line-height: 1; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; --bs-btn-font-size: 13px; }
.btn-xs { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12px; --bs-btn-font-size: 12px; }
.btn-lg { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; --bs-btn-font-size: 16px; }
.btn-icon { width: 36px; padding: 0; }
.btn-navy, .btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-color: #fff; --bs-btn-hover-bg: #16294a; --bs-btn-hover-border-color: #16294a; --bs-btn-hover-color: #fff;
       --bs-btn-active-bg: #16294a; --bs-btn-active-border-color: #16294a; --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--navy); --bs-btn-disabled-border-color: var(--navy); }
.btn-accent { --bs-btn-bg: var(--orange); --bs-btn-border-color: var(--orange); --bs-btn-color: var(--navy); font-weight: 800; --bs-btn-hover-bg: #ff9a3d; --bs-btn-hover-border-color: #ff9a3d; --bs-btn-hover-color: var(--navy);
       --bs-btn-active-bg: #f57f0e; --bs-btn-active-border-color: #f57f0e; --bs-btn-active-color: var(--navy); --bs-btn-disabled-bg: var(--orange); --bs-btn-disabled-border-color: var(--orange); }
.btn-line { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-color: var(--navy); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--navy); --bs-btn-hover-color: var(--navy);
       --bs-btn-active-bg: var(--head-bg); --bs-btn-active-border-color: var(--navy); --bs-btn-active-color: var(--navy); --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: var(--line); --bs-btn-disabled-color: var(--soft-2); }
.btn-outline-navy { --bs-btn-bg: transparent; --bs-btn-border-color: var(--navy); --bs-btn-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-color: #fff; }
.btn-ghost-light { --bs-btn-bg: transparent; --bs-btn-border-color: var(--navy-line); --bs-btn-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.08); --bs-btn-hover-border-color: #fff; --bs-btn-hover-color: #fff; font-weight: 700; }
.btn.disabled, .btn:disabled { opacity: .55; }
.btn-disabled-full { background: var(--track) !important; border-color: var(--track) !important; color: var(--muted) !important; }

/* ---------- forms ---------- */
.form-label, label.fl { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-control, .form-select { height: 44px; border-radius: 10px; border: 1px solid var(--input-line); font-size: 14px; color: var(--navy); background-color: #fff; padding-left: 12px; padding-right: 12px; }
.form-select { padding-right: 34px; }
textarea.form-control { height: auto; padding: 10px 12px; line-height: 1.5; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,111,216,.18); }
.form-control-lg { height: 52px; font-size: 16px; border-radius: 12px; }
.form-check-input { width: 20px; height: 20px; border-color: var(--input-line); }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.search-box { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.search-box input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--navy); width: 100%; min-width: 0; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,111,216,.15); }
.select-g { height: 44px; padding: 0 34px 0 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }

/* ---------- cards ---------- */
.card-g { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.card-g.p-0 { padding: 0; }
.card-navy { background: var(--navy); color: #fff; border-radius: 16px; padding: 22px; min-width: 0; }
.card-peach { background: var(--peach); border: 1px solid var(--peach-line); border-radius: 16px; padding: 20px; }
.card-title-g { margin: 0; font-size: 17px; font-weight: 700; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sub { font-size: 13px; color: var(--muted); }
.sub-soft { color: var(--soft); }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-value { font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: .005em; }
.kpi-value small { font-size: .45em; color: var(--muted); font-weight: 700; }
.kpi-note { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.kpi.navy .kpi-label { color: var(--soft); }
.kpi.navy .kpi-value small { color: var(--soft); }
.kpi.peach { background: var(--peach); border-color: var(--peach-line); }
.kpi.peach .kpi-label { color: var(--peach-ink); font-weight: 700; }
.kpi.sm { padding: 18px; gap: 6px; }
.kpi.sm .kpi-value { font-size: 42px; }
.kpi.xs { padding: 16px; gap: 4px; }
.kpi.xs .kpi-value { font-size: 38px; }
.accent-text { color: var(--orange); }
.progress-g { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.progress-g > span { display: block; height: 100%; border-radius: 3px; background: var(--navy); }
.progress-g.lg { height: 10px; border-radius: 5px; }
.progress-g.lg > span { border-radius: 5px; }
.progress-g.on-navy { background: var(--navy-3); height: 8px; border-radius: 4px; }
.progress-g.on-navy > span { background: var(--orange); border-radius: 4px; }

/* ---------- pills / avatar / segmented ---------- */
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.3; }
.pill-active, .pill-inside, .pill-paid, .pill-ok { background: var(--green-bg); color: var(--green); }
.pill-expiring, .pill-week, .pill-warn { background: var(--amber-bg); color: var(--amber); }
.pill-expired, .pill-blocked, .pill-soon, .pill-bad { background: var(--red-bg); color: var(--red); }
.pill-frozen { background: var(--frozen-bg); color: var(--frozen); }
.pill-muted, .pill-left, .pill-lapsed { background: var(--grey-pill); color: var(--grey-pill-ink); }
.pill-mode { background: var(--bg); color: var(--ink-2); }
.pill-dark { background: var(--blue); color: #fff; font-weight: 800; }
.pill-accent { background: var(--orange); color: var(--navy); font-weight: 800; font-size: 11px; padding: 3px 8px; }

.avatar { border-radius: 50%; background: var(--track); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy); }
.avatar.dark { background: var(--navy); color: var(--orange); font-family: var(--font-display); font-weight: 700; }
.avatar.ok { background: var(--navy); color: var(--orange); font-weight: 800; }

.seg { display: inline-flex; gap: 4px; background: #E4E9F0; padding: 4px; border-radius: 12px; max-width: 100%; overflow-x: auto; }
.seg-item { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.seg-item:hover { color: var(--navy); background: rgba(255,255,255,.5); }
.seg-item.on { background: #fff; }
.seg-count { font-size: 12px; font-weight: 600; color: var(--muted); }
.seg.light { background: var(--bg); border-radius: 10px; }
.seg.light .seg-item { height: 32px; padding: 0 12px; border-radius: 8px; }
.seg.light .seg-item:hover { background: rgba(255,255,255,.6); }
.seg.light .seg-item.on { background: #fff; }

.switch { width: 52px; height: 30px; flex-shrink: 0; border-radius: 15px; border: 0; background: var(--input-line); padding: 3px; display: flex; justify-content: flex-start; cursor: pointer; transition: background .15s; }
.switch > span { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch.on { background: var(--navy); justify-content: flex-end; }

/* ---------- tables ---------- */
.tbl { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 13px 20px; background: var(--head-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted);
          letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-align: left; }
.tbl th a { text-decoration: none; color: inherit; }
.tbl th a:hover { color: var(--navy); }
.tbl td { padding: 11px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.tbl-flush th:first-child { border-top: 0; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl tr.hoverable:hover td { background: #FAFBFD; }
.cell-2 { display: flex; flex-direction: column; gap: 2px; }
.cell-2 .t { font-weight: 700; }
.cell-2 .s { font-size: 12px; color: var(--muted); }
.cell-user { display: flex; align-items: center; gap: 12px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; font-size: 13px; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); }
.pager .btn.disabled { pointer-events: none; }
.col-gap-sm { color: var(--ink-2); }

.lrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.lrow:first-of-type { border-top: 0; }
.lrow .grow { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrow .t { font-size: 14px; font-weight: 700; }
.lrow .s { font-size: 12px; color: var(--muted); }
.amt { width: 76px; text-align: right; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.btn-wa { width: 36px; padding: 0; border-radius: 10px; }
.btn-wa-lg { width: 44px; height: 44px; padding: 0; border-radius: 12px; }

/* ---------- charts ---------- */
.chart-bars { display: flex; align-items: flex-end; gap: 24px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.chart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-col .v { font-size: 13px; font-weight: 700; }
.chart-col .b { width: 100%; border-radius: 8px 8px 0 0; background: #C9D3E0; }
.chart-col .b.hi { background: var(--blue); }
.chart-labels { display: flex; gap: 24px; padding: 0 8px; margin-top: -8px; }
.chart-labels span { flex: 1 1 0; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.chart-12 .chart-bars, .chart-12 .chart-labels { gap: 12px; }
.chart-12 .chart-col .v { font-size: 11px; }
.hour-bars { display: flex; align-items: flex-end; gap: 4px; height: 92px; }
.hour-bars > div { flex: 1 1 0; border-radius: 3px; }
.legend { display: flex; gap: 16px; font-size: 12px; font-weight: 600; color: var(--muted); align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }

.heat { display: grid; grid-template-columns: 40px repeat(18, minmax(0, 1fr)); gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); align-items: center; }
.heat .c { height: 26px; border-radius: 4px; }
.heat .h { text-align: center; }

/* ---------- attendance calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .wd { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.cal .d { height: 40px; border-radius: 8px; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.cal .d.v { background: var(--navy); color: #fff; }
.cal .d.m { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.cal .d.f { background: #fff; color: #7C8AA0; border: 1px dashed #C9D3E0; }
.cal .d.t { background: var(--orange); color: var(--navy); border: 2px solid var(--navy); }
.cal .d.tm { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.mini-cal { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.mini-cal i { height: 24px; border-radius: 5px; box-sizing: border-box; background: var(--track); }
.mini-cal i.v { background: var(--navy); }
.mini-cal i.f { background: #fff; border: 1px dashed #C9D3E0; }
.mini-cal i.t { background: var(--orange); border: 2px solid var(--navy); }

/* ---------- plan cards ---------- */
.plan-card { border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); height: 100%; }
.plan-card.top { background: var(--navy); color: #fff; border-color: var(--navy-3); }
.plan-card .price { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.plan-card .sub { color: var(--muted); font-weight: 600; }
.plan-card.top .sub { color: var(--soft); }
.plan-card .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.plan-card.top .foot { border-color: var(--navy-3); }
.plan-card.top .btn-line { --bs-btn-bg: transparent; --bs-btn-color: #fff; --bs-btn-border-color: var(--navy-3); --bs-btn-hover-bg: rgba(255,255,255,.08); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.plan-card.inactive { opacity: .6; }

/* ---------- kanban ---------- */
.kan-col { background: var(--track); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kan-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; }
.kan-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.kan-count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.kan-scroll { display: flex; flex-direction: column; gap: 10px; max-height: 760px; overflow-y: auto; padding-right: 2px; }
.kan-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.kan-card .n { font-size: 14px; font-weight: 800; }
.kan-card .g { font-size: 12px; color: var(--muted); }
.kan-src { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--grey-pill); color: var(--ink-2); white-space: nowrap; }
.kan-follow { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.kan-follow.due { color: var(--red); } .kan-follow.norm { color: var(--muted); } .kan-follow.done { color: var(--green); }

/* ---------- staff / shifts ---------- */
.shift-track { flex-grow: 1; height: 32px; border-radius: 8px; background: var(--bg); position: relative; }
.shift-bar { position: absolute; top: 0; bottom: 0; border-radius: 8px; font-size: 12px; font-weight: 700; display: flex; align-items: center; padding: 0 10px; box-sizing: border-box; white-space: nowrap; overflow: hidden; }
.shift-bar.on { background: var(--navy); color: #fff; }
.shift-bar.off { background: #C9D3E0; color: var(--navy); }
.shift-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--orange); z-index: 2; }
.stat-mini .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-mini .v { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }

/* ---------- WhatsApp ---------- */
.wa-phone { background: #E3E9F1; border-radius: 20px; overflow: hidden; border: 1px solid #C9D3E0; }
.wa-top { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.wa-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.wa-body { padding: 20px 16px; min-height: 280px; display: flex; flex-direction: column; gap: 10px; }
.wa-bubble { align-self: flex-start; max-width: 320px; background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-bubble .txt { font-size: 14px; line-height: 1.5; white-space: pre-line; }
.wa-bubble .cta { border-top: 1px solid var(--line-2); padding-top: 8px; text-align: center; font-size: 14px; font-weight: 800; color: #1F5FA8; }
.wa-bubble .tm { align-self: flex-end; font-size: 11px; color: var(--muted); }
.chip-var { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--bg); cursor: pointer; border: 0; color: var(--navy); }
.chip-var:hover { background: var(--blue-soft); }
.auto-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.auto-row.sel { background: var(--blue-tint); }
.auto-pick { flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; background: transparent; padding: 0; text-align: left; min-height: 44px; justify-content: center; color: var(--navy); }

/* ---------- lists / misc ---------- */
.flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; border: 1px solid; }
.flash-success { background: var(--green-bg); border-color: #A9D8B7; color: var(--green); }
.flash-danger, .flash-error { background: var(--red-bg); border-color: #F0B7B0; color: var(--red); }
.flash-warning { background: var(--amber-bg); border-color: #EBCF97; color: var(--amber); }
.flash-info { background: var(--blue-tint); border-color: #B6D3F3; color: #164E91; }
.flash-x { margin-left: auto; background: transparent; border: 0; color: inherit; opacity: .7; padding: 4px; line-height: 0; }
.result-card { background: var(--green-bg); border: 1px solid #A9D8B7; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.result-card.bad { background: var(--red-bg); border-color: #F0B7B0; }
.result-card .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: #fff; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.dl dt { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0; }
.dl dd { margin: 0; font-weight: 700; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.mode-row { display: flex; align-items: center; gap: 10px; }
.mode-row .sw { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.note-box { margin: 0; padding: 12px; border-radius: 10px; background: var(--bg); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.set-nav { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; }
.set-nav a { height: 40px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.set-nav a:hover { background: var(--bg); }
.set-nav a.on { background: var(--bg); font-weight: 800; color: var(--navy); }
.dash-empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.ac-wrap { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(11,27,51,.14); z-index: 1080; overflow: hidden; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; border: 0; background: #fff; width: 100%; text-align: left; }
.ac-item:hover, .ac-item.act { background: var(--blue-tint); }
.ac-item .t { font-weight: 700; font-size: 14px; } .ac-item .s { font-size: 12px; color: var(--muted); }
.modal-content { border: 0; border-radius: 16px; }
.modal-header, .modal-footer { border: 0; }
.modal-footer { gap: 8px; }
.dropdown-menu { border-radius: 12px; border-color: var(--line); font-size: 14px; }
.dropdown-item { font-weight: 600; padding: 8px 14px; }
.offcanvas-bottom { border-radius: 20px 20px 0 0; }
.more-link { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.more-link:hover { background: var(--bg); }
.text-red { color: var(--red) !important; } .text-green { color: var(--green) !important; } .text-amber { color: var(--amber) !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.line-top { border-top: 1px solid var(--line-2); }

/* ---------- bottom nav (owner mobile + member app) ---------- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; height: 76px; background: #fff; border-top: 1px solid var(--line); display: grid;
        grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 0 8px calc(8px + env(safe-area-inset-bottom)); box-sizing: content-box; }
.bn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--muted); background: transparent; border: 0; }
.bn:hover { color: var(--navy); }
.bn-ico { width: 52px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.bn.on { font-weight: 800; color: var(--navy); }
.bn.on .bn-ico { background: var(--blue-soft); }

/* ---------- member app (phone-sized) ---------- */
.member-body { background: #E4E9F0; }
.phone { max-width: 430px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; display: flex; flex-direction: column; }
.phone-scroll { flex: 1; padding: 24px 20px 108px; display: flex; flex-direction: column; gap: 14px; }
.phone-scroll.no-nav { padding-bottom: 32px; }
.bnav-member { left: 50%; right: auto; transform: translateX(-50%); width: 100%; max-width: 430px; box-sizing: border-box; height: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 500px) { .phone { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(11,27,51,.12); } }
.m-title { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; }
.m-eyebrow { font-size: 13px; color: var(--muted); font-weight: 600; }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.m-card h2 { margin: 0; font-size: 16px; font-weight: 800; }
.m-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.m-stat .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.m-stat .v { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.05; white-space: nowrap; }
.qr-card { background: var(--navy); color: #fff; border-radius: 20px; padding: 18px; display: flex; align-items: center; gap: 16px; }
.qr-box { width: 140px; height: 140px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 8px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; display: block; }
.day-tab { height: 60px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; text-decoration: none; }
.day-tab .w { font-size: 11px; font-weight: 700; } .day-tab .n { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; }
.day-tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.class-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.class-card.mine { border-color: var(--navy); }
.class-time { width: 58px; flex-shrink: 0; text-align: center; }
.class-time .t { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1; display: block; }
.class-time .ap { font-size: 11px; font-weight: 700; color: var(--muted); }
.plan-opt { min-height: 60px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 12px; padding: 0 14px; width: 100%; text-align: left; color: var(--navy); }
.plan-opt.on { border: 2px solid var(--navy); background: var(--blue-tint); padding: 0 13px; }
.plan-opt .rad { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plan-opt .rad i { width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.plan-opt.on .rad i { background: var(--navy); }
.split-chip { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--bg); color: var(--ink-2); }
.split-chip.on { background: var(--navy); color: #fff; }
.weight-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.weight-bars > div { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.weight-bars .b { width: 100%; border-radius: 5px 5px 0 0; background: #2D4B75; }
.weight-bars .b.hi { background: var(--orange); }
.weight-bars span { font-size: 11px; color: var(--soft); font-weight: 600; }

/* login */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--navy); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }

/* kiosk */
.kiosk { min-height: 100vh; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px; text-align: center; }
.kiosk .k-input { width: min(560px, 100%); height: 72px; font-size: 26px; text-align: center; border-radius: 18px; border: 2px solid var(--navy-line); background: var(--navy-2); color: #fff; }
.kiosk .k-input:focus { border-color: var(--orange); box-shadow: none; }
.kiosk .k-input::placeholder { color: var(--soft-2); }
.kiosk .k-result { width: min(560px, 100%); min-height: 132px; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.kiosk .k-result.ok { background: var(--green-bg); color: var(--green); }
.kiosk .k-result.bad { background: var(--red-bg); color: var(--red); }
.kiosk .k-result.idle { background: var(--navy-2); color: var(--soft); }
.kiosk .k-result .who { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--navy); }
.kiosk video { width: min(320px, 80vw); border-radius: 16px; border: 2px solid var(--navy-line); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .kpi-value { font-size: 44px; }
}
@media (max-width: 991.98px) {
  .main-pad { padding: 20px 16px calc(104px + env(safe-area-inset-bottom)); gap: 16px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-title { font-size: 36px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .kpi-value { font-size: 40px; }
  .kpi { padding: 16px; }
  .chart-bars, .chart-labels { gap: 10px; }
  .tbl th, .tbl td { padding-left: 14px; padding-right: 14px; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; }
  .set-nav a { white-space: nowrap; }
  .pager { padding: 12px 14px; }
}
@media (max-width: 575.98px) {
  .kpi-value { font-size: 34px; }
  .dl { grid-template-columns: 1fr 1fr; }
  .heat { grid-template-columns: 30px repeat(18, minmax(0, 1fr)); gap: 2px; }
  .heat .c { height: 20px; }
}

/* print (receipts, report) */
@media print {
  .sb, .bnav, .page-actions, .no-print, .flash { display: none !important; }
  .main-pad { padding: 0; }
  body { background: #fff; }
}

/* kanban cards: keep the 4-button action row inside narrow columns */
.kan-scroll { overflow-x: hidden; }
.kan-card .btn-icon { width: 34px; }
.kan-card .btn-sm { padding: 0 8px; font-size: 12px; min-width: 0; }

/* ---------- marketing site (root domain) ---------- */
body.site { background: var(--bg); }
.site-nav { background: var(--navy); color: #fff; }
.site-hero { background: linear-gradient(180deg, var(--navy) 0%, #10264A 100%); color: #fff; padding: 72px 0 96px; }
.site-h1 { font-family: var(--font-display); font-size: clamp(46px, 7vw, 84px); line-height: .95; font-weight: 700; letter-spacing: .01em; margin: 0 0 20px; }
.site-lead { font-size: 18px; color: var(--soft); max-width: 560px; margin: 0; }
.site-h2 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; line-height: 1; margin: 0 0 8px; letter-spacing: .01em; }
.site-mock { background: #fff; color: var(--navy); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(1.5deg); }
.site-section { padding: 64px 0; }
.site-cta { background: var(--navy); padding: 72px 0; }
.site-foot { background: var(--navy); color: var(--soft); font-size: 14px; }
.site-foot a { color: #fff; text-decoration: none; font-weight: 600; }
.site-foot a:hover { color: var(--orange); }
body.site .plan-card .price small { color: inherit; opacity: .7; }
@media (max-width: 767.98px) { .site-hero { padding: 48px 0 56px; } .site-section { padding: 44px 0; } .site-mock { transform: none; } }

/* ---------- landing page (body.lp) ---------- */
body.lp .site-nav { position: sticky; top: 0; z-index: 50; background: rgba(11,27,51,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.lp-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #0B1B33 0%, #10264A 100%); color: #fff; padding: 72px 0 120px; }
.lp-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.lp-glow-a { width: 520px; height: 520px; background: rgba(10,111,216,.45); top: -180px; right: -120px; }
.lp-glow-b { width: 420px; height: 420px; background: rgba(255,138,31,.22); bottom: -200px; left: -100px; }
.lp-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #DCE8F8; padding: 6px 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); border-radius: 999px; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF8A1F; box-shadow: 0 0 0 0 rgba(255,138,31,.6); animation: lp-pulse 2s infinite; }
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 9px rgba(255,138,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,31,0); } }
.lp-hl { background: linear-gradient(90deg, #FF8A1F, #FFC46B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--soft); font-weight: 600; font-size: 14px; }
.lp-checks li { display: inline-flex; align-items: center; gap: 6px; }
.lp-checks .ico { color: #FF8A1F; }
.lp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 30px rgba(255,138,31,.35); transition: transform .15s, box-shadow .15s; }
.lp-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,138,31,.5); }

.lp-stage { position: relative; max-width: 560px; margin: 0 auto; padding: 10px 0 40px; }
.lp-dash { background: #fff; color: var(--navy); border-radius: 22px; padding: 22px; width: 88%; box-shadow: 0 40px 80px rgba(0,0,0,.45); transform: rotate(-1.5deg); }
.lp-chart { background: var(--bg); border-radius: 14px; padding: 12px 14px 4px; }
.lp-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: lp-draw 2.2s .4s ease-out forwards; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
.lp-feed > div { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--line); }
.lp-feed > div:first-child { border-top: 0; }
.lp-feed em { margin-left: auto; font-style: normal; color: var(--muted); font-weight: 700; }
.lp-av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
.lp-phone { position: absolute; right: -6px; bottom: -6px; width: 168px; background: #fff; color: var(--navy); border-radius: 26px; padding: 14px 12px 16px; box-shadow: 0 30px 60px rgba(0,0,0,.5); border: 5px solid #0B1B33; outline: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: lp-float 6s ease-in-out infinite; }
.lp-phone-top { display: flex; align-items: center; gap: 6px; font-size: 12px; align-self: stretch; }
.lp-qr { width: 112px; height: 112px; border-radius: 14px; background: var(--blue-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.lp-toast { position: absolute; left: -14px; bottom: 4px; background: #fff; color: var(--navy); border-radius: 14px; padding: 10px 14px 10px 10px; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 44px rgba(0,0,0,.4); animation: lp-float 5s -2s ease-in-out infinite; }
.lp-toast small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.lp-toast b { font-size: 14px; }
.lp-toast-ic { width: 30px; height: 30px; border-radius: 50%; background: #16A34A; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
@keyframes lp-float { 50% { transform: translateY(-10px); } }

.lp-strip { margin-top: -56px; position: relative; z-index: 2; }
.lp-strip-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(11,27,51,.14); display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-strip-card > div { padding: 22px 20px; text-align: center; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.lp-strip-card > div:first-child { border-left: 0; }
.lp-strip-card b { font-family: var(--font-display); font-size: 30px; line-height: 1.05; color: var(--navy); }
.lp-strip-card span { color: var(--muted); font-weight: 600; font-size: 14px; }

.lp-head { max-width: 640px; margin: 0 0 8px; }
.lp-head.text-center { margin-left: auto; margin-right: auto; }
.lp-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: var(--blue-tint); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }

.lp-feat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; height: 100%; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-feat:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(11,27,51,.12); border-color: #B9D4F4; }
.lp-ico { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.lp-blue { background: #D6E7FB; color: #0A6FD8; } .lp-green { background: #DCF5E5; color: #16A34A; } .lp-orange { background: #FFE9D2; color: #D9700A; } .lp-purple { background: #EADFFB; color: #7C3AED; }

.lp-spot { background: linear-gradient(180deg, #EAF3FD 0%, var(--bg) 100%); }
.lp-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.lp-list li { display: flex; gap: 10px; align-items: flex-start; }
.lp-list .ico { color: #16A34A; margin-top: 2px; flex: none; }
.lp-chat { max-width: 400px; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(11,27,51,.2); background: #ECE5DD; }
.lp-chat-top { background: #075E54; color: #fff; padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.lp-chat-top small { display: block; opacity: .8; font-size: 11px; }
.lp-chat-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lp-msg { background: #fff; align-self: flex-start; max-width: 84%; padding: 8px 12px 6px; border-radius: 4px 14px 14px 14px; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.lp-msg span { display: block; text-align: right; font-size: 10px; color: #8a8f98; margin-top: 2px; }
.lp-msg u { color: #0A6FD8; word-break: break-all; }
.lp-msg.lp-me { background: #DCF8C6; align-self: flex-end; border-radius: 14px 4px 14px 14px; }

.lp-step { background: var(--bg); border-radius: 18px; padding: 26px; height: 100%; }
.lp-num { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #FF8A1F; font-family: var(--font-display); font-size: 26px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }

.lp-plan { transition: transform .2s, box-shadow .2s; }
.lp-plan:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(11,27,51,.16); }
.lp-plan.top { box-shadow: 0 24px 60px rgba(11,27,51,.28); }
@media (min-width: 992px) { .lp-plan.top { transform: scale(1.04); } .lp-plan.top:hover { transform: scale(1.04) translateY(-5px); } }

.lp-faq .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: 10px; overflow: hidden; }
.lp-faq .accordion-button { font-weight: 700; color: var(--navy); background: #fff; padding: 18px 20px; box-shadow: none; }
.lp-faq .accordion-button:not(.collapsed) { background: var(--blue-tint); color: var(--navy); }

.lp-cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #0B1B33, #12305C); }
.lp-cta-band .lp-glow-a { top: -240px; right: -60px; } .lp-cta-band .lp-glow-b { bottom: -260px; left: 10%; }

html.lp-js .lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
html.lp-js .lp-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lp-phone, .lp-toast, .lp-dot, .lp-line { animation: none; } .lp-line { stroke-dashoffset: 0; } }
@media (max-width: 991.98px) { .lp-hero { padding: 48px 0 96px; } .lp-strip-card { grid-template-columns: repeat(2, 1fr); } .lp-strip-card > div:nth-child(3) { border-left: 0; } .lp-strip-card > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 575.98px) { .lp-dash { width: 100%; transform: none; } .lp-phone { position: relative; right: auto; bottom: auto; margin: -34px auto 0; } .lp-toast { left: 6px; bottom: auto; top: 150px; } .lp-stage { padding-bottom: 0; } .lp-strip-card b { font-size: 24px; } }
body.lp { overflow-x: hidden; }
@media (max-width: 991.98px) { .lp-hero .row, .lp-spot .row { --bs-gutter-x: 1.5rem; } }
.site-nav .sb-word { white-space: nowrap; }
@media (max-width: 575.98px) { .site-nav .container { flex-wrap: wrap; gap: 8px !important; } .site-nav .sb-word { font-size: 20px !important; } }

.sb-group { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6F86A8; padding: 14px 14px 4px; }
.sb-nav { gap: 2px; }
.sb-link { height: 40px; }

/* platform credit ("Powered by Vault Fit by Trispark Innovate") */
.sb-powered { margin-top: 10px; padding: 0 4px; font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.45); text-align: center; }
.m-powered { margin: 24px 0 4px; font-size: 11px; color: var(--muted, #6B7280); text-align: center; }
@media print { .m-powered, .sb-powered { display: none; } }

/* ---------- marketing shell: text nav links, footer pinned to the bottom ---------- */
body.site:not(.lp) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.site:not(.lp) > .site-foot { margin-top: auto; }
.site-link { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 9px; transition: color .15s, background-color .15s; }
.site-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-link.is-on { color: #fff; background: rgba(255,255,255,.1); }
.site-link:focus-visible, .site-nav .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- find your gym ---------- */
.find-main { flex: 1 0 auto; padding: clamp(28px, 6vw, 72px) 0; background:
  radial-gradient(900px 380px at 15% -10%, rgba(10,111,216,.10), transparent 60%),
  radial-gradient(700px 320px at 100% 110%, rgba(255,138,31,.10), transparent 60%); }
.find-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 360px); gap: clamp(20px, 4vw, 48px); justify-content: center; align-items: start; }
@media (max-width: 899.98px) { .find-grid { grid-template-columns: minmax(0, 560px); } }
.find-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 1px 2px rgba(11,27,51,.04), 0 18px 40px -18px rgba(11,27,51,.18); display: grid; gap: 22px; }
.find-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.find-title { font-family: var(--font-display, 'Barlow Condensed', sans-serif); font-weight: 800; font-size: clamp(32px, 5vw, 40px); line-height: 1.05; margin: 6px 0 8px; color: var(--navy); text-wrap: balance; }
.find-lead { color: var(--muted); margin: 0; font-size: 15.5px; max-width: 46ch; }
.find-form { display: grid; gap: 18px; }
.find-form[hidden] { display: none !important; }
.find-who { border: 0; padding: 0; margin: 0; min-width: 0; }
.find-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--track); border-radius: 12px; }
.find-seg input { position: absolute; opacity: 0; pointer-events: none; }
.find-seg label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; text-align: center; }
.find-seg label:hover { color: var(--navy); }
.find-seg input:checked + label { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(11,27,51,.14); }
.find-seg input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 1px; }
.find-addr { display: flex; align-items: stretch; border: 1.5px solid var(--input-line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.find-addr:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.find-addr.is-invalid { border-color: #C0392B; }
.find-addr.is-invalid:focus-within { box-shadow: 0 0 0 4px rgba(192,57,43,.15); }
.find-addr input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 4px 13px 16px; font-size: 18px; font-weight: 600; color: var(--navy); text-align: right; }
.find-addr input::placeholder { color: var(--soft-2); font-weight: 500; }
.find-suffix { display: flex; align-items: center; padding: 0 16px 0 0; font-size: 18px; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .find-addr input, .find-suffix { font-size: 16px; } }
.find-help { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.find-preview { font-weight: 600; color: var(--ink-2); word-break: break-all; }
.find-err { margin: 8px 0 0; font-size: 14px; color: #B03A2E; font-weight: 600; }
.find-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; }
.find-go[disabled] { opacity: .75; }
.find-link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.find-link:hover { color: var(--navy); }
.find-switch { justify-self: center; font-size: 14px; min-height: 44px; padding: 0 12px; }
.find-last { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--head-bg); }
.find-last-logo { width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.find-last-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.find-last-text { display: grid; min-width: 0; flex: 1; }
.find-last-name { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-last-url { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-last-go { display: inline-flex; align-items: center; gap: 4px; border-radius: 10px; flex: none; }
.find-or { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: -8px; }
.find-or a { color: var(--muted); }
.find-side { display: grid; gap: 12px; }
.find-tip { display: flex; gap: 14px; padding: 16px; border-radius: 14px; }
.find-tip b { color: var(--navy); }
.find-tip p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.find-tip code { color: var(--ink-2); background: var(--track); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.find-tip-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.find-tip-new { background: var(--surface); border: 1px solid var(--line); }
.find-tip-new .find-tip-ico { background: #FFF1E3; color: #C05F00; }
@media (prefers-reduced-motion: reduce) { .find-seg label, .find-addr, .site-link { transition: none; } }

/* Vault Fit logo tile */
.vf-mark { background: #fff !important; padding: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(11,27,51,.08); }
.vf-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-brand .vf-mark { padding: 4px; }
.vf-logo-full { display: block; height: auto; max-width: 100%; }
