/* === staff === (staff agent) — staff-only styles. Tokens come from styles.css; never redefined here. */

/* ---------- shell ---------- */
.s-root { --s-nav-h: 60px; }
.s-shell {
  width: 100%; max-width: 1480px; margin: 0 auto;
  padding: 16px calc(var(--gutter) + var(--sa-r)) calc(var(--s-nav-h) + 32px + var(--sa-b)) calc(var(--gutter) + var(--sa-l));
}
.s-main { min-width: 0; }
.s-main:focus { outline: none; }
.s-view { display: flex; flex-direction: column; gap: 16px; }

/* mobile: fixed bottom scrollable chip bar */
.s-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px calc(12px + var(--sa-r)) calc(10px + var(--sa-b)) calc(12px + var(--sa-l));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.s-nav::-webkit-scrollbar { display: none; }
.s-nav-link {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; min-height: 40px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap;
  border: 1px solid transparent;
}
.s-nav-link:hover { background: var(--sunk); color: var(--ink); }
.s-nav-link.on { background: var(--moss); color: var(--on-moss); }
.s-nav-ic { width: 18px; height: 18px; flex: none; }

@media (min-width: 700px) {
  .s-shell {
    display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start;
    padding-top: 24px; padding-bottom: 48px;
  }
  .s-nav {
    position: sticky; top: 84px; bottom: auto; flex-direction: column; overflow: visible;
    padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; gap: 2px;
  }
  .s-nav-link { border-radius: var(--r-sm); padding: 10px 12px; }
}

/* ---------- headings / layout bits ---------- */
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.s-head-sm { margin-bottom: 2px; }
.s-title { font-size: 1.5rem; font-weight: 700; }
.s-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.s-head-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.s-date { font-size: .95rem; }
.s-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.s-card-title { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.s-pad { padding: 8px 0; }
.s-small { font-size: .85rem; }
.s-num { font-variant-numeric: tabular-nums; }
.s-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.s-grow { flex: 1; }
.s-err { color: var(--bad); }
.s-danger-text { color: var(--bad) !important; }
.s-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.s-link:hover { color: var(--moss); text-decoration: underline; }
.s-back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; align-self: flex-start; }
.s-back:hover { color: var(--moss); }
.s-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.s-sticky-actions { position: sticky; bottom: calc(var(--s-nav-h) + 12px + var(--sa-b)); background: var(--bg); padding: 10px 0; z-index: 2; }
@media (min-width: 700px) { .s-sticky-actions { bottom: 0; } }
.s-inline { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.s-inline .s-field { flex: 1 1 140px; }
.s-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .s-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- forms ---------- */
.s-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.s-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.s-hint { font-size: .8rem; line-height: 1.35; }
.s-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.s-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--moss); flex: none; }
.s-check > span { display: flex; flex-direction: column; gap: 1px; }
.s-check-l { font-weight: 500; }
.s-field-check { justify-content: flex-end; }
.s-color { padding: 4px; height: 44px; }
.s-cap-input { max-width: 110px; }
textarea.input { resize: vertical; min-height: 80px; }
.s-choices { display: flex; flex-direction: column; gap: 8px; }
.s-choices .btn { flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; height: auto; padding-top: 10px; padding-bottom: 10px; }
.s-choice-l { font-weight: 600; }
.s-choice-h { font-size: .8rem; opacity: .85; font-weight: 400; }

/* ---------- chips / subtabs ---------- */
.s-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.s-chips::-webkit-scrollbar { display: none; }
.s-chip-f {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: .88rem; font-weight: 500; cursor: pointer;
}
.s-chip-f.on { background: var(--moss); border-color: var(--moss); color: var(--on-moss); }
.s-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.s-subtab {
  flex: none; padding: 10px 14px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.s-subtab.on { color: var(--ink); border-bottom-color: var(--moss); }

/* ---------- rows ---------- */
.s-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.s-row-main > * { overflow-wrap: anywhere; }
.s-row-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.s-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.s-row-btn {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer;
  color: inherit; text-decoration: none; padding-left: 6px; padding-right: 6px; border-radius: 0;
}
.s-row-btn:hover { background: var(--sunk); }
.row.is-off, .s-row-btn.is-off { opacity: .6; }
.s-pick-list { max-height: 60dvh; overflow-y: auto; }
.s-pick-day {
  font-family: var(--f-display); font-weight: 600; font-size: .85rem; color: var(--muted);
  text-transform: capitalize; padding: 14px 0 4px; border-bottom: 1px solid var(--line);
}
.s-details { border-top: 1px solid var(--line); padding-top: 8px; }
.s-details > summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: var(--muted); }
.s-details[open] > summary { color: var(--ink); }

/* ---------- today ---------- */
.s-today { display: flex; flex-direction: column; gap: 16px; }
.s-today-lists { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .s-today-lists { grid-template-columns: 1fr 1fr; } }
.s-today-sessions { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 760px) { .s-today-sessions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s-sess { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); overflow: hidden; }
.s-sess.is-past { opacity: .75; }
.s-sess.is-cancelled { opacity: .6; }
.s-sess-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: var(--sunk);
  text-align: left; cursor: pointer; color: inherit;
}
.s-sess-head:hover { filter: brightness(.98); }
.s-sess-time { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.s-sess-title { flex: 1; min-width: 0; font-weight: 500; }
.s-occ { font-weight: 700; }
.s-attendees { padding: 4px 12px 8px; }
.s-att-list { list-style: none; margin: 0; padding: 0; }
.s-att-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.s-att-row:last-child { border-bottom: 0; }
.s-skel-line { height: 14px; margin: 10px 0; border-radius: 6px; background: var(--sunk); }
.s-dash-row { padding: 9px 0; }

/* attendance toggle */
.s-att { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.s-att-btn {
  border: 0; background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 600;
  padding: 6px 12px; min-height: 34px; cursor: pointer;
}
.s-att-btn + .s-att-btn { border-left: 1px solid var(--line); }
.s-att-btn.yes[aria-pressed="true"] { background: var(--moss-soft); color: var(--good); }
.s-att-btn.no[aria-pressed="true"] { background: var(--bad-soft); color: var(--bad); }
.s-att-btn:disabled { cursor: not-allowed; opacity: .6; }

/* ---------- schedule week ---------- */
.s-week-bar { gap: 6px; }
.s-week-label { font-family: var(--f-display); font-variant-numeric: tabular-nums; min-width: 8.5em; text-align: center; }
.s-daystrip { display: grid; grid-template-columns: repeat(var(--cols, 7), 1fr); gap: 4px; }
.s-daybtn {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; min-height: 52px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); cursor: pointer;
}
.s-daybtn-w { font-size: .72rem; color: var(--muted); font-weight: 600; }
.s-daybtn-d { font-weight: 700; font-family: var(--f-display); }
.s-daybtn-n { color: var(--moss); font-size: 11px; font-weight: 600; line-height: 1.2; }
.s-daybtn.today .s-daybtn-d { color: var(--moss); }
.s-daybtn.on { background: var(--moss); border-color: var(--moss); color: var(--on-moss); }
.s-daybtn.on .s-daybtn-w, .s-daybtn.on .s-daybtn-n, .s-daybtn.on.today .s-daybtn-d { color: var(--on-moss); }

.s-week { display: block; }
.s-week-col { display: none; flex-direction: column; gap: 6px; }
.s-week-col.sel { display: flex; }
.s-week-colhead { display: none; }
.s-week-empty { padding: 16px 0; text-align: center; }

.s-chip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: var(--r-sm);
}
.s-chip:hover { border-color: var(--moss); }
.s-chip.k-reformer { border-left-color: var(--moss); }
.s-chip.k-yoga { border-left-color: var(--clay); }
.s-chip.is-past { opacity: .6; }
.s-chip.is-cancelled { opacity: .55; }
.s-chip.is-cancelled .s-chip-title { text-decoration: line-through; }
.s-chip-time { font-weight: 700; font-family: var(--f-display); }
.s-chip-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.s-chip-occ { font-weight: 700; font-size: .9rem; color: var(--muted); }
.s-chip-occ.full { color: var(--bad); }
.s-chip-wait { color: var(--warn); font-weight: 600; }

@media (min-width: 1000px) {
  .s-daystrip { display: none; }
  .s-week { display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); gap: 8px; align-items: start; }
  .s-week-col { display: flex; gap: 4px; min-width: 0; }
  .s-week-colhead {
    display: block; font-size: .8rem; font-weight: 600; color: var(--muted); padding: 6px 4px;
    border-bottom: 2px solid var(--line); margin-bottom: 2px; white-space: nowrap;
  }
  .s-week-col.today .s-week-colhead { color: var(--moss); border-bottom-color: var(--moss); }
  .s-chip { grid-template-columns: 1fr auto; grid-template-areas: "t o" "n n" "m m"; gap: 0 4px; padding: 8px 10px; border-left-width: 3px; }
  .s-chip-time { grid-area: t; font-size: .95rem; }
  .s-chip-occ { grid-area: o; font-size: .85rem; }
  .s-chip-title { grid-area: n; font-size: .78rem; color: var(--muted); }
  .s-chip-names { grid-area: m; flex-direction: column; gap: 1px; margin-top: 6px; padding-top: 6px; }
  .s-chip-name::after { content: none; }
  .s-chip .pill { grid-area: o; font-size: .65rem; padding: 1px 6px; }
}

/* session sheet */
.s-sess-info { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.s-occ-big { margin-left: auto; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.s-occ-big.full { color: var(--bad); }
.s-att-row2 { flex-wrap: wrap; }
.s-att-row2 .s-row-main { flex: 1 1 180px; }
.s-att-row2 .s-row-meta { justify-content: flex-start; }
.s-wait-list .s-row-main { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* templates */
.s-gen { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.s-gen > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.s-tpl-day + .s-tpl-day { margin-top: 10px; }
.s-tpl-dayname { font-family: var(--f-display); font-size: .9rem; color: var(--muted); padding: 4px 0; border-bottom: 2px solid var(--line); margin: 0; }
.s-tpl-row { gap: 12px; }
.s-tpl-time { font-weight: 700; min-width: 7.5em; }
.s-hol-form { border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- members ---------- */
.s-member-row { gap: 12px; }
.s-member-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .s-member-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.s-member-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.s-contact-links { display: flex; gap: 6px; flex-wrap: wrap; }
.s-contact-links .btn { text-decoration: none; }
.s-consent { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.s-note-warn { background: var(--warn-soft); color: var(--ink); border-radius: var(--r-sm); padding: 10px 12px; }
.s-note-info { background: var(--moss-soft); color: var(--ink); border-radius: var(--r-sm); padding: 10px 12px; }
.s-pk { align-items: flex-start; flex-wrap: wrap; }
.s-pk .s-row-main { flex: 1 1 220px; gap: 4px; }
.s-pk-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.s-pk-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
@media (min-width: 560px) { .s-pk-pay { flex-direction: column; align-items: flex-end; } }
.s-pk-summary { color: var(--muted); }
.s-pk-tools { display: flex; gap: 6px; margin-top: 4px; }
.s-pk-quick { justify-content: flex-start; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.s-stepper { display: flex; align-items: center; gap: 6px; }
.s-stepper input { width: 6em; text-align: center; }
.s-stepper .btn { min-width: 44px; font-size: 1.1rem; }
.s-sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.s-pk-danger { display: flex; flex-direction: column; gap: 6px; }
.s-pk-danger .s-actions { justify-content: flex-start; flex-wrap: wrap; }
.s-meter { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; max-width: 260px; }
.s-meter > span { display: block; height: 100%; background: var(--moss); border-radius: 3px; }
.s-hist-sum { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.s-hist-row { padding: 9px 0; }

/* import */
.s-import h4 { margin: 4px 0 0; font-size: .95rem; }
.s-map { display: flex; flex-direction: column; gap: 6px; }
.s-map-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.s-map-col { display: flex; flex-direction: column; min-width: 0; }
.s-map-col > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.s-table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.s-table th, .s-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.s-table th { background: var(--sunk); font-weight: 600; color: var(--muted); }
.s-table tr.is-off td { color: var(--muted); font-style: italic; }

/* ---------- reports ---------- */
.s-report { display: flex; flex-direction: column; gap: 16px; }
.s-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .s-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.s-kpi {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.s-kpi.hero { grid-column: 1 / -1; }
@media (min-width: 760px) { .s-kpi.hero { grid-column: auto; } }
.s-kpi-l { font-size: .8rem; font-weight: 600; color: var(--muted); }
.s-kpi-v { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
.s-kpi.hero .s-kpi-v { font-size: 2rem; }
.s-kpi.warn .s-kpi-v { color: var(--warn); }
.s-kpi-s { font-size: .8rem; }
.s-report-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .s-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.s-hbars { display: flex; flex-direction: column; gap: 10px; }
.s-hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: 4px 10px; align-items: center; }
.s-hbar-l { grid-area: l; font-size: .88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-hbar-v { grid-area: v; font-weight: 600; font-size: .88rem; }
.s-hbar-track { grid-area: t; height: 12px; display: block; }
.s-hbar-fill { display: block; height: 100%; background: var(--moss); border-radius: 0 4px 4px 0; min-width: 0; }
.s-hbar:hover .s-hbar-fill { filter: brightness(1.12); }

.s-cols-wrap { width: 100%; }
.s-cols { width: 100%; max-width: 560px; height: auto; overflow: visible; margin: 0 auto; }
.s-cols .s-grid { stroke: var(--line); stroke-width: 1; }
.s-cols .s-base { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.s-cols .s-axis { fill: var(--muted); font-size: 11px; font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.s-cols .s-col-v { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--f-body); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .15s; }
.s-cols .s-col.last .s-col-v, .s-cols .s-col:hover .s-col-v { opacity: 1; }
.s-cols .s-col-bar { fill: var(--moss); }
.s-cols .s-col:not(.last) .s-col-bar { fill: color-mix(in srgb, var(--moss) 55%, var(--surface)); }
.s-cols .s-col:hover .s-col-bar { fill: var(--moss); }
.s-cols .s-col-hit { fill: transparent; }

/* heatmap: one hue (moss) light → dark, 5 steps */
.s-heat-scroll { overflow-x: auto; }
.s-heat { display: grid; gap: 2px; min-width: max-content; font-size: .75rem; }
.s-heat-h, .s-heat-d { color: var(--muted); font-weight: 600; display: grid; place-items: center; padding: 2px; }
.s-heat-d { justify-content: start; }
.s-heat-c { height: 30px; border-radius: 4px; display: grid; place-items: center; background: var(--sunk); }
.s-heat-c.none { background: transparent; border: 1px solid var(--line); opacity: .5; }
.s-heat-v { font-size: .68rem; font-weight: 600; color: var(--ink); }
.s-heat-c.l1, .s-heat-sw.l1 { background: color-mix(in srgb, var(--moss) 14%, var(--surface)); }
.s-heat-c.l2, .s-heat-sw.l2 { background: color-mix(in srgb, var(--moss) 32%, var(--surface)); }
.s-heat-c.l3, .s-heat-sw.l3 { background: color-mix(in srgb, var(--moss) 52%, var(--surface)); }
.s-heat-c.l4, .s-heat-sw.l4 { background: color-mix(in srgb, var(--moss) 75%, var(--surface)); }
.s-heat-c.l5, .s-heat-sw.l5 { background: var(--moss); }
.s-heat-c.l4 .s-heat-v, .s-heat-c.l5 .s-heat-v { color: var(--on-moss); }
.s-heat-c:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.s-heat-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 10px; }
.s-heat-key { display: inline-flex; align-items: center; gap: 4px; }
.s-heat-sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* ---------- settings ---------- */
.s-swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; }

/* ---------- team ---------- */
.s-team-row { gap: 12px; }
.s-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--moss-soft); color: var(--moss); font-family: var(--f-display); font-weight: 700; font-size: .85rem;
}
.s-perms { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.s-perms legend { font-weight: 600; padding: 0 6px; }
.s-perm { border-bottom: 1px solid var(--line); padding: 8px 4px; border-radius: 4px; }
.s-perm:last-child { border-bottom: 0; }
.s-perm.changed { background: var(--warn-soft); }

/* ---------- log ---------- */
.s-log-row { align-items: flex-start; }
.s-log-time { min-width: 3.2em; padding-top: 1px; }
.s-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.s-dl dt { color: var(--muted); font-weight: 600; font-size: .85rem; }
.s-dl dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---------- print-ish / forced colors ---------- */
@media (forced-colors: active) {
  .s-hbar-fill, .s-col-bar, .s-heat-c, .s-meter > span { forced-color-adjust: none; }
  .s-att-btn[aria-pressed="true"] { outline: 2px solid CanvasText; }
}

/* weekly booking totals (schedule page) */
.s-week-sum{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:10px 0 12px;display:flex;flex-direction:column;gap:10px}
.s-week-sum:empty{display:none}
.s-sum-main{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.s-sum-label{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);flex-basis:100%}
.s-sum-big{font-family:var(--f-display);font-size:30px;font-weight:600;line-height:1}
.s-sum-of{color:var(--muted);font-size:14px}
.s-sum-bar{height:8px;background:var(--sunk);border-radius:4px;overflow:hidden}
.s-sum-bar i{display:block;height:100%;background:var(--moss);border-radius:4px}
.s-sum-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted)}
.s-sum-meta b{color:var(--ink);font-weight:600}
.s-sum-kind{display:inline-flex;align-items:center;gap:6px}
.s-sum-kind i{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.s-sum-kind.k-reformer i{background:var(--moss)}
.s-sum-kind.k-yoga i{background:var(--clay)}
.s-day-total{float:right;font-size:12px;font-weight:600;color:var(--muted);background:var(--sunk);border-radius:999px;padding:1px 8px}

/* newcomers: trial lesson / first lesson highlight */
.s-new-badge{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--warn);background:var(--warn-soft);border-radius:999px;padding:2px 8px;white-space:nowrap}
.s-new-badge::before{content:"★";font-size:10px}
.row.s-att-row2.is-new,.s-att-row.is-new{box-shadow:inset 3px 0 0 var(--warn);background:color-mix(in srgb,var(--warn-soft) 45%,transparent)}
.s-att-name{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.s-chip-new{display:inline-block;margin-left:5px;font-size:11px;font-weight:700;color:var(--warn);background:var(--warn-soft);border-radius:6px;padding:0 4px;vertical-align:1px}
.s-sum-new b{color:var(--warn)}

/* attendee names on each class in the week schedule */
.s-chip-names { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 2px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: .8rem; line-height: 1.35; color: var(--ink); min-width: 0; }
.s-chip-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.s-chip-name::after { content: ",\00a0"; color: var(--muted); }
.s-chip-name:last-child::after { content: none; }
.s-chip-name.is-new { color: var(--warn); font-weight: 600; }
.s-chip-name.is-new::before { content: "★ "; }
.s-chip-name.is-noshow { color: var(--muted); text-decoration: line-through; }
.s-chip.is-past .s-chip-names { opacity: .9; }
@media (min-width: 1000px) { .s-chip-names .s-chip-name::after { content: none; } .s-chip-names { margin-top: 6px; } }

/* session picker: kind filter + new booking button */
.s-pick-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.s-pick-filter .btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.s-row-btn:disabled { cursor: default; }

/* ---------- closed days (holidays / vacations) ---------- */
.s-closed-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.s-closed-presets .btn { gap: 4px; }
.s-closed-row .s-row-main { display: flex; flex-direction: column; gap: 2px; }
.s-closed-tag {
  margin: 0 0 6px; padding: 8px 10px; border-radius: var(--r-sm);
  background: repeating-linear-gradient(135deg, var(--sunk) 0 6px, transparent 6px 12px);
  border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; font-size: .85rem;
}
.s-closed-tag strong { color: var(--bad); }
.s-closed-tag span { color: var(--muted); }
.s-daybtn.closed .s-daybtn-d { text-decoration: line-through; color: var(--muted); }
.s-daybtn.closed::after { content: "κλειστό"; display: block; font-size: .62rem; color: var(--bad); letter-spacing: .02em; }

/* ---------- calendar picker (new booking / transfer) ---------- */
.s-cal { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; background: var(--surface); }
.s-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.s-cal-title { font-family: var(--f-display); font-size: 1.05rem; }
.s-cal-grid { display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); gap: 4px; }
.s-cal-wd { text-align: center; font-size: .72rem; color: var(--muted); padding: 2px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.s-cal-day {
  position: relative; min-height: 44px; border-radius: 10px; border: 1px solid transparent; background: var(--sunk);
  color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0;
}
.s-cal-day:hover:not(:disabled) { border-color: var(--moss); }
.s-cal-day:focus-visible { outline: 2px solid var(--moss); outline-offset: 1px; }
.s-cal-day.today { border-color: var(--muted); }
.s-cal-day.sel { background: var(--moss); color: var(--on-moss); border-color: var(--moss); }
.s-cal-day:disabled { cursor: default; background: transparent; color: var(--muted); font-weight: 400; }
.s-cal-day.past { opacity: .45; }
.s-cal-day.closed { background: repeating-linear-gradient(135deg, var(--sunk) 0 5px, transparent 5px 10px); }
.s-cal-day.closed .s-num { text-decoration: line-through; }
.s-cal-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.s-cal-dot.ok { background: var(--moss); }
.s-cal-dot.full { background: var(--bad); }
.s-cal-day.sel .s-cal-dot.ok { background: var(--on-moss); }
.s-cal-list { min-height: 60px; }

/* «Σήμερα»: expired package / no lessons left — highlighted rows */
.s-dash-row.is-expired { background: var(--bad-soft, color-mix(in srgb, var(--bad) 12%, transparent)); border-left: 3px solid var(--bad); padding-left: 10px; border-radius: var(--r-sm); }

/* ⚠ caution next to a member's name (instructors see the mark, not the note) */
.s-caution { color: var(--warn); font-weight: 700; cursor: help; }

/* Settings → Λογότυπο / Κείμενα ειδοποιήσεων */
.s-logo-box { display: flex; align-items: center; min-height: 72px; padding: 12px; margin: 8px 0 12px;
  background: #fff; border: 1px dashed var(--line, #D6CEC2); border-radius: 12px; }
.s-logo-preview { display: block; max-width: 220px; max-height: 96px; width: auto; height: auto; }
