/* Foro de Affont (api/community.ts). Cabecera y pie: las mismas reglas que la landing (public/affont.html);
   el resto, la estética elegida en el lienzo (mesas 7 y 8): fondo crema, tarjetas blancas, cajas de categoría
   de colores con los íconos de Nucleo, votos a la izquierda y la respuesta aceptada en verde. */
:root {
  --bg: #000;
  --card: #1c1919;
  --card-2: #2a2626;
  --text: #fff;
  --muted: #aca69e;
  --line: #2b2727;
  --cream: #efe9de;
  --beige: #e0dcd6;
  --paper: #fff;
  --rule: #d6d0c6;
  --rule-2: #e6e1d8;
  --ink: #0e1318;
  --ink-2: #4b4740;
  --ink-3: #6b665e;
  --green: #a7f175;
  --green-ink: #26301d;
  --purple: #6b4dff;
  --purple-ink: #4a3bb3;
  --pink: #ffa9db;
  --teal: #92dcde;
  --orange: #ff6433;
  --serif: 'Fraunces', 'Noto Serif JP', Georgia, serif;
  --font: 'Figtree', 'Noto Sans JP', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --r: 12px;
}
:lang(zh) { --serif: 'Fraunces', 'Noto Serif SC', Georgia, serif; --font: 'Figtree', 'Noto Sans SC', system-ui, sans-serif; }
:lang(vi) { --font: 'Be Vietnam Pro', system-ui, sans-serif; }
* { box-sizing: border-box; }
/* `hidden` gana siempre, aunque la regla del componente le dé display (formularios, barra de moderación, botones) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
svg { display: block; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: -4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -.02em; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
.cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--green); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.cm-skip:focus { left: 8px; }

/* ———————— botones (como la landing) ———————— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1.2 var(--font); text-decoration: none; padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer; background: var(--green); color: var(--ink); transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: #c3f7a0; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #28323c; }
.btn.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.outline:hover { background: rgba(14, 19, 24, .06); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.btn.ghost:hover { background: #faf7f1; }

/* ———————— cabecera de la landing ———————— */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; max-width: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--font); letter-spacing: -.02em; color: var(--text); }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; }
.top nav { display: flex; gap: 24px; margin-left: 20px; }
.top nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); }
.top nav a:hover { color: var(--green); }
.top nav a[aria-current='page'] { color: var(--green); font-weight: 700; }
.lang { position: relative; display: inline-flex; align-items: center; margin-left: auto; }
.lang select { appearance: none; -webkit-appearance: none; font: 500 14px var(--font); color: var(--text); background: var(--card); border: 0; border-radius: var(--r); padding: 9px 32px 9px 34px; cursor: pointer; }
.lang select option { background: var(--card); color: var(--text); }
.lang .ic { position: absolute; pointer-events: none; }
.lang .ic.g { left: 11px; width: 16px; height: 16px; }
.lang .ic.c { right: 11px; width: 12px; height: 12px; }
.top .btn.sm { border-radius: var(--r); }
.top .cm-signin { background: var(--card); color: var(--text); }
.top .cm-signin:hover { background: var(--card-2); }
.cm-acct { position: relative; }
.cm-acct summary { list-style: none; cursor: pointer; display: flex; border-radius: 50%; }
.cm-acct summary::-webkit-details-marker { display: none; }
.cm-acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; display: flex; flex-direction: column; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.cm-acct-menu a, .cm-acct-menu button { display: block; text-align: left; font: 500 14px var(--font); color: var(--text); background: none; border: 0; padding: 10px 12px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.cm-acct-menu a:hover, .cm-acct-menu button:hover { background: var(--card-2); }
@media (max-width: 1080px) { .top nav a:not([aria-current]) { display: none; } .top nav { margin-left: 8px; } }
@media (max-width: 560px) { .lang .ic.g { display: none; } .lang select { padding-left: 12px; } .top .wrap { gap: 10px; } .top .buy { display: none; } .top nav { display: none; } }

/* ———————— pie de la landing ———————— */
footer { background: var(--bg); color: var(--muted); padding: 0 0 48px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
footer .logo { color: var(--text); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
footer a { text-decoration: none; color: var(--text); }
footer a:hover { text-decoration: underline; }
.foot-langs, .foot-guides { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: 0 !important; }
.foot-langs span { color: var(--text); }

/* ———————— foro ———————— */
.cm-main-wrap { background: var(--cream); color: var(--ink); padding: 0 0 72px; min-height: 60vh; }
.cm-wrap { max-width: 1200px; margin: 0 auto; padding: 36px var(--gutter) 0; }
.cm-narrow { max-width: 820px; }
.cm-muted { color: var(--ink-3); }
.cm-small { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.cm-center { text-align: center; }
.cm-lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 12px 0 0; }
.cm-page-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }
.cm-section-title { font-size: 26px; margin: 34px 0 14px; }
.cm-crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.cm-crumbs a { color: var(--ink-3); text-decoration: none; }
.cm-crumbs a:hover { text-decoration: underline; }
.cm-ic { flex-shrink: 0; }

.cm-hero { text-align: center; max-width: 820px; margin: 8px auto 30px; }
.cm-hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: .98; text-wrap: balance; }
.cm-hero h1 em { font-style: italic; font-weight: 500; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
html[lang='ja'] .cm-hero h1, html[lang='zh-CN'] .cm-hero h1 { letter-spacing: 0; line-height: 1.2; }
html[lang='ja'] .cm-hero h1 em, html[lang='zh-CN'] .cm-hero h1 em { font-style: normal; }
.cm-hero .cm-lead { margin: 14px auto 22px; max-width: 680px; }
.cm-popular { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.cm-popular a { color: var(--ink); font-weight: 600; }

.cm-search { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 6px 6px 6px 16px; margin: 0 auto; max-width: 680px; color: var(--ink-3); }
.cm-search input { flex: 1; min-width: 0; border: 0; background: none; font: 400 16px var(--font); color: var(--ink); outline: none; padding: 8px 0; }
.cm-search .btn { border-radius: 11px; background: var(--ink); color: #fff; }
.cm-search .btn:hover { background: #28323c; }
.cm-search:focus-within { border-color: var(--ink); }
.cm-narrow .cm-search { margin: 0 0 8px; max-width: none; }

/* cajas de categorías */
.cm-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; }
/* Todas iguales, blancas como «Pedidos» (Emma no quiere bloques multicolor) */
.cm-cat { border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 104px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); transition: transform .15s, border-color .15s; }
.cm-cat:hover { transform: translateY(-2px); border-color: var(--ink); }
.cm-cat[aria-current='page'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cm-cat-name { font-weight: 700; font-size: 14px; }
.cm-cat-name small { display: block; font-weight: 500; font-size: 12px; opacity: .78; }
@media (max-width: 980px) { .cm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .cm-cat { min-height: 88px; padding: 12px; } }

.cm-cat-hero { display: flex; gap: 18px; align-items: center; border-radius: 18px; padding: 24px 26px; margin-bottom: 18px; background: var(--paper); border: 1px solid var(--rule); }
.cm-cat-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.cm-cat-hero p { margin: 8px 0 0; font-size: 16px; opacity: .85; }

/* columnas */
.cm-cols { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.cm-feed, .cm-thread { flex: 999 1 600px; min-width: 0; }
.cm-side { flex: 1 1 290px; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 960px) { .cm-side { max-width: none; } }
.cm-feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cm-feed-head h2 { font-size: 28px; }
.cm-sorts { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 4px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.cm-sorts a { padding: 7px 12px; border-radius: 7px; color: var(--ink-3); text-decoration: none; }
.cm-sorts a[aria-current='page'] { background: var(--ink); color: #fff; }

/* tarjetas de hilos */
.cm-list { display: flex; flex-direction: column; gap: 10px; }
.cm-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; display: flex; gap: 16px; }
.cm-card.cm-pinned { border-color: var(--ink); }
.cm-stats { display: flex; flex-direction: column; gap: 6px; width: 62px; flex-shrink: 0; text-align: center; font-size: 11px; color: var(--ink-3); }
.cm-stat b { display: block; font-size: 16px; color: var(--ink); }
.cm-stat-box { border: 1px solid var(--rule); border-radius: 8px; padding: 4px 0; }
.cm-stat-solved { background: var(--green); border-radius: 8px; padding: 4px 0; color: var(--ink); font-weight: 600; display: flex; flex-direction: column; align-items: center; }
.cm-stat-solved .cm-ic { margin-bottom: -2px; }
.cm-card-body { flex: 1; min-width: 0; }
.cm-card-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.cm-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--cream); }
.cm-chip:hover { background: var(--beige); }
.cm-flag { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--cream); padding: 2px 8px; border-radius: 999px; }
.cm-flag-solved { background: var(--green); color: var(--ink); }
.cm-card-title { font-family: var(--font); font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.cm-card-title a { text-decoration: none; color: var(--ink); }
.cm-card-title a:hover { color: var(--purple-ink); }
.cm-excerpt { margin: 4px 0 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-card-foot { font-size: 12px; color: var(--ink-3); }
.cm-by { display: inline-flex; align-items: center; gap: 7px; }
.cm-thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--cream); }
.cm-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .cm-card { padding: 14px; gap: 12px; } .cm-stats { width: 48px; } .cm-thumb { display: none; } }

/* avatares: una inicial sobre un color, nunca la foto de Google */
.cm-av { display: inline-grid; place-items: center; border-radius: 50%; background: var(--av, var(--beige)); color: var(--ink); font-weight: 700; flex-shrink: 0; font-family: var(--font); }
.cm-av-sm { width: 22px; height: 22px; font-size: 10px; }
.cm-av-md { width: 32px; height: 32px; font-size: 12px; }
.cm-av-lg { width: 72px; height: 72px; font-size: 28px; }
.cm-av-none { background: var(--beige); color: var(--ink-3); }
.top .cm-acct-av { width: 34px; height: 34px; font-size: 13px; background: var(--av, var(--pink)); }

.cm-name { font-weight: 700; color: var(--ink); text-decoration: none; }
a.cm-name:hover { text-decoration: underline; }
.cm-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; line-height: 1.5; }
.cm-badge-staff { background: var(--green); color: var(--ink); }
/* «Tiene Affont»: logo + verificado, sin texto visible */
.cm-verified { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; vertical-align: -3px; }
.cm-v-logo { width: 16px; height: 16px; border-radius: 4px; }
.cm-v-check { width: 16px; height: 16px; color: var(--purple); }
.cm-profile-badges .cm-verified { margin-left: 0; }
.cm-profile-badges .cm-v-logo, .cm-profile-badges .cm-v-check { width: 20px; height: 20px; }
.cm-badge-op { background: var(--pink); color: var(--ink); }

.cm-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 14px; }
.cm-empty { background: var(--paper); border: 1px dashed var(--rule); border-radius: 14px; padding: 28px; text-align: center; color: var(--ink-2); }
.cm-empty .btn { margin-top: 10px; }

/* barra lateral */
.cm-box { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }
.cm-box h2 { font-size: 24px; line-height: 1.05; }
.cm-box p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
/* Títulos chicos de la barra lateral: sin interletrado positivo ni mayúsculas (pedido de Emma) */
.cm-box-label { font-family: var(--font) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0 !important; color: var(--ink-3); margin-bottom: 12px !important; }
.cm-box-green { background: var(--green); border-color: var(--green); }
.cm-box-green p { color: var(--green-ink); }
.cm-box-green .cm-small { color: var(--green-ink); }
.cm-box-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cm-box-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.cm-box-dark p { color: var(--muted); margin-bottom: 14px; }
.cm-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.cm-people li { display: flex; align-items: center; gap: 10px; }
.cm-people li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.cm-people li > .cm-muted { font-size: 13px; white-space: nowrap; }
.cm-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.cm-links a { color: var(--purple-ink); text-decoration: none; }
.cm-links a:hover { text-decoration: underline; }

/* hilo */
.cm-modbar { background: var(--green); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 14px; font-weight: 700; }
.cm-modbar p { margin: 0; }
.cm-modbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.cm-modbar select { font: 600 13px var(--font); border-radius: 999px; border: 1.5px solid var(--ink); padding: 7px 10px; background: transparent; }
.cm-modbar a { color: var(--ink); font-size: 13px; }
.cm-banner { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--rule); border-left: 0; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.cm-banner p { margin: 0; }
.cm-banner-pending, .cm-banner-changes { background: #f6fbef; border-color: var(--green); }
.cm-banner-rejected, .cm-banner-removed { background: #fff3ee; border-color: var(--orange); }
.cm-pending-replies .cm-banner { flex-direction: column; }
.cm-op { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 28px 30px 24px; display: flex; gap: 22px; }
.cm-op-main { flex: 1; min-width: 0; }
.cm-op h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; margin: 8px 0 0; overflow-wrap: anywhere; }
.cm-byline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 20px; font-size: 14px; }
.cm-vote { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 40px; flex-shrink: 0; }
.cm-vote-big { width: 56px; }
.cm-up { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 44px; border: 0; border-radius: 10px; background: var(--cream); color: var(--ink); cursor: pointer; }
.cm-vote:not(.cm-vote-big) .cm-up { max-width: 32px; }
.cm-up:hover:not(:disabled) { background: var(--beige); }
.cm-up.on { background: var(--green); }
.cm-up:disabled { opacity: .45; cursor: default; }
.cm-score { font-weight: 700; font-size: 15px; }
.cm-vote-big .cm-score { font-size: 18px; }
@media (max-width: 600px) { .cm-op { padding: 18px; gap: 12px; } .cm-vote-big { width: 40px; } }

.cm-prose { font-size: 16px; line-height: 1.65; color: #2a2723; overflow-wrap: anywhere; }
.cm-prose > :first-child { margin-top: 0; }
.cm-prose > :last-child { margin-bottom: 0; }
.cm-prose p, .cm-prose ul, .cm-prose ol, .cm-prose blockquote, .cm-prose pre { margin: 0 0 12px; }
.cm-prose h3, .cm-prose h4 { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; margin: 18px 0 8px; }
.cm-prose h3 { font-size: 19px; }
.cm-prose h4 { font-size: 16px; }
.cm-prose a { color: var(--purple-ink); }
.cm-prose img { display: block; border-radius: 12px; margin: 12px 0; background: var(--cream); }
.cm-prose code { background: var(--cream); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.cm-prose pre { background: var(--cream); padding: 12px 14px; border-radius: 10px; overflow-x: auto; }
.cm-prose pre code { background: none; padding: 0; }
.cm-prose blockquote { border-left: 3px solid var(--rule); padding-left: 14px; color: var(--ink-2); }
.cm-prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.cm-prose th, .cm-prose td { border: 1px solid var(--rule); padding: 6px 10px; }
.cm-prose-op { max-width: 68ch; }

.cm-actions { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 12px; }
.cm-act { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 0; font: 600 13px var(--font); color: var(--ink-3); cursor: pointer; }
.cm-act:hover { color: var(--ink); text-decoration: underline; }
.cm-act-mod { color: #b8431a; }
.cm-report { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 13px; }
.cm-report select, .cm-report input { font: 400 13px var(--font); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 9px; background: var(--paper); }
.cm-report input { flex: 1 1 160px; }

.cm-replies h2 { font-family: var(--font); font-size: 17px; letter-spacing: 0; margin: 26px 0 12px; }
.cm-replies h2 .cm-muted { font-weight: 500; }
.cm-reply-list { display: flex; flex-direction: column; gap: 10px; }
.cm-reply { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; scroll-margin-top: 90px; }
.cm-reply:target { box-shadow: 0 0 0 3px var(--purple); }
.cm-reply.cm-accepted { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.cm-reply-main { flex: 1; min-width: 0; }
.cm-reply-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.cm-permalink { text-decoration: none; }
.cm-permalink:hover { text-decoration: underline; }
.cm-accepted-label { display: inline-flex; align-items: center; gap: 5px; background: var(--green); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 0 8px; }
.cm-children { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cm-children .cm-reply { background: #faf8f4; padding: 12px 14px; }
@media (max-width: 600px) { .cm-reply { padding: 12px; gap: 10px; } .cm-children { margin-left: -42px; } }

.cm-reply-login, .cm-note { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; margin-top: 14px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cm-reply-login p, .cm-note { margin: 0; color: var(--ink-2); }
.cm-note { justify-content: flex-start; }
.cm-reply-form, .cm-edit-form { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.cm-edit-form { padding: 0; border: 0; margin-top: 0; }
.cm-replying { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
textarea, .cm-form input:not([type=radio]), .cm-form select { width: 100%; font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--cream); border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; resize: vertical; }
textarea:focus, .cm-form input:focus, .cm-form select:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.cm-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-form-btns { display: flex; gap: 12px; align-items: center; }
.cm-error { margin: 0; color: #b8431a; font-size: 14px; font-weight: 600; }
.cm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* /new */
.cm-form { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.cm-form h2 { font-size: 26px; }
.cm-form label { font-weight: 700; font-size: 14px; margin-top: 12px; }
.cm-form .btn { align-self: flex-start; margin-top: 16px; }
.cm-handle { display: flex; align-items: center; background: var(--cream); border-radius: 10px; padding-left: 14px; }
.cm-handle span { color: var(--ink-3); font-weight: 600; }
.cm-handle input { background: transparent !important; }
.cm-select { position: relative; }
.cm-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; font-weight: 600; }
.cm-select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cm-tip { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); background: #f6fbef; border-radius: 10px; padding: 10px 12px; }
.cm-tip:empty { display: none; }
.cm-editor { margin-top: 14px; }
.cm-editor-bar { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--rule-2); }
.cm-tab { font: 600 13px var(--font); background: none; border: 0; padding: 7px 12px; border-radius: 8px; color: var(--ink-3); cursor: pointer; }
.cm-tab[aria-selected='true'] { background: var(--ink); color: #fff; }
/* barra de formato */
.cm-toolbar { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.cm-editor-bar .cm-toolbar { margin-left: auto; }
.cm-tb-group { display: inline-flex; gap: 2px; }
.cm-tb-group + .cm-tb-group { padding-left: 10px; border-left: 1px solid var(--rule); }
.cm-tb { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.cm-tb:hover:not(:disabled) { background: var(--cream); color: var(--ink); }
.cm-tb:disabled { opacity: .35; cursor: default; }
.cm-reply-form .cm-toolbar, .cm-edit-form .cm-toolbar { margin-bottom: -4px; }
@media (max-width: 560px) { .cm-editor-bar { flex-wrap: wrap; } .cm-editor-bar .cm-toolbar { margin-left: 0; width: 100%; } .cm-tb-group + .cm-tb-group { padding-left: 6px; } }
.cm-preview { min-height: 200px; background: var(--paper); border: 1px dashed var(--rule); border-radius: 10px; padding: 12px 14px; }

/* perfil y 404 */
.cm-profile { display: flex; gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; }
.cm-profile h1 { font-size: 34px; }
.cm-profile p { margin: 6px 0 0; }
.cm-profile-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-profile-badges .cm-badge { margin-left: 0; }
.cm-404 { text-align: center; padding-top: 80px; }
.cm-404 .btn { margin-top: 22px; }
