/* Shared by the real time-off page and the Try Chordae practice page. Change it here and both update. */
/*wrap-guard*/body{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}

  .toff-site{display:inline-block;padding:.3rem .8rem;border-radius:var(--r-1);border:1px solid var(--c-line);
    color:var(--c-ink-strong);text-decoration:none;font-size:var(--fs-md);font-weight:600;background:var(--c-surface)}
  .toff-site-on{background:var(--c-surface);border-color:var(--c-line-strong);color:var(--c-ink-strong);box-shadow:inset 0 -2px 0 var(--c-trace)}
  .toff-dot{display:inline-block;width:.7rem;height:.7rem;border-radius:50%;margin-right:.35rem;vertical-align:middle}
  .toff-badge{font-size:var(--fs-xs);font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.2rem .55rem;border-radius:var(--r-1)}
  /* neutral on purpose: green is reserved for a confirmed day off */
  .toff-badge-open{background:var(--c-info-bg);color:var(--c-ink-strong)}
  .toff-key{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;display:flex;flex-wrap:wrap;gap:.3rem .9rem;align-items:center;
            font-size:var(--fs-sm);font-weight:600;color:var(--c-ink-slate);background:var(--c-surface);border:1px solid var(--c-line);
            border-radius:var(--r-2);padding:.5rem .8rem;box-shadow:var(--sh-1)}
  .toff-key > span{white-space:nowrap}
  .toff-multi-btn{display:inline-flex;align-items:center;min-height:44px;padding:.45rem 1rem;border-radius:var(--r-1);border:1px solid var(--btno-border);
                  background:var(--btno-bg);color:var(--btno-color);font-weight:600;font-size:var(--fs-md);cursor:pointer}
  .toff-multi-btn:hover{border-color:var(--c-ink-strong)}
  /* look A: "selecting" is shown by a darker outline and the label, never a navy or gold fill */
  .toff-multi-btn[aria-pressed="true"]{background:var(--c-surface-sunk);border-color:var(--c-ink-strong);color:var(--c-ink-strong)}
  /* a picked day: an ink outline and tick, so it never reads as the amber of a waitlisted day */
  .toff-grid .toff-cell.toff-sel{border-color:var(--c-ink-strong);background:var(--c-surface-cream-2);box-shadow:inset 0 0 0 1.5px var(--c-ink-strong)}
  .toff-grid .toff-cell.toff-sel .toff-num{color:var(--c-ink-strong);font-weight:800}
  .toff-cell.toff-sel:after{content:'';position:absolute;right:4px;bottom:5px;width:13px;height:7px;border-left:2.5px solid var(--c-ink-strong);border-bottom:2.5px solid var(--c-ink-strong);transform:rotate(-45deg)}
  html[data-theme="dark"] .toff-grid .toff-cell.toff-sel{background:var(--c-surface-cream-2) !important}
  .toff-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + var(--cd-tabs-h,env(safe-area-inset-bottom,0px)));z-index:1070;width:calc(100% - 24px);max-width:520px;
            display:flex;align-items:center;gap:.5rem;background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-2);
            padding:.6rem .7rem .6rem 1rem;box-shadow:var(--sh-2)}
  .toff-bar-txt{flex:1;min-width:0;font-weight:600;font-size:var(--fs-md);color:var(--c-ink-strong)}
  .toff-bar .btn{min-height:44px;padding-left:.9rem;padding-right:.9rem;white-space:nowrap}
  body.toff-multi-on{padding-bottom:5.5rem}
  .toff-toast{position:fixed;left:50%;transform:translateX(-50%);top:calc(56px + env(safe-area-inset-top,0px));z-index:1090;width:calc(100% - 24px);max-width:520px;
              background:var(--c-success-bg);color:var(--dt-11553a, var(--p-teal));border:1px solid var(--c-success-line);border-radius:var(--r-2);padding:.75rem 1rem;font-weight:600;font-size:var(--fs-base);
              box-shadow:var(--sh-1)}
  .toff-toast.warn{background:var(--c-surface-cream-2);color:var(--c-gold-ink);border-color:var(--c-warning-line)}
  /* phone cells are narrow: short word there, full word on wider screens */
  .toff-chip{position:relative}
  .toff-chip .tc-f{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  @media (min-width:576px){ .toff-chip .tc-f{position:static;width:auto;height:auto;clip:auto;overflow:visible} .toff-chip .tc-s{display:none} }
  /* your own requests fill the whole day box in the status color, so they stand out from the open-spot labels */
  .toff-grid .toff-cell.toff-st{border-width:2px}
  .toff-grid .toff-cell.toff-st-off,.toff-grid .toff-cell.toff-st-mix{background:var(--c-success-bg);border-color:var(--p-green)}
  .toff-grid .toff-cell.toff-st-mix{border-color:var(--p-swing)}
  .toff-grid .toff-cell.toff-st-wl{background:var(--c-surface-cream-2);border-color:var(--p-swing)}
  .toff-grid .toff-cell.toff-st-den{background:var(--c-danger-bg);border-color:var(--p-crimson-bright)}
  .toff-grid .toff-cell.toff-st-pend{background:var(--c-info-bg);border-color:var(--p-navy-3);border-style:dashed}
  .toff-grid .toff-cell.toff-st .toff-num{color:var(--c-ink-strong);font-weight:800}
  .toff-st .toff-chip{color:var(--p-white)}
  .toff-st-off .toff-chip-off,.toff-st-mix .toff-chip-off{background:var(--p-green)}
  .toff-st-wl .toff-chip-wl{background:var(--p-amber)}
  .toff-st-den .toff-chip-den{background:var(--p-crimson-bright)}
  .toff-st-pend .toff-chip-pend{background:var(--p-navy-3)}
  .toff-st-mix .toff-chip-mix::after{background:var(--p-gold-lit)}
  .toff-grid .toff-cell.toff-st.toff-dim{opacity:.85}
  html[data-theme="dark"] .toff-grid .toff-cell.toff-st .toff-num{color:var(--p-blue-bg)}
  html[data-theme="dark"] .toff-grid .toff-cell.toff-st-off{background:#12382a !important;border-color:#3fae78 !important}
  html[data-theme="dark"] .toff-grid .toff-cell.toff-st-mix{background:#12382a !important;border-color:var(--p-gold-soft) !important}
  html[data-theme="dark"] .toff-grid .toff-cell.toff-st-wl{background:#3a2c10 !important;border-color:var(--p-gold-soft) !important}
  html[data-theme="dark"] .toff-grid .toff-cell.toff-st-den{background:#3d1618 !important;border-color:var(--p-rose) !important}
  html[data-theme="dark"] .toff-grid .toff-cell.toff-st-pend{background:var(--p-dark-750) !important;border-color:#7d9fd6 !important}
  /* part off, part waitlisted: an amber dot on phones, the words on wider screens */
  .toff-chip-mix::after{content:"";display:inline-block;width:.38rem;height:.38rem;border-radius:50%;background:var(--p-swing);margin-left:.18rem;vertical-align:.1em}
  @media (min-width:576px){ .toff-chip-mix::after{display:none} }
  @media (max-width:440px){ .toff-grid .toff-chip{padding:.12rem .04rem;text-overflow:clip;font-size:var(--fs-xs)} }
  html[data-theme="dark"] .toff-dot-closed{background:var(--p-slate-2) !important}
  @media (max-width:380px){ .toff-key{font-size:var(--fs-xs);gap:.2rem .55rem;padding:.45rem .55rem} .toff-key .toff-dot{margin-right:.22rem}
    .toff-grid .toff-cell{padding:.25rem .1rem} .toff-grid .toff-chip{padding:.12rem .04rem;letter-spacing:-.01em;text-overflow:clip} .toff-grid .toff-num{padding-left:.12rem} }
  .toff-badge-closed{background:var(--c-info-bg);color:var(--p-slate-2)}
  .toff-closed{opacity:.92}
  .toff-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
  .toff-hd{text-align:center;font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--muted-ink,var(--c-ink-faint));font-weight:700;padding-bottom:2px}
  .toff-cell{min-height:3.1rem;min-width:0;border-radius:var(--r-2);padding:.25rem;position:relative;border:1px solid var(--c-line);background:var(--c-surface)}
  .toff-empty{border:0;background:transparent}
  .toff-num{font-size:var(--fs-xs);color:var(--c-ink-faint);font-weight:600;line-height:1}
  .toff-clk{cursor:pointer;transition:.12s}
  .toff-clk:hover{border-color:var(--p-gold);background:var(--c-surface);box-shadow:var(--sh-2)}
  .toff-dim{background:var(--c-surface-sunk);color:var(--p-dark-muted)}
  .toff-dim .toff-num{color:var(--p-dark-muted)}
  .toff-today{border-color:var(--c-today);box-shadow:inset 0 0 0 1px var(--c-today)}
  .toff-chip{margin-top:.2rem;font-size:var(--fs-xs);font-weight:700;line-height:1.1;border-radius:var(--r-2);padding:.12rem .26rem;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .toff-chip-off{background:var(--c-success-bg);color:var(--c-success)}
  .toff-chip-out{background:var(--c-info-bg);color:var(--c-night-ink);display:block;max-width:100%}
  .os-short{display:none}
  @media (max-width:480px){.toff-chip-out .os-site{display:none} .toff-chip-out .os-short{display:inline}}
  .toff-shake{outline:2px solid var(--c-warning-line); outline-offset:1px}
  .toff-mode{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.3rem;background:var(--c-surface-cream);border-radius:var(--r-2);padding:.25rem}
  .toff-mode-btn{border:0;background:transparent;border-radius:var(--r-1);padding:.35rem .9rem;font-size:var(--fs-md);font-weight:600;color:var(--c-ink-strong)}
  .toff-mode-btn.on{background:var(--c-surface);color:var(--c-ink-strong);box-shadow:0 0 0 1px var(--c-line-strong)}
  .os-row{display:flex;gap:.6rem;align-items:center;padding:.4rem .5rem;border:1px solid var(--c-line);border-radius:var(--r-2);margin-bottom:.35rem;font-size:var(--fs-md);background:var(--c-surface)}
  .os-row.overlap{border-color:var(--c-danger-line);background:var(--c-surface-sunk)} .os-row.rest{border-color:var(--c-warning-line);background:var(--c-surface-cream)}
  .os-row .os-st{margin-left:auto;font-size:var(--fs-xs);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
  .os-chip{display:inline-block;border:1px solid var(--c-line);border-radius:var(--r-1);padding:.15rem .6rem;font-size:var(--fs-xs);margin:.15rem .2rem 0 0;cursor:pointer;background:var(--c-surface)}
  .os-list .os-item{display:flex;gap:.6rem;align-items:center;padding:.45rem 0;border-bottom:1px solid var(--c-line);font-size:var(--fs-md)}
  .os-list .os-item:last-child{border-bottom:none}
  .os-mchip{display:inline-block;background:var(--c-info-bg);color:var(--c-night-ink);border-radius:var(--r-2);padding:.1rem .4rem;font-size:var(--fs-xs);font-weight:700}
  .toff-chip-wl{background:var(--c-surface-cream-2);color:var(--c-warning)}
  .toff-chip-pend{background:var(--c-info-bg);color:var(--c-info)}
  .toff-chip-den{background:var(--c-danger-bg);color:var(--c-crimson);}
  .toff-present .tc-f{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  @media (min-width:576px){ .toff-present .tc-f{position:static;width:auto;height:auto;clip:auto} }
  .toff-present{position:relative;margin-top:.2rem;font-size:var(--fs-xs);font-weight:700;line-height:1.1;color:var(--c-gold-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .toff-modal{position:fixed;inset:0;background:rgba(20,30,45,.5);z-index:1080;display:flex;align-items:flex-end;justify-content:center;padding:0}
  /* bottom sheet: its last button clears the phone's home indicator (safe-area inset) */
  .toff-sheet{background:var(--c-surface);border-radius:var(--r-2) var(--r-2) 0 0;width:100%;max-width:540px;padding:1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom,0px));max-height:88vh;overflow:auto;box-shadow:var(--sh-3)}
  @media(min-width:560px){.toff-modal{align-items:center}.toff-sheet{border-radius:var(--r-2);padding-bottom:1.5rem}}
  .toff-full{display:flex;gap:.6rem;align-items:flex-start;border:1px solid var(--c-line);border-radius:var(--r-2);padding:.65rem .8rem;cursor:pointer}
  .toff-full input{margin-top:.2rem;width:1.1rem;height:1.1rem;flex:0 0 auto}
  .toff-shift{display:flex;gap:.6rem;align-items:center;border:1px solid var(--c-line);border-radius:var(--r-2);padding:.55rem .8rem;margin-top:.4rem;cursor:pointer}
  .toff-shift input{width:1.1rem;height:1.1rem;flex:0 0 auto}
  .toff-shift-meta{margin-left:auto;text-align:right;font-size:var(--fs-sm)}
  /* full day picked: the per-shift rows are locked but stay readable */
  .toff-shifts-dim{pointer-events:none}
  .toff-shifts-dim .toff-shift{background:var(--c-surface-sunk)}
  .toff-shifts-dim input{opacity:.55}
  .toff-ok{color:var(--c-success)}
  html[data-theme="dark"] .toff-ok{color:var(--p-mint) !important}

/* Open spots on each open day: the tightest shift's count ("2 open"), "Part full" when some shifts are
   full, "Full" when every shift is. Same numbers as the day sheet. */
.toff-av{margin-top:.2rem;font-size:var(--fs-xs);font-weight:600;line-height:1.1;text-align:center;white-space:nowrap;overflow:hidden;color:var(--c-success)}
.toff-av-part{color:var(--c-warning)}
.toff-av-full{color:var(--c-danger)}
.toff-av .tc-f{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (min-width:576px){ .toff-av .tc-f{position:static;width:auto;height:auto;clip:auto} .toff-av .tc-s{display:none} }
.toff-av-key{display:inline;margin:0 .3rem 0 0}
@media (max-width:440px){ .toff-grid .toff-av{font-size:var(--fs-xs);letter-spacing:-.03em;font-weight:700;overflow:visible;margin-left:-2px;margin-right:-2px} }
@media (max-width:340px){ .toff-grid .toff-av{font-size:var(--fs-xs);letter-spacing:-.03em} }
