/* Kundinsikt 0.21 – the website's look (design proposals 04 + 05): charcoal, TellMeNow magenta (#C53059, 2026-11-20), cream, Schibsted Grotesk,
   with Newsreader italic for customers' words and the second line of headlines.
   WCAG 2.2 AA: text colours are contrast-checked against white and cream, focus is always visible,
   state is never shown by colour alone, and the layout reflows at 320 CSS px. */

@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 800; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/newsreader-latin-500-italic.woff2) format('woff2'); }

:root {
  --navy: #161514;        /* charcoal: header, sign-in panel */
  --ink: #1b1917;
  --muted: #625a52;
  --rasp: #C53059;        /* TellMeNow magenta (2026-11-20): buttons, white text 5.3:1; 4.7:1 on cream */
  --rasp-text: #a8264c;   /* text and hover, 6.0:1 on cream */
  --rasp-soft: #fbe7ed;
  --pink: #e2577e;        /* magenta on charcoal, 5.1:1 */
  --green: #2f6b3f;
  --gold: #b48b42;
  --cream: #f6efe6;
  --card: #ffffff;
  --line: #e6ddd1;
  --field: #847b6e;       /* form control borders, 4:1 on white */
  --error: #a4262c;
  --error-bg: #fdeced;
  --warn-ink: #3d2800;
  --warn-bg: #fff6e2;
  --warn-line: #e3b95c;
  --ok: #1e6b3a;
  --ok-bg: #e5f4ea;
  --shadow: 0 10px 30px rgba(16, 26, 43, .06);
  --radius: 16px;
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); min-height: 100vh; }
a { color: var(--rasp-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rasp-text); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- header */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.topbar { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--rasp); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-by { font-size: .78rem; color: var(--muted); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: rgba(255, 255, 255, .14); color: #fff; }
.topnav { display: flex; gap: 8px; align-items: center; }
.nav-group { display: flex; gap: 2px; align-items: center; }
.nav-account { margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); }
.topnav a, .topnav .linklike { color: var(--muted); font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; white-space: nowrap; }
.topnav a:hover, .topnav .linklike:hover { color: var(--ink); background: var(--cream); }
.topnav a[aria-current=page] { color: var(--rasp-text); background: var(--rasp-soft); }
.brand-row { min-width: 0; }
.brand { flex: 0 0 auto; }
.brand-text { white-space: nowrap; }
.topnav .linklike { text-align: left; }
.tenant-switch { border: 1px solid var(--field); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); background: #fff; min-height: 40px; max-width: 220px; }
.tenant-name { color: var(--muted); font-weight: 600; padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.menu-toggle { display: none; }
.header-dark { background: var(--navy); border-bottom-color: var(--navy); color: #fff; }
.header-dark .brand, .header-dark .brand:hover { color: #fff; }
.header-dark .brand-by { color: #b9b1a8; }
.header-dark .topnav a, .header-dark .topnav .linklike, .header-dark .tenant-name { color: #e8e2da; }
.header-dark .topnav a:hover, .header-dark .topnav .linklike:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.header-dark .topnav a[aria-current=page] { color: #fff; background: rgba(255, 255, 255, .16); }
.header-dark .tenant-switch { background: var(--navy); color: #fff; border-color: #6f6760; }
.header-dark .nav-account, .header-dark .tenant-name { border-color: rgba(255, 255, 255, .2); }
.header-dark :focus-visible { outline-color: #fff; }
.header-dark .menu-toggle { color: #fff; border-color: #6f6760; }
.banner { margin: 0; background: var(--cream); color: var(--muted); border-top: 1px solid var(--line); font-size: .82rem; text-align: center; padding: 5px 16px; }
.banner-warn { background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }

/* ---------------------------------------------------------------- layout */
.main { max-width: 1160px; margin: 0 auto; padding: 32px 24px 72px; }
.main.narrow { max-width: 860px; }
.main:focus { outline: none; }
h1 { font-size: 2rem; line-height: 1.2; margin: 6px 0 20px; font-weight: 700; letter-spacing: -.01em; }
h1:focus { outline: none; }
h2 { font-size: 1.2rem; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0 0 20px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.label { font-weight: 700; }
.eyebrow { margin: 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.back { display: inline-block; margin: 0 0 6px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 18px 0 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.page-head h1 { margin-bottom: 12px; }

/* ---------------------------------------------------------------- auth (split layout) */
.main.auth { max-width: none; padding: 0; }
.auth-split { display: flex; flex-wrap: wrap; min-height: calc(100vh - 32px); }
.auth-brand { flex: 1 1 480px; background: var(--navy); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth-brand .brand, .auth-brand .brand:hover { color: #fff; }
.auth-brand .brand-by { color: #b9b1a8; }
.auth-pitch { max-width: 470px; }
.auth-pitch p.lead { font-size: 2.4rem; line-height: 1.15; font-weight: 700; margin: 0 0 20px; letter-spacing: -.01em; }
.auth-pitch .hl { color: var(--pink); }
.auth-pitch p { font-size: 1.05rem; color: #e8e2da; margin: 0 0 22px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: #fff; }
.auth-points li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rasp); box-shadow: 0 0 0 5px rgba(196, 73, 105, .25); flex: 0 0 auto; margin: 0 6px; }
.auth-foot { margin: 0; color: #b9b1a8; font-size: .85rem; }
.auth-foot a { color: #fff; }
.auth-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-inner { width: 100%; max-width: 420px; }
.auth-inner h1 { margin-top: 0; margin-bottom: 6px; }
.auth-inner .intro { margin: 0 0 24px; color: var(--muted); }

/* ---------------------------------------------------------------- home: start form + analysis cards */
.start-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
.start-card .field { flex: 2 1 260px; margin-bottom: 8px; }
.start-card .start-go { flex: 1 1 200px; margin-top: 30px; }
.start-card .start-go .btn { width: 100%; min-height: 52px; }
.start-card .hint-row { flex: 1 1 100%; margin: 4px 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin: 36px 0 14px; }
.section-head h2 { margin: 0; }
.section-head .field { margin: 0; display: flex; align-items: center; gap: 8px; }
.section-head .field label { margin: 0; font-weight: 600; color: var(--muted); }
.section-head input { min-height: 40px; width: 220px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.acard { display: flex; flex-direction: column; gap: 12px; height: 100%; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--rasp); border-radius: 14px; padding: 20px; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.acard:hover { color: inherit; border-color: var(--field); border-top-color: var(--rasp); }
.acard.is-test { border-top-color: var(--gold); }
.acard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.acard-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.acard-meta { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.acard-next { color: var(--rasp-text); font-weight: 600; font-size: .9rem; margin-top: auto; }
.progress { display: flex; gap: 4px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--rasp); }
.acard-test { align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--field); border-top: 1px dashed var(--field); box-shadow: none; background: transparent; cursor: pointer; font: inherit; min-height: 170px; }
.acard-test:hover { background: #fff; }
.acard-test .plus { font-size: 1.8rem; line-height: 1; color: var(--muted); }

/* ---------------------------------------------------------------- work steps (UIX-01) */
.steps { margin: 4px 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.steps ol { list-style: none; display: flex; margin: 0; padding: 0; flex: 1 1 520px; gap: 8px; }
.steps li { flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.steps li:not(:last-child)::after { content: ''; flex: 1 1 auto; height: 2px; background: var(--line); min-width: 12px; }
.steps li.done:not(:last-child)::after { background: var(--rasp); }
.step { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 4px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; border-radius: 10px; white-space: nowrap; }
.step:hover { color: var(--ink); }
.step-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--field); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; flex: 0 0 auto; background: #fff; color: var(--muted); }
.done .step { color: var(--ink); }
.done .step-dot { background: var(--rasp); border-color: var(--rasp); color: #fff; }
.step.current { color: var(--rasp-text); font-weight: 700; }
.step.current .step-dot { border-color: var(--rasp); color: var(--rasp-text); background: var(--rasp-soft); }
.done .step.current .step-dot { background: var(--rasp); color: #fff; }
.step-settings { margin-left: auto; }

/* ---------------------------------------------------------------- forms */
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend, .field .label { display: block; font-weight: 700; margin-bottom: 8px; }
fieldset.field > legend { font-size: 1.02rem; }
.sub-label { margin-top: 16px; }
.hint { margin: -4px 0 8px; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=number], input[type=search], input[type=month], select, textarea {
  width: 100%; max-width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 10px; padding: 10px 14px; min-height: 48px;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: #6f6a62; }
textarea { resize: vertical; }
input[aria-invalid=true], select[aria-invalid=true] { border: 2px solid var(--error); }
.field-error { color: var(--error); font-weight: 600; margin: 6px 0 0; }
.field-error::before { content: '⚠ '; }
.radios .radio { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.radios input[type=radio], .checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--rasp); }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox label { font-weight: 600; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 12px; }
.inline-fields > .field { flex: 1 1 220px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 16px; }
details.advanced, details.secondary { border-top: 1px solid var(--line); padding-top: 12px; margin: 16px 0 0; }
.card > details:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
details > summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 6px 0; }
details.secondary > summary { font-weight: 600; color: var(--muted); }

/* choice chips: real radio inputs, styled as pills */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--field); border-radius: 999px; background: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border: 2px solid var(--rasp); background: var(--rasp-soft); color: var(--rasp-text); padding: 0 17px; }
.opt:has(input:checked)::before { content: '✓'; margin-right: 6px; }
.opt:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.opt:has(input:disabled) { opacity: .6; cursor: not-allowed; }
/* choice cards for the analysis focus */
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.opt-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--field); border-radius: 12px; background: #fff; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-card:hover { border-color: var(--ink); }
.opt-title { font-weight: 700; }
.opt-desc { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.opt-card:has(input:checked) { border: 2px solid var(--rasp); background: var(--rasp-soft); padding: 15px 17px; }
.opt-card:has(input:checked) .opt-title::after { content: ' ✓'; color: var(--rasp-text); }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.country-picker { margin: 14px 0 0; max-width: 460px; }
.country-picker label { display: block; font-weight: 600; margin: 10px 0 6px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--rasp-soft); color: var(--rasp-text); font-weight: 600; border-radius: 999px; padding: 4px 6px 4px 14px; min-height: 40px; }
.chip-x { border: 0; background: transparent; font-size: 1.15rem; line-height: 1; cursor: pointer; color: inherit; width: 30px; height: 30px; border-radius: 50%; }
.chip-x:hover { background: #f4d7df; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-top: 8px; }
.form-foot .note { flex: 1 1 100%; text-align: right; margin: 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 10px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.btn-primary { background: var(--rasp); border-color: var(--rasp); color: #fff; }
.btn-primary:hover { background: var(--rasp-text); border-color: var(--rasp-text); color: #fff; }
.btn-secondary { background: var(--cream); border-color: var(--line); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #fff; border-color: var(--line); }
.btn-wide { width: 100%; margin: 8px 0; }
.btn-big { min-height: 58px; font-size: 1.08rem; }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.btn:disabled:hover { background: inherit; }
.btn-primary:disabled:hover { background: var(--rasp); border-color: var(--rasp); }
.btn[aria-busy=true] { cursor: progress; }

/* ---------------------------------------------------------------- alerts and status */
.alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; border: 1px solid; border-left-width: 5px; }
.alert p { margin: 4px 0; }
.alert input[readonly] { margin-top: 8px; font-family: ui-monospace, monospace; font-size: .9rem; }
.alert ul { margin: 6px 0 6px 18px; padding: 0; }
.alert-title { font-weight: 700; }
.alert-error { background: var(--error-bg); border-color: var(--error); }
.alert-warning { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.alert-success { background: var(--ok-bg); border-color: var(--ok); }
.alert-info { background: #fff; border-color: var(--green); }
.status-pill { display: inline-block; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-ok::before { content: '✓ '; }
.status-bad { background: var(--error-bg); color: var(--error); }
.status-bad::before { content: '✕ '; }
.status-none { background: #f1ece4; color: var(--muted); }
.status-none::before { content: '○ '; }
.status-draft { background: var(--warn-bg); color: var(--warn-ink); }
.status-ready { background: var(--rasp-soft); color: var(--rasp-text); }
.tag { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; border-radius: 6px; padding: 2px 8px; vertical-align: middle; }
.tag-test { background: #f6ecd8; color: #5c4400; }
p.tag { margin: 0 0 14px; }

/* ---------------------------------------------------------------- summary lists, tiles, tables */
dl.summary { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px 18px; margin: 0 0 18px; }
dl.summary dt { font-weight: 700; }
dl.summary dd { margin: 0; overflow-wrap: anywhere; }
dl.rows { display: block; margin: 0; }
dl.rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
dl.rows > div:first-child { padding-top: 0; }
dl.rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
dl.rows dt { flex: 1 1 100%; font-weight: 600; font-size: .85rem; color: var(--muted); }
dl.rows dd { margin: 0; flex: 1 1 300px; font-weight: 600; overflow-wrap: anywhere; }
dl.rows dd.row-action { flex: 0 0 auto; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
.tile { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.tile:nth-child(4n+1) { border-top-color: var(--green); }
.tile:nth-child(4n+2) { border-top-color: var(--rasp); }
.tile:nth-child(4n+3) { border-top-color: var(--gold); }
.tile-label { color: var(--muted); font-size: .88rem; }
.tile-value { font-size: 1.7rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.tile-note { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: .85rem; color: var(--muted); font-weight: 700; background: #fbf8f3; }
tbody tr:last-child td { border-bottom: 0; }
td select { min-width: 150px; min-height: 40px; }
.pkg { display: inline-block; background: var(--rasp-soft); color: var(--rasp-text); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: .85rem; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.tab { padding: 9px 16px; text-decoration: none; font-weight: 600; color: var(--muted); border-radius: 10px; border: 1px solid transparent; }
.tab:hover { color: var(--ink); background: #fff; border-color: var(--line); }
.tab.current { color: #fff; background: var(--navy); }

/* ---------------------------------------------------------------- MFA */
.qr-wrap { display: flex; justify-content: center; margin: 12px 0; }
.qr { width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
code.key { font-size: 1.05rem; letter-spacing: .05em; background: var(--cream); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
ol.codes { columns: 2; font-size: 1.05rem; }
ol.codes code { letter-spacing: .06em; }

.dialog { border: 0; border-radius: var(--radius); padding: 28px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(16, 26, 43, .3); }
.dialog::backdrop { background: rgba(16, 26, 43, .5); }

/* ---------------------------------------------------------------- small screens */
/* below this width the links go into the Meny button, so the bar never wraps onto two lines */
@media (max-width: 1080px) {
  .topbar { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: 10px; background: transparent; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
  .topnav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 8px; }
  .topnav.open { display: flex; }
  .nav-group { flex-direction: column; align-items: stretch; }
  .nav-account { margin-left: 0; padding-left: 0; padding-top: 4px; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .topbar { padding: 10px 16px; position: relative; }
  .menu-toggle { position: absolute; top: 10px; right: 16px; }
  .brand-row { flex: 1 1 100%; flex-wrap: wrap; row-gap: 8px; }
  .tenant-switch { max-width: 100%; margin-left: 0; }
  .tenant-name { padding-left: 0; margin-left: 0; border-left: 0; flex-basis: 100%; }
  .main { padding: 20px 16px 96px; }
  h1 { font-size: 1.55rem; }
  .card { padding: 20px; }
  .auth-brand { padding: 32px 24px; gap: 24px; flex-basis: 100%; }
  .auth-pitch p.lead { font-size: 1.7rem; }
  .auth-points, .auth-foot, .auth-pitch p:not(.lead) { display: none; }
  .auth-form { padding: 32px 16px 48px; }
  .start-card .start-go { margin-top: 4px; }
  .section-head input { width: 100%; }
  .section-head .field { flex: 1 1 100%; }
  .steps ol { flex-basis: 100%; }
  /* other step names are visually hidden but stay in the accessible name */
  .step:not(.current) .step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step-settings { margin-left: 0; }
  dl.summary { grid-template-columns: 1fr; gap: 2px; }
  dl.summary dd { margin-bottom: 10px; }
  ol.codes { columns: 1; }
  /* the step's main action stays within thumb reach */
  .steps li { flex: 1 1 auto; }
  .steps li:has(.current) { flex: 0 0 auto; }
  .form-foot { position: sticky; bottom: 0; background: #fff; margin: 16px -20px -20px; padding: 10px 20px 14px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); z-index: 2; flex-wrap: nowrap; }
  .form-foot .btn-primary { flex: 1 1 auto; }
  .form-foot .back { margin: 0; white-space: nowrap; }
  .form-foot .note, .form-foot > p.muted { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.brand-row { display: flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- 0.10: run progress and preliminary report */
.run-head { display: flex; align-items: center; gap: 12px; }
.run-head h2 { margin: 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--rasp-soft); border-top-color: var(--rasp); animation: spin 1s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.run-steps { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 10px; }
.run-step { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.run-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--field); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; background: #fff; flex: 0 0 auto; }
.run-step.done { color: var(--ink); }
.run-step.done .run-dot { background: var(--rasp); border-color: var(--rasp); color: #fff; }
.run-step.current { color: var(--rasp-text); font-weight: 700; }
.run-step.current .run-dot { border-color: var(--rasp); background: var(--rasp-soft); color: var(--rasp-text); }
.report-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; }
.report-section { margin: 28px 0 0; }
.report-section > h2 { font-size: 1.3rem; }
.insights { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.insight { margin: 0; border-top: 4px solid var(--ink); }
.insight-strength { border-top-color: var(--green); }
.insight-problem { border-top-color: var(--rasp); }
.insight-gap { border-top-color: var(--gold); }
.insight-statement { font-size: 1.05rem; font-weight: 600; margin: 0 0 10px; }
.insight-themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip-static { display: inline-block; background: var(--cream); border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.quotes { display: grid; gap: 10px; }
.quote { margin: 0; padding: 10px 14px; background: #fbf8f3; border-left: 3px solid var(--line); border-radius: 0 8px 8px 0; }
.quote blockquote { margin: 0 0 4px; font-style: italic; overflow-wrap: anywhere; }
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rec { margin: 0; }
.rec-action { font-weight: 700; font-size: 1.05rem; margin: 0 0 10px; }
.rec-meta { margin: 0; }
.checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.checks .status-pill { min-width: 92px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 760px) { .insights { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 0.11: own material */
.file-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.file-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbf8f3; }
.file-name { font-weight: 700; overflow-wrap: anywhere; margin-right: 8px; }
.file-form { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: grid; gap: 16px; }
table.preview { font-size: .85rem; }
table.preview td, table.preview th { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.preview caption { text-align: left; padding: 6px 0; }
input[type=file].sr-only:focus-visible + label.btn { outline: 3px solid var(--green); outline-offset: 2px; }
.doc-preview { margin: 0; padding: 12px 14px; background: #fbf8f3; border-radius: 10px; max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .9rem; color: var(--ink); }
.input-short { max-width: 120px; }
.own-ref { font-weight: 600; color: var(--ink); }
.chip-material { background: var(--rasp-soft); color: var(--rasp-text); }

/* ---------------------------------------------------------------- 0.11: history, tabs, reviews, correction */
.history { max-width: 520px; }
.report-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
.report-tools .tabs { margin: 0; }
button.tab { background: transparent; font: inherit; cursor: pointer; min-height: 42px; }
button.tab.current { background: var(--navy); color: #fff; }
.actions.export { align-items: center; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 16px; }
.filters .field { margin: 0; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.review-item { margin: 0; }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.review-top .muted { margin-left: auto; }
.review-title { font-weight: 700; margin: 0 0 4px; }
.review-text { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chip-static.sent-positive { background: var(--ok-bg); color: var(--ok); }
.chip-static.sent-negative { background: var(--error-bg); color: var(--error); }
.chip-static.sent-mixed { background: var(--warn-bg); color: var(--warn-ink); }
.correction { margin-top: 12px; padding: 14px; border: 1px dashed var(--field); border-radius: 12px; display: grid; gap: 12px; }
.aspect-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.aspect-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px 12px; align-items: end; }
.aspect-row .field { margin: 0; }
@media (max-width: 640px) { .aspect-row { grid-template-columns: 1fr; } .review-top .muted { margin-left: 0; } }

/* ---------------------------------------------------------------- print: the report only */
@media print {
  body, .main { background: #fff; }
  .header, .steps, .banner, .report-tools, .history, .page-head .actions, form, details, .btn, footer { display: none !important; }
  .main { padding: 0; max-width: none; }
  .card, .insight, .rec, .quote, tr { break-inside: avoid; box-shadow: none; }
  .card { border: 1px solid var(--line); }
  a { color: var(--ink); text-decoration: none; }
  .report-section h2 { break-after: avoid; }
}

/* ---------------------------------------------------------------- 0.12: stop a run */
.run-stop { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.btn-danger:hover { background: #861e23; border-color: #861e23; color: #fff; }

/* ---------------------------------------------------------------- 0.14: customer report page (ÄB-26) */
.main.doc { max-width: 900px; }
.cr-toolbar { margin-bottom: 18px; display: grid; gap: 10px; }
.cr-paper { background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(16, 26, 43, .10); }
@media print {
  html, body.cr-mode, body.cr-mode .main { background: #fff !important; }
  body.cr-mode .header, body.cr-mode .banner, body.cr-mode .skip, body.cr-mode .cr-toolbar { display: none !important; }
  body.cr-mode .main.doc { max-width: none; padding: 0; margin: 0; }
  body.cr-mode .cr-paper { box-shadow: none; border-radius: 0; }
  body.cr-mode .cr-paper .card { border: 0; }
}

/* ---------------------------------------------------------------- 0.15: charts (Vega-Lite, ÄB-29) */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.chart-card { margin: 0; padding: 18px 20px 12px; }
.chart { margin: 0; }
.chart-canvas { width: 100%; min-height: 80px; }
.chart-canvas svg { max-width: 100%; height: auto; }
.chart-tools { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
#vg-tooltip-element { position: fixed; z-index: 1000; pointer-events: none; visibility: hidden; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 12px/1.4 'Schibsted Grotesk', system-ui, sans-serif; box-shadow: var(--shadow); max-width: 320px; }
#vg-tooltip-element.visible { visibility: visible; }
#vg-tooltip-element table { border-collapse: collapse; }
#vg-tooltip-element td { padding: 1px 6px 1px 0; border: 0; }
#vg-tooltip-element td.key { color: var(--muted); }
@media (max-width: 640px) { .charts { grid-template-columns: 1fr; } }
@media print { .chart-tools { display: none !important; } }

/* ÄB-33 self-service: sign-up, Google sign-in, plans */
.btn-google { background: #fff; border-color: var(--field); color: var(--ink); }
.btn-google:hover { background: #f6efe6; }
.g-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #4285f4; color: #4285f4; font-weight: 800; font-size: .8rem; line-height: 1; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 18px 0 12px; }
.or-line::before, .or-line::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.actions.center { justify-content: center; text-align: center; }
.plan-pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .8rem; white-space: nowrap; background: #ece5db; color: var(--ink); }
.plan-pill.plan-free { background: var(--warn-bg); color: var(--warn-ink); }
.plan-pill.plan-premium { background: var(--ok-bg); color: var(--ok); }
.welcome-card { border-left: 4px solid var(--rasp); }

/* ÄB-33 (3): the free tier - profile overview and locked parts of the free analysis */
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.overview-row > td { background: #fbf8f3; }
.overview h3 { margin-top: 0; }
.overview h4 { margin: 0 0 8px; font-size: .95rem; }
.overview-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 12px; }
@media (max-width: 720px) { .overview-cols { grid-template-columns: 1fr; } }
.star-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.star-bars li { display: grid; grid-template-columns: 6.5em 1fr 2.5em; gap: 8px; align-items: center; font-size: .9rem; }
.star-track { display: block; height: 10px; border-radius: 5px; background: #eee7dc; overflow: hidden; }
.star-fill { display: block; height: 100%; border-radius: 5px; background: var(--gold); }
.star-n { text-align: right; font-variant-numeric: tabular-nums; }
table.compact th, table.compact td { padding: 4px 8px; }
.locked-card { border: 1px dashed var(--field); background: #fbf8f3; }
.locked-list { margin: 0 0 8px; padding-left: 1.2em; }
.locked-list li { color: var(--muted); }

/* ÄB-33 (8): language flags (English / Swedish) in the header and on the sign-in pages */
.langs { display: flex; gap: 4px; }
.flag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; border: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.flag img { width: 26px; height: 17px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); object-fit: cover; }
.flag:hover { background: var(--cream); color: var(--ink); }
.flag[aria-pressed="true"] { border-color: var(--rasp); color: var(--ink); }
.header-dark .flag { color: #b9b1a8; }
.header-dark .flag[aria-pressed="true"] { color: #fff; border-color: var(--pink); }
.header-dark .flag:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar .langs { margin-left: auto; }
.auth-form { position: relative; }
.auth-langs { position: absolute; top: 16px; right: 16px; }

/* 0.21: the website's look in the app. Every header is charcoal; superadmin mode is marked with a magenta line. */
.header { background: var(--navy); border-bottom-color: var(--navy); color: #fff; }
.header .brand, .header .brand:hover { color: #fff; }
.header .brand-by { color: #b9b1a8; }
.header .topnav a, .header .topnav .linklike, .header .tenant-name { color: #e8e2da; }
.header .topnav a:hover, .header .topnav .linklike:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header .topnav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.header .nav-account { border-left-color: rgba(255, 255, 255, .18); }
.header .tenant-switch { background: var(--navy); color: #fff; border-color: #6f6760; }
.header .menu-toggle { color: #fff; border-color: #6f6760; }
.header .flag { color: #b9b1a8; }
.header .flag[aria-pressed="true"] { color: #fff; border-color: var(--pink); }
.header .flag:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.header .banner { background: var(--cream); color: var(--muted); border-top: 0; }
.header .banner-warn { background: var(--warn-bg); color: var(--warn-ink); }
.header-platform { box-shadow: inset 0 -3px 0 var(--pink); }
.brand-name { font-weight: 800; letter-spacing: -.03em; font-size: 1.3rem; }
h1 { letter-spacing: -.03em; font-weight: 800; }
h2 { letter-spacing: -.02em; }
.auth-pitch .lead { font-weight: 800; letter-spacing: -.03em; }
.auth-pitch .hl { display: block; font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -.01em; color: var(--pink); }
blockquote, .quote { font-family: 'Newsreader', Georgia, serif; font-style: italic; }

/* ÄB-33 onboarding: three steps after sign-up */
.ob-steps { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ob-steps li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.ob-no { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid var(--field); font-size: .85rem; }
.ob-steps li.done { color: var(--ink); }
.ob-steps li.done .ob-no { background: var(--green); border-color: var(--green); color: #fff; }
.ob-steps li.now { color: var(--ink); }
.ob-steps li.now .ob-no { border-color: var(--rasp); color: var(--rasp-text); }
.mail-box { margin-top: 20px; padding: 20px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.mail-box h3 { margin-top: 0; }
.ob-skip { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.ob-skip h3 { margin-top: 0; }
.mail-text { width: 100%; font: inherit; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--field); border-radius: 10px; background: #fff; resize: vertical; }
.limited-card { border-top: 4px solid var(--warn-line); }
.example-card { background: var(--paper, #fbf8f3); }
.ex-rows { margin: 12px 0 0; display: grid; gap: 0; }
.ex-rows div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ex-rows div:last-child { border-bottom: 0; }
.ex-rows dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ex-rows dd { margin: 0; display: grid; gap: 2px; }
@media (max-width: 560px) { .ex-rows div { grid-template-columns: 1fr; gap: 4px; } }
.main .linklike { color: var(--rasp-text); text-decoration: underline; text-underline-offset: 3px; }

/* 2026-11-20: the signature logo – the name in Newsreader italic with a magenta full stop (headers are charcoal). */
.brand-name { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 500; font-size: 1.75rem; letter-spacing: -.01em; line-height: 1; }
.brand-dot { color: var(--pink); }
.brand-by { margin-top: 2px; }
