/* Direção Core (docs/05): editorial limpa, grafite/off-white, verde #0E6558, lima A VALIDAR.
   Fonte de sistema até a fonte licenciada ser fornecida. */
:root {
  --bg: #f1f1ec;
  --paper: #fbfbf8;
  --ink: #1f2221;
  --muted: #62665f;
  --line: #c9cbc3;
  --green: #0e6558;
  --green-ink: #0a4a40;
  --lime: #d8f26a; /* a validar com Wilker */
  --warn-bg: #fbf1d6;
  --warn-ink: #6b4d00;
  --bad-bg: #f9e1dc;
  --bad-ink: #8a2414;
  --ok-bg: #dcefe6;
  --radius: 2px;
  --gap: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.45; }
a { color: var(--green-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px clamp(16px, 4vw, 48px); background: var(--ink); color: #eeefe9; }
.brand { color: #eeefe9; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 1.05rem; }
.tag { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid #6d716a; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #cfd1c9; text-decoration: none; padding: 6px 12px; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--lime); }
.status { margin: 0 0 0 auto; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #b9bcb3; }
.status.bad { color: #ffb4a3; }

main { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 48px) 60px; min-height: 60vh; }
main:focus { outline: none; }
.foot { max-width: 1180px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px) 40px; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line); }
code, .mono { font-family: var(--mono); font-size: 0.86em; }

h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; margin: 0 0 10px; }
h2 { font-size: 1.3rem; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.lede { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.eyebrow a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

.stack { display: grid; gap: var(--gap); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; }
.cols { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.grid2 { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel > :last-child { margin-bottom: 0; }
section + section { margin-top: 28px; }

button, .btn { font: inherit; font-size: 0.9rem; padding: 9px 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover:not(:disabled), .btn:hover { background: #e3e4dd; }
button.primary, .btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--green-ink); }
button.danger { border-color: var(--bad-ink); color: var(--bad-ink); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.link { border: 0; padding: 0; color: var(--green-ink); text-decoration: underline; background: none; }

label { display: grid; gap: 5px; font-size: 0.82rem; color: var(--muted); }
label.inline { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 0.9rem; }
input[type="text"], input[type="number"], select, textarea { font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid #9da097; border-radius: var(--radius); padding: 8px 10px; width: 100%; min-width: 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }
textarea { font-family: var(--mono); font-size: 0.82rem; min-height: 180px; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: #ecede7; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }

.chip { display: inline-block; font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 7px; border: 1px solid var(--line); border-radius: var(--radius); white-space: nowrap; color: var(--muted); background: var(--paper); }
.chip.ok { background: var(--ok-bg); border-color: #9ccab6; color: var(--green-ink); }
.chip.draft { background: var(--warn-bg); border-color: #e0c877; color: var(--warn-ink); }
.chip.lock { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.rec { border-style: dashed; }
.chip.bad { background: var(--bad-bg); border-color: #e0a69a; color: var(--bad-ink); }

.notice { border-left: 4px solid var(--line); background: var(--paper); padding: 12px 14px; border-radius: var(--radius); }
.notice.ok { border-left-color: var(--green); background: var(--ok-bg); }
.notice.warn { border-left-color: #c79a12; background: var(--warn-bg); }
.notice.bad { border-left-color: var(--bad-ink); background: var(--bad-bg); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice strong { display: block; margin-bottom: 4px; }
.fix { font-size: 0.88rem; margin-top: 6px; }

.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 9px 16px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); font-weight: 600; }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list > li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.list .title { font-weight: 600; text-decoration: none; color: var(--ink); }
.list .title:hover { text-decoration: underline; }
.list .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.empty { padding: 26px 18px; border: 1px dashed #a9aca3; border-radius: var(--radius); color: var(--muted); background: var(--paper); }

table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
.scroll { overflow-x: auto; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td input[type="number"] { width: 96px; }
tr.group th { background: #e9eae3; color: var(--ink); }
tr.off td { color: var(--muted); }

/* Linha do tempo esquemática */
.timeline { display: flex; height: 56px; border: 1px solid var(--ink); background: #fff; }
.timeline .seg { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.72rem; color: #fff; background: var(--green); border-right: 2px solid var(--paper); overflow: hidden; white-space: nowrap; min-width: 0; padding: 0 4px; }
.timeline .seg:nth-child(even) { background: var(--green-ink); }
.timeline .seg:last-child { border-right: 0; }
.timeline .seg.changed { background: #b3871a; }
.strip { position: relative; height: 30px; border: 1px solid var(--line); background: repeating-linear-gradient(90deg, #e6e7e0 0 6px, #eeefe9 6px 12px); }
.strip .ann { position: absolute; top: 0; bottom: 0; background: #cfd2c7; border-left: 1px solid #8d9086; border-right: 1px solid #8d9086; }
.strip .use { position: absolute; top: 5px; bottom: 5px; background: var(--green); opacity: 0.9; }
.strip .use.changed { background: #b3871a; }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); margin-top: 4px; }

details { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
details > summary { padding: 11px 14px; cursor: pointer; font-weight: 600; }
details > .inner { padding: 0 14px 14px; }

dialog { border: 1px solid var(--ink); border-radius: var(--radius); padding: 0; max-width: min(640px, 92vw); width: 100%; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(20, 22, 21, 0.55); }
dialog .inner { padding: 22px; display: grid; gap: 14px; }
dialog .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
  .status { margin-left: 0; width: 100%; }
  th, td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: no-preference) { button, .btn { transition: background 0.12s; } }

/* Exportação para o Premiere: nota e avisos sob o botão. */
.premiere-note { max-width: 44ch; margin: 0; }
.premiere-note span { display: block; }
.premiere-note .warn-line { color: #8a4b00; }

/* Vitrine de modelos de vídeo: categorias → tipos de edição com prévia. */
.stack.wide { gap: 36px; }
.model-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.model-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 12px; align-content: start; }
.model-card .title { font-weight: 600; text-decoration: none; }
.model-card p { margin: 4px 0 0; }
.preview { aspect-ratio: 9 / 16; max-height: 360px; width: 100%; background: #16181a; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.preview video, .preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.preview.none { background: repeating-linear-gradient(135deg, #e7e8e2 0 10px, #dedfd8 10px 20px); color: var(--muted); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.preview.big { max-height: 420px; }
.bad-text { color: var(--bad-ink); }

/* Abas de categoria com que o editor abre. */
.tabs.big { margin-bottom: 28px; }
.tabs.big a { font-size: 1.15rem; padding: 12px 22px; display: inline-flex; align-items: baseline; gap: 8px; }
.tabs.big .count { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.model-card.free { border-style: dashed; }

/* Animation Minimal: palco e lista de símbolos sugeridos. */
.motion-host { width: 100%; max-width: 360px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #16181a; }
.motion-host.f-16x9 { max-width: 100%; }
.motion-host.f-1x1, .motion-host.f-4x5 { max-width: 420px; }
.motion-stage { display: block; width: 100%; height: auto; }
.preview.live { background: #F3F2EE; }
.preview.live .motion-stage { width: 100%; height: 100%; }
.swatches { display: flex; gap: 10px; align-items: center; padding: 2px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); padding: 0; cursor: pointer; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-transform: none; letter-spacing: 0; font-family: inherit; }
.pick.on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pick img { width: 64px; height: 48px; object-fit: contain; }
.pick span { display: grid; gap: 2px; }

/* Animation Minimal: lista de cenas do roteiro e andamento da exportação. */
.scene-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: cena; }
.scene { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; counter-increment: cena; }
.scene.missing { border-style: dashed; }
.scene-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.scene-head img { width: 64px; height: 48px; object-fit: contain; }
.scene-none { width: 64px; height: 48px; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--muted); font-family: var(--mono); }
.scene-text { margin: 0 0 2px; }
.scene-text::before { content: counter(cena) " · "; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.scene-head p { margin: 0; }
.scene-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
progress { width: 100%; height: 10px; accent-color: var(--green); }

/* Área de cada navegação: não altera o layout da página. */
.route { display: contents; }

/* Sequência fundida: o fundo dá o tamanho; as cenas ficam empilhadas sobre ele. */
.motion-host { position: relative; }
.motion-host > .motion-slot { position: absolute; inset: 0; }
.motion-host > .motion-slot.motion-bg { position: relative; }

/* Narrativas: lista de trechos clicável; o trecho que está tocando fica marcado. */
.beat-jump { display: grid; gap: 4px; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-transform: none; letter-spacing: 0; color: inherit; }
.scene.now { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

/* Animation flat: começar um projeto */
.step { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.72em; vertical-align: 0.12em; }
.style-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.style-card { display: grid; gap: 8px; align-content: start; text-align: left; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit; color: inherit; }
.style-card .preview { max-height: 250px; pointer-events: none; }
.style-card .title { font-weight: 600; font-size: 1.1rem; }
.style-card[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.style-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.grid-main { display: grid; gap: 20px 28px; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
@media (max-width: 760px) { .grid-main { grid-template-columns: 1fr; } }
.phrase-list { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; font-size: 0.92rem; color: var(--muted); max-height: 260px; overflow: auto; }
.label { display: block; margin-bottom: 6px; }
label.check { display: inline-flex; align-items: center; gap: 6px; }

/* Animation flat: criação enxuta e lista com prazo */
.style-row { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
.style-row .style-card { padding: 8px; gap: 6px; }
.style-row .style-card .preview { max-height: 130px; }
.style-row .style-card .title { font-size: 1rem; }
.create { display: grid; gap: 16px; max-width: 760px; }
.create textarea { min-height: 170px; }
.track-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.save-btn { border: 0; background: none; cursor: pointer; padding: 4px 6px; font-size: 1.15rem; line-height: 1; color: var(--muted); border-radius: var(--radius); }
.save-btn[aria-pressed="true"] { color: var(--ink); }
.save-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.who input { width: 150px; }
.assign { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.assign input { width: 210px; }

/* Explicação que aparece ao passar o mouse ou focar (ex.: Adapt SFX / Adapt Speed) */
.tip { position: relative; }
.tip-mark { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-left: 4px; border: 1px solid var(--line); border-radius: 50%; font-size: 0.68rem; color: var(--muted); font-family: var(--mono); }
.tip::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 260px; padding: 8px 10px; background: var(--ink); color: #fff; border-radius: var(--radius); font-size: 0.82rem; line-height: 1.35; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.16s ease, transform 0.16s ease; }
.tip:hover::after, .tip:focus-within::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tip::after { transition: none; } }

.client-shelf { padding-top: 14px; border-top: 1px solid var(--line); }
.client-shelf:first-child { border-top: 0; padding-top: 0; }

.pre { white-space: pre-wrap; }

.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; overflow: hidden; background: #d9dbd3; color: #2a2d2c; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.client-title { display: flex; align-items: center; gap: 12px; }
.client-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.client-cards li { display: flex; }
.client-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px 18px; text-align: center; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.2s; }
.client-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(18, 18, 18, 0.1); }
.client-card strong { line-height: 1.2; overflow-wrap: anywhere; }
.client-card[aria-current] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.client-card[aria-current] .avatar { outline: 2px solid var(--lime); outline-offset: 2px; }
body[data-view='usuario'] .client-card { border-radius: 22px; border-color: rgba(18, 18, 18, 0.09); background: #f8f8f5; }

.mode-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; border: 1px solid #5b5e58; border-radius: 999px; background: transparent; color: #e9eae3; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.mode-btn[aria-pressed='true'] { background: #ebfa93; border-color: #ebfa93; color: #1c1e1c; }
.mode-btn:not([hidden]) + .status { margin-left: 16px; }
.mode-btn[hidden], [data-adm][hidden] { display: none; }

/* ——— MODO USUÁRIO: mesma identidade, uso mais simples (cantos suaves, alvos grandes, texto em frase normal). ——— */
body[data-view='usuario'] { --u-line: rgba(18, 18, 18, 0.09); --u-card: #f8f8f5; --u-ease: cubic-bezier(0.32, 0.72, 0, 1); }
body[data-view='usuario'] .top { background: rgba(238, 239, 235, 0.86); color: #2a2d2c; backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--u-line); }
body[data-view='usuario'] .top .brand { color: #2a2d2c; }
body[data-view='usuario'] .top .tag { display: none; }
body[data-view='usuario'] .nav { gap: 2px; padding: 4px; border-radius: 999px; background: rgba(18, 18, 18, 0.05); }
body[data-view='usuario'] .nav a { padding: 8px 14px; border-radius: 999px; border: 0; color: #70716a; font-size: 0.9rem; transition: background 0.25s var(--u-ease), color 0.25s var(--u-ease); }
body[data-view='usuario'] .nav a[aria-current='page'] { background: #2a2d2c; color: #eeefeb; }
body[data-view='usuario'] .status { color: #70716a; text-transform: none; letter-spacing: 0; }
body[data-view='usuario'] .mode-btn { color: #2a2d2c; border-color: rgba(18, 18, 18, 0.2); text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 0.82rem; }
body[data-view='usuario'] .mode-btn[aria-pressed='true'] { background: #2a2d2c; border-color: #2a2d2c; color: #ebfa93; }
body[data-view='usuario'] .btn, body[data-view='usuario'] button.primary, body[data-view='usuario'] button:not([class]) { border-radius: 999px; padding: 10px 18px; text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 0.9rem; transition: transform 0.2s var(--u-ease), background 0.2s var(--u-ease); }
body[data-view='usuario'] .btn:active, body[data-view='usuario'] button:active:not(:disabled) { transform: scale(0.97); }
body[data-view='usuario'] input, body[data-view='usuario'] select, body[data-view='usuario'] textarea { border-radius: 12px; border: 1px solid rgba(18, 18, 18, 0.14); background: #fdfdfb; padding: 11px 13px; }
body[data-view='usuario'] input:focus-visible, body[data-view='usuario'] select:focus-visible, body[data-view='usuario'] textarea:focus-visible { outline: none; border-color: #2a2d2c; box-shadow: 0 0 0 4px rgba(42, 45, 44, 0.12); }
body[data-view='usuario'] .eyebrow, body[data-view='usuario'] .foot { display: none; }
body[data-view='usuario'] .list { border: 1px solid var(--u-line); border-radius: 18px; background: var(--u-card); overflow: hidden; }
body[data-view='usuario'] .list li { padding: 14px 18px; border-color: var(--u-line); }
body[data-view='usuario'] .chip { border-radius: 999px; text-transform: none; letter-spacing: 0; }
body[data-view='usuario'] .notice, body[data-view='usuario'] .empty { border-radius: 14px; }
body[data-view='usuario'] .style-grid > *, body[data-view='usuario'] .card, body[data-view='usuario'] .model-card { border-radius: 20px; overflow: hidden; }
body[data-view='usuario'] .style-grid > * { transition: transform 0.3s var(--u-ease), box-shadow 0.3s var(--u-ease); }
body[data-view='usuario'] .style-grid > *:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(18, 18, 18, 0.1); }
@media (prefers-reduced-motion: reduce) { body[data-view='usuario'] * { transition: none !important; } }

.export-player { display: block; width: min(320px, 100%); border-radius: 10px; background: #000; }

/* ---- prévia: som e cor ---- */
.sound-btn[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sound-btn[hidden] { display: none; }
.view-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.view-format { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.swatch-dot { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; min-height: 0; }
.swatch-dot i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.swatch-dot[aria-checked='true'] { outline: 2px solid var(--ink); outline-offset: 2px; }
body[data-view='usuario'] .swatch-dot, body[data-view='usuario'] .sound-btn { padding: 0; }
body[data-view='usuario'] .sound-btn { padding: 10px 18px; }

/* Seletor deslizante de idioma (PT · EN · ES): a pastilha corre até a opção escolhida. */
.lang-slide { position: relative; display: inline-grid; grid-template-columns: repeat(var(--n, 3), 3.25rem); padding: 2px; border: 1px solid var(--line, #d6d6d2); border-radius: 999px; background: var(--surface, #fff); }
.lang-slide > i { position: absolute; top: 2px; bottom: 2px; left: 2px; width: 3.25rem; border-radius: 999px; background: var(--ink, #1e1e1c); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .22s cubic-bezier(.3, .7, .2, 1); }
.lang-slide > button { position: relative; z-index: 1; display: grid; place-items: center; height: 1.75rem; padding: 0; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .75rem; letter-spacing: .08em; color: inherit; cursor: pointer; }
.lang-slide > button[aria-checked="true"] { color: var(--paper, #fff); }
