/* ─── Variables ──────────────────────────────────────── */
:root {
    --bg:         #0d0f14;
    --bg-2:       #13161e;
    --bg-3:       #1a1e2a;
    --bg-4:       #222636;
    --border:     #2a2f42;
    --border-2:   #363d55;

    --text:       #e2e6f0;
    --text-muted: #6b7494;
    --text-dim:   #4a5168;

    --accent:     #7c6af7;
    --accent-dim: #3d3578;
    --accent-glow:rgba(124, 106, 247, 0.25);

    --green:      #4ade80;
    --red:        #f87171;
    --yellow:     #fbbf24;
    --blue:       #60a5fa;
    --orange:     #fb923c;

    --sidebar-w:  56px;
    --topbar-h:   48px;

    --radius:     6px;
    --radius-lg:  10px;

    --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono:  'Cascadia Code', 'Fira Code', monospace;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input, textarea, select {
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text);
    font: inherit;
    border-radius: var(--radius);
    padding: 6px 10px;
    outline: none;
    transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--accent); }

* { scrollbar-width: thin; scrollbar-color: var(--border-2) var(--bg-2); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ─── Login ──────────────────────────────────────────── */
.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, #1a1630 0%, var(--bg) 70%);
}

.login-card {
    text-align: center;
    padding: 48px 40px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 340px;
    box-shadow: 0 0 60px rgba(124, 106, 247, 0.1);
}

.login-logo .logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 6px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: background .15s, transform .1s;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }
.btn-discord:active { transform: translateY(0); }

/* ─── App shell ──────────────────────────────────────── */
.app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ─── Sidebar ────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-logo {
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.logo-icon { font-size: 22px; }

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 0 6px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px 4px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: background .15s, color .15s;
    position: relative;
}

.nav-btn svg { width: 18px; height: 18px; }

.nav-btn:hover {
    background: var(--bg-3);
    color: var(--text);
}

.nav-btn.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.logout-btn:hover { color: var(--red); }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
    margin: 4px 0;
    border: 2px solid var(--border-2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Content area ───────────────────────────────────── */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ─── Top bar ────────────────────────────────────────── */
.top-bar {
    height: var(--topbar-h);
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    flex-shrink: 0;
}

.guild-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-3);
    min-width: 180px;
    user-select: none;
    transition: border-color .15s;
}

.guild-selector:hover { border-color: var(--border-2); }

.guild-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    flex: 1;
}

.guild-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 4px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.guild-dropdown.open { display: block; }

.guild-option {
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .1s;
}

.guild-option:hover { background: var(--bg-4); }
.guild-option.active { background: var(--accent-dim); color: var(--accent); }

.guild-option-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--accent-dim);
    color: var(--accent);
    margin-left: auto;
}

.btn-new-guild {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.btn-new-guild:hover { color: var(--accent); }

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ─── Panels ─────────────────────────────────────────── */
.panels {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.panel {
    display: none;
    height: 100%;
    overflow: auto;
    padding: 20px;
}

.panel.active { display: flex; flex-direction: column; }

.panel-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.panel-placeholder span { font-size: 48px; opacity: 0.3; }
.panel-placeholder h2 { font-size: 18px; font-weight: 600; color: var(--text-dim); }
.panel-placeholder p { font-size: 13px; }

/* ─── Toasts ─────────────────────────────────────────── */
.toasts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    animation: slide-in .2s ease;
    pointer-events: all;
    max-width: 320px;
}

.toast.ok    { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red);   color: var(--red); }
.toast.warn  { border-color: var(--yellow); color: var(--yellow); }

@keyframes slide-in {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slide-out {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(20px); opacity: 0; }
}

.toast.out { animation: slide-out .2s ease forwards; }

/* ─── Utilities ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, transform .1s;
    cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6a59e0; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-3); color: var(--text); border-color: var(--border-2); }
.btn-danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.1); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.badge-leader  { background: rgba(251,191,36,.15); color: var(--yellow); }
.badge-officer { background: rgba(124,106,247,.15); color: var(--accent); }
.badge-member  { background: rgba(107,116,148,.15); color: var(--text-muted); }
.badge-beta    { background: rgba(74,222,128,.15);  color: var(--green); }
.badge-pro     { background: rgba(251,191,36,.15);  color: var(--yellow); }

.tag-tanque  { color: #60a5fa; }
.tag-dps     { color: #f87171; }
.tag-healer  { color: #4ade80; }
.tag-soporte { color: #fbbf24; }

/* ─── Builds layout ──────────────────────────────────── */
.builds-layout {
    display: flex;
    height: 100%;
    gap: 0;
    flex: 1;
}

.comps-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.comps-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-icon {
    width: 22px;
    height: 22px;
    border-radius: var(--radius);
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.btn-icon:hover { background: var(--accent); color: #fff; }

.comps-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.comps-group-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    padding: 8px 8px 4px;
    font-weight: 700;
}

.comp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    transition: background .1s;
}
.comp-item:hover { background: var(--bg-3); }
.comp-item.active { background: var(--accent-dim); color: var(--accent); }

.comp-role-count {
    font-size: 10px;
    color: var(--text-dim);
    background: var(--bg-4);
    padding: 1px 6px;
    border-radius: 10px;
}

.comps-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    padding: 20px 10px;
}

.comps-editor {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
}

.comp-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.comp-name-input {
    font-size: 18px;
    font-weight: 700;
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 8px;
    flex: 1;
    max-width: 400px;
}
.comp-name-input:hover { border-color: var(--border); }
.comp-name-input:focus { border-color: var(--accent); background: var(--bg-3); }

.comp-editor-actions { display: flex; gap: 8px; }

/* ─── Party tabs ─────────────────────────────────────── */
.party-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.party-tab {
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-3);
}
.party-tab:hover { color: var(--text); }
.party-tab.active { background: var(--accent-dim); color: var(--accent); }
.party-tab-add { color: var(--text-dim); background: transparent; border: 1px dashed var(--border-2); }

/* ─── Excel table ────────────────────────────────────── */
.excel-table-wrap {
    flex: 1;
    overflow: auto;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.excel-table th {
    text-align: left;
    padding: 8px 6px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-2);
    z-index: 1;
}

.excel-table td {
    padding: 4px 6px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.col-num { width: 28px; text-align: center; color: var(--text-dim); }
.col-nombre { min-width: 140px; }
.col-tipo { width: 100px; }
.col-slot { width: 52px; text-align: center; }
.col-acciones { width: 60px; }

.role-name-input, .role-tipo-select {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 6px;
    font-size: 12px;
}
.role-name-input:hover, .role-tipo-select:hover { border-color: var(--border); }
.role-name-input:focus, .role-tipo-select:focus { border-color: var(--accent); background: var(--bg-3); }
.role-tipo-select { font-weight: 600; cursor: pointer; }

.slot-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color .1s;
}
.slot-btn:hover { border-color: var(--accent); }
.slot-btn img { width: 100%; height: 100%; object-fit: contain; }
.slot-btn-empty { color: var(--text-dim); font-size: 16px; }

.btn-icon-sm {
    width: 22px;
    height: 22px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-sm:hover { background: var(--bg-4); color: var(--text); }
.btn-del-role:hover { color: var(--red); }

.btn-add-role {
    margin-top: 10px;
    width: 100%;
}

/* ─── Modales ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.modal-box {
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 380px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close-x:hover { background: var(--bg-4); color: var(--text); }

.modal-box h3 { font-size: 15px; margin-bottom: 14px; }

.modal-box.modal-wide { width: 480px; }

.modal-box.modal-item-search {
    width: 420px;
    height: 520px;
    padding: 20px;
}
.modal-box.modal-item-search h3 { flex-shrink: 0; }
.modal-box.modal-item-search #item-search-input { flex-shrink: 0; margin-bottom: 10px; }

.modal-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal-fields input { width: 100%; }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

#item-search-input {
    width: 100%;
    margin-bottom: 12px;
}

.item-search-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .1s;
}
.item-search-row:hover { background: var(--bg-3); }
.item-search-row img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.item-search-row span { font-size: 12px; color: var(--text); }

.item-search-empty, .item-search-loading {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    padding: 30px 20px;
}

/* ─── Ajustes panel ──────────────────────────────────── */
.ajustes-layout {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ajustes-title { font-size: 18px; font-weight: 700; }

.ajustes-section { display: flex; flex-direction: column; gap: 6px; }

.ajustes-label { font-size: 12px; font-weight: 600; color: var(--text); }

.ajustes-hint { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }

.ajustes-select {
    width: 100%;
    padding: 8px 10px;
}

/* ─── Eventos panel ──────────────────────────────────── */
.eventos-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
}

.eventos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eventos-header h2 { font-size: 18px; font-weight: 700; }

.eventos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.evento-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .1s, background .1s;
}
.evento-card:hover { border-color: var(--border-2); background: var(--bg-3); }

.evento-card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }

.evento-card-meta {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.evento-detalle-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.roster-view {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.roster-party-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 6px;
}

.roster-role-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.roster-role-name { font-weight: 600; }
.roster-role-players { color: var(--text-muted); text-align: right; }
.roster-role-players em { color: var(--text-dim); font-style: normal; }

textarea {
    resize: vertical;
    font-family: inherit;
}

/* ─── Tipo dot (arregla el problema de color en <select>) ── */
.tipo-select-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tipo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── Tablero integrado (detalle de evento) ──────────── */
.tablero-wrap {
    display: flex;
    height: 100%;
    gap: 12px;
}

.tablero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.tablero-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-volver { flex-shrink: 0; }

.tablero-header-info { flex: 1; min-width: 0; }
.tablero-header-info h2 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.tablero-header-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.vista-toggle {
    display: flex;
    background: var(--bg-3);
    border-radius: var(--radius);
    padding: 2px;
    flex-shrink: 0;
}
.vista-toggle-btn {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: calc(var(--radius) - 2px);
}
.vista-toggle-btn.active { background: var(--accent-dim); color: var(--accent); }

.tablero-board {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tablero-board-compacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    align-content: start;
}

.tablero-party-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 8px;
}

.tablero-role-row {
    display: grid;
    grid-template-columns: 10px 1fr 110px 160px auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    transition: background .1s;
}

.tablero-role-row.drag-over {
    background: var(--accent-dim);
    outline: 1px dashed var(--accent);
}

.tablero-role-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tablero-role-name { font-weight: 600; }

.tablero-equipo-row {
    display: flex;
    gap: 2px;
}

.tablero-equipo-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    background: var(--bg-3);
    border-radius: 3px;
}

.tablero-role-postulantes { font-size: 11px; color: var(--text-muted); }
.tablero-role-asignado { text-align: right; }
.tablero-role-asignado em { color: var(--text-dim); font-style: normal; font-size: 12px; }

.tablero-role-actions { display: flex; gap: 4px; align-items: center; }

/* ─── Fila compacta (2 parties de 20 en pantalla) ─────── */
.tablero-role-row-compacto {
    display: grid;
    grid-template-columns: 6px 1fr 90px 16px;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    line-height: 1.3;
    border-radius: 3px;
    transition: background .1s;
}
.tablero-role-row-compacto:hover { background: var(--bg-3); }
.tablero-role-row-compacto.drag-over { background: var(--accent-dim); outline: 1px dashed var(--accent); }
.tablero-role-name-compacto { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tablero-role-asignado-compacto { color: var(--text-muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-sm { padding: 4px 10px; font-size: 11px; }

/* ─── Sidebar de voz (a la derecha) ───────────────────── */
.voz-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    overflow: hidden;
    order: 2;
}

.tablero-main { order: 1; }

.sidebar-tabs {
    display: flex;
    gap: 6px;
}

.sidebar-tab-btn {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.sidebar-tab-btn.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent);
}

.sidebar-tab-count {
    font-size: 10px;
    background: var(--bg-4);
    padding: 0px 6px;
    border-radius: 10px;
    color: var(--text);
}
.sidebar-tab-btn.active .sidebar-tab-count { background: var(--accent); color: #fff; }

.voz-search {
    width: 100%;
    font-size: 12px;
}

.voz-members-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.voz-canal-group { margin-bottom: 8px; }

.voz-canal-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-dim);
    font-weight: 700;
    padding: 4px 6px 2px;
}

.voz-member-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: var(--radius);
    cursor: grab;
    font-size: 12px;
    transition: background .1s, opacity .1s;
    opacity: 0.6;
}
.voz-member-row.ubicado { opacity: 1; }
.voz-member-row:hover { background: var(--bg-3); }
.voz-member-row:active { cursor: grabbing; }

.voz-member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-4);
    flex-shrink: 0;
}

.voz-member-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: var(--accent);
}

.voz-member-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voz-member-check { color: var(--green); font-size: 12px; flex-shrink: 0; }

/* ─── Postulantes modal ──────────────────────────────── */
.postulantes-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.postulante-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-3);
    border-radius: var(--radius);
}

/* ─── Modal de crear evento: fecha rápida ─────────────── */
.fecha-quick-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.fecha-quick-row input[type="date"] { flex: 1; }
