/* OikSys frame v1 · base and components (docs/contracts/oiksys-frame-v1.md).
   Every rule lives under .ok or an .ok-* class, so a page that does not opt in is not touched.
   Colours, type and shape come only from the tokens of /_frame/v1/tokens.css: nothing here names a theme. */

/* ── Base ─────────────────────────────────────────────────────────────── */
.ok {
  margin: 0;
  background: var(--ok-bg);
  color: var(--ok-fg);
  font: 400 var(--ok-t-body) / var(--ok-lh-body) var(--ok-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: var(--ok-action);
  caret-color: var(--ok-action);
  scrollbar-color: var(--ok-line-strong) transparent;
}
:where(.ok) ::selection { background: var(--ok-marker); color: var(--ok-fg); }
:where(.ok) *, :where(.ok) *::before, :where(.ok) *::after { box-sizing: border-box; }
:where(.ok) :focus-visible { outline: var(--ok-focus-w) solid var(--ok-focus); outline-offset: 2px; }
.ok .ok-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* «Skip to content»: the first stop of the keyboard, shown only while it has the focus, over the top of the rail.
   Below the drawer's breakpoint the rail is closed and the content is two stops away: it is not offered. */
.ok .ok-skip { position: absolute; z-index: 50; top: var(--ok-sp-2); left: var(--ok-sp-2); }
.ok .ok-skip:not(:focus) { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ok main[tabindex="-1"]:focus-visible { outline: none; }
.ok .ok-num { font-family: var(--ok-font-num); font-variant-numeric: tabular-nums; letter-spacing: var(--ok-num-tracking); }
.ok .ok-ic { width: 1.0625rem; height: 1.0625rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ok .ok-label { color: var(--ok-fg-3); font: 500 var(--ok-label-size) / 1.3 var(--ok-label-font); letter-spacing: var(--ok-label-tracking); text-transform: var(--ok-label-case); }

/* ── Frame: rail | top bar + sheet ────────────────────────────────────── */
.ok .ok-app { display: grid; grid-template-columns: var(--ok-rail-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.ok .ok-main { display: flex; flex-direction: column; min-width: 0; padding: 0 var(--ok-sp-3) var(--ok-sp-3) 0; }
.ok .ok-top { display: flex; align-items: center; gap: var(--ok-sp-4); min-height: 3.5rem; }
.ok .ok-top-grow { flex: 1; display: flex; justify-content: center; min-width: 0; }
.ok .ok-sheet { flex: 1; min-width: 0; padding: var(--ok-sp-6) clamp(var(--ok-sp-4), 3vw, 2.25rem); border: 1px solid var(--ok-line); border-radius: var(--ok-r-sheet); background: var(--ok-surface); box-shadow: var(--ok-shadow-1); }
/* A panel (Inicio, Clientes, Piezas, Plan): no paper. Its cards sit on the ground, so no box holds another box. */
.ok .ok-sheet.is-bare { padding: var(--ok-sp-5) clamp(var(--ok-sp-2), 2vw, var(--ok-sp-5)) var(--ok-sp-6); border-color: transparent; background: none; box-shadow: none; }
.ok .ok-btn.ok-menu-btn { display: none; }
/* The person in the top bar: only where the rail is a drawer (below), so the profile is always one touch away. */
.ok .ok-top-me { display: none; }

/* ── 1. Navigation rail and drawer ────────────────────────────────────── */
.ok .ok-rail { position: sticky; top: 0; display: flex; flex-direction: column; gap: var(--ok-sp-1); height: 100vh; height: 100dvh; padding: var(--ok-sp-4) var(--ok-sp-3) var(--ok-sp-3); overflow-y: auto; overscroll-behavior: contain; }
.ok .ok-brand { display: flex; align-items: center; gap: 0.625rem; padding: 0.125rem var(--ok-sp-2); color: var(--ok-fg); text-decoration: none; }
.ok .ok-lockup { display: block; height: 1.625rem; width: auto; }
/* With a logo of the installation the company goes first, as the panel is its own, and OikSys under it, small
   (brandLockup in src/render-frame.mjs). The logo's dark shapes are currentColor, so it follows light and dark. */
.ok .ok-brandset { display: grid; justify-items: start; gap: 0.5rem; margin-bottom: var(--ok-sp-2); }
.ok .ok-company-logo { display: block; height: 2.75rem; width: auto; }
.ok .ok-brand-by { display: block; color: var(--ok-fg-2); font: 600 0.9375rem / 1 var(--ok-font-head); letter-spacing: 0.01em; }
.ok .ok-piece-people { fill: var(--ok-piece-people); }
.ok .ok-piece-agents { fill: var(--ok-piece-agents); }
.ok .ok-piece-apps { fill: var(--ok-piece-apps); }
.ok .ok-wordmark { fill: var(--ok-wordmark); }
.ok .ok-inst { display: flex; align-items: center; gap: var(--ok-sp-2); margin: var(--ok-sp-3) 0 var(--ok-sp-2); padding: 0.4375rem 0.625rem; border: 1px solid var(--ok-line); border-radius: var(--ok-r-ctl); background: var(--ok-surface); font-weight: 500; }
.ok .ok-inst img, .ok .ok-inst svg { width: 1.125rem; height: 1.125rem; flex: none; }
.ok .ok-inst-mark { width: 1rem; height: 1rem; flex: none; border: 0.21875rem solid var(--ok-accent); border-radius: 50%; }
.ok .ok-nav-group { margin: var(--ok-sp-4) 0.625rem var(--ok-sp-1); }
.ok .ok-nav { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.ok .ok-nav a { position: relative; display: flex; align-items: center; gap: 0.625rem; min-height: var(--ok-h); padding: 0 0.625rem; border-radius: var(--ok-r-ctl); color: var(--ok-fg-2); font-weight: 450; text-decoration: none; transition: background var(--ok-dur) var(--ok-ease), color var(--ok-dur) var(--ok-ease); }
.ok .ok-nav a:hover { background: var(--ok-surface-2); color: var(--ok-fg); }
.ok .ok-nav a[aria-current="page"] { background: var(--ok-surface); color: var(--ok-fg); font-weight: 600; box-shadow: var(--ok-shadow-1), 0 0 0 1px var(--ok-line); }
.ok .ok-nav a[aria-current="page"] > .ok-ic { width: 1.4375rem; height: 1.4375rem; margin: 0 -0.1875rem; padding: 0.1875rem; border-radius: calc(var(--ok-r-ctl) * 0.6); background: var(--ok-accent); color: var(--ok-on-accent); }
.ok .ok-nav a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok .ok-count { margin-left: auto; min-width: 1.25rem; padding: 0 0.375rem; border-radius: var(--ok-r-pill); background: var(--ok-fg); color: var(--ok-bg); font: 600 var(--ok-t-caption) / 1.25rem var(--ok-font); font-variant-numeric: tabular-nums; text-align: center; }
.ok .ok-nav-more { margin-top: var(--ok-sp-3); }
.ok .ok-nav-more > summary { display: flex; align-items: center; gap: 0.625rem; min-height: var(--ok-h); padding: 0 0.625rem; border-radius: var(--ok-r-ctl); color: var(--ok-fg-2); font-weight: 450; list-style: none; cursor: pointer; }
.ok .ok-nav-more > summary::-webkit-details-marker { display: none; }
.ok .ok-nav-more > summary::after { content: ""; width: 0.375rem; height: 0.375rem; margin-left: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform var(--ok-dur) var(--ok-ease); }
.ok .ok-nav-more[open] > summary::after { transform: rotate(45deg); }
.ok .ok-nav-more > summary:hover { background: var(--ok-surface-2); color: var(--ok-fg); }
.ok .ok-nav-more > .ok-nav { padding-left: var(--ok-sp-3); }
.ok .ok-rail-foot { flex: none; margin-top: auto; padding-top: var(--ok-sp-3); }
.ok .ok-rail-foot > [data-ok-menu-foot] { padding-bottom: var(--ok-sp-2); border-bottom: 1px solid var(--ok-line); }
.ok .ok-me { display: flex; align-items: center; gap: 0.625rem; margin-top: var(--ok-sp-2); padding: var(--ok-sp-2) 0.625rem; border-radius: var(--ok-r-ctl); color: inherit; text-decoration: none; transition: background var(--ok-dur) var(--ok-ease); }
.ok .ok-me:hover { background: var(--ok-surface-2); }
.ok .ok-me[aria-current="page"] { background: var(--ok-surface); box-shadow: var(--ok-shadow-1), 0 0 0 1px var(--ok-line); }
.ok .ok-me > span:last-child { min-width: 0; }
.ok .ok-avatar { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; flex: none; border-radius: var(--ok-r-pill); background: var(--ok-surface-2); color: var(--ok-fg-2); box-shadow: inset 0 0 0 1px var(--ok-line); font: 600 var(--ok-t-caption) / 1 var(--ok-font); }
.ok .ok-me b { display: block; font-weight: 600; line-height: 1.2; }
.ok .ok-me small { color: var(--ok-fg-3); font-size: var(--ok-t-caption); }
.ok .ok-rail [data-ok-menu] { display: grid; gap: var(--ok-sp-1); }
/* Only the entries scroll: the foot (Administración, the person with Mi perfil and Salir) stays at the bottom of the
   rail and of the drawer, also on a laptop of 768 px. The list takes the room left and scrolls inside it, with room
   at its sides for the mark of the current page and the focus ring; it keeps a few entries' height, and below that
   the whole rail scrolls as before. */
.ok .ok-rail > [data-ok-menu] { flex: 1 1 auto; min-height: 7.5rem; margin: calc(-1 * (var(--ok-focus-w) + 2px)) calc(-1 * var(--ok-sp-3)); padding: calc(var(--ok-focus-w) + 2px) var(--ok-sp-3); overflow-y: auto; overscroll-behavior: contain; align-content: start; }
/* The edge of the list that still hides entries shows a soft shade. Two covers of the rail's ground travel with the
   entries (local) and hide the shade (fixed to the box) while the list is at that end, or all the time when every
   entry fits. They are backgrounds, so the entries, the mark of the current page and the focus ring stay above. */
.ok .ok-rail > [data-ok-menu] {
  background:
    linear-gradient(var(--ok-bg) 40%, transparent) top / 100% 2rem no-repeat local,
    linear-gradient(transparent, var(--ok-bg) 60%) bottom / 100% 2rem no-repeat local,
    radial-gradient(farthest-side at 50% 0, color-mix(in srgb, var(--ok-fg) 16%, transparent), transparent) top / 100% 0.75rem no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, color-mix(in srgb, var(--ok-fg) 16%, transparent), transparent) bottom / 100% 0.75rem no-repeat scroll;
}

/* ── 2. Page heading and breadcrumbs ──────────────────────────────────── */
.ok .ok-ph { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--ok-sp-3) var(--ok-sp-5); margin-bottom: var(--ok-sp-5); }
.ok .ok-ph-main { flex: 1 1 24rem; min-width: 0; }
.ok .ok-h1, .ok .ok-h2 { margin: 0; color: var(--ok-fg); font-family: var(--ok-font-head); font-stretch: var(--ok-head-stretch); letter-spacing: var(--ok-head-tracking); text-wrap: balance; }
.ok .ok-h1 { font-size: var(--ok-t-h1); font-weight: var(--ok-head-weight); line-height: var(--ok-lh-tight); }
.ok .ok-h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ok-sp-1) 0.625rem; margin-bottom: var(--ok-sp-2); font-size: var(--ok-t-h2); font-weight: calc(var(--ok-head-weight) - 50); line-height: 1.2; letter-spacing: calc(var(--ok-head-tracking) / 2); }
/* A heading with links beside it: the row is a .ok-h2 box, the heading inside it holds only the title and its note. */
.ok .ok-h2 > .ok-h2 { margin: 0; }
.ok .ok-h2 > .ok-meta { font-family: var(--ok-font); font-stretch: 100%; font-weight: 400; letter-spacing: 0; }
.ok .ok-h2 > .ok-link { margin-left: auto; font-family: var(--ok-font); font-size: var(--ok-t-small); font-stretch: 100%; letter-spacing: 0; }
/* Only the first link shown goes to the end of the row; the next ones follow it (a hidden one does not count). */
.ok .ok-h2 > .ok-link:not([hidden]) ~ .ok-link { margin-left: 0; }
.ok .ok-lede { max-width: 42rem; margin: var(--ok-sp-2) 0 0; color: var(--ok-fg-2); font-size: var(--ok-t-lead); }
.ok .ok-mark { padding: 0 0.125rem; background: linear-gradient(transparent 52%, var(--ok-marker) 52%, var(--ok-marker) 94%, transparent 94%); color: var(--ok-fg); font-weight: 600; }
.ok .ok-meta { color: var(--ok-fg-3); font-size: var(--ok-t-small); }
.ok .ok-crumbs { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0 0 var(--ok-sp-2); padding: 0; list-style: none; color: var(--ok-fg-3); font-size: var(--ok-t-small); }
.ok .ok-crumbs li + li::before { content: "/"; margin-right: 0.375rem; color: var(--ok-line-strong); }
.ok .ok-crumbs a { color: inherit; }
.ok .ok-crumbs [aria-current] { color: var(--ok-fg); }
.ok .ok-fresh { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--ok-fg-3); font-size: var(--ok-t-small); white-space: nowrap; }
.ok .ok-dot { display: inline-block; width: 0.4375rem; height: 0.4375rem; flex: none; border-radius: 50%; background: currentColor; }
.ok .ok-dot.is-bad { color: var(--ok-bad); }
.ok .ok-fresh .ok-dot { color: var(--ok-good); }
.ok .ok-fresh.is-stale .ok-dot { color: var(--ok-warn); }

/* ── 3. Button and link ───────────────────────────────────────────────── */
.ok .ok-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--ok-sp-2); min-height: var(--ok-h); padding: 0 var(--ok-sp-4); border: 1px solid var(--ok-line); border-radius: var(--ok-r-pill); background: var(--ok-surface); color: var(--ok-fg); box-shadow: var(--ok-shadow-1); font: 600 var(--ok-t-small) / 1 var(--ok-font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--ok-dur) var(--ok-ease), border-color var(--ok-dur) var(--ok-ease), box-shadow var(--ok-dur) var(--ok-ease), transform var(--ok-dur) var(--ok-ease); }
.ok .ok-btn:hover { background: var(--ok-surface-2); border-color: var(--ok-line-strong); }
.ok .ok-btn:active { transform: scale(0.98); }
.ok .ok-btn.is-primary { border-color: var(--ok-action); background: var(--ok-action); color: var(--ok-on-action); }
.ok .ok-btn.is-primary:hover { border-color: var(--ok-action-hover); background: var(--ok-action-hover); }
.ok .ok-btn.is-primary .ok-btn-mark { color: var(--ok-action-mark); }
.ok .ok-btn.is-quiet { border-color: transparent; background: transparent; box-shadow: none; }
.ok .ok-btn.is-quiet:hover { background: var(--ok-surface-2); }
.ok .ok-btn.is-sm { min-height: var(--ok-h-sm); padding: 0 var(--ok-sp-3); }
.ok .ok-btn.is-lg { min-height: var(--ok-h-lg); padding: 0 var(--ok-sp-5); font-size: var(--ok-t-lead); }
.ok .ok-btn.is-icon { width: var(--ok-h); padding: 0; }
.ok .ok-btn:disabled, .ok .ok-btn[aria-disabled="true"] { border-color: var(--ok-line); background: var(--ok-surface-2); color: var(--ok-fg-3); box-shadow: none; cursor: not-allowed; transform: none; }
.ok .ok-link { color: var(--ok-link); font-weight: 500; text-decoration: underline; text-decoration-color: var(--ok-link-line); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color var(--ok-dur) var(--ok-ease); }
.ok .ok-link:hover { text-decoration-color: currentColor; }
/* The page of a module whose frame could not be put (mount.js): the link to Inicio it leaves is the only way out, so
   it is a target of the height of a control (44 px with the finger), not one line of text. */
.ok [data-ok-frame-error] > .ok-link:first-child { display: inline-flex; align-items: center; min-height: var(--ok-h); margin-bottom: var(--ok-sp-3); }

/* ── 4. Text field ────────────────────────────────────────────────────── */
.ok .ok-field { display: grid; gap: 0.375rem; }
.ok .ok-field > label, .ok .ok-field-label { color: var(--ok-fg); font-size: var(--ok-t-small); font-weight: 500; }
.ok .ok-input { width: 100%; min-height: var(--ok-h); padding: 0 var(--ok-sp-3); border: 1px solid var(--ok-line-strong); border-radius: var(--ok-r-ctl); background: var(--ok-surface); color: var(--ok-fg); font: inherit; color-scheme: var(--ok-scheme); }
.ok textarea.ok-input { padding-block: var(--ok-sp-2); line-height: var(--ok-lh-body); resize: vertical; }
.ok .ok-input::placeholder { color: var(--ok-fg-3); opacity: 1; }
.ok .ok-input:hover { border-color: var(--ok-fg-2); }
.ok .ok-input:disabled { border-color: var(--ok-line); background: var(--ok-surface-2); color: var(--ok-fg-3); }
.ok .ok-input[aria-invalid="true"] { border-color: var(--ok-bad); box-shadow: inset 0 0 0 1px var(--ok-bad); }
.ok .ok-field.is-inline { display: inline-flex; align-items: center; gap: var(--ok-sp-2); }
/* Beside its box the label keeps one line: the box gives way, not the words («Buscar un / cliente» in Clientes). */
.ok .ok-field.is-inline > label { flex: none; white-space: nowrap; }
.ok .ok-chips { display: flex; flex-wrap: wrap; gap: var(--ok-sp-2); margin: 0 0 var(--ok-sp-3); }
.ok .ok-filters > .ok-chips { margin: 0; }
.ok .ok-chips:empty { display: none; }
.ok .ok-chip { display: inline-flex; align-items: center; gap: var(--ok-sp-2); min-height: var(--ok-h-sm); padding: 0 var(--ok-sp-3); border: 1px solid var(--ok-line); border-radius: var(--ok-r-pill); background: var(--ok-surface); color: var(--ok-fg-2); font: 500 var(--ok-t-small) / 1 var(--ok-font); cursor: pointer; }
.ok .ok-chip:hover { border-color: var(--ok-line-strong); color: var(--ok-fg); }
.ok .ok-chip[aria-pressed="true"] { border-color: var(--ok-fg); background: var(--ok-fg); color: var(--ok-surface); font-weight: 600; }
.ok .ok-chip-n { opacity: 0.75; font-size: var(--ok-t-caption); }
.ok .ok-form { display: grid; gap: var(--ok-sp-4); margin-bottom: var(--ok-sp-6); }
.ok .ok-form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ok-sp-3) var(--ok-sp-5); }
.ok .ok-form-row > .ok-hint { margin: 0; align-self: center; }
.ok .ok-form > .ok-hint { margin: 0; }
.ok .ok-fieldset { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ok-sp-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.ok .ok-fieldset > legend { margin-bottom: var(--ok-sp-2); padding: 0; color: var(--ok-fg-3); font: 500 var(--ok-label-size) / 1.3 var(--ok-label-font); letter-spacing: var(--ok-label-tracking); text-transform: var(--ok-label-case); }
.ok .ok-fieldset .ok-input { width: auto; }
.ok .ok-fieldset .ok-input[type="date"] { width: 9.75rem; font-variant-numeric: tabular-nums; }
.ok .ok-fieldset > .ok-field { flex: 1 1 auto; }
.ok .ok-fieldset > .ok-field > .ok-input[type="date"] { width: 100%; min-width: 9.75rem; }
.ok .ok-fieldset.is-inline { align-items: center; gap: var(--ok-sp-2); }
.ok .ok-fieldset.is-inline > legend { float: left; margin: 0; color: var(--ok-fg); font: 500 var(--ok-t-small) / var(--ok-h) var(--ok-font); letter-spacing: 0; text-transform: none; }
.ok .ok-hint { color: var(--ok-fg-3); font-size: var(--ok-t-small); }
.ok .ok-field-error { display: flex; align-items: center; gap: 0.375rem; color: var(--ok-bad); font-size: var(--ok-t-small); font-weight: 500; }
/* The search box of the top bar: the input with its lens and shortcut, and the list of results under it. */
.ok .ok-search-box { position: relative; flex: 0 1 26rem; min-width: 0; }
.ok .ok-btn.ok-search-open { display: none; }
.ok .ok-search { display: flex; align-items: center; gap: 0.625rem; width: min(100%, 32.5rem); min-height: var(--ok-h); padding: 0 var(--ok-sp-3); border: 1px solid var(--ok-line); border-radius: var(--ok-r-ctl); background: var(--ok-surface); color: var(--ok-fg-3); font: inherit; text-align: left; cursor: text; }
.ok .ok-search:hover { border-color: var(--ok-line-strong); }
.ok .ok-search:focus-within { border-color: var(--ok-line-strong); outline: var(--ok-focus-w) solid var(--ok-focus); outline-offset: 2px; }
.ok .ok-search kbd { margin-left: auto; padding: 0.0625rem 0.375rem; border: 1px solid var(--ok-line); border-radius: var(--ok-r-ctl); font: 500 0.6875rem var(--ok-font-num); white-space: nowrap; }
.ok .ok-search-input { flex: 1; min-width: 0; align-self: stretch; padding: 0; border: 0; background: none; color: var(--ok-fg); font: inherit; text-overflow: ellipsis; }
.ok .ok-search-input::placeholder { color: var(--ok-fg-3); opacity: 1; }
.ok .ok-search-input:focus-visible { outline: none; }
.ok .ok-btn.ok-search-close { display: none; }
.ok .ok-search-panel { position: absolute; z-index: 35; top: calc(100% + var(--ok-sp-2)); left: 0; width: 100%; max-height: min(70vh, 26rem); padding: var(--ok-sp-2); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ok-line); border-radius: var(--ok-r-card); background: var(--ok-surface); box-shadow: var(--ok-shadow); }
.ok .ok-search-note { margin: 0; padding: var(--ok-sp-2); color: var(--ok-fg-2); font-size: var(--ok-t-small); }
.ok .ok-search-list:empty { display: none; }
.ok .ok-search-group { margin: 0; padding: var(--ok-sp-2) var(--ok-sp-2) var(--ok-sp-1); }
.ok .ok-search-option { display: flex; align-items: baseline; gap: var(--ok-sp-2); min-height: var(--ok-h); padding: var(--ok-sp-2); border-radius: var(--ok-r-ctl); color: var(--ok-fg); text-decoration: none; }
.ok .ok-search-option > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ok .ok-search-option > .ok-meta { margin-left: auto; white-space: nowrap; }
.ok .ok-search-option:hover { background: var(--ok-surface-2); }
.ok .ok-search-option[aria-selected="true"] { background: var(--ok-surface-2); outline: 2px solid var(--ok-focus); outline-offset: -2px; }

/* ── 5. Select and filters ────────────────────────────────────────────── */
.ok .ok-select { position: relative; display: inline-flex; align-items: center; }
.ok .ok-select select { appearance: none; min-height: var(--ok-h); padding: 0 2.25rem 0 var(--ok-sp-3); border: 1px solid var(--ok-line-strong); border-radius: var(--ok-r-ctl); background: var(--ok-surface); color: var(--ok-fg); font: inherit; color-scheme: var(--ok-scheme); cursor: pointer; }
.ok .ok-select select:hover { border-color: var(--ok-fg-2); }
.ok .ok-select::after { content: ""; position: absolute; right: 0.875rem; width: 0.4375rem; height: 0.4375rem; border: solid var(--ok-fg-2); border-width: 0 1.5px 1.5px 0; transform: translateY(-25%) rotate(45deg); pointer-events: none; }
.ok .ok-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ok-sp-2); min-width: 0; max-width: 100%; }
.ok .ok-seg { display: inline-flex; padding: 2px; border: 1px solid var(--ok-line); border-radius: var(--ok-r-pill); background: var(--ok-surface-2); }
.ok .ok-filters .ok-seg { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.ok .ok-filters .ok-seg > * { flex: none; white-space: nowrap; }
.ok .ok-seg > * { min-height: var(--ok-h-sm); padding: 0 var(--ok-sp-3); border: 0; border-radius: var(--ok-r-pill); background: transparent; color: var(--ok-fg-2); font: 500 var(--ok-t-small) / 1 var(--ok-font); cursor: pointer; }
.ok .ok-filters .ok-seg > *, .ok .ok-field .ok-seg > * { min-height: calc(var(--ok-h) - 6px); }
/* Inside a scrolling group the ring would be cut: draw it inside the segment. */
.ok .ok-filters .ok-seg > :focus-visible { outline-offset: -2px; }
.ok .ok-filters > .ok-btn.is-sm, .ok .ok-form-row > .ok-btn.is-sm, .ok .ok-filters .ok-chip { min-height: var(--ok-h); }
.ok .ok-seg > [aria-pressed="true"], .ok .ok-seg > [aria-checked="true"], .ok .ok-seg > [aria-current="page"] { background: var(--ok-surface); color: var(--ok-fg); font-weight: 600; box-shadow: var(--ok-shadow-1), 0 0 0 1px var(--ok-line); }

/* ── 6. Tabs ──────────────────────────────────────────────────────────── */
.ok .ok-tabs { display: flex; gap: var(--ok-sp-1); margin: 0 0 var(--ok-sp-5); padding: 0; overflow-x: auto; border-bottom: 1px solid var(--ok-line); list-style: none; scrollbar-width: thin; }
.ok .ok-tab { flex: none; display: inline-flex; align-items: center; gap: var(--ok-sp-2); min-height: var(--ok-h-lg); margin-bottom: -1px; padding: 0 var(--ok-sp-3); border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ok-fg-2); font: 500 var(--ok-t-body) / 1 var(--ok-font); text-decoration: none; cursor: pointer; }
.ok .ok-tab:hover { color: var(--ok-fg); border-bottom-color: var(--ok-line-strong); }
.ok .ok-tab[aria-selected="true"], .ok .ok-tab[aria-current="page"] { color: var(--ok-fg); font-weight: 600; border-bottom-color: var(--ok-accent); }

/* ── 7. Card and section ──────────────────────────────────────────────── */
.ok .ok-section { margin: 0 0 var(--ok-sp-6); }
/* A note that closes a section stays with it, away from the next heading. */
.ok .ok-section + p.ok-meta { margin: calc(-1 * var(--ok-sp-3)) 0 var(--ok-sp-6); }
.ok .ok-card { padding: var(--ok-sp-4) var(--ok-sp-5); border: 1px solid var(--ok-line); border-radius: var(--ok-r-card); background: var(--ok-surface); box-shadow: var(--ok-shadow-1); }
.ok .ok-card.is-sunk { border-color: transparent; background: var(--ok-surface-2); box-shadow: none; }
/* A card inside a card is never a second box: it is a sunk well. */
.ok .ok-card .ok-card { border-color: transparent; background: var(--ok-surface-2); box-shadow: none; }
.ok .ok-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: var(--ok-sp-4); align-items: start; }
/* Pairs: an even number of cards, two by two and of one height, so none is left alone in a row. */
/* Fill: the cards there are share the whole row, at one height, instead of leaving empty columns. */
.ok .ok-grid.is-fill { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); align-items: stretch; }
.ok .ok-grid.is-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.ok .ok-app-card { display: grid; gap: var(--ok-sp-3); scroll-margin-top: var(--ok-sp-5); }
.ok .ok-app-card:target { outline: var(--ok-focus-w) solid var(--ok-accent); outline-offset: 2px; }
.ok .ok-app-card > p { margin: 0; }
.ok .ok-app-card > .ok-prose { margin-top: 0; }
/* A link that closes a card («Ficha en Aplicaciones») is as wide as its words, not as the card. */
.ok .ok-app-card > a.ok-link { justify-self: start; }
.ok .ok-app-more { display: grid; justify-items: start; }
.ok .ok-app-more .ok-more { margin: 0; }
.ok .ok-app-head { display: flex; align-items: center; gap: var(--ok-sp-3); }
.ok .ok-app-head img { flex: none; width: 2.5rem; height: 2.5rem; }
.ok .ok-app-head .ok-meta { margin: 0; }
.ok .ok-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ok-sp-2) var(--ok-sp-4); padding-top: var(--ok-sp-1); }
/* Cards two by two share a row's height: what one holds starts at its top, not spread over the extra room. */
.ok .ok-grid.is-pairs > .ok-app-card { align-content: start; }
/* A work area of Inicio: its name, what waits in it (counters, flush with the card) and its applications. */
.ok .ok-area { display: flex; flex-direction: column; gap: var(--ok-sp-3); }
.ok .ok-area > * { margin: 0; }
/* Its counters share the row evenly: three never break into two and one. */
.ok .ok-area > .ok-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); margin-inline: calc(-1 * var(--ok-sp-5)); border-inline: 0; border-radius: 0; }
.ok .ok-area > .ok-app-actions { margin-top: auto; }
.ok .ok-block > .ok-metrics + .ok-grid { margin-top: var(--ok-sp-2); }
.ok .ok-area > .ok-metrics > .ok-metric { padding-inline: var(--ok-sp-5); }
.ok .ok-h2 + .ok-grid, .ok .ok-h2 + .ok-videos, .ok .ok-h2 + .ok-video, .ok .ok-h2 + .ok-card, .ok .ok-h2 + .ok-block { margin-top: var(--ok-sp-3); }
.ok .ok-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21.25rem); gap: var(--ok-sp-6) 2.25rem; }

/* ── 8. Metric and comparison ─────────────────────────────────────────── */
/* Flex, not grid: a last metric alone on its row takes the whole row instead of leaving an empty cell. */
.ok .ok-metrics { display: flex; flex-wrap: wrap; margin: 0; padding: 0; border: 1px solid var(--ok-line); border-radius: var(--ok-r-card); background: var(--ok-surface); box-shadow: var(--ok-shadow-1); overflow: hidden; }
.ok .ok-metric { flex: 1 1 10rem; display: grid; gap: var(--ok-sp-1); align-content: start; margin: 0; padding: var(--ok-sp-4) var(--ok-sp-5); background: var(--ok-surface); box-shadow: -1px 0 0 var(--ok-line), 0 -1px 0 var(--ok-line); }
/* Inside a card the figures are a band from edge to edge, between two hairlines: no box inside the box. */
.ok .ok-card > .ok-metrics, .ok .ok-card > [aria-busy] > .ok-metrics { margin-inline: calc(-1 * var(--ok-sp-5)); border-inline: 0; border-radius: 0; background: none; box-shadow: none; }
.ok .ok-card .ok-metric { background: none; }
.ok .ok-card a.ok-metric:hover { background: var(--ok-surface-2); }
.ok .ok-card > .ok-metrics:first-child { margin-top: calc(-1 * var(--ok-sp-4)); border-top: 0; }
.ok .ok-card > .ok-metrics:last-child { border-bottom: 0; margin-bottom: calc(-1 * var(--ok-sp-4)); }
.ok .ok-card .ok-figure { font-size: var(--ok-t-figure-sm); }
/* A heading inside a card names the card: one step under a section's heading on the ground. */
.ok .ok-card .ok-h2 { font-size: var(--ok-t-title); }
.ok .ok-block > .ok-track { margin-bottom: var(--ok-sp-2); }
.ok .ok-metric dt { order: -1; }
.ok a.ok-metric { color: inherit; text-decoration: none; }
.ok a.ok-metric:hover { background: var(--ok-surface-2); }
/* The group clips its corners: the ring of a metric that is a link goes inside it. */
.ok a.ok-metric:focus-visible { outline-offset: calc(-1 * var(--ok-focus-w)); }
/* The strip of notices at the top of Inicio: as many across as fit, two on a phone, so the day stays in view. The
   notices of the last row share its whole width: an odd one out takes both columns, and no cell is left empty. */
.ok .ok-metrics.is-strip > .ok-metric { flex: 1 1 6.5rem; }
/* «Accesos rápidos» under the strip, and the figures of a block above its table. */
.ok .ok-org > .ok-metrics + .ok-table-wrap { margin-top: var(--ok-sp-4); }
.ok .ok-card + .ok-meta, .ok .ok-card > .ok-table-wrap + .ok-meta { margin-top: var(--ok-sp-3); }
.ok .ok-org > .ok-label { margin: 0 0 var(--ok-sp-2); }
/* A notice that cannot wait: the whole tile takes the tone and its figure the colour, with the label saying what it is. */
.ok .ok-notice.is-hot { background: var(--ok-bad-soft); }
.ok .ok-notice.is-hot .ok-figure { color: var(--ok-bad); }
.ok .ok-notice .ok-label { order: 0; }
.ok .ok-metric dd { margin: 0; }
.ok .ok-figure { margin: 0; font: 600 var(--ok-t-figure) / 1.1 var(--ok-font-num); font-variant-numeric: tabular-nums; letter-spacing: var(--ok-num-tracking); }
.ok .ok-figure.is-unknown { color: var(--ok-fg-3); }
.ok .ok-delta { display: inline-flex; align-items: center; gap: 0.25rem; font: 500 var(--ok-t-caption) / 1.4 var(--ok-font-num); font-variant-numeric: tabular-nums; color: var(--ok-fg-2); white-space: nowrap; }
.ok .ok-delta.is-good, .ok .ok-delta.is-bad { justify-self: start; padding: 0.0625rem var(--ok-sp-2); border-radius: var(--ok-r-pill); font-weight: 600; }
.ok .ok-delta.is-good { background: var(--ok-good-soft); color: var(--ok-good); }
.ok .ok-delta.is-bad { background: var(--ok-bad-soft); color: var(--ok-bad); }
.ok .ok-pace { appearance: none; display: block; width: 7.5rem; height: 0.5rem; border: 0; border-radius: var(--ok-r-pill); background: var(--ok-line); color: var(--ok-fg-2); overflow: hidden; }
.ok .ok-pace::-webkit-progress-bar { background: var(--ok-line); }
.ok .ok-pace::-webkit-progress-value { border-radius: var(--ok-r-pill); background: var(--ok-fg); }
.ok .ok-pace::-moz-progress-bar { border-radius: var(--ok-r-pill); background: var(--ok-fg); }
.ok .ok-pace.is-over::-webkit-progress-value { background: var(--ok-bad); }
.ok .ok-pace.is-over::-moz-progress-bar { background: var(--ok-bad); }

/* ── 9. Data table ────────────────────────────────────────────────────── */
/* Positioned, so what is placed absolutely inside a cell (.ok-sr) scrolls with the table instead of widening the page. */
.ok .ok-table-wrap { position: relative; max-width: 100%; overflow-x: auto; }
/* A scroll container clips: the links of the first and last columns (cells with no side padding) keep the room
   their focus ring needs, taken back with the margin so the table stays aligned with the text around it. */
.ok .ok-table-wrap { max-width: calc(100% + 2 * (var(--ok-focus-w) + 2px)); margin-inline: calc(-1 * (var(--ok-focus-w) + 2px)); padding-inline: calc(var(--ok-focus-w) + 2px); }
.ok .ok-table { width: 100%; border-collapse: collapse; font-size: var(--ok-t-body); }
.ok .ok-table caption { margin-bottom: var(--ok-sp-2); text-align: left; }
.ok .ok-table th { padding: 0.625rem var(--ok-sp-3) var(--ok-sp-2) 0; border-bottom: 1px solid var(--ok-line-strong); color: var(--ok-fg-2); font: 600 var(--ok-label-size) / 1.3 var(--ok-label-font); letter-spacing: var(--ok-label-tracking); text-align: left; text-transform: var(--ok-label-case); white-space: nowrap; }
.ok .ok-table td { height: var(--ok-row); padding: var(--ok-sp-2) var(--ok-sp-3) var(--ok-sp-2) 0; border-bottom: 1px solid var(--ok-line); vertical-align: middle; }
.ok .ok-table th:last-child, .ok .ok-table td:last-child { padding-right: 0; }
.ok .ok-table tbody th { border-bottom: 1px solid var(--ok-line); color: var(--ok-fg); font: 600 var(--ok-t-body) / var(--ok-lh-body) var(--ok-font); letter-spacing: 0; text-transform: none; white-space: normal; }
.ok .ok-table .is-num { text-align: right; font-family: var(--ok-font-num); font-variant-numeric: tabular-nums; letter-spacing: var(--ok-num-tracking); white-space: nowrap; }
.ok .ok-table td:has(> .ok-delta) { text-align: right; }
/* The name that heads a row is its link: the line shows under the pointer or the focus, not on every row. */
.ok .ok-table tbody th > .ok-link { font-weight: 600; text-decoration-color: transparent; }
.ok .ok-table tbody th > .ok-link:hover, .ok .ok-table tbody th > .ok-link:focus-visible { text-decoration-color: currentColor; }
.ok .ok-table tbody tr:last-child > * { border-bottom: 0; }
.ok .ok-table tbody tr:hover > * { background: var(--ok-surface-2); }
.ok .ok-table.is-dense td { height: 2.25rem; padding-block: var(--ok-sp-1); }

/* ── 10. Status badge and alert ───────────────────────────────────────── */
.ok .ok-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem var(--ok-sp-2); border-radius: var(--ok-r-pill); background: var(--ok-surface-2); color: var(--ok-fg-2); font-size: var(--ok-t-caption); font-weight: 600; white-space: nowrap; }
.ok .ok-badge.is-accent { background: var(--ok-accent-soft); color: var(--ok-on-accent-soft); }
.ok .ok-badge.is-good { background: var(--ok-good-soft); color: var(--ok-good); }
.ok .ok-badge.is-bad { background: var(--ok-bad-soft); color: var(--ok-bad); }
.ok .ok-badge.is-warn { background: var(--ok-warn-soft); color: var(--ok-warn); }
.ok .ok-badge.is-info { background: var(--ok-info-soft); color: var(--ok-info); }
.ok .ok-alert { display: flex; align-items: flex-start; gap: var(--ok-sp-3); padding: var(--ok-sp-3) var(--ok-sp-4); border: 1px solid var(--ok-info); border-radius: var(--ok-r-ctl); background: var(--ok-info-soft); color: var(--ok-fg); }
.ok .ok-alert.is-good { border-color: var(--ok-good); background: var(--ok-good-soft); }
.ok .ok-alert.is-bad { border-color: var(--ok-bad); background: var(--ok-bad-soft); }
.ok .ok-alert.is-warn { border-color: var(--ok-warn); background: var(--ok-warn-soft); }
.ok .ok-alert > :last-child:not(:first-child) { margin-left: auto; }
.ok .ok-alert + .ok-metrics, .ok .ok-alert + .ok-state, .ok .ok-alert + .ok-grid { margin-top: var(--ok-sp-3); }
.ok .ok-alert b { display: block; }
/* The line of Inicio for the first days of the new interface: one row, the button in line with the sentence. */
.ok .ok-new { align-items: center; margin: 0 0 var(--ok-sp-5); }

/* ── 11. Dialog ───────────────────────────────────────────────────────── */
.ok .ok-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--ok-line); border-radius: var(--ok-r-card); background: var(--ok-raised); color: var(--ok-fg); box-shadow: var(--ok-shadow); }
.ok .ok-dialog::backdrop { background: var(--ok-scrim); }
.ok .ok-dialog-h { display: flex; align-items: center; gap: var(--ok-sp-3); padding: var(--ok-sp-4) var(--ok-sp-5); border-bottom: 1px solid var(--ok-line); }
.ok .ok-dialog-h > :last-child { margin-left: auto; }
.ok .ok-dialog-b { padding: var(--ok-sp-5); overflow-y: auto; }
.ok .ok-dialog-f { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ok-sp-2); padding: var(--ok-sp-3) var(--ok-sp-5); border-top: 1px solid var(--ok-line); }

/* ── Work list (rows that ask something of the person) ────────────────── */
.ok .ok-list { margin: 0; padding: 0; list-style: none; }
.ok .ok-item { display: grid; grid-template-columns: 0.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.875rem; padding: 0.8125rem 0; border-bottom: 1px solid var(--ok-line); }
/* The marker sits on the first line of the title, also when the title wraps. */
.ok .ok-item::before { content: ""; align-self: start; width: 0.5rem; height: 0.5rem; margin-top: 0.4375rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ok-line-strong); }
.ok .ok-item.is-now::before { background: var(--ok-accent); box-shadow: inset 0 0 0 1.5px var(--ok-on-accent-soft); }
.ok .ok-list > .ok-item:last-child { border-bottom: 0; }
/* What is late: the marker and the group's name take the tone; the words say it («Con retraso»). */
.ok .ok-item.is-late::before { background: var(--ok-bad); box-shadow: none; }
.ok .ok-label.is-late { color: var(--ok-bad); font-weight: 600; }
/* A row that is one link: its title's link covers the row, and a chevron says it opens. */
.ok .ok-item.is-link { position: relative; margin-inline: calc(-1 * var(--ok-sp-3)); padding-inline: var(--ok-sp-3); transition: background var(--ok-dur) var(--ok-ease); }
.ok .ok-item.is-link:hover { background: var(--ok-surface-2); }
.ok .ok-item.is-link .ok-item-title::after { content: ""; position: absolute; inset: 0; }
.ok .ok-item.is-link a.ok-item-title:hover { text-decoration: none; }
.ok .ok-item.is-link a.ok-item-title:focus-visible { outline: none; }
.ok .ok-item.is-link a.ok-item-title:focus-visible::after { outline: var(--ok-focus-w) solid var(--ok-focus); outline-offset: -2px; }
.ok .ok-item-go { width: 0.4375rem; height: 0.4375rem; margin-right: var(--ok-sp-1); border: solid var(--ok-fg-3); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform var(--ok-dur) var(--ok-ease), border-color var(--ok-dur) var(--ok-ease); }
.ok .ok-item.is-link:hover .ok-item-go { border-color: var(--ok-fg); transform: translateX(2px) rotate(-45deg); }
/* In a card the groups of a list keep their distance, and the card's own padding closes the last row. */
.ok .ok-card > .ok-label { margin: var(--ok-sp-4) 0 var(--ok-sp-1); }
.ok .ok-card > .ok-label:first-child { margin-top: var(--ok-sp-1); }
.ok .ok-item-title { display: block; margin: 0; color: var(--ok-fg); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.ok a.ok-item-title:hover { text-decoration: underline; }
.ok .ok-item p { margin: 0.125rem 0 0; color: var(--ok-fg-2); font-size: var(--ok-t-small); }
.ok .ok-list.is-plain .ok-item { grid-template-columns: minmax(0, 1fr); }
.ok .ok-list.is-plain .ok-item::before { content: none; }
.ok .ok-list.is-plain .ok-item p { margin-top: var(--ok-sp-1); }
.ok .ok-list.is-plain + .ok-btn { margin-top: var(--ok-sp-3); }
.ok .ok-prose { display: grid; gap: var(--ok-sp-2); max-width: 44rem; margin-top: var(--ok-sp-2); color: var(--ok-fg-2); font-size: var(--ok-t-small); line-height: var(--ok-lh-body); overflow-wrap: anywhere; }
.ok .ok-prose > * { margin: 0; }
.ok .ok-prose ul, .ok .ok-prose ol, .ok ul.ok-prose, .ok ol.ok-prose { padding-left: 1.125rem; }
.ok .ok-prose ul { list-style: disc; }
.ok .ok-prose h4 { color: var(--ok-fg); font-size: var(--ok-t-small); font-weight: 600; }
.ok .ok-prose strong { color: var(--ok-fg); font-weight: 600; }
.ok .ok-prose code { padding: 0.0625rem 0.25rem; border-radius: var(--ok-r-ctl); background: var(--ok-surface-2); font: 0.92em var(--ok-font-num); }
.ok .ok-prose a { color: var(--ok-link); text-decoration: underline; text-decoration-color: var(--ok-link-line); text-underline-offset: 0.15em; }
.ok .ok-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--ok-sp-5) var(--ok-sp-4); }
.ok .ok-video { display: grid; align-content: start; gap: var(--ok-sp-3); min-width: 0; scroll-margin-top: var(--ok-sp-5); }
.ok .ok-video:target { outline: var(--ok-focus-w) solid var(--ok-accent); outline-offset: var(--ok-sp-2); border-radius: var(--ok-r-card); }
.ok .ok-video.is-featured { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--ok-sp-5); align-items: start; }
.ok .ok-video-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--ok-line); border-radius: var(--ok-r-card); background: var(--ok-surface-2); overflow: hidden; cursor: pointer; }
.ok .ok-video-poster.is-soon { display: grid; place-items: center; cursor: default; }
.ok .ok-video-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--ok-dur) var(--ok-ease); }
.ok .ok-video-poster:hover img { transform: scale(1.02); }
.ok .ok-video-poster::before { content: ""; position: absolute; z-index: 1; inset: 50% auto auto 50%; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ok-action); transform: translate(-50%, -50%); }
.ok .ok-video-poster::after { content: ""; position: absolute; z-index: 1; inset: 50% auto auto 50%; border: solid transparent; border-width: 0.5rem 0 0.5rem 0.8125rem; border-left-color: var(--ok-on-action); transform: translate(-35%, -50%); }
.ok .ok-video-poster.is-soon::before, .ok .ok-video-poster.is-soon::after { content: none; }
.ok .ok-video-len { position: absolute; z-index: 1; right: var(--ok-sp-2); bottom: var(--ok-sp-2); padding: 0.0625rem 0.375rem; border-radius: var(--ok-r-ctl); background: var(--ok-action); color: var(--ok-on-action); font-size: var(--ok-t-caption); font-weight: 600; }
.ok .ok-video-body { display: grid; justify-items: start; gap: var(--ok-sp-1); min-width: 0; }
.ok .ok-video-body p { margin: 0; color: var(--ok-fg-2); font-size: var(--ok-t-small); }
.ok .ok-video.is-featured .ok-item-title { font-size: var(--ok-t-title); }
.ok .ok-chapters { display: flex; flex-wrap: wrap; gap: var(--ok-sp-1); margin: var(--ok-sp-2) 0 0; padding: 0; list-style: none; }
.ok .ok-chapters button { display: inline-flex; align-items: center; gap: var(--ok-sp-2); min-height: var(--ok-h-sm); padding: 0 var(--ok-sp-3); border: 1px solid var(--ok-line); border-radius: var(--ok-r-pill); background: var(--ok-surface); color: var(--ok-fg); font: 500 var(--ok-t-small) / 1 var(--ok-font); cursor: pointer; }
.ok .ok-chapters button:hover { border-color: var(--ok-line-strong); }
.ok .ok-chapters button[aria-current] { border-color: var(--ok-fg); font-weight: 600; }
.ok .ok-chapters .ok-num { color: var(--ok-fg-3); font-size: var(--ok-t-caption); }
.ok .ok-more { margin-top: var(--ok-sp-1); font-size: var(--ok-t-small); }
.ok .ok-more > summary { display: inline-flex; align-items: center; gap: var(--ok-sp-2); min-height: var(--ok-h-sm); color: var(--ok-fg-2); font-weight: 500; list-style: none; cursor: pointer; }
.ok .ok-more > summary::-webkit-details-marker { display: none; }
.ok .ok-more > summary::before { content: ""; width: 0.375rem; height: 0.375rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform var(--ok-dur) var(--ok-ease); }
.ok .ok-more[open] > summary::before { transform: rotate(45deg); }
.ok .ok-more > .ok-prose { margin: var(--ok-sp-1) 0 var(--ok-sp-2); }
.ok .ok-more > summary:hover { color: var(--ok-fg); }
.ok .ok-dialog.ok-player { width: min(60rem, calc(100vw - 2rem)); }
.ok .ok-player video { display: block; width: 100%; max-height: calc(100dvh - 14rem); background: var(--ok-surface-2); }
.ok .ok-player .ok-chapters, .ok .ok-player > .ok-meta { margin: 0; padding: var(--ok-sp-3) var(--ok-sp-5) var(--ok-sp-4); }
.ok .ok-report > .ok-metrics { margin: var(--ok-sp-3) 0 var(--ok-sp-6); }
.ok .ok-report .ok-section > .ok-metrics { margin: var(--ok-sp-3) 0 var(--ok-sp-4); }
.ok .ok-report-unit { display: grid; gap: var(--ok-sp-3); margin-top: var(--ok-sp-5); padding-top: var(--ok-sp-4); border-top: 1px solid var(--ok-line); }
.ok .ok-report-unit > * { margin: 0; min-width: 0; }
.ok .ok-report .ok-more > .ok-table-wrap { margin-block: var(--ok-sp-2) var(--ok-sp-3); }
/* One measure for the form, the figures, the chart and the tables of a report. */
.ok .ok-card.ok-form, .ok .ok-report { max-width: 56rem; }
.ok .ok-chart { display: grid; gap: var(--ok-sp-2); margin: 0; }
.ok .ok-chart > * { margin: 0; }
.ok .ok-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ok .ok-chart text { fill: var(--ok-fg-3); font: 500 0.6875rem var(--ok-font-num); }
.ok .ok-chart-grid { fill: none; stroke: var(--ok-line); stroke-width: 1; }
.ok polyline.ok-chart-now, .ok polyline.ok-chart-before { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ok .ok-chart-now { stroke: var(--ok-action); }
.ok circle.ok-chart-now { fill: var(--ok-action); }
.ok .ok-chart-before { stroke: var(--ok-line-strong); }
.ok polyline.ok-chart-before { stroke-dasharray: 5 4; }
.ok circle.ok-chart-before { fill: var(--ok-surface); stroke-width: 1.5; }
.ok .ok-legend { display: flex; flex-wrap: wrap; gap: var(--ok-sp-4); color: var(--ok-fg-2); font-size: var(--ok-t-small); }
.ok .ok-legend > span { display: inline-flex; align-items: center; gap: var(--ok-sp-2); }
.ok .ok-legend > span::before { content: ""; width: 1.25rem; border-top: 2px solid var(--ok-action); }
.ok .ok-legend > .is-before::before { border-top: 2px dashed var(--ok-line-strong); }
.ok .ok-filters.is-bar { column-gap: var(--ok-sp-4); margin-bottom: var(--ok-sp-4); }
.ok .ok-filters.is-bar + .ok-metrics { margin-bottom: var(--ok-sp-4); }
.ok .ok-boards { display: grid; gap: var(--ok-sp-4); }
.ok .ok-board { display: grid; gap: var(--ok-sp-3); padding: var(--ok-sp-4); }
.ok .ok-board-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ok-sp-2) var(--ok-sp-4); }
.ok .ok-board-h p, .ok .ok-board-h .ok-h2 { margin: 0; }
.ok .ok-board-row { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr) minmax(0, 1fr); gap: var(--ok-sp-3); padding-top: var(--ok-sp-3); border-top: 1px solid var(--ok-line); }
.ok .ok-board-cols { padding-top: 0; border-top: 0; }
.ok .ok-board-who { display: grid; align-content: start; gap: var(--ok-sp-1); font-size: var(--ok-t-small); }
.ok .ok-board-cell { display: grid; align-content: start; gap: var(--ok-sp-3); min-width: 0; }
.ok .ok-board-cell > p { margin: 0; }
/* «Ver N más» under the pieces of a cell keeps its own width, as in a block. */
.ok .ok-board-cell > .ok-btn { justify-self: start; }
.ok .ok-board-when { display: none; }
.ok .ok-piece { display: grid; gap: var(--ok-sp-2); min-width: 0; padding: var(--ok-sp-3); border: 1px solid var(--ok-line); border-radius: var(--ok-r-card); background: var(--ok-surface); }
.ok .ok-board-cell.is-prev .ok-piece { background: var(--ok-surface-2); }
.ok .ok-piece.has-alert { border-color: var(--ok-bad); }
.ok .ok-piece > * { margin: 0; }
/* The chain of a campaign: its path drawn once over the piece (.ok-track, full width) and the four steps in words
   under it, each in its column. */
.ok .ok-piece > .ok-track { max-width: none; margin-top: var(--ok-sp-1); }
.ok .ok-plan-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ok-sp-2); padding: 0; list-style: none; }
.ok .ok-plan-chain > li { display: grid; align-content: start; min-width: 0; gap: var(--ok-sp-1); overflow-wrap: anywhere; font-size: var(--ok-t-caption); }
.ok .ok-plan-chain span { display: block; }
.ok .ok-plan-chain > li > .ok-badge { justify-self: start; }
.ok .ok-plan-area { display: grid; gap: var(--ok-sp-3); margin: 0; padding: 0; list-style: none; }
.ok .ok-plan-area li { min-width: 0; overflow-wrap: anywhere; border-top: 1px solid var(--ok-line); padding-top: var(--ok-sp-3); }
.ok .ok-plan-area p { margin: var(--ok-sp-1) 0 0; }
.ok .ok-plan-heading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ok-sp-3); }
.ok .ok-plan-heading .ok-seg > a { display: inline-flex; align-items: center; text-decoration: none; }
.ok .ok-piece-alert { color: var(--ok-bad); font-size: var(--ok-t-small); font-weight: 600; }
.ok .ok-piece-tags { display: flex; flex-wrap: wrap; gap: var(--ok-sp-1); }
.ok .ok-piece-tags:empty { display: none; }
.ok .ok-piece .ok-badge { white-space: normal; }
.ok .ok-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--ok-sp-1) var(--ok-sp-3); margin: 0; font-size: var(--ok-t-small); }
.ok .ok-facts dt { color: var(--ok-fg-3); }
.ok .ok-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ok .ok-piece-kpis { display: flex; flex-wrap: wrap; gap: var(--ok-sp-2) var(--ok-sp-5); padding-top: var(--ok-sp-2); border-top: 1px solid var(--ok-line); }
.ok .ok-piece-kpis dd { margin: 0; font-weight: 600; }
.ok .ok-piece-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ok-sp-2); padding-top: var(--ok-sp-2); border-top: 1px solid var(--ok-line); color: var(--ok-fg-2); font-size: var(--ok-t-small); }
.ok .ok-filters.is-bar + .ok-hint { margin: 0 0 var(--ok-sp-4); }
.ok .ok-block { display: grid; align-content: start; gap: var(--ok-sp-2); min-width: 0; }
.ok .ok-block > * { margin: 0; }
.ok [data-ok-client-block] > [aria-busy] { min-width: 0; }
.ok [data-ok-client-period] .ok-select { justify-self: start; }
.ok [data-ok-client-period] { margin-bottom: var(--ok-sp-4); }
.ok .ok-block > .ok-btn { justify-self: start; }
.ok .ok-list + [data-ok-rest] { margin-top: var(--ok-sp-3); }
.ok .ok-block .ok-item { grid-template-columns: minmax(0, 1fr); }
.ok .ok-block .ok-item::before { content: none; }
.ok .ok-block .ok-item:last-child { border-bottom: 0; }
.ok .ok-block .ok-item p { margin-top: var(--ok-sp-1); }
.ok .ok-block .ok-piece-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: var(--ok-sp-3); margin: var(--ok-sp-2) 0 0; padding-top: 0; border-top: 0; }
/* Estudio › Piezas: the path of a piece reads as one row of columns of equal width on a laptop (from 1248 px of
   window: about 930 px of sheet), as many as the page shows (three without Paid Media's). Below that, the usual
   grid stacks them in the same order. A column grows with its cards and scrolls with the page. Only the flow: the
   second view keeps the usual grid. A badge that says «late» wraps inside its narrow column. */
@media screen and (min-width: 78rem) {
  .ok .ok-grid[data-ok-dept="studio"]:has(> [data-ok-block="todo"]) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.ok .ok-grid[data-ok-dept="studio"] .ok-badge { white-space: normal; }
.ok .ok-check { display: inline-flex; align-items: center; gap: var(--ok-sp-2); min-height: var(--ok-h-sm); margin-top: var(--ok-sp-2); color: var(--ok-fg); font-size: var(--ok-t-small); font-weight: 500; cursor: pointer; }
.ok .ok-check .ok-hint { display: block; font-weight: 400; }
.ok .ok-check input { flex: none; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--ok-action); color-scheme: var(--ok-scheme); }
.ok .ok-approval-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--ok-sp-2) var(--ok-sp-3); margin-top: var(--ok-sp-3); }
.ok .ok-approval-actions > p { margin: 0 auto 0 0; }
.ok .ok-dialog.ok-approval { padding: var(--ok-sp-5); }
.ok .ok-approval h2 { margin: 0 0 var(--ok-sp-2); font: 600 var(--ok-t-title) / 1.2 var(--ok-font-head); }
.ok .ok-approval p { margin: 0 0 var(--ok-sp-3); color: var(--ok-fg-2); }
.ok .ok-approval ul { max-height: 40dvh; margin: 0; padding-left: 1.125rem; overflow-y: auto; }
.ok .ok-feed { margin: 0; padding: 0; list-style: none; font-size: var(--ok-t-small); }
.ok .ok-feed li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.625rem; padding: 0.625rem 0; border-bottom: 1px solid var(--ok-line); color: var(--ok-fg-2); }
.ok .ok-feed time { color: var(--ok-fg-3); font: 500 var(--ok-t-caption) / 1.6 var(--ok-font-num); }
.ok .ok-feed b { color: var(--ok-fg); font-weight: 600; }
.ok .ok-feed.is-people { margin-bottom: var(--ok-sp-3); }
.ok .ok-feed.is-people li { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.ok .ok-feed.is-people li.is-unread { color: var(--ok-fg); }
.ok .ok-feed.is-people small { display: block; margin-top: 0.125rem; font-size: var(--ok-t-caption); }
.ok .ok-feed .ok-dot { margin-top: 0.375rem; color: var(--ok-info); }
.ok .ok-feed-link { color: inherit; text-decoration: none; }
.ok .ok-feed-link:hover b:last-of-type { text-decoration: underline; }

/* ── The path and the line ────────────────────────────────────────────── */
/* The steps of a piece or of a campaign, drawn: done, the one it is on now and what is left. Always with the step
   in words beside or under it; the drawing alone says nothing to a screen reader (aria-hidden). */
.ok .ok-track { display: flex; gap: 2px; width: 100%; max-width: 12rem; margin: 0; padding: 0; list-style: none; }
.ok .ok-track > * { flex: 1 1 0; height: 0.375rem; border-radius: var(--ok-r-pill); background: var(--ok-line); }
.ok .ok-track > .is-done { background: var(--ok-fg); }
.ok .ok-track > .is-now { background: var(--ok-accent); box-shadow: inset 0 0 0 1px var(--ok-on-accent-soft); }
.ok .ok-track > .is-stopped { background: var(--ok-warn); }
/* A daily series beside its figure: the line, and its last day marked. */
.ok .ok-spark { display: block; width: 6rem; height: 1.75rem; overflow: visible; }
.ok .ok-spark polyline { fill: none; stroke: var(--ok-fg-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ok .ok-spark circle { fill: var(--ok-accent); stroke: var(--ok-fg); stroke-width: 1; }

/* ── States: loading, empty, failed, denied ───────────────────────────── */
.ok .ok-skel { display: block; height: 0.75rem; border-radius: var(--ok-r-ctl); background: var(--ok-surface-2); }
.ok .ok-skel.is-figure { width: 6rem; height: 1.75rem; }
/* Map of connections (Cómo se conecta): today's drawing in the frame's colours; the same graph in words on a narrow screen. */
.ok .ok-map { margin: 0; }
.ok .ok-map > figcaption { max-width: 44rem; margin-top: var(--ok-sp-3); }
.ok .ok-dg-wide { overflow-x: auto; }
.ok .ok-dg { display: block; width: 100%; min-width: 68rem; height: auto; font-family: var(--ok-font); }
.ok .ok-dg-node rect { fill: var(--ok-surface); stroke: var(--ok-line-strong); stroke-width: 1.5; }
.ok .ok-dg-center rect, .ok .ok-dg-core { fill: var(--ok-accent-soft); stroke: var(--ok-accent); stroke-width: 2; }
.ok .ok-dg-label { fill: var(--ok-fg); font-size: 17px; font-weight: 600; text-anchor: middle; }
.ok .ok-dg-sub { fill: var(--ok-fg-2); font-size: 12.5px; text-anchor: middle; }
.ok .ok-dg-core-label { fill: var(--ok-fg); font-size: 20px; font-weight: 700; text-anchor: middle; }
.ok .ok-dg-core-label.ok-dg-start { text-anchor: start; }
.ok .ok-dg-edge { fill: none; stroke: var(--ok-fg-3); stroke-width: 2; stroke-linejoin: round; }
.ok .ok-dg-dashed { stroke-dasharray: 6 5; }
.ok .ok-dg-head { fill: var(--ok-fg-3); }
.ok .ok-dg-flow-number circle { fill: var(--ok-surface); stroke: var(--ok-line-strong); stroke-width: 1.5; }
.ok .ok-dg-flow-number text { fill: var(--ok-fg); font-size: 12px; font-weight: 600; text-anchor: middle; }
.ok .ok-dg a:hover rect, .ok .ok-dg a:focus-visible rect { stroke: var(--ok-action); stroke-width: 2; }
.ok .ok-dg-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: var(--ok-sp-3) var(--ok-sp-5); margin: var(--ok-sp-5) 0 0; padding: 0; list-style: none; color: var(--ok-fg-2); font-size: var(--ok-t-small); }
.ok .ok-dg-legend li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--ok-sp-2); }
.ok .ok-dg-legend a { color: var(--ok-fg); font-weight: 500; }
.ok .ok-dg-n { width: 1.375rem; height: 1.375rem; border: 1px solid var(--ok-line-strong); border-radius: var(--ok-r-pill); text-align: center; font: 600 var(--ok-t-caption) / 1.375rem var(--ok-font-num); }
.ok .ok-dg-tall { display: none; }
.ok .ok-dg-tall > section + section { margin-top: var(--ok-sp-5); }
.ok .ok-dg-tall .ok-label { margin: 0 0 var(--ok-sp-2); }
.ok .ok-dg-tall .ok-card .ok-card { margin-top: var(--ok-sp-3); }
.ok .ok-dg-tall .ok-item-title a { color: inherit; text-decoration: none; }
.ok .ok-dg-tall .ok-item-title a:hover { text-decoration: underline; }
/* A written document inside a page (Qué vive dónde): its parts and its table keep their distance. */
.ok .ok-doc > .ok-item-title { margin-top: var(--ok-sp-5); }
.ok .ok-doc > .ok-table-wrap { margin-top: var(--ok-sp-3); }
/* An address to copy, with its button (the connector guides). */
.ok .ok-copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ok-sp-3); margin: 0 0 var(--ok-sp-6); }
.ok .ok-copy code { padding: var(--ok-sp-2) var(--ok-sp-3); border: 1px solid var(--ok-line); border-radius: var(--ok-r-ctl); background: var(--ok-surface-2); font: var(--ok-t-body) var(--ok-font-num); overflow-wrap: anywhere; }
.ok .ok-prose pre { padding: var(--ok-sp-2) var(--ok-sp-3); overflow-x: auto; border-radius: var(--ok-r-ctl); background: var(--ok-surface-2); }
.ok .ok-prose pre code { padding: 0; background: none; }

@media (prefers-reduced-motion: no-preference) {
  .ok .ok-skel { animation: ok-pulse 1.4s var(--ok-ease) infinite alternate; }
}
/* A group of filters or a list of tabs that scrolls sideways fades towards the side that still hides something. The
   fade is the sign that there is more, so where it works the tabs drop their scrollbar (a bar under the tabs' own
   line read as a second, thicker line); where it does not, the thin bar stays as the sign. */
@supports (animation-timeline: scroll()) {
  .ok .ok-filters .ok-seg, .ok .ok-tabs { animation: ok-more linear both; animation-timeline: scroll(self inline); }
  .ok .ok-tabs { scrollbar-width: none; }
}
@keyframes ok-more {
  from { mask-image: linear-gradient(to right, black calc(100% - 2.5rem), transparent); }
  1%, 99% { mask-image: linear-gradient(to right, transparent, black 2.5rem, black calc(100% - 2.5rem), transparent); }
  to { mask-image: linear-gradient(to right, transparent, black 2.5rem); }
}
@keyframes ok-pulse { from { opacity: 1; } to { opacity: 0.45; } }
.ok .ok-state { display: grid; justify-items: start; gap: var(--ok-sp-2); padding: var(--ok-sp-5) 0; color: var(--ok-fg-2); }
.ok .ok-state b { color: var(--ok-fg); font-size: var(--ok-t-lead); }
.ok .ok-state p { max-width: 30rem; margin: 0; }
/* A page outside the frame (no rail): the mark, what happened and the way back, in the middle of the screen. */
.ok .ok-outside { display: grid; align-content: center; justify-items: start; gap: var(--ok-sp-3); width: min(34rem, 100%); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: var(--ok-sp-5); color: var(--ok-fg-2); font-size: var(--ok-t-lead); }
.ok .ok-outside .ok-lockup { height: 1.75rem; margin-bottom: var(--ok-sp-5); }
.ok .ok-outside .ok-brandset { margin-bottom: var(--ok-sp-5); }
.ok .ok-outside-title { margin: 0; color: var(--ok-fg); font: var(--ok-head-weight) var(--ok-t-h1) / var(--ok-lh-tight) var(--ok-font-head); font-stretch: var(--ok-head-stretch); letter-spacing: var(--ok-head-tracking); text-wrap: balance; }
.ok .ok-outside p { max-width: 30rem; margin: 0; }
.ok .ok-outside .ok-btn { margin-top: var(--ok-sp-3); }
/* The stand-in pages («no disponible», «sin acceso») under the bridge: their <main> is `.ok.ok-standin`, with the
   sheet of the frame and the v1 notice. Without this file the sheet is not shown (the v1 /paginas.css hides it, or
   it is `hidden` until the bridge is done); with it the sheet shows and the v1 notice goes. The class twice: over
   the padding the v1 pages give their <main>. */
.ok.ok-standin.ok-standin { display: flex; padding: var(--ok-sp-3) var(--ok-sp-3) var(--ok-sp-3) 0; }
.ok.ok-standin > .ok-sheet { display: block; }
.ok.ok-standin > .ox-down { display: none; }
.ok .ok-standin-actions { display: flex; flex-wrap: wrap; gap: var(--ok-sp-2); margin-top: var(--ok-sp-3); }
.ok .ok-state.is-center { justify-items: center; text-align: center; padding-block: var(--ok-sp-7); }

/* ── Narrow screens: the rail becomes a drawer ────────────────────────── */
@media (max-width: 60rem) {
  .ok.ok-standin.ok-standin { padding: var(--ok-sp-3); }
  .ok .ok-dg-wide { display: none; }
  .ok .ok-dg-tall { display: block; }
  .ok .ok-app { grid-template-columns: minmax(0, 1fr); }
  .ok .ok-main { padding: 0 var(--ok-sp-2) var(--ok-sp-2); }
  .ok .ok-btn.ok-menu-btn { display: inline-flex; }
  /* The bar stays at the top while the page scrolls, so the menu is always at hand: opaque, above the content and
     under the drawer and its scrim (40 and 39). */
  .ok .ok-top { position: sticky; top: 0; z-index: 30; flex-wrap: wrap; gap: var(--ok-sp-2); padding-block: var(--ok-sp-2); background: var(--ok-bg); }
  .ok .ok-top-grow { justify-content: flex-start; }
  /* The search is a button at the end of the bar; open, its input lies over the bar and the list under it. */
  .ok .ok-search-box { position: static; flex: none; }
  /* It goes to the end, next to the person, unless the preview line shows: then the bar keeps the order of the
     document (menu, search, the line, the person), which is the order Tab walks it in (WCAG 2.4.3). */
  .ok .ok-top:not(:has(> [data-ok-old]:not([hidden]))) > .ok-search-box { margin-left: auto; order: 1; }
  /* The person, at the end of the bar: the avatar is the link to Mi perfil, with the room a finger needs. It comes
     after the search button, or alone at the end when search is off. */
  .ok .ok-top-me { display: inline-flex; align-items: center; justify-content: center; order: 2; flex: none; min-width: 2.75rem; min-height: 2.75rem; margin-left: auto; border-radius: var(--ok-r-pill); text-decoration: none; }
  .ok .ok-search-box:not([hidden]) ~ .ok-top-me { margin-left: 0; }
  .ok .ok-top-me[aria-current="page"] > .ok-avatar { box-shadow: 0 0 0 2px var(--ok-bg), 0 0 0 4px var(--ok-action); }
  .ok .ok-btn.ok-search-open { display: inline-flex; }
  .ok .ok-search-box > .ok-search { display: none; }
  .ok .ok-search-box[data-open] > .ok-search { display: flex; position: absolute; z-index: 1; inset: var(--ok-sp-2) 0; width: auto; padding-right: var(--ok-sp-1); }
  .ok .ok-search kbd { display: none; }
  .ok .ok-btn.ok-search-close { display: inline-flex; }
  .ok .ok-search-panel { top: 100%; }
  .ok .ok-skip { display: none; }
  .ok .ok-rail { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(var(--ok-rail-w), 86vw); background: var(--ok-bg); box-shadow: var(--ok-shadow); transform: translateX(-102%); visibility: hidden; transition: transform var(--ok-dur) var(--ok-ease), visibility var(--ok-dur); }
  /* Opening shows it at once, so focus can move in; closing hides it when the slide ends. */
  .ok .ok-rail[data-open] { transform: none; visibility: visible; transition: transform var(--ok-dur) var(--ok-ease); }
  .ok .ok-scrim { position: fixed; inset: 0; z-index: 39; border: 0; background: var(--ok-scrim); }
  .ok .ok-scrim[hidden] { display: none; }
  .ok .ok-cols { grid-template-columns: minmax(0, 1fr); }
  .ok .ok-sheet { padding-block: var(--ok-sp-5); }
  .ok .ok-item { grid-template-columns: 0.5rem minmax(0, 1fr); }
  .ok .ok-item.is-link { grid-template-columns: 0.5rem minmax(0, 1fr) auto; }
  .ok .ok-video.is-featured { grid-template-columns: minmax(0, 1fr); gap: var(--ok-sp-3); }
  .ok .ok-grid.is-pairs { grid-template-columns: minmax(0, 1fr); }
  .ok .ok-plan-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ok .ok-board-row { grid-template-columns: minmax(0, 1fr); }
  .ok .ok-board-cols { display: none; }
  .ok .ok-board-when { display: block; }
  .ok .ok-item > .ok-btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 30rem) {
  /* A phone: a table fits the sheet before it scrolls. Its headings wrap (a heading longer than its figures shows a
     short text, «Cambio en leads», and keeps the whole one for screen readers) and the cells keep half the room between them. */
  .ok .ok-table thead th { white-space: normal; vertical-align: bottom; }
  .ok .ok-table th, .ok .ok-table td { padding-right: var(--ok-sp-2); }
  .ok .ok-table th:last-child, .ok .ok-table td:last-child { padding-right: 0; }
  /* A table marked .is-rows (phoneRows in dom.js) reads as one block per row: the row heading on top and each figure
     on its own line, beside the name of its column. The column headings leave the screen and stay for a screen
     reader, which does not hear the names drawn beside the figures a second time. Nothing scrolls sideways. The
     rule that makes a row a block weighs less than the ones that hide one (`hidden`, a row behind «Ver N más»). */
  .ok .ok-table.is-rows, .ok .ok-table.is-rows tbody, .ok :where(.ok-table.is-rows tbody) tr, .ok .ok-table.is-rows tbody th, .ok .ok-table.is-rows td { display: block; }
  .ok .ok-table.is-rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ok .ok-table.is-rows tbody tr { padding-block: var(--ok-sp-3); border-bottom: 1px solid var(--ok-line); }
  .ok .ok-table.is-rows tbody tr:first-child { padding-top: 0; }
  .ok .ok-table.is-rows tbody tr:last-child { padding-bottom: 0; border-bottom: 0; }
  .ok .ok-table.is-rows tbody th, .ok .ok-table.is-rows td { height: auto; padding: 0; border: 0; }
  .ok .ok-table.is-rows tbody th { margin-bottom: var(--ok-sp-1); }
  .ok .ok-table.is-rows tbody tr:hover > * { background: none; }
  .ok .ok-table.is-rows td[data-ok-label] { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ok-sp-3); padding-block: 0.125rem; text-align: right; }
  .ok .ok-table.is-rows td[data-ok-label]::before { content: attr(data-ok-label); content: attr(data-ok-label) / ""; color: var(--ok-fg-2); font: 600 var(--ok-label-size) / 1.3 var(--ok-label-font); letter-spacing: var(--ok-label-tracking); text-align: left; text-transform: var(--ok-label-case); white-space: normal; }
  /* .is-text: the cells are sentences, not figures. The name of the column goes above its text, both from the left. */
  .ok .ok-table.is-rows.is-text td[data-ok-label] { display: block; padding-block: var(--ok-sp-1); text-align: left; }
  .ok .ok-table.is-rows.is-text td[data-ok-label]::before { display: block; }
  /* A badge in a cell wraps too: on one line, «Todos los clientes» left the last column of Mi perfil past the edge. */
  .ok .ok-table td .ok-badge { white-space: normal; }
  /* A text box with its label beside it (the filter of Clientes): the label goes above and the box takes the row. */
  .ok .ok-field.is-inline:has(> .ok-input) { display: grid; width: 100%; }
  /* An alert with its action: when both do not fit on a line, the action goes under the text, at its start (beside
     it, the notice of the role took four lines of half the width). */
  .ok .ok-alert { flex-wrap: wrap; }
  .ok .ok-alert > :last-child:not(:first-child) { margin-left: 0; }
  /* The editor of Mi vista: each entry's name takes the room left, so «Subir» and «Bajar» stand in one column for
     the thumb instead of following the length of each name. */
  .ok [data-ok-views] .ok-form-row > .ok-check { flex: 1 1 0; min-width: 0; }
  .ok .ok-fieldset.is-inline > legend { flex: 0 0 100%; line-height: 1.3; }
  .ok .ok-fieldset.is-inline > .ok-input[type="date"] { flex: 1 1 0; width: auto; min-width: 0; }
  .ok .ok-chart text { font-size: 1.5rem; }
  /* A button's label is one line wherever it fits; on a 360 px phone the sheet leaves about 310 px, so a longer
     label wraps inside the button instead of pushing the page sideways. */
  .ok .ok-btn { max-width: 100%; white-space: normal; line-height: 1.2; text-align: center; }
}
@media (min-width: 60.0625rem) {
  .ok .ok-scrim { display: none; }
}
/* Touch: what the tokens do not reach also gets a 44 px target (tokens.css grows --ok-h on a coarse pointer). A
   segment of a filter bar took 6 px off it for the group's frame (38 px), and the title of a row and the links of a
   section heading were one line of text (about 22 px). */
@media screen and (pointer: coarse) {
  .ok .ok-filters .ok-seg > *, .ok .ok-field .ok-seg > * { min-height: var(--ok-h); }
  /* These rules set `display`, and they weigh more than `.ok [hidden]`: each one leaves a hidden link alone. */
  .ok a.ok-item-title:not([hidden]) { display: flex; align-items: center; min-height: var(--ok-h); }
  .ok .ok-h2 > .ok-link:not([hidden]) { display: inline-flex; align-items: center; min-width: var(--ok-h); min-height: var(--ok-h); }
  /* A link that is the whole of its line, not part of a sentence: the name in a table's row heading, the action of
     a row, a crumb and the way back of the preview line. 44 px both ways, however short its text. */
  .ok th > a.ok-link:not([hidden]), .ok [data-ok-row-action] > a.ok-link:not([hidden]), .ok [data-ok-client-open] > a.ok-link:not([hidden]), .ok .ok-crumbs a:not([hidden]), .ok .ok-top-grow > .ok-link:not([hidden]) { display: inline-flex; align-items: center; min-width: var(--ok-h); min-height: var(--ok-h); }
  /* The way back from the page of a client to the list («Todos los clientes»), a line of small text. */
  .ok [data-ok-clients-crumb] > a.ok-link:not([hidden]) { display: inline-flex; align-items: center; min-width: var(--ok-h); min-height: var(--ok-h); }
  /* Plan: a short segment («VN», «VO») is as wide as it is high; the name of a campaign, which opens its piece, is
     a 44 px line; and a link inside a line of facts or a badge keeps its size and takes the 44 px around it. */
  .ok .ok-seg > * { min-width: var(--ok-h); }
  .ok .ok-item-title > a.ok-link:not([hidden]) { display: inline-flex; align-items: center; min-height: var(--ok-h); }
  .ok .ok-facts dd > a.ok-link, .ok .ok-piece-foot .ok-badge > a.ok-link { position: relative; }
  .ok .ok-facts dd > a.ok-link::after, .ok .ok-piece-foot .ok-badge > a.ok-link::after { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, var(--ok-h)); height: var(--ok-h); transform: translate(-50%, -50%); }
  /* Ayuda: a link that stands alone beside the page heading, under a card or a video («Ficha en Aplicaciones»,
     «Ver guía»), the name of a box of the map in words and each of its connections are 44 px lines; a link in a
     cell of a table of text keeps its size and takes the 44 px around it. */
  .ok .ok-ph > a.ok-link:not([hidden]), .ok .ok-app-actions > a.ok-link:not([hidden]), .ok .ok-app-card > a.ok-link:not([hidden]), .ok .ok-video-body > a.ok-link:not([hidden]), .ok .ok-item-title > a:not([hidden]) { display: inline-flex; align-items: center; min-width: var(--ok-h); min-height: var(--ok-h); }
  .ok .ok-dg-tall .ok-prose > li > a:not([hidden]) { display: flex; align-items: center; min-height: var(--ok-h); }
  .ok .ok-table td > a.ok-link { position: relative; }
  .ok .ok-table td > a.ok-link::after { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, var(--ok-h)); height: var(--ok-h); transform: translate(-50%, -50%); }
}

/* ── Print: every page of the frame as a document ─────────────────────── */
/* The page heading, what is shown and the content, on white, at the paper's width. What only moves around or
   chooses what is shown does not print. The colours are the light palette whatever the person uses on screen: the
   dark blocks of tokens.css are screen-only. A4 is under 60rem, so the narrow layout above applies here too. */
/* «Ver N más» (fold in dom.js): a held row of a long list is off the screen only; paper prints the whole list. */
@media screen { .ok [data-ok-held] { display: none; } }

@media print {
  @page { margin: 14mm 13mm 16mm; }
  /* Tokens: one ground, no shadow, links as text. */
  .ok { --ok-bg: var(--ok-surface); --ok-surface-2: var(--ok-surface); --ok-shadow: none; --ok-shadow-1: 0 0 0 0 transparent; --ok-shadow-2: 0 0 0 0 transparent; --ok-link: var(--ok-fg); background: var(--ok-surface); }
  /* The frame around the page and every control. */
  .ok .ok-rail, .ok .ok-scrim, .ok .ok-top, .ok .ok-skip, .ok .ok-search-box, .ok .ok-skel, .ok .ok-dialog,
  .ok .ok-btn, .ok button:not(.ok-video-poster), .ok form, .ok form.ok-form, .ok .ok-filters, .ok .ok-chips, .ok .ok-seg, .ok .ok-select,
  .ok .ok-input, .ok .ok-check, .ok .ok-field:has(> .ok-seg, > .ok-select, > .ok-input),
  .ok .ok-approval-actions, .ok .ok-standin-actions, .ok .ok-section:has(> .ok-card.ok-form .ok-seg), .ok .ok-new { display: none; }
  /* Clientes: the way back to the list and the «Abrir …» line of each block lead nowhere on paper. */
  .ok [data-ok-client-period] { display: none; }
  .ok [data-ok-clients-crumb], .ok [data-ok-client-open] { display: none; }
  /* An action repeated on every row («Llevar a proyecto en Plane ↗», «Ver entrega en Plane ↗») is not done on paper. */
  .ok [data-ok-row-action] { display: none; }
  /* A sheet or a written guide: what opens the application or its guides, beside the heading, leads nowhere either. */
  .ok .ok-ph > .ok-app-actions { display: none; }
  /* Inicio: the links beside a heading («Ver todas en Plane», «Abrir Anuncios», «Ver todos») only lead elsewhere. */
  .ok .ok-h2 > .ok-link { display: none; }
  /* Inicio, «Áreas»: the buttons to the applications do not print, so a card ends after its figures (or its one
     line): no room kept for them, no line above them, and not stretched to the height of the card beside it. The
     figures reach the card's edge, which closes them; the card clips them to its corners. */
  .ok .ok-area { align-self: start; overflow: hidden; }
  .ok .ok-area > .ok-app-actions { display: none; }
  .ok .ok-area > .ok-metrics { margin-bottom: calc(-1 * var(--ok-sp-4)); border-bottom: 0; }
  .ok .ok-app { display: block; min-height: 0; }
  .ok .ok-main { display: block; padding: 0; }
  .ok .ok-sheet, .ok .ok-sheet.is-bare, .ok.ok-standin.ok-standin { padding: 0; border: 0; border-radius: 0; }
  .ok .ok-outside { min-height: 0; padding: 0; }
  /* Nothing scrolls: the whole table, the whole group, at the paper's width. */
  .ok .ok-table-wrap, .ok .ok-tabs, .ok .ok-dg-wide, .ok .ok-prose pre { max-width: none; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .ok .ok-table td { height: auto; }
  .ok thead { display: table-header-group; }
  /* A folded part of a page (a report's tables by channel and model) prints open. A chart's values stay out: on
     paper the chart itself is there, and its table would be pages of daily rows. */
  .ok .ok-more::details-content { content-visibility: visible; }
  .ok .ok-chart > .ok-more { display: none; }
  .ok .ok-more > summary { min-height: 0; color: var(--ok-fg-3); font: 500 var(--ok-label-size) / 1.3 var(--ok-label-font); letter-spacing: var(--ok-label-tracking); text-transform: var(--ok-label-case); }
  .ok .ok-more > summary::before { content: none; }
  /* Links read as text; status keeps a border so it reads without colour. */
  .ok :is(a, .ok-link, .ok-prose a) { text-decoration: none; }
  .ok .ok-badge { border: 1px solid currentColor; }
  .ok .ok-video-poster::before, .ok .ok-video-poster::after { content: none; }
  /* Plan del mes: the two months side by side, as on a wide screen. Grids inside grids do not paginate (a real
     PDF painted one dealer's row over the one before and left the first page empty under the heading), so on
     paper the boards, each board and each cell are blocks and a row is a flex row: it breaks between its pieces
     and the next row starts where this one ends. A board is not a card here: a rule sets it apart from the one
     before, so no empty frame is left at the foot of a page. */
  .ok .ok-boards, .ok .ok-board, .ok .ok-board-cell { display: block; }
  .ok .ok-board { padding: 0; border: 0; border-radius: 0; background: none; }
  .ok .ok-board + .ok-board { margin-top: var(--ok-sp-5); padding-top: var(--ok-sp-4); border-top: 2px solid var(--ok-line); }
  .ok .ok-board > * + * { margin-top: var(--ok-sp-3); }
  .ok .ok-board-cell > * + * { margin-top: var(--ok-sp-2); }
  .ok .ok-board-row, .ok .ok-board-cols { display: flex; align-items: flex-start; }
  .ok .ok-board-row > :first-child { flex: 0 0 8rem; }
  .ok .ok-board-row > :not(:first-child) { flex: 1 1 0; min-width: 0; }
  .ok .ok-board-when { display: none; }
  /* A piece of the board on paper: its facts run as lines of text instead of one per row («Estado Publicada ·
     Versión R-Line …»), and the card is tighter, so a sheet holds more pieces and none is split (it still avoids
     breaking inside). A label stays with its value: a no-break space joins them; a space after the value is where
     a line may break. */
  .ok .ok-board .ok-piece { gap: var(--ok-sp-1); padding: var(--ok-sp-2) var(--ok-sp-3); }
  .ok .ok-board .ok-facts { display: block; }
  .ok .ok-board .ok-facts :is(dt, dd) { display: inline; }
  .ok .ok-board .ok-facts dt::after { content: "\a0"; }
  .ok .ok-board .ok-facts dd { margin-right: var(--ok-sp-2); }
  .ok .ok-board .ok-facts dd::after { content: " "; }
  /* Resultados: a unit of the report is a block on paper too (a grid does not keep a heading with what follows),
     so the reading of a metric stays with its chart and a folded table with its label. */
  .ok .ok-report-unit { display: block; }
  .ok .ok-report-unit > * + * { margin-top: var(--ok-sp-3); }
  /* Estudio and Paid Media: a block's list can be longer than a sheet. In a grid, a card that cannot be split was
     pushed whole to the next page (a real PDF left the first page with only the heading) and the odd block kept
     half the width with the other half blank. On paper the blocks follow one another at full width, as the
     boards do, and a block breaks between its pieces. */
  .ok .ok-grid[data-ok-dept] { display: block; }
  .ok .ok-grid[data-ok-dept] > .ok-card { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
  .ok .ok-grid[data-ok-dept] > .ok-card + .ok-card { margin-top: var(--ok-sp-5); padding-top: var(--ok-sp-4); border-top: 2px solid var(--ok-line); }
  .ok .ok-grid[data-ok-dept] > .ok-card > * + * { margin-top: var(--ok-sp-2); }
  /* Page breaks: a row, a tile, a card, a figure or a folded part is not split; a heading stays with what follows it. */
  .ok :is(tr, .ok-metric, .ok-metrics, .ok-piece, .ok-board-who, .ok-chart, .ok-card:not(.ok-board, [data-ok-block]), .ok-item, .ok-feed li, .ok-alert, .ok-state, .ok-video, .ok-more) { break-inside: avoid; }
  .ok :is(h1, h2, h3, h4, caption, .ok-ph, .ok-board-h, .ok-board-cols, .ok-more > summary, .ok-label, .ok-card[data-ok-block] > .ok-meta, .ok-report-unit > .ok-meta) { break-after: avoid; }
  .ok :is(p, li, dd) { orphans: 3; widows: 3; }
}

/* The hidden attribute wins over any component's display. Keep this rule last. */
.ok [hidden] { display: none; }
