/* Emporavo client area. Tokens follow web/emporavo/DESIGN.md: dark by default, one grotesk family, square edges. */
@font-face { font-family: Schibsted; src: url("/assets/fonts/SchibstedGrotesk.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
:root {
  --accent: #d6ff62; --accent-ink: #172012; --wash: #2b3326; --focus: #acd77b;
  --paper: #171a16; --surface: #20251f; --ink: #f2f1e9; --muted: #b8bdb0; --line: #41483c;
  --control-line: #7c8675; --new: #e5cf9d; --contact: #8ec8b8; --ok: #7fd6a4; --warn: #ffbc8e;
  color-scheme: dark;
}
:root[data-theme="light"] { --accent: #426321; --accent-ink: #fffefa; --wash: #e9eddf; --focus: #426321; --paper: #f7f5ee; --surface: #fffefa; --ink: #232a21; --muted: #596250; --line: #d4d8c9; --control-line: #87917f; --new: #775719; --contact: #276c59; --ok: #23663e; --warn: #88481c; color-scheme: light; }
@media print { :root, :root[data-theme="light"] { --accent: #426321; --accent-ink: #fffefa; --wash: #e9eddf; --paper: #fff; --surface: #fffefa; --ink: #000; --muted: #333; --line: #d4d8c9; --control-line: #d4d8c9; --new: #426321; color-scheme: light; } }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 Schibsted, Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.bar { display: flex; align-items: baseline; gap: 16px; padding: 18px clamp(16px, 5vw, 70px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 26px; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-block; width: 0.1849em; height: 0.1849em; margin-left: 0.0431em; margin-right: 0.0596em; border-radius: 0.0333em; vertical-align: baseline; overflow: hidden; color: transparent; background: var(--accent); }
.bar-label { color: var(--muted); font-size: 13px; text-decoration: none; }
.bar-label:hover { color: var(--ink); text-decoration: underline; }
.bar-back { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; align-self: center; font-size: 13px; color: var(--ink); text-decoration: none; text-underline-offset: .25em; }
.bar-back svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.bar-back:hover { text-decoration: underline; }
.bar-back:hover svg { transform: translateX(-3px); }
.theme-toggle { display: none; margin-left: 8px; border: 1px solid var(--control-line); padding: 10px 14px; min-height: 44px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.theme-toggle.is-ready { display: inline-flex; }
.theme-toggle:hover { background: var(--wash); }
@media print { .theme-toggle.is-ready, .bar-back { display: none; } }
@media (max-width: 480px) { .bar { flex-wrap: wrap; row-gap: 8px; } .bar-back { order: 3; flex-basis: 100%; margin-left: 0; } .theme-toggle { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .bar-back svg { transition: none; } }
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px clamp(16px, 5vw, 70px) 64px; }
h1 { font-weight: 500; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 12px; }
h2 { font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.03em; margin: 28px 0 10px; }
h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
p { margin: 0 0 10px; max-width: 72ch; }
.muted { color: var(--muted); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 28px 24px; }
.panel.narrow { max-width: 460px; margin: 6vh auto; }
.stack { display: grid; gap: 14px; margin: 16px 0; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--control-line); padding: 10px 12px; border-radius: 0; width: 100%; }
textarea { min-height: 70px; resize: vertical; }
.btn { font: 600 15px/1 Schibsted, Arial, sans-serif; padding: 13px 18px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; border-radius: 0; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { font: inherit; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }
.note { background: var(--wash); border-left: 3px solid var(--focus); padding: 10px 14px; }
.signout { margin-top: 40px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.intro { max-width: 78ch; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.stat { border: 1px solid var(--line); padding: 10px 16px; min-width: 130px; background: var(--surface); }
.stat b { display: block; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 20px 0 16px; overflow-x: auto; }
.tabs button { font: 600 15px Schibsted, Arial, sans-serif; background: none; border: 0; color: var(--muted); padding: 12px 16px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters input { flex: 1 1 240px; width: auto; }
.filters select { width: auto; }
.list { display: grid; gap: 8px; }
.row { border: 1px solid var(--line); background: var(--surface); }
.row-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.row-head:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.row-name b { display: block; font-weight: 600; font-size: 17px; }
.row-name span { color: var(--muted); font-size: 14px; }
.tag { font-size: 12.5px; padding: 3px 9px; border: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
.tag.reg { border-color: var(--ok); color: var(--ok); }
.tag.new { border-color: var(--new); color: var(--new); }
.tag.no { border-color: var(--warn); color: var(--warn); }
.score { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; white-space: nowrap; }
.detail { border-top: 1px solid var(--line); padding: 8px 16px 18px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px 32px; }
.detail ul { margin: 0 0 8px; padding-left: 18px; }
.detail li { margin-bottom: 4px; }
.routes { width: 100%; border-collapse: collapse; font-size: 14px; }
.routes td { border-top: 1px solid var(--line); padding: 6px 8px 6px 0; vertical-align: top; overflow-wrap: anywhere; }
.message { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); padding: 12px; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.sources { font-size: 13px; color: var(--muted); }
.sources a { color: var(--muted); }
.logform { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; background: var(--surface); border: 1px solid var(--line); padding: 16px; margin-bottom: 16px; }
.logform .full { grid-column: 1 / -1; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; background: var(--surface); }
table.data td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.status { min-height: 1.4em; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .row-head { grid-template-columns: minmax(0, 1fr) auto; }
  .row-head .score { display: none; }
  .detail { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .bar, .tabs, .filters, .actions, .signout, .logform, .btn { display: none !important; } .detail { display: block; } }

/* Format switcher: client area, report form and Excel export of the same register. */
.formats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 18px; }
.formats-label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.format { font: 600 14px/1 Schibsted, Arial, sans-serif; padding: 9px 13px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.format:hover { border-color: var(--accent); }
.format.here { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media print { .formats { display: none !important; } }

/* Emporavo admin view: every client area, read-only. */
.adminbar { border: 1px solid var(--accent); padding: 10px 14px; margin: 0 0 12px; color: var(--ink); }
.adminbar a, .adminlinks a { color: var(--accent); margin-right: 10px; }

/* Bulk choices: a tick box on each row and the actions above the list (clients for whom Emporavo makes the contacts). */
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.row-top { display: flex; align-items: center; }
.row-top .tick { width: 20px; height: 20px; margin: 0 0 0 16px; flex: 0 0 auto; accent-color: var(--accent); }
.row-top .row-head { flex: 1; min-width: 0; }

/* A client's own note on a company. */
.note-box textarea { width: 100%; }

/* Keep the work visible; longer research context stays available on demand. */
::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea { caret-color: var(--focus); }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.next-step h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.next-step p { margin: 0; color: var(--muted); font-size: 15px; max-width: 64ch; }
.next-step .btn { flex: 0 0 auto; min-height: 44px; line-height: 1.3; }
.quick-views { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0; }
.quick-view { font: 500 14px/1.4 Schibsted, Arial, sans-serif; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 0; min-height: 44px; cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.quick-view:hover { color: var(--ink); }
.quick-view[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.about-list { margin: 8px 0 16px; font-size: 14px; color: var(--muted); }
.about-list summary, .more-filters summary { cursor: pointer; padding: 10px 0; min-height: 44px; color: var(--accent); }
.about-list .intro { padding: 12px 0 4px; }
.tabs { overflow: visible; flex-wrap: wrap; }
.tabs button { min-height: 48px; }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)); gap: 12px; }
.filters input, .filters select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
.filter-field { min-width: 0; }
.filter-tools { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; }
.filter-tools > .btn { margin-left: auto; min-height: 44px; }
.more-filters { flex: 1; min-width: 140px; }
.extra-filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 0 8px; }
.extra-filters label { flex: 1 1 180px; max-width: 320px; }
.results { margin-bottom: 14px; }
.row-head { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.row-toggle { color: var(--accent); font-size: 13px; white-space: nowrap; }
.row-toggle::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.row-head[aria-expanded="true"] .row-toggle::after { transform: rotate(225deg); margin-bottom: 0; }
.row-head:hover { background: var(--wash); }
.documents h2 { margin-top: 0; }
.document-list { display: grid; gap: 0; margin: 16px 0 20px; }
.document-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 48px; }
.logform input, .logform select, .logform textarea { font-size: 16px; }

/* Decisions, saved activity and recoverable work share the existing type and color tokens. */
.feedback, .draft-notice { padding: 12px 14px; border: 1px solid var(--line); background: var(--wash); margin: 14px 0; overflow-wrap: anywhere; }
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.feedback p { margin: 0; flex: 1 1 260px; }
.feedback.error { border-color: var(--warn); }
/* Shown while a new version of the client area starts (about a minute). */
.feedback.maintenance { position: sticky; top: 0; z-index: 10; margin: 0; border-width: 0 0 1px; }
.draft-notice { font-size: 14px; color: var(--muted); }
.draft-notice:empty { display: none; }
.feedback .btn, .review-actions .btn, .note-box .btn { min-height: 44px; line-height: 1.3; }
.detail > div { min-width: 0; overflow-wrap: anywhere; }
.review-actions { display: grid; gap: 10px; margin: 12px 0; }
.review-actions select, .contact-filters select { font-size: 16px; min-height: 44px; min-width: 0; }
.direct-actions summary { color: var(--accent); cursor: pointer; min-height: 44px; padding: 8px 0; font-size: 14px; }
.activity-list { list-style: none; padding: 0; margin: 10px 0 18px; }
.activity-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.activity-list p:last-child, .log-entry p:last-child { margin-bottom: 0; }
.activity-meta { font-size: 13px; color: var(--muted); }
.contact-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin: 22px 0 14px; max-width: 720px; }
.contact-list { border-top: 1px solid var(--line); }
.log-entry { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.log-entry h3 { font-size: 18px; text-transform: none; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 4px; }
.contact-list > .muted { padding-top: 16px; }

/* The password stays a native input, including when visibility is toggled. */
.password-control { display: flex; align-items: stretch; min-width: 0; }
.password-control input { min-width: 0; flex: 1; }
.password-toggle { font: 600 14px Schibsted, Arial, sans-serif; background: var(--paper); color: var(--accent); border: 1px solid var(--control-line); border-left: 0; border-radius: 0; padding: 10px 12px; min-width: 64px; cursor: pointer; }
.password-toggle[hidden] { display: none; }
.signin-help { margin: 20px 0 0; font-size: 14px; }
.signin-help summary { cursor: pointer; color: var(--accent); padding: 10px 0; min-height: 44px; }
.signin-help p { margin: 8px 0; }
@media (max-width: 1000px) {
  .next-step { align-items: flex-start; flex-direction: column; gap: 12px; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-search { grid-column: 1 / -1; }
  .row-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .row-head .row-name { grid-column: 1 / -1; }
  .row-head .score { display: none; }
  .row-head .tag { justify-self: start; white-space: normal; }
  .row-toggle { justify-self: end; }
}
@media (max-width: 540px) {
  .wrap { padding-top: 22px; }
  .next-step { padding: 16px 0; }
  .next-step .btn { width: 100%; }
  .quick-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs button { white-space: normal; text-align: left; padding: 12px 10px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filter-field:last-child { grid-column: 1 / -1; }
  .row-head { padding: 14px; }
  .contact-filters { grid-template-columns: minmax(0, 1fr); }
  .panel.narrow { padding: 22px 18px; }
}
@media print {
  .next-step, .quick-views, .about-list summary, .filter-tools, .row-toggle { display: none !important; }
  .about-list > .intro { display: block !important; }
  .feedback, .draft-notice, .review-actions, .contact-filters { display: none !important; }
}

/* Making the first contact: the recommended approach, the email draft, the company's form and the record offer. */
.send-box { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.approach-note { background: var(--wash); border-left: 3px solid var(--focus); padding: 10px 14px; margin: 10px 0; }
.approach-note p { margin: 0 0 6px; }
.approach-note .phones a { display: inline-block; margin: 0 14px 4px 0; }
.send-row { margin: 10px 0; }
.send-row label, .profile-form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.other-apps summary, .profile-inline summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.profile-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; margin: 10px 0 18px; }
.profile-form .full { grid-column: 1 / -1; }
.copy-buffer { position: fixed; top: -1000px; left: 0; width: 1px; height: 1px; opacity: 0; }
.row-name .tag.hint { display: inline-block; margin-top: 6px; border-color: var(--focus); color: var(--focus); }
/* Outreach settings (admin page): a checkbox sits beside its label. */
label.check-row { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink); }
label.check-row input { width: auto; flex: none; }

/* Register exploration: the same company list, expressed as exact comparable quantities. */
.register-insights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.distribution-panel { min-width: 0; }
.distribution-panel h2, .contact-visual h2 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; }
.distribution-panel > .muted { min-height: 44px; max-width: 44ch; }
.status-distribution, .country-distribution, .contact-distribution { display: grid; gap: 0; }
.distribution-choice { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 5px 14px; width: 100%; min-height: 52px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; font: 400 14px/1.4 Schibsted, Arial, sans-serif; cursor: pointer; transition: background-color 180ms ease-out, color 180ms ease-out; }
.distribution-choice:hover { background: var(--surface); }
.distribution-choice[aria-pressed="true"] { background: var(--wash); color: var(--accent); }
.distribution-choice[aria-pressed="true"] .distribution-label { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.distribution-choice:focus-visible { z-index: 1; outline-offset: -3px; }
.distribution-choice:active { background: var(--wash); }
.distribution-label { overflow-wrap: anywhere; }
.distribution-choice b { font-size: 18px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.quantity-bar { display: block; width: 100%; height: 5px; grid-column: 1 / -1; overflow: visible; }
.quantity-track { fill: var(--line); opacity: 0.45; }
.quantity-fill { fill: var(--new); }
.quantity-fill.register { fill: var(--ok); }
.quantity-fill.contact { fill: var(--contact); }
.quantity-fill.existing { fill: var(--muted); }
.quantity-fill.declined { fill: var(--warn); }
.more-countries summary { min-height: 44px; padding: 10px; cursor: pointer; color: var(--accent); font-size: 14px; }
.contact-visual { border-top: 1px solid var(--line); padding: 22px 0 20px; }
.contact-coverage { color: var(--muted); font-size: 14px; max-width: 70ch; }
.contact-distribution { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 18px; margin: 16px 0; }
.contact-result { margin: 12px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-visual .btn { margin-top: 12px; }
.btn.small, .format { min-height: 44px; line-height: 1.3; }
.format { display: inline-flex; align-items: center; }
.row-top .tick-hit { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; min-height: 44px; margin-left: 5px; cursor: pointer; }
.row-top .tick { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.row-toggle::after { transition: transform 180ms cubic-bezier(.16, 1, .3, 1); }
.row-head { transition: background-color 180ms ease-out; }
.feedback { animation: saved-feedback 180ms cubic-bezier(.16, 1, .3, 1); }
@keyframes saved-feedback { from { opacity: 0.75; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .register-insights { gap: 24px; grid-template-columns: minmax(0, 1fr); }
  .distribution-panel > .muted { min-height: 0; }
  .status-distribution { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .country-distribution { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .register-insights .distribution-choice { min-height: 58px; }
}
@media print { .register-insights, .contact-visual { display: none !important; } }

/* Company research keeps its identity and review tools in place while evidence changes. */
.detail.dossier { padding: 0; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 0; align-items: start; }
.research-dossier { background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); }
.dossier-identity { padding: 26px 28px 0; }
.dossier-identity h2 { font-size: 28px; line-height: 1.16; margin: 0 0 6px; letter-spacing: -0.03em; }
.dossier-identity p { font-size: 15px; }
.dossier-location { color: var(--muted); }
.review-jump { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.evidence-index { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 16px 0; border-top: 1px solid var(--line); }
.evidence-index > div { display: flex; align-items: baseline; gap: 7px; }
.evidence-index dt { font-size: 12px; color: var(--muted); }
.evidence-index dd { font-size: 16px; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.research-tabs { display: flex; padding: 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 16px; }
.research-tabs button { border: 0; border-bottom: 3px solid transparent; padding: 13px 0 10px; min-height: 48px; background: transparent; font: 600 14px/1.3 Schibsted, Arial, sans-serif; color: var(--muted); cursor: pointer; }
.research-tabs button:hover { color: var(--accent); }
.research-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--accent); }
.research-tabs button:focus-visible { outline-offset: -2px; }
.research-panel { padding: 22px 28px 28px; min-height: 280px; }
.research-panel[hidden] { display: none; }
.research-panel h3 { color: var(--ink); text-transform: none; letter-spacing: -0.01em; font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.research-panel h3:first-child { margin-top: 0; }
.research-panel p, .research-panel li { font-size: 15px; line-height: 1.7; }
.research-panel li { margin-bottom: 9px; padding-left: 3px; }
.research-panel .sources { padding-left: 22px; }
.research-panel .sources a { color: var(--accent); }
.research-panel .sources li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.research-panel .evidence-limit { color: var(--muted); font-size: 13px; margin-top: 24px; }
.research-panel .routes th { text-align: left; color: var(--muted); font-weight: 500; border-top: 1px solid var(--line); padding: 8px 10px 8px 0; }
.research-panel .approach-note { border-left-width: 1px; }
.dossier-review { padding: 24px; }
.dossier-review > h3:first-child { margin-top: 0; }
.dossier-review h3 { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.dossier-review > .muted { font-size: 13px; line-height: 1.65; }
.dossier-review .review-actions { margin: 18px 0; }
.dossier-review .note-box { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 10px; }
.dossier-review .activity-list { font-size: 14px; }
@media (max-width: 900px) {
  .detail.dossier { grid-template-columns: minmax(0, 1fr); }
  .dossier-review { border-top: 1px solid var(--line); }
  .dossier-review .review-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .dossier-review .direct-actions { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .dossier-identity { padding: 22px 18px 0; }
  .dossier-identity h2 { font-size: 24px; }
  .research-tabs { padding: 0 18px; gap: 14px; }
  .research-tabs button { font-size: 13px; }
  .research-panel { padding: 22px 18px; }
  .dossier-review { padding: 22px 18px; }
  .dossier-review .review-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .research-panel { min-height: 0; } }
@media print {
  .research-tabs, .review-jump { display: none !important; }
  .detail.dossier { display: block; }
  .research-panel[hidden] { display: block !important; }
  .research-panel { min-height: 0; padding: 12px 0; }
  .dossier-identity, .dossier-review { padding: 12px 0; }
  .research-dossier { background: #fff; }
}

/* Working list first; optional analysis keeps its open state through saves. */
.insight-disclosure,.company-map-disclosure{border-bottom:1px solid var(--line);margin:0 0 18px}
.insight-disclosure>summary,.company-map-disclosure>summary{cursor:pointer;color:var(--muted);padding:12px 0;min-height:48px;font-size:14px;font-weight:500}
.insight-disclosure[open]>summary,.company-map-disclosure[open]>summary{color:var(--ink)}
.insight-disclosure .register-insights{border-bottom:0;padding-top:4px}
.company-map-disclosure .company-map{margin:0 0 18px}
#portal-tabpanel:focus:not(:focus-visible){outline:none}
@media(max-width:540px){.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto}.tabs button{padding:12px;font-size:13px;white-space:nowrap}.next-step h2{font-size:20px}}
@media print{.insight-disclosure,.company-map-disclosure{display:none}}

.filter-tools:has(>button[hidden]):not(:has(details)){display:none}

.company-view-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 16px}
.company-view-heading .results{margin:0}
.company-view-switch{display:flex;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.company-view-switch button{font:inherit;font-size:14px;min-height:44px;padding:8px 20px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.company-view-switch button[aria-pressed="true"]{background:var(--paper);border-color:var(--line);color:var(--ink);font-weight:600}
.company-map[hidden],.company-list-view[hidden]{display:none}
.dossier-map-link{margin:0 0 12px}
@media(max-width:620px){.company-view-heading{gap:10px}.company-view-heading .results{font-size:13px}.company-view-switch button{padding:8px 14px}}
@media print{.company-view-heading,.company-map,.dossier-map-link{display:none}.company-list-view[hidden]{display:block}}

/* Keep the native picker; inset its caret consistently at every field size. */
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23b8bdb0' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;padding-right:40px}
:root[data-theme="light"] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23596250' stroke-width='1.5'/%3E%3C/svg%3E")}
@media(forced-colors:active){select{appearance:auto;background-image:none!important}}
.demo-entry { margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--accent); display: grid; gap: 12px; }
.demo-entry p { margin: 0; font-size: 14px; color: var(--muted); }
.demo-entry .btn { justify-self: start; border-color: var(--accent); min-height: 44px; }
.demo-entry .btn:hover { background: var(--wash); }
/* Same round theme control and skip link as the public site. */
.theme-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border-color: var(--line); align-items: center; justify-content: center; align-self: center; }
.theme-toggle svg { width: 19px; height: 19px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: auto; height: auto; clip-path: none; z-index: 50; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
/* Notices span the column like the panels beside them. */
.adminbar { display: block; width: 100%; box-sizing: border-box; }
/* The client globe sits on its card, not on a separate square. */
.company-map-stage { background: transparent; }
/* Contact log form: every field on one grid, names never cut short. */
.logform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.logform select { min-width: 0; width: 100%; text-overflow: ellipsis; }
.logform label:has(textarea), .logform .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .logform { grid-template-columns: 1fr; } }
/* Tabular figures also widen commas and full stops in this font, so sentences keep proportional figures. */
.quick-view, .contact-result, .company-map p, .company-map-summary { font-variant-numeric: normal; }
.wrap > .adminbar { max-width: none; }
.company-map-counts { font-variant-numeric: normal; }

/* Client area chrome, matched to the public site: same font file, page width, 100px header with its rule inset to the
   content edges, lowercase wordmark at the same size, and quiet links in the header. */
@font-face { font-family: Schibsted; src: url("/assets/fonts/SchibstedGrotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root { --pad: clamp(20px, 5vw, 80px); --measure: 1380px; --ease: cubic-bezier(.16, 1, .3, 1); }
@media (min-width: 1400px) { :root { --pad: 70px; } }
body { -webkit-font-smoothing: antialiased; }
.bar { display: block; max-width: calc(var(--measure) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); border-bottom: 0; }
.bar-inner { display: flex; align-items: center; gap: 18px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { font-size: 31px; line-height: 1; }
.bar-label { align-self: center; padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .02em; line-height: 1.2; text-decoration: none; }
.bar-label:hover { color: var(--ink); border-color: var(--control-line); text-decoration: none; }
.bar-back { font-size: 14px; }
.wrap { max-width: calc(var(--measure) + 2 * var(--pad)); padding: 40px var(--pad) 80px; }
@media (max-width: 540px) { .brand { font-size: 28px; } .bar-inner { min-height: 0; padding-block: 22px 14px; flex-wrap: wrap; row-gap: 10px; } .bar-back { order: 3; flex-basis: 100%; margin-left: 0; } .theme-toggle { margin-left: auto; } }

/* Client area, full pass. Primary actions match the public site: 56px, square, 15px label. */
.btn.primary { min-height: 56px; padding: 17px 24px; font-size: 15px; line-height: 1.2; }
.btn.primary:hover { box-shadow: 0 9px 24px #17201229; }
.next-step { padding: 28px 0; }
.next-step .btn.primary { min-height: 56px; }
/* Page title block: room between the notice, the title and the tabs. */
.wrap > h1 { margin-top: 8px; }
.demo-note { display: flex; align-items: center; gap: 10px; max-width: none; margin: 0 0 28px; padding: 10px 14px; font-size: 13px; color: var(--muted); background: var(--wash); border-left: 3px solid var(--accent); }
/* Section tabs keep the underline; the quick views under them are chips, so the two rows read differently. */
.quick-views { gap: 8px; margin: 20px 0 14px; }
.quick-view { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; }
.quick-view:hover { border-color: var(--control-line); background: var(--wash); }
.quick-view[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* Filters: search, country and order in one row; status, strength and source under More filters. */
.filters { grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(160px, 1fr)); }
.filters input, .filters select, .extra-filters select { min-height: 48px; }
.about-list summary, .more-filters summary { color: var(--ink); font-size: 14px; font-weight: 500; }
.about-list summary:hover, .more-filters summary:hover { color: var(--accent); }
.extra-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 4px 0 12px; }
/* Decision column: one short line, the rest behind a disclosure. */
.decision-help { margin-top: 12px; }
.decision-help details summary { cursor: pointer; font-size: 13px; color: var(--ink); min-height: 32px; }
.decision-help details p { margin-top: 6px; }
.review-actions select option[value=""] { color: var(--muted); }
/* Contact log: the add form opens from one button and the log leads the tab. */
.log-add { margin: 18px 0 24px; }
.log-add > summary { display: inline-flex; align-items: center; list-style: none; width: auto; }
.log-add > summary::-webkit-details-marker { display: none; }
.log-add[open] > summary { margin-bottom: 16px; }
.logform { gap: 14px 18px; padding: 22px; }
.logform input, .logform select { min-height: 48px; }
/* Documents: one row per format, one action each, the same button style. */
.formats { display: grid; gap: 0; margin: 20px 0 28px; border-top: 1px solid var(--line); }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.download-row b { font-size: 16px; font-weight: 600; }
.download-row p { margin: 4px 0 0; }
.download-row .btn { flex: 0 0 auto; min-width: 220px; min-height: 48px; justify-content: center; text-decoration: none; font-size: 14px; }
.download-row .btn:hover { border-color: var(--accent); }
@media (max-width: 640px) { .download-row { flex-direction: column; align-items: stretch; gap: 12px; } .download-row .btn { min-width: 0; } }
/* Footer: the signed-in line and sign-out sit apart from the work, as a page footer. */
.client-footer { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.client-footer .signout { margin: 0; gap: 12px 20px; }
.client-footer .link { min-height: 44px; font-size: 14px; }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr 1fr; } .filters .filter-search { grid-column: 1 / -1; } }
.score { font-variant-numeric: normal; }
.extra-filters select, .extra-filters input { font-size: 16px; }
.profile-form { align-items: end; max-width: 980px; gap: 14px 18px; }
.profile-form input, .profile-form select { min-height: 48px; font-size: 16px; }
.profile-form .btn.primary.small { min-height: 56px; padding: 17px 24px; font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dossier-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.log-return { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 12px 18px; font-size: 14px; }
.log-return::before { content: "\2190"; }
.dossier-identity .evidence-index { border-top: 0; padding-top: 0; margin: 0 0 0 auto; }
/* The theme control holds its place from the first paint (theme.js marks the page before it is drawn). */
.js .theme-toggle { display: inline-flex; }

/* Portal V2: outreach funnel bar, buyer match scorecard, explicit one-click decisions, Undo window, milestones. */
.funnel-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
.funnel-step { border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; display: grid; gap: 4px; }
.funnel-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.funnel-value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink); }
.funnel-step.new { border-left: 3px solid var(--new); }
.funnel-step.register { border-left: 3px solid var(--ok); }
.funnel-step.contact { border-left: 3px solid var(--contact); }
.funnel-step.replies { border-left: 3px solid var(--accent); }
@media (max-width: 640px) { .funnel-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scorecard { margin: 16px 28px 18px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); display: grid; gap: 8px; }
.scorecard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scorecard-head h3 { margin: 0; color: var(--ink); font-size: 13px; }
.scorecard-badges { display: inline-flex; align-items: center; gap: 8px; }
.scorecard-score { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--accent); }
.scorecard-sources { margin: 0; font-size: 13px; }
.scorecard-group { display: grid; gap: 4px; font-size: 13.5px; }
.scorecard-group strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.scorecard-list { margin: 0; padding-left: 18px; }
.scorecard-list li { margin-bottom: 2px; }
@media (max-width: 540px) { .scorecard { margin: 14px 18px 16px; } }
.one-click-decisions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.undo-window-note { font-size: 13px; padding: 8px 12px; border-left: 3px solid var(--focus); background: var(--wash); color: var(--ink); margin: 10px 0 12px; }
.undo-window-note.is-locked { border-left-color: var(--ok); }
.undo-hint { font-size: 13px; }
.milestones-panel { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.milestones-panel h2 { margin-top: 0; }
.templates-section { display: grid; gap: 16px; }
.templates-section h2 { margin: 8px 0 0; }
.tpl-list { display: grid; gap: 20px; }
.tpl-card { display: grid; gap: 16px; padding: 22px; }
.tpl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tpl-head h3 { margin: 0 0 4px; font-size: 18px; }
.tpl-meta { margin: 0; font-size: 13px; }
.tpl-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tpl-updated { font-size: 12px; }
.tpl-preview { display: grid; gap: 10px; }
.tpl-subject { margin: 0; font-size: 14px; }
.tpl-notes { margin: 0; font-size: 13px; }
.tpl-review-form { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tpl-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-choice-row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tpl-feedback-label, .tpl-rewrite-fields label { display: grid; gap: 6px; font-size: 13.5px; }
.tpl-rewrite summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 6px 0; }
.tpl-rewrite-fields { display: grid; gap: 10px; padding-top: 8px; }
.tpl-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tpl-save-status { margin: 0; font-size: 13px; }
.tpl-readonly { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.tpl-readonly h4 { margin: 0; font-size: 14px; }
@media print { .funnel-bar, .one-click-decisions, .undo-window-note, .tpl-review-form { display: none !important; } }
