:root {
  --bg: #07070d;
  --panel: #0f0f1a;
  --panel-2: #161625;
  --line: #262640;
  --text: #e8e8f4;
  --muted: #8b8ba8;
  --accent: #00f0ff;
  --accent-2: #ff2bd6;
  --danger: #ff3b5c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Página inteira: topo (igual ao das outras páginas) + editor ocupando o resto da altura */
body { display: flex; flex-direction: column; height: 100dvh; }

.app {
  display: grid;
  grid-template-columns: 1fr 340px;
  flex: 1;
  min-height: 0;
}

.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px 104px;   /* embaixo: espaço da barra flutuante */
  min-width: 0;
  min-height: 0;
  background: radial-gradient(ellipse at center, #11111f 0%, var(--bg) 70%);
}

.canvas-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, .6);
}

canvas {
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.hud {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .55);
  font: 12px/1.3 ui-monospace, Consolas, monospace;
  color: #cfd;
  pointer-events: none;
}

.banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .7);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.panel {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--panel);
  border-left: 1px solid var(--line);
  padding: 14px 14px 40px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.side-btn {
  margin-left: auto;
  padding: 4px 9px;
  font-size: 12px;
}

.app.panel-left { grid-template-columns: 340px 1fr; }
.app.panel-left .panel {
  order: -1;
  border-left: 0;
  border-right: 1px solid var(--line);
}

.lvl {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.lvl:first-child { border-top: 0; }
.lvl label { margin: 4px 0; }

.lvl-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
}

.lvl-sounds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.lvl-sounds label { margin: 2px 0; }
.lvl-sounds select { padding: 4px 6px; font-size: 12px; }

.lvl-always {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 auto;
  font-weight: 400;
  color: var(--text);
}

.lvl-imgs { display: grid; gap: 4px; margin-top: 4px; }

.lvl-img {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0b14;
  font-size: 12px;
}

.lvl-img-name { flex: 1; }
.lvl-img img { width: 30px; height: 30px; object-fit: contain; }
.lvl-img-none { color: var(--muted); font-size: 11px; }
.lvl-img .file-btn, .lvl-img button { padding: 3px 8px; font-size: 11px; }
.lvl-imgs > .lvl-img { flex-wrap: wrap; }
.lvl-img-scale { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; }
.lvl-img-scale input { flex: 1; margin: 0; }
.lvl-img-scale output { min-width: 38px; text-align: right; color: var(--muted); }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lib-cat {
  margin: 10px 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}

.lib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.lib-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0b14;
  font-size: 12px;
}

.lib-item.user { grid-column: 1 / -1; }

.lib-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lib-item button {
  flex: none;
  padding: 2px 7px;
  font-size: 11px;
}

.lib-play { color: var(--accent); }
.lib-del { color: var(--danger); }

.lib-pitch {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 11px;
}

.file-btn.upload {
  display: block;
  margin-top: 10px;
  color: var(--accent);
}

/* ---- minhas configs ---- */
#presetName { margin-top: 0; }
.row > input { flex: 2; min-width: 0; }

.preset {
  display: flex;
  gap: 8px;
  margin: 6px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b14;
}
.preset.current { border-color: var(--accent); }
.preset img, .preset-nothumb {
  flex: none;
  width: 45px;
  height: 80px;
  border-radius: 5px;
  object-fit: cover;
  background: #161625;
}
.preset-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.preset-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preset-info span { color: var(--muted); font-size: 11px; }
.preset-actions { display: flex; gap: 4px; margin-top: auto; }
.preset-actions button { padding: 3px 7px; font-size: 11px; }
.preset-actions button:first-child { flex: 1; }

/* ---- redes sociais ---- */
.acct {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b0b14;
}

.acct-head, .acct-user, .pub-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acct-user { margin: 8px 0; }
.acct-user img { width: 28px; height: 28px; border-radius: 50%; }
.acct button { width: 100%; margin-top: 8px; }

.acct-logo {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.acct-logo.instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.acct-logo.google { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); border-radius: 50%; }

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

/* ícones oficiais das redes */
.net-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.net-ico svg, .btn-ico svg { width: 16px; height: 16px; display: block; }
.net-ico.instagram { color: #fff; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.net-ico.google, .net-ico.youtube { background: #fff; }
.btn-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.login-btn.instagram .btn-ico, .cross-btn.instagram .btn-ico { color: #fff; }
.cross-btn.google .btn-ico { background: #fff; border-radius: 4px; padding: 1px; }

/* barra do usuário */
.userbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 12px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 12px;
}
.ub-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001018;
  font-weight: 700;
}
.ub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ub-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ub-link {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0b14;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ub-link:hover { border-color: var(--accent); }
.login-btn.instagram { background: linear-gradient(90deg, #6228d7, #ee2a7b, #f9a334); border: 0; color: #fff; }
.login-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
button:disabled { opacity: .45; cursor: not-allowed; }

.social-msg { min-height: 1.2em; margin: 6px 0; font-size: 12px; color: var(--accent); }
.social-msg.err, .hint.err { color: var(--danger); }
.hint.warn { color: #fff01f; }

.pub-preview {
  display: block;
  width: 100%;
  max-height: 260px;
  margin-top: 6px;
  border-radius: 8px;
  background: #000;
}

/* Gerar legenda/título (e textos da tela) com IA, antes de postar */
.pub-ai {
  display: grid;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b14;
}
.pub-ai .row { align-items: end; }
.pub-ai .row > label:first-child { flex: 1; }

textarea {
  width: 100%;
  margin-top: 3px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #0b0b14;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.sub-row { display: flex; align-items: center; justify-content: space-between; }
button.mini { padding: 2px 8px; font-size: 11px; }

.pub {
  margin: 6px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b14;
  font-size: 12px;
}
.pub a { color: var(--accent); }
.pub-when { margin-left: auto; color: var(--muted); }
.pub-text { margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill {
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 10px;
  border: 1px solid var(--line);
}
.pill.published { border-color: #39ff14; color: #39ff14; }
.pill.error { border-color: var(--danger); color: var(--danger); }
.pill.queued, .pill.processing, .pill.uploading { border-color: #fff01f; color: #fff01f; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.chip {
  padding: 2px 7px;
  border-radius: 6px;
  background: #161625;
  color: var(--muted);
}
.chip b { color: var(--text); }

.legal a { color: var(--muted); }

/* ---- vídeos publicados (um card por vídeo, com as redes) ---- */
.vid {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0b14;
}
.vid-thumb {
  flex: none;
  width: 54px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
}
.vid-body { flex: 1; min-width: 0; font-size: 12px; }
.vid-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-when { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.plat { padding: 6px 0; border-top: 1px solid var(--line); }
.plat .chips { margin: 4px 0 0; }
.plat-link { margin-left: auto; color: var(--accent); }

.cross-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 12px;
  transition: transform .1s, box-shadow .2s;
}
.cross-btn.instagram {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #6228d7, #ee2a7b, #f9a334);
  box-shadow: 0 0 12px rgba(238, 42, 123, .35);
}
.cross-btn.google {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #ff0033, #ff4d4d);
  box-shadow: 0 0 12px rgba(255, 0, 51, .3);
}
.cross-btn:not(:disabled):hover { transform: translateY(-1px); }
.cross-plus {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  font-size: 14px;
  line-height: 1;
}

.cross-form {
  margin-top: 6px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.cross-form label { margin: 4px 0; }

.tag {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 1px 8px;
}

.transport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.transport .rec { grid-column: 1 / -1; }

.status {
  min-height: 1.4em;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 0 12px;
  background: var(--panel-2);
}

summary {
  cursor: pointer;
  margin: 0 -12px;
  padding: 9px 12px;
  font-weight: 600;
  user-select: none;
}

details[open] { padding-bottom: 12px; }

label {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

label output {
  float: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

input[type=range] { width: 100%; accent-color: var(--accent); }

select, input[type=text], input[type=number] {
  width: 100%;
  margin-top: 3px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #0b0b14;
  color: var(--text);
  font: inherit;
}

input[type=color] {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0b14;
  padding: 2px;
}

button, .file-btn {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #1c1c30;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: center;
}

button:hover, .file-btn:hover { border-color: var(--accent); }
button.primary { background: #00303a; border-color: var(--accent); }
button.rec { background: #3a0018; border-color: var(--danger); }
button.rec.on { background: var(--danger); color: #fff; }
button.danger { border-color: var(--danger); color: var(--danger); }
button.ghost { background: transparent; width: 100%; }
button.active { background: var(--accent); color: #001014; border-color: var(--accent); font-weight: 600; }

.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 4px;
}

.row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  margin: 8px 0;
}

.row > label { flex: 1; margin: 0; }
.row > button, .row > .file-btn { flex: 1; }

.sub {
  margin-top: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}

.hint { color: var(--muted); font-size: 12px; }
.keys { margin-top: 12px; }

.img-preview {
  display: block;
  max-width: 80px;
  max-height: 80px;
  margin: 6px 0;
  background: repeating-conic-gradient(#222 0 25%, #333 0 50%) 0 0 / 12px 12px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  body { height: auto; }
  .top { position: static; padding: 8px 16px; gap: 8px; }
  .stage { height: 72dvh; padding: 8px 16px 8px; }
  .float-bar { position: fixed; bottom: 10px; }
  .panel { padding-bottom: 140px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .app.panel-left { grid-template-columns: 1fr; }
  .app.panel-left .panel { order: 0; border-right: 0; }
  .side-btn { display: none; }
}

/* Textos no fundo */
.txt .lvl-name button { margin-left: auto; padding: 2px 8px; font-size: 11px; }
.txt textarea { margin-bottom: 4px; }
.army .lvl-img { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.army .lvl-img img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.mult-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.mult-row span { color: var(--muted); flex: 1; }
.mult-row button { padding: 1px 7px; }

/* paleta dos anéis: 4 cores lado a lado + paletas prontas */
.pal-row { display: flex; gap: 6px; margin: 4px 0 6px; }
.pal-row input[type=color] { flex: 1; min-width: 0; height: 30px; }
.pal-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.pal-presets button { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.pal-presets button:hover { color: var(--text); border-color: var(--accent); }

/* ---- topo (mesmo visual das páginas internas: pages.css) ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px; border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 13, .88); backdrop-filter: blur(10px);
}
.top .brand { margin: 0; font-weight: 700; font-size: 17px; text-decoration: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top nav a { padding: 6px 12px; border-radius: 8px; color: #c3c2d6; text-decoration: none; }
.top nav a:hover { background: var(--panel-2); color: var(--text); }
.top nav a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.top .me { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c3c2d6; }
.top .avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #001018; font-weight: 700; }
.top .avatar img { width: 100%; height: 100%; object-fit: cover; }
.top .btn { padding: 4px 9px; font-size: 12px; border-radius: 8px; }

.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel-head .hint { flex: 1; margin: 0; font-size: 11px; }
.panel-head .side-btn { margin-left: 0; flex: none; }

/* ---- controles flutuantes (Play / Reiniciar / Exportar / Baixar) ---- */
.float-bar {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 15;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: fit-content; max-width: calc(100% - 24px); margin: 0 auto; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(15, 15, 26, .9); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.fb-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fb-row button { white-space: nowrap; }
.float-bar .status { margin: 0; max-width: 560px; text-align: center; }
.float-bar .status:empty { display: none; }
button.dl { background: #00301a; border-color: #39ff14; }
.pending { margin: 0; max-width: 560px; text-align: center; font-size: 12px; color: #fab219; }

/* ---- seções em sanfona com pin ---- */
.panel > details { position: relative; }
.panel > details > summary { padding-right: 40px; }
summary .pin {
  position: absolute; right: 6px; top: 5px; display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--muted); opacity: .45; cursor: pointer;
}
summary .pin:hover { opacity: 1; border-color: var(--line); }
details.pinned > summary .pin { opacity: 1; color: var(--accent); border-color: rgba(0, 240, 255, .35); background: rgba(0, 240, 255, .08); }

/* ---- Configs da IA ---- */
.aicfg .preset-actions { align-items: center; }

/* ---- menu Configs: abas Minhas / Vídeos anteriores / Da IA ---- */
.cfg-tabs { display: flex; gap: 4px; margin: 4px 0 10px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0b0b14; }
.cfg-tabs button { flex: 1; padding: 6px 4px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.cfg-tabs button:hover { color: var(--text); }
.cfg-tabs button.on { background: var(--accent); color: #04121a; font-weight: 600; }
.cfg-pane > select { width: 100%; margin-bottom: 4px; }
.mini-link { font-size: 11px; color: var(--accent); text-decoration: none; padding: 3px 4px; white-space: nowrap; }
.mini-link:hover { text-decoration: underline; }

/* ---- bloco de desenho (habilidade Livre da Luta) ---- */
.dpad-wrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.7); padding: 16px; }
.dpad { background: #0b0b14; border: 1px solid var(--line); border-radius: 12px; padding: 14px; max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow: auto; }
.dpad-head { display: flex; flex-direction: column; gap: 2px; }
.dpad-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.dpad-tools label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.dpad-tools input[type=range] { width: 110px; }
.dpad-tools .seg { display: inline-flex; gap: 2px; }
.dpad-tools button.on { background: var(--accent); color: #04121a; }
.dpad canvas { width: 100%; aspect-ratio: 1; touch-action: none; cursor: crosshair; border-radius: 8px; border: 1px solid var(--line);
  background: repeating-conic-gradient(#1a1a28 0% 25%, #11111c 0% 50%) 50% / 32px 32px; }
.dpad-foot { display: flex; justify-content: flex-end; gap: 8px; }
.dpad-tools input[type=color] { width: 42px; height: 28px; padding: 0 2px; }

/* TikTok: conta, botões e a tela de postar (regras de UX do Direct Post) */
.net-ico.tiktok { color: #fff; background: #000; box-shadow: inset 0 0 0 1px #333; }
.login-btn.tiktok, .cross-btn.tiktok { border: 0; color: #fff; background: #000; box-shadow: inset 0 0 0 1px #333, 0 0 12px rgba(37, 244, 238, .18); }
.login-btn.tiktok .btn-ico, .cross-btn.tiktok .btn-ico { color: #fff; filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }
.tt-post { margin-top: 8px; padding: 10px; border: 1px solid #333; border-radius: 10px; background: #0b0b12; }
.tt-who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.tt-who img { width: 30px; height: 30px; border-radius: 50%; }
.tt-prev { display: block; width: 100%; max-height: 260px; border-radius: 8px; background: #000; margin-bottom: 8px; }
.tt-group { margin: 8px 0; }
.tt-group > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tt-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tt-checks label.check.off { opacity: .45; }
.tt-commercial { margin: 4px 0 8px 22px; }
.tt-commercial small { display: block; color: var(--muted); font-size: 11px; margin-left: 22px; }
.tt-consent { font-size: 12px; color: var(--muted); margin: 8px 0; }
.tt-consent a { color: var(--accent); }
.tt-post .row button[disabled] { pointer-events: auto; }

/* Pasta de lutadores (modo Luta) */
.fighter-lib { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; max-height: 360px; overflow-y: auto; }
.flib { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; }
.flib img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; flex: none; }
.flib .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; margin: 0 6px; }
.flib-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.flib-txt small { opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cartão de habilidade (Luta): blocos recolhíveis */
.fsec { border: 1px solid rgba(255,255,255,0.10); border-radius: 8px; margin: 6px 0; background: rgba(255,255,255,0.02); }
.fsec > summary { cursor: pointer; padding: 7px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; list-style: none; display: flex; align-items: center; gap: 6px; }
.fsec > summary::-webkit-details-marker { display: none; }
.fsec > summary::before { content: ''; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; opacity: .7; transition: transform .15s; }
.fsec[open] > summary::before { transform: rotate(90deg); }
.fsec-note { font-weight: 400; opacity: .6; margin-left: auto; font-size: 11px; }
.fsec-b { padding: 2px 10px 10px; display: grid; gap: 8px; }
.fight-add { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
