/* The front door — fltortho.com/login, /home (the week calendar), /cases, /logout. Theme = the commissions / PO portals (D9 §2): bg #0c0f14, ink #e8eef7,
   muted #9fb0c7, gold #d6a73a, inputs #10151d / #303846, cards rgba(255,255,255,.04) radius 8, system font stack.
   The platform bar (platform.css) sits on top of every page; this file styles what is under it. */
:root{
  --bg:#0c0f14; --bg2:#10151d; --card:rgba(255,255,255,.04); --card2:#151b25;
  --ink:#e8eef7; --muted:#9fb0c7; --dim:#718198; --soft:#c4d0e2;
  --gold:#d6a73a; --gold-hover:#ecc152; --gold-ink:#10151d; --gold-soft:rgba(214,167,58,.14);
  --green:#4ade80; --green-soft:#23863633;
  --blue:#6ea8fe; --blue-soft:#1f6feb22;
  --amber:#ffd35c; --amber-soft:#b8860b33;
  --red:#ff7b72; --red-soft:#da363333;
  --line:rgba(255,255,255,.08); --line-strong:rgba(255,255,255,.13); --border:#303846;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{background:var(--bg);color-scheme:dark}
body{background:var(--bg);color:var(--ink);font-family:var(--font);min-height:100vh;-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font:inherit;cursor:pointer}
input{font:inherit}
.hidden{display:none!important}

/* ---------- shared bits ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.28)}
.field{display:block;margin-bottom:14px;text-align:left}
.field span{display:block;font-size:13px;color:var(--soft);margin-bottom:5px}
.field input{width:100%;background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:10px 12px;color:var(--ink);font-size:15px;outline:none;transition:border-color .15s}
.field input:focus{border-color:var(--gold)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:6px;padding:11px 16px;font-weight:600;font-size:15px;transition:background .15s,opacity .15s,transform .08s}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.5;cursor:default}
.btn-gold{background:var(--gold);color:var(--gold-ink);width:100%}
.btn-gold:hover{background:var(--gold-hover)}
.btn-ghost{background:#30405e;color:var(--ink)}
.btn-ghost:hover{background:#3d5178}
.btn-sm{padding:7px 12px;font-size:13px}
.msg{display:none;margin:0 0 14px;padding:10px 12px;border-radius:6px;font-size:13.5px;line-height:1.45;text-align:left}
.msg.on{display:block}
.msg.err{background:var(--red-soft);border:1px solid rgba(255,123,114,.35);color:#ffd2cf}
.msg.ok{background:var(--green-soft);border:1px solid rgba(74,222,128,.3);color:#c9f7dd}
.po-file-group{margin-top:24px}
.po-file-group h2{font-size:16px;font-weight:600;line-height:1.4}
.po-file-kind{display:block;margin:4px 0 10px;font-size:13px;color:var(--muted)}
.po-file-rows{list-style:none;margin:12px 0 0;padding:0}
.po-file-row{display:flex;align-items:center;min-height:44px;padding:11px 12px;border-top:1px solid var(--line);font-size:14px;line-height:1.5;color:var(--soft);white-space:normal;overflow-wrap:anywhere;text-decoration:none}
.po-file-row:hover,.po-file-row:focus-visible{background:var(--card);color:var(--ink)}

/* ---------- login ---------- */
.login-wrap{min-height:calc(100vh - 48px);display:flex;align-items:center;justify-content:center;padding:28px 18px}
.login-card{width:min(92vw,420px);padding:36px 34px 28px;text-align:center}
.login-card .badge{display:inline-block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;padding:5px 11px;border-radius:999px;background:var(--gold-soft);color:var(--gold-hover);border:1px solid rgba(214,167,58,.3);margin-bottom:18px}
.login-card h1{font-size:24px;font-weight:700;letter-spacing:-.01em;margin:0 0 6px}
.login-card p.lead{color:var(--muted);font-size:14px;line-height:1.5;margin:0 0 22px}
.links{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font-size:13px;color:var(--muted)}
.links a,.linkbtn{color:var(--soft);background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:3px;font-size:13px}
.links a:hover,.linkbtn:hover{color:var(--gold-hover)}
.foot{margin-top:26px;text-align:center;font-size:12px;color:var(--dim);line-height:1.5}
@media (max-width:760px){
  .field input,.btn{min-height:44px}
  .links a,.linkbtn{display:inline-flex;align-items:center;min-height:44px;padding:8px 0}
}

/* ---------- home: the dashboard (D9 §3 — the queue spans the full width; the bar carries navigation) ---------- */
.wrap{max-width:1180px;margin:0 auto;padding:22px 24px 60px}
.hello{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin:4px 0 18px}
.hello h1{font-size:22px;font-weight:700;letter-spacing:-.01em}
.hello .sub{color:var(--muted);font-size:13.5px}
.banner{display:none;margin:0 0 16px;padding:12px 14px;border-radius:0 8px 8px 0;border-left:3px solid var(--gold);background:#d6a73a14;color:#e6d3a1;font-size:13.5px;line-height:1.5}
.banner.on{display:block}
.banner a{color:var(--gold-hover)}

.panel{background:var(--card);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.panel-h{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.panel-h h2{font-size:16px;font-weight:700}
.panel-h .spacer{margin-left:auto;color:var(--dim);font-size:12px}
.tabs{display:flex;gap:4px;padding:10px 10px 0;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{border:0;background:transparent;color:var(--muted);padding:9px 12px;border-radius:7px 7px 0 0;font-size:13px;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;border-bottom:2px solid transparent}
.tab:hover{color:var(--ink);background:rgba(255,255,255,.04)}
.tab b{font-size:11.5px;padding:1px 7px;border-radius:999px;background:#30405e55;color:var(--muted)}
.tab.on{color:var(--ink);border-bottom-color:var(--gold)}
.tab.on b{background:var(--gold);color:var(--gold-ink)}
.rows{display:block}
.row{display:grid;grid-template-columns:156px minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 110px;gap:12px;align-items:center;padding:11px 16px;border-top:1px solid var(--line);font-size:13.5px}
.row:hover{background:rgba(255,255,255,.025)}
.row[data-id]{cursor:pointer}
.row[data-id]:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.row:first-child{border-top:0}
.row .when{font-weight:600;font-size:13px}
.row .when{min-width:0}
.row .when small{display:block;color:var(--muted);font-weight:500;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .main{min-width:0}
.row .main b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .main small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .main .pid{display:block;color:var(--ink);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* Patient ID line, TG 67786 */
.row .cell{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--soft)}
.row .cell small{display:block;color:var(--dim);font-size:11.5px}
.state{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:600;white-space:nowrap;background:#30405e55;color:var(--muted)}
.state.today,.state.scheduled{background:var(--blue-soft);color:var(--blue)}
.state.needs-po{background:var(--red-soft);color:var(--red)}
.state.not-completed{background:rgba(212,160,23,.14);color:var(--gold)}
.state.po-issue{background:var(--amber-soft);color:var(--amber)}
.state.po-collected{background:var(--green-soft);color:var(--green)}
.state.cancelled{opacity:.6}
/* the state cell on /cases: the badge, and under it how long a case has waited on its PO (the app's aging colours) */
.row .st{min-width:0}
.row .st small{display:block;margin-top:3px;font-size:11.5px;color:var(--dim);white-space:nowrap}
.row .st small.age-warn{color:var(--amber)}
.row .st small.age-danger,.row .st small.age-severe{color:var(--red)}
.row .st small.age-severe{font-weight:700}
.empty{padding:34px 16px;text-align:center;color:var(--muted);font-size:14px}
.note{padding:10px 16px;border-top:1px solid var(--line);color:var(--dim);font-size:12px}
@media (max-width:700px){
  .wrap{padding:16px 14px 60px}
  .row{grid-template-columns:96px minmax(0,1fr) 92px;gap:10px}
  .row .cell{display:none}
}
/* /cases column header (Brian 2026-10-21 TG 60323): one slim line that names every column, same grid as the rows. */
.row-head{display:grid;grid-template-columns:156px minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 110px;gap:12px;padding:7px 16px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);border-bottom:1px solid var(--line)}
.row-head+.row{border-top:0}
@media (max-width:700px){.row-head{grid-template-columns:96px minmax(0,1fr) 92px;gap:10px}.row-head .cell{display:none}}

/* The calendar's header row (Brian, 2026-10-09 13:53, 55528): greeting | one big gold "+ New case" in the middle | the Forecast
   box. Three columns, the outer two equal, so the button sits on the page's centre line whatever the greeting says. */
.hello-cal{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:"text center fc";align-items:center;gap:14px 28px;margin:0 0 16px}
.hello-cal .hello-text{grid-area:text;display:flex;align-items:baseline;gap:4px 14px;flex-wrap:wrap;min-width:0}
.hello-center{grid-area:center;display:flex;align-items:center;justify-content:center;gap:10px 12px;flex-wrap:wrap}
.hello-center .nc-viewas{margin-left:0}
#new-case-button.nc-big{width:auto;margin:0;min-height:52px;padding:0 34px 0 28px;gap:10px;border-radius:12px;font-size:17px;font-weight:700;letter-spacing:.01em;white-space:nowrap;
  box-shadow:0 8px 24px rgba(214,167,58,.26),inset 0 1px 0 rgba(255,255,255,.28)}
#new-case-button.nc-big span{font-size:25px;font-weight:600;line-height:1;margin-top:-3px}
#new-case-button.nc-big:hover{background:var(--gold-hover);box-shadow:0 10px 30px rgba(214,167,58,.36),inset 0 1px 0 rgba(255,255,255,.3)}
#new-case-button.nc-big:focus-visible{outline:2px solid var(--gold-hover);outline-offset:3px}

/* The Forecast box: one bordered card, its title centred above the week picker and the two downloads, every control the
   same height. Everybody in FLT sees it (Brian, 2026-10-09 07:46); it is not on Cases. */
.fc-box{grid-area:fc;justify-self:end;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:10px 14px 12px;
  border:1px solid var(--line-strong);border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));box-shadow:0 10px 30px rgba(0,0,0,.22)}
.fc-box[hidden]{display:none}
.fc-title{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ink);line-height:1.1}
.fc-hint{margin-top:-3px;font-size:12px;line-height:1.25;color:var(--muted);text-align:center}
.fc-controls{display:flex;align-items:stretch;justify-content:center;gap:8px;flex-wrap:wrap}
#forecast-week,.fc-btn{height:36px;border:1px solid var(--border);border-radius:8px;font:inherit;font-size:13.5px;color:var(--ink);transition:border-color .15s,color .15s,background .15s}
#forecast-week{max-width:100%;padding:0 32px 0 12px;background:var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%239fb0c7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center/12px;
  -webkit-appearance:none;appearance:none;cursor:pointer}
.fc-btn{display:inline-flex;align-items:center;gap:7px;padding:0 14px;background:var(--card2);font-weight:600;white-space:nowrap}
.fc-btn svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#forecast-week:hover,.fc-btn:hover{border-color:rgba(214,167,58,.55)}
.fc-btn:hover{color:var(--gold-hover)}
#forecast-week:focus-visible,.fc-btn:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.fc-btn[disabled]{opacity:.55;cursor:default}
.fc-status{max-width:100%;font-size:12px;line-height:1.3;color:var(--muted);text-align:center}
.fc-status:empty{display:none}
/* A narrower window: the greeting gets its own line; the button stays centred in the space beside the Forecast box. */
@media(max-width:1100px){
  .hello-cal{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"text text" "center fc"}
}
/* A phone: greeting, then the full-width button, then the Forecast box full width. */
@media(max-width:760px){
  .hello-cal{grid-template-columns:minmax(0,1fr);grid-template-areas:"text" "center" "fc";gap:12px}
  .hello-center{flex-direction:column;align-items:stretch}
  #new-case-button.nc-big{width:100%}
  .hello-center .nc-viewas{align-self:center}
  .fc-box{justify-self:stretch}
  .fc-controls{width:100%}
  #forecast-week{flex:1 1 100%}
  .fc-btn{flex:1 1 0;justify-content:center}
}
@media(max-width:760px){#forecast-tools select,#forecast-tools button{min-height:44px}}

/* Cases: search every case + region + senior-rep filters (Brian, 2026-10-03). The server filters, every tab count follows. */
.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px 4px}
.search{position:relative;display:block;flex:1 1 340px;min-width:220px}
.search input{width:100%;-webkit-appearance:none;appearance:none;background:var(--bg2);border:1px solid var(--border);border-radius:6px;
  padding:9px 12px 9px 34px;color:var(--ink);font-size:14px;outline:none;transition:border-color .15s}
.search input::placeholder{color:var(--dim)}
.search input:focus{border-color:var(--gold)}
.search::before{content:"";position:absolute;left:12px;top:50%;width:10px;height:10px;margin-top:-8px;border:2px solid var(--dim);border-radius:50%;pointer-events:none}
.search::after{content:"";position:absolute;left:23px;top:50%;width:2px;height:6px;margin-top:2px;background:var(--dim);transform:rotate(-45deg);pointer-events:none}
.search:focus-within::before{border-color:var(--gold)}
.search:focus-within::after{background:var(--gold)}
.filters select{background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:9px 10px;color:var(--ink);font:inherit;font-size:13.5px;
  outline:none;max-width:280px;cursor:pointer}
.filters select:focus{border-color:var(--gold)}
.filters select.on{border-color:var(--gold);color:var(--gold-hover)}
#f-region.seg button{padding:9px 13px}
#f-region.seg button:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.filters .linkbtn{color:var(--soft);font-size:13px;padding:0 4px}
.fcount{margin-left:auto;color:var(--dim);font-size:12px;white-space:nowrap}
.tab-all{margin-left:auto}
/* Cases buckets = quiet tiles that stand off the page (Brian 2026-10-17 00:36, "make them pop a little… don't turn them warning
   colors"): a neutral border + soft shadow, the selected one keeps the gold edge. No red/amber/green here. */
#tabs.tabs{gap:8px;padding:12px 12px 10px;border-bottom:1px solid var(--line)}
#tabs .tab{border:1px solid var(--line-strong);border-radius:9px;background:var(--card2);color:var(--soft);padding:9px 13px;
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 2px 6px rgba(0,0,0,.35);transition:border-color .12s,background .12s,transform .12s}
#tabs .tab:hover{border-color:var(--soft);color:var(--ink);transform:translateY(-1px)}
#tabs .tab.on{border-color:var(--gold);background:var(--gold-soft);color:var(--ink);box-shadow:0 0 0 1px var(--gold) inset,0 3px 10px rgba(0,0,0,.45)}
#tabs .tab:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
html[data-theme=light] #tabs .tab{box-shadow:0 1px 3px rgba(24,40,61,.14)}
html[data-theme=light] #tabs .tab.on{box-shadow:0 0 0 1px var(--gold) inset,0 2px 6px rgba(24,40,61,.16)}
/* Cases page (Brian 2026-10-21 09:27): a wider tile so every bucket fits, the buckets wrap (never scroll or get cut off, phone
   included), and the title "Cases" is centered with no subtitle under it. */
.wrap.wrap-cases{max-width:1360px}
.hello.hello-center{justify-content:center;text-align:center}
.wrap-cases #tabs.tabs{flex-wrap:wrap;overflow:visible}
.rows.loading{opacity:.5;transition:opacity .12s}
mark{background:rgba(214,167,58,.3);color:inherit;border-radius:3px;padding:0 1px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media (max-width:700px){
  .filters{padding:10px 12px 2px}
  .filters select{flex:1 1 140px;max-width:none}
  #f-region.seg{display:flex;width:100%}
  #f-region.seg button{flex:1;min-height:44px;padding:8px 4px}
  .fcount{width:100%;margin-left:0}
  .tab-all{margin-left:0}
  #tabs.tabs{padding:10px 12px 10px;gap:6px}
  #tabs .tab{min-height:44px;padding:8px 11px}
}

/* ---------- Calendar = fltortho.com/home (Brian, 2026-10-03 10:59): a Google-style week, Monday through Sunday ----------
   Every case is Google's green for now (the §12 colour system: green = nothing needed from FLT; red and blue arrive with
   inventory). Past days keep their cases, a little dimmer, each with its PO status; CX = cancelled, struck through.
   Phone width: the week turns into a list of days, Google's schedule view. */
.wrap-wide{max-width:none;width:100%}
.cal-bar{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--line)}
.cal-nav{display:flex;align-items:center;gap:4px;min-width:0;flex-wrap:wrap}
.cal-today{border:1px solid var(--border);background:transparent;color:var(--ink);border-radius:6px;padding:7px 15px;font-size:13.5px;font-weight:600;margin-right:4px}
.cal-today:hover{border-color:rgba(214,167,58,.55);color:var(--gold-hover)}
.cal-arrow{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent;color:var(--soft);font-size:26px;line-height:1;padding:0 0 4px}
.cal-arrow:hover{background:rgba(255,255,255,.07);color:var(--ink)}
.cal-title{font-size:19px;font-weight:600;letter-spacing:-.01em;margin:0 8px 0 8px;white-space:nowrap}
.cal-count{color:var(--muted);font-size:13px;white-space:nowrap}
.cal-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.seg{display:inline-flex;border:1px solid var(--border);border-radius:7px;overflow:hidden;background:var(--bg2)}
.seg button{border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted);padding:7px 13px;font-size:13px;font-weight:600;white-space:nowrap}
.seg button:first-child{border-left:0}
.seg button:hover{color:var(--ink);background:rgba(255,255,255,.04)}
.seg button.on{background:var(--gold-soft);color:var(--gold-hover)}
.cal-filters select{background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:8px 10px;color:var(--ink);font:inherit;font-size:13.5px;outline:none;max-width:260px;cursor:pointer}
.cal-filters select:focus{border-color:var(--gold)}
.cal-filters select.on{border-color:var(--gold);color:var(--gold-hover)}
.cal-grid.loading{opacity:.55;transition:opacity .12s}
.cal-grid{overflow-x:auto}
.cal-days{display:grid;grid-template-columns:repeat(7,minmax(260px,1fr))}
/* Keep all seven days on wide screens, and scroll the week instead of crushing
   fixed case slots on laptops. The calendar keeps the wrap's 24px side margins. */
@media (min-width:761px){.cal .ev.ct-card .ct-right{flex-basis:108px}}
.cal-day{display:flex;flex-direction:column;min-width:0;min-height:440px;border-left:1px solid var(--line)}
.cal-day:first-child{border-left:0}
.cal-day.is-weekend{background:rgba(255,255,255,.012)}
.cal-dh{display:flex;flex-direction:column;align-items:center;gap:1px;padding:10px 4px 8px;border-bottom:1px solid var(--line)}
.cal-dow{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.cal-dnum{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;font-size:22px;font-weight:500;color:var(--ink)}
.cal-dmon{display:none}
.cal-dcount{min-height:15px;font-size:11.5px;color:var(--dim)}
.is-past .cal-dow,.is-past .cal-dnum{color:var(--dim)}
.is-today .cal-dow,.is-today .cal-dcount{color:var(--gold-hover)}
.is-today .cal-dnum{background:var(--gold);color:var(--gold-ink);font-weight:700}
.cal-dbody{flex:1;display:flex;flex-direction:column;gap:4px;padding:6px 5px 12px}
.cal-none{display:none}
.cal-region{padding:7px 3px 1px;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.cal-region:first-child{padding-top:1px}
.ev{display:block;width:100%;min-width:0;text-align:left;border:0;border-left:3px solid #33b679;border-radius:5px;background:rgba(51,182,121,.15);color:var(--ink);padding:5px 7px 6px;font-size:12px;line-height:1.35;cursor:pointer;transition:background .12s}
.ev:hover,.ev.ev-on{background:rgba(51,182,121,.27)}
.ev:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.ev-top{display:flex;align-items:baseline;gap:5px;min-width:0}
.ev-time{flex:none;font-size:11.5px;font-weight:600;color:#8fd6b0}
.ev-top b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.ev-line,.ev-rep{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-line{color:var(--soft)}
.ev-rep{color:var(--dim);font-size:11.5px}
.ev-foot{display:flex;align-items:center;gap:6px;min-width:0}
.ev-foot .ev-rep{flex:1 1 auto;min-width:0}
.ev-st{flex:none;display:inline-block;margin:2px 0 1px auto;padding:1px 7px;border-radius:999px;font-size:10.5px;font-weight:700;background:#30405e55;color:var(--muted)}
.ev.st-needs-po .ev-st{background:var(--red-soft);color:var(--red)}
.ev.st-po-issue .ev-st{background:var(--amber-soft);color:var(--amber)}
.ev.st-po-collected .ev-st{background:var(--green-soft);color:var(--green)}
.is-past .ev{background:rgba(51,182,121,.08);border-left-color:#2b8a5e}
.is-past .ev:hover,.is-past .ev.ev-on{background:rgba(51,182,121,.2)}
.ev.ev-cx,.is-past .ev.ev-cx{background:rgba(255,255,255,.035);border-left-color:#5b6576;color:var(--dim)}
.ev.ev-cx b,.ev.ev-cx .ev-line{text-decoration:line-through;color:var(--dim)}
.ev.ev-cx .ev-time{color:var(--dim)}
/* Compact view (Josephine via Brian, 2026-10-05): one line per surgeon per day, "x5 Levi", so a day counts at a glance.
   The toggle sits in the middle of the bar, between the week's count and the region buttons; when the three do not fit
   on one line, door.js (calFitBar) gives it a line of its own below so the first line stays as it was. */
.cal-viewbox{display:flex;gap:12px;align-items:center}
/* The search box (Brian, 2026-10-09): always on the calendar, beside Compact/Detailed; it searches every case on every
   date and its matches replace the week until it is cleared. */
/* An explicit width, not a flex-basis: the bar decides whether the search/view group fits from each item's intrinsic width,
   and a search input's own intrinsic width (about 20 characters) would otherwise count instead of the box's real size. */
.cal-search{flex:0 0 auto;width:190px;min-width:0}
/* Compact / Detailed never gives up width to its neighbours: squeezed, its overflow:hidden cut the "D" off Detailed
   (Brian, 2026-10-09, Chrome on a wide screen). */
.cal-viewbox .cal-view{flex:none}
.cal-search input{padding-top:7px;padding-bottom:7px;font-size:13.5px}
.cal-found-top{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;padding:12px 16px;color:var(--soft);font-size:13.5px}
.cal-found-top .linkbtn{color:var(--gold-hover);font-weight:600}
.cal-found-h{padding:10px 16px 6px;border-top:1px solid var(--line);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.cal-bar.cal-bar-tight .cal-viewbox{order:3;flex-basis:100%}
.cal-grid.is-compact .cal-day{min-height:300px}
.cal-sx{display:flex;align-items:baseline;gap:7px;min-width:0;border-left:3px solid #33b679;border-radius:5px;background:rgba(51,182,121,.15);color:var(--ink);padding:5px 8px 6px;font-size:13px;line-height:1.35;cursor:default}
.cal-sx-n{flex:none;min-width:1.9em;font-weight:700;color:#8fd6b0;font-variant-numeric:tabular-nums}
.cal-sx b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.cal-sx-more{flex:none;margin-left:auto;font-size:10.5px;font-weight:700;color:var(--dim);white-space:nowrap}
.is-past .cal-sx{background:rgba(51,182,121,.08);border-left-color:#2b8a5e}
.cal-sx.cal-sx-cx,.is-past .cal-sx.cal-sx-cx{background:rgba(255,255,255,.035);border-left-color:#5b6576;color:var(--dim)}
.cal-sx.cal-sx-cx b{text-decoration:line-through;color:var(--dim)}
.cal-sx.cal-sx-cx .cal-sx-n{color:var(--dim)}
/* the case card (Google's event card): opens beside the case, a sheet from the bottom on a phone */
.cal-pop{position:fixed;z-index:70;top:80px;right:24px;width:340px;max-width:calc(100vw - 24px);padding:16px 18px 14px;border-radius:10px;border:2px solid var(--sh-tile-line);background:var(--sh-tile);box-shadow:0 22px 60px rgba(0,0,0,.55);font-size:13.5px;--dim:var(--sh-tile-muted)}
.pop-x{position:absolute;top:8px;right:8px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:20px;line-height:1}
.pop-x:hover{background:rgba(255,255,255,.07);color:var(--ink)}
.pop-h{display:flex;align-items:center;gap:9px;padding-right:30px}
.pop-h h3{font-size:17px;font-weight:700;letter-spacing:-.01em}
.pop-dot{flex:none;width:12px;height:12px;border-radius:3px;background:#33b679}
.pop-dot.st-cancelled{background:#5b6576}
.pop-sub{margin:3px 0 0 21px;color:var(--muted)}
.cal-pop dl{display:grid;grid-template-columns:78px minmax(0,1fr);gap:6px 12px;margin:12px 0 0}
.cal-pop dt{color:var(--dim);font-size:12px;padding-top:1px}
.cal-pop dd{margin:0;color:var(--soft);overflow-wrap:anywhere}
@media (max-width:760px){
  .wrap-wide{padding:14px 10px 60px}
  .cal-bar{padding:10px 10px 12px}
  .cal-nav{width:100%}
  .cal-arrow{width:44px;height:44px;min-width:44px}
  .cal-today,.cal .seg button,#cal-rep{min-height:44px;min-width:44px}
  .cal-viewbox{width:100%;flex-direction:column;align-items:stretch}
  .cal-viewbox .cal-search{flex:1 1 auto;width:100%;min-width:0}
  .cal-search input{min-height:44px}
  .cal-viewbox .cal-view{width:100%}
  .cal-title{font-size:16px;margin:0 4px}
  .cal-count{flex-basis:100%;margin:2px 0 0 2px}
  .cal-filters{width:100%}
  .seg{display:flex;width:100%}
  .seg button{flex:1;padding:8px 4px}
  .cal-filters select{flex:1 1 auto;max-width:none;width:100%}
  .cal-days{display:block}
  .cal-day{flex-direction:row;min-height:0;border-left:0;border-top:1px solid var(--line)}
  .cal-day:first-child{border-top:0}
  .cal-day.is-weekend{background:transparent}
  .cal-dh{flex:none;width:60px;justify-content:flex-start;border-bottom:0;padding:10px 2px}
  .cal-dnum{width:36px;height:36px;font-size:19px}
  .cal-dmon{display:block;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
  .cal-dcount{display:none}
  .cal-dbody{min-width:0;padding:10px 10px 10px 2px;gap:6px}
  .cal-none{display:block;padding-top:11px;font-size:12.5px;color:var(--dim)}
  .ev{font-size:13px;padding:7px 9px}
  .ev-time{font-size:12.5px}
  .ev-rep{font-size:12px}
  .cal-grid.is-compact .cal-day{min-height:0}
  .cal-sx{font-size:14px;padding:7px 9px}
  .cal-pop{left:10px!important;right:10px;top:auto!important;bottom:10px;width:auto;max-width:none;max-height:80vh;overflow:auto}
}

.settings{margin-top:22px}
.settings .sub-h{font-size:14px;font-weight:700;margin:0 0 12px;color:var(--ink)}
.settings .panel-b{padding:16px}
.settings .two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:700px){.settings .two{grid-template-columns:1fr}}
.kv{font-size:13px;color:var(--muted);line-height:1.7}
.kv b{color:var(--ink);font-weight:600}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
#profile-tools > .panel-b{padding:16px}
#profile-tools details{scroll-margin-top:72px}
#account-tools-status:empty{margin:0}
@media (max-width:760px){
  .settings .sees-modes .btn,.settings .actions .btn-sm,.settings #pw-btn{min-height:44px}
}

/* ---------- Settings: People & access (admins; Brian, 2026-10-03) ---------- */
.btn-danger{background:#5b1f22;color:#ffd2cf;border-color:rgba(255,123,114,.35)}
.btn-danger:hover{background:#7a2a2e}
.people{display:block}
.person{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px 18px;align-items:center;padding:11px 16px;border-top:1px solid var(--line)}
.person.saving{opacity:.55;pointer-events:none}
.person-access{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.sw{display:inline-flex;align-items:center;gap:7px;padding:5px 11px 5px 9px;border-radius:999px;border:1px solid var(--border);background:var(--bg2);color:var(--dim);font-size:12.5px;font-weight:600;cursor:pointer;user-select:none;transition:border-color .12s,color .12s,background .12s}
.sw:hover{border-color:rgba(214,167,58,.45);color:var(--muted)}
.sw.on{border-color:rgba(214,167,58,.55);background:var(--gold-soft);color:var(--gold-hover)}
.sw input{margin:0;width:14px;height:14px;accent-color:#d6a73a;cursor:pointer}
.sw-locked,.sw-locked input{cursor:default}
.sw-locked:hover{border-color:var(--border);color:var(--dim)}
.sw.on.sw-locked:hover{border-color:rgba(214,167,58,.55);color:var(--gold-hover)}
.access-key b{color:var(--ink);font-weight:600}
.person:first-child{border-top:0}
.person:hover{background:rgba(255,255,255,.02)}
.person-off .person-name b{color:var(--muted)}
.person-main{min-width:0}
.person-name{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:14px}
.person-main small{display:block;color:var(--muted);font-size:12px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-main small.dim,.dim{color:var(--dim)}
.small{font-size:12px}
.person-roles{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:600;background:var(--gold-soft);color:var(--gold-hover);border:1px solid rgba(214,167,58,.25)}
.pill-note{font-size:11px;color:var(--dim);margin-left:2px}
.tag{display:inline-block;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:600;background:#30405e55;color:var(--soft)}
.tag-off{background:var(--red-soft);color:var(--red)}
.tag-warn{background:var(--amber-soft);color:var(--amber)}
.person-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.person-out{grid-column:1/-1;margin-top:6px;padding:12px 14px;border-radius:8px;background:rgba(255,255,255,.03);border:1px solid var(--line);font-size:13px;line-height:1.6}
.person-out.result{border-color:rgba(214,167,58,.4);background:#d6a73a12}
.temp-pw{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;color:var(--gold-hover);background:var(--bg2);padding:2px 8px;border-radius:5px;border:1px solid var(--border);user-select:all}
.roles-edit .rolegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px 14px;margin-bottom:10px}
.rolebox{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--muted);cursor:pointer}
.rolebox b{color:var(--ink);font-weight:600}
.rolebox input{margin-top:3px;accent-color:#d6a73a}
.region-pick{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--soft);margin:2px 0 4px}
.region-pick select{background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:6px 8px;color:var(--ink);font:inherit;font-size:13px}
.roles-edit .actions .btn-gold{width:auto}
.unlinked{border-top:1px solid var(--line);background:#d6a73a0a}
.sub-panel-h{border-bottom:1px solid var(--line)}
.sub-panel-h h2{font-size:14px;color:var(--gold-hover)}
.unlinked .link-pick{background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:7px 9px;color:var(--ink);font:inherit;font-size:13px;max-width:260px}
.unlinked .btn-gold{width:auto}
@media (max-width:760px){
  .person{grid-template-columns:1fr}
  .person-access,.person-actions{justify-content:flex-start}
}

/* ---------- EOS (Brian, 2026-10-03): everybody in EOS and their open Rocks ---------- */
.eos-people{display:block}
/* EOS + My Rocks rework (Brian 2026-10-21 TG60344): the name once as the header with a one-line summary; each row is the
   Rock title, a short due day and a status pill (On track green, Off track red, Done muted). Dense, calm, no extra lines. */
.eos-person{padding:14px 16px 8px;border-top:1px solid rgba(214,167,58,.28)}
.eos-person+.eos-person{margin-top:6px}
.eos-person:first-child{border-top:0}
.eos-you{background:#d6a73a0d}
.eos-head{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-bottom:4px;padding-bottom:5px;border-bottom:1px solid rgba(255,255,255,.06);font-size:15px}
.eos-head .eos-name{color:var(--gold);font-weight:750;letter-spacing:.01em}
.eos-count{margin-left:auto;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.eos-has-off .eos-count{color:#ff9b93}
.rock{display:grid;grid-template-columns:minmax(0,1fr) 62px 78px;gap:10px;align-items:center;padding:6px 0;border-top:1px solid rgba(255,255,255,.04);font-size:13.5px}
.eos-head+.rock,.eos-mine>.rock:first-child{border-top:0}
.rock-title{min-width:0;color:var(--ink);line-height:1.35;overflow-wrap:anywhere;text-wrap:balance;text-wrap:pretty}
.rock-due{color:var(--muted);font-size:12px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.eos-pill{justify-self:end;display:inline-block;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:600;line-height:1.5;white-space:nowrap;text-align:center;min-width:64px}
.eos-pill-on{color:#5BE38A;background:#15301F}
.eos-pill-off{color:#FF7A7A;background:#3A1C1C}
.eos-pill-done{color:var(--muted);background:rgba(255,255,255,.06)}
.rock-done .rock-title{color:var(--muted)}
.eos-quiet{padding:12px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.6}
.eos-quiet b{color:var(--soft)}
@media(max-width:760px){#eos .filters input,#eos .filters select{min-height:44px}}
/* EOS Scorecard (2026-11-09): one headed block per team, 13 weeks newest first, green = met goal, red = missed */
#eos-sc{margin-top:16px}
.sc-block{padding:14px 16px 10px;border-top:1px solid rgba(214,167,58,.28)}
.sc-block:first-child{border-top:0}
.sc-head{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-bottom:8px;font-size:15px}
.sc-team{color:var(--gold);font-weight:750;letter-spacing:.01em}
.sc-l10{margin-left:auto;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.sc-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.sc-table{border-collapse:collapse;font-size:13px;min-width:100%}
.sc-table th{text-align:left;color:var(--dim);font-size:11.5px;font-weight:600;padding:5px 6px;border-bottom:1px solid var(--line);white-space:nowrap}
.sc-table td{padding:6px;border-bottom:1px solid rgba(255,255,255,.06);white-space:nowrap}
.sc-table tr:last-child td{border-bottom:0}
.sc-table .num{text-align:center;font-variant-numeric:tabular-nums;min-width:46px}
.sc-table .sc-m{white-space:normal;min-width:180px;max-width:260px;position:sticky;left:0;background:var(--bg2);z-index:1}
.sc-table .sc-o{color:var(--soft)}
.sc-table .sc-g{color:var(--muted);font-variant-numeric:tabular-nums}
.sc-table td.sc-hit{color:#5BE38A;background:#15301F}
.sc-table td.sc-miss{color:#FF7A7A;background:#3A1C1C}
@media (max-width:700px){.sc-block{padding:12px 10px 8px}.sc-table .sc-m{min-width:140px}}
@media (max-width:700px){
  .eos-person{padding:12px 12px 6px}
  .rock{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;font-size:13.5px}
  .eos-pill{min-width:0;padding:2px 7px}
}

/* ---------- Sample cases (Brian, 2026-10-03): who holds each case, contents, signed handoffs ---------- */
.s-group{margin-bottom:18px}
.s-case{padding:12px 16px;border-top:1px solid var(--line)}
.s-case:first-of-type{border-top:0}
/* Sample cases only: explicit custody cards, never a flattened inventory list. */
.sample-page .wrap{max-width:1400px}
.sample-page .s-group{margin:28px 0 36px}
.sample-page .s-group-title{display:flex;align-items:baseline;gap:12px;margin:0 0 14px}
.sample-page .s-group-title h2{font-size:21px;margin:0;color:#dcb66e}
.sample-page .s-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.sample-page .s-case{min-width:0;padding:16px 18px;border:1px solid #405064;border-radius:16px;background:#141c27;box-shadow:0 8px 24px #0003;color:#e8eef7}
.sample-page .s-case.s-case-mine{border-top:3px solid #bd9858}
.sample-page .s-head{display:block;padding-bottom:12px;text-align:center}
.sample-page .s-title{display:flex;align-items:center;flex-direction:column;gap:7px}
.sample-page .s-title>b{font-size:17px;line-height:1.3;color:#e8eef7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sample-page .s-holder{margin-top:8px;line-height:1.3;display:flex;flex-direction:column;align-items:center;gap:4px}
.sample-page .s-holder-name{display:block;max-width:100%;font-size:23px;font-weight:800;line-height:1.2;color:#e2b74f;overflow-wrap:anywhere}
.sample-page .s-holder-name.s-holder-none{color:#7a8aa1;font-weight:700}
.sample-page .s-since{display:block;font-size:17px;font-weight:700;line-height:1.3;color:#e2b74f}
.sample-page .s-contents{padding:16px 0}
.sample-page .s-contents h3{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:#93a4b8;margin:0 0 12px}
.sample-page .s-items{margin:0;padding-left:18px;line-height:1.7}
.sample-page .s-actions{padding-top:12px;border-top:1px solid #334155;display:flex;flex-wrap:wrap;gap:8px}
.sample-page .s-panel{padding:16px 0 0;background:transparent;border:0;border-top:1px solid #334155;border-radius:0}
.sample-page .s-case:has(.s-panel:not(.hidden)){grid-column:1/-1}
.sample-page .s-hist{padding:14px 0;overflow-wrap:anywhere}
.s-photo-picker{margin:16px 0;padding:14px;border:1px dashed #526078;border-radius:10px}
.s-photo-label{margin-bottom:12px;font-size:13px}
.s-photo-count{margin-left:8px}
.s-photo-input{display:block;max-width:100%;font-size:12px;margin-top:8px}
.s-photo-drafts,.s-photo-history{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.s-photo-history{flex-basis:100%}
.s-photo-drafts>div{display:flex;flex-direction:column;gap:6px}
.s-photo-drafts img,.s-photo-history img{width:76px;height:76px;object-fit:cover;border-radius:8px}
.s-photo-history .s-photo{display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px}
.s-photo-history .s-photo small{font-size:11px;color:#93a4b8}
.s-photo-history button{padding:0;border:1px solid #526078;background:#101722;border-radius:9px;cursor:zoom-in}
.s-photo-error{font-size:13px;color:#e1ba77;margin-top:8px}
.s-lightbox{padding:0;border:1px solid #526078;border-radius:14px;background:#0c111a;color:#e8eef7;width:calc(100vw - 36px);max-width:1400px;height:calc(100dvh - 36px);max-height:none;overflow:hidden}
.s-lightbox[open]{display:flex;flex-direction:column;margin:auto}
.s-lightbox::backdrop{background:#03060bea}
.s-lightbox-bar,.s-lightbox-nav{display:flex;align-items:center;gap:10px;padding:14px}
.s-lightbox-bar strong{flex:1}
.s-lightbox button{background:#253144;color:#e8eef7;border:1px solid #526078;border-radius:8px;padding:10px;cursor:pointer}
.s-lightbox button:disabled{opacity:.35;cursor:default}
.s-lightbox-view{display:flex;flex:1;min-height:0;overflow:auto;background:#080c12}
.s-lightbox-view img{flex-shrink:0;display:block;height:auto;object-fit:contain;margin:auto}
.s-lightbox-nav{justify-content:space-between;font-size:12px;color:#a8b6c9}
@media(max-width:1100px){.sample-page .s-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sample-page .s-grid{grid-template-columns:1fr;gap:18px}.sample-page .s-case{padding:18px}.s-lightbox{width:100vw;height:100dvh;border:0;border-radius:0}.s-lightbox-nav span{display:none}}
.s-head{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) auto;gap:10px 14px;align-items:center}
.s-title{display:flex;align-items:baseline;gap:8px;font-size:15px}
.s-title .dim{font-size:12px}
.s-holder{font-size:13.5px;color:var(--soft)}
.s-holder small{margin-left:4px}
.s-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.tag-ok{background:var(--green-soft);color:var(--green)}
.s-items{margin:8px 0 0;padding:0 0 0 18px;columns:2;column-gap:28px;font-size:13px;color:var(--soft);line-height:1.55}
.s-items li{break-inside:avoid}
.s-items small{color:var(--dim)}
.s-panel{margin-top:12px;padding:12px 14px;border-radius:8px;background:rgba(255,255,255,.03);border:1px solid var(--line)}
.s-hist{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:7px 0;border-top:1px solid var(--line);font-size:13px}
.s-hist:first-child{border-top:0}
.s-when{color:var(--dim);font-size:12px;min-width:150px}
.s-who{color:var(--soft)}
.s-pdf{margin-left:auto;color:var(--gold-hover);font-weight:600}
.s-missing,.s-note{flex-basis:100%;font-size:12px;color:var(--muted)}
.s-missing{color:#ffd2cf}
.s-check{display:flex;flex-direction:column;gap:6px;padding:7px 0;border-top:1px solid var(--line)}
.s-check:first-of-type{border-top:0}
.s-present{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--ink);cursor:pointer}
.s-present input{width:18px;height:18px;accent-color:#d6a73a}
.s-present small{color:var(--dim)}
.s-itemnote,.s-notes,.s-hnote,.s-row input,.s-people{width:100%;background:var(--bg2);border:1px solid var(--border);border-radius:6px;padding:8px 10px;color:var(--ink);font:inherit;font-size:13.5px}
.s-notes{min-height:64px;resize:vertical;margin-top:10px}
.s-sig{margin-top:12px}
.s-sig canvas{display:block;width:100%;max-width:640px;height:220px;background:var(--bg2);border:1px dashed var(--gold);border-radius:8px;touch-action:none;cursor:crosshair}
.s-sig-row{display:flex;justify-content:space-between;align-items:center;max-width:640px;margin-top:4px}
.s-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) 72px auto;gap:8px;align-items:center;padding:5px 0}
.s-row .s-reason{grid-column:1/-1}
.s-row.s-removing .s-desc,.s-row.s-removing .s-part,.s-row.s-removing .s-qty{opacity:.45;text-decoration:line-through}
.s-add{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
.s-cost{width:104px}
.s-items .s-cost{color:var(--soft)}
.s-policy{margin:10px 0 6px;padding:8px 12px;border-left:3px solid #d4a53a;background:rgba(212,165,58,.08);border-radius:0 8px 8px 0;font-size:13px;line-height:1.5;color:var(--soft)}
.s-deduct{font-weight:600}
.s-holderset .s-people{margin:8px 0}
.s-foot{border-top:0;padding:14px 4px}
@media (max-width:760px){
  .s-head{grid-template-columns:1fr}
  .s-actions{justify-content:flex-start}
  .sample-page .s-actions{flex-direction:column;align-items:stretch}
  .sample-page .s-actions .btn{min-height:44px;width:100%}
  .sample-page .s-panel .btn,.sample-page .s-panel .linkbtn,.sample-page .s-present,.sample-page .s-photo-input{min-height:44px}
  .sample-page .s-pdf{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
  .s-items{columns:1}
  .s-row{grid-template-columns:1fr 1fr}
  .s-row .s-desc{grid-column:1/-1}
}

/* ---------- logout ---------- */
.bye{min-height:calc(100vh - 48px);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px}
/* Person-scoped calendar choices; inherit the website's dark surfaces. */
.sees-modes,.sees-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.sees-modes .btn{width:auto;flex:1;white-space:nowrap;font-size:14px;padding:12px 10px}
.sees-status{min-height:24px;margin:12px 0}
.sees-tools input{flex:1;min-width:140px;background:#10151d;border:1px solid #303b4d;border-radius:7px;padding:10px 12px;color:#eef1f6;font:inherit}
.sees-list{max-height:380px;overflow:auto;margin-top:12px}
.sees-group h3{font-size:14px;color:var(--muted,#abb5c4);margin:18px 0 8px}
.sees-person{display:flex;gap:12px;align-items:center;padding:12px 8px;border-bottom:1px solid #ffffff0d;cursor:pointer}
.sees-person input{width:18px;height:18px;accent-color:#d4b77d;flex-shrink:0}
.sees-person small{display:block;color:var(--muted,#abb5c4);margin-top:3px}
.person-profile-name{font:inherit;font-weight:600;color:inherit;border:0;background:none;padding:0;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:4px}
.sees-profile{background:#141a23;color:#eef1f6;border:1px solid #ffffff20;border-radius:16px;padding:0;margin:auto;width:min(640px,calc(100% - 24px));max-height:90dvh;overflow:auto}
.sees-profile .panel-b{padding:24px}
.sees-profile h3{margin-bottom:14px}
.sees-profile .person-access{justify-content:flex-start;margin-top:14px}
.sees-profile::backdrop{background:#000b}
.sees-profile .panel-h{display:flex;justify-content:space-between;gap:12px}
.sees-profile .person{padding:0;border:0;display:block;margin-bottom:24px}
@media(max-width:600px){.sees-modes .btn{flex:1;padding-inline:10px}.sees-profile .panel-b{padding:16px}}

/* FedEx codes (Operations → FedEx codes, Brian 2026-10-07): one row per senior rep, juniors under their senior's code. */
.fx-howto{margin:0;padding:13px 16px;border-bottom:1px solid var(--line);color:var(--soft);font-size:14px;line-height:1.5}
.fx-howto b{color:var(--gold-hover);font-weight:700}
.fx-row{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,190px);gap:12px;align-items:center;padding:11px 16px;border-top:1px solid var(--line);font-size:14px}
.fx-code{font-size:22px;font-weight:800;color:var(--gold);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.fx-rep b{display:block;color:var(--ink);font-weight:650}
.fx-rep small{display:block;margin-top:2px;color:var(--muted);font-size:12.5px;line-height:1.4}
.fx-region{color:var(--dim);font-size:12.5px;text-align:right}
.fx-row mark{background:var(--gold-soft);color:var(--gold-hover);border-radius:3px;padding:0 2px}
@media (max-width:640px){.fx-row{grid-template-columns:52px minmax(0,1fr);row-gap:2px}.fx-code{grid-row:span 2}.fx-region{text-align:left}}

/* ---------- Turn ratios (Inventory ▾, 2026-10-09) + Operations page shells (admin side) ---------- */
.tr-source{margin:-6px 0 14px;color:var(--muted);font-size:13px;text-wrap:balance;text-wrap:pretty}
.tr-head{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline;padding:14px 16px;border-bottom:1px solid var(--line)}
.tr-head b{font-size:15px}
.tr-head span{color:var(--muted);font-size:13px}
/* Joint buttons on the header line (Brian 2026-10-17 10:39): big, gold, to the right of the target, never small tabs. */
.tr-head{align-items:center}
.tr-joints{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.tr-joint{border:1.5px solid var(--gold);background:transparent;color:var(--gold-hover);padding:10px 20px;border-radius:9px;font-size:15px;font-weight:700;letter-spacing:.02em;cursor:pointer;min-width:96px}
.tr-joint:hover{background:var(--gold-soft)}
.tr-joint.on{background:var(--gold);color:var(--gold-ink);box-shadow:0 6px 18px rgba(214,167,58,.28)}
.tr-joint:focus-visible{outline:2px solid var(--gold-hover);outline-offset:2px}
#tr-tabs:empty{display:none}
@media (max-width:760px){.tr-joints{margin-left:0;width:100%}.tr-joint{flex:1;padding:10px 8px;font-size:14px;min-width:0}}
.tr-band{padding:12px 16px 4px}
.tr-band h3{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:8px}
.tr-table{width:100%;border-collapse:collapse;font-size:14px;margin-bottom:10px;table-layout:fixed}
.tr-table th:first-child{width:46%}
.tr-table th{text-align:left;color:var(--dim);font-size:12px;font-weight:600;padding:6px 8px;border-bottom:1px solid var(--line)}
.tr-table td{padding:8px;border-bottom:1px solid var(--line)}
.tr-table th.num,.tr-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tr-table tr:last-child td{border-bottom:0}
.op-list{display:grid;gap:10px;padding:16px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.op-card{display:block;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--card);text-decoration:none}
.op-card:hover{border-color:var(--line-strong);background:rgba(255,255,255,.06)}
.op-card b{display:block;font-size:15px;margin-bottom:6px}
.op-card span{color:var(--muted);font-size:13px;line-height:1.45}
.op-holds{padding:16px;font-size:15px;line-height:1.5;border-bottom:1px solid var(--line)}
.op-tab{padding:14px 16px;border-bottom:1px solid var(--line)}
.op-tab h3{font-size:14px;margin-bottom:8px}
.op-tab h3 small{color:var(--dim);font-weight:500;margin-left:6px}
.op-cols{display:flex;flex-wrap:wrap;gap:6px}
.op-cols span{padding:4px 9px;border:1px solid var(--border);border-radius:999px;color:var(--soft);font-size:12.5px;background:var(--bg2)}
.op-shape{color:var(--soft);font-size:13.5px;line-height:1.45}
@media (max-width:760px){.tr-table{font-size:13px}.tr-table th,.tr-table td{padding:7px 5px}}
/* Turn ratios page, Brian 2026-10-17 10:48: one big white date at the top, a clean stat row, red/green band headings, the pay-period
   trend P1–P12 + arrow. Small and tight — no tiles; the page is wider so a row stays on one line on a desktop. */
.tr-page .wrap{max-width:1320px}
.tr-page .hello{align-items:baseline}
.tr-page .hello .sub{color:var(--ink);font-size:22px;font-weight:700;letter-spacing:-.01em}
.tr-stats{gap:10px 34px;padding:14px 18px}
.tr-stat{display:flex;flex-direction:column;gap:3px;min-width:0}
.tr-stat b{font-size:1.75rem;line-height:1;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.tr-stat span{font-size:11.5px;color:var(--dim);font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.tr-stat.good b{color:var(--green)} .tr-stat.low b{color:var(--red)}
.tr-band h3.tr-bh{padding-left:9px;border-left:2px solid var(--line-strong);text-transform:none;letter-spacing:.01em;font-size:13px}
.tr-band h3.tr-bh.bad{color:var(--red);border-left-color:var(--red)}
.tr-band h3.tr-bh.good{color:var(--green);border-left-color:var(--green)}
.tr-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tr-table.tr-trend{table-layout:fixed;min-width:1000px;font-size:13.5px}
.tr-table.tr-trend th:first-child{width:auto}
.tr-table.tr-trend th:nth-child(2){width:58px}.tr-table.tr-trend th:nth-child(3){width:94px}.tr-table.tr-trend th:nth-child(4){width:86px}
.tr-table.tr-trend td:first-child{white-space:nowrap;max-width:330px;overflow:hidden;text-overflow:ellipsis}
.tr-table.tr-trend th,.tr-table.tr-trend td{padding:7px 7px}
.tr-table.tr-trend .tr-p{width:44px;color:var(--soft);font-size:12.5px}
.tr-table.tr-trend th.tr-p{color:var(--dim)}
.tr-table.tr-trend .tr-p.live{background:var(--gold-soft)}
.tr-table.tr-trend th.tr-p.live{color:var(--gold-hover);white-space:nowrap}
.tr-table.tr-trend .tr-tr{white-space:nowrap;text-align:left;color:var(--dim);font-size:12.5px;width:126px;padding-left:14px}
.tr-tr.up{color:var(--green)!important} .tr-tr.down{color:var(--red)!important}
.tr-tr i{font-style:normal;font-size:10px;margin-right:3px}
@media (max-width:760px){
  .tr-page .hello .sub{font-size:18px}
  .tr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 10px;padding:12px 14px}
  .tr-stats .tr-joints{grid-column:1/-1}
  .tr-stat b{font-size:1.35rem}
  .tr-stat span{font-size:10.5px;letter-spacing:.02em}
  .tr-table.tr-trend{min-width:830px;font-size:13px}
  .tr-table.tr-trend th,.tr-table.tr-trend td{padding:7px 5px}
  .tr-table.tr-trend th{white-space:normal;line-height:1.2}
  .tr-table.tr-trend th:first-child{width:112px}.tr-table.tr-trend th:nth-child(2){width:38px}.tr-table.tr-trend th:nth-child(3){width:58px}.tr-table.tr-trend th:nth-child(4){width:56px}
  .tr-table.tr-trend .tr-p{width:40px}
  .tr-table.tr-trend td:first-child,.tr-table.tr-trend th:first-child{position:sticky;left:0;z-index:1;background:#16191d;max-width:112px}
}
/* Current ratios / Data + per-rep drop-downs (Brian 2026-10-26 08:34, TG 61443). */
#tr-tabs{padding:12px 16px 0}
.tr-modes{display:flex;gap:0;border:1.5px solid var(--line-strong);border-radius:10px;overflow:hidden;width:max-content}
.tr-mode{background:transparent;border:0;color:var(--soft);padding:9px 22px;font-size:14.5px;font-weight:700;cursor:pointer}
.tr-mode+.tr-mode{border-left:1.5px solid var(--line-strong)}
.tr-mode:hover{background:rgba(255,255,255,.05);color:var(--ink)}
.tr-mode.on{background:var(--ink);color:#0c0f14}
.tr-mode:focus-visible{outline:2px solid var(--gold-hover);outline-offset:-2px}
.tr-stat b.tr-win{font-size:1.15rem;white-space:nowrap}
.tr-bars{display:grid;gap:7px;margin-bottom:8px}
.tr-bar{display:grid;grid-template-columns:minmax(120px,240px) 1fr 84px;gap:10px;align-items:center;font-size:13.5px}
.tr-bl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--soft)}
.tr-bt{display:flex;height:16px;border-radius:4px;background:rgba(255,255,255,.04);overflow:hidden}
.tr-bt i{display:block;height:100%}
.tr-bt i.ok,.tr-key i.ok{background:var(--green)} .tr-bt i.no,.tr-key i.no{background:var(--red)}
.tr-bn{text-align:right;font-variant-numeric:tabular-nums;color:var(--dim);white-space:nowrap}
.tr-bn b.ok{color:var(--green)} .tr-bn b.no{color:var(--red)}
.tr-key{display:flex;gap:16px;color:var(--dim);font-size:12.5px;margin:2px 0 10px}
.tr-key i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.tr-table.tr-types th:first-child{width:34%}.tr-table.tr-types th:nth-child(2),.tr-table.tr-types th:nth-child(3){width:96px}
.tr-why{color:var(--soft);font-size:13px;line-height:1.45}
.tr-note{color:var(--dim);font-size:13px;margin:2px 0 12px;text-wrap:pretty}
.tr-other{padding:0 16px 14px}
.tr-caret{background:none;border:0;color:inherit;font:inherit;padding:0;cursor:pointer;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tr-caret i{font-style:normal;color:var(--gold-hover);display:inline-block;width:16px;font-size:12px}
.tr-caret:hover{color:var(--gold-hover)}
.tr-caret:focus-visible{outline:2px solid var(--gold-hover);outline-offset:2px}
.tr-table.tr-trend tr.tr-open td{border-bottom-color:transparent}
.tr-table.tr-trend tr.tr-detail td{white-space:normal;max-width:none;overflow:visible;padding:0 7px 12px;background:transparent}
.tr-det{position:sticky;left:8px;max-width:min(760px,88vw);padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.03)}
.tr-det h4{font-size:12px;color:var(--red);font-weight:700;margin:10px 0 4px}
.tr-dl{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.tr-dl li{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:4px 12px;align-items:baseline;font-size:13px;padding:3px 0;border-bottom:1px dashed var(--line)}
.tr-dl li:last-child{border-bottom:0}
.tr-dl .tr-loc{color:var(--ink)} .tr-dl .tr-ty{color:var(--soft)}
.tr-dl em{grid-column:1/3;grid-row:2;font-style:normal;color:var(--dim);font-size:12px}
.tr-dl b{grid-column:3;grid-row:1;font-variant-numeric:tabular-nums;text-align:right}
.tr-dno .tr-loc,.tr-dno .tr-ty{color:var(--dim)}
.tr-dnone{color:var(--dim);font-size:13px}
@media (max-width:760px){
  #tr-tabs{padding:10px 14px 0}
  .tr-modes{width:100%}.tr-mode{flex:1;padding:10px 8px}
  .tr-bar{grid-template-columns:minmax(0,1fr) 70px;gap:3px 8px}
  .tr-bl{grid-column:1/-1}
  .tr-table.tr-trend tr.tr-detail td{position:static;padding:0 5px 10px}
  .tr-det{left:0;max-width:calc(100vw - 64px);padding:10px 12px}
  /* Count first on phones so the scroll box can never clip it. */
  .tr-dl li{grid-template-columns:2.4em minmax(0,1fr);gap:1px 8px}
  .tr-dl b{grid-column:1;grid-row:1;text-align:left;color:var(--gold-hover)}
  .tr-dl .tr-loc{grid-column:2;grid-row:1}
  .tr-dl .tr-ty{grid-column:2;grid-row:2}
  .tr-dl em{grid-column:2;grid-row:3}
  /* Surgery-type table stacks: name + counts on one line, the reasons underneath. */
  .tr-table.tr-types{display:block;min-width:0}
  .tr-table.tr-types thead{display:none}
  .tr-table.tr-types tbody{display:block}
  .tr-table.tr-types tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:3px 12px;padding:9px 0;border-bottom:1px solid var(--line)}
  .tr-table.tr-types td{display:block;padding:0;border:0;width:auto;white-space:normal}
  .tr-table.tr-types td:nth-child(2)::before{content:"Counted ";color:var(--dim);font-size:11.5px;font-weight:400}
  .tr-table.tr-types td:nth-child(3)::before{content:"Not ";color:var(--dim);font-size:11.5px;font-weight:400}
  .tr-table.tr-types td:nth-child(4){grid-column:1/-1}
}

/* ---- People & access: every tab, grouped like the bar (Brian, 2026-10-09 10:34, 55487) ---- */
.pa-scroll{--pa-bg:#11161e;overflow-x:auto;-webkit-overflow-scrolling:touch;border-top:1px solid var(--line)}
.pa-grid{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:12.5px}
.pa-grid th,.pa-grid td{padding:0;border-bottom:1px solid var(--line);background:var(--pa-bg)}
.pa-grid thead th{position:sticky;top:0;z-index:2;color:var(--muted);font-weight:600;text-align:center;vertical-align:bottom}
.pa-grid .pa-who{position:sticky;left:0;z-index:3;text-align:left;min-width:220px;max-width:260px;padding:10px 14px;border-right:1px solid var(--line);vertical-align:top;font-weight:400}
.pa-grid thead .pa-who{z-index:4;vertical-align:bottom;color:var(--muted);font-weight:600}
.pa-grid .pa-sides th{padding:9px 10px 6px;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--soft,#c9d1dc)}
.pa-grid .pa-side-r{color:var(--gold-hover,#e7bd5a)}
.pa-grid .pa-menus th{padding:0 4px 4px;font-size:11px;color:var(--dim);font-weight:600;white-space:nowrap}
.pa-grid .pa-menus th[colspan]{border-bottom:1px solid var(--border)}
.pa-grid .pa-tab{height:118px;width:38px;min-width:38px;padding:6px 0}
.pa-grid .pa-tab span{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;color:var(--ink);font-weight:600;font-size:12px}
.pa-grid .pa-r .pa-tab span,.pa-grid .pa-tab.pa-r span{color:var(--gold-hover,#e7bd5a)}
/* the line: the same bright two-pixel divider as the bar, between My Rocks and PO Board */
.pa-grid .pa-line{box-shadow:inset 2px 0 0 rgba(232,238,247,.42);padding-left:2px}
.pa-grid .pa-cell{text-align:center;vertical-align:middle;width:38px}
.pa-grid tbody tr:hover th,.pa-grid tbody tr:hover td{background:#141a23}
.pa-grid tbody .pa-who small{display:block;color:var(--muted);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pa-grid tbody .pa-who small.pa-lockline{color:var(--dim);font-size:11px}
.pa-grid .person-actions{justify-content:flex-start;margin-top:7px}
.pa-grid .person-actions .btn-sm{padding:3px 8px;font-size:11.5px}
.pa-grid .person-out{margin-top:8px;white-space:normal}
.pa-grid tr.saving{opacity:.55;pointer-events:none}
.pa-sw{position:relative;display:inline-block;width:28px;height:16px;cursor:pointer;vertical-align:middle}
.pa-sw input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.pa-sw .pa-knob{position:absolute;inset:0;border-radius:999px;background:#2a3240;border:1px solid var(--border);transition:background .12s,border-color .12s}
.pa-sw .pa-knob::after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#7d8796;transition:transform .12s,background .12s}
.pa-sw.on .pa-knob{background:#d6a73a;border-color:#d6a73a}
.pa-sw.on .pa-knob::after{transform:translateX(12px);background:#1a1305}
.pa-sw input:focus-visible+.pa-knob{outline:2px solid #e7bd5a;outline-offset:2px}
.pa-sw.pa-locked,.pa-sw.pa-locked input{cursor:not-allowed}
.pa-sw.pa-locked .pa-knob{opacity:.38;background:#1f252f;border-style:dashed}
.pa-sw.pa-locked.on .pa-knob{opacity:.55;background:#8a6d2a;border-color:#8a6d2a;border-style:solid}
.pa-legend{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;margin:8px 0 0;font-size:12px;color:var(--muted)}
.pa-legend .pa-sw{pointer-events:none}
.pa-profile{display:grid;gap:12px;margin:12px 0 20px}
.pa-profile h3{margin:0 0 6px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.pa-profile .pa-line{border-top:2px solid rgba(232,238,247,.42);padding-top:10px}
.pa-profile-tabs{display:flex;flex-wrap:wrap;gap:6px}
@media (max-width:760px){.pa-grid .pa-who{min-width:150px;max-width:170px}.pa-grid .person-actions .btn-sm{font-size:11px}}
/* table rows, not the old card grid (.person{display:grid} above) */
.pa-grid tr.person{display:table-row;padding:0;border:0}
.pa-grid tr.person>th,.pa-grid tr.person>td{border-top:0}
.pa-grid .pa-who .person-out{max-width:230px}
.pa-grid thead th{position:static}

/* October 11 FedEx rows (the EOS yellow line was replaced by the status pill, 2026-10-21). */
.fx-row{grid-template-columns:64px minmax(0,1fr)}.fx-rep{min-width:0;overflow-wrap:anywhere}.fx-rep small{color:#aab1bb}

/* Compact phone header (Brian 2026-10-11 TG 56301): the calendar gets the room; every control stays. Same rules as the
   app's Cases header: slimmer greeting, button and Forecast box (one row: week · Excel · Snapshot), tighter calendar bar. */
@media(max-width:760px){
  .hello-cal{gap:8px;margin:0 0 10px}
  .hello-cal .hello h1,.hello-cal h1{font-size:19px}
  #new-case-button.nc-big{min-height:48px;font-size:16px}
  .fc-box{padding:8px 10px 10px;gap:6px}
  .fc-hint{display:none}
  .fc-controls{flex-wrap:nowrap;gap:6px}
  #forecast-week{flex:1 1 0;min-width:0}
  .fc-btn{flex:0 0 auto;padding:0 10px}
  #forecast-tools select,#forecast-tools button{min-height:40px;height:40px}
  .cal-bar{padding:8px 10px;gap:6px 10px}
  .cal-title{font-size:17px}
  .cal-today{padding:5px 12px}
  .cal-today,.cal .seg button,#cal-rep{min-height:38px}
  .cal-arrow{width:40px;height:40px;min-width:40px}
  .cal-viewbox{flex-direction:row;align-items:stretch;gap:6px}
  .cal-viewbox .cal-search{flex:1 1 0}
  .cal-search input{min-height:38px}
  .cal-viewbox .cal-view{display:inline-flex;width:auto;flex:0 0 auto}
  .cal-viewbox .cal-view button{flex:0 0 auto;padding:6px 12px}
}

/* ── One look for every page (Brian 2026-10-21, TG 60298). Cases and Backorders are the reference: title and its one-line
   description centered on top; the title is the My Shipments / Implants size, the description 16px. Calendar (.hello-cal) and
   Trays are left alone. No gold side line down any panel. Sample-case buttons stay on one line. */
.hello:not(.hello-cal){flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
.hello:not(.hello-cal) h1{font-size:clamp(1.7rem,5vw,2.3rem);line-height:1.15}
.hello:not(.hello-cal) .sub,.tr-page .hello .sub{font-size:16px}
.hello:not(.hello-cal)>.btn{margin-left:0!important}
.wrap>.field,.wrap>label.field{margin-left:auto;margin-right:auto}
.wrap>p[role=status],.wrap>#person-status,.tr-source{text-align:center}
.wrap>.person-links{justify-content:center}
.banner,.s-policy{border-left:0;border-radius:8px}
.sample-page .s-actions{flex-wrap:nowrap;gap:6px;justify-content:flex-end}
.sample-page .s-actions>.btn,.sample-page .s-actions>.tag{flex:0 1 auto;min-width:0;padding:6px 9px;font-size:12px;white-space:nowrap}
@media(max-width:1340px) and (min-width:701px){.sample-page .s-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* One stats panel on both views (Brian 2026-10-26 09:18, TG 61450). */
.tr-stat small{font-size:11.5px;color:var(--dim);font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:760px){
  .tr-panel{grid-template-columns:repeat(3,auto);justify-content:space-between;column-gap:8px}
  .tr-panel .tr-stat span{white-space:nowrap}
  .tr-panel .tr-stat small{font-size:10.5px}
  .tr-panel .tr-stat b.tr-win{font-size:.95rem;line-height:1.35rem}
  .tr-panel .tr-stat span{letter-spacing:0}
}
/* P10 fix + what-counts switches (Brian 2026-10-26 09:25, TG 61452). Rep column capped so the periods sit closer and wider;
   "so far" drops under the live period so it never runs into the next one. */
.tr-table.tr-trend{min-width:1060px}
.tr-table.tr-trend th:first-child{width:250px}
.tr-table.tr-trend td:first-child{max-width:250px}
.tr-table.tr-trend .tr-p{width:auto}
.tr-table.tr-trend th.tr-p small{display:block;font-size:10.5px;font-weight:600;line-height:1.1;white-space:nowrap}
.tr-table.tr-trend th.tr-p.live{line-height:1.15}
#tr-tabs{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 18px}
/* Brian 2026-10-26 09:52 (TG 61463): the toggles must not move the screen around. Presets are pinned to the top-right corner on
   their own line; chips sit under them in a box tall enough for two rows, so Hip / Knee / Shoulder all start the stats row at the
   same height and Our count / Corporate view never slide left or right. */
.tr-tgl{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:min(860px,100%)}
.tr-pre{display:flex;border:1.5px solid var(--gold);border-radius:10px;overflow:hidden}
.tr-preb{background:transparent;border:0;color:var(--gold-hover);padding:8px 14px;font-size:13.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.tr-preb+.tr-preb{border-left:1.5px solid var(--gold)}
.tr-preb.on{background:var(--gold);color:var(--gold-ink)}
.tr-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;align-content:flex-start;min-height:68px}
.tr-chip{display:inline-flex;align-items:center;gap:5px;background:transparent;border:1.5px solid var(--line-strong);color:var(--dim);border-radius:999px;padding:6px 11px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.tr-chip i{font-style:normal;width:11px;font-size:11px;color:var(--green)}
.tr-chip small{color:var(--dim);font-weight:500;font-variant-numeric:tabular-nums}
.tr-chip.on{border-color:var(--green);color:var(--ink)}
.tr-chip:not(.on){text-decoration:line-through;text-decoration-color:var(--red)}
.tr-preb:focus-visible,.tr-chip:focus-visible{outline:2px solid var(--gold-hover);outline-offset:2px}
.tr-panel.tr-alt{box-shadow:inset 3px 0 0 var(--gold)}
@media (max-width:760px){
  .tr-table.tr-trend{min-width:830px}
  .tr-table.tr-trend th:first-child{width:112px}
  .tr-table.tr-trend td:first-child{max-width:112px}
  .tr-table.tr-trend .tr-p{width:40px}
  .tr-tgl{margin-left:0;width:100%;align-items:stretch;max-width:none}
  .tr-pre{width:100%}.tr-preb{flex:1;padding:10px 8px}
  .tr-chips{justify-content:flex-start;min-height:0}
  .tr-chip{padding:8px 11px}
}
/* Layout (Brian 2026-10-26 09:31, TG 61455): window date under the title, a little bigger; Rules beside Hip / Knee / Shoulder,
   same size, still blue. */
.tr-page .hello .sub{font-size:20px;font-weight:700;color:var(--ink)}
.tr-joint.tr-rulesb{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#30405e;border-color:#30405e;color:var(--ink)}
.tr-joint.tr-rulesb:hover{background:#3d5178;border-color:#3d5178}
@media (max-width:760px){.tr-page .hello .sub{font-size:18px}}

/* Shared-sets row (Brian 2026-10-26 10:21, TG 61472): short name, the explanation on its own small line, never clipped. */
.tr-sharednote{display:block;font-size:11.5px;font-weight:500;color:var(--dim);white-space:normal;line-height:1.2;margin-top:2px}
.tr-table.tr-trend tr.tr-shared td:first-child{white-space:normal;overflow:visible}
.tr-table.tr-trend td.tr-past{opacity:.45}
/* Cases freshness line (TG 66310, 2026-11-09): one small line, amber for office when the buckets are behind */
.fresh{font-size:12px;color:var(--muted,#6b7280);margin:2px 0 6px;text-align:right}
.fresh:empty{display:none}
.fresh.warn{color:#8a5a00;background:#fff4d6;border:1px solid #f0d58a;border-radius:6px;padding:4px 8px;text-align:left}
/* Month grid (Brian TG 67786, 2026-11-12; Al DeCosta's Google month calendar): Sunday first, today marked, short chips. */
.cal-month{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.cal-mrow{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-mhead span{padding:6px 4px;text-align:center;font-size:12px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--line)}
.cal-mday{display:flex;flex-direction:column;gap:2px;min-width:0;min-height:108px;padding:4px;border:0;border-left:1px solid var(--line);border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.cal-mrow .cal-mday:first-child{border-left:0}
.cal-mhead + .cal-mrow .cal-mday{border-top:0}
.cal-mday:hover{background:rgba(255,255,255,.04)}
.cal-mday.is-out{opacity:.45}
.cal-mday.is-picked{box-shadow:inset 0 0 0 2px var(--gold)}
.cal-mnum{align-self:center;min-width:24px;height:24px;line-height:24px;border-radius:12px;text-align:center;font-size:13px;font-weight:600}
.cal-mday.is-today .cal-mnum{background:var(--gold);color:var(--gold-ink);font-weight:700}
.cal-mchip{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:16px;padding:0 4px;border-radius:4px;background:var(--bg2);border:1px solid var(--line)}
.cal-mchip-cx{color:var(--muted);text-decoration:line-through}
.cal-mmore{font-size:11px;color:var(--muted);text-align:center}
.cal-mlist{margin-top:12px;border:1px solid var(--line);border-radius:10px}
.cal-mlist .cal-dh{flex-direction:row;justify-content:space-between;align-items:baseline;width:auto;padding:10px 12px}
.cal-mlist .cal-dbody{padding:8px}
@media (max-width:760px){.cal-mday{min-height:72px;padding:2px}.cal-mchip{font-size:10px;line-height:14px;padding:0 2px}.cal-mhead span{font-size:11px}}
/* The /forecast page (TG 67786): the calendar header's Forecast box, centred on its own page. */
.fc-page{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:12px}
.fc-page .fc-box{justify-self:auto}
