/* Compent Reports look: teal and navy, Geist-like type (system fonts, nothing loaded from elsewhere). */
:root {
  --navy: oklch(0.297 0.043 220);
  --navy-2: oklch(0.38 0.05 218);
  --teal: oklch(0.493 0.069 210);
  --teal-dark: oklch(0.36 0.05 220);
  --teal-text: oklch(0.42 0.065 212);
  --ink: oklch(0.25 0.035 220);
  --bg: oklch(0.978 0.005 197);
  --line: oklch(0.9 0.015 205);
  --soft: oklch(0.95 0.012 204);
  --soft-2: oklch(0.97 0.008 204);
  --muted: oklch(0.45 0.03 215);
  --muted-2: oklch(0.42 0.03 215);
  --muted-3: oklch(0.4 0.03 216);
  --box: oklch(0.965 0.004 220);
  --box-line: oklch(0.88 0.008 220);
  --box-text: oklch(0.45 0.02 220);
  --ring: oklch(0.86 0.1 80);
  --hi: oklch(0.7 0.13 70);
  --hi-bg: oklch(0.97 0.03 80);
  --ok-bg: oklch(0.94 0.04 150);
  --ok-fg: oklch(0.36 0.09 150);
  --ok-dot: oklch(0.42 0.1 150);
  --planned-bg: oklch(0.95 0.04 80);
  --planned-fg: oklch(0.42 0.08 65);
  --on-dark: oklch(0.97 0.006 200);
  --on-dark-2: oklch(0.93 0.012 204);
  --on-teal: oklch(0.985 0.004 200);
  --font: Geist, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;

  /* Brand theme: the colours a workspace sets once. These defaults are the Compent Reports look; a page with
     data-theme="td" on <html> takes the Team Danmark set below. Bars, chips, buttons and tables read only these. */
  --page-bg: var(--bg);
  --brand-bar: var(--navy);
  --brand-bar-hover: oklch(0.34 0.046 219);
  --brand-bar-current: var(--navy-2);
  --brand-primary: var(--navy);
  --brand-primary-hover: var(--navy-2);
  --brand-on-primary: var(--on-dark);
  --brand-cta: var(--teal);
  --brand-cta-hover: var(--teal-dark);
  --brand-on-cta: var(--on-teal);
  --brand-accent: var(--teal);
  --brand-accent-dark: var(--teal-dark);
  --brand-ring: var(--ring);
  --chip-bg: var(--soft);
  --chip-fg: var(--ink);
  --chip-line: var(--line);
  --soft-bg: var(--soft);
  --soft-fg: var(--teal-dark);
  --card-line: var(--line);
  --card-shadow: none;
  --table-head-bg: transparent;
  --table-head-fg: var(--muted);
  --chart-1: oklch(0.32 0.045 220); /* newest year */
  --chart-2: oklch(0.56 0.065 210);
  --chart-3: oklch(0.8 0.04 208); /* oldest year */
  --chart-3-edge: transparent;
  --line-3: oklch(0.6 0.06 208);
  --pie-4: oklch(0.68 0.07 185);
  --pie-5: oklch(0.45 0.06 235);
  --pie-6: oklch(0.88 0.03 200);
  --icon: var(--teal);
  --bar-dim: oklch(0.85 0.02 205);
  --bar-text: oklch(0.9 0.015 204);
  --bar-bright: oklch(0.98 0.004 200);
  --bar-line: oklch(0.62 0.04 210);
  --input-line: oklch(0.8 0.02 210);
  --heading-font: var(--font);
}

/* Team Danmark: navy for the bar, buttons and selected states, crimson for accents and the newest year. */
[data-theme="td"] {
  /* The base tokens too, so every rule written for the Compent look follows. */
  --navy: #18213d;
  --navy-2: #333e66;
  --teal: #dc2f4a;
  --teal-dark: #b01f37;
  --teal-text: #b01f37;
  --soft: #eceef3;
  --soft-2: #f4f5f8;
  --bg: #f4f5f7;
  --box: #f6f7f9;
  --box-line: #d0d4de;
  --box-text: #565b68;
  --muted-2: #565b68;
  --muted-3: #4a4f5c;
  --on-dark: #fff;
  --on-dark-2: #e8eaf0;
  --on-teal: #fff;
  --ring: #f4b5c0;
  --icon: #18213d;
  --bar-dim: #c9cde0;
  --bar-text: #e3e6f0;
  --bar-bright: #fff;
  --bar-line: #8a90a6;
  --input-line: #8a90a6;
  --heading-font: "Saira Semi Condensed", "Roboto Condensed", "Arial Narrow", var(--font);
  --ink: #1d1d1f;
  --muted: #565b68;
  --line: #d7d9e0;
  --page-bg: #f4f5f7;
  --brand-bar: #18213d;
  --brand-bar-hover: #26304f;
  --brand-bar-current: #333e66;
  --brand-primary: #18213d;
  --brand-primary-hover: #333e66;
  --brand-on-primary: #fff;
  --brand-cta: #18213d;
  --brand-cta-hover: #333e66;
  --brand-on-cta: #fff;
  --brand-accent: #dc2f4a;
  --brand-accent-dark: #b01f37;
  --brand-ring: #f4b5c0;
  --chip-bg: #e9ebf1;
  --chip-fg: #18213d;
  --chip-line: #d2d6e0;
  --soft-bg: #eceef3;
  --soft-fg: #18213d;
  --card-line: #e2e4ea;
  --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  --table-head-bg: #dcdcdc;
  --table-head-fg: #1d1d1f;
  --chart-1: #dc2f4a;
  --chart-2: #18213d;
  /* Oldest year: a light slate tint with a thin navy edge, so it stays visible on white and the three
     series differ in lightness (dark navy, mid crimson, light tint) for colour-blind viewers too. */
  --chart-3: #c5cbd9;
  --chart-3-edge: #18213d;
  /* Lines can't be light: the third line is a mid slate (3.4:1 on white). Pies need six slices. */
  --line-3: #7e8aa8;
  --pie-4: #f2a0ad;
  --pie-5: #5c6890;
  --pie-6: #a3a9bd;
}

/* The Team Danmark look sets section headings in the condensed capitals of its own app. */
[data-theme="td"] :is(.title, .first h2, .gets h2, .ask-card h2, .flow-card h1, .flow-card h2, .portal-head h1, .login-title) {
  font-family: var(--heading-font);
  font-stretch: semi-condensed;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); background: var(--page-bg); font-size: 15px; line-height: 1.5; }
a { color: var(--brand-accent); }
a:hover { color: var(--brand-accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.topbar :focus-visible, .on-dark :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---- Top bar ---- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 10px 32px; background: var(--brand-bar); color: var(--on-dark-2); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 16px; }
.brand:hover { color: var(--on-dark); }
.brand-sub { font-weight: 400; color: var(--bar-dim); }
.pill-dark { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--bar-line); font-size: 12px; color: var(--bar-text); }
.mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; flex: 1 1 560px; justify-content: flex-end; font-size: 14px; }
.mainnav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--bar-text); text-decoration: none; }
.mainnav a:hover { background: var(--brand-bar-hover); color: var(--bar-bright); }
.mainnav a[aria-current="page"] { background: var(--brand-bar-current); color: var(--bar-bright); }
.signout { display: flex; align-items: center; min-height: 40px; margin-left: 10px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--bar-line); background: transparent; color: var(--bar-bright); font-size: 14px; }
.signout:hover { background: var(--brand-bar-hover); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 8px; background: transparent; color: var(--on-dark); }

@media (max-width: 860px) {
  .topbar { padding: 6px 16px; gap: 4px 12px; }
  .brand-sub, .pill-dark { display: none; }
  .menu-btn { display: flex; }
  .mainnav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .topbar.open .mainnav { display: flex; }
  .signout { margin: 6px 0 0; justify-content: center; }
}

/* ---- Shared building blocks ---- */
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 32px 56px; display: flex; flex-direction: column; gap: 28px; }
.page.wide { max-width: 1280px; }
.page.wider { max-width: 1376px; }
@media (max-width: 600px) { .page { padding: 24px 16px 40px; gap: 22px; } }
.card { background: #fff; border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--card-shadow); }
.title { font-size: 34px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.lead { font-size: 18px; color: var(--muted-3); }
.intro { display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; text-decoration: none; }
.btn:hover { color: var(--ink); background: var(--bg); }
.btn-dark { border-color: var(--brand-primary); background: var(--brand-primary); color: var(--brand-on-primary); font-weight: 600; padding: 0 18px; }
.btn-dark:hover { background: var(--brand-primary-hover); color: var(--brand-on-primary); }
.btn-teal { border-color: var(--brand-cta); background: var(--brand-cta); color: var(--brand-on-cta); font-weight: 600; padding: 0 18px; }
.btn-teal:hover { background: var(--brand-cta-hover); color: var(--brand-on-cta); }
.btn-outline { border-color: var(--teal); font-weight: 600; color: var(--teal); }
.ring { box-shadow: 0 0 0 4px var(--brand-ring); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-planned { background: var(--planned-bg); color: var(--planned-fg); }
.tag-ok { padding: 4px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg); font-size: 13px; font-weight: 600; }
.badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--teal-dark); font-size: 12px; font-weight: 600; }
.num { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; border: 0; }
.num.teal { background: var(--teal); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pager .back { display: flex; align-items: center; min-height: 44px; font-weight: 500; }
.bullet { display: flex; gap: 10px; }
.bullet::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 8px; border-radius: 999px; background: var(--teal); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--muted-3); }
.legend > span { display: flex; align-items: center; gap: 8px; }
.stroke { width: 32px; border-top: 2px solid var(--navy); }
.stroke.dashed { border-top: 2px dashed var(--teal); }

/* ---- Bar charts (built by shared.js) ---- */
.bars { display: flex; align-items: flex-end; gap: 16px; height: 180px; border-bottom: 1px solid var(--line); }
.bar-group { flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.bar { flex: 1; max-width: 22px; border-radius: 3px 3px 0 0; }
.bar-labels { display: flex; gap: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.bar-labels > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* Series colours come from the brand theme, so charts follow a theme switch without being redrawn. */
.c3-0 { background: var(--chart-3); box-shadow: inset 0 0 0 1px var(--chart-3-edge); }
.c3-1 { background: var(--chart-2); }
.c3-2 { background: var(--chart-1); }
.c2-0 { background: var(--chart-3); box-shadow: inset 0 0 0 1px var(--chart-3-edge); }
.c2-1 { background: var(--chart-1); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.swatch.s10 { width: 10px; height: 10px; }

/* ---- Login ---- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.login { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.login-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; font-size: 16px; }
.login-title { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.login-form { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--input-line); background: #fff; font-size: 16px; }
.field input:focus-visible { outline-offset: 0; border-color: var(--teal); }
.notice { padding: 10px 12px; border-radius: 8px; background: oklch(0.95 0.035 25); color: oklch(0.42 0.12 25); border: 1px solid oklch(0.85 0.06 25); font-size: 14px; }
.login-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---- Welcome ---- */
.welcome { padding-top: 64px; padding-bottom: 72px; gap: 48px; }
.hero { display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.hero .badge { padding: 4px 12px; font-size: 13px; font-weight: 500; }
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.hero p { font-size: 20px; color: var(--muted-3); }
@media (max-width: 600px) { .welcome { padding-top: 32px; gap: 32px; } .hero h1 { font-size: 34px; } .hero p { font-size: 18px; } }
.starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.start { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 16px; min-height: 200px; text-decoration: none; }
.start strong { font-size: 24px; font-weight: 600; }
.start .go { margin-top: auto; font-weight: 600; }
.start .icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; }
.start.dark { background: var(--navy); color: var(--on-dark-2); }
.start.dark:hover { color: var(--on-dark-2); background: var(--brand-primary-hover); }
.start.dark .icon { background: var(--navy-2); }
.start.dark strong, .start.dark .go { color: var(--on-dark); }
.start.light { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.start.light:hover { color: var(--ink); border-color: var(--teal); }
.start.light .icon { background: var(--soft); color: var(--teal-dark); }
.start.light .text { color: var(--muted-2); }
.start.light .go { color: var(--teal); }
.panel { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
.panel-head > div { flex: 1 1 480px; display: flex; flex-direction: column; gap: 6px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); }
.panel-head p { font-size: 19px; font-weight: 500; }
.cg { display: flex; align-items: center; }
.cg .bx { flex: 0 0 170px; height: 96px; padding: 10px; border-radius: 12px; background: var(--box); border: 1px solid var(--box-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.cg .bx strong { font-size: 14px; font-weight: 700; }
.cg .bx span.sub { font-size: 12px; color: var(--box-text); }
.cg .pr { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 0 10px; }
.cg .vv { display: none; gap: 14px; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.cg .vv.teal { color: var(--teal); }
.cg .nums { display: flex; gap: 4px; }
.cg .nums .num { width: 22px; height: 22px; font-size: 11px; }
.arrow { position: relative; display: flex; align-items: center; color: var(--navy); }
.arrow.teal { color: var(--teal); }
.arrow .line { flex: 1; height: 0; border-top: 2px solid currentColor; }
.arrow.dashed .line { border-top-style: dashed; }
.arrow svg { flex: 0 0 auto; fill: currentColor; }
.arrow .on-line { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cg .arrow .num { width: 22px; height: 22px; font-size: 11px; }
.arrow.teal .num { background: var(--teal); }
@media (max-width: 1000px) {
  .cg { flex-direction: column; }
  .cg .bx { flex: 0 0 auto; width: min(300px, 100%); }
  .cg .pr { display: none; }
  .cg .vv { display: flex; }
}
.first { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px; }
.first > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; }
.first h2 { font-size: 26px; font-weight: 600; }
.first ul { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 24px; }
.first .eyebrow { font-size: 13px; color: var(--muted); }
.gets { display: flex; flex-direction: column; gap: 20px; }
.gets h2 { font-size: 22px; font-weight: 600; }
.gets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.gets-grid > div { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.gets-grid strong { font-weight: 600; }
.gets-grid span { font-size: 15px; color: var(--muted-2); }

/* ---- Build ---- */
.build-page { display: flex; flex-direction: column; flex: 1; font-size: 14px; line-height: 1.45; }
.build-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; flex: 1 1 320px; }
.crumbs strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.crumbs .draft { padding: 2px 8px; border-radius: 999px; background: var(--soft-bg); color: var(--soft-fg); font-size: 12px; font-weight: 500; }
.build-bar .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.build-bar .btn { font-size: 14px; padding: 0 14px; }
.build-bar .btn-teal { padding: 0 18px; }
.build-cols { display: flex; flex-wrap: wrap; flex: 1; align-items: stretch; }
.fields-col { flex: 1 1 250px; max-width: 100%; padding: 16px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.fields-col input[type="search"] { min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; width: 100%; }
.fields-col section { display: flex; flex-direction: column; gap: 2px; }
.fields-col section + section { padding-top: 12px; border-top: 1px solid var(--line); }
.src-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.src-head strong { font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-accent); }
.work { flex: 999 1 520px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.shows { padding: 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.shows .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shows .row .eyebrow { flex: 0 0 84px; }
.shows .row.rel { padding-top: 12px; border-top: 1px solid var(--line); }
.shows .rel .note { margin-left: auto; font-size: 13px; color: var(--muted); }
.chips { display: contents; }
.col6 { display: flex; flex-direction: column; gap: 6px; }
.chip { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--chip-line); background: var(--chip-bg); color: var(--chip-fg); font-size: 13px; }
.chip.new { border-color: oklch(0.62 0.08 150); background: oklch(0.95 0.03 150); }
.chip-add { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--brand-accent); background: #fff; color: var(--brand-accent-dark); font-size: 13px; }
.preview-card { padding: 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.preview-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.preview-head strong { font-weight: 600; font-size: 15px; }
.preview-head .live { margin-left: auto; font-size: 13px; color: var(--muted); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--brand-primary); color: var(--brand-on-primary); }
.series { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.series > span { display: flex; align-items: center; gap: 6px; }
.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.panels.many { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.chart-panel { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chart-panel strong { font-weight: 600; font-size: 13px; }
.chart-panel .bars { height: 260px; gap: 24px; }
.chart-panel .bars.fed { gap: 22px; }
.chart-panel .bar { max-width: 34px; }
.chart-panel .bar-labels { gap: 24px; }
.chart-panel .bar-labels.fed { gap: 22px; }
.panels.many .bars { height: 120px; gap: 8px; }
.panels.many .bar-labels { gap: 8px; }
.data-table-wrap { overflow: auto; max-height: 420px; }
.data-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; }
.data-table thead tr { background: var(--table-head-bg); }
.data-table th { padding: 10px 12px; font-weight: 600; text-align: left; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--table-head-fg); }
.data-table thead th + th { text-align: right; }
.data-table tbody th { padding: 9px 12px; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); border-top: 1px solid var(--line); }
.data-table td { padding: 9px 12px; text-align: right; font-variant-numeric: tabular-nums; border-top: 1px solid var(--line); }
.data-table td.hidden-val { color: var(--muted); }
.assistant { flex: 1 1 320px; max-width: 100%; padding: 16px; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.assistant-head { display: flex; align-items: center; gap: 8px; }
.msg { max-width: 90%; padding: 10px 12px; font-size: 14px; }
.msg.ai { align-self: flex-start; border-radius: 12px 12px 12px 2px; background: var(--soft-bg); color: var(--ink); }
.msg.me { align-self: flex-end; border-radius: 12px 12px 2px 12px; background: var(--brand-primary); color: var(--brand-on-primary); }
.msg.first { max-width: 92%; }
.chat-log { display: flex; flex-direction: column; gap: 12px; }
.proposal { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.proposal strong { font-weight: 600; }
.proposal ul { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.proposal .verb { font-weight: 600; color: var(--ok-dot); }
.proposal p { font-size: 13px; color: var(--muted); }
.proposal .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.proposal .btn { font-size: 14px; }
.suggest { display: flex; flex-direction: column; gap: 8px; }
.suggest button { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--brand-accent); background: #fff; color: var(--brand-primary); font-size: 14px; text-align: left; }
.composer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.composer textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; resize: vertical; width: 100%; }
.composer .btn-dark { font-size: 14px; }
@media (max-width: 860px) {
  .fields-col, .assistant { border: 0; border-top: 1px solid var(--line); }
  .build-bar { padding: 12px 16px; }
  .work { padding: 16px; }
  .shows .rel .note { margin-left: 0; }
}

/* ---- Portal (the Team Danmark look is in td.css) ---- */
.portal { padding-top: 24px; padding-bottom: 48px; gap: 16px; }
.portal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.portal-head h1 { font-size: 26px; font-weight: 600; }
.portal-head span { color: var(--muted-2); }

/* ---- How it works ---- */
.flow { padding-top: 32px; }
.flow-card { display: flex; flex-direction: column; gap: 22px; padding: 28px 32px; background: #fff; border-radius: 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.flow-card .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.flow-card h1 { flex: 1 1 300px; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.flow-card h2 { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.play { border: 0; background: transparent; padding: 8px 0; color: var(--teal-text); font-size: 14px; font-weight: 500; }
.flow-card .sub { margin: -10px 0 8px; font-size: 16px; color: var(--ink); }
.dg { display: flex; align-items: flex-start; }
.dg .col { flex: 0 0 220px; display: flex; flex-direction: column; }
.dg .pair { flex: 1 1 0; min-width: 0; }
.dg .ha { display: flex; height: 120px; flex-direction: column; justify-content: center; gap: 14px; padding: 0 16px; }
.dg .ha > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dg .ha .arrow { width: 100%; }
.dg .va { display: none; justify-content: center; align-items: center; gap: 18px; padding: 10px 0; }
.dg .label { font-size: 13px; font-weight: 600; }
.node { height: 120px; padding: 12px; border-radius: 12px; background: var(--box); border: 1px solid var(--box-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.node.hot { border-color: var(--hi); }
.node strong { font-size: 16px; font-weight: 700; }
.node span { font-size: 13px; color: var(--box-text); }
.node-steps { display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 0; }
.node-steps > div { display: flex; align-items: center; gap: 8px; }
.step-dot { width: 26px; height: 26px; }
.step-dot.hot { box-shadow: 0 0 0 4px var(--hi); }
.arrow.hot { color: var(--hi); }
.vline { position: relative; height: 90px; width: 12px; display: flex; flex-direction: column; align-items: center; color: var(--navy); }
.vline.teal { color: var(--teal); }
.vline.tall { height: 96px; }
.vline.hot { color: var(--hi); }
.vline .line { flex: 1; width: 0; border-left: 2px solid currentColor; }
.vline.dashed .line { border-left-style: dashed; }
.vline svg { fill: currentColor; flex: 0 0 auto; }
.vline .num { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); }
.vline.up .num { top: 55%; }
.vlines { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 10px 0; }
.vlines .label { max-width: 120px; }
.va-labels { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
@media (max-width: 1000px) {
  .dg { flex-direction: column; align-items: center; }
  .dg .col { flex: 0 0 auto; width: min(320px, 100%); }
  .dg .pair { flex: 0 0 auto; }
  .dg .ha { display: none; }
  .dg .va { display: flex; }
}
@media (max-width: 600px) { .flow-card { padding: 20px 16px; } }
.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 6px 32px; }
.flow-steps button { width: 100%; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; text-align: left; font-size: 15px; color: var(--ink); }
.flow-steps button.hot { background: var(--hi-bg); }
.flow-steps .num { flex: 0 0 28px; height: 28px; font-size: 13px; }
.flow-steps .text { padding-top: 3px; }
.flow-note { font-size: 13px; color: var(--box-text); }
.bs { display: flex; align-items: stretch; }
.bs .bx { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 12px; background: var(--box); border: 1px solid var(--box-line); text-align: center; font-size: 14px; }
.bs .ar { color: var(--navy); display: flex; align-items: center; flex: 0 0 36px; justify-content: center; }
@media (max-width: 1000px) { .bs { flex-direction: column; gap: 10px; } .bs .ar { display: none; } }

/* ---- Ask the AI ---- */
.ask-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.ask-card { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.ask-card.narrow { flex-basis: 420px; }
.ask-card h2 { font-size: 22px; font-weight: 600; }
@media (max-width: 600px) { .ask-card { padding: 16px; } }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchips button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; }
.qchips button[aria-pressed="true"] { border-color: var(--brand-primary); background: var(--brand-primary); color: var(--brand-on-primary); }
.convo { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); min-height: 220px; }
.convo .msg { max-width: 88%; font-size: 15px; }
.convo .msg.ai { max-width: 92%; background: #fff; border: 1px solid var(--line); white-space: pre-line; }
.convo .btn-teal { align-self: flex-start; padding: 0 14px; }
.planned-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }

.back-link { align-self: flex-start; display: flex; align-items: center; min-height: 44px; font-weight: 600; }
.theme-pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.theme-pick select { min-height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; }
.theme-note { flex: 1 1 100%; font-size: 12px; color: var(--muted); text-align: right; }
.assistant-head svg { color: var(--brand-accent); }
@media (max-width: 860px) { .theme-note { text-align: left; } }.ico { color: var(--icon); }
/* ---- Build: chart types and the Both view ---- */
.chart-type { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.chart-type select { min-height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; }
.chart-type select:disabled { color: var(--muted); background: var(--soft-2); }
.type-hint { flex: 1 1 100%; font-size: 12px; color: var(--muted); }
.preview-card { container-type: inline-size; }
.views { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@container (min-width: 760px) {
  .views.both { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .views.both .panels.many { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
}
.views.both .data-table { min-width: 0; }
.chart-note { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.bars.stacked .bar-group { justify-content: center; }
.stack-wrap { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; width: 100%; max-width: 40px; }
.stack-total { font-size: 11px; line-height: 1.4; color: var(--muted); }
.stack-col { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; }
.seg-part { flex-basis: 0; min-height: 2px; }
.line-chart { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-svg { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.line-svg .grid { stroke: var(--line); stroke-width: 1; }
.line-svg path, .line-key path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.line-svg circle { fill: currentColor; }
.line-years { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ln0, .ln3 { color: var(--chart-1); }
.ln1, .ln4 { color: var(--chart-2); }
.ln2, .ln5 { color: var(--line-3); }
.ln3 path, .ln4 path, .ln5 path { stroke-dasharray: 7 5; }
.series .line-key { flex: 0 0 auto; }
.pie-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.pie-svg { flex: 0 0 auto; width: min(220px, 100%); height: auto; }
.pie-svg path { stroke: #fff; stroke-width: 0.015; }
.pie-svg path.pk2 { stroke: var(--chart-3-edge); }
.pie-legend { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
.pie-legend li { display: flex; align-items: center; gap: 8px; }
.pie-val { margin-left: auto; padding-left: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk0 { fill: var(--chart-1); background: var(--chart-1); }
.pk1 { fill: var(--chart-2); background: var(--chart-2); }
.pk2 { fill: var(--chart-3); background: var(--chart-3); box-shadow: inset 0 0 0 1px var(--chart-3-edge); }
.pk3 { fill: var(--pie-4); background: var(--pie-4); }
.pk4 { fill: var(--pie-5); background: var(--pie-5); }
.pk5 { fill: var(--pie-6); background: var(--pie-6); }