/* Fit4Life — BYU-Idaho brand: Brand Blue #006EB6 (Pantone 300) + black/white/gray */
:root {
  --blue: #006EB6;
  --blue-deep: #005a96;
  --blue-ink: #0d3a5c;
  --navy: #14222c;
  --blue-soft: #e9f2f9;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #e1e7ec;
  --muted: #5c6670;
  --green: #1e7d52;
  --red: #c0392b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 34, 44, .05);
  --shadow-lift: 0 10px 28px rgba(0, 110, 182, .13);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.5;
}

/* ---- top utility bar: the always-visible way into each portal ---- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}
.topbar .inner {
  max-width: 1060px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 4px; min-height: 40px;
}
.topbar .brand {
  font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12px;
  color: #fff; text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 8px;
}
.topbar .brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.topbar a.nav {
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600;
  padding: 10px 12px; border-radius: 6px; transition: color .15s, background .15s;
}
.topbar a.nav:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar a.nav.cta {
  background: var(--blue); color: #fff; padding: 8px 16px; margin-left: 6px; border-radius: 8px;
}
.topbar a.nav.cta:hover { background: var(--blue-deep); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 10px 20px 90px; }
header.site {
  display: flex; align-items: center; gap: 16px; padding: 26px 0 10px;
}
header.site img { height: 52px; }
header.site .titles .kicker {
  font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue); font-weight: 700;
}
header.site .titles h1 { margin: 2px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }

.stepper { display: flex; gap: 6px; margin: 18px 0 26px; flex-wrap: wrap; }
.stepper .step {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.stepper .step.home { cursor: pointer; color: var(--blue); border-color: var(--blue-soft); background: var(--blue-soft); }
.stepper .step.home:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.stepper .step.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper .step.done { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue-ink); }
.stepper .step .n {
  width: 19px; height: 19px; border-radius: 50%; background: rgba(20,34,44,.08);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.stepper .step.active .n { background: rgba(255,255,255,.22); }
.stepper .step.done .n { background: var(--blue); color: #fff; }

h2.section { font-size: 27px; margin: 8px 0 4px; font-weight: 800; letter-spacing: -.4px; }
p.sub { color: var(--muted); margin: 0 0 20px; max-width: 68ch; }

.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-tabs button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; cursor: pointer; font-size: 13.5px; color: var(--navy); font-family: inherit;
  transition: border-color .15s, background .15s, color .15s;
}
.cat-tabs button:hover { border-color: var(--blue); color: var(--blue); }
.cat-tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; position: relative; box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card.selected { border: 2px solid var(--blue); padding: 19px; box-shadow: var(--shadow-lift); }
.card.selected::after {
  content: "✓"; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px;
  background: var(--blue); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.card .badge {
  position: absolute; top: -10px; left: 16px; background: var(--navy); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .8px;
}
.card h3 { margin: 4px 0 6px; font-size: 16.5px; font-weight: 700; }
.card .pill {
  display: inline-block; background: var(--blue-soft); color: var(--blue-ink); font-size: 11.5px;
  font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 4px 8px 0;
}
.card .price { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.card .price small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.card p.desc { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 8px 0; }
.card ul { margin: 10px 0 0; padding: 10px 0 0 2px; list-style: none; border-top: 1px solid var(--line); }
.card ul li { font-size: 12.5px; color: var(--navy); padding: 3px 0 3px 20px; position: relative; }
.card ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}
.card .meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* home hero image (uploaded in admin -> Content) */
.home-photo {
  display: block; width: 100%; max-width: 860px; max-height: 320px; object-fit: cover;
  border-radius: 16px; margin: 20px auto 8px; box-shadow: 0 14px 40px rgba(20,34,44,.16);
}

/* big action cards (home screen) */
.card.action { padding: 26px 24px; }
.card.action h3 { font-size: 19px; }
.card.action .go { color: var(--blue); font-weight: 700; font-size: 13.5px; margin-top: 10px; display: inline-block; }
/* home entry cards in the Fit4Life logo blues, so they stand off the white page */
.card.action.brand {
  background: linear-gradient(135deg, var(--blue) 0%, #004a85 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 90, 150, .28);
}
.card.action.brand h3 { color: #fff; }
.card.action.brand p.desc { color: rgba(255, 255, 255, .88); }
.card.action.brand .go { color: #fff; border-bottom: 2px solid rgba(255,255,255,.5); padding-bottom: 1px; }
.card.action.brand:hover { border-color: transparent; box-shadow: 0 14px 34px rgba(0, 90, 150, .4); }

/* weekly picker: week-strip day tiles + time dropdown + picked chips */
.day-tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 640px; margin: 6px 0 4px; }
.day-tile {
  position: relative; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 4px 9px; cursor: pointer; text-align: center; font-family: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.day-tile .d { display: block; font-weight: 800; font-size: 13.5px; color: var(--navy); }
.day-tile .c { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.day-tile:hover:not(.disabled) { border-color: var(--blue); }
.day-tile.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 -3px 0 var(--blue); }
.day-tile.active .d { color: var(--blue); }
.day-tile.disabled { opacity: .4; cursor: not-allowed; }
.day-tile .dot {
  position: absolute; top: -7px; right: -6px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,110,182,.35);
}
select.time-select {
  width: 100%; max-width: 340px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14.5px; font-family: inherit; background: #fff; font-weight: 600; color: var(--navy);
}
select.time-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,110,182,.15); }
.picked-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; min-height: 30px; }
.picked-chips .chip {
  background: var(--blue); color: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.picked-chips .chip a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; }
.picked-chips .chip a:hover { color: #fff; }

/* consultation month calendar */
.consult-layout { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; margin: 6px 0 4px; }
.month-cal { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; width: 320px; box-shadow: var(--shadow); }
.mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14.5px; }
.mc-nav { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 30px; height: 30px; font-size: 16px; cursor: pointer; color: var(--blue); font-family: inherit; }
.mc-nav:disabled { opacity: .3; cursor: default; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mc-dow { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 2px 0 6px; }
.mc-cell { aspect-ratio: 1; border-radius: 8px; border: none; background: transparent; font-size: 13px; font-family: inherit; display: flex; align-items: center; justify-content: center; }
.mc-cell.off { color: #c3cbd2; }
.mc-cell.avail { background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; cursor: pointer; transition: background .12s, color .12s; }
.mc-cell.avail:hover { background: var(--blue); color: #fff; }
.mc-cell.sel { background: var(--blue); color: #fff; box-shadow: 0 3px 10px rgba(0,110,182,.35); }
.consult-times { flex: 1; min-width: 240px; padding-top: 6px; }

.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.slot {
  padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--navy); font-family: inherit;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.slot:hover { border-color: var(--blue); color: var(--blue); }
.slot.selected { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(0,110,182,.28); }
.day-block { margin-bottom: 16px; }
.day-block h4 {
  margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted);
}

.notice {
  background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 8px;
  padding: 12px 16px; font-size: 13.5px; color: var(--blue-ink); margin: 0 0 18px;
}
.notice.warn { background: #fbeeec; border-left-color: var(--red); color: #8c2c20; }

.nav-row { display: flex; justify-content: space-between; margin-top: 28px; gap: 10px; }
button.primary {
  background: var(--blue); color: #fff; border: none; padding: 13px 30px; font-size: 15px;
  border-radius: 9px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,110,182,.25);
}
button.primary:hover:not(:disabled) { background: var(--blue-deep); transform: translateY(-1px); }
button.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.ghost {
  background: #fff; color: var(--navy); border: 1px solid var(--line);
  padding: 13px 24px; font-size: 14.5px; border-radius: 9px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s;
}
button.ghost:hover { border-color: var(--blue); color: var(--blue); }

form.details { max-width: 520px; }
form.details label { display: block; font-size: 13px; font-weight: 700; margin: 15px 0 5px; }
form.details input, form.details textarea, form.details select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 14.5px;
  font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
form.details input:focus, form.details textarea:focus, form.details select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,110,182,.15);
}

.summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 22px; max-width: 520px; box-shadow: var(--shadow);
}
.summary h3 { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.summary .row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.summary .row:last-child { border-bottom: none; }
.summary .row .k { color: var(--muted); }
.summary .row .v { font-weight: 600; text-align: right; max-width: 60%; }

.success { text-align: center; padding: 56px 20px; }
.success .check {
  width: 74px; height: 74px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 36px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0,110,182,.35);
}
.spots { font-size: 12px; font-weight: 700; color: var(--green); }
.spots.full { color: var(--red); }
.hidden { display: none !important; }

/* trainer photos */
.tphoto {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 10px;
  border: 3px solid #fff; outline: 1px solid var(--line); background: var(--blue-soft);
  box-shadow: var(--shadow);
}
.tphoto.initials {
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--blue);
}

/* confirm modal */
.modal-back {
  position: fixed; inset: 0; background: rgba(20,34,44,.5); display: flex;
  align-items: center; justify-content: center; z-index: 50;
}
.modal {
  background: #fff; border-radius: 14px; padding: 24px 26px; max-width: 420px; width: 92%;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.modal h3 { margin: 0 0 8px; }
.modal p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }

/* calendar */
.cal-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cal-grid {
  display: grid; grid-template-columns: 60px repeat(7, 1fr); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 11.5px;
}
.cal-grid .hd { background: var(--navy); color: #fff; padding: 8px 4px; text-align: center; font-weight: 700; }
.cal-grid .hr { background: #f1f4f7; padding: 6px 4px; text-align: right; color: var(--muted); border-top: 1px solid var(--line); }
.cal-grid .cell { border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 34px; padding: 2px; }
.cal-ev { border-radius: 6px; padding: 2px 5px; margin: 1px 0; font-weight: 600; line-height: 1.25; }
.cal-ev.fam-flex { background: #e5f1f9; color: #005a96; }
.cal-ev.fam-partner { background: #e6f4ec; color: #14663f; }
.cal-ev.fam-starter { background: #fdf1e2; color: #9a5b10; }
.cal-ev.fam-silver { background: #eef0f2; color: #4d5866; }
.cal-ev.fam-gold { background: #faf3d9; color: #7d6410; }
.cal-ev.fam-payg { background: #f1eafa; color: #5f35a8; }
.cal-ev.ev-consult { background: #fbeceb; color: #a03227; }
.cal-ev.ev-class { background: #e2f3f6; color: #0b6a7d; }
.cal-ev.ev-open { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-weight: 500; }
.cal-ev.ev-block { background: #38424c; color: #fff; }

tr.expired { background: #fdf6e7; }

/* success toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 26px; border-radius: 10px;
  font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* collapsible trainer sections (Shifts & Hours) */
details.trainer-fold summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; user-select: none;
}
details.trainer-fold summary::before {
  content: '▸'; margin-right: 10px; color: var(--blue); font-size: 15px; transition: transform .15s;
}
details.trainer-fold[open] summary::before { transform: rotate(90deg); }
details.trainer-fold summary::-webkit-details-marker { display: none; }

/* ---- admin components (admin.html strips its local copies) ---- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
h3.sec {
  margin: 0 0 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--blue); font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
input.inline, select.inline, textarea.inline {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px;
  margin: 2px; font-family: inherit; background: #fff; color: var(--navy);
  transition: border-color .15s, box-shadow .15s;
}
input.inline:focus, select.inline:focus, textarea.inline:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,110,182,.13);
}
button.small {
  padding: 8px 16px; border-radius: 8px; border: none; background: var(--blue); color: #fff;
  font-weight: 600; cursor: pointer; font-size: 12.5px; font-family: inherit;
  transition: background .15s;
}
button.small:hover { background: var(--blue-deep); }
button.small.danger { background: var(--red); }
button.small.danger:hover { background: #a02f22; }
.mini { font-size: 12px; color: var(--muted); }
/* field labels inside panels read as labels, checkbox labels stay inline */
.panel label.mini { display: block; font-weight: 700; color: var(--navy); font-size: 12px; margin: 10px 0 3px; }
.panel label.mini:has(input) {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600;
  margin: 6px 14px 6px 0; color: var(--navy);
}
.admin-table table, table.admin { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13.5px; box-shadow: var(--shadow); }
.admin-table th, table.admin th {
  text-align: left; padding: 11px 12px; background: var(--blue-soft); color: var(--blue-ink);
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--line);
}
.admin-table td, table.admin td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr:hover, table.admin tbody tr:hover { background: #fafcfe; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-row .sfield { flex: 1; min-width: 130px; margin-bottom: 8px; }
.check-row { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 6px 0 10px; }

/* admin settings layout */
.settings-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 4px 0 16px; flex-wrap: wrap; }
.settings-head h3 { margin: 0; font-size: 19px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.scard { margin-bottom: 0 !important; }
.scard h3.sec {
  margin: 0 0 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--blue); font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.sfield { margin-bottom: 12px; min-width: 0; }
.sfield label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sfield input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.sfield input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,110,182,.13); }
.sfield .hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.srow { display: flex; gap: 12px; flex-wrap: wrap; }
.srow .sfield { flex: 1; min-width: 110px; }
.sh-row { display: grid; grid-template-columns: 36px 1fr 22px 1fr; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.sh-row input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; width: 100%; }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.dash-card h3 { margin: 0 0 4px; font-size: 15px; }
.dash-card .big { font-size: 32px; font-weight: 800; }
.dash-card .mini { color: var(--muted); font-size: 12px; }
.bar-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 12.5px; }
.bar-row .lbl { width: 130px; text-align: right; color: var(--navy); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { height: 18px; border-radius: 5px; background: var(--blue); min-width: 3px; }
.bar-row .val { color: var(--muted); font-weight: 700; }
a.admin-link { position: fixed; bottom: 12px; right: 16px; font-size: 12px; color: var(--muted); text-decoration: none; }

h2.section.hero-title { font-size: clamp(24px, 5.5vw, 30px); }

/* ---- mobile ---- */
@media (max-width: 640px) {
  .topbar .inner { padding: 0 10px; gap: 0; min-height: 44px; }
  .topbar .brand { font-size: 11px; letter-spacing: 1px; gap: 6px; }
  .topbar .brand .full { display: none; }
  .topbar a.nav { padding: 12px 8px; font-size: 12.5px; white-space: nowrap; border-radius: 0; }
  .topbar a.nav.cta { padding: 8px 11px; margin-left: 4px; border-radius: 8px; }
  .wrap { padding: 4px 14px 60px; }
  header.site { padding: 16px 0 4px; gap: 12px; }
  header.site img { height: 38px; }
  header.site .titles .kicker { font-size: 9.5px; letter-spacing: 1.4px; }
  header.site .titles h1 { font-size: 19px; }
  h2.section { font-size: 22px; }
  p.sub { font-size: 14.5px; }
  .stepper { gap: 5px; margin: 12px 0 16px; }
  .stepper .step { padding: 6px 10px; font-size: 11px; }
  .stepper .step .n { display: none; }
  .card { padding: 16px; }
  .card .price { font-size: 26px; }
  .card.action { padding: 20px 18px; }
  .cat-tabs { gap: 6px; }
  .cat-tabs button { padding: 8px 14px; font-size: 12.5px; }
  .slot { padding: 10px 13px; font-size: 13px; }
  .day-tiles { gap: 5px; }
  .day-tile { padding: 8px 2px 7px; }
  .day-tile .d { font-size: 12px; }
  .day-tile .c { font-size: 9px; }
  select.time-select { max-width: none; }
  .month-cal { width: 100%; }
  .consult-layout { gap: 14px; }
  .home-photo { max-height: 200px; border-radius: 12px; }
  /* keep Continue reachable while scrolling long pickers */
  .nav-row {
    position: sticky; bottom: 0; z-index: 5; margin-top: 20px;
    padding: 12px 0 12px; background: linear-gradient(to top, var(--bg) 75%, transparent);
  }
  .nav-row button.primary { flex: 1; }
  .summary .row { font-size: 13px; }
  .summary .row .v { max-width: 55%; }
  .success { padding: 40px 12px; }
  .cal-grid { font-size: 9px; }
  .modal { padding: 20px; }
}

/* ---- dashboard custom graphs ---- */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dash-tools { display: flex; gap: 4px; opacity: .3; transition: opacity .15s; }
.dash-card:hover .dash-tools { opacity: 1; }
.mini-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 8px;
  width: 26px; height: 26px; line-height: 1; font-size: 12px; cursor: pointer; padding: 0; }
.mini-btn:hover { border-color: var(--blue); color: var(--blue); }
.mini-btn.danger:hover { border-color: var(--red); color: var(--red); }
.dash-sec { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; flex-wrap: wrap; }
.dash-sec h3 { margin: 0; font-size: 16px; }
.line-svg { width: 100%; height: auto; margin-top: 6px; display: block; }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.donut-wrap .lgd { font-size: 12.5px; display: grid; gap: 5px; min-width: 0; }
.donut-wrap .lgd .row { display: flex; align-items: center; gap: 7px; }
.donut-wrap .lgd .lbl { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-wrap .lgd .chip { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.paid-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--red); cursor: pointer; white-space: nowrap; }
.paid-tick.yes { color: var(--green, #1d9e6f); }
.paid-tick input { accent-color: var(--green, #1d9e6f); cursor: pointer; }
.email-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; align-items: start; }
.email-cols textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; font-family: inherit; }
.email-cols textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,110,182,.13); }
@media (max-width: 760px) { .email-cols { grid-template-columns: 1fr; } }
table.omx { border-collapse: collapse; font-size: 12.5px; }
table.omx th { padding: 5px 6px; background: var(--navy); color: #fff; font-weight: 700; text-align: center; }
table.omx th:first-child { text-align: left; }
table.omx td { border: 1px solid var(--line); padding: 2px; text-align: center; }
table.omx td.t { padding: 3px 10px; white-space: nowrap; color: var(--muted); font-weight: 600; text-align: left; background: #fafbfc; }
table.omx input.mcap { width: 44px; border: 1px solid transparent; border-radius: 6px; padding: 5px 0; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--blue); background: transparent; }
table.omx input.mcap:hover { border-color: var(--line); }
table.omx input.mcap:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,110,182,.13); }
table.omx tr.tot td { font-weight: 800; background: #f2f6fa; }
table.omx tr.tot td.t { color: var(--navy); }
.paid-tick.overdue { background: #fbeeec; border-radius: 8px; padding: 4px 8px; }
