/* ══════════════════════════════════════════════════════
   NEXUS — components.css
   Componentes reutilizables (fuentes IBM Plex Sans)
   ══════════════════════════════════════════════════════ */

/* 🔥 FORZAR IBM PLEX SANS EN TODOS LOS COMPONENTES */
.btn,
.btn-primary,
.btn-secondary,
.btn-comenzar,
.btn-cargar-carpeta-bienvenida,
.btn-cargar-header,
.btn-anadir-header,
.btn-dicom-header,
.btn-limpiar,
.btn-exportar,
.btn-sincronizar,
.btn-reset-clip,
.btn-split-dropdown button,
.file-format-badge,
.file-name-text,
.format-badge,
.slider-value,
.material-btn,
.measure-mode-btn,
.unit-btn,
.measurement-name,
.measurement-value,
.measurement-label,
.delete-btn,
.visibility-btn,
.instructions-title,
.instructions-text,
.angle-plane-label,
.angle-plane-value,
.name-modal h4,
.name-modal p,
.name-modal .result-preview,
.name-modal input[type="text"],
.name-modal .modal-btns button,
.collapsible-header h3,
.nx-mirror-lbl,
.nx-mirror-btn,
.sync-group-row,
.control-panel,
.measurement-panel {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

/* PESOS ESPECÍFICOS */
.btn,
.btn-primary,
.btn-secondary,
.btn-comenzar,
.btn-cargar-carpeta-bienvenida,
.btn-cargar-header,
.btn-anadir-header,
.btn-dicom-header,
.btn-limpiar,
.btn-exportar,
.btn-sincronizar,
.btn-reset-clip {
    font-weight: 500 !important;
}

.btn-split-dropdown button {
    font-weight: 400 !important;
}

.file-format-badge {
    font-weight: 700 !important;
}

.format-badge {
    font-weight: 600 !important;
}

.slider-value {
    font-weight: 600 !important;
}

.material-btn {
    font-weight: 500 !important;
}

.measure-mode-btn {
    font-weight: 500 !important;
}

.unit-btn {
    font-weight: 600 !important;
}

.measurement-name {
    font-weight: 600 !important;
}

.measurement-value {
    font-weight: 700 !important;
}

.measurement-label {
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delete-btn {
    font-weight: 400 !important;
}

.visibility-btn {
    font-weight: 500 !important;
}

.instructions-title {
    font-weight: 600 !important;
    text-transform: uppercase;
}

.instructions-text {
    font-weight: 400 !important;
}

.angle-plane-label {
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.angle-plane-value {
    font-weight: 700 !important;
}

.name-modal h4 {
    font-weight: 700 !important;
}

.name-modal p {
    font-weight: 400 !important;
}

.name-modal .result-preview {
    font-weight: 700 !important;
}

.name-modal input[type="text"] {
    font-weight: 400 !important;
}

.name-modal .modal-btns button {
    font-weight: 600 !important;
}

.collapsible-header h3 {
    font-weight: 600 !important;
}

.nx-mirror-lbl {
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nx-mirror-btn {
    font-weight: 400 !important;
}

.sync-group-row {
    font-weight: 400 !important;
}

/* CÓDIGO Y MONOESPACIADO */
.nx-mirror-btn {
    font-family: 'IBM Plex Mono', 'Courier New', monospace !important;
}

/* ── FIN FUENTES ── */

/* ══════════════════════════════════════════
   AVATARES — paleta pastel distinguible
══════════════════════════════════════════ */
.nx-avatar-c1 { background: var(--avatar-1) !important; color: var(--avatar-1-tx) !important; }
.nx-avatar-c2 { background: var(--avatar-2) !important; color: var(--avatar-2-tx) !important; }
.nx-avatar-c3 { background: var(--avatar-3) !important; color: var(--avatar-3-tx) !important; }
.nx-avatar-c4 { background: var(--avatar-4) !important; color: var(--avatar-4-tx) !important; }
.nx-avatar-c5 { background: var(--avatar-5) !important; color: var(--avatar-5-tx) !important; }
.nx-avatar-c6 { background: var(--avatar-6) !important; color: var(--avatar-6-tx) !important; }
.nx-avatar-c7 { background: var(--avatar-7) !important; color: var(--avatar-7-tx) !important; }
.nx-avatar-c8 { background: var(--avatar-8) !important; color: var(--avatar-8-tx) !important; }

/* ══════════════════════════════════════════
   CARBON DESIGN SYSTEM ICONS
══════════════════════════════════════════ */
.carbon-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: #FFFFFF;
}
.tool-btn .carbon-icon        { width: 16px; height: 16px; }
.btn .carbon-icon             { width: 14px; height: 14px; }
.tab-icon .carbon-icon        { width: 14px; height: 14px; }
.measure-icon .carbon-icon    { width: 20px; height: 20px; }
h3 .carbon-icon               { width: 14px; height: 14px; margin-right: 2px; }
.dicom-panel-title .carbon-icon,
.seg-panel-title .carbon-icon,
.planes-panel-title .carbon-icon,
.sh-title .carbon-icon        { width: 16px; height: 16px; }
.collapse-arrow .carbon-icon  { width: 12px; height: 12px; }

#platformOverlay .carbon-icon { fill: currentColor; }

/* ══════════════════════════════════════════
   BOTONES BASE
══════════════════════════════════════════ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #2C3749;
    color: #FFFFFF;
}
.btn-primary:hover { background: #3C96FE; transform: translateY(-2px); }

.btn-secondary {
    background: #1C202B;
    color: #FFFFFF;
}
.btn-secondary:hover { background: #2C3749; transform: translateY(-2px); }

/* ══════════════════════════════════════════
   BOTONES INDIVIDUALES
══════════════════════════════════════════ */
.btn-comenzar { background: #2C3749; color: #FFFFFF; }
.btn-comenzar:hover { background: #3C96FE; transform: translateY(-2px); }

.btn-cargar-carpeta-bienvenida { background: #2C3749; color: #FFFFFF; }
.btn-cargar-carpeta-bienvenida:hover { background: #3C96FE; transform: translateY(-2px); }

.btn-cargar-header { background: #2C3749; color: #FFFFFF; }
.btn-cargar-header:hover {
    background: #3C96FE;
    color: #fff;
    transform: translateY(-2px);
}

.btn-anadir-header { background: #2C3749; color: #FFFFFF; }
.btn-anadir-header:hover {
    background: #3C96FE;
    color: #fff;
    transform: translateY(-2px);
}

.btn-dicom-header { background: #2C3749; color: #FFFFFF; }
.btn-dicom-header:hover {
    background: #3C96FE;
    color: #fff;
    transform: translateY(-2px);
}

.btn-limpiar { background: #2C3749; color: #FFFFFF; }
.btn-limpiar:hover { background: #3C96FE; transform: translateY(-2px); }

.btn-exportar { background: #2C3749; color: #FFFFFF; }
.btn-exportar:hover { background: #3C96FE; transform: translateY(-2px); }

.btn-sincronizar { background: #2C3749; color: #FFFFFF; }
.btn-sincronizar:hover { background: #3C96FE; transform: translateY(-2px); }

.btn-reset-clip { background: #2C3749; color: #FFFFFF; }
.btn-reset-clip:hover { background: #3C96FE; transform: translateY(-2px); }

/* ══════════════════════════════════════════
   SPLIT BUTTON
══════════════════════════════════════════ */
.btn-split {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: visible;
    position: relative;
}
.btn-split .btn-split-main {
    border-radius: 8px 0 0 8px;
    border-right: none;
    padding: 10px 16px;
}
.btn-split .btn-split-arrow {
    width: 28px;
    border-radius: 0 8px 8px 0;
    border-left: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}
.btn-split .btn-split-arrow:hover {
    background: rgba(60, 150, 255, 0.15);
    color: #3C96FE;
}
.btn-split-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: rgba(28, 32, 43, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 500;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.btn-split-dropdown.open { display: block; }
.btn-split-dropdown button {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #96A1B2;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
    text-align: left;
    white-space: nowrap;
}
.btn-split-dropdown button:hover {
    background: rgba(60, 150, 255, 0.08);
    color: #3C96FE;
}

/* ══════════════════════════════════════════
   FILE INFO BADGE
══════════════════════════════════════════ */
.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(44, 55, 73, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.file-format-badge {
    background: rgba(60, 150, 255, 0.15);
    color: #3C96FE;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
}
.file-name-text {
    color: #96A1B2;
    font-size: 13px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════════════════
   WELCOME SCREEN
══════════════════════════════════════════ */
.welcome-screen {
    position: absolute;
    top:0; right:0; bottom:0; left:0;
    background: #1C202B;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.welcome-screen.hidden { display: none; }

.welcome-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}
.welcome-title {
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}
.welcome-title span {
    color: #3C96FE;
}
.welcome-subtitle {
    font-size: 18px;
    color: #96A1B2;
    margin-bottom: 32px;
}
.supported-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}
.format-badge {
    background: rgba(44, 55, 73, 0.5);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #96A1B2;
}

/* ══════════════════════════════════════════
   TOGGLE SWITCH
══════════════════════════════════════════ */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #2C3749;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #96A1B2;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}
input[type="checkbox"]:checked + .toggle-switch {
    background: #3C96FE;
    border-color: #3C96FE;
}
input[type="checkbox"]:checked + .toggle-switch::after {
    left: 26px;
    background: white;
}
input[type="checkbox"] { display: none; }

/* ══════════════════════════════════════════
   SLIDER
══════════════════════════════════════════ */
.slider-container { width: 100%; }

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #2C3749;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 8px 0;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3C96FE;
    cursor: pointer;
}
.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3C96FE;
    cursor: pointer;
    border: none;
}
.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #96A1B2;
    margin-bottom: 4px;
}
.slider-value {
    color: #3C96FE;
}

/* ══════════════════════════════════════════
   MATERIAL BUTTONS
══════════════════════════════════════════ */
.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.material-btn {
    padding: 12px;
    background: #2C3749;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #96A1B2;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.material-btn:hover { background: rgba(60, 150, 255, 0.08); border-color: #3C96FE; color: #FFFFFF; }
.material-btn.active { background: #3C96FE; color: white; border-color: transparent; }

/* ══════════════════════════════════════════
   COLOR SWATCHES
══════════════════════════════════════════ */
.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}
.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.color-swatch.active {
    border-color: #3C96FE;
    box-shadow: 0 0 0 3px rgba(60, 150, 255, 0.15);
}

/* ══════════════════════════════════════════
   MEASUREMENT PANEL
══════════════════════════════════════════ */
.measurement-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(28, 32, 43, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 50;
}
.measurement-panel.hidden { display: none; }

.measure-mode-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.measure-mode-btn {
    padding: 12px;
    background: #2C3749;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #96A1B2;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.measure-mode-btn:hover { background: rgba(60, 150, 255, 0.08); color: #FFFFFF; }
.measure-mode-btn.active { background: #3C96FE; color: white; border-color: transparent; }
.measure-icon { font-size: 20px; }

.unit-selector { display: flex; gap: 8px; margin-bottom: 20px; }
.unit-btn {
    flex: 1;
    padding: 10px;
    background: #2C3749;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #96A1B2;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}
.unit-btn:hover { background: rgba(60, 150, 255, 0.08); color: #FFFFFF; }
.unit-btn.active { background: #3C96FE; color: white; border-color: transparent; }

.measurement-list { max-height: 300px; overflow-y: auto; }

.measurement-item {
    background: rgba(44, 55, 73, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.measurement-name {
    font-size: 12px;
    color: #FFFFFF;
    margin-bottom: 2px;
}
.measurement-value {
    font-size: 18px;
    color: #3C96FE;
}
.measurement-label {
    font-size: 11px;
    color: #96A1B2;
}

.delete-btn {
    background: rgba(217, 92, 92, 0.15);
    color: #D95C5C;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}
.delete-btn:hover { background: rgba(217, 92, 92, 0.25); transform: scale(1.05); }

.visibility-btn {
    background: rgba(60, 150, 255, 0.15);
    color: #3C96FE;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.visibility-btn:hover { background: rgba(60, 150, 255, 0.25); transform: scale(1.05); }
.visibility-btn.hidden-measure {
    background: rgba(255,255,255,0.04);
    color: #96A1B2;
}
.visibility-btn.hidden-measure:hover { background: rgba(255,255,255,0.08); }
.visibility-btn .carbon-icon { width: 14px; height: 14px; fill: currentColor; }

.instructions {
    background: rgba(60, 150, 255, 0.06);
    border: 1px solid rgba(60, 150, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}
.instructions-title {
    font-size: 12px;
    color: #3C96FE;
    margin-bottom: 6px;
}
.instructions-text {
    font-size: 13px;
    color: #96A1B2;
    line-height: 1.5;
}

.angle-planes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.angle-plane-item {
    background: rgba(44, 55, 73, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
}
.angle-plane-label {
    font-size: 10px;
    color: #96A1B2;
}
.angle-plane-value {
    font-size: 13px;
    color: #3C96FE;
}

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.name-modal-overlay {
    position: fixed;
    top:0; right:0; bottom:0; left:0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.name-modal {
    background: #2C3749;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    min-width: 340px;
    box-shadow: var(--shadow-lg);
}
.name-modal h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #FFFFFF;
}
.name-modal p {
    font-size: 13px;
    color: #96A1B2;
    margin-bottom: 16px;
}
.name-modal .result-preview {
    font-size: 22px;
    color: #3C96FE;
    margin-bottom: 16px;
}
.name-modal input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(44, 55, 73, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.name-modal input[type="text"]:focus { border-color: #3C96FE; }
.name-modal .modal-btns { display: flex; gap: 10px; }
.name-modal .modal-btns button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.name-modal .modal-btns .btn-save {
    background: #3C96FE;
    color: white;
}
.name-modal .modal-btns .btn-cancel {
    background: #1C202B;
    color: #96A1B2;
    border: 1px solid var(--border-color);
}

/* ══════════════════════════════════════════
   COLLAPSIBLE SECTIONS
══════════════════════════════════════════ */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    margin-bottom: 0;
}
.collapsible-header h3 { margin-bottom: 0; }
.collapse-arrow {
    font-size: 11px;
    color: #96A1B2;
    transition: transform 0.25s;
    display: inline-block;
}
.collapsible-header.open .collapse-arrow { transform: rotate(180deg); }
.collapsible-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.2s;
    opacity: 0;
    margin-top: 0;
}
.collapsible-body.open { max-height: 1000px; opacity: 1; margin-top: 14px; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: rgba(28, 32, 43, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}
.toast.success { display: none !important; }
.toast.error   { border-color: #D95C5C; }
.toast.info    { border-color: #3C96FE; }

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

/* ══════════════════════════════════════════
   NX MIRROR BUTTONS
══════════════════════════════════════════ */
.nx-mirror-row {
    display: flex; gap: 8px; align-items: center;
    margin: 10px 0 4px; flex-wrap: wrap;
}
.nx-mirror-lbl {
    font-size: 10px;
    color: #6F7A8C;
    margin-right: 4px;
}
.nx-mirror-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(150,161,178,0.15);
    background: transparent; color: #96A1B2;
    font-size: 10px; cursor: pointer;
    transition: all .15s; user-select: none; white-space: nowrap;
}
.nx-mirror-btn:hover { border-color: rgba(60,150,255,0.3); color: #FFFFFF; }
.nx-mirror-btn.nx-active {
    background: rgba(60,150,255,0.12); border-color: #3C96FE; color: #3C96FE;
}
.nx-mirror-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   SYNC GROUP ROW
══════════════════════════════════════════ */
.sync-group-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(44, 55, 73, 0.3);
    margin-bottom: 8px;
    font-size: 12px;
    color: #96A1B2;
}
.sync-group-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sync-group-row input[type=checkbox] {
    width: 14px; height: 14px; accent-color: #3C96FE;
}

/* ══════════════════════════════════════════
   SCROLLBARS
══════════════════════════════════════════ */
.control-panel::-webkit-scrollbar,
.measurement-panel::-webkit-scrollbar,
.measurement-list::-webkit-scrollbar {
    width: 6px;
}
.control-panel::-webkit-scrollbar-track,
.measurement-panel::-webkit-scrollbar-track,
.measurement-list::-webkit-scrollbar-track {
    background: rgba(44, 55, 73, 0.3);
    border-radius: 3px;
}
.control-panel::-webkit-scrollbar-thumb,
.measurement-panel::-webkit-scrollbar-thumb,
.measurement-list::-webkit-scrollbar-thumb {
    background: #3C96FE;
    border-radius: 3px;
}

/* ══════════════════════════════════════════
   RESPONSIVE — COMPONENTES
══════════════════════════════════════════ */
@media (max-width: 640px) {
    .measurement-panel {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        top: 60px !important;
        max-height: calc(100vh - 80px);
    }
    .welcome-title    { font-size: 22px; }
    .welcome-subtitle { font-size: 13px; }
    .drop-zone-content { padding: 16px; }
    .supported-formats { gap: 6px; }
    .format-badge { padding: 4px 8px; font-size: 10px; }
}