/* ═══ components.css — Componentes base estilo shadcn/ui ═══ */

/* ============================================================
   KEYFRAMES MICRO (permitidos por Fase 10)
   ============================================================ */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes breathe {
    0%, 100% { border-color: var(--border); }
    50% { border-color: var(--border-hover); }
}
@keyframes borderGlow {
    0%,100% { border-color: var(--border); }
    50% { border-color: var(--border-focus); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes scanline {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* Legacy utilities (mantenidas por compatibilidad) */
.cursor { animation: blink 1s step-end infinite; color: var(--primary); }
.pulse-anim { animation: pulse 2s ease-in-out infinite; }
.loading i { animation: spin 1s linear infinite, pulse 1.5s ease-in-out infinite; }
.float-anim { animation: float 3s ease-in-out infinite; }
.highlight-ring { animation: borderGlow 1.5s ease-in-out infinite; }
.floating-icon { animation: float 1.5s ease-in-out infinite; }
.retro-scan::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

/* ============================================================
   VALIDATION
   ============================================================ */
.field-error {
    color: var(--destructive);
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
}
.field-invalid {
    border-color: var(--destructive) !important;
}

/* ============================================================
   BOTONES — shadcn style
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 36px;
    padding: 0 var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    color: var(--text-primary);
    background: var(--bg-muted);
    transition: background-color var(--transition-fast),
                color var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}
.btn:hover {
    background: var(--bg-hover);
}
.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}
.btn:disabled, .btn[disabled] {
    pointer-events: none;
    opacity: 0.5;
}

/* Variantes */
.btn-primary, .btn-claude {
    background: var(--primary);
    color: var(--primary-text);
    border-color: transparent;
}
.btn-primary:hover, .btn-claude:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-muted);
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--bg-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}
.btn-ghost:hover {
    background: var(--bg-muted);
}

.btn-destructive, .btn-red {
    background: var(--destructive);
    color: #fff;
    border-color: transparent;
}
.btn-destructive:hover, .btn-red:hover {
    background: var(--destructive-hover);
}

.btn-green {
    background: var(--success);
    color: #fff;
    border-color: transparent;
}
.btn-green:hover {
    background: #16a34a;
}

/* Tamaños */
.btn-sm { height: 32px; padding: 0 var(--space-3); font-size: var(--font-size-xs); }
.btn-lg { height: 40px; padding: 0 var(--space-6); font-size: var(--font-size-base); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-icon.btn-sm { width: 32px; height: 32px; }

/* ============================================================
   INPUTS — shadcn style
   ============================================================ */
.input, .input-field,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"],
input[type="url"], input[type="tel"], input[type="time"],
textarea, select {
    display: flex;
    width: 100%;
    height: 36px;
    padding: 0 var(--space-3);
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}
.input::placeholder, .input-field::placeholder,
input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}
.input:focus, .input-field:focus,
input:focus, textarea:focus, select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.2);
}
.input:disabled, .input-field:disabled,
input:disabled, textarea:disabled, select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

textarea, .textarea {
    min-height: 80px;
    height: auto;
    padding: var(--space-2) var(--space-3);
    resize: vertical;
    line-height: 1.5;
}

select, .select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-8);
    cursor: pointer;
}

/* Labels */
.label, label, .doc-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-2);
}

/* Checkbox / Radio */
input[type="checkbox"], input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ============================================================
   CARDS — shadcn style
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.card-description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.card-content {
    padding: var(--space-6);
}

.card-footer {
    display: flex;
    align-items: center;
    padding: var(--space-6);
    border-top: 1px solid var(--border);
    gap: var(--space-2);
}

/* Aliases legacy: .panel se comporta como .card */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
}
.panel-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    letter-spacing: -0.015em;
}
.panel-body {
    padding: var(--space-5);
}
.panel.active-panel { animation: breathe 4s ease-in-out infinite; }

/* KPI cards (legacy) */
.metric-card, .kpi-card, .project-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    transition: border-color var(--transition-fast),
                background-color var(--transition-fast);
}
.metric-card:hover, .kpi-card:hover, .project-kpi-card:hover {
    border-color: var(--border-hover);
}
.kpi-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.kpi-value {
    font-size: 1.45rem;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-mono);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.kpi-bar {
    height: 6px;
    background: var(--bg-muted);
    border-radius: var(--radius-full);
    margin-top: var(--space-1);
    display: flex;
    overflow: hidden;
}
.kpi-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    background: var(--primary);
}
.kpi-detail {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Fila Row 2 (docs) del panel de Proyectos: barras discretas.
   La visualización gráfica sigue presente pero atenuada. */
.proy-kpi-row2 .kpi-bar {
    height: 2px;
    border-radius: 1px;
    background: var(--border);
    margin-top: var(--space-1);
    opacity: 0.9;
}
.proy-kpi-row2 .kpi-bar-fill {
    height: 100%;
    border-radius: 1px;
    opacity: 0.55;
    transition: width var(--transition-slow);
}

/* ============================================================
   BADGES — shadcn style
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 var(--space-2);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
}
.badge-default {
    background: var(--bg-muted);
    color: var(--text-primary);
    border-color: var(--border);
}
.badge-success {
    background: var(--success-muted);
    color: var(--success);
}
.badge-warning {
    background: var(--warning-muted);
    color: var(--warning);
}
.badge-destructive {
    background: var(--destructive-muted);
    color: var(--destructive);
}
.badge-info {
    background: var(--info-muted);
    color: var(--info);
}
.badge-purple {
    background: var(--purple-muted);
    color: var(--purple);
}

/* ============================================================
   TABLAS — shadcn style
   ============================================================ */
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

thead {
    background: var(--bg-muted);
}

th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: var(--font-size-sm);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: var(--bg-muted);
}

/* ============================================================
   SEPARATOR
   ============================================================ */
.separator {
    height: 1px;
    background: var(--border);
    margin: var(--space-4) 0;
    border: none;
}
.separator-vertical {
    width: 1px;
    height: 100%;
    background: var(--border);
    margin: 0 var(--space-4);
}

/* ============================================================
   DROPDOWNS / POPOVERS
   ============================================================ */
.dropdown {
    position: absolute;
    z-index: 50;
    min-width: 192px;
    background: var(--bg-popover);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-1);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.dropdown-item:hover {
    background: var(--bg-muted);
}
.dropdown-separator {
    height: 1px;
    background: var(--border);
    margin: var(--space-1) 0;
}
.dropdown-label {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
}

/* ============================================================
   MODALES — shadcn style
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}
.modal {
    position: relative;
    width: 100%;
    max-width: 512px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
}
.modal-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
.modal-description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}
.modal-body {
    padding: var(--space-6);
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
}
.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.modal-close:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

/* ============================================================
   TOASTS (legacy)
   ============================================================ */
.toast {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    min-width: 280px;
    max-width: 420px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    z-index: 100;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--destructive); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--info); }

/* ============================================================
   LINKS
   ============================================================ */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--text-secondary);
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-success { color: var(--success); }
.text-destructive { color: var(--destructive); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

.bg-muted { background: var(--bg-muted); }
.bg-card  { background: var(--bg-card); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   SCROLLBARS
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-active);
}

/* ============================================================
   ICON COLORS (legacy compat)
   ============================================================ */
.icon-claude, .text-claude { color: var(--primary); }
.icon-green { color: var(--success); }
.icon-red { color: var(--destructive); }
.icon-yellow { color: var(--warning); }
.icon-blue { color: var(--info); }
.icon-purple { color: var(--purple); }

/* ============================================================
   COMENTARIOS DE REVISIÓN  (Fase Aconex B)
   Panel flotante dentro del rev-modal, anclado a la última revisión.
   ============================================================ */

/* El rev-modal puede crecer por el panel de comentarios — limitar
   altura del box y permitir scroll interno para que se centre bien.
   Forzamos overlay 100vh para corregir un bug donde alguna regla heredada
   le da altura completa del documento (>>viewport) y descentra el modal. */
#rev-modal {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto;
}
#rev-modal .doc-modal-box {
    max-height: 90vh;
    overflow-y: auto;
}

.rev-comments {
    margin-top: 18px;
    padding: 12px;
    background: rgba(108, 172, 222, 0.04);
    border: 1px solid rgba(108, 172, 222, 0.18);
    border-radius: 6px;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rev-comments > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: var(--text2);
    font-family: var(--mono, monospace);
    letter-spacing: 0.3px;
}
.rev-comments > header i { color: var(--info, #6cacde); margin-right: 5px; }
#rev-com-count { color: var(--text3); font-size: 0.68rem; }

#rev-com-list {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}
.rev-com-empty {
    text-align: center;
    color: var(--text3);
    font-size: 0.7rem;
    padding: 12px 8px;
    line-height: 1.5;
}
.rev-com-empty i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 6px;
    opacity: 0.4;
}

.rev-com__item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 7px 9px;
    transition: border-color 0.18s;
}
.rev-com__item.is-resolved {
    opacity: 0.6;
    background: rgba(126, 198, 153, 0.04);
    border-color: rgba(126, 198, 153, 0.2);
}
.rev-com__item.is-resolved .rev-com__texto {
    text-decoration: line-through;
    color: var(--text3);
}
.rev-com__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.66rem;
    margin-bottom: 4px;
}
.rev-com__autor {
    font-weight: 600;
    color: var(--text);
    font-family: var(--mono);
}
.rev-com__fecha {
    color: var(--text3);
    font-size: 0.62rem;
    flex: 1;
}
.rev-com__actions {
    display: flex;
    gap: 4px;
}
.rev-com__btn {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    padding: 2px 5px;
    font-size: 0.7rem;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}
.rev-com__btn:hover {
    color: var(--claude, #d4a574);
    background: rgba(212, 165, 116, 0.08);
}
.rev-com__texto {
    font-size: 0.78rem;
    color: var(--text);
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}
.rev-com__mentions {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.rev-com__mention {
    font-size: 0.6rem;
    background: rgba(108, 172, 222, 0.1);
    color: var(--info, #6cacde);
    padding: 1px 6px;
    border-radius: 3px;
    font-family: var(--mono);
}

#rev-com-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}
#rev-com-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.78rem;
    font-family: inherit;
    resize: vertical;
    min-height: 44px;
}
#rev-com-form textarea:focus {
    outline: none;
    border-color: var(--claude, #d4a574);
}
#rev-com-form button {
    align-self: flex-end;
    font-size: 0.7rem;
    padding: 4px 12px;
}

#rev-com-mention-dd {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg2, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 4px;
}
.rev-com-mention__item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    text-align: left;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.74rem;
    transition: background 0.15s;
}
.rev-com-mention__item:hover {
    background: rgba(212, 165, 116, 0.08);
}
.rev-com-mention__item i { color: var(--text3); font-size: 0.7rem; }
.rev-com-mention__cargo {
    margin-left: auto;
    color: var(--text3);
    font-size: 0.62rem;
}

/* Badge "comentarios sin resolver" en doc-card (Mejora Aconex B2) */
.doc-com-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    padding: 2px 7px;
    border-radius: var(--r-pill, 10px);
    background: rgba(108, 172, 222, 0.13);
    color: var(--info, #6cacde);
    border: 1px solid rgba(108, 172, 222, 0.3);
    font-family: var(--mono);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.doc-com-badge:hover {
    background: rgba(108, 172, 222, 0.22);
    border-color: rgba(108, 172, 222, 0.5);
}
.doc-com-badge i { font-size: 0.62rem; }

/* Widget "Mis menciones" en homepage (Mejora Aconex B2) */
.mis-menciones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
}
.mis-menciones__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.mis-menciones__item:hover {
    background: rgba(108, 172, 222, 0.05);
    border-color: rgba(108, 172, 222, 0.2);
}
.mis-menciones__item.is-resolved {
    opacity: 0.55;
}
.mis-menciones__head {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.66rem;
    color: var(--text3);
}
.mis-menciones__autor {
    font-weight: 600;
    color: var(--text);
    font-family: var(--mono);
}
.mis-menciones__doc {
    flex: 1;
    color: var(--info, #6cacde);
    font-family: var(--mono);
    font-size: 0.62rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mis-menciones__btn-resolver {
    background: none;
    border: 1px solid rgba(126, 198, 153, 0.3);
    color: var(--success, #7ec699);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--mono);
}
.mis-menciones__btn-resolver:hover {
    background: rgba(126, 198, 153, 0.1);
}
.mis-menciones__texto {
    font-size: 0.74rem;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.mis-menciones__empty {
    text-align: center;
    color: var(--text3);
    font-size: 0.7rem;
    padding: 16px 8px;
}

/* (Removed: estilos `.board-*` del antiguo Kanban — reemplazados por
    css/canvas.css cuando sec-tablero pasó a ser sec-lienzo.) */

/* Selector de revision en panel de comentarios (Mejora Aconex B2 #4) */
#rev-com-rev-select {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.66rem;
    font-family: var(--mono);
    cursor: pointer;
}
