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

/* Anything scrolled to by a link or by keyboard focus has to land below the pinned part
   of the header: its destinations row under 1024px, the whole single row above. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.5rem; scrollbar-color: var(--color-border-strong) var(--color-surface-muted); }
@media (min-width: 1024px) { html { scroll-padding-top: 5.5rem; } }

a, button, summary, input, select, label { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in srgb, var(--color-secondary) 18%, transparent); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: var(--weight-regular) var(--text-md) / var(--leading) var(--font-sans);
  overflow-wrap: anywhere;
}

::selection { background: var(--color-secondary-soft); color: var(--color-text); }
input, select, textarea { caret-color: var(--color-secondary-strong); accent-color: var(--color-secondary-strong); }

a { color: var(--color-link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }

h1, h2, h3 { color: var(--color-text); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); text-wrap: balance; margin: 0; }
h1 { font-size: var(--text-3xl); font-weight: var(--weight-heavy); }
h2 { font-size: var(--text-2xl); font-weight: var(--weight-bold); }
h3 { font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: -0.01em; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 40;
  padding: var(--space-3) var(--space-4); background: var(--color-surface); color: var(--color-text);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.skip-link:focus { top: var(--space-2); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 720px) { .wrap { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .wrap { padding-inline: var(--space-8); } }

.icon { width: 20px; height: 20px; flex: none; }

/* Header: the brand, four destinations, the global search and the other language.
   One row from 1024px; below it the destinations take a second row and the search opens as a sheet. */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.site-header-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-3); min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--target); margin-right: auto; color: var(--color-primary); font-weight: var(--weight-heavy); font-size: 1.125rem; text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--color-primary); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark-low { fill: var(--color-mark-light); }
.brand-mark-mid { fill: var(--color-data); }
.brand-mark-high { fill: var(--color-secondary); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy small { margin-top: 2px; color: var(--color-text-secondary); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: 0; }

.site-nav { order: 5; flex: 1 1 100%; margin-inline: calc(var(--space-2) * -1); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0 0 var(--space-2); }
.site-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); min-width: var(--target); padding-inline: var(--space-3);
  color: var(--color-text-secondary-strong); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; white-space: nowrap; overflow-wrap: normal;
  border-radius: var(--radius-md); transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.site-nav a:hover { color: var(--color-text); background: var(--color-bg); }
.site-nav a[aria-current="page"] { color: var(--color-secondary-strong); background: var(--color-secondary-soft); }

.global-search { position: relative; display: flex; align-items: center; gap: var(--space-2); }
.global-search-icon { position: absolute; left: var(--space-3); display: inline-flex; color: var(--color-text-secondary); pointer-events: none; }
.global-search input {
  flex: 1 1 auto; min-width: 0; min-height: var(--target); padding: 0 var(--space-3) 0 2.5rem;
  font: inherit; font-size: var(--text-sm); color: var(--color-text); background: var(--color-bg);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.global-search input::placeholder { color: var(--color-text-secondary); }
.global-search input:hover { border-color: var(--color-text-secondary-strong); }
.global-search input:focus-visible { outline: none; background: var(--color-surface); border-color: var(--color-focus); box-shadow: var(--focus-ring); }
.global-search-inline { display: none; }

.header-search > summary {
  display: inline-flex; align-items: center; justify-content: center; width: var(--target); height: var(--target);
  color: var(--color-primary); border-radius: var(--radius-md); cursor: pointer; list-style: none;
}
.header-search > summary::-webkit-details-marker { display: none; }
.header-search > summary:hover, .header-search[open] > summary { background: var(--color-secondary-soft); color: var(--color-secondary-strong); }
.global-search-sheet {
  position: absolute; left: 0; right: 0; top: 100%;
  flex-wrap: wrap; row-gap: var(--space-1);
  padding: var(--space-3) var(--space-4); background: var(--color-surface);
  border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md);
}
.global-search-label { flex: 1 1 100%; color: var(--color-text); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.global-search-sheet .global-search-icon { display: none; }
.global-search-sheet input { padding-left: var(--space-3); }

/* Below 1024px the header is two rows; the brand row scrolls away and the destinations stay
   pinned, so the bar never takes more than one row of a phone's screen. */
@media (max-width: 1023.98px) {
  .site-header { top: calc(var(--target) * -1); }
}
@media (max-width: 479.98px) {
  .site-nav a { padding-inline: var(--space-2); }
  .global-search-sheet .btn { padding-inline: var(--space-3); }
}
@media (min-width: 1024px) {
  .site-header-row { flex-wrap: nowrap; column-gap: var(--space-4); }
  .brand { margin-right: 0; }
  .site-nav { order: 0; flex: 0 1 auto; margin-inline: 0; }
  .site-nav ul { flex-wrap: nowrap; padding: 0; }
  .global-search-inline { display: flex; flex: 1 1 18rem; max-width: 26rem; margin-left: auto; }
  .global-search-inline .btn { display: none; }
  .header-search { display: none; }
}

/* Page frame */
main { display: block; padding-block: var(--space-8) var(--space-16); }
.page-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.page-head > p:not(.page-meta) { max-width: var(--measure); color: var(--color-text-secondary); font-size: var(--text-lg); }
.page-head .actions { margin-top: var(--space-1); }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.page-meta-item { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-text-secondary-strong); }
.page-meta-item .icon { width: 16px; height: 16px; color: var(--color-secondary); }
.crumbs { margin-bottom: var(--space-2); font-size: var(--text-sm); color: var(--color-text-secondary); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: baseline; gap: var(--space-2); }
.crumbs li + li::before { content: "/"; color: var(--color-border-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--target); min-width: var(--target); }
@media (max-width: 719.98px) {
  /* On a phone only the level above stays visible; the whole trail stays in the page for search engines. */
  .crumbs li:not(:nth-last-child(2)) { display: none; }
  .crumbs li:nth-last-child(2)::before { content: "‹"; }
}

.section { margin-top: var(--space-12); }
.section-tight { margin-top: var(--space-5); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
.section-head p { color: var(--color-text-secondary); font-size: var(--text-sm); max-width: var(--measure); }
.grid-2 { display: grid; gap: var(--space-6); }
.grid-2 > .section { margin-top: 0; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.list-heading { font-size: var(--text-md); margin-bottom: var(--space-3); }
.more a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: var(--weight-semibold); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.action-bar { margin-top: var(--space-5); }

/* Workspace: the light sidebar of the working pages (analysis, market, comparison, search) beside their content. */
.workspace { display: grid; gap: var(--space-6); }
.workspace > * { min-width: 0; }
@media (min-width: 1024px) {
  .workspace { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-8); align-items: start; }
  .workspace-side { position: sticky; top: calc(var(--header-height) + var(--space-4)); }
  .workspace:has(> form.workspace-side) { grid-template-columns: 19rem minmax(0, 1fr); }
  form.workspace-side { position: static; }
  form.workspace-side .advanced-filter-grid { grid-template-columns: 1fr; }
  .workspace .grid-2 { grid-template-columns: 1fr; }
}
@media (min-width: 1440px) { .workspace .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* As a scrolling row it runs to the screen's edges, so a cut item reads as «more this way»,
   and keeps room above and below for the focus ring the scroller would otherwise clip. */
.side-nav ul {
  display: flex; gap: var(--space-2); list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin: calc(var(--space-2) * -1) calc(var(--space-4) * -1); padding: var(--space-2) var(--space-4); scroll-padding-inline: var(--space-4);
}
.side-nav li { flex: none; scroll-snap-align: start; }
@media (min-width: 720px) and (max-width: 1023.98px) {
  .side-nav ul { margin-inline: calc(var(--space-6) * -1); padding-inline: var(--space-6); scroll-padding-inline: var(--space-6); }
}
.side-nav a {
  display: flex; align-items: center; gap: var(--space-2); min-height: var(--target); padding: 0 var(--space-3);
  color: var(--color-text-secondary-strong); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; white-space: nowrap;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.side-nav a .icon { width: 18px; height: 18px; color: var(--color-text-secondary); }
.side-nav a:hover { color: var(--color-text); background: var(--color-bg); }
.side-nav a[aria-current="page"] { color: var(--color-secondary-strong); background: var(--color-secondary-soft); border-color: transparent; }
.side-nav a[aria-current="page"] .icon { color: var(--color-secondary-strong); }
@media (min-width: 1024px) {
  .side-nav ul { flex-direction: column; gap: var(--space-1); overflow: visible; margin: 0; padding: var(--space-2); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
  .side-nav a { border: 0; }
}

/* Surfaces: a card holds one subject; a panel holds one table or chart. */
.card, .panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); }
@media (max-width: 479.98px) { .card, .panel { padding: var(--space-4); } }
.card-title { margin-bottom: var(--space-3); font-size: var(--text-lg); }
.card > .section-head { margin-bottom: var(--space-3); }
.card > .section-head h2 { font-size: var(--text-lg); }

/* Provenance: where every figure comes from and how fresh it is */
.provenance {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4);
  margin-top: var(--space-6); padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm); color: var(--color-text-secondary);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.provenance-mark { display: inline-block; width: 8px; height: 8px; margin-right: var(--space-2); border-radius: 50%; background: var(--color-secondary); vertical-align: 0.05em; }
.provenance a { color: inherit; }
.provenance > a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--color-link); font-weight: var(--weight-semibold); }
.provenance strong { color: var(--color-text); font-weight: var(--weight-semibold); }

/* Figures: the KPI cards. One lead card in petrol answers the page's question. */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.figure {
  display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding: var(--space-4) var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.figure dt { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text-secondary-strong); }
.figure-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--radius-sm); background: var(--color-secondary-soft); color: var(--color-secondary-strong); }
.figure-icon .icon { width: 18px; height: 18px; }
.figure dd { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); margin: 0; color: var(--color-primary); font-size: var(--text-2xl); font-weight: var(--weight-heavy); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); font-variant-numeric: tabular-nums lining-nums; }
.figure .note { display: block; color: var(--color-text-secondary); font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: 0; line-height: var(--leading-snug); }
.figure dd .missing { color: var(--color-text-secondary-strong); font: italic var(--weight-medium) var(--text-md) / 1.4 var(--font-sans); letter-spacing: 0; }
.figure-link { display: inline-flex; align-items: center; min-height: var(--target); color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.figure-link:hover { color: inherit; }
.figure-lead { grid-column: 1 / -1; background: var(--color-primary); border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.figure-lead dt { color: var(--color-on-primary-muted); }
.figure-lead .figure-icon { background: rgb(255 255 255 / 12%); color: var(--color-on-primary); }
.figure-lead dd { color: var(--color-on-primary); font-size: var(--text-3xl); }
.figure-lead .note, .figure-lead .delta-base, .figure-lead dd .missing { color: var(--color-on-primary-muted); }
.figure-lead .delta-up, .figure-lead .delta-down, .figure-lead .delta-flat { color: var(--color-on-primary); }
.figure-lead .sparkline-line { stroke: var(--color-secondary); }
.figure-lead .sparkline-area { fill: color-mix(in srgb, var(--color-secondary) 22%, transparent); }
.figure-lead .sparkline-dot { fill: var(--color-on-primary); }
.figure-lead { --color-focus: var(--color-accent); }
.figure .time-left { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
@media (min-width: 720px) {
  .figures { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
  .figure-lead { grid-column: auto; }
  .figures-3 { grid-template-columns: 1.5fr repeat(2, minmax(0, 1fr)); }
  .figures-pair { grid-template-columns: 1fr 1fr; }
}

.delta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: 0; line-height: 1.3; font-variant-numeric: tabular-nums; }
.delta .icon { width: 16px; height: 16px; }
.delta-up { color: var(--color-success); }
.delta-down { color: var(--color-danger); }
.delta-flat { color: var(--color-text-secondary-strong); }
.delta-base { font-weight: var(--weight-regular); color: var(--color-text-secondary); }

.sparkline { display: block; width: 100%; max-width: 12rem; height: 32px; margin-top: var(--space-1); overflow: visible; }
.sparkline-line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sparkline-area { fill: var(--chart-area); }
.sparkline-dot { fill: var(--chart-1); }

.insights { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-4); padding: var(--space-4); background: var(--color-info-soft); border-radius: var(--radius-md); color: var(--color-text); }
.insights > .icon { color: var(--color-info); margin-top: 2px; }
.insights ul { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }

/* Data tables: rows on wide screens, labelled cards on phones */
/* break-word, unlike the page's anywhere, leaves a column at least as wide as its longest word. */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); overflow-wrap: break-word; }
.data-table caption { text-align: left; padding-bottom: var(--space-3); color: var(--color-text-secondary); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--color-border); }
.data-table thead th { color: var(--color-text-secondary-strong); background: var(--color-bg); font-size: var(--text-xs); font-weight: var(--weight-semibold); vertical-align: bottom; }
.data-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.data-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.data-table tbody tr { transition: background-color var(--duration-fast) var(--ease-out); }
.data-table tbody tr:hover { background: var(--color-bg); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { font-weight: var(--weight-medium); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.data-table td.num { color: var(--color-text); font-weight: var(--weight-semibold); }
.data-table a { font-weight: var(--weight-semibold); }
.data-table .sub { display: block; margin-top: 2px; color: var(--color-text-secondary); font-size: var(--text-xs); font-weight: var(--weight-regular); }
.panel > .data-table { margin: calc(var(--space-2) * -1) 0; }
/* The label a cell shows wherever its table is laid out as cards. */
.data-table td[data-label]::before { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-text-secondary); }
@media (max-width: 719.98px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table caption, .data-table tbody, .data-table tr, .data-table td, .data-table th { display: block; width: 100%; }
  .data-table tr { padding-block: var(--space-3); border-bottom: 1px solid var(--color-border); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table tbody tr:hover { background: none; }
  .data-table td, .data-table th { border: 0; padding: var(--space-1) 0; }
  .data-table .num { text-align: left; white-space: normal; }
  /* Label and value in two fixed columns, so every value of a card starts at the same edge. */
  .data-table td[data-label] { display: grid; grid-template-columns: minmax(6.5rem, 36%) minmax(0, 1fr); justify-items: start; align-items: baseline; column-gap: var(--space-3); }
  .data-table td[data-label]::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 3; }
  .data-table td[data-label] > * { grid-column: 2; }
  .data-table td[data-label] .rank-bar { justify-self: stretch; max-width: none; }
  /* Links set in running lines grow their tap area by padding the line can't see. */
  :is(.data-table, .catalog-name, .page-meta-item, .facts dd) a { padding-block: var(--space-2); margin-block: calc(var(--space-2) * -1); }
}
/* A shade on the edge that still has columns behind it: the surface-coloured covers scroll with
   the table and hide each shade once its edge is reached. */
.table-scroll {
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--color-surface) 30%, transparent) left center / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--color-surface) 30%, transparent) right center / 2.5rem 100% no-repeat local,
    linear-gradient(to right, color-mix(in srgb, var(--color-text) 14%, transparent), transparent) left center / 0.875rem 100% no-repeat scroll,
    linear-gradient(to left, color-mix(in srgb, var(--color-text) 14%, transparent), transparent) right center / 0.875rem 100% no-repeat scroll,
    var(--color-surface);
}
/* On a tablet the two widest tables turn each row into a card: the process across the top,
   its labelled figures in a strip below, so nothing has to scroll sideways. */
@media (min-width: 720px) and (max-width: 1023.98px) {
  :is(.ledger-table, .search-results) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :is(.ledger-table, .search-results), :is(.ledger-table, .search-results) tbody { display: block; }
  :is(.ledger-table, .search-results) tr { display: grid; gap: var(--space-2) var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--color-border); }
  .ledger-table tr { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .search-results tr { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
  :is(.ledger-table, .search-results) tbody tr:last-child { border-bottom: 0; }
  :is(.ledger-table, .search-results) :is(td, th) { padding: 0; border: 0; }
  :is(.ledger-table, .search-results) .num { text-align: left; white-space: normal; }
  :is(.ledger-table, .search-results) tbody th { grid-column: 1 / -1; }
  :is(.ledger-table, .search-results) td[data-label]::before { content: attr(data-label); display: block; }
}
@media (min-width: 1024px) {
  .search-results, .ledger-table { min-width: 860px; }
  .data-table .date { white-space: nowrap; }
  .data-table .date .sub { white-space: normal; min-width: 12rem; }
  .ledger-table .object { width: 34%; }
}
.ledger-table .sub a { font-weight: var(--weight-medium); }

.rank { color: var(--color-text-secondary); font-variant-numeric: tabular-nums; width: 2.5rem; }
@media (max-width: 719.98px) { .rank { display: none !important; } }

.empty { color: var(--color-text-secondary); padding: var(--space-4) 0; }
.missing { color: var(--color-text-secondary-strong); font-style: italic; }

/* Chart: server-drawn SVG, a tooltip by pointer and by keyboard, and a table beside it */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .baseline { stroke: var(--color-border-strong); stroke-width: 1; }
.chart .tick, .chart .month { fill: var(--color-text-secondary-strong); font: var(--weight-medium) 11px var(--font-sans); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--chart-1); transition: fill var(--duration-fast) var(--ease-out); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover { fill: color-mix(in srgb, var(--chart-1) 8%, transparent); }
.chart .hit:focus-visible { outline: none; fill: color-mix(in srgb, var(--chart-1) 10%, transparent); stroke: var(--color-focus); stroke-width: 3; }
.chart-wrap { position: relative; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 8px));
  background: var(--color-primary); color: var(--color-on-primary); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); white-space: nowrap; box-shadow: var(--shadow-md);
}
.chart-tip[hidden] { display: none; }
.table-view { margin-top: var(--space-3); font-size: var(--text-sm); }
.table-view summary, .install-help summary { display: inline-flex; align-items: center; min-height: var(--target); cursor: pointer; color: var(--color-link); font-weight: var(--weight-semibold); }

/* Price ranges: a strip from lowest to highest with the middle half drawn solid */
.range { display: block; width: 100%; min-width: 120px; height: 16px; margin-top: var(--space-2); overflow: visible; }
.range-line { fill: var(--color-border-strong); }
.range-box { fill: var(--chart-1); }
.range-median { fill: var(--color-primary); }

/* Ranking bars: one hue for magnitude, on a lighter step of it */
.rank-bar { display: block; width: 100%; max-width: 9rem; height: 6px; margin-top: var(--space-2); margin-left: auto; }
.rank-bar-track { fill: var(--chart-track); }
.rank-bar-fill { fill: var(--chart-1); }
@media (max-width: 719.98px) { .rank-bar { margin-left: 0; } }

/* Categories on the rise: the last period against the one before */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: var(--text-xs); color: var(--color-text-secondary-strong); margin-bottom: var(--space-3); }
.legend-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.legend-key { display: inline-block; width: 14px; height: 6px; border-radius: 2px; }
.legend-current { background: var(--chart-1); }
.legend-previous { background: var(--chart-neutral); }
.trend-bars { display: block; width: 100%; max-width: 18rem; height: 14px; margin-top: var(--space-2); }
.trend-current { fill: var(--chart-1); }
.trend-previous { fill: var(--chart-neutral); }

/* Province map: one sequential hue, each province a link to its page */
.province-map { margin: 0; }
.province-map-frame { position: relative; }
.province-map-mainland { display: block; width: 100%; max-width: 30rem; height: auto; margin-inline: auto; }
.province-map-galapagos { position: absolute; left: 0; top: 0; width: 22%; height: auto; padding: var(--space-1); background: var(--color-surface); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-sm); }
.province { stroke: var(--color-surface); stroke-width: 1.2; transition: opacity var(--duration-fast) var(--ease-out); }
.province-map a:hover .province { opacity: 0.8; }
.province-map a:focus-visible { outline: none; }
.province-map a:focus-visible .province { stroke: var(--color-text); stroke-width: 3; }
.step-0 { fill: var(--color-surface-muted); background: var(--color-surface-muted); }
.step-1 { fill: var(--seq-1); background: var(--seq-1); }
.step-2 { fill: var(--seq-2); background: var(--seq-2); }
.step-3 { fill: var(--seq-3); background: var(--seq-3); }
.step-4 { fill: var(--seq-4); background: var(--seq-4); }
.step-5 { fill: var(--seq-5); background: var(--seq-5); }
.step-6 { fill: var(--seq-6); background: var(--seq-6); }
.province-map-legend { justify-content: center; margin: var(--space-3) 0 0; }
.legend-title { flex-basis: 100%; text-align: center; font-weight: var(--weight-semibold); }
.legend-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--color-border-strong); }
.grid-map { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .grid-map { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* Badges: a state always carries an icon and a word */
.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2) 2px 6px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1.5; white-space: nowrap; background: var(--color-info-soft); color: var(--color-info); }
.badge .icon { width: 14px; height: 14px; }
.badge-awarded { background: var(--color-secondary-soft); color: var(--color-secondary-strong); }
.badge-contracted { background: var(--color-success-soft); color: var(--color-success); }
.badge-unsuccessful { background: var(--color-danger-soft); color: var(--color-danger); }
.badge-announced { background: var(--color-surface-muted); color: var(--color-text-secondary-strong); }
.badge-opportunity { background: var(--color-accent); color: var(--color-on-accent); }
.badge-stale { background: var(--color-surface-muted); color: var(--color-text-secondary-strong); }
/* A deduction, not SERCOP's word: the dashed edge sets it apart from the stages SERCOP publishes. */
.badge-deduced { background: var(--color-warning-soft); color: var(--color-warning); outline: 1px dashed currentColor; outline-offset: -1px; }
.new-chip { display: inline-block; padding: 1px var(--space-2); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-size: var(--text-xs); font-weight: var(--weight-bold); }

/* Lists of links with counts */
.link-list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: var(--space-6); }
.link-list li { break-inside: avoid; border-bottom: 1px solid var(--color-border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: flex; justify-content: space-between; gap: var(--space-3); min-height: var(--target); align-items: center; padding-block: var(--space-2); text-decoration: none; color: var(--color-text); }
.link-list a:hover .link-label { color: var(--color-link); text-decoration: underline; }
.link-list .count { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap; }
.link-list .count .icon { width: 16px; height: 16px; }
@media (min-width: 720px) { .link-list.cols { columns: 2; } }
@media (min-width: 1024px) { .link-list.cols-3 { columns: 3; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-height); padding: var(--space-2) var(--space-5);
  font: var(--weight-semibold) var(--text-sm) / 1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-primary:active { background: var(--color-primary-pressed); }
.btn-secondary { background: var(--color-surface); color: var(--color-primary); border-color: var(--color-border-strong); }
.btn-secondary:hover { background: var(--color-bg); color: var(--color-primary); border-color: var(--color-text-secondary-strong); }
.btn-secondary:active { background: var(--color-primary-soft); }
.btn-small { min-height: var(--target); padding-inline: var(--space-4); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--color-surface-muted); color: var(--color-text-disabled); border-color: var(--color-border); box-shadow: none; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] > .icon { display: none; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Segmented choices: one pressed, the others available */
.segmented { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); padding: var(--space-1); background: var(--color-surface-muted); border-radius: var(--radius-md); }
.btn-toggle { min-height: var(--target); padding-inline: var(--space-4); background: transparent; color: var(--color-text-secondary-strong); }
.btn-toggle:hover { background: var(--color-surface); color: var(--color-text); }
.btn-toggle[aria-pressed="true"], .btn-toggle[aria-current="page"] { background: var(--color-surface); color: var(--color-secondary-strong); box-shadow: var(--shadow-xs); }
.segmented .export, .segmented > a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--target); padding-inline: var(--space-3); }

/* Forms */
.field { display: grid; gap: var(--space-1); align-content: start; }
.field label, .field .label { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--color-text); }
.field .help { font-size: var(--text-xs); color: var(--color-text-secondary); }
.field .error { font-size: var(--text-sm); color: var(--color-danger); font-weight: var(--weight-semibold); }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select {
  width: 100%; min-height: var(--control-height); padding: var(--space-2) var(--space-3);
  font: inherit; font-size: var(--text-md); color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.input:hover, .field input:hover, .field select:hover { border-color: var(--color-text-secondary-strong); }
.field input:focus-visible, .field select:focus-visible, .input:focus-visible { outline: none; border-color: var(--color-focus); box-shadow: var(--focus-ring); }
.field [aria-invalid="true"] { border-color: var(--color-danger); }
.form-error { color: var(--color-danger); font-weight: var(--weight-semibold); }

/* Market filters: one row above the figures */
.filters { display: grid; gap: var(--space-3); align-items: end; margin-bottom: var(--space-6); padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .filters { grid-template-columns: 1.4fr 1fr 1.4fr 1fr auto; } }
/* On a phone the market filters fold behind one bar, so the figures are what shows first. */
.filters-panel { margin-bottom: var(--space-6); }
.filters-panel > .filters { margin-bottom: 0; }
.filters-toggle { width: 100%; padding-inline: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.filters-panel[open] > .filters-toggle { margin-bottom: var(--space-2); }
@media (min-width: 720px) { .filters-toggle { display: none; } }

/* Search: the filters are the sidebar, the results the main column */
.search-head { max-width: 50rem; }
.advanced-search { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.advanced-search-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.advanced-search-actions .btn { flex: 1 1 auto; }
.advanced-filters { border-top: 1px solid var(--color-border); padding-top: var(--space-2); }
.advanced-filters summary, .filters-toggle { display: flex; align-items: center; gap: var(--space-2); width: fit-content; min-height: var(--target); color: var(--color-primary); font-weight: var(--weight-bold); cursor: pointer; list-style: none; }
.advanced-filters summary::-webkit-details-marker, .filters-toggle::-webkit-details-marker { display: none; }
.advanced-filters summary .icon, .filters-toggle .icon { color: var(--color-secondary-strong); }
.filter-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: var(--space-1); border-radius: var(--radius-pill); background: var(--color-secondary-soft); color: var(--color-secondary-strong); font-size: var(--text-xs); }
.advanced-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding-top: var(--space-2); }
.advanced-filter-grid .field-entity, .advanced-filter-grid .field-cpc, .advanced-filter-grid .field-procedure, .advanced-filter-grid .field-order { grid-column: 1 / -1; }
@media (max-width: 479.98px) { .advanced-filter-grid { grid-template-columns: 1fr; } }
.jump-results { display: none; }
@media (max-width: 719.98px) { .jump-results { display: inline-flex; align-items: center; min-height: var(--target); font-weight: var(--weight-semibold); } }
.active-filters ul { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.active-filters li { padding: 2px var(--space-3); background: var(--color-secondary-soft); color: var(--color-text); border-radius: var(--radius-pill); font-size: var(--text-sm); }
.active-filter-name { color: var(--color-text-secondary-strong); }
.result-heading { align-items: end; }
.search-related { margin-bottom: var(--space-8); }
.search-start { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .search-start { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Saved searches */
.saved-searches-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.saved-searches-head h2 { font-size: var(--text-lg); }
.saved-searches-privacy { margin: var(--space-2) 0 var(--space-3); color: var(--color-text-secondary); font-size: var(--text-sm); }
.save-search-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-2); margin-bottom: var(--space-3); }
.saved-searches-empty { margin: 0; }
.saved-search-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.saved-search-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.saved-search-list a { font-weight: var(--weight-semibold); }
.saved-search-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.saved-search-calendar { display: inline-flex; align-items: center; min-height: var(--target); font-size: var(--text-sm); }
.saved-search-remove { min-height: var(--target); padding-inline: var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-danger); font: inherit; font-weight: var(--weight-semibold); cursor: pointer; }
.saved-search-remove:hover { background: var(--color-danger-soft); }
@media (max-width: 620px) { .saved-searches-head { align-items: stretch; flex-direction: column; } .save-search-inline { grid-template-columns: 1fr; } }
.ledger-sentence { font-size: var(--text-lg); max-width: var(--measure); color: var(--color-text-secondary-strong); }
.ledger-sentence strong { color: var(--color-primary); font-weight: var(--weight-heavy); }

/* Empty states: what is missing and what to do next */
.empty-state { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-10) var(--space-5); text-align: center; background: var(--color-surface); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); }
.empty-state p { max-width: 46ch; color: var(--color-text-secondary); }
.empty-state .btn { margin-top: var(--space-2); }
.empty-state-icon { display: inline-flex; color: var(--color-secondary-strong); }
.empty-state-icon .icon { width: 32px; height: 32px; stroke-width: 1.75; }

/* Notices */
.notice { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-5); padding: var(--space-4); background: var(--color-info-soft); color: var(--color-text); border-radius: var(--radius-md); }
.notice > .icon { color: var(--color-info); margin-top: 2px; }
.notice p { max-width: var(--measure); }
.notice-success { background: var(--color-success-soft); }
.notice-error { background: var(--color-danger-soft); color: var(--color-danger); font-weight: var(--weight-semibold); }

/* Process page */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; gap: var(--space-1); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: var(--text-sm); color: var(--color-text-secondary); }
.facts dd { margin: 0; font-weight: var(--weight-semibold); }
@media (min-width: 720px) { .facts > div { grid-template-columns: 10rem 1fr; } }
.process-overview { margin-top: var(--space-8); }
.official { display: inline-flex; align-items: center; gap: var(--space-2); }

.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline-step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-3); padding-bottom: var(--space-4); }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--color-border); }
.timeline-mark { grid-row: span 2; display: inline-flex; color: var(--color-text-secondary); }
.timeline-mark .icon { width: 24px; height: 24px; }
.timeline-label { font-weight: var(--weight-semibold); }
.timeline-date { color: var(--color-text-secondary); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.timeline-passed .timeline-mark { color: var(--color-secondary); }
.timeline-passed:not(:last-child)::before { background: var(--color-secondary); }
.timeline-next .timeline-mark { color: var(--color-accent-strong); }
.timeline-next .timeline-date { color: var(--color-text); font-weight: var(--weight-semibold); }
.timeline-missing .timeline-label, .timeline-missing .timeline-date { color: var(--color-text-secondary-strong); font-style: italic; }
.timeline-tag { display: inline-block; margin-left: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-size: var(--text-xs); font-style: normal; }

.similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.similar-card { display: flex; flex-direction: column; min-width: 0; padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out); }
.similar-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.similar-card-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); color: var(--color-text-secondary); font-size: var(--text-xs); }
.similar-card h3 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-md); line-height: var(--leading-snug); }
.similar-card h3 a { color: var(--color-text); text-decoration: none; }
.similar-card h3 a:hover { color: var(--color-link); text-decoration: underline; }
.similar-card > p { margin: 0 0 var(--space-4); color: var(--color-text-secondary); font-size: var(--text-sm); }
.similar-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: auto 0 0; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.similar-card dl div { display: grid; gap: var(--space-1); }
.similar-card dt { color: var(--color-text-secondary); font-size: var(--text-xs); }
.similar-card dd { margin: 0; color: var(--color-primary); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 1023.98px) { .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .similar-grid { grid-template-columns: 1fr; } }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-5); font-size: var(--text-sm); color: var(--color-text-secondary-strong); }

/* «Hoy»: the date and the two ways in, beside the latest day's figures, on a white band that
   bleeds to both edges: a spread shadow clipped to the band's height, since 100vw would add a scrollbar. */
main:has(.today-hero) { padding-top: 0; }
.today-hero {
  display: grid; gap: var(--space-6); margin-bottom: var(--space-8); padding-block: var(--space-8);
  background: var(--color-surface);
  box-shadow: 0 0 0 100vmax var(--color-surface);
  clip-path: inset(0 -100vmax);
}
@media (min-width: 1024px) { .today-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-10); align-items: center; padding-block: var(--space-12); } }
.today-head { display: grid; gap: var(--space-3); }
.today-title { font-size: var(--text-display); font-weight: var(--weight-heavy); letter-spacing: -0.035em; line-height: 1.04; }
.today-title time { display: block; color: var(--color-secondary-strong); }
.hero-intro { max-width: 38rem; color: var(--color-text-secondary-strong); font-size: var(--text-lg); line-height: var(--leading); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
@media (max-width: 479.98px) { .hero-actions .btn { flex: 1 1 100%; } }
.sync-line, .sync-news { color: var(--color-text-secondary-strong); font-size: var(--text-sm); max-width: var(--measure); }
.sync-line strong, .sync-news strong { color: var(--color-text); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.quiet-notice { margin-bottom: var(--space-6); }

/* New since the last visit: one sentence and one action */
.since-visit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.since-visit-text { color: var(--color-text-secondary); font-size: var(--text-sm); }
.since-visit.has-news { background: var(--color-accent-soft); border-color: color-mix(in srgb, var(--color-accent-strong) 25%, transparent); }
.since-visit.has-news .since-visit-text { color: var(--color-accent-strong); font-weight: var(--weight-semibold); }
.since-visit-count:not(:empty) { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding-inline: var(--space-2); margin-right: var(--space-1); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-weight: var(--weight-heavy); font-variant-numeric: tabular-nums; }

/* Activity: one process per card, amount on the first line, always in the same place */
.lane { min-width: 0; }
.activity { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.activity-item {
  position: relative; display: grid; gap: var(--space-1); padding: var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.activity-item:hover, .activity-item:focus-within { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.activity-item.is-new { background: var(--color-accent-soft); border-color: color-mix(in srgb, var(--color-accent-strong) 30%, transparent); }
.activity-item.is-new :is(.activity-day, .activity-where, .activity-winner) { color: var(--color-text-secondary-strong); }
.activity-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin-bottom: var(--space-1); }
.activity-top:not(:has(*)) { display: none; }
.activity-day { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-secondary); }
.activity-amount { margin-left: auto; color: var(--color-primary); font-size: var(--text-lg); font-weight: var(--weight-heavy); letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
.activity-title { font-size: var(--text-md); font-weight: var(--weight-semibold); line-height: 1.4; letter-spacing: 0; text-wrap: pretty; }
.activity-title a { color: var(--color-text); text-decoration: none; }
.activity-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.activity-title a:hover { color: var(--color-link); text-decoration: underline; }
.activity-title a:focus-visible { outline: none; }
.activity-title a:focus-visible::after { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.activity-buyer, .activity-where, .activity-winner { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); }
.activity-buyer { color: var(--color-text); font-weight: var(--weight-medium); }
.activity-where, .activity-winner { color: var(--color-text-secondary); }
.activity-buyer .icon, .activity-where .icon, .activity-winner .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--color-secondary); }
.activity-class::before { content: ", "; }
.activity-where a, .activity-winner a { position: relative; z-index: 1; color: inherit; display: inline-block; padding-block: var(--space-3); margin-block: calc(var(--space-3) * -1); }

/* Open opportunities: still taking offers, the soonest to close first */
.open-list { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.open-item { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.open-item-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.open-item-title { font-size: var(--text-md); line-height: var(--leading-snug); letter-spacing: 0; }
.open-item-title a { color: var(--color-text); }
.open-item-meta { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-secondary); }
.open-item-meta .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--color-secondary); }
.open-item-amount { color: var(--color-primary); font-weight: var(--weight-heavy); font-variant-numeric: tabular-nums; }
.open-note { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-3); max-width: var(--measure); color: var(--color-text-secondary-strong); font-size: var(--text-sm); }
.open-note .icon { width: 18px; height: 18px; color: var(--color-info); margin-top: 2px; }
.status-note { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-2) 0 0; max-width: var(--measure); color: var(--color-text-secondary-strong); font-size: var(--text-sm); }
.status-note .icon { width: 18px; height: 18px; flex: none; color: var(--color-info); margin-top: 2px; }
.status-note-deduced .icon { color: var(--color-warning); }
.correction-note { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-3) 0 0; max-width: var(--measure); color: var(--color-text-secondary-strong); font-size: var(--text-sm); }
.correction-note .icon { width: 18px; height: 18px; flex: none; color: var(--color-info); margin-top: 2px; }

/* Earlier days */
.day-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--space-3); }
.day-list a { display: grid; gap: 2px; min-height: var(--target); padding: var(--space-3) var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); text-decoration: none; transition: border-color var(--duration-fast) var(--ease-out); }
.day-list a:hover { border-color: var(--color-border-strong); }
.day-list a:hover .day-list-date { color: var(--color-link); text-decoration: underline; }
.day-list a[aria-current="page"] { background: var(--color-secondary-soft); border-color: transparent; }
.day-list .rank-bar { max-width: none; margin-left: 0; }
.day-list-date { font-weight: var(--weight-bold); text-transform: capitalize; }
.day-list-date.week-date { text-transform: none; }
.day-list-counts { font-size: var(--text-xs); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.day-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Ways in: each card leads to a working tool */
.way-grid { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .way-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .way-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.way { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); color: var(--color-text); text-decoration: none; transition: box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out); }
a.way:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); color: var(--color-text); }
a.way:hover .way-title { color: var(--color-link); text-decoration: underline; }
.way-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-secondary-soft); color: var(--color-secondary-strong); }
.way-title { font-size: var(--text-md); font-weight: var(--weight-bold); letter-spacing: 0; }
.way-text { color: var(--color-text-secondary); font-size: var(--text-sm); }

/* Ways back to the site that need no account */
.return-panel h2 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.return-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.return-list a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); font-weight: var(--weight-semibold); }
.install-help p { color: var(--color-text-secondary); font-size: var(--text-sm); max-width: var(--measure); }
.feed-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); font-weight: var(--weight-semibold); }

/* Time left to bid: open deadlines carry the opportunity colour, closed ones step back */
.time-left { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-secondary); }
.time-left-open { color: var(--color-accent-strong); }
.figure-lead .time-left, .figure-lead .time-left-open { color: var(--color-on-primary); }

/* Following a process or a search without an account */
.follow-links { display: grid; gap: 0; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.follow-help { margin-top: var(--space-2); max-width: var(--measure); color: var(--color-text-secondary); font-size: var(--text-sm); }
.follow-ways { display: grid; gap: var(--space-4); }
.follow-way { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.follow-way h3 { font-size: var(--text-md); }
.follow-way > p:not(.follow-help) { max-width: var(--measure); }
.follow-way .btn { justify-self: start; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
.copy-row input { font-size: var(--text-sm); color: var(--color-text-secondary-strong); }
.copy-status { min-height: 1.2em; font-size: var(--text-sm); color: var(--color-success); font-weight: var(--weight-semibold); }
.follow-dates { margin: 0; padding: 0; list-style: none; }
.follow-dates li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-3); padding-block: var(--space-2); border-bottom: 1px solid var(--color-border); font-variant-numeric: tabular-nums; }
.follow-date-label { color: var(--color-text-secondary); }
.follow .empty { padding: 0; }
@media (min-width: 840px) { .follow-ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479.98px) { .copy-row { grid-template-columns: 1fr; } }

/* The latest activity at the top of a place, a category or an entity */
.latest { margin-top: var(--space-6); }
.latest .grid-2 { gap: var(--space-6); }

/* Largest awards: a ranking, so the numbers say the place */
.biggest { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.biggest-item { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.biggest-rank { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-sm); background: var(--color-primary-soft); color: var(--color-primary); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.biggest-body { display: grid; gap: var(--space-1); }
.biggest-amount { color: var(--color-primary); font-size: var(--text-xl); font-weight: var(--weight-heavy); font-variant-numeric: tabular-nums lining-nums; }
.sub-inline { color: var(--color-text-secondary); font-size: var(--text-xs); }

/* Share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.share-status { font-size: var(--text-sm); color: var(--color-success); font-weight: var(--weight-semibold); }
.share-status:empty { display: none; }
.share-fallback { flex: 1 1 100%; max-width: 36rem; }

/* Comparison */
.compare-kinds { margin-bottom: var(--space-4); }
.compare-pick { display: grid; gap: var(--space-3); }
.compare-chosen { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.compare-chosen li { display: inline-flex; align-items: center; gap: var(--space-1); padding-left: var(--space-3); background: var(--color-secondary-soft); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.compare-chosen li > a:first-child { color: var(--color-text); }
.compare-remove { display: inline-grid; place-items: center; width: var(--target); height: var(--target); border-radius: var(--radius-pill); color: var(--color-secondary-strong); }
.compare-remove:hover { background: color-mix(in srgb, var(--color-secondary-strong) 12%, transparent); }
.compare-remove .icon { width: 18px; height: 18px; }
.compare-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: end; max-width: 36rem; }
.compare-candidates .count { color: var(--color-link); }
.compare-charts { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .compare-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare-chart { margin: 0; min-width: 0; }
.compare-pick + .empty-state { margin-top: var(--space-5); }

.callout { display: grid; gap: var(--space-4); align-items: center; padding: var(--space-6); background: var(--color-primary-soft); border-radius: var(--radius-lg); }
.callout p:not(.actions) { margin-top: var(--space-2); max-width: var(--measure); color: var(--color-text-secondary-strong); }
@media (min-width: 1024px) { .callout { grid-template-columns: minmax(0, 1fr) auto; } }

/* Running text: one readable column, headings with more air above than below. */
.prose { max-width: var(--measure); }
.prose > section + section { margin-top: var(--space-12); }
.prose h2 { margin-bottom: var(--space-3); }
.prose p + p, .prose p + ul, .prose ul + p, .prose .figures + p { margin-top: var(--space-3); }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--space-2); }
.prose .figures { margin-block: var(--space-3) var(--space-4); }

/* Glossary: one term per card; an anchored term clears the sticky header. */
.glossary { display: grid; gap: var(--space-3); margin: 0; }
.glossary > div { padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.glossary dt { color: var(--color-primary); font-size: var(--text-lg); font-weight: var(--weight-bold); }
.glossary dd { margin: var(--space-1) 0 0; }
.glossary > div:target { background: var(--color-accent-soft); border-color: color-mix(in srgb, var(--color-accent-strong) 35%, transparent); }

/* Supplier catalog: one card per supplier, the 12-month total set as a figure */
.catalog-filters { display: grid; gap: var(--space-3); align-items: end; margin-top: var(--space-6); padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.catalog-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (min-width: 720px) { .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
  .catalog-filters { grid-template-columns: 1.2fr 1.5fr 1fr 1fr 1.1fr; }
  .catalog-actions { grid-column: 1 / -1; }
}
.catalog { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.catalog-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-5); padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.catalog-name { font-size: var(--text-lg); line-height: 1.3; }
.catalog-name a { color: var(--color-text); text-decoration-color: var(--color-border-strong); }
.catalog-name a:hover { color: var(--color-link); text-decoration-color: currentColor; }
.catalog-meta { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin-top: var(--space-1); color: var(--color-text-secondary); font-size: var(--text-sm); }
.catalog-total { color: var(--color-primary); font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; text-align: right; white-space: nowrap; }
.catalog-line { grid-column: 1 / -1; max-width: 90ch; color: var(--color-text-secondary); font-size: var(--text-sm); }
.catalog-line a { color: var(--color-text); }
.catalog-line a:hover { color: var(--color-link); }
@media (max-width: 719.98px) {
  .catalog-item { grid-template-columns: 1fr; padding: var(--space-4); }
  .catalog-total { text-align: left; font-size: var(--text-lg); }
}

/* Footer: the Aents family footer (lockup, origin, link columns, base row) in ComprasEC's colours.
   Columns fold into an accordion on a phone and stay open elsewhere. */
.site-footer { position: relative; margin-top: var(--space-4); padding: var(--space-12) 0 var(--space-5); background: var(--color-surface); color: var(--color-text-secondary); font-size: var(--text-sm); box-shadow: 0 -1px 0 var(--color-border); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--color-primary) 0 33.3%, var(--color-secondary) 33.3% 66.6%, var(--color-accent) 66.6% 100%); }
.footer-grid { display: grid; gap: var(--space-6); }
.footer-brand { display: grid; justify-items: start; align-content: start; gap: var(--space-3); }
.aents-lockup { display: inline-flex; align-items: center; gap: 10px; min-height: var(--target); color: var(--color-text); text-decoration: none; }
.aents-lockup img { border-radius: 10px; }
.aents-lockup-text { display: flex; flex-direction: column; line-height: 1.1; }
.aents-wordmark { font-weight: var(--weight-bold); font-size: 1.35rem; letter-spacing: -0.015em; }
.aents-tagline { font-weight: var(--weight-semibold); font-size: 0.8rem; color: var(--color-secondary-strong); }
.aents-lockup:hover { color: var(--color-text); }
.aents-lockup:hover .aents-wordmark { color: var(--color-primary); text-decoration: underline; text-underline-offset: 0.18em; }
.footer-origin { display: flex; align-items: flex-start; gap: var(--space-2); max-width: 36ch; padding-top: var(--space-3); border-top: 2px solid var(--color-secondary); color: var(--color-text); }
.footer-origin-dot { flex: none; width: 8px; height: 8px; margin-top: 0.45em; border-radius: 50%; background: var(--color-secondary); }
.footer-about { max-width: 42ch; }
.footer-whatsapp { margin-top: var(--space-1); background: var(--color-surface); color: var(--color-primary); border-color: var(--color-border-strong); }
.footer-whatsapp:hover { background: var(--color-bg); color: var(--color-primary); }
.footer-heading {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 48px;
  color: var(--color-primary); font-size: 1.0625rem; font-weight: var(--weight-bold); letter-spacing: -0.02em;
  list-style: none; cursor: pointer;
}
.footer-heading::-webkit-details-marker { display: none; }
.footer-heading .icon { width: 18px; height: 18px; color: var(--color-text-secondary); transition: transform var(--duration-base) var(--ease-out); }
.footer-col[open] .footer-heading .icon { transform: rotate(180deg); }
.footer-links { display: grid; list-style: none; margin: 0; padding: 0 0 var(--space-3); }
.footer-links a { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--target); min-width: var(--target); color: var(--color-text); font-weight: var(--weight-semibold); text-decoration: none; }
.footer-links a:hover { color: var(--color-link); text-decoration: underline; }
.footer-links .icon { width: 14px; height: 14px; color: var(--color-text-secondary); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-6); margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-border); font-size: var(--text-xs); }
.footer-base a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--color-text); font-weight: var(--weight-semibold); }
/* The link inside the © sentence keeps the sentence's line height; its padding widens only the tap area. */
.footer-base > span:first-child a { display: inline; min-height: 0; padding-block: var(--space-3); }
.footer-signature { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); }
.footer-signature a[aria-current] { color: var(--color-secondary-strong); text-decoration: none; }
@media (max-width: 719.98px) {
  .footer-grid { gap: 0; }
  .footer-brand { margin-bottom: var(--space-5); }
  .footer-col { border-bottom: 1px solid var(--color-border); }
  .footer-col-nav:first-of-type .footer-col { border-top: 1px solid var(--color-border); }
  .footer-base { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-heading { min-height: 0; margin-bottom: var(--space-2); cursor: default; }
  .footer-heading .icon { display: none; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* Productos Aents: the footer column of the other Aents products (apps/core/crosspromo.py), in ComprasEC's colours. */
.crosspromo-links a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-block: var(--space-2); line-height: 1.3; }
.crosspromo-cta { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-secondary-strong); font-size: var(--text-xs); }
.crosspromo-links a:hover .crosspromo-cta { color: var(--color-link); }

/* The strip above the header, in the Aents family style Geo Propiedades and ¿Y Qué Plan Hoy? share:
   Aents black, muted white text at 12px, a green live dot and the lavender product mark. The links
   stay short so the strip stays thin; ::after grows what the pointer hits to the 44px target without
   reaching the other link. Two centred lines under 720px, so neither half is cut on a phone. */
.top-strip { background: #0A0A0A; color: rgb(255 255 255 / 72%); border-bottom: 1px solid rgb(255 255 255 / 10%); font-size: var(--text-xs); font-weight: var(--weight-medium); line-height: 1.3; }
.top-strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: var(--space-6); row-gap: 10px; }
.top-strip-news { display: flex; align-items: center; gap: var(--space-2); min-width: 0; margin: 0; }
.top-strip-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #22C55E; }
.top-strip a { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; transition: color 150ms ease; }
.top-strip a::after { content: ""; position: absolute; inset: -5px -4px; }
.top-strip a:hover { color: #FFFFFF; }
.top-strip a:focus-visible { outline: 2px solid rgb(255 255 255 / 80%); outline-offset: 2px; border-radius: 2px; }
.top-strip-news a { gap: 0; }
.top-strip-offer { font-weight: var(--weight-semibold); }
.top-strip-offer .icon { width: 14px; height: 14px; color: #A78BFA; }
@media (min-width: 720px) {
  .top-strip-row { flex-wrap: nowrap; justify-content: space-between; }
  .top-strip a { min-height: 32px; }
  .top-strip a::after { inset: -6px -4px; }
  .top-strip-offer { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .top-strip a { transition: none; } }

/* Anything the page hides stays hidden, whatever display its classes set. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 719.98px) {
  /* The chart is drawn 640 units wide and shrinks to the phone: labels need larger units to stay legible. */
  .chart .tick, .chart .month { font-size: 22px; }
  .chart .month-minor { display: none; }
}

@media (forced-colors: active) {
  .chart .bar, .range-box, .range-median, .rank-bar-fill, .trend-current, .sparkline-dot { fill: CanvasText; }
  .sparkline-line { stroke: CanvasText; }
  .trend-previous, .rank-bar-track { fill: GrayText; }
  .province { stroke: Canvas; }
  .activity-item.is-new { outline: 2px solid Highlight; }
  .badge, .figure, .card, .panel, .activity-item { border: 1px solid CanvasText; }
}

@media (max-width: 719.98px) {
  .figures-pair { grid-template-columns: 1fr; }
  /* An odd figure left alone on the last row of the two-column grid takes the whole row. */
  .figures:has(> .figure-lead:first-child) > .figure:last-child:nth-child(even),
  .figures:not(:has(> .figure-lead)) > .figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* The one primary action across the top, the secondary ones two by two below it. */
  .action-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-bar > .btn-primary, .action-bar > :last-child:nth-child(even) { grid-column: 1 / -1; }
  .action-bar > .btn-secondary, .action-bar .share .btn { padding-inline: var(--space-3); text-align: center; }
  .action-bar .share .btn { width: 100%; }
}

/* Labels break between words, never inside one, in the narrow columns of a phone. */
.figure dt, .link-list .link-label, .data-table tbody th { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 479.98px) {
  .figure dt { flex-wrap: wrap; }
  .figure { padding: var(--space-4); }
  .link-list a { flex-wrap: wrap; justify-content: flex-start; column-gap: var(--space-3); }
}

/* Member links in the header (apps.accounts): the bell with its unread count, «Mi panel» or «Entrar». */
.header-account { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: var(--target); min-width: var(--target); padding-inline: var(--space-2); color: var(--color-primary); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; border-radius: var(--radius-md); }
.header-account:hover { background: var(--color-bg); }
.header-account .icon { width: 20px; height: 20px; flex: none; }
.header-account[aria-current="page"] { background: var(--color-primary-soft); }
.header-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding-inline: 4px; font-size: 11px; line-height: 18px; font-weight: var(--weight-bold); text-align: center; color: var(--color-on-accent); background: var(--color-accent); border-radius: 9px; }
.pro-chip { display: inline-flex; align-items: center; padding: 0 var(--space-1); font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-on-accent); background: var(--color-accent); border-radius: var(--radius-sm); }
@media (max-width: 559px) { .header-panel span:not(.pro-chip), .header-sign-in span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
