/* tokens copiados da repostore.shop (os mesmos da landing) */
:root {
  --ink: #30343b; --ink-soft: #5f6671; --muted: #8b939f;
  --line: #e6eaf0; --line-strong: #dce2ea;
  --paper: #ffffff; --mist: #f6f8fb;
  --brand: #1677f4; --brand-dark: #1264cf; --brand-pale: #edf5ff;
  --green: #13a775; --green-pale: #e7f7f1;
  --amber: #b7791f; --amber-pale: #fdf4e3;
  --red: #d64545; --red-pale: #fdeeee;
  --font: Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,40,80,.04), 0 8px 24px rgba(20,40,80,.06);
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--mist); line-height: 1.5; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { height: 30px; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .4; } }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(22,119,244,.22); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: var(--brand-pale); border-color: transparent; }
.btn--danger:hover { border-color: var(--red); color: var(--red); }
.link { color: var(--brand); font-weight: 500; cursor: pointer; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* formulários */
.field { display: grid; gap: 8px; }
.label { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label small { font-weight: 500; color: var(--muted); font-size: 12px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 14px; padding: 12px 14px; outline: none; transition: .15s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-pale); }
.textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.hint { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.hint--ok { color: var(--green); }
.error-box { background: var(--red-pale); color: var(--red); border-radius: 12px; padding: 10px 14px; font-size: 13px; }

/* seletor segmentado (proporção, duração) */
.seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 5px; }
.seg button { flex: 1 1 0; min-width: 52px; height: 40px; border: 0; background: transparent; border-radius: 11px; font-weight: 600; color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: .15s; }
.seg button:hover { color: var(--brand); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--brand); box-shadow: 0 1px 2px rgba(20,40,80,.08), 0 0 0 1px var(--line-strong); }
.ratio { display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; }

/* casca: barra lateral + conteúdo */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--paper); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 0 8px; }
.brand img { height: 24px; }
.brand span { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--brand-pale); color: var(--brand); }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--ink-soft); font-weight: 500; transition: .15s; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-pale); color: var(--brand); font-weight: 600; }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; }
.side__foot { margin-top: auto; display: grid; gap: 10px; }
.keycard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; font-size: 12.5px; }
.keycard b { font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.keycard .dot { color: var(--green); }
.user { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user .btn { width: 36px; padding: 0; flex: none; }
.user .btn svg { width: 17px; height: 17px; }

.main { min-width: 0; padding: 32px 36px 56px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.page-head p { color: var(--ink-soft); margin-top: 2px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card--pad { padding: 24px; }

/* topo no celular */
.topbar { display: none; }

/* visão geral */
.eyebrow { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--brand); text-transform: uppercase; }
.page-head .eyebrow { margin-bottom: 4px; }
.page-head p b { font-weight: 600; color: var(--ink); }
.promo { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 20px; background: var(--brand-pale); border-color: #cfe3ff; flex-wrap: wrap; }
.promo .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.promo .ico svg { width: 22px; height: 22px; }
.promo > div:nth-child(2) { flex: 1; min-width: 220px; }
.promo b { font-weight: 600; }
.promo p { color: var(--ink-soft); font-size: 13px; }
.overview { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.credits, .plan-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.credits .eyebrow, .plan-card .eyebrow { color: var(--muted); }
.credits__value { font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--brand); }
.credits p, .plan-card p { color: var(--ink-soft); }
.meter { width: 100%; display: grid; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.meter__head { display: flex; justify-content: space-between; gap: 12px; }
.meter__head b { color: var(--ink); font-weight: 600; }
.meter__bar { height: 8px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.credits .actions { margin-top: auto; padding-top: 8px; }
.plan-card__name { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.plan-card ul { list-style: none; padding: 12px 0 0; margin: 4px 0; width: 100%; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; }
.plan-card li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 10px; }
.plan-card .link { margin-top: auto; }
.stat .eyebrow { color: var(--muted); font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { padding: 20px; display: grid; gap: 4px; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.stat b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.stat b.brand { color: var(--brand); }
.stat small { font-size: 12px; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.quick a { display: flex; align-items: center; gap: 16px; padding: 22px; transition: .15s; }
.quick a:hover { border-color: var(--brand); transform: translateY(-1px); }
.quick .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-pale); color: var(--brand); display: grid; place-items: center; flex: none; }
.quick .ico svg { width: 24px; height: 24px; }
.quick h3 { font-size: 16px; font-weight: 600; }
.quick p { color: var(--ink-soft); font-size: 13px; }
.quick .arrow { margin-left: auto; color: var(--brand); font-size: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.section-title h2 { font-size: 17px; font-weight: 600; }

/* geração: formulário à esquerda, prévia à direita */
.gen { display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 24px; align-items: start; }
.gen > * { min-width: 0; }
.seg[data-seg="aspect_ratio"] { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg[data-seg="duration"] { flex-wrap: nowrap; }
.seg[data-seg="duration"] button { min-width: 0; padding: 0 2px; }
.gen__form { padding: 24px; display: grid; gap: 22px; }
.gen__foot { display: grid; gap: 10px; padding: 16px 24px 20px; margin: 0 -24px -24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; z-index: 2; background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); }
.foot-summary { font-size: 13px; font-weight: 600; }
.free-note { background: var(--brand-pale); color: var(--ink); border: 1px solid #cfe3ff; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.free-note b { font-weight: 600; color: var(--brand); }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.ideas button { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: .15s; }
.ideas button:hover { border-color: var(--brand); color: var(--brand); }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-head .eyebrow { color: var(--muted); }
.pill-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.cost { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.cost b { color: var(--ink); }
.gen__preview { position: sticky; top: 24px; display: grid; gap: 16px; }
.stage { border-radius: var(--radius); overflow: hidden; background: #0f1729; display: grid; place-items: center; position: relative; min-height: 280px; }
.stage video, .stage img { width: 100%; max-height: 68vh; object-fit: contain; background: #0f1729; }
.stage--empty { background: var(--paper); border: 1.5px dashed var(--line-strong); color: var(--muted); text-align: center; padding: 40px 24px; }
.stage--empty svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--line-strong); }
.stage--empty h3 { color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.progress { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: #fff; text-align: center; padding: 24px; background: radial-gradient(circle at 30% 70%, rgba(94,200,255,.35), transparent 50%), linear-gradient(135deg, #0b3d91, #1677f4 55%, #5ec8ff); }
.progress::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); background-size: 200% 100%; animation: shine 2.2s linear infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.progress b { font-size: 18px; font-weight: 600; z-index: 1; }
.progress span { font-size: 13px; opacity: .85; z-index: 1; }
.bar { width: min(280px, 80%); height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; z-index: 1; }
.bar i { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width 1s linear; }
.failed { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 24px; background: var(--red-pale); color: var(--red); }
.failed b { font-size: 16px; }
.failed span { color: var(--ink-soft); font-size: 13px; max-width: 360px; }
.stage-meta { padding: 16px 18px; display: grid; gap: 12px; }
.stage-meta p { color: var(--ink-soft); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.queue { display: grid; gap: 8px; }
.queue h4 { font-size: 13px; color: var(--muted); font-weight: 600; }
.qitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; text-align: left; width: 100%; }
.qitem:hover, .qitem[aria-current="true"] { border-color: var(--brand); }
.qitem p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

/* referências */
.drop { display: grid; justify-items: center; gap: 2px; border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-pale); color: var(--brand); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,23,41,.7); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.file-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* status */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--done { background: var(--green-pale); color: var(--green); }
.badge--queued, .badge--generating { background: var(--brand-pale); color: var(--brand); }
.badge--generating::before { animation: pulse .8s ease-in-out infinite alternate; }
.badge--failed { background: var(--red-pale); color: var(--red); }
.badge--expired { background: var(--mist); color: var(--muted); }

/* biblioteca */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filters .seg { flex: none; }
.filters .seg button { flex: none; padding: 0 16px; height: 36px; }
.filters .search { flex: 1; min-width: 200px; position: relative; }
.filters .search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }
.filters .search .input { padding-left: 40px; height: 46px; border-radius: 999px; }
.filters .select { width: auto; height: 46px; border-radius: 999px; padding: 0 38px 0 16px; appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b939f' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { overflow: hidden; cursor: pointer; transition: .15s; display: flex; flex-direction: column; text-align: left; padding: 0; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #0f1729; display: grid; place-items: center; color: rgba(255,255,255,.7); }
.tile__media img, .tile__media video { width: 100%; height: 100%; object-fit: cover; }
.tile__media .kind { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(15,23,41,.55); color: #fff; backdrop-filter: blur(6px); }
.tile__media .dur { position: absolute; bottom: 10px; right: 10px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(15,23,41,.65); color: #fff; }
.tile__media.pending { background: linear-gradient(135deg, #0b3d91, #1677f4 55%, #5ec8ff); }
.tile__media.failed-bg { background: var(--red-pale); color: var(--red); }
.tile__media.expired-bg { background: var(--mist); color: var(--muted); font-size: 12.5px; text-align: center; padding: 16px; }
.tile__body { padding: 14px; display: grid; gap: 8px; }
.tile__body p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.tile__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.more { display: flex; justify-content: center; margin-top: 24px; }
.empty { text-align: center; padding: 56px 24px; color: var(--ink-soft); display: grid; gap: 8px; justify-items: center; }
.empty h3 { color: var(--ink); font-size: 17px; font-weight: 600; }
.empty svg { width: 44px; height: 44px; color: var(--line-strong); margin-bottom: 4px; }
.empty .actions { margin-top: 10px; justify-content: center; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,41,.55); display: grid; place-items: center; padding: 24px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--paper); border-radius: 22px; display: grid; grid-template-columns: 1.5fr 1fr; }
.modal__media { background: #0f1729; display: grid; place-items: center; min-height: 320px; position: relative; }
.modal__media video, .modal__media img { width: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.modal__side { padding: 24px; display: grid; gap: 18px; align-content: start; position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 18px; line-height: 1; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.dl dt { color: var(--muted); }
.prompt-full { font-size: 14px; white-space: pre-wrap; background: var(--mist); border-radius: 12px; padding: 12px 14px; max-height: 220px; overflow: auto; }

/* login e ativação */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; background: var(--paper); }
.auth::before, .auth::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .45; z-index: 0; }
.auth::before { background: #9cc6ff; top: -220px; left: -160px; }
.auth::after { background: #c9dcff; bottom: -220px; right: -200px; }
.auth__box { width: min(420px, 100%); padding: 36px 32px; display: grid; gap: 22px; position: relative; z-index: 1; }
.auth__box .brand { justify-content: center; padding: 0; }
.auth__box h1 { font-size: 22px; font-weight: 600; text-align: center; letter-spacing: -.01em; }
.auth__box > p { text-align: center; color: var(--ink-soft); margin-top: -12px; }
.auth__alt { text-align: center; font-size: 13px; color: var(--ink-soft); }
.steps-mini { display: grid; gap: 10px; font-size: 13px; color: var(--ink-soft); background: var(--mist); border-radius: 14px; padding: 14px 16px; }
.steps-mini li { display: flex; gap: 10px; }
.steps-mini b { width: 20px; height: 20px; flex: none; border-radius: 6px; background: var(--brand-pale); color: var(--brand); display: grid; place-items: center; font-size: 11px; }
.steps-mini ol { list-style: none; padding: 0; display: grid; gap: 8px; }
.activate { max-width: 560px; }
.activate .card--pad { display: grid; gap: 20px; }

/* checkout */
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--brand-pale); border-radius: 14px; padding: 14px 16px; }
.summary b { display: block; font-weight: 600; }
.summary small { color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.summary strong { color: var(--brand); font-size: 18px; font-weight: 700; white-space: nowrap; }
.qr { width: 220px; height: 220px; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; image-rendering: pixelated; }
.pix-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--ink-soft); background: var(--mist); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; max-height: 76px; overflow: auto; user-select: all; }
.paid-mark { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: var(--green-pale); color: var(--green); display: grid; place-items: center; }
.paid-mark svg { width: 30px; height: 30px; }

/* termos e privacidade */
.legal-page { background: var(--paper); }
.legal { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.legal .brand { padding: 0; margin-bottom: 32px; color: var(--ink); }
.legal h1 { font-size: clamp(28px, 5vw, 36px); font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.2; }
.legal__date { font-size: 13px; color: var(--muted); margin: 6px 0 24px; }
.legal h2 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 32px 0 8px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin-bottom: 12px; display: grid; gap: 6px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--brand); }
.legal a:hover { text-decoration: underline; }

/* avisos */
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: 360px; animation: fade .2s; }
.toast--error { background: var(--red); }
.toast--ok { background: var(--green); }

.skeleton { background: linear-gradient(90deg, var(--mist), #eef1f6, var(--mist)); background-size: 200% 100%; animation: shine 1.4s linear infinite; border-radius: 10px; }

@media (max-width: 1100px) {
  .gen { grid-template-columns: minmax(0, 1fr); }
  .gen__preview { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); flex-direction: column; }
  .topbar__row { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; }
  .topbar .nav { display: flex; overflow-x: auto; gap: 4px; padding: 0 12px 10px; scrollbar-width: none; }
  .topbar .nav a { height: 36px; flex: none; font-size: 13px; padding: 0 12px; }
  .topbar .nav svg { width: 16px; height: 16px; }
  .main { padding: 20px 16px 48px; }
  .quick { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal__box { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 92vh; }
  .modal__media { min-height: 220px; }
}
@media (max-width: 520px) {
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 22px; }
  .gen__form { padding: 18px; }
  .gen__foot { padding: 14px 18px 16px; margin: 0 -18px -18px; }
  .seg button { min-width: 44px; font-size: 13px; }
  .auth__box { padding: 28px 20px; }
  .filters .seg { width: 100%; }
  .filters .seg button { flex: 1; }
  #toasts { left: 16px; right: 16px; bottom: 16px; }
}
