/* Tem Compra: components, version 2.
   Needs tokens.css loaded first. Mobile-first. Breakpoints: 720 (sm), 960 (md), 1200 (lg).
   Every component is shown with all its states in components.html.
   Index:
     1 Base            2 Layout           3 Wordmark, public header, footer
     4 App header      5 Buttons, links   6 Forms
     7 Pickers         8 Chips, status    9 Cards, rows, tabs
    10 Notice card and notice row         11 Price line and price table
    12 Plan card      13 Alerts, banner  14 Empty, loading, error
    15 Pagination, breadcrumb            16 Cookie notice, dialog, toast
    17 Steps, FAQ, quote, facts          18 Utilities
    24 Motion (the rules: design/MOTION.md) */

/* ============ 1 Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; interpolate-size: allow-keywords; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; flex-shrink: 0; max-width: 100%; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
table { border-collapse: collapse; width: 100%; }
a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-accent-hover); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-xs); }
::selection { background: var(--color-accent-tint-border); }
[hidden] { display: none !important; }

.title-hero { font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tighter); text-wrap: balance; }
.title-page { font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); text-wrap: balance; }
.title-block { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); text-wrap: balance; }
.title-section { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); text-wrap: balance; }
.title-card { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-semibold); }
.lead { font-size: var(--text-md); line-height: var(--leading-md); color: var(--color-text-secondary); text-wrap: pretty; }
.eyebrow { font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-muted); }
.meta { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.muted { color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); font-size: var(--text-sm); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose { max-width: 62ch; }
p { text-wrap: pretty; }
.prose > * + * { margin-top: var(--space-4); }
/* title-display: the title of a landing section. 28 px on a phone, 36 px on desktop. */
.title-display { font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); text-wrap: balance; }

@media (min-width: 960px) {
  .title-hero { font-size: var(--text-3xl); line-height: var(--leading-3xl); }
  .title-block { font-size: var(--text-xl); line-height: var(--leading-xl); }
  .lead { font-size: var(--text-lg); line-height: var(--leading-lg); }
    .title-display { font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-tighter); }
}

/* ============ 2 Layout ============ */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container--form { max-width: calc(var(--container-form) + 2 * var(--gutter)); }
.page { padding-block: var(--space-6) var(--space-12); }
.section { padding-block: var(--space-12); }
.section--surface { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section--tight { padding-block: var(--space-8); }
/* section--ink: the one dark band of a page. White text. Use it once a page, for one fact or one call to action. */
.section--ink { position: relative; overflow: clip; background: var(--color-ink-surface); color: var(--color-text-on-ink); }
.section--ink .meta, .section--ink .lead { color: var(--color-text-on-ink-muted); }
.section--ink a:not(.btn) { color: var(--color-accent-on-ink); }
.section--ink :focus-visible { outline-color: #FFFFFF; }
.section__head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--sm { gap: var(--space-2); }
.stack--lg { gap: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.stack > *, .split > *, .with-aside > * { min-width: 0; }
/* A short page still fills the window: the footer, or the phone tab row, sits at the bottom. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.skip-link { position: absolute; left: var(--space-4); top: -64px; z-index: var(--z-toast); padding: var(--space-3) var(--space-4); background: var(--color-ink-surface); color: #FFFFFF; border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-2); color: #FFFFFF; }

@media (min-width: 960px) {
  .container { max-width: calc(var(--container) + 2 * var(--gutter-md)); padding-inline: var(--gutter-md); }
  .container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter-md)); }
  .container--form { max-width: calc(var(--container-form) + 2 * var(--gutter-md)); }
  .page { padding-block: var(--space-8) var(--space-16); }
  .section { padding-block: var(--space-20); }
  .section--tight { padding-block: var(--space-10); }
  .section__head { margin-bottom: var(--space-8); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
  .with-aside { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-8); align-items: start; }
    /* The side panel of a detail page stays in view while the main column scrolls. */
    .with-aside > aside.card { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
  /* with-aside--lead: the aside comes first in the source (and on a phone) and sits on the right on desktop */
  .with-aside--lead > :first-child { grid-column: 2; grid-row: 1; }
  .with-aside--lead > :nth-child(2) { grid-column: 1; grid-row: 1; }
  /* with-aside--wrap: three children in the order of a phone (lead block, main list, second block).
     On desktop the list is on the left and the two blocks are on the right (P09). */
  .with-aside--wrap { grid-template-rows: auto 1fr; }
  .with-aside--wrap > :nth-child(1) { grid-column: 2; grid-row: 1; }
  .with-aside--wrap > :nth-child(2) { grid-column: 1; grid-row: 1 / span 2; }
  .with-aside--wrap > :nth-child(3) { grid-column: 2; grid-row: 2; }
}

/* ============ 3 Wordmark, public header, footer ============ */
.wordmark { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--control-h); color: var(--color-text); text-decoration: none; font-size: var(--text-md); line-height: 1; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); white-space: nowrap; }
.wordmark:hover { color: var(--color-text); }
.wordmark__mark { width: 28px; height: 28px; }
.wordmark--sm { font-size: var(--text-sm); }
.wordmark--sm .wordmark__mark { width: 24px; height: 24px; }

.site-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--color-surface) 88%, transparent); border-bottom: 1px solid var(--color-border); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.site-nav { display: none; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--control-h); min-height: var(--control-h); color: var(--color-text-secondary); text-decoration: none; font-size: var(--text-sm); position: relative; font-weight: var(--weight-medium); transition: color var(--duration-fast) var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-text); }
.site-nav a[aria-current="page"] { font-weight: var(--weight-semibold); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: var(--radius-full); background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-out); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: none; align-items: center; gap: var(--space-2); }

/* phone menu: a <details> element, no script */
.site-menu { position: static; }
.site-menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: var(--control-h); height: var(--control-h); padding: 0 var(--space-3); margin-right: calc(-1 * var(--space-3)); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-strong); transition: background-color var(--duration-fast) var(--ease-out); }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover { background: var(--color-page); }
.site-menu .icon-close, .site-menu[open] .icon-open { display: none; }
.site-menu[open] .icon-close { display: block; }
.site-menu__panel { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: var(--space-2) var(--gutter) var(--space-5); background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-overlay); border-radius: 0 0 var(--radius-md) var(--radius-md); animation: menu-in var(--duration-base) var(--ease-out) both; transform-origin: top; }
.site-menu__panel > a:not(.btn) { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--color-border-row); color: var(--color-text); text-decoration: none; font-weight: var(--weight-medium); }
.site-menu__panel .btn { margin-top: var(--space-4); }

@media (min-width: 960px) {
  .site-header__bar { min-height: 68px; }
  .site-header__left { display: flex; align-items: center; gap: var(--space-8); }
  .site-nav { display: flex; gap: var(--space-6); }
  .site-header__actions { display: flex; }
  .site-menu { display: none; }
}

.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding-block: var(--space-8); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.site-footer__top { display: grid; gap: var(--space-6); }
.site-footer__about { display: flex; flex-direction: column; gap: var(--space-2); max-width: 420px; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.site-footer__title { margin-bottom: var(--space-1); color: var(--color-text); font-weight: var(--weight-semibold); }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--control-h); color: var(--color-text-secondary); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
.site-footer a:hover { color: var(--color-text); text-decoration: underline; }
.site-footer .wordmark, .site-footer .wordmark:hover { color: var(--color-text); text-decoration: none; }
.site-footer__states { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border-row); }
.site-footer button.link-quiet { display: inline-flex; align-items: center; min-height: var(--control-h); padding: 0; border: 0; background: transparent; color: var(--color-text-secondary); font: inherit; text-align: left; cursor: pointer; }
.site-footer button.link-quiet:hover { color: var(--color-text); text-decoration: underline; }
.site-footer__disclaimer { max-width: 80ch; }
.site-footer__legal { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border-row); display: flex; flex-direction: column; gap: var(--space-2); color: var(--color-text-muted); }
@media (min-width: 960px) {
  .site-footer { padding-block: var(--space-12) var(--space-8); }
  .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-16); }
  .site-footer__cols { grid-template-columns: repeat(3, auto); gap: var(--space-16); }
  .site-footer a, .site-footer button.link-quiet { min-height: 32px; }

}

/* ============ 4 App header (logged-in pages) ============ */
.app-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--color-surface) 88%, transparent); border-bottom: 1px solid var(--color-border); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.app-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.app-header__left { display: flex; align-items: center; gap: var(--space-8); min-width: 0; }
.app-nav { display: flex; gap: var(--space-6); overflow-x: auto; scrollbar-width: none; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-h); color: var(--color-text-secondary); text-decoration: none; font-size: var(--text-sm); white-space: nowrap; font-weight: var(--weight-medium); transition: color var(--duration-fast) var(--ease-out); }
.app-nav a:hover { color: var(--color-text); }
.app-nav a[aria-current="page"] { color: var(--color-text); font-weight: var(--weight-semibold); }
.app-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-accent); border-radius: var(--radius-full) var(--radius-full) 0 0; animation: line-in var(--duration-base) var(--ease-out) both; }
.app-nav__count { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--space-2); border-radius: var(--radius-full); background: var(--color-accent); color: var(--color-text-on-accent); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.app-header__left .app-nav { display: none; }
/* app-tabbar: on a phone the three tabs are a row at the bottom of the screen */
.app-tabbar { position: sticky; bottom: 0; z-index: var(--z-header); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: color-mix(in srgb, var(--color-surface) 92%, transparent); border-top: 1px solid var(--color-border); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); padding-bottom: env(safe-area-inset-bottom); }
.app-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); min-height: 60px; padding: var(--space-1); color: var(--color-text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-medium); text-align: center; text-decoration: none; position: relative; transition: color var(--duration-fast) var(--ease-out); }
.app-tabbar a svg { width: 22px; height: 22px; padding: 4px 20px; box-sizing: content-box; border-radius: var(--radius-full); transition: background-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-spring); }
.app-tabbar a[aria-current="page"] { color: var(--color-accent); font-weight: var(--weight-semibold); }
.app-tabbar a[aria-current="page"] svg { background: var(--color-accent-tint); }
.app-tabbar a:active svg { transform: scale(0.9); }
.app-user { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-h); padding: 0; border: 0; background: transparent; color: var(--color-text-strong); font-size: var(--text-sm); cursor: pointer; text-decoration: none; }
.app-user__name { display: none; }
/* Account menu of N03: a <details>. States: closed, open. Links: Conta (A04), Assinatura (A05), Ajuda (P16), Sair (POST, then P01 with a toast). */
.app-menu { position: relative; }
.app-menu > summary { list-style: none; }
.app-menu > summary::-webkit-details-marker { display: none; }
.app-menu > summary .avatar svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-out); }
.app-menu[open] > summary .avatar svg { transform: rotate(180deg); }
.app-menu__panel { position: absolute; right: 0; top: calc(100% + var(--space-1)); z-index: var(--z-dropdown); display: flex; flex-direction: column; width: max-content; min-width: 220px; max-width: calc(100vw - 2 * var(--gutter)); padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-overlay); animation: menu-in var(--duration-base) var(--ease-out) both; transform-origin: top right; }
.app-menu__panel > a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--color-text); font-size: var(--text-md); line-height: var(--leading-md); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out); }
.app-menu__panel > a:hover { background: var(--color-page); color: var(--color-text); }
.app-menu__email { padding: var(--space-2) var(--space-3); margin-bottom: var(--space-1); border-bottom: 1px solid var(--color-border-row); color: var(--color-text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); overflow-wrap: anywhere; }
.app-menu__out { margin-top: var(--space-1); border-top: 1px solid var(--color-border-row); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--color-neutral-bg); color: var(--color-neutral); font-size: var(--text-xs); line-height: 1; font-weight: var(--weight-semibold); transition: background-color var(--duration-fast) var(--ease-out); }
.avatar--accent { background: var(--color-accent); color: var(--color-text-on-accent); }
@media (min-width: 960px) {
  .app-tabbar { display: none; }
  .app-header__left .app-nav { display: flex; }
  .app-nav a { min-height: var(--header-h); }
  .app-user__name { display: inline; }
  .app-menu__email { display: none; }   /* the bar shows the address from 960 px */
}

/* ============ 5 Buttons, links ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-h); padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border-control); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font-size: var(--text-md); line-height: var(--leading-sm); font-weight: var(--weight-semibold); text-align: center; text-decoration: none; cursor: pointer; 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), transform var(--duration-instant) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn svg { width: 16px; height: 16px; transition: transform var(--duration-base) var(--ease-out); }
.btn:hover { background: var(--color-surface-subtle); color: var(--color-text); border-color: var(--color-border-field); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text-on-accent); font-weight: var(--weight-semibold); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-text-on-accent); }
/* The icon at the end of a primary button moves a little: an arrow goes on, a "new tab" icon goes up and out. */
.btn--primary:hover > svg:last-child { transform: translate(2px, -2px); }
.btn--ink { background: var(--color-ink-surface); border-color: var(--color-ink-surface); color: var(--color-text-on-ink); }
.btn--ink:hover { background: var(--color-ink-surface-raised); border-color: var(--color-ink-surface-raised); color: var(--color-text-on-ink); }
.btn--quiet { border-color: transparent; background: transparent; color: var(--color-text-strong); font-weight: var(--weight-medium); }
.btn--quiet:hover { background: var(--color-neutral-bg); border-color: transparent; }
.btn--link { border-color: transparent; background: transparent; color: var(--color-accent); padding-inline: 0; }
.btn--link:hover { background: transparent; color: var(--color-accent-hover); text-decoration: underline; border-color: transparent; }
.btn--danger { background: var(--color-danger); border-color: var(--color-danger); color: #FFFFFF; font-weight: var(--weight-semibold); }
.btn--danger:hover { background: #9B1C13; border-color: #9B1C13; color: #FFFFFF; }
.btn--danger-quiet { border-color: transparent; background: transparent; color: var(--color-danger); }
.btn--danger-quiet:hover { background: var(--color-danger-bg); color: var(--color-danger); border-color: transparent; }
/* The only button of a block: its text lines up with the paragraph above it (A04). */
.cluster > .btn--danger-quiet:only-child { margin-inline-start: calc(-1 * var(--space-4)); }
.btn--lg { min-height: var(--control-h-lg); padding-inline: var(--space-6); font-size: var(--text-md); }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: var(--control-h); padding: 0; border-color: transparent; background: transparent; color: var(--color-text-muted); }
.btn--icon:hover { background: var(--color-neutral-bg); color: var(--color-text); border-color: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--color-neutral-bg); border-color: var(--color-neutral-bg); color: var(--color-text-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: var(--radius-full); border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
/* On a phone the primary button is 48 px high: it is the thing to tap. */
@media (max-width: 719px) { .btn--primary, .btn--danger { min-height: 48px; } }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(calc(-1 * var(--move-xs) / 2)); box-shadow: 0 2px 4px rgba(14, 21, 48, 0.12), 0 10px 22px -6px var(--color-accent-glow); }
  .btn--primary:active { transform: scale(0.97); box-shadow: var(--shadow-accent); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 960px) {
  .btn--sm { min-height: var(--control-h-sm); padding: var(--space-1) var(--space-3); font-size: var(--text-sm); }
  .btn--sm.btn--icon { width: var(--control-h-sm); padding: 0; }
}

.link { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--duration-fast) var(--ease-out), text-decoration-color var(--duration-fast) var(--ease-out); }
.link--quiet { color: var(--color-text-strong); }
.link--plain { text-decoration: none; }
.link--plain:hover { text-decoration: underline; }
.link--icon { display: inline-flex; align-items: center; gap: var(--space-1); }
.link--icon svg { width: 16px; height: 16px; transition: transform var(--duration-base) var(--ease-out); }
.link--block { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--control-h); font-weight: var(--weight-medium); text-decoration: none; }
.link--block:hover { text-decoration: underline; }
.link--block svg { width: 16px; height: 16px; transition: transform var(--duration-base) var(--ease-out); }
.link--block:hover svg, .link--icon:hover svg { transform: translateX(3px); }

/* A toggle button that is on ("Salva"): accent colour and a filled icon. */
.btn[aria-pressed="true"] { color: var(--color-accent-on-tint); }
.btn[aria-pressed="true"] svg { fill: currentColor; }
.btn[aria-pressed="true"] svg { animation: pop var(--duration-slow) var(--ease-spring) both; }

/* ============ 6 Forms ============ */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--color-text); }
.field__optional { font-weight: var(--weight-regular); color: var(--color-text-muted); }
.field__help { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.field__error { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); color: var(--color-danger); animation: enter-down var(--duration-base) var(--ease-out) both; }
.field__error svg { width: 16px; height: var(--leading-sm); }
.input, .select, .textarea { width: 100%; min-height: var(--control-h); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border-field); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font-size: var(--text-md); line-height: var(--leading-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); }
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-text-secondary); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-tint); border-radius: var(--radius-sm); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: var(--space-10); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6372' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea, .input[aria-invalid="true"] { border-color: var(--color-danger-bar); box-shadow: 0 0 0 4px var(--color-danger-bg); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--color-surface-subtle); border-color: var(--color-border-control); color: var(--color-text-muted); cursor: not-allowed; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 12px; top: 14px; width: 16px; height: 16px; color: var(--color-text-muted); pointer-events: none; }
.input-wrap > .input { padding-left: var(--space-10); }
.input-wrap > .btn--icon { position: absolute; right: 0; top: 0; }
.input--code { font-family: var(--font-mono); letter-spacing: 0.3em; text-align: center; }
/* On a phone a field is 48 px high. */
@media (max-width: 719px) {
  .input, .select { min-height: 48px; }
  .input-wrap > svg { top: 16px; }
  .input-wrap > .btn--icon { top: 2px; }
}

.check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--control-h); padding-block: var(--space-2); cursor: pointer; }
.check input { flex-shrink: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; appearance: none; border: 1.5px solid var(--color-border-field); border-radius: var(--radius-xs); background: var(--color-surface) center / 0 no-repeat; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), background-size var(--duration-base) var(--ease-spring), box-shadow var(--duration-fast) var(--ease-out); }
.check input[type="radio"] { border-radius: var(--radius-full); }
.check input:hover { border-color: var(--color-text-secondary); }
.check input:checked { border-color: var(--color-accent); background-color: var(--color-accent); background-size: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.check input[type="radio"]:checked { background-size: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%23FFFFFF'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.check input:disabled { border-color: var(--color-border-control); background-color: var(--color-surface-subtle); cursor: not-allowed; }
.check input:disabled:checked { background-color: var(--color-neutral-bar); border-color: var(--color-neutral-bar); }
.check__text { display: block; }
.check__hint { display: block; margin-top: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.check:has(input:disabled) { color: var(--color-text-muted); cursor: not-allowed; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--control-h); cursor: pointer; }
.switch input { appearance: none; flex-shrink: 0; position: relative; width: 48px; height: 28px; margin: 0; border-radius: var(--radius-full); background: var(--color-border-field); cursor: pointer; transition: background-color var(--duration-base) var(--ease-out); }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: var(--radius-full); background: #FFFFFF; transition: transform var(--duration-slow) var(--ease-spring); box-shadow: 0 1px 3px rgba(14, 21, 48, 0.25); }
.switch input:checked { background: var(--color-accent); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:disabled { background: var(--color-neutral-bar); cursor: not-allowed; }
.switch input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.segmented { align-self: flex-start; justify-self: start; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-sm); background: var(--color-neutral-bg); }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 38px; padding: 0 var(--space-4); border-radius: 7px; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-strong); cursor: pointer; white-space: nowrap; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--color-surface); color: var(--color-text); font-weight: var(--weight-semibold); box-shadow: 0 1px 2px rgba(14, 21, 48, 0.12), 0 0 0 1px var(--color-border); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ============ 7 Pickers ============ */
/* 7a pick-chip: choose many (trades, states). A label around a hidden checkbox. */
.pick-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pick-chip { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-h); padding: 0 var(--space-4); border: 1px solid var(--color-border-control); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text-strong); font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; user-select: none; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-instant) var(--ease-out); }
.pick-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-chip svg { display: none; width: 16px; height: 16px; }
.pick-chip:hover { background: var(--color-page); }
.pick-chip:active { transform: scale(0.97); }
.pick-chip:has(input:checked) { background: var(--color-accent-tint); border-color: var(--color-accent-tint-border); color: var(--color-accent-on-tint); font-weight: var(--weight-semibold); }
.pick-chip:has(input:checked) svg { display: block; }
.pick-chip:has(input:checked) svg { animation: pop var(--duration-slow) var(--ease-spring) both; }
.pick-chip:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pick-chip:has(input:disabled) { background: var(--color-surface-subtle); color: var(--color-text-muted); cursor: not-allowed; }
.pick-chip__count { font-weight: var(--weight-regular); color: var(--color-text-muted); }
.pick-chip:has(input:checked) .pick-chip__count { color: var(--color-accent-on-tint); }

/* 7b filter-chip: choose one view of a list. A button with aria-pressed. */
.filter-chips { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-h); padding: 0 var(--space-4); border: 1px solid var(--color-border-control); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text-strong); font-size: var(--text-sm); font-weight: var(--weight-medium); white-space: nowrap; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-instant) var(--ease-out); }
.filter-chip:hover { background: var(--color-page); }
.filter-chip:active { transform: scale(0.97); }
.filter-chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: #FFFFFF; }
@media (min-width: 960px) {
  .pick-chip, .filter-chip { min-height: var(--control-h-sm); padding: 0 var(--space-3); }
}

/* 7c search-select: find and choose from a long list (cities, all trades). */
.search-select { position: relative; display: flex; flex-direction: column; gap: var(--space-2); }
.search-select__list { position: absolute; left: 0; right: 0; top: calc(var(--control-h) + var(--space-1)); z-index: var(--z-dropdown); max-height: 280px; overflow-y: auto; padding: var(--space-1); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); box-shadow: var(--shadow-overlay); animation: menu-in var(--duration-base) var(--ease-out) both; transform-origin: top; }
.search-select__list--static { position: static; box-shadow: var(--shadow-overlay); }
.search-select__group { padding: var(--space-2) var(--space-3) var(--space-1); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.search-select__option { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--control-h); padding: var(--space-2) var(--space-3); border-radius: var(--radius-xs); cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out); }
.search-select__option:hover, .search-select__option.is-active { background: var(--color-page); }
.search-select__option[aria-selected="true"] { color: var(--color-accent-on-tint); font-weight: var(--weight-medium); }
.search-select__option svg { width: 16px; height: 16px; visibility: hidden; }
.search-select__option[aria-selected="true"] svg { visibility: visible; }
.search-select__option mark { padding: 0; background: transparent; color: inherit; font-weight: var(--weight-bold); }
.search-select__hint { font-size: var(--text-sm); color: var(--color-text-muted); }
.search-select__empty { padding: var(--space-4) var(--space-3); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.tokens { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.token { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; padding: 0 0 0 var(--space-3); border-radius: var(--radius-full); background: var(--color-accent-tint); border: 1px solid var(--color-accent-tint-border); color: var(--color-accent-on-tint); font-size: var(--text-sm); font-weight: var(--weight-medium); animation: pop var(--duration-base) var(--ease-spring) both; }
.token__remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--color-accent-on-tint); cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out); }
.token__remove:hover { background: var(--color-accent-tint-border); }
.token__remove svg { width: 14px; height: 14px; }

/* ============ 8 Chips, counts, status ============ */
.chip { display: inline-flex; align-items: center; gap: var(--space-1); max-width: 100%; min-height: var(--chip-h); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--color-neutral-bg); color: var(--color-neutral); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-medium); overflow-wrap: anywhere; letter-spacing: 0.005em; }
.chip svg { flex-shrink: 0; width: 14px; height: 14px; }
.chip--accent { background: var(--color-accent-tint); color: var(--color-accent-on-tint); }
.chip--success { background: var(--color-success-bg); color: var(--color-success); }
.chip--danger { background: var(--color-danger-bg); color: var(--color-danger); }
.chip--warning { background: var(--color-warning-bg); color: var(--color-warning); }
.chip--outline { background: var(--color-surface); color: var(--color-text-strong); box-shadow: inset 0 0 0 1px var(--color-border-control); }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.count { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-full); background: var(--color-neutral-bg); color: var(--color-neutral); font-size: var(--text-xs); line-height: 1; font-weight: var(--weight-semibold); }

.status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); color: var(--color-text-strong); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-neutral-bar); position: relative; flex-shrink: 0; }
.status--ok { color: var(--color-success); }
.status--ok::before { background: var(--color-success-bar); }
.status--warn { color: var(--color-warning); }
.status--warn::before { background: var(--color-warning); }
.status--bad { color: var(--color-danger); }
.status--bad::before { background: var(--color-danger-bar); }
.status--off { color: var(--color-text-muted); }
/* status--live: the dot sends a ring, like a radar. Use it for one live fact on a page, and for a page that waits. */
.status--live, .status--pulse { position: relative; }
.status--pulse { align-self: flex-start; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--color-warning-bg); }
.status--pulse::after { left: var(--space-3); }
.status--live::after, .status--pulse::after { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: var(--radius-full); background: currentColor; opacity: 0; pointer-events: none; }


/* ============ 9 Cards, rows, tabs ============ */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.card--accent { border-color: var(--color-accent-tint-border); }
.card--clip { overflow: hidden; }
/* card--raised: a featured card. At most one or two on a page: the example in the hero, the plan, "Precisa de você". */
.card--raised { box-shadow: var(--shadow-raised); }
/* card--ink: the closing call to action on the dark surface. */
.card--ink { position: relative; overflow: clip; border-color: var(--color-ink-surface); background: var(--color-ink-surface); color: var(--color-text-on-ink); border-radius: var(--radius-lg); }
.card--ink .lead, .card--ink .meta { color: var(--color-text-on-ink-muted); }
.card--ink .field__label { color: var(--color-text-on-ink); }
.card--ink .link, .card--ink a:not(.btn) { color: var(--color-accent-on-ink); }
.card--ink .input { border-color: transparent; }
.card--ink :focus-visible { outline-color: #FFFFFF; }
.card--ink .input:focus-visible { box-shadow: 0 0 0 4px rgba(157, 184, 255, 0.45); }
.card--ink::before { content: ""; position: absolute; right: -260px; top: -260px; width: 720px; height: 720px; border-radius: var(--radius-full); background: repeating-radial-gradient(circle, transparent 0 47px, var(--color-ink-border) 47px 48px); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 66%); mask-image: radial-gradient(circle, #000 0, transparent 66%); pointer-events: none; }
.card--ink > * { position: relative; }
.card__body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) var(--space-4); }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4); }
.card__header h2, .card__header h3 { display: flex; align-items: center; gap: var(--space-2); }
.card__footer { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-4); border-top: 1px solid var(--color-border-row); }
.group-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-4); background: var(--color-surface-subtle); border-top: 1px solid var(--color-border-row); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--color-text-strong); }
.group-header > span:first-child { display: inline-flex; align-items: center; gap: var(--space-2); }
.group-header__note { font-weight: var(--weight-regular); color: var(--color-text-secondary); }
.row { display: flex; align-items: center; gap: var(--space-4); min-height: 56px; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border-row); transition: background-color var(--duration-fast) var(--ease-out); }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.row__title { font-weight: var(--weight-medium); }
.row__meta { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.more-row { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: 52px; padding: 0 var(--space-4); border: 0; border-top: 1px solid var(--color-border-row); background: var(--color-surface); color: var(--color-accent); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; cursor: pointer; text-align: left; transition: background-color var(--duration-fast) var(--ease-out); }
.more-row:hover { background: var(--color-surface-hover); }
.more-row svg { width: 16px; height: 16px; transition: transform var(--duration-base) var(--ease-out); }
.more-row:hover svg { transform: translateX(3px); }
.card > .row:first-child { border-top: 0; }
.card > .group-header:first-child, .card > .notice:first-child { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .row:hover { background: var(--color-surface-hover); } }
@media (min-width: 960px) {
  .card__body { padding: var(--space-5) var(--space-6); }
  .card__header { padding: var(--space-4) var(--space-6); }
  .card__footer, .group-header, .row, .more-row { padding-inline: var(--space-6); }
}

.tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--color-border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-h); padding: 0 var(--space-1); border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--color-text-secondary); font-size: var(--text-md); font-weight: var(--weight-medium); white-space: nowrap; text-decoration: none; cursor: pointer; border-bottom-width: 3px; transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-base) var(--ease-out); }
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--color-text); border-bottom-color: var(--color-accent); font-weight: var(--weight-semibold); }

/* ============ 10 Notice (spec N06) ============ */
/* notice: one purchase in any list. The order of the parts is fixed: status, title, meta, chips, system, history, actions.
   In a list inside a card it is a row. With .notice--card it stands alone. */
.notice { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5) var(--space-4); border-top: 1px solid var(--color-border-row); transition: background-color var(--duration-fast) var(--ease-out); }
.notice--card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.notice__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.notice__title { font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-semibold); overflow-wrap: anywhere; letter-spacing: var(--tracking-tight); }
/* the link is a block with padding, so a one-line title is a 48 px target. The negative margin keeps the row spacing. */
.notice__title a { display: block; padding-block: var(--space-3); margin-block: calc(-1 * var(--space-3)); color: var(--color-text); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
.notice__title a:hover { color: var(--color-accent); text-decoration: none; }
.notice__sub { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.notice__meta { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.notice__meta b { font-weight: var(--weight-semibold); color: var(--color-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.notice__system { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-text-muted); }
.notice__history { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--color-accent-on-tint); align-self: flex-start; max-width: 100%; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); border-radius: var(--radius-sm); background: var(--color-accent-tint); }
.notice__history svg { flex-shrink: 0; width: 16px; height: var(--leading-sm); }
.notice__history.is-none { font-weight: var(--weight-regular); color: var(--color-text-muted); padding: 0; background: transparent; font-size: var(--text-xs); line-height: var(--leading-xs); }
.notice__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin-top: 0; margin-left: calc(-1 * var(--space-3)); }
.notice__actions .btn--quiet { padding-inline: var(--space-3); color: var(--color-text-secondary); font-size: var(--text-sm); }
.notice__actions .btn--quiet:hover { color: var(--color-text); }
.notice.is-closed .notice__title a { color: var(--color-text-secondary); font-weight: var(--weight-medium); }
.notice__item { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-border-row); }
.notice__item-label { font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-muted); }
/* The trade chips of a row are quiet: the status chip and the history line carry the row. */
.notice > .chip-row > .chip:not([class*="chip--"]) { background: var(--color-surface-subtle); box-shadow: inset 0 0 0 1px var(--color-border); color: var(--color-text-secondary); }
@media (hover: hover) and (pointer: fine) { .card > .notice:hover { background: var(--color-surface-hover); } }
@media (min-width: 960px) {
  .notice { padding: var(--space-5) var(--space-6); }
  .notice--card { padding: var(--space-6); }
}

/* ============ 11 Stack table, past prices, lock card ============ */
/* price-line: one sentence about a past price. The signature of the product: the only tinted block in a notice. */
.price-line { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--color-accent-tint); color: var(--color-accent-on-tint); font-size: var(--text-sm); line-height: var(--leading-sm); position: relative; overflow: hidden; border: 1px solid var(--color-accent-tint-border); }
.price-line svg { flex-shrink: 0; width: 18px; height: var(--leading-md); }
.price-line b, .price-line strong { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; font-size: var(--text-md); line-height: var(--leading-md); letter-spacing: var(--tracking-tight); }
.price-line--other { background: var(--color-surface); color: var(--color-text-strong); box-shadow: none; border-color: var(--color-border); }
.price-line--none { background: transparent; padding: 0; color: var(--color-text-muted); border: 0; overflow: visible; }
/* The price line shines once when it comes into view. It is the product: the eye should land on it. */
.price-line::after { content: ""; position: absolute; inset-block: 0; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent); transform: translateX(-120%); pointer-events: none; }
.price-line--none::after, .price-line--other::after { content: none; }

/* stack-table: a table from 720 px, a stack of blocks on a phone. Each td needs data-label.
   Cell classes: is-title (the main text of a row), is-num, is-wide (full width on a phone), is-empty. */
.stack-table { width: 100%; font-size: var(--text-sm); line-height: var(--leading-sm); }
.stack-table caption { padding: 0 0 var(--space-2); text-align: left; font-size: var(--text-sm); color: var(--color-text-secondary); caption-side: top; }
.stack-table thead { display: none; }
.stack-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-4); border-top: 1px solid var(--color-border-row); }
.stack-table td, .stack-table tbody th { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; padding: 0; text-align: left; font-weight: var(--weight-regular); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stack-table td::before { content: attr(data-label); font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-text-muted); }
.stack-table td:not([data-label])::before { content: none; }
.stack-table .is-title { grid-column: 1 / -1; font-size: var(--text-md); line-height: var(--leading-md); font-weight: var(--weight-medium); }
.stack-table .is-wide { grid-column: 1 / -1; }
.stack-table td.is-title::before { content: none; }
.stack-table td.is-title[data-index]::before { content: attr(data-index); }
.stack-table td.is-index { display: none; }
.stack-table__tags { display: block; margin-top: var(--space-1); }
.stack-table td.is-empty { color: var(--color-text-muted); }
.stack-table td.is-strong { font-weight: var(--weight-semibold); }
.stack-table .sub { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-regular); color: var(--color-text-muted); }
.stack-table .chip { align-self: flex-start; }
/* a row that holds a block for the row above it (past prices under an item) */
.stack-table tr.stack-table__detail { display: block; padding-top: 0; border-top: 0; }
.stack-table tr.stack-table__detail > td { display: block; }
.stack-table__more { display: block; }
/* stack-table--compare: two answers for each row heading. On a phone the heading is the block title. */
.stack-table--compare tbody th.is-title { font-weight: var(--weight-semibold); }
/* On a phone the two answers stand side by side under the heading. The answer of Tem Compra is on the tint. */
@media (max-width: 719px) {
  .stack-table--compare td { padding: var(--space-3); border-radius: var(--radius-sm); background: var(--color-surface-subtle); }
  .stack-table--compare td.is-strong { background: var(--color-accent-tint); color: var(--color-accent-on-tint); }
  .stack-table--compare td.is-strong::before { color: var(--color-accent-on-tint); }
}
@media (min-width: 720px) {
  .stack-table--compare { table-layout: fixed; }
  .stack-table--compare tbody th.is-title { font-size: var(--text-sm); line-height: var(--leading-sm); }
  .stack-table--compare td.is-strong { color: var(--color-accent-on-tint); background: var(--color-accent-tint); font-weight: var(--weight-semibold); }
    .stack-table--compare thead th:last-child { background: var(--color-accent); color: var(--color-text-on-accent); font-size: var(--text-sm); }
    .stack-table--compare thead th { font-size: var(--text-sm); padding-block: var(--space-4); }
    .stack-table--compare td, .stack-table--compare tbody th { padding-block: var(--space-4); }
}
@media (min-width: 720px) {
  .stack-table thead { display: table-header-group; }
  .stack-table tr, .stack-table tr.stack-table__detail { display: table-row; padding: 0; }
  .stack-table thead th { padding: var(--space-3); background: var(--color-surface-subtle); border-top: 1px solid var(--color-border-row); text-align: left; font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-semibold); color: var(--color-text-secondary); white-space: nowrap; letter-spacing: 0.02em; }
  .stack-table td, .stack-table tbody th { display: table-cell; padding: var(--space-3) var(--space-3); border-top: 1px solid var(--color-border-row); vertical-align: top; overflow-wrap: break-word; }
  .stack-table .chip { white-space: nowrap; }
  .stack-table td::before, .stack-table td.is-title[data-index]::before { content: none; }
  .stack-table td.is-index { display: table-cell; }
  .stack-table .is-title { font-size: var(--text-sm); line-height: var(--leading-sm); }
  .stack-table th.is-num, .stack-table td.is-num { text-align: right; white-space: nowrap; }
  /* The note under a number can wrap, so a table with a long winner name still fits its card. */
  .stack-table td.is-num .sub { white-space: normal; }
  .stack-table tr.stack-table__detail > td { display: table-cell; padding-top: 0; border-top: 0; }
  .stack-table thead th:first-child, .stack-table td:first-child, .stack-table tbody th:first-child { padding-left: var(--space-4); }
  .stack-table thead th:last-child, .stack-table td:last-child { padding-right: var(--space-4); }
}
@media (min-width: 960px) {
  .stack-table thead th:first-child, .stack-table td:first-child, .stack-table tbody th:first-child { padding-left: var(--space-6); }
  .stack-table thead th:last-child, .stack-table td:last-child { padding-right: var(--space-6); }
}
/* clamp: long text that opens in place. <details class="clamp"><summary>…</summary>rest</details> is not used:
   the text is cut by the server at 2 lines and the link "ver mais" shows the rest. */
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.clamp-toggle { display: block; align-self: flex-start; padding: 0; border: 0; background: transparent; color: var(--color-accent); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); text-decoration: none; text-underline-offset: 2px; cursor: pointer; min-height: 32px; transition: color var(--duration-fast) var(--ease-out); }
.clamp-toggle:hover { text-decoration: underline; }

/* past-price: similar past purchases for one item (spec R-PASTPRICE). Sample and payer views only on the notice page. */
.past-price { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-accent-tint-border); font-size: var(--text-sm); line-height: var(--leading-sm); }
.past-price__title { font-weight: var(--weight-semibold); color: var(--color-accent-on-tint); font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.past-price__rows { display: flex; flex-direction: column; }
.past-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding-block: var(--space-4); border-top: 1px solid var(--color-border-row); }
.past-row__date { color: var(--color-text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.past-row__price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-weight: var(--weight-semibold); color: var(--color-text); font-variant-numeric: tabular-nums; order: -1; font-size: var(--text-lg); line-height: var(--leading-lg); letter-spacing: var(--tracking-tight); }
.past-row__price .unit { font-weight: var(--weight-regular); color: var(--color-text-secondary); font-size: var(--text-sm); letter-spacing: 0; }
.past-row__price .chip { letter-spacing: 0.005em; }
.past-row__desc { color: var(--color-text-strong); overflow-wrap: anywhere; }
.past-row__meta { color: var(--color-text-secondary); overflow-wrap: anywhere; }
.past-row__meta a { color: var(--color-accent); white-space: nowrap; }
.past-row__winner { color: var(--color-text-secondary); overflow-wrap: anywhere; }
.past-price__links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.past-price__links a { display: inline-flex; align-items: center; min-height: var(--control-h); color: var(--color-accent); font-weight: var(--weight-semibold); text-decoration: none; }
.past-price__links a:hover { text-decoration: underline; }
.past-price__note { color: var(--color-text-muted); }
.past-price--line { padding: var(--space-3) var(--space-4); color: var(--color-text-strong); }
.past-price--none { background: transparent; box-shadow: none; padding: 0; color: var(--color-text-muted); border-radius: 0; }
@media (min-width: 720px) {
  .past-row { grid-template-columns: 96px minmax(0, 1fr) auto; column-gap: var(--space-4); }
  .past-row__date { grid-column: 1; grid-row: 1; }
  .past-row__desc, .past-row__winner, .past-row__meta { grid-column: 2; }
  .past-row__desc { grid-row: 1; }
  .past-row__price { grid-column: 3; grid-row: 1 / span 3; max-width: 216px; justify-content: flex-end; align-self: start; text-align: right; order: 0; }
  .past-price__links { flex-direction: row; gap: var(--space-5); }
  .past-price__links a { min-height: 32px; }
}

/* lock-card: what is locked and the one action that unlocks it (spec N05). Once per page. */
.lock-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-5); background: var(--color-accent-tint); border: 1px solid var(--color-accent-tint-border); border-radius: var(--radius-md); position: relative; overflow: clip; isolation: isolate; }
.lock-card__text { display: flex; align-items: flex-start; gap: var(--space-3); }
.lock-card__icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent-tint-border); }
.lock-card__icon svg { width: 20px; height: 20px; }
.lock-card__title { font-weight: var(--weight-semibold); font-size: var(--text-md); line-height: var(--leading-md); letter-spacing: var(--tracking-tight); }
.lock-card__line { margin-top: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-strong); }
.lock-card__actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-1); width: 100%; }
.lock-card__actions .btn { white-space: nowrap; }
.lock-card__actions .btn--quiet:hover { background: var(--color-surface); }
/* The rings of the radar, behind the text, at the corner. Decoration only. */
.lock-card::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: var(--radius-full); background: repeating-radial-gradient(circle, transparent 0 27px, var(--color-accent-tint-border) 27px 28px); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 70%); mask-image: radial-gradient(circle, #000 0, transparent 70%); pointer-events: none; }
@media (min-width: 720px) {
  .lock-card__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); width: auto; padding-left: 56px; }
}
@media (min-width: 960px) { .lock-card { padding: var(--space-6); } }

/* action-strip: the action on a notice page, right under the title (spec P10, block 4) */
.action-strip { display: flex; flex-direction: column; gap: var(--space-3); }
.action-strip__buttons { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); }
.action-strip__line { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
/* On a phone the first button of the strip is the big one. */
@media (max-width: 719px) { .action-strip__buttons > .btn--primary { min-height: var(--control-h-lg); } }
@media (min-width: 720px) { .action-strip__buttons { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* search-box: find open purchases by what the person sells (spec N10) */
.search-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.search-box .field { gap: var(--space-1); }
@media (min-width: 720px) {
  .search-box { grid-template-columns: minmax(0, 1fr) 176px auto; align-items: end; }
}

/* search-box--stack: in a narrow column. The text field takes a full row at every width. */
.search-box--stack { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) {
  .search-box--stack { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .search-box--stack > .field:first-child { grid-column: 1 / -1; }
}

/* ============ 12 Plan card and price ============ */
.plan-card { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.plan-card--featured { border-color: var(--color-accent-tint-border); box-shadow: var(--shadow-raised); }
.plan-card__name { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); font-variant-numeric: tabular-nums; }
.price__currency { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); color: var(--color-text-secondary); }
.price__amount { font-size: var(--text-2xl); line-height: var(--leading-2xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tighter); }
.price__period { font-size: var(--text-md); color: var(--color-text-secondary); }
.price__note { flex-basis: 100%; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.check-list { display: flex; flex-direction: column; gap: var(--space-3); }
.check-list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.check-list svg { width: 22px; height: 22px; color: var(--color-success); margin-top: 1px; padding: 4px; box-sizing: border-box; border-radius: var(--radius-full); background: var(--color-success-bg); stroke-width: 3; }
.check-list--no svg { color: var(--color-text-muted); }
.check-list--no svg { background: var(--color-neutral-bg); }
.plan-card__fine { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
@media (min-width: 960px) { .plan-card { padding: var(--space-8); } .price__amount { font-size: var(--text-3xl); line-height: var(--leading-3xl); } }
/* price-pair: the two prices of the one plan, side by side from 720 px */
.price-pair { gap: var(--space-5); }
@media (min-width: 720px) { .price-pair { flex-direction: row; gap: var(--space-12); } }

/* ============ 13 Alerts, inline messages, banner ============ */
.alert { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-accent-tint-border); border-radius: var(--radius-sm); background: var(--color-accent-tint); color: var(--color-text); font-size: var(--text-sm); line-height: var(--leading-sm); animation: enter-down var(--duration-base) var(--ease-out) both; }
.alert > svg { width: 20px; height: 20px; color: var(--color-accent-on-tint); }
.alert__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.alert__title { font-weight: var(--weight-semibold); }
.alert__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-1); }
.alert__actions a, .alert__actions button { padding: 0; border: 0; background: transparent; font-weight: var(--weight-semibold); color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.alert--success { background: var(--color-success-bg); border-color: var(--color-success-border); }
.alert--success > svg { color: var(--color-success); }
.alert--warning { background: var(--color-warning-bg); border-color: var(--color-warning-border); }
.alert--warning > svg { color: var(--color-warning); }
.alert--danger { background: var(--color-danger-bg); border-color: var(--color-danger-border); }
.alert--danger > svg { color: var(--color-danger); }
.alert--neutral { background: var(--color-surface-subtle); border-color: var(--color-border); }
.alert--neutral > svg { color: var(--color-text-muted); }

.inline-msg { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); color: var(--color-text-secondary); animation: enter-fade var(--duration-base) var(--ease-out) both; }
.inline-msg svg { width: 16px; height: 16px; }
.inline-msg--success { color: var(--color-success); }
.inline-msg--danger { color: var(--color-danger); }
.inline-msg--warning { color: var(--color-warning); }

.banner { background: var(--color-warning-bg); border-bottom: 1px solid var(--color-warning-border); color: var(--color-text); font-size: var(--text-sm); line-height: var(--leading-sm); animation: enter-down var(--duration-base) var(--ease-out) both; }
.banner__inner { display: flex; align-items: flex-start; gap: var(--space-3); padding-block: var(--space-3); }
.banner__inner > svg { width: 20px; height: 20px; color: var(--color-warning); }
.banner__inner > p { flex: 1; min-width: 0; }
.banner__inner--action { flex-wrap: wrap; align-items: center; }
.banner__inner--action > p { flex: 1 1 240px; }
.banner--accent { background: var(--color-accent-tint); border-bottom-color: var(--color-accent-tint-border); }
.banner--accent .banner__inner > svg { color: var(--color-accent-on-tint); }
.banner--neutral { background: var(--color-neutral-bg); border-bottom-color: var(--color-border-control); }
.banner--neutral .banner__inner > svg { color: var(--color-text-strong); }
.banner--danger { background: var(--color-danger-bg); border-bottom-color: var(--color-danger-border); }
.banner--danger .banner__inner > svg { color: var(--color-danger); }

/* ============ 14 Empty, loading, error ============ */
.state { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-5); text-align: center; }
.state__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--color-neutral-bg); color: var(--color-text-strong); margin-bottom: var(--space-1); box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-neutral-bg) 45%, transparent); }
.state__icon svg { width: 26px; height: 26px; }
.state__title { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.state__text { max-width: 420px; font-size: var(--text-md); line-height: var(--leading-md); color: var(--color-text-secondary); }
.state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
.state--error .state__icon { background: var(--color-danger-bg); color: var(--color-danger); box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-danger-bg) 55%, transparent); }
.state--success .state__icon { background: var(--color-success-bar); color: #FFFFFF; box-shadow: 0 0 0 8px var(--color-success-bg); animation: pop var(--duration-slow) var(--ease-spring) both; }
/* The check mark of a success draws itself after the circle pops. */
.state--success .state__icon svg { stroke-width: 2.6; }
.state--success .state__icon svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw var(--duration-slow) var(--ease-out) var(--duration-base) forwards; }
.state--left { align-items: flex-start; text-align: left; padding: var(--space-5) var(--space-4); }

.skeleton { display: block; height: 12px; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--color-neutral-bg) 0%, var(--color-neutral-bg) 35%, var(--color-surface-subtle) 50%, var(--color-neutral-bg) 65%, var(--color-neutral-bg) 100%); animation: shimmer var(--duration-ambient) linear infinite; background-size: 200% 100%; }
.skeleton--title { height: 20px; width: 80%; }
.skeleton--text { height: 12px; width: 60%; }
.skeleton--short { width: 32%; }
.skeleton--chip { height: var(--chip-h); width: 112px; border-radius: var(--radius-full); }
.skeleton--block { height: 44px; width: 100%; border-radius: var(--radius-sm); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============ 15 Pagination, breadcrumb ============ */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.pagination__pages { display: none; align-items: center; gap: var(--space-1); }
.pagination__page { display: inline-flex; align-items: center; justify-content: center; min-width: var(--control-h); height: var(--control-h); padding: 0 var(--space-2); border-radius: var(--radius-sm); color: var(--color-text-strong); font-size: var(--text-sm); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.pagination__page:hover { background: var(--color-neutral-bg); color: var(--color-text); }
.pagination__page[aria-current="page"] { background: var(--color-ink); color: #FFFFFF; }
.pagination__gap { display: inline-flex; justify-content: center; min-width: 24px; color: var(--color-text-muted); }
.pagination__status { font-size: var(--text-sm); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
  .pagination__pages { display: flex; }
  .pagination__status { display: none; }
}

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--color-text-muted); border-right: 1.5px solid var(--color-text-muted); transform: rotate(45deg); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--color-text-secondary); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
.breadcrumb a:hover { color: var(--color-text); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: var(--weight-medium); }
/* on a phone only the parent shows, as a way back: mark it with .breadcrumb__parent */
@media (max-width: 719px) {
  .breadcrumb li:not(.breadcrumb__parent) { display: none; }
  .breadcrumb li.breadcrumb__parent::before { content: none; }
  .breadcrumb li.breadcrumb__parent a { min-height: var(--control-h); font-weight: var(--weight-medium); }
  .breadcrumb li.breadcrumb__parent a::before { content: ""; width: 8px; height: 8px; margin-right: var(--space-2); border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
}

/* ============ 16 Cookie notice, dialog, toast ============ */
.cookie { position: fixed; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: var(--z-banner); background: var(--color-surface); box-shadow: var(--shadow-overlay); max-width: 960px; margin-inline: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); animation: sheet-up var(--duration-slow) var(--ease-out) both; }
.cookie--static { position: static; border: 1px solid var(--color-border); border-radius: var(--radius-md); left: auto; right: auto; bottom: auto; max-width: none; animation: none; }
.cookie__inner { display: flex; flex-direction: column; gap: var(--space-3); padding-block: var(--space-4); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-strong); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.cookie__actions .btn--quiet { grid-column: 1 / -1; }
/* Two equal buttons must fit side by side at 360 px. */
.cookie__actions .btn { padding-inline: var(--space-3); font-size: var(--text-sm); white-space: nowrap; }
@media (min-width: 960px) {
  .cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-8); }
  .cookie__actions { display: flex; flex-shrink: 0; }
  .cookie__actions .btn { padding-inline: var(--space-4); font-size: var(--text-md); }
}

.dialog-backdrop { position: fixed; inset: 0; z-index: var(--z-dialog); display: flex; align-items: flex-end; justify-content: center; padding: var(--space-4); background: var(--color-scrim); animation: enter-fade var(--duration-base) var(--ease-out) both; }
.dialog-backdrop--static { position: relative; inset: auto; z-index: auto; border-radius: var(--radius-md); }
.dialog { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); animation: sheet-up var(--duration-slow) var(--ease-out) both; }
.dialog__title { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.dialog__text { color: var(--color-text-secondary); }
.dialog__actions { display: flex; flex-direction: column-reverse; gap: var(--space-2); margin-top: var(--space-2); }
@media (min-width: 720px) {
  .dialog-backdrop { align-items: center; }
  .dialog__actions { flex-direction: row; justify-content: flex-end; }
    .dialog { animation-name: enter-scale; }
}

.toast { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); min-height: 52px; padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); background: var(--color-ink-surface); color: #FFFFFF; font-size: var(--text-sm); line-height: var(--leading-sm); box-shadow: var(--shadow-overlay); animation: sheet-up var(--duration-slow) var(--ease-spring) both, leave-down var(--duration-base) var(--ease-in) 5s forwards; }
.toast svg { width: 16px; height: 16px; }
.toast a, .toast button { white-space: nowrap; padding: 0; border: 0; background: transparent; color: #FFFFFF; font-weight: var(--weight-semibold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.toast > svg:first-child { color: #6EE7A8; }
.toast:hover, .toast:focus-within { animation-play-state: paused; }
@media (max-width: 479px) { .toast { border-radius: var(--radius-md); } }

/* ============ 17 Steps, FAQ, quote, facts ============ */
.steps { display: flex; flex-direction: column; gap: var(--space-6); counter-reset: step; }
.steps > li { display: flex; gap: var(--space-4); counter-increment: step; position: relative; }
.steps > li::before { content: counter(step); flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--color-accent-tint); color: var(--color-accent-on-tint); font-size: var(--text-md); font-weight: var(--weight-semibold); box-shadow: inset 0 0 0 1px var(--color-accent-tint-border); position: relative; z-index: 1; }
.steps__body { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-2); }
.steps__title { font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.steps__text { color: var(--color-text-secondary); }
/* A thin line joins the numbers: down the side on a phone, across the row on desktop. */
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 48px; bottom: calc(-1 * var(--space-6) + 8px); width: 1px; background: var(--color-accent-tint-border); }
/* steps--row: three steps side by side from 960 px */
@media (min-width: 960px) {
  .steps--row { flex-direction: row; gap: var(--space-10); }
  .steps--row > li { flex: 1; flex-direction: column; gap: var(--space-3); }
    .steps--row > li { gap: var(--space-4); }
    .steps--row > li:not(:last-child)::after { left: 52px; right: calc(-1 * var(--space-10) + 12px); top: 19.5px; bottom: auto; width: auto; height: 1px; }
    .steps--row .steps__body { padding-top: 0; }
}

.faq { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--color-border-row); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 60px; font-weight: var(--weight-semibold); cursor: pointer; padding: var(--space-4) var(--space-5); transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--color-surface-hover); }
.faq details[open] > summary { color: var(--color-accent-on-tint); }
.faq summary:focus-visible { outline-offset: -2px; }
/* The answer opens and closes with its height. A browser without ::details-content opens it at once. */
.faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out), content-visibility var(--duration-base) allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq summary svg { width: 20px; height: 20px; color: var(--color-text-muted); transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-fast) var(--ease-out); padding: 4px; box-sizing: content-box; border-radius: var(--radius-full); background: var(--color-page); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details[open] summary svg { background: var(--color-accent-tint); color: var(--color-accent-on-tint); }
.faq__answer { max-width: 60ch; color: var(--color-text-secondary); padding: 0 var(--space-5) var(--space-5); }
.faq__answer > * + * { margin-top: var(--space-3); }

/* notice-quote: the notice's own words, never rewritten */
.notice-quote { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--color-surface-subtle); box-shadow: inset 0 0 0 1px var(--color-border-row); }
.notice-quote blockquote { color: var(--color-text); overflow-wrap: anywhere; }
.notice-quote blockquote::before { content: "\201C"; }
.notice-quote blockquote::after { content: "\201D"; }
.notice-quote__source { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }

/* facts: label and value pairs on a detail page */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; margin-block: calc(-1 * var(--space-3)); }
.facts > div { display: grid; gap: var(--space-1) var(--space-4); margin-top: -1px; padding-block: var(--space-3); border-top: 1px solid var(--color-border-row); grid-template-columns: minmax(0, 104px) minmax(0, 1fr); align-items: baseline; }
.facts dt { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.facts dd { font-weight: var(--weight-medium); overflow-wrap: anywhere; }
.facts dd .sub { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-regular); color: var(--color-text-secondary); }
.facts .is-big { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); }
@media (min-width: 720px) {
  .facts--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); }
}

/* generic table: invoices, lists of settings */
.table { font-size: var(--text-sm); line-height: var(--leading-sm); }
.table th { padding: var(--space-3) var(--space-4); background: var(--color-surface-subtle); text-align: left; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-secondary); white-space: nowrap; letter-spacing: 0.02em; }
.table td { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border-row); vertical-align: middle; }
.table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============ 17b Public page blocks ============ */
.caption { margin-top: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }

/* hero: the top of the landing page */
.hero { padding-block: var(--space-8) var(--space-12); position: relative; overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-5); }
.hero__cta { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); margin-top: var(--space-2); }
.hero__note { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
/* hero eyebrow: a small pill above the title. */
.hero .eyebrow { align-self: flex-start; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); color: var(--color-text-strong); letter-spacing: 0.04em; }
/* The search of the hero is a white panel: the first thing to try. */
.hero .search-box { padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-raised); }
/* hero__visual: the example of the day, on the rings of the radar. Two empty cards under it say "there are more". */
.hero__visual { position: relative; isolation: isolate; }
.hero__visual > .title-card { display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-strong); }
.hero__visual > .title-card::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-success-bar); }
.hero__visual > .notice--card { position: relative; box-shadow: var(--shadow-lift); }
.hero__visual > .notice--card::before, .hero__visual > .notice--card::after { content: ""; position: absolute; z-index: -1; left: var(--space-4); right: var(--space-4); bottom: -8px; height: 40px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.hero__visual > .notice--card::after { left: var(--space-8); right: var(--space-8); bottom: -20px; z-index: -2; opacity: 0.7; }
.hero__visual > .caption { margin-top: var(--space-8); }
.hero__rings { position: absolute; z-index: -3; left: 50%; top: 46%; width: 880px; height: 880px; margin: -440px 0 0 -440px; border-radius: var(--radius-full); background: repeating-radial-gradient(circle, transparent 0 54px, var(--color-border-control) 54px 55px); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%); pointer-events: none; }
.hero__rings::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-full); background: conic-gradient(from 210deg, transparent 0 80%, var(--color-accent-tint-border) 100%); opacity: 0.7; }
@media (min-width: 960px) {
  .hero { padding-block: var(--space-16) var(--space-24); }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-16); align-items: center; }
  .hero__copy { gap: var(--space-6); }
  .hero__cta { align-items: flex-start; }
}

/* statement: one plain fact in large text, instead of a row of number cards */
.statement { max-width: 760px; font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-medium); text-wrap: balance; letter-spacing: var(--tracking-tight); }
.statement b { font-weight: var(--weight-semibold); color: var(--color-accent-on-tint); font-variant-numeric: tabular-nums; }
.statement + .meta { margin-top: var(--space-2); }
/* On the dark band the one fact is large and its numbers are light blue. */
.section--ink .statement { max-width: 880px; margin-inline: auto; font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-semibold); text-wrap: balance; }
.section--ink .statement b { color: var(--color-accent-on-ink); font-weight: var(--weight-bold); }
.section--ink::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1200px; height: 1200px; margin: -600px 0 0 -600px; border-radius: var(--radius-full); background: repeating-radial-gradient(circle, transparent 0 59px, var(--color-ink-border) 59px 60px); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 62%); mask-image: radial-gradient(circle, #000 0, transparent 62%); pointer-events: none; }
.section--ink > .container { position: relative; }
@media (min-width: 960px) { .section--ink .statement { text-align: center; font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-tighter); } }

/* signup-inline: the email field and the button of the signup (spec S01), with the legal line under them */
.signup-inline { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); max-width: 640px; }
@media (min-width: 720px) {
  .signup-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .signup-inline__legal { grid-column: 1 / -1; }
}

/* hero with one column: when the example block is not there */
.hero__grid > :only-child { grid-column: 1 / -1; max-width: 760px; }

/* cta-band: the closing call to action */
.cta-band { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.card__footer.cta-band { gap: var(--space-3); padding-block: var(--space-4); }
@media (min-width: 960px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-12); } }

/* ============ 18 Utilities ============ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.hide-phone { display: none; }
@media (min-width: 960px) {
  .hide-phone { display: revert; }
  .hide-desktop { display: none !important; }
}

/* toast-region: where a toast shows, at the bottom of the window, for 5 seconds (N08). Above the phone tab row. */
.toast-region { position: fixed; left: 0; right: 0; bottom: var(--space-4); z-index: var(--z-toast); display: flex; justify-content: center; padding-inline: var(--gutter); pointer-events: none; }
.toast-region > .toast { pointer-events: auto; }
.toast-region--tabbar { bottom: calc(56px + var(--space-4)); }
@media (min-width: 960px) { .toast-region--tabbar { bottom: var(--space-4); } }

/* ============ 19 Simple frame: signup, login, onboarding, checkout, email preferences ============ */
/* The header shows the product mark only (spec 5.3). Checkout adds the account email and the link "Voltar" (spec 5.4). */
.site-header--simple { position: static; }
.simple-header__side { display: flex; align-items: center; gap: var(--space-4); min-width: 0; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.simple-header__email { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simple-header__side a { display: inline-flex; align-items: center; min-height: var(--control-h); white-space: nowrap; }
@media (min-width: 720px) { .simple-header__email { display: block; } }
/* mini-footer: the legal links in a small footer */
.mini-footer { padding-block: var(--space-6) var(--space-8); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.mini-footer__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.mini-footer a { display: inline-flex; align-items: center; min-height: var(--control-h); color: var(--color-text-secondary); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
.mini-footer a:hover { color: var(--color-text); text-decoration: underline; }
/* page--task: one narrow column for one task (a form, a message, a result) */
.page--task { padding-block: var(--space-8) var(--space-12); }
.page--task > * + * { margin-top: var(--space-4); }
.step-text { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--color-text-secondary); }

/* signup-strip: the sample form on the listing pages P04 to P09 and P11 (spec P07, "Signup strip") */
.signup-strip { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.signup-strip__title { font-weight: var(--weight-semibold); color: var(--color-text); font-size: var(--text-md); letter-spacing: var(--tracking-tight); }
.signup-strip__price { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.signup-strip .signup-inline { max-width: none; }
/* signup-strip--stack: in an aside. The field and the button stay one under the other at every width. */
.signup-strip--stack .signup-inline { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .signup-strip--stack { padding: var(--space-5); } }
@media (min-width: 960px) { .signup-strip { padding: var(--space-5) var(--space-6); } }

/* ============ 24 Motion ============ */
/* The rules are in design/MOTION.md. In short:
   1. Motion says what changed. It never makes a person wait: nothing is slower than 400 ms, except a scroll reveal.
   2. Things enter with --ease-out and leave with --ease-in, faster than they came.
   3. Only opacity and transform move. Layout does not animate, except the height of an answer that opens.
   4. Loops are only for "live" and "waiting". One loop on a screen.
   5. With "reduce motion" on, everything is in its end state at once. Nothing is lost. */
@keyframes enter-up { from { opacity: 0; transform: translateY(var(--move-md)); } }
@keyframes enter-down { from { opacity: 0; transform: translateY(calc(-1 * var(--move-sm))); } }
@keyframes enter-fade { from { opacity: 0; } }
@keyframes enter-scale { from { opacity: 0; transform: translateY(var(--move-sm)) scale(0.96); } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(var(--move-lg)); } }
@keyframes leave-down { to { opacity: 0; transform: translateY(var(--move-sm)); visibility: hidden; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(calc(-1 * var(--move-sm))) scale(0.98); } }
@keyframes line-in { from { transform: scaleX(0); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { opacity: 0.6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes shine { to { transform: translateX(420%); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(var(--move-sm)); } }

/* 24a Page change. The server sends a full page; the browser fades from the old one to the new one.
   The header and the phone tab row stay still. A browser without this rule changes the page at once. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out var(--duration-fast) var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in var(--duration-base) var(--ease-out) both; }
.site-header, .app-header { view-transition-name: header; }
.app-tabbar { view-transition-name: tabbar; }
::view-transition-group(header), ::view-transition-group(tabbar) { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  /* 24b Entrance. Put .enter on a block: its children come up one after the other, at most 8. */
  .enter > * { animation: enter-up var(--duration-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
  .enter > :nth-child(2) { --i: 1; } .enter > :nth-child(3) { --i: 2; } .enter > :nth-child(4) { --i: 3; }
  .enter > :nth-child(5) { --i: 4; } .enter > :nth-child(6) { --i: 5; } .enter > :nth-child(7) { --i: 6; }
  .enter > :nth-child(n + 8) { --i: 7; }
  /* enter--late: a block that comes after the text of the page (the picture of the hero). */
  .enter--late { animation: enter-scale var(--duration-slower) var(--ease-out) calc(3 * var(--stagger)) both; }

  /* 24c Scroll reveal. Put .reveal on a block under the first screen: it comes up as it enters the window.
     It follows the scroll, so a block that is in the window at the start shows at once. No script. */
  @supports (animation-timeline: view()) {
    .reveal { animation: enter-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .reveal--items > * { animation: enter-up linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }

  /* 24d Live and waiting: the two loops. */
  .status--live::after, .status--pulse::after { animation: ping var(--duration-ambient) var(--ease-out) infinite; }
  .hero__rings::after { animation: sweep 9s linear infinite; }
  .price-line::after { animation: shine 1100ms var(--ease-in-out) 500ms 1 both; }

  /* 24e Rows of a list: the pointer lifts a raised card a little. */
  @media (hover: hover) and (pointer: fine) {
    .card--raised.card--link, a.card--raised { transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); }
    .card--raised.card--link:hover, a.card--raised:hover { box-shadow: var(--shadow-lift); transform: translateY(calc(-1 * var(--move-xs))); }
  }
}

/* 24f Reduce motion: every animation and transition ends at once. The loops stop. The toast still leaves after 5 seconds. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .price-line::after, .status--live::after, .status--pulse::after, .hero__rings::after { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ============ 20 Listing pages (P04 to P09, P11 to P13) ============ */
/* link-cols: a block of links with counts, "Paraná (226)": states, cities, trades, buyers. One column on a phone and in an aside. */
.link-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 var(--space-6); }
.link-cols a { display: flex; align-items: center; min-height: var(--control-h); padding-block: var(--space-2); color: var(--color-text); text-decoration: none; overflow-wrap: anywhere; transition: color var(--duration-fast) var(--ease-out); }
.link-cols a:hover { color: var(--color-accent); text-decoration: underline; }
.link-cols--tight { grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); gap: 0 var(--space-4); }
@media (min-width: 720px) { .link-cols--tight { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 0 var(--space-6); } }

/* filter-row: the selects and the switch above a list (P05 to P08) */
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3) var(--space-4); }
.filter-row .switch { flex-direction: row-reverse; justify-content: flex-end; }
@media (min-width: 720px) {
  .filter-row { grid-template-columns: repeat(2, minmax(0, 224px)) minmax(0, 1fr); align-items: end; }
  .filter-row--one { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
}

/* list-controls: N09. The count on the left, the sort select on the right. It is the head of the list card. */
.list-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-4); }
.list-controls__count { font-weight: var(--weight-semibold); color: var(--color-text); }
.list-controls__sort { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-secondary); }
.list-controls__sort .select { width: auto; min-width: 176px; }
/* list-end: the last row of a list that has no more pages: "Você viu todas as 16." */
.list-end { padding: var(--space-4); border-top: 1px solid var(--color-border-row); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); text-align: center; }
@media (min-width: 960px) { .list-controls { padding-inline: var(--space-6); } }

/* page-head: breadcrumb, H1 and the lines under it, on listing pages */
.page-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.page-head .breadcrumb { margin-bottom: var(--space-1); }
.page-head__line { color: var(--color-text-secondary); }
.page-head__note { max-width: 72ch; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
/* mark: the words of a search in a title (P09). Bold, on the accent tint. */
mark { padding: 0 2px; border-radius: 2px; background: var(--color-accent-tint); color: inherit; font-weight: var(--weight-bold); }

/* ============ 21 Social images (G01 to G04) ============ */
/* One unit (--u) is 1% of the image width. At full size the image is 1080 x 1350 px (G01 to G03) or 1200 x 630 px (G04).
   On a narrow window the image keeps its shape and gets smaller. The agents take the picture of the .social element at full size. */
.social-stage { display: flex; justify-content: center; }
.social { --u: min(1vw, 10.8px); display: flex; width: calc(var(--u) * 100); height: calc(var(--u) * 125); padding: calc(var(--u) * 5); background: var(--color-page); color: var(--color-text); overflow: hidden; }
.social--wide { --u: min(1vw, 12px); height: calc(var(--u) * 52.5); padding: calc(var(--u) * 3.5); }
.social__card { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: calc(var(--u) * 7); border: calc(var(--u) * 0.2) solid var(--color-border); border-radius: calc(var(--u) * 3); background: var(--color-surface); }
.social__brand { display: flex; align-items: center; gap: calc(var(--u) * 1.8); font-size: calc(var(--u) * 3.6); line-height: 1; font-weight: var(--weight-semibold); }
.social__brand img { width: calc(var(--u) * 6); height: calc(var(--u) * 6); }
.social__body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: calc(var(--u) * 2.4); }
.social__label { padding: calc(var(--u) * 0.9) calc(var(--u) * 2.4); border-radius: calc(var(--u) * 5); background: var(--color-accent-tint); color: var(--color-accent-on-tint); font-size: calc(var(--u) * 3); line-height: 1.2; font-weight: var(--weight-semibold); }
.social__title { font-size: calc(var(--u) * 6); line-height: 1.15; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); text-wrap: balance; overflow-wrap: anywhere; }
.social__sub { font-size: calc(var(--u) * 4.4); line-height: 1.25; color: var(--color-text-secondary); }
.social__big { font-size: calc(var(--u) * 8); line-height: 1.1; font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); display: flex; flex-wrap: wrap; align-items: baseline; column-gap: calc(var(--u) * 1.6); font-variant-numeric: tabular-nums; }
/* G01: the unit of a price, small, after the value. It goes to the next line when the value is long. */
.social__unit { font-size: calc(var(--u) * 3.4); line-height: 1.25; font-weight: var(--weight-regular); letter-spacing: 0; color: var(--color-text-secondary); white-space: nowrap; }
.social__sub .social__unit { font-size: inherit; }
.social__number { font-size: calc(var(--u) * 22); line-height: 1; font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.social__line { font-size: calc(var(--u) * 4.4); line-height: 1.25; text-wrap: balance; }
.social__list { align-self: stretch; display: flex; flex-direction: column; margin-top: calc(var(--u) * 1.6); font-size: calc(var(--u) * 3.4); line-height: 1.25; }
.social__list li { display: flex; align-items: baseline; justify-content: space-between; gap: calc(var(--u) * 3); padding-block: calc(var(--u) * 1.8); border-top: calc(var(--u) * 0.2) solid var(--color-border-row); }
.social__list b { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.social__steps { align-self: stretch; display: flex; flex-direction: column; gap: calc(var(--u) * 2.6); margin-top: calc(var(--u) * 1.6); font-size: calc(var(--u) * 4.2); line-height: 1.3; }
.social__steps li { display: flex; align-items: flex-start; gap: calc(var(--u) * 2.4); }
.social__steps li::before { content: ""; flex-shrink: 0; width: calc(var(--u) * 1.4); height: calc(var(--u) * 1.4); margin-top: calc(var(--u) * 2); border-radius: 50%; background: var(--color-accent); }
.social__foot { display: flex; align-items: baseline; justify-content: space-between; gap: calc(var(--u) * 3); padding-top: calc(var(--u) * 3); border-top: calc(var(--u) * 0.2) solid var(--color-border-row); font-size: calc(var(--u) * 3); line-height: 1.2; color: var(--color-text-secondary); }
.social__foot b { font-weight: var(--weight-semibold); color: var(--color-text); }
.social--wide .social__card { justify-content: center; gap: calc(var(--u) * 2.4); padding: calc(var(--u) * 6); }
.social--wide .social__brand { font-size: calc(var(--u) * 6); gap: calc(var(--u) * 2); }
.social--wide .social__brand img { width: calc(var(--u) * 9); height: calc(var(--u) * 9); }
.social--wide .social__line { font-size: calc(var(--u) * 4); color: var(--color-text-secondary); }
.social--wide .social__foot { border-top: 0; padding-top: 0; font-size: calc(var(--u) * 2.4); }

/* ============ 22 Settings forms (S05, S06, A03) ============ */
/* plain-fieldset: a fieldset with no border, for a group of chips with a legend */
.plain-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.plain-fieldset > legend { padding: 0; margin-bottom: var(--space-1); }
/* segmented--wrap: on a narrow phone the two choices go one under the other */
@media (max-width: 479px) { .segmented--wrap { display: grid; grid-auto-flow: row; align-self: stretch; } .segmented--wrap label { white-space: normal; min-height: var(--control-h); } }
/* disclosure: an optional part of a form that starts closed (S05, the words to leave out) */
.disclosure > summary { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-h); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--color-text); cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-inline: var(--space-1); border-right: 2px solid var(--color-text-secondary); border-bottom: 2px solid var(--color-text-secondary); transform: rotate(-45deg); transition: transform var(--duration-fast) var(--ease-out); }
.disclosure[open] > summary::before { transform: rotate(45deg); }
.disclosure > summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-xs); }

/* ============ 23 Blocks of single screens (merged from the builders' files) ============ */
/* Each group names the first screen that uses it. The rules use tokens only. */
/* -- from A01 -- */
/* head-row: the page title with one quiet link on the right */
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
/* needs: the strip "Precisa de você". At most 3 cards. In the narrow page the cards are one under the other. */
.needs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.need { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); }
.need__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.need__title { font-weight: var(--weight-semibold); overflow-wrap: anywhere; font-size: var(--text-lg); line-height: var(--leading-lg); letter-spacing: var(--tracking-tight); }
.need__reason { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.need__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.need__actions .btn .icon { width: 16px; height: 16px; }
/* need--urgent: the one thing that needs the person now. Raised, with the accent border and the rings of the radar. */
.need--urgent { position: relative; overflow: clip; isolation: isolate; border-color: var(--color-accent-tint-border); box-shadow: var(--shadow-raised); }
.need--urgent::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -140px; width: 400px; height: 400px; border-radius: var(--radius-full); background: repeating-radial-gradient(circle, transparent 0 31px, var(--color-accent-tint) 31px 33px); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 70%); mask-image: radial-gradient(circle, #000 0, transparent 70%); pointer-events: none; }
/* headline: the one count line under the page title (A01). The numbers are the accent. */
.headline { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-medium); color: var(--color-text-strong); }
.headline b { font-weight: var(--weight-bold); color: var(--color-accent-on-tint); font-variant-numeric: tabular-nums; }
@media (max-width: 719px) { .need__actions > .btn--primary { flex: 1 1 100%; } }
@media (min-width: 720px) { .need { padding: var(--space-6); } }
/* group: a group of rows that opens and closes ("Descartadas", "Com resultado"). The summary is a .group-header. */
.group > summary { list-style: none; cursor: pointer; min-height: var(--control-h); }
.group > summary::-webkit-details-marker { display: none; }
.group > summary .icon { width: 16px; height: 16px; color: var(--color-text-muted); transform: rotate(-90deg); transition: transform var(--duration-base) var(--ease-out); }
.group[open] > summary .icon { transform: none; }
/* -- from A02 -- */
/* price-form: the search form of A02. One column on a phone; four parts in one row from 960 px. */
.price-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); }
.price-form .field { gap: var(--space-1); }
@media (min-width: 720px) { .price-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--space-5) var(--space-6); } .price-form > .field:first-child { grid-column: 1 / -1; } .price-form > .btn { justify-self: start; } }
@media (min-width: 960px) { .price-form { grid-template-columns: minmax(0, 1fr) 160px 352px auto; align-items: start; } .price-form > .field:first-child { grid-column: auto; } .price-form > .btn { margin-top: calc(var(--leading-sm) + var(--space-1)); } }
/* price-table: the results of A02. On a phone the item comes first, then the price and the date. The table form starts at 960 px, because it has 9 columns. */
@media (max-width: 959px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; padding: var(--space-3) var(--space-4); }
  .price-table td { display: flex; padding: 0; border-top: 0; text-align: left; white-space: normal; }
  .price-table td.is-num { text-align: left; }
  .price-table td::before { content: attr(data-label); }
  .price-table td.is-title::before, .price-table td.c-link::before { content: none; }
  .price-table .c-item { order: 1; font-size: var(--text-md); line-height: var(--leading-md); }
  .price-table .c-price { order: 2; } .price-table .c-date { order: 3; }
  .price-table .c-qty { order: 4; } .price-table .c-unit { order: 5; }
  .price-table .c-buyer { order: 6; } .price-table .c-city { order: 7; }
  .price-table .c-win { order: 8; grid-column: 1 / -1; } .price-table .c-link { order: 9; grid-column: 1 / -1; }
  }
.price-table .c-price { font-size: var(--text-md); }
@media (min-width: 960px) { .price-table .c-item { min-width: 200px; } .price-table .c-buyer { min-width: 168px; } .price-table .c-price { font-size: var(--text-sm); } .price-table td, .price-table thead th { padding-inline: var(--space-2); } }
/* table-scroll: a wide table can move sideways and never cuts a column */
.table-scroll { overflow-x: auto; }
.statement b.nowrap { white-space: nowrap; }
/* link-list: short quiet links in a row (examples, last searches) */
.link-list { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.link-list a { display: inline-flex; align-items: center; min-height: var(--control-h); }
/* -- from A03 -- */
/* value-range: two short fields side by side */
.value-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); max-width: 360px; }
/* save-bar: the two buttons of a settings form. With unsaved changes it stays at the bottom of the window, over the page and above the phone tab row. */
.save-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2) var(--space-4); }
.save-bar__text { flex: 1 1 200px; font-weight: var(--weight-medium); }
.save-bar__buttons { display: flex; gap: var(--space-2); }
.save-bar--dirty { position: sticky; bottom: 57px; z-index: var(--z-header); margin-inline: calc(-1 * var(--gutter)); padding: var(--space-3) var(--gutter); background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: var(--shadow-overlay); }
@media (max-width: 479px) { .save-bar__buttons { flex: 1 1 100%; } .save-bar__buttons > .btn { flex: 1 1 auto; white-space: nowrap; } }
@media (min-width: 720px) { .save-bar--dirty { bottom: var(--space-4); margin-inline: 0; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); } }
.statement b { white-space: nowrap; }
/* -- from A05 -- */
/* A05 billing. plan-detail: the line under the status sentence of the plan card. */
.plan-detail { color: var(--color-text-secondary); }
/* plan-actions: on a phone each button of the plan card is full width */
.plan-actions > .btn { flex: 1 1 100%; }
@media (min-width: 720px) { .plan-actions > .btn { flex: 0 0 auto; } }
/* payments-empty: the empty line of a card that normally holds a table */
.payments-empty { padding: var(--space-4); border-top: 1px solid var(--color-border-row); color: var(--color-text-secondary); }
@media (min-width: 960px) { .payments-empty { padding-inline: var(--space-6); } }
/* doc-links: the links "Recibo" and "Nota fiscal" of a payment row, 44 px high on a phone */
.doc-links { gap: 0 var(--space-4); }
.doc-links a { display: inline-flex; align-items: center; min-height: var(--control-h); }
@media (min-width: 720px) { .doc-links { flex-wrap: nowrap; justify-content: flex-end; white-space: nowrap; } .doc-links a { min-height: 0; } }
/* -- from A06 -- */
/* choice-card: one radio drawn as a card. Used in C01 (period, method) and A06 (refund or not). Same rules as in C01-assinar.html. */
.choice-group { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group > * + * { margin-top: var(--space-3); }
.choice-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.choice-card { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--control-h); padding: var(--space-4); border: 1px solid var(--color-border-control); border-radius: var(--radius-sm); background: var(--color-surface); cursor: pointer; position: relative; transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-instant) var(--ease-out); }
.choice-card input { flex-shrink: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; appearance: none; border: 1.5px solid var(--color-border-field); border-radius: var(--radius-full); background: var(--color-surface) center / 0 no-repeat; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), background-size var(--duration-base) var(--ease-spring); }
.choice-card input:checked { border-color: var(--color-accent); background-color: var(--color-accent); background-size: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%23FFFFFF'/%3E%3C/svg%3E"); }
.choice-card input[type="checkbox"] { border-radius: var(--radius-xs); }
.choice-card:active { transform: scale(0.99); }
.choice-card:hover { border-color: var(--color-border-field); background: var(--color-surface-hover); }
.choice-card:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-tint); box-shadow: inset 0 0 0 1px var(--color-accent), 0 4px 14px -6px var(--color-accent-glow); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.choice-group.is-invalid .choice-card { border-color: var(--color-danger-bar); }
.choice-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.choice-card__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.choice-card__note { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
/* result: a .state block that is the whole page (C04, the done step of A06, the page /conta-excluida). */
.result > p { max-width: 420px; }
.result > .title-block { margin-top: var(--space-1); }
/* form-actions: the buttons at the end of a form. On a phone each one is full width, the main one first. */
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.form-actions > .btn { flex: 1 1 100%; }
@media (min-width: 720px) { .form-actions > .btn { flex: 0 0 auto; } }
/* -- from C01 -- */
.choice-group > legend { padding: 0; }
.choice-card__price { font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .choice-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* summary: the lines of an order before the payment (C01). The total line is the strongest. */
.summary { display: flex; flex-direction: column; padding: var(--space-2) var(--space-5); border-radius: var(--radius-md); background: var(--color-surface-subtle); box-shadow: inset 0 0 0 1px var(--color-border-row); }
.summary > li { padding-block: var(--space-3); }
.summary > li + li { border-top: 1px solid var(--color-border-row); }
.summary__total { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); }
/* guarantee: the refund line near the pay button (C01). The shield says "safe" without a new word. */
.guarantee { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--color-success-bg); color: var(--color-success); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); }
.guarantee svg { flex-shrink: 0; width: 20px; height: 20px; }
/* step-num: the number of a part of a long form, drawn as a small badge before the title. */
.form-section > .title-card, .choice-group > legend.title-card { display: flex; align-items: center; gap: var(--space-2); }
/* form-section: a numbered part of a long form, with a rule between the parts */
.form-section + .form-section { padding-top: var(--space-8); border-top: 1px solid var(--color-border-row); }
/* -- from C02 -- */
/* pix-pay: the Pix code and the QR code (C02). On a phone the code comes first: the person pays in the bank app of the same phone.
   From 720 px the QR code comes first: the person scans the screen with the phone. */
.pix-pay { display: flex; flex-direction: column; gap: var(--space-6); }
.pix-pay__code { display: flex; flex-direction: column; gap: var(--space-2); }
.pix-pay__code .input { text-overflow: ellipsis; }
.pix-pay__qr { align-self: center; box-sizing: content-box; display: block; width: 208px; height: 208px; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-raised); }
/* pix-frame: four corner marks around the QR code, like a camera view. Decoration only. */
.pix-frame { position: relative; align-self: center; padding: var(--space-3); }
.pix-frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; --c: linear-gradient(var(--color-accent) 0 0); background: var(--c) top left / 28px 3px, var(--c) top left / 3px 28px, var(--c) top right / 28px 3px, var(--c) top right / 3px 28px, var(--c) bottom left / 28px 3px, var(--c) bottom left / 3px 28px, var(--c) bottom right / 28px 3px, var(--c) bottom right / 3px 28px; background-repeat: no-repeat; border-radius: 3px; }
.pix-frame > .pix-pay__qr { align-self: auto; }
@media (min-width: 720px) { .pix-frame { order: -1; } }
@media (min-width: 720px) { .pix-pay__qr { order: -1; } }
/* status--pulse: the dot of .status beats while the page waits for the server */
/* status--pulse: see section 8. The dot sends a ring while the page waits. */
/* link-row: two or more quiet links at the end of a task page, 44 px high each */
.link-row { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); font-size: var(--text-sm); line-height: var(--leading-sm); }
.link-row a { display: inline-flex; align-items: center; min-height: var(--control-h); transition: color var(--duration-fast) var(--ease-out); }
/* -- from C04 -- */
/* spinner: a ring that turns while the page waits for the server. Inside .state__icon it takes the place of the icon. */
.spinner { display: block; width: 24px; height: 24px; border-radius: var(--radius-full); border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
/* -- from P03 -- */
.pay-list { display: flex; flex-direction: column; gap: var(--space-3); color: var(--color-text-secondary); }
.pay-list b { font-weight: var(--weight-semibold); color: var(--color-text); }
/* -- from P11 -- */
/* clamp--4: the item text of a price table. The size of the product often comes after 100 characters. */
.clamp--4 { -webkit-line-clamp: 4; line-clamp: 4; }
/* is-buyer: the buyer column of a price table keeps a readable width from 720 px */
@media (min-width: 720px) { .stack-table td.is-buyer { min-width: 200px; } }
/* -- from P15 -- */
.prose { color: var(--color-text-secondary); }
.prose .title-card { color: var(--color-text); }
/* -- from P17 -- */
.form-narrow { max-width: 560px; }
/* -- from P18 -- */
.legal-list { display: flex; flex-direction: column; gap: var(--space-2); padding-left: var(--space-5); list-style: disc; }
/* -- from P21 -- */
.nf-search { padding: var(--space-5); }
.nf-links { gap: var(--space-2) var(--space-6); }
/* -- from Z01 -- */
/* app-tabbar--2: the phone tab row with two tabs (operator screens) */
.app-tabbar--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* needs: the strip "Precisa de você". At most 3 cards. Each card: chip, title, one line, one link. */
/* needs--3: three cards side by side from 960 px, on a wide page (Z01) */
.needs--3 { gap: var(--space-4); }
.need__reason { flex: 1; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-secondary); }
.need > .btn { align-self: flex-start; margin-top: var(--space-2); }
@media (min-width: 960px) { .needs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .needs--3 > .need { padding: var(--space-5); } }
/* more-needs: the collapsed row "Mais {n} pendências" under the strip. It opens the other cards. */
.more-needs > summary { border: 1px solid var(--color-border); border-radius: var(--radius-md); list-style: none; }
.more-needs > summary::-webkit-details-marker { display: none; }
.more-needs[open] > summary { margin-bottom: var(--space-4); }
.more-needs[open] > summary .icon { transform: rotate(90deg); }
.group:first-child > summary { border-top: 0; }
/* row--stat: label, value, chip. On a phone the value is under the label. From 720 px it is on the right, before the chip. */
.row--stat .row__title { font-weight: var(--weight-regular); }
.row--stat .row__value { font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.row--stat > .chip, .group-header > .chip { flex-shrink: 0; min-width: 64px; justify-content: center; }
@media (min-width: 720px) {
  .row--stat { min-height: 48px; }
  .row--stat .row__main { flex-direction: row; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
  .row--stat .row__value { text-align: right; }
  }
/* panel-head: the header of a read-only panel, with its close button on the right */
.panel-head { align-items: flex-start; }
.panel-head > h2 { display: block; min-width: 0; overflow-wrap: anywhere; }
.panel-head > .btn { flex-shrink: 0; }
.log-error { display: block; margin-top: var(--space-1); color: var(--color-danger); overflow-wrap: anywhere; }
/* -- from Z02 -- */
/* audit-items: the item descriptions of one notice, numbered, in small text (Z02) */
.audit-items { display: flex; flex-direction: column; counter-reset: audit; font-size: var(--text-sm); line-height: var(--leading-sm); }
.audit-items > li { position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-8); border-top: 1px solid var(--color-border-row); counter-increment: audit; overflow-wrap: anywhere; }
.audit-items > li::before { content: counter(audit); position: absolute; left: 0; top: var(--space-3); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
/* answer-bar: the question and its buttons. On a phone the buttons share the width. */
.answer-bar { display: flex; flex-direction: column; gap: var(--space-3); }
.answer-bar__buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.answer-bar__buttons > .btn { flex: 1 1 72px; }
@media (min-width: 720px) { .answer-bar__buttons > .btn { flex: 0 0 auto; min-width: 112px; } }
.pick-chip { text-align: left; }

/* Small helpers that replace inline styles (P01, P04 to P13). */
.card__body--flush-top { padding-top: 0; }                       /* a body right under a card header that has no rule */
.notice-head { margin-block: var(--space-2) var(--space-6); max-width: 860px; }   /* P10: chips, title and buyer line */
.section__more { margin-top: var(--space-5); }                   /* the one link under a section */

/* ============ 25 Photos ============ */
/* A photo shows a real kind of seller at work: a shop, a workshop, a counter. It never carries text.
   Files are in assets/img/, served from this site. Give every <img> width, height and alt. Rules: design/PHOTOS.md. */
.photo { position: relative; margin: 0; overflow: clip; border-radius: var(--radius-lg); background: var(--color-neutral-bg); }
.photo::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(14, 21, 48, 0.08); border-radius: inherit; pointer-events: none; }
.photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--std { aspect-ratio: 4 / 3; }
.photo--square { aspect-ratio: 1; }

/* hero with a photo: the example card sits over the lower edge of the picture. */
.hero__photo { aspect-ratio: 16 / 10; margin-bottom: calc(-1 * var(--space-16)); }
.hero__photo img { object-position: 50% 22%; }
.hero__visual--photo > .title-card { position: relative; margin-left: var(--space-4); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--color-surface); box-shadow: var(--shadow-raised); }
.hero__visual--photo > .notice--card { margin-inline: var(--space-3); }
.hero__visual--photo > .caption { margin-top: var(--space-8); }
@media (min-width: 960px) {
  .hero__photo { aspect-ratio: 4 / 3; margin-bottom: calc(-1 * var(--space-24)); }
  .hero__visual--photo > .title-card { margin-left: var(--space-6); }
  .hero__visual--photo > .notice--card { margin-inline: var(--space-6); }
}

/* photo-tiles: three kinds of seller, each a link to its list of open purchases. A row on a phone, a card from 720 px. */
.photo-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.photo-tile { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-2); padding-right: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); text-decoration: none; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); }
.photo-tile:hover { color: var(--color-text); border-color: var(--color-border-control); }
.photo-tile .photo { aspect-ratio: 1; border-radius: var(--radius-sm); }
.photo-tile .photo img { transition: transform var(--duration-slow) var(--ease-out); }
.photo-tile__label { font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.photo-tile__go { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); color: var(--color-accent); }
.photo-tile__go span { display: none; }
.photo-tile__go svg { transition: transform var(--duration-fast) var(--ease-out); }
.photo-tile:hover .photo-tile__go svg { transform: translateX(3px); }
@media (min-width: 720px) {
  .photo-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  .photo-tile { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--space-3) var(--space-2); padding: var(--space-3); padding-bottom: var(--space-4); }
  .photo-tile .photo { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
  .photo-tile__label { padding-left: var(--space-1); }
  .photo-tile__go { padding-right: var(--space-1); }
}
@media (hover: hover) and (pointer: fine) {
  .photo-tile:hover { box-shadow: var(--shadow-lift); transform: translateY(calc(-1 * var(--move-xs))); }
  .photo-tile:hover .photo img { transform: scale(1.04); }
}

/* card--media: a card with a photo on one side. The photo is on top on a phone and on the right from 720 px. */
.card--media { display: grid; grid-template-columns: minmax(0, 1fr); }
.card__media { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--color-ink-surface-raised); }
.card__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 720px) {
  .card--media { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); }
  .card--media > .card__media { order: 2; aspect-ratio: auto; min-height: 100%; }
  .card--media .signup-inline { grid-template-columns: minmax(0, 1fr); }
}