/* KlipTok v32 · Foro social (prefijo k32-). Usa las variables --k18-* del hub, así que respeta claro/oscuro. Quitar: borrar este archivo. */
.k32 { color: var(--k18-ink, #111827); }
.k32-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 1.4rem; max-width: 1560px; margin: 0 auto; padding: 1.1rem 1.25rem 2.5rem; align-items: start; }
.k32-wrap.k32-one { grid-template-columns: minmax(0, 880px); justify-content: center; }
.k32 button, .k32 select { font: inherit; cursor: pointer; color: inherit; }
.k32 a, .k18 .k32 a { text-decoration: none; color: inherit; }
.k32 h1 { margin: .2rem 0 .5rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.k32 h2 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }

/* menú */
.k32-menu { position: sticky; top: .75rem; display: flex; flex-direction: column; gap: .15rem; max-height: calc(100vh - 2rem); overflow-y: auto; scrollbar-width: thin; }
.k32-mt { margin: .9rem .6rem .35rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--k18-mute, #6b7280); }
.k32-mt:first-child { margin-top: 0; }
.k32-mi { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .75rem; border: 0; border-radius: .8rem; background: transparent; font-size: .9rem; font-weight: 600; }
.k32-mi > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k32-mi img { border-radius: .4rem; object-fit: cover; flex: none; }
.k32-mi:hover { background: var(--k18-soft, #f3f4f6); }
.k32-mi.on { background: var(--k18-grad, linear-gradient(90deg, #4f46e5, #db2777)); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .25); }
.k32-mi em { font-style: normal; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: var(--k18-soft, #f3f4f6); color: var(--k18-mute, #6b7280); }
.k32-mi.on em { background: rgba(255, 255, 255, .25); color: #fff; }
.k32-mi em:empty { display: none; }
.k32-zero { opacity: .6; }

/* cabecera y filtros */
.k32-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.k32-head h1 { margin: 0; }
.k32-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.k32-q, .k32-sel { border: 1px solid var(--k18-line, #e5e7eb); background: var(--k18-card, #fff); color: var(--k18-ink, #111827); border-radius: .6rem; padding: .55rem .75rem; font-size: .88rem; }
.k32-q { min-width: 14rem; }
.k32-chips { margin-bottom: .6rem; }

/* lista */
.k32-list { display: flex; flex-direction: column; gap: .7rem; }
.k32-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 64px; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--k18-line, #e5e7eb); border-radius: 1rem; background: var(--k18-card, #fff); }
.k32-row:hover { box-shadow: var(--k18-shadow, 0 6px 20px rgba(0, 0, 0, .08)); }
.k32-row.pinned { border-color: #a5b4fc; }
.k32-row h3 { margin: .25rem 0 .2rem; font-size: 1.05rem; line-height: 1.3; }
.k32-row h3 a:hover { text-decoration: underline; }
.k32-ex { margin: 0 0 .4rem; font-size: .86rem; color: var(--k18-mute, #6b7280); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k32-st { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; color: var(--k18-mute, #6b7280); gap: .1rem; }
.k32-st b { font-size: 1.15rem; color: var(--k18-ink, #111827); }
.k32-vt { display: flex; justify-content: center; }
.k32-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .8rem; color: var(--k18-mute, #6b7280); }
.k32-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.k32-b { font-size: .7rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; background: var(--k18-soft, #f3f4f6); color: var(--k18-mute, #6b7280); }
.k32-b.ok { background: #dcfce7; color: #166534; } .k32-b.open { background: #fef3c7; color: #92400e; } .k32-b.pin { background: #e0e7ff; color: #3730a3; }
.k32-b.lock { background: #fee2e2; color: #991b1b; } .k32-b.pend { background: #ffedd5; color: #9a3412; }
.k32-b.k-announcement { background: #fce7f3; color: #9d174d; }
.k18[data-kt-theme="dark"] .k32-b.ok { background: #14532d; color: #bbf7d0; } .k18[data-kt-theme="dark"] .k32-b.open { background: #78350f; color: #fde68a; }
.k18[data-kt-theme="dark"] .k32-b.pin { background: #312e81; color: #c7d2fe; } .k18[data-kt-theme="dark"] .k32-b.lock { background: #7f1d1d; color: #fecaca; }
.k32-lnk { border: 0; background: none; padding: 0; color: var(--k18-a, #4f46e5); font-weight: 600; font-size: inherit; }
.k32-lnk:hover { text-decoration: underline; }
.k32-empty { text-align: center; color: var(--k18-mute, #6b7280); padding: 1.4rem 1rem; margin: 0; }
.k32-more { text-align: center; margin-top: 1rem; }

/* personas, votos, etiquetas */
.k32-au { display: inline-flex; align-items: center; gap: .35rem; }
.k32-av { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--k18-grad, linear-gradient(135deg, #4f46e5, #db2777)); }
.k32-au b { color: var(--k18-ink, #111827); }
.k32-ok { font-style: normal; font-size: .65rem; background: #2563eb; color: #fff; border-radius: 50%; width: 1rem; height: 1rem; display: inline-grid; place-items: center; }
.k32-lv { font-style: normal; font-size: .66rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; border: 1px solid var(--k18-line, #e5e7eb); color: var(--k18-mute, #6b7280); }
.k32-vote { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; background: var(--k18-soft, #f3f4f6); border-radius: 999px; padding: .2rem; }
.k32-vote b { font-size: .85rem; min-width: 1.6rem; text-align: center; }
.k32-vote button { border: 0; background: transparent; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-weight: 800; }
.k32-vote button:hover { background: var(--k18-line, #e5e7eb); }
.k32-vote button.on { background: #16a34a; color: #fff; } .k32-vote button.dn { background: #dc2626; color: #fff; }
.k32-actions .k32-vote, .k32-ract .k32-vote { flex-direction: row; }
.k32-tags, .k32-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0; }
.k32-tag { border: 1px solid var(--k18-line, #e5e7eb); background: transparent; border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; font-weight: 600; color: var(--k18-a, #4f46e5); }
.k32-tag:hover, .k32-tag.on { background: var(--k18-soft, #eef2ff); } .k32-tag small { color: var(--k18-mute, #6b7280); }

/* barra lateral derecha */
.k32-side { position: sticky; top: .75rem; display: flex; flex-direction: column; gap: .9rem; }
.k32-box { border: 1px solid var(--k18-line, #e5e7eb); border-radius: 1rem; padding: .9rem 1rem; background: var(--k18-card, #fff); }
.k32-st2 { margin: 0 0 .6rem !important; font-size: .95rem !important; }
.k32-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; text-align: center; font-size: .72rem; color: var(--k18-mute, #6b7280); }
.k32-stats b { display: block; font-size: 1.2rem; color: var(--k18-ink, #111827); }
.k32-you { margin: .7rem 0 0; font-size: .82rem; }
.k32-lead { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .82rem; }
.k32-lead small { margin-left: auto; color: var(--k18-mute, #6b7280); }
.k32-lead .k32-lv { display: none; }
.k32-rk { width: 1.3rem; font-weight: 800; color: var(--k18-mute, #6b7280); }
.k32-note { font-size: .74rem; color: var(--k18-mute, #6b7280); margin: .5rem 0 0; }

/* tema */
.k32-topic { min-width: 0; }
.k32-crumb { font-size: .82rem; margin: .5rem 0; }
.k32-body { margin: 1rem 0; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.k32-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; padding: .8rem 0; border-block: 1px solid var(--k18-line, #e5e7eb); }
.k32-men { color: var(--k18-a, #4f46e5); font-weight: 700; }
.k32-poll { border: 1px solid var(--k18-line, #e5e7eb); border-radius: 1rem; padding: .9rem 1rem; margin: 1rem 0; background: var(--k18-card, #fff); }
.k32-poll h2 { margin-top: 0; }
.k32-opt { position: relative; display: flex; justify-content: space-between; gap: .8rem; width: 100%; text-align: left; margin: .35rem 0; padding: .6rem .8rem; border: 1px solid var(--k18-line, #e5e7eb); border-radius: .7rem; background: transparent; overflow: hidden; }
.k32-opt i { position: absolute; inset: 0 auto 0 0; background: rgba(79, 70, 229, .16); z-index: 0; }
.k32-opt span, .k32-opt b { position: relative; z-index: 1; } .k32-opt b { font-size: .8rem; white-space: nowrap; }
.k32-opt.mine { border-color: #4f46e5; } .k32-opt:disabled { cursor: default; }
.k32-poll small { color: var(--k18-mute, #6b7280); }
.k32-rh { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.k32-rh h2 { margin: 0; }
.k32-seg { display: inline-flex; border: 1px solid var(--k18-line, #e5e7eb); border-radius: .6rem; overflow: hidden; }
.k32-seg button { border: 0; background: transparent; padding: .35rem .8rem; font-size: .8rem; font-weight: 600; }
.k32-seg button.on { background: var(--k18-soft, #eef2ff); color: var(--k18-a, #4f46e5); }
.k32-rp { margin: .8rem 0 0 calc(var(--d, 0) * 1.1rem); padding: .75rem .9rem; border: 1px solid var(--k18-line, #e5e7eb); border-radius: .9rem; background: var(--k18-card, #fff); }
.k32-rp.acc { border-color: #16a34a; box-shadow: 0 0 0 1px #16a34a inset; }
.k32-rp > .k32-kids > .k32-rp { margin-left: 0; }
.k32-kids { margin-top: .4rem; padding-left: .8rem; border-left: 2px solid var(--k18-line, #e5e7eb); }
.k32-rhd { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .82rem; }
.k32-time { color: var(--k18-mute, #6b7280); }
.k32-rbody { margin: .5rem 0; overflow-wrap: anywhere; line-height: 1.55; }
.k32-ract { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .8rem; }
.k32-ract .k32-vote button { width: 1.45rem; height: 1.45rem; }
.k32-compose { margin-top: 1.2rem; display: grid; gap: .5rem; }
.k32-cbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; } .k32-cbar small { color: var(--k18-mute, #6b7280); }
.k32-rto { font-size: .82rem; padding: .4rem .7rem; border-radius: .6rem; background: var(--k18-soft, #f3f4f6); }

/* formulario y moderación */
.k32-form { display: grid; gap: 1rem; } .k32-form label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; } .k32-form label small { font-weight: 400; color: var(--k18-mute, #6b7280); }
.k32-kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; } .k32-kinds legend { font-size: .85rem; font-weight: 700; margin-bottom: .4rem; }
.k32-kind { display: inline-flex !important; } .k32-kind input { position: absolute; opacity: 0; pointer-events: none; }
.k32-kind span { border: 1px solid var(--k18-line, #e5e7eb); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; cursor: pointer; }
.k32-kind input:checked + span { background: var(--k18-grad, linear-gradient(90deg, #4f46e5, #db2777)); color: #fff; border-color: transparent; }
.k32-kind input:focus-visible + span { outline: 2px solid #4f46e5; outline-offset: 2px; }
#f32-opts { display: grid; gap: .4rem; margin-bottom: .5rem; }
.k32-prev { min-height: 9rem; padding: .8rem 1rem; border: 1px solid var(--k18-line, #e5e7eb); border-radius: .6rem; }
.k32-err { color: #dc2626; font-size: .85rem; margin: 0; min-height: 1em; }
.k32-switch { display: flex !important; flex-direction: row !important; gap: .8rem !important; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--k18-line, #e5e7eb); border-radius: .9rem; }
.k32-switch small { display: block; }
.k32-rep { border: 1px solid var(--k18-line, #e5e7eb); border-radius: .9rem; padding: .8rem 1rem; margin: .6rem 0; background: var(--k18-card, #fff); } .k32-rep p { margin: .2rem 0; }

/* responsive */
@media (max-width: 1100px) { .k32-wrap { grid-template-columns: 190px minmax(0, 1fr); } .k32-side { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (max-width: 760px) {
  .k32-wrap { grid-template-columns: minmax(0, 1fr); padding: .8rem; gap: .9rem; }
  .k32-menu { position: static; flex-direction: row; overflow-x: auto; max-height: none; gap: .3rem; padding-bottom: .3rem; }
  .k32-mt { display: none; } .k32-mi { width: auto; white-space: nowrap; flex: none; } .k32-mi img { display: none; }
  .k32-row { grid-template-columns: 44px minmax(0, 1fr); } .k32-st { grid-column: 2; flex-direction: row; justify-content: flex-start; gap: .6rem; }
  .k32-q { min-width: 0; flex: 1 1 100%; } .k32 h1 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .k32 * { transition: none !important; animation: none !important; } }
