/* ==========================================================================
   STG Portal V3 — Staff Scheduler (schedule, sched_setup, sched_staff, sched_closures)
   Built on app.css / stg.css / portal.css tokens. Class/staff colors arrive as --c (#RRGGBB).
   Closed time = soft diagonal hatch (straight stripes). No pink, no wavy line art.
   ========================================================================== */
:root { --sc-hatch-a: rgba(103, 110, 137, .17); --sc-name-w: 112px; --sc-px: 132px; }
:root[data-theme="dark"] { --sc-hatch-a: rgba(200, 206, 230, .11); }
.sc { --hatch: repeating-linear-gradient(135deg, var(--sc-hatch-a) 0 6px, transparent 6px 12px); }
.sc-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #7A8099); }
.pill.sc-muted { background: var(--surface-3); color: var(--muted); }
.pill.sc-closed { background: color-mix(in srgb, var(--text) 11%, transparent); color: var(--text-2); }
.sc-st, .sc-role { flex: none; }
.is-off { opacity: .62; }
.is-off :is(b, .sc-inst-name, .sc-duty-time, .sc-tpl-time) { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--text) 45%, transparent); }

/* ---------- Toolbar: date bar + modes ---------- */
.sc-toolbar { position: sticky; top: 0; z-index: 4; background: var(--paper); padding: 4px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.sc-datebar { display: flex; align-items: center; gap: 4px; }
.sc-step { flex: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); width: 40px; height: 40px; }
.sc-datebtn { flex: 1; min-width: 0; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-display); font-weight: 750; font-size: var(--fs-lg); color: var(--text); white-space: nowrap; overflow: hidden; }
.sc-datebtn span { overflow: hidden; text-overflow: ellipsis; }
.sc-datebtn .ico { color: var(--teal-strong); }
.sc-datebtn:active { background: var(--surface-3); }
.sc-today { flex: none; margin-left: 4px; }
.sc-modes { display: flex; gap: 8px; align-items: center; }
.sc-mode { flex: none; min-width: 128px; }
.sc-view { flex: 1; min-width: 0; }
.sc-view button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 0 6px; }
.sc-view button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-view .sc-view-sm { display: none; }
.sc-view { container-type: inline-size; }
@container (max-width: 560px) { .sc-view .sc-view-lg { display: none; } .sc-view .sc-view-sm { display: inline; } }
/* Classes By Hour (owner 11/15) */
.sc-hour { padding: 4px 14px 10px; }
.sc-hour .rp-h:first-child { margin-top: 8px; }
.sc-hour-coach { background: none; border: 0; padding: 1px 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.sc-hour-coach:hover span { text-decoration: underline; text-decoration-color: var(--line-2); }
.sc-hour-coach.is-off { color: var(--muted); }
.sc-toolbar > .sc-mode { align-self: stretch; }
@media (max-width: 480px) { .sc-view .ico { display: none; } .sc-view button { font-size: 12px; padding: 0 3px; letter-spacing: -.01em; } .sc-modes .sc-mode { min-width: 96px; } .sc-modes { gap: 6px; } }
@media (min-width: 900px) {
  .sc-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .sc-datebar { flex: 0 1 460px; }
  .sc-modes { flex: 0 1 760px; }   /* 4 views (owner 11/15: + Classes By Hour) - room for the full labels */
  .sc-toolbar > .sc-mode { align-self: auto; flex: 0 0 260px; }
}

/* ---------- Closure banners + stats ---------- */
.sc-closures { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sc-closure { --tb: var(--amber-soft); --tf: var(--amber); width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; background: var(--tb); color: var(--text); border: 1px solid color-mix(in srgb, var(--tf) 22%, transparent); }
.sc-closure.tone-gold { --tb: var(--gold-soft); --tf: var(--amber); }
.sc-closure.tone-violet { --tb: var(--violet-soft); --tf: var(--violet); }
.sc-closure.tone-teal { --tb: var(--teal-soft); --tf: var(--teal-strong); }
.sc-closure.tone-blue { --tb: var(--blue-soft); --tf: var(--blue); }
.sc-closure.tone-coral { --tb: var(--coral-soft); --tf: var(--coral-strong); }
.sc-closure-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--tf); }
.sc-closure b { display: block; font-size: var(--fs-md); line-height: 1.3; }
.sc-closure small { display: block; color: var(--text-2); font-size: var(--fs-sm); margin-top: 1px; }
.sc-closure.full .sc-closure-ic { background: var(--tf); color: var(--surface); }
.sc-closure .chev { color: var(--faint); }
.sc-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sc-stat { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--text-2); }
.sc-stat .ico { color: var(--teal-strong); }
.sc-stat.warn { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.sc-stat.warn .ico { color: var(--amber); }

/* ---------- Class View ---------- */
.sc-classes { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .sc-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .sc-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-class { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 14px 8px 18px; position: relative; overflow: hidden; min-width: 0; }
.sc-class::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.sc-class.is-off { opacity: 1; background: var(--surface-2); }
.sc-class.is-off::after { content: ""; position: absolute; inset: 0; background: var(--hatch); pointer-events: none; }
.sc-class.is-off .sc-class-name b { text-decoration: line-through; }
.sc-class-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "time pills" "name name"; gap: 2px 8px; align-items: center; }
.sc-class-time { grid-area: time; font-size: var(--fs-sm); font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-class-name { grid-area: name; min-width: 0; }
.sc-class-name b { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; }
.sc-class-name small { margin-left: 8px; color: var(--muted); font-size: var(--fs-sm); font-weight: 650; }
.sc-class-pills { grid-area: pills; display: flex; gap: 6px; }
.sc-inst { margin-top: 8px; }
.sc-inst-row { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 42px; padding: 6px 2px; border-top: 1px solid var(--line); text-align: left; color: var(--text); position: relative; z-index: 1; }
.sc-inst-row:active { background: var(--surface-3); }
.sc-inst-name { flex: 1 1 110px; min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-inst-time { font-size: var(--fs-xs); color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-float .row-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-float .chev, .sc-crow .chev, .row .chev { color: var(--faint); }

/* ---------- Instructor View ---------- */
.sc-people { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .sc-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-people .card + .card { margin-top: 0; }
.sc-person { padding: 14px; min-width: 0; }
.sc-person-head { display: flex; align-items: center; gap: 12px; }
.sc-person-head b { display: block; font-size: var(--fs-md); }
.sc-person-head small { display: block; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.sc-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c, #1B2159); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45);
  font-family: var(--font-display); font-weight: 800; font-size: 15px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.sc-avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.sc-avatar.lg { width: 60px; height: 60px; font-size: 21px; }
.sc-person-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: var(--fs-sm); font-weight: 700; }
.sc-workchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sc-workchip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2);
  font-size: var(--fs-xs); font-weight: 750; font-variant-numeric: tabular-nums; }
.sc-workchip .pill { height: 18px; font-size: 10.5px; }
.sc-workchip.is-off { background: var(--hatch), var(--surface-3); text-decoration: line-through; }
.sc-duties { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-duty { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 10px 9px 12px; border-radius: 12px; text-align: left; color: var(--text);
  background: color-mix(in srgb, var(--c) 9%, var(--surface)); box-shadow: inset 4px 0 0 var(--c); }
.sc-duty:active { filter: brightness(.97); }
.sc-duty.has-ov { box-shadow: inset 4px 0 0 var(--c), inset 0 0 0 1.5px var(--gold); }
.sc-duty.is-off { background: var(--hatch), var(--surface-2); }
.sc-duty-time { flex: none; width: 96px; font-size: var(--fs-xs); font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sc-duty-main { flex: 1; min-width: 120px; }
.sc-duty-main b { display: block; font-size: var(--fs-sm); line-height: 1.3; }
.sc-duty-main small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.sc-duty-main small:empty { display: none; }
.sc-duty-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.sc-noduty { margin: 10px 2px 0; }
.sc-off { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.sc-offname { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }

/* ---------- Warnings ---------- */
.sc-warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: var(--fs-sm); font-weight: 650; }
.sc-warn p, .sc-warnlist p { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.sc-warn p + p, .sc-warnlist p + p { margin-top: 6px; }
.sc-warn .ico, .sc-warnlist .ico { margin-top: 2px; flex: none; }
.sc-warnlist { text-align: left; font-size: var(--fs-sm); white-space: normal; }

/* ---------- Timeline ---------- */
.sc-tl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.sc-tl { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
.sc-tl-inner { min-width: calc(var(--sc-name-w) + var(--h) * var(--sc-px)); }
.sc-tl-axis, .sc-tl-lane { display: grid; grid-template-columns: var(--sc-name-w) minmax(0, 1fr); }
.sc-tl-lane { border-top: 1px solid var(--line); }
.sc-tl-name { position: sticky; left: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border-right: 1px solid var(--line); min-width: 0; }
.sc-tl-name span { min-width: 0; }
.sc-tl-name b { display: block; font-size: var(--fs-xs); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tl-name small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tl-corner { font-size: 11px; font-weight: 800; color: var(--muted); }
.sc-tl-track { position: relative; min-height: calc(var(--rows, 1) * 40px + 14px);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--h)) 100%; }
.sc-tl-axis .sc-tl-track { min-height: 30px; background: none; }
.sc-tl-hour { position: absolute; top: 8px; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.sc-tl-hour:first-child { transform: translateX(4px); }
.sc-tl-hour:last-child { transform: translateX(calc(-100% - 4px)); }
.sc-tl-work { position: absolute; top: 3px; bottom: 3px; border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.sc-tl-work.is-off { background: var(--hatch); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 1; }
.sc-tl-blk { position: absolute; top: calc(7px + var(--k) * 40px); height: 34px; z-index: 1; min-width: 6px; padding: 3px 7px; border-radius: 8px; text-align: left; overflow: hidden;
  background: color-mix(in srgb, var(--c) 24%, var(--surface)); box-shadow: inset 3px 0 0 var(--c); color: var(--text); }
.sc-tl-blk b { display: block; font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tl-blk small { display: block; font-size: 10.5px; line-height: 1.2; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tl-blk.is-float { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.sc-tl-blk.has-ov { box-shadow: inset 3px 0 0 var(--c), 0 0 0 2px var(--gold); z-index: 2; }
.sc-tl-blk.is-off { opacity: 1; background: var(--hatch), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.sc-tl-blk.is-off b, .sc-tl-blk.is-off small { color: var(--muted); }
.sc-tl-closed { position: absolute; top: 0; bottom: 0; background: var(--hatch); border-left: 1px dashed var(--line-2); pointer-events: none; }
.sc-tl-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--teal); z-index: 2; pointer-events: none; }
.sc-tl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sc-tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sc-tl-legend i { width: 18px; height: 12px; border-radius: 4px; }
.lg-work { background: color-mix(in srgb, var(--teal) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 40%, transparent); }
.lg-blk { background: color-mix(in srgb, var(--violet) 24%, var(--surface)); box-shadow: inset 3px 0 0 var(--violet); }
.lg-float { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.lg-ov { box-shadow: 0 0 0 2px var(--gold); background: var(--surface); }
.lg-closed { background: var(--hatch), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (min-width: 900px) { :root { --sc-name-w: 168px; --sc-px: 120px; } .sc-tl-name b { font-size: var(--fs-sm); } }

/* ---------- Changes + add ---------- */
.sc-chg .row-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-chg .btn, .sc-src .btn { flex: none; }
@media (max-width: 420px) { .sc-chg .btn span { display: none; } .sc-chg .btn { width: 38px; padding: 0; } }
.sc-addbar { display: flex; justify-content: center; margin: 22px 0 6px; }

/* ---------- Week ---------- */
.sc-wk-grid-wrap { display: none; }
@media (min-width: 900px) { .sc-wk-grid-wrap { display: block; overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); } .sc-wk-list { display: none; } }
.sc-wk-grid { display: grid; grid-template-columns: 150px repeat(7, minmax(108px, 1fr)); min-width: 920px; }
.sc-wk-corner, .sc-wk-dayhead { position: sticky; top: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.sc-wk-corner { padding: 10px 12px; font-size: var(--fs-xs); font-weight: 800; color: var(--muted); display: flex; align-items: flex-end; }
.sc-wk-dayhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 8px 10px; text-align: left; border-left: 1px solid var(--line); color: var(--text); }
.sc-wk-dayhead b { font-size: var(--fs-xs); color: var(--muted); font-weight: 800; }
.sc-wk-dayhead span { font-family: var(--font-display); font-weight: 750; font-size: var(--fs-lg); }
.sc-wk-dayhead.is-today span { color: var(--teal-strong); }
.sc-wk-dayhead:hover { background: var(--surface-3); }
.sc-wk-cl { flex-basis: 100%; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--amber); }
.sc-wk-staff { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: var(--fs-sm); min-width: 0; }
.sc-wk-staff span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-wk-cell { padding: 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; min-height: 62px; display: flex; flex-direction: column; gap: 3px; }
.sc-wk-cell.is-closed { background: var(--hatch); }
.sc-wk-hours { font-size: 11px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-wk-none { color: var(--faint); font-size: var(--fs-xs); padding: 2px; }
.sc-wk-closed { font-size: 11px; font-weight: 800; color: var(--text-2); }
.sc-wk-offn { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.sc-wk-blk { display: block; width: 100%; text-align: left; padding: 3px 6px; border-radius: 6px; font-size: 11.5px; font-weight: 650; line-height: 1.3; color: var(--text);
  background: color-mix(in srgb, var(--c) 16%, var(--surface)); box-shadow: inset 3px 0 0 var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-wk-blk span { font-weight: 800; margin-right: 4px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.sc-wk-blk.is-float { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.sc-wk-blk.has-ov { box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1.5px color-mix(in srgb, var(--amber) 70%, transparent); }
.sc-wk-blk.is-off { background: var(--hatch), var(--surface-2); text-decoration: line-through; opacity: .7; }
.sc-wk-list { display: flex; flex-direction: column; gap: 10px; }
.sc-wk-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.sc-wk-day summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.sc-wk-day summary::-webkit-details-marker { display: none; }
.sc-wk-day summary b { display: block; font-size: var(--fs-md); }
.sc-wk-day summary small { display: block; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-wk-chev { color: var(--faint); transition: transform .2s; }
.sc-wk-day[open] .sc-wk-chev { transform: rotate(180deg); }
.sc-wk-date { width: 44px; height: 46px; flex: none; border-radius: 13px; background: var(--surface-3); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.sc-wk-date b { font-size: 10.5px !important; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sc-wk-date span { font-family: var(--font-display); font-weight: 750; font-size: 19px; color: var(--text); }
.is-today .sc-wk-date { background: var(--teal-soft); }
.is-today .sc-wk-date span, .is-today .sc-wk-date b { color: var(--teal-strong); }
.sc-wk-body { padding: 0 14px 14px; }
.sc-wk-person { padding: 10px 0; border-top: 1px solid var(--line); }
.sc-wk-pname { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.sc-wk-pname b { font-size: var(--fs-sm); }
.sc-wk-pname small { color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.sc-wk-pblks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sc-wk-pblks .sc-wk-blk { width: auto; max-width: 100%; }
.sc-wk-empty { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.sc-wk-open { margin-top: 8px; }

/* ---------- My Schedule ---------- */
.sc-my-list { display: flex; flex-direction: column; gap: 10px; }
.sc-my-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; }
.sc-my-day.is-today { border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.sc-my-dayhead { display: flex; align-items: center; gap: 12px; }
.sc-my-dayhead b { display: block; font-size: var(--fs-md); }
.sc-my-dayhead small { display: block; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.sc-month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px; margin-bottom: 12px; }
.sc-month-dow, .sc-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sc-month-dow span { text-align: center; font-size: 11px; font-weight: 800; color: var(--faint); padding: 4px 0; }
.sc-mcell { min-height: 58px; border-radius: 12px; padding: 5px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: var(--surface-2); color: var(--text); min-width: 0; }
.sc-mcell.is-out { opacity: .45; }
.sc-mcell.is-closed { background: var(--hatch), var(--surface-2); }
.sc-mcell.is-sel { box-shadow: inset 0 0 0 2px var(--ink); }
:root[data-theme="dark"] .sc-mcell.is-sel { box-shadow: inset 0 0 0 2px var(--teal); }
.sc-mnum { font-weight: 800; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; }
.sc-mcell.is-today .sc-mnum { background: var(--teal); color: var(--on-teal); }
.sc-mdots { display: flex; gap: 3px; flex-wrap: wrap; }
.sc-mdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sc-mhrs { font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (min-width: 900px) { .sc-mcell { min-height: 86px; padding: 8px; } }

/* ---------- Item detail sheet ---------- */
.sc-detail-head { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--c) 11%, var(--surface)); box-shadow: inset 4px 0 0 var(--c); }
.sc-detail-time { font-family: var(--font-display); font-weight: 750; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc-detail-time small { display: block; font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 650; color: var(--muted); margin-top: 4px; }
.sc-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.sc-detail-sub { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.sc-detail-off { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; font-size: var(--fs-sm); color: var(--amber); }
.sc-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); font-size: var(--fs-sm); color: var(--text-2); }
.sc-note .ico { margin-top: 2px; color: var(--teal-strong); }
.sc-src .row-sub { overflow-wrap: anywhere; }
.sc-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- Forms in sheets ---------- */
.sc-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.sc-pick em { font-style: normal; color: var(--faint); }
.sc-pick .ico { color: var(--faint); flex: none; }
.sc-seg { margin-bottom: 2px; }
.sc-seg button { padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; }
.sc-swatch.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); transform: scale(1.04); }
/* 11/21/2026: custom color button + color wheel */
.sc-swatch-custom { position: relative; background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.sc-swatch-custom i { position: absolute; inset: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.sc-swatch-custom.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text-2); }
.sc-cw { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.sc-cw[hidden] { display: none; }
.sc-cw-wheel { width: 200px; height: 200px; max-width: 100%; border-radius: 50%; touch-action: none; cursor: crosshair; flex: none; }
.sc-cw-side { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sc-cw-prev { display: flex; align-items: center; gap: 12px; }
.sc-cw-chip { width: 52px; height: 52px; border-radius: 14px; flex: none; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.sc-cw-hexl { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sc-cw-hexl span, .sc-cw-l span { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.sc-cw-hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.sc-cw-l { display: flex; flex-direction: column; gap: 6px; }
.sc-cw-l input[type=range] { width: 100%; accent-color: var(--ink); }
.sc-cw-hint { color: var(--text-2); line-height: 1.4; }
.sc-multi { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-multi .chip { height: 34px; padding: 0 12px; }
.sc-multi .chip .sc-dot { width: 8px; height: 8px; }
.sc-hint-top { margin: -6px 4px 10px; }
.sc-apply { padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.sc-apply .field-label { margin-bottom: 8px; }
.sc-apply [data-apply-from] { margin-top: 12px; }
.sc-apply [data-apply-from] .field { margin-bottom: 0; }
.sc-sheet-danger { margin-top: 18px; }
.sc-sheet-danger .field-hint { text-align: center; }
.sc-userlist { margin-top: 10px; max-height: 46vh; overflow-y: auto; }
.sc-user { padding: 10px 6px; }
.sc-user b, .sc-user small, .sc-picked b, .sc-picked small { display: block; }
.sc-user small, .sc-picked small { font-weight: 600; font-size: var(--fs-xs); color: var(--muted); }
.sc-user.is-on { opacity: .55; }
.sc-picked { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--teal-soft); margin-bottom: 14px; }
.sc-picked > .ico { color: var(--teal-strong); }
.sc-pad { padding: 12px 6px; margin: 0; }

/* ---------- Setup + staff template ---------- */
.sc-tabs { margin-bottom: 12px; }
.sc-listtools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.sc-filter { margin-top: 0; }
@media (min-width: 900px) { .sc-listtools { flex-direction: row; align-items: center; } .sc-listtools .search-bar { flex: 0 1 380px; } .sc-listtools .chips { margin: 0; padding: 0; } }
.sc-swatch-row { width: 36px; height: 36px; flex: none; border-radius: 11px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); box-shadow: inset 0 0 0 2px var(--c); }
.sc-staffcard { display: flex; align-items: center; gap: 14px; }
.sc-staffcard .grow > b, .sc-staffcard .grow > small { display: block; }
.sc-staffname { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.2; }
.sc-staffcard small { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; line-height: 1.4; }
.sc-staffcard .grow > small:first-child { color: var(--text); font-weight: 750; font-size: var(--fs-md); }
.sc-staffpills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sc-staffcard > .btn { align-self: flex-start; flex: none; }
@media (max-width: 420px) { .sc-staffcard > .btn span { display: none; } .sc-staffcard > .btn { width: 38px; padding: 0; } .sc-staffcard .sc-avatar.lg { width: 48px; height: 48px; font-size: 17px; } }
.section-head .btn-sm { flex: none; }
@media (max-width: 420px) { .section-head .btn-sm span { display: none; } .section-head .btn-sm { width: 38px; padding: 0; } }
.sc-tpl { padding: 2px 14px; }
.sc-tpl-day { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 8px 0; }
.sc-tpl-day + .sc-tpl-day { border-top: 1px solid var(--line); }
.sc-tpl-wd { padding-top: 10px; font-size: var(--fs-xs); font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sc-tpl-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 0; text-align: left; color: var(--text); min-width: 0; }
.sc-tpl-row + .sc-tpl-row { border-top: 1px dashed var(--line); }
.sc-tpl-row:active { background: var(--surface-3); }
.sc-tpl-time { flex: none; min-width: 112px; font-weight: 800; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.sc-tpl-sub { flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--muted); }
.sc-tpl-bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); flex: none; }
.sc-tpl-main { flex: 1; min-width: 0; }
.sc-tpl-main b { display: block; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tpl-main small { display: block; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-tpl-time { white-space: nowrap; }
.sc-tpl-t { font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .sc-tpl-time { min-width: 0; } .sc-tpl-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.sc-tpl .empty, .section > .empty { padding: 26px 16px; }

/* ---------- Closures ---------- */
.sc-crow { align-items: flex-start; }
.sc-crow .row-icon { margin-top: 2px; }
.sc-crow-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sc-crow.is-off .row-title { text-decoration: line-through; }
.sc-cl-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sc-kv { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.sc-kv dd { text-align: left; }
@media (max-width: 520px) { .sc-kv { grid-template-columns: 1fr; gap: 2px; } .sc-kv dd { margin-bottom: 8px; } }
.sc-impact { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-strong); font-size: var(--fs-sm); font-weight: 700; }
.sc-impact .ico { margin-top: 2px; flex: none; }
.sc-datechips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-datechip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--surface-3); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.sc-datechip small { font-weight: 650; color: var(--muted); }
.sc-datechip button { width: 22px; height: 22px; margin-right: -6px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--surface); }
.sc-typegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .sc-typegrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sc-typebtn { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 10px; border-radius: 14px; text-align: left; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); line-height: 1.2; }
.sc-typebtn .ico { width: 18px; height: 18px; color: var(--teal-strong); flex: none; }
.sc-typebtn.on { background: var(--ink); color: #fff; box-shadow: none; }
.sc-typebtn.on .ico { color: #fff; }
:root[data-theme="dark"] .sc-typebtn.on { background: var(--teal); color: var(--on-teal); }
:root[data-theme="dark"] .sc-typebtn.on .ico { color: var(--on-teal); }
.sc-cform .btn-row .btn { flex: 0 1 auto; }

/* ---- Import from the old Staff Calendar ---- */
.sc-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sc-imp-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .sc-imp-tiles { grid-template-columns: repeat(4, 1fr); } }
.sc-imp-tiles .tile { padding: 14px; min-height: 0; }
.sc-imp-tiles .t-value { font-size: var(--fs-2xl, 28px); margin-top: 4px; display: block; }
.sc-imp-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--teal-soft); color: var(--ink); margin-bottom: 14px; font-size: var(--fs-sm); }
.sc-imp-note .ico { color: var(--teal-strong); flex: none; }
.sc-imp-group { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.sc-imp-group > summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; list-style: none; font-size: var(--fs-md, 15px); }
.sc-imp-group > summary::-webkit-details-marker { display: none; }
.sc-imp-group > summary b { flex: 1; }
.sc-imp-group > summary .chev { transition: transform .2s; color: var(--muted); }
.sc-imp-group[open] > summary .chev { transform: rotate(180deg); }
.sc-imp-list { border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; max-height: 52vh; overflow-y: auto; }
.sc-imp-list .row { align-items: flex-start; }
.sc-imp-list .row-sub { display: block; white-space: normal; }
.sc-imp .text-amber { color: var(--amber); font-weight: 700; }
.sc-imp-off { margin-top: 2px; }
.sc-imp-foot { margin: 6px 4px 0; }

/* ---- Time Off & Call Offs (sched_requests) ---- */
.rq-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.rq-badge.is-urgent, .sc-reqbtn .rq-badge.is-urgent { background: var(--coral); }
.sc-reqbtn .rq-badge, .sc-reqbtn .rq-badge.is-urgent { background: var(--coral-strong, var(--coral)); color: #fff; }   /* owner 11/15: Coverage / Requests / Open Shifts counts in red (the teal was hard to see) */
.rq-types { margin: 10px 0 4px; }
.rq-list .rq-row { align-items: center; }
.rq-row.is-urgent { box-shadow: inset 3px 0 0 var(--coral); }
.rq-right { display: flex; align-items: center; gap: 6px; flex: none; }
.rq-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-strong); flex: none; }
.rq-ic.lg { width: 46px; height: 46px; border-radius: 14px; }
.rq-ic.t-call_off, .rq-ic.t-late_arrival, .rq-ic.t-early_departure { background: var(--coral-soft, #FBE7E3); color: var(--coral); }
.rq-mode { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin: 12px 0 4px; border-radius: 14px; border: 1px dashed var(--line-strong, var(--line)); background: var(--surface); color: var(--ink); cursor: pointer; }
.rq-mode.test { background: var(--amber-soft); border-color: transparent; }
.rq-mode b, .rq-mode small { display: block; }
.rq-mode small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; margin-top: 2px; }
.rq-mode .chev { color: var(--muted); }
.rq-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rq-top b, .rq-top small { display: block; }
.rq-top b { font-size: var(--fs-lg, 18px); }
.rq-top small { color: var(--muted); font-weight: 600; }
.rq-note-urgent { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--coral-soft, #FBE7E3); color: var(--ink); margin-bottom: 14px; font-size: var(--fs-sm); }
.rq-note-urgent .ico { color: var(--coral); flex: none; margin-top: 1px; }
.rq-facts { display: grid; gap: 8px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.rq-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.rq-facts dt { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.rq-facts dd { margin: 0; font-weight: 600; }
.rq-facts .pre { white-space: pre-wrap; font-weight: 500; }
.rq-segs { display: grid; gap: 10px; margin-bottom: 16px; }
.rq-seg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: grid; gap: 8px; }
.rq-seg.is-free { background: var(--surface-2); }
.rq-seg-head { display: flex; align-items: center; gap: 10px; }
.rq-seg-head b, .rq-seg-head small { display: block; }
.rq-seg-head small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.rq-seg-impact { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-sm); }
.rq-seg-impact em { font-style: normal; color: var(--muted); }
.rq-cls { padding-left: 8px; border-left: 3px solid var(--c); }
.rq-seg .sc-seg { margin-top: 2px; }
.rq-hist { margin-top: 8px; font-size: var(--fs-sm); }
.rq-hist summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-weight: 700; }
.rq-hist ol { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.rq-foot { display: flex; gap: 10px; width: 100%; }
.rq-foot .btn { flex: 1; }
.rq-form { display: grid; gap: 14px; }
.rq-form .field { margin: 0; }
.rq-reasons { flex-wrap: wrap; }
.rq-partial { margin-top: 10px; }
.rq-alerts { display: grid; gap: 12px; }
.rq-modes { display: grid; gap: 10px; }
.rq-modeopt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.rq-modeopt b, .rq-modeopt small { display: block; }
.rq-modeopt small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; margin-top: 3px; line-height: 1.35; }
.rq-modeopt > .ico { color: var(--teal-strong); flex: none; }
.rq-modeopt.on { border-color: var(--teal); background: var(--teal-soft); }
.rq-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong, #C9CCDA); flex: none; }
.rq-modeopt.on .rq-radio { border: 6px solid var(--teal); }
.rq-log .row { align-items: center; }
.rq-seg-impact > span { display: inline-flex; align-items: center; gap: 6px; }
.rq-seg-impact .ico { flex: none; }
.rq-detail .textarea, .rq-form .textarea { min-height: 72px; }
.rq-form [data-k] { display: grid; gap: 14px; }
.rq-form [data-k][hidden] { display: none; }
.rq-foot .btn { min-width: 0; }
@media (max-width: 600px) { .rq-foot [data-cancel] { flex: 0 0 52px; padding-left: 0; padding-right: 0; } .rq-foot [data-cancel] span { display: none; } }

/* ---- Coverage (sched_coverage) + Open Shifts (sched_shifts) ---- */
.cv-filters { margin: 4px 0 12px; flex-wrap: wrap; }
.cv-filters .chip .rq-badge { margin-left: 6px; }
.cv-day { margin-bottom: 14px; }
.cv-day .list-label { margin-top: 6px; }
.cv-gap { align-items: center; box-shadow: inset 4px 0 0 var(--c); }
.cv-gap.st-needs { background: color-mix(in srgb, var(--coral) 6%, var(--surface)); }
.cv-time { display: grid; place-items: center; min-width: 58px; padding: 4px 6px; border-radius: 10px; background: var(--surface-2); text-align: center; flex: none; }
.cv-time b { font-size: var(--fs-sm); line-height: 1.1; }
.cv-time small { font-size: 11px; color: var(--muted); font-weight: 700; }
.cv-gap .row-sub .ico { vertical-align: -2px; }
.cv-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 4px 0 0 var(--c); margin-bottom: 10px; }
.cv-head-main { flex: 1; min-width: 0; }
.cv-head-main b, .cv-head-main small { display: block; }
.cv-head-main small { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.cv-out { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--coral-soft, #FBE7E3); font-size: var(--fs-sm); margin-bottom: 14px; }
.cv-out > .ico { color: var(--coral); flex: none; }
.cv-out > span { flex: 1; }
.cv-fit { margin-top: 12px; }
.cv-cands { margin-bottom: 4px; }
.cv-cand { display: flex; align-items: center; gap: 12px; }
.cv-cand b, .cv-cand small { display: block; }
.cv-cand small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.cv-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong, #C9CCDA); flex: none; }
.cv-cand.is-on { background: var(--teal-soft); }
.cv-cand.is-on .cv-radio { border: 6px solid var(--teal); }
.cv [data-how] { margin: 4px 0 12px; }
.sheet .sc-seg[data-seg="how"] { margin-bottom: 8px; }
.cv-result { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cv-result > .ico { color: var(--teal-strong); flex: none; margin-top: 2px; }
.cv-result b, .cv-result small { display: block; }
.cv-result small { color: var(--muted); font-weight: 600; margin-top: 2px; }
.cv-more { margin-top: 14px; }
.cv-more summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--teal-strong); }
.cv-shift { align-items: center; box-shadow: inset 4px 0 0 var(--c); }
.cv-shift-act { display: flex; align-items: center; gap: 8px; flex: none; }
.rq-cover { margin: 0 0 16px; width: 100%; }
@media (max-width: 600px) { .cv-shift { flex-wrap: wrap; } .cv-shift-act { width: 100%; justify-content: flex-end; } }
.cv-conflict { display: flex !important; align-items: flex-start; gap: 6px; white-space: normal; } .cv-conflict .ico { flex: none; margin-top: 2px; }

/* ---- Daily adjustments: Day Check + Combine Classes ---- */
.dc { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); margin: 0 0 12px; }
.dc > summary, .dc.dc-ok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; list-style: none; cursor: pointer; }
.dc.dc-ok { cursor: default; background: var(--teal-soft); border-color: transparent; }
.dc > summary::-webkit-details-marker { display: none; }
.dc b, .dc small { display: block; }
.dc small { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); margin-top: 1px; }
.dc > summary > .ico:first-child, .dc.dc-ok > .ico { color: var(--teal-strong); flex: none; }
.dc.has-urgent { border-color: color-mix(in srgb, var(--coral) 45%, var(--line)); }
.dc.has-urgent > summary > .ico:first-child { color: var(--coral); }
.dc > summary .chev { color: var(--muted); transition: transform .2s; }
.dc[open] > summary .chev { transform: rotate(180deg); }
.dc-list { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; gap: 4px; }
.dc-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 8px 8px; border-radius: 10px; border: 0; background: none; color: var(--ink); font-size: var(--fs-sm); cursor: pointer; }
.dc-item:hover { background: var(--surface-2); }
.dc-item .chev { color: var(--muted); margin-top: 3px; }
.dc-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex: none; }
.dc-ic.coral { background: var(--coral-soft, #FBE7E3); color: var(--coral); }
.dc-ic.amber { background: var(--amber-soft); color: var(--amber); }
.dc-ic.blue { background: var(--teal-soft); color: var(--teal-strong); }
.dc-more { margin: 0 16px 12px; }
/* Owner 11/15: Day Check pops - same red as the Sign Out button (btn-danger: coral-soft / coral-strong). "All Set" stays teal. */
.dc:not(.dc-ok) { background: var(--coral-soft); border-color: transparent; }
.dc:not(.dc-ok) > summary b, .dc:not(.dc-ok) > summary > .ico:first-child, .dc:not(.dc-ok) > summary .chev { color: var(--coral-strong); }
.dc:not(.dc-ok) > summary small { color: var(--coral-strong); opacity: .8; }
.dc:not(.dc-ok) .dc-item:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.dc:not(.dc-ok) .dc-ic { background: var(--surface); }
.dc:not(.dc-ok) .dc-more { color: var(--coral-strong); opacity: .85; }
.sc-addbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cb-s { display: flex; align-items: center; gap: 12px; box-shadow: inset 4px 0 0 var(--c); }
.cb-s b, .cb-s small, .cb-c b, .cb-c small { display: block; }
.cb-s small, .cb-c small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.cb-s[disabled] { opacity: .45; }
.cb-s.is-on { background: var(--teal-soft); }
.cb-num { min-width: 74px; font-size: 11px; font-weight: 800; color: var(--teal-strong); text-transform: uppercase; letter-spacing: .03em; }
.cb-s:not(.is-on) .cb-num { min-width: 0; }
.cb-c { display: flex; align-items: center; gap: 12px; }
.cb .field { margin-top: 12px; }
.cb-preview { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: var(--fs-sm); }
.cb-preview > .ico { color: var(--teal-strong); flex: none; margin-top: 2px; }
.cb-hint { display: block; margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; }

/* ===================== S5 Reports (#/sched_reports) ===================== */
.rp-types { margin-bottom: 10px; }
.rp-types button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.rp-controls { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.rp-range { display: flex; align-items: center; gap: 6px; }
.rp-range .sc-datebtn { flex-direction: column; gap: 0; height: 48px; }
.rp-range .sc-datebtn small { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.rp-dash { color: var(--faint); }
.rp-presets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
.rp-presets::-webkit-scrollbar { display: none; }
.rp-presets .chip { flex: none; }
.rp-opts { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.rp-staff { flex: 1 1 220px; margin: 0; }
.rp-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); min-height: 40px; cursor: pointer; }
.rp-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.rp-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.rp-actions .btn { flex: 1; }
.rp-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.rp-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.rp-brand { display: flex; flex-direction: column; }
.rp-brand b { font-family: var(--font-display); font-size: var(--fs-md); color: var(--ink); }
.rp-brand span { font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; }
.rp-meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rp-meta b { font-size: var(--fs-sm); color: var(--text); }
.rp-meta span { font-size: var(--fs-xs); color: var(--muted); }
.rp-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 8px; }
.rp-stats b { color: var(--text); }
.rp-closures { font-size: var(--fs-sm); color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.rp-h { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.rp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -14px; padding: 0 14px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.rp-table th { text-align: left; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: bottom; }
.rp-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.rp-table tfoot td { border-bottom: 0; border-top: 2px solid var(--line-2); font-weight: 700; }
.rp-table .num { text-align: right; white-space: nowrap; }
.rp-table td.num small, .rp-wk-cell small, .rp-table tfoot small { display: block; font-weight: 500; }
.rp-table tr.is-off td { color: var(--muted); }
.rp-nowrap { white-space: nowrap; }
.rp-name { white-space: nowrap; font-weight: 600; }
.rp-name .sc-dot { margin-right: 6px; vertical-align: 1px; }
.rp-tag { display: inline-block; margin-left: 6px; font-size: 11px; vertical-align: 1px; height: auto; min-height: 0; line-height: 1.3; padding-top: 2px; padding-bottom: 2px; }
td.rp-nowrap .rp-tag { margin: 2px 0 0; display: table; }
.rp-cls { display: flex; gap: 6px; align-items: baseline; line-height: 1.35; padding: 1px 0; }
.rp-cls .sc-dot { flex: none; transform: translateY(-1px); }
.rp-cls b { font-weight: 600; white-space: nowrap; }
.rp-cls em { font-style: normal; color: var(--muted); font-size: var(--fs-xs); }
.rp-cls.is-off { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.rp-cls.is-off em { text-decoration: none; }
.rp-dayclose { font-size: 11px; color: var(--amber); font-weight: 600; white-space: normal; }
.rp-none { padding: 10px 0; }
.rp-foot { margin-top: 10px; }
.rp-week { min-width: 860px; table-layout: fixed; }
.rp-week th.rp-stick, .rp-week td.rp-stick { width: 128px; }
.rp-week th.num, .rp-week td.num { width: 66px; }
.rp-wk-cell .rp-tag { white-space: normal; max-width: 100%; }
.rp-stick { position: sticky; left: -14px; background: var(--surface); z-index: 1; }
.rp-wk-cell { font-size: var(--fs-xs); line-height: 1.35; }
.rp-wk-cell b { display: block; font-weight: 700; color: var(--text); }
.rp-wk-cell small { color: var(--text-2); }
.rp-wk-cell .rp-tag { margin: 2px 0 0; }
.rp-wk-cell.st-approved_off, .rp-wk-cell.st-called_off { background: var(--amber-soft); }
.rp-wk-cell.st-closed { background: var(--surface-2); }
.rp-person + .rp-person { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.rp-person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.rp-person-head .rp-name b { font-size: var(--fs-md); }
.rp-person-tot { font-size: var(--fs-sm); color: var(--text-2); }
.rp-person-tot b { color: var(--text); }
.rp-pref { cursor: pointer; }
.rp-pref > .ico { color: var(--teal-strong); flex: none; }
@media (max-width: 520px) {
  .rp-actions .btn span { font-size: var(--fs-sm); }
  .rp-types button span { font-size: 13px; }
  .rp-sheet { padding: 12px; border-radius: 14px; }
  .rp-scroll { margin: 0 -12px; padding: 0 12px; }
  .rp-meta { align-items: flex-start; text-align: left; }
}

/* Print / Save as PDF: only #rp-print (a copy of the sheet) prints. */
#rp-print { display: none; }
@media print {
  body.rp-printing > *:not(#rp-print) { display: none !important; }
  body.rp-printing { background: #fff !important; }
  body.rp-printing #rp-print { display: block !important; }
  #rp-print { color: #111; font-size: 9.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #rp-print .rp-sheet { border: 0; padding: 0; background: #fff; border-radius: 0; }
  #rp-print .rp-scroll { overflow: visible; margin: 0; padding: 0; }
  #rp-print .rp-week { min-width: 0; }
  #rp-print .rp-week th.rp-stick, #rp-print .rp-week td.rp-stick { width: 112px; }
  #rp-print .rp-tag { border-radius: 4px; padding: 1px 4px; line-height: 1.25; }
  #rp-print .rp-wk-cell .rp-tag { display: block; }
  #rp-print .rp-week th.num, #rp-print .rp-week td.num { width: 60px; }
  #rp-print .rp-stick { position: static; }
  #rp-print .rp-table { font-size: 9pt; }
  #rp-print .rp-table td, #rp-print .rp-table th { padding: 4px 5px; border-color: #ccc; color: #111; }
  #rp-print .rp-table thead { display: table-header-group; }
  #rp-print .rp-table tr { break-inside: avoid; }
  #rp-print .muted, #rp-print .rp-cls em, #rp-print .rp-meta span { color: #555 !important; }
  #rp-print .rp-head { border-bottom-color: #1B2159; }
  #rp-print .rp-brand b { color: #1B2159; }
  #rp-print .rp-person { break-inside: auto; }
  #rp-print .rp-individual .rp-person + .rp-person { break-before: page; border-top: 0; margin-top: 0; padding-top: 0; }
  #rp-print .pill { border: 1px solid #bbb; background: #fff !important; color: #333 !important; }
  #rp-print .rp-wk-cell.st-approved_off, #rp-print .rp-wk-cell.st-called_off { background: #FFF4DB !important; }
  #rp-print .rp-wk-cell.st-closed { background: #F1F2F6 !important; }
  #rp-print .rp-closures { background: #F1F2F6; }
}
/* Phones: report tables become stacked rows (print keeps real tables). */
@media screen and (max-width: 640px) {
  .rp-stack thead { display: none; }
  .rp-stack, .rp-stack tbody, .rp-stack tfoot { display: block; }
  .rp-stack tr { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rp-stack td { border: 0; padding: 0; }
  .rp-stack td:first-child { grid-row: 1; grid-column: 1; }
  .rp-stack td.num { grid-row: 1; grid-column: 2; font-weight: 700; }
  .rp-stack td:not(:first-child):not(.num) { grid-column: 1 / -1; }
  .rp-stack td.rp-nowrap { white-space: normal; }
  .rp-stack td.rp-nowrap .rp-tag { display: inline-block; margin: 0 0 0 6px; }
  .rp-stack tfoot tr { border-bottom: 0; border-top: 2px solid var(--line-2); }
  .rp-stack .rp-cls { padding: 2px 0; }
  /* hours: name on top, the numbers in a 3-up grid with labels */
  .rp-hours.rp-stack tr { grid-template-columns: repeat(3, 1fr); }
  .rp-hours.rp-stack td:first-child { grid-column: 1 / -1; }
  .rp-hours.rp-stack td.num { grid-row: auto; grid-column: auto; text-align: left; font-weight: 500; }
  .rp-hours.rp-stack td.num::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
  .rp-hours.rp-stack td.num small { display: inline; margin-left: 4px; }
}
.rp-weeklist { display: none; }
.rp-wl + .rp-wl { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.rp-wl-day { display: flex; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.rp-wl-d { flex: none; width: 64px; font-weight: 700; color: var(--text); }
.rp-wl-d small { color: var(--muted); font-weight: 500; }
.rp-wl-x { min-width: 0; display: flex; flex-direction: column; }
.rp-wl-x small { color: var(--text-2); font-size: var(--fs-xs); }
.rp-wl-x .rp-tag { margin: 2px 0 0; align-self: flex-start; }
@media screen and (max-width: 640px) {
  .rp-weekly .rp-scroll { display: none; }
  .rp-weeklist { display: block; }
}
.rp-note { display: flex; gap: 6px; align-items: flex-start; } .rp-note .ico { flex: none; margin-top: 2px; }
.rp-controls .sc-datebar { flex: none; width: 100%; max-width: 560px; }
.rp-range { max-width: 560px; }
@media (min-width: 900px) {
  .rp-types { max-width: 640px; }
  .rp-actions { justify-content: flex-start; }
  .rp-actions .btn { flex: 0 0 auto; min-width: 200px; }
}
.rp-staff { max-width: 420px; }
/* Class Shifts: open seat "Every Week" option on the Coverage sheet */
.cv-every { display: flex; gap: 10px; align-items: flex-start; margin: 12px 2px 4px; cursor: pointer; }
.cv-every input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy, #1B2A4A); flex: none; }
.cv-every span { display: flex; flex-direction: column; gap: 2px; }
.cv-every small { color: var(--muted); font-size: var(--fs-xs, 12px); }
/* Class Shifts list + detail */
.sc-shift .row-main { gap: 2px; }
.sc-shift-coaches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sc-chip-coach { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-xs, 12px); font-weight: 700; color: var(--ink); }
.sc-shift-right { flex-direction: column; align-items: flex-end; gap: 6px; }
.sc-coach-pick .chip { display: inline-flex; align-items: center; gap: 6px; }
.sc-shift-open .row-title { color: var(--coral, #C2410C); font-weight: 800; }
.sc-shift-coach .btn { flex: none; }
/* "Needs Coach" on the schedule */
.sc-needs { border: 1.5px dashed var(--coral, #C2410C); border-radius: 14px; padding: 12px 14px; margin: 12px 0; background: color-mix(in srgb, var(--coral, #C2410C) 6%, var(--surface)); }
.sc-needs-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--coral, #C2410C); margin-bottom: 8px; }
.sc-needs-list { display: flex; flex-direction: column; gap: 6px; }
.sc-needs-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, #7A8099); cursor: pointer; color: var(--ink); }
.sc-needs-item:hover { background: var(--surface-2); }
.sc-needs-item b { flex: 1; min-width: 0; }
.sc-needs-item .sc-needs-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-sm, 13px); white-space: nowrap; }
.sc-wk-blk.is-needs { border-style: dashed; border-color: var(--coral, #C2410C); color: var(--coral, #C2410C); background: color-mix(in srgb, var(--coral, #C2410C) 8%, var(--surface)); }
.sc-wk-staff.is-needs { color: var(--coral, #C2410C); font-weight: 800; }

/* Weekly Grid View (owner 11/15): Mon–Sat boxes, 3 across, like the printed employee schedule */
.sc-wview { flex: 1; min-width: 0; }
.sc-wview button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 0 8px; }
.sc-wview button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-wg-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin: 0 2px 10px; }
.sc-wg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sc-wg-k { width: 14px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line-2); }
.sc-wg-k.is-change { background: #FFF3A3; border-color: #E6CF3A; }
.sc-wg-k.is-need { background: var(--coral-soft); border-color: var(--coral-strong, var(--coral)); }
.sc-wg-k.is-off { background: linear-gradient(to bottom, transparent 45%, var(--muted) 45%, var(--muted) 58%, transparent 58%); }
.sc-wg { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .sc-wg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sc-wg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-wg-box { background: var(--surface); border: 1.5px solid var(--navy, var(--text)); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.sc-wg-box.is-today { box-shadow: 0 0 0 3px var(--teal-soft, rgba(0,128,128,.18)); }
.sc-wg-box.is-closed { opacity: .75; }
.sc-wg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; border: 0; cursor: pointer; text-align: left;
  background: var(--navy, #1B2A4A); color: #fff; padding: 8px 12px; font: inherit; }
.sc-wg-head b { font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.sc-wg-head span { font-size: 13px; opacity: .85; }
.sc-wg-closure { background: var(--gold-soft, #FFF4D6); color: var(--text); font-size: 12px; font-weight: 650; padding: 5px 12px; }
.sc-wg-list { padding: 4px 0; }
.sc-wg-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px; align-items: start; padding: 5px 12px; border-bottom: 1px solid var(--line); width: 100%;
  background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; text-align: left; }
.sc-wg-row:last-child { border-bottom: 0; }
.sc-wg-cls { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; font-size: 13px; }
.sc-wg-cls b { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.sc-wg-cls small { color: var(--muted); font-size: 11px; width: 100%; padding-left: 14px; }
.sc-wg-coaches { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center; font-size: 13px; }
.sc-wg-coach { background: none; border: 0; padding: 1px 3px; margin: 0; font: inherit; color: var(--text); cursor: pointer; border-radius: 4px; text-transform: uppercase; }
.sc-wg-coach.is-primary { font-weight: 700; }
.sc-wg-coach em { font-style: normal; font-size: 11px; color: var(--muted); text-transform: none; }
.sc-wg-coach.is-change, .sc-wg-line.is-change b { background: #FFF3A3; }
.sc-wg-coach.is-off, .sc-wg-row.is-off .sc-wg-cls b, .sc-wg-line.is-off b { text-decoration: line-through; color: var(--muted); }
.sc-wg-need { color: var(--coral-strong, var(--coral)); font-weight: 800; font-size: 12px; text-transform: uppercase; }
.sc-wg-needrow { cursor: pointer; background: var(--coral-soft); }
.sc-wg-needrow .sc-wg-cls b { color: var(--coral-strong, var(--coral)); }
.sc-wg-empty { padding: 8px 12px; margin: 0; }
.sc-wg-sec { border-top: 1.5px solid var(--line-2); padding: 6px 12px 8px; }
.sc-wg-sec h4 { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy, var(--text)); }
.sc-wg-line { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 13px; padding: 2px 0; width: 100%;
  background: none; border: 0; font: inherit; color: inherit; text-align: left; }
button.sc-wg-line { cursor: pointer; }
.sc-wg-line b { text-transform: uppercase; font-weight: 700; padding: 0 2px; border-radius: 3px; }
.sc-wg-line span { color: var(--muted); font-size: 12px; }
.sc-wg-line.is-out b { color: var(--coral-strong, var(--coral)); }
@media print { .sc-wg { grid-template-columns: repeat(3, 1fr); } .sc-wg-legend { display: none; } }

/* Classes Only (11/15) */
/* Classes list */
.sc-cls-row .row-main { gap: 2px; }
.sc-cls-row .row-title small { font-weight: 600; font-size: var(--fs-xs); }
.sc-cls-time { font-variant-numeric: tabular-nums; color: var(--text-2); }
.sc-cls-time b { font-weight: 800; }
/* Class page header */
.sc-cls-head { flex-wrap: wrap; }
.sc-cls-acts { display: flex; flex-direction: column; gap: 6px; align-self: flex-start; flex: none; }
@media (max-width: 420px) { .sc-cls-acts { flex-direction: row; flex-wrap: wrap; width: 100%; } .sc-cls-acts .btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; } .sc-staffcard > .sc-cls-acts .btn span { display: inline; } }
.sc-cls-hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
/* One weekly time card */
.sc-ct { padding: 12px 14px; box-shadow: var(--shadow-1), inset 4px 0 0 var(--ink); }
.sc-ct.is-need { box-shadow: var(--shadow-1), inset 4px 0 0 var(--coral); }
.sc-ct-head { display: flex; align-items: center; gap: 8px; }
.sc-ct-head .grow { min-width: 0; }
.sc-ct-head b, .sc-ct-head small { display: block; }
.sc-ct-head b { font-size: var(--fs-md); font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-ct-head small { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.sc-ct-coaches { margin-top: 8px; border-top: 1px solid var(--line); }
.sc-ct-coach, .sc-ct-open { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 2px; text-align: left; color: var(--text); border-bottom: 1px dashed var(--line); min-width: 0; }
.sc-ct-coach:active:not([disabled]) { background: var(--surface-3); }
.sc-ct-coach .grow, .sc-ct-open .grow { min-width: 0; }
.sc-ct-coach b, .sc-ct-open b { display: block; font-size: var(--fs-sm); }
.sc-ct-coach small, .sc-ct-open small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.sc-ct-coach .sc-dot { width: 12px; height: 12px; }
.sc-ct-open { background: var(--coral-soft); border-radius: 10px; padding: 8px 10px; margin-top: 6px; border-bottom: 0; }
.sc-ct-open b { color: var(--coral-strong); font-weight: 800; }
.sc-ct-open .row-icon { width: 32px; height: 32px; flex: none; }
.sc-ct-open .btn { flex: none; }
.sc-ct-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
@media (max-width: 420px) { .sc-ct-open .btn span { display: none; } .sc-ct-open .btn { width: 38px; padding: 0; } }
/* Weekly Time blocks (Add Class / Add Time) */
.sc-tb { padding: 12px 14px; box-shadow: var(--shadow-1), inset 4px 0 0 var(--ink); }
.sc-tb + .sc-tb { margin-top: 12px; }
.sc-tb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sc-tb-head b { font-size: var(--fs-md); font-weight: 800; color: var(--ink); }
.sc-tb-need { max-width: 120px; }
.sc-tb-title { margin-top: 18px; }
.sc-tb-coach { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.sc-tb-coach .sc-seg button { padding: 0 10px; }
@media (max-width: 480px) { .sc-tb-coach { grid-template-columns: minmax(0, 1fr) 36px; } .sc-tb-coach .sc-seg { grid-column: 1 / 2; grid-row: 2; } }
.sc-ended .list { padding: 0 6px 6px; }
/* Weekly time Active / Deactivated filter (owner 11/15) */
/* (.sc-tf is also the class of every time/date field in the sheets: scope these to the pill row only) */
.sc-filter.sc-tf { margin: 0 0 12px; }
.sc-filter.sc-tf .sc-tf-n { margin-left: 6px; font-size: 11px; font-weight: 800; opacity: .75; }
.sc-ct.is-off-time { opacity: .82; border-style: dashed; }
.sc-ct.is-off-time .sc-ct-head b { color: var(--muted); }
.sc-ct-coach.is-static { cursor: default; }
/* Class page: Employee + Day filters for active weekly times (owner 11/15) */
.sc-tfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.sc-tfilters .field { margin: 0; }
.sc-tf-coach { min-width: 200px; flex: 0 1 260px; }
.sc-tf-days { flex-wrap: wrap; }
.sc-tf-count { margin-left: auto; }
/* Coverage (owner 11/15): every filter bubble red; "N Requests so Far" red & bold */
.cv-filters .chip .rq-badge, .cv-filters .chip .rq-badge.is-urgent { background: var(--coral-strong, var(--coral)); color: #fff; }
.cv-reqn { color: var(--coral-strong, var(--coral)) !important; font-weight: 800; }
