/* CorpLens — brand sheet. Colours measured on the logo (docs/brand/README.md).
   One memorable element: the evidence slip (a claim, its original sentence, its page).
   Document text is set in a serif so readers always see what comes from the source. */

:root {
  --lens: #002e1a;      /* "Lens" in the wordmark */
  --forest: #043621;    /* body of the C */
  --shadow: #00150b;    /* deepest green of the C */
  --sage: #619e7d;      /* lit edge of the C and the lens reflection */
  --ink: #000000;       /* "Corp" in the wordmark */
  --paper: #ffffff;
  --mist: #eef3ef;      /* behind source excerpts */
  --rule: #d6e2da;
  --muted: #45564c;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-slip: 14px;
  --radius-control: 8px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--lens); }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
.wordmark span { color: var(--lens); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--lens);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--lens); color: var(--paper); }
.button-primary:hover { background: var(--shadow); color: var(--paper); }
.button-quiet { background: transparent; color: var(--lens); }
.button-quiet:hover { background: var(--mist); color: var(--lens); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(32px, 7vw, 96px) 0 clamp(48px, 8vw, 112px);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--lens);
  margin: 0 0 22px;
  max-width: 13ch;
}
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The evidence slip */
.slip {
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-slip);
  background: var(--paper);
  box-shadow: 0 30px 60px -38px rgba(0, 46, 26, 0.45);
  overflow: hidden;
}
.slip-claim { padding: 26px 28px 22px; }
.slip-claim .label { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.slip-claim p.claim { margin: 0; font-size: 1.18rem; line-height: 1.4; font-weight: 600; }
.slip-source {
  position: relative;
  background: var(--mist);
  padding: 22px 28px 22px 44px;
  border-top: 1.5px solid var(--rule);
}
.slip-source::before {            /* the lens: the claim is focused on its sentence */
  content: "";
  position: absolute;
  left: 26px; top: 22px; bottom: 22px;
  width: 4px;
  border-radius: 2px;
  background: var(--sage);
}
.slip-source blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--shadow);
}
.slip-source mark { background: rgba(97, 158, 125, 0.32); color: inherit; padding: 0 2px; border-radius: 3px; }
.slip-ref {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.slip-ref dt { color: var(--forest); font-weight: 600; }
.slip-ref dd { margin: 0; overflow-wrap: anywhere; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1.5px solid var(--rule); }
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--lens);
  max-width: 22ch;
}
.section .intro { color: var(--muted); max-width: 40rem; margin: 0 0 36px; }

.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.chain li { counter-increment: step; }
.chain li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--lens); color: var(--paper);
  font-weight: 700;
}
.chain h3 { margin: 0 0 6px; font-size: 1.15rem; }
.chain p { margin: 0; color: var(--muted); max-width: 32ch; }

.abstain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.verdict {
  border-left: 4px solid var(--sage);
  padding: 4px 0 4px 20px;
}
.verdict .question { margin: 0 0 10px; font-weight: 600; }
.verdict .answer { margin: 0; font-family: var(--serif); color: var(--shadow); }

pre.api {
  margin: 0;
  background: var(--shadow);
  color: #d7e8de;
  border-radius: var(--radius-slip);
  padding: 22px 24px;
  font: 0.86rem/1.6 var(--mono);
  overflow-x: auto;
}
pre.api .key { color: #9fd3b5; }

.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; border-top: 1.5px solid var(--rule); }

/* Sign-in */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px var(--gutter);
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 55%);
}
.auth-panel { width: 100%; max-width: 400px; }
.auth-panel .brand { margin-bottom: 28px; }
.auth-panel h1 { font-size: 1.7rem; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--lens); }
.auth-panel .intro { color: var(--muted); margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-control);
  font: 1rem var(--sans);
  background: var(--paper);
}
.field input:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px rgba(97, 158, 125, 0.28); }
.form-error {
  background: #fbeceb; color: #7a1f17;
  border-radius: var(--radius-control);
  padding: 12px 14px; margin-bottom: 18px; font-size: 0.95rem;
}
.auth-panel .button { width: 100%; margin-top: 6px; }
.auth-back { display: inline-block; margin-top: 20px; font-size: 0.95rem; }
.field-error { margin: 6px 0 0; color: #7a1f17; font-size: 0.88rem; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
.auth-switch { margin: 18px 0 0; font-size: 0.95rem; color: var(--muted); }
.auth-switch + .auth-switch { margin-top: 6px; }
.auth-inline { margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--rule); }
.auth-inline .button { background: var(--paper); color: var(--lens); border: 1.5px solid var(--rule); }

@media (max-width: 860px) {
  .hero, .abstain { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .slip-source::before { animation: focus-in 900ms cubic-bezier(.2,.7,.2,1) 250ms both; transform-origin: top; }
  @keyframes focus-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Private app */
.app { min-height: 100vh; background: #f7faf8; }
.app-bar { background: var(--paper); border-bottom: 1.5px solid var(--rule); }
.app-bar-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.app-nav { display: flex; gap: 18px; flex: 1; }
.app-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.app-nav a[aria-current="page"], .app-nav a:hover { color: var(--lens); border-bottom-color: var(--sage); }
.app-user { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.92rem; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: 600 0.92rem var(--sans); color: var(--forest); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.app-main { padding-top: 32px; padding-bottom: 64px; }
.page-title { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; color: var(--lens); margin: 0 0 6px; }
.crumb { margin: 0 0 6px; font-size: 0.92rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search { display: flex; gap: 10px; margin: 20px 0 24px; max-width: 640px; }
.search input, .ask-form textarea {
  flex: 1; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--rule);
  border-radius: var(--radius-control); font: 1rem var(--sans); background: var(--paper); width: 100%;
}
.search input:focus, .ask-form textarea:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px rgba(97,158,125,.28); }
.company-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.company-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 10px; text-decoration: none; color: var(--ink); }
.company-list a:hover { border-color: var(--sage); }
.company-name { font-weight: 700; font-size: 1.1rem; }
.company-meta, .doc-meta, .coverage, .figure-ref, .evidence-ref, .hint { color: var(--muted); font-size: 0.9rem; }
.empty { color: var(--muted); }
.company-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.panel { background: var(--paper); border: 1.5px solid var(--rule); border-radius: 12px; padding: 24px 26px; margin-bottom: 20px; }
.panel-alert { border-color: #c0392b; background: #fbeceb; color: #7a1f17; }
.panel-alert ul { margin: 8px 0 0; padding-left: 20px; }
.panel-restart { border-color: #1f4d3a; }
.panel-restart form { margin-top: 12px; }
.panel h2 { font-size: 1.25rem; margin: 0 0 14px; color: var(--lens); letter-spacing: -0.01em; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px; margin: 0; }
.figure dt { color: var(--muted); font-size: 0.9rem; }
.figure dd { margin: 2px 0 0; }
.figure strong { font-size: 1.35rem; color: var(--lens); }
/* Company page: the period and unit are said once, four headline figures lead */
.headline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 6px; border: 1.5px solid var(--rule); border-radius: 10px; overflow: hidden; }
.headline > div { padding: 16px 18px; border-left: 1.5px solid var(--rule); }
.headline > div:first-child { border-left: 0; }
.headline dt { color: var(--muted); font-size: 0.88rem; }
.headline dd { margin: 4px 0 0; }
.headline .num { font-size: 1.75rem; font-weight: 700; color: var(--lens); letter-spacing: -0.02em; text-decoration: none; }
a.num:hover, a.fig:hover { text-decoration: underline; }
.more-figures { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; margin: 14px 0 0; }
.more-figures > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.more-figures dt { color: var(--muted); }
.more-figures dd { margin: 0; text-align: right; }
.fig { color: var(--ink); font-weight: 600; text-decoration: none; }
.unit { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.off-period { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fdf3e1; color: #7a4a00; font-size: 0.75rem; font-weight: 600; vertical-align: 2px; }
.figures-note { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }
/* Profile: an index, then each section as a short list of facts */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border: 1.5px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--lens); font-weight: 600; font-size: 0.9rem; }
.toc a:hover { border-color: var(--sage); background: var(--mist); }
.toc .n { color: var(--muted); font-weight: 400; }
.toc .none a { color: var(--muted); font-weight: 400; border-style: dashed; }
.psection { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 22px 0; border-top: 1.5px solid var(--rule); scroll-margin-top: 16px; }
.psection h3 { margin: 0; font-size: 1rem; color: var(--lens); }
.psection h3 .n { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.psection .abstain-note { margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.facts li { position: relative; padding-left: 18px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.fact { margin: 0; font-size: 1rem; line-height: 1.55; }
.sources { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.src { max-width: 100%; }
.src > summary { list-style: none; cursor: pointer; display: inline-block; font-size: 0.8rem; color: var(--forest); background: var(--mist); padding: 2px 10px; border-radius: 6px; }
.src > summary::-webkit-details-marker { display: none; }
.src > summary:hover { background: #dfeae3; }
.src > summary .sep { color: var(--sage); }
.src[open] > summary { background: var(--lens); color: var(--paper); }
.src blockquote { margin: 8px 0 4px; padding: 10px 14px; background: var(--mist); border-left: 4px solid var(--sage); border-radius: 6px; font-family: var(--serif); font-size: 0.95rem; color: var(--shadow); }
.src .evidence-ref { margin: 0 0 6px; }
@media (max-width: 760px) {
  .headline { grid-template-columns: repeat(2, 1fr); }
  .headline > div:nth-child(3) { border-left: 0; }
  .headline > div:nth-child(n+3) { border-top: 1.5px solid var(--rule); }
  .more-figures { grid-template-columns: 1fr; }
  .psection { grid-template-columns: 1fr; gap: 10px; }
}
@media (min-width: 641px) { .app-user { white-space: nowrap; } }
.badge { font-size: 0.82rem; padding: 3px 10px; border-radius: 999px; background: #f1f2f1; color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--mist); color: var(--forest); }
.claims { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.claim-text { margin: 0 0 6px; font-weight: 600; }
.evidence > summary { cursor: pointer; color: var(--forest); font-size: 0.9rem; }
.evidence blockquote { margin: 10px 0 6px; padding: 12px 16px; background: var(--mist); border-left: 4px solid var(--sage); border-radius: 6px; font-family: var(--serif); color: var(--shadow); }
.abstain-note { margin: 0 0 16px; font-family: var(--serif); color: var(--shadow); }
.documents { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.documents li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ask-form { max-width: 760px; display: grid; gap: 10px; margin: 20px 0 24px; }
.ask-form label { font-weight: 600; }
.ask-form .button { justify-self: start; }
.answer { max-width: 900px; }
@media (max-width: 640px) {
  .app-user span { display: none; }
  .app-bar-inner { gap: 16px; }
  .app-bar .wordmark { display: none; }
  .search { flex-direction: column; }
}
.evidence-label { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
.evidence-label + blockquote { margin-top: 4px; }

/* Legal pages */
.legal { max-width: 720px; padding: 24px 0 56px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; color: var(--lens); margin: 0 0 8px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 6px; color: var(--lens); }
.legal p { margin: 0 0 12px; }
.legal-meta { color: var(--muted); font-size: 0.92rem; }
.legal-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-links nav, .auth-legal { display: flex; gap: 18px; }
.auth-legal { margin-top: 16px; font-size: 0.88rem; }

/* Console */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 22px; border-bottom: 1.5px solid var(--rule); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1.5px; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--lens); border-bottom-color: var(--sage); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot-ok { background: var(--sage); }
.dot-warn { background: #d9a441; }
.dot-bad { background: #c0392b; }
.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1.5px solid var(--rule); }
.table td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.mono-cell { font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; }
.badge-bad { background: #fbeceb; color: #7a1f17; }
.inline-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.inline-form input[type=email], .inline-form input[type=password], .inline-form input[type=text], .inline-form select {
  min-height: 42px; padding: 0 12px; border: 1.5px solid var(--rule); border-radius: var(--radius-control); font: 0.95rem var(--sans); background: var(--paper);
}
.inline-form .check { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.row-actions { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.mini > summary { cursor: pointer; color: var(--forest); font-weight: 600; font-size: 0.92rem; }
.mini form { display: flex; gap: 8px; margin-top: 8px; }
.mini input { min-height: 36px; padding: 0 10px; border: 1.5px solid var(--rule); border-radius: var(--radius-control); }
.key-once { border-color: var(--sage); }
.flash { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.flash li { padding: 12px 14px; border-radius: var(--radius-control); background: var(--mist); color: var(--forest); }
.flash .flash-error { background: #fbeceb; color: #7a1f17; }
@media (max-width: 760px) { .table { display: block; overflow-x: auto; } }

/* Billing */
.billing-status { margin: 0 0 6px; font-weight: 700; font-size: 1.2rem; color: var(--lens); }
.panel-alert .billing-status { color: #7a1f17; }
.billing-state .hint { margin: 0; }
.billing-manage { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 0; }
.interval-switch { display: inline-flex; margin: 8px 0 18px; border: 1.5px solid var(--rule); border-radius: var(--radius-control); background: var(--paper); overflow: hidden; }
.interval-switch a { padding: 10px 18px; text-decoration: none; color: var(--muted); font-weight: 600; }
.interval-switch a[aria-current="page"] { background: var(--lens); color: var(--paper); }
.interval-switch span { font-weight: 400; font-size: 0.85rem; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 12px; padding: 24px; }
.plan h2 { margin: 0; font-size: 1.25rem; color: var(--lens); }
.plan-price { margin: 0; color: var(--muted); }
.plan-price strong { font-size: 2rem; letter-spacing: -0.03em; color: var(--ink); }
.plan .hint { margin: -6px 0 0; }
.plan-pitch { margin: 0; font-family: var(--serif); color: var(--shadow); }
.plan-limits { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.plan form, .plan > .button { margin-top: auto; }
.plan form .button { width: 100%; }
.plan-quiet { background: transparent; border-style: dashed; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* Public navigation, pricing, docs */
.public-nav { display: flex; align-items: center; gap: 22px; }
.public-nav a:not(.button) { color: var(--forest); text-decoration: none; font-weight: 600; }
.public-nav a[aria-current="page"]:not(.button) { color: var(--lens); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.legal-links nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.auth { min-height: auto; padding-top: 24px; padding-bottom: 56px; }
.pricing, .docs { padding: 12px 0 64px; }
.pricing .lede, .docs .lede { max-width: 680px; color: var(--muted); margin: 0 0 24px; }
.pricing-notes { margin-top: 40px; max-width: 760px; }
.pricing-notes h2, .docs h2 { color: var(--lens); font-size: 1.3rem; margin: 0 0 12px; }
.pricing-notes dt, .docs-params dt { font-weight: 700; margin-top: 12px; }
.pricing-notes dd, .docs-params dd { margin: 4px 0 0; color: var(--muted); }
.plan-current { border-color: var(--sage); }
.docs { max-width: 860px; }
.docs section { margin-top: 36px; }
.docs-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 8px; }
.docs-routes { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.docs-routes th, .docs-routes td { text-align: left; padding: 10px 8px; border-bottom: 1.5px solid var(--rule); vertical-align: top; }
.docs code { font-family: var(--mono); font-size: 0.9em; }
@media (max-width: 640px) {
  .public-nav { gap: 14px; }
  .public-nav a[href="/docs/"] { display: none; }
  .public-nav .button { padding: 0 12px; min-height: 38px; font-size: 0.92rem; }
  .site-header .wordmark { display: none; }
  .docs-routes td { display: block; border: 0; padding: 4px 0; }
  .docs-routes tr { display: block; padding: 10px 0; border-bottom: 1.5px solid var(--rule); }
  .docs-routes thead { display: none; }
}
.chosen-offer { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-control); background: var(--mist); color: var(--shadow); font-weight: 600; }
.chosen-offer a { margin-left: 6px; font-weight: 400; }
.subscribe { max-width: 620px; }
.subscribe-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 18px 0 10px; }
.lede-app { color: var(--muted); margin: 0 0 18px; }
.plan-badge { padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--forest); font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.plan-badge:hover, .plan-badge[aria-current="page"] { background: var(--lens); color: var(--paper); }
.plan-badge-alert { background: #fbeceb; color: #7a1f17; }
@media (max-width: 640px) { .app-bar-inner { flex-wrap: wrap; row-gap: 6px; padding-bottom: 10px; } .plan-badge { order: 3; } }
.plan-badge-alert[aria-current="page"], .plan-badge-alert:hover { background: #7a1f17; color: var(--paper); }
.company-row { display: flex; align-items: center; gap: 12px; }
.company-row > a { flex: 1; }
.remove-form { margin: 0; }
.add-company { margin-bottom: 8px; }
.add-field { position: relative; flex: 1; }
.suggestions {
  position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px;
  list-style: none; max-height: 360px; overflow-y: auto; background: var(--paper);
  border: 1.5px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 21, 11, .12);
}
.suggestion { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.suggestion[aria-selected="true"] { background: var(--mist); }
.suggestion-name { font-weight: 700; color: var(--ink); }
.suggestion-meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.suggestion-registry { margin-top: 4px; border-top: 1.5px solid var(--rule); border-radius: 0 0 6px 6px; }
.suggestion-registry .suggestion-name { font-weight: 600; color: var(--forest); }
.suggestion-registry .suggestion-name::before { content: "→ "; color: var(--sage); }
.suggestion-registry:first-child { margin-top: 0; border-top: 0; border-radius: 6px; }
.candidates { max-width: 760px; }
.candidate-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.candidate-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1.5px solid var(--rule); }
.candidate-list form { margin: 0; }
@media (max-width: 640px) {
  .suggestion { flex-direction: column; gap: 2px; }
  .suggestion-meta { white-space: normal; }
}
.flash { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; max-width: 760px; }
.flash li { padding: 12px 16px; border-radius: var(--radius-control); background: var(--mist); color: var(--shadow); }
.flash .flash-error { background: #fbeceb; color: #7a1f17; }

/* Usage gauges (pure CSS: the width comes from a class, no inline style under the CSP) */
.gauges { display: grid; gap: 18px; margin: 0 0 16px; }
.gauge dt { color: var(--muted); font-size: 0.92rem; }
.gauge dd { margin: 4px 0 0; display: grid; gap: 6px; }
.gauge strong { font-size: 1.2rem; color: var(--lens); }
.gauge-bar { display: block; height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; max-width: 520px; }
.gauge-fill { display: block; height: 100%; background: var(--sage); }
.gauge-over .gauge-fill { background: #b7791f; }
.gauge-0 { width: 0%; }
.gauge-1 { width: 1%; }
.gauge-2 { width: 2%; }
.gauge-3 { width: 3%; }
.gauge-4 { width: 4%; }
.gauge-5 { width: 5%; }
.gauge-6 { width: 6%; }
.gauge-7 { width: 7%; }
.gauge-8 { width: 8%; }
.gauge-9 { width: 9%; }
.gauge-10 { width: 10%; }
.gauge-11 { width: 11%; }
.gauge-12 { width: 12%; }
.gauge-13 { width: 13%; }
.gauge-14 { width: 14%; }
.gauge-15 { width: 15%; }
.gauge-16 { width: 16%; }
.gauge-17 { width: 17%; }
.gauge-18 { width: 18%; }
.gauge-19 { width: 19%; }
.gauge-20 { width: 20%; }
.gauge-21 { width: 21%; }
.gauge-22 { width: 22%; }
.gauge-23 { width: 23%; }
.gauge-24 { width: 24%; }
.gauge-25 { width: 25%; }
.gauge-26 { width: 26%; }
.gauge-27 { width: 27%; }
.gauge-28 { width: 28%; }
.gauge-29 { width: 29%; }
.gauge-30 { width: 30%; }
.gauge-31 { width: 31%; }
.gauge-32 { width: 32%; }
.gauge-33 { width: 33%; }
.gauge-34 { width: 34%; }
.gauge-35 { width: 35%; }
.gauge-36 { width: 36%; }
.gauge-37 { width: 37%; }
.gauge-38 { width: 38%; }
.gauge-39 { width: 39%; }
.gauge-40 { width: 40%; }
.gauge-41 { width: 41%; }
.gauge-42 { width: 42%; }
.gauge-43 { width: 43%; }
.gauge-44 { width: 44%; }
.gauge-45 { width: 45%; }
.gauge-46 { width: 46%; }
.gauge-47 { width: 47%; }
.gauge-48 { width: 48%; }
.gauge-49 { width: 49%; }
.gauge-50 { width: 50%; }
.gauge-51 { width: 51%; }
.gauge-52 { width: 52%; }
.gauge-53 { width: 53%; }
.gauge-54 { width: 54%; }
.gauge-55 { width: 55%; }
.gauge-56 { width: 56%; }
.gauge-57 { width: 57%; }
.gauge-58 { width: 58%; }
.gauge-59 { width: 59%; }
.gauge-60 { width: 60%; }
.gauge-61 { width: 61%; }
.gauge-62 { width: 62%; }
.gauge-63 { width: 63%; }
.gauge-64 { width: 64%; }
.gauge-65 { width: 65%; }
.gauge-66 { width: 66%; }
.gauge-67 { width: 67%; }
.gauge-68 { width: 68%; }
.gauge-69 { width: 69%; }
.gauge-70 { width: 70%; }
.gauge-71 { width: 71%; }
.gauge-72 { width: 72%; }
.gauge-73 { width: 73%; }
.gauge-74 { width: 74%; }
.gauge-75 { width: 75%; }
.gauge-76 { width: 76%; }
.gauge-77 { width: 77%; }
.gauge-78 { width: 78%; }
.gauge-79 { width: 79%; }
.gauge-80 { width: 80%; }
.gauge-81 { width: 81%; }
.gauge-82 { width: 82%; }
.gauge-83 { width: 83%; }
.gauge-84 { width: 84%; }
.gauge-85 { width: 85%; }
.gauge-86 { width: 86%; }
.gauge-87 { width: 87%; }
.gauge-88 { width: 88%; }
.gauge-89 { width: 89%; }
.gauge-90 { width: 90%; }
.gauge-91 { width: 91%; }
.gauge-92 { width: 92%; }
.gauge-93 { width: 93%; }
.gauge-94 { width: 94%; }
.gauge-95 { width: 95%; }
.gauge-96 { width: 96%; }
.gauge-97 { width: 97%; }
.gauge-98 { width: 98%; }
.gauge-99 { width: 99%; }
.gauge-100 { width: 100%; }
@media (max-width: 640px) {
  .company-list a { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
  .company-row { align-items: stretch; }
  .company-row > a { min-width: 0; }
  .company-list .badge { white-space: normal; }
  .remove-form { align-self: center; }
}
.op { border-top: 1.5px solid var(--rule); padding-top: 22px; }
.op h2 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 1.15rem; }
.op-method { font: 700 0.8rem var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--mist); color: var(--forest); }
.op-post { background: #e8f0fb; color: #1d4f91; }
.op-delete { background: #fbeceb; color: #7a1f17; }
.op-label { font-weight: 700; margin: 14px 0 6px; }
.docs h3 { margin: 22px 0 8px; color: var(--lens); }

.secret-once { border-color: var(--sage); background: var(--mist); }
.secret code { display: block; padding: 12px 14px; background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius-control); word-break: break-all; font-size: 0.95rem; }

/* Console "Today" board (11/10): one verdict, the day's bar, each company's journey */
.today { --light: var(--sage); }
.today-blocked { --light: #c0392b; border-color: #e7b3ad; }
.today-idle { --light: #9aa5a0; }
.today-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.today-head h2 { margin: 0 0 4px; }
.today-light { width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--light); box-shadow: 0 0 0 5px color-mix(in srgb, var(--light) 22%, transparent); }
.today-lines { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.today-blocked .today-lines { color: #7a1f17; }
.today-beat { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.today-bars { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: 20px 0 8px; }
.today-label { margin: 0 0 8px; }
.daybar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--mist); }
.daybar > span { display: block; height: 100%; }
.daybar-done { background: var(--forest); }
.daybar-working { background: var(--sage); }
.daybar-failed { background: #c0392b; }
.daybar-todo { background: var(--mist); }
.daybar-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.daybar-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.legend-done::before { background: var(--forest); }
.legend-working::before { background: var(--sage); }
.legend-failed::before { background: #c0392b; }
.legend-todo::before { background: var(--rule); }
.journeys { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.journey { padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 10px; display: grid; gap: 10px; }
.journey-stuck, .journey-failed { border-color: #e7b3ad; background: #fdf5f4; }
.journey-late, .journey-retrying { border-color: #ecd3a6; background: #fdf8ef; }
.journey-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.health-failed, .health-stuck { background: #fbeceb; color: #7a1f17; }
.health-late, .health-retrying { background: #fbf1df; color: #7a4b0b; }
.journey .gauge-bar { max-width: none; }
.journey .hint { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding-top: 22px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.step::before { content: ""; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); z-index: 1; }
.step::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--rule); }
.step:first-child::after { display: none; }
.step-done { color: var(--forest); }
.step-done::before { background: var(--forest); border-color: var(--forest); }
.step-done::after, .step-current::after { background: var(--forest); }
.step-current { color: var(--lens); font-weight: 700; }
.step-current::before { background: var(--sage); border-color: var(--forest); box-shadow: 0 0 0 4px rgba(97,158,125,.3); }
.step-failed { color: #7a1f17; font-weight: 700; }
.step-failed::before { background: #c0392b; border-color: #c0392b; }
@media (max-width: 640px) {
  .today-head { grid-template-columns: auto 1fr; }
  .today-beat { grid-column: 2; white-space: normal; }
  .today-bars { grid-template-columns: 1fr; }
  .step { font-size: 0.75rem; }
}
.journey-actions { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.journey-actions form { margin: 0; }
.button-small { min-height: 34px; padding: 6px 16px; font-size: 0.9rem; }
.journey-log { flex: 1; min-width: 0; }
.journey-log summary { cursor: pointer; color: var(--forest); font-weight: 600; font-size: 0.9rem; padding: 6px 0; }
.journey-log .table { font-size: 0.85rem; }
.journey-log { overflow-x: auto; }

/* Personal hero of a Reachline email link (13/10): reachline.ai/intro.js replaces the hero's
   title and lede with the prospect's intro and adds a "For First name, Company" line above —
   no box, the site's own look. While it waits (2.5 s at most), the hero stays hidden. */
.rl-attente [data-reachline-titre],
.rl-attente [data-reachline-valeur] { visibility: hidden; }
.rl-salut { color: var(--muted); font-size: 0.95rem; font-weight: 600; margin: 0 0 14px; }
.rl-perso .hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); max-width: 17ch; }

/* Console › Services (13/10): state badges and the mini log of each background service */
.badge-late { background: #fdf3dc; color: #7a5410; }
.badge-off { background: #f1f2f1; color: var(--muted); }
.table.services td { vertical-align: top; }
.table.services .button { white-space: nowrap; }
.service-log { list-style: none; margin: 0; padding: 0; font-size: 0.82rem; line-height: 1.45; }
.service-log time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.service-log-bad { color: #7a1f17; }

/* Console › World events (14/10): operations header, row actions */
.ops-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ops-actions form, .ops-row-actions form { display: inline; }
.ops-row-actions { white-space: nowrap; }
.ops-row-actions .button, .ops-actions .button { white-space: nowrap; }
.ops-pipeline th, .ops-pipeline td { text-align: center; }
.hp-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.field select, .field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--rule);
  border-radius: var(--radius-control); font: 1rem var(--sans); background: var(--paper);
}
.field select { min-height: 46px; }
.field textarea { resize: vertical; }
.field select:focus, .field textarea:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px rgba(97, 158, 125, 0.28); }
.app-user a { font-weight: 600; font-size: 0.92rem; }
.support-panel { max-width: 640px; }
