/* access.css */
/* Sign-in, second factor, invitation and Intentica access pages.
   A split card: the form on the light side and, next to it, an ink panel with what
   the console promises. The form comes first in the document (it is the
   page's job); the panel is placed visually at the left on wide screens
   and as a short band below the form on phones. The development mailbox
   (access-shell--wide) has no panel. */
.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 30rem;
  margin: var(--e-6) auto;
  border: 1px solid var(--line);
  border-radius: var(--radio-2);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.access-shell--wide { max-width: 48rem; }

.access { padding: var(--e-6) var(--e-5); display: grid; gap: var(--e-4); align-content: start; }
.access h1 { margin: 0; font-size: var(--t-26); letter-spacing: -0.02em; }
.access__step {
  margin: 0;
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.access__text, .access__note { margin: 0; color: var(--text-2); }
.access__who {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e-2);
  margin: 0; padding: var(--e-2) var(--e-3);
  border-radius: var(--radio); background: var(--paper);
  font-size: var(--t-14); overflow-wrap: anywhere;
}
.access__who-label { font-weight: 600; color: var(--text-2); }
.access__form { display: grid; gap: var(--e-4); }
/* The access pages' actions: full width, large (48), all the same size. */
.access__form .button { width: 100%; justify-content: center; min-height: var(--control-lg); font-size: var(--t-15); }
/* The code: big, mono and spaced, so a typo is easy to see. */
.access__form input[autocomplete="one-time-code"] {
  font-family: var(--font-mono);
  font-size: var(--t-22);
  letter-spacing: 0.3em;
}
.access__key { display: grid; gap: var(--e-2); padding: var(--e-4); border: 1px solid var(--line); border-radius: var(--radio); background: var(--white); }
.access__label { margin: 0; font-weight: 600; }
.access__secret { margin: 0; font-size: var(--t-18); letter-spacing: 0.06em; word-break: break-all; }
.access__key .button { justify-self: start; }
.access__codes { columns: 2; margin: 0; padding: var(--e-4) var(--e-4) var(--e-4) var(--e-8); border: 1px solid var(--line); border-radius: var(--radio); background: var(--white); }
.access__codes li { padding: 2px 0; }
.access__links {
  list-style: none; margin: 0; padding: var(--e-4) 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: var(--e-2); font-size: var(--t-14);
}
.access__emails { margin: 0; padding-left: var(--e-4); display: grid; gap: var(--e-4); }
.access__emails pre { white-space: pre-wrap; word-break: break-all; }

.access-panel {
  display: grid; gap: var(--e-3); align-content: start;
  padding: var(--e-5);
  background: var(--ink);
  color: var(--white);
}
.access-panel__eyebrow {
  margin: 0;
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inverse-2);
}
.access-panel__lead { margin: 0; font-size: var(--t-18); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.access-panel__points { display: none; }

@media (min-width: 960px) {
  .access-shell { grid-template-columns: 5fr 6fr; max-width: 60rem; margin-top: var(--e-7); }
  .access-shell--wide { grid-template-columns: minmax(0, 1fr); max-width: 48rem; }
  .access-panel { grid-row: 1; grid-column: 1; padding: var(--e-7) var(--e-6); gap: var(--e-4); grid-template-rows: auto auto 1fr; }
  .access { grid-row: 1; grid-column: 2; padding: var(--e-7) var(--e-7); }
  .access-panel__lead { font-size: var(--t-26); line-height: 1.2; letter-spacing: -0.02em; }
  .access-panel__points {
    display: grid; gap: var(--e-3);
    list-style: none; margin: var(--e-6) 0 0; padding: var(--e-5) 0 0; align-self: end;
    border-top: 1px solid var(--line-on-ink);
    font-size: var(--t-15); color: var(--text-inverse-2);
  }
  .access-panel__points li { display: grid; grid-template-columns: var(--e-4) 1fr; gap: var(--e-3); align-items: baseline; }
  .access-panel__points li::before { content: ""; width: var(--e-3); height: 2px; background: var(--white); transform: translateY(-0.3em); }
}

@media (max-width: 600px) {
  .access-shell { margin: 0 calc(-1 * var(--e-4)); border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
  main:has(> .access-shell) { padding-top: 0; padding-bottom: 0; }
}

/* The card sits on paper; the top bar keeps its own background. */
body:has(.access-shell) { background: var(--paper); }
body:has(.access-shell) .bar { background: var(--white); }

/* Several ways in: a quiet divider before the email form. */
.access__or { display: flex; align-items: center; gap: var(--e-3); margin: 0; font-size: var(--t-13); color: var(--text-3); }
.access__or::before, .access__or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.access__passkey .field-form { text-align: left; }
.access__company { margin: 0; }
.access__company .button { width: 100%; justify-content: center; min-height: var(--control-lg); font-size: var(--t-15); }

/* bar.css */
/* Top bar (c-bar). Document navigation: light background, no sidebar; the
   current page is underlined in ink (violet in sandbox). */
.band-sandbox {
  height: 8px;
  background-color: var(--sandbox);
  background-image: repeating-linear-gradient(135deg, var(--veil-sandbox) 0 8px, transparent 8px 16px);
}

.bar { flex-wrap: wrap; gap: 0 var(--e-6); }

.bar__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--e-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bar__nav a {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 2px;
  font-size: var(--t-14);
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.bar__nav a:hover { color: var(--ink); }
.bar__nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.bar--sandbox .bar__nav a[aria-current="page"] { border-bottom-color: var(--sandbox); }

.bar__tools {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3);
  padding: var(--e-3) 0;
}

.search {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  width: 16.25rem;
  max-width: 100%;
  min-height: var(--control);
  padding: 0 var(--e-2) 0 var(--e-3);
  border: 1px solid var(--border-control);
  border-radius: var(--radio);
  background: var(--white);
}
.search:focus-within { outline: var(--focus); outline-offset: 2px; }
.search__icon { flex: none; fill: none; stroke: var(--text-3); stroke-width: 2; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--t-13);
  color: var(--ink);
}
.search input::placeholder { color: var(--text-3); opacity: 1; }

.bar__host {
  font-size: var(--t-12);
  color: var(--sandbox-dark);
  background: var(--sandbox-bg);
  padding: var(--e-2) var(--e-3);
  border-radius: 3px;
}

/* Who and where: organization over person, right-aligned to the tools. */
.bar__who { display: flex; flex-direction: column; align-items: flex-end; margin: 0; line-height: var(--lh-tight); text-align: right; min-width: 0; }
.bar__org { font-size: var(--t-14); font-weight: 600; color: var(--ink); }
.bar__person { font-size: var(--t-12); color: var(--text-3); overflow-wrap: anywhere; }
.bar--operation .bar__org { color: var(--white); }
.bar--operation .bar__person { color: var(--text-inverse-2); }

/* Phone and high zoom: the navigation becomes its own scrolling row,
   with the tools below. The page never scrolls sideways. */
@media (max-width: 900px) {
  .bar { gap: 0 var(--e-4); }
  .bar__nav { order: 3; width: 100%; overflow-x: auto; }
  .bar__nav ul { flex-wrap: nowrap; }
  .bar__nav a { min-height: 44px; white-space: nowrap; }
  .bar__tools { margin-left: auto; padding: var(--e-2) 0; }
}
@media (max-width: 600px) {
  .bar__tools { margin-left: 0; width: 100%; }
  .search { width: 100%; }
}

/* Assist mode: an amber band above the bar, in the flow of the page: it
   pushes everything down and never covers the bar or the content. */
.assist {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-2) var(--e-4);
  padding: var(--e-3) var(--e-6);
  background: var(--assist);
  color: var(--assist-text);
  font-size: var(--t-14);
}
.assist__icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.assist__exit { margin-left: auto; }
.assist :focus-visible { outline-color: var(--ink); }
@media (max-width: 600px) { .assist { padding: var(--e-3) var(--e-4); } }


/* Sign out: a form (POST with CSRF) that looks like one more button. */
.bar__exit { display: inline-flex; margin: 0; }

/* Mi cuenta: a plain link next to "Cerrar sesión". */
.bar__me { display: inline-flex; align-items: center; min-height: var(--control-sm); padding: 0 var(--e-2); font-size: var(--t-14); color: var(--text-2); text-decoration: none; border-radius: var(--radio); }
.bar__me:hover { color: var(--ink); text-decoration: underline; }
.bar__me:focus-visible { outline: var(--focus); outline-offset: 2px; }
.bar--operation .bar__me { color: var(--text-inverse-2); }
.bar--operation .bar__me:hover { color: var(--white); }
@media (pointer: coarse), (max-width: 600px) { .bar__me { min-height: var(--touch); } }
@media (max-width: 600px) { .bar__who { align-items: flex-start; text-align: left; margin-right: auto; } }

/* buttons.css */
/* Buttons. A link with class .button looks the same: actions that change
   nothing (Reintentar, Buscar en sandbox) are links and work without JS.

   Hierarchy: one primary (.button--1) per section; secondary (.button--2)
   for the other actions; tertiary (.button--3) for quiet ones next to a
   primary (Compartir, Cancelar). Heights: small 32, default 40, large 48
   (the main action of the sign-in pages); 44 at least on touch screens.
   Side by side, buttons share one height. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: var(--control-2);
  padding: 0 var(--e-4);
  border-radius: var(--radio);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--t-14);
  font-weight: 600;
  line-height: var(--lh-tight);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.button--1 { background: var(--accent); border-color: var(--accent); color: var(--white); }
.button--1:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.button--2 { background: var(--white); border-color: var(--border-control); color: var(--ink); }
.button--2:hover { border-color: var(--ink); color: var(--ink); }
.button--3 { background: transparent; color: var(--accent); padding: 0 var(--e-3); }
.button--3:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.button--small { min-height: var(--control-sm); padding: 0 var(--e-3); font-size: var(--t-13); }
.button--large { min-height: var(--control-lg); padding: 0 var(--e-5); font-size: var(--t-15); }
.button--border-dark { min-height: var(--control-sm); padding: 0 var(--e-3); background: transparent; border-color: currentColor; color: inherit; font-size: var(--t-13); }
.button--border-dark:hover { color: inherit; background: var(--veil-hover); }
.button[hidden] { display: none; }
.button:disabled, .button[aria-disabled="true"] { opacity: 1; background: var(--paper); border-color: var(--line-control); color: var(--text-3); cursor: not-allowed; }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; }

/* A row of actions: same height, aligned to the start, wraps cleanly. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-3); }

@media (pointer: coarse), (max-width: 600px) {
  .button, .button--small, .button--border-dark { min-height: var(--touch); }
}

/* catalog.css */
/* Only for /_components: the catalog layout, not a component. */
.catalog { display: flex; flex-direction: column; gap: var(--e-7); }
.catalog__index ol { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-4); margin: 0; padding: 0; list-style: none; font-size: var(--t-14); }
.catalog__block { display: flex; flex-direction: column; gap: var(--e-4); scroll-margin-top: var(--e-4); }
.catalog__block > h2 { font-size: var(--t-22); padding-bottom: var(--e-2); border-bottom: 1px solid var(--line); }
.catalog__sub { font-size: var(--t-13); font-weight: 600; color: var(--text-3); }
.catalog__note { font-size: var(--t-14); color: var(--text-2); max-width: 46rem; }
.catalog__frame { border: 1px solid var(--line); border-radius: var(--radio-2); overflow: hidden; }
.catalog__frame--assist .assist { position: static; }
.catalog__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--e-4) var(--e-6); }
.catalog__rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--e-5) var(--e-7); }
.catalog__labels { display: flex; flex-wrap: wrap; gap: var(--e-3) var(--e-5); margin: 0; padding: 0; list-style: none; }
.catalog__labels li { display: inline-flex; align-items: center; gap: var(--e-2); }
.catalog__stack { display: flex; flex-direction: column; gap: var(--e-3); }
.catalog__list { margin: 0; padding: 0; list-style: none; }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--e-5); }
.catalog__panel { display: flex; flex-direction: column; gap: var(--e-4); padding: var(--e-5); border: 1px solid var(--line); border-radius: var(--radio-2); min-width: 0; }
.catalog__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--e-5); max-width: 40rem; }
.seg--light-wrap .seg a[aria-current="true"] { background: var(--paper); color: var(--ink); }

.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--e-3); margin: 0; padding: 0; list-style: none; }
.palette__item { display: flex; flex-direction: column; gap: var(--e-2); }
.palette__sample { display: block; height: 72px; border-radius: var(--radio); }
.palette__sample--ink { background: var(--ink); }
.palette__sample--blue { background: var(--blue); }
.palette__sample--paper { background: var(--paper); border: 1px solid var(--line); }
.palette__sample--sandbox { background-color: var(--sandbox); background-image: repeating-linear-gradient(135deg, var(--veil-sandbox-soft) 0 8px, transparent 8px 16px); }
.palette__name { font-size: var(--t-14); font-weight: 600; }
.risk-sample { display: flex; flex-direction: column; gap: var(--e-1); padding: var(--e-3) var(--e-4); border-radius: var(--radio); }
.risk-sample__name { font-size: var(--t-13); font-weight: 600; }
.risk-sample .key { color: inherit; }

.types { display: flex; flex-direction: column; gap: var(--e-4); border-top: 1px solid var(--line); padding-top: var(--e-5); }
.types__large { font-size: var(--t-44); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.types__text { color: var(--text-2); max-width: 46rem; }
.types__code { margin: 0; font-size: var(--t-14); background: var(--ink); color: var(--text-code); border-radius: var(--radio); padding: var(--e-4) var(--e-4); line-height: 1.75; overflow-x: auto; white-space: pre-wrap; }
.types__formats { font-size: var(--t-14); color: var(--text-2); }

/* Fundamentals: the spacing scale drawn, the type scale written. */
.tokens-space { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-2); font-size: var(--t-14); }
.tokens-space li { display: grid; grid-template-columns: 4rem 9rem minmax(0, 1fr); align-items: center; gap: var(--e-3); }
.tokens-space__bar { height: var(--e-3); background: var(--accent); border-radius: 2px; }
.tokens-space__bar--1 { width: var(--e-1); } .tokens-space__bar--2 { width: var(--e-2); } .tokens-space__bar--3 { width: var(--e-3); }
.tokens-space__bar--4 { width: var(--e-4); } .tokens-space__bar--5 { width: var(--e-5); } .tokens-space__bar--6 { width: var(--e-6); }
.tokens-space__bar--7 { width: var(--e-7); }
.tokens-type--34 { font-size: var(--t-34); font-weight: 600; line-height: var(--lh-tight); }
.tokens-type--18 { font-size: var(--t-18); font-weight: 600; }
.tokens-type--15 { font-size: var(--t-15); }
.tokens-type--14 { font-size: var(--t-14); }
.tokens-type--13 { font-size: var(--t-13); color: var(--text-3); }
@media (max-width: 600px) { .tokens-space li { grid-template-columns: 3rem minmax(0, 1fr); } .tokens-space li > :last-child { grid-column: 1 / -1; } }

/* chart.css */
/* Bar chart (c-chart). Series use brand tokens, never the risk ones (those
   mean risk in this console); each one is at least 3:1 on white. */
.chart { display: flex; flex-direction: column; gap: var(--e-3); margin: 0; min-width: 0; }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--e-2) var(--e-4); }
.chart__title { font-size: var(--t-13); font-weight: 600; color: var(--text-2); }
.chart__legend { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); margin: 0; padding: 0; list-style: none; font-size: var(--t-13); }
.chart__legend li { display: inline-flex; align-items: center; gap: var(--e-2); }
.chart__dot { width: 10px; height: 10px; border-radius: 2px; }
.chart__plot { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.chart__svg, .chart__axis-y { display: block; overflow: visible; }
.chart__grid { stroke: var(--line-soft); stroke-width: 1; }
.chart__axis { stroke: var(--ink); stroke-width: 1; }
.chart__value, .chart__tick { font-family: var(--font-mono); font-size: 11px; fill: var(--text-3); }
.chart__s1 { fill: var(--blue); background: var(--blue); }
.chart__s2 { fill: var(--ink); background: var(--ink); }
.chart__s3 { fill: var(--brand-rule); background: var(--brand-rule); }
.chart__s4 { fill: var(--blue-hover); background: var(--blue-hover); }
.chart rect { stroke: var(--white); stroke-width: 1; }
@media (forced-colors: active) {
  .chart__s1, .chart__s2, .chart__s3, .chart__s4 { fill: CanvasText; }
  .chart rect { stroke: Canvas; }
}

/* Value tip (js/chart.js): the hit layer sits over the bars, in the same
   grid cell; the tip floats above the plot. */
.chart__plot { position: relative; }
.chart__svg, .chart__hits { grid-column: 2; grid-row: 1; }
.chart__axis-y { grid-column: 1; grid-row: 1; }
.chart__hits { display: block; overflow: visible; }
.chart .chart__hit { fill: transparent; stroke: none; cursor: default; }
.chart .chart__hit:focus { outline: none; }
.chart .chart__hit:focus-visible, .chart .chart__hit.is-active { fill: var(--line-soft); fill-opacity: 0.5; }
.chart .chart__hit:focus-visible { stroke: var(--ink); stroke-width: 2; }
.chart__tip { position: absolute; top: 0; z-index: 2; min-width: 9rem; max-width: 16rem; padding: var(--e-2) var(--e-3);
  background: var(--white); color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; box-shadow: var(--shadow-card);
  font-size: var(--t-13); line-height: 1.4; pointer-events: none; transform: translateX(-50%); }
.chart__tip-title { font-weight: 600; }
.chart__tip-total { font-weight: 600; border-top: 1px solid var(--line-soft); margin-top: 2px; padding-top: 2px; }
.chart__tip .mono { font-family: var(--font-mono); }
@media (forced-colors: active) {
  .chart .chart__hit.is-active, .chart .chart__hit:focus-visible { fill: Highlight; fill-opacity: 0.3; }
  .chart__tip { border-color: CanvasText; }
}

/* dialog.css */
/* Session-about-to-expire dialog (c-dialog-session): native <dialog>. */
.dialog {
  width: min(28rem, calc(100vw - 2 * var(--e-4)));
  padding: var(--e-5);
  border: 1px solid var(--ink);
  border-radius: var(--radio-2);
  background: var(--white);
  color: var(--ink);
}
.dialog::backdrop { background: var(--bg-dialog); }
.dialog__title { font-size: var(--t-16); margin-bottom: var(--e-3); }
.dialog__text { font-size: var(--t-14); color: var(--text-2); margin-bottom: var(--e-4); }
.dialog__actions, .dialog__actions form { display: flex; flex-wrap: wrap; gap: var(--e-2); }

/* In /_components it is also shown inline, not opened. */
.dialog--sample { position: static; display: block; margin: 0; width: 100%; max-width: 28rem; }

/* distribution.css */
/* Distribution (c-distribution): split bar with a legend. */
.distribution { display: flex; flex-direction: column; gap: var(--e-3); }
.distribution__label { font-size: var(--t-13); font-weight: 600; color: var(--text-2); }
.distribution__bar { display: block; }
.distribution__span--low { fill: var(--risk-low); background: var(--risk-low); }
.distribution__span--medium { fill: var(--risk-medium); background: var(--risk-medium); }
.distribution__span--high { fill: var(--risk-high); background: var(--risk-high); }
.distribution__span--unverified { fill: var(--unverified); background: var(--unverified); }
.distribution__legend { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); margin: 0; padding: 0; list-style: none; font-size: var(--t-13); }
.distribution__legend li { display: inline-flex; align-items: center; gap: var(--e-2); }
.distribution__dot { width: 10px; height: 10px; border-radius: 2px; }
@media (forced-colors: active) { .distribution__span--low, .distribution__span--medium, .distribution__span--high { fill: CanvasText; } }

/* field.css */
/* Fields with a technical key (c-fields / c-field): Spanish label, the API
   key below it in mono, then the value. */
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr));
  column-gap: var(--e-6);
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--e-1);
  padding: var(--e-3) 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.field__label { display: flex; flex-direction: column; font-size: var(--t-13); color: var(--text-3); }
.field__value { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); font-size: var(--t-15); font-weight: 500; min-width: 0; }
.field__value > span { min-width: 0; overflow-wrap: anywhere; }

.secret {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  font-weight: 400;
  background: var(--paper);
  padding: var(--e-2) var(--e-3);
  border-radius: var(--radio);
  overflow-wrap: anywhere;
}

/* form.css */
/* Form fields (c-field-form). */
/* Label 8 px above the field, help 8 px below; fields 16 px apart. */
.field-form { display: flex; flex-direction: column; gap: var(--e-2); }
.field-form label { font-size: var(--t-14); font-weight: 500; line-height: var(--lh-tight); color: var(--text-2); }
.field-form input {
  min-height: var(--control-2);
  padding: 0 var(--e-3);
  border: 1px solid var(--border-control);
  border-radius: var(--radio);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-15);
  max-width: 100%;
}
.field-form input:focus-visible { outline: var(--focus); outline-offset: 1px; }
.field-form--error input { border: 2px solid var(--error); }
.field-form__error { font-size: var(--t-13); line-height: var(--lh-snug); color: var(--risk-high); }
.field-form__help { max-width: var(--measure); font-size: var(--t-13); line-height: var(--lh-snug); color: var(--text-3); }
.field-form select {
  min-height: var(--control-2);
  padding: 0 var(--e-3);
  border: 1px solid var(--border-control);
  border-radius: var(--radio);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-15);
  max-width: 100%;
}

/* A checkbox with its label (and optional help) on the same line. The box
   is 20 px with a 24 px hit area. */
.field-check { display: grid; grid-template-columns: 24px 1fr; column-gap: var(--e-2); align-items: center; }
.field-check input { width: 20px; height: 20px; margin: 2px; accent-color: var(--accent); }
.field-check input:focus-visible { outline: var(--focus); outline-offset: 2px; }
.field-check label { font-size: var(--t-14); color: var(--ink); }
.field-check .field-form__help { grid-column: 2; }

/* A group of fields that belong to one choice (the corporate sign-in
   protocols): a quiet box with its legend. */
.form-group { display: grid; gap: var(--e-3); margin: 0; padding: var(--e-3) var(--e-4) var(--e-4); border: 1px solid var(--line-soft); border-radius: var(--radio); }
.form-group legend { padding: 0 var(--e-1); font-size: var(--t-13); font-weight: 600; color: var(--text-2); }
.field-form textarea { min-height: 6rem; padding: 8px var(--e-3); border: 1px solid var(--border-control); border-radius: var(--radio); background: var(--white); color: var(--ink); font-family: var(--font-mono); font-size: var(--t-13); max-width: 100%; }
.field-form textarea:focus-visible { outline: var(--focus); outline-offset: 1px; }
.field-form--error textarea { border: 2px solid var(--error); }

/* Forms inside the console (not the sign-in pages): fields 16 px apart,
   one readable column, actions at normal size after the last field.
   .form-share is the same layout (kept name). */
.form-stack, .form-share { display: grid; gap: var(--e-4); max-width: 36rem; margin: 0; }
.form-share { margin-block: var(--e-4); }
.form-stack select, .form-share select { min-height: var(--control-2); padding: 0 var(--e-3); border: 1px solid var(--border-control); border-radius: var(--radio); background: var(--white); color: var(--ink); font: inherit; font-size: var(--t-15); max-width: 100%; }
.form-stack .actions, .form-share .form-share__actions { margin-top: var(--e-2); }

/* A row of fields with an action at the end (invite a person): the
   controls line up on their input row even when one field has help text
   below it. */
.form-invite > .button, .form-invite > .actions { margin-top: calc(var(--t-14) * 1.2 + var(--e-2)); }
@media (max-width: 700px) { .form-invite > .button, .form-invite > .actions { margin-top: 0; } }

/* manages.css */
/* "Lo gestiona Intentica" (c-manages). */
.manages {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--e-2);
  font-size: var(--t-12);
  line-height: 1.5;
  color: var(--text-3);
}
.manages svg { flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }

/* notice.css */
/* Service notices (c-notice). The written title says the type; color
   supports it. Band = full width, below the top bar. */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--e-1) var(--e-3);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--radio);
  font-size: var(--t-14);
  line-height: 1.5;
}
.notice__title { white-space: nowrap; }
.notice__text { flex: 1 1 18rem; min-width: 0; }
.notice__link { margin-left: auto; color: inherit; font-weight: 600; }
.notice__link:hover { color: inherit; }
.notice--band { border-radius: 0; padding: var(--e-3) var(--e-6); }
@media (max-width: 600px) { .notice--band { padding: var(--e-3) var(--e-4); } }

.notice--delays { background: var(--risk-medium-bg); color: var(--notice-delays-text); }
.notice--delays .notice__title { color: var(--risk-medium); }
.notice--outage { background: var(--risk-high-bg); color: var(--notice-outage-text); }
.notice--outage .notice__title { color: var(--risk-high); }
.notice--scheduled { background: var(--blue-bg); color: var(--notice-scheduled-text); }
.notice--resolved { background: var(--risk-low-bg); color: var(--notice-resolved-text); }
.notice--resolved .notice__title { color: var(--risk-low); }
@media (forced-colors: active) { .notice { border: 1px solid CanvasText; } }

/* risk.css */
/* Risk label (c-risk). The level is always written: color
   supports it, never replaces it. */
.risk {
  display: inline-block;
  padding: var(--e-1) 8px;
  border-radius: 3px;
  font-family: var(--font);
  font-size: var(--t-12);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.risk .key { color: inherit; }
.risk--low { color: var(--risk-low); background: var(--risk-low-bg); }
.risk--medium { color: var(--risk-medium); background: var(--risk-medium-bg); }
.risk--high, .risk--critical { color: var(--risk-high); background: var(--risk-high-bg); }
.risk--critical { box-shadow: inset 0 0 0 1px var(--risk-high); }
.risk--unverified { color: var(--unverified); background: var(--unverified-bg); }
.risk--large { font-size: var(--t-15); padding: var(--e-2) 12px; }
@media (forced-colors: active) { .risk { border: 1px solid CanvasText; } }

/* rule.css */
/* Graduated 0–100 rule (c-rule). Ink base, 11 marks, accent-colored marker. */
.rule { display: flex; flex-direction: column; gap: var(--e-2); min-width: 0; }
.rule__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--e-3); }
.rule__label { font-size: var(--t-15); font-weight: 500; }
.rule__label .key { margin-left: 2px; }
.rule__value { font-size: var(--t-22); font-weight: 500; font-variant-numeric: tabular-nums; }
.rule__scale { display: block; overflow: visible; }
.rule__base { stroke: var(--ink); stroke-width: 1; }
.rule__brand { fill: var(--brand-rule); }
.rule__marker { fill: var(--blue); }
@media (forced-colors: active) {
  .rule__base { stroke: CanvasText; }
  .rule__brand { fill: CanvasText; }
  .rule__marker { fill: Highlight; }
}

/* screens.css */
/* Shared layout of the screens (02–10): blocks, grids and notes.
   Not a component: it is the frame the components go into. */
.screen { --gap: var(--e-7); display: flex; flex-direction: column; gap: var(--gap); }
.screen--dense { --gap: var(--e-6); }
.head__text { display: flex; flex-direction: column; gap: var(--e-2); min-width: 0; }
.head__actions { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.breadcrumbs { font-size: var(--t-13); color: var(--text-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--e-2); margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--e-2); color: var(--text-3); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr)); gap: var(--e-7) var(--e-7); }
.grid-lateral { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--e-7); align-items: start; }
@media (max-width: 900px) { .grid-lateral { grid-template-columns: minmax(0, 1fr); } }

.block { display: flex; flex-direction: column; gap: var(--e-4); min-width: 0; }
.block > p:not([class]), .block > ul:not([class]), .block > ol:not([class]) { max-width: var(--measure); }
.block--narrow { max-width: var(--measure); }
.block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--e-2) var(--e-4); }
.block__meta, .block__note { max-width: var(--measure); font-size: var(--t-13); line-height: var(--lh-snug); color: var(--text-3); }
.block--rule { border-top: 1px solid var(--ink); padding-top: var(--e-5); }

.note-paper { background: var(--paper); border-radius: var(--radio); padding: var(--e-3) var(--e-4); font-size: var(--t-13); line-height: 1.55; color: var(--text-2); }
.note-paper strong { color: var(--ink); }
.note-border { border-left: 3px solid var(--ink); padding: var(--e-1) 0 var(--e-1) var(--e-4); font-size: var(--t-15); line-height: 1.6; color: var(--text-2); }
.note-border strong { color: var(--ink); }

.actions-list { display: flex; flex-direction: column; gap: var(--e-2); }
.actions-list__title { font-size: var(--t-13); font-weight: 600; color: var(--text-2); }
.actions-list dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e-2) var(--e-4); margin: 0; padding-top: var(--e-2); border-top: 1px solid var(--line-soft); font-size: var(--t-13); }
.actions-list dl > div { display: contents; }
.actions-list dd { margin: 0; }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.levels__item { display: flex; flex-direction: column; gap: var(--e-1); padding: var(--e-4) 0; }
.levels__item dd { margin: 0; }
.levels__label { font-size: var(--t-13); font-weight: 600; }
.levels__label--low { color: var(--risk-low); }
.levels__label--medium { color: var(--risk-medium); }
.levels__label--high { color: var(--risk-high); }
.levels__value { font-size: var(--t-26); font-weight: 600; font-variant-numeric: tabular-nums; }

.totals { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e-2) var(--e-6); font-size: var(--t-14); }
.totals strong { font-size: var(--t-22); color: var(--ink); }

/* Record and validation */
.record__title { font-size: var(--t-34); font-weight: 600; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e-1) var(--e-3); }
.record__title .mono { font-weight: 500; font-size: 0.9em; }
.record__arrow { color: var(--text-3); font-weight: 400; }
.record__verdict { display: flex; flex-wrap: wrap; gap: var(--e-5) var(--e-6); align-items: flex-end; }
.record__verdict > div { display: flex; flex-direction: column; gap: var(--e-2); }
.record__action { font-size: var(--t-18); font-weight: 600; }
.score { display: flex; align-items: baseline; gap: var(--e-3); }
.score__value { font-size: 3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.score__of { font-size: var(--t-15); color: var(--text-3); }
.score .risk { margin-left: auto; }
.reasons { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e-1) var(--e-3); margin: 0; padding-top: var(--e-3); border-top: 1px solid var(--ink); font-size: var(--t-14); }
.reasons > div { display: contents; }
.reasons dd { margin: 0; font-family: var(--font-mono); font-size: var(--t-13); }
.flags { margin: 0; }
.flags > div { display: flex; justify-content: space-between; gap: var(--e-3); padding: var(--e-3) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--t-14); }
.flags dd { margin: 0; }
.flags__yes { font-weight: 600; color: var(--risk-medium); }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.counters > div { display: flex; flex-direction: column; gap: 2px; padding: var(--e-3) 0; }
.counters dt { font-size: var(--t-12); color: var(--text-3); order: 2; }
.counters dd { margin: 0; font-size: var(--t-22); font-weight: 600; order: 1; }
.counters dd.key { order: 3; font-size: var(--t-key); font-weight: 400; }
.line-time { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--e-4); margin: 0; padding: 0; list-style: none; }
.line-time li { display: flex; flex-direction: column; gap: var(--e-1); border-left: 2px solid var(--ink); padding-left: var(--e-3); font-size: var(--t-14); }
.line-time li[aria-current] { border-left-color: var(--blue); }
.line-time time { font-family: var(--font-mono); font-size: var(--t-12); color: var(--text-3); }
.events { margin: 0; padding: 0; list-style: none; }
.events li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--e-3); padding: var(--e-2) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--t-14); }
.events li:last-child { border-bottom: 0; }
.events time { font-family: var(--font-mono); font-size: var(--t-12); color: var(--text-3); }
.json { margin: 0; font-family: var(--font-mono); font-size: var(--t-13); background: var(--ink); color: var(--text-code); border-radius: var(--radio); padding: var(--e-4) var(--e-4); line-height: 1.6; overflow-x: auto; max-height: 32rem; }
.json:focus-visible { outline-offset: 2px; }
details.dropdown > summary { cursor: pointer; font-size: var(--t-14); font-weight: 600; color: var(--accent); }
details.dropdown[open] > summary { margin-bottom: var(--e-3); }
.lists { margin: 0; }
.lists > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-1) var(--e-3); padding: var(--e-3) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--t-14); }
.lists dd { margin: 0; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.figures > div { display: flex; flex-direction: column; gap: var(--e-1); padding: var(--e-4) 0; }
.figures dt { font-size: var(--t-13); color: var(--text-3); }
.figures dd { margin: 0; font-size: var(--t-18); font-weight: 600; }
.images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-4); margin: 0; padding: 0; list-style: none; }
.images li { display: flex; flex-direction: column; gap: var(--e-2); font-size: var(--t-13); font-weight: 500; }
.images__frame { aspect-ratio: 3 / 4; border-radius: var(--radio); background: var(--skeleton); display: flex; align-items: center; justify-content: center; padding: var(--e-2); text-align: center; color: var(--text-3); font-size: var(--t-12); font-weight: 400; }

/* Call log filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--e-4); align-items: end; }
.filters__group { display: flex; flex-direction: column; gap: var(--e-2); font-size: var(--t-13); font-weight: 500; color: var(--text-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.filters__group legend { padding: 0; margin-bottom: var(--e-2); }
.filters select, .filters input { min-height: var(--control-2); padding: 0 var(--e-3); border: 1px solid var(--border-control); border-radius: var(--radio); background: var(--white); color: var(--ink); font: inherit; font-size: var(--t-14); max-width: 100%; }
.filters__actions { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--e-3); font-size: var(--t-13); color: var(--text-3); }
.pagination ul { display: flex; gap: var(--e-2); margin: 0; padding: 0; list-style: none; }
.pagination [aria-disabled="true"] { pointer-events: none; }

/* Sandbox */
.tester { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--e-6); align-items: start; }
@media (max-width: 900px) { .tester { grid-template-columns: minmax(0, 1fr); } }
.cases { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.cases li { border-bottom: 1px solid var(--line-soft); }
.cases button { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--e-1) var(--e-3); width: 100%; padding: var(--e-3) var(--e-2); background: none; border: 0; text-align: left; font: inherit; font-size: var(--t-13); color: var(--ink); cursor: pointer; }
.cases button:hover { background: var(--paper); }
.cases button[aria-pressed="true"] { background: var(--sandbox-bg); }
.cases__id { font-family: var(--font-mono); color: var(--sandbox-dark); }
.cases__expected { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-2); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--e-3); align-items: end; }
.response__head { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-4); align-items: baseline; font-size: var(--t-13); color: var(--text-3); }
.headers { margin: 0; font-family: var(--font-mono); font-size: var(--t-12); color: var(--text-2); }

/* Developers: section side menu */
.with-menu { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--e-6); align-items: start; }
@media (max-width: 900px) { .with-menu { grid-template-columns: minmax(0, 1fr); } }
.menu-lateral ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.menu-lateral a { display: flex; flex-direction: column; min-height: var(--control-2); justify-content: center; padding: var(--e-1) var(--e-3); border-left: 2px solid var(--line-soft); color: var(--text-2); font-size: var(--t-14); font-weight: 500; text-decoration: none; }
.menu-lateral a:hover { color: var(--ink); background: var(--paper); }
.menu-lateral a[aria-current="page"] { border-left-color: var(--ink); background: var(--paper); color: var(--ink); font-weight: 600; }
.env-sandbox .menu-lateral a[aria-current="page"] { border-left-color: var(--sandbox); }
@media (max-width: 900px) { .menu-lateral ul { flex-direction: row; flex-wrap: wrap; gap: var(--e-2); } .menu-lateral a { border-left: 0; border-bottom: 2px solid var(--line-soft); } .menu-lateral a[aria-current="page"] { border-bottom-color: var(--ink); } }
.row-value { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--e-3); padding: var(--e-5) 0; border-bottom: 1px solid var(--line-soft); }
.row-value:last-child { border-bottom: 0; }
.row-value__text { display: flex; flex-direction: column; gap: var(--e-1); flex: 1 1 20rem; min-width: 0; }
.row-value__text h2, .row-value__text h3 { font-size: var(--t-16); }
.row-value__help { font-size: var(--t-13); color: var(--text-3); }
.records { display: flex; flex-wrap: wrap; gap: var(--e-2); margin: 0; padding: 0; list-style: none; }

/* Superadmin */
.bar--operation { background: var(--ink); border-bottom-color: var(--ink); color: var(--white); }
.bar--operation .bar__nav a { color: var(--text-inverse-2); }
.bar--operation .bar__nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.bar--operation a { color: var(--white); }
.bar--operation :focus-visible { outline-color: var(--white); }

/* Team */
.matrix td.yes { font-weight: 600; color: var(--risk-low); }
.matrix td.no { color: var(--text-key); }
.person__email { display: block; font-size: var(--t-13); color: var(--text-3); }
fieldset.disabled { border: 0; margin: 0; padding: 0; }
.form-invite { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: var(--e-3); align-items: start; }
@media (max-width: 700px) { .form-invite { grid-template-columns: minmax(0, 1fr); } }
.form-invite select { min-height: var(--control-2); padding: 0 var(--e-3); border: 1px solid var(--border-control); border-radius: var(--radio); background: var(--white); color: var(--ink); font: inherit; font-size: var(--t-14); }

/* Service status */
.capabilities { margin: 0; }
.capabilities > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-1) var(--e-3); padding: var(--e-3) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--t-14); }
.capabilities dd { margin: 0; display: flex; flex-wrap: wrap; gap: var(--e-2); align-items: center; }

/* Team: deactivate accounts, one per line. */
.list-actions { list-style: none; margin: var(--e-2) 0; padding: 0; display: grid; gap: var(--e-2); }
.list-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); margin: 0; }
.record__full { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); margin: 0 0 var(--e-4); }

/* Billing · Consumo: month picker, indicators and the reconciliation. */
.month-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--e-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.kpis__item { display: flex; flex-direction: column; gap: var(--e-1); padding: var(--e-4) var(--e-4) var(--e-4) 0; }
.kpis__item dd { margin: 0; }
.kpis__label { font-size: var(--t-13); font-weight: 600; color: var(--text-2); }
.kpis__value { font-size: var(--t-26); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpis__item--main .kpis__value { font-size: var(--t-34); color: var(--accent); }
.kpis__delta { font-size: var(--t-13); color: var(--text-3); }
.ledger { display: flex; flex-direction: column; margin: 0; font-size: var(--t-15); }
.ledger__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--e-4); padding: var(--e-2) 0; border-bottom: 1px solid var(--line-soft); }
.ledger__row dt, .ledger__row dd { margin: 0; }
.ledger__row--result { font-weight: 600; border-bottom-color: var(--ink); }
.ledger__sign { display: inline-block; width: 1.5em; color: var(--text-3); }
.ledger--explain .ledger__row { flex-wrap: wrap; row-gap: var(--e-1); }
.ledger--explain dt { flex: 1 1 12rem; }
.ledger--explain dd { flex: 1 1 14rem; padding-left: 1.5em; color: var(--text-3); font-size: var(--t-14); }

/* Share a billing report (/facturacion/reportes/{id}/compartir). */
.form-share__actions { display: flex; flex-wrap: wrap; gap: var(--e-3); align-items: center; }

/* A pending organization (invited, nobody accepted yet). */
.badge-pending { display: inline-flex; vertical-align: middle; margin-left: var(--e-2); }
.inline-form { display: inline-flex; margin: 0; }

/* Billing · a month: header row, KPI strip, then one row per file. */
.report { display: grid; gap: var(--e-5); padding: var(--e-5) 0; border-top: 1px solid var(--ink); }
.report__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-3); }
.report__month { font-size: var(--t-22); letter-spacing: -0.01em; }
.report__head .report__meta { margin-left: auto; font-size: var(--t-14); color: var(--text-3); }
.kpis--compact { border-top: 0; }
.kpis--compact .kpis__item { padding: 0 var(--e-4) 0 0; }
.kpis--compact .kpis__value { font-size: var(--t-26); }
.files { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--e-2) var(--e-4); align-items: start; padding: var(--e-4) 0; border-bottom: 1px solid var(--line); }
.file__icon { margin-top: 2px; color: var(--text-3); }
.file__text { display: grid; gap: var(--e-1); min-width: 0; }
.file__name { font-size: var(--t-16); }
.file__desc { max-width: var(--measure); font-size: var(--t-14); line-height: var(--lh-snug); color: var(--text-2); }
.file__actions { justify-content: flex-end; }
@media (max-width: 700px) {
  .file { grid-template-columns: auto minmax(0, 1fr); }
  .file__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .report__head .report__meta { margin-left: 0; width: 100%; }
}

/* "Verificar integridad": a quiet disclosure under the description. */
.verify > summary { width: fit-content; cursor: pointer; font-size: var(--t-13); font-weight: 600; color: var(--accent); }
.verify > summary:hover { color: var(--accent-hover); }
.verify__body { display: grid; gap: var(--e-2); margin-top: var(--e-2); font-size: var(--t-13); color: var(--text-2); }
.verify__body code { font-size: var(--t-13); color: var(--ink); }

/* Badges: state of a thing (a month, a link, an organization). */
.badge { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 var(--e-2); border-radius: var(--radio); background: var(--unverified-bg); color: var(--unverified); font-size: var(--t-12); font-weight: 600; line-height: var(--lh-tight); white-space: nowrap; }
.badge--ok { background: var(--risk-low-bg); color: var(--risk-low); }
.badge--warn { background: var(--risk-medium-bg); color: var(--risk-medium); }

/* Empty states: what is missing and what happens next. */
.empty { display: grid; gap: var(--e-2); padding: var(--e-6) var(--e-5); border: 1px dashed var(--line-control); border-radius: var(--radio-2); }
.empty__title { font-size: var(--t-16); font-weight: 600; }
.empty__text { max-width: var(--measure); font-size: var(--t-14); color: var(--text-3); }

/* Tables: a second line in a cell, and an action column at the right. */
.cell__sub { display: block; font-size: var(--t-12); color: var(--text-3); }
.cell__action { text-align: right; }

/* A short list of facts (label and value per row). */
.summary-list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.summary-list > div { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: var(--e-1) var(--e-4); padding: var(--e-3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-14); }
.summary-list dt { color: var(--text-3); }
.summary-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .summary-list > div { grid-template-columns: minmax(0, 1fr); } }

/* The confirmation before a sensitive download. */
.confirm { display: grid; gap: var(--e-4); }
.confirm__fallback > summary { width: fit-content; cursor: pointer; font-size: var(--t-14); font-weight: 600; color: var(--accent); }
.confirm__code { display: grid; gap: var(--e-4); max-width: 22rem; margin-top: var(--e-4); }
.reports { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-6); }
.kpis--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); row-gap: var(--e-4); }

/* section.css */
/* Numbered section header (c-section). */
.section { display: flex; flex-direction: column; gap: var(--e-1); }
.section__num { font-size: var(--t-12); color: var(--blue); }
.env-sandbox .section__num { color: var(--sandbox); }
.section__title { font-size: var(--t-18); }

/* segments.css */
/* Segments (c-segments): environment, period. The current option is in ink
   (violet in sandbox) and also bold: it does not rely on color alone. */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--border-control);
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--white);
}
.seg a {
  display: flex;
  align-items: center;
  min-height: var(--control);
  padding: 0 var(--e-3);
  font-size: var(--t-13);
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
}
.seg a + a { border-left: 1px solid var(--line-control); }
.seg a:hover { color: var(--ink); background: var(--paper); }
.seg a[aria-current="true"] { background: var(--ink); color: var(--white); font-weight: 600; }
.seg--sandbox a[aria-current="true"] { background: var(--sandbox); }
.seg a:focus-visible { outline-offset: -4px; outline-color: var(--accent); box-shadow: inset 0 0 0 2px var(--white); }

/* Light variant for in-page period filters. */
.seg--light a[aria-current="true"] { background: var(--paper); color: var(--ink); }

/* states.css */
/* States (board 10): empty, loading, section error, first steps,
   forbidden. */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-3); padding: var(--e-2) 0; }
.empty__title { font-size: var(--t-15); font-weight: 600; }
.empty__points { margin: 0; padding-left: var(--e-4); font-size: var(--t-14); color: var(--text-2); line-height: 1.7; }

.loading { display: flex; flex-direction: column; gap: var(--e-3); }
.loading__title { font-size: var(--t-15); font-weight: 600; }
.loading__silhouette { display: flex; flex-direction: column; gap: var(--e-4); }
.loading__row { display: flex; justify-content: space-between; }
.loading__paragraph { display: flex; flex-direction: column; gap: var(--e-3); border-top: 1px solid var(--line-soft); padding-top: var(--e-4); }
.skel {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: var(--skeleton);
  background-image: linear-gradient(90deg, transparent 0, var(--shine-loading) 50%, transparent 100%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: esq-brillo 1.4s ease-in-out infinite;
}
.skel--14 { width: 14%; } .skel--40 { width: 40%; } .skel--75 { width: 75%; }
.skel--82 { width: 82%; } .skel--90 { width: 90%; }
.skel--rule { height: 22px; }
@keyframes esq-brillo { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.error-section {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
  padding: var(--e-5);
  border: 1px dashed var(--border-control);
  border-radius: var(--radio);
}
.error-section__message { font-size: var(--t-15); font-weight: 600; }
.error-section__detail { font-size: var(--t-14); color: var(--text-2); }
.error-section__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); }
.error-section__ref { font-size: var(--t-12); color: var(--text-3); }

.steps { display: flex; flex-direction: column; gap: var(--e-4); }
.steps__progress { font-size: var(--t-14); color: var(--text-3); }
.steps__bar { display: flex; gap: var(--e-1); height: 6px; }
.steps__span { flex: 1; background: var(--line-soft); }
.steps__span--done { background: var(--ink); }
.steps__list { margin: 0; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: var(--e-3);
  align-items: center;
  padding: var(--e-3) 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-14);
}
.step:last-child { border-bottom: 0; }
.step__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-control);
  color: var(--text-3);
  font-size: var(--t-key);
  font-weight: 700;
}
.step--done .step__dot { background: var(--risk-low); border-color: var(--risk-low); color: var(--white); }
.step--current .step__dot { border-color: var(--blue); color: var(--blue); }
.step--current .step__text { font-weight: 600; }
.step__status { font-size: var(--t-13); color: var(--text-3); }
.step__status a { font-weight: 600; }

.forbidden { display: flex; flex-direction: column; gap: var(--e-2); padding: var(--e-1) 0 var(--e-1) var(--e-4); border-left: 3px solid var(--ink); }
.forbidden__title { font-size: var(--t-15); font-weight: 600; }
.forbidden__text { font-size: var(--t-14); color: var(--text-2); }

/* table.css */
/* Dense table (c-table). The frame scrolls sideways; the page does not. */
.table-frame { position: relative; overflow-x: auto; max-width: 100%; } /* relative: hidden labels inside stay in the frame */
.table-frame:focus-visible { outline-offset: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--text-3);
  text-align: left;
  padding: var(--e-3);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  vertical-align: bottom;
}
.table th .key { display: block; }
.table td {
  font-size: var(--t-14);
  padding: var(--e-3);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  vertical-align: middle;
}
.table td.mono { font-size: var(--t-13); }
.table .num { text-align: right; }
.table th.num { font-family: var(--font); }
.table tbody tr:hover { background: var(--paper); }
.table__empty { color: var(--text-3); text-align: center; padding: var(--e-5) var(--e-3); }

/* tabs.css */
/* Tabs (c-tabs). Without JS they are links with aria-current; with JS,
   role=tab and aria-selected. Both look the same: a row of labels on a
   hairline, the current one underlined in ink (violet in sandbox). The
   hairline is the page header's divider. */
.tabs__list {
  display: flex;
  flex-wrap: wrap; /* on a phone they wrap: every tab stays in sight */
  gap: 0 var(--e-5);
  /* Close to the header it divides: 16 px whatever the screen's gap. */
  margin-top: calc(var(--e-4) - var(--gap, var(--e-4)));
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) { .tabs__list { gap: 0 var(--e-4); } }
.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--touch);
  margin-bottom: -1px;
  padding: 0 var(--e-1);
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: var(--t-14);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); border-bottom-color: var(--line-control); }
.tab[aria-current="true"], .tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.env-sandbox .tab[aria-current="true"], .env-sandbox .tab[aria-selected="true"] { border-bottom-color: var(--sandbox); }
.tab__counter { font-size: var(--t-12); color: var(--text-3); }
.tabs__panel { padding-top: var(--e-4); }
.tabs__panel[hidden] { display: none; }

