/* Carol Tur · design system das telas de tarefa (área do turista e painel)
   Fonte da verdade: DESIGN.md na raiz. Sem build: abre por file://.
   Ordem: tokens > base > utilitários > ícones > controles > componentes > domínio > shells > estados > movimento. */

/* ============ 1. TOKENS ============ */
:root {
  color-scheme: light;
  /* chão e superfícies (pedra do cânion) */
  --ground: #e5e1d8;        /* fundo da página */
  --sunk: #dad5ca;          /* poços: trilho de segmentado, cabeçalho de tabela, fundo do chat */
  --raised: #f3f0ea;        /* cartões, campos, diálogos */
  --ink: #2a1d17;           /* texto principal (chocolate) */
  --muted: #65564c;         /* texto secundário */
  --line: #cbc4b7;          /* divisória decorativa (não é borda de controle) */
  --control: #7f7065;       /* borda de campo e de controle, ≥3:1 */
  /* ação (verde da caatinga) */
  --action: #456f3a;
  --action-ink: #ffffff;
  --action-hover: #3b6131;
  --action-press: #30512a;
  --action-text: #3b6131;   /* link e texto verde sobre qualquer superfície clara */
  --action-soft: #dfe8d6;   /* fundo de selecionado */
  --action-soft-ink: #2f5626;
  /* foco */
  --focus: #2a1d17;
  /* estados semânticos: fundo / texto / sólido (ícone, borda, barra) */
  --ok-bg: #dce7d2;   --ok-fg: #2f5626;   --ok-solid: #3f8a2f;
  --warn-bg: #f3e2bb; --warn-fg: #7a4b06; --warn-solid: #a36a0c;
  --err-bg: #f4dad3;  --err-fg: #9a2f22;  --err-solid: #b3392a;
  --info-bg: #d5e5ed; --info-fg: #1d5873; --info-solid: #2c7aa0;
  --neutral-bg: #dad5ca; --neutral-fg: #4d4038;
  --danger: #9a2f22; --danger-ink: #ffffff; --danger-hover: #82261b;
  --badge-ink: #ffffff;
  /* casca (trilho chocolate do painel) */
  --shell: #2a1d17;
  --shell-2: #352822;
  --shell-ink: #e5e1d8;
  --shell-muted: #b5aa9f;
  --shell-active: #e5e1d8;
  --shell-active-ink: #2a1d17;
  --shell-focus: #e5e1d8;
  /* chat desenhado */
  --chat-bg: #dad5ca;
  --bubble-in: #f3f0ea;
  --bubble-out: #dfe8d6;
  --tick-read: #1d5873;
  /* tipografia */
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-1: 0.8125rem;  /* 13 */
  --fs-2: 0.875rem;   /* 14 */
  --fs-3: 1rem;       /* 16 */
  --fs-4: 1.125rem;   /* 18 */
  --fs-5: 1.375rem;   /* 22 */
  --fs-6: 1.75rem;    /* 28 */
  --fs-7: 2.25rem;    /* 36 */
  --lh-tight: 1.2;
  --lh-text: 1.5;
  /* espaço (base 4) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem;
  /* raio */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  /* alvo de toque */
  --tap: 2.75rem;    /* 44 px */
  --tap-lg: 3.25rem; /* 52 px */
  /* elevação: só sobreposições têm sombra; cartões usam borda */
  --shadow-float: 0 10px 28px rgba(42, 29, 23, 0.20), 0 2px 6px rgba(42, 29, 23, 0.10);
  --shadow-lift: 0 4px 12px rgba(42, 29, 23, 0.14);
  --scrim: rgba(28, 20, 16, 0.48);
  /* movimento (escala do transitions.dev, nomes próprios) */
  --dur-micro: 80ms;
  --dur-quick: 150ms;
  --dur-fast: 250ms;
  --dur-medium: 350ms;
  --dur-slow: 400ms;
  --dur-emph: 500ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dist-micro: 4px; --dist-small: 6px; --dist-base: 8px; --dist-medium: 12px;
  --scale-dialog: 0.96;
  /* larguras */
  --w-turista: 35rem;   /* 560 px */
  --w-texto: 40rem;
  --w-nav: 15.5rem;
}

/* escuro: só o painel usa (html[data-theme="dark"]) */
[data-theme="dark"] {
  color-scheme: dark;
  --ground: #1c1410;
  --sunk: #241a15;
  --raised: #2e231d;
  --ink: #ede7dd;
  --muted: #b5aa9f;
  --line: #43362e;
  --control: #8c7d71;
  --action: #8fbf78;
  --action-ink: #16240f;
  --action-hover: #a1cc8c;
  --action-press: #7fae69;
  --action-text: #a5cf8f;
  --action-soft: #2c3a25;
  --action-soft-ink: #c4e0b4;
  --focus: #ede7dd;
  --ok-bg: #233220;   --ok-fg: #b9dca5;   --ok-solid: #7fb86a;
  --warn-bg: #3a2b12; --warn-fg: #f0c776; --warn-solid: #e0a83c;
  --err-bg: #43201a;  --err-fg: #f2a596;  --err-solid: #e5735f;
  --info-bg: #17303c; --info-fg: #9fd0e8; --info-solid: #5fb0d6;
  --neutral-bg: #3a2d26; --neutral-fg: #d9cfc4;
  --danger: #e5735f; --danger-ink: #1c1410; --danger-hover: #ee8c7a;
  --badge-ink: #1c1410;
  --shell: #120d0a;
  --shell-2: #241a15;
  --shell-ink: #ede7dd;
  --shell-muted: #b5aa9f;
  --shell-active: #ede7dd;
  --shell-active-ink: #1c1410;
  --shell-focus: #ede7dd;
  --chat-bg: #241a15;
  --bubble-in: #2e231d;
  --bubble-out: #2c3a25;
  --tick-read: #9fd0e8;
  --shadow-float: 0 10px 28px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.4);
  --scrim: rgba(0, 0, 0, 0.6);
}

/* modo campo: guia no sol e com pressa. Liga sozinho no perfil Guia e em telas com data-campo. */
html[data-perfil="guia"],
html[data-campo] {
  font-size: 112.5%;          /* tudo em rem cresce: texto 18 px, alvo ≥ 49 px */
  --muted: #4d4038;           /* secundário mais escuro no sol (7,6:1 no chão) */
  --line: #a89d91;
  --tap: 2.75rem;
  --tap-lg: 3.5rem;
  --dur-quick: 0ms; --dur-fast: 0ms; --dur-medium: 0ms; --dur-slow: 0ms; --dur-emph: 0ms;
}
html[data-perfil="guia"][data-theme="dark"],
html[data-campo][data-theme="dark"] { --muted: #d9cfc4; --line: #5a4a40; }

/* ============ 2. BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--control) var(--sunk); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-3);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--action-text);
}
::selection { background: var(--action); color: var(--action-ink); }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); font-weight: 600; text-wrap: balance; }
h1, .h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-6); letter-spacing: -0.02em; }
h2, .h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-5); letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--fs-4); }
h4, .h4 { font-size: var(--fs-3); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--action-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }
code, kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; }
table { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
html.ov-open { overflow: hidden; }
@media (min-width: 1024px) { h1, .h1 { font-size: var(--fs-7); } }

/* ============ 3. UTILITÁRIOS ============ */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; min-height: var(--tap); display: inline-flex; align-items: center; background: var(--ink); color: var(--ground); padding: var(--s-2) var(--s-4); border-radius: var(--r-md); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: var(--s-2); }
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--s-4)); }
.stack--tight { --gap: var(--s-2); }
.stack--loose { --gap: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s-3)); }
.cluster--end { justify-content: flex-end; }
.cluster--between { justify-content: space-between; }
.grid { display: grid; gap: var(--gap, var(--s-4)); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 16rem)), 1fr)); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-2); }
.num { font-variant-numeric: tabular-nums; }
.lead { font-size: var(--fs-4); color: var(--muted); max-width: var(--w-texto); }
.display { font-family: var(--font-display); }
.assumed { text-decoration: underline dotted var(--control); text-underline-offset: 0.2em; }

/* ============ 4. ÍCONES (sprite injetado pelo carol.js) ============ */
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }
.ico--lg { width: 1.5rem; height: 1.5rem; }
.ico--xl { width: 2.5rem; height: 2.5rem; stroke-width: 1.5; }

/* marca */
.brand { display: inline-flex; align-items: center; min-height: var(--tap); gap: var(--s-2); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-4); letter-spacing: -0.01em; color: inherit; text-decoration: none; white-space: nowrap; }
.brand__mark { width: 1.75rem; height: 1.75rem; flex: none; }

/* ============ 5. BOTÕES ============ */
.btn {
  --b-bg: var(--raised); --b-ink: var(--ink); --b-border: var(--control);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-4);
  border: 1px solid var(--b-border); border-radius: var(--r-md);
  background: var(--b-bg); color: var(--b-ink);
  font-weight: 600; font-size: var(--fs-3); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { --b-bg: var(--sunk); }
.btn:active { transform: scale(0.98); }
.btn--primary { --b-bg: var(--action); --b-ink: var(--action-ink); --b-border: var(--action); }
.btn--primary:hover { --b-bg: var(--action-hover); --b-border: var(--action-hover); }
.btn--primary:active { --b-bg: var(--action-press); }
.btn--secondary { --b-bg: var(--raised); }
.btn--ghost { --b-bg: transparent; --b-border: transparent; color: var(--action-text); }
.btn--ghost:hover { --b-bg: var(--action-soft); }
.btn--danger { --b-bg: var(--danger); --b-ink: var(--danger-ink); --b-border: var(--danger); }
.btn--danger:hover { --b-bg: var(--danger-hover); --b-border: var(--danger-hover); }
.btn--danger-ghost { --b-bg: transparent; --b-border: transparent; color: var(--err-fg); }
.btn--danger-ghost:hover { --b-bg: var(--err-bg); }
.btn--sm { min-height: 2.25rem; padding: 0 var(--s-3); font-size: var(--fs-2); }
.btn--lg { min-height: var(--tap-lg); padding: 0 var(--s-5); font-size: var(--fs-4); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: var(--tap); }
.btn--icon.btn--sm { width: 2.25rem; }
.btn[disabled], .btn[aria-disabled="true"] { --b-bg: var(--sunk); --b-ink: var(--muted); --b-border: var(--line); cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .ico { display: none; }
.btn[aria-busy="true"]::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ct-spin 0.7s linear infinite; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 719px) { .btn-row--stack { flex-direction: column-reverse; } .btn-row--stack .btn { width: 100%; } .btn--sm { min-height: var(--tap); } .btn--icon.btn--sm { width: var(--tap); } }

/* link de ação no texto */
.link-btn { display: inline-flex; align-items: center; min-height: var(--tap); background: none; border: 0; padding: 0; color: var(--action-text); text-decoration: underline; text-underline-offset: 0.18em; font-weight: 600; }

/* ============ 6. FORMULÁRIOS ============ */
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field__label { font-weight: 600; font-size: var(--fs-2); }
.field__label .opt { font-weight: 400; color: var(--muted); }
.field__help { font-size: var(--fs-2); color: var(--muted); }
.field__error { display: none; align-items: flex-start; gap: var(--s-1); font-size: var(--fs-2); color: var(--err-fg); font-weight: 600; }
.field[data-invalid] .field__error { display: flex; }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: var(--s-2) var(--s-3);
  background: var(--raised); color: var(--ink);
  border: 1px solid var(--control); border-radius: var(--r-md);
  transition: border-color var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out);
}
.textarea { min-height: 6rem; resize: vertical; line-height: var(--lh-text); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err-solid); border-width: 2px; }
.input[disabled], .select[disabled], .textarea[disabled] { background: var(--sunk); color: var(--muted); cursor: not-allowed; }
.input[readonly] { background: var(--sunk); }
.select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; }
.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: var(--r-md) 0 0 var(--r-md); }
.input-group > .btn { border-radius: 0 var(--r-md) var(--r-md) 0; margin-left: -1px; }
.search { position: relative; }
.search .ico { position: absolute; left: var(--s-3); top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 2.5rem; }
.form-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.fieldset > legend { font-weight: 600; padding: 0; margin-bottom: var(--s-2); }

/* checkbox e rádio desenhados (input real por baixo) */
.check, .radio { position: relative; display: flex; align-items: flex-start; gap: var(--s-3); min-height: var(--tap); padding: var(--s-2) 0; cursor: pointer; }
.check > input, .radio > input { position: absolute; opacity: 0; width: 1.5rem; height: 1.5rem; margin: 0; top: 0.65rem; left: 0; cursor: pointer; }
.check__box, .radio__dot { flex: none; width: 1.375rem; height: 1.375rem; margin-top: 0.06rem; border: 2px solid var(--control); background: var(--raised); display: grid; place-items: center; transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out); }
.check__box { border-radius: var(--r-sm); }
.radio__dot { border-radius: 50%; }
.check__box::after { content: ""; width: 0.4rem; height: 0.7rem; border: solid var(--action-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -0.15rem; transition: transform var(--dur-fast) var(--ease-out); }
.radio__dot::after { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--action-ink); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.check > input:checked + .check__box, .radio > input:checked + .radio__dot { background: var(--action); border-color: var(--action); }
.check > input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.radio > input:checked + .radio__dot::after { transform: scale(1); }
.check > input:focus-visible + .check__box, .radio > input:focus-visible + .radio__dot { outline: 2px solid var(--focus); outline-offset: 2px; }
.check > input:disabled ~ *, .radio > input:disabled ~ * { opacity: 0.55; cursor: not-allowed; }
.check__text small, .radio__text small { display: block; color: var(--muted); font-size: var(--fs-2); }

/* escolha em cartão (rádio grande: forma de pagamento, horário) */
.choice { position: relative; display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); min-height: var(--tap-lg); border: 1px solid var(--control); border-radius: var(--r-md); background: var(--raised); cursor: pointer; transition: border-color var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out); }
.choice > input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border: 2px solid var(--action); background: var(--action-soft); padding: calc(var(--s-3) - 1px) calc(var(--s-4) - 1px); }
.choice:has(input:checked) .choice__title { color: var(--action-soft-ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice:has(input:disabled) { background: var(--sunk); color: var(--muted); cursor: not-allowed; }
.choice__title { font-weight: 600; }
.choice__sub { display: block; font-size: var(--fs-2); color: var(--muted); }
.choice__end { margin-left: auto; font-weight: 600; text-align: right; }

/* interruptor */
.switch { display: inline-flex; align-items: center; gap: var(--s-3); min-height: var(--tap); cursor: pointer; position: relative; }
.switch > input { position: absolute; opacity: 0; width: 3rem; height: 1.75rem; margin: 0; cursor: pointer; }
.switch__track { flex: none; width: 3rem; height: 1.75rem; border-radius: var(--r-pill); background: var(--sunk); border: 2px solid var(--control); position: relative; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--control); transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.switch > input:checked + .switch__track { background: var(--action); border-color: var(--action); }
.switch > input:checked + .switch__track::after { transform: translateX(1.25rem); background: var(--action-ink); }
.switch > input:focus-visible + .switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ============ 7. SELO DE STATUS, AVISO, NÚMEROS ============ */
.status {
  --st-bg: var(--neutral-bg); --st-fg: var(--neutral-fg);
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.15em 0.6em 0.15em 0.45em; border-radius: var(--r-pill);
  background: var(--st-bg); color: var(--st-fg);
  font-size: var(--fs-2); font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.status .ico { width: 1.05em; height: 1.05em; stroke-width: 2.25; }
.status--ok { --st-bg: var(--ok-bg); --st-fg: var(--ok-fg); }
.status--warn { --st-bg: var(--warn-bg); --st-fg: var(--warn-fg); }
.status--err { --st-bg: var(--err-bg); --st-fg: var(--err-fg); }
.status--info { --st-bg: var(--info-bg); --st-fg: var(--info-fg); }
.status--lg { font-size: var(--fs-3); padding: 0.3em 0.8em 0.3em 0.6em; }

.alert {
  --al-bg: var(--info-bg); --al-fg: var(--info-fg);
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--al-bg); color: var(--ink);
}
.alert > .ico { color: var(--al-fg); margin-top: 0.1rem; width: 1.375rem; height: 1.375rem; stroke-width: 2; }
.alert__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.alert__title { font-weight: 700; color: var(--al-fg); }
.alert__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.alert--ok { --al-bg: var(--ok-bg); --al-fg: var(--ok-fg); }
.alert--warn { --al-bg: var(--warn-bg); --al-fg: var(--warn-fg); }
.alert--err { --al-bg: var(--err-bg); --al-fg: var(--err-fg); }

/* número de destaque com rótulo (não é o "hero metric": sempre ligado a uma ação) */
.figure { display: flex; flex-direction: column; gap: 2px; }
.figure__value { font-size: var(--fs-6); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.figure__label { font-size: var(--fs-2); color: var(--muted); }

.count-badge { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: var(--r-pill); background: var(--err-solid); color: var(--badge-ink); font-size: var(--fs-1); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ 8. CARTÃO, LISTA, TABELA ============ */
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); }
.card--flush { padding: 0; overflow: hidden; }
.card--sunk { background: var(--sunk); border-color: transparent; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.card__title { font-size: var(--fs-4); font-weight: 600; font-family: var(--font-text); letter-spacing: 0; }
.card--link { display: block; color: inherit; text-decoration: none; transition: border-color var(--dur-quick) var(--ease-out); }
.card--link:hover { border-color: var(--control); }
@media (min-width: 720px) { .card { padding: var(--s-5); } .card--flush { padding: 0; } }

.section-title { font-family: var(--font-text); font-size: var(--fs-4); font-weight: 600; letter-spacing: 0; margin: var(--s-6) 0 var(--s-3); }
.section-title:first-child { margin-top: 0; }

.list { list-style: none; display: flex; flex-direction: column; }
.list__item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: var(--tap-lg); border-top: 1px solid var(--line); }
.list__item:first-child { border-top: 0; }
.list__main { flex: 1; min-width: 0; }
.list__title { font-weight: 600; overflow-wrap: anywhere; }
.list__meta { font-size: var(--fs-2); color: var(--muted); }
.list__end { flex: none; display: flex; align-items: center; gap: var(--s-2); text-align: right; }
a.list__item, button.list__item { color: inherit; text-decoration: none; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; font: inherit; }
a.list__item:hover, button.list__item:hover { background: var(--sunk); }
.list__item[aria-current="true"] { background: var(--action-soft); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: 0; }
.dl dt { color: var(--muted); font-size: var(--fs-2); padding-top: 0.1rem; }
.dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.table th { text-align: left; font-weight: 600; color: var(--muted); background: var(--sunk); padding: var(--s-2) var(--s-3); white-space: nowrap; }
.table td { padding: var(--s-3); border-top: 1px solid var(--line); vertical-align: middle; }
.table .num, .table th.num { text-align: right; }
.table tbody tr:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.table tr[aria-selected="true"] { background: var(--action-soft); }
.table__strong { font-weight: 600; color: var(--ink); }
.table button.row-link { all: unset; display: inline-flex; align-items: center; min-height: var(--tap); cursor: pointer; font-weight: 600; color: var(--action-text); text-decoration: underline; text-underline-offset: 0.18em; }
.table button.row-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* filtros em pílula */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 2.25rem; padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--control); background: var(--raised); color: var(--ink); font-size: var(--fs-2); font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip .count { font-variant-numeric: tabular-nums; color: inherit; opacity: 0.85; }
@media (max-width: 719px) { .chip { min-height: var(--tap); } }

/* ============ 9. ABAS E SEGMENTADO ============ */
.tabs__list { position: relative; display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { flex: none; min-height: var(--tap); padding: 0 var(--s-3); border: 0; background: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab .count-badge { margin-left: var(--s-1); }
.tabs__ind { position: absolute; bottom: -1px; left: 0; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--action); transition: transform var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out); }
.tabs__panel { padding-top: var(--s-4); }
.tabs__panel:focus-visible { outline-offset: 4px; }

.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-md); background: var(--sunk); border: 1px solid var(--line); isolation: isolate; max-width: 100%; }
.seg__btn { position: relative; z-index: 1; flex: 1 1 0; min-height: calc(var(--tap) - 8px); padding: 0 var(--s-3); border: 0; border-radius: calc(var(--r-md) - 3px); background: none; color: var(--muted); font-weight: 600; font-size: var(--fs-2); white-space: nowrap; transition: color var(--dur-quick) var(--ease-out); }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-checked="true"], .seg__btn[aria-pressed="true"] { color: var(--ink); }
.seg__pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: calc(var(--r-md) - 3px); background: var(--raised); box-shadow: 0 1px 2px rgba(42, 29, 23, 0.18); transition: transform var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out); }
.seg--block { display: flex; width: 100%; }
@media (max-width: 719px) { .seg__btn { min-height: var(--tap); } }
.seg--inverse { background: var(--shell-2); border-color: transparent; }
.seg--inverse .seg__btn { color: var(--shell-muted); }
.seg--inverse .seg__btn:hover, .seg--inverse .seg__btn[aria-checked="true"] { color: var(--shell-active-ink); }
.seg--inverse .seg__btn:not([aria-checked="true"]):hover { color: var(--shell-ink); }
.seg--inverse .seg__pill { background: var(--shell-active); box-shadow: none; }
.seg--inverse .seg__btn:focus-visible { outline-color: var(--shell-focus); }

/* ============ 10. SOBREPOSIÇÕES ============ */
/* toast */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(28rem, calc(100% - 2rem)); display: flex; flex-direction: column; gap: var(--s-2); pointer-events: none; }
.has-tabbar .toasts { bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--ink); color: var(--ground); box-shadow: var(--shadow-float); animation: ct-toast-in var(--dur-slow) var(--ease-out) both; }
.toast__msg { flex: 1; min-width: 0; font-weight: 500; }
.toast > .ico { stroke-width: 2.25; }
.toast--ok > .ico { color: #a5cf8f; }
.toast--warn > .ico { color: #f0c776; }
.toast--err > .ico { color: #f2a596; }
.toast--info > .ico { color: #9fd0e8; }
[data-theme="dark"] .toast--ok > .ico { color: var(--ok-solid); }
[data-theme="dark"] .toast--warn > .ico { color: #a36a0c; }
[data-theme="dark"] .toast--err > .ico { color: #b3392a; }
[data-theme="dark"] .toast--info > .ico { color: #2c7aa0; }
.toast__undo { flex: none; min-height: 2.5rem; padding: 0 var(--s-3); border: 1px solid currentColor; border-radius: var(--r-sm); background: none; color: inherit; font-weight: 700; }
.toast__undo:hover { background: rgba(255, 255, 255, 0.12); }
[data-theme="dark"] .toast__undo:hover { background: rgba(0, 0, 0, 0.1); }
.toast__close { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; background: none; color: inherit; border-radius: var(--r-sm); }
.toast :focus-visible { outline-color: currentColor; }
.toast.is-leaving { animation: ct-toast-out var(--dur-medium) var(--ease-out) both; }

/* base comum: diálogo, folha e painel lateral usam <dialog> nativo */
dialog.dialog, dialog.sheet, dialog.drawer { border: 0; padding: 0; color: var(--ink); background: var(--raised); box-shadow: var(--shadow-float); max-width: 100%; max-height: 100%; overflow: hidden; }
dialog.dialog::backdrop, dialog.sheet::backdrop, dialog.drawer::backdrop { background: var(--scrim); animation: ct-fade-in var(--dur-fast) var(--ease-out) both; }
dialog.is-closing::backdrop { animation: ct-fade-out var(--dur-quick) var(--ease-out) both; }
.ov__head { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-3); }
.ov__title { flex: 1; font-family: var(--font-text); font-size: var(--fs-5); font-weight: 600; letter-spacing: 0; }
.ov__body { padding: 0 var(--s-4) var(--s-4); overflow-y: auto; overscroll-behavior: contain; }
.ov__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-3); padding: var(--s-3) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--raised); }
@media (max-width: 719px) { .ov__foot .btn { flex: 1 1 auto; } }
@media (min-width: 720px) { .ov__head { padding: var(--s-5) var(--s-5) var(--s-3); } .ov__body { padding: 0 var(--s-5) var(--s-5); } .ov__foot { padding: var(--s-4) var(--s-5); } }

/* diálogo centrado (confirmações que protegem algo: cancelar com reembolso) */
dialog.dialog { width: min(30rem, calc(100% - 2rem)); border-radius: var(--r-lg); max-height: calc(100dvh - 2rem); }
dialog.dialog[open] { display: flex; flex-direction: column; animation: ct-dialog-in var(--dur-fast) var(--ease-out) both; }
dialog.dialog.is-closing { animation: ct-dialog-out var(--dur-quick) var(--ease-out) both; }

/* folha inferior (celular), arrastar para fechar */
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 40rem; max-height: 88dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: ct-sheet-in var(--dur-slow) var(--ease-out) both; }
dialog.sheet.is-closing { animation: ct-sheet-out var(--dur-medium) var(--ease-out) both; }
dialog.sheet.is-dragging { animation: none; transition: none; }
.sheet__grip { display: grid; place-items: center; height: 1.75rem; cursor: grab; touch-action: none; flex: none; }
.sheet__grip::before { content: ""; width: 2.5rem; height: 0.3rem; border-radius: var(--r-pill); background: var(--control); }
.sheet .ov__head { padding-top: 0; touch-action: none; }

/* painel lateral (detalhe da reserva no desktop) */
dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: min(32rem, 100%); border-radius: 0; }
dialog.drawer[open] { display: flex; flex-direction: column; animation: ct-drawer-in var(--dur-slow) var(--ease-out) both; }
dialog.drawer.is-closing { animation: ct-drawer-out var(--dur-medium) var(--ease-out) both; }
dialog.drawer .ov__body { flex: 1; }
@media (min-width: 720px) { dialog.drawer { border-radius: var(--r-lg) 0 0 var(--r-lg); } }

/* menu suspenso */
.menu { position: relative; display: inline-block; }
.menu__list { position: absolute; z-index: 40; right: 0; top: calc(100% + 4px); min-width: 12rem; padding: var(--s-1); border-radius: var(--r-md); background: var(--raised); box-shadow: var(--shadow-float); list-style: none; transform-origin: top right; animation: ct-pop-in var(--dur-fast) var(--ease-out) both; }
.menu__item { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: var(--tap); padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); text-align: left; font-weight: 500; text-decoration: none; }
.menu__item:hover, .menu__item:focus-visible { background: var(--sunk); outline-offset: -2px; }
.menu__item--danger { color: var(--err-fg); }

/* ============ 11. DOMÍNIO ============ */

/* 11.1 cartão de passeio */
.tour-card { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.tour-card__media { aspect-ratio: 4 / 3; background: var(--sunk); overflow: hidden; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card__media--empty { display: grid; place-items: center; color: var(--muted); font-size: var(--fs-2); }
.tour-card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); flex: 1; }
.tour-card__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-5); letter-spacing: -0.015em; }
.tour-card__title a { color: inherit; text-decoration: none; }
.tour-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.tour-card__title a:focus-visible { outline: none; }
.tour-card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.tour-card:hover { border-color: var(--control); }
.tour-card__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); color: var(--muted); font-size: var(--fs-2); }
.tour-card__meta span { display: inline-flex; align-items: center; gap: var(--s-1); }
.tour-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); }
.tour-card__price { font-size: var(--fs-2); color: var(--muted); }
.tour-card__price strong { display: block; color: var(--ink); font-size: var(--fs-5); font-weight: 700; font-variant-numeric: tabular-nums; }
.tour-card--row { flex-direction: row; }
.tour-card--row .tour-card__media { width: 7.5rem; aspect-ratio: auto; flex: none; }

/* 11.2 barra de lugares (assinatura): cada lugar é uma célula */
.seats { display: flex; flex-direction: column; gap: var(--s-1); }
.seats__cells { display: flex; flex-wrap: wrap; gap: 3px; }
.seats__cell { width: 0.7rem; height: 1rem; border-radius: 3px; border: 1.5px solid var(--control); background: transparent; }
.seats__cell.is-taken { background: var(--ink); border-color: var(--ink); }
.seats__cell.is-done { background: var(--action); border-color: var(--action); }
.seats__label { font-size: var(--fs-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.seats__label strong { color: var(--ink); }
.seats--lg .seats__cell { width: 0.95rem; height: 1.4rem; }

/* 11.3 calendário com vagas */
.cal { display: flex; flex-direction: column; gap: var(--s-3); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.cal__month { font-family: var(--font-text); font-size: var(--fs-4); font-weight: 600; letter-spacing: 0; text-transform: none; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__week { font-size: var(--fs-1); color: var(--muted); text-align: center; font-weight: 600; }
.cal__day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 3.5rem; padding: 4px 2px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--raised); color: var(--ink); line-height: 1.15; }
.cal__n { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-3); }
.cal__v { font-size: 0.75rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cal__day[data-state="poucas"] .cal__v { color: var(--warn-fg); }
.cal__day[data-state="lotado"] { background: var(--sunk); border-style: dashed; border-color: var(--control); }
.cal__day[data-state="lotado"] .cal__v { color: var(--err-fg); }
.cal__day[data-state="fechada"] { background: var(--err-bg); border-color: var(--err-fg); }
.cal__day[data-state="fechada"] .cal__v { color: var(--err-fg); display: inline-flex; align-items: center; gap: 2px; }
.cal__day[data-state="fechada"] .cal__v .ico { width: 0.85em; height: 0.85em; }
.cal__day[data-state="lotado"] .cal__n { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal__day[data-state="sem"], .cal__day:disabled { background: transparent; border-color: transparent; color: var(--muted); cursor: default; }
.cal__day:not(:disabled):hover { border-color: var(--ink); }
.cal__day[aria-checked="true"] { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.cal__day[aria-checked="true"] .cal__v { color: var(--action-ink); }
.cal__day.is-today .cal__n { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.cal__day--pad { visibility: hidden; }
@media (max-width: 479px) { .cal__week, .cal__grid { gap: 2px; } }
.cal__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-2); color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: var(--s-1); }
.cal__key { width: 0.9rem; height: 0.9rem; border-radius: 3px; border: 1px solid var(--line); background: var(--raised); }
.cal__key--poucas { background: var(--warn-bg); border-color: var(--warn-solid); }
.cal__key--fechada { background: var(--err-bg); border-color: var(--err-fg); }
.cal__key--lotado { background: var(--sunk); border: 1px dashed var(--control); }

/* 11.4 seletor de quantidade */
.qty { display: flex; flex-direction: column; }
.qty__row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.qty__row:first-child { border-top: 0; }
.qty__label { flex: 1; min-width: 0; }
.qty__name { display: block; font-weight: 600; }
.qty__hint { display: block; font-size: var(--fs-2); color: var(--muted); }
.qty__ctrl { display: flex; align-items: center; gap: var(--s-2); }
.qty__ctrl .btn { border-radius: 50%; }
.qty__val { min-width: 2ch; text-align: center; font-size: var(--fs-4); font-weight: 700; font-variant-numeric: tabular-nums; }
.qty__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-3); border-top: 2px solid var(--ink); }
.qty__total strong { font-size: var(--fs-5); font-variant-numeric: tabular-nums; }
.qty__limit { font-size: var(--fs-2); color: var(--warn-fg); font-weight: 600; display: flex; gap: var(--s-1); align-items: center; }

/* 11.5 etapas da reserva */
.steps { list-style: none; display: flex; gap: var(--s-2); counter-reset: st; }
.steps__item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); counter-increment: st; }
.steps__bar { height: 4px; border-radius: 4px; background: var(--line); }
.steps__label { font-size: var(--fs-2); color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps__label::before { content: counter(st) ". "; }
.steps__item[data-state="done"] .steps__bar { background: var(--action); }
.steps__item[data-state="done"] .steps__label { color: var(--ink); }
.steps__item[aria-current="step"] .steps__bar { background: var(--ink); }
.steps__item[aria-current="step"] .steps__label { color: var(--ink); }
@media (max-width: 479px) { .steps__item:not([aria-current="step"]) .steps__label { visibility: hidden; } .steps__item[aria-current="step"] { flex-grow: 2.5; } }

/* 11.6 resumo do pedido */
.summary { display: flex; flex-direction: column; gap: var(--s-3); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); }
.summary__title { font-family: var(--font-text); font-size: var(--fs-3); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.summary__tour { font-family: var(--font-display); font-size: var(--fs-5); font-weight: 500; line-height: 1.2; }
.summary__facts { display: flex; flex-direction: column; gap: var(--s-1); color: var(--ink); }
.summary__facts p { display: flex; gap: var(--s-2); align-items: flex-start; }
.summary__facts .ico { color: var(--muted); margin-top: 0.15rem; }
.summary__lines { margin: 0; display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.summary__lines > div { display: flex; justify-content: space-between; gap: var(--s-3); }
.summary__lines dt { color: var(--muted); }
.summary__lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-top: var(--s-3); border-top: 2px solid var(--ink); font-weight: 700; }
.summary__total strong { font-size: var(--fs-5); font-variant-numeric: tabular-nums; }

/* 11.7 bloco Pix */
.pix { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); text-align: center; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5) var(--s-4); }
.pix__amount { font-size: var(--fs-6); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pix__amount small { display: block; font-size: var(--fs-2); font-weight: 500; color: var(--muted); }
.pix__timer { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.pix__timer.is-ending { color: var(--warn-fg); }
.pix__timer.is-over { color: var(--err-fg); }
.pix__code { width: 100%; text-align: left; font-size: var(--fs-2); }
.pix__code summary { cursor: pointer; color: var(--action-text); font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.pix__code code { display: block; padding: var(--s-3); background: var(--sunk); border-radius: var(--r-sm); overflow-wrap: anywhere; word-break: break-all; }
.pix__steps { text-align: left; font-size: var(--fs-2); color: var(--muted); padding-left: 1.25rem; display: flex; flex-direction: column; gap: var(--s-1); }

/* QR (gerado pelo CT.qr) */
.qr { display: inline-block; background: #ffffff; padding: 10px; border-radius: var(--r-md); line-height: 0; color: #2a1d17; }
.qr svg { display: block; width: var(--qr-size, 12rem); height: auto; }
.qr--lg svg { --qr-size: min(18rem, 72vw); }
.qr--full { padding: 16px; }
.qr--full svg { width: min(22rem, 80vw, 60vh); }
.qr.is-used { position: relative; }
.qr.is-used svg { opacity: 0.25; }

/* 11.8 voucher (bilhete com canhoto destacável) */
.voucher { --behind: var(--ground); position: relative; display: grid; grid-template-columns: 1fr; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.voucher__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--shell); color: var(--shell-ink); }
.voucher__head .brand { font-size: var(--fs-3); }
.voucher__code { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.voucher__body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.voucher__tour { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-5); line-height: 1.2; }
.voucher__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); margin: 0; }
.voucher__facts dt { font-size: var(--fs-1); color: var(--muted); font-weight: 600; }
.voucher__facts dd { margin: 0; font-weight: 700; font-size: var(--fs-3); overflow-wrap: anywhere; }
.voucher__facts .wide { grid-column: 1 / -1; }
.voucher__stub { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-4) var(--s-4); border-top: 2px dashed var(--control); text-align: center; }
.voucher__stub::before, .voucher__stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--behind); border: 1px solid var(--line); }
.voucher__stub::before { left: -12px; }
.voucher__stub::after { right: -12px; }
.voucher__note { font-size: var(--fs-2); color: var(--muted); }
@media (min-width: 720px) {
  .voucher--wide { grid-template-columns: 1fr auto; }
  .voucher--wide .voucher__head { grid-column: 1 / -1; }
  .voucher--wide .voucher__stub { border-top: 0; border-left: 2px dashed var(--control); padding: var(--s-4) var(--s-5); justify-content: center; }
  .voucher--wide .voucher__stub::before { top: -12px; left: -12px; }
  .voucher--wide .voucher__stub::after { top: auto; bottom: -12px; left: -12px; right: auto; }
}

/* 11.9 embarque: contagem + lista de passageiros */
.boarding { display: flex; flex-direction: column; gap: var(--s-4); }
.boarding__head { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3) var(--s-4); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); }
.app .boarding__head { top: calc(3.5rem + env(safe-area-inset-top, 0px) + var(--s-2)); }
@media (min-width: 1024px) { .app .boarding__head { top: calc(4rem + var(--s-2)); } }
.boarding__count { font-size: var(--fs-5); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.boarding__count .of { color: var(--muted); font-weight: 600; }
.boarding__count.is-complete { color: var(--ok-fg); }
.pax { list-style: none; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pax__group { padding: var(--s-2) var(--s-4); background: var(--sunk); font-size: var(--fs-2); font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; gap: var(--s-2); }
.pax__item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); min-height: 4rem; }
.pax__who { flex: 1; min-width: 0; }
.pax__name { font-weight: 700; font-size: var(--fs-4); overflow-wrap: anywhere; line-height: 1.25; }
.pax__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); font-size: var(--fs-2); color: var(--muted); margin-top: 2px; }
.pax__toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-width: 8.5rem; min-height: 3rem; padding: 0 var(--s-3); border-radius: var(--r-md); border: 2px solid var(--control); background: var(--raised); color: var(--ink); font-weight: 700; }
.pax__toggle .ico { stroke-width: 2.5; }
.pax__toggle[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.pax__item[data-state="embarcado"] .pax__name { color: var(--ink); }
.pax__item[data-state="embarcado"] { background: color-mix(in srgb, var(--ok-bg) 45%, var(--raised)); }
@media (max-width: 479px) { .pax__toggle { min-width: 0; padding: 0 var(--s-3); } .pax__toggle .pax__toggle-text { font-size: var(--fs-2); } }

/* 11.10 estrelas (rádio por baixo, teclado: setas) */
.stars { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.stars__legend { font-weight: 600; padding: 0; margin-bottom: var(--s-1); }
.stars__row { display: inline-flex; gap: 2px; }
.stars__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars__row label { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-sm); cursor: pointer; color: var(--control); }
.stars__row label .ico { width: 2rem; height: 2rem; stroke-width: 1.5; transition: transform var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out); }
.stars__row label.is-on { color: var(--warn-solid); }
.stars__row label.is-on .ico { fill: currentColor; }
.stars__row label.is-hover .ico { transform: scale(1.1); }
.stars__row input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 0; }
.stars__text { font-size: var(--fs-2); color: var(--muted); min-height: 1.5em; }
.stars--sm .stars__row label { width: 2.25rem; height: 2.25rem; }
.stars--sm .stars__row label .ico { width: 1.5rem; height: 1.5rem; }
.rating { display: inline-flex; align-items: center; gap: 2px; color: var(--warn-solid); }
.rating .ico { width: 1em; height: 1em; }
.rating .ico.is-on { fill: currentColor; }
.rating__num { margin-left: var(--s-1); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 11.11 celular desenhado + conversa (convenção de balões, sem marca de terceiros) */
.phone { margin: 0; display: flex; justify-content: center; }
.phone__frame { width: min(20rem, 100%); border-radius: 2.25rem; padding: 0.6rem; background: #1c1410; border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.phone__screen { border-radius: 1.75rem; overflow: hidden; background: var(--chat-bg); display: flex; flex-direction: column; min-height: 28rem; }
.phone__status { display: flex; justify-content: space-between; padding: 0.5rem 1.1rem 0.2rem; font-size: 0.75rem; font-weight: 600; color: var(--shell-ink); background: var(--shell); font-variant-numeric: tabular-nums; }
.phone__bar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--shell); color: var(--shell-ink); }
.phone__avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--shell-active); color: var(--shell-active-ink); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-1); flex: none; }
.phone__name { font-weight: 700; font-size: var(--fs-2); line-height: 1.2; }
.phone__sub { font-size: 0.75rem; color: var(--shell-muted); }
.chat { flex: 1; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3); }
.chat__day { align-self: center; font-size: 0.75rem; font-weight: 600; color: var(--muted); background: var(--raised); padding: 2px var(--s-2); border-radius: var(--r-sm); }
.bubble { position: relative; max-width: 86%; padding: var(--s-2) var(--s-3) 0.35rem; border-radius: var(--r-md); font-size: var(--fs-2); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(42, 29, 23, 0.12); color: var(--ink); }
.bubble--in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 3px; }
.bubble--out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 3px; }
.bubble__meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 2px; font-size: 0.6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bubble__meta .ico { width: 1rem; height: 1rem; stroke-width: 2; }
.bubble__meta .tick--read { color: var(--tick-read); }
.bubble__link { color: var(--action-text); text-decoration: underline; }
.bubble mark, .tpl-var { background: var(--warn-bg); color: var(--warn-fg); border-radius: 3px; padding: 0 2px; font-weight: 600; }
.chat__input { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2); background: var(--sunk); }
.chat__input span { flex: 1; background: var(--raised); color: var(--muted); border-radius: var(--r-pill); padding: 0.4rem var(--s-3); font-size: var(--fs-2); }

/* 11.12 linha do tempo de mensagens */
.timeline { list-style: none; display: flex; flex-direction: column; }
.timeline__item { position: relative; display: grid; grid-template-columns: 2rem 1fr auto; gap: var(--s-3); padding-bottom: var(--s-4); }
.timeline__item::before { content: ""; position: absolute; left: calc(1rem - 1px); top: 2rem; bottom: 0; width: 2px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-bg); color: var(--neutral-fg); }
.timeline__dot .ico { width: 1.1rem; height: 1.1rem; stroke-width: 2.25; }
.timeline__item[data-status="entregue"] .timeline__dot { background: var(--info-bg); color: var(--info-fg); }
.timeline__item[data-status="lido"] .timeline__dot { background: var(--ok-bg); color: var(--ok-fg); }
.timeline__item[data-status="falhou"] .timeline__dot { background: var(--err-bg); color: var(--err-fg); }
.timeline__item[data-status="agendado"] .timeline__dot { background: transparent; border: 2px dashed var(--control); color: var(--muted); }
.timeline__title { font-weight: 600; }
.timeline__meta { font-size: var(--fs-2); color: var(--muted); }
.timeline__end { align-self: start; }

/* 11.13 leitor de QR simulado */
.scanner { display: flex; flex-direction: column; gap: var(--s-4); }
.scanner__view { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 26rem; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; background: #120d0a; }
.scanner__view::before { content: "Câmera simulada"; position: absolute; left: 0; right: 0; bottom: var(--s-3); text-align: center; color: #b5aa9f; font-size: var(--fs-2); font-weight: 600; }
.scanner__frame { position: absolute; inset: 18%; border-radius: var(--r-md); --c: #e5e1d8; background:
  linear-gradient(var(--c), var(--c)) top left / 2.25rem 4px no-repeat, linear-gradient(var(--c), var(--c)) top left / 4px 2.25rem no-repeat,
  linear-gradient(var(--c), var(--c)) top right / 2.25rem 4px no-repeat, linear-gradient(var(--c), var(--c)) top right / 4px 2.25rem no-repeat,
  linear-gradient(var(--c), var(--c)) bottom left / 2.25rem 4px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 4px 2.25rem no-repeat,
  linear-gradient(var(--c), var(--c)) bottom right / 2.25rem 4px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 4px 2.25rem no-repeat; }
.scanner__line { position: absolute; left: 20%; right: 20%; top: 20%; height: 2px; background: #8fbf78; box-shadow: 0 0 0 1px rgba(143, 191, 120, 0.25); animation: ct-scan 2.2s var(--ease-in-out) infinite alternate; }
.scanner.is-paused .scanner__line { animation-play-state: paused; opacity: 0; }
.scanner__view[data-result="ok"] .scanner__frame { --c: #8fbf78; }
.scanner__view[data-result="warn"] .scanner__frame { --c: #f0c776; }
.scanner__view[data-result="err"] .scanner__frame { --c: #f2a596; }
.scanner__hint { text-align: center; color: var(--muted); font-weight: 600; }
.scan-result { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-lg); border: 2px solid var(--sr-solid); background: var(--sr-bg); color: var(--ink); }
.scan-result > .ico { width: 2.25rem; height: 2.25rem; color: var(--sr-fg); stroke-width: 2.25; flex: none; }
.scan-result__title { font-size: var(--fs-5); font-weight: 700; color: var(--sr-fg); line-height: 1.2; }
.scan-result__text { margin-top: var(--s-1); }
.scan-result__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.scan-result--ok { --sr-bg: var(--ok-bg); --sr-fg: var(--ok-fg); --sr-solid: var(--ok-solid); }
.scan-result--warn { --sr-bg: var(--warn-bg); --sr-fg: var(--warn-fg); --sr-solid: var(--warn-solid); }
.scan-result--err { --sr-bg: var(--err-bg); --sr-fg: var(--err-fg); --sr-solid: var(--err-solid); }
.scanner__sim { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.scanner__sim-title { grid-column: 1 / -1; font-size: var(--fs-2); color: var(--muted); font-weight: 600; }
.scanner__sim .btn { white-space: normal; text-align: center; line-height: 1.2; padding: var(--s-2); }

/* 11.14 contagem regressiva */
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

/* 11.15 saída (linha da agenda / início do painel) */
.departure { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); align-items: start; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.departure:first-child { border-top: 0; }
.departure__time { font-size: var(--fs-5); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; min-width: 3.6rem; }
.departure__main { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.departure__title { font-weight: 700; }
.departure__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-size: var(--fs-2); color: var(--muted); align-items: center; }
.departure__meta > span { display: inline-flex; align-items: center; gap: var(--s-1); }

/* ============ 12. CASCAS ============ */
/* 12.1 turista: celular, sem menu, cabeçalho da marca */
.t-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.brandbar { position: sticky; top: 0; z-index: 30; background: var(--ground); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.brandbar__in { max-width: var(--w-turista); margin: 0 auto; padding: var(--s-2) var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 3.5rem; }
.brandbar .brand { color: var(--ink); }
.brandbar__wa { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--control); color: var(--ink); background: var(--raised); text-decoration: none; font-weight: 600; font-size: var(--fs-2); }
.brandbar__wa:hover { background: var(--sunk); text-decoration: none; }
.t-main { flex: 1; width: 100%; max-width: var(--w-turista); margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-7); display: flex; flex-direction: column; gap: var(--s-5); }
.t-main--with-bar { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
.page-head { display: flex; flex-direction: column; gap: var(--s-2); }
.page-head .back { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); color: var(--action-text); font-weight: 600; text-decoration: none; margin-left: -0.25rem; }
.t-foot { border-top: 1px solid var(--line); }
.t-foot__in { max-width: var(--w-turista); margin: 0 auto; padding: var(--s-4); font-size: var(--fs-2); color: var(--muted); display: flex; flex-direction: column; gap: var(--s-1); }
/* barra de ação fixa no rodapé do celular */
.actionbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--raised); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(42, 29, 23, 0.08); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); }
.actionbar__in { max-width: var(--w-turista); margin: 0 auto; display: flex; align-items: center; gap: var(--s-3); }
.actionbar__info { flex: 1; min-width: 0; line-height: 1.25; }
.actionbar__info strong { display: block; font-size: var(--fs-4); font-variant-numeric: tabular-nums; }
.actionbar__info span { font-size: var(--fs-2); color: var(--muted); }

/* 12.2 painel: trilho chocolate no desktop, barra superior + navegação inferior no celular */
.app { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.app-nav { display: none; }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s-3); min-height: 3.5rem; padding: calc(var(--s-2) + env(safe-area-inset-top, 0px)) var(--s-4) var(--s-2); background: var(--shell); color: var(--shell-ink); }
.app-top .brand { color: var(--shell-ink); font-size: var(--fs-3); min-width: var(--tap); justify-content: center; }
.app-top__title { flex: 1; min-width: 0; font-family: var(--font-text); font-size: var(--fs-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.app-top__tools { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.app-top .btn--ghost, .app-nav .btn--ghost { color: var(--shell-ink); }
.app-top .btn--ghost:hover, .app-nav .btn--ghost:hover { background: var(--shell-2); }
.app-top :focus-visible, .app-nav :focus-visible { outline-color: var(--shell-focus); }
.app-main { min-width: 0; padding: var(--s-4) var(--s-4) calc(5.5rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: var(--s-5); }
.app-main__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
.app-main__head p { color: var(--muted); }
.app-tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; background: var(--shell); padding: 0 var(--s-1) env(safe-area-inset-bottom, 0px); }
.app-tabbar a, .app-tabbar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 4rem; padding: var(--s-1) 2px; border: 0; background: none; color: var(--shell-muted); font-size: 0.75rem; font-weight: 600; text-decoration: none; border-radius: var(--r-md); }
.app-tabbar .ico { width: 1.5rem; height: 1.5rem; }
.app-tabbar [aria-current="page"] { color: var(--shell-ink); }
.app-tabbar [aria-current="page"] .ico { background: var(--shell-active); color: var(--shell-active-ink); border-radius: var(--r-pill); width: 3.25rem; padding: 2px 0; height: 1.75rem; }
.app-tabbar :focus-visible { outline-color: var(--shell-focus); outline-offset: -3px; }
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: var(--s-3); min-height: 2.75rem; padding: 0 var(--s-3); border-radius: var(--r-md); color: var(--shell-muted); text-decoration: none; font-weight: 600; }
.nav-link:hover { background: var(--shell-2); color: var(--shell-ink); }
.nav-link[aria-current="page"] { background: var(--shell-active); color: var(--shell-active-ink); }
.nav-link .count-badge { margin-left: auto; }
.nav-sep { height: 1px; background: var(--shell-2); margin: var(--s-2) var(--s-3); }
/* "Mais" no celular: lista do menu dentro de uma folha */
.more-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--s-2); }
.more-list a { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); min-height: 4.5rem; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 600; background: var(--raised); }
.more-list a:hover { border-color: var(--control); }
.more-list a[aria-current="page"] { border: 2px solid var(--action); background: var(--action-soft); }
.perfil-bar { display: flex; align-items: center; gap: var(--s-2); }
.perfil-bar__label { font-size: var(--fs-1); color: var(--shell-muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 599px) { .app-top__title { visibility: hidden; } .perfil-bar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
html[data-perfil="guia"] [data-only="carol"], html:not([data-perfil="guia"]) [data-only="guia"] { display: none !important; }

@media (min-width: 1024px) {
  .app { grid-template-columns: var(--w-nav) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .app-nav { display: flex; flex-direction: column; gap: var(--s-4); grid-row: 1 / span 2; position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: var(--s-4) var(--s-3); background: var(--shell); color: var(--shell-ink); }
  .app-nav .brand { color: var(--shell-ink); padding: var(--s-1) var(--s-3) var(--s-3); }
  .app-nav__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3); border-top: 1px solid var(--shell-2); }
  .app-top { background: var(--ground); color: var(--ink); border-bottom: 1px solid var(--line); padding: var(--s-2) var(--s-6); min-height: 4rem; }
  .app-top .brand { display: none; }
  .app-top .btn--ghost { color: var(--ink); }
  .app-top .btn--ghost:hover { background: var(--sunk); }
  .app-top :focus-visible { outline-color: var(--focus); }
  .app-top .perfil-bar__label { color: var(--muted); }
  .app-top .seg--inverse { background: var(--sunk); border: 1px solid var(--line); }
  .app-top .seg--inverse .seg__btn { color: var(--muted); }
  .app-top .seg--inverse .seg__btn[aria-checked="true"] { color: var(--ground); }
  .app-top .seg--inverse .seg__btn:not([aria-checked="true"]):hover { color: var(--ink); }
  .app-top .seg--inverse .seg__pill { background: var(--ink); }
  .app-top .seg--inverse .seg__btn:focus-visible { outline-color: var(--focus); }
  .app-top__title { font-size: var(--fs-4); }
  .app-main { padding: var(--s-6); gap: var(--s-6); max-width: 82rem; width: 100%; }
  .app-tabbar { display: none; }
  .has-tabbar .toasts { bottom: var(--s-5); }
}

/* layout de trabalho: coluna principal + lateral */
.split { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }

/* ============ 13. ESTADOS: vazio, erro, esqueleto ============ */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding: var(--s-6) var(--s-4); border: 1px dashed var(--control); border-radius: var(--r-lg); }
.empty > .ico { width: 2.5rem; height: 2.5rem; color: var(--muted); stroke-width: 1.5; margin-bottom: var(--s-1); }
.empty__title { font-weight: 700; font-size: var(--fs-4); }
.empty__text { color: var(--muted); max-width: 30rem; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-2); }
.empty--err { border: 2px solid var(--err-solid); background: var(--err-bg); }
.empty--err > .ico, .empty--err .empty__title { color: var(--err-fg); }
.empty--err .empty__text { color: var(--ink); }

.sk { display: block; border-radius: var(--r-sm); background: var(--sunk); animation: ct-pulse 1.4s linear infinite; }
.sk--line { height: 0.9rem; width: 100%; }
.sk--line + .sk--line { margin-top: var(--s-2); }
.sk--short { width: 55%; }
.sk--title { height: 1.4rem; width: 40%; margin-bottom: var(--s-3); }
.sk--block { height: 8rem; border-radius: var(--r-lg); }
.sk--circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; }
[aria-busy="true"] > .sk-reveal { opacity: 0; }
.sk-reveal { animation: ct-reveal var(--dur-slow) var(--ease-in-out) both; }

/* ============ 14. MOVIMENTO ============ */
@keyframes ct-spin { to { transform: rotate(360deg); } }
@keyframes ct-fade-in { from { opacity: 0; } }
@keyframes ct-fade-out { to { opacity: 0; } }
@keyframes ct-toast-in { from { opacity: 0; transform: translateY(var(--dist-medium)); filter: blur(2px); } }
@keyframes ct-toast-out { to { opacity: 0; transform: translateY(var(--dist-base)); filter: blur(2px); } }
@keyframes ct-dialog-in { from { opacity: 0; transform: scale(var(--scale-dialog)); } }
@keyframes ct-dialog-out { to { opacity: 0; transform: scale(var(--scale-dialog)); } }
@keyframes ct-sheet-in { from { transform: translateY(100%); } }
@keyframes ct-sheet-out { to { transform: translateY(100%); } }
@keyframes ct-drawer-in { from { transform: translateX(100%); } }
@keyframes ct-drawer-out { to { transform: translateX(100%); } }
@keyframes ct-pop-in { from { opacity: 0; transform: scale(0.97); } }
@keyframes ct-pulse { 50% { opacity: 0.55; } }
@keyframes ct-reveal { from { opacity: 0; filter: blur(2px); } }
@keyframes ct-scan { from { top: 20%; } to { top: 80%; } }
@keyframes ct-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(calc(var(--dist-base) * -1)); } 40% { transform: translateX(var(--dist-base)); } 60% { transform: translateX(calc(var(--dist-small) * -1)); } 80% { transform: translateX(var(--dist-small)); } }
@keyframes ct-bump { 40% { transform: translateY(-2px); } }
.is-shaking { animation: ct-shake 0.4s var(--ease-out) both; }
.is-bumped { animation: ct-bump var(--dur-fast) var(--ease-out); }

/* guia: nada se move além do necessário */
html[data-perfil="guia"] .scanner__line, html[data-campo] .scanner__line { animation-duration: 3s; }
html[data-perfil="guia"] .is-shaking, html[data-campo] .is-shaking { animation: none; }
html[data-perfil="guia"] .toast__close, html[data-campo] .toast__close { min-width: var(--tap); min-height: var(--tap); }
html[data-perfil="guia"] .toast, html[data-campo] .toast, html[data-perfil="guia"] dialog, html[data-campo] dialog, html[data-perfil="guia"] dialog::backdrop, html[data-campo] dialog::backdrop { animation: none !important; }

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

/* ============ 15. IMPRESSÃO (voucher) ============ */
@media print {
  .brandbar, .actionbar, .app-nav, .app-top, .app-tabbar, .toasts, .no-print { display: none !important; }
  body { background: #fff; }
  .voucher { border-color: #000; }
}
