/* ═══════════════════════════════════════════════════════
   Chismecito - App CSS v3.0.0
   Branding : Crimson #ed0b3e · Dark #0d0d0d
   Fonts    : Cinzel (display) · EB Garamond (body)
   Inspired : ngl.link structure + Chismecito identity
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Variables ── */
:root {
  --red:         #ed0b3e;
  --red-d:       #a50828;
  --red-glow:    rgba(237,11,62,.2);
  --red-border:  rgba(237,11,62,.32);    /* más visible que antes */
  --red-border2: rgba(237,11,62,.52);
  --bg:          #0d0d0d;
  --bg2:         #121212;
  --bg3:         #181818;
  --card:        rgba(255,255,255,.04);
  --card2:       rgba(255,255,255,.07);
  --fg:          #f4eaea;               /* ligeramente más brillante */
  --fg2:         rgba(244,234,234,.72); /* secundario más visible */
  --fg3:         rgba(244,234,234,.46); /* placeholders más visibles */
  --radius:      12px;
  --radius-lg:   18px;
}

/* ── Reset & Base ── */
@keyframes fadein  { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
@keyframes pop     { 0%{transform:scale(0)} 70%{transform:scale(1.1)} 100%{transform:scale(1)} }
@keyframes spin    { to{transform:rotate(360deg)} }
@keyframes pulse-ring { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:.7;transform:scale(1.05)} }
@keyframes dots    { 0%,80%,100%{transform:scale(0);opacity:0} 40%{transform:scale(1);opacity:1} }
@keyframes checkpop{ 0%{transform:scale(0) rotate(-20deg);opacity:0} 60%{transform:scale(1.2) rotate(5deg)} 100%{transform:scale(1) rotate(0);opacity:1} }

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html,body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'EB Garamond', Georgia, serif;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color:var(--red); text-decoration:none; transition:color .15s; }
a:hover { color:#ff4d6d; }

/* ══════════════════════════════════════
   LOADING SCREEN
══════════════════════════════════════ */
#csm-loading {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .3s;
}
#csm-loading.fade-out { opacity: 0; pointer-events: none; }
.csm-loading-inner { text-align: center; }
.csm-loading-brand {
  font-family: 'Cinzel', serif; font-size: 28px; font-weight: 700;
  color: #fff; letter-spacing: .04em;
}
.csm-loading-brand span { color: var(--red); }
.csm-loading-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 20px;
}
.csm-loading-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); opacity: 0;
  animation: dots 1.2s infinite ease-in-out both;
}
.csm-loading-dots span:nth-child(1) { animation-delay: 0s; }
.csm-loading-dots span:nth-child(2) { animation-delay: .2s; }
.csm-loading-dots span:nth-child(3) { animation-delay: .4s; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
#csm-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 11px 22px; border-radius: 8px;
  font-family: 'EB Garamond', serif; font-size: 15px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  z-index: 9998; transition: opacity .25s, transform .25s;
  max-width: calc(100vw - 32px); text-align: center;
}
#csm-toast.show { opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
#csm-toast.ok  { background:rgba(5,25,12,.97); border:1px solid #1e6a30; color:#4ade80; }
#csm-toast.err { background:rgba(25,5,10,.97); border:1px solid var(--red); color:#ff6b8a; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.csm-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 8px;
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s; text-decoration: none; line-height: 1;
  white-space: nowrap; user-select: none;
}
.csm-btn:disabled { opacity: .5; cursor: not-allowed; }
.csm-btn-primary {
  background: var(--red); color: #fff; border-color: var(--red);
}
.csm-btn-primary:hover { background: #c90935; }
.csm-btn-outline {
  background: transparent; color: var(--red); border-color: var(--red-border2);
}
.csm-btn-outline:hover { background: var(--red-glow); border-color: var(--red); }
.csm-btn-ghost {
  background: transparent; color: var(--fg2); border-color: rgba(255,255,255,.12);
}
.csm-btn-ghost:hover { background: var(--card2); color: var(--fg); }
.csm-btn-danger {
  background: rgba(120,10,20,.3); color: #ff6b8a; border-color: var(--red-border);
}
.csm-btn-danger:hover { background: rgba(160,10,25,.5); }
.csm-btn-sm { padding: 6px 14px; font-size: 10px; }
.csm-btn-icon { padding: 8px 10px; }
.csm-btn i.fa-spin { animation: spin .7s linear infinite; }

/* ══════════════════════════════════════
   INPUTS
══════════════════════════════════════ */
.csm-input {
  width: 100%; background: var(--bg2);
  border: 1px solid var(--red-border); border-radius: 9px;
  padding: 13px 15px;
  font-family: 'EB Garamond', serif; font-size: 16px; color: var(--fg);
  outline: none; transition: border-color .2s, box-shadow .2s; display: block;
}
.csm-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237,11,62,.1);
}
.csm-input::placeholder { color: var(--fg3); font-style: italic; }
textarea.csm-input { resize: vertical; min-height: 86px; line-height: 1.55; }

.csm-label {
  display: block; font-family: 'Cinzel', serif; font-size: 10px;
  color: var(--red); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px;
}
.csm-field { margin-bottom: 15px; }

/* ══════════════════════════════════════
   AVATAR
══════════════════════════════════════ */
.csm-av {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-d), var(--red));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; position: relative;
}
.csm-av img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.csm-av-initial { font-family:'Cinzel',serif; font-weight:700; color:#fff; }
.csm-av-32  { width:32px;  height:32px; }
.csm-av-32  .csm-av-initial { font-size:14px; }
.csm-av-48  { width:48px;  height:48px; }
.csm-av-48  .csm-av-initial { font-size:18px; }
.csm-av-64  { width:64px;  height:64px; }
.csm-av-64  .csm-av-initial { font-size:24px; }
.csm-av-88  { width:88px;  height:88px; }
.csm-av-88  .csm-av-initial { font-size:32px; }

/* Ring pulsante en el avatar del perfil público */
.csm-av-pulse::before {
  content:''; position:absolute; inset:-4px; border-radius:50%;
  border: 2px solid var(--red); opacity:.4;
  animation: pulse-ring 2s ease-in-out infinite;
}
.csm-av-pulse::after {
  content:''; position:absolute; inset:-8px; border-radius:50%;
  border: 1px solid var(--red); opacity:.2;
  animation: pulse-ring 2s ease-in-out infinite .4s;
}

/* ══════════════════════════════════════
   AUTH PROGRESS STEPS
══════════════════════════════════════ */
.csm-steps-wrap {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 0; animation: fadein .3s ease;
}
.csm-step-row {
  display: flex; align-items: center; gap: 12px;
  font-family: 'EB Garamond', serif; font-size: 15px; color: var(--fg3);
}
.csm-step-row .icon { width: 20px; text-align: center; }
.csm-step-row.active { color: var(--fg); }
.csm-step-row.done   { color: #4ade80; }
.csm-step-row.error  { color: #ff6b8a; }
.csm-step-row.active .icon i { animation: spin .7s linear infinite; color: var(--red); }
.csm-step-row.done .icon   { color: #4ade80; }
.csm-step-row.error .icon  { color: #ff6b8a; }
.csm-step-err-msg { font-size: 13px; color: var(--red); margin-top: 4px; padding-left: 32px; }

/* ══════════════════════════════════════
   LANDING / AUTH PAGE
══════════════════════════════════════ */
.csm-landing {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 32px 20px;
  animation: fadein .4s ease;
}
.csm-landing-inner {
  width: 100%; max-width: 420px; text-align: center;
}

.csm-logo-big {
  font-family: 'Cinzel', serif; font-size: 34px; font-weight: 700;
  color: #fff; letter-spacing: .05em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 0; justify-content: center;
  /* gap 0 porque el margin-left del favicon ya da el espacio */
}
.csm-tagline {
  font-family: 'EB Garamond', serif; font-size: 17px;
  color: var(--fg2); margin-bottom: 32px; line-height: 1.5;
  font-style: italic;
}

.csm-auth-card {
  background: var(--card); border: 1px solid var(--red-border);
  border-radius: var(--radius-lg); padding: 28px 28px 24px;
  text-align: left;
}
.csm-auth-title {
  font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700;
  color: #fff; letter-spacing: .06em; margin-bottom: 22px;
  text-align: center;
}

/* Side-by-side slug/nombre */
.csm-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px;
}

/* Slug check indicator */
.csm-slug-wrap { position: relative; }
.csm-slug-check {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; pointer-events: none;
}

.csm-auth-switch {
  text-align: center; color: var(--fg3); font-size: 14px; margin-top: 14px;
}
.csm-auth-switch a { color: var(--red); }
.csm-credit { font-size: 12px; color: #2a2a2a; text-align: center; margin-top: 18px; }

.csm-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--fg3); font-size: 12px; margin: 14px 0;
}
.csm-or::before,.csm-or::after {
  content:''; flex:1; height:1px; background: var(--red-border);
}

/* ══════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════ */
.csm-dash {
  display: flex; min-height: 100vh;
  animation: fadein .3s ease;
}

/* SIDEBAR */
.csm-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--red-border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.csm-sidebar-top {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--red-border);
}
.csm-sidebar-user {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.csm-user-name {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  color: #fff; line-height: 1.2;
}
.csm-user-handle { font-size: 12px; color: var(--fg3); }

/* Stats mini */
.csm-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-bottom: 4px;
}
.csm-stat-mini {
  background: var(--card); border: 1px solid var(--red-border);
  border-radius: 8px; padding: 8px 10px; text-align: center;
}
.csm-stat-n {
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700;
  color: var(--red); display: block; line-height: 1;
}
.csm-stat-l { font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: .08em; }

/* NAV */
.csm-nav { padding: 12px 10px; flex: 1; }
.csm-nav-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: transparent; border: none; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg3);
  transition: all .15s; text-align: left; margin-bottom: 2px;
}
.csm-nav-item:hover { background: var(--card2); color: var(--fg); }
.csm-nav-item.active { background: var(--red-glow); color: var(--red); border-right: 2px solid var(--red); }
.csm-nav-item i { width: 16px; text-align: center; }

.csm-logout {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; color: var(--fg3); font-size: 12px;
  border-top: 1px solid var(--red-border); transition: color .15s;
  cursor: pointer; background: none; border-bottom: none; border-left: none; border-right: none; width: 100%;
  font-family: 'EB Garamond', serif; text-align: left;
}
.csm-logout:hover { color: var(--red); }

/* MAIN */
.csm-main { flex: 1; padding: 28px 32px; overflow-y: auto; max-width: 820px; }
.csm-panel { display: none; animation: fadein .25s ease; }
.csm-panel.active { display: block; }
.csm-panel-title {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700;
  color: #fff; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 22px; display: flex; align-items: center; gap: 9px;
}
.csm-panel-title i { color: var(--red); }

/* ── Share Panel ── */
.csm-share-section {
  background: var(--card); border: 1px solid var(--red-border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.csm-link-display {
  background: var(--bg2); border: 1px solid var(--red-border);
  border-radius: 9px; padding: 13px 16px;
  font-family: 'EB Garamond', serif; font-size: 16px; color: var(--fg2);
  word-break: break-all; margin-bottom: 16px; cursor: pointer;
  transition: border-color .15s;
}
.csm-link-display:hover { border-color: var(--red); }
.csm-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* Social buttons */
.csm-soc { display:inline-flex; align-items:center; gap:6px; padding:9px 16px; border-radius:8px; font-family:'Cinzel',serif; font-size:10px; letter-spacing:.1em; text-transform:uppercase; font-weight:600; border:1px solid; cursor:pointer; transition:all .15s; }
.csm-soc-wa  { background:rgba(37,211,102,.1);  color:#25d366; border-color:rgba(37,211,102,.3); }
.csm-soc-wa:hover  { background:rgba(37,211,102,.2); }
.csm-soc-x   { background:rgba(255,255,255,.05); color:var(--fg2); border-color:rgba(255,255,255,.15); }
.csm-soc-x:hover   { background:rgba(255,255,255,.1); }
.csm-soc-ig  { background:rgba(228,64,95,.1);   color:#e4405f; border-color:rgba(228,64,95,.3); }
.csm-soc-ig:hover  { background:rgba(228,64,95,.2); }

.csm-how { display:flex; flex-direction:column; gap:12px; }
.csm-how-step { display:flex; align-items:flex-start; gap:14px; }
.csm-how-icon { font-size:20px; flex-shrink:0; margin-top:2px; }
.csm-how-text b { display:block; font-family:'Cinzel',serif; font-size:11px; font-weight:700; color:#fff; letter-spacing:.06em; margin-bottom:3px; }
.csm-how-text span { font-size:14px; color:var(--fg3); }

/* ── Inbox ── */
.csm-filters { display:flex; gap:6px; margin-bottom:20px; }
.csm-filter-btn {
  padding:7px 16px; border-radius:7px; border:1px solid var(--red-border);
  background:transparent; color:var(--fg3); font-family:'Cinzel',serif;
  font-size:10px; letter-spacing:.1em; text-transform:uppercase; cursor:pointer;
  transition:all .15s;
}
.csm-filter-btn:hover  { background:var(--card2); color:var(--fg); }
.csm-filter-btn.active { background:var(--red-glow); color:var(--red); border-color:var(--red); }

.csm-empty-state {
  text-align:center; padding:50px 20px; color:var(--fg3);
}
.csm-empty-state i { font-size:32px; color:#222; display:block; margin-bottom:14px; }
.csm-empty-state p { font-family:'Cinzel',serif; font-size:12px; letter-spacing:.08em; }
.csm-loading-msg { text-align:center; color:var(--fg3); padding:40px; font-style:italic; }

/* ── Message Card ── */
.csm-msg-card {
  background: var(--card); border: 1px solid var(--red-border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  margin-bottom: 12px; position: relative;
  transition: border-color .2s;
  animation: fadein .25s ease;
}
.csm-msg-card:hover { border-color: var(--red-border2); }
.csm-msg-card.new   { border-color: rgba(237,11,62,.5); }

.csm-badge-new {
  /* Inline, ya no absoluto - va junto a la hora en csm-msg-right */
  background: var(--red); color: #fff;
  font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700;
  letter-spacing: .1em; padding: 3px 8px; border-radius: 20px;
  flex-shrink: 0;
}

/* Agrupa badge-new + hora a la derecha del meta row */
.csm-msg-right {
  margin-left: auto; display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.csm-msg-time { color: var(--fg3); font-size: 11px; white-space: nowrap; }

.csm-msg-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg3); margin-bottom: 12px;
}
.csm-msg-tono { font-size: 16px; flex-shrink: 0; }

/* Nombre del remitente junto al tono - en rojo */
.csm-sender-name {
  color: var(--red);
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
}

/* Nombre en el muro publico */
.csm-muro-sender {
  color: var(--red);
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  font-style: italic;
}
.csm-msg-from { display: flex; align-items: center; gap: 5px; }
.csm-msg-from i { color: var(--red); font-size: 11px; }
.csm-msg-time { margin-left: auto; }

.csm-msg-text {
  font-family: 'EB Garamond', serif; font-size: 17px;
  color: var(--fg); line-height: 1.65; margin-bottom: 14px;
}

.csm-msg-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.csm-msg-actions { display: flex; gap: 6px; margin-left: auto; }

/* Reactions */
.csm-reacs { display: flex; gap: 4px; flex-wrap: wrap; }
.csm-reac-btn { display:inline-flex; align-items:center; gap:4px; padding:4px 9px; border-radius:20px; background:var(--card2); border:1px solid var(--red-border); cursor:pointer; font-size:13px; color:var(--fg2); transition:all .15s; line-height:1; }
.csm-reac-btn:hover { background:var(--red-glow); border-color:var(--red); }
/* Ya reacciono con ese emoji - no puede de nuevo */
.csm-reac-btn.reacted { background:var(--red-glow); border-color:var(--red); cursor:default; opacity:.7; }
.csm-reac-btn.reacted:hover { transform:none; }
.csm-reac-btn span { font-size:12px; }
.csm-reac-add { padding:4px 9px; border-radius:20px; background:transparent; border:1px dashed rgba(255,255,255,.15); cursor:pointer; font-size:12px; color:var(--fg3); transition:all .15s; }
.csm-reac-add:hover { border-color:var(--red); color:var(--red); }

/* ══════════════════════════════════════
   HILO DE CONVERSACION (THREAD)
   En el muro publico y en el dashboard
══════════════════════════════════════ */
.csm-thread {
  margin-top: 14px;
  border-left: 2px solid var(--red-border);
  padding-left: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.csm-thread-item {
  display: flex; align-items: flex-start; gap: 9px;
  animation: fadein .2s ease;
}
.csm-thread-icon {
  font-size: 14px; flex-shrink: 0; margin-top: 3px;
}
.csm-thread-owner-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-d), var(--red));
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #fff; font-family: 'Cinzel', serif; font-weight: 700;
}
.csm-thread-bubble {
  font-family: 'EB Garamond', serif;
  font-size: 15px; color: var(--fg2); line-height: 1.55;
  padding: 7px 11px; border-radius: 10px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.05);
  flex: 1;
}
.csm-thread-item.csm-thread-owner .csm-thread-bubble {
  background: rgba(237,11,62,.07);
  border-color: var(--red-border);
  color: var(--fg);
}

/* ── Thread colapsable ── */
.csm-thread-wrap { margin-top: 14px; }
.csm-thread-toggle {
  background: none; border: 1px solid var(--red-border);
  border-radius: 20px; cursor: pointer;
  color: var(--fg3); font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; transition: all .15s;
}
.csm-thread-toggle:hover { color: var(--red); border-color: var(--red); background: var(--red-glow); }
.csm-thread-arrow { transition: transform .2s ease; display: inline-block; font-size: 9px; }
.csm-thread-wrap.open .csm-thread-arrow { transform: rotate(90deg); }
.csm-thread-body { display: none; margin-top: 10px; }
.csm-thread-wrap.open .csm-thread-body { display: block; }

/* Formulario de reply al hilo */
.csm-thread-form {
  margin-top: 12px; display: flex; gap: 8px; align-items: flex-end;
}
.csm-thread-form input {
  flex: 1; background: var(--bg2); border: 1px solid var(--red-border);
  border-radius: 20px; padding: 8px 14px;
  color: var(--fg); font-family: 'EB Garamond', serif; font-size: 14px;
  outline: none; transition: border-color .2s;
}
.csm-thread-form input:focus { border-color: var(--red); }
.csm-thread-form button {
  background: var(--red); color: #fff; border: none;
  border-radius: 20px; padding: 8px 16px; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: background .15s;
}
.csm-thread-form button:hover { background: #c90935; }
.csm-thread-form button:disabled { opacity: .5; cursor: not-allowed; }

/* ── Terminos y Condiciones ── */
.csm-terms-row {
  margin-top: 12px; margin-bottom: 4px;
}
.csm-terms-check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-family: 'EB Garamond', serif;
  font-size: 14px; color: var(--fg3); line-height: 1.4;
}
.csm-terms-check input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--red); cursor: pointer;
}
.csm-terms-check a { color: var(--red); }
.csm-terms-check a:hover { opacity: .8; }

/* Overlay modal de T&C */
.csm-terms-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.75); z-index: 9990;
  align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.csm-terms-box {
  background: #0f0f0f; border: 1px solid var(--red-border);
  border-radius: var(--radius-lg); width: min(560px, 100%);
  max-height: 85vh; display: flex; flex-direction: column;
  overflow: hidden;
}
.csm-terms-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--red-border);
  flex-shrink: 0;
}
.csm-terms-head h3 {
  font-family: 'Cinzel', serif; font-size: 14px; color: #fff;
  font-weight: 700; letter-spacing: .06em; margin: 0;
}
.csm-terms-body {
  flex: 1; overflow-y: auto; padding: 20px 22px;
  font-family: 'EB Garamond', serif; font-size: 15px;
  color: var(--fg2); line-height: 1.7;
  scrollbar-width: thin; scrollbar-color: var(--red-border) transparent;
}
.csm-terms-body h4 {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  color: var(--red); letter-spacing: .12em; text-transform: uppercase;
  margin: 18px 0 6px;
}
.csm-terms-body h4:first-child { margin-top: 0; }
.csm-terms-body p { margin: 0 0 4px; }
.csm-terms-date {
  font-size: 12px; color: var(--fg3); font-style: italic; margin-bottom: 16px;
}
.csm-terms-foot {
  padding: 14px 22px; border-top: 1px solid var(--red-border);
  flex-shrink: 0; display: flex; justify-content: center;
}
.csm-thread-rl {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(237,11,62,.06);
  border: 1px solid var(--red-border);
  border-radius: 10px;
  font-family: 'EB Garamond', serif;
  font-size: 14px; color: var(--fg3); line-height: 1.55;
}
.csm-thread-rl strong { color: var(--fg2); }
.csm-thread-rl a { color: var(--red); }
.csm-thread-dash-title {
  font-family: 'Cinzel', serif; font-size: 9px;
  color: var(--fg3); letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 8px;
}
.csm-thread-owner-form { display: flex; gap: 8px; margin-top: 10px; }
.csm-thread-owner-form input {
  flex: 1; background: var(--bg2); border: 1px solid var(--red-border);
  border-radius: 8px; padding: 8px 12px;
  color: var(--fg); font-family: 'EB Garamond', serif; font-size: 14px;
  outline: none; transition: border-color .2s;
}
.csm-thread-owner-form input:focus { border-color: var(--red); }
.csm-thread-owner-form button {
  background: var(--red-glow); color: var(--red);
  border: 1px solid var(--red-border); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-size: 13px;
  transition: all .15s; flex-shrink: 0;
}
.csm-thread-owner-form button:hover { background: var(--red); color: #fff; }

/* CTA tras reply anonimo */
.csm-thread-cta {
  margin-top: 10px; text-align: center;
  font-family: 'EB Garamond', serif; font-size: 13px;
  color: var(--fg3); font-style: italic;
}
.csm-thread-cta a { color: var(--red); }

/* Espaciado reacciones - separadas claramente del contenido */
.csm-reacs { display:flex; gap:4px; flex-wrap:wrap; margin-top: 16px; }
.csm-muro-reacs { display:flex; gap:5px; flex-wrap:wrap; margin-top: 16px; }

/* Reply area */
.csm-reply-box {
  margin-top: 14px; border-top: 1px solid var(--red-border);
  padding-top: 14px;
}
.csm-reply-box textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--red-border);
  border-radius: 8px; padding: 11px 13px; color: var(--fg);
  font-family: 'EB Garamond', serif; font-size: 15px; resize: vertical;
  min-height: 72px; outline: none; transition: border-color .2s;
}
.csm-reply-box textarea:focus { border-color: var(--red); }
.csm-reply-foot { display:flex; gap:8px; justify-content:flex-end; margin-top:8px; }

/* Existing reply */
.csm-resp-block {
  margin-top: 14px; border-left: 3px solid var(--red);
  padding: 10px 14px; background: rgba(237,11,62,.06);
  border-radius: 0 8px 8px 0;
}
.csm-resp-lbl { font-family:'Cinzel',serif; font-size:9px; color:var(--red); letter-spacing:.2em; text-transform:uppercase; margin-bottom:5px; }
.csm-resp-txt { font-family:'EB Garamond',serif; font-size:15px; color:var(--fg2); font-style:italic; line-height:1.55; }

/* ── Perfil editor ── */
.csm-perfil-form { max-width: 480px; }
.csm-perfil-form .csm-av { margin-bottom: 22px; }

/* ══════════════════════════════════════
   SHARE MODAL
══════════════════════════════════════ */
#csm-modal-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 900;
  backdrop-filter: blur(4px);
}
#csm-modal-bg.open { display: block; }
#csm-modal {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.95);
  z-index: 901; width: min(520px, calc(100vw - 24px));
  background: #0f0f0f; border: 1px solid var(--red-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s, opacity .2s;
  max-height: 90vh; overflow-y: auto;
}
#csm-modal.open { display: block; transform: translate(-50%,-50%) scale(1); }
.csm-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--red-border);
}
.csm-modal-head h3 { font-family:'Cinzel',serif; font-size:13px; color:#fff; font-weight:700; }
.csm-modal-close {
  background:none; border:none; cursor:pointer; color:var(--fg3);
  font-size:16px; padding:4px; transition:color .15s;
}
.csm-modal-close:hover { color:#fff; }
.csm-modal-card-wrap { padding: 20px; }
.csm-modal-hint {
  text-align: center; font-size: 13px; color: var(--fg3);
  padding: 0 20px 16px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.csm-modal-hint i { color: var(--red); }
.csm-modal-actions {
  padding: 14px 20px 20px;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}

/* Tarjeta visual compartible */
.csm-share-card {
  background: linear-gradient(135deg, #1a0008, #2a000e);
  border-radius: 16px; padding: 28px 24px;
  position: relative; overflow: hidden;
}
.csm-share-card-glow {
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(237,11,62,.25) 0%, transparent 70%);
  pointer-events: none;
}
.csm-share-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.csm-share-card-user { display:flex; align-items:center; gap:10px; }
.csm-share-card-name { font-family:'Cinzel',serif; font-size:14px; font-weight:700; color:#fff; }
.csm-share-card-handle { font-size:11px; color:rgba(255,255,255,.4); }
.csm-share-card-brand { font-family:'Cinzel',serif; font-size:12px; font-weight:700; color:var(--red); }
.csm-share-card-tono { font-size:26px; margin-bottom:12px; }
.csm-share-card-msg {
  background:rgba(255,255,255,.05); border:1px solid rgba(237,11,62,.2);
  border-radius:10px; padding:14px 16px; margin-bottom:18px;
}
.csm-share-card-msg p { font-family:'EB Garamond',Georgia,serif; font-size:17px; color:rgba(255,255,255,.9); line-height:1.65; }
.csm-share-card-resp {
  border-left:3px solid var(--red); padding:10px 14px;
  background:rgba(237,11,62,.07); border-radius:0 8px 8px 0; margin-bottom:16px;
}
.csm-share-card-resp-lbl { font-family:'Cinzel',serif; font-size:9px; color:var(--red); letter-spacing:.2em; text-transform:uppercase; margin-bottom:5px; }
.csm-share-card-resp p { font-family:'EB Garamond',Georgia,serif; font-size:15px; color:rgba(255,200,210,.9); font-style:italic; line-height:1.55; }
.csm-share-card-foot { display:flex; justify-content:space-between; align-items:center; padding-top:14px; border-top:1px solid rgba(237,11,62,.15); }
.csm-share-card-url { font-family:'Cinzel',serif; font-size:10px; color:rgba(237,11,62,.6); }
.csm-share-card-date { font-size:10px; color:rgba(255,255,255,.2); }

/* ══════════════════════════════════════
   PÁGINA PÚBLICA - NGL-INSPIRED
   /u/{slug} - La joya del plugin.
   Minimal, centrada en la acción.
══════════════════════════════════════ */
.csm-send-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(165,8,40,.28) 0%, transparent 70%),
    var(--bg);
  padding: 0 0 60px;
  animation: fadein .35s ease;
}

/* Barra superior */
.csm-pub-bar {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(237,11,62,.1);
}
.csm-pub-bar-logo {
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: .04em; text-decoration: none;
}
.csm-pub-bar-logo span { color: var(--red); }

/* Hero section - avatar + nombre */
.csm-pub-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 44px 24px 32px; text-align: center;
}
.csm-pub-hero .csm-av {
  margin-bottom: 18px;
  box-shadow: 0 0 0 3px rgba(237,11,62,.2), 0 0 40px rgba(237,11,62,.12);
}
.csm-pub-hero-name {
  font-family: 'Cinzel', serif; font-size: 26px; font-weight: 700;
  color: #fff; margin-bottom: 8px; letter-spacing: .02em;
}
.csm-pub-hero-bio {
  font-family: 'EB Garamond', serif; font-size: 16px;
  color: var(--fg3); font-style: italic; max-width: 360px;
}

/* Form card */
.csm-pub-form-wrap {
  max-width: 500px; margin: 0 auto; padding: 0 16px;
}
.csm-pub-form-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--red-border);
  border-radius: 20px; padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}

.csm-pub-lock-label {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700;
  color: var(--red); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 14px;
}
.csm-pub-lock-label i { font-size: 11px; }

/* Big textarea */
.csm-pub-ta {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--fg); font-family: 'EB Garamond', serif;
  font-size: 18px; line-height: 1.6; resize: none;
  min-height: 120px; border-radius: 8px;
  padding: 4px 0; display: block;
}
.csm-pub-ta::placeholder { color: rgba(240,232,232,.25); font-style: italic; }
.csm-pub-ta-divider {
  height: 1px; background: var(--red-border); margin: 10px 0;
}

/* Tono row */
.csm-pub-tono-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.csm-pub-tono-lbl { font-size: 12px; color: var(--fg3); flex-shrink: 0; }
.csm-pub-tonos { display: flex; gap: 4px; flex-wrap: wrap; }
.csm-pub-tono-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--red-border);
  background: transparent; cursor: pointer; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.csm-pub-tono-btn:hover  { background: var(--red-glow); border-color: var(--red); transform: scale(1.1); }
.csm-pub-tono-btn.active { background: var(--red-glow); border-color: var(--red); transform: scale(1.05); }

/* Footer row: anon toggle + counter + send button */
.csm-pub-form-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* Anonymous toggle */
.csm-anon-toggle {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  user-select: none; font-size: 14px; color: var(--fg3);
}
.csm-anon-toggle input { display: none; }
.csm-toggle-track {
  width: 36px; height: 20px; border-radius: 20px;
  background: rgba(237,11,62,.3); position: relative;
  transition: background .2s; border: 1px solid var(--red-border);
  flex-shrink: 0;
}
.csm-toggle-track.on { background: var(--red); border-color: var(--red); }
.csm-toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.csm-toggle-track.on .csm-toggle-thumb { transform: translateX(16px); }

.csm-pub-chars { font-size: 12px; color: var(--fg3); margin-left: auto; }
.csm-pub-chars.warn { color: var(--red); }

/* Send button (large) */
.csm-pub-send-btn {
  background: var(--red); color: #fff;
  border: none; border-radius: 10px;
  padding: 12px 22px; font-family: 'Cinzel', serif;
  font-size: 11px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; cursor: pointer;
  transition: background .15s, transform .1s;
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0;
}
.csm-pub-send-btn:hover:not(:disabled) { background: #c90935; transform: translateY(-1px); }
.csm-pub-send-btn:active { transform: translateY(0); }
.csm-pub-send-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Name field (if not anon) */
.csm-pub-name-field { margin-top: 12px; }

/* Success state */
.csm-pub-success {
  text-align: center; padding: 16px 0 8px;
  /* display controlado exclusivamente por JS inline - no display:none aqui */
}
.csm-success-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-d), var(--red));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 24px; color: #fff;
  animation: checkpop .45s cubic-bezier(.17,.67,.35,1.2) both;
  box-shadow: 0 0 30px rgba(237,11,62,.35);
}
.csm-success-title {
  font-family: 'Cinzel', serif; font-size: 20px; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.csm-success-sub { font-size: 15px; color: var(--fg2); margin-bottom: 22px; line-height: 1.55; }
.csm-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Footer branding */
.csm-pub-footer {
  text-align: center; padding: 24px 16px 8px;
  font-family: 'Cinzel', serif; font-size: 13px; color: #1e1e1e;
}
.csm-pub-footer a { color: #2a2a2a; }
.csm-pub-footer a:hover { color: var(--fg3); }

/* ══════════════════════════════════════
   MURO PÚBLICO (respuestas publicadas)
══════════════════════════════════════ */
.csm-muro {
  max-width: 500px; margin: 36px auto 0; padding: 0 16px;
}
.csm-muro-title {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  color: var(--fg3); letter-spacing: .15em; text-transform: uppercase;
  text-align: center; margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.csm-muro-title::before,.csm-muro-title::after { content:''; flex:1; height:1px; background:var(--red-border); }

.csm-muro-card {
  background: var(--card); border: 1px solid var(--red-border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  margin-bottom: 10px; transition: border-color .2s;
}
.csm-muro-card:hover { border-color: var(--red-border2); }
.csm-muro-card-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.csm-muro-tono { font-size: 18px; }
.csm-muro-date { font-size: 11px; color: var(--fg3); margin-left: auto; }
.csm-muro-msg {
  font-family: 'EB Garamond', serif; font-size: 16px;
  color: var(--fg2); line-height: 1.6; margin-bottom: 12px;
}
.csm-muro-resp-block {
  border-left: 3px solid var(--red); padding: 9px 14px;
  background: rgba(237,11,62,.06); border-radius: 0 8px 8px 0; margin-bottom: 12px;
}
.csm-muro-resp-lbl { font-family:'Cinzel',serif; font-size:9px; color:var(--red); letter-spacing:.2em; text-transform:uppercase; margin-bottom:4px; }
.csm-muro-resp-txt { font-family:'EB Garamond',serif; font-size:15px; color:rgba(255,200,210,.9); font-style:italic; line-height:1.5; }
.csm-muro-reacs { display:flex; gap:5px; flex-wrap:wrap; }
.csm-muro-reac-btn { padding:4px 9px; border-radius:20px; background:var(--card2); border:1px solid var(--red-border); cursor:pointer; font-size:13px; color:var(--fg2); transition:all .15s; }
.csm-muro-reac-btn:hover { background:var(--red-glow); border-color:var(--red); }
.csm-muro-empty { text-align:center; padding:20px; color:var(--fg3); font-style:italic; font-size:14px; }
.csm-muro-reac-tip { font-size:11px; color:var(--fg3); margin-top:6px; font-style:italic; }

/* ══════════════════════════════════════
   404 - PAGE NOT FOUND
══════════════════════════════════════ */
@keyframes float404  { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-16px) rotate(3deg)} }
@keyframes glitch404 { 0%,100%{clip-path:inset(0)} 25%{clip-path:inset(30% 0 40% 0)} 50%{clip-path:inset(60% 0 10% 0)} 75%{clip-path:inset(10% 0 70% 0)} }

.csm-404-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(165,8,40,.18) 0%, transparent 70%),
    var(--bg);
  animation: fadein .4s ease;
  gap: 0;
}

.csm-404-ghost {
  font-size: 80px; line-height: 1;
  animation: float404 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(237,11,62,.45));
  margin-bottom: 20px; display: block;
  user-select: none;
}

.csm-404-digits {
  font-family: 'Cinzel', serif;
  font-size: clamp(90px, 18vw, 160px);
  font-weight: 700; line-height: .9;
  letter-spacing: .08em;
  color: rgba(255,255,255,.07);
  margin-bottom: 28px;
  position: relative; user-select: none;
}
.csm-404-digits em {
  font-style: normal; color: var(--red);
  text-shadow: 0 0 50px rgba(237,11,62,.6), 0 0 20px rgba(237,11,62,.4);
}

.csm-404-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700; color: #fff;
  letter-spacing: .04em; margin-bottom: 12px;
}

.csm-404-sub {
  font-family: 'EB Garamond', serif;
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--fg2); font-style: italic;
  max-width: 400px; line-height: 1.65;
  margin-bottom: 36px;
}

.csm-404-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 48px;
}

.csm-404-logo {
  font-family: 'Cinzel', serif; font-size: 13px;
  color: rgba(255,255,255,.1); letter-spacing: .08em;
  display: flex; align-items: center; gap: 6px;
}

/* Notfound de perfil publico (slug no existe) */
.csm-notfound {
  min-height: 100vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:16px;
  animation: fadein .4s ease; text-align: center; padding: 32px;
}
.csm-notfound p { color: var(--fg3); font-size: 18px; font-style: italic; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 700px) {
  /* Dashboard: sidebar colapsa arriba */
  .csm-dash { flex-direction: column; }
  .csm-sidebar {
    width: 100%; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--red-border);
  }
  .csm-nav { display: flex; flex-direction: row; gap: 4px; overflow-x: auto; padding: 8px; }
  .csm-nav-item { white-space: nowrap; border-right: none !important; font-size: 10px; padding: 8px 10px; }
  .csm-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0; }
  .csm-logout { display: none; }
  .csm-main { padding: 18px 16px; }

  /* Share panel */
  .csm-field-row { grid-template-columns: 1fr; }

  /* Public page */
  .csm-pub-hero { padding: 32px 16px 24px; }
  .csm-pub-hero-name { font-size: 22px; }
  .csm-pub-form-card { padding: 18px; }
  .csm-pub-ta { font-size: 16px; min-height: 100px; }
  .csm-pub-form-footer { gap: 8px; }

  /* Modal */
  #csm-modal { top: auto; bottom: 0; left: 0; right: 0;
    transform: none; width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  #csm-modal.open { transform: none; }

  .csm-msg-card { padding: 14px 14px; }
  .csm-msg-actions { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .csm-auth-card { padding: 20px 16px; }
  .csm-pub-tono-btn { width: 30px; height: 30px; font-size: 15px; }
  .csm-success-actions { flex-direction: column; }
  .csm-success-actions .csm-btn { justify-content: center; }
}


/* Logo con favicon girando */
.csm-logo-fav {
  display: inline-block;
  width: 26px; height: 26px;
  vertical-align: middle;
  flex-shrink: 0;
  margin-left: 8px;   /* despegado del texto */
  animation: spin 5s linear infinite;
  object-fit: contain;
}

/* Animacion de aparicion del app tras loading */
#csm-app { min-height: 100vh; }

/* ══════════════════════════════════════
   PASSWORD STRENGTH INDICATOR
══════════════════════════════════════ */
.csm-pass-strength { margin-top: 8px; }
.csm-pass-bar-wrap {
  height: 4px; background: rgba(255,255,255,.08);
  border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.csm-pass-bar-fill {
  height: 100%; width: 0; border-radius: 4px;
  transition: width .35s ease, background .35s ease;
}
.csm-pass-reqs {
  display: flex; flex-wrap: wrap; gap: 5px 12px;
}
.csm-req {
  font-size: 12px; color: var(--fg3);
  display: flex; align-items: center; gap: 5px;
  transition: color .2s;
}
.csm-req i { font-size: 11px; }
.csm-req.ok { color: #4ade80; }
.csm-pass-label-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.csm-pass-lbl {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  transition: color .25s;
}

/* Credito autor en muro publico */
.csm-muro-credit {
  text-align: center; padding: 20px 0 8px;
  font-family: 'EB Garamond', serif; font-size: 13px;
  color: var(--fg3); font-style: italic;
}
.csm-muro-credit a { color: var(--red); opacity: .7; }
.csm-muro-credit a:hover { opacity: 1; }

/* ══════════════════════════════════════
   TEMA DEL LINK - pagina publica
══════════════════════════════════════ */
.csm-pub-tema {
  max-width: 500px; margin: 0 auto 22px;
  padding: 0 16px;
}
.csm-pub-tema-card {
  background: rgba(237,11,62,.08);
  border: 1px solid rgba(237,11,62,.35);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 12px;
}
.csm-pub-tema-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.csm-pub-tema-label {
  font-family: 'Cinzel', serif; font-size: 9px;
  color: var(--red); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 4px; font-weight: 700;
}
.csm-pub-tema-text {
  font-family: 'EB Garamond', serif; font-size: 17px;
  color: var(--fg); line-height: 1.5;
}

/* TEMA - dashboard (panel perfil) */
.csm-tema-section {
  margin-top: 28px;
  border-top: 1px solid var(--red-border);
  padding-top: 22px;
}
.csm-tema-section-title {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  color: #fff; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.csm-tema-section-desc {
  font-size: 14px; color: var(--fg3); margin-bottom: 16px; line-height: 1.5;
}
.csm-tema-toggle-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.csm-field-hint {
  font-size: 12px; color: var(--fg3); margin-top: 5px; font-style: italic;
}
