/* RIKO Produções · aplicativo de revisão de vídeos
   Para virar modelo: troque as variáveis destes três primeiros blocos, o marca.css e o logo. */
:root {
  --tit: "Montserrat", system-ui, sans-serif;
  --corpo: "Montserrat", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --t-corpo: 14px; --t-rotulo: 12px; --t-titulo: 40px; --t-titulo-cel: 28px;
  --topo-altura: 60px; --margem: 32px; --lado: 400px; --pg-max: 1440px;
  --raio: 18px; --raio-i: 12px; --raio-modal: 24px; --raio-pl: 16px;
  --ease: cubic-bezier(.32,.72,0,1);
}
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(../fontes/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(../fontes/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fontes/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(../fontes/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 300; font-display: swap; src: url(../fontes/montserrat-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400 700; font-display: swap; src: url(../fontes/geist-mono.woff2) format("woff2"); }

/* Ajuste do tema gerado: a marca é preto e branco com um magenta (ver DESIGN.md) */
:root {
  --background: #f3f3f1; --foreground: #121317; --card: #ffffff; --card-foreground: #121317; --popover: #ffffff; --popover-foreground: #121317;
  --muted-foreground: #5b5f67; --subtle: #868a91; --chip: #f3f3f1; --trilho: #e9e9e6; --divisoria: #e2e2de; --border: #e2e2de; --input: #d6d6d1;
  --verde: #1f7a49; --verde-suave: #e2f1e8; --ambar: #8f6309; --ambar-suave: #f7edd5; --vermelho: #be3448; --marca-suave: #ececea;
  --primary: #121317; --primary-foreground: #ffffff; --ring: #121317; --marca-texto: #121317; --roxo: #121317;
  --faixa: #050608; --faixa-texto: #b5b8bf; --palco: #050608;
  --grafico-1: #c9cbd0; --grafico-2: #121317; --grafico-3: #8a8e96;
  --sombra: 0 1px 2px rgba(5,6,8,.06), 0 10px 28px -16px rgba(5,6,8,.22);
  --sombra-alta: 0 2px 6px rgba(5,6,8,.08), 0 24px 48px -20px rgba(5,6,8,.4);
  color-scheme: light;
}
.dark {
  --background: #050608; --foreground: #f1f2f4; --card: #101115; --card-foreground: #f1f2f4; --popover: #17181d; --popover-foreground: #f1f2f4;
  --muted-foreground: #a3a7ae; --subtle: #767a82; --chip: #17181d; --trilho: #1d1f25; --divisoria: #24262c; --border: #24262c; --input: #33363d;
  --verde: #55cf8f; --verde-suave: rgba(85,207,143,.13); --ambar: #e9b84f; --ambar-suave: rgba(233,184,79,.13); --vermelho: #ff6b7f; --marca-suave: rgba(255,255,255,.07);
  --primary: #f1f2f4; --primary-foreground: #050608; --ring: #f1f2f4; --marca-texto: #f1f2f4; --roxo: #f1f2f4;
  --faixa: #000000; --faixa-texto: #b5b8bf; --palco: #000000;
  --grafico-1: #3d4048; --grafico-2: #f1f2f4; --grafico-3: #8a8e96;
  --sombra: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -16px rgba(0,0,0,.9);
  --sombra-alta: 0 2px 6px rgba(0,0,0,.5), 0 24px 56px -18px rgba(0,0,0,.95);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 500 var(--t-corpo)/1.45 var(--corpo); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.esp { flex: 1; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.apoio { font-size: 12px; color: var(--muted-foreground); font-weight: 500; }
.alerta { color: var(--ambar) !important; }
.rot { font-size: 12px; font-weight: 600; color: var(--muted-foreground); }

/* ---------- Botões ---------- */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s var(--ease), transform .12s var(--ease), opacity .15s; text-align: center; }
.bt:active:not(:disabled) { transform: scale(.98); }
.bt:disabled { opacity: .42; }
.bt-marca { background: var(--primary); color: var(--primary-foreground); }
.bt-marca:hover:not(:disabled) { opacity: .86; }
.bt-marca:disabled, .bt-tinta:disabled { background: var(--trilho); color: var(--muted-foreground); opacity: 1; }
.bt-tinta { background: var(--foreground); color: var(--background); }
.bt-tinta:hover:not(:disabled) { opacity: .86; }
.bt-suave { background: var(--chip); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--divisoria); }
.bt-suave:hover:not(:disabled) { background: var(--trilho); }
.bt-p { min-height: 36px; padding: 0 14px; font-size: 13px; }
.bt-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; flex: none; color: var(--muted-foreground); font-size: 17px; transition: background .15s, color .15s; }
.bt-ic:hover { background: var(--trilho); color: var(--foreground); }
.bt-ic-p { width: 30px; height: 30px; font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--marca-texto); }
.link:hover { text-decoration: underline; }
.link-p { font-size: 12px; margin-top: 6px; }
.pilula { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--divisoria); color: var(--muted-foreground); font-weight: 600; font-size: 13px; white-space: nowrap; flex: none; transition: color .15s, background .15s; }
.pilula:hover { color: var(--foreground); }
.pilula.ativa, .pilula.ativa:hover { background: var(--foreground); color: var(--background); box-shadow: none; }
.pilula em { font-style: normal; font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--trilho); color: var(--foreground); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.pilula.ativa em { background: rgba(255,255,255,.18); color: inherit; }
.dark .pilula.ativa em { background: rgba(0,0,0,.14); }
.pilula-fixa { min-height: 32px; cursor: default; }
.contador { font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--foreground); color: var(--background); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

/* Chip: a cor diz com quem está a bola, o texto diz o quê. */
.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--trilho); color: var(--muted-foreground); width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip-rick { background: var(--foreground); color: var(--background); }
.chip-editor { background: var(--trilho); color: var(--muted-foreground); }
.chip-cliente { background: var(--ambar-suave); color: var(--ambar); }
.chip-pronto { background: var(--verde-suave); color: var(--verde); }

.dica { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; color: var(--subtle); flex: none; }
.dica:hover, .dica:focus-visible { color: var(--foreground); background: var(--trilho); }
.dica .ic { width: 17px; height: 17px; }
#pop { position: fixed; z-index: 60; display: none; padding: 12px 14px; border-radius: 16px; background: var(--popover); color: var(--popover-foreground); box-shadow: var(--sombra-alta), 0 0 0 1px var(--divisoria); font-size: 13px; line-height: 1.45; }
#pop.on { display: block; animation: surge .18s var(--ease); }
#pop b { display: block; margin-bottom: 3px; font-size: 13px; }
#pop p { color: var(--muted-foreground); }
.menu { display: grid; margin: -6px -8px; }
.menu > button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: 13px; text-align: left; }
.menu > button:hover { background: var(--trilho); }

/* ---------- Casca ---------- */
.topo { position: sticky; top: var(--vz-alto); z-index: 20; height: var(--topo-altura); background: var(--faixa); color: var(--faixa-texto); display: flex; align-items: center; gap: 28px; padding: 0 var(--margem); }
.topo-logo { display: flex; align-items: center; flex: none; }
.logo img { height: 22px; width: auto; }
.topo-nav { display: flex; align-self: stretch; gap: 4px; min-width: 0; }
.nav { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-weight: 600; font-size: 14px; color: var(--faixa-texto); white-space: nowrap; transition: color .15s; }
.nav .ic { font-size: 17px; }
.nav:hover { color: #fff; }
.nav.sel { color: #fff; }
.nav.sel::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #f1f2f4; }
.nav em { font-style: normal; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #f1f2f4; color: #050608; display: inline-flex; align-items: center; justify-content: center; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.topo .bt-ic { color: var(--faixa-texto); }
.topo .bt-ic:hover { background: rgba(255,255,255,.1); color: #fff; }
.demo { font-size: 12px; font-weight: 600; color: var(--faixa-texto); padding: 0 10px; height: 26px; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); white-space: nowrap; }
.demo-claro { color: var(--muted-foreground); box-shadow: inset 0 0 0 1px var(--divisoria); }
.tema { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); }
.tema-bt { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--faixa-texto); }
.tema-bt:hover { color: #fff; }
.tema-bt[aria-pressed="true"] { background: rgba(255,255,255,.16); color: #fff; }
.tema-bt .ic { width: 16px; height: 16px; }

.pg { max-width: var(--pg-max); margin: 0 auto; padding: 32px var(--margem) 64px; }
.pg > * { animation: entra .45s var(--ease) both; }
.pg > *:nth-child(2) { animation-delay: .04s; } .pg > *:nth-child(3) { animation-delay: .08s; } .pg > *:nth-child(4) { animation-delay: .12s; } .pg > *:nth-child(n+5) { animation-delay: .16s; }
.pg-cab { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pg-tit { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; }
h1 { font: 300 var(--t-titulo)/1.08 var(--tit); letter-spacing: -.025em; }
.filtros { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--margem) * -1) 24px; padding: 2px var(--margem); }
.filtros::-webkit-scrollbar { display: none; }

.bloco { margin-bottom: 28px; }
.bloco-cab { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; min-height: 26px; }
.bloco-cab h2, .bloco-cab h3 { font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.bloco-cab .contador { margin-left: 4px; }
.vazio { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 56px 16px; color: var(--muted-foreground); }
.vazio .ic { width: 34px; height: 34px; color: var(--subtle); }
.vazio-p { font-size: 13px; color: var(--muted-foreground); padding: 4px 0 8px; }
.aviso { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ambar-suave); color: var(--ambar); font-size: 14px; font-weight: 600; margin: 0 0 12px; }

/* ---------- Com você agora ---------- */
.cv { display: grid; gap: 2px; background: var(--card); border-radius: var(--raio); padding: 6px; }
.cv-i { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 6px 8px 6px 6px; border-radius: 13px; transition: background .15s; }
.cv-i:hover { background: var(--chip); }
.cv-pst .pst { width: 56px; height: 56px; border-radius: 10px; }
.cv-pst .pst-vazio span { display: none; }
.cv-txt { display: grid; gap: 1px; min-width: 0; }
.cv-txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-txt span { font-size: 13px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-ac { display: flex; gap: 8px; }

/* ---------- Poster ---------- */
.pst { position: relative; display: grid; place-items: center; background: var(--palco); border-radius: var(--raio-i); overflow: hidden; color: #8b8f97; }
.pst img { width: 100%; height: 100%; object-fit: cover; }
.pst-vertical img { object-fit: contain; }
.pst-vazio { gap: 4px; align-content: center; background: repeating-linear-gradient(135deg, var(--trilho) 0 8px, var(--chip) 8px 16px); color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.pst-vazio .ic { width: 22px; height: 22px; }

/* ---------- Faixa por cliente ---------- */
.fx { background: var(--card); border-radius: var(--raio); padding: 18px 0 18px; margin-bottom: 16px; }
.fx-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px 20px; padding: 0 20px 14px; }
.fx-nome { display: grid; gap: 2px; min-width: 0; }
.fx-nome h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-nome h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fx-ac { display: flex; align-items: center; gap: 4px; }
.fx .aviso { margin: 0 20px 12px; }
.fita { display: flex; gap: 14px; overflow-x: auto; padding: 2px 20px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fita > li { flex: none; scroll-snap-align: start; }
.vc { position: relative; display: grid; gap: 7px; width: 196px; padding: 0 0 2px; border-radius: 14px; transition: transform .2s var(--ease); }
.vc:hover { transform: translateY(-2px); }
.vc .pst { height: 132px; transition: box-shadow .2s var(--ease); }
.vc:hover .pst { box-shadow: var(--sombra); }
.vc-voce .pst { box-shadow: 0 0 0 2px var(--foreground); }
.vc-t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 2px; }
.vc-m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-ped, .vc-nota { position: absolute; top: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.vc-ped { left: 8px; background: #f1f2f4; color: #050608; }
.vc-ped .mk { width: 8px; height: 11px; fill: #050608; }
.vc-nota { right: 8px; background: rgba(5,6,8,.78); color: #fff; }

/* Saldo do pacote: uma casinha por edição */
.saldo { display: grid; gap: 6px; }
.saldo-cel { display: flex; flex-wrap: wrap; gap: 10px; }
.saldo-g { display: flex; flex-wrap: wrap; gap: 3px; }
.sc { display: block; width: 10px; height: 18px; border-radius: 3px; background: var(--trilho); }
.sc-usada { background: var(--foreground); }
.sc-extra { background: transparent; box-shadow: inset 0 0 0 1.5px var(--input); }
.sc-extra.sc-usada { background: var(--foreground); box-shadow: none; }
.sc-cobrar { background: repeating-linear-gradient(135deg, var(--ambar) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px var(--ambar); }
.saldo-txt { font-size: 12px; color: var(--muted-foreground); }
.saldo-txt b { color: var(--foreground); font-weight: 700; }
.saldo-c .sc { width: 7px; height: 14px; border-radius: 2px; }
.saldo-c .saldo-g { gap: 2px; }
.saldo-c .saldo-cel { gap: 6px; }
.fx-saldo { min-width: 0; max-width: 300px; }

/* ---------- Revisão ---------- */
.voltar { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); min-height: 32px; }
.voltar:hover { color: var(--foreground); }
.rv-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "volta volta" "tit dir"; gap: 6px 20px; align-items: end; margin-bottom: 20px; }
.rv-cab .voltar { grid-area: volta; justify-self: start; }
.rv-tit { grid-area: tit; display: grid; gap: 4px; min-width: 0; }
.rv-tit h1 { font-size: 32px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-dir { grid-area: dir; display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--trilho); gap: 2px; }
.seg-bt { min-height: 32px; min-width: 44px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: var(--muted-foreground); cursor: pointer; }
.seg-bt:hover { color: var(--foreground); }
.seg-bt.ativo, .seg-r:has(input:checked) { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg-r input { position: absolute; opacity: 0; pointer-events: none; }
.seg-p .seg-bt { min-height: 28px; font-size: 12px; }
.rv-corpo { display: grid; grid-template-columns: minmax(0, 1fr) var(--lado); gap: 24px; align-items: start; }
.rv-pl { position: sticky; top: calc(var(--vz-alto) + var(--topo-altura) + 16px); min-width: 0; }
.rv-local { margin-top: 8px; }
.rv-lado { display: grid; gap: 14px; min-width: 0; }
.rv-acao, .bloco-l { background: var(--card); border-radius: var(--raio); padding: 16px 18px; }
.rv-acao { display: grid; gap: 12px; }
.acao-t { font-size: 14px; line-height: 1.5; }
.acao-bts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pasta { font-size: 12px; color: var(--muted-foreground); overflow-wrap: anywhere; line-height: 1.5; }
.pasta-bt { display: inline-flex; align-items: flex-start; gap: 6px; text-align: left; padding: 6px 10px; border-radius: 10px; background: var(--chip); color: var(--foreground); margin-bottom: 4px; }
.pasta-bt:hover { background: var(--trilho); }
.pasta-bt .ic { margin-top: 1px; color: var(--muted-foreground); }
.rv-sem { align-items: stretch; }
.pst-grande { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 360px; border-radius: var(--raio); background: repeating-linear-gradient(135deg, var(--trilho) 0 10px, var(--chip) 10px 20px); color: var(--muted-foreground); text-align: center; padding: 24px; }
.pst-grande .ic { width: 34px; height: 34px; }
.det dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 12px; align-items: start; }
.det dt { font-size: 12px; font-weight: 600; color: var(--muted-foreground); padding-top: 6px; }
.det dd { font-size: 13px; display: grid; gap: 2px; justify-items: start; padding-top: 4px; min-width: 0; }
.det > .pasta-bt { margin-top: 0; }

/* ---------- Comentários ---------- */
.cms { display: grid; gap: 2px; }
.cm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; transition: background .2s; }
.cm.on, .cf-i.on { background: var(--chip); box-shadow: inset 3px 0 0 var(--primary); }
.cm-t { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 8px; border-radius: 999px; background: var(--chip); font-size: 13px; }
.cm.on .cm-t, .cf-i.on .cm-t { background: var(--card); }
.cm-t:hover { background: var(--trilho); }
.cm-t b { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--foreground); }
.cm-c { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.cm-c p { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.tp { font-size: 12px; font-weight: 700; }
.tp-corrigir { color: var(--marca-texto); }
.tp-sugestao { color: var(--muted-foreground); }
.tp-gostei { color: var(--verde); }
.tp-nota { color: var(--muted-foreground); }
.cm-e-feito, .cm-e-repassado { color: var(--foreground); }
.cm-e-certo { color: var(--verde); }
.cm-e-ainda, .cm-e-rascunho { color: var(--ambar); }
.cm-e-aberto { color: var(--marca-texto); }
.cm-r { margin-top: 4px; padding: 8px 12px; border-radius: 12px; background: var(--chip); width: 100%; }
.cm-r b { font-size: 12px; }
.cm-r p { font-size: 13px; }
.cm-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; cursor: pointer; padding-top: 4px; }
.cm-ok input { width: 18px; height: 18px; accent-color: var(--foreground); }
.cm-rf { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.cm-rf textarea, .cp textarea, .cf-f textarea { width: 100%; resize: vertical; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--chip); box-shadow: inset 0 0 0 1px var(--divisoria); font-size: 14px; line-height: 1.45; }
.cm-rf textarea:focus, .cp textarea:focus, .cf-f textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--foreground); }

/* Marcador K: barra no segundo exato, triângulo apontando para ela (o K da marca). */
.mk { width: 9px; height: 12px; fill: currentColor; flex: none; display: block; }
.mk-aberto { color: var(--marca-texto); }
.mk-feito { color: var(--foreground); }
.mk-feito .mk path, .mk-feito .mk rect, .mk-feito.mk path { fill: none; stroke: currentColor; stroke-width: 1.3; }
.mk-certo { color: var(--verde); }
.mk-ainda { color: var(--ambar); }
.mk-gostei { color: var(--verde); }
.mk-gostei .mk path { fill: none; stroke: currentColor; stroke-width: 1.3; }
.mk-nota { color: var(--subtle); }

/* Compositor */
.cp { display: grid; gap: 10px; padding: 14px; margin: 0 -4px 8px; border-radius: 14px; background: var(--marca-suave); animation: surge .2s var(--ease); }
.cp-l { font-size: 13px; font-weight: 600; }
.cp-l b { font-size: 14px; color: var(--marca-texto); }
.cp textarea { background: var(--card); }
.cp-pe { display: flex; align-items: center; gap: 8px; }
.cp-tipos { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-tipo { position: relative; }
.cp-tipo input { position: absolute; opacity: 0; }
.cp-tipo span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--divisoria); font-size: 13px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; }
.cp-tipo input:checked + span { background: var(--foreground); color: var(--background); box-shadow: none; }
.cp-tipo input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.dica-p { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); padding: 2px 0 10px; }

/* ---------- Player ---------- */
.pl { display: grid; gap: 0; border-radius: var(--raio-pl); background: var(--card); overflow: hidden; outline: none; }
.pl-tela { position: relative; display: grid; place-items: center; background: var(--palco); overflow: hidden; }
.pl-horizontal .pl-tela { aspect-ratio: 16 / 9; }
.pl-vertical .pl-tela { height: clamp(380px, calc(100dvh - var(--vz-alto) - var(--topo-altura) - 250px), 720px); }
.pl-v { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; background: var(--palco); }
.pl-tela:fullscreen { height: 100vh; }
.pl-grande { position: absolute; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #050608; font-size: 26px; transition: opacity .2s var(--ease), transform .2s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pl-grande .ic { margin-left: 3px; }
.pl-grande:hover { transform: scale(1.05); }
.pl.tocando .pl-grande { opacity: 0; pointer-events: none; transform: scale(.9); }
.pl-erro { position: absolute; inset: auto 16px 16px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.8); color: #fff; font-size: 13px; }
/* Anotações dentro do vídeo, no segundo delas */
.pl-notas { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; justify-items: start; pointer-events: none; }
.pl-nota { display: flex; gap: 10px; align-items: flex-start; max-width: min(520px, 100%); padding: 10px 14px 10px 12px; border-radius: 14px; background: rgba(5,6,8,.84); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: nota .26s var(--ease); }
.pl-nota .mk { width: 11px; height: 15px; margin-top: 2px; }
.pl-nota.mk-feito { color: #fff; }
.pl-nota.mk-aberto { color: #ffffff; }
.pl-nota.mk-certo, .pl-nota.mk-gostei { color: #6fe0a3; }
.pl-nota.mk-ainda { color: #f2c463; }
.pl-nota.mk-nota { color: #b5b8bf; }
.pl-nota span { display: block; font-size: 12px; font-weight: 600; color: #b5b8bf; }
.pl-nota p { font-size: 14px; line-height: 1.4; color: #fff; }
.pl-vertical .pl-notas { left: 50%; transform: translateX(-50%); width: min(92%, 420px); right: auto; }
.pl-ctl { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; }
.pl-bt { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--foreground); font-size: 18px; flex: none; }
.pl-bt:hover { background: var(--trilho); }
.pl-tocar { background: var(--foreground); color: var(--background); font-size: 16px; }
.pl-tocar:hover { background: var(--foreground); opacity: .86; }
.pl-tempo { font-family: var(--mono); font-size: 13px; color: var(--muted-foreground); white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.pl-tempo b { color: var(--foreground); font-weight: 600; }
.pl-trilha:focus-visible { outline: 2px solid var(--ring); outline-offset: 0; border-radius: 6px; }
.pl-feito { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--foreground); border-radius: 3px; }
.pl-mk { position: absolute; bottom: 0; display: flex; align-items: flex-end; gap: 1px; padding: 2px 4px 0 0; margin-left: -1.3px; transition: transform .15s var(--ease); }
.pl-mk .mk { width: 11px; height: 15px; }
.pl-mk:hover { transform: translateY(-2px); }
.pl-mk em { font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.pl-mk.mk-ant { opacity: .9; }
.pl-sobre { position: absolute; bottom: 30px; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: var(--foreground); color: var(--background); font: 600 12px var(--mono); pointer-events: none; white-space: nowrap; }

/* ---------- Clientes ---------- */
.cls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.cl { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; background: var(--card); border-radius: var(--raio); padding: 20px; scroll-margin-top: 140px; }
.cl-foco { box-shadow: 0 0 0 2px var(--foreground); }
.cl-cab { display: flex; align-items: flex-start; gap: 12px; }
.cl-cab > div:first-child { display: grid; gap: 2px; margin-right: auto; min-width: 0; }
.cl-cab h2 { font-size: 18px; font-weight: 600; }
.cl-ac { display: flex; align-items: center; gap: 4px; flex: none; }
.cl-num { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cl-num > div { background: var(--chip); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.cl-num dt { font-size: 12px; color: var(--muted-foreground); font-weight: 600; }
.cl-num dd { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-num dd .apoio { font-size: 12px; }
.cl-graf { min-height: 170px; display: grid; grid-template-rows: auto 1fr; }
.cl-graf .bloco-cab { margin-bottom: 0; }
.cl-graf .bloco-cab h3 { font-size: 13px; }
.legenda { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-foreground); }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.lg-1 { background: var(--grafico-1); } .lg-2 { background: var(--grafico-2); }
.graf { min-height: 150px; }
.cl-pe { display: flex; gap: 8px; }
.cl-lista { display: grid; gap: 8px; align-content: start; }
.cl-lista li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--chip); }
.cl-lista a { font-weight: 600; }
.cl-lista a:hover { text-decoration: underline; }

/* ---------- Modal ---------- */
#camada { position: fixed; inset: 0; z-index: 50; display: none; }
#camada.on { display: grid; place-items: center; padding: 16px; }
.md-fundo { position: absolute; inset: 0; background: rgba(5,6,8,.55); animation: aparece .2s; }
.md { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--popover); color: var(--popover-foreground); border-radius: var(--raio-modal); padding: 24px; box-shadow: var(--sombra-alta); animation: surge .24s var(--ease); }
.md-t { font: 300 26px/1.15 var(--tit); letter-spacing: -.02em; margin-bottom: 8px; }
.md-p { color: var(--muted-foreground); margin-bottom: 16px; }
.md-nota { margin-top: 12px; }
.md-pe { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo label, .campo legend { font-size: 13px; font-weight: 600; padding: 0; }
.campo label.seg-bt { padding: 0 14px; font-size: 13px; }
.campo legend { margin-bottom: 6px; }
.campo input, .campo select, .campo textarea, .np-vs input { min-height: 42px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--chip); box-shadow: inset 0 0 0 1px var(--divisoria); font-size: 14px; width: 100%; }
.campo textarea { padding: 10px 12px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .np-vs input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--foreground); }
.campos2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.np-vs { display: grid; gap: 6px; margin: 4px 0 8px; }
.np-vs li { display: flex; gap: 6px; align-items: center; }
.np-prev { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--chip); }
.np-pasta { display: grid; gap: 3px; }
.np-pasta .pasta { color: var(--foreground); font-size: 13px; }
.np-saldo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.arq { display: block; cursor: pointer; }
.arq input { position: absolute; opacity: 0; width: 1px; }
.arq-cx { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border-radius: 16px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--divisoria); text-align: center; transition: box-shadow .15s; }
.arq:hover .arq-cx, .arq input:focus-visible + .arq-cx { box-shadow: inset 0 0 0 1.5px var(--foreground); }
.arq-cx .ic { width: 26px; height: 26px; }
.arq-demo { margin-top: 10px; }
.arq-prog { display: grid; gap: 8px; }
.arq-nome { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.barra { height: 6px; border-radius: 3px; background: var(--trilho); overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--foreground); border-radius: 3px; transition: width .12s linear; }
.barra-p { height: 4px; }

/* ---------- Editor ---------- */
.ed-l { display: grid; gap: 12px; }
.ed-c { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 16px; align-items: start; background: var(--card); border-radius: var(--raio); padding: 14px; }
.ed-pst .pst { height: 96px; }
.ed-txt { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.ed-txt b { font-size: 15px; font-weight: 600; }
.ed-ped { display: grid; gap: 4px; width: 100%; }
.ed-ped li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.ed-ped .mono { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; flex: none; }
.ed-ac { align-self: center; }
.ed-env { display: grid; gap: 4px; background: var(--card); border-radius: var(--raio); padding: 6px; }
.ed-env a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; }
.ed-env a:hover { background: var(--chip); }
.ed-env .pst { width: 48px; height: 48px; border-radius: 9px; }
.ed-env .pst-vazio span { display: none; }
.ed-env a > span { display: grid; min-width: 0; }
.ed-env b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Assistente ---------- */
.as { display: grid; grid-template-columns: minmax(0, 1fr) var(--lado); gap: 24px; align-items: start; }
.as-conv { background: var(--card); border-radius: var(--raio); padding: 20px; display: grid; gap: 16px; }
.as-conv .bloco-cab { margin-bottom: 0; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chips .pilula { white-space: normal; text-align: left; min-height: 36px; padding: 6px 14px; }
.as-msg { border-radius: 18px; padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.as-eu { justify-self: end; max-width: 80%; background: var(--foreground); color: var(--background); border-bottom-right-radius: 6px; }
.as-ele { background: var(--chip); border-bottom-left-radius: 6px; display: grid; gap: 8px; }
.as-ele h3 { font-size: 14px; font-weight: 700; margin-top: 6px; }
.as-ele ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }
.as-ele p, .as-ele li { overflow-wrap: anywhere; }
.as-fer { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-foreground); }
.as-lado { display: grid; gap: 14px; }
.as-fers { display: grid; gap: 10px; }
.as-fers li { display: grid; gap: 1px; }
.as-fers b { font-size: 13px; }
.as-fers span { font-size: 13px; color: var(--muted-foreground); }
.as-p { font-size: 13px; color: var(--muted-foreground); margin: 6px 0; }
.codigo { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--chip); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.codigo:hover { background: var(--trilho); }
.codigo pre { margin: 0; font: inherit; white-space: pre-wrap; flex: 1; min-width: 0; }
.codigo .ic { color: var(--muted-foreground); margin-left: auto; }

/* ---------- Sala do cliente ---------- */
.topo-sala { gap: 16px; }
.sala-nome { font-size: 13px; color: var(--faixa-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sala-nome b { color: #fff; font-weight: 600; }
.casca-sala .pg { max-width: 1040px; }
.sl-cab { display: grid; gap: 6px; margin-bottom: 24px; }
.sl-lead { font-size: 18px; color: var(--muted-foreground); font-weight: 500; }
.sl-saldo { background: var(--card); border-radius: var(--raio); padding: 16px 20px; margin-bottom: 28px; }
.sl-sec { margin-bottom: 28px; }
.sl-h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.sl-rev { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.sl-c { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; background: var(--card); border-radius: var(--raio); padding: 12px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); height: 100%; }
.sl-c:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.sl-c .pst { height: 150px; }
.sl-c-t { display: grid; gap: 6px; align-content: center; justify-items: start; }
.sl-c-t b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.sl-c-m { font-size: 13px; color: var(--ambar); font-weight: 600; }
.sl-c-bt { margin-top: 6px; }
.sl-lin { display: grid; gap: 4px; background: var(--card); border-radius: var(--raio); padding: 6px; }
.sl-lin li > a, .sl-lin li > div { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.sl-lin li > a:hover { background: var(--chip); }
.sl-lin li span:last-child { display: grid; }
.sl-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--muted-foreground); flex: none; }
.sl-ok { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.sl-ok-c { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 8px; }
.sl-ok-c .pst { height: 64px; border-radius: 10px; }
.sl-ok-c > span { display: grid; min-width: 0; }
.sl-ok-c b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-cab { display: grid; gap: 6px; justify-items: start; margin-bottom: 18px; }
.sv-cab h1 { font-size: 32px; }
.sv-cab .seg { margin-top: 6px; }
.sv-corpo { display: grid; grid-template-columns: minmax(0, 1fr) var(--lado); gap: 24px; align-items: start; }
.sv-pl { position: sticky; top: calc(var(--vz-alto) + var(--topo-altura) + 16px); min-width: 0; }
.sv-lado { display: grid; gap: 14px; min-width: 0; }
.sv-conf, .sv-anot { background: var(--card); border-radius: var(--raio); padding: 16px 18px; }
.sv-conf { box-shadow: inset 0 0 0 1.5px var(--foreground); }
.cf { display: grid; gap: 4px; }
.cf-i { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; }
.cf-bts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cf-ok, .cf-ainda { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-top: 4px; }
.cf-ok { color: var(--verde); }
.cf-ainda { color: var(--ambar); }
.cf-f { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.sv-barra { display: grid; gap: 8px; justify-items: stretch; background: var(--card); border-radius: var(--raio); padding: 14px; }
.sv-barra .bt { width: 100%; min-height: 48px; font-size: 15px; }
.sv-barra .apoio { text-align: center; }
.sv-estado { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: var(--raio); padding: 16px 18px; font-size: 14px; }
.sv-estado .ic { width: 22px; height: 22px; color: var(--verde); flex: none; }
.sv-nota { display: grid; gap: 4px; background: var(--card); border-radius: var(--raio); padding: 16px 18px; }
.sv-nota b { font: 300 40px/1 var(--tit); }
.sv-nota b span { font-size: 18px; color: var(--muted-foreground); }
.sv-nota p { color: var(--muted-foreground); }
.sala-pe { max-width: 1040px; margin: 0 auto; padding: 0 var(--margem) 40px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 12px; color: var(--muted-foreground); letter-spacing: .02em; }

/* Avaliação final */
.av-n { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.av-b { position: relative; }
.av-b input, .cp-tipo input, .seg-r input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.av-b span { display: grid; place-items: center; height: 52px; border-radius: 14px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--divisoria); font: 300 24px var(--tit); cursor: pointer; transition: background .15s, color .15s; }
.av-b input:checked + span { background: var(--foreground); color: var(--background); box-shadow: none; }
.av-b input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.av-esc { display: flex; justify-content: space-between; margin-top: 2px; }


/* ---------- Barra de filtros (igual em Entregas e Painel) ---------- */
.fb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.fb-dd { gap: 8px; max-width: 280px; }
.fb-dd span { overflow: hidden; text-overflow: ellipsis; }
.fb-dd .ic { font-size: 16px; }
.fb-dd .seta { width: 12px; height: 12px; opacity: .7; }
.fb-on { box-shadow: inset 0 0 0 1.5px var(--foreground); color: var(--foreground); }
.fb-busca { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--divisoria); margin-left: auto; min-width: min(320px, 100%); color: var(--muted-foreground); }
.fb-busca:focus-within { box-shadow: inset 0 0 0 1.5px var(--foreground); }
.fb-busca input { border: 0; background: none; outline: none; flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: var(--foreground); }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.fb-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--foreground); color: var(--background); font-size: 12px; font-weight: 600; }
.fb-chip .ic { width: 13px; height: 13px; opacity: .8; }
.fb-chips .link { font-size: 12px; margin-left: 4px; }
.fb-menu button[aria-pressed="true"] { color: var(--foreground); }
.fb-menu button .ic, .fb-menu button i.ic { width: 16px; height: 16px; display: inline-block; }
.fb-ck { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; }
.fb-ck:hover { background: var(--trilho); }
.fb-ck input { width: 18px; height: 18px; accent-color: var(--foreground); }
.fb-per { display: grid; gap: 8px; padding: 10px; margin-top: 4px; border-top: 1px solid var(--divisoria); }
.fb-per > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fb-per input { width: 100%; min-height: 36px; padding: 0 8px; border-radius: 10px; border: 0; background: var(--chip); box-shadow: inset 0 0 0 1px var(--divisoria); font-size: 12px; }
.fb-pe { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; border-top: 1px solid var(--divisoria); margin-top: 4px; }

/* ---------- Quadro: com quem está cada vídeo ---------- */
.raia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 28px; }
.raia-b { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 10px 8px; min-height: 148px; padding: 16px 16px 14px; border-radius: var(--raio); background: #0b0c0f; color: #f1f2f4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.raia-b:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.raia-t { display: grid; gap: 2px; min-width: 0; }
.raia-n { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.raia-n::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--raia-cor); flex: none; }
.raia-a { font-size: 12px; color: #a3a7ae; }
.raia-c { font: 300 40px/1 var(--tit); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.raia-capas { grid-column: 1 / -1; align-self: end; display: flex; height: 48px; }
.raia-capas img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 3px #0b0c0f; background: #000; }
.raia-capas img + img { margin-left: -14px; }
.raia-voce { --raia-cor: #f1f2f4; }
.raia-editor { --raia-cor: var(--grafico-1); }
.raia-cliente { --raia-cor: var(--ambar); }
.raia-prontos { --raia-cor: var(--verde); }
.raia-b.ativa { background: #ffffff; color: #0b0c0f; box-shadow: 0 0 0 1px #d9dade, var(--sombra); }
.raia-b.ativa .raia-a { color: #5b5f67; }
.raia-b.ativa .raia-capas img { box-shadow: 0 0 0 3px #ffffff; }
.raia-voce.ativa { --raia-cor: #0b0c0f; }
.raia-x { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; opacity: .8; }
.raia-x .ic { width: 13px; height: 13px; }

/* Pedidos que chegaram */
.pc { display: grid; gap: 10px; }
.pc-i { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: start; background: var(--card); border-radius: var(--raio); padding: 12px; box-shadow: inset 3px 0 0 var(--foreground); }
.pc-pst .pst { height: 80px; }
.pc-txt { display: grid; gap: 4px; min-width: 0; }
.pc-txt b { font-size: 15px; font-weight: 600; }
.pc-ped { display: grid; gap: 4px; margin-top: 4px; }
.pc-ped a { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; }
.pc-ped a:hover { background: var(--chip); }
.pc-ped .mono { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; flex: none; }
.pc-ped .tp { flex: none; }
.pc-ac { display: grid; gap: 8px; align-self: center; }
.contador-suave { background: var(--trilho); color: var(--foreground); }

/* Decisões a tomar */
.dz { display: grid; gap: 10px; }
.dz-i { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: start; background: var(--card); border-radius: var(--raio); padding: 12px; }
.etq { display: inline-flex; align-items: center; gap: 6px; width: max-content; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--trilho); color: var(--foreground); }
.etq .ic { width: 14px; height: 14px; }
.dz-repassar .etq { background: var(--foreground); color: var(--background); }
.dz-conferir .etq { background: var(--trilho); }
.dz-fazer .etq { box-shadow: inset 0 0 0 1.5px var(--foreground); background: transparent; }
.dz-lembrar .etq { background: var(--ambar-suave); color: var(--ambar); }
.dz-drive .etq { background: var(--verde-suave); color: var(--verde); }

/* Página do cliente */
.ccab { display: grid; gap: 8px; margin-bottom: 20px; }
.ccab .voltar { justify-self: start; }
.ccab-l { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ccab-t { display: grid; gap: 4px; min-width: 0; margin-right: auto; }
.ccab-ac { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.av-g { width: 64px; height: 64px; font-size: 20px; }
.cgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
.cg-saldo { display: grid; gap: 14px; align-content: start; }
.cg-graf { display: grid; grid-template-rows: auto 1fr; }
.sec-t { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.gv-cab { display: flex; align-items: center; gap: 16px; padding: 0 20px 14px; flex-wrap: wrap; }
.gv-cab .fx-nome { margin-right: auto; }
.gv-cab h3 { font-size: 16px; font-weight: 600; }
.pastas-l { display: flex; flex-wrap: wrap; gap: 8px; justify-items: end; }
.gv-vazio { padding: 0 20px; }
a.av-c:hover { opacity: .85; }

/* Avatar do cliente */
.av-c { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--foreground); color: var(--background); font-size: 14px; font-weight: 700; letter-spacing: .02em; flex: none; }

/* Cartão de vídeo: etapa na própria capa */
.vc .pst::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--vc-cor, transparent); }
.vc-voce { --vc-cor: var(--primary); }
.vc-editor { --vc-cor: var(--grafico-1); }
.vc-cliente { --vc-cor: var(--ambar); }
.vc-prontos { --vc-cor: var(--verde); }
.vc-voce .pst { box-shadow: none; }
.vc-v { position: absolute; left: 8px; top: 102px; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(5,6,8,.78); color: #fff; font: 600 12px/22px var(--mono); }

/* Pastas */
.pasta-bt { display: inline-flex; align-items: center; gap: 8px; text-align: left; min-height: 34px; padding: 6px 10px; border-radius: 10px; background: var(--chip); color: var(--foreground); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; max-width: 100%; }
.pasta-bt:hover { background: var(--trilho); }
.pasta-bt > .ic:first-child { color: var(--muted-foreground); width: 16px; height: 16px; }
.pasta-bt span { min-width: 0; }
.pasta-seta { width: 13px; height: 13px; color: var(--subtle); margin-left: auto; }
.pasta-off { color: var(--muted-foreground); box-shadow: inset 0 0 0 1px var(--divisoria); background: transparent; }
.pl-loc { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.pastas { display: grid; gap: 8px; justify-items: start; }
.np-pasta .rot { display: inline-flex; align-items: center; gap: 6px; }

/* Linha do tempo com a tira de quadros do vídeo */
.pl-ctl { padding: 10px 12px 4px; }
.pl-dica { margin-right: 6px; }
.pl.tocando .pl-dica { visibility: hidden; }
.pl-trilha { position: relative; flex: none; height: auto; min-width: 0; margin: 0 12px 12px; padding-top: 22px; cursor: pointer; touch-action: none; }
.pl-tira { position: relative; height: 46px; border-radius: 10px; overflow: hidden; background: var(--trilho) center / 100% 100% no-repeat; }
.pl-feito { display: none; }
.pl-resto { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(5,6,8,.55); pointer-events: none; }
.pl-tira:not([style]) .pl-resto { background: var(--chip); }
.pl-cabeca { position: absolute; top: 18px; bottom: -4px; width: 2px; height: auto; margin-left: -1px; border-radius: 1px; background: var(--foreground); box-shadow: 0 0 0 1px var(--card); pointer-events: none; }
.pl-cabeca::before { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--foreground); box-shadow: 0 0 0 2px var(--card); }
.pl-marcas { position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: 20px; z-index: 2; }
.pl-sobre { top: -6px; bottom: auto; z-index: 3; }

/* Anotação com a miniatura do quadro */
.cm-t-q { flex-direction: column; align-items: stretch; height: auto; padding: 4px; gap: 4px; border-radius: 12px; }
.cm-q { display: block; width: 76px; height: 46px; border-radius: 8px; background-color: var(--palco); background-size: 1600% 100%; background-repeat: no-repeat; }
.cm-tt { display: inline-flex; align-items: center; gap: 5px; padding: 0 4px 2px; }

/* Antes e depois no mesmo segundo */
.ad { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 4px; }
.ad .cm-tt { grid-column: 1 / -1; justify-content: center; }
.ad-q { position: relative; display: block; }
.ad-q .cm-q { width: 58px; height: 40px; }
.ad-q em { position: absolute; left: 3px; bottom: 3px; font: 600 12px/1 var(--mono); font-style: normal; color: #fff; background: rgba(5,6,8,.75); padding: 2px 4px; border-radius: 4px; }
.ad-seta { width: 12px; height: 12px; color: var(--muted-foreground); }

/* Perigo */
.bt-perigo { color: var(--vermelho); }
.bt-perigo:hover { background: color-mix(in srgb, var(--vermelho) 12%, transparent); }
.bt-perigo-cheio { background: var(--vermelho); color: #fff; }
.bt-perigo-cheio:hover { opacity: .9; }
.menu .menu-perigo { color: var(--vermelho); }

/* Conexões */
.cx { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--chip); margin-bottom: 10px; }
.cx-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card); font-size: 22px; }
.cx-t { display: grid; gap: 2px; min-width: 0; }
.cx-raiz { margin: -2px 0 12px; }
.cx-breve { opacity: .8; }
.cx-demo { margin-top: 4px; }

/* ---------- Painel ---------- */
.pn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.pn-card { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; background: var(--card); border-radius: var(--raio); padding: 16px 18px 12px; min-width: 0; }
.pn-num { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pn-num:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.pn-card .bloco-cab { margin-bottom: 0; }
.pn-seta { margin-left: auto; color: var(--subtle); width: 16px; height: 16px; }
.pn-n { display: flex; align-items: baseline; gap: 8px; }
.pn-n b { font: 300 38px/1.05 var(--tit); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pn-tot { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.pn-e { grid-column: span 3; }
.pn-f { grid-column: span 1; }
.pn-g, .pn-h { grid-column: span 2; }
.pn .graf { min-height: 110px; align-self: end; }
.pn-esp { display: grid; gap: 2px; margin: 4px -8px 0; }
.pn-esp a { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 44px; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.pn-esp a:hover { background: var(--chip); }
.pn-esp-t { display: grid; min-width: 0; }
.pn-esp-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-esp-d { height: 8px; border-radius: 4px; background: var(--trilho); overflow: hidden; }
.pn-esp-d i { display: block; height: 100%; border-radius: 4px; background: var(--ambar); }
.pn-esp-n { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
  .raia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-e, .pn-f, .pn-g, .pn-h { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .raia { gap: 8px; }
  .raia-b { min-height: 124px; padding: 12px; }
  .raia-c { font-size: 30px; }
  .raia-a { display: none; }
  .raia-capas img { width: 34px; height: 34px; border-radius: 8px; }
  .raia-x { display: none; }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .fb-busca { margin-left: 0; width: 100%; }
  .fb-dd { max-width: 100%; }
  .pl-dica { display: none; }
  .vc-v { top: 82px; }
  .av-c { width: 38px; height: 38px; font-size: 13px; }
}


/* ---------- Agenda ---------- */
.chip-ag-verde { background: var(--verde-suave); color: var(--verde); }
.chip-ag-ambar { background: var(--ambar-suave); color: var(--ambar); }
.chip-ag-neutro { background: var(--trilho); color: var(--muted-foreground); }
.sl-abas { margin-top: 14px; }
.sl-abas .seg-bt { gap: 8px; min-height: 40px; padding: 0 16px; font-size: 14px; text-decoration: none; }
.sl-abas .seg-bt .ic { width: 16px; height: 16px; }
.sl-n { font-style: normal; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--foreground); color: var(--background); display: inline-flex; align-items: center; justify-content: center; }
.sl-topo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-bottom: 28px; align-items: stretch; }
.sl-topo .sl-saldo { margin-bottom: 0; }
.sl-ag { display: grid; gap: 12px; align-content: start; background: var(--card); border-radius: var(--raio); padding: 16px 20px; }
.sl-ag .bloco-cab { margin-bottom: 0; }
.sl-ag > .bt { justify-self: start; }
.ag-prox { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--chip); }
.ag-prox:hover { background: var(--trilho); }
.ag-prox-t { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.ag-prox-t b { font-weight: 600; }
.ag-prox-t > span:not(.chip) { font-size: 13px; color: var(--muted-foreground); }
.ag-cal { width: 52px; height: 56px; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 0; background: var(--foreground); color: var(--background); flex: none; }
.ag-cal em { font-style: normal; font-size: 12px; font-weight: 600; opacity: .8; line-height: 1.1; }
.ag-cal b { font: 600 22px/1.05 var(--tit); font-variant-numeric: tabular-nums; }
.ag-cal-g { width: 72px; height: 72px; align-self: center; }
.ag-lista { display: grid; gap: 8px; }
.ag-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--card); }
.ag-txt { display: grid; gap: 2px; min-width: 0; }
.ag-txt b { font-weight: 600; }
.ag-txt > span { font-size: 13px; color: var(--muted-foreground); }
.ag-recusado { opacity: .78; }
.ag-recusado .ag-cal { background: var(--trilho); color: var(--muted-foreground); }
.ag-proposto .ag-cal { background: var(--ambar-suave); color: var(--ambar); }
.ag-motivo { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; margin-top: 4px; color: var(--foreground); }
.ag-motivo .ic { margin-top: 2px; color: var(--muted-foreground); }
.ag-lista-c { margin-bottom: 28px; }
.ag-lista-c .ag-i .bt { white-space: nowrap; }

.ag-novo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ag-esq { display: grid; gap: 14px; background: var(--card); border-radius: var(--raio); padding: 16px 18px; }
.ag-esq .campo { margin-bottom: 0; }
.cal { display: grid; gap: 8px; }
.cal-cab { display: flex; align-items: center; gap: 8px; }
.cal-cab b { font-size: 15px; }
.lg-livre { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--foreground); }
.lg-meu { background: var(--verde); }
.cal-sem, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-sem span { font-size: 12px; font-weight: 600; color: var(--muted-foreground); text-align: center; }
.cal-d { position: relative; display: grid; align-content: center; justify-items: center; gap: 1px; min-height: 58px; border-radius: 12px; background: transparent; color: var(--subtle); transition: background .15s, transform .15s var(--ease); }
.cal-d b { font: 600 17px/1.1 var(--tit); font-variant-numeric: tabular-nums; }
.cal-d small { font-size: 12px; font-weight: 600; }
.cal-d:disabled { cursor: default; opacity: .55; }
.cal-d.livre { background: var(--chip); color: var(--foreground); box-shadow: inset 0 0 0 1.5px var(--divisoria); }
.cal-d.livre small { color: var(--muted-foreground); }
.cal-d.livre:hover { box-shadow: inset 0 0 0 1.5px var(--foreground); transform: translateY(-1px); }
.cal-d.hoje b { text-decoration: underline; text-underline-offset: 3px; }
.cal-d.meu { color: var(--foreground); }
.cal-d.meu-confirmado { background: var(--verde-suave); box-shadow: inset 0 0 0 1.5px var(--verde); }
.cal-d.meu-proposto { background: var(--ambar-suave); box-shadow: inset 0 0 0 1.5px var(--ambar); }
.cal-ponto { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
.meu-proposto .cal-ponto { background: var(--ambar); }
.cal-d.sel, .cal-d.sel:hover { background: var(--foreground); color: var(--background); box-shadow: none; }
.cal-d.sel small { color: inherit; opacity: .8; }
.ag-dir { display: grid; gap: 12px; align-content: start; background: var(--card); border-radius: var(--raio); padding: 18px 20px; min-height: 320px; }
.ag-vazio { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 260px; text-align: center; color: var(--muted-foreground); }
.ag-vazio .ic { width: 30px; height: 30px; }
.ag-dia { font: 300 26px/1.1 var(--tit); letter-spacing: -.02em; }
.ag-seu { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--verde-suave); color: var(--verde); font-weight: 600; }
.ag-horas { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-form { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--divisoria); }
.ag-form .bt { width: 100%; margin-top: 4px; white-space: normal; text-align: center; min-height: 48px; }

/* Agenda do Rick: a semana em períodos */
.ag-nav { display: flex; align-items: center; gap: 6px; }
.ag-nav b { font-size: 15px; min-width: 110px; text-align: center; font-variant-numeric: tabular-nums; }
.ag-rick { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ag-sem-w { overflow-x: auto; background: var(--card); border-radius: var(--raio); padding: 12px; }
.ag-sem { display: grid; grid-template-columns: 112px repeat(var(--dias), minmax(104px, 1fr)); gap: 8px; min-width: 760px; }
.ag-pcol, .ag-dcol { display: grid; grid-template-rows: 64px repeat(3, 116px); gap: 8px; min-width: 0; }
.ag-pcol span { display: grid; align-content: center; gap: 2px; }
.ag-pcol span .ic { width: 18px; height: 18px; color: var(--muted-foreground); }
.ag-pcol b { font-size: 14px; font-weight: 700; }
.ag-pcol small { font: 600 12px var(--mono); color: var(--muted-foreground); }
.ag-dcab { display: grid; justify-items: center; align-content: center; gap: 0; }
.ag-dcab span { font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.ag-dcab b { font: 600 20px/1.2 var(--tit); }
.ag-dcab em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted-foreground); }
.ag-dcol.hoje .ag-dcab b { background: var(--foreground); color: var(--background); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
.ag-c { display: grid; align-content: start; gap: 2px; padding: 10px; border-radius: 12px; text-align: left; overflow: hidden; min-width: 0; transition: transform .15s var(--ease), background .15s; }
button.ag-c:hover { transform: translateY(-1px); }
.ag-c b { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-c span { font-size: 12px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ag-c small { font-size: 12px; font-weight: 600; opacity: .85; margin-top: auto; }
.ag-c .ic { width: 13px; height: 13px; flex: none; }
.ag-c-confirmado { background: var(--foreground); color: var(--background); }
.ag-c-proposto { background: var(--ambar-suave); color: var(--ambar); box-shadow: inset 0 0 0 1.5px var(--ambar); }
.ag-c-bloq { background: repeating-linear-gradient(135deg, var(--trilho) 0 6px, var(--chip) 6px 12px); color: var(--muted-foreground); box-shadow: inset 0 0 0 1px var(--divisoria); }
.ag-c-auto { background: transparent; color: var(--muted-foreground); box-shadow: inset 0 0 0 1.5px var(--input); border-radius: 12px; background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--chip) 8px 10px); }
.ag-c-livre { place-content: center; justify-items: center; background: var(--chip); color: var(--muted-foreground); box-shadow: inset 0 0 0 1px var(--divisoria); }
.ag-c-livre span { font-size: 13px; font-weight: 600; }
.ag-c-livre:hover { box-shadow: inset 0 0 0 1.5px var(--foreground); }
.ag-c-livre:hover span::after { content: " · trancar"; }
.ag-c-passou { background: transparent; box-shadow: inset 0 0 0 1px var(--divisoria); opacity: .4; }
.ag-dcol.passou { opacity: .55; }
.ag-lg-a { box-shadow: inset 0 0 0 1.5px var(--input); background: repeating-linear-gradient(135deg, transparent 0 3px, var(--chip) 3px 5px); }
.ag-dia-todo { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: -4px 0 4px; cursor: pointer; }
.ag-dia-todo input { width: 18px; height: 18px; accent-color: var(--foreground); }

/* Cliente: períodos */
.cal-p { display: flex; gap: 3px; margin-top: 3px; }
.cal-p i { width: 10px; height: 4px; border-radius: 2px; background: var(--foreground); }
.cal-d.sel .cal-p i { background: var(--background); }
.cal-nota { margin-top: 2px; }
.ag-pers { display: grid; gap: 8px; }
.ag-per { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--divisoria); text-align: left; transition: box-shadow .15s, background .15s; }
.ag-per .ic { width: 22px; height: 22px; color: var(--muted-foreground); }
.ag-per b { font-size: 16px; font-weight: 700; }
.ag-per span { font: 600 13px var(--mono); color: var(--muted-foreground); }
.ag-per:hover { box-shadow: inset 0 0 0 1.5px var(--foreground); }
.ag-per.sel { background: var(--foreground); color: var(--background); box-shadow: none; }
.ag-per.sel .ic, .ag-per.sel span { color: inherit; opacity: .85; }
.ag-lado { display: grid; gap: 14px; }
.ag-ped { display: grid; gap: 10px; }
.ag-ped li { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--ambar-suave); }
.ag-ped li > div:first-child { display: grid; gap: 1px; }
.ag-ped b { font-weight: 600; }
.ag-ped span:not(.apoio) { font-size: 13px; }
.ag-g p { display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }
.ag-leg { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; }
.ag-leg span { display: flex; align-items: center; gap: 8px; }
.ag-lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.ag-lg-c { background: var(--foreground); }
.ag-lg-p { background: var(--ambar-suave); box-shadow: inset 0 0 0 1.5px var(--ambar); }
.ag-lg-b { background: repeating-linear-gradient(135deg, var(--trilho) 0 3px, var(--chip) 3px 6px); box-shadow: inset 0 0 0 1px var(--input); }
.ag-dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; margin: 4px 0 8px; }
.ag-dl dt { font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.dz-agenda .etq { background: var(--ambar-suave); color: var(--ambar); }

@media (max-width: 1180px) {
  .ag-rick { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ag-novo { grid-template-columns: minmax(0, 1fr); }
  .ag-i { grid-template-columns: auto minmax(0, 1fr); }
  .ag-i .chip, .ag-i .bt { grid-column: 2; justify-self: start; }
  .cal-d { min-height: 50px; }
  .cal-sem, .cal-g { gap: 4px; }
  .dz-agenda .ag-cal-g { width: 56px; height: 60px; }
}

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; border-radius: 16px; background: #121317; color: #f1f2f4; box-shadow: var(--sombra-alta); font-size: 14px; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.dark #toast { background: #f1f2f4; color: #121317; }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast span { overflow-wrap: anywhere; }
.toast-bt { font-weight: 700; color: inherit; padding: 6px 10px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 1px currentColor; }

@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes surge { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes nota { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .rv-corpo, .sv-corpo, .as { grid-template-columns: minmax(0, 1fr); }
  .rv-pl, .sv-pl { position: static; }
  .fx-cab { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fx-saldo { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .cls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --margem: 16px; --t-titulo: var(--t-titulo-cel); }
  .topo { gap: 12px; }
  .topo-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--faixa); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; box-shadow: 0 -1px 0 rgba(255,255,255,.08); }
  .nav { flex-direction: column; justify-content: center; gap: 3px; font-size: 12px; padding: 0 4px; }
  .nav.sel::after { top: 0; bottom: auto; border-radius: 0 0 3px 3px; left: 30%; right: 30%; }
  .nav em { position: absolute; top: 6px; left: calc(50% + 6px); }
  .pg { padding: 22px var(--margem) 104px; }
  .casca-sala .pg { padding-bottom: 40px; }
  .demo { display: none; }
  .rv-cab { grid-template-columns: minmax(0, 1fr); grid-template-areas: "volta" "tit" "dir"; }
  .rv-tit h1, .sv-cab h1 { font-size: 26px; }
  .cv-i { grid-template-columns: 48px minmax(0, 1fr); }
  .cv-pst .pst { width: 48px; height: 48px; }
  .cv-ac { grid-column: 1 / -1; }
  .cv-ac .bt { width: 100%; }
  .pc-i, .dz-i { grid-template-columns: 72px minmax(0, 1fr); }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .pc-pst .pst { height: 72px; }
  .pc-ac { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .pc-ac .bt { width: 100%; }
  .fx-ac .bt-p { padding: 0 10px; }
  .fx { padding: 14px 0; }
  .fx-cab { padding: 0 14px 12px; gap: 10px 12px; grid-template-columns: auto minmax(0, 1fr); }
  .fx-saldo, .fx-ac { grid-column: 1 / -1; }
  .fx-ac { grid-row: 3; }
  .gv-cab { padding: 0 14px 12px; }
  .pastas-l { width: 100%; }
  .ccab-ac { width: 100%; }
  .fita { padding: 2px 14px 6px; gap: 10px; }
  .vc { width: 156px; }
  .vc .pst { height: 112px; }
  .ed-c { grid-template-columns: 96px minmax(0, 1fr); }
  .ed-pst .pst { height: 72px; }
  .ed-ac { grid-column: 1 / -1; }
  .ed-ac .bt { width: 100%; }
  .cl-num { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campos2 { grid-template-columns: 1fr; }
  .sl-c { grid-template-columns: 112px minmax(0, 1fr); }
  .sl-c .pst { height: 132px; }
  .pl-vertical .pl-tela { height: min(64vh, 620px); min-height: 0; }
  .pl-ctl { gap: 6px; padding: 6px 8px 8px; }
  .pl-cheia { display: none; }
  .sv-barra { position: sticky; bottom: 8px; z-index: 15; box-shadow: var(--sombra-alta); }
  .md { padding: 20px; }
  .sala-pe { flex-direction: column; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .casca-sala ~ #toast, body:has(.casca-sala) #toast { bottom: 20px; }
}
@media (max-width: 420px) {
  .sala-nome { display: none; }
  .pl-som { display: none; }
  .fx-ac .bt span, .fx-ac .bt { font-size: 12px; }
}
@media print { .topo, #visoes, .sv-barra { display: none; } }
