/* WGH Insights, simplified: two conversions, everything else in their service.
   Navy shell, the four area colours as accents, shop orange #FF6600 exactly. */
:root {
  --navy: #0B1949;
  --navy-2: #13235E;
  --shop: #FF6600;
  --eng: #16A34A;
  --articles: #1E40AF;
  --forum: #0891B2;
  --navy-ink: #0B1949;

  --bg: #F3F5FA;
  --card: #FFFFFF;
  --line: #E4E8F1;
  --line-2: #EEF1F7;
  --ink: #0B1949;
  --ink-2: #46536F;
  --muted: #7C88A3;
  --up: #059669;
  --down: #DC2626;
  --warn: #B45309;
  --shop-tint: #FFF2E8;
  --eng-tint: #EAF7EF;
  --articles-tint: #EBEFFA;
  --forum-tint: #E7F5F8;
  --up-tint: #E6F6F0;
  --down-tint: #FDECEC;
  --warn-tint: #FDF4E6;
  --shadow: 0 1px 2px rgba(11,25,73,.04), 0 4px 16px rgba(11,25,73,.05);
  --shadow-lg: 0 2px 4px rgba(11,25,73,.05), 0 12px 32px rgba(11,25,73,.08);
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1;
}
button, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---- Shell ---------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--navy) 248px, transparent 248px); }
.side {
  background: radial-gradient(120% 60% at 0% 0%, #1A2D78 0%, rgba(26,45,120,0) 60%), var(--navy);
  color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.brand .mark img { width: 26px; height: 26px; }
.brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand span { display: block; font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 500; }
.nav { display: grid; gap: 2px; }
.nav .group { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.42); padding: 14px 12px 6px; }
.nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: rgba(255,255,255,.74); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; position: relative;
}
.nav button svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav button[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.nav button[aria-current="page"]::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--dot, #fff); }
.nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); margin-left: auto; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 25%, transparent); }
.nav .soon { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.status { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px; font-size: 12.5px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.04); }
.status b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; margin-bottom: 2px; }
.status .pulse { width: 8px; height: 8px; border-radius: 50%; background: #FBBF24; box-shadow: 0 0 0 4px rgba(251,191,36,.18); }
.theme-btn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.14); background: none; color: rgba(255,255,255,.8); border-radius: 10px; padding: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.theme-btn:hover { background: rgba(255,255,255,.06); color: #fff; }

.main { min-width: 0; padding: 26px 32px 60px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.top h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.top p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 3px; box-shadow: var(--shadow); }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }.select { position: relative; }
.select select {
  appearance: none; height: 38px; border: 1px solid var(--line); background: var(--card); border-radius: 11px; padding: 0 36px 0 14px;
  font-weight: 600; font-size: 13px; color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
}
.select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filter-note { display: none; align-items: center; gap: 10px; margin: -8px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
.filter-note.on { display: flex; }
.filter-note button { margin-left: auto; border: 0; background: none; color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---- Cards ------------------------------------------------------------------ */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g32 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.mt { margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.pad { padding: 20px 22px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card-h h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.section { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.section h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.section p { margin: 0; font-size: 13px; color: var(--muted); }

/* The two goals */
.goal { position: relative; overflow: hidden; padding: 22px 24px 0; }
.goal::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.goal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.goal-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--t); color: var(--c); }
.goal-ic svg { width: 18px; height: 18px; }
.open { border: 0; background: none; color: var(--c); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.open:hover { text-decoration: underline; }
.goal-num { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 16px 0 2px; }
.goal-num b { font-size: 56px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.goal-num .unit { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.goal-sub { color: var(--muted); font-size: 13.5px; }
.goal-sub strong { color: var(--ink); font-weight: 700; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.delta.up { color: var(--up); background: var(--up-tint); }
.delta.down { color: var(--down); background: var(--down-tint); }
.delta.flat { color: var(--muted); background: var(--line-2); }
.goal-chart { margin: 14px -24px 0; }
.goal-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); margin: 0 -24px; }
.goal-foot div { padding: 14px 24px; }
.goal-foot div + div { border-left: 1px solid var(--line-2); }
.goal-foot span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.goal-foot b { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; }
.chart .axis { display: flex; justify-content: space-between; padding: 6px 24px 12px; font-size: 11px; color: var(--muted); }
.chart .hover { position: absolute; inset: 0 0 30px 0; }
.chart .vline { position: absolute; top: 0; bottom: 30px; width: 1px; background: var(--muted); opacity: 0; pointer-events: none; }
.chart .dotp { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--c); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .1s; min-width: 150px;
  background: var(--navy); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; box-shadow: var(--shadow-lg);
}
.tip .th { font-weight: 700; margin-bottom: 4px; color: rgba(255,255,255,.7); font-size: 11.5px; }
.tip .tr { display: flex; justify-content: space-between; gap: 14px; }
.tip .tr i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--c); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }

/* Funnels */
.funnel { padding: 18px 22px 22px; display: grid; gap: 12px; }
.fs { display: grid; grid-template-columns: 170px minmax(0, 1fr) 128px; gap: 16px; align-items: center; }
.fs .lbl { font-weight: 600; font-size: 13.5px; }
.fs .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.fs .bar { height: 34px; border-radius: 9px; background: var(--line-2); position: relative; overflow: hidden; }
.fs .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 75%, #fff)); min-width: 4px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.fs .bar em { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; font-size: 12.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.fs .val { text-align: right; }
.fs .val b { display: block; font-size: 16px; font-weight: 750; }
.fs .val span { font-size: 12px; color: var(--muted); }
.leak { display: flex; gap: 12px; align-items: flex-start; margin: 0 22px 20px; padding: 12px 14px; border-radius: 12px; background: var(--warn-tint); color: var(--ink); font-size: 13px; }
.leak svg { flex: none; width: 18px; height: 18px; color: var(--warn); margin-top: 1px; }
.leak b { color: var(--warn); }
.fs.leaky .bar { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--warn) 55%, transparent); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: right; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 18px 10px; white-space: nowrap; }
.tbl td { text-align: right; padding: 12px 18px; border-top: 1px solid var(--line-2); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl tr.pick { cursor: pointer; }
.tbl tr.pick:hover td { background: var(--line-2); }
.tbl tr.hl td { background: color-mix(in srgb, var(--eng) 7%, transparent); }
.tbl .name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tbl .name small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.tbl .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.tbl .meter { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.tbl .meter i { display: block; height: 6px; border-radius: 3px; background: var(--c); }
.tbl .meter-track { width: 90px; height: 6px; border-radius: 3px; background: var(--line-2); display: inline-block; position: relative; overflow: hidden; }
.tbl .meter-track i { position: absolute; inset: 0 auto 0 0; }
.wrap-x { overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge.shop { background: var(--shop-tint); color: var(--shop); }
.badge.eng { background: var(--eng-tint); color: var(--eng); }
.badge.none { background: var(--line-2); color: var(--muted); }
.badge.bad { background: var(--down-tint); color: var(--down); }
.badge.cc { background: var(--eng); color: #fff; }
.chips { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tbl .chips { flex-wrap: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--t); color: var(--c); }
.chips .arr { color: var(--muted); font-size: 11px; }

/* Feed */
.feed { list-style: none; margin: 0; padding: 6px 0 8px; }
.feed li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 22px; }
.feed li + li { border-top: 1px solid var(--line-2); }
.feed .fi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--t); color: var(--c); }
.feed .fi svg { width: 18px; height: 18px; }
.feed .what { font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .how { margin-top: 3px; }
.feed time { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; }
.feed time b { display: block; color: var(--ink); font-size: 13.5px; }

/* Worth a look */
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.look { padding: 18px 20px; display: grid; gap: 8px; align-content: start; border-left: 4px solid var(--c); }
.look .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c); }
.look b { font-size: 15px; letter-spacing: -.01em; line-height: 1.35; }
.look p { margin: 0; color: var(--ink-2); font-size: 13px; }

/* Call-centre links */
.links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lk { padding: 18px 20px 0; overflow: hidden; }
.lk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lk-logo { height: 40px; display: flex; align-items: center; }
.lk-logo img { height: 40px; width: auto; display: block; }.lk h3 { margin: 12px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.lk .big { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.lk .big b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.lk .big span { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.lk .out { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lk svg.spark { display: block; width: calc(100% + 40px); margin: 10px -20px 0; height: 44px; }

.empty { padding: 26px; text-align: center; color: var(--muted); }
.view { animation: rise .35s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-flag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--warn-tint); color: var(--warn); font-size: 11.5px; font-weight: 700; margin-left: 10px; vertical-align: middle; }

/* ---- Small screens --------------------------------------------------------- */
@media (max-width: 1250px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .g2, .g32, .looks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; padding: 12px 16px; flex-direction: row; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .brand span, .brand b { display: none; }
  .brand { padding: 0; }
  .brand .mark { width: 34px; height: 34px; }
  .nav { display: flex; gap: 4px; }
  .nav .group, .nav .soon, .nav .dot, .side-foot { display: none; }
  .nav button { white-space: nowrap; padding: 8px 12px; }
  .nav button[aria-current="page"]::before { display: none; }
  .main { padding: 20px 16px 50px; }
  .goal-num b { font-size: 44px; }
  .fs { grid-template-columns: minmax(0, 1fr) 90px; }
  .fs .bar { grid-column: 1 / -1; grid-row: 2; }
  .goal-foot div { padding: 12px 14px; }
  .goal-foot b { font-size: 15px; }
  .tbl th, .tbl td { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 560px) {
  .links, .g4 { grid-template-columns: minmax(0, 1fr); }
  .section { flex-direction: column; align-items: flex-start; gap: 4px; }
  .top h1 { font-size: 22px; }
  .controls { width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 7px 6px; }
  .select, .select select { width: 100%; }
  .feed li { grid-template-columns: 34px minmax(0, 1fr); }
  .feed time { grid-column: 2; text-align: left; }
  .feed time b { display: inline; margin-right: 6px; }
}

/* ---- Dashboard-only pieces (not in the demo) ------------------------------- */
.status.live .pulse { background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.status .db { display: block; margin-top: 6px; color: rgba(255,255,255,.55); font-size: 11.5px; }
.nav .soon.warn { background: #FBBF24; color: #0B1949; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--card); color: var(--ink); font: inherit; min-width: 0; }
.btn { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 16px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; font-size: 13px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--shop); border-color: var(--shop); color: #fff; }
.btn.primary:hover { background: #E65C00; border-color: #E65C00; }
.btn.danger { color: var(--down); }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; }
.muted { color: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.err { color: var(--down); font-weight: 600; font-size: 13px; }
.loading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--shop), #FFB27A); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .2s; z-index: 50; }
.loading-bar.on { opacity: 1; animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { transform: scaleX(0); } 60% { transform: scaleX(.8); } 100% { transform: scaleX(1); opacity: 0; } }
.error-box { padding: 14px 16px; border-radius: 12px; background: var(--down-tint); color: var(--down); font-weight: 600; }
.stat-k { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-v { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.stat-v b { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.tbl .num-0 { color: var(--muted); }
.bar-row { margin: 0 0 14px; }
.bar-row .top-line { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 13.5px; }
.bar-row .top-line span span { color: var(--muted); font-weight: 500; }
.bar-row .track { height: 10px; border-radius: 5px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 5px; background: var(--c); }

.more-btn { display: block; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--line-2); background: none; color: var(--ink-2); font-weight: 700; font-size: 13px; cursor: pointer; border-radius: 0 0 var(--radius) var(--radius); }
.more-btn:hover { background: var(--line-2); color: var(--ink); }
/* Call-centre link cards: the trend line sits inside the padding, clear of the rounded corners. */
.lk { padding-bottom: 18px; }
.lk .spark-wrap { position: relative; margin: 14px 4px 0; height: 40px; }
.lk .spark-wrap svg.spark { width: 100%; height: 40px; margin: 0; }
.lk .spark-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--card); }

/* ---- Full analytics (27 Oct overhaul) -------------------------------------- */
.stat-sub { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; margin-bottom: 18px; font-size: 13.5px; }
.now-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 22%, transparent); animation: nowp 2s ease-in-out infinite; }
@keyframes nowp { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--up) 8%, transparent); } }
.now-areas { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.area-card { cursor: pointer; border-top: 4px solid var(--c); transition: transform .15s, box-shadow .15s; }
.area-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.area-card .lk-top .open { color: var(--c); font-size: 12px; }
.area-card .big span { font-size: 12.5px; }
.area-card .kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; margin: 12px 0 0; }
.area-card .kv dt { color: var(--muted); }
.area-card .kv dd { margin: 0; font-weight: 700; text-align: right; }
.landbar { display: inline-flex; width: 90px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line-2); vertical-align: middle; }
.landbar i { display: block; height: 100%; }
.matrix td { text-align: center; }
.matrix th { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.mcell { display: inline-block; min-width: 64px; padding: 6px 8px; border-radius: 8px; font-weight: 700; background: color-mix(in srgb, var(--c) calc(var(--a) * 55%), transparent); }
.mcell.self { outline: 2px solid color-mix(in srgb, var(--c) 60%, transparent); outline-offset: -2px; }
.goal-divider { display: flex; align-items: center; gap: 14px; margin: 44px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.goal-divider::before, .goal-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.goal-divider + .grid { margin-top: 14px; }
.side { overflow-y: auto; scrollbar-width: none; }
.tbl.tight th, .tbl.tight td { padding-left: 11px; padding-right: 11px; }
.tbl td.page-cell { min-width: 240px; }

/* Orders and engineer contacts are never one number: orange for orders, green for contacts. */
.rate-order, .tbl td.rate-order, .area-card .kv dd.rate-order { color: var(--shop); }
.rate-eng, .tbl td.rate-eng, .area-card .kv dd.rate-eng { color: var(--eng); }
.tbl th.th-order { color: color-mix(in srgb, var(--shop) 80%, var(--muted)); }
.tbl th.th-eng { color: color-mix(in srgb, var(--eng) 80%, var(--muted)); }
.stat-order { border-top: 3px solid var(--shop); }
.stat-eng { border-top: 3px solid var(--eng); }
.stat-order .stat-v b { color: var(--shop); }
.stat-eng .stat-v b { color: var(--eng); }

/* ---- Journeys (main page, 27 Oct) ------------------------------------------ */
.headline { padding: 22px 26px; }
.headline .lead { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.headline .lead b { font-weight: 800; }
.headline .lead-sub { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.headline .lead-sub b { color: var(--ink); }
.headline .lead-sub b.rate-order { color: var(--shop); }
.headline .lead-sub b.rate-eng { color: var(--eng); }
.otiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
.otile { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px 14px 12px; cursor: pointer; box-shadow: var(--shadow); border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.otile span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.3; min-height: 33px; }
.otile b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.otile small { font-size: 11.5px; color: var(--muted); }
.otile.big { grid-column: span 2; background: color-mix(in srgb, var(--c) 7%, var(--card)); }
.otile.big b { font-size: 40px; color: var(--c); }
.otile.big span { font-size: 14px; color: var(--ink); min-height: 0; }
.otile:hover { border-color: var(--c); }
.otile.on { outline: 3px solid color-mix(in srgb, var(--c) 45%, transparent); }
@media (max-width: 1250px) { .otiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .otiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .otile.big { grid-column: span 2; } }
.story-tbl td.num-0 { color: var(--muted); opacity: .6; }
.legend-inline { display: inline-flex; gap: 14px; flex-wrap: wrap; margin-left: 6px; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mini-h { margin: 0 0 14px; font-size: 15px; }
.area-line { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.area-line:last-child { border-bottom: 0; }
.area-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: center; }
.area-line b { min-width: 140px; }
.area-line span:last-child { color: var(--ink-2); font-size: 13.5px; }
.route-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; font-size: 13.5px; }
.route-line:last-child { border-bottom: 0; }
.vfilters { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 18px 6px; }
.vfilters button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.vfilters button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.vfilters button:not(.on)[style] { border-left: 4px solid var(--c); }
.more-toggle svg { transition: transform .15s; }
.more-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.more-nav { display: grid; gap: 2px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.12); margin-left: 20px; }
.more-nav[hidden] { display: none; }
.story-tbl th { white-space: normal; line-height: 1.25; min-width: 70px; vertical-align: bottom; }
.refresh { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--shop); background: var(--shop); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: var(--shadow); }
.refresh:hover { background: #E65C00; border-color: #E65C00; }
.refresh.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.updated { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .refresh { flex: 1; justify-content: center; } }

.badge.paid { background: #FDF0E1; color: #B45309; }

/* Journeys: what each source brought in, said in words */
.results-said { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.results-said b { color: var(--ink); }
.results-said .rate-eng, .results-said .rate-order { font-weight: 800; }

/* Journeys: where the results came from (rings) */
.ring-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ring { flex: none; display: block; }
.ring circle { transition: stroke-width .12s; }
.ring circle:hover { stroke-width: 24; }
.ring-n { font-size: 32px; font-weight: 800; letter-spacing: -.03em; fill: currentColor; }
.ring-l { font-size: 12px; font-weight: 700; fill: var(--muted); }
.ring-legend { flex: 1; min-width: 230px; display: grid; gap: 4px; }
.ring-line { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.ring-line:first-child { border-top: 0; }
.ring-line .name, .sb-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; font-weight: 600; }
.ring-line b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ring-line small { width: 42px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.ring-line .ring-gbp { width: 72px; color: var(--shop); font-weight: 700; }
.ring-card .swatch, .sb-card .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }

/* Journeys: one bar per source */
.sb-card { padding: 18px 24px 16px; }
.sb-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sb-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sb-head { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 2px; }
.sb-row { display: grid; grid-template-columns: minmax(240px, 330px) minmax(140px, 1fr) repeat(4, 84px); align-items: center; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.sb-head + .sb-row { border-top: 0; }
.sb-name { font-size: 14px; }
.sb-track { height: 20px; }
.sb-bar { display: flex; height: 100%; min-width: 4px; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.sb-bar i { display: block; height: 100%; }
.sb-num { text-align: right; line-height: 1.15; }
.sb-num b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-num small { font-size: 11px; font-weight: 600; color: var(--muted); }
.sb-num.num-0 b { color: var(--muted); font-weight: 600; }
.sb-rate b { color: var(--ink); }
.sb-total .sb-name { font-weight: 800; }
.sb-total .sb-track { height: 28px; }
.sb-total .sb-num b { font-size: 20px; }
@media (max-width: 1000px) {
  .sb-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 12px; }
  .sb-name { grid-column: 1 / -1; }
  .sb-num { text-align: left; }
  .sb-track { grid-column: 1 / -1; order: 9; }
}

/* ===== Dashboard: all four areas on one page ===== */
.h-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.h-tab { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px 7px 8px; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow); }
.h-tab i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); display: grid; place-items: center; }
.h-tab i svg { width: 12px; height: 12px; color: #fff; }
.h-tab small { font-weight: 600; color: var(--muted); }
.h-tab.on { border-color: var(--c); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.h-results { gap: 14px; }
.h-rt { padding: 14px 14px 10px; position: relative; overflow: hidden; border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: 2px; transition: opacity .2s; }
.h-rt.dim { opacity: .3; }
.h-rt .ic { width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); display: grid; place-items: center; margin-bottom: 6px; }
.h-rt .ic svg { width: 16px; height: 16px; }
.h-rt .k { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.h-rt .v { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.h-rt .sub { font-size: 11.5px; color: var(--muted); min-height: 30px; line-height: 1.35; }
.h-rt .sub b { color: var(--ink); }
.h-rt .h-delta { min-height: 24px; margin-top: 4px; }
.h-rt .h-delta .delta { font-size: 11.5px; padding: 2px 7px; }
svg.h-spark { display: block; width: 100%; height: 32px; margin-top: 6px; }

.h-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h-areas.one { grid-template-columns: minmax(0, 1fr); }
.h-ac { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.h-ac-h { padding: 16px 18px 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent); border-bottom: 1px solid var(--line-2); }
.h-ac-h .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h-ac-h img { height: 30px; width: auto; display: block; }.h-ac-h .who { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.h-ac-h .who b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.h-ac-h .who span { color: var(--ink-2); font-weight: 600; }
svg.h-area-spark { display: block; width: 100%; height: 46px; margin-top: 6px; }
.h-ac-b { padding: 14px 18px 18px; display: grid; gap: 16px; align-content: start; }
.h-ac-b h3 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-areas.one .h-ac-b { grid-template-columns: 1.2fr 1fr 1.2fr; }
.h-funnel { display: grid; gap: 7px; }
.h-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.h-step .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.h-step .num { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.h-step .num small { font-weight: 600; color: var(--muted); font-size: 11px; margin-left: 4px; }
.h-step .bar { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.h-step .bar i { display: block; height: 100%; border-radius: 6px; background: var(--c); }
.h-step.is-goal .lbl { color: var(--ink); font-weight: 800; }
.h-step.is-goal .num { color: var(--c); font-size: 18px; }
.h-step.is-goal .bar { height: 16px; }
.h-step .split { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.h-step .split span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--line-2); padding: 2px 8px; border-radius: 999px; }
.h-sendon { display: grid; gap: 6px; }
.h-so { display: grid; grid-template-columns: 16px minmax(0, 1fr) 70px 34px; align-items: center; gap: 8px; font-size: 13px; }
.h-so svg { width: 15px; height: 15px; color: var(--muted); }
.h-so .nm { font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; }
.h-so .nm::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--to); flex: none; }
.h-so .trk { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.h-so .trk i { display: block; height: 100%; border-radius: 4px; background: var(--to); }
.h-so b { font-variant-numeric: tabular-nums; text-align: right; }
.h-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h-top li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; font-size: 13px; align-items: center; }
.h-top li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-weight: 500; }
.h-top li em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--c); white-space: nowrap; }
.h-top li b { font-variant-numeric: tabular-nums; }

.h-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.h-legend span { display: inline-flex; align-items: center; gap: 7px; }
.h-legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); display: inline-block; }
.h-legend i.dot { border-radius: 50%; }
svg.h-day { display: block; width: 100%; height: 280px; overflow: visible; }
svg.h-day text { font-size: 11px; fill: var(--muted); font-family: inherit; }
svg.h-day .gl { stroke: var(--line-2); }
svg.h-day .hl { stroke: var(--ink); stroke-dasharray: 3 3; opacity: 0; }

.h-src-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.h-src-card { padding: 14px 20px 14px; }
.h-src { display: grid; grid-template-columns: minmax(160px, 230px) minmax(80px, 1fr) 64px 64px; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.h-src.head { border-top: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.h-src.head span:nth-child(n+3) { text-align: right; }
.h-src .nm { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; min-width: 0; }
.h-src .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.h-src .br { display: block; height: 16px; border-radius: 5px; background: var(--c); min-width: 3px; opacity: .85; }
.h-src .nu { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.h-src .nu.res { color: var(--eng); }
.h-src .nu.zero { color: var(--muted); font-weight: 600; }
.h-mix { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.h-mix:first-of-type { border-top: 0; }
.h-mix .lbl { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.h-mix .lbl i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.h-mix .bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.h-mix .bar i { display: block; height: 100%; background: var(--c); border-right: 2px solid var(--card); }
.h-mix .bar i:last-child { border-right: 0; }
.h-mix b { text-align: right; font-variant-numeric: tabular-nums; }
.h-mix b.zero { color: var(--muted); font-weight: 600; }
.h-pf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.h-pf > div { border-radius: 12px; padding: 12px 14px; background: var(--line-2); }
.h-pf span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.h-pf b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.h-pf small { color: var(--muted); font-size: 12px; }
.h-pf .paid-pf { background: #FDF0E1; }
.h-low { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.h-feed { padding: 4px 18px; }
.h-fi { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); }
.h-fi:first-child { border-top: 0; }
.h-fi .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.h-fi .ic svg { width: 17px; height: 17px; }
.h-fi .what { font-weight: 700; font-size: 13.5px; }
.h-fi .what em { font-style: normal; color: var(--c); }
a.go { text-decoration: none; }
a.go:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.h-fi .what a.go:hover em { text-decoration: underline; text-underline-offset: 3px; }
.h-fi .what a.go::after { content: '↗'; margin-left: 3px; font-size: 11px; color: var(--muted); }
.h-fi .how { font-size: 12px; color: var(--muted); margin-top: 1px; }
.h-fi time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.h-track { padding: 16px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.h-track .tg h4 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.h-track .tg h4 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.h-track ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.h-track li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.h-track li b { margin-left: auto; font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.h-track .st { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 11px; font-weight: 800; }
.h-track .ok .st, .h-track .st.ok { background: var(--up-tint); color: var(--up); }
.h-track .ok b { color: var(--up); }
.h-track .bad .st, .h-track .st.bad { background: var(--down-tint); color: var(--down); }
.h-track .bad b { color: var(--down); }
.h-track .wait .st, .h-track .st.wait { background: var(--line-2); color: var(--muted); }
.h-track .foot { grid-column: 1 / -1; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 12px; display: flex; gap: 8px 16px; flex-wrap: wrap; }
.h-track .foot > span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1350px) { .h-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-src-grid, .h-low { grid-template-columns: minmax(0, 1fr); } .h-areas.one .h-ac-b { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .h-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-areas { grid-template-columns: minmax(0, 1fr); }
  .h-track { grid-template-columns: minmax(0, 1fr); }
  .h-src { grid-template-columns: minmax(0, 1fr) 54px 54px; }
  .h-src .bw { grid-column: 1 / -1; order: 9; }
  .h-src.head .bw { display: none; }
  .h-mix { grid-template-columns: minmax(0, 1fr) 40px; }
  .h-mix .bar { grid-column: 1 / -1; order: 9; }
  .h-rt .v { font-size: 28px; }
  svg.h-day { height: 220px; }
}
.h-low .section { flex-direction: column; align-items: flex-start; gap: 4px; }

/* Nine result tiles: Orders and Revenue side by side. */
.h-results { grid-template-columns: repeat(9, minmax(0, 1fr)); }
@media (max-width: 1750px) { .h-results { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .h-results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .h-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sources with a revenue column. */
.h-src-card.with-rev .h-src { grid-template-columns: minmax(160px, 230px) minmax(80px, 1fr) 60px 60px 76px; }
@media (max-width: 860px) { .h-src-card.with-rev .h-src { grid-template-columns: minmax(0, 1fr) 46px 46px 64px; } }

/* One area chosen: the shop and Find an Engineer in detail. */
.h-shop .h-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.h-kpi { border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--shop) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--shop) 18%, transparent); }
.h-kpi span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.h-kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.h-kpi small { color: var(--muted); font-size: 12px; }
.h-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
/* A detail list: title, what it counts, headed columns. */
.pl { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px 10px; background: var(--card); }
.pl h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.pl .ex { margin: 3px 0 12px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.pl .note { margin: 4px 0 8px; }
.pl table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.pl col.n { width: 92px; }
.pl th { padding: 0 0 7px 10px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl th:first-child { padding-left: 0; text-align: left; }
.pl td { padding: 8px 0 8px 10px; border-top: 1px solid var(--line-2); text-align: right; vertical-align: top; white-space: nowrap;
  font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.pl td:first-child { padding-left: 0; text-align: left; white-space: normal; font-family: inherit; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.pl td .nm { display: block; overflow-wrap: break-word; line-height: 1.35; }
.pl td small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--muted); overflow-wrap: break-word; }
.pl td.zero { color: var(--muted); font-weight: 600; opacity: .7; }
.pl-name { display: flex; align-items: center; gap: 14px; }
.pl-name > div { min-width: 0; }
.pl-logo { flex: none; display: grid; place-items: center; width: 76px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.pl-logo img { max-width: 64px; max-height: 32px; object-fit: contain; }
.pl-logo.none::before { content: attr(data-i); font: 800 14px Manrope, Inter, sans-serif; color: var(--muted); }
.pl td .bad { color: var(--down); font-family: Inter, sans-serif; font-size: 12px; font-weight: 700; }
.h-shop .h-top li em, .h-biz .h-top li em { color: var(--ink-2); }
.h-biz .card-h { padding: 18px 22px 6px; }
.h-biz .card-h h2 { margin: 0; font-size: 16px; }
.h-biz .card-h p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) { .h-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .h-shop .h-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-shop-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .h-src .nm { flex-wrap: wrap; row-gap: 4px; line-height: 1.3; } }

/* ===== Focus: plain English first, big numbers, lots of air (28 Oct) ===== */
.num, .f-headline, .f-ring-pct, .f-chart h2, .section h2 { font-family: Manrope, Inter, system-ui, sans-serif; }
.num { font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1; }
.f-hero { margin: 8px 0 30px; }
.f-date { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.f-headline { margin: 0; font-size: clamp(24px, 2.4vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.22; color: var(--ink); text-wrap: balance; }
.f-headline em.f-all { color: #2563EB; }
.f-headline em { font-style: normal; font-weight: 800; color: var(--c); }
.f-verdict { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.f-hero .f-verdict { font-size: 18px; }
.f-light { width: 11px; height: 11px; border-radius: 50%; flex: none; margin-top: .4em; background: var(--muted); box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted) 18%, transparent); }
.f-verdict.good .f-light, .f-health.good .f-light { background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .16); }
.f-verdict.warn .f-light { background: #F59E0B; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.f-health.bad .f-light { background: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .16); }

.f-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 26px; }
.f-rings.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-ring { padding: 26px 26px 22px; border-radius: 22px; display: flex; flex-direction: column; }
.f-ring.click { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.f-ring.click:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 25, 73, .05), 0 16px 40px rgba(11, 25, 73, .1); }
.f-ring-top { display: flex; align-items: center; gap: 22px; }
.f-ring-svg { flex: none; }
.f-ring-pct { font-size: 22px; font-weight: 800; fill: var(--ink); letter-spacing: -.02em; }
.f-ring .num { font-size: 56px; color: var(--c); }
.f-ring-k { margin-top: 8px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.f-ring-sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.f-ring .f-verdict { margin-top: 12px; font-size: 14px; }

.f-chart { padding: 26px 28px 18px; border-radius: 22px; margin-bottom: 8px; }
.f-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.f-chart h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.f-chart .h-legend { margin: 0; }
.f-chart svg.h-day { height: 300px; }

.f-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.f-area { padding: 22px 24px 18px; border-radius: 22px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.f-area:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 25, 73, .05), 0 16px 40px rgba(11, 25, 73, .1); }
.f-area-top { display: flex; align-items: center; gap: 14px; }
.f-area .badge { width: 48px; height: 48px; border-radius: 15px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); display: grid; place-items: center; flex: none; padding: 0; }
.f-area .badge svg { width: 22px; height: 22px; }
.f-area-name { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.f-area-num { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.f-area-num .num { font-size: 32px; color: var(--ink); }
.f-area-num .delta { font-size: 11.5px; padding: 2px 7px; }
.f-area svg.h-area-spark { margin-top: 14px; height: 44px; }
.f-area-next { margin-top: 10px; font-size: 13px; color: var(--ink-2); }

.f-low { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.f-src { padding: 22px 26px 18px; border-radius: 22px; }
.f-say { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.f-src-row { padding: 12px 0 13px; border-top: 1px solid var(--line-2); font-size: 14px; }
.f-src-row .top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.f-src-row .nm { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); min-width: 0; }
.f-src-row .nm i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.f-src-row .nm .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.f-src-row .nm .badge { flex: none; }
.f-src-row .nums { display: flex; align-items: baseline; gap: 5px; flex: none; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.f-src-row .nums b { font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); }
.f-src-row .pc { margin-left: 4px; color: var(--muted); }
.f-src-row .trk { display: block; height: 8px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.f-src-row .trk b { display: block; height: 100%; border-radius: 6px; background: var(--c); min-width: 3px; }
.f-src-row .r { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-2); font-weight: 600; color: var(--eng); }
.f-src-row .r.zero { color: var(--muted); font-weight: 500; }
.f-src-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.f-low .h-feed { border-radius: 22px; }

.f-detail { border-radius: 22px; }
.f-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }

.f-health { margin-top: 34px; border-radius: 22px; padding: 0; overflow: hidden; }
.f-health summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 24px; cursor: pointer; font-size: 15.5px; font-weight: 600; }
.f-health summary::-webkit-details-marker { display: none; }
.f-health summary .f-light { margin-top: 0; }
.f-health summary small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.f-health[open] summary small { visibility: hidden; }
.f-health .h-track { border-top: 1px solid var(--line-2); }

@media (max-width: 1350px) {
  .f-rings, .f-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-rings.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-low, .f-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .f-rings, .f-rings.three, .f-areas { grid-template-columns: minmax(0, 1fr); }
  .f-ring .num { font-size: 46px; }
  .f-src { padding: 18px 18px 14px; }
  .f-src-row .top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .f-src-row .pc { display: none; }
  .f-chart svg.h-day { height: 230px; }
  .f-health summary { flex-wrap: wrap; }
  .f-health summary small { margin-left: 23px; }
}

/* ---- Live ---- */
.lv-strip { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.lv-big, .lv-area { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.lv-big { display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.lv-big b { font: 800 34px/1 Manrope, Inter, sans-serif; color: var(--ink); }
.lv-area { border-top: 4px solid var(--c); display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lv-area b { font: 800 24px/1 Manrope, Inter, sans-serif; color: var(--ink); }
.lv-feed { padding: 0; overflow: hidden; }
.lv-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.lv-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.lv-title small { font-weight: 500; font-size: 12px; color: var(--muted); }
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 50%, transparent); animation: lvpulse 1.6s infinite; }
@keyframes lvpulse { 70% { box-shadow: 0 0 0 8px transparent; } }
.lv-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lv-tools .seg { box-shadow: none; }
.lv-tools .seg button { padding: 6px 11px; font-size: 12.5px; }
.lv-check { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
@keyframes lvnew { from { background: color-mix(in srgb, var(--up) 22%, var(--card)); } }
.lv-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); }
.lv-ic svg { width: 17px; height: 17px; }

/* Live as a table: one row per person. */
.lv-sec { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 16px 20px 8px; font-size: 15px; color: var(--muted); }
.lv-sec.on { color: var(--up); }
.lv-sec b { font: 800 18px Manrope, Inter, sans-serif; color: var(--ink); }
.lv-sec small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.lv-none { margin: 0; padding: 4px 20px 14px; font-size: 13px; color: var(--muted); }
.lv-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.lv-tbl th:nth-child(1) { width: 124px; }
.lv-tbl th:nth-child(3) { width: 300px; }
.lv-tbl th:nth-child(4) { width: 210px; }
.lv-tbl th:nth-child(5) { width: 110px; }
.lv-tbl th:nth-child(6) { width: 40px; }
.lv-tbl th { padding: 8px 12px; text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.lv-tbl th:first-child, .lv-tbl td:first-child { padding-left: 20px; }
.lv-tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.lv-person { cursor: pointer; }
.lv-person:hover td { background: var(--bg); }
.lv-person.new td { animation: lvnew 2.4s ease-out; }
.lv-tbl.off .lv-person td { color: var(--ink-2); }
.lv-tbl.off .lv-person .lv-line, .lv-tbl.off .lv-person .lv-tags { opacity: .8; }
.lv-when { white-space: nowrap; }
.lv-when small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.lv-live { font-weight: 700; color: var(--up); }
.lv-live::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--up); vertical-align: 1px; animation: lvpulse 1.6s infinite; }
.lv-gone { font-weight: 700; color: var(--muted); }
.lv-doing { min-width: 0; }
.lv-chip { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.lv-line { line-height: 1.4; color: var(--ink); }
.lv-line em { font-style: normal; font-weight: 700; color: var(--c); }
.lv-line .bad { color: var(--down); font-weight: 700; }

.lv-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.lv-tag { padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-2); white-space: nowrap; }
.lv-tag.hot { color: #fff; background: var(--shop); border-color: var(--shop); }
.lv-route { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.lv-route i { font-style: normal; font-weight: 600; color: var(--c); }
.lv-arrow { margin: 0 5px; }
.lv-from { color: var(--ink-2); font-size: 13px; }
.lv-for { white-space: nowrap; color: var(--ink-2); }
.lv-open { color: var(--muted); font-size: 14px; text-align: center; }
.lv-story td { padding: 4px 20px 14px 144px; background: var(--bg); border-bottom: 1px solid var(--line); }
.lv-story ol { list-style: none; margin: 0; padding: 0; }
.lv-story li { display: grid; grid-template-columns: 70px 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line-2); }
.lv-story li:first-child { border-top: 0; }
.lv-story li.big { background: color-mix(in srgb, var(--c) 8%, transparent); border-radius: 8px; }
.lv-story time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-story .lv-ic { width: 30px; height: 30px; border-radius: 9px; }
.lv-story .lv-ic svg { width: 15px; height: 15px; }
.lv-s-what { font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.lv-s-what small { display: block; font-size: 11.5px; color: var(--muted); }
.lv-s-what em { font-style: normal; font-weight: 700; color: var(--c); }
.lv-s-what .bad { color: var(--down); font-weight: 700; }

/* Sign-in gate (insights.whitegoodshelp.co.uk only). */
.locked .app, .locked .loading-bar { display: none; }
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.gate-card { width: min(420px, calc(100vw - 32px)); padding: 32px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); text-align: center; }
.gate-card img { width: 44px; height: 44px; border-radius: 10px; }
.gate-card h2 { margin: 14px 0 6px; font-size: 20px; }
.gate-card p { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* Period menu and comparison. */
.period { position: relative; }
.period-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); border-radius: 11px;
  font: 600 13px Inter, sans-serif; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); white-space: nowrap; }
.period-btn svg { color: var(--muted); }
.period-btn::after { content: ''; width: 7px; height: 7px; margin-left: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.period-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.period-menu[hidden] { display: none; }
.period-menu h4 { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pm-col { display: grid; align-content: start; gap: 2px; }
.pm-col button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: 600 13px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.pm-col button:hover { background: var(--bg); color: var(--ink); }
.pm-col button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pm-custom { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.pm-custom h4 { width: 100%; }
.pm-custom label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pm-custom input { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: 500 13px Inter, sans-serif; color: var(--ink); }
.nav button[hidden] { display: none; }
.title-logo { display: block; height: 52px; width: auto; }
.title-logo.mono { filter: grayscale(1) contrast(1.25) brightness(.85); }
/* An opened person: their row and steps read as one block. */
.lv-person.is-open td, .lv-story td { background: var(--bg); }
.lv-person.is-open td { border-bottom-color: transparent; }
