/* Estilos compartilhados do site (pedido de edição, editor e próximas páginas). Extraído do index.html em 18/11/2026. */
body{margin:0}[hidden]{display:none!important}
/* Layout: formulário em uma coluna, três passos numerados (a ordem importa), resumo antes do botão e a fila de pedidos embaixo. */
:root {
  --bg: #F5F6F3;
  --bg2: #ECEFEA;
  --surface: #FFFFFF;
  --fg: #1C222B;
  --muted: #5F6875;
  --line: #D5D9D6;
  --accent: #1F6B73;
  --accent-soft: #DCEBEA;
  --alert: #B5502F;
  --alert-soft: #F6E3DA;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171B; --bg2: #181C21; --surface: #1D2228; --fg: #E8EAEC; --muted: #9BA4AF;
    --line: #333A43; --accent: #6FC2C4; --accent-soft: #1E3A3D; --alert: #E58A66; --alert-soft: #40261C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14171B; --bg2: #181C21; --surface: #1D2228; --fg: #E8EAEC; --muted: #9BA4AF;
  --line: #333A43; --accent: #6FC2C4; --accent-soft: #1E3A3D; --alert: #E58A66; --alert-soft: #40261C;
  color-scheme: dark;
}
body {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%) fixed, var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding-block: 36px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 28px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
p { margin: 0; }
.lead { color: var(--muted); margin-top: 6px; }
.muted { color: var(--muted); font-size: 14px; }

.step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.step-head { display: flex; align-items: baseline; gap: 10px; }
.num { font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 15px; }

.drop {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 22px 16px; text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { font-weight: 600; }
.file { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 14.5px; overflow-wrap: anywhere; }
.note { background: var(--alert-soft); border: 1px solid var(--alert); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.ok { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 8px; padding: 10px 12px; font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .q-label { font-weight: 600; font-size: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
input[type="text"], textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; width: 100%; box-sizing: border-box;
}
textarea { min-height: 72px; resize: vertical; }
input[type="text"]:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.big { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.big button {
  font: inherit; color: var(--fg); background: transparent; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.big button span { color: var(--muted); font-size: 14px; }
.big button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.q { display: flex; flex-direction: column; gap: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button {
  font: inherit; font-size: 14px; color: var(--fg); background: transparent; text-align: left;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.opts button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.opts button:hover, .big button:hover { border-color: var(--accent); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.send { display: flex; flex-direction: column; gap: 12px; }
.resumo { font-size: 14.5px; color: var(--muted); }
.primary {
  font: inherit; font-weight: 600; font-size: 16px; color: var(--surface); background: var(--accent);
  border: 0; border-radius: 10px; padding: 13px 20px; cursor: pointer; align-self: flex-start;
}
.primary[disabled] { opacity: .55; cursor: default; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.item-title { font-weight: 600; overflow-wrap: anywhere; }
.pill { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.item-meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.empty { border: 1px dashed var(--line); border-radius: 10px; padding: 18px; color: var(--muted); font-size: 14.5px; }

.cliente { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; min-height: 1em; }
.prog { display: flex; flex-direction: column; gap: 6px; }
.prog-trilho { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.prog-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* Prévia do estilo: um celular desenhado que muda conforme as escolhas (medidas em em, para a mesma cena servir de miniatura nos botões). */
.estilo-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.estilo-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.previa { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.previa .pv { font-size: 10.6px; }
.momentos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.momentos button { font: inherit; font-size: 13px; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.momentos button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--surface); }
.previa-nota { font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .estilo-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .previa { top: 0; z-index: 2; background: var(--surface); padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
  .previa .pv { font-size: 6.4px; }
  .previa-nota { display: none; }
}
.pv { position: relative; width: 21em; aspect-ratio: 9 / 16; border-radius: 1.5em; overflow: hidden; background: var(--tarja); color: #fff; font-family: var(--body); flex: none; box-shadow: 0 0 0 1px var(--line); --sil: #77828f; --tarja: #1F6B73; --fundo: #10141a; --apoio: #8fd3d6; }
.pv.wide { width: 100%; max-width: 34em; aspect-ratio: 16 / 9; border-radius: 1em; }
.pv-p { position: absolute; background: linear-gradient(180deg, #d5dadc, #b8c0c5); overflow: hidden; }
.pv-p.full { inset: 0; }
.pv-p.meia { left: 0; right: 0; bottom: 0; height: 54%; }
.pv-p .cab { position: absolute; left: 50%; top: 22%; width: 40%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: var(--sil); }
.pv-p .omb { position: absolute; left: 50%; bottom: -8%; width: 86%; height: 38%; transform: translateX(-50%); border-radius: 50% 50% 0 0 / 85% 85% 0 0; background: var(--sil); }
.pv-p.meia .cab { top: 10%; width: 27%; }
.pv-p.meia .omb { height: 46%; width: 62%; }
.pv.wide .pv-p .cab { top: 16%; width: 17%; }
.pv.wide .pv-p .omb { width: 38%; height: 46%; }
.pv-c { position: absolute; background: linear-gradient(135deg, #16323f 0%, #2d5560 45%, #8a5a34 100%); display: flex; align-items: center; justify-content: center; }
.pv-c::before, .pv-c::after { content: ""; position: absolute; left: 0; right: 0; height: 9%; background: #000; opacity: .55; }
.pv-c::before { top: 0; } .pv-c::after { bottom: 0; }
.pv-c span { font-size: 1.05em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.pv-c.ilus { background: var(--fundo); }
.pv-c.ilus::before { left: 22%; right: auto; top: 30%; width: 22%; height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--tarja); opacity: 1; z-index: 1; }
.pv-c.ilus::after { left: 46%; right: 20%; top: 44%; bottom: auto; height: 20%; border-radius: .6em; background: var(--apoio); opacity: 1; }
.pv-c.ilus span { position: absolute; bottom: 8%; }
.pv-c.cartao { left: 9%; right: 9%; top: 20%; height: 42%; border-radius: .9em; overflow: hidden; outline: .45em solid var(--fundo); box-shadow: 0 1em 2.4em rgba(0,0,0,.5); }
.pv-c.meia { left: 0; right: 0; top: 0; height: 50%; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); z-index: 1; }
.pv-l { position: absolute; left: 7%; right: 7%; text-align: center; font-weight: 600; line-height: 1.08; z-index: 2; text-shadow: 0 .15em .6em rgba(0,0,0,.65); display: flex; flex-direction: column; align-items: center; gap: .15em; }
.pv-l.em-pessoa { bottom: 21%; } .pv-l.em-cartao { bottom: 12%; } .pv-l.em-meia { top: 43%; }
.pv.wide .pv-l { bottom: 9%; left: 20%; right: 20%; }
.pv-l .l1 { font-size: 1.45em; } .pv-l .l2 { font-size: 2.3em; font-weight: 700; letter-spacing: -.02em; }
.pv-l .l3 { font-size: 2.5em; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.pv-l.titulo .l1 { font-size: 1.7em; } .pv-l.titulo .l2 { font-size: 3em; } .pv-l.titulo .l3 { font-size: 3.2em; }
.pv-l mark { background: none; color: var(--tarja); }
.pv-l.em-cartao mark, .pv-l.em-cartao .cor { color: var(--apoio); }   /* sobre o fundo na cor principal, o destaque usa a de apoio para aparecer */
.pv-l .cor { color: var(--tarja); }
.pv-chip { position: absolute; left: 50%; transform: translateX(-50%); top: 5%; z-index: 3; font-size: 1.05em; font-weight: 600; background: rgba(0,0,0,.6); border: 1px dashed rgba(255,255,255,.6); border-radius: 99em; padding: .25em .8em; white-space: nowrap; }
.pv-m { position: absolute; right: 5%; top: 4%; z-index: 3; font-size: 1.5em; width: 1.7em; height: 1.7em; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; }
.pv-t { position: absolute; left: 6%; bottom: 22%; z-index: 2; font-size: 1.5em; font-weight: 600; background: var(--tarja); border-radius: .3em; padding: .25em .7em; }
.cores { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cor-campo { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.cor-campo input[type="color"] { width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.cor-campo .cor-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cor-campo label { font-weight: 600; font-size: 14px; }
.cor-campo small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.cor-campo input[type="text"] { font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 4px 8px; width: 96px; margin-top: 4px; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.abas button { font: inherit; font-weight: 600; font-size: 14.5px; color: var(--muted); background: none; border: 0; border-bottom: 2.5px solid transparent; padding: 8px 14px; margin-bottom: -1px; cursor: pointer; }
.abas button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cards button { font: inherit; font-size: 13.5px; line-height: 1.3; color: var(--fg); background: transparent; text-align: left; cursor: pointer; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.cards button .pv { font-size: 3.1px; border-radius: 4px; }
.cards button > span { min-width: 0; overflow-wrap: break-word; }
.cards button .pv * { text-shadow: none; }
.cards button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.cards button:hover { border-color: var(--accent); }
.prontas-nota { font-size: 13px; color: var(--muted); }

/* Revisão de UX/UI: desenhos em SVG (pessoa e cena), miniaturas com barras no lugar de texto ilegível, estilos prontos em destaque e peças recolhidas. */
.pv-p, .pv-c { background: none; }
.pv-p svg, .pv-c svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pv-c::before, .pv-c::after, .pv-c.ilus::before, .pv-c.ilus::after { display: none; }
.pv-c.cartao { outline-width: .35em; box-shadow: 0 1.2em 2.6em rgba(0,0,0,.45); }
.previa .pv { box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0,0,0,.55); }
.pv-l.tres { align-items: flex-start; text-align: left; left: 8%; right: 8%; }
.pv-l.tres .l3 { color: #fff; }
.pv.perto .pv-l { font-size: 1.75em; bottom: 15%; left: 6%; right: 6%; }
.cards button .pv { font-size: 3.4px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); }
.cards button .pv .pv-l { gap: .55em; }
.cards button .pv .pv-l span { color: transparent; background: #fff; border-radius: 99em; line-height: .6; box-shadow: 0 .2em .9em rgba(0,0,0,.4); }
.cards button .pv .pv-l mark { color: transparent; background: none; }
.cards button .pv .pv-l .dest { background: var(--tarja); }
.cards button .pv .pv-l.em-cartao .dest { background: var(--apoio); }
.cards button { padding: 12px; gap: 12px; position: relative; transition: border-color .15s, background .15s; }
.cards button[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--surface); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cards button > span { color: var(--muted); font-size: 13px; overflow-wrap: normal; }
.pv-l.em-pessoa { bottom: 13%; } .pv-l.em-meia { top: 40%; }
.pv.wide .pv-l { bottom: 9%; }
.cards button > span strong { color: var(--fg); font-size: 14.5px; display: block; margin-bottom: 2px; }
.cards button > span.so { color: var(--fg); font-size: 14px; font-weight: 500; }
.cards.prontas { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cards.prontas button { flex-direction: column; align-items: flex-start; }
.cards.prontas button .pv { font-size: 5.4px; align-self: center; border-radius: 8px; }
details.pecas { border-top: 1px solid var(--line); padding-top: 14px; }
details.pecas summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
details.pecas summary::-webkit-details-marker { display: none; }
details.pecas summary::before { content: "+"; color: var(--accent); font-weight: 700; width: 1em; }
details.pecas[open] summary::before { content: "–"; }
details.pecas summary small { font-weight: 400; color: var(--muted); font-size: 13px; }
details.pecas .q { margin-top: 16px; }
.abas button .bolinhas { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.abas button .bolinhas i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); display: block; }

/* ===== V2 (17/11/2026) — referências do Ricardo: NOEMA (preto, título fino com itálico, rótulos mono numerados, linhas finas)
   e Nordic Ridge (botões em pílula com seta no círculo, formas bem arredondadas). Tela sempre escura. ===== */
/* Dois temas: noturno (padrão) e claro. O <html> recebe data-theme pelo script do <head> (escolha guardada ou tema do aparelho). */
:root:root:root {
  --bg: #050506; --bg2: #050506; --surface: #0D0D0F; --fg: #F3F2EF; --muted: #908E89;
  --line: rgba(255,255,255,.13); --line-2: rgba(255,255,255,.4); --t1: rgba(255,255,255,.02); --t2: rgba(255,255,255,.04); --t3: rgba(255,255,255,.07);
  --accent: #F3F2EF; --accent-soft: rgba(255,255,255,.07); --alert: #E7A27F; --alert-soft: rgba(231,162,127,.10);
  --cta: #8C6B55; --cta-2: #B79479; --foco: #CFC3FF; --g1: #F3F2EF; --g2: #CFC3FF; --g3: #F2B894;
  --brilho-1: rgba(126,98,214,.20); --brilho-2: rgba(214,128,86,.12);
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif; --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
:root:root:root[data-theme="light"] {
  --bg: #F5F3EE; --bg2: #F5F3EE; --surface: #FFFFFF; --fg: #121214; --muted: #66635D;
  --line: rgba(18,18,20,.14); --line-2: rgba(18,18,20,.42); --t1: rgba(18,18,20,.025); --t2: rgba(18,18,20,.045); --t3: rgba(18,18,20,.07);
  --accent: #121214; --accent-soft: rgba(18,18,20,.07); --alert: #A8502A; --alert-soft: rgba(168,80,42,.09);
  --cta: #7A5A45; --cta-2: #C9A98F; --foco: #6B4FD8; --g1: #121214; --g2: #5B3FD0; --g3: #B8562E;
  --brilho-1: rgba(126,98,214,.16); --brilho-2: rgba(214,128,86,.14);
  color-scheme: light;
}
.topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.topo .cliente { margin: 0; }
.tema { font: inherit; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); background: var(--t2); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px 0 6px; min-height: 40px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; flex: none; }
.tema i { width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 14px; }
.tema:hover { border-color: var(--line-2); }
.note { border-color: color-mix(in srgb, var(--alert) 45%, transparent); }
body { background: radial-gradient(900px 520px at 82% -8%, var(--brilho-1), transparent 62%), radial-gradient(700px 420px at 4% 2%, var(--brilho-2), transparent 60%), var(--bg); background-attachment: scroll; }
.wrap { max-width: 980px; gap: 0; padding-block: 44px 96px; }
header { padding-bottom: 44px; }
.cliente { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); margin-bottom: 26px; }
.cliente::before { content: attr(data-pagina) "  /  "; white-space: pre; }
h1 { font-weight: 300; font-size: clamp(40px, 7.4vw, 76px); line-height: .98; letter-spacing: -.035em; }
h1 em { display: block; font-style: italic; font-weight: 300; background: linear-gradient(90deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em .2em 0; margin-bottom: -.2em; }   /* o degradê recorta o texto na caixa da linha: a folga embaixo deixa a perna do g/p/j inteira */
.lead { max-width: 46ch; margin-top: 22px; font-size: 15.5px; }
h2 { font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; }
.step { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 30px 0 40px; gap: 22px; }
.step-head { flex-direction: column; gap: 10px; align-items: flex-start; }
.num { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.q-label, .field label { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cor-campo label { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--fg); }
.muted, .prontas-nota, .previa-nota { color: var(--muted); }
.drop { border: 1px dashed var(--line-2); border-radius: 28px; padding: 34px 18px; background: var(--t1); }
.drop:hover, .drop.over { border-color: var(--fg); background: var(--t3); }
.drop strong { font-family: var(--display); font-weight: 500; font-size: 18px; }
input[type="text"], textarea { background: var(--t2); border-color: var(--line); border-radius: 16px; padding: 12px 16px; }
input[type="text"]:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.big { gap: 14px; }
.big button { border: 1px solid var(--line); border-radius: 26px; padding: 22px 22px 24px; gap: 8px; position: relative; background: var(--t1); transition: border-color .15s, background .15s; }
.big button strong { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; padding-right: 40px; }
.big button::after { content: "↗"; position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); transition: all .15s; }
.big button[aria-pressed="true"] { border-color: var(--fg); background: var(--t3); }
.big button[aria-pressed="true"]::after { content: "✓"; background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 700; }
.opts { gap: 10px; }
.opts button { border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 14px; transition: all .15s; }
.opts button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 500; }
.opts button:hover, .big button:hover, .cards button:hover { border-color: var(--line-2); }
.cards { gap: 12px; }
.cards button { border: 1px solid var(--line); border-radius: 22px; padding: 14px; background: var(--t1); }
.cards button .pv { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.cards.prontas button { padding: 16px 16px 18px; border-radius: 26px; }
.cards.prontas button .pv { border-radius: 14px; margin-bottom: 4px; }
.cards button[aria-pressed="true"] { border-color: var(--fg); background: var(--t3); }
.cards button[aria-pressed="true"]::after { top: 12px; right: 12px; width: 24px; height: 24px; background: var(--fg); color: var(--bg); }
.cards button > span strong { font-family: var(--display); font-weight: 500; font-size: 16px; }
.abas { border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; align-self: flex-start; }
.abas button { border: 0; border-radius: 999px; padding: 8px 18px; margin: 0; font-weight: 500; font-size: 14px; }
.abas button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.abas button .bolinhas i { box-shadow: 0 0 0 1px rgba(128,128,128,.6); }
.momentos button { border-radius: 999px; padding: 7px 14px; border-color: var(--line); }
.momentos button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.previa .pv { border-radius: 30px; box-shadow: 0 0 0 1px var(--line), 0 0 0 7px var(--surface), 0 0 0 8px var(--line), 0 40px 90px -30px var(--tarja); }
.previa { gap: 18px; padding-top: 8px; }
details.pecas { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
details.pecas summary { padding: 18px 0; font-family: var(--display); font-weight: 400; font-size: 17px; align-items: center; }
details.pecas summary::before { content: "[+]"; font-family: var(--mono); font-size: 12px; color: var(--muted); width: auto; margin-right: 6px; }
details.pecas[open] summary::before { content: "[–]"; }
details.pecas summary::after { content: "↘"; margin-left: auto; color: var(--muted); }
details.pecas[open] summary::after { content: "↗"; }
details.pecas summary small { font-family: var(--body); flex-basis: 100%; padding-left: 34px; order: 3; }
details.pecas[open] { padding-bottom: 22px; }
.cor-campo { border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.cor-campo input[type="color"] { border-radius: 50%; width: 48px; height: 48px; overflow: hidden; border-color: var(--line-2); }
.cor-campo input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; } .cor-campo input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.cor-campo input[type="text"] { border-radius: 999px; padding: 5px 12px; font-family: var(--mono); }
.note, .ok { border-radius: 18px; padding: 12px 16px; background: var(--alert-soft); }
.ok { background: var(--t3); border-color: var(--line); }
.send { border-top: 1px solid var(--line); padding-top: 34px; gap: 18px; }
.primary { background: var(--cta); color: #fff; border-radius: 999px; padding: 8px 8px 8px 28px; font-family: var(--display); font-weight: 500; font-size: 17px; display: inline-flex; align-items: center; gap: 18px; transition: background .15s; }
.primary .seta { width: 46px; height: 46px; border-radius: 50%; background: var(--cta-2); color: #1b130d; display: flex; align-items: center; justify-content: center; font-size: 19px; transition: transform .15s; }
.primary:hover:not([disabled]) { background: var(--cta-hover, #9A7861); }   /* cada marca define --cta-hover; sem marca, o marrom do visual padrão */ .primary:hover:not([disabled]) .seta { transform: rotate(45deg); }
.prog-trilho { height: 6px; background: var(--line); } .prog-bar { background: linear-gradient(90deg, var(--g2), var(--g3)); }
.pilula { display: inline-flex; align-items: center; gap: 16px; cursor: pointer; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 24px; font-family: var(--display); font-weight: 500; font-size: 16px; transition: background .15s, border-color .15s; }
.pilula input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pilula .seta { width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 17px; transition: transform .15s; }
.pilula:hover { background: var(--t3); border-color: var(--fg); } .pilula:hover .seta { transform: rotate(45deg); }
.pilula:focus-within { outline: 2px solid var(--foco); outline-offset: 2px; }
.lista-marca { display: flex; flex-direction: column; }
.lista-marca div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.lista-marca div span:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.abas { flex-wrap: wrap; border-radius: 26px; }
@media (max-width: 640px) { .previa { background: var(--bg); } .previa .pv { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); } header { padding-bottom: 30px; } }
/* Celular (conferido em 375 px, 17/11/2026): alvos de toque de 44 px, campos em 16 px (o iPhone dá zoom abaixo disso), rótulos um pouco maiores,
   estilos prontos em linha e prévia fixa mais baixa. */
.so-cel { display: none; }
@media (max-width: 640px) {
  .so-desk { display: none; } .so-cel { display: inline; }
  .num, .cliente, .q-label, .field label { font-size: 12px; }
  input[type="text"], textarea, .cor-campo input[type="text"] { font-size: 16px; }
  .cor-campo input[type="text"] { width: 118px; }
  .abas button, .momentos button { min-height: 44px; padding-inline: 16px; }
  .opts button { min-height: 44px; }
  .abas { flex-wrap: nowrap; border-radius: 999px; align-self: stretch; justify-content: space-between; }
  .abas button { padding-inline: 12px; white-space: nowrap; }
  .previa { flex-direction: row; justify-content: center; align-items: center; gap: 14px; padding: 10px 0; z-index: 10; }
  .previa .pv { font-size: 5.2px; }
  .momentos { flex-direction: column; }
  .cards.prontas { grid-template-columns: minmax(0, 1fr); }
  .cards.prontas button { flex-direction: row; align-items: center; padding: 14px; border-radius: 22px; }
  .cards.prontas button .pv { font-size: 3.8px; align-self: auto; margin: 0; border-radius: 10px; }
  .big button { padding: 18px 18px 20px; }
  details.pecas summary { min-height: 44px; }
  .primary { width: 100%; justify-content: space-between; box-sizing: border-box; }
  .pilula { width: 100%; justify-content: space-between; box-sizing: border-box; }
  h1 { font-size: clamp(38px, 12.5vw, 56px); }
  .topo { align-items: flex-start; }
  .topo .cliente { min-width: 0; line-height: 1.6; overflow-wrap: anywhere; }
  .cliente::before { white-space: normal; }
  .tema { padding: 0 6px; min-height: 44px; } .tema span { display: none; } .tema i { width: 32px; height: 32px; }
}
.cor-campo label em { font-style: normal; font-weight: 400; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
.cor-linha { display: flex; align-items: center; gap: 8px; margin-top: 4px; } .cor-linha input[type="text"] { margin-top: 0; }
/* "tirar a cor": um × dentro do próprio campo, na ponta direita (padrão de campo com botão de limpar) */
.cor-linha { position: relative; display: flex; align-self: flex-start; width: min(100%, 132px); }
.cor-campo .cor-txt { flex: 1 1 0; } .cor-campo input[type="text"] { box-sizing: border-box; max-width: 100%; }
.cor-campo .cor-linha input[type="text"] { width: 100%; padding-right: 36px; }
.limpa { -webkit-appearance: none; appearance: none; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; background: var(--t3); color: var(--fg); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.limpa[hidden] { display: none; }
.limpa:hover { background: var(--line-2); }
@media (max-width: 640px) {
  /* celular: um cartão de cor por linha (em iPhone largo o grid abria 2 colunas e o campo vazava do cartão) */
  .cores, .cards { grid-template-columns: minmax(0, 1fr); }
  .cor-linha { width: min(100%, 190px); }
  .cor-campo .cor-linha input[type="text"] { width: 100%; min-height: 44px; padding-right: 46px; }
  .cor-campo input[type="text"] { min-height: 44px; width: min(100%, 190px); }
  .limpa { width: 34px; height: 34px; right: 5px; font-size: 18px; }
}
.cor-campo.vazia input[type="color"] { opacity: .45; border-style: dashed; }
.abas button .bolinhas i { background: transparent; }
/* Seletor da prévia: rótulo "Veja como fica" + controle de duas posições, para ficar claro que ele só troca o que a prévia mostra */
.momentos-caixa { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.momentos-caixa .q-label { text-align: center; }
.momentos { border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: nowrap; }
.momentos button { border: 0; white-space: nowrap; font-size: 13px; padding: 7px 12px; }
.momentos button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 640px) {
  .momentos-caixa { align-items: flex-start; }
  .momentos-caixa .q-label { text-align: left; }
  .momentos { flex-direction: column; border-radius: 24px; align-items: stretch; }
  .momentos button { text-align: left; }
}
/* Prévia dupla: começo e resto do vídeo lado a lado, com o nome embaixo. Substitui o seletor "Veja como fica", que parecia uma escolha do pedido. */
#previa.dupla { display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.pv-fig { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pv-nome { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); text-align: center; }
.estilo-grid { grid-template-columns: 300px minmax(0, 1fr); }
.previa #previa.dupla .pv { font-size: 6.6px; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 0 0 5px var(--surface), 0 0 0 6px var(--line), 0 30px 70px -30px var(--tarja); transition: opacity .2s; }
@media (max-width: 640px) {
  .estilo-grid { grid-template-columns: minmax(0, 1fr); }
  .previa { flex-direction: column; gap: 0; }
  #previa.dupla { gap: 18px; }
  .previa #previa.dupla .pv { font-size: 4.5px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
  .pv-fig { gap: 6px; } .pv-nome { font-size: 10.5px; }
}
/* Perguntas visuais (18/11/2026): três perguntas sobre o vídeo do cliente, cada resposta é um desenho. Substituem os estilos prontos e o "ajustar peça por peça". */
.perg { gap: 10px; padding-top: 6px; }
.perg h3 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -.015em; margin: 0 0 4px; }
.perg.sub { border-left: 1px solid var(--line-2); padding-left: 16px; margin-left: 4px; }
.perg.sub h3 { font-size: 17px; }
.cards.visu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards.visu.duas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.visu button { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 12px 14px; border-radius: 24px; }
.cards.visu button .pv { font-size: 5px; border-radius: 12px; }
.cards.visu button > span.so { font-family: var(--display); font-weight: 500; font-size: 15px; line-height: 1.25; }
.cards.visu button > small { color: var(--muted); font-size: 12.5px; line-height: 1.3; margin-top: -4px; }
.previa-titulo { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 640px) {
  .cards.visu, .cards.visu.duas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cards.visu button { padding: 10px 6px 12px; border-radius: 18px; gap: 8px; }
  .cards.visu button .pv { font-size: 4px; border-radius: 9px; }
  .cards.visu button > span.so { font-size: 13px; }
  .cards.visu button > small { font-size: 11.5px; }
  .cards.visu button[aria-pressed="true"]::after { top: 6px; right: 6px; width: 20px; height: 20px; font-size: 11px; }
  .perg h3 { font-size: 19px; }
  .previa-titulo { display: none; }
}

/* Navegação do site: as páginas ficam lado a lado no topo */
.nav { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.nav a { font-family: var(--body); font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.nav a:hover:not([aria-current]) { color: var(--fg); }
.nav a small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; opacity: .7; }
.topo-dir { display: flex; align-items: center; gap: 10px; flex: none; }
@media (max-width: 640px) {
  .topo { flex-wrap: wrap; }
  .topo .cliente { flex-basis: 100%; order: 3; margin-top: 14px; }
  .topo-dir { width: 100%; justify-content: space-between; }
  .nav a { min-height: 36px; display: inline-flex; align-items: center; }
}

/* Cadastro e entrada (beta) */
input[type="email"], input[type="password"] { font: inherit; color: var(--fg); background: var(--t2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; width: 100%; box-sizing: border-box; font-size: 16px; }
input[type="email"]:focus-visible, input[type="password"]:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.conta { max-width: 560px; }
.conta form { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--line); padding-top: 30px; }
.conta .aceite { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.conta .aceite input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--fg); }
.conta .troca { font-size: 14.5px; color: var(--muted); }
.conta .troca a, .sair { color: var(--fg); text-underline-offset: 3px; }
.sair { font-size: 13px; background: none; border: 0; font-family: var(--body); cursor: pointer; text-decoration: underline; padding: 8px 4px; }
.beta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; color: var(--muted); }

/* ===== Editor (piloto, só leitura): vídeo editado + linha do tempo com fala, legenda, cenas e música ===== */
.wrap.ed { max-width: 1180px; }
.wrap.ed header { padding-bottom: 26px; }
.ed-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 26px 0 22px; }
.ed-cab h2 { margin-top: 8px; }
.ed-chips, .ed-outros { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-chip { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); white-space: nowrap; }
.ed-chip.forte { color: var(--fg); border-color: var(--line-2); }
.ed-outros { padding-bottom: 18px; } .ed-outros a { text-decoration: none; }
.ed-palco { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ed-video { border-radius: 26px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px var(--brilho-1); }
.ed-video video { width: 100%; height: 100%; display: block; object-fit: contain; cursor: pointer; }
.ed-lado { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ed-ctl { display: flex; align-items: center; gap: 16px; }
.ed-play { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--cta); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; padding-left: 4px; }
.ed-play.tocando { padding-left: 0; }
.ed-tempo { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }
.ed-info { border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px; background: var(--t1); display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.ed-info h3 { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -.01em; margin: 0; }
.ed-info ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ed-info li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ed-info li span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.ed-info .ed-fala { font-size: 15px; color: var(--muted); line-height: 1.5; }
.ed-leg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #15161a; color: #fff; border-radius: 16px; padding: 18px 20px; }
.ed-leg span { font-weight: 600; font-size: 17px; line-height: 1.15; }
.ed-leg span.grande { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.ed-leg span.serifada { font-size: 30px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.ed-leg mark { background: none; color: #F5A9C4; }
.ed-nota { font-size: 13px; color: var(--muted); }
.ed-tl { margin-top: 30px; border: 1px solid var(--line); border-radius: 26px; background: var(--t1); overflow: hidden; }
.ed-tl-topo { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ed-dica { font-size: 13px; color: var(--muted); margin-right: auto; }
.ed-zoom { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.ed-zoom input { accent-color: var(--fg); width: 120px; }
.ed-rolo { overflow-x: auto; overflow-y: hidden; position: relative; }
.ed-faixas { position: relative; padding: 0 0 12px; --nome: 96px; }
.tr { display: flex; align-items: stretch; height: 44px; }
.tr.regua { height: 30px; } .tr.alta { height: 52px; }
.tr-nome { position: sticky; left: 0; z-index: 3; flex: none; width: var(--nome); box-sizing: border-box; padding-left: 18px; display: flex; align-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg); border-right: 1px solid var(--line); }
.tr-corpo { position: relative; flex: none; border-top: 1px solid var(--line); cursor: pointer; }
.tr.regua .tr-corpo { border-top: 0; }
.marca { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); padding: 8px 0 0 6px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.it { position: absolute; top: 6px; bottom: 6px; box-sizing: border-box; border-radius: 9px; padding: 0 9px; display: flex; align-items: center; font-size: 12px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line); background: var(--t3); color: var(--fg); cursor: pointer; transition: border-color .12s; }
.it > span { overflow: hidden; text-overflow: ellipsis; }
.it:hover { border-color: var(--line-2); }
.it.fala { background: var(--fg); color: var(--bg); border-color: transparent; font-weight: 500; }
.it.fala.gancho { background: var(--cta); color: #fff; }
.it.leg.dest { background: color-mix(in srgb, var(--g2) 26%, transparent); border-color: color-mix(in srgb, var(--g2) 55%, transparent); }
.it.cena { background: color-mix(in srgb, var(--g3) 30%, transparent); border-color: color-mix(in srgb, var(--g3) 60%, transparent); }
.it.ilus { background: color-mix(in srgb, var(--g2) 40%, transparent); border-color: color-mix(in srgb, var(--g2) 70%, transparent); }
.it.mus { background: repeating-linear-gradient(90deg, var(--t3) 0 6px, transparent 6px 10px); color: var(--muted); }
.it.agora { box-shadow: 0 0 0 2px var(--fg); z-index: 1; }
.it.sel { outline: 2px solid var(--foco); outline-offset: 1px; z-index: 2; }
.agulha { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--alert); z-index: 2; pointer-events: none; transform: translateX(-1px); }
.agulha::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 12px; border-radius: 0 0 6px 6px; background: var(--alert); }
@media (max-width: 760px) {
  .ed-palco { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ed-video { max-width: 240px; margin: 0 auto; border-radius: 20px; }
  .ed-faixas { --nome: 66px; } .tr-nome { padding-left: 10px; font-size: 9.5px; }
  .ed-dica { flex-basis: 100%; order: 3; }
  .ed-info { min-height: 0; }
}

.ed-baixar { margin-left: auto; text-decoration: none; color: var(--fg); width: auto; }
.ed-ctl { flex-wrap: wrap; }
@media (max-width: 760px) { .ed-baixar { width: 100%; margin-left: 0; } }

/* Editor: ajustes (piloto testável) */
.ed-anotar { font: inherit; font-size: 13.5px; color: var(--fg); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 40px; }
.ed-anotar:hover { border-color: var(--line-2); }
.ed-form { display: flex; flex-direction: column; gap: 12px; }
.ed-form input[type="text"], .ed-form textarea { font-size: 16px; }
.ed-form .linha-leg { display: flex; align-items: center; gap: 10px; }
.ed-form .linha-leg small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 62px; flex: none; }
.ed-pal { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-pal button { font: inherit; font-size: 13.5px; border: 1px solid var(--line); background: none; color: var(--fg); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.ed-pal button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ed-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-acoes .opts { gap: 8px; }
.ed-btn { font: inherit; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: none; color: var(--fg); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 40px; }
.ed-btn.cheio { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ed-btn[disabled] { opacity: .45; cursor: default; }
.ed-lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ed-lista li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ed-lista li button { font: inherit; font-size: 12.5px; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px 2px; white-space: nowrap; }
.ed-lista li span b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); margin-right: 8px; }
.it.pend { outline: 2px dashed var(--alert); outline-offset: 1px; }
.it.pend.fora { opacity: .4; text-decoration: line-through; }
.ed-fecho { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.ed-fecho-txt { max-width: 46ch; display: flex; flex-direction: column; gap: 8px; } .ed-fecho-txt p { color: var(--muted); font-size: 15px; }
.ed-fecho-btn { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ed-fecho #ed-msg { flex-basis: 100%; }
@media (max-width: 760px) { .ed-fecho-btn { width: 100%; flex-direction: column; align-items: stretch; } .ed-anotar { flex: 1; } }

/* Editor: comentário preso ao tempo (no jeito do Frame.io) e seleção só do bloco clicado */
.it.agora { box-shadow: none; }      /* o que está sob a agulha não ganha mais contorno: só o bloco clicado fica marcado */
.it.sel { outline: 2.5px solid var(--foco); outline-offset: 1px; z-index: 2; }
.ed-coment { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 8px; background: var(--t1); }
.ed-coment:focus-within { border-color: var(--line-2); }
.ed-coment input[type="text"] { border: 0; background: none; padding: 8px 4px; font-size: 16px; min-width: 0; flex: 1; border-radius: 0; }
.ed-coment input[type="text"]:focus-visible { outline: none; }
.ed-coment .ed-chip { flex: none; }
.tr.fina { height: 30px; }
.pino { position: absolute; top: 5px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--alert); border: 0; cursor: pointer; padding: 0; }
.pino::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.pino.sel { outline: 2.5px solid var(--foco); outline-offset: 2px; }
.ed-lista li span b { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .ed-coment { border-radius: 22px; flex-wrap: wrap; padding: 8px; } .ed-coment input[type="text"] { flex-basis: 60%; } .ed-coment .ed-btn { flex: 1; } }

/* Agulha arrastável: pegador grande no topo; a régua também serve para arrastar */
.agulha-pega { position: absolute; top: -2px; left: -15px; width: 32px; height: 34px; pointer-events: auto; cursor: ew-resize; touch-action: none; }
.tr.regua .tr-corpo { cursor: ew-resize; touch-action: none; }
.tr.regua { height: 34px; }
body.arrastando, body.arrastando * { cursor: ew-resize !important; user-select: none; -webkit-user-select: none; }

/* Editor: histórico do que já foi enviado */
.ed-lista.hist li { align-items: flex-start; }
.ed-lista.hist li > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.ed-lista.hist li > span:first-child b { margin: 0; }
.ed-resp { font-style: normal; color: var(--muted); font-size: 13px; border-left: 2px solid var(--line-2); padding-left: 10px; }
.ed-chip.feito { color: #2E7D5B; border-color: #2E7D5B; }
:root:root:root:not([data-theme="light"]) .ed-chip.feito { color: #7FD6A8; border-color: #7FD6A8; }
.pino.enviado { background: var(--muted); }
.pino.enviado.feito { background: #2E9B6B; }

/* Editor: o painel ao lado do vídeo é uma caixa de altura fixa; o conteúdo (resumo, ajustes, histórico) rola DENTRO dela,
   então o histórico pode crescer sem empurrar a linha do tempo nem mudar o layout. */
.ed-info { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ed-info::-webkit-scrollbar { width: 6px; } .ed-info::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; } .ed-info::-webkit-scrollbar-track { background: transparent; }
@media (min-width: 761px) {
  .ed-palco { align-items: stretch; }
  .ed-lado { contain: size; overflow: hidden; }            /* a coluna assume exatamente a altura do vídeo, qualquer que seja o conteúdo */
  .ed-info { flex: 1 1 0; min-height: 0; }
}
@media (max-width: 760px) {
  .ed-info { max-height: 300px; }                          /* no celular: caixa baixa, rola por dentro */
}

/* Pedido recebido: confirmação com previsão, no lugar do formulário */
.recebido { border-top: 1px solid var(--line); padding-top: 34px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.recebido .lead { margin: 0; max-width: 52ch; }
.rec-linha { display: flex; gap: 18px; align-items: baseline; width: 100%; max-width: 560px; border-top: 1px solid var(--line); padding-top: 12px; }
.rec-linha .q-label { width: 110px; flex: none; }
.rec-linha strong { font-family: var(--display); font-weight: 500; font-size: 19px; }
.recebido .pilula { margin-top: 10px; background: none; color: var(--fg); font: inherit; font-family: var(--display); font-weight: 500; font-size: 16px; }
/* Instagram com o começo do endereço fixo */
.insta-campo { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--t2); overflow: hidden; }
.insta-campo span { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 0 2px 0 16px; white-space: nowrap; }
.insta-campo input[type="text"] { border: 0; background: none; border-radius: 0; padding-left: 2px; min-width: 0; flex: 1; font-size: 16px; }
.insta-campo:focus-within { outline: 2px solid var(--foco); outline-offset: 2px; } .insta-campo input[type="text"]:focus-visible { outline: none; }

/* Andamento em porcentagem (ajustes em curso, ou vídeo ainda na fila) */
.ed-and { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; }
.ed-and-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; }
.ed-and-topo strong { font-family: var(--mono); font-weight: 400; font-size: 15px; }
.ed-fila { display: flex; flex-direction: column; gap: 14px; }
.ed-fila .ed-and { border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; background: var(--t1); }
.ed-fila h3 { font-family: var(--display); font-weight: 400; font-size: 19px; margin: 0; }
.ed-novo { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; flex-basis: 100%; border: 1px solid var(--line-2); border-radius: 18px; padding: 12px 16px; }

/* Editor: controles de música (volume e trecho) */
.ed-desl { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.ed-desl input[type="range"] { width: 100%; accent-color: var(--fg); height: 28px; }

/* Música na linha do tempo: a faixa inteira ao fundo, a parte usada na caixa; arrastar escolhe o trecho, as pontas cortam */
.mus-fundo { position: absolute; top: 6px; bottom: 6px; opacity: .22; background-repeat: no-repeat; background-size: 100% 100%; border-radius: 9px; pointer-events: none; }
.mus-clip { position: absolute; top: 6px; bottom: 6px; box-sizing: border-box; border: 1.5px solid var(--cta); border-radius: 9px; background-color: color-mix(in srgb, var(--cta) 14%, var(--bg)); background-repeat: no-repeat; cursor: grab; overflow: hidden; touch-action: none; }
.mus-clip:active { cursor: grabbing; }
.mus-clip > span { position: absolute; left: 18px; top: 3px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--bg); padding: 0 6px; border-radius: 6px; pointer-events: none; }
.mus-clip .mh { position: absolute; top: 0; bottom: 0; width: 12px; background: var(--cta); cursor: ew-resize; touch-action: none; }
.mus-clip .mh.l { left: 0; } .mus-clip .mh.r { right: 0; }
.mus-clip.pend { outline: 2px dashed var(--alert); outline-offset: 1px; }
.mus-clip.sel { outline: 2.5px solid var(--foco); outline-offset: 1px; }
@media (max-width: 760px) { .mus-clip .mh { width: 18px; } }

/* Ajustes da varredura de responsividade (18/11/2026) */
.recebido .lead, .rec-linha span, .rec-linha strong { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 760px) {
  .ed-pal button { min-height: 44px; padding-inline: 14px; }
  .rec-linha { flex-direction: column; gap: 4px; }
  .rec-linha .q-label { width: auto; }
}
@media (max-width: 760px) {
  .ed-info.form { max-height: none; }                      /* formulário de ajuste aparece inteiro no celular; só o resumo/histórico fica em caixa com rolagem */
  .cards.visu.duas { grid-template-columns: repeat(2, minmax(0, 1fr)); }      /* pergunta de duas respostas ocupa a largura toda */
}

/* Meus projetos: todos os vídeos do cliente, prontos e em edição */
.pj-sec { border-top: 1px solid var(--line); padding: 30px 0 40px; display: flex; flex-direction: column; gap: 22px; }
.pj-sec-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pj-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.pj { border: 1px solid var(--line); border-radius: 22px; background: var(--t1); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pj-capa { position: relative; display: block; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--brilho-1), var(--brilho-2)), var(--t2); overflow: hidden; }
.pj-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-capa .pj-toca { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; padding-left: 2px; box-sizing: border-box; }
.pj-capa.vazia { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pj-corpo { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.pj-corpo h3 { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.pj-meta { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.pj-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pj-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.pj-acoes a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.pj-and { display: flex; flex-direction: column; gap: 8px; }
.pj-fila { display: flex; flex-direction: column; gap: 14px; }
.pj-fila .pj { flex-direction: row; }
.pj-fila .pj-corpo { padding: 18px 20px; }
.recebido .lead a { color: var(--fg); text-underline-offset: 3px; }
@media (max-width: 640px) {
  /* topo: com três páginas, a navegação ganha a linha inteira e Sair/tema sobem */
  .topo-dir { flex-wrap: wrap; row-gap: 12px; }
  .nav { order: 2; flex-basis: 100%; box-sizing: border-box; }
  .nav a { flex: 1 1 auto; justify-content: center; padding-inline: 10px; }
  .nav a small { display: none; }
  .tema { margin-left: auto; }
  /* cartões deitados: capa pequena à esquerda */
  .pj-grade { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pj-grade .pj { flex-direction: row; }
  .pj-grade .pj-capa { width: 112px; flex: none; aspect-ratio: auto; min-height: 150px; }
  .pj-capa .pj-toca { width: 34px; height: 34px; left: 8px; bottom: 8px; font-size: 12px; }
  .pj-corpo { padding: 14px; }
  .pj-acoes a { flex: 1; min-height: 44px; }
}

/* Andamento vivo: a frase troca sozinha e um brilho corre pelo trilho, para não parecer parado. A largura da barra continua sendo a porcentagem real. */
.and-frase { transition: opacity .25s; } .and-frase.some { opacity: 0; }
.prog-trilho.viva { position: relative; }
.prog-trilho.viva::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--fg) 38%, transparent) 50%, transparent 100%); width: 35%; animation: and-corre 1.9s ease-in-out infinite; }
@keyframes and-corre { from { transform: translateX(-110%); } to { transform: translateX(400%); } }
@media (prefers-reduced-motion: reduce) { .prog-trilho.viva::after { animation: none; display: none; } }
a.pilula { color: var(--fg); text-decoration: none; }
.pj-acoes a { white-space: nowrap; }
@media (max-width: 640px) { .pj-acoes a { padding-inline: 12px; } }
/* a frase do andamento ocupa sempre uma linha só: a caixa não cresce nem encolhe quando a frase troca */
.and-frase { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-and-topo strong { flex: none; }

/* Celular: a linha do tempo fica logo abaixo do vídeo e dos controles, e o painel (resumo, ajuste, histórico) vem DEPOIS dela.
   Assim o painel pode mudar de altura a cada bloco tocado sem empurrar a linha do tempo para cima e para baixo. */
@media (max-width: 760px) {
  #ed:not([hidden]) { display: flex; flex-direction: column; gap: 18px; }
  #ed > .ed-palco, #ed .ed-lado { display: contents; }
  #ed .ed-tl { order: 1; margin-top: 0; }
  #ed .ed-info { order: 2; min-height: 300px; }
  #ed .ed-fecho { order: 3; }
  .ed-rolo { touch-action: pan-x; overscroll-behavior-x: contain; }      /* dentro da linha do tempo o dedo só anda para os lados */
  .ed-rolo .it, .ed-rolo .tr-corpo { touch-action: pan-x; }
}

/* Meus projetos: menu do cartão (três pontos) com renomear e excluir */
.pj { overflow: visible; }
.pj-capa { border-radius: 21px 21px 0 0; }
.pj-topo { position: relative; display: flex; align-items: flex-start; gap: 8px; }
.pj-topo h3 { flex: 1; min-width: 0; padding-top: 6px; }
.pj-mais { flex: none; width: 36px; height: 36px; margin: -2px -6px 0 0; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
.pj-mais:hover, .pj-mais[aria-expanded="true"] { background: var(--t3); border-color: var(--line); }
.pj-menu { position: absolute; top: 40px; right: -6px; z-index: 20; min-width: 190px; max-width: min(280px, 78vw); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.pj-menu button { font: inherit; font-size: 14.5px; text-align: left; background: none; border: 0; color: var(--fg); border-radius: 10px; padding: 11px 12px; cursor: pointer; min-height: 44px; }
.pj-menu button:hover, .pj-menu button:focus-visible { background: var(--t3); }
.pj-menu button.perigo { color: var(--alert); }
.pj-menu button[disabled] { opacity: .5; cursor: default; }
.pj-menu.confirma p { margin: 0; padding: 8px 12px 6px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.pj-erro { font-size: 13px; color: var(--alert); padding: 0 12px; } .pj-erro:empty { display: none; }
.pj-renomeia { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pj-renomeia input { flex: 1 1 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--fg); background: var(--t2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; box-sizing: border-box; }
.pj-renomeia .pj-erro { flex-basis: 100%; padding: 0; }
@media (max-width: 640px) { .pj-grade .pj-capa { border-radius: 21px 0 0 21px; } .pj-mais { width: 44px; height: 44px; margin: -8px -10px 0 0; } .pj-menu { top: 38px; } }

/* Vários vídeos no mesmo envio: uma linha por arquivo, com "tirar" */
.file-linha { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; width: 100%; }
.file-tirar { margin-left: auto; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.file-tirar:hover { color: var(--fg, inherit); }
#q-varios { margin-top: 4px; }
