/* OFFERA admin — operator console.
   Brand and palette come from the phone prototype (web/css/app.css): white → red →
   gray → brown, green semantic only (healthy / on), Google type. The look is flatter
   than the app: 1px borders, small radii, shadows only on overlays; only the primary
   button still presses. Status colours: red = brand + destructive/error, green =
   healthy/on, amber = warning/stale, blue = informational; never colour alone. */

:root {
  --red: #EA1D2C;
  --red-dark: #C4121F;
  --red-soft: #FFE9EB;
  --red-tint: #FFF5F6;
  --red-ink: var(--red-dark);
  --white: #FFFFFF;
  --page: var(--white);
  --scrim: rgba(59, 39, 35, 0.4);
  --gray-25: #FBF9F8;
  --gray-50: #F8F3F2;
  --gray-100: #F0E7E4;
  --gray-200: #E3D5D1;
  --gray-300: #CDBAB5;
  --gray-500: #7C6A64;
  --gray-700: #453832;
  --brown: #3B2723;
  --brown-soft: #6D4B43;
  --brown-tint: #F4ECE7;
  --brown-tint-2: #E9DCD4;
  --green: #1E8E4E;
  --green-soft: #E4F5EA;
  --amber: #B7791F;                 /* admin-only: "partial" / "stale" — a warning that is neither red nor green */
  --amber-soft: #FBF0DC;
  --blue: #2B5FA8;                  /* admin-only: SourceClassPartner ("Individual partnerships") — a cool tone so it never reads as the country pill sitting right next to it (both otherwise land on --brown-tint) */
  --blue-soft: #E3ECF9;

  --ink: var(--brown);
  --ink-2: var(--gray-700);
  --ink-3: var(--gray-500);
  --line: var(--gray-200);
  --surface-desk: #F2EDEB;

  --font-display: "Google Sans Flex", "Google Sans", "Roboto Flex", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Google Sans", "Google Sans Flex", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-xl: 14px;
  --r-lg: 12px;
  --r-md: 9px;
  --r-sm: 7px;
  --r-pill: 999px;

  --edge: none;
  --shadow-float: 0 18px 44px rgba(59, 39, 35, 0.18);

  --ease-out: cubic-bezier(.22, .9, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .44, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 400ms;

  --gutter: 24px;
  --tap: 40px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --red-soft: #45191E;
  --red-tint: #261416;
  --red-ink: #FF7C85;
  --page: #120D0C;
  --white: #1E1714;
  --gray-25: #1E1714;
  --gray-50: #28201C;
  --gray-100: #2F2522;
  --gray-200: #3A2E2A;
  --gray-300: #5A4A45;
  --gray-500: #AD9C95;
  --gray-700: #DCCDC7;
  --brown-soft: #DDC3B7;
  --brown-tint: #2C211D;
  --brown-tint-2: #372A24;
  --green: #52C987;
  --green-soft: #15311F;
  --amber: #E8B45A;
  --amber-soft: #3A2C14;
  --blue: #7EA8E0;
  --blue-soft: #1C2A3D;
  --ink: #F7EFEB;
  --surface-desk: #0A0707;
  --scrim: rgba(0, 0, 0, 0.62);
  --edge: 0 3px 0 rgba(0, 0, 0, 0.55);
  --shadow-float: 0 18px 44px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface-desk);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--red-ink); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1180px);
  margin-inline: auto;
}

/* ---------- header: top bar, breadcrumbs, module tabs ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; line-height: 0; flex: none; }
.wordmark__img { display: block; height: 28px; width: auto; }
.wordmark__tag {
  font-family: var(--font-display); font-weight: 800; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--brown); border-radius: var(--r-pill); padding: 4px 9px; line-height: 1;
}
:root[data-theme="dark"] .wordmark__tag { background: var(--brown-tint-2); color: var(--ink); }

.switcher__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--ink-2);
  font-weight: 700; font-size: 13.5px;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.switcher__btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.switcher__btn svg { width: 18px; height: 18px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-3); margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--red-ink); text-decoration: none; }
.crumbs [aria-current="page"] { color: var(--ink); }
.crumbs__sep { color: var(--gray-300); }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.tabs { border-top: 1px solid var(--gray-100); background: var(--gray-25); }
.tabs__in { display: flex; gap: 2px; overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; white-space: nowrap;
  font-weight: 700; font-size: 14px; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { color: var(--red-ink); border-bottom-color: var(--red); }

.usermenu { position: relative; }
.usermenu summary {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border-radius: var(--r-pill);
  cursor: pointer; list-style: none; font-weight: 700; font-size: 13.5px; color: var(--ink-2);
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: var(--gray-50); }
.usermenu__avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 13px;
}
.usermenu__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__panel {
  position: absolute; right: 0; top: 44px; min-width: 240px; padding: 8px; z-index: 20;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
  display: grid; gap: 2px;
}
.usermenu__who { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--gray-100); margin-bottom: 4px; font-size: 13px; color: var(--ink-3); }
.usermenu__who strong { color: var(--ink); font-size: 14px; }
.usermenu__who .pill { justify-self: start; margin-top: 4px; }
.usermenu__panel a, .usermenu__panel button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 14px; color: var(--ink-2);
}
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--gray-50); color: var(--ink); text-decoration: none; }
.usermenu__panel form { margin: 0; }

/* module switcher (a native <dialog>) */
.switcher { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 0; width: min(92vw, 560px); background: var(--white); color: var(--ink); box-shadow: var(--shadow-float); }
.switcher::backdrop { background: var(--scrim); }
.switcher__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 20px; font-family: var(--font-display); font-size: 16px; }
.switcher__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 12px 20px 20px; }
.switcher__tile {
  display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font-weight: 700; font-size: 14px;
}
.switcher__tile:hover { background: var(--gray-50); text-decoration: none; border-color: var(--gray-300); }
.switcher__tile.is-active { border-color: var(--red); color: var(--red-ink); }
.switcher__tile svg { width: 20px; height: 20px; flex: none; }

.iconbtn {
  width: var(--tap); height: var(--tap);
  display: inline-grid; place-items: center;
  border-radius: 50%; color: var(--ink);
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring);
}
.iconbtn:hover { background: var(--gray-50); }
.iconbtn:active { background: var(--gray-100); transform: scale(0.92); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn .moon, :root[data-theme="dark"] .iconbtn .sun { display: none; }
:root[data-theme="dark"] .iconbtn .moon { display: block; }

/* ---------- page ---------- */

.page { padding: 24px 0 64px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.headline {
  font-family: var(--font-display); font-weight: 800;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0;
}
.headline em { font-style: normal; color: var(--red); }
.tagline { margin: 6px 0 0; color: var(--ink-3); font-weight: 600; font-size: 14px; }
.tagline .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin: 0 8px 2px; }

/* section eyebrow, same as .myplan__tag / small caps in the app */
.eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- flash ---------- */

.flashes { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.flash {
  padding: 11px 16px; border-radius: var(--r-md); font-weight: 700; font-size: 14px;
  background: var(--green-soft); color: var(--green);
  animation: rise 320ms var(--ease-out) both;
}
.flash--error { background: var(--red-soft); color: var(--red-ink); }

/* ---------- stat tiles ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 20px; }
.stat {
  display: block; text-align: left;
  padding: 14px 16px 12px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink);
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast);
}
a.stat:hover { text-decoration: none; border-color: var(--gray-300); }
.stat.is-active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.stat__n { font-family: var(--font-display); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.stat__n--green { color: var(--green); }
.stat__n--red { color: var(--red); }
.stat__n--amber { color: var(--amber); }
.stat__l { margin-top: 6px; }

/* ---------- pills ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap;
  background: var(--gray-100); color: var(--ink-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--active { background: var(--green-soft); color: var(--green); }
.pill--partial { background: var(--amber-soft); color: var(--amber); }
.pill--disabled { background: var(--gray-100); color: var(--ink-3); }
.pill--deprecated { background: var(--brown); color: #fff; }
:root[data-theme="dark"] .pill--deprecated { background: var(--brown-tint-2); color: var(--ink); }
.pill--ok { background: var(--green-soft); color: var(--green); }
.pill--stale { background: var(--amber-soft); color: var(--amber); }
.pill--error { background: var(--red-soft); color: var(--red-ink); }
.pill--never { background: var(--gray-50); color: var(--ink-3); }
.pill--running { background: var(--red-soft); color: var(--red-ink); }
.pill--running::before { animation: pulse 1.2s ease-in-out infinite; }
.pill--plain::before { display: none; }
/* source classification (from the Go registry, not the database) */
.pill--firstparty { background: var(--green-soft); color: var(--green); }
.pill--aggregator { background: var(--gray-100); color: var(--ink-2); }
.pill--partner { background: var(--blue-soft); color: var(--blue); }
.pill--unclassified { background: transparent; color: var(--ink-3); border: 1.5px dashed var(--gray-300); }
.pill--country { background: var(--brown-tint); color: var(--brown-soft); }
.pill--category { background: var(--gray-100); color: var(--ink-2); height: 22px; padding: 0 8px; font-size: 11px; margin: 2px 4px 2px 0; }
/* one colour per content category — hues deliberately outside the dashboard's
   red / green / amber / brown / gray so a tag is never mistaken for a status */
.pill--category-offers { background: #E3EEFF; color: #1A55C9; }
.pill--category-coupons { background: #EDE7FF; color: #5B2FD0; }
.pill--category-cashback { background: #D9F3F7; color: #0B7285; }
.pill--category-travel { background: #F9E5F6; color: #9A1B8A; }
:root[data-theme="dark"] .pill--category-offers { background: #172A4D; color: #8DB4FF; }
:root[data-theme="dark"] .pill--category-coupons { background: #2A2050; color: #B7A0FF; }
:root[data-theme="dark"] .pill--category-cashback { background: #123640; color: #6FD3E4; }
:root[data-theme="dark"] .pill--category-travel { background: #3F1A3A; color: #F09BE3; }
.flagicon { border-radius: 50%; display: inline-block; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); margin-right: 1px; }
.pillicon { width: 15px; height: 15px; flex: none; stroke-width: 2.6; }
td.categories { max-width: 170px; white-space: normal; }

/* sources page: compact table — every column stays on screen in a moderate container */
.page--wide .wrap { width: min(100% - 2 * var(--gutter), 1320px); }
.page--wide .table { font-size: 13px; }
.page--wide .table th { padding: 8px 6px; font-size: 10px; }
.page--wide .table td { padding: 5px 6px; }
.page--wide .table .key { font-size: 14px; }
.page--wide .table .pill { height: 22px; padding: 0 7px; font-size: 11px; }
.page--wide .table .pill--category { height: 20px; padding: 0 7px; font-size: 10.5px; margin: 1px 3px 1px 0; }
.page--wide .table .flagicon { width: 14px; height: 14px; }
.page--wide .table .pillicon { width: 13px; height: 13px; }
.page--wide .table .sub { white-space: normal; font-size: 11px; margin-top: 0; }
.page--wide .table .switchbtn { min-height: 0; }
.page--wide .table .switchbtn--sm .switch { width: 34px; height: 20px; }
.page--wide .table .switchbtn--sm .switch__knob { width: 14px; height: 14px; }
.page--wide .table .switchbtn--sm[aria-checked="true"] .switch__knob { transform: translateX(14px); }
.page--wide .table .score { width: 52px; height: 28px; padding: 0 4px; font-size: 13px; }
.page--wide .table .scorebar { height: 3px; margin-top: 3px; }
.page--wide .table .btn--xs { padding: 0 8px; min-height: 26px; }
.page--wide .table .nextrun { font-size: 11.5px; }
.page--wide .table td.lastrun, .page--wide .table td.lastrun .err { max-width: 190px; }
.page--wide .table td.categories { max-width: 150px; }

/* ---------- table card ---------- */

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 12px; }
.card__title { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.card__body { padding: 4px 20px 20px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; padding: 10px 14px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line); background: var(--gray-25);
  white-space: nowrap;
}
.sortlink { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.sortlink:hover { color: var(--red-ink); text-decoration: none; }
.sortlink.is-active { color: var(--ink); }
.sortarrow { font-size: 8px; letter-spacing: 0; color: var(--red-ink); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--gray-25); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th.num { text-align: right; }
.table .muted { color: var(--ink-3); }
.table .key { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.005em; }
.table .key a { color: var(--ink); }
.table .key a:hover { color: var(--red-ink); text-decoration: none; }
/* the key column's own leading class glyph — same shapes as class_pill's
   icon, but colored (not currentColor) so it still reads as "this row's
   class" even though the surrounding link text is plain ink, not a pill. */
.key__link { display: inline-flex; align-items: center; gap: 6px; }
.key__link .pillicon { color: var(--ink-3); }
.key__link--first_party_retailer .pillicon, .key__link--first_party_marketplace .pillicon { color: var(--green); }
.key__link--partner .pillicon { color: var(--blue); }
.key__link--aggregator .pillicon { color: var(--ink-2); }
.table .sub { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.table div.err, .table span.err { display: block; color: var(--red-ink); font-weight: 600; font-size: 12.5px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table tr.is-dim td { opacity: 0.55; }
.table tr.is-dim:hover td { opacity: 1; }
.table-wrap { overflow-x: auto; }

.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font-weight: 600; }
.empty img { display: block; width: 120px; margin: 0 auto 10px; }
.empty strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 4px; }

/* ---------- switch (same geometry as the app's Tema escuro row) ---------- */

.switchbtn { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); }
.switchbtn:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 2px; border-radius: var(--r-pill); }
.switch {
  flex: none; position: relative;
  width: 50px; height: 30px; border-radius: var(--r-pill);
  background: var(--gray-200);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.08);
  transition: background var(--t-base);
}
.switch__knob {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-base) var(--ease-spring);
}
.switchbtn[aria-checked="true"] .switch { background: var(--green); }
.switchbtn[aria-checked="true"] .switch__knob { transform: translateX(20px); }
.switchbtn:active .switch__knob { transform: scale(0.92); }
.switchbtn[aria-checked="true"]:active .switch__knob { transform: translateX(20px) scale(0.92); }
.switchbtn--sm .switch { width: 42px; height: 26px; }
.switchbtn--sm .switch__knob { width: 20px; height: 20px; }
.switchbtn--sm[aria-checked="true"] .switch__knob { transform: translateX(16px); }
.switchbtn__label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); min-width: 24px; }
.switchbtn[aria-checked="true"] .switchbtn__label { color: var(--ink); }

/* ---------- score (chip-like input, red edge like .chip--price) ---------- */

.scoreform { display: inline-flex; align-items: center; gap: 6px; }
.score {
  width: 68px; height: 36px; padding: 0 10px;
  border-radius: var(--r-sm); background: var(--white);
  border: 2px solid var(--line); box-shadow: 0 2px 0 var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: 15px; text-align: center;
  color: var(--ink); font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.score::placeholder { color: var(--gray-300); font-weight: 700; }
.score:focus { outline: 0; border-color: var(--red); box-shadow: 0 2px 0 var(--red-dark); }
.score--override { border-color: var(--red); box-shadow: 0 2px 0 var(--red-dark); }
.score__hint { font-size: 11.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.score__hint--override { color: var(--red-ink); }
.score--lg { width: 110px; height: 54px; font-size: 24px; border-radius: var(--r-md); }
/* the bar under a score in the list: how it ranks relative to 1.0 */
.scorelive { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--ink-3); white-space: nowrap; }
.scorelive--penalty { color: var(--amber); }
.scorelive--off { color: var(--ink-3); font-style: italic; }
.scorelive-line { margin: 10px 0 0; font-size: 13px; color: var(--ink-2, var(--ink-3)); }
.scorelive-line .scorelive { margin: 0 2px; }
.scorebar { height: 5px; border-radius: 3px; background: var(--gray-100); overflow: hidden; margin-top: 6px; width: 68px; }
.scorebar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }

/* ---------- next run (depleting ring + live countdown, base.html JS) ---------- */

.nextrun { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nextrun__ring { flex: none; transform: rotate(-90deg); }
.nextrun__ring-bg, .nextrun__ring-fg { fill: none; stroke-width: 2.5; }
.nextrun__ring-bg { stroke: var(--gray-200); }
.nextrun__ring-fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 50.27; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.nextrun.is-running .nextrun__ring-fg, .nextrun.is-due .nextrun__ring-fg { stroke: var(--amber); }
.nextrun.is-running .nextrun__ring, .nextrun.is-due .nextrun__ring { animation: spin 1s linear infinite; }
.nextrun.is-running .nextrun__t, .nextrun.is-due .nextrun__t { color: var(--amber); }

/* ---------- utility ---------- */

.is-hidden { display: none !important; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 16px;
  border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 800; font-size: 13.5px; letter-spacing: 0.01em;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red-dark); }
.btn--primary:hover { background: #F02B39; }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 0 0 var(--red-dark); }
.btn--secondary { background: var(--white); border: 1px solid var(--gray-300); color: var(--ink); }
.btn--secondary:hover { background: var(--gray-50); }
.btn--secondary:active { background: var(--gray-100); }
.btn--brown { background: var(--brown); color: #fff; }
.btn--brown:hover { background: var(--brown-soft); }
:root[data-theme="dark"] .btn--brown { background: var(--brown-tint-2); color: var(--ink); }
.btn--xs { min-height: 32px; padding: 0 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn--xs.btn--primary { box-shadow: 0 2px 0 var(--red-dark); }
.btn--xs.btn--primary:active { transform: translateY(2px); }

.linkbtn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  font-weight: 700; font-size: 14px; color: var(--red-ink); border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.linkbtn:hover { background: var(--red-tint); text-decoration: none; }
.linkbtn--muted { color: var(--ink-3); }
.linkbtn--muted:hover { background: var(--gray-50); color: var(--ink-2); }

/* ---------- filter chips (list header) ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.chip:hover { text-decoration: none; background: var(--gray-50); border-color: var(--gray-300); }
.chip.is-active { background: var(--brown); border-color: var(--brown); color: #fff; }
:root[data-theme="dark"] .chip.is-active { background: var(--brown-tint-2); border-color: var(--brown-tint-2); color: var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.55); }
.chip__n { font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: var(--r-pill); background: var(--gray-100); color: var(--ink-2); }
.chip.is-active .chip__n { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- source detail ---------- */

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail__main .card + .card, .detail__side .card + .card { margin-top: 16px; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
}
.row:last-child { border-bottom: 0; }
.row__t { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.row__d { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.row__v { font-family: var(--font-display); font-weight: 800; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }


.textarea {
  width: 100%; min-height: 96px; padding: 10px 12px; resize: vertical;
  border-radius: var(--r-md); background: var(--gray-25); border: 2px solid var(--line);
  color: var(--ink); font-size: 14px; line-height: 1.5;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.textarea:focus { outline: 0; border-color: var(--red); background: var(--white); }
.formrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.note { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.errbox {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--red-soft); color: var(--red-ink); font-weight: 600; font-size: 13px;
  word-break: break-word;
}

/* ---------- sparkline of a source's recent runs ---------- */

.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spark i { flex: 1; min-width: 4px; background: var(--red); border-radius: 2px 2px 0 0; opacity: 0.85; }
.spark i.is-err { background: var(--gray-300); }

/* ---------- review feed ---------- */

.feedgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.feedcard {
  display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 3px 0 var(--line);
  overflow: hidden;
  transition: opacity var(--t-base);
}
.feedcard.is-rated { opacity: 0.55; }
.feedcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 0; }
.feedcard__source { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.feedcard__source .pill { height: 22px; padding: 0 7px; font-size: 10.5px; }
.feedcard__key { font-family: var(--font-display); font-weight: 800; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedcard__head .pill--category { height: 20px; padding: 0 8px; font-size: 10px; margin: 0; flex: none; }
.feedcard__media {
  height: 130px; margin: 10px 12px 0; border-radius: var(--r-md);
  background: var(--gray-25); display: grid; place-items: center; overflow: hidden;
}
.feedcard__media img { width: 100%; height: 100%; object-fit: contain; }
.feedcard__media.is-broken img { display: none; }
.feedcard__placeholder {
  font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--gray-300);
}
.feedcard__body { padding: 10px 12px 4px; flex: 1; }
.feedcard__title { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.feedcard__sub { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedcard__code { margin-top: 6px; }
.feedcard__code code { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); background: var(--brown-tint); color: var(--brown-soft); font-weight: 700; font-size: 12.5px; }
.feedcard__price { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.feedcard__link { font-size: 12px; font-weight: 700; }
.feedcard__expiry { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.feedcard__rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px 12px 12px; }
.ratebtn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px; border-radius: var(--r-sm); border: 2px solid var(--line);
  background: var(--white); color: var(--ink-2); font-size: 8.5px; line-height: 1.15; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.ratebtn .pillicon { width: 13px; height: 13px; }
.ratebtn:hover { transform: translateY(-1px); }
.ratebtn:active { transform: translateY(1px); }
.ratebtn:disabled { opacity: 0.4; cursor: default; transform: none; }
.ratebtn--down:hover, .ratebtn--down.is-chosen { border-color: var(--red); color: var(--red-ink); background: var(--red-soft); }
.ratebtn--up:hover, .ratebtn--up.is-chosen { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.ratebtn--perfect:hover, .ratebtn--perfect.is-chosen { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.ratebtn--superdislike:hover, .ratebtn--superdislike.is-chosen { border-color: var(--brown); color: #fff; background: var(--brown); }
.ratebtn--superlike:hover, .ratebtn--superlike.is-chosen { border-color: var(--blue); color: #fff; background: var(--blue); }
.feedcard__result { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 16px; padding: 0 12px 10px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.feedcard__result.err { color: var(--red-ink); }
.undobtn {
  flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--red-ink); padding: 2px 8px; border-radius: var(--r-pill); border: 1.5px solid var(--red-ink);
  transition: background var(--t-fast);
}
.undobtn:hover { background: var(--red-soft); }

/* ---------- keyframes ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }

@media (max-width: 640px) {
  .topbar__in { gap: 10px; }
  .wordmark__tag { display: none; }
  .headline { font-size: 26px; }
  .nav__link { padding: 0 10px; }
}

/* ---------- sign-in, password change, signed-in user ---------- */

.authbox { width: min(100% - 2 * var(--gutter), 380px); margin: 12vh auto 0; display: grid; gap: 14px; }
.authbox--inline { margin-top: 24px; margin-left: 0; }
.authbox__title { font-family: var(--font-display); font-size: 22px; margin: 0; }
.authbox__form { display: grid; gap: 8px; }
.authbox__form input {
  min-height: var(--tap); padding: 0 12px; border-radius: var(--r-md);
  border: 2px solid var(--line); background: var(--white); color: var(--ink); font: inherit;
}
.authbox__form .btn { margin-top: 10px; }
.userbox { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.userbox__name { font-weight: 700; font-size: 13px; color: var(--ink-2); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- shared components (every page used to redefine these inline) ---------- */

.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); font-size: 12.5px; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
td.mono, .table .mono { word-break: break-all; }
.warn { color: var(--amber); font-size: 12.5px; font-weight: 700; }
.okt, .okay { color: var(--green); font-size: 12.5px; font-weight: 700; }
p.warn, p.okay { margin: 8px 0; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 700; }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }

/* inputs: one look wherever a form control sits */
.field input, .field select, .field textarea, .finder input, .inline input, .inline select,
.fields input, .fields select, .fields textarea, .newapp input, .newapp select, .addrow input, .rowform input, .decide input, .decide select {
  font: inherit; font-size: 14px; font-weight: 500; padding: 8px 11px; min-width: 0;
  border-radius: var(--r-md); border: 1px solid var(--gray-300); background: var(--white); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus, .finder input:focus, .inline input:focus, .inline select:focus,
.fields input:focus, .fields textarea:focus, .newapp input:focus, .newapp select:focus, .addrow input:focus, .rowform input:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.field input[type="checkbox"], .field input[type="radio"], .check input { width: auto; padding: 0; box-shadow: none; }
.field textarea, .fields .textarea { min-height: 72px; }
.fields .textarea { font-family: var(--font-mono); font-size: 13px; }

.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; align-content: start; margin-bottom: 12px; }
.form-grid .field, .inline .field, .addrow .field { margin-bottom: 0; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.form-grid .field input:not([type="checkbox"]):not([type="radio"]), .form-grid .field select, .form-grid .field textarea { width: 100%; }
.field .err { color: var(--red-ink); font-size: 12.5px; }
.field .hint { color: var(--ink-3); font-size: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.fields .wide { grid-column: 1 / -1; }
.fields small { font-weight: 500; }
.inline, .finder { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline .grow { flex: 1 1 280px; }
.inline input { flex: 1 1 320px; }
.finder input { flex: 1 1 320px; }
.newapp { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.newapp label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.newapp--api { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) auto; }
.newapp .only-app { display: none; }
.newapp.is-app .only-app { display: grid; }
.newapp.is-app .only-server { display: none; }
.card__body .chips { margin-top: 12px; }

/* callouts */
.suspended, .newkey { border: 1px solid var(--amber); background: var(--amber-soft); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 16px; }
.newkey { border-color: var(--green); background: var(--green-soft); padding: 16px 18px; }
.newkey code { display: block; font-family: var(--font-mono); font-size: 14px; font-weight: 700; word-break: break-all; margin: 8px 0; color: var(--ink); }
.danger { border-color: var(--red-soft); }

/* page-specific pieces that more than one template needs, or that were inline */
.action + .action { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.action h3 { margin: 0 0 4px; font-size: 15px; }
.action .note { margin: 0 0 10px; }
.page-review .card__body form + form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.asset { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.asset:first-child { border-top: 0; }
.asset img { max-width: 160px; max-height: 120px; background: repeating-conic-gradient(var(--gray-100) 0% 25%, transparent 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
tr.has-decision > td { border-bottom: 0; }
td.decision { padding-top: 0; }
.decide { display: flex; gap: 10px 28px; flex-wrap: wrap; align-items: flex-start; }
.decide form { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; margin: 0; }
.decide input[name=store_key] { width: 150px; }
.decide .check { font-size: 12.5px; margin: 0; }
.decide .btn { padding: 4px 12px; font-size: 13px; }
.decide select { max-width: 220px; font-size: 13px; }
.decide .why { font-size: 12.5px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 88px; margin: 6px 0 4px; }
.bars span { flex: 1; min-width: 2px; border-radius: 3px 3px 0 0; background: var(--brown-tint); position: relative; }
.bars span i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; background: var(--red); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); }
.legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.snippet { font-family: var(--font-mono); font-size: 12.5px; background: var(--gray-25); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; white-space: pre-wrap; word-break: break-all; margin: 8px 0 0; }
.policy { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 10px; border-radius: 3px; background: var(--red); opacity: .75; min-width: 1px; }
.range a { margin-right: 10px; }
.range a.is-active { font-weight: 800; color: var(--ink); }
.addrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.rowform { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.rowform input[type=number] { width: 64px; }
.rowform input[type=text] { width: 150px; }
.picks { margin: 6px 0 0; padding: 0; list-style: none; }
.picks li { display: flex; gap: 14px; flex-wrap: wrap; padding: 3px 0; border-top: 1px solid var(--line); font-size: 13px; }
.picks .pn { font-variant-numeric: tabular-nums; }
.hit { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.rankscore { display: flex; align-items: center; gap: 8px; }
.rankscore__n { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2.6em; }
.rankscore__n--penalty { color: var(--amber); }
.rankscore__cfg { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.rankscore__lbl { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.rankscore__cfg .score { width: 4.2em; font-size: 12px; padding: 3px 6px; }
@media (max-width: 760px) { .fields, .twocol, .newapp, .newapp--api { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .row2, .asset { grid-template-columns: 1fr; } }
.inline-form { display: inline; margin: 0; }
.secretbox {
  font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.02em; padding: 14px 16px; margin: 12px 0;
  border-radius: var(--r-md); background: var(--brown-tint); border: 2px dashed var(--gray-300); user-select: all; word-break: break-all;
}
.pill--owner { background: var(--red-soft); color: var(--red-ink); }
.pill--admin { background: var(--brown-tint-2); color: var(--brown-soft); }
.pill--editor { background: var(--blue-soft); color: var(--blue); }
.pill--developer { background: var(--amber-soft); color: var(--amber); }
.pill--viewer { background: var(--gray-100); color: var(--ink-3); }
.detailjson { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); word-break: break-word; }
.pager { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px; }

/* ---------- home: module tiles ---------- */

.tilefilter input {
  height: 36px; width: min(100%, 260px); padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--white); color: var(--ink); font: inherit; font-size: 14px;
}
.tilefilter input:focus { outline: 0; border-color: var(--red); }
.tilegrid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tilegroup, .tiles { display: contents; }
.tilegroup[hidden] { display: none; }
.tilegroup .eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tilegrid > .card { grid-column: 1 / -1; }
.tiles__old { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile {
  --tc: var(--red); --tf: #fff;
  display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; position: relative; min-height: 250px;
  background: var(--tc); border: 0; border-radius: var(--r-lg); color: var(--tf); text-decoration: none;
  transition: box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out), filter var(--t-fast);
}
.tile:hover { text-decoration: none; box-shadow: 0 8px 22px rgba(59, 39, 35, 0.22); transform: translateY(-2px); filter: saturate(1.08); }
.tile:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.tile[hidden] { display: none; }
.tile--attention { box-shadow: 0 0 0 2px var(--white), 0 0 0 5px var(--brown); }
.tile--catalogo { --tc: #F4600A; }
.tile--cupons { --tc: #EA1D2C; }
.tile--lojas { --tc: #FFC531; --tf: #3B2723; }
.tile--parceiros { --tc: #B3120B; }
.tile--mcp { --tc: #5B3A8C; }
.tile--analytics { --tc: #FF5A1F; }
.tile--seo { --tc: #E8A33A; --tf: #3B2723; }
.tile--contas { --tc: #3B2723; }
.tile--equipe { --tc: #6D4B43; }
.tile--auditoria { --tc: #7A0D08; }
.tile__icon { display: block; width: 52px; height: 52px; margin-bottom: 8px; color: inherit; }
.tile__icon svg { width: 52px; height: 52px; stroke-width: 1.75; display: block; }
.tile__body { display: grid; gap: 3px; align-content: start; min-width: 0; }
.tile__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.tile__blurb { font-size: 13px; font-weight: 500; line-height: 1.35; opacity: .86; }
.tile__stat { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.tile__fig { font-family: var(--font-display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.tile__lbl { font-size: 12.5px; font-weight: 600; opacity: .86; }
.tile__pages { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; min-height: 52px; }
.tile__pages span { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, currentColor 18%, transparent); }

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .crumbs, .switcher__btn span, .usermenu__name { display: none; }
  .tilegrid { grid-template-columns: 1fr; }
  .topbar__in { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile:hover { transition: none; transform: none; }
}
.table td.err { color: var(--red-ink); font-weight: 700; }
.errorpage { text-align: center; padding: 72px 0 40px; }
.errorpage__code { font-family: var(--font-display); font-weight: 800; font-size: 64px; color: var(--red); line-height: 1; }
.errorpage h1 { font-family: var(--font-display); font-size: 24px; margin: 12px 0 6px; }
.errorpage p { color: var(--ink-3); margin: 0 auto 20px; max-width: 46ch; }


/* ---------- analytics page (an-*) ----------
   Layout after Search Console / GA4 (scorecards that drive one chart, tabbed tables); look after Ferinha:
   fire palette (orange / flame / gold / ember), Bowlby One SC for the title and the big numbers, red-orange
   stroke icons set straight on the background (no circle behind them). */
:root {
  --an-orange: #FF5A1F; --an-flame: #F4600A; --an-gold: #FFC531; --an-ember: #B3120B;
  --an-fire: var(--an-flame);             /* the main series */
  --an-ic: var(--red);                    /* icons */
  --an-display: "Bowlby One SC", var(--font-display), sans-serif;
  --an-b: #2B5FA8; --an-c: #D98A00;       /* device split: red / blue / orange (validated, always labelled) */
}
:root[data-theme="dark"] { --an-fire: var(--an-orange); --an-ic: #FF7C4A; --an-b: #5B94E0; --an-c: #E8A33A; }

.an-ico { width: 20px; height: 20px; flex: none; color: var(--an-ic); }
.an-title { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 clamp(28px, 4vw, 38px)/1 var(--an-display); letter-spacing: .02em; text-shadow: 0 3px 0 color-mix(in srgb, var(--red-dark) 35%, transparent); }
.an-title .an-ico { width: 32px; height: 32px; }
.an-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.an-range { display: flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); }
.an-range a { margin: 0; padding: 6px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 13px; color: var(--ink-3); }
.an-range a:hover { text-decoration: none; color: var(--ink); }
.an-range a.is-active { background: var(--an-flame); color: #fff; }
.an-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.an-chip .an-ico { width: 15px; height: 15px; }

.card.an-perf, .card.an-card, .card.an-report { margin-top: 16px; }
.an-row { display: grid; gap: 16px; margin-top: 16px; align-items: start; }
.an-row .card { margin-top: 0 !important; }
.an-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .an-row--2 { grid-template-columns: minmax(0, 1fr); } }
.an-card .card__title, .an-report .card__title { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.an-note { margin: 10px 20px 0; font-size: 12.5px; color: var(--ink-3); }
.an-empty { margin: 8px 20px 14px; color: var(--ink-3); font-size: 13.5px; }

/* performance: scorecards + one chart */
.an-perf { background: radial-gradient(70% 140% at 100% 0, color-mix(in srgb, var(--an-flame) 13%, transparent), transparent 62%), var(--white); }
.an-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .an-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.an-tile { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px 18px 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; transition: background var(--t-fast); }
.an-tile + .an-tile { box-shadow: -1px 0 0 var(--line); }
.an-tile:hover { background: color-mix(in srgb, var(--an-flame) 6%, transparent); }
.an-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--an-fire); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.an-tile.is-on { background: color-mix(in srgb, var(--an-flame) 10%, transparent); }
.an-tile.is-on::after { transform: none; }
.an-tile:focus-visible { outline: 2px solid var(--an-fire); outline-offset: -2px; }
.an-tile__l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.an-tile__n { font: 400 clamp(26px, 3vw, 34px)/1.05 var(--an-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.an-tile__d { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.an-tile__u { color: var(--ink-3); }
.an-delta { font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.an-delta.is-up { color: var(--green); }
.an-delta.is-down { color: var(--an-ember); }
:root[data-theme="dark"] .an-delta.is-down { color: #FF7C85; }

.an-chartbox { position: relative; padding: 10px 14px 16px; }
.an-legend2 { display: flex; gap: 18px; justify-content: flex-end; padding: 0 6px 4px; font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.an-legend2 span, .an-tip span { display: inline-flex; align-items: center; gap: 7px; }
.an-key { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--an-fire); border-radius: 2px; }
.an-key--prev { border-top: 2px dashed var(--ink-3); }
.an-chart { min-height: 300px; }
.an-chart svg { display: block; overflow: visible; }
.an-grid { stroke: var(--line); stroke-width: 1; }
.an-axis { fill: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.an-c-cur { fill: none; stroke: var(--an-fire); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.an-c-prev { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 5; opacity: .75; }
.an-c-area { fill: var(--an-fire); opacity: .12; }
.an-c-cross { stroke: var(--gray-300); stroke-width: 1; }
.an-c-dot { fill: var(--an-fire); stroke: var(--white); stroke-width: 2.5; }
.an-chart__empty { text-align: center; color: var(--ink-3); margin: -190px 0 150px; position: relative; }
.an-tip { position: absolute; z-index: 3; pointer-events: none; display: grid; gap: 4px; padding: 9px 12px; background: var(--brown); color: #fff; border-radius: 10px; font-size: 12.5px; box-shadow: var(--shadow-float); white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-tip b { color: var(--an-gold); font-size: 12px; }
.an-tip__p { color: rgba(255, 255, 255, .72); }
.an-tip .an-key { border-top-color: var(--an-orange); }
.an-tip .an-key--prev { border-top-color: rgba(255, 255, 255, .6); }
.an-tip[hidden] { display: none; }

/* funnel */
.an-funnel { padding: 4px 20px 0; display: grid; gap: 14px; }
.an-funnel__row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 76px; align-items: center; gap: 12px; }
.an-funnel__l { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.an-funnel__bar { height: 26px; background: var(--gray-50); border-radius: 6px; overflow: hidden; display: block; }
.an-funnel__bar span { display: block; height: 100%; border-radius: 6px; background: var(--an-gold); }
.an-funnel__row--b .an-funnel__bar span { background: #FFA43A; }
.an-funnel__row--c .an-funnel__bar span { background: var(--an-flame); }
.an-funnel__row--d .an-funnel__bar span { background: var(--an-ember); }
.an-funnel__n { text-align: right; font: 400 15px/1 var(--an-display); font-variant-numeric: tabular-nums; }

/* hours of the day */
.an-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 170px; padding: 8px 20px 0; align-items: end; }
.an-hour { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.an-hour__bar { display: block; background: color-mix(in srgb, var(--an-flame) 28%, transparent); border-radius: 4px 4px 0 0; transition: background var(--t-fast); }
.an-hour:hover .an-hour__bar, .an-hour.is-peak .an-hour__bar { background: var(--an-fire); }
.an-hour__t { height: 16px; font-size: 10.5px; color: var(--ink-3); text-align: center; line-height: 16px; font-variant-numeric: tabular-nums; }

/* tabbed reports */
.an-report { padding-bottom: 6px; }
.an-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.an-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 15px 14px 13px; border: 0; background: transparent; color: var(--ink-3); font: 700 13.5px/1 var(--font-ui); cursor: pointer; white-space: nowrap; transition: color var(--t-fast); }
.an-tab .an-ico { width: 18px; height: 18px; opacity: .75; }
.an-tab:hover { color: var(--ink); }
.an-tab.is-on { color: var(--ink); }
.an-tab.is-on .an-ico { opacity: 1; }
.an-tab.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--an-fire); }
.an-tab:focus-visible { outline: 2px solid var(--an-fire); outline-offset: -2px; border-radius: 6px; }
.an-panel { padding-top: 6px; }
.an-panel[hidden] { display: none; }
.an-callout { display: flex; align-items: center; gap: 10px; margin: 10px 20px 4px; padding: 10px 14px; border-radius: var(--r-md); background: var(--amber-soft); color: var(--amber); font-weight: 700; font-size: 13px; }
.an-callout .an-ico { color: var(--amber); width: 18px; height: 18px; }

/* tables */
.an-tw { overflow-x: auto; }
.an-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.an-t th { text-align: left; padding: 10px 20px; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; white-space: nowrap; }
.an-t th.num, .an-t td.num { text-align: right; font-variant-numeric: tabular-nums; }
.an-t td { padding: 9px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.an-t tbody tr:hover td { background: color-mix(in srgb, var(--an-flame) 5%, transparent); }
.an-t td.num { font-weight: 700; }
.an-t__k { min-width: 190px; width: 46%; }
.an-t__name { display: flex; align-items: center; gap: 7px; font-weight: 700; overflow-wrap: anywhere; }
.an-t__bar { display: block; height: 4px; margin-top: 6px; background: var(--gray-50); border-radius: 2px; overflow: hidden; }
.an-t__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--an-gold), var(--an-flame)); border-radius: 2px; }
.an-tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill); background: var(--brown-tint); color: var(--brown-soft); white-space: nowrap; }
.an-tag--c { background: var(--blue-soft); color: var(--blue); }

/* devices */
.an-split { display: flex; gap: 2px; height: 34px; margin: 14px 20px 12px; }
.an-split__seg { display: block; min-width: 4px; border-radius: 5px; }
.an-split__seg--0, .an-sw--0 { background: var(--red); }
.an-split__seg--1, .an-sw--1 { background: var(--an-b); }
.an-split__seg--2, .an-sw--2 { background: var(--an-c); }
.an-split__seg--3, .an-sw--3 { background: var(--gray-500); }
.an-legend { list-style: none; margin: 0 20px 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13.5px; }
.an-legend li { display: flex; align-items: center; gap: 8px; }
.an-legend b { font-variant-numeric: tabular-nums; }
.an-legend span { color: var(--ink-3); font-size: 12.5px; }
.an-sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

.an-details > summary { cursor: pointer; padding: 10px 20px; font-weight: 700; font-size: 13px; color: var(--ink-2); }

/* ---------- analytics: visual panel (an-mosaic) ---------- */
.an-sec { display: flex; align-items: center; gap: 10px; margin: 34px 0 0; font: 400 22px/1 var(--an-display); letter-spacing: .02em; }
.an-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: stretch; }
.an-mosaic > .card { margin-top: 0 !important; }
.an-s3 { grid-column: span 3; } .an-s4 { grid-column: span 4; } .an-s5 { grid-column: span 5; } .an-s7 { grid-column: span 7; } .an-s8 { grid-column: span 8; } .an-s12 { grid-column: span 12; }
@media (max-width: 1100px) { .an-s3, .an-s4, .an-s5 { grid-column: span 6; } .an-s7, .an-s8 { grid-column: span 12; } }
@media (max-width: 700px) { .an-mosaic > * { grid-column: span 12 !important; } }

/* one sequential ramp (flame, light to dark) for every "how much" shape */
.an-lv { --lv: 0%; background: color-mix(in srgb, var(--an-flame) var(--lv), var(--gray-50)); color: var(--ink); }
.an-lv0 { --lv: 0%; }
.an-lv1 { --lv: 16%; } .an-lv2 { --lv: 34%; } .an-lv3 { --lv: 54%; }
.an-lv4 { --lv: 76%; color: #fff; } .an-lv5 { --lv: 96%; color: #fff; }
.an-lv .an-ico { color: currentColor; opacity: .85; }

/* treemap */
.an-mosaic > .card { display: flex; flex-direction: column; }
.an-tree { position: relative; margin: 6px 20px 14px; flex: 1; min-height: 300px; }
.an-tt { position: absolute; padding: 2px; box-sizing: border-box; }
.an-tt__in { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; height: 100%; padding: 9px 10px; border-radius: 10px; overflow: hidden; background: inherit; color: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 25%, transparent); }
.an-tt { background: transparent !important; }
.an-tt .an-tt__in { background: color-mix(in srgb, var(--an-flame) var(--lv), var(--gray-50)); }
.an-tt .an-ico { width: 18px; height: 18px; }
.an-tt b { font-size: 13.5px; line-height: 1.2; overflow-wrap: anywhere; }
.an-tt small { font-size: 11.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.an-tt:hover { z-index: 2; }
.an-tt:hover .an-tt__in { box-shadow: 0 0 0 2px var(--an-gold); }

/* bubbles */
.an-bubbles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px 10px; }
.an-bub { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 50%; padding: 8px; overflow: hidden; line-height: 1.15; transition: transform var(--t-fast) var(--ease-spring); }
.an-bub:hover { transform: scale(1.06); }
.an-bub span { max-width: 100%; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-bub b { font: 400 15px/1.2 var(--an-display); }

/* donut */
.an-donut { position: relative; width: 190px; max-width: 70%; margin: 4px auto 6px; }
.an-donut svg { display: block; width: 100%; transform: none; }
.an-donut__track, .an-donut__seg { fill: none; stroke-width: 5.2; }
.an-donut__track { stroke: var(--gray-50); }
.an-donut__seg { stroke-linecap: butt; }
.an-seg--0 { stroke: var(--red); } .an-seg--1 { stroke: var(--an-b); } .an-seg--2 { stroke: var(--an-c); } .an-seg--3 { stroke: var(--gray-500); }
.an-donut__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.an-donut__c b { font: 400 24px/1 var(--an-display); }
.an-donut__c span { font-size: 11.5px; color: var(--ink-3); }
.an-legend--col { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.an-legend--col li { justify-content: flex-start; }
.an-legend--col li b { margin-left: auto; }

/* Brazil tile map */
.an-map { display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); gap: 4px; margin: 6px 20px 8px; aspect-ratio: 8 / 8; max-height: 360px; margin-inline: auto; width: min(100% - 40px, 360px); }
.an-uf { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; line-height: 1.05; min-width: 0; }
.an-uf b { font-size: 12px; }
.an-uf small { font-size: 10px; opacity: .9; font-variant-numeric: tabular-nums; }
.an-map.is-empty .an-uf { background: var(--gray-50); color: var(--ink-3); }
.an-uf:hover { box-shadow: 0 0 0 2px var(--an-gold); }
.an-note .an-ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* devices */
.an-devs { display: grid; gap: 8px; padding: 4px 16px 10px; }
.an-dev { display: grid; grid-template-columns: 34px auto 1fr; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); }
.an-dev:first-child { border-top: 0; }
.an-dev .an-ico { width: 30px; height: 30px; }
.an-dev b { font: 400 24px/1 var(--an-display); }
.an-dev span { color: var(--ink-3); font-weight: 700; font-size: 13px; }

/* heat map weekday x hour */
.an-heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; padding: 6px 20px 10px; align-items: center; }
.an-heat i { display: block; height: 40px; border-radius: 5px; }
.an-heat i:hover { box-shadow: 0 0 0 2px var(--an-gold); }
.an-heat__d { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.an-heat__h { font-size: 10.5px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }

/* waffle */
.an-waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin: 6px 20px 12px; }
.an-waffle i { display: block; aspect-ratio: 1; border-radius: 3px; }

/* word cloud */
.an-cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 8px 20px 14px; line-height: 1.25; }
.an-word { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--ink-2); cursor: default; transition: color var(--t-fast); }
.an-word:hover { color: var(--an-fire); }
.an-word.is-miss { color: var(--an-c); }
.an-word .an-ico { width: .8em; height: .8em; color: currentColor; }

/* developer MCP page */
.btn--lg { padding: 13px 26px; font-size: 16px; }
.dev-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 16px; }
.dev-step { position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.dev-step b { position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: #5B3A8C; color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.dev-step h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.dev-step p { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--ink-3); }
.dev-lead { margin: 0 0 14px; color: var(--ink-3); font-weight: 500; max-width: 80ch; }
.dev-handoff { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border: 2px dashed #5B3A8C; border-radius: var(--r-lg); background: color-mix(in srgb, #5B3A8C 8%, var(--white)); color: var(--ink); font: inherit; cursor: pointer; transition: transform .12s, background .12s; }
.dev-handoff:hover { transform: translateY(-1px); background: color-mix(in srgb, #5B3A8C 15%, var(--white)); }
.dev-handoff svg { width: 28px; height: 28px; flex: none; color: #5B3A8C; }
.dev-handoff b { display: block; font-weight: 800; }
.dev-handoff small { color: var(--ink-3); font-weight: 600; }
.dev-hero { background: linear-gradient(120deg, color-mix(in srgb, #5B3A8C 9%, var(--white)), var(--white) 55%); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; border-left: 6px solid #5B3A8C; }
.dev-hero__icon { width: 72px; height: 72px; border-radius: var(--r-lg); background: #5B3A8C; color: #fff; display: grid; place-items: center; }
.dev-hero__icon svg { width: 44px; height: 44px; }
.dev-hero__title { margin: 4px 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dev-hero__text { margin: 0 0 16px; max-width: 56ch; color: var(--ink-3); font-weight: 500; }
.dev-facts { display: flex; gap: 12px 32px; flex-wrap: wrap; margin: 4px 0 18px; }
.dev-facts dt { color: var(--ink-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dev-facts dd { margin: 2px 0 0; font-weight: 700; }
.dev-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dev-link { background: none; border: 0; padding: 0; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.dev-hero__side { display: grid; gap: 12px; }
.dev-stat { text-align: center; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--gray-25); }
.dev-stat b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; }
.dev-stat small { font-size: 16px; color: var(--ink-3); }
.dev-stat span { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.dev-copyrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dev-copyrow code { font-family: var(--font-mono); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.dev-tabs { display: flex; gap: 6px; margin: 18px 0 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dev-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--ink-3); cursor: pointer; margin-bottom: -1px; }
.dev-tabs button.is-active { color: var(--ink); border-bottom-color: #5B3A8C; }
.dev-panel[hidden] { display: none; }
.dev-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dev-tool { display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--gray-25); }
.dev-tool b { font-size: 14px; }
.dev-tool span { font-size: 13px; font-weight: 500; color: var(--ink-3); line-height: 1.4; }
.dev-tool i { font-style: normal; }
@media (max-width: 760px) {
  .dev-hero { grid-template-columns: 1fr; }
  .dev-hero__side { grid-template-columns: 1fr 1fr; }
  .dev-copyrow { grid-template-columns: 1fr; }
}
