/* thursdvys dashboard - shell + widget layer
   Layout grammar taken from the TransGlobal-style dashboard reference: a floating
   rounded app shell, top pill tabs, a title row with KPI cards, a toolbar, a 3-column
   widget row and a full-width data table. Thursdvys typography, orange and hairline
   language are kept rather than the reference's glossy look. */

body{background:
  radial-gradient(1200px 700px at 78% -8%, rgba(255,107,0,.10), transparent 60%),
  radial-gradient(900px 600px at 8% 105%, rgba(255,138,66,.06), transparent 55%),
  linear-gradient(160deg,#0b0806 0%,#130e0a 45%,#0a0705 100%);
  background-attachment:fixed;min-height:100vh}

/* the floating app shell */
.shell{max-width:1240px;margin:22px auto 40px;padding:0;
  background:rgba(23,17,13,.92);border:1px solid rgba(244,239,233,.10);
  border-radius:16px;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.03)}
.shell .wrap{padding:0 26px 30px}
footer.f{margin:26px 0 0;padding:18px 0 0;border-top:1px solid var(--line)}

/* ---------- top bar: brand | tabs | icons ---------- */
.topbar{display:flex;align-items:center;gap:14px;padding:16px 22px;
  border-bottom:1px solid rgba(244,239,233,.09)}
.topbar img{width:26px;height:26px;border-radius:7px}
.topbar .brand{font-family:'SGL';font-size:17px;letter-spacing:-.01em;color:var(--ink)}
.topbar .spacer{flex:1}
.iconbtn{width:34px;height:34px;border-radius:50%;border:1px solid rgba(244,239,233,.14);
  background:rgba(255,255,255,.02);display:grid;place-items:center;color:var(--muted);
  font-size:13px;text-decoration:none}
.iconbtn:hover{color:var(--ink);border-color:rgba(244,239,233,.28)}
/* ---------- the management overview: order set from /mgmt/design ----------
   The blocks are siblings, so reordering them is a CSS `order` value rather than moving
   markup around. Nunu sets those numbers himself; nothing here needs a developer. */
.stack{display:flex;flex-direction:column}
.stack>*{min-width:0}

/* ---------- mobile ----------
   The dashboard is data-heavy and was built for a desktop width. On a phone three things
   broke: wide tables pushed the PAGE sideways so the right-hand columns were cut off and
   unreachable, the nav dropdown's label wrapped into a circle that overlapped the header,
   and inputs under 16px made iOS zoom the whole page on every tap. */
@media (max-width: 780px) {
  /* The page itself was wider than the phone, which is why even a paragraph of text ran off
     the right edge - not just the table. A flex/grid child defaults to min-width:auto, so it
     grows to fit whatever is inside it. Setting min-width:0 lets the scroll boxes below
     actually contain the table instead of the whole layout stretching to match it. */
  html, body { overflow-x: hidden !important; max-width: 100% !important; }
  .wrap, .card, .tblwrap, .panel, .stack > *, .widgets > * {
    min-width: 0 !important; max-width: 100% !important; }

  /* The data tables carry an explicit desktop width - `.dt table{min-width:680px}` and
     `.builder table{min-width:940px}`. On a phone that made the TABLE itself wider than the
     screen, and because a class+type selector outranks a plain `table{}` one, specificity beat
     source order: no rule placement could override it. Giving each of them a scroll container
     lets the table keep its shape and be swiped, instead of stretching the whole page. */
  .dt, .builder, .tblwrap, .card {
    display: block !important; width: 100% !important; max-width: 100% !important;
    overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .dt table, .builder table { min-width: 680px; }

  /* Measured: the gallery was 1608px wide from two images at 1080px and 1600px. Nothing was
     capping images at all - a full-size photo simply overflowed its card. */
  img, svg, video, canvas { max-width: 100% !important; height: auto; }

  /* let a wide table scroll inside its own box instead of dragging the page with it */
  table, .tbl { min-width: 100%; }
  /* Figures must never split mid-number, so keep body cells on one line. But the measured table
     was 1604px wide mainly because the HEADERS could not wrap either - "CASH SH (NO FLOAT)" and
     friends set the column widths. Headers may wrap; numbers may not. */
  .tbl th, table th { white-space: normal; line-height: 1.25; }
  .tbl td, table td { white-space: nowrap; }

  /* These carry !important because this block sits ABOVE the base rules in the file, and in CSS
     a later rule of equal weight wins - a media query included. The tidy fix is to move the
     whole block to the end of the stylesheet; until then this makes the mobile rules stick. */
  input, select, textarea { font-size: 16px !important; }
  .figs { grid-template-columns: 1fr 1fr !important; }
  h1 { font-size: 27px !important; line-height: 1.15; }

  /* the nav: keep the summary on one line so it stops wrapping into a circle */
  details > summary { white-space: nowrap; }
  header, .top, .bar { flex-wrap: nowrap; }

  /* inputs: 16px is the threshold below which iOS zooms the page on focus */
  /* labels and hints were eating the screen; tighten without losing them */
  .fld label, .lbl, label { font-size: 11.5px; letter-spacing: .04em; }
  .hint { font-size: 11px; }
  .blurb { font-size: 13.5px; }
  .stack, .widgets { padding-left: 12px; padding-right: 12px; }
  .wrap { padding-left: 12px; padding-right: 12px; }
  /* comfortable thumb targets */
  .btn, button, a.btn { min-height: 40px; }
}

/* ---------- the gallery: one album per event ---------- */
.albums{display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));gap:16px;
  margin:22px 0 40px}
.album{display:block;border-radius:15px;overflow:hidden;text-decoration:none;
  border:1px solid rgba(244,239,233,.11);background:rgba(255,255,255,.02);
  transition:border-color .15s,transform .15s}
.album:hover{border-color:rgba(255,107,0,.45);transform:translateY(-2px)}
.albumcover{position:relative;aspect-ratio:4/3;background:rgba(255,255,255,.03)}
.albumcover img{width:100%;height:100%;object-fit:cover;display:block}
.albumcover .nocover{position:absolute;inset:0;display:grid;place-items:center;
  color:var(--faint);font-size:11.5px}
.albumcount{position:absolute;right:9px;bottom:9px;padding:3px 9px;border-radius:999px;
  background:rgba(20,14,11,.82);color:var(--lift);font-size:11px;letter-spacing:.04em;
  border:1px solid rgba(255,107,0,.4)}
.albumbody{padding:11px 13px 13px}
.albumbody b{display:block;font-size:13.5px;color:var(--ink);font-weight:500;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.albumbody span{display:block;font-size:11px;color:var(--faint);margin-top:3px}

/* ---------- the gallery + its Instagram feed ---------- */
.igcard{margin:18px 0 0;padding:16px 18px;border-radius:16px;
  border:1px solid rgba(244,239,233,.12);background:rgba(255,255,255,.015)}
.igcard.on{border-color:rgba(255,107,0,.34);background:rgba(255,107,0,.045)}
.igtop{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.igcard .lbl{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--faint)}
.igstate{font-size:14px;color:var(--ink);margin-top:4px}
.igstate b{color:var(--lift)}
.igstate .dlt{display:inline;margin-left:8px}
.ignote{margin:13px 0 0;font-size:12.5px;line-height:1.68;color:var(--faint);
  border-top:1px solid rgba(244,239,233,.08);padding-top:12px}
.ignote b{color:var(--ink)}
.ignote code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;
  background:rgba(255,255,255,.06);padding:1px 5px;border-radius:5px;color:var(--lift)}
.ignote.bad{margin-top:11px;border-top:0;padding:10px 13px;border-radius:10px;
  background:rgba(200,70,60,.13);color:#f0b5ae;font-size:12px}
.ignote.bad b{color:#f5c9c2}
.galgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px;
  margin:20px 0 0}
.galtile{margin:0;border-radius:13px;overflow:hidden;border:1px solid rgba(244,239,233,.11);
  background:rgba(255,255,255,.02)}
.galtile a{display:block}
.galtile img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;
  background:rgba(255,255,255,.03)}
.galtile .nophoto{display:grid;place-items:center;aspect-ratio:1/1;color:var(--faint);
  font-size:11px;background:rgba(255,255,255,.03)}
.galtile figcaption{padding:9px 11px 11px}
.galtile figcaption b{display:block;font-size:12px;color:var(--ink);font-weight:500;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.galtile figcaption span{font-size:10.5px;color:var(--faint)}

/* ---------- the roster builder (fill in the blanks) ---------- */
.builder{overflow-x:auto;margin:18px 0 0;border:1px solid rgba(244,239,233,.12);
  border-radius:16px;background:rgba(255,255,255,.015);-webkit-overflow-scrolling:touch}
.builder table{width:100%;border-collapse:separate;border-spacing:0;min-width:940px}
.builder th,.builder td{padding:9px 8px;border-bottom:1px solid rgba(244,239,233,.07);
  vertical-align:top}
.builder thead th{text-align:center;font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--faint);border-bottom:1px solid rgba(244,239,233,.14);padding:12px 8px}
.builder thead th b{display:block;color:var(--ink);font-size:12px;letter-spacing:.09em}
.builder thead th span{font-size:10px;color:var(--faint);letter-spacing:.05em}
.builder thead th.now b{color:var(--or)}
.builder .band{width:100px;text-align:left;font-size:11px;color:var(--lift);
  letter-spacing:.06em;white-space:nowrap;padding-left:14px}
.builder .band span{color:var(--faint);font-size:10px}
.builder tr.meta th.band{color:var(--faint);font-size:10px;text-transform:uppercase;letter-spacing:.13em}
.builder .bandrow td{background:rgba(255,255,255,.012)}
.builder select.pick{width:100%;min-width:98px;margin:0 0 5px;padding:5px 7px;border-radius:8px;
  border:1px solid rgba(244,239,233,.16);background:#1a1411;color:var(--ink);font:inherit;
  font-size:12px;cursor:pointer;-webkit-appearance:none;appearance:none}
.builder select.pick:last-child{margin-bottom:0}
.builder select.pick:hover{border-color:rgba(244,239,233,.34)}
.builder select.pick.filled{border-color:rgba(255,107,0,.5);background:rgba(255,107,0,.10);
  color:var(--lift);font-weight:600}
.builder select.pick:focus{outline:none;border-color:var(--or)}
.builder tr.meta td{padding:6px 8px}
.builder input.tiny{width:100%;min-width:94px;padding:5px 7px;border-radius:8px;
  border:1px solid rgba(244,239,233,.12);background:rgba(255,255,255,.02);color:var(--ink);
  font:inherit;font-size:12px;text-align:right}
.builder input.tiny:focus{outline:none;border-color:var(--or);background:rgba(255,255,255,.05)}
.builder tr.leave td{font-size:10.5px;color:#e0a03c;line-height:1.45}
.savebar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0 0}
.savebar .hint{font-size:11.5px;color:var(--faint)}
.linkbtn{background:none;border:0;padding:0;color:var(--or);font:inherit;font-size:inherit;
  cursor:pointer;text-decoration:underline}
.legend{margin:26px 0 40px;padding:16px 18px;border-radius:14px;
  border:1px solid rgba(244,239,233,.10);background:rgba(255,255,255,.015)}
.lgtitle{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--faint);
  margin-bottom:10px}
.lgrow{display:flex;flex-wrap:wrap;gap:7px 16px}
.lg{font-size:11.5px;color:var(--faint)}
.lg b{color:var(--ink);font-weight:600;margin-right:5px}
.lg i{color:var(--faint);font-style:normal;opacity:.7}

/* ---------- the view switcher (customer / staff / management) ---------- */
.views{position:relative;margin-left:8px}
.views summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:9px;
  padding:5px 13px 5px 5px;border-radius:999px;border:1px solid rgba(244,239,233,.15);
  background:rgba(255,255,255,.03);user-select:none}
.views summary::-webkit-details-marker{display:none}
.views summary:hover{border-color:rgba(244,239,233,.32)}
.views[open] summary{border-color:var(--or)}
.views .av{width:27px;height:27px;border-radius:50%;background:var(--or);color:#180d05;
  display:grid;place-items:center;font-size:11.5px;font-weight:700;flex:none}
.views .whoami{display:flex;flex-direction:column;line-height:1.25;text-align:left}
.views .nm{font-size:12.5px;color:var(--ink)}
.views .rl{font-size:10px;color:var(--faint);letter-spacing:.05em}
.views summary .car{transition:transform .15s;color:var(--faint)}
.views[open] summary .car{transform:rotate(180deg)}
.views .menu{position:absolute;right:0;left:auto;top:calc(100% + 9px);z-index:60;
  min-width:272px;padding:9px;border-radius:14px;background:#1c1512;
  border:1px solid rgba(244,239,233,.15);box-shadow:0 28px 70px rgba(0,0,0,.62)}
.views .menu .grp{font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--faint);
  padding:10px 10px 5px}
.views .menu a{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-radius:9px;
  color:var(--ink);font-size:13px;text-decoration:none}
.views .menu a:hover{background:rgba(255,255,255,.055)}
.views .menu a.on{background:rgba(255,107,0,.15);color:var(--lift)}
.views .menu a .hint{font-size:10.5px;color:var(--faint);letter-spacing:.03em}
.views .menu a.on .hint{color:rgba(255,138,66,.78)}

/* ---------- dropdown navigation (replaces the wrapping pill row) ---------- */
.navdrop{position:relative;margin-left:10px}
.navdrop summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:9px;
  padding:8px 14px;border-radius:999px;border:1px solid rgba(244,239,233,.15);
  background:rgba(255,255,255,.03);color:var(--ink);font-size:12.5px;user-select:none}
.navdrop summary::-webkit-details-marker{display:none}
.navdrop summary:hover{border-color:rgba(244,239,233,.32)}
.navdrop[open] summary{border-color:var(--or);color:var(--lift);
  background:rgba(255,107,0,.10)}
.navdrop summary .car{transition:transform .15s}
.navdrop[open] summary .car{transform:rotate(180deg)}
.navdrop .menu{position:absolute;left:0;right:auto;top:calc(100% + 9px);z-index:60;
  min-width:300px;max-width:min(92vw,420px);padding:12px;
  border-radius:16px;background:#1c1512;border:1px solid rgba(244,239,233,.15);
  box-shadow:0 28px 70px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.03);
  display:grid;grid-template-columns:1fr 1fr;gap:1px 12px}
.navdrop .grp{grid-column:1/-1;font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--faint);padding:11px 9px 5px;border-top:1px solid rgba(244,239,233,.07);
  margin-top:6px}
.navdrop .grp:first-child{border-top:none;margin-top:0;padding-top:3px}
.navdrop .menu a{padding:8px 9px;border-radius:8px;color:var(--muted);font-size:12.5px;
  text-decoration:none;white-space:nowrap}
.navdrop .menu a:hover{background:rgba(255,255,255,.055);color:var(--ink)}
.navdrop .menu a.on{background:rgba(255,107,0,.15);color:var(--lift);font-weight:500}
@media(max-width:600px){.navdrop .menu{grid-template-columns:1fr;left:-6px}}

/* ---------- the menu page: reads like a real menu, not cards ---------- */
.menusec{margin:26px 0 0}
.menusec h3{margin-bottom:14px}
.menuage{font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--faint);
  margin-left:9px;font-weight:400}
.mrow{display:grid;grid-template-columns:1fr auto;gap:6px 18px;align-items:baseline;
  padding:11px 0;border-bottom:1px solid rgba(244,239,233,.06)}
.mrow:last-child{border-bottom:none}
.mi{font-size:14px;color:var(--ink);letter-spacing:-.005em}
.mp{font-family:'SGL';font-size:15px;color:var(--or);white-space:nowrap}
.md{grid-column:1/-1;font-size:11.8px;color:var(--muted);line-height:1.5;margin-top:-2px}
.menuwrap{display:grid;grid-template-columns:1fr 1fr;gap:0 44px}
@media(max-width:860px){.menuwrap{grid-template-columns:1fr}}

/* ---------- title row + KPI cards ---------- */
.headrow{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;padding:24px 26px 0}
.headrow h1{margin:0;font-family:'SGL';font-size:34px;font-weight:300;letter-spacing:-.025em;
  line-height:1.06}
.headrow .kick{margin:0 0 8px}
.headrow .sub{color:var(--muted);font-size:13px;margin-top:8px;max-width:420px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;
  margin-left:auto;min-width:min(620px,100%)}
.kpi{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:11px;
  background:rgba(255,255,255,.028);border:1px solid rgba(244,239,233,.10)}
.kpi .tile{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;
  background:rgba(255,107,0,.13);border:1px solid rgba(255,107,0,.30);
  color:var(--lift);font-size:15px;flex:none}
.kpi .lbl{font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--faint)}
.kpi .num{font-family:'SGL';font-size:24px;color:var(--ink);letter-spacing:-.02em;line-height:1.15}
.kpi .dlt{font-size:11px;margin-top:2px}
.dlt.up{color:#63d18a}.dlt.down{color:#f2683c}.dlt.flat{color:var(--faint)}

/* ---------- toolbar ---------- */
.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:20px 26px 0;padding:10px 12px;border-radius:12px;
  background:rgba(255,255,255,.022);border:1px solid rgba(244,239,233,.09)}
.toolbar .search{display:flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;
  border:1px solid rgba(244,239,233,.12);background:rgba(0,0,0,.22);min-width:250px;flex:1}
.toolbar .search .q{color:var(--muted);font-size:12.5px}
.toolbar .search .meta{color:var(--faint);font-size:11px}
.chip{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:999px;
  font-size:11.5px;border:1px solid rgba(255,107,0,.34);background:rgba(255,107,0,.10);
  color:var(--lift)}
.btn.solid{background:var(--or);color:#180d05;border-color:var(--or);font-weight:600}
.btn.solid:hover{background:var(--lift);border-color:var(--lift);color:#180d05}

/* ---------- widget row ---------- */
.widgets{display:grid;gap:12px;margin:14px 26px 0;
  grid-template-columns:1.35fr 1fr 1fr}
@media(max-width:1080px){.widgets{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.widgets{grid-template-columns:1fr}
  .shell{margin:10px;border-radius:12px}.shell .wrap{padding:0 15px 22px}
  .topbar,.headrow,.toolbar,.widgets{padding-left:15px;padding-right:15px}
  .toolbar,.widgets{margin-left:15px;margin-right:15px}}
.panel{border-radius:12px;background:rgba(255,255,255,.022);
  border:1px solid rgba(244,239,233,.09);padding:16px 17px;min-width:0}
.panel h4{margin:0;font-size:14.5px;font-weight:500;color:var(--ink);letter-spacing:0}
.panelhead{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.panelhead .spacer{flex:1}
.seg{display:flex;gap:4px;padding:3px;border-radius:999px;background:rgba(0,0,0,.28);
  border:1px solid rgba(244,239,233,.08)}
/* .seg used to hold inert spans; it now holds real links, so both must look and behave the
   same - a control should never be styled to look clickable unless clicking does something */
.seg span, .seg a{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--faint);padding:4px 10px;border-radius:999px;text-decoration:none}
.seg span.on, .seg a.on{background:rgba(244,239,233,.10);color:var(--ink)}
.seg a{cursor:pointer}
.seg a:hover{color:var(--ink);background:rgba(244,239,233,.06)}
.seg a.on:hover{background:rgba(244,239,233,.15)}
.bignums{display:flex;gap:26px;margin:2px 0 16px}
.bignums .n{font-family:'SGL';font-size:27px;color:var(--ink);letter-spacing:-.02em;line-height:1.1}
.bignums .c{font-size:10.5px;color:var(--faint);margin-top:3px}

/* ---------- heatmap ---------- */
.heat{display:grid;grid-template-columns:38px repeat(var(--cols),1fr);gap:3px;align-items:center}
.heat .rl{font-size:10px;color:var(--faint);letter-spacing:.06em}
.heat .cl{font-size:9.5px;color:var(--faint);text-align:center;letter-spacing:.04em}
.heat .cell{aspect-ratio:1.35;border-radius:4px;background:rgba(244,239,233,.05);
  transition:outline .12s}
.heat .cell:hover{outline:1px solid var(--or)}
.heat .cell.h0{background:rgba(244,239,233,.055)}
.heat .cell.h1{background:rgba(255,107,0,.22)}
.heat .cell.h2{background:rgba(255,107,0,.40)}
.heat .cell.h3{background:rgba(255,107,0,.62)}
.heat .cell.h4{background:rgba(255,107,0,.85)}
.heat .cell.h5{background:var(--or)}
.legend{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:10.5px;color:var(--faint)}
.legend i{width:13px;height:9px;border-radius:2px;display:inline-block}

/* ---------- timeline ---------- */
.tl{list-style:none;margin:0;padding:0}
.tl li{position:relative;padding:0 0 15px 20px;border-left:1px solid rgba(244,239,233,.14)}
.tl li:last-child{border-left-color:transparent;padding-bottom:0}
.tl li::before{content:'';position:absolute;left:-4px;top:4px;width:7px;height:7px;
  border-radius:50%;background:var(--or)}
.tl .k{font-size:12.5px;color:var(--ink)}
.tl .v{font-size:11px;color:var(--faint);margin-top:3px}

/* ---------- status pills / badges ---------- */
.badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:10px;
  letter-spacing:.08em;text-transform:uppercase;border:1px solid}
.badge.ok{color:#63d18a;border-color:rgba(99,209,138,.35);background:rgba(99,209,138,.10)}
.badge.warn{color:var(--lift);border-color:rgba(255,107,0,.35);background:rgba(255,107,0,.10)}
.badge.neutral{color:var(--faint);border-color:rgba(244,239,233,.16)}

/* ---------- data table ---------- */
.dt{margin:14px 26px 0;border-radius:12px;background:rgba(255,255,255,.022);
  border:1px solid rgba(244,239,233,.09);overflow:hidden}
.dt .dthead{display:flex;align-items:center;gap:10px;padding:14px 17px;
  border-bottom:1px solid rgba(244,239,233,.08)}
.dt .dthead h4{margin:0;font-size:14.5px;font-weight:500}
.dt .dthead .spacer{flex:1}
.dt .scroll{overflow-x:auto}
.dt table{width:100%;border-collapse:collapse;min-width:680px}
.dt th{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);
  text-align:left;padding:10px 14px;border-bottom:1px solid rgba(244,239,233,.07);
  font-weight:500;white-space:nowrap}
.dt td{padding:11px 14px;font-size:12.5px;color:var(--muted);
  border-bottom:1px solid rgba(244,239,233,.045);white-space:nowrap}
.dt tr:last-child td{border-bottom:none}
.dt td.strong{color:var(--ink)}
.dt td.n{text-align:right;font-variant-numeric:tabular-nums}
.dt th.n{text-align:right}
.dt tr:hover td{background:rgba(255,255,255,.017)}
.filters{display:flex;gap:5px;flex-wrap:wrap}
.filters span{font-size:10.5px;letter-spacing:.07em;padding:4px 10px;border-radius:999px;
  border:1px solid rgba(244,239,233,.12);color:var(--faint)}
.filters span.on{color:var(--ink);border-color:rgba(244,239,233,.30);
  background:rgba(244,239,233,.07)}

/* ---------- long forms: grouped sections, not one flat column ---------- */
.fsec{margin:26px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.fsec:first-of-type{border-top:none;padding-top:0;margin-top:14px}
.fsec h5{margin:0 0 13px;font-size:11px;font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--or)}
.fsec .fhint{font-size:11.5px;color:var(--faint);margin:-8px 0 13px}
.fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:15px 16px}
.fgrid .fw{grid-column:1/-1}
.fgrid label{display:block;font-size:11.5px;color:var(--muted);margin-bottom:6px}
.fgrid input,.fgrid select,.fgrid textarea{width:100%;box-sizing:border-box;padding:10px 12px;
  border-radius:8px;background:rgba(0,0,0,.25);border:1px solid rgba(244,239,233,.13);
  color:var(--ink);font-size:13px;font-family:inherit}
.fgrid input::placeholder{color:rgba(244,239,233,.28)}
.fgrid input:focus,.fgrid select:focus,.fgrid textarea:focus{outline:none;border-color:var(--or);
  background:rgba(0,0,0,.34)}
.fgrid textarea{min-height:88px;resize:vertical}
.formcard{margin:16px 26px 0;padding:20px 22px;border-radius:12px;
  background:rgba(255,255,255,.022);border:1px solid rgba(244,239,233,.09)}
.formcard .actions{display:flex;align-items:center;gap:12px;margin-top:26px;
  padding-top:20px;border-top:1px solid var(--line)}
.empty{margin:16px 26px 0;padding:26px 22px;border-radius:12px;text-align:center;
  background:rgba(255,255,255,.018);border:1px dashed rgba(244,239,233,.14)}
.empty .big{font-family:'SGL';font-size:19px;color:var(--ink);margin-bottom:7px}
.empty .sm{font-size:12.5px;color:var(--muted);max-width:460px;margin:0 auto}

/* ---------- the weekly roster grid ---------- */
table.roster th{text-align:center;line-height:1.5}
table.roster th .sub{display:block;color:var(--faint);font-size:9.5px;letter-spacing:.06em}
table.roster th.on{color:var(--lift);border-bottom-color:var(--or)}
table.roster td{text-align:center;vertical-align:top;padding:10px 8px}
table.roster td.band{text-align:left;white-space:nowrap;color:var(--faint);font-size:10.5px;
  line-height:1.6;border-right:1px solid rgba(244,239,233,.07)}
table.roster td.on{background:rgba(255,107,0,.055)}
table.roster tr.targetrow td{color:var(--lift);border-top:1px solid rgba(244,239,233,.10);
  font-size:12px}
table.roster tr.clearrow td{color:var(--muted);font-size:11.5px}
table.roster tr.clearrow td.band,.roster td.band b{color:var(--faint);font-weight:500}
.pchip{display:inline-block;padding:3px 8px;margin:2px 1px;border-radius:6px;font-size:11.5px;
  background:rgba(255,107,0,.12);border:1px solid rgba(255,107,0,.26);color:var(--ink);
  white-space:nowrap}

/* ---------- icon buttons ---------- */
.btnico{display:inline-flex;align-items:center;gap:8px}
.btnico svg{width:13px;height:13px;flex:none;stroke:currentColor;stroke-width:2.6;fill:none;
  stroke-linecap:round}
.btnico.round{padding:9px 10px;border-radius:50%;gap:0}
.btnico.round svg{width:15px;height:15px}
.btnico.lg svg{width:15px;height:15px}
.kpi .tile svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.7;fill:none;
  stroke-linecap:round;stroke-linejoin:round}

/* ================================================================ ARCHITECTURAL GRID
   Approved reference: an editorial/architectural grid - near-black canvas, hairline-divided
   cells, tiny wide-tracked micro-labels, huge condensed headings, one hot accent used sparingly.
   Applied here to the page header and the KPI row.

   Appended at the END of the file deliberately. A mobile block placed near the top earlier lost
   to the base rules below it, because in CSS a later rule of equal weight wins - so anything
   meant to override belongs down here.
*/
.headrow{padding:30px 26px 0;gap:26px}
.headrow h1{font-size:clamp(34px,6.4vw,58px);line-height:.98;text-transform:uppercase;
  letter-spacing:-.03em;font-weight:300;max-width:15ch}
.headrow .kick{font-size:10px;letter-spacing:.34em;text-transform:uppercase;color:var(--faint);
  display:flex;align-items:center;gap:12px;margin:0 0 14px}
.headrow .kick::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.14);min-width:60px}
.headrow .sub{font-size:12.5px;color:var(--muted);max-width:46ch;margin-top:16px}

/* the KPI row becomes a hairline grid of cells rather than a row of rounded cards */
.kpis{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0;
  border-top:1px solid rgba(255,255,255,.14);counter-reset:k}
.kpi{counter-increment:k;display:block;position:relative;border-radius:0;background:transparent;
  padding:18px 20px 20px;border-right:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.14)}
.kpi .tile{display:none}                    /* the reference carries no icons */
.kpi::before{content:"[" counter(k,decimal-leading-zero) "]";position:absolute;top:18px;right:20px;
  font-size:9.5px;letter-spacing:.16em;color:var(--faint)}
.kpi .lbl{display:block;margin-bottom:10px;font-size:9.5px;letter-spacing:.22em;
  text-transform:uppercase;color:var(--faint)}
.kpi .num{font-size:clamp(26px,3.4vw,38px);font-weight:300;letter-spacing:-.03em;line-height:1;
  color:#fff;font-variant-numeric:tabular-nums}
.kpi .dlt{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;margin-top:10px}
/* one accent only. The old up-state was #63d18a, a green that is not in the brand guideline:
   a figure that rose is white, one that fell takes the single orange, flat is grey. */
.dlt.up{color:#fff}.dlt.down{color:var(--or)}.dlt.flat{color:var(--faint)}
