:root {
  --bg: #101017;
  --bg2: #16161f;
  --panel: #1b1b26;
  --panel2: #232331;
  --line: #2e2e40;
  --text: #f2f0ea;
  --dim: #9a98a8;
  --accent: #ffd23f;      /* amarelo: seleção / marcação */
  --accent-ink: #1a1400;
  --pink: #ff5d8f;
  --wa: #25d366;          /* verde WhatsApp */
  --wa-ink: #04210f;
  --danger: #ff5a5a;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ea; --bg2: #efeadc; --panel: #ffffff; --panel2: #f4f1e8; --line: #e2dccb;
    --text: #1d1b16; --dim: #6f6a5c; --accent: #ffc400; --shadow: 0 10px 30px rgba(60, 50, 20, .10);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 15px/1.45 var(--font); color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, color-mix(in srgb, var(--pink) 10%, transparent), transparent 60%), var(--bg);
  background-attachment: fixed;
}
h2 { font: 700 1.15rem/1.2 var(--display); margin: 0; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font: 600 .72em var(--font); padding: .1em .45em; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--dim); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-left)); backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 75%, transparent); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 1.35rem var(--display); letter-spacing: -.02em; }
.brand b { color: var(--accent); font-weight: 800; }
.brand .ver { align-self: center; margin-left: -2px; padding: 2px 7px; border-radius: 99px; font: 700 .68rem var(--font); letter-spacing: .02em; color: var(--dim); background: var(--panel2); border: 1px solid var(--line); }
.brand .ver:empty { display: none; }
@media (max-width: 420px) { .brand .ver { display: none; } }
.logo { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 6px; border-radius: 9px; background: var(--accent); }
.logo i { width: 3px; border-radius: 3px; background: var(--accent-ink); animation: eq 1.1s ease-in-out infinite; }
.logo i:nth-child(1) { height: 8px; } .logo i:nth-child(2) { height: 16px; animation-delay: -.3s; }
.logo i:nth-child(3) { height: 12px; animation-delay: -.6s; } .logo i:nth-child(4) { height: 6px; animation-delay: -.9s; }
@keyframes eq { 50% { transform: scaleY(.45); } }

.wa-pill { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: .9rem; }
.wa-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.wa-pill[data-status="open"] { border-color: color-mix(in srgb, var(--wa) 50%, transparent); }
.wa-pill[data-status="open"] .dot { background: var(--wa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wa) 25%, transparent); }
.wa-pill[data-status="connecting"] .dot, .wa-pill[data-status="qr"] .dot { background: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.top-actions { display: flex; align-items: center; gap: 8px; }
.top-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: .9rem; color: var(--text); transition: border-color .15s, transform .12s, background .15s; }
.top-btn:hover { border-color: var(--accent); }
.top-btn:active { transform: scale(.94); }
.top-btn.icon { width: 38px; padding: 0; font: 800 1.05rem var(--display); }
a.top-btn { text-decoration: none; }
.top-btn.gh svg { fill: currentColor; stroke: none; width: 19px; height: 19px; }
.top-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-btn { padding: 0 14px 0 11px; background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tour-btn.pulse { animation: tourPulse 1.6s ease-in-out 3; }
@keyframes tourPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 30%, transparent); } }
@media (max-width: 600px) {
  .tour-btn span, .wa-pill .label { display: none; }
  .tour-btn { width: 38px; padding: 0; }
  .wa-pill { padding: 0; width: 38px; height: 38px; justify-content: center; }
  .top-actions { gap: 6px; }
  .brand { font-size: 1.15rem; }
}

/* ---------- layout ---------- */
.layout { display: grid; gap: 20px; padding: 20px 16px 60px; max-width: 1400px; margin: 0 auto; }
/* estúdio em cima, na largura toda; a coleção vem embaixo */
@media (min-width: 1100px) { .layout { max-width: 1600px; padding: 24px 24px 60px; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 520px) { .panel { padding: 16px; border-radius: 20px; } .layout { padding: 12px 12px 60px; gap: 14px; } }

.step-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; }
.step-title:first-child { margin-top: 0; }
.num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 .85rem var(--display); }
.hint { margin: 8px 2px 0; color: var(--dim); font-size: .85rem; }
.hint.err { color: var(--danger); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-weight: 600; text-decoration: none; transition: transform .12s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill, .send-btn svg.fill { fill: currentColor; stroke: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.wa { background: var(--wa); color: var(--wa-ink); border-color: transparent; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 12px; font-size: .85rem; border-radius: 11px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.url-row { display: flex; gap: 8px; }
.url-row input, .field input, .filters input, .filters select, .fine input {
  border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.url-row input { flex: 1; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- player & linhas do tempo ---------- */
.editor { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.player-wrap { margin-top: 16px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.player-wrap { position: relative; }
.player-wrap iframe, .player-wrap #player, #ytBox { width: 100%; height: 100%; display: block; border: 0; }
#html5 { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.audio-only { position: absolute; inset: 0 0 48px; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; font-weight: 700; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 35%, #000), #000 70%); }
.audio-only span { font-size: 54px; }
.url-row.loading { opacity: .7; }
.url-row #fileBtn { flex: none; }
@media (max-width: 520px) { .url-row { flex-wrap: wrap; } .url-row input { flex: 1 1 100%; } .url-row .btn { flex: 1; } }
.spin-inline { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.studio { transition: box-shadow .15s, border-color .15s; }
.studio.drop { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); }
.studio.drop::after { content: '📁 Solte o arquivo para usar'; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 24px; font: 800 1.2rem var(--display); color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 80%, transparent); pointer-events: none; z-index: 5; }
.studio { position: relative; }
.embed-error { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--text); font-size: .9rem; }

.overview-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.time { font-size: .85rem; min-width: 52px; }
#durTime { text-align: right; }
.overview { position: relative; flex: 1; height: 10px; border-radius: 99px; background: var(--panel2); cursor: pointer; touch-action: none; }
.overview::before { content: ''; position: absolute; inset: -10px 0; } /* área de toque maior */
.ov-sel { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 99px; min-width: 3px; }
.ov-head { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 4px; background: var(--text); box-shadow: 0 0 0 2px var(--panel); }

.zoom { position: relative; height: 92px; border-radius: 16px; background:
  repeating-linear-gradient(90deg, transparent 0 5px, color-mix(in srgb, var(--text) 4%, transparent) 5px 6px), var(--bg2);
  border: 1px solid var(--line); overflow: hidden; cursor: crosshair; touch-action: none; user-select: none; }
.z-inner { position: absolute; inset: 0 16px; }
.z-ticks { position: absolute; inset: 0; pointer-events: none; }
.z-ticks i { position: absolute; bottom: 0; width: 1px; height: 8px; background: var(--line); }
.z-ticks i.major { height: 14px; background: color-mix(in srgb, var(--text) 30%, transparent); }
.z-ticks b { position: absolute; bottom: 16px; transform: translateX(-50%); font: 500 .68rem var(--font); color: var(--dim); }
.z-sel { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); cursor: grab; display: grid; place-items: start center; }
.z-sel:active { cursor: grabbing; }
.z-len { margin-top: 8px; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 700; }
.z-len.warn { background: var(--danger); color: #fff; }
.z-handle { position: absolute; top: 0; bottom: 0; width: 22px; margin-left: -11px; cursor: ew-resize; display: grid; place-items: center; z-index: 2; }
.z-handle span { display: grid; place-items: center; width: 18px; height: 46px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .15s; }
.z-handle:hover span, .z-handle.drag span { transform: scaleY(1.12); }
.z-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--pink); pointer-events: none; z-index: 3; }
.z-head::before { content: ''; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--pink); }

.marks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 14px; }
.mark { display: grid; gap: 8px; }
.mark-btn { width: 100%; }
.mark-btn:hover { border-color: var(--accent); }
.fine { display: flex; gap: 6px; }
.fine input { flex: 1; width: 0; text-align: center; padding: 8px 6px; border-radius: 11px; }
.nudge { width: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel2); font-weight: 700; }
.nudge:hover { border-color: var(--accent); }
.preview-btn { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .15s; }
.preview-btn:active { transform: scale(.93); }
.preview-btn svg { width: 30px; height: 30px; fill: currentColor; }
.preview-btn .ic-stop { display: none; }
.preview-btn.on .ic-play { display: none; }
.preview-btn.on .ic-stop { display: block; }
.preview-btn.on { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent), 0 8px 26px color-mix(in srgb, var(--accent) 35%, transparent); } 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } }
@media (max-width: 520px) { .marks { grid-template-columns: 1fr 1fr; } .preview-btn { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 64px; height: 64px; } }

.under-marks { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.keys { color: var(--dim); font-size: .8rem; }
@media (hover: none) { .keys, .keys-col, .mark-btn kbd { display: none; } }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; color: var(--dim); }
.switch input { display: none; }
.switch span { width: 36px; height: 20px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); position: relative; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--dim); transition: transform .2s, background .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--accent-ink); }

/* ---------- detalhes ---------- */
.details { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; }
.emoji-pick { grid-row: span 4; display: grid; gap: 8px; justify-items: start; }
.prev-col { display: grid; justify-items: center; gap: 6px; }
.sticker-prev { position: relative; width: 120px; height: 120px; padding: 0; border-radius: 24px; border: 2px solid var(--accent); background: var(--bg2); display: grid; place-items: center; transition: transform .15s; }
.sticker-prev:active { transform: scale(.95); }
.sticker-prev img { display: none; position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; border-radius: 14px; transition: opacity .25s; }
.sticker-prev.has-img { border-color: transparent; background: transparent; }
.sticker-prev.has-img img { display: block; }
.sticker-prev.loading img { opacity: .45; }
.sticker-prev.loading::after { content: ''; position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.prev-emoji { font-size: 52px; line-height: 1; transition: transform .2s; }
.sticker-prev.has-img .prev-emoji { position: absolute; right: -8px; bottom: -8px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 24px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); z-index: 1; }
.prev-emoji.pop { animation: pop .35s ease; }
.prev-caption { font-size: .75rem; color: var(--dim); text-align: center; max-width: 140px; }
@keyframes pop { 40% { transform: scale(1.18) rotate(-6deg); } }
.emoji-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 180px; }
.emoji-grid button { border: 0; background: transparent; font-size: 20px; padding: 3px; border-radius: 8px; line-height: 1.1; }
.emoji-grid button:hover, .emoji-grid button.on { background: var(--panel2); }
.field { display: grid; gap: 6px; font-size: .85rem; color: var(--dim); align-self: start; }
.field em { font-style: normal; opacity: .7; }
.field input { color: var(--text); font-size: 1rem; }
@media (max-width: 520px) { .details { grid-template-columns: 1fr; } .emoji-pick { grid-row: auto; grid-template-columns: auto 1fr; align-items: center; }
  .emoji-grid { grid-template-columns: repeat(7, 1fr); width: auto; } .sticker-prev { width: 104px; height: 104px; } }

.opts { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.opts summary { cursor: pointer; padding: 8px 0; font-weight: 600; color: var(--dim); }
.opts[open] summary { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 12px; }
.chip input { display: none; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .88rem; cursor: pointer; user-select: none; transition: all .15s; }
.chip input:checked + span { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }
.chip input:checked + span::before { content: '✓ '; }
.boost { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; font-size: .9rem; color: var(--dim); }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--dim); }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.25); }

.create { width: 100%; margin-top: 18px; padding: 16px; font: 800 1.1rem var(--display); background: linear-gradient(90deg, var(--accent), #ffab3f); color: var(--accent-ink); border: 0; border-radius: 16px; }
.create:hover { filter: brightness(1.05); }
.create .len { opacity: .65; font-weight: 600; }

.progress { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.progress li { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .92rem; }
.progress li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.progress li.active { color: var(--text); }
.progress li.active::before { border-color: var(--accent) transparent var(--accent) var(--accent); animation: spin .8s linear infinite; }
.progress li.done { color: var(--text); }
.progress li.done::before { content: '✓'; display: grid; place-items: center; background: var(--wa); border-color: var(--wa); color: var(--wa-ink); font-size: 11px; font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } }

.welcome { margin-top: 26px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.welcome ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--dim); }
.welcome b { color: var(--text); }
.demo-wave { display: flex; align-items: center; gap: 4px; height: 70px; }
.demo-wave i { width: 6px; border-radius: 6px; background: var(--accent); animation: eq 1.2s ease-in-out infinite; }

/* ---------- coleção ---------- */
.col-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.col-head p { margin: 4px 0 0; }
.col-actions { display: flex; gap: 6px; }
.filters { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.filters input { flex: 1 1 180px; padding: 9px 12px; }
.filters select { padding: 8px 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.sticker { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; padding: 12px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; animation: rise .3s ease both; }
.sticker:hover { border-color: color-mix(in srgb, var(--text) 22%, var(--line)); }
.sticker.playing { border-color: var(--accent); }
.sticker.fresh { animation: fresh 1.4s ease; }
@keyframes fresh { 0% { transform: scale(.85); opacity: 0; } 30% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent); } }
.s-emoji { width: 54px; height: 54px; border-radius: 15px; border: 0; background: var(--panel2); font-size: 28px; line-height: 1; transition: transform .15s; position: relative; }
.s-emoji:active { transform: scale(.9); }
.playing .s-emoji { background: var(--accent); animation: wobble .5s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: rotate(-5deg) scale(1.03); } to { transform: rotate(5deg) scale(1.03); } }
.s-key { position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); font: 700 .65rem/16px var(--font); color: var(--dim); text-align: center; }
@media (hover: none) { .s-key { display: none; } }
.s-info { min-width: 0; align-self: center; }
.s-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-meta { font-size: .78rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wave { grid-column: 1 / -1; position: relative; height: 36px; cursor: pointer; }
.wave .bars, .wave .prog { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1; min-width: 1px; border-radius: 2px; background: color-mix(in srgb, var(--text) 22%, transparent); }
.wave .prog { clip-path: inset(0 100% 0 0); }
.wave .prog i { background: var(--accent); }
.s-actions { grid-column: 1 / -1; display: flex; gap: 6px; min-width: 0; }
.s-actions > .icon-btn, .s-actions > .send-btn { flex: 1 1 0; min-width: 0; width: auto; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); text-decoration: none; transition: all .15s; flex: none; }
.icon-btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.fav-on { color: var(--accent); }
.icon-btn.fav-on svg { fill: currentColor; }
.send-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 10px; border: 0; background: var(--wa); color: var(--wa-ink); font-weight: 700; font-size: .85rem; transition: filter .15s, transform .12s; }
.send-btn:hover { filter: brightness(1.08); }
.send-btn:active { transform: scale(.97); }
.send-btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.send-btn.busy svg { animation: blink .8s infinite; }
.send-btn.busy { pointer-events: none; opacity: .7; }
.send-btn.ok { background: var(--text); color: var(--bg); }
.s-emoji.has-img { padding: 0; background: transparent; overflow: visible; }
.s-emoji.has-img img { width: 100%; height: 100%; display: block; border-radius: 12px; }
.playing .s-emoji.has-img { background: transparent; }
.s-mini { position: absolute; right: -6px; bottom: -6px; font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.sticker-btn.ready { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.st-wrap { position: relative; width: 220px; margin: 6px auto 4px; cursor: pointer; }
.st-prev { width: 220px; height: 220px; display: block; margin: 0 auto; cursor: pointer; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); transition: transform .15s; }
.st-prev:active { transform: scale(.95); }
.st-badge { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); font-size: 15px; }
.tag-exp { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.18); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.howto { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.howto summary { cursor: pointer; padding: 8px 0; font-weight: 600; font-size: .9rem; }
.howto ol { margin: 4px 0 8px; padding-left: 20px; color: var(--dim); font-size: .9rem; display: grid; gap: 4px; }
.howto b { color: var(--text); }
/* ---------- abas: Audio Stick / Stick / Combinação Caótica ---------- */
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; margin: -4px 0 18px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); }
.mode-tabs button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--dim); text-align: left; min-width: 0; transition: background .15s, color .15s; }
.mode-tabs button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.mode-tabs button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.mode-tabs button[data-mode="combo"].on { background: linear-gradient(120deg, var(--pink), #a46bff); color: #fff; }
.mt-ico { font-size: 22px; line-height: 1; flex: none; }
.mt-txt { display: grid; min-width: 0; }
.mt-txt b { font: 800 .95rem/1.1 var(--display); }
.mt-txt small { font-size: .72rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .mode-tabs button { flex-direction: column; text-align: center; gap: 2px; padding: 8px 4px; } .mt-txt small { display: none; } .mt-txt b { font-size: .8rem; white-space: normal; } }

.img-view { width: 100%; height: 100%; object-fit: contain; display: block; background: repeating-conic-gradient(#2a2a36 0 25%, #20202a 0 50%) 50% / 24px 24px; }
.fit-seg { flex-wrap: wrap; }
.sticker-prev.pad img { object-fit: contain; background: repeating-conic-gradient(color-mix(in srgb, var(--text) 10%, transparent) 0 25%, transparent 0 50%) 50% / 14px 14px; }
.mode-hint { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--pink) 14%, transparent); font-size: .9rem; }

/* ---------- combinação caótica ---------- */
.combo-intro { margin: 0 0 16px; color: var(--dim); }
.combo-intro b { color: var(--text); }
.combo-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
@media (max-width: 640px) { .combo-grid { grid-template-columns: 1fr; } .combo-plus { justify-self: center; } }
.combo-plus { align-self: center; font: 800 2rem var(--display); color: var(--pink); }
.slot { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 20px; border: 2px dashed var(--line); background: var(--bg2); min-height: 230px; }
.slot.filled { border-style: solid; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.slot-head { display: flex; align-items: center; gap: 8px; font: 800 1rem var(--display); }
.slot-head .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8rem; }
.slot .stack { display: grid; gap: 6px; }
.slot .stack .btn { justify-content: flex-start; width: 100%; white-space: normal; text-align: left; }
.slot-card { display: grid; justify-items: center; gap: 8px; text-align: center; }
.slot-thumb { width: 130px; height: 130px; border-radius: 22px; display: grid; place-items: center; font-size: 56px; background: var(--panel2); overflow: hidden; border: 0; padding: 0; }
.slot-thumb img { width: 100%; height: 100%; object-fit: contain; }
.slot-card .t { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-card .m { font-size: .8rem; color: var(--dim); }
.slot-card .row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.combo-out { margin-top: 18px; animation: rise .3s ease; }
.combo-result { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
@media (max-width: 520px) { .combo-result { grid-template-columns: 1fr; justify-items: center; } }
.combo-prev { position: relative; width: 170px; height: 170px; border: 0; padding: 0; border-radius: 26px; background: transparent; }
.combo-prev img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4)); }
.combo-play { position: absolute; right: 6px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.combo-prev.on .combo-play { animation: pulse 1s infinite; }
.combo-fields { display: grid; gap: 12px; min-width: 0; width: 100%; }
.combo-clean { font-size: .85rem; align-items: flex-start; }
.combo .create { background: linear-gradient(90deg, var(--pink), #a46bff); color: #fff; }

/* seletor da coleção (combinação) */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: min(52vh, 420px); overflow: auto; margin-top: 10px; }
.pick-item { display: grid; justify-items: center; gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); text-align: center; }
.pick-item:hover:not([disabled]) { border-color: var(--accent); }
.pick-item[disabled] { opacity: .45; cursor: not-allowed; }
.pick-item .pt { width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; border-radius: 14px; overflow: hidden; background: var(--panel2); }
.pick-item .pt img { width: 100%; height: 100%; object-fit: contain; }
.pick-item .pn { font-size: .78rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-item .pm { font-size: .7rem; color: var(--dim); }

/* card de figurinha sem som (Stick) */
.wave.silent { display: grid; place-items: center; height: 36px; border-radius: 10px; font-size: .78rem; color: var(--dim); background: repeating-linear-gradient(90deg, transparent 0 6px, color-mix(in srgb, var(--text) 6%, transparent) 6px 7px); cursor: default; }
.kind-badge { display: inline-block; padding: 0 6px; border-radius: 99px; font-size: .68rem; font-weight: 700; background: color-mix(in srgb, var(--text) 10%, transparent); }
.kind-badge.combo { background: color-mix(in srgb, var(--pink) 30%, transparent); }

/* ---------- ✂️ editor de tirar o fundo ---------- */
.bg-btn { margin-top: 2px; }
.bge-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 12px; background: rgba(5, 5, 10, .7); backdrop-filter: blur(6px); animation: fade .2s ease; }
.bge { width: min(980px, 100%); max-height: calc(100vh - 24px); display: grid; grid-template-rows: auto 1fr auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; animation: rise .25s ease; }
.bge-head { position: relative; padding: 16px 20px 10px; }
.bge-head h3 { margin: 0; font: 800 1.25rem var(--display); }
.bge-main { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; padding: 0 20px; min-height: 0; }
@media (max-width: 760px) { .bge-main { grid-template-columns: 1fr; overflow: auto; } }
.bge-stage { position: relative; display: grid; place-items: center; min-height: 260px; max-height: calc(100vh - 200px); border-radius: 18px; overflow: hidden;
  background: repeating-conic-gradient(#d9d9e0 0 25%, #f3f3f6 0 50%) 50% / 22px 22px; }
.bge-canvas { max-width: 100%; max-height: calc(100vh - 210px); display: block; touch-action: none; cursor: crosshair; }
.bge-canvas[data-tool="erase"], .bge-canvas[data-tool="restore"] { cursor: cell; }
.bge-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(10, 10, 16, .6); color: #fff; font-weight: 700; text-align: center; padding: 20px; }
.bge-busy .spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.bge-tools { display: grid; align-content: start; gap: 14px; overflow: auto; padding-bottom: 6px; min-width: 0; }
.bge-group { display: grid; gap: 8px; min-width: 0; padding: 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.bge-group .btn { width: 100%; min-width: 0; justify-content: flex-start; white-space: normal; }
.bge-tool.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.bge-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.bge-row .btn { justify-content: center; padding-left: 8px; padding-right: 8px; }
.bge-label { display: grid; gap: 4px; font-size: .82rem; color: var(--dim); font-weight: 600; }
.bge-label input[type="range"] { width: 100%; accent-color: var(--accent); }
.bge-tip { margin: 0; font-size: .82rem; color: var(--dim); }
.bge-tip b { color: var(--text); }
.bge-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px 16px; border-top: 1px solid var(--line); margin-top: 14px; }
.bge-status { flex: 1; font-size: .85rem; color: var(--dim); }
.bge-status.err { color: var(--danger); }

/* ---------- destino do envio ---------- */
.target-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.target-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--wa) 45%, var(--line)); background: color-mix(in srgb, var(--wa) 8%, var(--bg2)); text-align: left; transition: border-color .15s; }
.target-btn:hover { border-color: var(--wa); }
.target-btn .tb-txt { flex: 1; min-width: 0; }
.target-btn .tb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target-btn .tb-sub { font-size: .78rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target-btn .tb-caret { color: var(--dim); font-size: .8rem; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; background: var(--wa); }
.avatar.grp { border-radius: 11px; }
.picker-tabs { display: flex; margin: 4px 0 12px; }
.picker-tabs .seg { width: 100%; }
.picker-tabs .seg button { flex: 1; }
.picker-list { display: grid; gap: 4px; max-height: min(46vh, 380px); overflow: auto; margin-top: 10px; padding-right: 2px; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: left; width: 100%; }
.picker-item:hover { background: var(--bg2); }
.picker-item.on { border-color: var(--wa); background: color-mix(in srgb, var(--wa) 10%, transparent); }
.picker-item .pi-txt { flex: 1; min-width: 0; }
.picker-item .pi-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-item .pi-sub { font-size: .78rem; color: var(--dim); }
.picker-empty { text-align: center; color: var(--dim); padding: 18px 8px; font-size: .9rem; }
.picker-sec { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 8px 4px 2px; }
#pkSearch { width: 100%; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 10px 12px; outline: none; }

/* ---------- pacotes ---------- */
/* Coleção: figurinhas à esquerda, lista de pacotes em pé à direita (vira linha rolável quando não cabe) */
.collection { container-type: inline-size; }
.col-body { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 14px; align-items: start; }
.col-main { min-width: 0; }
.pack-side { position: sticky; top: 0; display: grid; gap: 8px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); }
.pack-side-title { font: 700 .78rem var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 2px 4px; }
.pack-bar { display: flex; flex-direction: column; gap: 6px; }
.pack-side, .pack-bar { min-width: 0; }
.pack-bar .pack-chip { justify-content: flex-start; width: 100%; min-width: 0; max-width: 100%; border-radius: 12px; padding: 9px 10px; overflow: hidden; }
.pack-bar .pack-chip .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pack-bar .pack-chip .n { flex: none; min-width: 22px; padding: 1px 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); text-align: center; font-size: .75rem; }
.pack-bar .pack-chip.on .n { background: rgba(0, 0, 0, .15); }
.pack-bar .pack-chip.add { justify-content: center; }
@container (max-width: 520px) {
  .col-body { grid-template-columns: minmax(0, 1fr); }
  .pack-side { order: -1; position: static; padding: 0; border: 0; background: none; }
  .pack-side-title { display: none; }
  .pack-bar { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .pack-bar .pack-chip { width: auto; flex: none; border-radius: 99px; padding: 7px 12px; }
}
.pack-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg2); font-size: .86rem; font-weight: 600; color: var(--dim); white-space: nowrap; transition: all .15s; }
.pack-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.pack-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pack-chip .n { font-weight: 500; opacity: .7; }
.pack-chip.add { border-style: dashed; }
.pack-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; margin-bottom: 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--bg2)); animation: rise .25s ease; }
.pack-tools .pt-title { display: flex; align-items: center; gap: 10px; flex: 1 1 160px; min-width: 0; }
.pack-tools .pt-cover { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 26px; background: var(--panel2); }
.pack-tools .pt-name { font: 800 1.05rem var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-tools .pt-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pack-tools .btn svg { width: 16px; height: 16px; }
.pack-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-pick .pack-chip { padding: 5px 10px; font-size: .82rem; }
.pack-pick .pack-chip.on::before { content: '✓'; }
.s-packs { font-size: .78rem; margin-left: 2px; }
.empty { text-align: center; padding: 40px 10px; color: var(--dim); }
.empty .big { font-size: 48px; }
.keys-col { margin: 14px 2px 0; }

/* ---------- modal & toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 10, .6); backdrop-filter: blur(6px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); animation: rise .25s ease; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel2); font-size: 20px; line-height: 1; }
.modal-body h3 { font: 800 1.3rem var(--display); margin: 0 0 6px; padding-right: 30px; }
.modal-body p { color: var(--dim); margin: 0 0 14px; }
.modal-body .stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.modal-body .stack .btn { width: 100%; justify-content: flex-start; padding: 13px 16px; white-space: normal; text-align: left; }
.qr { display: grid; place-items: center; margin: 10px auto 14px; width: 260px; height: 260px; border-radius: 18px; background: #fff; padding: 10px; }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr .spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #ddd; border-top-color: var(--wa); animation: spin .8s linear infinite; }
.steps-wa { margin: 0 0 14px; padding-left: 20px; color: var(--dim); font-size: .92rem; }
.steps-wa b { color: var(--text); }
.copy-row { display: flex; gap: 6px; }
.copy-row input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 10px 12px; font-size: .85rem; }
.note { font-size: .8rem; color: var(--dim); margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); }

.toasts { position: fixed; z-index: 60; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); animation: toast .3s ease; }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--wa); color: var(--wa-ink); }
@keyframes toast { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.burst { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.burst span { position: absolute; font-size: 28px; animation: fly 1.2s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.6); opacity: 0; } }

/* ---------- modal largo (ajuda / configurações) ---------- */
.modal-box.wide { width: min(780px, 100%); padding: 0; }
.modal-box.wide .modal-x { z-index: 2; }

/* ---------- ajuda ---------- */
.help-hero { position: relative; padding: 28px 28px 20px; border-radius: 24px 24px 0 0; overflow: hidden;
  background: radial-gradient(500px 200px at 0% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
              radial-gradient(400px 220px at 100% 0%, color-mix(in srgb, var(--pink) 25%, transparent), transparent 70%), var(--panel2); }
.help-hero h3 { font: 800 1.7rem/1.1 var(--display); margin: 10px 0 6px; padding: 0; }
.help-hero p { margin: 0; color: var(--dim); max-width: 520px; }
.help-hero .logo { height: 34px; padding: 0 9px; gap: 4px; }
.help-hero .logo i { width: 4px; }
.help-hero .hero-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.help-tabs { position: sticky; top: 0; z-index: 1; display: flex; gap: 4px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; }
.help-tabs button { flex: none; border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; color: var(--dim); }
.help-tabs button.on { background: var(--accent); color: var(--accent-ink); }
.help-body { padding: 20px 24px 26px; }
.help-body h4 { font: 800 1.05rem var(--display); margin: 22px 0 10px; }
.help-body h4:first-child { margin-top: 0; }
.help-body p, .help-body li { color: var(--dim); }
.help-body b { color: var(--text); }
.steps4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.step4 { position: relative; padding: 16px 14px 14px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); }
.step4 .big { font-size: 34px; line-height: 1; }
.step4 .n { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 800 .8rem var(--display); }
.step4 h5 { margin: 10px 0 4px; font: 800 .98rem var(--display); }
.step4 p { margin: 0; font-size: .86rem; }
.flow { display: flex; align-items: stretch; gap: 8px; margin: 6px 0 4px; }
.flow .node { flex: 1; min-width: 0; padding: 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); text-align: center; font-size: .85rem; color: var(--dim); }
.flow .node .nt { display: block; font-weight: 800; color: var(--text); font-size: .95rem; margin: 4px 0 2px; }
.flow .node .ico { font-size: 26px; }
.flow .node.me { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg2)); }
.flow .arrow { align-self: center; color: var(--dim); font-size: 20px; }
@media (max-width: 560px) { .flow { flex-direction: column; } .flow .arrow { transform: rotate(90deg); } }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.feat .card { padding: 14px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.feat .card .t { display: flex; align-items: center; gap: 8px; font: 800 .98rem var(--display); color: var(--text); }
.feat .card .t span { font-size: 22px; }
.feat .card p { margin: 6px 0 0; font-size: .87rem; }
.feat .card .tag { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--pink) 20%, transparent); color: var(--text); }
.keys-table { width: 100%; border-collapse: collapse; }
.keys-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--dim); }
.keys-table td:first-child { width: 150px; white-space: nowrap; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 2px 14px; margin-bottom: 8px; background: var(--bg2); }
.faq summary { cursor: pointer; padding: 11px 0; font-weight: 700; color: var(--text); }
.faq details p { margin: 0 0 12px; font-size: .9rem; }
.help-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.help-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- configurações ---------- */
.set-body { padding: 26px 24px; }
.set-body h3 { margin-bottom: 14px; }
.set-sec { padding: 16px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 12px; }
.set-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 800 1rem var(--display); }
.set-sec p { margin: 0 0 12px; color: var(--dim); font-size: .88rem; }
.set-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set-row input { width: 130px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 10px 12px; font: 700 1.05rem var(--font); outline: none; }
.set-row input:focus { border-color: var(--accent); }
.url-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font: 600 .85rem var(--font); color: var(--text); word-break: break-all; }
.set-list { display: grid; gap: 6px; margin-top: 10px; }
.mono-path { font: 500 .8rem ui-monospace, Consolas, monospace; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); word-break: break-all; color: var(--text); }

/* ---------- tour ---------- */
.tour-spot { position: fixed; z-index: 80; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(6, 6, 12, .66), 0 0 0 3px var(--accent); transition: all .35s cubic-bezier(.3, .9, .3, 1); }
.tour-spot.center { box-shadow: 0 0 0 9999px rgba(6, 6, 12, .66); }
.tour-block { position: fixed; inset: 0; z-index: 79; }
.tour-tip { position: fixed; z-index: 81; width: min(360px, calc(100vw - 24px)); padding: 18px 18px 14px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: top .35s cubic-bezier(.3, .9, .3, 1), left .35s cubic-bezier(.3, .9, .3, 1); animation: rise .3s ease; }
.tour-tip .tt-emoji { font-size: 30px; line-height: 1; }
.tour-tip h4 { font: 800 1.15rem var(--display); margin: 8px 0 6px; }
.tour-tip p { margin: 0; color: var(--dim); font-size: .92rem; }
.tour-tip p b { color: var(--text); }
.tour-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour-dots { display: flex; gap: 4px; flex: 1; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .2s; }
.tour-dots i.on { width: 18px; border-radius: 99px; background: var(--accent); }
.tour-skip { border: 0; background: transparent; color: var(--dim); font-size: .85rem; padding: 6px; }

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

/* ---------- 🔤 editor de texto e emoji ---------- */
.prev-tools { display: flex; flex-direction: column; gap: 6px; }
.sticker-prev .prev-ov { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; display: none; }
.sticker-prev.has-img.has-ov .prev-ov { display: block; }
.tte-btn.on { border-color: var(--accent); color: var(--accent); }
.tte-stage { padding: 10px; }
.tte-box { position: relative; width: min(100%, calc(100vh - 230px), 512px); aspect-ratio: 1; }
.tte-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.tte-stage.crop .tte-bg { object-fit: cover; border-radius: 12%; }
.tte-canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; cursor: default; }
.tte-canvas.dragging { cursor: grabbing !important; }
.tte .bge-tools textarea, .tte .bge-tools select, .tte .bge-tools input:not([type]) { width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; resize: vertical; }
.tte-val { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.bge-label:has(.tte-val) { grid-template-columns: 1fr auto; }
.bge-label:has(.tte-val) input { grid-column: 1 / -1; }
.tte-sw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tte-sw button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.tte-sw button.on { outline: 3px solid var(--accent); outline-offset: 1px; }
.tte-sw input[type="color"] { width: 30px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }
.tte-emojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.tte-emojis button { font-size: 1.3rem; padding: 4px 0; border-radius: 8px; border: 1px solid transparent; background: none; }
.tte-emojis button:hover, .tte-emojis button.on { background: var(--panel); border-color: var(--line); }
.danger-txt { color: var(--danger); }

/* combinação: soltar/colar direto na caixa */
.slot-drop { margin: 2px 0 0; font-size: .78rem; color: var(--dim); text-align: center; }
.slot-drop b { color: var(--text); }
.slot { transition: border-color .15s, box-shadow .15s, transform .15s; }
.slot.drop-on { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); transform: scale(1.01); }

/* 🎙️ player temporário da gravação (sem controles; a "capa" impede o mouse de mostrar os botões) */
.rec-holder { position: absolute; inset: 0; z-index: 3; background: #000; }
.rec-holder #recPlayer, .rec-holder iframe { width: 100%; height: 100%; display: block; border: 0; }
.rec-shield { position: absolute; inset: 0; z-index: 4; cursor: wait; }
.rec-shield span { display: none; }

/* 🔍 enquadrar: quadro inteiro atrás de uma janela quadrada */
#frameBtn.on { border-color: var(--accent); color: var(--accent); }
.fr-stage { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 4px auto 12px; overflow: hidden; border-radius: 11%; background: repeating-conic-gradient(color-mix(in srgb, var(--text) 12%, transparent) 0 25%, transparent 0 50%) 50% / 16px 16px, var(--bg2); cursor: grab; touch-action: none; user-select: none; box-shadow: 0 0 0 2px var(--accent); }
.fr-stage.drag { cursor: grabbing; }
.fr-stage img, .fr-stage video { position: absolute; max-width: none; pointer-events: none; }
.fr-stage.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.fr-stage.fail::after { content: 'Não consegui pegar o quadro do vídeo.'; position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--dim); font-size: .9rem; }
.fr-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.45) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.45) 0 calc(66.66% + .5px), transparent 0),
              linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.45) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.45) 0 calc(66.66% + .5px), transparent 0); }
.fr-stage.drag .fr-grid { opacity: 1; }
.fr-zoom { display: flex; align-items: center; gap: 10px; margin: 0 auto 14px; width: min(340px, 100%); font-size: .85rem; color: var(--dim); }
.fr-zoom input { flex: 1; accent-color: var(--accent); }
.fr-zoom b { min-width: 3.2em; text-align: right; color: var(--text); }
.fr-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fr-left { display: flex; gap: 6px; flex-wrap: wrap; }
.fr-hint { min-height: 1.3em; margin: -6px auto 12px !important; width: min(340px, 100%); text-align: center; font-size: .8rem; }

/* 🎵 som do Stick */
.sound-seg { flex-wrap: wrap; }
.sound-chip { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: .85rem; }
.sound-chip .sc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sound-chip em { color: var(--dim); font-style: normal; }

/* 🎙️ gravador de voz */
.vr { display: grid; justify-items: center; gap: 10px; margin: 6px 0 16px; }
.vr-btn { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--line); background: var(--panel2); display: grid; place-items: center; transition: transform .15s; }
.vr-btn:active { transform: scale(.94); }
.vr-btn span { width: 30px; height: 30px; border-radius: 50%; background: var(--danger); transition: border-radius .2s, width .2s, height .2s; }
.vr-btn.on { border-color: var(--danger); animation: vr-pulse 1.2s ease-in-out infinite; }
.vr-btn.on span { width: 24px; height: 24px; border-radius: 5px; }
@keyframes vr-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--danger) 18%, transparent); } }
.vr-bar { width: min(280px, 100%); height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; }
.vr-bar i { display: block; height: 100%; width: 0; background: var(--danger); }
.vr-time { font-size: .85rem; color: var(--dim); }
.vr audio { width: min(300px, 100%); }

/* atalho do enquadrar em cima do vídeo */
.player-frame-btn { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 7px 12px; border-radius: 11px; border: 1px solid rgba(255,255,255,.25); background: rgba(10,10,16,.72); color: #fff; font-size: .85rem; font-weight: 700; backdrop-filter: blur(6px); transition: transform .15s, border-color .15s; }
.player-frame-btn:hover { border-color: var(--accent); }
.player-frame-btn:active { transform: scale(.95); }
.player-frame-btn.on { border-color: var(--accent); color: var(--accent); }

/* moldura do enquadramento em cima do player */
.frame-ov { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.fo-box { position: absolute; border: 2px solid var(--accent); border-radius: 11%; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); transition: left .2s, top .2s, width .2s, height .2s; }
.fo-box span { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); padding: 1px 8px; border-radius: 8px; background: var(--accent); color: #1d1b16; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- editor em duas colunas: vídeo + trecho | som, visual e criar ---------- */
.ed-right .step-title:first-child { margin-top: 22px; }
.ed-right > .field { margin-bottom: 12px; }
.sound-seg, .fit-seg { flex-wrap: wrap; }
.visual-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.visual-row .btn.small { padding: 7px 11px; }
#frameBtn.on, .tte-btn.on { border-color: var(--accent); color: var(--accent); }
.ed-right .details { grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 4px; }
.ed-right .emoji-pick { grid-row: auto; grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: start; gap: 14px; }
.ed-right .emoji-grid { grid-template-columns: repeat(8, 1fr); width: auto; }
.ed-right .details > .field:last-child { grid-column: 1 / -1; }
.ed-right .opts { margin-top: 12px; }
.create-bar { margin-top: 14px; }
.create-bar .create { margin-top: 8px; }
.create-summary { margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: .88rem; color: var(--dim); }
.create-summary b { color: var(--text); }
.create-summary i { font-style: normal; opacity: .8; }
.create-summary.warn { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--text); }
@media (min-width: 1100px) {
  .editor:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); gap: 28px; align-items: start; margin-top: 16px; }
  /* vídeo mais baixo, para o trecho caber na mesma tela */
  .editor .player-wrap { margin-top: 0; aspect-ratio: auto; height: clamp(240px, 40vh, 440px); }
  .editor .step-title { margin: 16px 0 10px; }
  .ed-right .step-title:first-child { margin-top: 0; }
  /* a coluna de ajustes acompanha a rolagem, então o botão Criar está sempre à mão */
  .ed-right { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding-right: 4px; scrollbar-width: thin; }
  /* resumo + Criar presos no rodapé da coluna: aparecem mesmo em tela baixa */
  .create-bar { position: sticky; bottom: 0; z-index: 2; margin-top: 10px; padding: 10px 0 2px; background: linear-gradient(to bottom, transparent, var(--panel) 14px); }
}
@media (max-width: 520px) { .ed-right .details { grid-template-columns: 1fr; } .ed-right .emoji-grid { grid-template-columns: repeat(7, 1fr); } }

/* ---------- abas no topo da página (Criar · Combinação · Biblioteca) ---------- */
.layout > .main-tabs { margin: 0; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lib-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.45em; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--panel2); color: var(--text); font-size: .72rem; font-weight: 800; vertical-align: 1px; }
.lib-count:empty { display: none; }
.mode-tabs button.on .lib-count { background: color-mix(in srgb, var(--accent-ink) 14%, transparent); color: var(--accent-ink); }

/* "Enviar para" no cabeçalho */
.target-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--wa) 45%, var(--line)); background: color-mix(in srgb, var(--wa) 8%, var(--panel)); color: var(--text); transition: border-color .15s; }
.target-pill:hover { border-color: var(--wa); }
.target-pill .avatar { width: 30px; height: 30px; font-size: .72rem; flex: none; }
.target-pill .tp-txt { display: grid; line-height: 1.1; text-align: left; min-width: 0; }
.target-pill .tp-txt small { font-size: .66rem; color: var(--dim); }
.target-pill .tp-txt b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target-pill .tp-caret { color: var(--dim); font-size: .75rem; }
@media (max-width: 760px) { .target-pill .tp-txt, .target-pill .tp-caret { display: none; } .target-pill { padding: 3px; } }

/* painel lateral */
.drawer { position: fixed; inset: 0; z-index: 45; }
.drawer-back { position: absolute; inset: 0; background: rgba(5, 5, 10, .45); opacity: 0; transition: opacity .2s; }
.drawer-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); overflow: auto; padding: 22px 20px; background: var(--panel); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0,0,0,.35); transform: translateX(100%); transition: transform .22s ease; }
.drawer.open .drawer-back { opacity: 1; }
.drawer.open .drawer-box { transform: none; }
.drawer-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel2); font-size: 20px; line-height: 1; }
.drawer-body h3 { font: 800 1.3rem var(--display); margin: 0 0 6px; padding-right: 36px; }

/* limites no campo Som e na régua */
.sound-seg button { display: inline-flex; align-items: center; gap: 6px; }
.s-tag { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: .7rem; font-weight: 800; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--dim); }
.sound-seg button.on .s-tag { background: var(--accent); color: var(--accent-ink); }
.z-limits { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.z-limit { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed color-mix(in srgb, var(--text) 45%, transparent); }
.z-limit b { position: absolute; bottom: 3px; left: 4px; white-space: nowrap; font-size: .66rem; font-weight: 700; color: var(--dim); background: var(--panel); padding: 0 4px; border-radius: 6px; }
.z-limit.over { border-left-color: color-mix(in srgb, var(--danger) 70%, transparent); }
.z-limit.over b { color: var(--danger); }

/* filtro por tipo na Biblioteca */
.type-filter { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 14px 0 0; }
.type-filter .n { display: inline-block; min-width: 1.4em; margin-left: 2px; padding: 0 6px; border-radius: 99px; font-size: .72rem; background: color-mix(in srgb, var(--text) 10%, transparent); }
.type-filter .n:empty { display: none; }

/* 😀 seletor com todos os emojis (public/emojipicker.js) */
.emo-more { font-weight: 800; color: var(--accent) !important; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent) !important; }
.emo-pick { position: fixed; z-index: 95; width: 360px; max-width: calc(100vw - 16px); height: min(420px, 70vh); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.45); overflow: hidden; animation: rise .18s ease; }
.emo-top { padding: 10px 10px 6px; }
.emo-search { width: 100%; font-size: .9rem; padding: 8px 12px; }
.emo-tabs { display: flex; gap: 2px; padding: 0 8px 6px; border-bottom: 1px solid var(--line); }
.emo-tabs button { flex: 1; border: 0; background: none; font-size: 1.05rem; padding: 5px 0; border-radius: 8px; opacity: .55; border-bottom: 2px solid transparent; }
.emo-tabs button:hover { opacity: .85; background: var(--panel2); }
.emo-tabs button.on { opacity: 1; border-bottom-color: var(--accent); border-radius: 8px 8px 0 0; }
.emo-body { flex: 1; overflow: auto; padding: 4px 8px 10px; scrollbar-width: thin; }
.emo-body h5 { position: sticky; top: -4px; margin: 0; padding: 8px 2px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); background: var(--panel); z-index: 1; }
.emo-grid { display: grid; grid-template-columns: repeat(8, 1fr); }
.emo-grid button { border: 0; background: none; font-size: 1.45rem; line-height: 1; padding: 6px 0; border-radius: 8px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.emo-grid button:hover { background: var(--panel2); transform: scale(1.12); }
.emo-msg { color: var(--dim); text-align: center; padding: 30px 10px; margin: 0; }
@media (max-width: 560px) { .emo-pick { width: auto; height: 55vh; } .emo-grid { grid-template-columns: repeat(8, 1fr); } }

/* "Enviar para" no painel: a lista ocupa toda a altura que sobra, sem rolagem lateral */
.drawer-box { display: flex; flex-direction: column; overflow: hidden; }
.drawer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-body #pkBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-body .picker-list { flex: 1; min-height: 0; max-height: none; overflow-x: hidden; overflow-y: auto; grid-auto-rows: max-content; grid-template-columns: minmax(0, 1fr); }
.drawer-body .picker-item { min-width: 0; }

/* 🌐 versão web: o que só existe no app do PC some; aviso de construção no topo */
.web .wa-pill, .web .target-pill, .web #settingsBtn { display: none !important; }
.web-banner { padding: 12px 16px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); color: var(--text); font-size: .92rem; }
.web-banner a { color: var(--accent); font-weight: 700; }
/* ⬇ Baixar para Windows (só no site) */
.download-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; width: auto; text-decoration: none; background: var(--wa); color: var(--wa-ink); border-color: transparent; font-weight: 800; }
.download-btn:hover { filter: brightness(1.06); }
.download-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.download-btn small { font-weight: 700; opacity: .75; margin-left: 4px; font-size: .75rem; }
@media (max-width: 600px) { .download-btn small { display: none; } .download-btn { padding: 0 10px; } }
@media (max-width: 420px) { .download-btn span { display: none; } }

/* 📣 quadro "baixe o app" (só no site) */
.app-promo { width: 100%; max-width: 920px; margin-top: 10px; text-align: left; padding: 22px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--wa) 40%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--wa) 10%, var(--panel)), var(--panel) 60%); }
.ap-head { display: grid; gap: 8px; margin-bottom: 16px; }
.ap-badge { justify-self: start; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--wa) 20%, transparent); color: var(--wa); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ap-head h3 { margin: 0; font: 800 1.45rem/1.2 var(--display); }
.ap-head h3 span { color: var(--wa); }
.ap-head p { margin: 0; color: var(--dim); }
.ap-head p b { color: var(--text); }
.ap-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.ap-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.ap-list i { font-style: normal; font-size: 1.4rem; line-height: 1; }
.ap-list div { display: grid; gap: 2px; }
.ap-list b { font-size: .95rem; }
.ap-list span { color: var(--dim); font-size: .84rem; }
.ap-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ap-btn { background: var(--wa); color: var(--wa-ink); border-color: transparent; font-weight: 800; padding: 12px 20px; text-decoration: none; }
.ap-btn:hover { filter: brightness(1.06); }
.ap-btn small { font-weight: 700; opacity: .75; margin-left: 4px; }
.ap-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; counter-reset: ap; color: var(--dim); font-size: .88rem; }
.ap-steps li { counter-increment: ap; }
.ap-steps li::before { content: counter(ap); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; }
.ap-steps b { color: var(--text); }
.ap-note { margin: 14px 0 0; color: var(--dim); font-size: .8rem; }
.ap-note a { color: var(--accent); }
@media (max-width: 520px) { .app-promo { padding: 16px; } .ap-head h3 { font-size: 1.2rem; } }

/* ☕ me paga um café (só no site) */
.cafe-btn { padding: 0 14px; width: auto; font-size: 1.05rem; }
.cafe-btn span { font-size: .9rem; }
/* no app o topo já é cheio: só o ícone (a frase vem ao passar o mouse) */
html:not(.web) .cafe-btn { width: 38px; padding: 0; }
html:not(.web) .cafe-btn span { display: none; }
@media (max-width: 760px) { .cafe-btn span { display: none; } .cafe-btn { width: 38px; padding: 0; } }
.ap-cafe { display: block; width: 100%; margin-top: 14px; padding: 10px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--dim); font-size: .88rem; text-align: center; }
.ap-cafe b { color: var(--accent); }
.ap-cafe:hover { border-style: solid; }
.cafe { text-align: center; display: grid; justify-items: center; gap: 6px; }
.cafe-cup { font-size: 46px; line-height: 1; }
.cafe h3 { padding-right: 0 !important; }
.cafe p { margin: 0 0 6px !important; }
.cafe-qr { width: 220px; height: 220px; border-radius: 16px; background: #fff; padding: 6px; margin: 6px 0; }
.cafe-copy { display: flex; gap: 6px; width: 100%; }
.cafe-copy input { flex: 1; min-width: 0; font: .78rem ui-monospace, monospace; }

.help-web { text-align: left; margin: 10px 0 0 !important; }
.help-web a { color: var(--accent); font-weight: 700; }

/* no site: sem campo de link; o botão de arquivo vira o principal */
.web #urlForm { max-width: 820px; margin-left: auto; margin-right: auto; }
.web #urlForm { justify-content: center; }
.web #urlHint { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.web .step-title:has(#step1Title) { justify-content: center; }
.web #fileBtn { flex: 0 1 auto; padding: 14px 26px; font-size: 1.05rem; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
#urlHint a { color: var(--accent); font-weight: 700; }

/* versão web: o que manda pelo WhatsApp some; a janela de baixar/compartilhar */
.web [data-pt="send"], .web #poPlain, .web #poAudio, .web #poWa, .web #stPlain, .web #stSound, .web #stAudio { display: none !important; }
.get-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.get-row > span { flex: 1; display: grid; min-width: 0; }
.get-row small { color: var(--dim); font-size: .78rem; }
.get-help { margin-top: 12px; color: var(--dim); font-size: .88rem; }
.get-help summary { cursor: pointer; font-weight: 700; color: var(--text); }
.get-help p { margin: 8px 0 0 !important; }
.get-help a { color: var(--accent); }
/* no site, o botão verde do card é "baixar ou compartilhar" (ícone de traço, não preenchido) */
.send-btn[data-act="get"] svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.web-banner { display: flex; align-items: center; gap: 10px; }
.web-banner > span { flex: 1; }
.web-banner.ruim { border-color: color-mix(in srgb, var(--danger) 60%, transparent); background: color-mix(in srgb, var(--danger) 10%, var(--panel)); }
.wb-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--panel2); color: var(--text); font-size: 18px; line-height: 1; }

/* barra piscando: o ícone girando da etapa em andamento mudava a área "rolável" da coluna; agora fica contido
   e a coluna reserva o espaço da barra de rolagem */
.progress li { contain: paint; }
.ed-right { scrollbar-gutter: stable; }

/* janela "Baixar ou compartilhar": botões do tamanho do texto, nome e explicação à esquerda */
.modal-body .stack .get-row .btn { width: auto; flex: none; margin: 0; padding: 8px 12px; white-space: nowrap; justify-content: center; }
.get-row > span { line-height: 1.25; }
@media (max-width: 480px) { .get-row { flex-wrap: wrap; } .get-row > span { flex: 1 1 100%; } }

/* só do app (somem no site) */
.web .app-only { display: none !important; }
/* ícone de figurinha nos títulos das janelas (era um quadrado preto: o desenho é de traço, não de preenchimento) */
.modal-body h3 svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* celular: nada passa da borda (emojis e campos encolhem com a tela) */
.ed-right, .ed-right .details, .ed-right .field, .ed-right .emoji-pick { min-width: 0; }
.ed-right .field input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 520px) {
  .ed-right .details { grid-template-columns: minmax(0, 1fr); }
  .ed-right .emoji-pick { grid-template-columns: auto minmax(0, 1fr); }
  .ed-right .emoji-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ed-right .emoji-grid button { font-size: 18px; padding: 3px 0; }
}

/* 🔎 "Sobre" no fim do site (texto para quem chega pela busca) */
.seo-sobre { max-width: 860px; margin: 0 auto 60px; padding: 0 16px; color: var(--dim); font-size: .9rem; }
.seo-sobre h1 { font: 800 1.25rem var(--display); color: var(--text); margin: 0 0 8px; }
.seo-sobre h2 { font: 800 1.05rem var(--display); color: var(--text); margin: 22px 0 8px; }
.seo-sobre b { color: var(--text); }
.seo-sobre details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.seo-sobre summary { cursor: pointer; color: var(--text); font-weight: 600; }
.seo-sobre details p { margin: 6px 0 2px; }
.seo-nota { margin-top: 18px; font-size: .78rem; opacity: .8; }
