/* DTG hub on a calm desk design system, in DTG's greens (16 Oct 2026). Light canvas, white cards with a
   hairline and a soft shadow, Bricolage Grotesque for headings and figures, Inter for words. A dark forest sidebar on a desk; on a
   phone a dark bottom bar and a green action button. One dark band per page at most ("Needs you now"). One green primary per view.
   Status colours only as pills and dots with their tint. No photographs behind pages, no glass, no mono labels.
   Loads after hub11.css, legacy.css and every page stylesheet, and replaces hub12.css. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Noto+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root, html[data-theme="dark"], html[data-theme="light"] {
  color-scheme: light;
  --fx-900: #0a2216; --fx-800: #0f2e1e; --fx-700: #164029; --fx-600: #1d5236;
  --em-500: #1fae5b; --em-600: #138a47; --teal-500: #12a38a;
  --grad-growth: linear-gradient(135deg, #22b45f 0%, #12a38a 100%);
  --grad-forest: linear-gradient(160deg, #164029 0%, #0a2216 100%);
  --amber: #ffb020; --coral: #ff6b6b; --sky: #5ea9ff;
  --bg: #eef3ef; --bg-2: #e6ede8;
  --surface: #ffffff; --surface-2: #f6faf7; --surface-hover: #f0f5f1;
  --line: #e2eae4; --line-strong: #d0dbd3;
  --ink: #0f1d15; --ink-2: #4f6157; --ink-3: #8a9a90; --on-fx: #eaf5ee; --on-fx-mut: rgba(234,245,238,.62);
  --ok: #0f9d6b; --ok-bg: #e5f6ee; --warn: #d98200; --warn-bg: #fff4e0; --bad: #e5484d; --bad-bg: #fdeceb; --info: #2f7ff0; --info-bg: #e9f1fe;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(15,46,30,.05), 0 1px 3px rgba(15,46,30,.05);
  --sh-2: 0 2px 6px rgba(15,46,30,.06), 0 12px 28px -14px rgba(15,46,30,.18);
  --sh-3: 0 8px 40px -12px rgba(15,46,30,.28);
  --glow-em: 0 10px 26px -8px rgba(31,174,91,.55);
  --spring: cubic-bezier(.16,1,.3,1);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif;
  /* the names the existing pages use, mapped onto this system */
  --sans: var(--font-body); --serif: var(--font-display); --mono: var(--font-body);
  --paper: var(--bg); --paper2: var(--bg-2); --card: var(--surface); --well: var(--surface-2); --well2: var(--bg-2);
  --mute: var(--ink-3); --mut: var(--ink-3); --dim: var(--ink-3); --hair: var(--line); --hair2: var(--line-strong);
  --free: var(--ok); --free-soft: var(--ok-bg); --free-line: #a9dcc2; --booked: #dfe7e2;
  --hv: var(--warn); --hv-ink: #6b4300; --hv-soft: var(--warn-bg); --soon-c: var(--warn);
  --over: var(--bad); --over-soft: var(--bad-bg);
  --on-ink: #fff; --ink-hover: #22372b; --tog: var(--line-strong); --nw: #edf2ee; --past: #f2f5f3; --todaycol: rgba(31,174,91,.05);
  --lift: var(--sh-1); --lift-hi: var(--sh-2);
  --hatch: repeating-linear-gradient(135deg, #dfe6e1 0 3px, #f3f6f4 3px 6px);
  --land: #e8eee9; --landdot: rgba(15,46,30,.12); --sea: #dbe8ee; --tile: #fff; --tile-line: var(--line);
  --g: var(--em-600); --gt: var(--ok-bg); --gt2: #cdeedd; --gglow: rgba(31,174,91,.35); --on-g: #fff;
  --or: var(--em-500); --ort: var(--ok-bg); --ord: var(--em-600); --red: var(--bad); --redt: var(--bad-bg); --redd: var(--bad);
  --fill: var(--surface-2); --fill2: var(--bg-2); --fill3: var(--line-strong);
  --glass: var(--surface); --glass2: var(--surface); --pillg: var(--surface); --pillg-ring: inset 0 0 0 1px var(--line-strong); --rowline: var(--line);
  --brd: var(--line); --brd2: var(--line-strong); --solid: var(--surface);
}
html, body { background: var(--bg) !important; color: var(--ink); }
body { font: 14px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.12; color: var(--ink); }
b, strong { font-weight: 600; color: inherit; }
a { color: inherit; }
::selection { background: rgba(31,174,91,.22); }
.tnum, .sv, .n { font-variant-numeric: tabular-nums; }

/* ---------- the shell: forest sidebar, topbar, content ---------- */
#app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; height: auto; }
.bgph, .topbar.v9, .mtop { display: none !important; }
.side { display: flex !important; flex-direction: column; gap: 4px; background: var(--grad-forest); color: var(--on-fx); padding: 20px 14px; position: sticky; top: 0; height: 100dvh; overflow: auto; border: 0; }
.side:after, .side-photo { display: none !important; }
.side .brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; text-decoration: none; }
.side .brand img { height: 36px; width: auto; }
.side .brand span { font: 700 15px var(--font-display); letter-spacing: -.01em; color: #fff; }
.side .ng { font: 600 10.5px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--on-fx-mut); padding: 16px 10px 6px; margin: 0; }
.side .nv { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px; color: var(--on-fx-mut); font: 500 14px var(--font-body); text-decoration: none; border-left: 3px solid transparent; transition: background .12s, color .12s; height: auto; background: none; box-shadow: none; backdrop-filter: none; }
.side .nv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.side .nv:hover { background: rgba(255,255,255,.06); color: var(--on-fx); }
.side .nv.on { background: rgba(255,255,255,.09); color: #fff; border-left-color: var(--em-500); }
.side .nv.on svg { color: var(--em-500); opacity: 1; }
.side .cnt { margin-left: auto; background: var(--amber); color: #3a2600; font: 700 11px/1 var(--font-body); border-radius: 99px; padding: 4px 7px; }
.side .me { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 14px 6px 2px; display: flex; align-items: center; gap: 10px; }
.side .me b { color: #fff; font-size: 13px; display: block; } .side .me small { color: var(--on-fx-mut); font-size: 11.5px; display: block; }
.side .mebtn { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.side .thm { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; height: auto; overflow: visible; }
.tbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 26px; background: rgba(238,243,239,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tbar .search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 15px; color: var(--ink-3); font-size: 13.5px; }
.tbar .search input { border: 0; outline: 0; background: none; font: inherit; color: var(--ink); width: 100%; }
.tbar .search svg, .tbar .ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.tbar .r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tbar .ib { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: var(--ink); cursor: pointer; position: relative; }
.tbar .ib .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--surface); }
.tbar .av { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-forest); color: #fff; display: grid; place-items: center; font: 600 13px var(--font-body); border: 0; cursor: pointer; box-shadow: none; }
.tbar .tlogo { display: none; }
.page { max-width: 1240px; width: 100%; margin: 0 auto; padding: 26px 26px 60px; }
.page.mo { padding-top: 26px; }
.page > * + * { margin-top: 0; }

/* ---------- page header ---------- */
.hero, .ph, .pgh { display: block !important; padding: 0 !important; margin: 0 0 22px !important; min-height: 0 !important; background: none !important; color: var(--ink) !important; overflow: visible !important; }
.hero:before, .hero:after { display: none !important; }
.hero .in { max-width: none; }
.hero .eb, .hero .ov { font: 600 12.5px var(--font-body) !important; letter-spacing: .02em !important; text-transform: none !important; color: var(--em-600) !important; opacity: 1 !important; }
.hero h1, .ph h1, .pgh h1 { font: 700 30px/1.12 var(--font-display) !important; letter-spacing: -.02em !important; color: var(--ink) !important; margin: 3px 0 0 !important; }
.hero h1 b { display: inline; font: inherit !important; }
.hero h1 > span, .hero .sum, .hero p, .ph p, .pgh p { display: block; font: 400 14px/1.5 var(--font-body) !important; letter-spacing: 0 !important; color: var(--ink-2) !important; margin: 6px 0 0 !important; max-width: 680px; }
.hero .sum em { font-style: normal; color: var(--warn); font-weight: 600; }
.hero .sum a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.hero .live { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.hero .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); } .hero .live.late i { background: var(--warn); }
.hero .rt { float: right; margin-top: -54px; display: flex; gap: 8px; align-items: center; }
.hero .w, .hero .wi { display: inline !important; animation: none !important; }
.greet .nm2 { display: inline !important; } .greet .nm2:before { content: " "; }
.greet, .greet2 { font: 600 12.5px var(--font-body); color: var(--em-600); margin: 0 0 2px; }
.ph-r { display: none; }

/* ---------- section titles ---------- */
.sec { font: 700 13px var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 26px 2px 12px; }
.lab, .eb, .t-eb, .ch .meta, .cnt2 { font: 600 11.5px var(--font-body) !important; letter-spacing: .02em !important; text-transform: none !important; color: var(--ink-3) !important; }
.mx-key .sl, .sl { font-size: 12px; }

/* ---------- cards ---------- */
.card, .bx, .tile, .tile.mini, .stat, .map, .ncard, .lgc .card, .lgc .bx { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-xl) !important; box-shadow: var(--sh-1) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; color: var(--ink); }
.card { padding: 20px; }
.card .card { box-shadow: none !important; }
a.card:hover, a.stat:hover, .card.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-2) !important; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; min-height: 0; }
.ch h2, .ch h3 { font: 600 14px var(--font-body) !important; letter-spacing: 0 !important; color: var(--ink) !important; margin: 0 !important; display: flex; align-items: center; gap: 9px; }
.ch h2 svg, .ch h3 svg { width: 17px; height: 17px; color: var(--ink-3); fill: none; stroke: currentColor; stroke-width: 2; }
.cf { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); }
.cf .pill, .cf .btn { margin-left: auto; }
.src { font-size: 11.5px; color: var(--ink-3); } .src:before { border-color: var(--ink-3); } .src.real:before { background: var(--ok); border-color: var(--ok); box-shadow: none; }
.muted, .quiet, .ncp { color: var(--ink-3); }
.soon { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); border-radius: 12px; box-shadow: none; }
.empty { color: var(--ink-3); text-align: center; padding: 18px 0 8px; } .empty svg { width: 30px; height: 30px; color: var(--ok); opacity: .7; } .empty b { display: block; font: 600 15px var(--font-body); color: var(--ink); margin-top: 8px; }

/* ---------- KPI cards (bento) ---------- */
.bento, .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento .s2 { grid-column: span 2; } .bento .s4 { grid-column: span 4; }
.stat { display: flex; flex-direction: column; gap: 0; padding: 20px !important; min-height: 0; text-decoration: none; color: var(--ink) !important; transition: transform .2s var(--spring), box-shadow .2s; overflow: hidden; }
.stat .sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat .sh .eb { font: 600 14px var(--font-body) !important; color: var(--ink) !important; }
.stat .sh svg { width: 15px; height: 15px; color: var(--ink-3); fill: none; stroke: currentColor; stroke-width: 2; }
.stat .sv { font: 700 34px/1 var(--font-display) !important; letter-spacing: -.03em; color: var(--ink) !important; white-space: nowrap; }
.stat .sv.big { font-size: 34px !important; }
.stat .sv small { display: block; font: 500 13px var(--font-body); color: var(--ink-2); margin: 7px 0 0; letter-spacing: 0; white-space: normal; }
.stat .sf { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.45; }
.stat .sf b { color: var(--ink-2); }
.stat.calm .sh .eb, .stat.alarm .sh .eb { color: var(--ink) !important; }
.stat.alarm { background: var(--surface) !important; } .stat.alarm .sv { color: var(--bad) !important; font-size: 24px !important; white-space: normal; }
.stat.alarm p { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 12px; }
.spark i { flex: 1; min-height: 3px; border-radius: 3px; background: #e1e9e4; animation: none !important; opacity: 1; }
.spark i.on { background: var(--em-500); box-shadow: none; } .spark i.mid { background: #a9dcc2; }
.crews { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.crews li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; color: var(--ink); }
.crews li i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: none !important; box-shadow: none; }
.crews li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .crews li span { font-size: 12px; color: var(--ink-3); }
.stat.sring { flex-direction: row; align-items: center; gap: 18px; }
.ringv { position: relative; width: 92px; height: 92px; flex: none; }
.ringv svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ringv .rg-t { stroke: #e6ede8; } .ringv .rg-f { stroke: var(--em-500); stroke-dasharray: var(--c); stroke-dashoffset: var(--o); filter: none; animation: none; }
.ringv .rg-f.a { stroke: var(--amber); } .ringv .rg-f.r { stroke: var(--bad); }
.ringv .rv { position: absolute; inset: 0; display: grid; place-items: center; font: 700 24px var(--font-display); color: var(--ink); }
.ringv .rv small { font-size: 13px; color: var(--ink-3); }
.stat.sring .rt2 p { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; line-height: 1.45; }
.delta { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--font-body); padding: 3px 8px; border-radius: var(--r-pill); }
.delta.up { color: var(--ok); background: var(--ok-bg); } .delta.down { color: var(--bad); background: var(--bad-bg); } .delta.mid { color: var(--warn); background: var(--warn-bg); }
.bar { height: 8px; border-radius: 99px; background: #eaf0ec; overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad-growth); }

/* ---------- the dark band: Needs you now ---------- */
.band2 { background: var(--grad-forest) !important; color: var(--on-fx) !important; border: 0 !important; box-shadow: var(--sh-3) !important; border-radius: var(--r-xl); padding: 20px; }
.band2 .ch h2 { color: #fff !important; } .band2 .ch h2 svg { color: var(--amber); }
.band2 .nn { display: flex; align-items: center; gap: 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 13px 15px; }
.band2 .nn + .nn { margin-top: 10px; }
.band2 .nn .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.band2 .nn .dot.r { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,107,.18); } .band2 .nn .dot.a { background: var(--amber); box-shadow: 0 0 0 4px rgba(255,176,32,.18); } .band2 .nn .dot.b { background: var(--sky); box-shadow: 0 0 0 4px rgba(94,169,255,.18); }
.band2 .nn .tx { flex: 1; min-width: 0; } .band2 .nn .tx b { display: block; font-weight: 600; color: #fff; } .band2 .nn .tx span { display: block; font-size: 12.5px; color: var(--on-fx-mut); }
.band2 .nn .btn2 { background: rgba(255,255,255,.1); color: #fff; border: 0; }
.band2 .calm { display: flex; align-items: center; gap: 10px; color: var(--on-fx); font-size: 14px; } .band2 .calm i { width: 8px; height: 8px; border-radius: 50%; background: var(--em-500); }

/* ---------- buttons, badges, chips ---------- */
.btn, .pill, .btn2 { font: 600 13.5px var(--font-body) !important; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 9px 15px; height: auto !important; border-radius: var(--r-pill) !important; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; box-shadow: none; transition: transform .12s var(--spring), background .12s; }
.btn:hover, .pill:hover, .btn2:hover { background: var(--surface-hover); } .btn:active, .pill:active, .btn2:active { transform: scale(.97); }
.btn svg, .pill svg, .btn2 svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn.sm, .pill.sm { padding: 6px 12px; font-size: 12.5px !important; }
.btn.ink, .pill.o, .btn.primary, .btn2.primary { background: var(--grad-growth) !important; color: #04231a !important; border: 0 !important; box-shadow: var(--glow-em) !important; }
.btn.line, .btn.ghost, .pill.ghost, .pill.g { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important; box-shadow: none !important; }
.btn.light, .btn.ghost-l { background: var(--surface); color: var(--ink); }
.badge, .chip { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px var(--font-body) !important; padding: 3px 9px; border-radius: var(--r-pill); height: auto; background: #eef3ef; color: var(--fx-700); border: 0; }
.chip.ok, .b-ok { color: var(--ok); background: var(--ok-bg); } .chip.due, .chip.hv, .b-warn { color: var(--warn); background: var(--warn-bg); } .chip.over, .chip.rd, .b-bad { color: var(--bad); background: var(--bad-bg); } .chip.soft, .chip.nc, .chip.n, .b-navy { color: var(--fx-700); background: #eaf1ec; } .b-info { color: var(--info); background: var(--info-bg); }
.seg, .aseg { display: inline-flex; gap: 6px; background: none; box-shadow: none; padding: 0; border: 0; flex-wrap: wrap; }
.seg button, .aseg button { font: 500 13px var(--font-body); padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; height: auto; }
.seg button.on, .aseg button.on, .seg .on { background: var(--fx-800) !important; color: #fff !important; border-color: var(--fx-800) !important; box-shadow: none; }
.fld, input.fld, select.fld, textarea.fld { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; border-radius: 12px; font: 400 14px var(--font-body); padding: 10px 12px; }
.fld:focus { outline: 0; border-color: var(--em-500); box-shadow: 0 0 0 3px rgba(31,174,91,.15); }
.toast { background: var(--fx-800) !important; color: #fff !important; border-radius: 999px !important; box-shadow: var(--sh-3) !important; }
.tip { background: var(--fx-800); color: #fff; }
.hubline { background: var(--warn-bg); color: var(--ink); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.err { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 10px 12px; } .err.okd { background: var(--ok-bg); color: var(--ok); }

/* ---------- rows ---------- */
.row2 { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: transform .2s var(--spring), box-shadow .2s; }
.row2 + .row2 { margin-top: 10px; }
a.row2:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.row2 .lead { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 13px var(--font-display); background: #eef3ef; color: var(--fx-700); flex: none; }
.row2 .lead.ok { background: var(--ok-bg); color: var(--ok); } .row2 .lead.bad { background: var(--bad-bg); color: var(--bad); } .row2 .lead.warn { background: var(--warn-bg); color: var(--warn); }
.row2 .lead svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.row2 .body { flex: 1; min-width: 0; } .row2 .name { font-weight: 600; font-size: 14.5px; color: var(--ink); } .row2 .meta { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.k-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.k-row:first-child { border-top: 0; }
.k-row .ki { width: 34px; height: 34px; border-radius: 10px; background: #eef3ef; display: grid; place-items: center; color: var(--fx-700); flex: none; }
.k-row .ki.ic-g { background: var(--ok-bg); color: var(--ok); } .k-row .ki.ic-y { background: var(--warn-bg); color: var(--warn); } .k-row .ki.ic-o { background: var(--bad-bg); color: var(--bad); }
.k-row .ki svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k-row .ki b { font: 600 11px/1.15 var(--font-body); text-align: center; color: var(--fx-700); }
.k-row .kt { flex: 1; min-width: 0; } .k-row .kt b { display: block; font: 600 14px/1.3 var(--font-body); color: var(--ink); } .k-row .kt span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.k-row .kr { flex: none; display: flex; align-items: center; gap: 8px; } .k-row .kr > svg { width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 2; }
.al { display: flex !important; align-items: center; gap: 13px; padding: 13px 0 !important; border-top: 1px solid var(--line) !important; }
.al:first-child { border-top: 0 !important; }
.al .ico { width: 34px; height: 34px; border-radius: 10px; background: #eef3ef; color: var(--fx-700); display: grid; place-items: center; font: 700 12px var(--font-display); flex: none; }
.al .ico.gr { background: var(--ok-bg); color: var(--ok); }
.al > a, .al > span:not(.ico):not(.act) { flex: 1; min-width: 0; text-decoration: none; } .al b { font: 600 14px var(--font-body); color: var(--ink); display: block; } .al .m { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.al .act { display: flex; gap: 8px; flex: none; }
.lnk { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; border: 0; cursor: pointer; }
.lnk:hover { color: var(--em-600); text-decoration-color: var(--em-500); }

/* ---------- the map ---------- */
.map { padding: 0 !important; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.map:before { display: none; }
.map .mh { padding: 20px 20px 0; } .map .mh h2 { font: 600 14px var(--font-body); color: var(--ink); margin: 0; }
.map .stage { padding: 6px 14px 0; flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.map .fit { position: relative; width: 100%; max-width: 620px; aspect-ratio: 600 / 390; }
.map svg.mp { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .sea { fill: #e3eef2; } .map .town { fill: #9fb0a5; } .map .townl { font: 600 9px var(--font-body); fill: #8a9a90; letter-spacing: .02em; text-transform: none; }
.map .yard { fill: var(--fx-700); } .map .yardl { font: 700 9.5px var(--font-body); fill: var(--fx-700); text-transform: none; letter-spacing: 0; }
.map .job { fill: var(--em-500); filter: none; } .map .jobr { fill: none; stroke: var(--em-500); stroke-width: 1; opacity: .4; animation: none; }
.map .tag { position: absolute; transform: translate(-50%, -135%); padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font: 600 11px var(--font-body); color: var(--ink); white-space: nowrap; text-decoration: none; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.map .tag small { color: var(--ink-3); margin-left: 4px; font-weight: 500; }
.map .mf { padding: 12px 20px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.map .mf b { color: var(--ink-2); font-weight: 500; }

/* ---------- grids ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.row { display: grid; gap: 16px; } .c2 { grid-template-columns: 1fr 1fr; } .c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wrap { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.wrap .card { margin: 0; }

/* ---------- this week strip ---------- */
.wcols { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.wcol { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-decoration: none; color: var(--ink-2); padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.wcol.today { border-color: var(--em-500); background: var(--ok-bg); } .wcol.gone { opacity: .5; }
.wcol .wd { font: 600 11.5px var(--font-body); color: var(--ink-2); } .wcol .wd i { font-style: normal; color: var(--ink); }
.wcol .wbar { display: none; }
.wcol .wnum { font-size: 11.5px; color: var(--ink-3); } .wcol .wnum b { font: 700 18px var(--font-display); color: var(--ink-2); display: block; } .wcol .wnum b.g { color: var(--ok); }

/* ---------- sheets ---------- */
.sheet { background: var(--surface) !important; color: var(--ink); border-radius: 22px 0 0 22px; box-shadow: var(--sh-3) !important; border: 0; }
.scrim { background: rgba(10,34,22,.35) !important; }
.sh-h h2 { font: 700 22px var(--font-display); color: var(--ink); } .sh-h p { color: var(--ink-2); } .sh-h .eyebrow { font: 600 12.5px var(--font-body); color: var(--em-600); text-transform: none; letter-spacing: .02em; }
.sh-b section h4 { font: 700 12px var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sh-acts { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 20px; }
.iconb { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 50%; color: var(--ink); }

/* ---------- the board ---------- */
.board { padding: 10px 0 0 !important; }
.bwrap { overflow-x: auto; padding: 0 12px; }
.btab { border-collapse: separate; border-spacing: 4px; min-width: 100%; }
.btab th { font: 600 11.5px var(--font-body); color: var(--ink-3); text-align: left; padding: 6px 8px 8px; min-width: 124px; }
.btab th b { display: block; font: 700 20px var(--font-display); color: var(--ink); } .btab th.tdy b { color: var(--em-600); }
.btab th.bn, .btab td.bn { min-width: 170px; position: sticky; left: 0; background: var(--surface); z-index: 2; }
.btab td.bn { padding: 6px 8px; } .btab td.bn a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.btab td.bn b { display: block; font-size: 13.5px; color: var(--ink); } .btab td.bn small { display: block; font-size: 11.5px; color: var(--ink-3); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btab tr.bg td { padding: 16px 8px 4px; font: 700 11.5px var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); position: sticky; left: 0; }
.btab tr.bg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.bc { min-width: 124px; height: 58px; border-radius: 12px; vertical-align: top; }
.bc a { display: block; height: 100%; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-size: 12px; line-height: 1.3; }
.bc b { display: block; font-weight: 600; color: var(--ink); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bc span, .bc small { display: block; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.bc.free a { background: var(--ok-bg); color: var(--ok); font-weight: 600; } .bc.bk a { background: var(--surface-2); border: 1px solid var(--line); } .bc.held a { border-color: var(--em-500); }
.bc.part a { background: linear-gradient(135deg, var(--ok-bg) 50%, var(--surface-2) 50%); } .bc.off a { background: var(--hatch); color: var(--ink-3); }
.bnav { display: flex; align-items: center; gap: 8px; } .bnav b { font-size: 14px; color: var(--ink); }

/* ---------- the crew app on these cards ---------- */
.jobc { display: flex; align-items: center; gap: 14px; padding: 16px 18px !important; text-decoration: none; }
.jobc .ji { width: 44px; height: 44px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; }
.jobc .ji svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.jobc .jw { flex: 1; min-width: 0; } .jobc .jw b { display: block; font: 700 17px var(--font-display); color: var(--ink); } .jobc .jw > span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.jobc .jr { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.vl { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); } .vl i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.avs { display: flex; } .avs .av { width: 28px; height: 28px; font-size: 10px; box-shadow: 0 0 0 2px var(--surface); } .avs .av + .av { margin-left: -8px; }
.quick { padding: 18px !important; }
.quick .qin { display: flex; gap: 18px; align-items: center; }
.qr { position: relative; width: 76px; height: 76px; flex: none; } .qr svg { width: 76px; height: 76px; }
.qr .qt0 { fill: none; stroke: #e6ede8; stroke-width: 7; } .qr .qt1 { fill: none; stroke: var(--em-500); stroke-width: 7; stroke-linecap: round; filter: none; }
.qr .qv { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 22px var(--font-display); color: var(--ink); } .qr .qv small { font-size: 13px; color: var(--ink-3); } .qr .qv svg { width: 28px; height: 28px; stroke: var(--ok); fill: none; stroke-width: 2.5; }
.quick .ql { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.quick .qh { font: 600 14px var(--font-body); color: var(--ink); } .quick .qh.ok { color: var(--ok); }
.qi { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.chk { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; flex: none; }
.chk svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 3; } .chk.done { background: var(--ok); color: #fff; box-shadow: none; }
.qi.now .chk { box-shadow: inset 0 0 0 1.5px var(--em-500); }
.qi .tl { font: 500 14px var(--font-body); flex: 1; min-width: 0; } .qi .tl.done { color: var(--ink-3); text-decoration: line-through; }
.qi .go { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-growth); color: #04231a; display: grid; place-items: center; flex: none; } .qi .go svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.rings { display: grid !important; grid-template-columns: repeat(3, 1fr); padding: 16px 6px 14px !important; } .rings.two { grid-template-columns: repeat(2, 1fr); }
.rg { display: flex; flex-direction: column; align-items: center; position: relative; text-decoration: none; } .rg + .rg { border-left: 1px solid var(--line); }
.rg svg { width: 70px; height: 70px; transform: rotate(-90deg); } .rg .rt0 { fill: none; stroke: #e6ede8; stroke-width: 6; } .rg .rt1 { fill: none; stroke-width: 6; stroke-linecap: round; }
.rg .rv { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font: 700 20px var(--font-display); color: var(--ink); } .rg .rv small { font-size: 11px; color: var(--ink-3); }
.rg .rl { font: 600 11.5px var(--font-body); color: var(--ink-3); margin-top: 6px; letter-spacing: 0; text-transform: none; }
.bigbtn { display: flex; align-items: center; justify-content: center; gap: 9px; height: 54px; border-radius: 16px; font: 600 15px var(--font-body); text-decoration: none; cursor: pointer; border: 0; width: 100%; }
.bigbtn.o { background: var(--grad-growth); color: #04231a; box-shadow: var(--glow-em); } .bigbtn.gl { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.bigbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.choice { display: grid; gap: 10px; }
.choice a, .choice button { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.choice .ci { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--ok-bg); color: var(--ok); }
.choice .ci.or { background: var(--warn-bg); color: var(--warn); } .choice .ci.rd { background: var(--bad-bg); color: var(--bad); }
.choice .ci svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.choice b { display: block; font: 600 15px var(--font-body); } .choice span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.samp { font: 600 10px var(--font-body); color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* ---------- phone: bottom bar and the green button ---------- */
.tabs { display: none; }
.fab { display: none; }
@media (max-width: 900px) {
  #app { grid-template-columns: 1fr; }
  .side { display: none !important; }
  .tbar { padding: 12px 14px; }
  .tbar .search { display: none; }
  .tbar .tlogo { display: flex; align-items: center; gap: 8px; text-decoration: none; } .tbar .tlogo img { height: 30px; } .tbar .tlogo span { font: 700 15px var(--font-display); color: var(--ink); }
  .page { padding: 16px 14px calc(100px + env(safe-area-inset-bottom)); }
  .hero h1, .ph h1, .pgh h1 { font-size: 24px !important; }
  .hero .rt { float: none; margin: 12px 0 0; }
  .bento, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bento .s2, .bento .s4 { grid-column: span 2; }
  .stat .sv, .stat .sv.big { font-size: 28px !important; }
  .stat.sring { flex-direction: column; align-items: flex-start; }
  .duo, .c2, .c3 { grid-template-columns: 1fr; }
  .wcols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .band2 .nn { flex-wrap: wrap; } .band2 .nn .tx { flex-basis: calc(100% - 30px); } .band2 .nn .btn, .band2 .nn .btn2 { margin-left: 21px; }
  .tabs { display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--fx-800) !important; border: 0 !important; border-radius: 0 !important; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)) !important; height: auto !important; width: auto !important; transform: none !important; box-shadow: none !important; backdrop-filter: none !important; }
  .tabs .tb { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--on-fx-mut); font: 500 10.5px var(--font-body); padding: 4px; text-decoration: none; background: none; border: 0; min-width: 0; }
  .tabs .tb .ti { width: auto; height: auto; background: none !important; display: grid; place-items: center; position: relative; }
  .tabs .tb .ti svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; }
  .tabs .tb.on { color: #fff; } .tabs .tb.on .ti { color: var(--em-500); }
  .tabs .tb .cnt { position: absolute; top: -4px; right: -10px; background: var(--amber); color: #3a2600; font: 700 10px/1 var(--font-body); padding: 3px 5px; border-radius: 99px; }
  .tabs .tb.rep { display: none; }
  .fab { display: grid; position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--grad-growth); color: #04231a; border: 0; place-items: center; box-shadow: var(--glow-em); z-index: 41; text-decoration: none; }
  .fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom)) !important; }
  .sheet { border-radius: 22px 22px 0 0 !important; }
  .rings { padding: 14px 2px 12px !important; }
}
@media (max-width: 1100px) and (min-width: 901px) { .bento, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .duo, .c3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
.rise { animation: none !important; }

/* fixes from the page-by-page check, 16 Oct 2026 */
.board { overflow: hidden; } .page { overflow-x: clip; }
.hero .rt .bnav { flex-wrap: wrap; justify-content: flex-end; }
.vbig .vt.xl, .vbig > .vt { width: 64px !important; height: 44px !important; border-radius: 12px !important; margin: 0 0 10px !important; display: block; }
.vbig { padding: 18px !important; }
.vgrid { gap: 16px !important; }
select.fld, .p4cr select, .fld select { height: auto !important; padding: 8px 32px 8px 12px !important; line-height: 1.3 !important; font-size: 13px !important; }

.rg { width: 100%; } .rg svg { width: 70px; height: 70px; } .rg .rv { top: 0; height: 70px; display: flex; align-items: center; justify-content: center; }
.cf { flex-wrap: wrap; } .cf .pill, .cf .btn { white-space: normal; }
.rings .rg .rv { top: 0 !important; bottom: auto !important; height: 70px !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 19px !important; line-height: 1 !important; padding: 0 !important; transform: none !important; }

/* ===== the mix (16 Oct 2026): the desk base + v9's DTG photos for everyone + v9's phone app for the lads ===== */
#main { position: relative; }
.ph9 { position: absolute; left: 0; right: 0; top: 0; height: 340px; overflow: hidden; pointer-events: none; z-index: 0; }
.ph9 i { position: absolute; inset: 0; background: var(--ph) 50% 40% / cover no-repeat; filter: saturate(.75) contrast(.9) brightness(1.05); opacity: .55; }
.ph9:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238,243,239,.97) 0%, rgba(238,243,239,.8) 38%, rgba(238,243,239,.25) 75%), linear-gradient(180deg, rgba(238,243,239,.1) 0%, rgba(238,243,239,.35) 55%, var(--bg) 100%); }
.page { position: relative; z-index: 1; }
.page > .hero { padding: 34px 0 10px !important; min-height: 150px !important; }
@media (max-width: 900px) {
  .ph9 { height: 260px; }
  .ph9:after { background: linear-gradient(180deg, rgba(238,243,239,.35) 0%, rgba(238,243,239,.55) 45%, var(--bg) 100%); }
  .page > .hero { padding-top: 70px !important; min-height: 0 !important; }
  /* the lads: v9's phone app. The day's photo full-bleed behind the greeting, glass cards, the raised camera in the tab bar */
  .ph9.mo { height: min(100svh, 760px); }
  .ph9.mo i { opacity: 1; filter: saturate(.9) brightness(.95); background-position: 50% 0; }
  .ph9.mo:after { background: linear-gradient(180deg, rgba(238,243,239,.15) 0%, rgba(238,243,239,.05) 18%, rgba(238,243,239,.55) 34%, rgba(238,243,239,.92) 46%, var(--bg) 60%); }
  .page.mo > .hero { padding-top: clamp(170px, 30svh, 250px) !important; }
  .page.mo > .hero h1 { font-size: 38px !important; }
  .page.crew .card, .page.crew .rings { background: rgba(255,255,255,.78) !important; backdrop-filter: blur(18px) saturate(1.4) !important; -webkit-backdrop-filter: blur(18px) saturate(1.4) !important; border-radius: 26px !important; }
  body[data-role="staff"] .tabs { left: 14px !important; right: 14px !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; border-radius: 24px !important; height: 68px !important; padding: 0 6px !important; align-items: center; box-shadow: 0 16px 40px -14px rgba(10,34,22,.5) !important; }
  body[data-role="staff"] .tabs .tb.rep { display: flex !important; width: 56px; height: 56px; min-width: 56px; justify-self: center; border-radius: 18px; background: var(--grad-growth); color: #04231a; align-items: center; justify-content: center; margin-top: -30px; box-shadow: var(--glow-em), 0 0 0 5px var(--bg); }
  body[data-role="staff"] .tabs .tb.rep .ti { color: #04231a !important; } body[data-role="staff"] .tabs .tb.rep .ti svg { width: 25px; height: 25px; stroke-width: 2.1; }
  body[data-role="staff"] .page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

.sortl { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); } .sortl i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; } .sortl i.r { background: var(--bad); } .sortl i.a { background: var(--amber); }

/* ===== Connecteam x v9 (16 Oct 2026: "connecteam's ui type of stuff x v9") =====
   Connecteam's shape: white sidebar with coloured icon tiles and bold section names, white top bar with search, bell and name chip,
   every page opens on a white header card (tile, title, pill buttons), white cards on a cool grey canvas, pill buttons, underlined tabs,
   plain tables with a grey header row. v9's part: DTG's own photos (in the header card, fading in from the right) and the lads' phone app.
   DTG green replaces Connecteam blue. */
:root, html[data-theme="dark"], html[data-theme="light"] {
  --font-display: 'Noto Sans', system-ui, sans-serif; --font-body: 'Noto Sans', system-ui, sans-serif;
  --bg: #f3f5f4; --surface: #ffffff; --line: #e5e9e7; --line-strong: #d6ddd9; --surface-hover: #f6f8f7;
  --ink: #1e2a24; --ink-2: #56645c; --ink-3: #8b9790;
  --cg: #1f8a4c; --cg-2: #177a41; --cg-t: #e8f4ec; --cg-ring: rgba(31,138,76,.16);
  --r-xl: 22px; --sh-1: 0 1px 2px rgba(20,40,30,.04);
}
html, body { background: var(--bg) !important; }
body { font-family: var(--font-body); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.01em; }

/* sidebar: white, coloured tiles */
.side { background: #fff !important; color: var(--ink) !important; border-right: 1px solid var(--line) !important; padding: 14px 12px !important; gap: 2px !important; }
.side .brand { padding: 6px 8px 14px !important; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.side .brand img { height: 34px !important; }
.side .brand span { color: var(--ink) !important; font: 700 15px var(--font-body) !important; }
.side .ng { font: 700 14px var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; padding: 16px 10px 6px !important; }
.side .nv { color: var(--ink) !important; font: 400 14.5px var(--font-body) !important; padding: 7px 10px !important; border-radius: 12px !important; border-left: 0 !important; gap: 12px !important; }
.side .nv:hover { background: var(--surface-hover) !important; }
.side .nv.on { background: var(--cg-t) !important; color: var(--ink) !important; font-weight: 600 !important; }
.stile { width: 28px; height: 28px; border-radius: 8px; background: var(--tc); display: inline-grid; place-items: center; flex: none; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); font-style: normal; }
.stile svg { width: 16px !important; height: 16px !important; stroke: #fff !important; color: #fff !important; opacity: 1 !important; fill: none; stroke-width: 2 !important; stroke-linecap: round; stroke-linejoin: round; }
.side .nv.on .stile svg { color: #fff !important; }
.side .cnt { background: #e5484d !important; color: #fff !important; border-radius: 99px !important; padding: 4px 8px !important; font: 700 11.5px/1 var(--font-body) !important; }
.side .me { border-top: 1px solid var(--line) !important; }
.side .me b { color: var(--ink) !important; } .side .me small { color: var(--ink-3) !important; }

/* top bar: white, search, bell with a count, name chip */
.tbar { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: 1px solid var(--line) !important; padding: 12px 24px !important; }
.tbar .search { background: #fff !important; border: 1px solid var(--line-strong) !important; border-radius: 12px !important; padding: 10px 14px !important; max-width: 380px !important; }
.tbar .ib { border: 0 !important; background: none !important; color: var(--ink-2) !important; }
.tbar .ib svg { width: 20px !important; height: 20px !important; }
.tbar .ib .nb { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e5484d; color: #fff; font: 700 10.5px/18px var(--font-body); text-align: center; box-shadow: 0 0 0 2px #fff; }
.tbar .who { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 4px 6px 4px 4px; border-radius: 99px; cursor: pointer; color: var(--cg); font: 500 14.5px var(--font-body); border-left: 1px solid var(--line); padding-left: 16px; border-radius: 0; }
.tbar .who .av { width: 36px; height: 36px; border-radius: 50%; background: #2e5d45; color: #fff; display: grid; place-items: center; font: 700 13px var(--font-body); }
.tbar .who svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* the page header: a white card, the section tile, the title, the photo fading in from the right (v9) */
#main > .ph9:not(.mo) { display: none !important; }
.page { padding-top: 22px !important; }
.page > .hero, .page > .ph, .page > .pgh { position: relative !important; display: block !important; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 24px !important; padding: 22px 28px !important; margin: 0 0 18px !important; min-height: 0 !important; overflow: hidden !important; box-shadow: var(--sh-1) !important; }
.page > .hero:after, .page > .ph:after, .page > .pgh:after { content: "" !important; display: block !important; position: absolute !important; top: 0 !important; right: 0 !important; left: auto !important; bottom: 0 !important; width: 46%; height: auto !important; opacity: 1 !important; transform: none !important; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.75) 30%, rgba(255,255,255,.1) 100%), var(--ph) 50% 35% / cover no-repeat; pointer-events: none; z-index: 0; }
.page > .hero > *, .page > .ph > *, .page > .pgh > * { position: relative; z-index: 1; }
.hero h1, .ph h1, .pgh h1 { display: flex !important; align-items: center; gap: 14px; font: 700 28px/1.2 var(--font-display) !important; letter-spacing: -.01em !important; }
.hero h1 .stile, .ph h1 .stile, .pgh h1 .stile { width: 44px; height: 44px; border-radius: 13px; }
.hero h1 .stile svg, .ph h1 .stile svg, .pgh h1 .stile svg { width: 24px !important; height: 24px !important; }
.hero .eb, .hero .ov { color: var(--cg) !important; font: 600 13px var(--font-body) !important; }
.hero .rt { float: none !important; margin: 14px 0 0 !important; }

/* cards, buttons, tabs, tables */
.card, .bx, .tile, .stat, .map, .ncard { border-radius: 22px !important; border: 1px solid var(--line) !important; box-shadow: var(--sh-1) !important; }
.card h2, .ch h2 { font: 700 18px var(--font-display) !important; letter-spacing: -.005em !important; }
.btn, .pill, .btn2 { font: 500 14px var(--font-body) !important; border: 1px solid var(--line-strong) !important; color: var(--cg) !important; background: #fff !important; padding: 9px 18px !important; border-radius: 99px !important; }
.btn:hover, .pill:hover, .btn2:hover { background: var(--cg-t) !important; }
.btn.ink, .pill.o, .btn.primary, .btn2.primary { background: var(--cg) !important; color: #fff !important; border: 1px solid var(--cg) !important; box-shadow: none !important; }
.btn.ink:hover, .btn.primary:hover, .btn2.primary:hover { background: var(--cg-2) !important; }
.btn.sm, .pill.sm { padding: 6px 14px !important; font-size: 13px !important; }
.seg { background: #f1f3f2 !important; border: 0 !important; border-radius: 12px !important; padding: 4px !important; }
.seg button, .seg a { border-radius: 9px !important; color: var(--ink-2) !important; font: 500 13.5px var(--font-body) !important; }
.seg .on, .seg [aria-pressed="true"], .seg [aria-selected="true"] { background: #fff !important; color: var(--cg) !important; box-shadow: 0 1px 2px rgba(0,0,0,.08) !important; }
.utabs, .tabsx { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.badge, .chip { border-radius: 99px !important; font-weight: 600 !important; }
table th, .thd { background: #f4f6f5 !important; color: var(--ink-2) !important; font: 600 13px var(--font-body) !important; }
.fld, select, input[type="text"], input[type="date"], textarea { border-radius: 12px !important; border: 1px solid var(--line-strong) !important; }
.fld:focus { border-color: var(--cg) !important; box-shadow: 0 0 0 3px var(--cg-ring) !important; }

/* Today's dark band is gone; the requests card is plain white like the rest */
.band2 { background: #fff !important; color: var(--ink) !important; }

@media (max-width: 900px) {
  .page { padding-top: 14px !important; }
  .page > .hero, .page > .ph, .page > .pgh { padding: 18px !important; border-radius: 20px !important; }
  .page > .hero:after, .page > .ph:after, .page > .pgh:after { width: 100%; background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, #fff 75%), var(--ph) 50% 30% / cover no-repeat; }
  .hero h1, .ph h1, .pgh h1 { font-size: 23px !important; }
  .hero h1 .stile { width: 38px; height: 38px; }
  .tbar { padding: 10px 14px !important; } .tbar .who .nm, .tbar .who svg { display: none; } .tbar .who { border-left: 0; padding-left: 0; }
  /* the lads keep v9's phone app: the photo full-bleed behind their day, no header card on that page */
  .page.mo > .hero { background: none !important; border: 0 !important; box-shadow: none !important; padding: clamp(170px, 30svh, 250px) 4px 8px !important; }
  .page.mo > .hero:after { display: none !important; }
  .page.mo > .hero h1 .stile { display: none; }
}

/* Tom and Giuseppe on a phone: a white tab bar, Connecteam's way; the lads keep v9's dark floating bar */
@media (max-width: 900px) {
  body:not([data-role="staff"]) .tabs { background: #fff !important; border-top: 1px solid var(--line) !important; box-shadow: 0 -4px 16px rgba(20,40,30,.05) !important; }
  body:not([data-role="staff"]) .tabs .tb { color: var(--ink-3) !important; }
  body:not([data-role="staff"]) .tabs .tb.on { color: var(--cg) !important; }
  body:not([data-role="staff"]) .tabs .tb .ti, body:not([data-role="staff"]) .tabs .tb svg { color: inherit !important; stroke: currentColor !important; }
  body:not([data-role="staff"]) .fab { background: var(--cg) !important; color: #fff !important; box-shadow: 0 8px 20px -6px rgba(31,138,76,.55) !important; }
}

/* The board fits the screen (16 Oct 2026: "unacceptable with that scroll"): one week, fixed columns, nothing wider than the card.
   On a phone: pick a day, then everyone that day as a list. */
.board .bwrap { overflow: visible !important; }
.btab { width: 100% !important; min-width: 0 !important; table-layout: fixed !important; border-collapse: separate; border-spacing: 4px; }
.btab th.bn, .btab td.bn { width: 200px !important; }
.btab th, .btab td { min-width: 0 !important; max-width: none !important; }
.btab td.bc a, .btab td.bc > span { display: block; overflow: hidden; }
.btab td.bc b, .btab td.bc span, .btab td.bc small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btab td.bn span b, .btab td.bn span small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bmob { display: none; }
.bdays { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.bdy { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 0; display: grid; gap: 2px; justify-items: center; font: 500 12px var(--font-body); color: var(--ink-2); cursor: pointer; }
.bdy b { font: 700 17px var(--font-body); color: var(--ink); }
.bdy.tdy { border-color: var(--cg); }
.bdy.on { background: var(--cg); border-color: var(--cg); color: #fff; } .bdy.on b { color: #fff; }
.blg { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font: 700 13px var(--font-body); color: var(--ink-2); }
.blg i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.bli { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.bli .who { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.bli .who b { font: 600 14px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bli .what { min-width: 0; border-radius: 12px; padding: 8px 10px; background: #f6f8f7; }
.bli .what a { text-decoration: none; color: inherit; display: block; }
.bli .what b { display: block; font: 600 13.5px var(--font-body); color: var(--ink); }
.bli .what span, .bli .what small { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bli.bk .what { background: var(--cg-t); } .bli.free .what { background: #fff; border: 1px dashed var(--line-strong); }
.bli.off .what { background: repeating-linear-gradient(135deg, #f1f3f2 0 6px, #e9edeb 6px 12px); } .bli.nw .what { background: none; color: var(--ink-3); }
@media (max-width: 900px) {
  .bmob { display: block; } .card.board { display: none !important; }
}
.hero h1, .ph h1, .pgh h1 { flex-wrap: wrap; }
.hero h1 > span:not(.stile) { flex-basis: 100%; }
.bnav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bnav .pill { width: auto; min-width: 36px; height: 36px !important; padding: 0 10px !important; justify-content: center; }
.bnav .pill svg { width: 16px !important; height: 16px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2.2 !important; display: block; }
.hero h1 > span:not(.stile), .hero h1 > b + span { flex: 0 0 100% !important; width: 100% !important; max-width: 680px; margin-top: 4px !important; }
