/* So Pastel Design dashboard: the So Pastel Analytics design system (approved mockup v2, 16 Nov 2026), with design-specific parts at the end.
   Brand colours sampled from the colourful planet mark (So Pastel/Brand/Logos/PNG/LogoMark Colour.png).
   Colour lives in the frame (header gradient, accents, platform tints); numbers and text stay navy on
   white so everything stays readable. Chart colours are deeper steps of the same hues, checked with the
   dataviz validator (adjacent CVD ΔE >= 11, contrast >= 3:1 except apricot, which always has labels). */

@font-face { font-family: Inter; src: url("fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f8fb; --surface: #ffffff; --line: #e8ebf1; --line-2: #f0f2f6;
  --ink: #0e2b4d; --ink-2: #4a5b72; --ink-3: #7b889b;
  --sky: #d4eff8; --sky-2: #ecf8fc;
  --coral: #f37254; --apricot: #ddb760; --teal: #76c8bd; --violet: #7f7bd7; --mauve: #c08fa1;
  /* platform / chart colours (validated) */
  --c-ig: #e8603f; --c-fb: #6a5fd1; --c-gbp: #2a9d8f; --c-ads: #c99227;
  --t-ig: #fdeee9; --t-fb: #efeefb; --t-gbp: #e6f5f2; --t-ads: #faf3e3;
  /* status: never colour alone (arrow / dot + word) */
  --up: #12784a; --up-bg: #e5f5ec; --down: #b8392e; --down-bg: #fcecea; --warn: #8c5d06; --warn-bg: #fdf3dc;
  --iris: linear-gradient(100deg, #f37254, #ddb760 30%, #76c8bd 60%, #7f7bd7);
  --shadow: 0 1px 2px rgba(14,43,77,.04), 0 6px 20px rgba(14,43,77,.05);
  --r: 16px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.17 0 0 0 0 0.3 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
       background: var(--bg); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-color: rgba(14,43,77,.25); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1 { font-size: 26px; letter-spacing: -.02em; font-weight: 750; margin: 0 0 16px; line-height: 1.15; }
h1 .lt, h2 .lt { font-weight: 250; }
h2 { font-size: 18px; font-weight: 650; margin: 0 0 12px; letter-spacing: -.01em; }
h2.sec { font-size: 16px; margin: 0; }
h3 { font-size: 15.5px; font-weight: 650; margin: 0 0 10px; letter-spacing: -.005em; }
.muted, .note { color: var(--ink-3); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--c-fb); outline-offset: 2px; border-radius: 6px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, #fff 240px, var(--bg) 240px); }
nav.side { background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column;
           gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; }
nav.side::before { content: ""; position: absolute; top: -80px; right: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 40%, rgba(118,200,189,.35), transparent 60%), radial-gradient(circle at 70% 70%, rgba(127,123,215,.28), transparent 60%), radial-gradient(circle at 30% 75%, rgba(243,114,84,.22), transparent 60%); filter: blur(10px); }
.brandmark { display: flex; align-items: center; gap: 10px; margin: 0 8px 26px; position: relative; text-decoration: none; }
.brandmark img.m { width: 30px; height: auto; } .brandmark img.w { height: 21px; width: auto; }
nav.side .sec { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 18px 12px 6px; font-weight: 550; }
nav.side a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2);
                 text-decoration: none; font-weight: 500; position: relative; }
nav.side a.nav:hover { background: var(--line-2); color: var(--ink); }
nav.side a.nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
nav.side a.nav.on { background: var(--sky-2); color: var(--ink); font-weight: 650; }
nav.side a.nav.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--iris); }
nav.side a.nav .n { margin-left: auto; font-size: 11.5px; font-weight: 650; background: var(--down-bg); color: var(--down); border-radius: 10px; padding: 1px 8px; }
nav.side a.nav .cd { width: 8px; height: 8px; border-radius: 50%; margin: 0 5px; flex: none; }
nav.side a.nav span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav.side .me { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
nav.side .me form { margin-left: auto; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--iris); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.who { min-width: 0; } .who b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
main.page { min-width: 0; }
.topbar { padding: 16px 32px; display: flex; align-items: center; gap: 12px; min-height: 68px; }
.crumbs { color: var(--ink-3); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 500; } .crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }
.content { padding: 4px 32px 48px; display: grid; gap: 20px; align-content: start; }
.content > * { min-width: 0; }

/* ---------- hero (grainy iridescent header, like the logo) ---------- */
.hero { border-radius: 22px; padding: 26px 28px; position: relative; overflow: hidden; border: 1px solid rgba(14,43,77,.06);
  background: radial-gradient(ellipse 40% 90% at 8% 20%, rgba(243,114,84,.30), transparent 70%),
              radial-gradient(ellipse 35% 80% at 34% 110%, rgba(221,183,96,.34), transparent 70%),
              radial-gradient(ellipse 40% 90% at 62% 0%, rgba(118,200,189,.40), transparent 70%),
              radial-gradient(ellipse 35% 90% at 96% 80%, rgba(127,123,215,.34), transparent 70%), #fdfdfe; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; mix-blend-mode: multiply; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero.tabbed { padding-bottom: 0; }
.hero h1 { margin: 0; font-size: 32px; }
.hero .meta { color: var(--ink-2); margin-top: 6px; }
.hero-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-row > div:not(.blogo):not(.spacer) { flex: 1 1 360px; min-width: 0; }
.hero-row .actions { display: flex; gap: 10px; flex: none !important; }
.blogo { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.88); display: grid; place-items: center; overflow: hidden;
         border: 1px solid rgba(14,43,77,.08); font-weight: 750; color: var(--ink); font-size: 18px; box-shadow: var(--shadow); flex: none; }
.blogo img { max-width: 46px; max-height: 46px; }
.blogo.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; box-shadow: none; background: var(--sky-2); }
.blogo.sm img { max-width: 30px; max-height: 30px; }
.tabs { display: flex; gap: 4px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px 12px; color: var(--ink-2); text-decoration: none; font-weight: 550; border-radius: 12px 12px 0 0; white-space: nowrap; }
.tabs a:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.tabs a.on { background: var(--bg); color: var(--ink); font-weight: 650; }

/* ---------- buttons & forms ---------- */
button, .btn { font: inherit; font-weight: 550; padding: 9px 15px; border-radius: 12px; border: 1px solid var(--ink); background: var(--ink);
               color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; line-height: 1.3;
               box-shadow: 0 1px 2px rgba(14,43,77,.06); }
button:hover, .btn:hover { background: #163a63; }
button.plain, .btn.ghost, button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
button.plain:hover, .btn.ghost:hover, button.ghost:hover { background: var(--line-2); }
button.danger { background: #fff; color: var(--down); border-color: #f1c9c4; }
button svg, .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
input, select, textarea { font: inherit; color: var(--ink); padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(106,95,209,.35); border-color: var(--c-fb); }
textarea { min-height: 84px; width: 100%; }
label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
form.inline { display: inline; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; }
.grid input, .grid select { width: 100%; }
details summary { cursor: pointer; color: var(--ink-2); font-weight: 550; }
.flash { background: var(--sky-2); border: 1px solid #c8e6f1; color: var(--ink); padding: 11px 15px; border-radius: 12px; }

/* ---------- cards, rows ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.card > h3:first-child, .card > h2:first-child { margin-top: 0; }
.card .sub { color: var(--ink-3); font-size: 13px; margin-top: 1px; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.row h1 { margin: 0; }
.head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.head .spacer, .spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.wrap { overflow-x: auto; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: transparent; }
th { text-align: left; color: var(--ink-3); font-weight: 500; font-size: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
.card > table, .card > .wrap > table { margin-top: 6px; }
tr.grouprow td { background: linear-gradient(90deg, var(--sky-2), #fff 60%); font-weight: 650; font-size: 13px; }
tr.total td { font-weight: 650; background: var(--line-2); }
tbody tr:hover td, table tr:hover td { background-color: rgba(236,248,252,.45); }
tr.grouprow:hover td { background: linear-gradient(90deg, var(--sky-2), #fff 60%); }
.bar { height: 8px; border-radius: 4px; background: var(--line-2); position: relative; min-width: 70px; }
.bar b { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: linear-gradient(90deg, #f6a58f, var(--c-ig)); }

/* ---------- pills, tags, status ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; border-radius: 999px; padding: 2px 9px; white-space: nowrap; border: 0; }
.pill.up { color: var(--up); background: var(--up-bg); }
.pill.down { color: var(--down); background: var(--down-bg); }
.pill.flat { color: var(--ink-2); background: var(--line-2); font-weight: 550; }
.pill.draft { color: #4f45b3; background: var(--t-fb); }
.pill.live { color: var(--up); background: var(--up-bg); }
.pill.attention { color: var(--warn); background: var(--warn-bg); }
.pill.disconnected { color: var(--down); background: var(--down-bg); }
.pill.history { color: var(--ink-2); background: var(--line-2); }
.pill.live::before, .pill.attention::before, .pill.disconnected::before, .pill.history::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live { color: var(--up); } .attention { color: var(--warn); } .disconnected { color: var(--down); } .history { color: var(--ink-3); }
.tag { font-size: 11.5px; font-weight: 650; border-radius: 7px; padding: 2px 8px; white-space: nowrap; }
.tag.ig { background: var(--t-ig); color: #b5442a; } .tag.fb { background: var(--t-fb); color: #4f45b3; }
.tag.gbp { background: var(--t-gbp); color: #1d7469; } .tag.ads { background: var(--t-ads); color: #8c6413; }
.ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 750; letter-spacing: .02em; flex: none; }
.ico.ig { background: var(--t-ig); color: var(--c-ig); } .ico.fb { background: var(--t-fb); color: var(--c-fb); }
.ico.gbp { background: var(--t-gbp); color: var(--c-gbp); } .ico.ads { background: var(--t-ads); color: #a77514; }
.pb { position: relative; width: 30px; height: 30px; border-radius: 9px; }
.pb i.dot { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border: 2px solid #fff; box-sizing: content-box; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.live { background: #22a565; } .dot.attention, .dot.issue { background: #e5574b; } .dot.history, .dot.disconnected { background: #c3cad5; }
.legend2 { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); align-items: center; flex-wrap: wrap; }
.legend2 span { display: inline-flex; gap: 5px; align-items: center; }
.platforms { display: flex; gap: 8px; flex-wrap: nowrap; }

/* ---------- segmented control (period, filters) ---------- */
.seg { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg > a, .seg > button, .seg > span { padding: 6px 13px; border-radius: 9px; font-size: 13px; color: var(--ink-2); font-weight: 500; background: none;
  border: 0; box-shadow: none; text-decoration: none; cursor: pointer; }
.seg > a:hover, .seg > button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.seg > .on { background: #fff !important; color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px rgba(14,43,77,.1); }
.period { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.period details { position: relative; }
.period details summary { list-style: none; } .period details summary::-webkit-details-marker { display: none; }
.period .pop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(14,43,77,.12); padding: 14px; display: flex; gap: 8px; align-items: end; z-index: 5; }
.period .lbl { font-size: 12.5px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { background: #fff; color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; padding: 6px 12px; font-size: 13px; }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- insight panel ---------- */
.insight { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--iris) border-box; }
.insight .orb img { width: 34px; display: block; margin-top: 2px; }
.insight ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.insight li { display: flex; gap: 12px; align-items: baseline; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 6px; }
.kpi .lab { color: var(--ink-2); font-size: 13px; display: flex; gap: 8px; align-items: center; font-weight: 500; white-space: nowrap; overflow: hidden; }
.kpi .lab span.t { overflow: hidden; text-overflow: ellipsis; }
.kpi .val { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.kpi .foot { display: flex; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--ink-3); min-height: 22px; flex-wrap: wrap; line-height: 1.35; }
.kpi .sp { height: 36px; margin: auto -6px 0; }
/* older tile macro (secondary sections) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.tile-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.tile-value { font-size: 22px; font-weight: 650; letter-spacing: -.01em; margin: 2px 0; }
.tile-sub { font-size: 12px; color: var(--ink-3); min-height: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- charts ---------- */
.chart { width: 100%; height: 290px; margin-top: 8px; }
.multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.multiples .chart { height: 210px; }
.chart-card details { margin-top: 10px; font-size: 13px; }
.bignum { font-size: 30px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.bignum small { font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.nums { display: flex; gap: 26px; margin-top: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }

/* ---------- posts ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 14px; }
.post { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: block; }
.post:hover { box-shadow: var(--shadow); }
.post .im { aspect-ratio: 4/5; background: #e9edf3 center/cover no-repeat; position: relative; display: flex; align-items: flex-end; }
.post .im .t { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.post .im .cap { padding: 14px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; display: none; }
.post .im.nopic { background: radial-gradient(ellipse at 20% 20%, rgba(243,114,84,.35), transparent 60%), radial-gradient(ellipse at 80% 40%, rgba(118,200,189,.45), transparent 60%), radial-gradient(ellipse at 50% 100%, rgba(127,123,215,.4), transparent 60%), #fff; }
.post .im.nopic .cap { display: block; }
.post .meta { padding: 11px 13px; display: grid; gap: 5px; font-size: 12.5px; }
.post .meta .r { display: flex; justify-content: space-between; color: var(--ink-3); }
.post .meta .r b { color: var(--ink); font-weight: 600; }

/* ---------- accounts list ---------- */
.health { display: flex; gap: 8px; flex-wrap: wrap; }
.acct { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 500; background: #fff; }
.health.col { flex-direction: column; align-items: stretch; margin-top: 12px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .hero { width: min(440px, 100%); padding: 34px 32px; text-align: left; }
.login .hero img.m { width: 64px; margin-bottom: 18px; }
.login .hero img.w { height: 26px; display: block; margin-bottom: 18px; }
.login .panel { background: rgba(255,255,255,.9); border-radius: 16px; padding: 18px; margin-top: 18px; border: 1px solid var(--line); }

/* ---------- small screens ---------- */
@media (max-width: 1100px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  nav.side { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  nav.side .brandmark { margin: 0 12px 0 0; }
  nav.side .sec, nav.side a.nav.cl, nav.side .me .who { display: none; }
  .topbar .jump { display: none !important; }
  .crumbs { font-size: 12.5px; }
  nav.side .me { margin: 0 0 0 auto; border: 0; padding: 0; }
  nav.side a.nav.on::before { display: none; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 20px; } .hero h1 { font-size: 24px; }
  .insight { grid-template-columns: minmax(0, 1fr); } .insight .orb { display: none; }
}
@media print { nav.side, .topbar { display: none; } .shell { display: block; } }

/* Tables placed straight on a page (setup screens) sit on a white card like everything else. */
.content > .wrap, .content > table, .content > form > .wrap, .content > form > table {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px 14px; }
.content > h1 + p, .content > .row + p { margin-top: -8px; }

/* ---- v2 screens (18 Nov 2026): Connections, brand setup, report editor, client home ---- */
.chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.chip{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.8);border:1px solid var(--line);border-radius:12px;padding:8px 12px;font-size:13px}
.chip b{font-size:18px;letter-spacing:-.02em}
.cards3{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.cards2{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px}
.lc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}
.lc .top{display:flex;align-items:center;gap:10px}
.lc .top .nm{font-weight:650;line-height:1.25}
.lc .meta{font-size:12.5px;color:var(--ink-3);display:flex;gap:12px;flex-wrap:wrap}
.lc .acts{display:flex;gap:8px;margin-top:2px}
.lc .acts button{padding:6px 10px;font-size:12.5px}
.pi{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none}
.pi.ig{background:var(--t-ig);color:var(--c-ig)} .pi.fb{background:var(--t-fb);color:var(--c-fb)} .pi.gbp{background:var(--t-gbp);color:var(--c-gbp)}
.pi.ga{background:var(--t-ads);color:var(--c-ads)} .pi.ma{background:#eef0fb;color:#5149b8} .pi.yt{background:#fdeaea;color:#c4302b} .pi.li{background:#e7f1fb;color:#0a66c2}
.need{border-left:4px solid #e0a325}
.need .why{font-size:13.5px;color:var(--ink)}
.need .fix{font-size:13px;background:var(--warn-bg);color:var(--warn);border-radius:10px;padding:8px 10px}
details.tech summary{font-size:12px;color:var(--ink-3);cursor:pointer}
details.tech div{font:11.5px/1.45 ui-monospace,Menlo,monospace;color:var(--ink-3);margin-top:6px}
.matrix td,.matrix th{text-align:center}
.matrix td:first-child,.matrix th:first-child{text-align:left}
.cell{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;font-size:12px}
.cell.ok{background:var(--up-bg);color:var(--up)} .cell.warn{background:var(--warn-bg);color:var(--warn)}
.cell.hist{background:#eef0f4;color:#7b889b} .cell.none{color:#c6cdd8}
.sec-h{display:flex;align-items:baseline;gap:10px;margin:26px 0 12px}
.sec-h h2{margin:0}
.tabs2{display:flex;gap:4px;margin-top:16px}
.tabs2 a{padding:8px 14px;border-radius:10px;text-decoration:none;color:var(--ink-2);font-weight:550}
.tabs2 a.on{background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.pc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow)}
.pc .h{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.pc .h .t{font-weight:650}
.pc .acc{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line-2)}
.pc .acc:first-of-type{border-top:0}
.pc .rule{font-size:12.5px;color:var(--ink-2);background:var(--sky-2);border-radius:8px;padding:6px 8px;margin-top:6px}
.pc.empty{border-style:dashed;box-shadow:none;background:#fbfcfe}
.sugg{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f6f8fb;border-radius:10px;padding:8px 10px;margin-top:8px;font-size:13px}
.steps{display:flex;gap:0;align-items:center;margin-top:14px}
.step{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-3)}
.step i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:12px;border:1.5px solid #cfd6e0;background:#fff}
.step.done{color:var(--up)} .step.done i{background:var(--up);border-color:var(--up);color:#fff}
.step.cur{color:var(--ink);font-weight:650} .step.cur i{border-color:var(--ink);color:var(--ink)}
.step-line{width:40px;height:2px;background:#dfe4ec;margin:0 10px}
.ed{display:grid;grid-template-columns:250px 1fr;gap:18px;align-items:start}
.rail{background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;position:sticky;top:12px;max-height:calc(100vh - 120px);overflow:auto}
.rail .grp{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding:10px 8px 4px}
.rail a{display:flex;gap:10px;align-items:center;padding:6px 8px;border-radius:10px;text-decoration:none;color:var(--ink-2);font-size:13px}
.rail a.on{background:var(--sky-2);color:var(--ink);font-weight:600}
.thumb{width:54px;height:30px;border-radius:5px;flex:none;background:#0e2b4d;position:relative;overflow:hidden}
.thumb.l{background:#f3efe6}
.thumb::after{content:"";position:absolute;left:5px;top:6px;width:60%;height:4px;border-radius:2px;background:rgba(255,255,255,.75)}
.thumb.l::after{background:#0e2b4d;opacity:.6}
.rail .st{margin-left:auto;width:8px;height:8px;border-radius:50%;background:#dfe4ec}
.rail .st.e{background:var(--c-fb)} .rail .st.w{background:#e0a325}
.slide{aspect-ratio:16/9;border-radius:12px;background:#f3efe6;position:relative;overflow:hidden;border:1px solid var(--line)}
.slide .k{position:absolute;left:5%;top:7%;font:600 11px Inter;letter-spacing:.12em;text-transform:uppercase;color:#a07d2c}
.slide .hd{position:absolute;left:5%;top:14%;right:30%;font:400 34px/1.05 'Bebas Neue',Inter;letter-spacing:.01em;color:#0e2b4d}
.slide .bx{position:absolute;bottom:8%;left:5%;right:5%;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.slide .bx div{background:#fff;border-radius:10px;padding:12px 14px;font-size:12px;color:var(--ink-3)}
.slide .bx div b{display:block;font:400 28px/1.1 'Bebas Neue',Inter;color:#0e2b4d;margin-top:8px}
.field{margin-top:14px}
.field label{font-weight:600}
.hint{font-size:12.5px;color:var(--ink-3);margin-top:4px}
.ok-line{display:flex;gap:8px;align-items:flex-start;font-size:13px;padding:6px 0}
.ok-line .ic{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:11px;flex:none;margin-top:1px}
.ok-line .ic.g{background:var(--up-bg);color:var(--up)} .ok-line .ic.w{background:var(--warn-bg);color:var(--warn)}
.sticky{position:sticky;bottom:12px;z-index:5;margin-top:18px;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:14px;padding:10px 14px;display:flex;align-items:center;gap:10px;box-shadow:0 -6px 24px rgba(14,43,77,.06)}
.rep{display:grid;grid-template-columns:300px 1fr;gap:22px;align-items:center}
.cover{aspect-ratio:16/9;border-radius:12px;background:linear-gradient(135deg,#0e2b4d,#1d4470);position:relative;overflow:hidden;box-shadow:0 10px 30px rgba(14,43,77,.18)}
.cover .t{position:absolute;left:8%;bottom:22%;color:#fff;font:400 30px/1 'Bebas Neue',Inter;letter-spacing:.02em}
.cover .s{position:absolute;left:8%;bottom:8%;color:#ddb760;font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.kp{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow)}
.kp .l{font-size:12.5px;color:var(--ink-3);display:flex;gap:8px;align-items:center}
.kp .v{font-size:26px;font-weight:750;letter-spacing:-.02em;margin-top:6px}
.kp .f{font-size:12.5px;color:var(--ink-3)}
.kgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media (max-width: 900px){.ed{grid-template-columns:1fr}.rail{position:static;max-height:none}.rep{grid-template-columns:1fr}.kgrid{grid-template-columns:repeat(2,1fr)}}

/* ---------- design dashboard (24 Nov 2026) ---------- */
code { font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); }
.flash.warn { background: var(--warn-bg); border-color: #f1dca8; color: var(--warn); }
button.sm, .btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 9px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
tr.click { cursor: pointer; }
.jobs td { vertical-align: middle; }
.job { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.job a { text-decoration: none; }
.thumbs { display: flex; gap: 4px; align-items: center; }
.thumbs img, .thumbs .ph { width: 34px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--line-2); border: 1px solid var(--line); flex: none; }
.thumbs .ph { display: grid; place-items: center; font-size: 10px; font-weight: 650; color: var(--ink-3); }
.brief-line { margin: 14px 0 0; color: var(--ink-2); max-width: 900px; }

.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.dcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; display: block; box-shadow: var(--shadow); }
.dcard:hover { box-shadow: 0 2px 4px rgba(14,43,77,.06), 0 12px 28px rgba(14,43,77,.10); }
.dcard .im { aspect-ratio: 4/5; background: #eef1f6; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dcard .im img { width: 100%; height: 100%; object-fit: contain; }
.dcard .im .t { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; }
.dcard .im.nopic { background: radial-gradient(ellipse at 20% 20%, rgba(243,114,84,.30), transparent 60%), radial-gradient(ellipse at 80% 40%, rgba(118,200,189,.40), transparent 60%), radial-gradient(ellipse at 50% 100%, rgba(127,123,215,.35), transparent 60%), #fff; }
.dcard .im .cap { padding: 16px; font-weight: 650; text-align: center; line-height: 1.3; }
.dcard .meta { padding: 11px 13px; display: grid; gap: 6px; font-size: 12.5px; }
.dcard .meta b { font-size: 13.5px; line-height: 1.3; }
.dcard .meta .r { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--ink-3); }

.vrow { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; margin-top: 10px; scroll-snap-type: x proximity; }
.ver { flex: none; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fbfcfe; max-width: 92%; }
.ver:first-child { background: #fff; border-color: #cfe7f0; box-shadow: var(--shadow); }
.ver-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.ver-ims { display: flex; gap: 10px; }
.ver-ims img { height: 340px; width: auto; max-width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: block; }
a.zoom { cursor: zoom-in; display: block; }

.fbl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.fb { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; display: grid; gap: 6px; }
.fb.open { border-left: 4px solid #e0a325; }
.fb.done { background: #fbfcfe; } .fb.done .fb-t { color: var(--ink-2); }
.fb-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fb-t { white-space: pre-wrap; }
.fb-a { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.fb-a select { padding: 4px 8px; font-size: 12.5px; }
.comment { display: grid; gap: 8px; }
.comment textarea { min-height: 76px; }

.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 10px; }
.ref { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ref img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--line-2); }
.ref figcaption { padding: 9px 11px; font-size: 12.5px; line-height: 1.4; display: grid; gap: 4px; }
.ref.review { border-color: #f1dca8; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.sw { display: flex; gap: 10px; align-items: center; }
.sw i { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(14,43,77,.1); flex: none; }
.sw span { display: grid; font-size: 12.5px; min-width: 0; } .sw b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw code { background: none; padding: 0; }
.swatches.sm { display: flex; gap: 4px; margin: 0; } .swatches.sm i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(14,43,77,.1); }
.bcard { text-decoration: none; color: inherit; } .bcard:hover { box-shadow: 0 2px 4px rgba(14,43,77,.06), 0 12px 28px rgba(14,43,77,.10); }

.rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.rule { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; }
.rule.proposed { border-left: 4px solid #e0a325; }
.rule.retired { opacity: .75; }
.rule-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rule-h .tag { background: var(--sky-2); color: var(--ink-2); }
.rule-b { display: grid; gap: 5px; }
.lbl { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; margin-right: 8px; vertical-align: 1px; }
.lbl.do { background: var(--up-bg); color: var(--up); } .lbl.dont { background: var(--down-bg); color: var(--down); }
.rule-a { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.pop-d { position: relative; }
.pop-d summary { list-style: none; } .pop-d summary::-webkit-details-marker { display: none; }
.pop-d[open] > form { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(14,43,77,.14); padding: 12px; display: flex; gap: 8px; align-items: center; min-width: 300px; }
.pop-d[open] > form.edit { flex-direction: column; align-items: stretch; width: min(520px, 80vw); }
.grp-h { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; }
.grp-h a { text-decoration: none; }

.qs { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; }
.copy { white-space: pre-wrap; font: 13px/1.55 Inter, system-ui, sans-serif; background: var(--line-2); border-radius: 10px; padding: 12px 14px; margin: 10px 0; max-height: 360px; overflow: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 13px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.brief { line-height: 1.6; } .brief h1, .brief h2, .brief h3 { font-size: 15px; margin: 16px 0 6px; } .brief p { margin: 6px 0; }
.brief ul, .brief ol { padding-left: 20px; margin: 6px 0; } .brief table { font-size: 13px; }
.claims td { vertical-align: top; }

.lightbox { position: fixed; inset: 0; background: rgba(9,22,40,.86); z-index: 50; display: grid; place-items: center; padding: 28px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 56px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.4); background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 16px; }
@media (max-width: 860px) { .ver-ims img { height: 240px; } .jobs th:nth-child(2), .jobs td:nth-child(2), .jobs th:nth-child(6), .jobs td:nth-child(6) { display: none; } }
.blogo { width: auto; min-width: 56px; max-width: 150px; padding: 0 8px; }
.blogo img { max-width: 134px; max-height: 40px; }
.blogo.sm { min-width: 36px; max-width: 76px; padding: 0 5px; }
.blogo.sm img { max-width: 66px; max-height: 24px; }
.bfiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bfiles img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.bfiles .bf { font-size: 12.5px; background: var(--line-2); border-radius: 8px; padding: 6px 10px; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.grp { border-top: 1px solid var(--line-2); }
details.grp:first-of-type { margin-top: 8px; }
details.grp > summary.grp-h { list-style: none; cursor: pointer; margin: 0; padding: 12px 4px; border-radius: 10px; color: var(--ink); }
details.grp > summary.grp-h::-webkit-details-marker { display: none; }
details.grp > summary.grp-h::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); margin-right: 4px; transition: transform .15s; flex: none; }
details.grp[open] > summary.grp-h::before { transform: rotate(45deg); }
details.grp > summary.grp-h:hover { background: var(--line-2); }
details.grp > .rules { margin: 0 0 14px; }
.blogo.sm { width: auto; }
.ref figcaption, .fb-t, .rule-b, .kv dd, .qs li { overflow-wrap: anywhere; }
@media (max-width: 860px) { .jobs th:nth-child(4), .jobs td:nth-child(4), .jobs th:nth-child(7), .jobs td:nth-child(7) { display: none; } .job { min-width: 0; } }
