/*
 * Align Physique — staff dashboard.
 *
 * Every colour here is lifted from AlignPhysique/Design/Theme.swift so the
 * dashboard and the phone are demonstrably the same product. The ratio is the
 * app's: roughly 70% white and off-white, 20% blue, and ink used sparingly
 * enough that it still reads as emphasis.
 *
 * Body copy sits at --ink2, never pure black. Anything that forms a column of
 * numbers gets .num, which turns on tabular figures — a weight column that
 * shifts as the digits change is unreadable at a glance.
 */
:root {
  /* 70% — the ground and its surfaces */
  --ground:#EEF1F6;
  --surface:#FFFFFF;
  --surface2:#F2F5FA;
  --rule:#DCE3ED;
  --rule2:#EAEFF6;

  /* 20% — blue */
  --accent:#1D63E8;
  --accent-dim:#1550C4;
  --accent-soft:#E6EEFD;

  /* 10% — ink */
  --ink:#0F1B2D;
  --ink2:#5B6B82;
  --ink3:#94A2B8;

  /* State, held clear of the accent so status never reads as "do this". */
  --green:#12B76A; --green-soft:#E3F7EE;
  --amber:#F79009; --amber-soft:#FEF3E2;
  --red:#F04438;   --red-soft:#FDE8E7;

  /* Macros — same three colours as the app's nutrition rings. */
  --protein:#12B76A;
  --carbs:#F79009;
  --fat:#FF7A59;

  --r:18px;
  --r-sm:10px;
  /* Cards float on the light ground rather than being boxed in; the hairline
     survives a flattened screenshot where the shadow does not. */
  --shadow:0 1px 2px rgba(15,27,45,.05), 0 14px 28px rgba(15,27,45,.07);
  --font:-apple-system,BlinkMacSystemFont,Inter,"Segoe UI",Roboto,sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--ground); color:var(--ink2);
  font:400 14px/1.55 var(--font);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{color:var(--ink);margin:0;letter-spacing:-.02em}
h1{font-size:24px;font-weight:700}
h2{font-size:21px;font-weight:700}
h3{font-size:16px;font-weight:650}
h4{font-size:13px;font-weight:600}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
input,select,textarea{font:inherit;color:var(--ink)}
:where(button,input,select,textarea,a):focus-visible{
  outline:2px solid var(--accent);outline-offset:2px;border-radius:6px;
}
hr{border:0;border-top:1px solid var(--rule2);margin:18px 0}

.card{
  background:var(--surface);border:1px solid var(--rule2);
  border-radius:var(--r);box-shadow:var(--shadow);
}
.brand{font-weight:800;font-size:16px;letter-spacing:-.4px;color:var(--ink)}
.brand span{color:var(--accent)}

/* The repeated small-caps label. Used on every section and stat so the whole
   tool reads as one board rather than a pile of panels. */
.eyebrow{
  font-size:10.5px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink3);
}
.muted{color:var(--ink2)}
.dim{color:var(--ink3)}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}

/* ---- login ---- */
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}
.login{width:100%;max-width:392px;padding:30px;display:grid;gap:14px}
.login .rail-brand{padding:0 0 6px}
.login h1{margin:2px 0 0}
.login .sub{margin:0 0 6px;color:var(--ink2);font-size:13.5px}

.f{display:grid;gap:6px}
.f>span{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3)}
.f input,.f select,.f textarea{
  height:42px;padding:0 12px;border-radius:var(--r-sm);
  background:var(--surface);border:1px solid var(--rule);
  width:100%;font-size:14.5px;
}
.f textarea{height:auto;padding:10px 12px;min-height:74px;resize:vertical;line-height:1.5}
.f input:focus,.f select:focus,.f textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.f input::placeholder,.f textarea::placeholder{color:var(--ink3)}
.f .hint{font-size:12px;color:var(--ink3);text-transform:none;letter-spacing:0;font-weight:400}

.primary{
  height:44px;padding:0 18px;border-radius:var(--r-sm);
  background:var(--accent);color:#fff;font-weight:600;
}
.primary:hover{background:var(--accent-dim)}
.primary:disabled{opacity:.5;cursor:default;background:var(--accent)}
.secondary{
  height:40px;padding:0 15px;border-radius:var(--r-sm);
  background:var(--accent-soft);color:var(--accent);font-weight:600;font-size:13.5px;
}
.secondary:hover{background:#D8E5FC}
.ghost{
  height:38px;padding:0 13px;border-radius:var(--r-sm);
  color:var(--ink2);font-weight:500;font-size:13.5px;
  border:1px solid var(--rule);background:var(--surface);
}
.ghost:hover{color:var(--ink);border-color:var(--ink3)}
.danger{color:var(--red);border-color:var(--red-soft);background:var(--red-soft);font-weight:600}
.danger:hover{color:#fff;background:var(--red);border-color:var(--red)}
.link{color:var(--accent);font-weight:600;font-size:13.5px;padding:0}
.link:hover{text-decoration:underline}
.err{color:var(--red);font-size:13px;font-weight:600;margin:0}
.ok-msg{color:var(--green);font-size:13px;font-weight:600;margin:0}

/* ---- shell ---- */
.shell{display:flex;min-height:100vh;align-items:flex-start}
/* The rail stays white, not a dark slab: the app commits to one light world
   and a navy column here would make the dashboard a different product. */
.rail{
  position:sticky;top:0;flex:0 0 226px;align-self:stretch;min-height:100vh;
  background:var(--surface);border-right:1px solid var(--rule);
  display:flex;flex-direction:column;padding:22px 14px;
}
.rail-brand{display:flex;align-items:center;gap:11px;padding:4px 8px 24px}
.rail-brand .mark{
  width:34px;height:34px;border-radius:11px;flex-shrink:0;
  background:var(--accent);color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:17px;
}
.tabs{display:flex;flex-direction:column;gap:2px}
.tabs button{
  display:flex;align-items:center;gap:11px;width:100%;text-align:left;
  padding:10px 12px;border-radius:var(--r-sm);font-size:13.5px;font-weight:500;
  color:var(--ink2);
}
.tabs button svg{width:17px;height:17px;fill:currentColor;flex-shrink:0;opacity:.75}
.tabs button:hover{color:var(--ink);background:var(--surface2)}
.tabs button.on{color:var(--accent);background:var(--accent-soft);font-weight:600}
.tabs button.on svg{opacity:1}
.tabs .count{
  margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:10px;
  background:var(--amber);color:#fff;font-size:11px;font-weight:700;
  display:grid;place-items:center;font-variant-numeric:tabular-nums;
}
/* The UA's [hidden] rule is a bare attribute selector, so the display:grid
   above outranks it and an empty badge still paints as an orange dot. */
.tabs .count[hidden]{display:none}
.rail-foot{margin-top:auto;padding-top:16px;border-top:1px solid var(--rule2)}
.who{padding:2px 12px 10px;display:grid;gap:1px}
.who-name{font-size:13px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who-role{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3)}
.rail-out{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;height:36px;padding:0 12px}
.rail-out svg{width:16px;height:16px;fill:currentColor}

main{flex:1;min-width:0;padding:26px 26px 72px;max-width:1320px}

/* ---- page furniture ---- */
.page-head{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:14px;flex-wrap:wrap;margin-bottom:20px;
}
.page-head .lede{margin:5px 0 0;color:var(--ink2);font-size:13.5px;max-width:62ch}
.tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tools input,.tools select{
  height:38px;padding:0 12px;border-radius:var(--r-sm);
  background:var(--surface);border:1px solid var(--rule);min-width:210px;
}
.tools input:focus,.tools select:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.sec{margin-bottom:26px}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.back{
  display:inline-flex;align-items:center;gap:6px;color:var(--ink2);
  font-size:13px;font-weight:600;margin-bottom:12px;padding:0;
}
.back:hover{color:var(--accent)}

/* ---- stats ---- */
/* auto-fit rather than a fixed five: a trainer sees five counters and an
   admin eight, and both should fill the row rather than leave a ragged tail. */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(152px,1fr));gap:14px;margin-bottom:26px}
.stat{padding:20px 20px 18px}
.stat .n{font-size:34px;font-weight:700;line-height:1;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.stat .l{margin-top:10px}
.stat.hi .n{color:var(--accent)}
.stat.warn .n{color:var(--amber)}
@media (max-width:640px){.stats{grid-template-columns:repeat(2,1fr)}.stat .n{font-size:27px}}

/* ---- table ---- */
.tbl-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--rule2);border-radius:var(--r);box-shadow:var(--shadow)}
table{width:100%;border-collapse:collapse;min-width:620px}
/* Two-up tables in a half-width column have no room for the 620px floor;
   they carry few enough columns to wrap into whatever width they get. */
.tbl-wrap.compact table{min-width:0}
.tbl-wrap.compact th,.tbl-wrap.compact td{padding:11px 14px}
th,td{padding:13px 18px;text-align:left;white-space:nowrap}
th{
  color:var(--ink3);font-size:10.5px;font-weight:600;text-transform:uppercase;
  letter-spacing:.14em;border-bottom:1px solid var(--rule);
}
td{border-top:1px solid var(--rule2);font-size:14px;color:var(--ink2)}
td.name{color:var(--ink);font-weight:600}
tbody tr:first-child td{border-top:0}
tbody tr.tap{cursor:pointer}
tbody tr.tap:hover{background:var(--surface2)}
td .row-actions{display:flex;gap:8px;justify-content:flex-end}

.pill{display:inline-block;padding:3px 9px;border-radius:7px;font-size:11px;font-weight:600;letter-spacing:.02em}
.pill.ok{background:var(--green-soft);color:#0B8A50}
.pill.warn{background:var(--amber-soft);color:#B96908}
.pill.bad{background:var(--red-soft);color:#C4302A}
.pill.info{background:var(--accent-soft);color:var(--accent-dim)}
.pill.off{background:var(--surface2);color:var(--ink3)}

.empty{
  padding:38px 28px;text-align:center;background:var(--surface);
  border:1px solid var(--rule2);border-radius:var(--r);box-shadow:var(--shadow);
}
.empty h3{margin-bottom:6px}
.empty p{margin:0 auto;max-width:46ch;color:var(--ink2);font-size:13.5px}
.empty .primary,.empty .secondary{margin-top:16px}
.loading{padding:34px;text-align:center;color:var(--ink3);font-size:13px;letter-spacing:.06em}
/* A failure states what broke and what to do about it — never a blank panel. */
.failed{
  padding:22px;border-radius:var(--r);background:var(--red-soft);
  border:1px solid #F8C9C6;color:#95231D;
}
.failed h3{color:#95231D;margin-bottom:4px}
.failed p{margin:0;font-size:13.5px}
.failed button{margin-top:12px}

/* ---- profile ---- */
.profile-head{display:flex;gap:18px;align-items:center;padding:22px;margin-bottom:18px;flex-wrap:wrap}
.avatar{
  width:58px;height:58px;border-radius:19px;flex-shrink:0;
  background:var(--accent-soft);color:var(--accent);
  display:grid;place-items:center;font-size:22px;font-weight:700;
}
.profile-head .meta{flex:1;min-width:200px}
.profile-head .meta p{margin:3px 0 0;font-size:13.5px}
.subtabs{display:flex;gap:4px;margin-bottom:18px;overflow-x:auto;padding-bottom:2px}
.subtabs button{
  padding:8px 14px;border-radius:99px;font-size:13px;font-weight:600;
  color:var(--ink2);white-space:nowrap;border:1px solid transparent;
}
.subtabs button:hover{background:var(--surface)}
.subtabs button.on{background:var(--accent);color:#fff}

.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.span2{grid-column:span 2}
@media (max-width:860px){.grid2,.grid3{grid-template-columns:1fr}.span2{grid-column:auto}}

.panel{padding:20px}
.panel>.eyebrow{display:block;margin-bottom:14px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:9px 18px;font-size:13.5px}
.kv dt{color:var(--ink3)}
.kv dd{margin:0;color:var(--ink);font-weight:500;text-align:right;font-variant-numeric:tabular-nums}

/* ---- charts ---- */
.chart-wrap{padding:20px}
.chart-wrap svg{display:block;width:100%;height:auto;overflow:visible}
.chart-legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:14px;font-size:12px;color:var(--ink2)}
.chart-legend i{width:10px;height:10px;border-radius:3px;display:inline-block;margin-right:6px;vertical-align:-1px}
.range{display:flex;gap:4px}
.range button{padding:5px 11px;border-radius:8px;font-size:12px;font-weight:600;color:var(--ink2)}
.range button.on{background:var(--accent-soft);color:var(--accent)}
.range button:not(.on):hover{background:var(--surface2)}
.delta{font-size:13px;font-weight:600}
.delta.down{color:var(--green)}
.delta.up{color:var(--amber)}

/* ---- ratings ---- */
.ratings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px}
@media (max-width:620px){.ratings{grid-template-columns:1fr}}
.rating{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center}
.rating .lab{font-size:12.5px;color:var(--ink2)}
.rating .val{font-size:12.5px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.rating .bars{grid-column:span 2;display:flex;gap:4px}
.rating .bars i{flex:1;height:7px;border-radius:4px;background:var(--rule2)}

/* ---- photos ---- */
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:14px}
.photo{
  border-radius:14px;overflow:hidden;background:var(--surface2);
  border:1px solid var(--rule2);cursor:zoom-in;padding:0;display:block;width:100%;
}
.photo img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover}
.photo .cap{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;font-size:11.5px;color:var(--ink2)}
.photo .cap b{color:var(--ink);font-weight:600;text-transform:capitalize}

/* ---- builder ---- */
.builder{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:960px){.builder{grid-template-columns:1fr}}
/* Stacked (below 960px) the picker is capped so it cannot push the workout
   itself off the bottom of the screen; beside the workout it may run the
   full height and stay put while the right-hand column scrolls. */
.picker{padding:16px;display:flex;flex-direction:column;max-height:400px}
@media (min-width:961px){
  .picker{position:sticky;top:20px;max-height:calc(100vh - 44px)}
}
.picker input{
  height:38px;padding:0 12px;border-radius:var(--r-sm);width:100%;
  border:1px solid var(--rule);margin-bottom:10px;
}
.picker input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.picker-list{overflow-y:auto;flex:1;margin:0 -6px;padding:0 6px}
.picker-group{margin-bottom:10px}
.picker-group .eyebrow{display:block;padding:8px 6px 5px;position:sticky;top:0;background:var(--surface)}
.picker-item{
  display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  padding:8px 8px;border-radius:8px;text-align:left;font-size:13.5px;color:var(--ink);
}
.picker-item small{color:var(--ink3);font-size:11.5px;flex-shrink:0}
.picker-item:hover{background:var(--accent-soft)}

.slot{padding:14px 16px;margin-bottom:10px}
.slot-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.slot-head .pos{
  width:24px;height:24px;border-radius:8px;background:var(--accent-soft);color:var(--accent);
  display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0;
}
.slot-head .nm{font-weight:600;color:var(--ink);flex:1;min-width:0}
.slot-head .nm small{display:block;font-weight:400;color:var(--ink3);font-size:11.5px}
.slot-head .mv{display:flex;gap:2px}
.slot-head .mv button,.slot-head .rm{
  width:28px;height:28px;border-radius:8px;color:var(--ink3);display:grid;place-items:center;font-size:15px;
}
.slot-head .mv button:hover{background:var(--surface2);color:var(--ink)}
.slot-head .rm:hover{background:var(--red-soft);color:var(--red)}
.slot-head button:disabled{opacity:.3;cursor:default}
.slot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:700px){.slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.slot-grid .wide{grid-column:1/-1}
.slot-grid input{height:38px}
.reps{display:flex;align-items:center;gap:6px}
.reps input{text-align:center}
.reps span{color:var(--ink3);font-size:13px}

/* Macro strip on the diet builder — same three colours as the app's rings. */
.macro-bar{display:flex;height:10px;border-radius:6px;overflow:hidden;background:var(--rule2);margin:14px 0 8px}
.macro-bar i{display:block;height:100%}
.macro-key{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px}
.macro-key span{display:flex;align-items:center;gap:6px;color:var(--ink2)}
.macro-key i{width:10px;height:10px;border-radius:3px}
.macro-key b{color:var(--ink);font-variant-numeric:tabular-nums}

/* ---- messages ---- */
.msg-layout{display:grid;grid-template-columns:262px minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:820px){.msg-layout{grid-template-columns:1fr}}
.people{padding:8px;max-height:calc(100vh - 140px);overflow-y:auto}
.person{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:var(--r-sm)}
.person b{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink);font-weight:600}
.person .unread{
  margin-left:auto;min-width:19px;height:19px;padding:0 6px;border-radius:10px;
  background:var(--accent);color:#fff;font-size:11px;font-weight:700;
  display:grid;place-items:center;flex-shrink:0;
}
.person small{color:var(--ink3);font-size:11.5px}
.person:hover{background:var(--surface2)}
.person.on{background:var(--accent-soft)}
.person.on b{color:var(--accent)}
.thread{display:flex;flex-direction:column;min-height:440px}
.thread-head{padding:16px 20px;border-bottom:1px solid var(--rule2);display:flex;justify-content:space-between;align-items:center;gap:12px}
.bubbles{padding:20px;display:flex;flex-direction:column;gap:10px;flex:1;overflow-y:auto;max-height:52vh}
.bub{max-width:74%;padding:10px 14px;border-radius:16px;font-size:13.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.bub.them{background:var(--surface2);color:var(--ink);border-bottom-left-radius:6px;align-self:flex-start}
.bub.me{background:var(--accent);color:#fff;border-bottom-right-radius:6px;align-self:flex-end}
.bub time{display:block;margin-top:5px;font-size:10.5px;opacity:.62}
.composer{display:flex;gap:10px;padding:14px 20px;border-top:1px solid var(--rule2)}
.composer textarea{
  flex:1;min-height:44px;max-height:130px;padding:11px 13px;border-radius:var(--r-sm);
  border:1px solid var(--rule);resize:vertical;font-size:14px;line-height:1.5;
}
.composer textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}

/* ---- banners ---- */
.banner-card{padding:16px;display:flex;gap:14px;align-items:flex-start}
.banner-swatch{width:74px;height:74px;border-radius:14px;flex-shrink:0;background-size:cover;background-position:center;position:relative;overflow:hidden}
.banner-card .b-body{flex:1;min-width:0}
.banner-card .b-body h3{margin-bottom:2px}
.banner-card .b-body p{margin:0;font-size:13px;color:var(--ink2)}
.banner-card .b-meta{margin-top:9px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.banner-card .b-acts{display:flex;gap:8px;flex-shrink:0}
.upload-drop{display:flex;align-items:center;gap:12px}
.upload-drop img{width:64px;height:64px;border-radius:12px;object-fit:cover;border:1px solid var(--rule)}

/* ---- modal ---- */
.modal-back{
  position:fixed;inset:0;background:rgba(15,27,45,.34);z-index:50;
  backdrop-filter:blur(3px);display:flex;align-items:flex-start;
  justify-content:center;padding:34px 16px;overflow:hidden;
}
/* The modal is a flex column whose BODY scrolls; scrolling the backdrop
   detaches the header and floats it over the page. */
.modal{
  width:100%;max-width:640px;max-height:calc(100vh - 68px);
  display:flex;flex-direction:column;box-shadow:0 24px 60px rgba(15,27,45,.22);
}
.modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:18px 22px;border-bottom:1px solid var(--rule2);flex:0 0 auto;
}
.modal-head .x{font-size:24px;line-height:1;color:var(--ink3);padding:0 4px}
.modal-head .x:hover{color:var(--ink)}
.modal-body{padding:22px;overflow-y:auto;flex:1 1 auto}
.modal-body>form{display:grid;gap:14px}
.modal.wide{max-width:860px}
.modal.photo-view{max-width:520px}
.modal.photo-view img{display:block;width:100%;border-radius:12px}
.actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap}
.actions .spacer{flex:1}
.check{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--ink)}
.check input{width:17px;height:17px;accent-color:var(--accent);flex-shrink:0}

/* ---- toast ---- */
.toast{
  position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:80;
  padding:11px 18px;border-radius:12px;background:var(--ink);color:#fff;
  font-size:13.5px;font-weight:500;box-shadow:0 12px 30px rgba(15,27,45,.28);
}
.toast.bad{background:var(--red)}

@media (max-width:760px){
  main{padding:16px 14px 56px}
  h1{font-size:20px}
  /* The rail lies across the top and scrolls sideways; a 226px column would
     leave no room for the content it exists to navigate. */
  .shell{flex-direction:column}
  main{width:100%;max-width:none}
  .rail{
    position:static;flex:none;min-height:0;width:100%;border-right:0;
    border-bottom:1px solid var(--rule);flex-direction:row;align-items:center;
    gap:12px;padding:10px 14px;overflow-x:auto;scrollbar-width:none;
  }
  .rail::-webkit-scrollbar{display:none}
  .rail-brand{padding:0;flex-shrink:0}
  .rail-brand .brand{display:none}
  .tabs{flex-direction:row;gap:4px;flex:0 0 auto}
  /* width:100% is right for a column; left here it stretches every tab to the
     full scroll width. */
  .tabs button{white-space:nowrap;flex:0 0 auto;width:auto;padding:9px 12px}
  .tabs button svg{display:none}
  .rail-foot{margin:0 0 0 auto;padding:0;border:0;flex-shrink:0}
  .who{display:none}
  .rail-out svg{display:none}
  .bub{max-width:88%}
}

@media print{.rail{display:none}}
