/* Cortes da Mavi: same world as cortes.mavietoria.com.br (pink sticker, plum outline, Fredoka/Nunito),
   reorganised around a review queue. Standalone: does not load the old style.css. */

:root {
  --pink-50: #FFF0F6; --pink-100: #FFD6E5; --pink-300: #FF8FB8; --pink-500: #FF5C9A; --pink-600: #E8457F;
  --lilac: #D9C7FF; --lilac-50: #F3EDFF; --cream: #FFF6EE; --plum: #6B3A55; --plum-70: #8A5F76;
  --mint: #C8F0D8; --butter: #FFE9A8;
  --font-title: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --outline: 3px solid var(--plum);
  --shadow: 0 4px 0 var(--plum);
  --r: 20px;
  --nav-h: 68px;
}
* { box-sizing: border-box; }
html { background: var(--pink-50); }
body {
  margin: 0; min-height: 100dvh; color: var(--plum);
  font: 16px/1.45 var(--font-body);
  background:
    url(decor/sparkle.svg) 96% 18px / 32px no-repeat,
    linear-gradient(165deg, var(--pink-50), var(--pink-100)) fixed;
  padding-bottom: calc(var(--nav-h) + 24px);
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--pink-300); color: var(--plum); }
:focus-visible { outline: 3px solid var(--pink-500); outline-offset: 3px; border-radius: 10px; }
.ic { flex: none; stroke-width: 2.4; vertical-align: -0.2em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sticker { background: var(--cream); border: var(--outline); border-radius: var(--r); box-shadow: var(--shadow); }
.muted { color: var(--plum-70); }
.text-sticker {
  color: var(--pink-500); --o: .05em; --d: .035em;
  text-shadow: var(--o) 0 var(--plum), calc(-1*var(--o)) 0 var(--plum), 0 var(--o) var(--plum), 0 calc(-1*var(--o)) var(--plum),
    var(--d) var(--d) var(--plum), calc(-1*var(--d)) var(--d) var(--plum), var(--d) calc(-1*var(--d)) var(--plum), calc(-1*var(--d)) calc(-1*var(--d)) var(--plum), 0 .1em var(--plum);
}

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: var(--outline); border-radius: 16px; background: white; color: var(--plum);
  padding: 10px 16px; font: 700 16px/1 var(--font-title); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--plum); transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--plum); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--plum); }
.btn.primary { background: var(--pink-500); color: white; }
.btn.magic { background: var(--lilac); }
.btn.big { padding: 14px 20px; font-size: 18px; border-radius: 18px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.icon-btn { border: 2px solid var(--plum); background: white; border-radius: 12px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; flex: none; }
kbd { font: 700 11px var(--font-body); border: 1.5px solid currentColor; border-radius: 6px; padding: 0 5px; opacity: .7; }

/* ---------- navigation: top on desktop, tab bar on phones */
.nav { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: var(--nav-h); display: flex; justify-content: center;
  background: var(--cream); border-top: var(--outline); }
.nav a { flex: 1; max-width: 140px; white-space: nowrap; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; font: 600 13px var(--font-title); position: relative; }
.nav a[aria-current="page"] { color: var(--pink-500); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; top: -3px; left: 25%; right: 25%; height: 4px; border-radius: 0 0 4px 4px; background: var(--pink-500); }
.nav .count { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--pink-500); color: white; border: 2px solid var(--plum); font: 700 11px/16px var(--font-body); text-align: center; }
.nav .count:empty { display: none; }
@media (min-width: 820px) {
  body { padding-bottom: 40px; padding-top: 84px; }
  .nav { top: 14px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); height: 56px; padding: 0 8px; gap: 4px;
    border: var(--outline); border-radius: 999px; box-shadow: var(--shadow); }
  .nav a { flex-direction: row; gap: 8px; max-width: none; padding: 0 16px; font-size: 15px; }
  .nav a[aria-current="page"]::after { top: auto; bottom: 6px; left: 16px; right: 16px; height: 3px; border-radius: 3px; }
  .nav .count { position: static; }
}

/* ---------- page heads */
.page-head { display: flex; align-items: flex-end; gap: 14px; padding: 20px 0 14px; }
.page-head img { width: 88px; margin-bottom: -4px; }
.page-head h1 { font-size: clamp(26px, 5vw, 36px); }
.page-head p { font-weight: 700; margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font: 700 15px var(--font-title); text-decoration: none; }
h2.sec { font-size: 22px; margin: 28px 0 12px; }

/* ---------- home */
.todo { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .todo { grid-template-columns: 1.4fr 1fr; } }
.todo .sticker { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.todo .main { background: var(--pink-500); color: white; }
.todo .main .num { font: 700 64px/0.9 var(--font-title); }
.todo .num { font: 700 44px/0.9 var(--font-title); }
.todo .covers { display: flex; gap: 8px; }
.todo .covers .cover { width: 72px; border-width: 2px; }
.todo .btn { align-self: flex-start; margin-top: auto; }
.todo .main .btn { background: white; color: var(--plum); }
.lives-list { display: grid; gap: 12px; }
.live-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 16px; text-decoration: none; transition: transform .12s ease-out; }
.live-row:hover { transform: translateY(-2px); }
.live-row h3 { font-size: 19px; }
.live-row .sub { font-size: 14px; }
.live-row .go { grid-row: span 2; font: 700 15px var(--font-title); display: flex; align-items: center; gap: 4px; }
.bar { height: 10px; border: 2px solid var(--plum); border-radius: 999px; background: white; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .q { background: var(--pink-500); } .bar .d { background: var(--plum-70); } .bar .p { background: #3fbf7f; }

/* ---------- cover (tiktok-like thumbnail with the hook) */
.cover { position: relative; aspect-ratio: 9 / 16; border: 2px solid var(--plum); border-radius: 14px; overflow: hidden; background: var(--plum); container-type: inline-size; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgb(60 20 40 / .75)); }
.cover-hook { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 9%; color: white; font: 700 clamp(11px, 11cqi, 22px)/1.05 var(--font-title);
  text-transform: uppercase; text-shadow: 0 2px 0 var(--plum), 0 0 1px var(--plum); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cover-dur { position: absolute; z-index: 1; top: 6px; right: 6px; font: 700 11px var(--font-body); background: rgb(255 255 255 / .9); border-radius: 999px; padding: 1px 7px; }
.badge { position: absolute; z-index: 1; top: 6px; left: 6px; font: 700 11px/1.5 var(--font-title); border: 2px solid var(--plum); border-radius: 999px; padding: 0 7px; background: white; }
.badge.st-quero { background: var(--pink-500); color: white; }
.badge.st-descartado { background: var(--plum-70); color: white; }
.badge.st-postado { background: var(--mint); }
.badge.vbadge { top: auto; bottom: 6px; left: auto; right: 6px; background: var(--lilac); }

/* ---------- live page grid */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 6px 0 16px; }
.seg { display: inline-flex; border: var(--outline); border-radius: 14px; overflow: hidden; background: white; }
.seg button { border: 0; background: none; padding: 8px 12px; font: 600 14px var(--font-title); cursor: pointer; }
.seg button + button { box-shadow: inset 2px 0 0 var(--plum); } /* segment divider */
.seg button[aria-pressed="true"] { background: var(--plum); color: white; }
.tipo { display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--font-title); color: var(--plum-70); }
select { font: 600 14px var(--font-title); color: var(--plum); border: var(--outline); border-radius: 14px; padding: 8px 10px; background: white; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
@media (min-width: 820px) { .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; } }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: transform .12s ease-out; }
.tile:hover { transform: translateY(-3px); }
.tile .cover { border-width: 3px; box-shadow: var(--shadow); }
.tile .line { display: flex; gap: 6px; font-size: 13px; font-weight: 700; color: var(--plum-70); }
.score { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 8px; background: var(--pink-500); color: white; font: 700 13px var(--font-title); }
.empty { padding: 28px 18px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty h2 { font-size: 22px; }

/* ---------- review */
.review { display: grid; gap: 16px; padding-top: 10px; }
.review .stage { display: grid; place-items: center; }
.player { width: min(100%, calc(62dvh * 9 / 16)); aspect-ratio: 9 / 16; border: var(--outline); border-radius: 22px; box-shadow: var(--shadow); background: var(--plum); display: block; overflow: hidden; position: relative; }
.player.pending .cover { border: 0; border-radius: 0; height: 100%; }
.player.pending .cover-hook { font-size: clamp(16px, 9cqi, 30px); }
.pending-note { position: absolute; z-index: 2; left: 50%; top: 12px; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
  font: 600 13px var(--font-title); background: var(--butter); border: 2px solid var(--plum); border-radius: 999px; padding: 3px 10px; }
.review .info { display: flex; flex-direction: column; gap: 10px; }
.review .count-line { display: flex; justify-content: space-between; align-items: center; font: 700 15px var(--font-title); }
.review h1 { font-size: clamp(24px, 4.4vw, 34px); text-transform: uppercase; }
.review .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-weight: 700; font-size: 14px; color: var(--plum-70); }
.why { padding: 12px 14px; background: white; border: 2px solid var(--plum); border-radius: 14px; }
.why b { font-family: var(--font-title); }
details.fala { font-size: 14px; }
details.fala summary { cursor: pointer; font: 600 14px var(--font-title); }
details.fala p { margin-top: 8px; max-height: 160px; overflow: auto; color: var(--plum-70); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .magic { grid-column: 1 / -1; order: 3; }
.actions .sm { display: none; }
.actions .btn { min-height: 56px; }
.keys { font-size: 12px; color: var(--plum-70); display: flex; gap: 12px; flex-wrap: wrap; }
.status-now { font: 700 14px var(--font-title); text-transform: capitalize; }
@media (max-width: 819px) {
  .review .actions { position: fixed; z-index: 9; left: 10px; right: 10px; bottom: calc(var(--nav-h) + 10px); background: var(--cream); padding: 10px;
    border: var(--outline); border-radius: 22px; box-shadow: var(--shadow); grid-template-columns: 1fr 1fr 1.3fr; }
  .review .actions .magic { grid-column: auto; order: 2; }
  .review .actions .keep { order: 3; }
  .actions .lg { display: none; } .actions .sm { display: inline; }
  .player { width: min(100%, calc(50dvh * 9 / 16)); }
  .review .actions .btn { min-height: 52px; padding: 8px; font-size: 15px; }
  body.reviewing { padding-bottom: calc(var(--nav-h) + 110px); }
  .keys { display: none; }
}
@media (min-width: 820px) {
  .review { grid-template-columns: auto minmax(320px, 460px); justify-content: center; align-items: start; gap: 36px; }
  .player { width: calc(min(78dvh, 760px) * 9 / 16); }
}

/* ---------- to-post list */
.post-list { display: grid; gap: 14px; }
.post { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: start; }
.post .cover { border-width: 2px; }
.post h3 { font-size: 18px; text-transform: uppercase; }
.post textarea { width: 100%; margin-top: 8px; min-height: 64px; resize: vertical; border: 2px solid var(--plum); border-radius: 12px; padding: 8px 10px; font: 14px var(--font-body); color: var(--plum); }
.post .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.post .row .btn { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
@media (max-width: 719px) { .post .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .post .row .btn { width: 100%; } }
@media (min-width: 720px) { .post { grid-template-columns: 120px minmax(0, 1fr); } }

/* ---------- assistant sheet */
dialog.sheet { padding: 0; border: 0; color: var(--plum); background: var(--pink-50); width: 100vw; max-width: 100vw; height: 92dvh; max-height: 92dvh; margin: auto 0 0;
  border-top: var(--outline); border-radius: 24px 24px 0 0; }
@media (min-width: 820px) { dialog.sheet { margin: 0 0 0 auto; width: 460px; height: 100dvh; max-height: 100dvh; border-top: 0; border-left: var(--outline); border-radius: 0; } }
dialog.sheet::backdrop { background: rgb(107 58 85 / .4); }
dialog.sheet[open] { animation: sheet-in .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .6; } }
.sheet-in { display: flex; flex-direction: column; height: 100%; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--cream); border-bottom: var(--outline); }
.sheet-thumb { width: 56px; flex: none; }
.sheet-thumb .cover-hook, .sheet-thumb .cover-dur { display: none; }
.sheet-head > div:nth-child(2) { flex: 1; min-width: 0; }
.sheet-head h2 { font-size: 20px; }
.sheet-hook { font: 700 14px var(--font-title); text-transform: uppercase; margin-top: 2px; color: var(--plum-70); }
.versions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; font-size: 12px; font-weight: 700; }
.vchip { border: 2px solid var(--plum); border-radius: 999px; padding: 0 7px; background: white; }
.vchip:last-child { background: var(--lilac); }
.chat { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 13px; border: 2px solid var(--plum); border-radius: 18px; font-size: 15px; }
.msg.eu { align-self: flex-end; background: var(--pink-500); color: white; border-bottom-right-radius: 6px; }
.msg.ia { align-self: flex-start; background: var(--cream); border-bottom-left-radius: 6px; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg .acts { display: flex; gap: 8px; margin-top: 10px; }
.msg .btn { padding: 8px 12px; font-size: 14px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--plum); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.progress { height: 10px; border: 2px solid var(--plum); border-radius: 999px; overflow: hidden; background: white; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; background: var(--pink-500); transition: width .2s linear; }
.hints { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.hints button { flex: none; border: 2px dashed var(--plum); background: white; border-radius: 999px; padding: 5px 11px; font: 600 13px var(--font-title); cursor: pointer; }
form.send { display: flex; gap: 8px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-top: var(--outline); background: var(--cream); }
form.send textarea { flex: 1; resize: none; min-height: 48px; border: 2px solid var(--plum); border-radius: 14px; padding: 12px; font: 16px var(--font-body); color: var(--plum); background: white; }
form.send .btn { width: 52px; padding: 0; }

/* ---------- toast */
#toast { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--nav-h) + 96px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; gap: 12px; align-items: center; background: var(--plum); color: white; border-radius: 16px; padding: 10px 12px 10px 16px; font-weight: 700;
  transition: opacity .2s ease-out, transform .25s cubic-bezier(.16, 1, .3, 1); white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { border: 2px solid white; background: none; color: white; border-radius: 10px; padding: 4px 10px; font: 700 14px var(--font-title); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
@media (min-width: 820px) { #toast { bottom: 28px; } }

/* ---------- effects page */
.criar { padding: 18px; display: grid; gap: 10px; }
.criar label { font: 700 18px var(--font-title); }
.criar textarea { min-height: 80px; border: 2px solid var(--plum); border-radius: 14px; padding: 12px; font: 16px var(--font-body); color: var(--plum); resize: vertical; }
.criar .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.criar .ex { border: 2px dashed var(--plum); background: white; border-radius: 999px; padding: 5px 11px; font: 600 13px var(--font-title); cursor: pointer; }
.criar .out { font-weight: 700; }
.criar .out:empty { display: none; }
.efx { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.efx article { padding: 14px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: start; }
.efx .ico { grid-row: span 3; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--plum); border-radius: 12px; background: var(--lilac-50); }
.efx h3 { font-size: 17px; }
.efx p { font-size: 14px; }
.efx .ex { font-size: 13px; color: var(--plum-70); font-style: italic; }
.lvl { justify-self: start; font: 600 12px var(--font-title); border: 2px solid var(--plum); border-radius: 999px; padding: 0 8px; background: var(--pink-100); }
.lvl.l1 { background: var(--lilac); } .lvl.l2 { background: var(--butter); } .lvl.l3 { background: var(--mint); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- assistant: pick one of several chat messages + inline previews */
.opts { display: grid; gap: 8px; margin-top: 10px; }
.opt { text-align: left; border: 2px solid var(--plum); background: var(--lilac-50); border-radius: 14px; padding: 8px 12px; cursor: pointer; font: 15px/1.35 var(--font-body); color: var(--plum); display: grid; gap: 2px; }
.opt b { font: 600 13px var(--font-title); }
.opt:hover:not(:disabled) { background: var(--lilac); }
.opt:disabled { opacity: .6; cursor: default; }
.likely { justify-self: start; font: 600 11px var(--font-title); background: var(--pink-500); color: white; border-radius: 999px; padding: 0 7px; margin-top: 2px; }
.prev { display: grid; gap: 6px; margin-top: 10px; }
.prev video { width: 100%; max-width: 220px; aspect-ratio: 9 / 16; border: 2px solid var(--plum); border-radius: 14px; background: var(--plum); display: block; }
.prev-label { font: 600 12px var(--font-title); display: inline-flex; gap: 4px; align-items: center; }
.prevs { display: flex; gap: 8px; overflow-x: auto; }
.prevs figure { margin: 0; flex: none; width: 120px; display: grid; gap: 4px; font: 600 12px var(--font-title); }
.prevs video { max-width: none; width: 120px; }


/* ---------- setup guide: one step open at a time */
.guia { max-width: 640px; }
.g-bar { margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { padding: 14px 16px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { font-size: 18px; flex: 1; }
.step-n { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 2px solid var(--plum); border-radius: 50%; font: 700 16px var(--font-title); background: white; }
.step-badge { font: 600 12px var(--font-title); border: 2px solid var(--plum); border-radius: 999px; padding: 1px 9px; display: inline-flex; gap: 4px; align-items: center; background: white; }
.st-feito .step-n, .st-feito .step-badge { background: var(--mint); }
.st-feito, .st-pulado, .st-depois { box-shadow: none; }
.st-depois, .st-pulado { opacity: .55; }
.st-agora { background: white; border-color: var(--pink-500); box-shadow: 0 4px 0 var(--pink-500); }
.st-agora .step-n, .st-agora .step-badge { background: var(--pink-500); color: white; border-color: var(--plum); }
.step-body { display: grid; gap: 10px; margin: 12px 0 2px 46px; }
.step-body p { font-size: 17px; font-weight: 700; }
.step-dica { font-size: 14px !important; }
.step-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wait { display: inline-flex; gap: 6px; align-items: center; font: 600 14px var(--font-title); }
.setup-card { padding: 16px 18px; display: flex; gap: 14px; align-items: center; text-decoration: none; margin-bottom: 14px; }
.setup-card .bar { flex: 1; }
.setup-card b { font: 700 17px var(--font-title); white-space: nowrap; }

/* ---------- conversar: chat over her clips */
.talk { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h) - 24px); max-width: 760px; padding-top: 12px; }
.talk-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.talk-hello { margin: auto 0; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 24px 0; }
.talk-hello h1 { font-size: clamp(22px, 5vw, 30px); max-width: 18ch; }
.talk-hello .hints { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 0; }
.msg.wide { max-width: 100%; width: 100%; background: transparent; border: 0; padding: 0; }
.msg .hints { padding: 8px 0 0; flex-wrap: wrap; overflow: visible; }
.msg a { font-weight: 700; }
.talk-cards { display: grid; gap: 10px; }
.talk-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--cream); border: var(--outline); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; }
.talk-card .cover { border-width: 2px; }
.talk-card .cover-hook { display: none; }
.talk-card h3 { font-size: 16px; text-transform: uppercase; }
.talk-card p { font-size: 13px; font-weight: 700; margin-top: 2px; }
.talk-m { color: var(--pink-600); }
.talk-card .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.talk-card .btn { padding: 6px 10px; font-size: 13px; box-shadow: 0 2px 0 var(--plum); border-width: 2px; }
.talk-send { position: sticky; bottom: calc(var(--nav-h) + 10px); flex-wrap: wrap; border: var(--outline); border-radius: 22px; box-shadow: var(--shadow); padding: 10px; }
@media (min-width: 820px) { .talk-send { bottom: 16px; } .talk { min-height: calc(100dvh - 120px); } }
body.chatting { padding-bottom: calc(var(--nav-h) + 12px); }
@media (min-width: 820px) { body.chatting { padding-bottom: 0; } }
.focus-chip { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font-title); }
.focus-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70vw; background: var(--lilac); border: 2px solid var(--plum); border-radius: 999px; padding: 1px 10px; }
.focus-chip button { border: 2px solid var(--plum); background: white; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; padding: 0; }
@media (max-width: 819px) { .nav a { font-size: 11px; } }

/* ---------- métricas */
.exemplo { font: 600 12px var(--font-title); background: var(--butter); border: 2px solid var(--plum); border-radius: 999px; padding: 0 8px; margin-left: 4px; white-space: nowrap; }
.mx-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.mx-redes { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-r { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--plum); background: white; border-radius: 999px; padding: 5px 12px; font: 600 14px var(--font-title); cursor: pointer; }
.chip-r i, .legend i, .sw, .mx-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chip-r[aria-pressed="false"] { opacity: .45; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (min-width: 820px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { padding: 14px 16px; display: grid; gap: 2px; box-shadow: 0 3px 0 var(--plum); }
.kpi-n { font: 600 13px var(--font-title); color: var(--plum-70); }
.kpi b { font: 700 30px/1.1 var(--font-title); font-variant-numeric: tabular-nums; }
.kpi-d { font-size: 12px; font-weight: 800; color: var(--plum-70); }
.kpi-d.up { color: #0f7a4a; } .kpi-d.down { color: #b42318; }
.mx-card { padding: 16px 18px; margin-bottom: 14px; }
.mx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.mx-head h2 { font-size: 19px; }
.legend { display: flex; gap: 14px; font: 700 13px var(--font-body); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #ead9e2; stroke-width: 1; }
.chart .ax { font: 600 11px var(--font-body); fill: var(--plum-70); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover { fill: rgb(107 58 85 / .06); }
.mx-tip { position: absolute; z-index: 20; width: 180px; transform: translateY(-100%); background: white; border: 2px solid var(--plum); border-radius: 12px; padding: 8px 10px; font-size: 13px; box-shadow: 0 3px 0 var(--plum); pointer-events: none; }
.mx-tip div { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.mx-tip span { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.mx-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.mx-table th, .mx-table td { text-align: right; padding: 4px 8px; border-bottom: 1px solid #ead9e2; }
.mx-table th:first-child, .mx-table td:first-child { text-align: left; }
.mx-two { display: grid; gap: 14px; }
@media (min-width: 900px) { .mx-two { grid-template-columns: 1.3fr 1fr; align-items: start; } .mx-two .mx-card { margin-bottom: 0; } }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank li { display: grid; grid-template-columns: 22px 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.rank-n { font: 700 18px var(--font-title); text-align: center; }
.rank-c .cover { border-width: 2px; border-radius: 10px; }
.rank-c .cover-hook, .rank-c .cover-dur { display: none; }
.rank h3 { font-size: 15px; text-transform: uppercase; }
.rank p { font-size: 13px; font-weight: 700; }
.rank .sw { margin-right: 6px; vertical-align: -1px; }
.rank-m b { font-variant-numeric: tabular-nums; }
.hb { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; font-weight: 700; }
.hb-t { height: 14px; display: block; }
.hb-t i { display: block; height: 100%; background: var(--pink-600); border-radius: 0 4px 4px 0; min-width: 4px; }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; }
.mx-sub { font-size: 17px; margin: 18px 0 6px; }
.insights { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
/* new messages scroll into view above the sticky composer (and the tab bar on phones) */
.talk-log .msg { scroll-margin-bottom: calc(var(--nav-h) + 130px); }
@media (min-width: 820px) { .talk-log .msg { scroll-margin-bottom: 130px; } }

/* ---------- posting from the chat */
.talk-post { display: grid; gap: 12px; background: var(--cream); border: var(--outline); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; }
.talk-post .talk-card { border: 0; box-shadow: none; padding: 0; background: none; grid-template-columns: 56px minmax(0, 1fr); }
.talk-post label { display: grid; gap: 4px; font: 600 14px var(--font-title); }
.talk-post input[type="datetime-local"], .talk-post textarea { font: 15px var(--font-body); color: var(--plum); border: 2px solid var(--plum); border-radius: 12px; padding: 8px 10px; background: white; }
.talk-post fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.talk-post legend { font: 600 14px var(--font-title); margin-bottom: 4px; }
.talk-post .chip-r { display: inline-flex; grid-auto-flow: column; }
.talk-post .chip-r input { accent-color: var(--pink-500); }
.agendado { margin-top: 6px; font: 600 13px var(--font-title); display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; background: var(--lilac-50); border: 2px solid var(--plum); border-radius: 12px; padding: 4px 10px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--plum); }

/* ---------- processing states */
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: girar .8s linear infinite; flex: none; }
.spin.big { width: 26px; height: 26px; border-width: 3.5px; color: var(--pink-500); }
@keyframes girar { to { transform: rotate(360deg); } }
.proc { padding: 16px 18px; margin-bottom: 16px; display: grid; gap: 12px; background: white; border-color: var(--pink-500); box-shadow: 0 4px 0 var(--pink-500); }
.proc-top { display: flex; gap: 12px; align-items: center; }
.proc-top b { font: 700 17px var(--font-title); }
.proc-top p { font-size: 13px; font-weight: 700; }
.proc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.proc-steps li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 4px 8px; font: 600 15px var(--font-title); }
.proc-steps .bar { grid-column: 2 / -1; height: 8px; }
.proc-steps .bar i { transition: width .9s linear; }
.ps-ic { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--plum); background: white; }
.ps-feito .ps-ic { background: var(--mint); }
.ps-agora .ps-ic { border-color: var(--pink-500); color: var(--pink-500); }
.ps-depois { opacity: .45; }
.proc-n { font: 700 13px var(--font-body); font-variant-numeric: tabular-nums; }
.badge-proc { display: inline-flex; gap: 5px; align-items: center; vertical-align: middle; font: 600 12px var(--font-title); color: var(--pink-600); border: 2px solid var(--pink-500); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
.badge-proc .spin { width: 10px; height: 10px; border-width: 2px; }

/* clip render: blurred cover until ready, then it un-blurs once */
.cover.rendering img { filter: blur(12px) saturate(.75) brightness(.85); transform: scale(1.15); }
.render-tag { position: absolute; z-index: 2; inset: auto 8% 42% 8%; display: inline-flex; justify-content: center; align-items: center; gap: 6px; color: white;
  font: 700 clamp(11px, 9cqi, 15px) var(--font-title); text-shadow: 0 1px 0 var(--plum); }
.render-tag .spin { width: 1.1em; height: 1.1em; border-width: 2px; }
.cover.revela img { animation: revelar .9s cubic-bezier(.16, 1, .3, 1); }
@keyframes revelar { from { filter: blur(12px) saturate(.75) brightness(.85); transform: scale(1.15); } }
.tile.locked { cursor: progress; }
.tile.locked .cover { box-shadow: none; }
.demo { text-align: center; margin: 22px 0 0; font-size: 13px; }

/* assistant trace: what it is doing, step by step */
.trace-title { font: 700 14px var(--font-title); }
.trace { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; font-size: 14px; }
.trace li { display: flex; align-items: center; gap: 8px; color: var(--plum-70); }
.trace li.ok { color: var(--plum); }
.trace .ps-ic { width: 20px; height: 20px; }
.trace .ps-ic .spin { width: 11px; height: 11px; border-width: 2px; color: var(--pink-500); }
.trace li.ok .ps-ic { background: var(--mint); }
.trace-render { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; margin-top: 8px; font: 600 14px var(--font-title); }
.trace-render .progress { grid-column: 1 / -1; margin-top: 0; }
.trace-render .spin { color: var(--pink-500); }

/* ---------- configurações */
.cfg { max-width: 640px; }
.cfg-list { display: grid; gap: 12px; }
.cfg-item { padding: 16px 18px; display: grid; gap: 8px; margin: 0; min-width: 0; }
fieldset.cfg-item { border: var(--outline); }
.cfg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; }
.cfg-head h2 { font-size: 18px; }
.cfg-head output { font: 700 18px var(--font-title); color: var(--pink-600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cfg-item p { font-size: 14px; font-weight: 700; }
.cfg-dica { font-size: 12px !important; }
.cfg input[type="range"] { width: 100%; accent-color: var(--pink-500); height: 28px; }
.cfg-input { justify-self: start; font: 600 18px var(--font-title); color: var(--plum); border: 2px solid var(--plum); border-radius: 12px; padding: 8px 12px; background: white; }
.cfg-redes { display: flex; gap: 8px; flex-wrap: wrap; }
.cfg-redes input { accent-color: var(--pink-500); }
.cfg-links { text-align: center; margin-top: 18px; font-weight: 700; }
.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.home-links .setup-card { margin: 0; }
.proc-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
fieldset.cfg-item > legend { float: left; width: 100%; margin-bottom: 4px; } /* keep the legend inside the card, not on its border */
fieldset.cfg-item > legend + * { clear: both; }

/* ---------- effect previews with a visible sound toggle */
.pv { position: relative; }
.pv video { display: block; }
.pv-card { grid-column: 1 / -1; margin-bottom: 6px; }
.pv-card video { width: 100%; aspect-ratio: 9 / 16; max-height: 300px; object-fit: cover; border: 2px solid var(--plum); border-radius: 14px; background: var(--plum); }
.pv-som { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--plum); background: white; color: var(--plum); cursor: pointer; box-shadow: 0 2px 0 var(--plum); }
.pv-som[aria-pressed="true"] { background: var(--pink-500); color: white; }
.prevs .pv-som { width: 30px; height: 30px; right: 6px; bottom: 6px; }

/* ---------- "postar sozinho" switch */
.sw-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.sw-row h2 { font-size: 18px; }
.sw-row p { font-size: 14px; font-weight: 700; margin-top: 2px; }
.switch { flex: none; width: 58px; height: 34px; border-radius: 999px; border: var(--outline); background: #e9dce3; position: relative; cursor: pointer; padding: 0; transition: background .2s ease-out; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: white; border: 2px solid var(--plum); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.switch[aria-checked="true"] { background: var(--pink-500); }
.switch[aria-checked="true"] .knob { transform: translateX(24px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- sounds & voices */
.sons-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sons { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.som { display: grid; grid-template-columns: 40px minmax(0, 1fr) 34px; gap: 10px; align-items: center; background: var(--cream); border: 2px solid var(--plum); border-radius: 14px; padding: 8px 10px; }
.som b { display: block; font: 600 14px var(--font-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.som span { font-size: 12px; font-weight: 700; }
.som.tocando { background: var(--lilac-50); border-color: var(--pink-500); }
.play { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--plum); background: var(--pink-500); color: white; display: grid; place-items: center; cursor: pointer; font-size: 14px; }
.fav { width: 34px; height: 34px; border: 0; background: none; font-size: 20px; cursor: pointer; color: #d8c4cf; }
.fav[aria-pressed="true"] { color: var(--pink-500); }
.vozes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.voz { padding: 14px; display: grid; gap: 4px; }
.voz-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.voz-top b { font: 700 18px var(--font-title); }
.voz p { font-size: 13px; font-weight: 700; }
.voz-uso { color: var(--pink-600); }
.voz .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.voz .btn { padding: 7px 10px; font-size: 13px; }
.vozes-pick { display: grid; gap: 6px; }
.voz-op { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 2px solid var(--plum); border-radius: 12px; padding: 6px 8px 6px 12px; background: white; cursor: pointer; }
.voz-op input { accent-color: var(--pink-500); }
.voz-op b { font: 600 15px var(--font-title); display: block; }
.voz-op small { font-size: 12px; font-weight: 700; color: var(--plum-70); }
.voz-op .play { width: 34px; height: 34px; }
.voz-op:has(input:checked) { border-color: var(--pink-500); background: var(--lilac-50); }
.som-ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.som-op { border: 2px solid var(--plum); background: white; border-radius: 999px; padding: 4px 10px; font: 600 12px var(--font-title); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: var(--plum); }
.som-op[aria-pressed="true"] { background: var(--pink-500); color: white; }
.sons-bar .chip-r[aria-pressed="false"] { opacity: 1; }
.sons-bar .chip-r[aria-pressed="true"] { background: var(--plum); color: white; }
/* review: candidates left out, for her to pick */
.outros { margin-top: 18px; padding: 14px 16px; }
.outros summary { cursor: pointer; list-style: revert; }
.outros summary h2 { display: inline; font-size: 18px; }
.outros ul { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 10px; }
.outros li { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 2px dashed var(--lilac); padding-top: 10px; }
.outros li p { margin: 2px 0 0; }
.outros li .btn { flex: none; }
@media (max-width: 520px) { .outros li { flex-direction: column; align-items: stretch; } }
.outros .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-weight: 700; font-size: 14px; color: var(--plum-70); margin: 0; }
/* review: "Pedir mudança" conversation under the preview */
.pedido { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pedido-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; }
.pedido-head h2 { font-size: 18px; display: inline-flex; gap: 6px; align-items: center; }
.pedido .chat { max-height: 42dvh; padding: 10px 14px; }
.pedido .msg .exp { display: block; margin-top: 4px; font-size: 13px; opacity: .8; }
.pedido .hints { flex-wrap: wrap; overflow: visible; }
.pedido form.send { display: flex; gap: 8px; padding: 0 14px 14px; }
.pedido form.send .btn { flex: none; }
.sugestao { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--lilac); border: 2px solid var(--plum); color: var(--plum); font: 700 13px var(--font-title); }
.selo { padding: 1px 8px; border-radius: 999px; background: var(--cream); border: 2px dashed var(--plum); font: 700 12px var(--font-title); }
