/* ─── Foro (estilo MyBB: categorías con cabecera azul, filas alternadas, subforos y postbit clásico) ─── */
.forum-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 6px 16px; }
.forum-top h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.forum-top p { color: var(--text-2); margin-top: 4px; max-width: 70ch; }
.crumbs, .fnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-s); color: var(--text-3); font-weight: 600; }
.fnav { padding-block: 22px 10px; }
.crumbs { margin-bottom: 8px; }
.crumbs a, .fnav a { color: var(--text-2); font-weight: 700; }
.crumbs a:hover, .fnav a:hover { color: var(--text); }
.crumbs svg, .fnav svg { width: 14px; height: 14px; }
.fnav .here { color: var(--text); font-weight: 800; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

/* Barra de bienvenida */
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); font-size: var(--fs-s); color: var(--text-2); }
.welcome b { color: var(--text); }
.welcome .links { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.welcome .links a, .welcome .links button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--brand-text); cursor: pointer; }
.welcome .links a:hover, .welcome .links button:hover { color: var(--text); }
.welcome .links svg { width: 15px; height: 15px; }

/* Tablas del foro */
.tborder { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--bg-2); }
.tborder + .tborder, .tborder + .tsection, .tsection + .tborder { margin-top: 18px; }
.thead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: #fff;
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 38%, var(--navy)) 0%, var(--navy) 100%);
  border-bottom: 1px solid color-mix(in oklab, var(--brand) 30%, var(--navy-deep)); }
.thead h2, .thead h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; color: #fff; letter-spacing: 0.01em; }
.thead a { color: #fff; }
.thead .desc { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: rgb(255 255 255 / 0.72); letter-spacing: 0; margin-top: 2px; }
.thead .btn { --b: rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.1); color: #fff; border-color: rgb(255 255 255 / 0.28); }
.thead .btn:hover { background: rgb(255 255 255 / 0.18); }
.thead .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.expcol { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; border: 1px solid rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.08); color: #fff; flex: none; }
.expcol svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.tborder.collapsed .expcol svg { transform: rotate(-90deg); }
.tborder.collapsed > :not(.thead) { display: none; }
.tcat { display: grid; gap: 14px; align-items: center; padding: 6px 14px; background: color-mix(in oklab, var(--bg-3) 70%, var(--bg-2)); border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.tcat .c { text-align: center; }

/* Filas de secciones (index.php) */
.forums .tcat, .frow { grid-template-columns: 46px minmax(0, 1fr) 76px 76px minmax(0, 250px); }
.frow { display: grid; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.frow:nth-child(odd of .frow) { background: color-mix(in oklab, var(--bg-3) 26%, var(--bg-2)); }
.frow:last-child { border-bottom: 0; }
.frow .fname { font-weight: 800; font-size: var(--fs-l); color: var(--text); line-height: 1.25; }
.frow .fname:hover { color: var(--brand-text); }
.frow .fdesc { font-size: var(--fs-s); color: var(--text-2); margin-top: 2px; }
.frow .lock { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 700; margin-left: 6px; vertical-align: 2px; }
.frow .lock svg { width: 12px; height: 12px; }
.subforums { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 700; }
.subforums a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.subforums a:hover { color: var(--text); }
.subforums .sdot { width: 7px; height: 7px; border-radius: 2px; background: var(--text-3); opacity: 0.55; }
.subforums .sdot.on { background: var(--accent); opacity: 1; box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 25%, transparent); }
.frow .n { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.frow .n small { display: none; }

/* Ícono de estado (on/off/cerrado) */
.fstatus { position: relative; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  color: var(--gc, var(--brand-text)); background: color-mix(in oklab, var(--gc, var(--brand)) 13%, var(--bg-2)); border: 1px solid color-mix(in oklab, var(--gc, var(--brand)) 30%, transparent); }
.fstatus svg { width: 22px; height: 22px; }
.fstatus.off { filter: saturate(0.25); opacity: 0.72; }
.fstatus.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent); }
.fstatus.on::after { content: ''; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-2); }
.fstatus.lockd::before { content: ''; position: absolute; right: -5px; bottom: -5px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg-2);
  background: var(--text-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Crect x='6' y='11' width='12' height='9' rx='2'/%3E%3Cpath d='M8.5 11V8a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Último mensaje */
.lastpost { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; min-width: 0; font-size: var(--fs-xs); color: var(--text-3); }
.lastpost .avatar { grid-row: span 2; }
.lastpost .lp-title { display: block; min-width: 0; color: var(--text); font-weight: 700; font-size: var(--fs-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lastpost .lp-title:hover { color: var(--brand-text); }
.lastpost .lp-by { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lastpost .lp-by a { font-weight: 700; }
.lastpost .lp-go { display: inline-flex; vertical-align: -3px; color: var(--text-3); }
.lastpost .lp-go svg { width: 14px; height: 14px; }
.lastpost.none { display: block; font-style: italic; }
.uname { font-weight: 800; color: var(--rc, var(--text)); }
a.uname:hover { text-decoration: underline; }

/* Prefijos de temas */
.prefix { display: inline-flex; align-items: center; padding: 0 6px; margin-right: 6px; border-radius: 4px; font-size: 11px; font-weight: 800; line-height: 18px; vertical-align: 2px;
  color: var(--pc, var(--text-2)); background: color-mix(in oklab, var(--pc, var(--text-3)) 15%, transparent); border: 1px solid color-mix(in oklab, var(--pc, var(--text-3)) 38%, transparent); white-space: nowrap; }

/* Lista de temas (forumdisplay.php) */
.threads .tcat, .trow { grid-template-columns: 34px minmax(0, 1fr) 84px 84px minmax(0, 210px); }
.trow { display: grid; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.trow:nth-child(odd of .trow) { background: color-mix(in oklab, var(--bg-3) 26%, var(--bg-2)); }
.trow:last-child { border-bottom: 0; }
.trow .ticon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); background: var(--bg-inset); border: 1px solid var(--line); }
.trow .ticon svg { width: 16px; height: 16px; }
.trow .ticon.new { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.trow .ticon.hot { color: var(--fam-combate); border-color: color-mix(in oklab, var(--fam-combate) 45%, transparent); }
.trow .ticon.new.hot { color: var(--accent-ink); }
.trow .ticon.lockd { color: var(--text-3); }
.trow .tsubject { font-weight: 700; color: var(--text); font-size: var(--fs-m); line-height: 1.3; overflow-wrap: anywhere; }
.trow.unread .tsubject { font-weight: 900; }
.trow .tsubject:hover { color: var(--brand-text); }
.trow .tmeta { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-3); margin-top: 3px; }
.trow .tmeta .tag { margin-right: 2px; }
.minipages { display: inline-flex; gap: 3px; align-items: center; }
.minipages a { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 4px; border: 1px solid var(--line); font-size: 10.5px; font-weight: 800; color: var(--text-2); background: var(--bg-inset); }
.minipages a:hover { color: var(--text); border-color: var(--line-2); }
.trow .n { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.trow .n small { display: none; }
.tsep { padding: 6px 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3);
  background: color-mix(in oklab, var(--bg-3) 70%, var(--bg-2)); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.tsep:first-child { border-top: 0; }

.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); background: color-mix(in oklab, var(--bg-3) 40%, var(--bg-2)); font-size: var(--fs-s); color: var(--text-2); }
.prefix-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-s); }
.prefix-filter a { display: inline-flex; }
.prefix-filter a[aria-current="page"] .prefix { outline: 2px solid var(--pc, var(--accent)); outline-offset: 1px; }

/* Leyenda de íconos y "Ir a" */
.forum-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 18px; }
.legend-icons { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 22px; font-size: var(--fs-xs); color: var(--text-3); }
.legend-icons span { display: inline-flex; align-items: center; gap: 8px; }
.legend-icons .fstatus { width: 24px; height: 24px; border-radius: 7px; }
.legend-icons .fstatus svg { width: 13px; height: 13px; }
.legend-icons .fstatus.on::after { width: 8px; height: 8px; top: -3px; right: -3px; border-width: 1.5px; }
.legend-icons .fstatus.lockd::before { width: 12px; height: 12px; right: -4px; bottom: -4px; background-size: 8px; border-width: 1.5px; }
.legend-icons .ticon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); background: var(--bg-inset); border: 1px solid var(--line); }
.legend-icons .ticon svg { width: 13px; height: 13px; }
.legend-icons .ticon.new { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.legend-icons .ticon.hot { color: var(--fam-combate); border-color: color-mix(in oklab, var(--fam-combate) 45%, transparent); }
.jump { display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); color: var(--text-2); font-weight: 700; }
.jump .select { width: auto; max-width: 260px; }

/* Quién está en línea / estadísticas (index.php) */
.boardstats .trow2 { padding: 12px 14px; border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); font-size: var(--fs-s); color: var(--text-2); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.boardstats .trow2:last-child { border-bottom: 0; }
.boardstats .trow2 > svg { width: 22px; height: 22px; color: var(--brand-text); margin-top: 2px; }
.boardstats h4 { font-family: var(--font-body); font-size: var(--fs-s); font-weight: 800; color: var(--text); margin-bottom: 3px; }
.online-list { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.online-list a { font-size: var(--fs-s); font-weight: 700; }
.recent-post { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent); font-size: var(--fs-s); }
.recent-post:last-child { border-bottom: 0; }
.recent-post a { font-weight: 700; color: var(--text); }
.recent-post span { color: var(--text-3); font-size: var(--fs-xs); }
.forum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.forum-stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.forum-stats span { font-size: var(--fs-xs); color: var(--text-2); }

@media (max-width: 820px) {
  .forums .tcat, .threads .tcat { display: none; }
  .frow { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
  .frow .fstatus { width: 40px; height: 40px; grid-row: span 2; }
  .frow .n { display: none; }
  .frow .lastpost { grid-column: 2; }
  .trow { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .trow .ticon { grid-row: span 2; }
  .trow .n { display: none; }
  .trow .lastpost { grid-column: 2; }
  .trow .lastpost .avatar, .frow .lastpost .avatar { display: none; }
  .lastpost { grid-template-columns: minmax(0, 1fr); }
  .legend-icons { grid-template-columns: minmax(0, 1fr); }
}

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 800; line-height: 17px; color: var(--tc, var(--text-2)); background: color-mix(in oklab, var(--tc, var(--text-3)) 14%, transparent); }
.tag svg { width: 11px; height: 11px; }
.tag-pin { --tc: var(--accent-text); } .tag-lock { --tc: var(--text-2); } .tag-open { --tc: var(--beacon); } .tag-resolved, .tag-accepted { --tc: var(--go); } .tag-rejected { --tc: var(--siren); }

/* Hilo (showthread.php): postbit clásico con el autor a la izquierda */
.thread-head { padding-block: 4px 16px; }
.thread-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); overflow-wrap: anywhere; }
.thread-head h1 .prefix { font-family: var(--font-body); font-size: 13px; line-height: 22px; vertical-align: 8px; }
.thread-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.posts { display: grid; gap: 14px; }
.post { display: grid; grid-template-columns: 200px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.post:target { box-shadow: 0 0 0 2px var(--accent); }
.post.deleted { opacity: 0.55; }
.post-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 14px; background: color-mix(in oklab, var(--bg-3) 70%, var(--bg-2)); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); font-weight: 700; }
.post-head a { color: var(--text-2); }
.post-head .pnum { font-family: var(--font-mono); font-weight: 700; color: var(--text-2); }
.post-author { padding: 16px 14px; background: color-mix(in oklab, var(--bg-inset) 55%, var(--bg-2)); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.post-author .name { font-weight: 900; font-size: var(--fs-l); overflow-wrap: anywhere; line-height: 1.2; }
.post-author .pb-name { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.post-author .avatar.skin { border-radius: 50%; }
.post-author .utitle { font-size: var(--fs-xs); color: var(--text-2); font-weight: 700; }
.post-author .ingame { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 13px; line-height: 1; }
.stars .off { color: var(--line-2); }
.ostatus { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); }
.ostatus::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.ostatus.on { color: var(--go); }
.ostatus.on::before { background: var(--go); }
.pb-facts { width: 100%; display: grid; gap: 3px; margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: var(--fs-xs); text-align: left; }
.pb-facts div { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.pb-facts dt { color: var(--text-3); flex: none; }
.pb-facts dd { margin: 0; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-main { display: flex; flex-direction: column; min-width: 0; }
.post-body { padding: 16px 18px; flex: 1; }
.post-sig { margin: 0 18px 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: var(--fs-s); color: var(--text-3); }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 12px 18px; flex-wrap: wrap; }
.post-actions { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.post-actions button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg-inset); color: var(--text-2); font-size: var(--fs-xs); font-weight: 800; padding: 5px 9px; border-radius: 7px; }
.post-actions button:hover { color: var(--text); border-color: var(--line-2); background: var(--bg-3); }
.post-actions svg { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-author { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; gap: 6px 10px; }
  .post-author .pb-facts, .post-author .utitle { display: none; }
  .post-author .avatar { --s: 34px; }
}
.thread-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: var(--fs-s); }
.thread-nav a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-2); max-width: 48%; }
.thread-nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-nav a:hover { color: var(--text); }
.thread-nav svg { width: 15px; height: 15px; flex: none; }
.thread-nav .prev svg { transform: rotate(180deg); }
.post-system { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-m); border: 1px dashed var(--line-2); color: var(--text-2); font-size: var(--fs-s); }
.post-system svg { width: 18px; height: 18px; color: var(--beacon); flex: none; }

.reactions { display: flex; gap: 6px; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-inset); color: var(--text-2); font-size: var(--fs-xs); font-weight: 800; font-variant-numeric: tabular-nums; }
.react:hover { border-color: var(--line-2); color: var(--text); }
.react[aria-pressed="true"] { border-color: color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 14%, var(--bg-inset)); color: var(--text); }
.react .e { font-size: 15px; line-height: 1; }
.react-add { width: 30px; padding: 0; justify-content: center; }

/* Ficha estructurada de reportes, apelaciones y postulaciones */
.dossier { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin-bottom: 14px; }
.dossier div { background: var(--bg-inset); padding: 12px 14px; min-width: 0; }
.dossier dt { font-size: var(--fs-xs); color: var(--text-3); font-weight: 700; }
.dossier dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.staff-box { border: 1px solid color-mix(in oklab, var(--beacon) 40%, var(--line)); background: color-mix(in oklab, var(--beacon) 7%, var(--bg-2)); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 12px; margin-bottom: 14px; }
.staff-box h3 { font-family: var(--font-body); font-size: var(--fs-m); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.staff-box h3 svg { width: 18px; height: 18px; color: var(--beacon); }

/* Editor */
.editor { border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--bg-inset); overflow: hidden; }
.editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.editor-bar { display: flex; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: var(--bg-2); }
.editor-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; border: 0; background: none; color: var(--text-2); border-radius: 7px; }
.editor-bar button:hover { background: var(--bg-3); color: var(--text); }
.editor-bar button svg { width: 17px; height: 17px; }
.editor-bar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.editor-bar .seg { margin-left: auto; flex-wrap: nowrap; }
.editor-bar .seg button { width: auto; height: 28px; padding: 0 10px; display: inline-flex; font-size: var(--fs-xs); }
.editor textarea { width: 100%; min-height: 170px; border: 0; border-radius: 0; background: transparent; padding: 14px; resize: vertical; line-height: 1.6; outline: none; }
.editor .preview { min-height: 170px; padding: 14px; }
.editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); flex-wrap: wrap; }
.mention-menu { position: absolute; z-index: 60; }

/* ─── v1.1.3 (R17): barra completa, emojis, @menciones, encuestas y seguir temas ─── */
.editor { position: relative; overflow: visible; }
.editor-bar { border-radius: var(--r-m) var(--r-m) 0 0; }
.editor-tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; }
.editor-bar button[aria-expanded="true"] { background: var(--bg-3); color: var(--accent); }
.mention-pop { position: absolute; z-index: 70; display: grid; gap: 2px; min-width: 220px; max-width: min(320px, calc(100% - 8px)); max-height: 280px; overflow-y: auto; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--bg-2); box-shadow: 0 14px 36px rgb(0 0 0 / 0.42); }
.mention-pop[hidden] { display: none; }
.mention-opt { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--text); text-align: left; font-size: var(--fs-s); font-weight: 600; }
.mention-opt[aria-selected="true"], .mention-opt:hover { background: color-mix(in oklab, var(--accent) 16%, var(--bg-3)); }

.emoji-pop {
  position: fixed; z-index: 400; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; width: 356px; height: 392px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); box-shadow: 0 18px 48px rgb(0 0 0 / 0.45); overflow: hidden;
}
.emoji-pop.is-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; height: min(64vh, 460px); border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.emoji-top { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px; }
.emoji-search { flex: 1; min-width: 0; }
.emoji-tones { display: flex; gap: 4px; flex: none; }
.emoji-tones .tone { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.25); cursor: pointer; }
.emoji-tones .tone[aria-checked="true"] { border-color: var(--text); }
.emoji-tones .tone-0 { background: #ffcc33; }
.emoji-tones .tone-1 { background: #f7dece; }
.emoji-tones .tone-2 { background: #f3d2a2; }
.emoji-tones .tone-3 { background: #d5ab88; }
.emoji-tones .tone-4 { background: #af7e57; }
.emoji-tones .tone-5 { background: #7c533e; }
.emoji-tabs { display: flex; gap: 2px; padding: 0 8px 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.emoji-tabs::-webkit-scrollbar { display: none; }
.emoji-tabs button { flex: none; width: 33px; height: 30px; border: 0; border-radius: 7px; background: none; font-size: 18px; line-height: 1; cursor: pointer; }
.emoji-tabs button:hover { background: var(--bg-3); }
.emoji-body { overflow-y: auto; padding: 0 8px 8px; overscroll-behavior: contain; }
.emoji-sec h4 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 2px 4px; background: var(--bg-2); color: var(--text-3); font: 700 var(--fs-xs)/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
.emoji-grid .em { display: grid; place-items: center; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 22px; line-height: 1; cursor: pointer; }
.emoji-grid .em:hover, .emoji-grid .em:focus-visible { background: var(--bg-3); outline: none; }
.emoji-wait { padding: 24px 8px; color: var(--text-3); font-size: var(--fs-s); text-align: center; }
.emoji-foot { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-s); }
.emoji-big { min-width: 28px; font-size: 26px; line-height: 1; }
.emoji-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emoji-name::first-letter { text-transform: uppercase; }

.poll-builder { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); }
.poll-builder > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 700; list-style: none; cursor: pointer; }
.poll-builder > summary::-webkit-details-marker { display: none; }
.poll-builder > summary svg { width: 18px; height: 18px; color: var(--accent); }
.poll-builder[open] > summary { border-bottom: 1px solid var(--line); }
.poll-builder > .stack { padding: 14px; }
.poll-options { display: grid; gap: 8px; }
.poll-opt-row { display: flex; align-items: center; gap: 6px; }
.poll-opt-row .input { flex: 1; min-width: 0; }

.poll { display: grid; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); }
.poll-head { display: flex; align-items: center; gap: 10px; }
.poll-head > svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.poll-head h2 { flex: 1; margin: 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
.poll-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* la columna del número tiene ancho fijo: así las barras quedan alineadas entre filas */
.poll-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(90px, 1fr) 7.5em; align-items: center; gap: 12px; }
.poll-pick, .poll-label { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.poll-pick { cursor: pointer; }
.poll-pick input { flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.poll-mine { display: inline-grid; color: var(--accent); }
.poll-mine svg { width: 16px; height: 16px; }
.poll-bar { position: relative; height: 10px; overflow: hidden; border-radius: 99px; background: var(--bg-inset); }
.poll-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: color-mix(in oklab, var(--accent) 62%, var(--bg-3)); }
.poll-row.mine .poll-bar > span { background: var(--accent); }
.poll-num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; text-align: right; }
.poll-num small { color: var(--text-3); font-weight: 500; }
.poll-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-s); }
.thread-tools .btn.is-on { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); color: var(--accent); }
@media (max-width: 640px) {
  .poll-row { grid-template-columns: minmax(0, 1fr) 7.5em; gap: 6px 12px; }
  .poll-bar { grid-column: 1 / -1; grid-row: 2; }
}

.reply-box { margin-top: 18px; display: grid; gap: 10px; }
.new-posts { position: sticky; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; margin-top: 12px; z-index: 20; }

form[data-forum-search] { flex-wrap: nowrap; }
form[data-forum-search] .input { min-width: 0 !important; flex: 1 1 220px; }

/* ─── v1.1.6, fase 7: el foro (ideas 61 a 70) ─── */
/* 61: la tarjeta de la ronda, como una cita arriba del mensaje */
.fx-ronda { margin: 14px 18px 0; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-m) var(--r-m) 0; background: var(--bg-inset); display: grid; gap: 8px; font-size: var(--fs-s); }
.field > .fx-ronda { margin: 0; }
.fx-ronda figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.fx-ronda-modo { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--text); }
.fx-ronda-modo svg { width: 16px; height: 16px; color: var(--accent-text); }
.fx-ronda-meta { color: var(--text-3); font-size: var(--fs-xs); font-weight: 700; }
.fx-ronda-relato { margin: 0; color: var(--text-2); font-style: italic; }
.fx-ronda-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.fx-ronda-lista li { display: grid; grid-template-columns: 3.2ch minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.fx-ronda-lista li:first-child { border-top: 0; }
.fx-ronda-lista li.is-autor { font-weight: 800; color: var(--text); }
.fx-pos { font-family: var(--font-mono); color: var(--text-3); font-size: var(--fs-xs); }
.fx-quien { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-quien small { color: var(--text-3); font-weight: 600; }
.fx-anon { color: var(--text-3); font-style: italic; }
.fx-kd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-2); }
.fx-gano svg { width: 15px; height: 15px; color: var(--caution); display: block; }
.fx-ronda-pie { margin: 0; color: var(--text-3); font-size: var(--fs-xs); }

/* 62: los chips de modos y objetos */
.fx-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 1px 8px 1px 2px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg-inset); color: var(--text); font-size: 0.92em; font-weight: 800; line-height: 1.5; vertical-align: 1px; text-decoration: none; }
.fx-chip-modo:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.fx-chip-modo img { width: 40px; height: 22px; object-fit: cover; border-radius: 99px; flex: none; }
.fx-chip-obj img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.fx-chip-obj { padding-left: 4px; }

/* 63: la mejor respuesta */
.fx-mejor { margin-bottom: 14px; border: 1px solid color-mix(in oklab, var(--go) 45%, var(--line)); border-radius: var(--r-m); background: color-mix(in oklab, var(--go) 6%, var(--bg-2)); overflow: hidden; }
.fx-mejor-head { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid color-mix(in oklab, var(--go) 30%, var(--line)); font-size: var(--fs-s); }
.fx-mejor-head h2 { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: var(--fs-m); font-weight: 900; color: var(--go); margin: 0; }
.fx-mejor-head h2 svg { width: 17px; height: 17px; }
.fx-mejor-head a { margin-left: auto; font-weight: 800; }
.fx-mejor-body { padding: 12px 16px; }
.post.is-mejor { border-color: color-mix(in oklab, var(--go) 55%, var(--line)); }
.fx-mejor-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--go); font-weight: 800; }
.fx-mejor-tag svg { width: 13px; height: 13px; }

/* 64: votos y estado de una sugerencia */
.fx-sug { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); font-size: var(--fs-s); }
.fx-voto { gap: 8px; }
.fx-voto b { min-width: 2ch; padding: 0 6px; border-radius: 99px; background: var(--bg-inset); font-variant-numeric: tabular-nums; }
.fx-voto[aria-pressed="true"] { border-color: color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 14%, var(--bg-inset)); color: var(--text); }
.fx-sug-estado { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; flex: 1 1 220px; min-width: 0; }
.fx-sug-estado a { font-weight: 800; overflow-wrap: anywhere; }
.fx-sug-estudio { --pc: var(--beacon); } .fx-sug-planificada { --pc: var(--accent-text); } .fx-sug-hecha { --pc: var(--go); } .fx-sug-descartada { --pc: var(--text-3); }
.fx-row-votos { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--text-2); font-size: var(--fs-xs); font-weight: 800; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.fx-row-votos svg { width: 13px; height: 13px; }
.fx-row-votos + .pill { margin-left: 6px; padding: 0 8px; vertical-align: 1px; }
.fx-top-lista { list-style: none; margin: 0; padding: 4px 14px; }
.fx-top-lista li { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent); font-size: var(--fs-s); }
.fx-top-lista li:first-child { border-top: 0; }
.fx-top-lista a { font-weight: 800; color: var(--text); min-width: 0; overflow-wrap: anywhere; flex: 1 1 200px; }
.fx-top-votos { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 52px; padding: 2px 8px; border-radius: 8px; background: var(--bg-inset); font-weight: 900; font-variant-numeric: tabular-nums; }
.fx-top-votos svg { width: 14px; height: 14px; color: var(--accent-text); }
.fx-top + .threads { margin-top: 18px; }

/* 65: del foro al ticket */
.fx-ticket { margin-bottom: 14px; }
.fx-staff-row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* 67: en qué modo juega cada uno de los que están en línea */
.fx-online { display: inline-flex; align-items: center; gap: 6px; }
.fx-jugando { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 99px; background: color-mix(in oklab, var(--go) 14%, transparent); color: var(--go); font-size: 11px; font-weight: 800; line-height: 18px; white-space: nowrap; }
.fx-jugando svg { width: 12px; height: 12px; }

/* 68: la captura del tema y la galería */
.fx-captura { margin: 14px 18px 0; }
.fx-captura img { display: block; max-width: 100%; max-height: 520px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg-inset); }
.fx-subir .row { flex-wrap: wrap; }
.fx-preview { display: block; max-width: min(100%, 360px); max-height: 220px; margin-top: 8px; border-radius: var(--r-m); border: 1px solid var(--line); object-fit: contain; background: var(--bg-inset); }
.gx-semana { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 18px; padding: 14px; border: 1px solid color-mix(in oklab, var(--caution) 40%, var(--line)); border-radius: var(--r-m); background: color-mix(in oklab, var(--caution) 6%, var(--bg-2)); }
.gx-semana-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-m); background: var(--bg-inset); }
.gx-semana-txt { display: grid; gap: 8px; min-width: 0; }
.gx-semana-txt h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); overflow-wrap: anywhere; margin: 0; }
.gx-semana-txt h2 a { color: var(--text); }
.gx-semana-txt p { margin: 0; }
.gx-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--caution); font-size: var(--fs-xs); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.gx-kicker svg { width: 15px; height: 15px; }
.gx-datos { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font-size: var(--fs-xs); font-weight: 800; font-variant-numeric: tabular-nums; }
.gx-datos > span { display: inline-flex; align-items: center; gap: 4px; }
.gx-datos svg { width: 14px; height: 14px; }
.gx-grid { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gx-item { display: grid; height: 100%; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--bg-inset); color: var(--text); text-decoration: none; }
.gx-item:hover { border-color: var(--line-2); text-decoration: none; }
.gx-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gx-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-3); }
.gx-pie { display: grid; gap: 4px; padding: 10px 12px; min-width: 0; }
.gx-titulo { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-autor { color: var(--text-3); font-size: var(--fs-xs); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .gx-semana { grid-template-columns: minmax(0, 1fr); }
  .gx-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px; }
  .fx-ronda, .fx-captura { margin-inline: 14px; }
}

/* 69: la firma con datos vivos */
.fx-firma { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 18px 12px; }
.fx-firma span { display: grid; gap: 1px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-inset); min-width: 0; }
.fx-firma small { color: var(--text-3); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-firma b { font-size: var(--fs-s); font-variant-numeric: tabular-nums; }

/* 70: lo más comentado de la semana */
.fx-galeria-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; }
.fx-galeria-link svg { width: 15px; height: 15px; }
.fx-semana-lista { margin: 0; padding: 6px 14px 6px 38px; }
.fx-semana-lista li { padding: 7px 0; border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent); font-size: var(--fs-s); }
.fx-semana-lista li:first-child { border-top: 0; }
.fx-semana-lista li::marker { color: var(--text-3); font-weight: 800; }
.fx-semana-lista a { font-weight: 800; color: var(--text); overflow-wrap: anywhere; margin-right: 8px; }
.fx-semana-lista .faint { font-size: var(--fs-xs); white-space: nowrap; }
.fx-semana-vacia { margin: 0; padding: 14px; font-size: var(--fs-s); }
