/* ═══════════════════════════════════════════════════════════════════════════
   COMUNIDAD — Workspace estilo IDE (Unity / Blender)
   App shell: barra superior · sidebar · viewport (paneles) · inspector · status
═══════════════════════════════════════════════════════════════════════════ */

.ws {
    /* ── Tokens (modo oscuro) ── */
    --ws-bg:        #121212;
    --ws-topbar:    #181818;
    --ws-sidebar:   #161616;
    --ws-surface:   #1a1a1a;
    --ws-card:      #1e1e1e;
    --ws-card-2:    #242424;
    --ws-border:    #2a2a2a;
    --ws-border-2:  #383838;
    --ws-text:      #e7e8ea;
    --ws-text-dim:  #9a9ca0;
    --ws-text-mut:  #6a6c70;
    --ws-accent:    #ff7b3a;
    --ws-accent-2:  #ff9a5a;
    --ws-accent-soft: rgba(255,123,58,0.12);
    --ws-ok:        #4caf82;
    --ws-mono: 'Courier New', ui-monospace, monospace;
    --ws-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    position: fixed;
    top: var(--nav-h, 80px);
    left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--ws-bg);
    color: var(--ws-text);
    font-family: var(--ws-sans);
    letter-spacing: normal;
    z-index: 1;
    overflow: hidden;
}
.main-content { margin: 0; padding: 0; min-height: 0; }
.ws *, .ws *::before, .ws *::after { box-sizing: border-box; }

/* ───────────────────────────── BARRA SUPERIOR ──────────────────────────── */
.ws-topbar {
    flex-shrink: 0;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 14px;
    background: var(--ws-topbar);
    border-bottom: 1px solid var(--ws-border);
}
.ws-topbar-left   { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ws-topbar-center { flex: 1; display: flex; justify-content: center; }
.ws-topbar-right  { display: flex; align-items: center; gap: 14px; }

.ws-dots { display: flex; gap: 6px; }
.ws-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--ws-border-2); }
.ws-dots i:nth-child(1) { background: #ff5f56; }
.ws-dots i:nth-child(2) { background: #ffbd2e; }
.ws-dots i:nth-child(3) { background: #27c93f; }

.ws-app {
    font-family: var(--ws-mono);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ws-text);
    white-space: nowrap;
}
.ws-app-mod { color: var(--ws-accent); font-weight: 700; }
.ws-bread {
    font-family: var(--ws-mono);
    font-size: 0.82rem;
    color: var(--ws-text-dim);
    white-space: nowrap;
}
.ws-bread span { color: var(--ws-text); }

.ws-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(440px, 100%);
    height: 30px;
    padding: 0 11px;
    background: var(--ws-bg);
    border: 1px solid var(--ws-border);
    border-radius: 7px;
    color: var(--ws-text-dim);
    transition: border-color 0.18s;
}
.ws-search:focus-within { border-color: var(--ws-accent); }
.ws-search i { font-size: 0.78rem; }
.ws-search input {
    flex: 1;
    background: none; border: none; outline: none;
    color: var(--ws-text);
    font-family: var(--ws-sans);
    font-size: 0.85rem;
}
.ws-search input::placeholder { color: var(--ws-text-mut); }
.ws-search kbd {
    font-family: var(--ws-mono);
    font-size: 0.66rem;
    color: var(--ws-text-mut);
    border: 1px solid var(--ws-border);
    border-radius: 4px;
    padding: 1px 5px;
    background: var(--ws-surface);
}

.ws-conn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.74rem; color: var(--ws-text-dim);
    text-transform: lowercase;
}
.ws-conn i { font-size: 0.5rem; color: var(--ws-ok); }
.ws-user {
    display: inline-flex; align-items: center; gap: 7px;
    height: 30px; padding: 0 12px;
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: 7px;
    color: var(--ws-text);
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s, color 0.18s;
}
.ws-user i { color: var(--ws-accent); }
.ws-user:hover { border-color: var(--ws-accent); }
.ws-user--guest i { color: var(--ws-text-dim); }

/* ───────────────────────────── CUERPO (grid) ──────────────────────────── */
.ws-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
}

/* ── SIDEBAR ── */
.ws-sidebar {
    background: var(--ws-sidebar);
    border-right: 1px solid var(--ws-border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 14px 10px 10px;
}
.ws-side-group { margin-bottom: 18px; }
.ws-side-label {
    display: block;
    font-family: var(--ws-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ws-text-mut);
    padding: 0 10px 8px;
}
.ws-nav {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 9px 11px;
    margin-bottom: 2px;
    background: none;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--ws-text-dim);
    font-family: var(--ws-sans);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.ws-nav i { width: 17px; text-align: center; font-size: 0.92rem; flex-shrink: 0; }
.ws-nav span { flex: 1; }
.ws-nav:hover { background: var(--ws-surface); color: var(--ws-text); }
.ws-nav.is-active {
    background: var(--ws-accent-soft);
    border-color: rgba(255,123,58,0.32);
    color: #fff;
}
.ws-nav.is-active i { color: var(--ws-accent); }
.ws-nav-badge {
    font-family: var(--ws-mono);
    font-style: normal;
    font-size: 0.68rem;
    color: var(--ws-text-dim);
    background: var(--ws-surface);
    border: 1px solid var(--ws-border);
    border-radius: 20px;
    padding: 1px 8px;
}
.ws-soon {
    font-family: var(--ws-mono);
    font-style: normal;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ws-accent);
    background: var(--ws-accent-soft);
    border-radius: 4px;
    padding: 2px 6px;
}
.ws-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ws-border); }
.ws-side-user { display: flex; align-items: center; gap: 10px; padding: 6px 6px; }
.ws-side-avatar {
    width: 34px; height: 34px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--ws-accent), var(--ws-accent-2));
    color: #1a1b1c; font-weight: 800; border-radius: 8px;
    font-family: var(--ws-mono);
}
.ws-side-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ws-side-user-info strong { font-size: 0.85rem; color: var(--ws-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-side-user-info span  { font-size: 0.7rem; color: var(--ws-text-mut); }
.ws-side-logout { color: var(--ws-text-dim); padding: 6px; border-radius: 6px; transition: color 0.16s, background 0.16s; }
.ws-side-logout:hover { color: #ff5f56; background: var(--ws-surface); }
.ws-side-login {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px; border-radius: 8px;
    background: var(--ws-accent); color: #1a1b1c;
    font-weight: 700; font-size: 0.85rem; text-decoration: none;
    transition: filter 0.16s;
}
.ws-side-login:hover { filter: brightness(1.08); }

/* ── VIEWPORT ── */
.ws-view {
    background: var(--ws-bg);
    overflow-y: auto;
    padding: 24px 28px 34px;
    background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.012) 39px 40px);
}
.ws-panel { display: none; animation: wsFade 0.28s ease; }
.ws-panel.is-active { display: block; }
@keyframes wsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ws-panel-head { margin-bottom: 20px; }
.ws-panel-head h1, .ws-panel-head h2 {
    display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
    font-size: 1.5rem; font-weight: 800; color: var(--ws-text); margin: 0 0 6px;
}
.ws-panel-head h1 i, .ws-panel-head h2 i { color: var(--ws-accent); font-size: 1.15rem; }
.ws-panel-head p { margin: 0; color: var(--ws-text-dim); font-size: 0.92rem; }

.ws-tag {
    font-family: var(--ws-mono);
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--ws-text-dim);
    border: 1px solid var(--ws-border-2); border-radius: 5px;
    padding: 3px 8px; font-weight: 700;
}
.ws-tag--ok { color: var(--ws-ok); border-color: rgba(76,175,130,0.4); background: rgba(76,175,130,0.1); }

/* ── Stats (dashboard) ── */
.ws-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px;
}
.ws-stat {
    display: flex; align-items: center; gap: 13px;
    padding: 16px;
    background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: 10px;
}
.ws-stat-ico {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--ws-accent-soft); color: var(--ws-accent);
    border-radius: 9px; font-size: 1.05rem;
}
.ws-stat div { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ws-stat strong { font-size: 1.2rem; font-weight: 800; color: var(--ws-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-stat span { font-size: 0.74rem; color: var(--ws-text-mut); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Grid 2 columnas (cards) ── */
.ws-grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.ws-card {
    background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: 11px;
    overflow: hidden;
}
.ws-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px;
    background: var(--ws-surface); border-bottom: 1px solid var(--ws-border);
    font-size: 0.82rem; font-weight: 700; color: var(--ws-text);
}
.ws-card-head > span { display: inline-flex; align-items: center; gap: 8px; }
.ws-card-head i { color: var(--ws-accent); }
.ws-link {
    background: none; border: none; cursor: pointer;
    color: var(--ws-accent); font-size: 0.76rem; font-weight: 600; font-family: var(--ws-sans);
}
.ws-link:hover { text-decoration: underline; }
.ws-card-body { padding: 8px; }

/* actividad reciente */
.ws-act-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 11px; border-radius: 8px;
    transition: background 0.16s;
}
.ws-act-row:hover { background: var(--ws-surface); }
.ws-act-ico {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--ws-surface); border: 1px solid var(--ws-border);
    border-radius: 7px; color: var(--ws-accent); font-size: 0.82rem;
}
.ws-act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ws-act-title { font-size: 0.85rem; color: var(--ws-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-act-meta  { font-size: 0.72rem; color: var(--ws-text-mut); }
.ws-act-stars { color: var(--ws-accent); font-size: 0.8rem; letter-spacing: 1px; flex-shrink: 0; }

/* accesos rapidos */
.ws-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ws-quick-item {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 12px; border-radius: 8px;
    background: var(--ws-surface); border: 1px solid var(--ws-border);
    color: var(--ws-text); font-size: 0.82rem; font-weight: 600; text-decoration: none;
    transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.ws-quick-item i { color: var(--ws-accent); width: 16px; text-align: center; }
.ws-quick-item:hover { border-color: var(--ws-accent); background: var(--ws-accent-soft); transform: translateY(-1px); }

/* ── Grid de tarjetas (reseñas / guías) ── */
.ws-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}

/* reseñas */
.ws-rev {
    display: flex; flex-direction: column; gap: 9px;
    padding: 15px; border-radius: 10px;
    background: var(--ws-card); border: 1px solid var(--ws-border);
    transition: border-color 0.16s;
}
.ws-rev:hover { border-color: var(--ws-border-2); }
.ws-rev-top { display: flex; align-items: center; justify-content: space-between; }
.ws-rev-type {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ws-text-dim);
    background: var(--ws-surface); border: 1px solid var(--ws-border);
    border-radius: 5px; padding: 3px 8px;
}
.ws-rev-type i { color: var(--ws-accent); }
.ws-rev-stars { color: var(--ws-accent); font-size: 0.82rem; letter-spacing: 1px; }
.ws-rev-title { font-size: 0.95rem; font-weight: 700; color: var(--ws-text); }
.ws-rev-op { font-size: 0.83rem; color: var(--ws-text-dim); line-height: 1.5; flex: 1; }
.ws-rev-foot {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.72rem; color: var(--ws-text-mut);
    border-top: 1px solid var(--ws-border); padding-top: 9px; margin-top: 2px;
}
.ws-rev-foot i { color: var(--ws-text-dim); }
.ws-rev--cta {
    align-items: flex-start; justify-content: center; text-align: left; gap: 6px;
    border-style: dashed; border-color: var(--ws-border-2);
    text-decoration: none; cursor: pointer;
}
.ws-rev--cta > i:first-child { font-size: 1.4rem; color: var(--ws-accent); margin-bottom: 4px; }
.ws-rev--cta strong { font-size: 0.95rem; color: var(--ws-text); }
.ws-rev--cta span { font-size: 0.8rem; color: var(--ws-text-dim); line-height: 1.45; }
.ws-rev--cta .ws-rev-go { color: var(--ws-accent); font-weight: 700; margin-top: 4px; }
.ws-rev--cta:hover { border-color: var(--ws-accent); background: var(--ws-accent-soft); }

/* chips (categorías de guías) */
.ws-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ws-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 7px;
    background: var(--ws-card); border: 1px solid var(--ws-border);
    color: var(--ws-text-dim); font-size: 0.8rem; font-weight: 600; text-decoration: none;
    transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.ws-chip i { color: var(--ws-accent); font-size: 0.82rem; }
.ws-chip:hover { border-color: var(--ws-accent); color: var(--ws-text); background: var(--ws-accent-soft); }
.ws-chip--all { border-style: dashed; }
.ws-chip--all i { color: var(--ws-text-dim); }

/* guías */
.ws-guide {
    display: flex; flex-direction: column; gap: 10px;
    padding: 17px; border-radius: 11px;
    background: var(--ws-card); border: 1px solid var(--ws-border);
    text-decoration: none; transition: border-color 0.18s, transform 0.18s;
}
.ws-guide:hover { border-color: var(--ws-accent); transform: translateY(-2px); }
.ws-guide-top { display: flex; align-items: center; justify-content: space-between; }
.ws-guide-ico {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ws-accent-soft); color: var(--ws-accent);
    border-radius: 9px; font-size: 1rem;
}
.ws-guide-cat {
    font-family: var(--ws-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--ws-text-mut);
}
.ws-guide-title { font-size: 1rem; font-weight: 700; color: var(--ws-text); margin: 0; line-height: 1.3; }
.ws-guide-ex { font-size: 0.82rem; color: var(--ws-text-dim); line-height: 1.5; margin: 0; flex: 1; }
.ws-guide-foot {
    display: flex; align-items: center; justify-content: flex-end;
    border-top: 1px solid var(--ws-border); padding-top: 11px;
    font-size: 0.76rem; color: var(--ws-text-mut);
}
.ws-guide-go { color: var(--ws-accent); font-weight: 700; }

/* ── Paneles "próximamente" ── */
.ws-soon-panel {
    max-width: 620px; margin: 10px auto 0; text-align: center;
    padding: 40px 28px;
    background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: 14px;
}
.ws-soon-ico {
    width: 72px; height: 72px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ws-accent-soft); color: var(--ws-accent);
    border-radius: 18px; font-size: 1.9rem;
}
.ws-soon-panel h2 { font-size: 1.3rem; font-weight: 800; color: var(--ws-text); margin: 0 0 8px; }
.ws-soon-panel > p { color: var(--ws-text-dim); font-size: 0.92rem; margin: 0 auto 20px; max-width: 460px; line-height: 1.55; }
.ws-feat { list-style: none; margin: 0 auto 24px; padding: 0; max-width: 380px; text-align: left; display: flex; flex-direction: column; gap: 9px; }
.ws-feat li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ws-text); }
.ws-feat li i { color: var(--ws-ok); font-size: 0.78rem; }

/* ── Pasos (cómo participar) ── */
.ws-steps { display: flex; flex-direction: column; gap: 0; max-width: 760px; border-top: 1px solid var(--ws-border); }
.ws-step { display: flex; gap: 20px; padding: 22px 6px; border-bottom: 1px solid var(--ws-border); }
.ws-step-num {
    font-family: var(--ws-mono); font-size: 1.4rem; font-weight: 800;
    color: var(--ws-accent); flex-shrink: 0; width: 42px;
}
.ws-step-body h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ws-text); font-weight: 700; }
.ws-step-body p { margin: 0 0 12px; color: var(--ws-text-dim); font-size: 0.88rem; line-height: 1.55; }
.ws-done { display: inline-flex; align-items: center; gap: 7px; color: var(--ws-ok); font-size: 0.84rem; font-weight: 600; }

/* ── Botones genéricos ── */
.ws-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 18px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 700; text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
}
.ws-btn--primary { background: var(--ws-accent); color: #1a1b1c; }
.ws-btn--primary:hover { filter: brightness(1.08); }
.ws-btn--disabled { background: var(--ws-surface); color: var(--ws-text-mut); border-color: var(--ws-border); cursor: not-allowed; }

/* ── Empty states ── */
.ws-empty { text-align: center; padding: 26px 16px; color: var(--ws-text-dim); }
/* ">" (hijo directo), no descendiente: si no, este tamaño de icono también
   se aplica al icono del botón "Escribir la primera" anidado dentro, y lo
   descuadra (icono gigante en bloque dentro de un botón inline-flex). */
.ws-empty > i { font-size: 1.6rem; color: var(--ws-text-mut); margin-bottom: 10px; display: block; }
.ws-empty p { margin: 0; font-size: 0.86rem; }
/* :not(.ws-btn) — un enlace normal dentro de un vacío va en naranja, pero un
   enlace con pinta de botón (.ws-btn) ya trae su propio color de texto; si no
   se excluye aquí, esta regla gana por especificidad y el texto del botón
   sale naranja sobre fondo naranja (invisible). */
.ws-empty a:not(.ws-btn) { color: var(--ws-accent); text-decoration: none; font-weight: 600; }
.ws-empty--big { padding: 50px 20px; background: var(--ws-card); border: 1px dashed var(--ws-border-2); border-radius: 14px; }
.ws-empty--big > i { font-size: 2.4rem; color: var(--ws-accent); }
.ws-empty--big p { font-size: 1rem; color: var(--ws-text); margin-bottom: 18px; }

/* ───────────────────────────── BARRA DE ESTADO ─────────────────────────── */
.ws-statusbar {
    flex-shrink: 0;
    height: 26px;
    display: flex; align-items: center; gap: 16px;
    padding: 0 14px;
    background: var(--ws-accent);
    color: #1a1b1c;
    font-family: var(--ws-mono);
    font-size: 0.72rem; font-weight: 600;
}
.ws-st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ws-st i { font-size: 0.62rem; }
.ws-st .ws-ok { color: #0b3d28; }
.ws-st-spacer { flex: 1; }

/* ── Chip de versión en el topbar ── */
.ws-ver { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ws-mono); font-size: 0.74rem; color: var(--ws-text-dim); }
.ws-ver i { color: var(--ws-accent); font-size: 0.7rem; }

/* ── Botones que reutilizan clases de enlace ── */
button.ws-quick-item, button.ws-chip { font-family: inherit; cursor: pointer; }

/* ── Explora por componente (grid en inicio) ── */
.ws-comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ws-comp-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    padding: 17px 10px; border-radius: 10px;
    background: var(--ws-surface); border: 1px solid var(--ws-border);
    color: var(--ws-text); font-family: inherit; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.ws-comp-item i { font-size: 1.35rem; color: var(--ws-accent); }
.ws-comp-item:hover { border-color: var(--ws-accent); background: var(--ws-accent-soft); transform: translateY(-2px); }

/* ── Guía en preparación (no clicable) ── */
.ws-guide--soon { opacity: 0.6; cursor: default; }
.ws-guide--soon:hover { border-color: var(--ws-border); transform: none; }
.ws-guide--soon .ws-guide-ico { background: var(--ws-surface); color: var(--ws-text-dim); }

/* ── Prosa (texto de paneles) ── */
.ws-prose { padding: 15px; }
.ws-prose p { margin: 0; font-size: 0.88rem; color: var(--ws-text-dim); line-height: 1.6; }
.ws-prose strong { color: var(--ws-text); }

/* ── Cuello de botella: layout 2 columnas ── */
.ws-bn { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 16px; align-items: start; }
.ws-bn-main { display: flex; flex-direction: column; gap: 14px; }
.ws-bn-cta {
    position: sticky; top: 0;
    text-align: center; padding: 26px 22px;
    background: linear-gradient(160deg, var(--ws-card), var(--ws-surface));
    border: 1px solid var(--ws-accent); border-radius: 14px;
}
.ws-bn-cta-ico {
    width: 64px; height: 64px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ws-accent-soft); color: var(--ws-accent);
    border-radius: 16px; font-size: 1.6rem;
}
.ws-bn-cta h2 { font-size: 1.1rem; color: var(--ws-text); margin: 0 0 8px; font-weight: 800; }
.ws-bn-cta p { font-size: 0.84rem; color: var(--ws-text-dim); line-height: 1.5; margin: 0 0 16px; }
.ws-bn-cta .ws-btn { width: 100%; justify-content: center; }
.ws-bn-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.78rem; font-weight: 600; color: var(--ws-accent); text-decoration: none; }
.ws-bn-link:hover { text-decoration: underline; }

/* ── Acciones en panel "publica tu PC" ── */
.ws-soon-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ws-btn--ghost { background: var(--ws-surface); color: var(--ws-text); border-color: var(--ws-border); }
.ws-btn--ghost:hover { border-color: var(--ws-accent); }

/* ── Lector de guías embebido en el viewport ── */
.ws-reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ws-reader-back {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 8px;
    color: var(--ws-text); font-family: inherit; font-size: 0.85rem; font-weight: 600;
    padding: 8px 14px; cursor: pointer; transition: border-color 0.16s, background 0.16s;
}
.ws-reader-back:hover { border-color: var(--ws-accent); background: var(--ws-accent-soft); }
.ws-reader-open { display: inline-flex; align-items: center; gap: 7px; color: var(--ws-text-dim); font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.ws-reader-open:hover { color: var(--ws-accent); }
.ws-reader-open i { font-size: 0.75rem; }
.ws-reader-loading { padding: 60px 20px; text-align: center; color: var(--ws-text-dim); font-size: 0.92rem; }
.ws-reader-loading i { margin-right: 8px; color: var(--ws-accent); }

/* Ajustes del artículo embebido dentro del panel */
.ws-reader .gz-layout { max-width: 100%; gap: 2.4rem; margin: 0; }
.ws-reader .gz-toc { top: 4px; }
.ws-reader .gz-body h2, .ws-reader .gz-body h3 { scroll-margin-top: 12px; }
.ws-reader .gz-article-head { padding-top: 0; }

/* ───────────────────────────── SCROLLBARS ─────────────────────────────── */
.ws-view::-webkit-scrollbar,
.ws-sidebar::-webkit-scrollbar { width: 10px; }
.ws-view::-webkit-scrollbar-track,
.ws-sidebar::-webkit-scrollbar-track { background: transparent; }
.ws-view::-webkit-scrollbar-thumb,
.ws-sidebar::-webkit-scrollbar-thumb { background: var(--ws-border-2); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
.ws-view::-webkit-scrollbar-thumb:hover,
.ws-sidebar::-webkit-scrollbar-thumb:hover { background: #5a5b5d; background-clip: padding-box; }

/* ───────────────────────────── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1180px) {
    .ws-body { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .ws-body { grid-template-columns: 60px minmax(0, 1fr); }
    .ws-side-label, .ws-nav span, .ws-nav-badge, .ws-soon, .ws-side-user-info, .ws-side-logout { display: none; }
    .ws-nav { justify-content: center; padding: 11px 0; }
    .ws-nav i { font-size: 1.05rem; }
    .ws-side-user { justify-content: center; }
    .ws-side-login { padding: 10px 0; }
    .ws-side-login span { display: none; }
    .ws-topbar-center { display: none; }
    .ws-grid-2 { grid-template-columns: 1fr; }
    .ws-stats { grid-template-columns: 1fr 1fr; }
    .ws-bn { grid-template-columns: 1fr; }
    .ws-bn-cta { position: static; }
}
@media (max-width: 560px) {
    .ws-app-mod, .ws-bread, .ws-conn { display: none; }
    .ws-view { padding: 16px 14px 24px; }
    .ws-quick { grid-template-columns: 1fr; }
    .ws-statusbar { gap: 10px; overflow-x: auto; }
}

/* ═══════════════════════════════ TEMA CLARO ════════════════════════════ */
body.light-theme .ws,
.light-theme .ws {
    --ws-bg:        #f4f5f6;
    --ws-topbar:    #ffffff;
    --ws-sidebar:   #fafafa;
    --ws-surface:   #f0f1f2;
    --ws-card:      #ffffff;
    --ws-card-2:    #f5f6f7;
    --ws-border:    #e2e3e5;
    --ws-border-2:  #cfd0d2;
    --ws-text:      #1d1e20;
    --ws-text-dim:  #5d5e60;
    --ws-text-mut:  #8a8b8d;
}
.light-theme .ws-statusbar { color: #1a1b1c; }
.light-theme .ws-view {
    background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(0,0,0,0.015) 39px 40px);
}
.light-theme .ws-side-login,
.light-theme .ws-btn--primary { color: #fff; }
.light-theme .ws-side-avatar { color: #fff; }

/* ═══════════════════════════ PUBLICA TU PC — subida ════════════════════════ */
.ws-pc-uploader { margin-bottom: 22px; }

/* Zona de soltar / seleccionar */
.ws-drop {
    position: relative;
    border: 2px dashed var(--ws-border-2);
    border-radius: 12px;
    background: var(--ws-surface);
    transition: border-color 0.16s, background 0.16s;
    cursor: pointer;
    overflow: hidden;
}
.ws-drop.is-drag { border-color: var(--ws-accent); background: var(--ws-accent-soft); }
.ws-drop-empty {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 34px 20px; text-align: center;
}
/* ">" (hijo directo): si no, este tamaño/color también le llega al icono del
   botón "Añade foto" anidado dentro, y sale naranja gigante sobre fondo
   naranja (invisible) — mismo fallo que en .ws-empty. */
.ws-drop-empty > i { font-size: 2.2rem; color: var(--ws-accent); }
.ws-drop-empty strong { font-size: 0.95rem; color: var(--ws-text); }
.ws-drop-empty span { font-size: 0.78rem; color: var(--ws-text-mut); }
.ws-drop-empty .ws-btn { margin-top: 6px; }

.ws-drop-preview { position: relative; padding: 10px; }
.ws-drop-preview img {
    display: block; width: 100%; max-height: 380px;
    object-fit: contain; border-radius: 8px; background: #000;
}
.ws-drop-clear {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.65); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
    transition: background 0.16s;
}
.ws-drop-clear:hover { background: var(--ws-accent); color: #1a1b1c; }

/* Campos del formulario */
.ws-pc-fields {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px;
}
.ws-field { display: flex; flex-direction: column; gap: 6px; }
.ws-field--full { grid-column: 1 / -1; }
.ws-field > span { font-size: 0.78rem; font-weight: 600; color: var(--ws-text-dim); }
.ws-field > span em { color: var(--ws-accent); font-style: normal; }
.ws-field input,
.ws-field select,
.ws-field textarea {
    width: 100%; padding: 9px 11px; border-radius: 8px;
    background: var(--ws-bg); border: 1px solid var(--ws-border);
    color: var(--ws-text); font-size: 0.86rem; font-family: var(--ws-sans);
    transition: border-color 0.16s;
}
.ws-field textarea { resize: vertical; min-height: 64px; }
.ws-field input:focus,
.ws-field select:focus,
.ws-field textarea:focus { outline: none; border-color: var(--ws-accent); }

.ws-pc-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 14px;
    margin-top: 16px; flex-wrap: wrap;
}
.ws-pc-msg { font-size: 0.82rem; margin-right: auto; }
.ws-pc-msg.is-ok  { color: var(--ws-ok); }
.ws-pc-msg.is-err { color: #e5604d; }

/* Aviso para iniciar sesión */
.ws-pc-login {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-align: center; padding: 36px 20px; margin-bottom: 22px;
    background: var(--ws-card); border: 1px dashed var(--ws-border-2); border-radius: 14px;
}
/* ">" (hijo directo): mismo fallo que en .ws-empty/.ws-drop-empty — si no,
   también infla el icono del botón "Iniciar sesión" anidado. */
.ws-pc-login > i { font-size: 2rem; color: var(--ws-accent); }
.ws-pc-login p { margin: 0; color: var(--ws-text-dim); font-size: 0.9rem; }

/* Galería de PCs */
.ws-pc-gallery-head {
    display: flex; align-items: center; gap: 10px;
    margin: 6px 0 14px; padding-top: 6px;
}
.ws-pc-gallery-head h2 {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 1.05rem; font-weight: 800; color: var(--ws-text); margin: 0;
}
.ws-pc-gallery-head h2 i { color: var(--ws-accent); }
.ws-pc-count {
    font-family: var(--ws-mono); font-size: 0.72rem; font-weight: 700;
    color: var(--ws-text-dim); background: var(--ws-surface);
    border: 1px solid var(--ws-border); border-radius: 20px; padding: 2px 10px;
}
.ws-pc-gallery-sub { font-size: 0.82rem; color: var(--ws-text-dim); }
.ws-btn--sm { padding: 7px 13px; font-size: 0.8rem; }

.ws-pc-card {
    margin: 0; display: flex; flex-direction: column;
    background: var(--ws-card); border: 1px solid var(--ws-border);
    border-radius: 11px; overflow: hidden; transition: border-color 0.18s, transform 0.18s;
}
.ws-pc-card:hover { border-color: var(--ws-accent); transform: translateY(-2px); }
.ws-pc-thumb { aspect-ratio: 16 / 10; background: #0c0c0c; overflow: hidden; }
.ws-pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-pc-card figcaption { padding: 13px 14px; display: flex; flex-direction: column; gap: 7px; }
.ws-pc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-pc-card-top strong { font-size: 0.92rem; font-weight: 700; color: var(--ws-text); line-height: 1.3; }
.ws-pc-cat {
    flex-shrink: 0; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ws-accent); background: var(--ws-accent-soft);
    border-radius: 5px; padding: 3px 7px;
}
.ws-pc-card figcaption p {
    margin: 0; font-size: 0.8rem; color: var(--ws-text-dim); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ws-pc-meta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; color: var(--ws-text-mut);
    border-top: 1px solid var(--ws-border); padding-top: 9px; margin-top: 1px;
}
.ws-pc-meta i { color: var(--ws-text-dim); }

/* Mini banner build próximamente */
.ws-soon-mini {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-top: 22px; padding: 16px 18px;
    background: var(--ws-card); border: 1px dashed var(--ws-border-2); border-radius: 12px;
}
.ws-soon-mini > i { font-size: 1.4rem; color: var(--ws-accent); }
.ws-soon-mini > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.ws-soon-mini strong { font-size: 0.9rem; color: var(--ws-text); }
.ws-soon-mini span { font-size: 0.8rem; color: var(--ws-text-dim); line-height: 1.45; }

/* Bloque de componentes del formulario */
.ws-pc-specs-block { margin-top: 16px; }
.ws-pc-specs-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 700; color: var(--ws-text);
    margin-bottom: 10px;
}
.ws-pc-specs-label i { color: var(--ws-accent); }
.ws-pc-specs-label em { font-style: normal; font-weight: 500; color: var(--ws-text-mut); }
.ws-pc-specs-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.ws-pc-specs-grid .ws-field > span { display: inline-flex; align-items: center; gap: 7px; }
.ws-pc-specs-grid .ws-field > span i { color: var(--ws-accent); font-size: 0.8rem; width: 14px; text-align: center; }

/* Buscador / autocompletado de componentes */
.ws-field--ac { position: relative; }
/* position:fixed para escapar del overflow:hidden de .ws-card; se coloca con JS
   como hijo directo de <body> (fuera de .ws), así que NO hereda las variables
   de tema de .ws — de ahí los valores fijos aquí en vez de var(--ws-*). */
.ws-ac {
    position: fixed; z-index: 9000;
    max-height: 300px; overflow-y: auto;
    background: #242424; border: 1px solid #383838;
    border-radius: 9px; box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    padding: 4px;
}
.ws-ac-item {
    display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
    padding: 8px 10px; border: none; background: none; cursor: pointer; border-radius: 7px;
}
.ws-ac-item:hover, .ws-ac-item.is-active { background: rgba(255,123,58,0.12); }
.ws-ac-name { font-size: 0.84rem; font-weight: 600; color: #e7e8ea; line-height: 1.3; }
.ws-ac-hint { font-size: 0.72rem; color: #6a6c70; }
.ws-ac-item.is-active .ws-ac-name { color: #ff7b3a; }

body.light-theme .ws-ac { background: #f5f6f7; border-color: #cfd0d2; }
body.light-theme .ws-ac-name { color: #1d1e20; }
body.light-theme .ws-ac-hint { color: #8a8b8d; }

/* Indicadores en la tarjeta de la galería */
.ws-pc-card { cursor: pointer; }
.ws-pc-card:focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-pc-thumb { position: relative; }
.ws-pc-view {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(10,10,10,0.55); color: #fff;
    font-size: 0.82rem; font-weight: 700;
    opacity: 0; transition: opacity 0.18s;
}
.ws-pc-card:hover .ws-pc-view,
.ws-pc-card:focus-visible .ws-pc-view { opacity: 1; }
.ws-pc-specs-count {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-size: 0.7rem; font-weight: 700; color: var(--ws-text-dim);
    background: var(--ws-surface); border: 1px solid var(--ws-border);
    border-radius: 5px; padding: 3px 8px;
}
.ws-pc-specs-count i { color: var(--ws-accent); }

/* ── Modal de detalle de la publicación ── */
body.ws-modal-open { overflow: hidden; }
.ws-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.ws-modal[hidden] { display: none; }
.ws-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(2px); }
.ws-modal-dialog {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    width: 100%; max-width: 980px; max-height: 88vh;
    background: var(--ws-card); border: 1px solid var(--ws-border-2);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.ws-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    transition: background 0.16s;
}
.ws-modal-close:hover { background: var(--ws-accent); color: #1a1b1c; }
.ws-modal-media { background: #0a0a0a; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.ws-modal-media img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; display: block; }
.ws-modal-info { padding: 24px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ws-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ws-modal-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ws-text); line-height: 1.25; }
.ws-modal-desc {
    margin: 0; font-size: 0.88rem; color: var(--ws-text-dim); line-height: 1.6;
    white-space: pre-wrap; word-break: break-word;
    border-top: 1px solid var(--ws-border); padding-top: 12px;
}
.ws-modal-specs { border-top: 1px solid var(--ws-border); padding-top: 14px; }
.ws-modal-specs h3 {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ws-text-dim);
}
.ws-modal-specs h3 i { color: var(--ws-accent); }
.ws-modal-specs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ws-modal-specs li {
    display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 4px 10px;
    padding: 9px 11px; border-radius: 9px;
    background: var(--ws-surface); border: 1px solid var(--ws-border);
}
.ws-spec-ico {
    grid-row: span 2; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ws-accent-soft); color: var(--ws-accent); border-radius: 7px; font-size: 0.85rem;
}
.ws-spec-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ws-text-mut); }
.ws-spec-val { font-size: 0.88rem; font-weight: 600; color: var(--ws-text); word-break: break-word; }

/* Acciones del propietario en el modal */
.ws-modal-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    border-top: 1px solid var(--ws-border); padding-top: 14px; margin-top: 2px;
}
.ws-btn--danger { background: #e5604d; color: #fff; }
.ws-btn--danger:hover { filter: brightness(1.06); }
.ws-btn--danger:disabled { opacity: 0.6; cursor: default; }

/* Barra de modo edición sobre el formulario */
.ws-pc-editbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 14px; padding: 10px 13px;
    background: var(--ws-accent-soft); border: 1px solid rgba(255,123,58,0.35); border-radius: 9px;
    font-size: 0.82rem; color: var(--ws-text);
}
.ws-pc-editbar i { color: var(--ws-accent); }
.ws-pc-editbar strong { font-weight: 700; }
.ws-pc-editcancel {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    color: var(--ws-text-dim); font-size: 0.8rem; font-weight: 600;
}
.ws-pc-editcancel:hover { color: var(--ws-accent); }

@media (max-width: 760px) {
    .ws-modal { padding: 0; }
    .ws-modal-dialog {
        grid-template-columns: 1fr; max-height: 100vh; height: 100%;
        max-width: 100%; border-radius: 0; border: none;
        grid-template-rows: auto 1fr;
    }
    .ws-modal-media { max-height: 42vh; }
    .ws-modal-media img { max-height: 42vh; }
}

@media (max-width: 620px) {
    .ws-pc-fields { grid-template-columns: 1fr; }
    .ws-pc-specs-grid { grid-template-columns: 1fr; }
    .ws-pc-actions { justify-content: stretch; }
    .ws-pc-actions .ws-btn { width: 100%; justify-content: center; }
}

/* Modal "Escribir reseña": una sola columna, sin la foto del modal de PCs */
.ws-modal-dialog--form { grid-template-columns: 1fr; max-width: 480px; }
.ws-modal-dialog--form .ws-modal-info { padding: 26px 24px; max-height: 88vh; }

.ws-field-label-top { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ws-text-dim); margin-bottom: 8px; }

.ws-rvm-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ws-rvm-type {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 9px;
    color: var(--ws-text); font-size: 0.84rem; font-weight: 600; cursor: pointer; text-align: left;
    transition: border-color 0.16s, background 0.16s;
}
.ws-rvm-type i { color: var(--ws-accent); width: 16px; text-align: center; }
.ws-rvm-type:hover { border-color: var(--ws-accent); }
.ws-rvm-type.is-active { background: var(--ws-accent-soft); border-color: var(--ws-accent); }

.ws-rvm-picked {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; margin-bottom: 14px;
    background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 9px;
    font-size: 0.88rem; font-weight: 700; color: var(--ws-text);
}

.ws-rvm-stars { display: flex; gap: 4px; }
.ws-rvm-stars button { background: none; border: none; cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 2px; color: var(--ws-text-mut); }
.ws-rvm-stars button i.fas { color: #f5a623; }

/* ══════════════════════════════ TIER LIST ══════════════════════════════ */
/* Colores por tier */
.tl-S { --tl-c: #e0556b; }
.tl-A { --tl-c: #e8843c; }
.tl-B { --tl-c: #d8b23c; }
.tl-C { --tl-c: #4c9f6a; }
.tl-D { --tl-c: #4a86b8; }

/* Tarjeta destacada en el Inicio */
.ws-tl-promo {
    display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
    margin-bottom: 16px; padding: 15px 18px; cursor: pointer;
    background: linear-gradient(120deg, var(--ws-accent-soft), var(--ws-card) 70%);
    border: 1px solid rgba(255,123,58,0.35); border-radius: 12px;
    transition: border-color 0.16s, transform 0.16s;
}
.ws-tl-promo:hover { border-color: var(--ws-accent); transform: translateY(-2px); }
.ws-tl-promo-ico {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ws-accent); color: #12100f; font-size: 1.5rem;
}
.ws-tl-promo-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ws-tl-promo-body strong { font-size: 1rem; font-weight: 800; color: var(--ws-text); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-tl-promo-body > span { font-size: 0.85rem; color: var(--ws-text-dim); line-height: 1.45; }
.ws-tl-promo-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; color: var(--ws-accent); font-weight: 700; font-size: 0.85rem; }
@media (max-width: 620px) {
    .ws-tl-promo { flex-wrap: wrap; }
    .ws-tl-promo-go { width: 100%; }
}

/* Pestañas de componente */
.ws-tl-tabs {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px;
    scrollbar-width: thin;
}
.ws-tl-tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 8px; cursor: pointer;
    background: var(--ws-card); border: 1px solid var(--ws-border);
    color: var(--ws-text-dim); font-size: 0.82rem; font-weight: 600;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ws-tl-tab i { color: var(--ws-accent); }
.ws-tl-tab:hover { border-color: var(--ws-border-2); color: var(--ws-text); }
.ws-tl-tab.is-active { background: var(--ws-accent-soft); border-color: var(--ws-accent); color: var(--ws-text); }

.ws-tl-legend {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: 0.8rem; color: var(--ws-text-mut); margin-bottom: 14px;
}
.ws-tl-loginhint { color: var(--ws-accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.ws-tl-loginhint:hover { text-decoration: underline; }

/* Barra de búsqueda */
.ws-tl-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ws-tl-search {
    position: relative; flex: 1; min-width: 240px; display: flex; align-items: center;
    background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: 9px;
    padding: 0 12px; transition: border-color 0.15s;
}
.ws-tl-search:focus-within { border-color: var(--ws-accent); }
.ws-tl-search > i { color: var(--ws-text-mut); font-size: 0.85rem; }
.ws-tl-search input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--ws-text); font-size: 0.88rem; padding: 10px 10px; font-family: var(--ws-sans);
}
.ws-tl-search-clear {
    background: none; border: none; cursor: pointer; color: var(--ws-text-mut);
    width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.ws-tl-search-clear:hover { color: var(--ws-text); background: var(--ws-surface); }
.ws-tl-pool--hint .ws-tl-empty-row { display: flex; align-items: center; gap: 9px; padding: 6px 4px; line-height: 1.5; }
.ws-tl-pool--hint .ws-tl-empty-row i { color: var(--ws-accent); }
.ws-tl-more { display: inline-flex; align-items: center; gap: 7px; width: 100%; color: var(--ws-text-mut); font-size: 0.8rem; padding: 10px 4px 2px; }
.ws-tl-more i { color: var(--ws-accent); }

/* Resumen de votos */
.ws-tl-summary {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 12px; padding: 11px 14px;
    background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: 10px;
    font-size: 0.84rem; color: var(--ws-text-dim);
}
.ws-tl-summary--empty { gap: 9px; color: var(--ws-text-mut); }
.ws-tl-summary--empty i { color: var(--ws-accent); }
.ws-tl-sum-stat strong { color: var(--ws-text); font-size: 1.05rem; font-weight: 800; margin-right: 3px; }
.ws-tl-sum-tiers { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.ws-tl-sum-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
    font-family: var(--ws-mono); font-weight: 700; font-size: 0.72rem; color: #12100f; background: var(--tl-c, #555);
}
.ws-tl-sum-chip b { font-size: 0.82rem; }

/* Lista votable (fila por componente) */
.ws-tl-list { display: flex; flex-direction: column; gap: 6px; }
.ws-tl-item {
    position: relative; overflow: hidden;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    padding: 9px 12px; border-radius: 9px;
    background: var(--ws-card); border: 1px solid var(--ws-border);
    transition: border-color 0.14s;
}
.ws-tl-item:hover { border-color: var(--ws-border-2); }
.ws-tl-item.is-mine { border-color: var(--ws-accent); }
/* Relleno: el propio recuadro es la barra de votos */
.ws-tl-item-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 0;
    background: var(--tl-c, var(--ws-accent)); opacity: 0.30;
    transition: width 0.35s ease;
}
.ws-tl-item > *:not(.ws-tl-item-fill) { position: relative; z-index: 1; }
.ws-tl-badge {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ws-mono); font-weight: 800; font-size: 1rem; color: #12100f;
    background: var(--tl-c, #555);
}
.ws-tl-badge.tl-none { background: var(--ws-surface); color: var(--ws-text-mut); border: 1px solid var(--ws-border); }
.ws-tl-item-name {
    flex: 1 1 160px; min-width: 0; font-size: 0.9rem; font-weight: 600; color: var(--ws-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ws-tl-item-votes { flex: 0 0 68px; text-align: right; font-size: 0.75rem; color: var(--ws-text); font-weight: 600; white-space: nowrap; }
.ws-tl-item-nologin { flex: 0 0 auto; font-size: 0.72rem; color: var(--ws-text-mut); white-space: nowrap; }
.ws-tl-item-vote { flex: 0 0 auto; display: flex; gap: 5px; }
.ws-tl-item-vote .ws-tl-vb { width: 30px; height: 30px; font-size: 0.85rem; }
.ws-tl-item-vote .ws-tl-vb:disabled { opacity: 0.4; cursor: default; transform: none; }

/* Guía explicativa */
.ws-tl-guide {
    margin-top: 18px; padding: 18px 20px;
    background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: 12px;
}
.ws-tl-guide h3 {
    display: flex; align-items: center; gap: 9px; margin: 0 0 10px;
    font-size: 0.98rem; font-weight: 800; color: var(--ws-text);
}
.ws-tl-guide h3 i { color: var(--ws-accent); }
.ws-tl-guide p { margin: 0 0 14px; font-size: 0.86rem; color: var(--ws-text-dim); line-height: 1.6; }
.ws-tl-guide .ws-feat { max-width: none; margin: 0; }
.ws-tl-guide .ws-feat li { align-items: flex-start; font-size: 0.84rem; color: var(--ws-text-dim); }
.ws-tl-guide .ws-feat li i { color: var(--ws-accent); margin-top: 3px; }
.ws-tl-guide .ws-feat strong { color: var(--ws-text); }

/* Tablero */
.ws-tl-board { display: flex; flex-direction: column; gap: 8px; }
.ws-tl-row {
    display: flex; align-items: stretch; gap: 10px;
    background: var(--ws-card); border: 1px solid var(--ws-border); border-radius: 10px; overflow: hidden;
}
.ws-tl-label {
    flex: 0 0 64px; display: flex; align-items: center; justify-content: center;
    font-family: var(--ws-mono); font-size: 1.7rem; font-weight: 800; color: #12100f;
    background: var(--tl-c, #555);
}
.ws-tl-items {
    flex: 1; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; min-height: 56px; align-content: center;
}
.ws-tl-empty-row { color: var(--ws-text-mut); font-size: 0.85rem; align-self: center; }

/* Tarjeta de modelo */
.ws-tl-card {
    display: flex; flex-direction: column; gap: 2px; text-align: left;
    padding: 8px 11px; border-radius: 8px; cursor: pointer;
    background: var(--ws-surface); border: 1px solid var(--ws-border);
    transition: border-color 0.15s, transform 0.15s;
    max-width: 220px;
}
.ws-tl-card:hover { border-color: var(--ws-accent); transform: translateY(-1px); }
.ws-tl-card.is-mine { border-color: var(--ws-accent); box-shadow: inset 0 0 0 1px var(--ws-accent); }
.ws-tl-card-name { font-size: 0.82rem; font-weight: 700; color: var(--ws-text); line-height: 1.25; }
.ws-tl-card-meta { font-size: 0.68rem; color: var(--ws-text-mut); }
.ws-tl-card-meta i { font-size: 0.62rem; }

/* Pool "sin rankear" */
.ws-tl-pool {
    margin-top: 6px; background: var(--ws-card);
    border: 1px dashed var(--ws-border-2); border-radius: 10px; overflow: hidden;
}
.ws-tl-pool-head {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    font-size: 0.8rem; font-weight: 700; color: var(--ws-text-dim);
    border-bottom: 1px solid var(--ws-border);
}
.ws-tl-pool-head i { color: var(--ws-accent); }
.ws-tl-pool-head span { color: var(--ws-text-mut); font-weight: 500; }

/* Modal de voto */
.ws-tl-vote-dialog {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px;
    background: var(--ws-card); border: 1px solid var(--ws-border-2);
    border-radius: 14px; padding: 22px 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.ws-tl-vote-dialog h3 { margin: 0 6px 4px 0; font-size: 1.1rem; font-weight: 800; color: var(--ws-text); }
.ws-tl-vote-consensus { font-size: 0.82rem; color: var(--ws-text-dim); margin-bottom: 16px; }
.tl-badge {
    display: inline-block; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 5px;
    color: #12100f; font-weight: 800; background: var(--tl-c, #555);
}
.ws-tl-vote-dist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.ws-tl-distrow { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 8px; }
.ws-tl-distlbl { text-align: center; font-weight: 800; font-size: 0.78rem; color: var(--tl-c, #999); }
.ws-tl-distbar { height: 8px; background: var(--ws-surface); border-radius: 6px; overflow: hidden; }
.ws-tl-distbar > span { display: block; height: 100%; background: var(--ws-accent); border-radius: 6px; }
.ws-tl-distn { font-size: 0.74rem; color: var(--ws-text-mut); text-align: right; }

.ws-tl-vote-your { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ws-tl-vote-lbl { font-size: 0.84rem; font-weight: 600; color: var(--ws-text-dim); }
.ws-tl-vote-btns { display: flex; gap: 6px; }
.ws-tl-vb {
    width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
    font-family: var(--ws-mono); font-weight: 800; font-size: 1rem; color: var(--tl-c);
    background: var(--ws-surface); border: 2px solid var(--tl-c);
    transition: transform 0.12s, background 0.12s, color 0.12s;
}
.ws-tl-vb:hover { transform: translateY(-2px); }
.ws-tl-vb.is-active { background: var(--tl-c); color: #12100f; }
.ws-tl-vb:disabled { opacity: 0.5; cursor: default; }
.ws-tl-vote-remove {
    background: none; border: none; cursor: pointer; color: var(--ws-text-mut);
    font-size: 0.78rem; font-weight: 600; margin-left: auto;
}
.ws-tl-vote-remove:hover { color: #e5604d; }
.ws-tl-vote-login { font-size: 0.86rem; color: var(--ws-text-dim); margin: 4px 0 0; }
.ws-tl-vote-login a { color: var(--ws-accent); font-weight: 600; }

@media (max-width: 620px) {
    .ws-tl-label { flex-basis: 48px; font-size: 1.3rem; }
    .ws-tl-card { max-width: none; flex: 1 1 100%; }
}
