/*
 * Swipe — arquivo de ofertas.
 * A ideia visual é um arquivo de pastas: cada seção tem a sua cor de "orelha" (aba)
 * e essa cor se repete em todo lugar onde a seção aparece.
 */

:root {
  --paper: #E8ECF1;
  --paper-2: #DCE2EA;
  --sheet: #FFFFFF;
  --ink: #131A27;
  --ink-2: #4A5468;
  --ink-3: #6E7889;
  --line: #D2D8E1;
  --line-2: #E5E9EF;
  --focus: #2457E6;
  --danger: #B42335;
  --ok: #17704A;
  --warn: #8A5A00;

  --sheet-2: #F7F9FB;
  --on-ink: #FFFFFF;
  --ink-hover: #2A3550;
  --line-strong: #BCC5D2;
  --glass: rgb(255 255 255 / .94);
  --focus-ring: rgb(36 87 230 / .15);
  --focus-bg: #EEF3FE;
  --checker-a: #EEF1F5;
  --checker-b: #FFFFFF;
  --ok-bg: #E6F4EC;
  --ok-line: #B7DFCB;
  --danger-bg: #FBEFF1;
  --danger-line: #EDC1C8;
  --warn-bg: #FFF4DE;
  --warn-line: #EBD6A6;
  --info-bg: #E8EFFD;
  --admin-bg: #ECE9FA;
  --admin-ink: #4B3BA8;
  color-scheme: light;
  --s-capa-entregavel: #D48E1F;
  --s-capa-bonus: #C64B68;
  --s-referencia-visual: #6A57CC;
  --s-vendas: #1C8A76;
  --s-checkout: #2D6CD3;
  --s-criativos: #E2662B;

  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --r: 10px;
  --gutter: clamp(16px, 3vw, 32px);
  --shadow: 0 1px 2px rgb(19 26 39 / .06), 0 10px 28px -14px rgb(19 26 39 / .28);
}

/* ---------- Modo escuro ----------
 * Sem escolha, segue o aparelho. data-theme="light" ou "dark" (cookie swipe_theme) força um dos dois.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1117;
    --paper-2: #171D26;
    --sheet: #141922;
    --sheet-2: #1A202A;
    --ink: #E6EAF1;
    --ink-2: #A9B2C1;
    --ink-3: #7F899A;
    --line: #283039;
    --line-2: #1F262F;
    --line-strong: #3A4452;
    --on-ink: #10141B;
    --ink-hover: #C8D0DD;
    --focus: #7A9DFF;
    --danger: #FF7D8C;
    --ok: #4CC38A;
    --warn: #E8B45A;
    --glass: rgb(20 25 34 / .92);
    --focus-ring: rgb(122 157 255 / .28);
    --focus-bg: rgb(122 157 255 / .12);
    --checker-a: #1E242E;
    --checker-b: #262D38;
    --ok-bg: rgb(76 195 138 / .14);
    --ok-line: rgb(76 195 138 / .35);
    --danger-bg: rgb(255 125 140 / .12);
    --danger-line: rgb(255 125 140 / .35);
    --warn-bg: rgb(232 180 90 / .14);
    --warn-line: rgb(232 180 90 / .35);
    --info-bg: rgb(122 157 255 / .14);
    --admin-bg: rgb(140 123 234 / .16);
    --admin-ink: #B9ADFF;
    --s-capa-entregavel: #E3A43C;
    --s-capa-bonus: #E46E89;
    --s-referencia-visual: #9283EE;
    --s-vendas: #31B59C;
    --s-checkout: #5E90EE;
    --s-criativos: #F08348;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -14px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23A9B2C1' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E"); }
}
:root[data-theme="dark"] {
  --paper: #0D1117;
  --paper-2: #171D26;
  --sheet: #141922;
  --sheet-2: #1A202A;
  --ink: #E6EAF1;
  --ink-2: #A9B2C1;
  --ink-3: #7F899A;
  --line: #283039;
  --line-2: #1F262F;
  --line-strong: #3A4452;
  --on-ink: #10141B;
  --ink-hover: #C8D0DD;
  --focus: #7A9DFF;
  --danger: #FF7D8C;
  --ok: #4CC38A;
  --warn: #E8B45A;
  --glass: rgb(20 25 34 / .92);
  --focus-ring: rgb(122 157 255 / .28);
  --focus-bg: rgb(122 157 255 / .12);
  --checker-a: #1E242E;
  --checker-b: #262D38;
  --ok-bg: rgb(76 195 138 / .14);
  --ok-line: rgb(76 195 138 / .35);
  --danger-bg: rgb(255 125 140 / .12);
  --danger-line: rgb(255 125 140 / .35);
  --warn-bg: rgb(232 180 90 / .14);
  --warn-line: rgb(232 180 90 / .35);
  --info-bg: rgb(122 157 255 / .14);
  --admin-bg: rgb(140 123 234 / .16);
  --admin-ink: #B9ADFF;
  --s-capa-entregavel: #E3A43C;
  --s-capa-bonus: #E46E89;
  --s-referencia-visual: #9283EE;
  --s-vendas: #31B59C;
  --s-checkout: #5E90EE;
  --s-criativos: #F08348;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -14px rgb(0 0 0 / .7);
  color-scheme: dark;
}
:root[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23A9B2C1' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E"); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lb-open { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--f-body); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

.visually-hidden { 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 { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-size: 13px; }
.muted { color: var(--ink-3); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row--end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.t-right { text-align: right; }

/* ---------- Topo ---------- */

.topbar { display: flex; align-items: center; gap: 14px 24px; padding: 16px var(--gutter) 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__name { font: 800 28px/1 var(--f-display); letter-spacing: -0.04em; }
.brand__tag { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.usernav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 14px; }
.usernav a, .linklike { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; }
.usernav a:hover, .linklike:hover, .usernav a[aria-current] { color: var(--ink); }
.usernav form { margin: 0; }
.usernav .area-switch {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--sheet); color: var(--ink); white-space: nowrap;
}
.usernav .area-switch:hover { border-color: var(--ink-3); }

/* ---------- Abas de pasta (assinatura do site) ---------- */

.tabs { display: flex; gap: 5px; padding: 6px var(--gutter) 0; overflow-x: auto; scrollbar-width: none; align-items: flex-end; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  --tab: var(--ink);
  position: relative; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 9px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: color-mix(in srgb, var(--tab) 8%, var(--paper-2)); color: var(--ink-2);
  font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s, color .15s, padding .15s;
}
.tab::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--tab); }
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--tab) 15%, var(--paper-2)); }
.tab[aria-current="page"] {
  background: var(--sheet); color: var(--ink); z-index: 1; margin-bottom: -1px; padding-bottom: 10px; padding-top: 12px;
  box-shadow: inset 0 3px 0 var(--tab);
}
.drawer { position: relative; background: var(--sheet); border-top: 1px solid var(--line); min-height: calc(100vh - 130px); padding: 28px var(--gutter) 72px; }

/* ---------- Cabeçalhos de página ---------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title { font: 750 clamp(28px, 3.4vw, 40px)/1.04 var(--f-display); letter-spacing: -0.03em; margin: 0; }
.page-sub { margin: 6px 0 0; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.eyebrow { margin: 0 0 6px; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.eyebrow--tab { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.eyebrow--tab::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tab); }
.count { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 12px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Filtros ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 24px; }
.input, .select, .textarea {
  height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); padding: 0 12px; color: var(--ink); max-width: 100%;
}
.input, .textarea { width: 100%; }
.filters .input { width: auto; flex: 1 1 220px; }
.search-input {
  flex: 1 1 170px; min-width: 170px; max-width: 320px; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 0 36px; color: var(--ink);
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236E7889' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px 50%;
}
.search-input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.fav-filter {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--sheet); color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.fav-filter svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fav-filter:hover { border-color: var(--ink-3); color: var(--ink); }
.fav-filter[aria-pressed="true"] { color: var(--ink); border-color: var(--s-capa-bonus); background: color-mix(in srgb, var(--s-capa-bonus) 12%, var(--sheet)); }
.fav-filter[aria-pressed="true"] svg { fill: var(--s-capa-bonus); stroke: var(--s-capa-bonus); }
@media (max-width: 640px) { .search-input { flex: 1 1 100%; } }
.input--search { max-width: 360px; }
.input--path { max-width: 640px; }
.input--short { width: 110px !important; flex: none !important; }
.input--date { width: auto; height: 34px; margin-left: 6px; }
.select { padding-right: 32px; appearance: none; background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%234A5468' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.select--xs { height: 28px; font-size: 12px; padding: 0 24px 0 8px; background-position: right 8px center; flex: 1; min-width: 0; }
.textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.clear { font-size: 14px; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font: 600 14px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn--ghost { background: var(--sheet); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); border-color: var(--line-strong); }
.btn--danger { background: var(--sheet); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn--danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Cards ---------- */

.page-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.viewswitch { display: inline-flex; height: 40px; box-sizing: border-box; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--sheet); }
.viewswitch button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13px; cursor: pointer;
}
.viewswitch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.viewswitch button:hover { color: var(--ink); }
.viewswitch button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* Lista: imagem pequena à esquerda e as informações ao lado, uma oferta por linha. */
.grid.grid--list { grid-template-columns: 1fr; gap: 10px; }
.grid--list .card { flex-direction: row; align-items: stretch; }
.grid--list .card:hover { transform: none; }
.grid--list .card__thumb { width: 150px; flex: none; aspect-ratio: auto; min-height: 112px; border-bottom: 0; border-right: 1px solid var(--line-2); }
.grid--list .card__hover { display: none; }
.grid--list .card__body { padding: 14px 70px 14px 18px; gap: 6px; justify-content: center; }
.grid--list .card__title { font-size: 17px; -webkit-line-clamp: 1; }
.grid--list .card__domain--list { display: block; }
.grid--list .card__foot { margin-top: 2px; padding-top: 0; justify-content: flex-start; }
.grid--list .badge-new { top: 8px; left: 8px; font-size: 10px; padding: 4px 6px; }
@media (max-width: 560px) {
  .grid--list .card__thumb { width: 96px; min-height: 96px; }
  .grid--list .card__body { padding: 10px 52px 10px 12px; }
  .grid--list .card__title { font-size: 15px; -webkit-line-clamp: 2; }
  .page-head__side { align-items: flex-start; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 24px 18px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--sheet);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__domain--list { display: none; }
.card__thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; border: 0; padding: 0; border-bottom: 1px solid var(--line-2); }
.card__thumb img, .card__thumb video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
button.card__thumb { cursor: zoom-in; }
.card--contain .card__thumb img { object-fit: contain; object-position: center; padding: 10px; }
.card__nothumb { position: absolute; inset: 0; display: grid; place-items: center; font: 700 34px/1 var(--f-display); color: var(--ink-3); letter-spacing: -0.03em; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__domain { font: 500 12px/1.3 var(--f-mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__title { margin: 0; font: 650 16px/1.25 var(--f-display); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .card__foot:has(> .dots:only-child) { justify-content: flex-end; }
.card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 12px; color: var(--ink-2); }
.card__meta > * + *::before { content: "·"; margin: 0 6px; color: var(--ink-3); }
.card__meta time { font-family: var(--f-mono); font-size: 11.5px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.card__tag { position: relative; z-index: 2; font-size: 11.5px; color: var(--ink-2); text-decoration: none; padding: 2px 7px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); }
.card__tag:hover { color: var(--ink); border-color: var(--line-strong); }
.card__hover {
  position: absolute; inset: auto 0 0; padding: 40px 14px 12px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(transparent, rgb(11 15 23 / .88) 45%); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; pointer-events: none;
}
.card__hover strong { font: 650 15px/1.25 var(--f-display); }
.card__hover span { font: 500 12px/1.3 var(--f-mono); color: rgb(255 255 255 / .78); overflow-wrap: anywhere; }
.card:hover .card__hover, .card:focus-within .card__hover { opacity: 1; transform: none; }
@media (hover: none) { .card__hover { display: none; } }
.card__cat { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__count { position: absolute; right: 8px; bottom: 8px; font: 500 11px/1 var(--f-mono); background: rgb(19 26 39 / .82); color: #fff; padding: 5px 7px; border-radius: 5px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.card--section { border-top: 3px solid var(--tab); }

.badge-new { position: absolute; top: 10px; left: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--on-ink); padding: 5px 7px; border-radius: 4px; }
.badge-new--inline { position: static; }

.fav {
  position: absolute; top: 8px; right: 8px; z-index: 2; min-width: 36px; height: 36px; padding: 0 9px; border-radius: 999px; border: 0;
  background: var(--glass); display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; box-shadow: 0 1px 4px rgb(19 26 39 / .18);
  color: var(--ink);
}
.fav svg { flex: none; }
.fav__count { font: 600 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.fav--label .fav__count { padding: 3px 6px; border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.fav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: fill .15s, stroke .15s, transform .15s; }
.fav:hover svg { transform: scale(1.1); }
.fav[aria-pressed="true"] svg { fill: var(--s-capa-bonus); stroke: var(--s-capa-bonus); }
.fav--label { position: static; width: auto; height: 40px; border-radius: 8px; padding: 0 14px; gap: 8px; display: inline-flex; align-items: center; border: 1px solid var(--line); box-shadow: none; font-weight: 600; font-size: 14px; }

.dots { display: inline-flex; gap: 4px; flex: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--tab); background: transparent; }
.dot.is-on { background: var(--tab); }

/* ---------- Página da oferta ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.offer-head { max-width: 1000px; display: grid; gap: 12px; margin-bottom: 24px; }
.offer-head__eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.offer-head h1 { margin: 0; font: 750 clamp(30px, 4.4vw, 50px)/1.02 var(--f-display); letter-spacing: -0.032em; }
.offer-head__desc { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 70ch; }
.offer-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 4px 0 0; }
.facts dt { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }
.facts__tags dd { font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.tag:hover { color: var(--ink); border-color: var(--line-strong); }

.jump {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 8px; padding: 10px var(--gutter); background: var(--glass);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2);
}
.jump::-webkit-scrollbar { display: none; }
.jump > a, .jump > span {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.jump > a::before, .jump > span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--tab); }
.jump > a:hover { background: color-mix(in srgb, var(--tab) 10%, var(--sheet)); border-color: color-mix(in srgb, var(--tab) 45%, var(--line)); }
.jump .is-empty { color: var(--ink-3); border-style: dashed; font-weight: 500; }
.jump .is-empty::before { background: transparent; border: 1.5px solid var(--tab); }

.sec { --tab-line: color-mix(in srgb, var(--tab) 38%, var(--line)); margin-top: 40px; scroll-margin-top: 64px; }
.sec__label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px 9px;
  background: color-mix(in srgb, var(--tab) 13%, var(--sheet)); border: 1px solid var(--tab-line); border-bottom: 0;
  border-radius: 12px 12px 0 0; font: 700 16px/1 var(--f-display); letter-spacing: -0.01em; position: relative; top: 1px;
}
.sec__head { display: flex; align-items: flex-end; gap: 10px; }
.fav--sec { height: 32px; padding: 0 12px; font-size: 13px; margin-bottom: 6px; gap: 6px; }
.fav--sec svg { width: 16px; height: 16px; }
.sec__label::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tab); }
.sec__panel {
  border: 1px solid var(--tab-line); border-radius: 0 var(--r) var(--r) var(--r); padding: 18px;
  background: linear-gradient(color-mix(in srgb, var(--tab) 5%, var(--sheet)), var(--sheet) 160px);
}

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.thumbs--cover { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper); cursor: zoom-in;
}
.thumb__meta { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: flex-end; align-items: center; gap: 6px; pointer-events: none; }
.thumb__meta .thumb__n { position: static; }
.thumb__name { min-width: 0; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 600; line-height: 1; background: rgb(19 26 39 / .82); color: #fff; padding: 5px 7px; border-radius: 5px; }
.offer-head__checkouts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn .price { font-weight: 700; }
.checkouts { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkouts legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.checkouts__list { display: grid; gap: 8px; }
.checkout-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; grid-template-areas: "cur amount remove" "url url open";
  gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper);
}
.checkout-row__cur { grid-area: cur; width: 100%; }
.checkout-row__amount { grid-area: amount; }
.checkout-row__url { grid-area: url; }
.checkout-row [data-open-link] { grid-area: open; }
.checkout-row [data-checkout-remove] { grid-area: remove; justify-self: end; }
.checkout-row .iconbtn[hidden] { display: block !important; visibility: hidden; }
.checkouts__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 8px; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.thumb:hover img, .thumb:hover video { transform: scale(1.03); }
.thumbs--cover .thumb { aspect-ratio: 1; }
.thumbs--cover .thumb img { object-fit: contain; object-position: center; padding: 8px; }
.thumbs--media .thumb { aspect-ratio: 9 / 16; }
.thumb__n { position: absolute; right: 6px; bottom: 6px; font: 500 11px/1 var(--f-mono); background: rgb(19 26 39 / .82); color: #fff; padding: 4px 6px; border-radius: 4px; }
.thumb__play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgb(19 26 39 / .72); pointer-events: none;
}
.thumb__play::after { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }

/* Só os formatos que existem aparecem e dividem a largura (o print ganha um pouco mais). */
.page-assets { display: flex; flex-wrap: wrap; gap: 14px; }
.page-assets > .asset { flex: 1 1 260px; min-width: 0; }
.page-assets > .asset--print { flex-grow: 1.2; }
.asset { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.asset__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.asset__kind { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.asset__none { margin: 0; color: var(--ink-3); font-size: 14px; padding: 18px 0; border: 1.5px dashed var(--line); border-radius: 8px; text-align: center; }
.asset .thumbs--print { grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); }
.asset .thumbs--print .thumb:only-child { aspect-ratio: 4 / 5; }
.doc { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.doc + .doc { padding-top: 12px; border-top: 1px solid var(--line-2); }
.doc { min-width: 0; max-width: 100%; }
.doc__excerpt { margin: 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Visualizador (modal) ---------- */

.lb { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgb(11 15 23 / .95); color: #fff; animation: lb-in .16s ease-out; }
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lb__bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgb(255 255 255 / .09); }
.lb__meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.lb__kind { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); color: rgb(255 255 255 / .78); }
.lb__kind::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tab, #fff); }
.lb__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb__tools { display: flex; gap: 6px; flex: none; }
.lb__tool { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgb(255 255 255 / .18); background: transparent; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.lb__tool:hover { background: rgb(255 255 255 / .1); }
.lb__count { flex: none; font: 500 13px/1 var(--f-mono); color: rgb(255 255 255 / .7); min-width: 44px; text-align: right; }
.lb__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .1); color: #fff; font-size: 18px; cursor: pointer; }
.lb__close:hover { background: rgb(255 255 255 / .2); }
.lb__body { position: relative; flex: 1; min-height: 0; display: flex; }
.lb__stage { flex: 1; min-width: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 18px 76px; outline: none; overscroll-behavior: contain; }
.lb__stage > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; background: #fff; }
.lb__stage.is-tall { align-items: flex-start; }
.lb__stage.is-tall > img { max-height: none; width: min(100%, 1100px); }
.lb__stage > video { max-width: 100%; max-height: 100%; border-radius: 6px; background: #000; }
.lb__stage--md { align-items: flex-start; }
/* Vídeo com transcrição: texto numa coluna ao lado. */
.lb__stage.has-transcript { gap: 18px; align-items: stretch; }
.lb__stage.has-transcript > video { flex: 1 1 auto; min-width: 0; max-height: 100%; align-self: center; }
.lb__transcript {
  flex: 0 0 340px; max-height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: 10px; color: rgb(255 255 255 / .9);
}
.lb__transcript[hidden] { display: none; }
.lb__transcript-title { margin: 0; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.lb__transcript-text { flex: 1; min-height: 0; overflow: auto; white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; overscroll-behavior: contain; }
.lb__transcript .lb__tool { align-self: flex-start; }
.thumb__tx { position: absolute; left: 6px; top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; background: rgb(19 26 39 / .82); color: #fff; padding: 4px 6px; border-radius: 4px; }
.lb__loading { color: rgb(255 255 255 / .7); }
.lb__nav {
  position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .2); background: rgb(22 29 42 / .78); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.lb__nav:hover { background: rgb(40 50 70 / .9); }
.lb__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.lb__nav--prev { left: 12px; }
.lb__nav--next { right: 12px; }

.md-wrap { width: min(100%, 860px); }
.md-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; font: 12px/1.5 var(--f-mono); color: rgb(255 255 255 / .7); }
.md-meta dt { color: rgb(255 255 255 / .45); }
.md-meta dd { margin: 0; overflow-wrap: anywhere; }
.md-meta a { color: #fff; }
.md { background: var(--sheet); color: var(--ink); border-radius: 10px; padding: 34px clamp(18px, 5vw, 56px); font-size: 16px; line-height: 1.65; overflow-wrap: break-word; }
.md h1, .md h2, .md h3, .md h4 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -0.015em; margin: 1.4em 0 .5em; }
.md h1:first-child, .md h2:first-child { margin-top: 0; }
.md img { max-width: 100%; height: auto; border-radius: 6px; margin: 12px 0; display: inline-block; }
.md a { color: var(--focus); }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md td, .md th { border: 1px solid var(--line); padding: 6px 8px; }
.md blockquote { margin: 1em 0; padding-left: 14px; border-left: 3px solid var(--line); color: var(--ink-2); }
.md-raw { margin: 0; white-space: pre-wrap; word-break: break-word; font: 13px/1.6 var(--f-mono); background: #0F1520; color: #D6DDE9; padding: 24px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .1); }

/* ---------- Página HTML salva ---------- */

.page-preview { background: var(--paper-2); }
.pv { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.pv__bar { flex: none; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px var(--gutter); background: var(--sheet); border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--tab); }
.pv__title { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.pv__title strong { font: 650 15px/1.2 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv__kind { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pv__devices { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pv__devices button { height: 32px; padding: 0 12px; border: 0; background: var(--sheet); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pv__devices button + button { border-left: 1px solid var(--line); }
.pv__devices button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.pv__stage { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 14px; }
.pv__stage iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 6px; box-shadow: var(--shadow); transition: width .25s ease; }
.pv[data-device="tablet"] iframe { width: min(100%, 820px); }
.pv[data-device="mobile"] iframe { width: min(100%, 390px); }

/* ---------- Mensagens e vazios ---------- */

.flash { padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; font-size: 14px; border: 1px solid; }
.flash--auto { display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: opacity .35s, transform .35s; }
.flash--auto.is-leaving { opacity: 0; transform: translateY(-6px); }
.flash__close { flex: none; border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; }
.flash__close:hover { opacity: 1; }
.flash--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.flash--error { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.flash--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.empty { padding: 56px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--ink-2); display: grid; justify-items: center; gap: 4px; }
.empty p { margin: 0 0 8px; }
.empty__title { font: 700 20px/1.2 var(--f-display); color: var(--ink); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.pager__info { font: 500 13px var(--f-mono); color: var(--ink-3); }

/* ---------- Login e páginas simples ---------- */

.page-login, .page-plain { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(100%, 410px); }
.login__tabs { display: flex; gap: 4px; padding-left: 16px; }
.login__tabs span { width: 40px; height: 12px; border-radius: 7px 7px 0 0; background: var(--tab); }
.login__card { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px 28px; box-shadow: var(--shadow); }
.login__brand { margin: 0; font: 800 44px/1 var(--f-display); letter-spacing: -0.045em; }
.login__tag { margin: 8px 0 26px; color: var(--ink-2); font-size: 14px; }
.login__title { margin: 0 0 6px; font: 700 20px/1.2 var(--f-display); }
.login__forgot { margin: 12px 0 0; text-align: center; font-size: 14px; }
.login__switch { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }
.login__hint { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.plain-card { width: min(100%, 520px); background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.plain-card h1 { margin: 0 0 10px; font: 750 28px/1.1 var(--f-display); letter-spacing: -0.02em; }
.plain-card p { color: var(--ink-2); }

/* ---------- Formulários ---------- */

.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 13px; }
fieldset.field { border: 0; padding: 0; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.radio, .check { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.radio input, .check input { width: 16px; height: 16px; accent-color: var(--ink); }

/* ---------- Admin ---------- */

.admin { background: var(--paper); }
.topbar--admin { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar--admin .brand { margin-right: 0; }
.adminnav { display: flex; gap: 2px; flex-wrap: wrap; margin-right: auto; }
.adminnav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.adminnav a:hover { color: var(--ink); background: rgb(255 255 255 / .55); }
.adminnav a[aria-current] { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.navmenu { position: relative; }
.navmenu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary:hover, .navmenu[open] > summary { color: var(--ink); background: rgb(255 255 255 / .55); }
.navmenu > summary.is-current { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.navmenu[open] .usermenu__chev { transform: rotate(180deg); }
.navmenu__panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 180px; padding: 6px; display: grid; gap: 2px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.adminnav .navmenu__panel a { display: block; }
.admin-main { max-width: 1360px; margin: 0 auto; padding: 26px var(--gutter) 72px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head .page-sub { max-width: 80ch; }
.back { display: inline-block; font-size: 14px; color: var(--ink-2); text-decoration: none; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.panel__title { margin: 0 0 12px; font: 700 17px/1.2 var(--f-display); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.list li:last-child { border-bottom: 0; }
.list a { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list a:hover { text-decoration: underline; }
.list__meta { display: flex; gap: 8px; align-items: center; flex: none; color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; display: grid; gap: 6px; }
.stat:hover { border-color: var(--line-strong); }
.stat__value { font: 750 34px/1 var(--f-display); letter-spacing: -0.03em; }
.stat__label { font-size: 13px; color: var(--ink-2); }

.table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); background: var(--sheet-2); white-space: nowrap; }
.table td a { font-weight: 600; text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.table .mono { white-space: nowrap; }
.w-check { width: 36px; }
.offer-cell { display: flex; align-items: center; gap: 12px; min-width: 280px; }
.offer-cell > span:last-child { display: grid; gap: 2px; min-width: 0; }
.offer-cell__thumb { flex: none; width: 44px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--paper); border: 1px solid var(--line-2); }
.offer-cell__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.offer-cell__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell-title { display: block; font-weight: 600; max-width: 520px; }
.inline-form { display: flex; gap: 8px; align-items: center; max-width: 460px; }

.status { display: inline-flex; align-items: center; font: 500 12px/1 var(--f-mono); padding: 5px 8px; border-radius: 5px; white-space: nowrap; }
td.status { display: table-cell; }
.status--published { background: var(--ok-bg); color: var(--ok); }
.status--draft { background: var(--paper); color: var(--ink-2); }
.status--busy { background: var(--info-bg); color: var(--focus); }
.status--error { background: var(--danger-bg); color: var(--danger); white-space: normal; }
.access { display: inline-flex; font: 500 12px/1 var(--f-mono); padding: 5px 8px; border-radius: 5px; white-space: nowrap; background: var(--paper); color: var(--ink-2); }
.access--lifetime, .access--active { background: var(--ok-bg); color: var(--ok); }
.access--expired, .access--blocked { background: var(--danger-bg); color: var(--danger); }
.access--admin { background: var(--admin-bg); color: var(--admin-ink); }

.bulkbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.bulkbar__info { margin: 0; margin-right: auto; color: var(--ink-2); }
.ignored { margin-top: 18px; color: var(--ink-2); }
.ignored ul { font-size: 12px; }

.form-narrow { max-width: 760px; }
.danger-zone { margin-top: 14px; }
.save-log { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.save-log__last { margin: 0; }
.save-log__changes { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12px; }
.save-log__more { margin-top: 8px; }
.save-log__more summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.save-log__list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }

/* Edição de oferta */
.edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
/* A caixa lateral fica parada na tela e rola por dentro; o botão Salvar fica sempre à vista no pé dela. */
.edit-aside { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
.edit-aside__save { position: sticky; bottom: -1px; z-index: 2; margin: 0 -20px -20px; padding: 12px 20px 20px; background: linear-gradient(transparent, var(--sheet) 14px); }
.edit-main .sec__panel { padding: 14px; }
.asec { --tab-line: color-mix(in srgb, var(--tab) 38%, var(--line)); margin-top: 26px; }
.asec .sec__label { font-size: 15px; padding: 9px 16px 8px; }

.dropzone {
  position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px; border-radius: 10px;
  border: 2px dashed var(--line); background: var(--sheet); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover { border-color: var(--line-strong); }
.dropzone.is-over { border-color: var(--focus); background: var(--focus-bg); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.dropzone--main { padding: 34px 24px; background: var(--sheet); border-color: var(--line-strong); }
.dropzone--main strong { font: 700 18px/1.2 var(--f-display); color: var(--ink); }
.dropzone--sm { padding: 12px; font-size: 14px; }

.queue { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.queue li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 13px; padding: 9px 12px; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; }
.queue .q__name { font-family: var(--f-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue .q__status { font-weight: 600; color: var(--ink-2); }
.queue progress { grid-column: 1 / -1; width: 100%; height: 4px; appearance: none; border: 0; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.queue progress::-webkit-progress-bar { background: var(--line-2); }
.queue progress::-webkit-progress-value { background: var(--focus); }
.queue progress::-moz-progress-bar { background: var(--focus); }
.queue .is-done .q__status { color: var(--ok); }
.queue .is-done progress::-webkit-progress-value { background: var(--ok); }
.queue .is-error { border-color: var(--danger-line); background: var(--danger-bg); }
.queue .is-error .q__status { color: var(--danger); white-space: normal; }

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; margin-top: 12px; }
.file { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sheet); display: flex; flex-direction: column; }
.file__thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; text-decoration: none; }
.file__thumb img, .file__thumb video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.file__icon { font: 700 18px/1 var(--f-mono); color: var(--ink-2); padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--sheet); }
.file__body { padding: 9px 10px 10px; display: grid; gap: 6px; font-size: 12px; min-width: 0; }
.file__kind { color: var(--ink-2); font-weight: 600; }
.transcript-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11.5px; }
.transcript-state__label { font-weight: 600; color: var(--ink-3); }
.transcript-state--completed .transcript-state__label { color: var(--ok); }
.transcript-state--error .transcript-state__label { color: var(--danger); }
.transcript-state--queued .transcript-state__label, .transcript-state--submitting .transcript-state__label, .transcript-state--processing .transcript-state__label { color: var(--ink-2); }
.transcript-state--submitting .transcript-state__label::before, .transcript-state--processing .transcript-state__label::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; vertical-align: -1px;
}
.transcript-state .linklike { font-size: 11.5px; text-decoration: underline; }
.transcript-state__error { font-size: 11px; color: var(--danger); overflow-wrap: anywhere; }
.asec__tools { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.file__label { height: 30px; font-size: 12px; padding: 0 8px; transition: border-color .2s, box-shadow .2s; }
.file__label.is-saved { border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.file__label.is-error { border-color: var(--danger); }
.file__name { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__actions { display: grid; gap: 6px; min-width: 0; }
.file__move { width: 100%; }
.file__buttons { display: flex; gap: 4px; align-items: center; }
.file__delete { margin-left: auto; }
.iconbtn { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: var(--sheet); cursor: pointer; display: grid; place-items: center; font-size: 13px; padding: 0; }
.iconbtn:hover:not([disabled]) { background: var(--paper); }
.iconbtn[disabled] { opacity: .35; cursor: default; }
.iconbtn--danger { color: var(--danger); }
.tagpick { display: flex; flex-wrap: wrap; gap: 4px; }
.tagpick .tag { height: 24px; font-size: 12px; padding: 0 8px; }

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
  .edit-layout { grid-template-columns: 1fr; }
  .edit-aside { position: static; order: -1; max-height: none; overflow: visible; }
}
@media (max-width: 720px) {
  .topbar { padding-top: 12px; }
  .brand__tag { display: none; }
  .tab { padding: 9px 12px 8px; font-size: 13px; }
  .drawer { padding-top: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card__body { padding: 10px 10px 12px; }
  .card__title { font-size: 15px; }
  .legend { display: none; }
  .sec__panel { padding: 12px; }
  .lb__bar { padding: 8px 8px 8px 12px; gap: 8px; flex-wrap: wrap; }
  .lb__meta { flex-basis: calc(100% - 100px); }
  .lb__tools { order: 5; flex-basis: 100%; overflow-x: auto; }
  .lb__stage { padding: 10px 10px 80px; }
  .lb__stage.has-transcript { flex-direction: column; overflow: auto; }
  .lb__stage.has-transcript > video { max-height: 55vh; flex: none; }
  .lb__transcript { flex: none; max-height: none; }
  .lb__nav { top: auto; bottom: 14px; margin-top: 0; width: 48px; height: 48px; }
  .lb__nav--prev { left: calc(50% - 60px); }
  .lb__nav--next { right: calc(50% - 60px); }
  .pv__stage { padding: 0; }
  .pv__stage iframe { border-radius: 0; }
  .adminnav { order: 3; flex-basis: 100%; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

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

/* Importador */
.table .path { display: block; white-space: normal; overflow-wrap: anywhere; }
#importer .chips { flex-wrap: nowrap; }
#importer td.status { white-space: nowrap; }

/* Compartilhar */
.share { position: relative; }
.share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn.share svg { width: 15px; height: 15px; }
.share[data-feedback]::after {
  content: attr(data-feedback); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: var(--ink); color: var(--on-ink); font: 600 12px/1 var(--f-body); padding: 7px 9px; border-radius: 6px;
  white-space: nowrap; pointer-events: none; z-index: 20; animation: lb-in .12s ease-out;
}
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.share-row .mono { color: var(--ink-2); }
.admin-head__side { display: grid; gap: 6px; justify-items: end; }
.share-note { margin: 0; font-size: 12px; color: var(--ink-3); text-align: right; }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row-actions .iconbtn { width: 32px; height: 32px; }
@media (max-width: 720px) {
  .admin-head__side { justify-items: start; }
  .share-note { text-align: left; }
}

/* Prévia pública (link compartilhado aberto por quem não é assinante) */
.page-teaser { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.teaser { width: min(100%, 960px); }
.teaser__tabs { display: flex; gap: 4px; padding-left: 20px; }
.teaser__tabs span { width: 48px; height: 12px; border-radius: 7px 7px 0 0; background: var(--tab); }
.teaser__card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--sheet);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.teaser__media { position: relative; min-height: 340px; background: var(--paper-2); }
.teaser__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(19 26 39 / 0) 45%, rgb(19 26 39 / .5)); }
.teaser__placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--paper) 0 14px, var(--paper-2) 14px 28px); }
.teaser__lock {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px; background: var(--glass); font-weight: 600; font-size: 13px;
}
.teaser__lock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.teaser__body { padding: 32px clamp(20px, 4vw, 44px) 30px; display: flex; flex-direction: column; gap: 14px; }
.teaser__body > * { margin: 0; }
.teaser__brand { display: flex; align-items: baseline; gap: 9px; }
.teaser__brand b { font: 800 24px/1 var(--f-display); letter-spacing: -0.04em; }
.teaser__brand span { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.teaser__body .eyebrow { margin: 6px 0 -4px; }
.teaser h1 { font: 750 clamp(26px, 3.4vw, 36px)/1.06 var(--f-display); letter-spacing: -0.025em; }
.teaser__meta { font-size: 14px; color: var(--ink-3); }
.teaser__meta b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.teaser__desc { color: var(--ink-2); font-size: 16px; }
.teaser__h2 { margin-top: 4px; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.teaser__list { list-style: none; padding: 0; display: grid; gap: 9px; }
.teaser__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; }
.teaser__list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--tab); transform: translateY(1px); }
.teaser__list b { font-weight: 600; }
.teaser__list span { color: var(--ink-2); }
.teaser__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.teaser__cta form { margin: 0; }
.teaser__note { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) {
  .teaser__card { grid-template-columns: 1fr; }
  .teaser__media { min-height: 0; aspect-ratio: 4 / 3; }
  .teaser__cta .btn { flex: 1 1 auto; }
}

/* Edição de oferta: links com "Abrir", publicação agendada, colar print */
.input-group { display: flex; gap: 6px; align-items: center; }
.input-group .input { flex: 1; min-width: 0; }
.input-group .btn { flex: none; height: 40px; }
.publish-when { display: grid; gap: 8px; margin: 2px 0 0 24px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.publish-when .input[disabled] { opacity: .5; }
.status--scheduled { background: var(--warn-bg); color: var(--warn); }
.status--public { background: var(--info-bg); color: var(--s-checkout); margin-left: 4px; }
kbd { font: 500 11px/1 var(--f-mono); padding: 2px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--sheet); color: var(--ink-2); }

.paste-dialog { width: min(100% - 32px, 560px); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); color: var(--ink); }
.paste-dialog::backdrop { background: rgb(11 15 23 / .55); }
.paste-dialog form { display: grid; gap: 16px; }
.paste-dialog__title { margin: 0; font: 700 20px/1.2 var(--f-display); }
.paste-dialog__preview { display: flex; gap: 8px; overflow-x: auto; }
.paste-dialog__preview img { height: 140px; width: auto; max-width: 100%; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.paste-dialog__sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.paste-choice {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; cursor: pointer; text-align: left;
  border: 1px solid color-mix(in srgb, var(--tab) 40%, var(--line)); background: color-mix(in srgb, var(--tab) 8%, var(--sheet));
  font: 600 14px/1.2 var(--f-body); color: var(--ink);
}
.paste-choice::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--tab); }
.paste-choice:hover, .paste-choice:focus-visible { background: color-mix(in srgb, var(--tab) 18%, var(--sheet)); border-color: var(--tab); }
.confirm-dialog { width: min(100% - 32px, 420px); background: var(--sheet); }
.confirm-dialog__text { margin: 0; color: var(--ink-2); line-height: 1.5; }
.confirm-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.paste-dialog__foot { display: flex; justify-content: flex-end; }
.tag-hash { font: 600 15px/1 var(--f-mono); color: var(--ink-3); }
.cell-sub { display: block; font-size: 12px; margin-top: 2px; }
.teaser__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Imagens das páginas HTML salvas (edição da oferta, só admin) */
.html-images { margin-top: 30px; }
.html-images:empty { display: none; }
.html-images details { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; }
.html-images summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.html-images summary::-webkit-details-marker { display: none; }
.html-images summary::before { content: "▸"; color: var(--ink-3); transition: transform .15s; }
.html-images details[open] summary::before { transform: rotate(90deg); }
.html-images__title { font: 700 16px/1.2 var(--f-display); }
.html-images__toolbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 18px; background: var(--sheet); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.html-images__toolbar .check { margin-right: auto; font-weight: 600; }
.html-images__toolbar .select { height: 34px; font-size: 13px; }
.html-images__note { flex-basis: 100%; font-size: 13px; color: var(--ok); }
.html-images__group { padding: 16px 18px 4px; }
.html-images__from { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 700 14px/1 var(--f-display); }
.html-images__from::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tab); }
.html-images__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.html-images__empty { margin: 0; padding: 24px 18px; color: var(--ink-3); }

.himg { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sheet); }
.himg.is-selected { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus-ring); }
.himg__top { display: flex; align-items: center; gap: 5px; padding: 8px; flex-wrap: wrap; }
.himg__check { width: 16px; height: 16px; accent-color: var(--focus); margin: 0 2px 0 0; }
.himg__badge { font: 500 11px/1 var(--f-mono); padding: 4px 6px; border-radius: 5px; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.himg__tools { display: inline-flex; gap: 2px; margin-left: auto; }
.himg__tool { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; border: 0; background: none; color: var(--ink-2); font-size: 14px; text-decoration: none; cursor: pointer; }
.himg__tool:hover { background: var(--paper); color: var(--ink); }
.himg__view {
  display: block; width: 100%; aspect-ratio: 1; padding: 6px; border: 0; cursor: zoom-in;
  background: repeating-conic-gradient(var(--checker-a) 0% 25%, var(--checker-b) 0% 50%) 50% / 16px 16px; /* xadrez: mostra transparência */
}
.himg__view img { width: 100%; height: 100%; object-fit: contain; }
.himg__foot { display: grid; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--line-2); }
.himg__name { font: 11px/1.3 var(--f-mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.himg__used { justify-self: start; font: 600 11px/1 var(--f-body); padding: 5px 7px; border-radius: 5px; background: var(--ok-bg); color: var(--ok); }
.himg__foot .btn { justify-self: stretch; }

.zoom-dialog { width: min(100% - 32px, 1100px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 12px; background: #0F1520; color: #fff; overflow: hidden; }
.zoom-dialog::backdrop { background: rgb(11 15 23 / .8); }
.zoom-dialog__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.zoom-dialog__meta { flex: 1; min-width: 0; font: 12px/1.3 var(--f-mono); color: rgb(255 255 255 / .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-dialog__bar .btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .25); }
.zoom-dialog__stage { max-height: calc(100vh - 100px); overflow: auto; display: grid; place-items: center; padding: 14px; }
.zoom-dialog__stage img { max-width: 100%; height: auto; background: repeating-conic-gradient(#e9edf2 0% 25%, #fff 0% 50%) 50% / 16px 16px; }

/* Filtros com várias opções (menu com caixinhas) */
.ms { position: relative; }
.ms > summary { list-style: none; display: inline-flex; align-items: center; min-width: 180px; max-width: 260px; line-height: 38px; cursor: pointer; user-select: none; }
.ms > summary::-webkit-details-marker { display: none; }
.ms__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms.is-active > summary { border-color: var(--ink); font-weight: 600; }
.ms[open] > summary { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.ms__panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 290px; max-width: calc(100vw - 32px);
  display: grid; gap: 8px; padding: 8px; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.ms__search { height: 34px; font-size: 14px; }
.ms__title { margin: 2px 8px 4px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ms__opt input[type="radio"] { accent-color: var(--ink); }
.datefilter > summary { min-width: 150px; }
.datefilter__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 8px 10px; }
.datefilter__range[hidden] { display: none; }
.datefilter__range label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.datefilter__range .input { height: 34px; padding: 0 8px; font-size: 13px; }
.filters .viewswitch button { width: 34px; padding: 0; justify-content: center; }
.filters .viewswitch button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 641px) {
  .filters .ms > summary { min-width: 150px; }
  .filters .datefilter > summary { min-width: 130px; }
}
.sortby .select { min-width: 150px; }
.filters__end { display: flex; align-items: center; gap: 8px 12px; margin-left: auto; flex-wrap: wrap; }
.sortby { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }

.ms__list { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.ms__opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.ms__opt:hover { background: var(--paper); }
.ms__opt[hidden] { display: none; }
.ms__opt input { flex: none; width: 16px; height: 16px; accent-color: var(--ink); }
.ms__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms__opt .count { margin-left: auto; }
.ms__foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 0; border-top: 1px solid var(--line-2); }
.ms__foot .linklike { font-size: 13px; }

.active-filters { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: -12px 0 22px; }
.chip--x { text-decoration: none; color: var(--ink); background: var(--sheet); gap: 6px; }
.chip--x span { color: var(--ink-3); font-size: 14px; line-height: 1; }
.chip--x:hover { border-color: var(--ink-3); }
.chip--x:hover span { color: var(--danger); }
@media (max-width: 720px) {
  .ms { flex: 1 1 140px; }
  .ms > summary { min-width: 0; max-width: none; width: 100%; }
}
.import-state { min-width: 220px; }
.import-state > * + * { margin-top: 6px; }
.import-state__offer { display: block; font-size: 12px; color: var(--ink-2); }
.import-state .select { display: block; width: 100%; max-width: 220px; }
.queue .is-warning { border-color: var(--warn-line); background: var(--warn-bg); }
.queue .is-warning .q__status a { color: var(--warn); font-weight: 600; }

/* Topo: botão de tema e menu do usuário */
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; color: var(--ink-2); }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.usermenu { position: relative; }
.usermenu > summary {
  list-style: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); color: var(--ink); font-weight: 600; font-size: 14px;
}
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover, .usermenu[open] > summary { border-color: var(--line-strong); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 700 12px/1 var(--f-body); letter-spacing: .02em; }
.usermenu__chev { width: 10px; height: 6px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; transition: transform .15s; }
.usermenu[open] .usermenu__chev { transform: rotate(180deg); }
.usermenu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 250px; padding: 6px; display: grid;
  background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.usermenu__who { margin: 0 0 4px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line-2); display: grid; gap: 2px; }
.usermenu__who strong { font-size: 14px; color: var(--ink); }
.usermenu__who span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.usermenu__panel form { margin: 0; }
.usermenu .usermenu__item { display: block; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; font: 600 14px/1.2 var(--f-body); color: var(--ink-2); text-decoration: none; cursor: pointer; }
.usermenu .usermenu__item:hover { background: var(--paper); color: var(--ink); }
.usermenu .usermenu__item--out { color: var(--danger); }
.usernav { gap: 12px; }
@media (max-width: 720px) { .usermenu__name { display: none; } .usermenu > summary { padding-right: 8px; } }

/* Minha conta */
.account { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; align-items: start; max-width: 1100px; }
.account__card .flash { margin-bottom: 12px; }
.account__meta { margin: 0; font-size: 13px; color: var(--ink-3); }
.account__facts { display: grid; gap: 14px; margin: 0 0 18px; }
.account__facts dt { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }
.account__facts dd { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.input[readonly] { background: var(--sheet-2); color: var(--ink-2); cursor: default; }
.access--none { background: var(--paper); color: var(--ink-2); }
.days { font: 600 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 5px; background: var(--ok-bg); color: var(--ok); }
.days--soon { background: var(--warn-bg); color: var(--warn); }
.days--over { background: var(--danger-bg); color: var(--danger); }

/* Regras da senha: só aparece o que falta */
.pw-rules { display: grid; gap: 4px; font-size: 13px; }
.pw-rules[hidden] { display: none; }
.pw-rules__title { color: var(--ink-3); }
.pw-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pw-rules li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.pw-rules li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); flex: none; }
.pw-rules__ok { color: var(--ok); font-weight: 600; }

/* ---------- Assistente de preenchimento (IA) ---------- */
.assistant { margin: 0 0 18px; padding: 0; }
.assistant__summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; }
.assistant__summary::-webkit-details-marker { display: none; }
.assistant__summary::before { content: "▸"; color: var(--ink-3); transition: transform .15s; }
.assistant[open] > .assistant__summary::before { transform: rotate(90deg); }
.assistant__title { font-weight: 700; }
.assistant__body { display: grid; gap: 10px; padding: 0 18px 18px; }
.assistant__steps { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.assistant__label { font-weight: 600; font-size: 14px; margin-top: 4px; }
.assistant__prompt { font-size: 12px; line-height: 1.5; }
.assistant__result { display: grid; gap: 10px; }
.assistant__result .flash { margin: 0; }
.ai-suggestion { border: 1px solid color-mix(in srgb, #C9A227 45%, var(--line)); background: color-mix(in srgb, #C9A227 8%, var(--sheet)); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; font-size: 14px; }
.ai-suggestion__field { margin: 0; font-weight: 700; }
.ai-suggestion dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.ai-suggestion dt { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.ai-suggestion dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-suggestion__new { font-weight: 600; }
.ai-suggestion__reason { margin: 0; color: var(--ink-2); font-size: 13px; }
.ai-suggestion__reason:empty { display: none; }
.ai-filled { border-color: var(--ok) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent) !important; }
.ai-changed { border-color: #C9A227 !important; box-shadow: 0 0 0 3px rgb(201 162 39 / .22) !important; }

/* ---------- Plano gratuito: cadeados, desfoque e faixa do plano ---------- */
.planbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 13.5px; color: var(--ink-2);
}
.planbar__tag { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); padding: 5px 7px; border-radius: 5px; }
.planbar__text { flex: 1 1 260px; }
.planbar__text b { color: var(--ink); }
.lock-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; background: rgb(19 26 39 / .85); color: #fff; padding: 5px 8px; border-radius: 6px;
}
.card--section .lock-badge { top: 10px; bottom: auto; }
.thumb--locked { position: relative; display: block; cursor: pointer; overflow: hidden; }
.thumb--locked img { filter: saturate(.85); }
.thumb__ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--paper) 0 12px, var(--sheet) 12px 24px); }
.thumb__lock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12px; font-weight: 700; background: rgb(19 26 39 / .85); color: #fff; padding: 6px 10px; border-radius: 999px;
}
.doc__excerpt--fade { -webkit-line-clamp: unset; display: block; max-height: 10.5em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.lock-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.lock-note:hover { color: var(--ink); text-decoration: underline; }
.lockbox {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); scroll-margin-top: 80px;
}
.lockbox__text { flex: 1 1 340px; }
.lockbox__text p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.lockbox__text .lockbox__title { margin-bottom: 4px; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.lockbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lockbox__actions form { margin: 0; }
.lockbox__credits { font-weight: 500; color: var(--ink-3); }

/* ---------- Termos e privacidade ---------- */
.plain-card.legal { width: min(100%, 760px); line-height: 1.65; font-size: 15px; }
.legal h2 { margin: 26px 0 8px; font: 700 18px/1.3 var(--f-display); }
.legal ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.legal p { margin: 8px 0; color: var(--ink-2); }
.legal li { color: var(--ink-2); }
.legal .eyebrow a { text-decoration: none; }
.legal__date { font-size: 13px; color: var(--ink-3) !important; }
.legal__foot { margin-top: 28px !important; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13px; }
.site-foot { padding: 28px var(--gutter) 36px; text-align: center; font-size: 13px; color: var(--ink-3); }
.site-foot a { color: var(--ink-3); }
.site-foot a:hover { color: var(--ink); }
.login__legal { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.login__legal a { color: var(--ink-3); }
.check--terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.check--terms input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--ink); }
.account__card--danger { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.account__card--danger .panel__title { color: var(--danger); }
.turnstile { min-height: 65px; }
.resend-form { display: grid; gap: 10px; }
