/* Konooz look, from the 2025 brand guideline: deep blue #1B2C34, orange #BC4B23, green #01562F; Montserrat for Latin
   text and numbers, a neutral Arabic sans beside it (the guideline's Helvetica Neue Arabic is not freely licensed).
   Loaded after the shared app.css, so everything here overrides it. */
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url("/pack/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 100 900; font-display: swap; src: url("/pack/fonts/noto-sans-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --blue: #1B2C34; --orange: #BC4B23; --green: #01562F;
  --c-odoo: #1B2C34; --c-clickup: #BC4B23; --c-wati: #01562F; --c-platform: #8A6414;     /* one colour per source system */
  --page: #F3EFE8; --surface: #FFFFFF; --ink: #1B2C34; --ink-2: #4A5B63; --muted: #66767D;
  --grid: #E7E2D9; --axis: #CFC8BB; --border: rgba(27, 44, 52, 0.09); --hover: rgba(27, 44, 52, 0.05);
  --series-1: #BC4B23; --series-2: #01562F; --seq-bar: #BC4B23;
  --good: #01562F; --warning-ink: #8A5A00; --critical: #C0392B; --critical-ink: #A6291C; --warning: #D99A1A;
  --focus: #BC4B23; --skeleton: #ECE7DE;
  --bar: #1B2C34; --bar-ink: #F4EFE6; --bar-ink-2: rgba(244, 239, 230, 0.72);
  --shadow: 0 1px 2px rgba(27, 44, 52, 0.05), 0 12px 28px -16px rgba(27, 44, 52, 0.18);
  --radius: 16px;
}
:root[data-theme="dark"] {
  --c-odoo: #78A9C0; --c-clickup: #E2763F; --c-wati: #3FA877; --c-platform: #D9AE4E;
  --page: #0E181D; --surface: #17262D; --ink: #F4EFE6; --ink-2: #B9C5CA; --muted: #8C9CA3;
  --grid: #243942; --axis: #35505B; --border: rgba(244, 239, 230, 0.09); --hover: rgba(244, 239, 230, 0.06);
  --series-1: #E2763F; --series-2: #3FA877; --seq-bar: #E2763F;
  --good: #3FA877; --warning-ink: #E3B04B; --critical: #E5645A; --critical-ink: #FF9A90; --warning: #E3B04B;
  --focus: #E2763F; --skeleton: #1E323B;
  --bar: #0A1216; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -16px rgba(0, 0, 0, 0.6);
}

html, body { overflow-x: clip; }
body {
  font-family: "Montserrat", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15.5px; line-height: 1.65; background: var(--page); color: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.wrap { max-width: 1240px; padding: 0 24px 64px; }
h1, h2, h3 { letter-spacing: 0; }

/* ---------- header: deep blue, the logo, the three-block stripe ---------- */
.bleed { position: relative; isolation: isolate; }
.bleed::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline: calc(50% - 50vw); background: var(--bar); }
.top { position: sticky; top: 0; z-index: 30; padding: 14px 0 16px; gap: 14px 18px; color: var(--bar-ink); flex-wrap: wrap; }
.top::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline: calc(50% - 50vw); background: var(--bar); }
.top::after { content: ""; position: absolute; z-index: -1; inset-inline: calc(50% - 50vw); bottom: 0; height: 4px;
  background: linear-gradient(to right, #3A5562 0 33.34%, var(--orange) 33.34% 66.67%, var(--green) 66.67%); }
.brand { margin-inline-end: 0; align-items: center; }
.brand .logo { display: block; height: 42px; width: auto; }
.top .seg { background: rgba(244, 239, 230, 0.07); border: 1px solid rgba(244, 239, 230, 0.12); border-radius: 999px; padding: 4px; margin-inline: auto; }
.top .seg a { color: var(--bar-ink-2); border-radius: 999px; padding: 7px 12px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.top .seg a:hover { background: rgba(244, 239, 230, 0.1); color: var(--bar-ink); }
.top .seg a[aria-current="page"] { background: var(--bar-ink); color: var(--blue); font-weight: 700; }
.top .who { color: var(--bar-ink-2); font-size: 13.5px; gap: 6px; }
.top .who { flex: none; }
.top .who #who { color: var(--bar-ink); font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .linkbtn { color: var(--bar-ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.top .linkbtn:hover { color: var(--bar-ink); background: rgba(244, 239, 230, 0.1); }
.top :focus-visible { outline-color: #F0B089; }
@media (max-width: 1100px) {
  .top { position: static; flex-wrap: wrap; }
  .top .seg { order: 3; width: 100%; margin-inline: 0; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .top .seg a { flex: none; }
  .brand { margin-inline-end: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 46px 0 96px; color: var(--bar-ink); }
.hero::before { content: ""; position: absolute; z-index: -2; inset-block: 0; inset-inline: calc(50% - 50vw); background:
  radial-gradient(900px 340px at 12% 0%, rgba(188, 75, 35, 0.16), transparent 70%),
  radial-gradient(700px 320px at 95% 100%, rgba(1, 86, 47, 0.22), transparent 70%), var(--bar); }
.hero::after { content: ""; position: absolute; z-index: -1; inset-block: 8px 0; inset-inline-end: -10px; width: min(440px, 52%);
  background: url("/pack/logo-mark-dark.svg") no-repeat center / contain; opacity: 0.13; pointer-events: none; }
.hero .eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #F0A878; }
.hero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.25; }
.hero .lead { margin: 12px 0 0; max-width: 62ch; color: var(--bar-ink-2); font-size: 16px; }
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(244, 239, 230, 0.09); border: 1px solid rgba(244, 239, 230, 0.14); color: var(--bar-ink); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #fff); }
.hero.compact { padding: 30px 0 78px; }
.hero + .grid { margin-top: -58px; position: relative; z-index: 2; }
@media (max-width: 700px) { .hero { padding-bottom: 84px; } .hero::after { width: 70%; opacity: 0.09; } }

/* period choice, inside the hero */
.periodbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.periodbar button { border: 1px solid rgba(244, 239, 230, 0.2); background: rgba(244, 239, 230, 0.06); color: var(--bar-ink-2); padding: 7px 16px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.periodbar button:hover { background: rgba(244, 239, 230, 0.14); color: var(--bar-ink); }
.periodbar button[aria-pressed="true"] { background: var(--bar-ink); color: var(--blue); border-color: transparent; }
.periodnote { margin: 10px 0 0; font-size: 13px; color: var(--bar-ink-2); max-width: 70ch; }
.periodnote b { color: var(--bar-ink); font-weight: 600; }
.card .follows { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--hover); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) { .periodbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .periodbar button { flex: none; } }

/* ---------- cards ---------- */
.grid { gap: 18px; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.card h2 .src { margin-inline-start: auto; }
.card h2 .follows { margin-inline-start: auto; }
.card h2 .follows + .src { margin-inline-start: 0; }
.sub { color: var(--ink-2); font-size: 13.5px; margin: 0 0 16px; }
.card[data-src="odoo"] { --seq-bar: var(--c-odoo); }
.card[data-src="clickup"] { --seq-bar: var(--c-clickup); }
.card[data-src="wati"] { --seq-bar: var(--c-wati); }
:root[data-theme="dark"] .card[data-src="odoo"] { --seq-bar: var(--c-odoo); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: 3fr 2fr; }
.g-2r { grid-template-columns: 2fr 3fr; }
@media (max-width: 900px) { .g-2, .g-2r, .g-3, .g-eq { grid-template-columns: 1fr; } .card { padding: 18px 18px; } }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } .wrap { padding: 0 16px 48px; } .g-kpi { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 16px 16px 14px; } .kpi .value { font-size: 26px; } .hero { padding-top: 30px; } }
@media (max-width: 400px) { .g-kpi { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .top .who { flex-wrap: wrap; flex: 1 1 100%; gap: 4px 6px; }
  .top .who #who { flex: 1 1 100%; max-width: none; }
  table.t { min-width: 460px; }
}

/* source badges: the colour tells which system a number comes from */
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: 999px; color: #fff; background: var(--dot); white-space: nowrap; }
.src.odoo { --dot: var(--c-odoo); } .src.clickup { --dot: var(--c-clickup); } .src.wati { --dot: var(--c-wati); }
:root[data-theme="dark"] .src { color: #0B1418; }

/* ---------- KPI tiles ---------- */
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(166px, 1fr)); gap: 16px; }
.kpi { position: relative; overflow: hidden; padding: 20px 22px 18px; }
.kpi::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--dot, var(--axis)); }
.kpi[data-src="odoo"] { --dot: var(--c-odoo); } .kpi[data-src="clickup"] { --dot: var(--c-clickup); } .kpi[data-src="wati"] { --dot: var(--c-wati); }
.kpi .label { color: var(--ink-2); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: clamp(24px, 2.1vw, 30px); font-weight: 800; line-height: 1.1; margin: 8px 0 8px; color: var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.kpi .value .n { unicode-bidi: isolate; direction: ltr; }
.kpi .value .u { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.kpi .value.neg { color: var(--critical-ink); }
.kpi .note { font-size: 13px; color: var(--ink-2); min-height: 20px; }

/* ---------- bars, lists ---------- */
.bars { gap: 14px; }
.bars li { font-size: 14.5px; }
.bars .track { height: 9px; border-radius: 999px; background: var(--grid); }
.bars .fill { border-radius: 999px; }
.bars .amt { color: var(--ink); font-weight: 600; font-size: 14px; }
.bars .subline { font-size: 12.5px; color: var(--muted); }
.bars a.name { font-weight: 600; }
.bars a.name:hover, .plain a:hover { color: var(--orange); }
.plain { gap: 14px; }
.plain li { padding-bottom: 12px; border-bottom: 1px solid var(--grid); }
.plain li:last-child { padding-bottom: 0; border-bottom: 0; }
.plain .name { font-weight: 600; }
.plain a { color: var(--orange); }
:root[data-theme="dark"] .plain a { color: #F0A878; }
.more { font-size: 13px; color: var(--muted); }
.callout { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; color: var(--ink-2); background: var(--hover);
  border-inline-start: 3px solid var(--orange); }
.callout b { color: var(--ink); }

/* open-in-source link chips */
.linkchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--surface); border: 1px solid var(--axis); text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.linkchip:hover { border-color: var(--orange); background: var(--hover); }
.linkchip::after { content: "↗"; color: var(--orange); font-size: 12px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* stacked share bar */
.seg-bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; }
.seg-bar i { display: block; min-width: 6px; border-radius: 3px; }
.seg-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; font-size: 13.5px; }
.seg-legend li { display: flex; align-items: baseline; gap: 8px; }
.seg-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; transform: translateY(1px); }
.seg-legend b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seg-legend span { color: var(--ink-2); }

/* column charts (one currency per chart) */
.cols { direction: ltr; display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 6px; border-bottom: 1px solid var(--axis); }
.col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.col .v { display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.col .v small { font-size: 10px; font-weight: 500; color: var(--muted); }
.pair > * { min-width: 0; }
.col .b { width: 100%; max-width: 46px; min-height: 3px; border-radius: 8px 8px 2px 2px; background: var(--bar-color, var(--seq-bar)); transition: filter 0.15s; }
.col:hover .b { filter: brightness(1.12); }
.col-labels { direction: ltr; display: flex; gap: 10px; margin-top: 8px; }
.col-labels span { flex: 1; min-width: 0; text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.chart-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

/* figures in a row (balance sheet, withdrawals) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 20px; margin: 0 0 16px; }
.stats.boxed { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats.boxed .stat { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: var(--hover); }
.stat .l { color: var(--ink-2); font-size: 13px; }
.stat .n { font-size: 22px; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.stat .n.neg { color: var(--critical-ink); }
.stat .d { color: var(--muted); font-size: 12.5px; }

/* chips for data-quality counts */
.chip { font-size: 12.5px; padding: 3px 10px; font-weight: 600; margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip.warn { background: rgba(217, 154, 26, 0.12); border-color: transparent; }
.chip.ok { color: var(--good); border-color: transparent; background: rgba(1, 86, 47, 0.09); }

/* tables */
.tablewrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
table.t { font-size: 13.5px; margin-top: 4px; border-collapse: separate; border-spacing: 0; }
table.t td { overflow-wrap: anywhere; }
table.t th { font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--axis); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--grid); }
table.t tbody tr:hover td { background: var(--hover); }
table.t td:first-child { font-weight: 600; }
table.t a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
table.t a:hover { color: var(--orange); border-color: var(--orange); }
table.t td.neg { color: var(--critical-ink); font-weight: 700; }
table.t td.ok { color: var(--good); font-weight: 700; }
.t .cur { color: var(--muted); font-weight: 500; font-size: 12px; }

/* the three sources, as tiles */
.srctiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.srctile { border: 1px solid var(--border); border-top: 4px solid var(--dot); border-radius: 12px; padding: 14px 16px 16px; background: var(--surface); }
.srctile.odoo { --dot: var(--c-odoo); } .srctile.clickup { --dot: var(--c-clickup); } .srctile.wati { --dot: var(--c-wati); }
.srctile .top2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.srctile b { font-size: 17px; font-weight: 800; }
.srctile .st { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: var(--good); background: rgba(1, 86, 47, 0.1); }
.srctile .st.off { color: var(--warning-ink); background: rgba(217, 154, 26, 0.14); }
.srctile p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.srctile .chiprow { margin-top: 12px; }

/* sources screen */
.srccard { padding: 0; overflow: hidden; }
.srccard header { padding: 20px 24px; color: #fff; background: var(--dot); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
:root[data-theme="dark"] .srccard header { color: #0B1418; }
.srccard header h2 { margin: 0; font-size: 22px; font-weight: 800; }
.srccard header p { margin: 0; opacity: 0.85; font-size: 14px; }
.srccard .state { margin-inline-start: auto; background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; }
.srccard .inner { padding: 22px 24px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
@media (max-width: 800px) { .srccard .inner { grid-template-columns: 1fr; } }
.srccard h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }
.srccard ul.points { margin: 0; padding-inline-start: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.srccard.odoo { --dot: var(--c-odoo); } .srccard.clickup { --dot: var(--c-clickup); } .srccard.wati { --dot: var(--c-wati); }
.srcgrid { display: grid; gap: 18px; margin-top: -58px; position: relative; z-index: 2; }
.feeds { display: flex; flex-wrap: wrap; gap: 8px; }
.feeds a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--hover); border: 1px solid var(--border); }
.feeds a:hover { border-color: var(--dot); }
.feeds a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }

.foot { color: var(--muted); }
.err { color: var(--critical-ink); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login .side { position: relative; isolation: isolate; background: var(--blue); color: var(--bar-ink); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.login .side::before { content: ""; position: absolute; z-index: -2; inset: 0; background:
  radial-gradient(700px 380px at 90% 0%, rgba(188, 75, 35, 0.28), transparent 70%),
  radial-gradient(640px 360px at 0% 100%, rgba(1, 86, 47, 0.34), transparent 70%); }
.login .side::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -80px; bottom: -40px; width: 560px; aspect-ratio: 1.7;
  background: url("/pack/logo-mark-dark.svg") no-repeat center / contain; opacity: 0.16; }
.login .side .logo { height: 128px; width: auto; display: block; }
.login .side h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.35; margin: 0 0 12px; max-width: 16ch; }
.login .side p { margin: 0; color: var(--bar-ink-2); max-width: 44ch; font-size: 16px; }
.login .side small { color: var(--bar-ink-2); letter-spacing: 0.06em; font-size: 12.5px; }
.login .form { display: grid; place-items: center; padding: 32px; background: var(--page); }
.login .panel { max-width: 400px; box-shadow: none; border: 0; background: none; padding: 0; }
.login .panel h1 { font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.login .panel input { border-radius: 12px; padding: 12px 14px; background: var(--surface); border-color: var(--axis); }
.login .panel input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.login .panel .go { border-radius: 12px; padding: 13px; background: var(--orange); color: #fff; font-size: 16px; }
.login .panel .go:hover { filter: brightness(1.08); }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login .side { padding: 28px 24px 34px; gap: 28px; }
  .login .side .logo { height: 64px; }
  .login .side h2 { font-size: 24px; }
  .login .side::after { width: 360px; }
}

/* analysis (reports) and other shared screens inherit the same shell */
.btn { background: var(--orange); color: #fff; border-radius: 12px; padding: 10px 20px; }
.runrow { margin-top: 8px; }



table.t tr.clickable { cursor: pointer; }
ul.points { margin: 0; padding-inline-start: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.points code { font-size: 11.5px; color: var(--muted); background: var(--hover); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.card[hidden] { display: none; }
.stack { display: grid; gap: 22px; }

/* ======================= Hila palette and components =======================
   Placeholder brand colours (gum-arabic amber, roasted brown, olive) until the company logo arrives: change the tokens
   below and everything follows. Stage colours are used for the content pipeline. */
:root {
  --brown: #2B2118; --amber: #C98A1B; --olive: #5E7F2B;
  --c-clickup: #5B4FC4; --c-odoo: #8A4F7D;                 /* one colour per source system (Odoo joins later) */
  --page: #F5F0E6; --surface: #FFFFFF; --ink: #2B2118; --ink-2: #5A4D40; --muted: #76685A;
  --grid: #EAE2D5; --axis: #D4C9B6; --border: rgba(43, 33, 24, 0.09); --hover: rgba(43, 33, 24, 0.05);
  --series-1: #C98A1B; --series-2: #5E7F2B; --seq-bar: #C98A1B;
  --good: #4E6B22; --warning-ink: #8A5A00; --warning: #D99A1A; --focus: #C98A1B; --skeleton: #EEE7DA;
  --bar: #2B2118; --orange: #C98A1B; --green: #5E7F2B; --blue: #2B2118;
  --st-idea: #8197A3; --st-production: #C98A1B; --st-approved: #2F8F83; --st-published: #5E7F2B; --st-hold: #A65D57;
}
:root[data-theme="dark"] {
  --c-clickup: #9A8CF0; --c-odoo: #C98BBA;
  --page: #14100C; --surface: #211A14; --ink: #F5EFE3; --ink-2: #C9BFAE; --muted: #9A8E7E;
  --grid: #2C241B; --axis: #44392C; --border: rgba(245, 239, 227, 0.09); --hover: rgba(245, 239, 227, 0.06);
  --series-1: #E0A33A; --series-2: #86A94A; --seq-bar: #E0A33A; --good: #86A94A; --warning-ink: #E3B04B; --focus: #E0A33A; --skeleton: #2A221A;
  --bar: #0D0A07;
  --st-idea: #9DB1BC; --st-production: #E0A33A; --st-approved: #4FB3A5; --st-published: #86A94A; --st-hold: #D07F78;
}
.top::after { background: linear-gradient(to right, #6B5B45 0 33.34%, var(--amber) 33.34% 66.67%, var(--olive) 66.67%); }
.hero::before { background:
  radial-gradient(900px 340px at 12% 0%, rgba(201, 138, 27, 0.22), transparent 70%),
  radial-gradient(700px 320px at 95% 100%, rgba(94, 127, 43, 0.20), transparent 70%), var(--bar); }
.hero::after { background: radial-gradient(closest-side, rgba(201, 138, 27, 0.16), transparent 70%); opacity: 1; inset-block: -40px 0; width: min(560px, 60%); }
.hero .eyebrow { color: #E6BE6A; }
.login .side::before { background: radial-gradient(700px 380px at 90% 0%, rgba(201, 138, 27, 0.30), transparent 70%), radial-gradient(640px 360px at 0% 100%, rgba(94, 127, 43, 0.30), transparent 70%); }
.login .side::after { background: radial-gradient(closest-side, rgba(201, 138, 27, 0.18), transparent 70%); opacity: 1; width: 620px; aspect-ratio: 1; }
.login .side { background: var(--brown); }
.login .panel .go { background: var(--amber); color: #20160B; }
.btn { background: var(--amber); color: #20160B; }

/* placeholder wordmark (the logo replaces it) */
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--bar-ink); }
.wordmark .wm-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font: 800 24px/1 "Montserrat", sans-serif; color: #20160B;
  background: linear-gradient(135deg, #E6B04A, var(--amber)); }
.wordmark .wm-text { display: grid; line-height: 1.1; }
.wordmark b { font-size: 21px; font-weight: 800; letter-spacing: 0.02em; }
.brand .wordmark .wm-text, .brand .wordmark .wm-text b { color: var(--bar-ink); }
.wordmark small { font-size: 11.5px; opacity: 0.72; letter-spacing: 0.06em; text-transform: uppercase; }
.wordmark.big .wm-mark { width: 64px; height: 64px; font-size: 36px; border-radius: 18px; }
.wordmark.big b { font-size: 30px; }

/* the content board */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.filters button { border: 1px solid var(--axis); background: var(--surface); color: var(--ink-2); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.filters button:hover { border-color: var(--amber); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: transparent; }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }
.col-box { background: var(--hover); border-radius: 14px; padding: 12px; min-width: 0; }
.col-box > h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.col-box > h3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.col-box > h3 b { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ticket { background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--c); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 13.5px; }
.ticket a { color: var(--ink); text-decoration: none; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ticket a:hover { color: var(--amber); text-decoration: underline; }
.ticket .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.ticket .tag { padding: 1px 8px; border-radius: 999px; background: var(--hover); font-weight: 600; }
.ticket .tag.late { background: rgba(192, 57, 43, 0.12); color: var(--critical-ink); }
.ticket .tag.stuck { background: rgba(217, 154, 26, 0.16); color: var(--warning-ink); }
.ticket .tag.none { font-style: italic; }
.col-box .more-btn { width: 100%; border: 1px dashed var(--axis); background: none; color: var(--ink-2); border-radius: 10px; padding: 8px; cursor: pointer; font-size: 13px; }
.col-box .more-btn:hover { border-color: var(--amber); color: var(--ink); }

/* stacked columns (content per month) */
.cols.stacked .col .b { display: flex; flex-direction: column-reverse; background: none; overflow: hidden; border-radius: 8px 8px 2px 2px; }
.cols.stacked .col .b i { display: block; width: 100%; }

/* "coming next" source placeholder */
.srcnext { border: 2px dashed var(--axis); background: transparent; box-shadow: none; }
.srcnext h2 { display: flex; align-items: center; gap: 10px; }
.srcnext .soon { font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--hover); color: var(--ink-2); }
.srccard.clickup { --dot: var(--c-clickup); }
.srcgrid { display: grid; gap: 18px; margin-top: -58px; position: relative; z-index: 2; }
.srcgrid + .grid { margin-top: 18px; }
.bignum { font-size: 44px; font-weight: 800; line-height: 1.1; }
