﻿/* Reset general y tipografÃƒÆ’Ã‚Â­a */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #071b34;           /* Azul base del escenario */
    --panel-bg: #132b4d;          /* Azul de panel oscuro */
    --card-bg: #334155;           /* Azul pizarra medio */
    --card-hover: #475569;        /* Azul pizarra claro para hover */
    --surface-light: #eef3fb;
    --surface-light-2: #e4ecf7;
    --surface-white: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(48, 82, 131, 0.22);
    --ink-dark: #142848;
    --ink-muted: #5c7292;
    --header-deep: #0b2342;
    --header-border: rgba(90, 147, 224, 0.18);
    
    --primary: #3b82f6;           /* Azul tÃƒÆ’Ã‚Â©cnico */
    --primary-hover: #2563eb;     /* Azul hover */
    --success: #10b981;           /* Verde tÃƒÆ’Ã‚Â©cnico (correcto) */
    --error: #ef4444;             /* Rojo tÃƒÆ’Ã‚Â©cnico (incompatible) */
    --warning: #f59e0b;           /* Naranja advertencia */
    
    --text-main: #f8fafc;         /* Blanco roto */
    --text-muted: #94a3b8;        /* Gris azulado */
    --border-color: #475569;      /* Borde gris pizarra */
    --accent: #06b6d4;            /* Cian para resaltar sockets/slots */
    --cabinet-border: #475569;    /* Borde del gabinete */
    --cabinet-bg: #0b1329;        /* Fondo interior del gabinete */
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background:
        radial-gradient(circle at top, rgba(34, 102, 191, 0.18), transparent 28%),
        linear-gradient(180deg, #0a2446 0%, var(--bg-color) 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow: hidden; /* Evita scrolls de pÃƒÆ’Ã‚Â¡gina completos en notebooks escolares */
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-grid {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100vw;
    height: 100vh;
    padding: 0.65rem;
    gap: 0.65rem;
    max-width: 1600px;
    max-height: 900px;
}

/* Encabezado superior */
.app-header {
    background:
        linear-gradient(180deg, rgba(12, 41, 78, 0.98), rgba(9, 31, 60, 0.98));
    border: 1px solid var(--header-border);
    border-radius: 14px;
    padding: 0.28rem 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 18px 34px rgba(2, 9, 22, 0.22);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.institution-logo {
    width: 50px;
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(2, 6, 23, 0.25));
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.header-kicker {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.header-titles {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "product title"
        "product subtitle";
    column-gap: 0.45rem;
    row-gap: 0.02rem;
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 820px;
    align-items: center;
}

.header-product {
    grid-area: product;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.85px;
    color: #7ec6ff;
    align-self: center;
    line-height: 1;
}

.main-title {
    grid-area: title;
    font-size: clamp(0.98rem, 1.55vw, 1.25rem);
    line-height: 0.94;
    font-weight: 800;
    color: #ffffff;
}

.subtitle {
    grid-area: subtitle;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.05;
    color: rgba(233, 241, 255, 0.92);
}

.school-name {
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(223, 234, 249, 0.88);
}

/* Contenido Principal: 3 Columnas */
.app-content {
    display: grid;
    grid-template-columns: 298px minmax(0, 1.24fr) 310px;
    gap: 0.75rem;
    min-height: 0; /* Permite scroll interno de flex en lugar de estirar el grid */
}

/* Paneles base */
.panel-left, .panel-center, .panel-right {
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-left,
.panel-right {
    background:
        linear-gradient(180deg, var(--surface-light) 0%, var(--surface-light-2) 100%);
    border: 1px solid var(--surface-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 12px 28px rgba(8, 29, 58, 0.12);
    color: var(--ink-dark);
}

.panel-center {
    background:
        linear-gradient(180deg, rgba(17, 42, 76, 0.98), rgba(10, 28, 55, 0.98));
    border: 1px solid rgba(106, 149, 209, 0.16);
    box-shadow: 0 16px 34px rgba(2, 9, 22, 0.18);
}

.panel-left h2, .panel-center h2, .panel-right h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.4rem;
    flex-shrink: 0;
}

.panel-left h2,
.panel-right h2 {
    color: var(--ink-dark);
    border-bottom-color: rgba(58, 91, 138, 0.16);
}

.panel-center h2 {
    color: #f6fbff;
    border-bottom-color: rgba(120, 167, 231, 0.18);
}

/* Panel izquierdo: Lista de Componentes */
.panel-left {
    overflow: hidden;
    min-height: 0;
    gap: 0.7rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.components-panel-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.1rem 0;
    flex: 0 0 auto;
}

.component-search-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.component-search-input {
    width: 100%;
    border: 1px solid rgba(53, 90, 142, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-dark);
    padding: 0.68rem 0.8rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(14, 34, 61, 0.04);
}

.component-search-input::placeholder {
    color: #6980a1;
}

.component-search-input:focus {
    outline: none;
    border-color: rgba(52, 121, 214, 0.42);
    box-shadow: 0 0 0 3px rgba(52, 121, 214, 0.14);
}

.component-search-hint {
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--ink-muted);
}

.component-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    padding-right: 0.2rem;
    scrollbar-gutter: stable;
}

.accordion-group {
    border: 1px solid rgba(55, 89, 138, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 10px 18px rgba(13, 34, 64, 0.06);
}

.accordion-group[hidden] {
    display: none;
}

.accordion-toggle {
    width: 100%;
    border: 0;
    background:
        linear-gradient(180deg, rgba(36, 87, 164, 0.12), rgba(36, 87, 164, 0.04));
    color: var(--ink-dark);
    padding: 0.72rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.accordion-toggle:hover {
    background:
        linear-gradient(180deg, rgba(36, 87, 164, 0.18), rgba(36, 87, 164, 0.08));
}

.accordion-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.accordion-indicator {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.accordion-group.accordion-open .accordion-indicator {
    transform: rotate(90deg);
}

.accordion-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--ink-dark);
}

.accordion-count {
    flex-shrink: 0;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 87, 164, 0.16);
    background-color: rgba(255, 255, 255, 0.82);
    color: #1f4f95;
    font-size: 0.73rem;
    font-weight: 700;
}

.accordion-content {
    display: none;
    padding: 0.35rem 0.55rem 0.6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(246, 249, 254, 0.88));
}

.accordion-group.accordion-open .accordion-content {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.components-empty {
    border: 1px dashed rgba(55, 89, 138, 0.26);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--ink-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    padding: 1rem 0.75rem;
}

.component-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(63, 102, 157, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0.62rem;
    font-size: 0.82rem;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 4px 12px rgba(9, 30, 57, 0.05);
}

.component-card-body {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
}

.component-card:not(.has-card-image) .component-card-body {
    grid-template-columns: minmax(0, 1fr);
}

.component-card-copy {
    min-width: 0;
}

.component-card-visual {
    display: none;
    width: 72px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(228, 236, 247, 0.78), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(59, 96, 147, 0.12);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.component-card.has-card-image .component-card-visual {
    display: flex;
}

.component-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.component-card:hover {
    background-color: #ffffff;
    border-color: rgba(52, 121, 214, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(16, 43, 82, 0.1);
}

.component-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-dark);
    margin-bottom: 0.16rem;
}

.component-desc {
    font-size: 0.71rem;
    color: var(--ink-muted);
    line-height: 1.28;
    margin-bottom: 0.34rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.component-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
    margin-top: 0.12rem;
}

.spec-tag {
    font-size: 0.63rem;
    background-color: rgba(36, 87, 164, 0.08);
    border: 1px solid rgba(59, 96, 147, 0.14);
    border-radius: 999px;
    padding: 0.14rem 0.34rem;
    color: #44658d;
    display: inline-block;
}

.spec-tag strong {
    color: var(--ink-dark);
}

/* SelecciÃƒÆ’Ã‚Â³n de tarjeta de componente */
.component-card.selected-card {
    border-color: rgba(32, 106, 204, 0.42);
    background-color: rgba(230, 241, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(52, 121, 214, 0.12);
}

/* Ficha tecnica detallada */
.spec-details {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem;
    font-size: 0.85rem;
    height: 100%;
    color: var(--ink-dark);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
}

.spec-details-enhanced {
    gap: 0.7rem;
}

.tech-header-block {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.tech-title {
    color: #1a4d91;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(58, 91, 138, 0.16);
    padding-bottom: 0.25rem;
}

.tech-category {
    font-size: 0.72rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.tech-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--ink-dark);
}

.tech-card-section,
.tech-note-box {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(58, 91, 138, 0.12);
    border-radius: 8px;
    padding: 0.58rem 0.65rem;
}

.tech-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1a4d91;
    margin-bottom: 0.35rem;
}

.tech-data-list {
    display: grid;
    gap: 0.3rem;
}

.tech-data-row {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 0.45rem;
    align-items: start;
    font-size: 0.77rem;
    line-height: 1.28;
    padding-bottom: 0.28rem;
    border-bottom: 1px dashed rgba(58, 91, 138, 0.12);
}

.tech-data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tech-data-row dt {
    font-weight: 800;
    color: #36557f;
}

.tech-data-row dd {
    margin: 0;
    color: #1d3557;
}

.tech-compatibility-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    padding-left: 0;
}

.tech-compatibility-item {
    font-size: 0.75rem;
    line-height: 1.35;
    border-radius: 7px;
    padding: 0.42rem 0.48rem;
    border: 1px solid rgba(58, 91, 138, 0.12);
    background: rgba(248, 250, 252, 0.92);
}

.tech-compatibility-ok {
    border-left: 3px solid rgba(16, 185, 129, 0.72);
    color: #0e7a53;
}

.tech-compatibility-info {
    border-left: 3px solid rgba(59, 130, 246, 0.72);
    color: #1d4f91;
}

.tech-compatibility-warn {
    border-left: 3px solid rgba(245, 158, 11, 0.72);
    color: #9a6700;
}

.tech-compatibility-error {
    border-left: 3px solid rgba(239, 68, 68, 0.72);
    color: #a11d33;
}

.tech-note-text {
    font-size: 0.75rem;
    line-height: 1.38;
    color: #314866;
}

@media (max-width: 768px) {
    .tech-data-row {
        grid-template-columns: 1fr;
        gap: 0.12rem;
    }
}
/* Zona Central: Gabinete Abierto */
.panel-center {
    flex-grow: 1;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    padding: 0.75rem 0.8rem;
}

.cabinet-schematic {
    flex-grow: 1;
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.02)),
        linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(11, 19, 41, 0.2));
    border: 1px solid rgba(71, 85, 105, 0.45);
    border-radius: 12px;
    padding: 0.65rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.04);
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

/* Zonas de Drop (Placeholders) */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    background-color: rgba(30, 41, 59, 0.3);
    transition: all 0.25s ease;
    min-width: 0;
    min-height: 62px;
}

.drop-zone:hover {
    border-color: var(--accent);
    background-color: rgba(6, 182, 212, 0.05);
}

.drop-zone.drag-over {
    border-color: var(--accent);
    background-color: rgba(6, 182, 212, 0.15);
    border-style: solid;
}

.drop-zone.installed {
    border-style: solid;
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--text-main);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.2);
}

.component-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.zone-label {
    position: absolute;
    pointer-events: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background-color: rgba(11, 19, 41, 0.8);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    z-index: 2;
    white-space: nowrap;
}

/* Posicionamiento en el gabinete (EsquemÃƒÆ’Ã‚Â¡tico de PC) */
.zone-motherboard {
    width: 100%;
    display: grid;
    grid-template-areas:
        "cpu ram"
        "m2 ram"
        "pci pci";
    grid-template-columns: minmax(0, 1.75fr) minmax(160px, 0.9fr);
    grid-template-rows: minmax(120px, 1.15fr) minmax(72px, 0.5fr) minmax(82px, 0.72fr);
    gap: 0.75rem;
    padding: 1.7rem 1rem 0.95rem;
    align-self: stretch;
    justify-self: stretch;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92)),
        linear-gradient(0deg, rgba(6, 182, 212, 0.03), rgba(6, 182, 212, 0.03));
    box-shadow:
        inset 0 0 0 1px rgba(6, 182, 212, 0.08),
        inset 0 18px 36px rgba(15, 23, 42, 0.18);
    min-height: 0;
    height: 100%;
}

.zone-motherboard > .zone-label {
    top: -10px;
    left: 18px;
    background-color: #0d1e3d;
    border-color: var(--accent);
    color: var(--accent);
}

.zone-cpu {
    grid-area: cpu;
    border-style: solid;
    border-color: #475569;
    min-height: 120px;
    background:
        radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.14), transparent 58%),
        rgba(15, 23, 42, 0.42);
}

.zone-cpu > .zone-label {
    color: var(--text-main);
    top: 0.45rem;
    left: 0.55rem;
}

.zone-ram-slots {
    grid-area: ram;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.15rem;
    align-self: stretch;
}

.zone-ram {
    min-height: 76px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.1rem 0.55rem 0.45rem;
}

.zone-ram > .zone-label {
    top: 0.4rem;
    left: 0.45rem;
    writing-mode: initial;
    transform: none;
    font-size: 0.68rem;
}

.zone-m2 {
    grid-area: m2;
    min-height: 72px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.95rem 0.7rem 0.45rem;
}

.zone-m2 > .zone-label {
    top: 0.35rem;
    left: 0.5rem;
}

.zone-pci {
    grid-area: pci;
    min-height: 82px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem 0.75rem 0.5rem;
}

.zone-pci > .zone-label {
    top: 0.4rem;
    left: 0.55rem;
}

/* ÃƒÆ’Ã‚Ârea inferior del Gabinete (Fuente y discos SATA) */
.cabinet-bottom-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 0.75rem;
    min-height: 94px;
    flex-shrink: 0;
}

.zone-sata {
    min-height: 84px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem 0.75rem 0.45rem;
}

.zone-sata > .zone-label {
    top: 0.45rem;
    left: 0.55rem;
}

.zone-power {
    min-height: 84px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem 0.75rem 0.45rem;
}

.zone-power > .zone-label {
    top: 0.45rem;
    left: 0.55rem;
}

/* Zona del gabinete: capa exterior visible */
.zone-case {
    border: 3px solid var(--cabinet-border);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.05)),
        var(--cabinet-bg);
    padding: 0.9rem;
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(84px, auto);
    gap: 0.75rem;
    flex-grow: 1;
    position: relative;
    min-height: 0;
    height: 100%;
    width: 100%;
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.05),
        0 12px 28px rgba(2, 6, 23, 0.24);
    overflow: hidden;
}

.zone-case > .zone-label {
    top: -10px;
    left: 14px;
    background-color: #0b1329;
    border-color: var(--border-color);
    color: var(--ink-muted);
    font-size: 0.7rem;
}

.zone-case.installed {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.06);
    box-shadow: none;
}

.zone-case.installed > .zone-label {
    border-color: var(--success);
    color: var(--success);
}

/* Panel derecho: Mensajes, Ficha, Estado */
.panel-right {
    gap: 0.75rem;
    overflow-y: auto;
}

.panel-right .message-box,
.panel-right .spec-placeholder,
.panel-right .status-list,
.panel-right .spec-details {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(58, 91, 138, 0.16);
    box-shadow: 0 10px 22px rgba(12, 35, 66, 0.06);
}

.info-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.section-messages {
    flex: 1.2;
}

.section-spec {
    flex: 1.2;
}

.section-status {
    flex: 1.5;
}

/* Estilos de caja de mensajes */
.message-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.85rem;
    height: 100%;
    overflow-y: auto;
}

.message-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #285ea8;
}

.message-text {
    color: var(--ink-dark);
    line-height: 1.4;
}

.message-info {
    border-left-color: var(--primary);
}

.message-success {
    border-left-color: var(--success);
}

.message-error {
    border-left-color: var(--error);
}

.message-warning {
    border-left-color: var(--warning);
}

/* Ficha tÃƒÆ’Ã‚Â©cnica */
.spec-placeholder {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ink-muted);
}

/* Lista de estado */
.status-list {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.65rem 0.8rem;
    list-style: none;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    height: 100%;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    padding: 0.2rem 0;
}

.status-item::before {
    content: none;
}

.status-item-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-item-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.status-indicator {
    font-size: 1rem;
    line-height: 1;
    color: var(--text-muted);
    flex: 0 0 auto;
}

.status-item-label {
    font-weight: 700;
    color: var(--ink-dark);
}

.status-item-state {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    background: rgba(148, 163, 184, 0.16);
    color: var(--ink-muted);
}

.status-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-left: 1.6rem;
}

.status-detail-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(58, 91, 138, 0.12);
    border-radius: 8px;
    padding: 0.42rem 0.5rem;
}

.status-detail-copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.status-detail-name {
    font-weight: 700;
    color: var(--ink-dark);
}

.status-detail-meta {
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.status-item-empty {
    padding-left: 1.6rem;
    font-size: 0.74rem;
    color: var(--ink-muted);
}

.status-remove-btn,
.build-remove-btn {
    border: 1px solid rgba(180, 59, 77, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #9f2438;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.26rem 0.58rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex: 0 0 auto;
}

.status-remove-btn:hover,
.build-remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(180, 59, 77, 0.32);
    color: #841b2e;
}

.status-remove-btn:focus-visible,
.build-remove-btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
}

.status-todo {
    color: var(--text-muted);
}

.status-done .status-indicator,
.status-done .status-item-label {
    color: var(--success);
}

.status-done .status-item-state {
    background: rgba(16, 185, 129, 0.14);
    color: #0e7a53;
}

.app-footer {
    background:
        linear-gradient(180deg, rgba(12, 41, 78, 0.98), rgba(9, 31, 60, 0.98));
    border: 1px solid var(--header-border);
    border-radius: 14px;
    padding: 0.58rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    box-shadow: 0 18px 34px rgba(2, 9, 22, 0.18);
}

.action-buttons, .mode-buttons {
    display: flex;
    gap: 0.65rem;
}

.btn {
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.58rem 1rem;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 18px rgba(4, 18, 39, 0.14);
}

.btn-primary {
    background: linear-gradient(180deg, #2f78df, #1f5cb5);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #3b85ed, #2465c4);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background: linear-gradient(180deg, #6f59c9, #5440aa);
    border-color: rgba(172, 159, 240, 0.24);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(180deg, #7d67d8, #5f4ab9);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(7, 28, 54, 0.45);
    border-color: rgba(124, 171, 235, 0.2);
    color: rgba(229, 238, 250, 0.86);
}

.btn-secondary:hover {
    background: rgba(14, 43, 80, 0.76);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary.active {
    border-color: rgba(126, 198, 255, 0.42);
    color: #7ec6ff;
    background: rgba(21, 61, 110, 0.78);
}

.btn-report {
    background: linear-gradient(180deg, rgba(10, 40, 77, 0.92), rgba(8, 28, 54, 0.92));
    border-color: rgba(138, 180, 242, 0.24);
    color: #f7fbff;
}

.btn-report:hover {
    background: linear-gradient(180deg, rgba(16, 54, 100, 0.96), rgba(10, 38, 72, 0.96));
}

.build-report-print-view {
    position: fixed;
    inset: 0;
    z-index: 8800;
    padding: 1rem;
    overflow: auto;
    background: rgba(7, 17, 31, 0.74);
}

.build-report-print-view[hidden] {
    display: none !important;
}

.build-report-print-view.is-visible {
    display: block;
}

body.is-report-preview-open {
    overflow: hidden;
}

.build-report-preview-shell {
    max-width: 1180px;
    margin: 0 auto;
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    background: #eef4fb;
    border: 1px solid #cddced;
    border-radius: 20px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.build-report-preview-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #d6e1ef;
    background: rgba(248, 251, 255, 0.96);
    backdrop-filter: blur(12px);
}

.build-report-preview-title {
    margin: 0;
    font-size: 1.12rem;
    color: #123662;
}

.build-report-preview-copy {
    margin: 0.2rem 0 0;
    color: #425d78;
    line-height: 1.45;
}

.build-report-preview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
}

.build-report-preview-close {
    background: #edf3f9;
    color: #17314f;
    border: 1px solid #c7d7ea;
}

.build-report-preview-close:hover:not(:disabled) {
    background: #e1ebf6;
}

.build-report-preview-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 1.1rem;
}

body.is-printing-report .build-report-print-view,
body.is-printing-report .build-report-print-view[hidden] {
    display: block !important;
    padding: 0;
    background: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.is-printing-report .build-report-preview-shell {
    min-height: auto;
    border-radius: 0;
    border-color: transparent;
    box-shadow: none;
    background: #ffffff;
}

body.is-printing-report .build-report-preview-header,
body.is-printing-report .build-report-preview-actions {
    display: none !important;
}

body.is-printing-report #build-report-print-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.verification-result-modal {
    background-color: rgba(6, 14, 28, 0.78);
}

.verification-result-box {
    background: #f8fbff;
    color: #10213f;
    border: 1px solid #d6e3f3;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    max-width: 520px;
}

.verification-result-title {
    color: #163a68;
}

.verification-result-modal.verification-result-success .verification-result-box {
    border-color: rgba(24, 137, 86, 0.45);
    background: linear-gradient(180deg, #f8fffb, #edf8f2);
}

.verification-result-modal.verification-result-success .verification-result-title {
    color: #0f5132;
}

.verification-result-modal.verification-result-warning .verification-result-box {
    border-color: rgba(214, 132, 29, 0.5);
    background: linear-gradient(180deg, #fffaf2, #fff3df);
}

.verification-result-modal.verification-result-warning .verification-result-title {
    color: #8a4b08;
}

.verification-result-modal.verification-result-error .verification-result-box {
    border-color: rgba(196, 52, 52, 0.45);
    background: linear-gradient(180deg, #fff8f8, #ffeceb);
}

.verification-result-modal.verification-result-error .verification-result-title {
    color: #b42318;
}

.verification-result-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.verification-result-message {
    margin: 0;
    line-height: 1.5;
    color: #1c2e46;
}

.verification-result-list {
    margin: 0;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    color: #1c2e46;
}

.verification-result-list li::marker {
    color: #426b9c;
}

.verification-result-box .btn-primary {
    align-self: flex-end;
}

.verification-result-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.verification-result-report {
    min-width: 12.5rem;
}

.verification-result-close {
    min-width: 7.5rem;
}

.build-report-print-content {
    max-width: 1120px;
    margin: 0 auto;
    background: #ffffff;
    color: #142235;
}

.report-page {
    padding: 1.1cm 1cm 1.2cm;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 2px solid #d3e1f1;
    padding-bottom: 0.8rem;
}

.report-brand {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.report-brand-copy {
    min-width: 0;
}

.report-logo {
    width: 64px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.report-school {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4f91;
}

.report-title {
    margin: 0.15rem 0 0;
    font-size: 1.5rem;
    line-height: 1.1;
    color: #11263f;
}

.report-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: #51667d;
}

.report-meta {
    min-width: 210px;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d6e1ec;
    border-radius: 14px;
    background: #f5f8fc;
}

.report-meta-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #456485;
}

.report-meta-value {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #17314f;
}

.report-grid,
.report-grid-2,
.report-grid-3 {
    display: grid;
    gap: 0.9rem;
}

.report-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-card {
    border: 1px solid #d8e3ef;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.9rem 1rem;
    break-inside: avoid;
}

.report-section-title {
    margin: 0 0 0.72rem;
    font-size: 1rem;
    color: #133a69;
}

.report-mini-title {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b6680;
}

.report-data-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.report-data-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.65rem;
    align-items: start;
}

.report-data-row dt {
    margin: 0;
    font-weight: 700;
    color: #244664;
}

.report-data-row dd {
    margin: 0;
    color: #24374a;
}

.report-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.report-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #edf4fb;
    border: 1px solid #d2e2f2;
    color: #244664;
    font-size: 0.8rem;
    font-weight: 700;
}

.report-pill-muted {
    background: #f5f7fa;
    border-color: #e0e6ee;
    color: #617181;
}

.report-history-list {
    display: grid;
    gap: 0.55rem;
}

.report-history-entry {
    border-left: 3px solid #d3e1ef;
    padding-left: 0.7rem;
}

.report-history-top {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
}

.report-history-time,
.report-history-badge {
    font-size: 0.74rem;
    font-weight: 800;
    color: #4d647b;
    text-transform: uppercase;
}

.report-history-message,
.report-history-detail,
.report-observation {
    margin: 0.2rem 0 0;
    color: #27384a;
    line-height: 1.45;
}

.report-history-entry.report-history-correct { border-left-color: #2c9a71; }
.report-history-entry.report-history-incorrect { border-left-color: #d46a55; }
.report-history-entry.report-history-removed { border-left-color: #7c6aa9; }
.report-history-entry.report-history-replaced { border-left-color: #2c73b6; }
.report-history-entry.report-history-system { border-left-color: #8b9caf; }

.report-eval-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.report-metric {
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.7rem 0.8rem;
}

.report-metric-label {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #57718b;
}

.report-metric-value {
    margin: 0.18rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #17314f;
}

.report-build-visual {
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #f9fbfd, #eef4fa);
    padding: 0.85rem;
}

.report-mounted-scene {
    position: relative;
    width: 100%;
    aspect-ratio: 11 / 8;
    max-width: 760px;
    margin: 0 auto;
}

.report-mounted-base,
.report-mounted-layer-system,
.report-mounted-layer,
.report-mounted-layer img {
    position: absolute;
    inset: 0;
}

.report-mounted-base,
.report-mounted-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.report-mounted-layer[data-layer-role="motherboard"] { z-index: 2; }
.report-mounted-layer[data-layer-role="cpu"] { z-index: 3; }
.report-mounted-layer[data-layer-role="ram"] { z-index: 4; }
.report-mounted-layer[data-layer-role="m2"] { z-index: 5; }
.report-mounted-layer[data-layer-role="sata"] { z-index: 6; }
.report-mounted-layer[data-layer-role="psu"] { z-index: 7; }
.report-mounted-layer[data-layer-role="gpu"] { z-index: 8; }
.report-mounted-layer[data-layer-role="cooler"] { z-index: 9; }

.report-page-break {
    break-before: page;
}

@media (max-width: 900px) {
    .build-report-preview-header {
        flex-direction: column;
    }

    .build-report-preview-actions {
        width: 100%;
        justify-content: stretch;
    }

    .build-report-preview-actions .btn {
        flex: 1 1 220px;
    }

    .report-grid-2,
    .report-grid-3,
    .report-eval-grid {
        grid-template-columns: 1fr;
    }

    .report-header {
        flex-direction: column;
    }

    .report-data-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body,
    body.is-printing-report {
        background: #ffffff !important;
    }

    body.is-printing-report > *:not(#build-report-print-view) {
        display: none !important;
    }

    body.is-printing-report #build-report-print-view {
        display: block !important;
        position: static !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        background: #ffffff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.is-printing-report .build-report-preview-header,
    body.is-printing-report .build-report-preview-actions {
        display: none !important;
    }

    body.is-printing-report #build-report-print-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .build-report-print-content {
        max-width: none;
        margin: 0;
    }

    .report-page {
        padding: 0;
    }

    .report-card,
    .report-build-visual,
    .report-metric,
    .report-meta {
        box-shadow: none !important;
    }
}

.mode-status {
    min-width: 250px;
    max-width: 360px;
    padding: 0.42rem 0.7rem;
    border-radius: 10px;
    background: rgba(8, 22, 43, 0.52);
    border: 1px solid rgba(124, 171, 235, 0.18);
}

.mode-status-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #d9ebff;
}

.mode-status-description {
    margin: 0.16rem 0 0;
    font-size: 0.76rem;
    line-height: 1.35;
    color: rgba(223, 235, 248, 0.78);
}

.connection-line-calibration-toolbar {
    margin-top: 0.6rem;
    padding-top: 0.58rem;
    border-top: 1px solid rgba(124, 171, 235, 0.14);
}

.connection-line-calibration-toolbar-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(195, 223, 255, 0.9);
}

.connection-line-calibration-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: 0.45rem;
}

.connection-line-calibration-selection {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.58rem;
    padding-top: 0.56rem;
    border-top: 1px solid rgba(124, 171, 235, 0.14);
}

.connection-line-calibration-selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.connection-line-calibration-selection-label,
.connection-line-calibration-selection-current,
.connection-line-calibration-nudge-label {
    margin: 0;
    font-size: 0.67rem;
    line-height: 1.35;
}

.connection-line-calibration-selection-label,
.connection-line-calibration-nudge-label {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(195, 223, 255, 0.88);
}

.connection-line-calibration-selection-current {
    color: rgba(223, 235, 248, 0.9);
    font-weight: 600;
}

.connection-line-calibration-endpoint-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    max-height: 10rem;
    overflow: auto;
    padding-right: 0.18rem;
}

.connection-line-calibration-endpoint-item {
    border: 1px solid rgba(124, 171, 235, 0.22);
    border-radius: 10px;
    background: rgba(8, 21, 37, 0.32);
    color: #e7f1ff;
    padding: 0.42rem 0.48rem;
    font: 700 0.7rem/1.25 "Poppins", sans-serif;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.connection-line-calibration-endpoint-item:hover,
.connection-line-calibration-endpoint-item:focus-visible {
    border-color: rgba(126, 198, 255, 0.62);
    background: rgba(20, 49, 85, 0.62);
    transform: translateY(-1px);
    outline: none;
}

.connection-line-calibration-endpoint-item.is-selected {
    border-color: rgba(255, 184, 72, 0.9);
    background: rgba(153, 94, 6, 0.48);
    color: #fff5d9;
    box-shadow: inset 0 0 0 1px rgba(255, 214, 133, 0.34);
}

.connection-line-calibration-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.connection-line-calibration-nudge-grid {
    display: grid;
    grid-template-columns: repeat(3, 2rem);
    gap: 0.28rem;
    align-items: center;
}

.connection-line-calibration-nudge-spacer {
    width: 2rem;
    height: 2rem;
}

.connection-line-calibration-nudge-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(124, 171, 235, 0.28);
    border-radius: 10px;
    background: rgba(8, 21, 37, 0.38);
    color: #f6fbff;
    font: 800 0.95rem/1 "Poppins", sans-serif;
    cursor: pointer;
}

.connection-line-calibration-nudge-btn:hover,
.connection-line-calibration-nudge-btn:focus-visible {
    border-color: rgba(126, 198, 255, 0.62);
    background: rgba(20, 49, 85, 0.64);
    outline: none;
}

.connection-line-calibration-nudge-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.build-mode-help .mode-status {
    border-color: rgba(126, 198, 255, 0.2);
}

.build-mode-challenge .mode-status {
    border-color: rgba(245, 173, 86, 0.28);
    background: rgba(52, 30, 11, 0.34);
}

/* Responsive para pantallas medianas (e.g., notebooks escolares o tablets grandes) */
@media (max-width: 1100px) {
    .app-content {
        grid-template-columns: 270px minmax(0, 1fr);
        grid-template-rows: auto auto;
        overflow-y: auto;
        height: auto;
    }
    
    .app-grid {
        height: auto;
        max-height: none;
        overflow-y: auto;
    }

    .panel-right {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.75rem;
        height: auto;
        overflow: visible;
    }
    
    body {
        overflow: auto;
    }

    .zone-case {
        grid-template-rows: minmax(0, 1fr) minmax(82px, auto);
    }

    .zone-motherboard {
        grid-template-areas:
            "cpu ram"
            "m2 ram"
            "pci pci";
        grid-template-columns: minmax(0, 1.55fr) minmax(150px, 0.92fr);
    }

    .institution-logo {
        width: 46px;
    }
}

@media (max-width: 768px) {
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .panel-right {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
        align-items: stretch;
        padding: 0.42rem 0.8rem;
    }

    .header-logo {
        justify-content: center;
        width: 100%;
    }

    .header-titles {
        display: flex;
        flex-direction: column;
        gap: 0.03rem;
        text-align: center;
        width: 100%;
        align-items: center;
    }

    .institution-logo {
        width: 46px;
    }

    .header-kicker {
        font-size: 1.02rem;
    }

    .main-title {
        font-size: 1.08rem;
    }

    .subtitle {
        font-size: 0.68rem;
    }

    .app-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .action-buttons,
    .mode-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .zone-case {
        padding: 0.75rem;
        gap: 0.7rem;
        grid-template-rows: minmax(0, 1fr) minmax(78px, auto);
    }

    .zone-motherboard {
        grid-template-areas:
            "cpu ram"
            "m2 ram"
            "pci pci";
        grid-template-columns: minmax(0, 1.3fr) minmax(118px, 0.82fr);
        grid-template-rows: minmax(105px, 1fr) minmax(66px, 0.55fr) minmax(78px, 0.65fr);
        padding: 1.55rem 0.8rem 0.8rem;
    }

    .zone-ram-slots {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        min-height: 0;
    }

    .cabinet-bottom-area {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   Stage 10 - Base tecnica fija por capas
   ============================================================ */
.panel-center {
    overflow: hidden;
}

.cabinet-schematic {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.assembly-stage {
    position: relative;
    width: auto;
    height: min(100%, 540px);
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 11 / 8;
    flex: 0 0 auto;
    margin: 0 auto;
}

.case-zone {
    --board-left: 8%;
    --board-top: 10%;
    --board-width: 58%;
    --board-height: 50%;
    --psu-left: 8%;
    --psu-top: 67%;
    --psu-width: 25%;
    --psu-height: 21%;
    --sata-left: 77%;
    --sata-top: 35%;
    --sata-width: 16%;
    --sata-height: 22%;
    position: absolute;
    left: 3%;
    top: 3%;
    width: 94%;
    height: 94%;
    border: 3px solid var(--cabinet-border);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.05)),
        var(--cabinet-bg);
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.05),
        0 12px 28px rgba(2, 6, 23, 0.24);
    overflow: hidden;
}

.assembly-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.9rem;
    z-index: 3;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background-color: rgba(11, 19, 41, 0.88);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.drop-zone {
    position: absolute;
    border-radius: 8px;
    min-height: 56px;
    overflow: hidden;
}

.zone-label {
    z-index: 3;
    font-size: 0.72rem;
    top: 0.45rem;
    left: 0.45rem;
}

.motherboard-zone {
    left: var(--board-left);
    top: var(--board-top);
    width: var(--board-width);
    height: var(--board-height);
    overflow: visible;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94)),
        linear-gradient(0deg, rgba(6, 182, 212, 0.03), rgba(6, 182, 212, 0.03));
    box-shadow:
        inset 0 0 0 1px rgba(6, 182, 212, 0.08),
        inset 0 18px 36px rgba(15, 23, 42, 0.18);
}

.motherboard-zone > .zone-label {
    top: 0.5rem;
    left: 0.6rem;
    background-color: #0d1e3d;
    border-color: var(--accent);
    color: var(--accent);
}

.cpu-slot {
    left: 18%;
    top: 15%;
    width: 28%;
    height: 24%;
    background:
        radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.14), transparent 58%),
        rgba(15, 23, 42, 0.42);
}

.ram-area {
    position: absolute;
    left: 68%;
    top: 12%;
    width: 18%;
    height: 42%;
    overflow: visible;
}

.ram-slot {
    width: 34%;
    height: 100%;
    min-height: 0;
    overflow: visible;
}

.ram-area .ram-slot:first-child {
    left: 8%;
    top: 0;
}

.ram-area .ram-slot:last-child {
    left: 58%;
    top: 0;
}

.m2-slot {
    left: 106%;
    top: 41%;
    width: 10%;
    height: 22%;
    overflow: visible;
}

.pcie-slot {
    left: 48%;
    top: 107%;
    width: 84%;
    height: 18%;
}

.psu-slot {
    left: var(--psu-left);
    top: var(--psu-top);
    width: var(--psu-width);
    height: var(--psu-height);
}

.sata-slot {
    left: var(--sata-left);
    top: var(--sata-top);
    width: var(--sata-width);
    height: var(--sata-height);
}

.ram-slot > .zone-label,
.m2-slot > .zone-label {
    left: 50%;
    top: 0.35rem;
    transform: translateX(-50%);
    font-size: 0.58rem;
    padding-inline: 0.25rem;
}

.installed-component-content {
    position: absolute;
    inset: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.installed-component-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background-color: rgba(11, 19, 41, 0.78);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}

.installed-component-asset {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-width: 1100px) {
    .assembly-stage {
        height: min(100%, 500px);
    }
}

@media (max-width: 768px) {
    .assembly-stage {
        height: min(100%, 450px);
    }

    .assembly-badge {
        font-size: 0.64rem;
    }

    .zone-label {
        font-size: 0.64rem;
    }

    .case-zone {
        --board-left: 7%;
        --board-top: 11%;
        --board-width: 60%;
        --board-height: 48%;
        --psu-left: 7%;
        --psu-top: 68%;
        --psu-width: 27%;
        --psu-height: 20%;
        --sata-left: 77%;
        --sata-top: 36%;
        --sata-width: 16%;
        --sata-height: 21%;
    }

    .cpu-slot {
        left: 16%;
        width: 30%;
    }

    .ram-area {
        left: 67%;
        width: 20%;
    }

    .m2-slot {
        left: 105%;
        width: 12%;
    }

    .pcie-slot {
        left: 42%;
        width: 90%;
    }

    .ram-slot > .zone-label,
    .m2-slot > .zone-label {
        font-size: 0.54rem;
    }
}

/* ============================================================
   Modal educativo de error de compatibilidad
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 1rem;
    animation: modal-fade-in 0.18s ease;
}

.modal-overlay[hidden] {
    display: none;
}

@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-box {
    background-color: var(--panel-bg);
    border: 2px solid var(--error);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--error);
    margin: 0;
}

.modal-explanation {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    background-color: rgba(239, 68, 68, 0.08);
    border-left: 3px solid var(--error);
    padding: 0.5rem 0.75rem;
    border-radius: 0 4px 4px 0;
}

.modal-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
}

.modal-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.35rem;
}

.modal-section-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.45;
    margin: 0;
}

.modal-btn {
    align-self: flex-end;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.build-session-modal {
    z-index: 9100;
}

.session-modal-box {
    border-color: rgba(40, 94, 168, 0.45);
    max-width: 460px;
    gap: 1.1rem;
}

.session-modal-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.session-modal-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: #5f7fa8;
}

.session-modal-title {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
    color: #18385f;
}

.session-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.session-modal-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #36557f;
}

.session-modal-input {
    width: 100%;
    border: 1px solid rgba(58, 91, 138, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #18385f;
    font: inherit;
    font-size: 0.94rem;
    padding: 0.7rem 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.session-modal-input:focus {
    outline: none;
    border-color: rgba(40, 94, 168, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.session-modal-error {
    margin: -0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b42318;
}

.session-modal-note {
    margin: 0;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(24, 56, 95, 0.12);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(232, 240, 250, 0.98), rgba(244, 248, 252, 0.96));
    color: #23456e;
    font-size: 0.8rem;
    line-height: 1.45;
}

.session-modal-button {
    align-self: stretch;
    justify-content: center;
}

.build-session-locked .component-card-session-locked {
    cursor: not-allowed;
    opacity: 0.72;
}

.help-visual-slot[hidden] {
    display: none;
}

.help-visual-card {
    margin-top: 0.35rem;
    padding: 0.8rem;
    border: 1px solid rgba(24, 56, 95, 0.14);
    border-radius: 10px;
    background: rgba(244, 248, 252, 0.9);
}

.help-visual-title {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #23456e;
}

.help-visual-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.help-visual-trigger:focus-visible {
    outline: 3px solid rgba(24, 56, 95, 0.28);
    outline-offset: 4px;
    border-radius: 12px;
}

.help-visual-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 260px;
    border-radius: 10px;
    object-fit: contain;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.help-visual-hint {
    margin: 0.55rem 0 0;
    font-size: 0.76rem;
    color: #496482;
}

.help-image-viewer {
    z-index: 9300;
}

.help-image-viewer-box {
    width: min(92vw, 960px);
    max-width: 960px;
    border-color: rgba(24, 56, 95, 0.32);
    gap: 0.85rem;
}

.help-image-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.help-image-viewer-title {
    color: #18385f;
}

.help-image-viewer-close {
    flex-shrink: 0;
}

.help-image-viewer-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    object-fit: contain;
    background-color: #ffffff;
}

.help-image-viewer-caption {
    margin: 0;
    color: #36557f;
    font-size: 0.86rem;
    line-height: 1.45;
}

/* ============================================================
   Stage 11 - SVG internos de componentes
   ============================================================ */
.installed-component-content {
    inset: 0.35rem;
    display: block;
    text-align: left;
}

.installed-component-asset {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.installed-component-asset svg {
    width: 100%;
    height: 100%;
    display: block;
}

.installed-component-name {
    position: absolute;
    right: 0.15rem;
    bottom: 0.15rem;
    z-index: 2;
    max-width: calc(100% - 0.3rem);
    padding: 0.18rem 0.35rem;
    border-radius: 5px;
    background-color: rgba(11, 19, 41, 0.88);
    color: var(--text-main);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
}

.component-card-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   Stage 12 - Limpieza visual de placeholders
   ============================================================ */
.motherboard-zone.installed {
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96)),
        linear-gradient(0deg, rgba(6, 182, 212, 0.03), rgba(6, 182, 212, 0.03));
}

.motherboard-zone > .zone-label,
.cpu-slot > .zone-label,
.ram-slot > .zone-label,
.m2-slot > .zone-label,
.pcie-slot > .zone-label,
.psu-slot > .zone-label,
.sata-slot > .zone-label {
    z-index: 5;
}

.installed-component-content {
    inset: 0.3rem;
    z-index: 1;
    pointer-events: none;
    display: block;
    text-align: left;
}

.installed-component-content[data-component-category="motherboards"] {
    inset: 0.55rem;
}

.installed-component-asset {
    position: absolute;
    left: 0.2rem;
    right: 0.2rem;
    top: 1.45rem;
    bottom: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.96;
}

.installed-component-asset[data-component-category="motherboards"] {
    left: 0.45rem;
    right: 0.45rem;
    top: 1.35rem;
    bottom: 0.55rem;
    opacity: 0.42;
}

.installed-component-asset img,
.installed-component-asset svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
/* Stage 019.1 - Real cabinet layout correction */
.panel-center,
.cabinet-schematic,
.assembly-stage,
.case-zone {
    overflow: hidden;
}

.case-zone {
    --board-left: 6.5%;
    --board-top: 10%;
    --board-width: 52%;
    --board-height: 58%;
    --m2-left: 108.5%;
    --m2-top: 36%;
    --m2-width: 14.5%;
    --m2-height: 45%;
    --sata-left: 71%;
    --sata-top: 31%;
    --sata-width: 20%;
    --sata-height: 26%;
    --psu-left: 8%;
    --psu-top: 67%;
    --psu-width: 30%;
    --psu-height: 25%;
}

.drop-zone {
    border-width: 1.5px;
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.28);
    background-color: rgba(15, 23, 42, 0.16);
    box-shadow: none;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: rgba(34, 211, 238, 0.62);
}

.zone-label {
    max-width: calc(100% - 0.7rem);
    padding: 0.12rem 0.36rem;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.18);
    background-color: rgba(11, 19, 41, 0.68);
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.62rem;
    letter-spacing: 0.35px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.motherboard-zone {
    left: var(--board-left);
    top: var(--board-top);
    width: var(--board-width);
    height: var(--board-height);
    overflow: visible;
    border-color: rgba(56, 189, 248, 0.2);
    background:
        radial-gradient(circle at 78% 16%, rgba(59, 130, 246, 0.08), transparent 24%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.02) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.02) 0 1px, transparent 1px 32px);
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.05),
        inset 0 24px 40px rgba(15, 23, 42, 0.14);
}

.motherboard-zone::before,
.motherboard-zone::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.05);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.04));
}

.motherboard-zone::before {
    left: 9%;
    top: 14%;
    width: 46%;
    height: 36%;
}

.motherboard-zone::after {
    left: 12%;
    top: 58%;
    width: 34%;
    height: 16%;
}

.motherboard-zone > .zone-label {
    left: 0.7rem;
    top: 0.55rem;
    border-color: rgba(56, 189, 248, 0.24);
    background-color: rgba(13, 30, 61, 0.7);
    color: rgba(125, 211, 252, 0.96);
}

.cpu-slot {
    left: 23%;
    top: 18%;
    width: 21%;
    height: 21%;
    border-color: rgba(96, 165, 250, 0.28);
    background:
        radial-gradient(circle at 50% 45%, rgba(96, 165, 250, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.28));
}

.cpu-slot > .zone-label {
    left: 50%;
    top: 0.32rem;
    transform: translateX(-50%);
}

.ram-area {
    left: 72%;
    top: 16%;
    width: 15%;
    height: 42%;
    overflow: visible;
}

.ram-slot {
    width: 34%;
    height: 100%;
    min-height: 0;
    border-color: rgba(125, 211, 252, 0.24);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.56), rgba(15, 23, 42, 0.18)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.1) 0 2px, transparent 2px 12px);
}

.ram-area .ram-slot:first-child {
    left: 10%;
    top: 0;
}

.ram-area .ram-slot:last-child {
    left: 56%;
    top: 0;
}

.ram-slot > .zone-label {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
    font-size: 0.54rem;
    max-width: calc(100% - 0.2rem);
}

.m2-slot {
    left: var(--m2-left);
    top: var(--m2-top);
    width: var(--m2-width);
    height: var(--m2-height);
    overflow: visible;
    border-color: rgba(45, 212, 191, 0.24);
    background:
        linear-gradient(180deg, rgba(22, 78, 99, 0.18), rgba(15, 23, 42, 0.12)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 2px, transparent 2px 16px);
}

.m2-slot > .zone-label {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
    font-size: 0.54rem;
}

.sata-slot {
    left: var(--sata-left);
    top: var(--sata-top);
    width: var(--sata-width);
    height: var(--sata-height);
    border-color: rgba(248, 250, 252, 0.16);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.14)),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.02));
}

.pcie-slot {
    left: 82%;
    top: 96%;
    width: 86%;
    height: 38%;
    overflow: visible;
    border-color: rgba(96, 165, 250, 0.22);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.16)),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.01));
}

.pcie-slot::before {
    content: "";
    position: absolute;
    right: calc(100% - 0.05rem);
    top: 44%;
    width: 34%;
    height: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.24), rgba(59, 130, 246, 0.06));
    pointer-events: none;
}

.pcie-slot::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    width: 0.38rem;
    height: calc(100% - 1.1rem);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.32), rgba(148, 163, 184, 0.06));
    pointer-events: none;
}

.pcie-slot > .zone-label {
    left: 0.55rem;
    top: 0.38rem;
}

.psu-slot {
    left: var(--psu-left);
    top: var(--psu-top);
    width: var(--psu-width);
    height: var(--psu-height);
    border-color: rgba(34, 197, 94, 0.18);
    background:
        radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.18));
}

@media (max-width: 768px) {
    .case-zone {
        --board-left: 6%;
        --board-top: 10%;
        --board-width: 54%;
        --board-height: 56%;
        --m2-left: 107%;
        --m2-top: 35%;
        --m2-width: 15%;
        --m2-height: 44%;
        --sata-left: 70%;
        --sata-top: 31%;
        --sata-width: 21%;
        --sata-height: 25%;
        --psu-left: 7%;
        --psu-top: 68%;
        --psu-width: 31%;
        --psu-height: 24%;
    }

    .zone-label {
        font-size: 0.56rem;
    }

    .cpu-slot {
        left: 22%;
        width: 23%;
        height: 22%;
    }

    .ram-area {
        left: 71%;
        width: 16%;
    }

    .pcie-slot {
        left: 79%;
        top: 95%;
        width: 88%;
        height: 39%;
    }
}
/* Stage 020 - Mounted real cabinet scene */
.panel-center,
.cabinet-schematic,
.assembly-stage,
.case-zone {
    overflow: hidden;
}

.assembly-stage {
    width: 100%;
    height: min(100%, 560px);
}

.case-zone {
    position: absolute;
    inset: 3%;
    border: 2px solid rgba(71, 85, 105, 0.62);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 18%, rgba(15, 23, 42, 0.2), transparent 52%),
        linear-gradient(180deg, rgba(8, 15, 31, 0.2), rgba(8, 15, 31, 0.06)),
        var(--cabinet-bg);
}

.cabinet-mounted-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cabinet-base-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cabinet-layer-system {
    position: absolute;
    inset: 0;
}

.cabinet-layer {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.cabinet-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cabinet-layer--guide {
    opacity: 0.28;
    filter: saturate(0.9);
}

.cabinet-layer--motherboard {
    left: 7%;
    top: 12%;
    width: 49%;
    height: 51%;
    z-index: 2;
}

.cabinet-layer--cpu {
    left: 29.2%;
    top: 23.8%;
    width: 10.8%;
    height: 13.2%;
    z-index: 4;
}

.cabinet-layer--cooler {
    left: 23.8%;
    top: 18.8%;
    width: 17.6%;
    height: 18.2%;
    z-index: 5;
}

.cabinet-mounted-scene.cooler-reveal .cabinet-layer--cooler {
    opacity: 0.06;
}

.cabinet-layer--ram-1,
.cabinet-layer--ram-guide-1 {
    left: 45.4%;
    top: 18.2%;
    width: 3.6%;
    height: 28.6%;
    z-index: 4;
}

.cabinet-layer--ram-2,
.cabinet-layer--ram-guide-2 {
    left: 49.3%;
    top: 18.2%;
    width: 3.6%;
    height: 28.6%;
    z-index: 4;
}

.cabinet-layer--m2,
.cabinet-layer--m2-guide {
    left: 61.5%;
    top: 56.4%;
    width: 4.3%;
    height: 19.2%;
    z-index: 3;
}

.cabinet-layer--sata {
    left: 68.2%;
    top: 56.1%;
    width: 21.8%;
    height: 19.6%;
    z-index: 3;
}

.cabinet-layer--gpu,
.cabinet-layer--gpu-guide {
    left: 60.3%;
    top: 73.6%;
    width: 33.4%;
    height: 17.4%;
    z-index: 3;
}

.cabinet-layer--psu {
    left: 5.1%;
    top: 72.2%;
    width: 28.8%;
    height: 24.8%;
    z-index: 3;
}

.assembly-badge {
    z-index: 6;
}

.drop-zone {
    z-index: 4;
    border: 1px dashed rgba(191, 219, 254, 0.14);
    background-color: rgba(15, 23, 42, 0.04);
    box-shadow: none;
    overflow: visible;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: rgba(34, 211, 238, 0.5);
    background-color: rgba(34, 211, 238, 0.08);
}

.drop-zone.installed {
    border-color: rgba(16, 185, 129, 0.18);
    background-color: rgba(15, 23, 42, 0.02);
    box-shadow: none;
}

.zone-label {
    z-index: 5;
    max-width: calc(100% - 0.5rem);
    padding: 0.1rem 0.34rem;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.14);
    background-color: rgba(11, 19, 41, 0.5);
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.56rem;
    letter-spacing: 0.28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drop-zone.installed > .zone-label {
    opacity: 0.66;
}

.motherboard-zone,
.motherboard-zone.installed {
    left: 7%;
    top: 12%;
    width: 49%;
    height: 51%;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-color: rgba(96, 165, 250, 0.12);
}

.motherboard-zone::before,
.motherboard-zone::after {
    content: none;
}

.motherboard-zone > .zone-label {
    top: 0.45rem;
    left: 0.45rem;
    background-color: rgba(13, 30, 61, 0.46);
    color: rgba(147, 197, 253, 0.82);
    border-color: rgba(96, 165, 250, 0.16);
}

.cpu-slot {
    left: 44.8%;
    top: 23.5%;
    width: 20.8%;
    height: 23%;
    background: transparent;
    border-color: rgba(96, 165, 250, 0.12);
}

.cpu-slot > .zone-label {
    left: 50%;
    top: -0.6rem;
    transform: translateX(-50%);
}

.ram-area {
    left: 77.4%;
    top: 12%;
    width: 11.5%;
    height: 57%;
    overflow: visible;
}

.ram-slot {
    width: 31%;
    height: 100%;
    min-height: 0;
    background: transparent;
    border-color: rgba(125, 211, 252, 0.12);
}

.ram-area .ram-slot:first-child {
    left: 7%;
    top: 0;
}

.ram-area .ram-slot:last-child {
    left: 53%;
    top: 0;
}

.ram-slot > .zone-label {
    left: 50%;
    top: -0.65rem;
    transform: translateX(-50%);
    font-size: 0.5rem;
}

.m2-slot {
    left: 110%;
    top: 86%;
    width: 8.8%;
    height: 38%;
    background: transparent;
    border-color: rgba(45, 212, 191, 0.14);
}

.m2-slot > .zone-label {
    left: 50%;
    top: -0.6rem;
    transform: translateX(-50%);
}

.pcie-slot {
    left: 108%;
    top: 121%;
    width: 68%;
    height: 27%;
    background: transparent;
    border-color: rgba(96, 165, 250, 0.14);
}

.pcie-slot::before,
.pcie-slot::after {
    content: none;
}

.pcie-slot > .zone-label {
    left: 0.4rem;
    top: -0.65rem;
}

.psu-slot {
    left: 4.5%;
    top: 71.3%;
    width: 30.5%;
    height: 26.2%;
    background: transparent;
    border-color: rgba(34, 197, 94, 0.12);
}

.sata-slot {
    left: 66.5%;
    top: 54.9%;
    width: 24.2%;
    height: 22.4%;
    background: transparent;
    border-color: rgba(226, 232, 240, 0.12);
}

.installed-component-content {
    display: none !important;
}

@media (max-width: 768px) {
    .assembly-stage {
        height: min(100%, 470px);
    }

    .zone-label {
        font-size: 0.5rem;
    }

    .cabinet-layer--motherboard {
        left: 7%;
        width: 50%;
        height: 50%;
    }

    .cabinet-layer--cpu {
        left: 29.4%;
        width: 11.4%;
        height: 13.8%;
    }

    .cabinet-layer--cooler {
        left: 23.4%;
        width: 18.4%;
        height: 19.2%;
    }

    .cabinet-layer--gpu,
    .cabinet-layer--gpu-guide {
        left: 59.8%;
        width: 34.3%;
    }

    .cabinet-layer--psu {
        left: 4.6%;
        width: 29.8%;
    }
}
*** End of File
/* Stage 020 - Mounted real cabinet scene */
.panel-center,
.cabinet-schematic,
.assembly-stage,
.case-zone {
    overflow: hidden;
}

.assembly-stage {
    width: 100%;
    height: min(100%, 560px);
}

.case-zone {
    position: absolute;
    inset: 3%;
    border: 2px solid rgba(71, 85, 105, 0.62);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 18%, rgba(15, 23, 42, 0.2), transparent 52%),
        linear-gradient(180deg, rgba(8, 15, 31, 0.2), rgba(8, 15, 31, 0.06)),
        var(--cabinet-bg);
}

.cabinet-mounted-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cabinet-base-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cabinet-layer-system {
    position: absolute;
    inset: 0;
}

.cabinet-layer {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.cabinet-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cabinet-layer--guide {
    opacity: 0.28;
    filter: saturate(0.9);
}

.cabinet-layer--motherboard {
    left: 7%;
    top: 12%;
    width: 49%;
    height: 51%;
    z-index: 2;
}

.cabinet-layer--cpu {
    left: 29.2%;
    top: 23.8%;
    width: 10.8%;
    height: 13.2%;
    z-index: 4;
}

.cabinet-layer--cooler {
    left: 23.8%;
    top: 18.8%;
    width: 17.6%;
    height: 18.2%;
    z-index: 5;
}

.cabinet-mounted-scene.cooler-reveal .cabinet-layer--cooler {
    opacity: 0.06;
}

.cabinet-layer--ram-1,
.cabinet-layer--ram-guide-1 {
    left: 45.4%;
    top: 18.2%;
    width: 3.6%;
    height: 28.6%;
    z-index: 4;
}

.cabinet-layer--ram-2,
.cabinet-layer--ram-guide-2 {
    left: 49.3%;
    top: 18.2%;
    width: 3.6%;
    height: 28.6%;
    z-index: 4;
}

.cabinet-layer--m2,
.cabinet-layer--m2-guide {
    left: 61.5%;
    top: 56.4%;
    width: 4.3%;
    height: 19.2%;
    z-index: 3;
}

.cabinet-layer--sata {
    left: 68.2%;
    top: 56.1%;
    width: 21.8%;
    height: 19.6%;
    z-index: 3;
}

.cabinet-layer--gpu,
.cabinet-layer--gpu-guide {
    left: 60.3%;
    top: 73.6%;
    width: 33.4%;
    height: 17.4%;
    z-index: 3;
}

.cabinet-layer--psu {
    left: 5.1%;
    top: 72.2%;
    width: 28.8%;
    height: 24.8%;
    z-index: 3;
}

.assembly-badge {
    z-index: 6;
}

.drop-zone {
    z-index: 4;
    border: 1px dashed rgba(191, 219, 254, 0.14);
    background-color: rgba(15, 23, 42, 0.04);
    box-shadow: none;
    overflow: visible;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: rgba(34, 211, 238, 0.5);
    background-color: rgba(34, 211, 238, 0.08);
}

.drop-zone.installed {
    border-color: rgba(16, 185, 129, 0.18);
    background-color: rgba(15, 23, 42, 0.02);
    box-shadow: none;
}

.zone-label {
    z-index: 5;
    max-width: calc(100% - 0.5rem);
    padding: 0.1rem 0.34rem;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.14);
    background-color: rgba(11, 19, 41, 0.5);
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.56rem;
    letter-spacing: 0.28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drop-zone.installed > .zone-label {
    opacity: 0.66;
}

.motherboard-zone,
.motherboard-zone.installed {
    left: 7%;
    top: 12%;
    width: 49%;
    height: 51%;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-color: rgba(96, 165, 250, 0.12);
}

.motherboard-zone::before,
.motherboard-zone::after {
    content: none;
}

.motherboard-zone > .zone-label {
    top: 0.45rem;
    left: 0.45rem;
    background-color: rgba(13, 30, 61, 0.46);
    color: rgba(147, 197, 253, 0.82);
    border-color: rgba(96, 165, 250, 0.16);
}

.cpu-slot {
    left: 44.8%;
    top: 23.5%;
    width: 20.8%;
    height: 23%;
    background: transparent;
    border-color: rgba(96, 165, 250, 0.12);
}

.cpu-slot > .zone-label {
    left: 50%;
    top: -0.6rem;
    transform: translateX(-50%);
}

.ram-area {
    left: 77.4%;
    top: 12%;
    width: 11.5%;
    height: 57%;
    overflow: visible;
}

.ram-slot {
    width: 31%;
    height: 100%;
    min-height: 0;
    background: transparent;
    border-color: rgba(125, 211, 252, 0.12);
}

.ram-area .ram-slot:first-child {
    left: 7%;
    top: 0;
}

.ram-area .ram-slot:last-child {
    left: 53%;
    top: 0;
}

.ram-slot > .zone-label {
    left: 50%;
    top: -0.65rem;
    transform: translateX(-50%);
    font-size: 0.5rem;
}

.m2-slot {
    left: 110%;
    top: 86%;
    width: 8.8%;
    height: 38%;
    background: transparent;
    border-color: rgba(45, 212, 191, 0.14);
}

.m2-slot > .zone-label {
    left: 50%;
    top: -0.6rem;
    transform: translateX(-50%);
}

.pcie-slot {
    left: 108%;
    top: 121%;
    width: 68%;
    height: 27%;
    background: transparent;
    border-color: rgba(96, 165, 250, 0.14);
}

.pcie-slot::before,
.pcie-slot::after {
    content: none;
}

.pcie-slot > .zone-label {
    left: 0.4rem;
    top: -0.65rem;
}

.psu-slot {
    left: 4.5%;
    top: 71.3%;
    width: 30.5%;
    height: 26.2%;
    background: transparent;
    border-color: rgba(34, 197, 94, 0.12);
}

.sata-slot {
    left: 66.5%;
    top: 54.9%;
    width: 24.2%;
    height: 22.4%;
    background: transparent;
    border-color: rgba(226, 232, 240, 0.12);
}

.installed-component-content {
    display: none !important;
}

@media (max-width: 768px) {
    .assembly-stage {
        height: min(100%, 470px);
    }

    .zone-label {
        font-size: 0.5rem;
    }

    .cabinet-layer--motherboard {
        left: 7%;
        width: 50%;
        height: 50%;
    }

    .cabinet-layer--cpu {
        left: 29.4%;
        width: 11.4%;
        height: 13.8%;
    }

    .cabinet-layer--cooler {
        left: 23.4%;
        width: 18.4%;
        height: 19.2%;
    }

    .cabinet-layer--gpu,
    .cabinet-layer--gpu-guide {
        left: 59.8%;
        width: 34.3%;
    }

    .cabinet-layer--psu {
        left: 4.6%;
        width: 29.8%;
    }
}
/* Stage 020 - Mounted real cabinet scene */
.panel-center,
.cabinet-schematic,
.assembly-stage,
.case-zone {
    overflow: hidden;
}

.assembly-stage {
    width: 100%;
    height: min(100%, 560px);
}

.case-zone {
    position: absolute;
    inset: 3%;
    border: 2px solid rgba(71, 85, 105, 0.62);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 18%, rgba(15, 23, 42, 0.2), transparent 52%),
        linear-gradient(180deg, rgba(8, 15, 31, 0.2), rgba(8, 15, 31, 0.06)),
        var(--cabinet-bg);
}

.cabinet-mounted-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cabinet-base-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cabinet-layer-system {
    position: absolute;
    inset: 0;
}

.cabinet-layer {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.cabinet-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cabinet-layer--guide {
    opacity: 0.28;
    filter: saturate(0.9);
}

.cabinet-layer--motherboard {
    left: 7%;
    top: 12%;
    width: 49%;
    height: 51%;
    z-index: 2;
}

.cabinet-layer--cpu {
    left: 29.2%;
    top: 23.8%;
    width: 10.8%;
    height: 13.2%;
    z-index: 4;
}

.cabinet-layer--cooler {
    left: 23.8%;
    top: 18.8%;
    width: 17.6%;
    height: 18.2%;
    z-index: 5;
}

.cabinet-mounted-scene.cooler-reveal .cabinet-layer--cooler {
    opacity: 0.06;
}

.cabinet-layer--ram-1,
.cabinet-layer--ram-guide-1 {
    left: 45.4%;
    top: 18.2%;
    width: 3.6%;
    height: 28.6%;
    z-index: 4;
}

.cabinet-layer--ram-2,
.cabinet-layer--ram-guide-2 {
    left: 49.3%;
    top: 18.2%;
    width: 3.6%;
    height: 28.6%;
    z-index: 4;
}

.cabinet-layer--m2,
.cabinet-layer--m2-guide {
    left: 61.5%;
    top: 56.4%;
    width: 4.3%;
    height: 19.2%;
    z-index: 3;
}

.cabinet-layer--sata {
    left: 68.2%;
    top: 56.1%;
    width: 21.8%;
    height: 19.6%;
    z-index: 3;
}

.cabinet-layer--gpu,
.cabinet-layer--gpu-guide {
    left: 60.3%;
    top: 73.6%;
    width: 33.4%;
    height: 17.4%;
    z-index: 3;
}

.cabinet-layer--psu {
    left: 5.1%;
    top: 72.2%;
    width: 28.8%;
    height: 24.8%;
    z-index: 3;
}

.assembly-badge {
    z-index: 6;
}

.drop-zone {
    z-index: 4;
    border: 1px dashed rgba(191, 219, 254, 0.14);
    background-color: rgba(15, 23, 42, 0.04);
    box-shadow: none;
    overflow: visible;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: rgba(34, 211, 238, 0.5);
    background-color: rgba(34, 211, 238, 0.08);
}

.drop-zone.installed {
    border-color: rgba(16, 185, 129, 0.18);
    background-color: rgba(15, 23, 42, 0.02);
    box-shadow: none;
}

.zone-label {
    z-index: 5;
    max-width: calc(100% - 0.5rem);
    padding: 0.1rem 0.34rem;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.14);
    background-color: rgba(11, 19, 41, 0.5);
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.56rem;
    letter-spacing: 0.28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drop-zone.installed > .zone-label {
    opacity: 0.66;
}

.motherboard-zone,
.motherboard-zone.installed {
    left: 7%;
    top: 12%;
    width: 49%;
    height: 51%;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-color: rgba(96, 165, 250, 0.12);
}

.motherboard-zone::before,
.motherboard-zone::after {
    content: none;
}

.motherboard-zone > .zone-label {
    top: 0.45rem;
    left: 0.45rem;
    background-color: rgba(13, 30, 61, 0.46);
    color: rgba(147, 197, 253, 0.82);
    border-color: rgba(96, 165, 250, 0.16);
}

.cpu-slot {
    left: 44.8%;
    top: 23.5%;
    width: 20.8%;
    height: 23%;
    background: transparent;
    border-color: rgba(96, 165, 250, 0.12);
}

.cpu-slot > .zone-label {
    left: 50%;
    top: -0.6rem;
    transform: translateX(-50%);
}

.ram-area {
    left: 77.4%;
    top: 12%;
    width: 11.5%;
    height: 57%;
    overflow: visible;
}

.ram-slot {
    width: 31%;
    height: 100%;
    min-height: 0;
    background: transparent;
    border-color: rgba(125, 211, 252, 0.12);
}

.ram-area .ram-slot:first-child {
    left: 7%;
    top: 0;
}

.ram-area .ram-slot:last-child {
    left: 53%;
    top: 0;
}

.ram-slot > .zone-label {
    left: 50%;
    top: -0.65rem;
    transform: translateX(-50%);
    font-size: 0.5rem;
}

.m2-slot {
    left: 110%;
    top: 86%;
    width: 8.8%;
    height: 38%;
    background: transparent;
    border-color: rgba(45, 212, 191, 0.14);
}

.m2-slot > .zone-label {
    left: 50%;
    top: -0.6rem;
    transform: translateX(-50%);
}

.pcie-slot {
    left: 108%;
    top: 121%;
    width: 68%;
    height: 27%;
    background: transparent;
    border-color: rgba(96, 165, 250, 0.14);
}

.pcie-slot::before,
.pcie-slot::after {
    content: none;
}

.pcie-slot > .zone-label {
    left: 0.4rem;
    top: -0.65rem;
}

.psu-slot {
    left: 4.5%;
    top: 71.3%;
    width: 30.5%;
    height: 26.2%;
    background: transparent;
    border-color: rgba(34, 197, 94, 0.12);
}

.sata-slot {
    left: 66.5%;
    top: 54.9%;
    width: 24.2%;
    height: 22.4%;
    background: transparent;
    border-color: rgba(226, 232, 240, 0.12);
}

.installed-component-content {
    display: none !important;
}

@media (max-width: 768px) {
    .assembly-stage {
        height: min(100%, 470px);
    }

    .zone-label {
        font-size: 0.5rem;
    }

    .cabinet-layer--motherboard {
        left: 7%;
        width: 50%;
        height: 50%;
    }

    .cabinet-layer--cpu {
        left: 29.4%;
        width: 11.4%;
        height: 13.8%;
    }

    .cabinet-layer--cooler {
        left: 23.4%;
        width: 18.4%;
        height: 19.2%;
    }

    .cabinet-layer--gpu,
    .cabinet-layer--gpu-guide {
        left: 59.8%;
        width: 34.3%;
    }

    .cabinet-layer--psu {
        left: 4.6%;
        width: 29.8%;
    }
}
*** End of File

/* Stage 019.1 - Real cabinet layout correction */
.panel-center,
.cabinet-schematic,
.assembly-stage,
.case-zone {
    overflow: hidden;
}

.case-zone {
    --board-left: 6.5%;
    --board-top: 10%;
    --board-width: 52%;
    --board-height: 58%;
    --m2-left: 108.5%;
    --m2-top: 36%;
    --m2-width: 14.5%;
    --m2-height: 45%;
    --sata-left: 71%;
    --sata-top: 31%;
    --sata-width: 20%;
    --sata-height: 26%;
    --psu-left: 8%;
    --psu-top: 67%;
    --psu-width: 30%;
    --psu-height: 25%;
}

.drop-zone {
    border-width: 1.5px;
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.28);
    background-color: rgba(15, 23, 42, 0.16);
    box-shadow: none;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: rgba(34, 211, 238, 0.62);
}

.zone-label {
    max-width: calc(100% - 0.7rem);
    padding: 0.12rem 0.36rem;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.18);
    background-color: rgba(11, 19, 41, 0.68);
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.62rem;
    letter-spacing: 0.35px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.motherboard-zone {
    left: var(--board-left);
    top: var(--board-top);
    width: var(--board-width);
    height: var(--board-height);
    overflow: visible;
    border-color: rgba(56, 189, 248, 0.2);
    background:
        radial-gradient(circle at 78% 16%, rgba(59, 130, 246, 0.08), transparent 24%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.02) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.02) 0 1px, transparent 1px 32px);
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.05),
        inset 0 24px 40px rgba(15, 23, 42, 0.14);
}

.motherboard-zone::before,
.motherboard-zone::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.05);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.04));
}

.motherboard-zone::before {
    left: 9%;
    top: 14%;
    width: 46%;
    height: 36%;
}

.motherboard-zone::after {
    left: 12%;
    top: 58%;
    width: 34%;
    height: 16%;
}

.motherboard-zone > .zone-label {
    left: 0.7rem;
    top: 0.55rem;
    border-color: rgba(56, 189, 248, 0.24);
    background-color: rgba(13, 30, 61, 0.7);
    color: rgba(125, 211, 252, 0.96);
}

.cpu-slot {
    left: 23%;
    top: 18%;
    width: 21%;
    height: 21%;
    border-color: rgba(96, 165, 250, 0.28);
    background:
        radial-gradient(circle at 50% 45%, rgba(96, 165, 250, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.28));
}

.cpu-slot > .zone-label {
    left: 50%;
    top: 0.32rem;
    transform: translateX(-50%);
}

.ram-area {
    left: 72%;
    top: 16%;
    width: 15%;
    height: 42%;
    overflow: visible;
}

.ram-slot {
    width: 34%;
    height: 100%;
    min-height: 0;
    border-color: rgba(125, 211, 252, 0.24);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.56), rgba(15, 23, 42, 0.18)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.1) 0 2px, transparent 2px 12px);
}

.ram-area .ram-slot:first-child {
    left: 10%;
    top: 0;
}

.ram-area .ram-slot:last-child {
    left: 56%;
    top: 0;
}

.ram-slot > .zone-label {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
    font-size: 0.54rem;
    max-width: calc(100% - 0.2rem);
}

.m2-slot {
    left: var(--m2-left);
    top: var(--m2-top);
    width: var(--m2-width);
    height: var(--m2-height);
    overflow: visible;
    border-color: rgba(45, 212, 191, 0.24);
    background:
        linear-gradient(180deg, rgba(22, 78, 99, 0.18), rgba(15, 23, 42, 0.12)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 2px, transparent 2px 16px);
}

.m2-slot > .zone-label {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
    font-size: 0.54rem;
}

.sata-slot {
    left: var(--sata-left);
    top: var(--sata-top);
    width: var(--sata-width);
    height: var(--sata-height);
    border-color: rgba(248, 250, 252, 0.16);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.14)),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.02));
}

.pcie-slot {
    left: 82%;
    top: 96%;
    width: 86%;
    height: 38%;
    overflow: visible;
    border-color: rgba(96, 165, 250, 0.22);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.16)),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.01));
}

.pcie-slot::before {
    content: "";
    position: absolute;
    right: calc(100% - 0.05rem);
    top: 44%;
    width: 34%;
    height: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.24), rgba(59, 130, 246, 0.06));
    pointer-events: none;
}

.pcie-slot::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    width: 0.38rem;
    height: calc(100% - 1.1rem);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.32), rgba(148, 163, 184, 0.06));
    pointer-events: none;
}

.pcie-slot > .zone-label {
    left: 0.55rem;
    top: 0.38rem;
}

.psu-slot {
    left: var(--psu-left);
    top: var(--psu-top);
    width: var(--psu-width);
    height: var(--psu-height);
    border-color: rgba(34, 197, 94, 0.18);
    background:
        radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.18));
}

@media (max-width: 768px) {
    .case-zone {
        --board-left: 6%;
        --board-top: 10%;
        --board-width: 54%;
        --board-height: 56%;
        --m2-left: 107%;
        --m2-top: 35%;
        --m2-width: 15%;
        --m2-height: 44%;
        --sata-left: 70%;
        --sata-top: 31%;
        --sata-width: 21%;
        --sata-height: 25%;
        --psu-left: 7%;
        --psu-top: 68%;
        --psu-width: 31%;
        --psu-height: 24%;
    }

    .zone-label {
        font-size: 0.56rem;
    }

    .cpu-slot {
        left: 22%;
        width: 23%;
        height: 22%;
    }

    .ram-area {
        left: 71%;
        width: 16%;
    }

    .pcie-slot {
        left: 79%;
        top: 95%;
        width: 88%;
        height: 39%;
    }
}

/* Stage 019.1 - Real cabinet layout correction */
.panel-center,
.cabinet-schematic,
.assembly-stage,
.case-zone {
    overflow: hidden;
}

.case-zone {
    --board-left: 6.5%;
    --board-top: 10%;
    --board-width: 52%;
    --board-height: 58%;
    --m2-left: 108.5%;
    --m2-top: 36%;
    --m2-width: 14.5%;
    --m2-height: 45%;
    --sata-left: 71%;
    --sata-top: 31%;
    --sata-width: 20%;
    --sata-height: 26%;
    --psu-left: 8%;
    --psu-top: 67%;
    --psu-width: 30%;
    --psu-height: 25%;
}

.drop-zone {
    border-width: 1.5px;
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.28);
    background-color: rgba(15, 23, 42, 0.16);
    box-shadow: none;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: rgba(34, 211, 238, 0.62);
}

.zone-label {
    max-width: calc(100% - 0.7rem);
    padding: 0.12rem 0.36rem;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.18);
    background-color: rgba(11, 19, 41, 0.68);
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.62rem;
    letter-spacing: 0.35px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.motherboard-zone {
    left: var(--board-left);
    top: var(--board-top);
    width: var(--board-width);
    height: var(--board-height);
    overflow: visible;
    border-color: rgba(56, 189, 248, 0.2);
    background:
        radial-gradient(circle at 78% 16%, rgba(59, 130, 246, 0.08), transparent 24%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.02) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.02) 0 1px, transparent 1px 32px);
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.05),
        inset 0 24px 40px rgba(15, 23, 42, 0.14);
}

.motherboard-zone::before,
.motherboard-zone::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.05);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.04));
}

.motherboard-zone::before {
    left: 9%;
    top: 14%;
    width: 46%;
    height: 36%;
}

.motherboard-zone::after {
    left: 12%;
    top: 58%;
    width: 34%;
    height: 16%;
}

.motherboard-zone > .zone-label {
    left: 0.7rem;
    top: 0.55rem;
    border-color: rgba(56, 189, 248, 0.24);
    background-color: rgba(13, 30, 61, 0.7);
    color: rgba(125, 211, 252, 0.96);
}

.cpu-slot {
    left: 23%;
    top: 18%;
    width: 21%;
    height: 21%;
    border-color: rgba(96, 165, 250, 0.28);
    background:
        radial-gradient(circle at 50% 45%, rgba(96, 165, 250, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.28));
}

.cpu-slot > .zone-label {
    left: 50%;
    top: 0.32rem;
    transform: translateX(-50%);
}

.ram-area {
    left: 72%;
    top: 16%;
    width: 15%;
    height: 42%;
    overflow: visible;
}

.ram-slot {
    width: 34%;
    height: 100%;
    min-height: 0;
    border-color: rgba(125, 211, 252, 0.24);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.56), rgba(15, 23, 42, 0.18)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.1) 0 2px, transparent 2px 12px);
}

.ram-area .ram-slot:first-child {
    left: 10%;
    top: 0;
}

.ram-area .ram-slot:last-child {
    left: 56%;
    top: 0;
}

.ram-slot > .zone-label {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
    font-size: 0.54rem;
    max-width: calc(100% - 0.2rem);
}

.m2-slot {
    left: var(--m2-left);
    top: var(--m2-top);
    width: var(--m2-width);
    height: var(--m2-height);
    overflow: visible;
    border-color: rgba(45, 212, 191, 0.24);
    background:
        linear-gradient(180deg, rgba(22, 78, 99, 0.18), rgba(15, 23, 42, 0.12)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 2px, transparent 2px 16px);
}

.m2-slot > .zone-label {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
    font-size: 0.54rem;
}

.sata-slot {
    left: var(--sata-left);
    top: var(--sata-top);
    width: var(--sata-width);
    height: var(--sata-height);
    border-color: rgba(248, 250, 252, 0.16);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.14)),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.02));
}

.pcie-slot {
    left: 82%;
    top: 96%;
    width: 86%;
    height: 38%;
    overflow: visible;
    border-color: rgba(96, 165, 250, 0.22);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.16)),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.01));
}

.pcie-slot::before {
    content: "";
    position: absolute;
    right: calc(100% - 0.05rem);
    top: 44%;
    width: 34%;
    height: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.24), rgba(59, 130, 246, 0.06));
    pointer-events: none;
}

.pcie-slot::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    width: 0.38rem;
    height: calc(100% - 1.1rem);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.32), rgba(148, 163, 184, 0.06));
    pointer-events: none;
}

.pcie-slot > .zone-label {
    left: 0.55rem;
    top: 0.38rem;
}

.psu-slot {
    left: var(--psu-left);
    top: var(--psu-top);
    width: var(--psu-width);
    height: var(--psu-height);
    border-color: rgba(34, 197, 94, 0.18);
    background:
        radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.18));
}

@media (max-width: 768px) {
    .case-zone {
        --board-left: 6%;
        --board-top: 10%;
        --board-width: 54%;
        --board-height: 56%;
        --m2-left: 107%;
        --m2-top: 35%;
        --m2-width: 15%;
        --m2-height: 44%;
        --sata-left: 70%;
        --sata-top: 31%;
        --sata-width: 21%;
        --sata-height: 25%;
        --psu-left: 7%;
        --psu-top: 68%;
        --psu-width: 31%;
        --psu-height: 24%;
    }

    .zone-label {
        font-size: 0.56rem;
    }

    .cpu-slot {
        left: 22%;
        width: 23%;
        height: 22%;
    }

    .ram-area {
        left: 71%;
        width: 16%;
    }

    .pcie-slot {
        left: 79%;
        top: 95%;
        width: 88%;
        height: 39%;
    }
}

/* ============================================================
   Stage 16 - Preparacion de assets reales con fallback seguro
   ============================================================ */
.installed-component-content {
    position: absolute;
    inset: 0.4rem;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    pointer-events: none;
}

.installed-component-content[data-component-category="motherboards"] {
    inset: 0.75rem;
}

.installed-component-asset {
    position: absolute;
    inset: 0.28rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.installed-component-content.has-real-image .installed-component-asset {
    opacity: 1;
    visibility: visible;
}

.installed-component-asset img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.installed-component-block {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.installed-component-content.has-real-image .installed-component-block {
    opacity: 0;
}

.installed-component-content.component-image-fallback .installed-component-block,
.installed-component-content:not(.has-real-image) .installed-component-block {
    opacity: 1;
}

.installed-component-name {
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0.15rem;
    z-index: 4;
    max-width: none;
    padding: 0.18rem 0.35rem;
    border-radius: 5px;
    background-color: rgba(11, 19, 41, 0.9);
    color: var(--text-main);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.installed-component-content[data-component-category="motherboards"] .installed-component-name {
    left: auto;
    right: 0.2rem;
    bottom: 0.2rem;
    max-width: 42%;
    text-align: right;
}

/* ============================================================
   Stage 13 - Bloques limpios sin SVG en el armado
   ============================================================ */
.installed-component-content {
    position: absolute;
    inset: 0.4rem;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.installed-component-content[data-component-category="motherboards"] {
    inset: 0.75rem;
    z-index: 1;
}

.motherboard-zone > .cpu-slot,
.motherboard-zone > .ram-area,
.motherboard-zone > .m2-slot,
.motherboard-zone > .pcie-slot {
    z-index: 2;
}

.installed-component-block {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.22rem;
    padding: 0.4rem 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.installed-component-content[data-component-category="motherboards"] .installed-component-block {
    justify-content: flex-start;
    padding-top: 0.5rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.32), rgba(15, 23, 42, 0.46));
    border-style: dashed;
}

.installed-component-name,
.installed-component-meta {
    position: static;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.installed-component-name {
    padding: 0.18rem 0.38rem;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.88);
    color: var(--text-main);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1;
}

.installed-component-meta {
    padding-left: 0.05rem;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1.1;
}

.installed-component-asset img,
.installed-component-asset svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
/* Stage 019.1 - Real cabinet layout correction */
.panel-center,
.cabinet-schematic,
.assembly-stage,
.case-zone {
    overflow: hidden;
}

.case-zone {
    --board-left: 6.5%;
    --board-top: 10%;
    --board-width: 52%;
    --board-height: 58%;
    --m2-left: 108.5%;
    --m2-top: 36%;
    --m2-width: 14.5%;
    --m2-height: 45%;
    --sata-left: 71%;
    --sata-top: 31%;
    --sata-width: 20%;
    --sata-height: 26%;
    --psu-left: 8%;
    --psu-top: 67%;
    --psu-width: 30%;
    --psu-height: 25%;
}

.drop-zone {
    border-width: 1.5px;
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.28);
    background-color: rgba(15, 23, 42, 0.16);
    box-shadow: none;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: rgba(34, 211, 238, 0.62);
}

.zone-label {
    max-width: calc(100% - 0.7rem);
    padding: 0.12rem 0.36rem;
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.18);
    background-color: rgba(11, 19, 41, 0.68);
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.62rem;
    letter-spacing: 0.35px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.motherboard-zone {
    left: var(--board-left);
    top: var(--board-top);
    width: var(--board-width);
    height: var(--board-height);
    overflow: visible;
    border-color: rgba(56, 189, 248, 0.2);
    background:
        radial-gradient(circle at 78% 16%, rgba(59, 130, 246, 0.08), transparent 24%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.02) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.02) 0 1px, transparent 1px 32px);
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.05),
        inset 0 24px 40px rgba(15, 23, 42, 0.14);
}

.motherboard-zone::before,
.motherboard-zone::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.05);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.04));
}

.motherboard-zone::before {
    left: 9%;
    top: 14%;
    width: 46%;
    height: 36%;
}

.motherboard-zone::after {
    left: 12%;
    top: 58%;
    width: 34%;
    height: 16%;
}

.motherboard-zone > .zone-label {
    left: 0.7rem;
    top: 0.55rem;
    border-color: rgba(56, 189, 248, 0.24);
    background-color: rgba(13, 30, 61, 0.7);
    color: rgba(125, 211, 252, 0.96);
}

.cpu-slot {
    left: 23%;
    top: 18%;
    width: 21%;
    height: 21%;
    border-color: rgba(96, 165, 250, 0.28);
    background:
        radial-gradient(circle at 50% 45%, rgba(96, 165, 250, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.28));
}

.cpu-slot > .zone-label {
    left: 50%;
    top: 0.32rem;
    transform: translateX(-50%);
}

.ram-area {
    left: 72%;
    top: 16%;
    width: 15%;
    height: 42%;
    overflow: visible;
}

.ram-slot {
    width: 34%;
    height: 100%;
    min-height: 0;
    border-color: rgba(125, 211, 252, 0.24);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.56), rgba(15, 23, 42, 0.18)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.1) 0 2px, transparent 2px 12px);
}

.ram-area .ram-slot:first-child {
    left: 10%;
    top: 0;
}

.ram-area .ram-slot:last-child {
    left: 56%;
    top: 0;
}

.ram-slot > .zone-label {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
    font-size: 0.54rem;
    max-width: calc(100% - 0.2rem);
}

.m2-slot {
    left: var(--m2-left);
    top: var(--m2-top);
    width: var(--m2-width);
    height: var(--m2-height);
    overflow: visible;
    border-color: rgba(45, 212, 191, 0.24);
    background:
        linear-gradient(180deg, rgba(22, 78, 99, 0.18), rgba(15, 23, 42, 0.12)),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 2px, transparent 2px 16px);
}

.m2-slot > .zone-label {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
    font-size: 0.54rem;
}

.sata-slot {
    left: var(--sata-left);
    top: var(--sata-top);
    width: var(--sata-width);
    height: var(--sata-height);
    border-color: rgba(248, 250, 252, 0.16);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.14)),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.02));
}

.pcie-slot {
    left: 82%;
    top: 96%;
    width: 86%;
    height: 38%;
    overflow: visible;
    border-color: rgba(96, 165, 250, 0.22);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.16)),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.01));
}

.pcie-slot::before {
    content: "";
    position: absolute;
    right: calc(100% - 0.05rem);
    top: 44%;
    width: 34%;
    height: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.24), rgba(59, 130, 246, 0.06));
    pointer-events: none;
}

.pcie-slot::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    width: 0.38rem;
    height: calc(100% - 1.1rem);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.32), rgba(148, 163, 184, 0.06));
    pointer-events: none;
}

.pcie-slot > .zone-label {
    left: 0.55rem;
    top: 0.38rem;
}

.psu-slot {
    left: var(--psu-left);
    top: var(--psu-top);
    width: var(--psu-width);
    height: var(--psu-height);
    border-color: rgba(34, 197, 94, 0.18);
    background:
        radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.18));
}

@media (max-width: 768px) {
    .case-zone {
        --board-left: 6%;
        --board-top: 10%;
        --board-width: 54%;
        --board-height: 56%;
        --m2-left: 107%;
        --m2-top: 35%;
        --m2-width: 15%;
        --m2-height: 44%;
        --sata-left: 70%;
        --sata-top: 31%;
        --sata-width: 21%;
        --sata-height: 25%;
        --psu-left: 7%;
        --psu-top: 68%;
        --psu-width: 31%;
        --psu-height: 24%;
    }

    .zone-label {
        font-size: 0.56rem;
    }

    .cpu-slot {
        left: 22%;
        width: 23%;
        height: 22%;
    }

    .ram-area {
        left: 71%;
        width: 16%;
    }

    .pcie-slot {
        left: 79%;
        top: 95%;
        width: 88%;
        height: 39%;
    }
}

/* Stage 020.1 - Same-canvas mounted cabinet layers */
.cabinet-mounted-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cabinet-base-image,
.cabinet-layer-system,
.cabinet-layer,
.cabinet-layer img {
    position: absolute;
    inset: 0;
}

.cabinet-base-image,
.cabinet-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cabinet-layer {
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.cabinet-layer--guide {
    opacity: 0.28;
    filter: saturate(0.9);
    z-index: 10;
}

.cabinet-layer[data-layer-role="motherboard"] {
    z-index: 2;
}

.cabinet-layer[data-layer-role="cpu"] {
    z-index: 3;
}

.cabinet-layer[data-layer-role="ram"] {
    z-index: 4;
}

.cabinet-layer[data-layer-role="m2"] {
    z-index: 5;
}

.cabinet-layer[data-layer-role="sata"] {
    z-index: 6;
}

.cabinet-layer[data-layer-role="psu"] {
    z-index: 7;
}

.cabinet-layer[data-layer-role="gpu"] {
    z-index: 8;
}

.cabinet-layer[data-layer-role="cooler"] {
    z-index: 9;
}

.cabinet-mounted-scene.cooler-reveal .cabinet-layer[data-layer-role="cooler"] {
    opacity: 0.06;
}

.cabinet-connection-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}

.cabinet-connection-line {
    fill: none;
    stroke: rgba(125, 211, 252, 0.62);
    stroke-width: 0.42;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.82;
}

.cabinet-connection-dot {
    fill: rgba(186, 230, 253, 0.72);
}

.cabinet-connection-dot-anchor {
    opacity: 0.44;
}

.cabinet-connection-dot-target {
    opacity: 0.78;
}

.build-mode-challenge .cabinet-connection-layer {
    display: none;
}

.case-zone .drop-zone {
    z-index: 11;
}

.case-zone .zone-label,
.case-zone .assembly-badge {
    z-index: 12;
}

.cooler-hover-zone {
    position: absolute;
    left: 23.8%;
    top: 18.8%;
    width: 17.6%;
    height: 18.2%;
    z-index: 11;
    pointer-events: none;
    background: transparent;
}




/* Stage 020.2 - Real cabinet dropzone cleanup */
.case-zone.cabinet-mounted-mode .assembly-badge {
    display: none !important;
}

.case-zone.cabinet-mounted-mode .motherboard-zone::before,
.case-zone.cabinet-mounted-mode .motherboard-zone::after,
.case-zone.cabinet-mounted-mode .pcie-slot::before,
.case-zone.cabinet-mounted-mode .pcie-slot::after,
.case-zone.cabinet-mounted-mode .drop-zone::before,
.case-zone.cabinet-mounted-mode .drop-zone::after {
    content: none !important;
}

.case-zone.cabinet-mounted-mode .drop-zone,
.case-zone.cabinet-mounted-mode .motherboard-zone,
.case-zone.cabinet-mounted-mode .cpu-slot,
.case-zone.cabinet-mounted-mode .ram-slot,
.case-zone.cabinet-mounted-mode .m2-slot,
.case-zone.cabinet-mounted-mode .pcie-slot,
.case-zone.cabinet-mounted-mode .psu-slot,
.case-zone.cabinet-mounted-mode .sata-slot {
    background: transparent !important;
    box-shadow: none !important;
}

.case-zone.cabinet-mounted-mode .drop-zone {
    transition: border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.case-zone.cabinet-mounted-mode .drop-zone:hover,
.case-zone.cabinet-mounted-mode .drop-zone.drag-over {
    border-color: rgba(125, 211, 252, 0.34) !important;
    background-color: rgba(125, 211, 252, 0.04) !important;
}

.case-zone.cabinet-mounted-mode .drop-zone.installed {
    border-color: rgba(16, 185, 129, 0.16) !important;
    background-color: transparent !important;
}

.case-zone.cabinet-mounted-mode .drop-zone > .zone-label {
    opacity: 0 !important;
    transform: translateY(-0.1rem);
}

.case-zone.cabinet-mounted-mode .drop-zone:hover > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone.drag-over > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone.installed > .zone-label {
    opacity: 0.82 !important;
}

.case-zone.cabinet-mounted-mode .ram-area {
    pointer-events: none;
}

.case-zone.cabinet-mounted-mode .ram-slot {
    pointer-events: auto;
}

/* Stage 021 - Central workspace enlargement */
.app-grid {
    padding: 0.5rem;
    gap: 0.5rem;
    max-width: 1720px;
}

.app-header {
    padding: 0.2rem 0.82rem;
    gap: 0.45rem;
    border-radius: 12px;
}

.institution-logo {
    width: 44px;
}

.header-kicker {
    font-size: 0.94rem;
}

.header-titles {
    column-gap: 0.38rem;
}

.main-title {
    font-size: clamp(0.94rem, 1.4vw, 1.16rem);
}

.subtitle {
    font-size: 0.66rem;
}

.school-name {
    font-size: 0.56rem;
}

.app-content {
    grid-template-columns: minmax(248px, 0.92fr) minmax(0, 1.95fr) minmax(258px, 0.98fr);
    gap: 0.65rem;
}

.panel-left,
.panel-right {
    padding: 0.9rem;
}

.panel-center {
    padding: 0.58rem 0.62rem 0.62rem;
}

.panel-center h2 {
    font-size: 1rem;
    line-height: 1.1;
    margin-bottom: 0.48rem;
    padding-bottom: 0.28rem;
}

.cabinet-schematic {
    padding: 0.32rem 0.36rem 0.36rem;
    gap: 0.32rem;
    border-radius: 14px;
}

.assembly-stage {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    flex: 1 1 auto;
}

.case-zone {
    left: 1.5%;
    top: 1.5%;
    width: 97%;
    height: 97%;
    border-width: 2px;
    border-radius: 20px;
}

.app-footer {
    padding: 0.42rem 0.9rem;
    border-radius: 12px;
}

.action-buttons,
.mode-buttons {
    gap: 0.55rem;
}

.btn {
    font-size: 0.78rem;
    padding: 0.5rem 0.92rem;
}

@media (max-width: 1100px) {
    .app-content {
        grid-template-columns: 252px minmax(0, 1fr);
    }

    .panel-center {
        padding: 0.62rem;
    }
}

@media (max-width: 768px) {
    .app-grid {
        padding: 0.45rem;
        gap: 0.45rem;
    }

    .panel-center {
        padding: 0.62rem;
    }

    .cabinet-schematic {
        padding: 0.35rem;
    }
}

/* Stage 021.1 - Single-frame central workspace */
.cabinet-schematic {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0;
    border-radius: 0;
}

.case-zone.cabinet-mounted-mode {
    inset: 0.75% !important;
}

@media (max-width: 768px) {
    .cabinet-schematic {
        padding: 0;
    }

    .case-zone.cabinet-mounted-mode {
        inset: 1% !important;
    }
}

/* Stage 021.2 - Central workspace expansion */
.panel-center {
    padding: 0.38rem 0.42rem 0.42rem;
    gap: 0.22rem;
    border-color: rgba(106, 149, 209, 0.1);
    box-shadow: 0 12px 26px rgba(2, 9, 22, 0.14);
}

.panel-center h2 {
    margin-bottom: 0.22rem;
    padding-bottom: 0.2rem;
}

.cabinet-schematic {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.assembly-stage {
    width: 100%;
    height: 100%;
}

.case-zone.cabinet-mounted-mode {
    inset: 0.3% !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
}

@media (max-width: 1100px) {
    .panel-center {
        padding: 0.42rem 0.45rem 0.45rem;
    }
}

@media (max-width: 768px) {
    .panel-center {
        padding: 0.5rem;
        gap: 0.28rem;
    }

    .panel-center h2 {
        margin-bottom: 0.28rem;
    }

    .case-zone.cabinet-mounted-mode {
        inset: 0.7% !important;
    }
}

/* Stage 022 - Dropzone calibration system */
.component-card-calibration-disabled {
    opacity: 0.72;
}

.dropzone-calibration-toolbar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9200;
    display: grid;
    gap: 0.65rem;
    width: min(25rem, calc(100vw - 2rem));
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(120, 167, 231, 0.28);
    background: rgba(7, 27, 52, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(2, 9, 22, 0.28);
}

.dropzone-calibration-toolbar.is-minimized {
    width: min(16rem, calc(100vw - 2rem));
}

.dropzone-calibration-toolbar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.dropzone-calibration-drag-handle {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
    cursor: move;
    user-select: none;
    touch-action: none;
}

.dropzone-calibration-status {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: rgba(226, 232, 240, 0.96);
    white-space: nowrap;
}

.dropzone-calibration-drag-hint {
    font-size: 0.62rem;
    color: rgba(191, 219, 254, 0.84);
}

.dropzone-calibration-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
}

.dropzone-calibration-btn {
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.28rem 0.58rem;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.dropzone-calibration-btn-secondary {
    background: rgba(30, 41, 59, 0.88);
}

.dropzone-calibration-btn:hover:not(:disabled) {
    background: rgba(29, 78, 216, 0.72);
    border-color: rgba(125, 211, 252, 0.42);
}

.dropzone-calibration-btn:disabled {
    opacity: 0.48;
    cursor: default;
}

.dropzone-calibration-toolbar-body {
    display: grid;
    gap: 0.35rem;
}

.dropzone-calibration-toolbar.is-minimized .dropzone-calibration-toolbar-body,
.dropzone-calibration-toolbar.is-minimized .dropzone-calibration-actions > :not([data-calibration-action="toggle"]) {
    display: none;
}

.dropzone-calibration-output {
    display: grid;
    gap: 0.35rem;
}

.dropzone-calibration-output-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.92);
}

.dropzone-calibration-output-text {
    width: 100%;
    min-height: 9rem;
    resize: vertical;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 10px;
    padding: 0.7rem;
    background: rgba(15, 23, 42, 0.92);
    color: #e2e8f0;
    font: 600 0.72rem/1.45 Consolas, "Courier New", monospace;
}

.case-zone.dropzone-calibration-mode .drop-zone,
.case-zone.dropzone-calibration-mode .ram-area {
    touch-action: none;
}

.dropzone-calibration-chip,
.dropzone-resize-handle {
    display: none;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .motherboard-zone,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .cpu-slot,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .ram-area,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .m2-slot,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .pcie-slot,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .psu-slot,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .sata-device-slot {
    border-style: solid !important;
    border-width: 1px !important;
    border-color: rgba(125, 211, 252, 0.9) !important;
    background: rgba(14, 116, 144, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(186, 230, 253, 0.14) !important;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone.installed,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .sata-device-slot.installed {
    border-color: rgba(16, 185, 129, 0.82) !important;
    background: rgba(16, 185, 129, 0.12) !important;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone > .zone-label,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone:hover > .zone-label,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone.drag-over > .zone-label,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone.installed > .zone-label {
    opacity: 0 !important;
}

.dropzone-calibration-active .dropzone-calibration-chip,
.dropzone-calibration-active .dropzone-resize-handle {
    display: block;
}

.dropzone-calibration-chip {
    position: absolute;
    left: 0.18rem;
    top: 0.18rem;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    max-width: calc(100% - 0.7rem);
    padding: 0.16rem 0.32rem;
    border-radius: 8px;
    border: 1px solid rgba(186, 230, 253, 0.22);
    background: rgba(2, 6, 23, 0.74);
    color: #e2e8f0;
    pointer-events: none;
}

.dropzone-calibration-key {
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.34px;
    text-transform: uppercase;
    color: #f8fafc;
}

.dropzone-calibration-meta {
    font-size: 0.48rem;
    line-height: 1.15;
    color: rgba(226, 232, 240, 0.88);
}

.dropzone-resize-handle {
    position: absolute;
    right: -0.18rem;
    bottom: -0.18rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(14, 165, 233, 0.96);
    box-shadow: 0 4px 10px rgba(2, 9, 22, 0.25);
    cursor: nwse-resize;
    z-index: 16;
}

.dropzone-calibration-active-zone {
    z-index: 18 !important;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .ram-area {
    pointer-events: auto !important;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .ram-slot {
    pointer-events: none !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .sata-slot {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .sata-device-slot {
    min-height: 0 !important;
}

@media (max-width: 768px) {
    .dropzone-calibration-toolbar {
        top: 0.55rem;
        right: 0.55rem;
        left: auto;
        width: min(22rem, calc(100vw - 1.1rem));
        border-radius: 14px;
    }

    .dropzone-calibration-toolbar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dropzone-calibration-status {
        font-size: 0.64rem;
        white-space: normal;
    }

    .dropzone-calibration-btn {
        font-size: 0.62rem;
        padding: 0.26rem 0.5rem;
    }

    .dropzone-calibration-output-text {
        min-height: 7.5rem;
    }
}

.panel-center {
    position: relative;
}


/* Stage 023 - Definitive dropzone coordinates */
.dropzone-calibration-toolbar {
    display: none;
}

.dropzone-calibration-ui-enabled .dropzone-calibration-toolbar,
.dropzone-calibration-active .dropzone-calibration-toolbar {
    display: grid;
}

.header-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.04rem;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding-right: 2.5rem;
}

.header-product {
    font-size: 0.62rem;
    line-height: 1;
}

.main-title {
    line-height: 0.98;
}

.subtitle {
    max-width: 58ch;
    line-height: 1.02;
}

.section-status {
    gap: 0.7rem;
    overflow-y: auto;
}

.section-status .status-list {
    height: auto;
    overflow: visible;
    flex: 0 0 auto;
}

.technical-summary-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(58, 91, 138, 0.16);
    box-shadow: 0 10px 22px rgba(12, 35, 66, 0.06);
    border-radius: 6px;
    padding: 0.75rem 0.8rem;
    color: var(--ink-dark);
}

.technical-summary-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #285ea8;
    margin-bottom: 0.55rem;
}

.technical-summary-list {
    display: grid;
    gap: 0.42rem;
}

.technical-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 0.55rem;
    align-items: start;
    font-size: 0.78rem;
    line-height: 1.25;
    padding-bottom: 0.34rem;
    border-bottom: 1px dashed rgba(58, 91, 138, 0.12);
}

.technical-summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.technical-summary-row dt {
    font-weight: 800;
    color: #36557f;
}

.technical-summary-row dd {
    margin: 0;
    color: #1d3557;
}

.installation-history-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(58, 91, 138, 0.16);
    box-shadow: 0 10px 22px rgba(12, 35, 66, 0.06);
    border-radius: 6px;
    padding: 0.75rem 0.8rem;
    color: var(--ink-dark);
}

.installation-history-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.6rem;
}

.installation-history-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #285ea8;
}

.installation-history-subtitle {
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.installation-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 16rem;
    overflow-y: auto;
    padding-right: 0.18rem;
}

.installation-history-empty {
    font-size: 0.76rem;
    color: var(--ink-muted);
    padding: 0.2rem 0;
}

.installation-history-entry {
    border-radius: 8px;
    border: 1px solid rgba(58, 91, 138, 0.12);
    background: rgba(255, 255, 255, 0.72);
    padding: 0.55rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.installation-history-entry-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.installation-history-time {
    font-size: 0.7rem;
    font-weight: 800;
    color: #36557f;
}

.installation-history-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
    background: rgba(148, 163, 184, 0.14);
    color: #36557f;
}

.installation-history-message {
    font-size: 0.76rem;
    line-height: 1.35;
    color: #1d3557;
}

.installation-history-detail {
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--ink-muted);
}

.history-result-correct {
    border-left: 3px solid rgba(16, 185, 129, 0.72);
}

.history-result-correct .installation-history-badge {
    background: rgba(16, 185, 129, 0.14);
    color: #0e7a53;
}

.history-result-incorrect {
    border-left: 3px solid rgba(239, 68, 68, 0.72);
}

.history-result-incorrect .installation-history-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #a11d33;
}

.history-result-removed {
    border-left: 3px solid rgba(245, 158, 11, 0.72);
}

.history-result-removed .installation-history-badge {
    background: rgba(245, 158, 11, 0.14);
    color: #9a6700;
}

.history-result-replaced {
    border-left: 3px solid rgba(59, 130, 246, 0.72);
}

.history-result-replaced .installation-history-badge {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4f91;
}

.history-result-system {
    border-left: 3px solid rgba(100, 116, 139, 0.72);
}

.history-result-system .installation-history-badge {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.case-zone.cabinet-mounted-mode .drop-zone > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone:hover > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone.drag-over > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone.installed > .zone-label {
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    .header-titles {
        padding-right: 0;
    }

    .technical-summary-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}


/* Stage 026 - Efecto iman / feedback visual temporal */
@keyframes dropzoneSnapSuccessPulse {
    0% {
        box-shadow:
            inset 0 0 0 1px rgba(34, 197, 94, 0.08),
            0 0 0 0 rgba(34, 197, 94, 0);
        transform: scale(0.995);
    }
    38% {
        box-shadow:
            inset 0 0 0 1px rgba(52, 211, 153, 0.5),
            0 0 0 10px rgba(34, 197, 94, 0.12),
            0 0 22px rgba(16, 185, 129, 0.26);
        transform: scale(1.018);
    }
    100% {
        box-shadow:
            inset 0 0 0 1px rgba(34, 197, 94, 0),
            0 0 0 18px rgba(34, 197, 94, 0),
            0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }
}

@keyframes dropzoneSnapErrorShake {
    0%,
    100% {
        transform: translateX(0);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
    18% {
        transform: translateX(-5px);
    }
    36% {
        transform: translateX(5px);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.12);
    }
    54% {
        transform: translateX(-4px);
    }
    72% {
        transform: translateX(4px);
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.22);
    }
}

.case-zone.cabinet-mounted-mode .drop-zone {
    transform-origin: center;
    will-change: transform, box-shadow;
}

.case-zone.cabinet-mounted-mode .drop-zone.dropzone-snap-success,
.case-zone.cabinet-mounted-mode .drop-zone.dropzone-snap-error {
    opacity: 1;
}

.case-zone.cabinet-mounted-mode .drop-zone.dropzone-snap-success {
    animation: dropzoneSnapSuccessPulse 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-zone.cabinet-mounted-mode .drop-zone.dropzone-snap-error {
    animation: dropzoneSnapErrorShake 460ms ease;
}

.case-zone.cabinet-mounted-mode .drop-zone.dropzone-snap-success > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone.dropzone-snap-error > .zone-label {
    opacity: 0 !important;
    visibility: hidden !important;
}

.case-zone.cabinet-mounted-mode .drop-zone.dropzone-help-target:not(.installed) {
    outline: 2px dashed rgba(126, 198, 255, 0.78);
    outline-offset: -6px;
    box-shadow: 0 0 0 6px rgba(126, 198, 255, 0.14), inset 0 0 0 1px rgba(126, 198, 255, 0.22);
    background: linear-gradient(180deg, rgba(126, 198, 255, 0.12), rgba(126, 198, 255, 0.04));
}

.case-zone.cabinet-mounted-mode .drop-zone.dropzone-help-target:not(.installed) > .zone-label {
    opacity: 0 !important;
    visibility: hidden !important;
}
@keyframes motherboardReplacementPulse {
    0% {
        border-color: rgba(125, 211, 252, 0.18);
        box-shadow:
            0 0 0 0 rgba(96, 165, 250, 0),
            0 0 0 0 rgba(191, 219, 254, 0);
        background-color: rgba(125, 211, 252, 0);
    }
    35% {
        border-color: rgba(125, 211, 252, 0.92);
        box-shadow:
            0 0 0 3px rgba(125, 211, 252, 0.55),
            0 0 0 12px rgba(96, 165, 250, 0.14),
            0 0 28px rgba(125, 211, 252, 0.28);
        background-color: rgba(125, 211, 252, 0.1);
    }
    100% {
        border-color: rgba(125, 211, 252, 0.12);
        box-shadow:
            0 0 0 0 rgba(96, 165, 250, 0),
            0 0 0 24px rgba(191, 219, 254, 0),
            0 0 0 rgba(125, 211, 252, 0);
        background-color: rgba(125, 211, 252, 0);
    }
}

@keyframes motherboardReplacementBadgeFade {
    0% {
        opacity: 0;
        transform: translate(-50%, 0.35rem) scale(0.96);
    }
    18% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
    82% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -0.25rem) scale(0.98);
    }
}

.case-zone.cabinet-mounted-mode .motherboard-zone {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.case-zone.cabinet-mounted-mode .motherboard-zone.motherboard-replacement-feedback {
    border-color: rgba(125, 211, 252, 0.9) !important;
    background-color: rgba(125, 211, 252, 0.05) !important;
    box-shadow:
        0 0 0 3px rgba(125, 211, 252, 0.48),
        0 0 0 12px rgba(96, 165, 250, 0.12),
        0 0 28px rgba(125, 211, 252, 0.26) !important;
    animation: motherboardReplacementPulse 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-zone.cabinet-mounted-mode .motherboard-zone .motherboard-replacement-badge {
    position: absolute;
    left: 50%;
    top: 0.9rem;
    transform: translateX(-50%);
    padding: 0.42rem 0.8rem;
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.92));
    color: #0f3a63;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    z-index: 12;
}

.case-zone.cabinet-mounted-mode .motherboard-zone .motherboard-replacement-badge.is-visible {
    animation: motherboardReplacementBadgeFade 1100ms ease;
}







/* Stage 034 - Post visual test fixes */
.header-session-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.18rem;
    text-align: right;
}

.session-welcome-text,
.challenge-timer-text {
    margin: 0;
    max-width: min(24ch, 20vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-welcome-text {
    font-size: 0.78rem;
    font-weight: 800;
    color: #17355b;
}

.challenge-timer-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.9rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(13, 53, 96, 0.08);
    border: 1px solid rgba(35, 82, 132, 0.14);
    color: #0f2d52;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.build-mode-challenge .challenge-timer-text {
    background: rgba(186, 28, 28, 0.1);
    border-color: rgba(186, 28, 28, 0.2);
    color: #8f1626;
}

.challenge-start-modal[hidden] {
    display: none;
}

.challenge-start-box {
    width: min(92vw, 32rem);
}

.challenge-start-body {
    padding: 0.25rem 0 0;
}

.challenge-start-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.case-zone.cabinet-mounted-mode .dropzone-calibration-chip,
.case-zone.cabinet-mounted-mode .dropzone-resize-handle {
    opacity: 0 !important;
    visibility: hidden !important;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .dropzone-calibration-chip,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .dropzone-resize-handle {
    opacity: 1 !important;
    visibility: visible !important;
}

.case-zone.cabinet-mounted-mode .drop-zone > .zone-label {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(0.16rem);
}

.build-mode-help .case-zone.cabinet-mounted-mode .drop-zone.dropzone-help-target > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone:hover > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone.drag-over > .zone-label,
.case-zone.cabinet-mounted-mode .drop-zone:focus-within > .zone-label {
    opacity: 0.94 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.build-mode-challenge .case-zone.cabinet-mounted-mode .drop-zone > .zone-label,
.build-mode-challenge .case-zone.cabinet-mounted-mode .drop-zone:hover > .zone-label,
.build-mode-challenge .case-zone.cabinet-mounted-mode .drop-zone.drag-over > .zone-label {
    opacity: 0 !important;
    visibility: hidden !important;
}

.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone > .zone-label,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone:hover > .zone-label,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone.drag-over > .zone-label,
.dropzone-calibration-active .case-zone.cabinet-mounted-mode .drop-zone.installed > .zone-label {
    opacity: 1 !important;
    visibility: visible !important;
}

.case-zone.cabinet-mounted-mode .sata-slot {
    align-items: stretch;
}

.case-zone.cabinet-mounted-mode .sata-device-slot {
    position: relative;
    min-height: 4.75rem;
}

.case-zone.cabinet-mounted-mode .sata-device-slot > .zone-label {
    max-width: calc(100% - 0.5rem);
    text-align: center;
}

.section-status,
.status-list,
.status-item,
.status-item-details {
    overflow: visible;
}

.status-list {
    gap: 0.6rem;
}

.status-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.status-detail-chip {
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.status-detail-copy {
    min-width: 0;
    flex: 1 1 10rem;
}

.status-detail-name,
.status-detail-meta {
    overflow-wrap: anywhere;
}

.status-remove-btn,
.build-remove-btn {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    white-space: nowrap;
}

.connection-line-calibration-panel {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 30;
    width: min(28rem, calc(100% - 1.7rem));
    margin-top: 0;
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(58, 91, 138, 0.2);
    background: rgba(251, 253, 255, 0.98);
    box-shadow: 0 18px 42px rgba(12, 35, 66, 0.22);
}

.connection-line-calibration-header {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin-bottom: 0.7rem;
}

.connection-line-calibration-title {
    margin: 0;
    font-size: 0.92rem;
    color: #17355b;
}

.connection-line-calibration-copy {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #516b8c;
}

.connection-line-calibration-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.connection-line-calibration-output {
    width: 100%;
    min-height: 11rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(58, 91, 138, 0.16);
    background: #f8fbff;
    color: #17355b;
    font: 600 0.73rem/1.45 "Consolas", "Courier New", monospace;
    resize: vertical;
}

.connection-line-calibration-active .cabinet-mounted-scene {
    pointer-events: auto !important;
}

.connection-line-calibration-active .cabinet-connection-layer {
    display: block !important;
    z-index: 14 !important;
    pointer-events: none !important;
}

.connection-line-calibration-active .cabinet-connection-line,
.connection-line-calibration-active .cabinet-connection-dot,
.connection-line-calibration-active .connection-line-label,
.connection-line-calibration-active .cabinet-connection-calibration-label {
    pointer-events: none !important;
}

.connection-line-calibration-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.connection-line-calibration-active .connection-line-calibration-overlay {
    pointer-events: auto;
}

.connection-line-html-handle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    z-index: 60;
}

.connection-line-html-handle-dot {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #2f8cff;
    box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.35);
    pointer-events: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.connection-line-html-handle-label {
    position: absolute;
    left: calc(50% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.16rem 0.34rem;
    border-radius: 999px;
    background: rgba(15, 45, 82, 0.94);
    color: #ffffff;
    font: 700 0.58rem/1 "Poppins", sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 10px 22px rgba(10, 29, 52, 0.22);
}

.connection-line-html-handle.is-selected {
    z-index: 80 !important;
}

.connection-line-html-handle.is-selected .connection-line-html-handle-dot {
    background: #ff9f1c;
    box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.3);
    transform: scale(1.08);
}

.connection-line-html-handle.is-selected .connection-line-html-handle-label {
    background: rgba(171, 94, 0, 0.96);
}

.connection-line-html-handle.is-dragging {
    cursor: grabbing;
}

.connection-line-html-handle.is-dragging .connection-line-html-handle-dot {
    background: #0b66ff;
    box-shadow: 0 0 0 4px rgba(11, 102, 255, 0.28);
    transform: scale(1.12);
}

.connection-line-calibration-active .case-zone .drop-zone,
.connection-line-calibration-active .case-zone .zone-label,
.connection-line-calibration-active .case-zone .assembly-badge,
.connection-line-calibration-active .cooler-hover-zone {
    pointer-events: none !important;
}

.panel-center {
    position: relative;
}

.cabinet-connection-calibration-label,
.connection-line-label {
    fill: #0f2d52;
    font-size: 0.46rem;
    font-weight: 700;
    pointer-events: none;
}

.report-intro-grid {
    align-items: start;
}

.report-section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.report-section-note {
    margin: 0;
    color: #4d6682;
    font-size: 0.78rem;
    line-height: 1.45;
}

.report-technical-summary-card {
    border-color: #c9d9eb;
    background: linear-gradient(180deg, #f9fbfe, #f1f6fc);
}

.report-technical-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.report-summary-row {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-height: 4.6rem;
    padding: 0.72rem 0.82rem;
    border-radius: 12px;
    border: 1px solid #d8e4f0;
    background: #ffffff;
}

.report-summary-row-wide {
    grid-column: 1 / -1;
    min-height: 0;
}

.report-summary-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #35587d;
}

.report-summary-value {
    margin: 0;
    color: #102742;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.report-summary-value-muted {
    color: #66788b;
}

.report-summary-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.36rem;
}

.report-summary-list li {
    line-height: 1.35;
}

.report-table-card,
.report-build-visual-card,
.report-evaluation-card,
.report-history-card {
    break-inside: avoid;
    page-break-inside: avoid;
}

.report-table-wrap {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(58, 91, 138, 0.12);
    background: rgba(255, 255, 255, 0.75);
}

.report-components-table {
    width: 100%;
    border-collapse: collapse;
}

.report-components-table th,
.report-components-table td {
    padding: 0.72rem 0.82rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(58, 91, 138, 0.1);
}

.report-components-table thead th {
    background: rgba(20, 64, 112, 0.08);
    color: #17355b;
    font-size: 0.78rem;
    font-weight: 800;
}

.report-components-table tbody th {
    width: 24%;
    color: #17355b;
    font-size: 0.78rem;
    font-weight: 800;
}

.report-components-table tbody tr:last-child th,
.report-components-table tbody tr:last-child td {
    border-bottom: none;
}

.report-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.report-build-visual {
    justify-content: center;
}

.report-mounted-scene {
    margin-inline: auto;
}

.report-evaluation-card {
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.report-observation-card {
    margin-top: 0.9rem;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.report-page-break-soft {
    break-before: auto;
}

.report-history-list {
    gap: 0.65rem;
}

.report-history-entry {
    break-inside: avoid;
    page-break-inside: avoid;
}

.report-history-empty {
    margin: 0;
    color: #516b8c;
    font-size: 0.78rem;
}

@media print {
    .report-page {
        gap: 0.9rem;
    }

    .report-card {
        box-shadow: none !important;
    }

    .report-summary-row {
        min-height: 0;
        box-shadow: none !important;
    }

    .report-header,
    .report-card,
    .report-table-card,
    .report-build-visual-card,
    .report-evaluation-card,
    .report-history-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

@media (max-width: 900px) {
    .header-session-block {
        align-items: flex-start;
        text-align: left;
    }

    .session-welcome-text,
    .challenge-timer-text {
        max-width: none;
    }

    .challenge-start-actions {
        justify-content: flex-start;
    }

    .challenge-start-actions .btn {
        flex: 1 1 12rem;
    }

    .report-technical-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-summary-row,
    .report-summary-row-wide {
        grid-column: auto;
        min-height: 0;
    }

    .verification-result-actions {
        justify-content: stretch;
    }

    .verification-result-actions .btn {
        flex: 1 1 12rem;
    }

    .connection-line-calibration-toolbar-actions .dropzone-calibration-btn {
        flex: 1 1 10rem;
    }

    .connection-line-calibration-panel {
        left: 0.6rem;
        right: 0.6rem;
        bottom: 0.6rem;
        width: auto;
    }

    .report-components-table,
    .report-components-table thead,
    .report-components-table tbody,
    .report-components-table tr,
    .report-components-table th,
    .report-components-table td {
        display: block;
        width: 100%;
    }

    .report-components-table thead {
        display: none;
    }

    .report-components-table tbody tr {
        padding: 0.6rem 0.72rem;
        border-bottom: 1px solid rgba(58, 91, 138, 0.1);
    }

    .report-components-table tbody tr:last-child {
        border-bottom: none;
    }

    .report-components-table tbody th,
    .report-components-table tbody td {
        padding: 0.18rem 0;
        border: 0;
    }
}


/* Stage 034.1 - Regression fixes */
.app-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.header-logo {
    justify-self: start;
    width: 100%;
    max-width: 15rem;
}

.header-brand {
    min-width: 0;
}

.header-titles {
    justify-self: center;
    grid-template-columns: 1fr !important;
    grid-template-areas:
        "product"
        "title"
        "subtitle";
    row-gap: 0.08rem;
    text-align: center !important;
    align-items: center;
    justify-items: center;
    width: min(62vw, 46rem);
    max-width: 46rem;
}

.header-product,
.main-title,
.subtitle {
    justify-self: center;
}

.header-product {
    font-size: 0.72rem;
    letter-spacing: 1.3px;
}

.main-title {
    font-size: clamp(0.98rem, 1.45vw, 1.18rem);
    line-height: 1.02;
}

.subtitle {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-session-block {
    justify-self: end;
    width: 100%;
    max-width: 15rem;
    min-height: 0;
    align-items: flex-end;
    gap: 0.08rem;
    text-align: right;
}

.session-welcome-text,
.challenge-timer-text {
    max-width: 100%;
    color: rgba(245, 248, 255, 0.96);
}

.session-welcome-text {
    font-size: 0.76rem;
    line-height: 1.1;
}

.challenge-timer-text {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    justify-content: flex-end;
    color: #8ed4ff;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
}

.build-mode-challenge .challenge-timer-text {
    background: transparent;
    border: 0;
    color: #ffd2d8;
}

.session-mode-fieldset {
    border: 1px solid rgba(58, 91, 138, 0.16);
    border-radius: 12px;
    padding: 0.55rem;
    display: grid;
    gap: 0.45rem;
    background: rgba(246, 250, 255, 0.8);
}

.session-mode-legend {
    padding: 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #36557f;
}

.session-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
}

.session-mode-option input {
    margin-top: 0.85rem;
    accent-color: #2563eb;
}

.session-mode-copy {
    flex: 1 1 auto;
    display: grid;
    gap: 0.12rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(58, 91, 138, 0.16);
    background: rgba(255, 255, 255, 0.94);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.session-mode-option input:checked + .session-mode-copy {
    border-color: rgba(37, 99, 235, 0.46);
    background: rgba(219, 234, 254, 0.78);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.session-mode-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #17355b;
}

.session-mode-description {
    font-size: 0.74rem;
    line-height: 1.35;
    color: #516b8c;
}

.case-zone.cabinet-mounted-mode .sata-slot {
    position: absolute !important;
    z-index: 11 !important;
    pointer-events: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-zone.cabinet-mounted-mode .sata-device-slot {
    height: 100% !important;
    pointer-events: auto !important;
}

.case-zone.cabinet-mounted-mode .sata-device-slot.installed {
    border-color: rgba(16, 185, 129, 0.16) !important;
}

@media (max-width: 900px) {
    .app-header {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 0.35rem;
    }

    .header-logo,
    .header-titles,
    .header-session-block {
        justify-self: center;
        max-width: 100%;
        width: 100%;
    }

    .header-session-block {
        align-items: center;
        text-align: center;
    }

    .subtitle {
        white-space: normal;
    }
}

/* Stage 034.2 - Mandatory functional repair */
.session-modal-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
    color: #18385f;
    border-color: rgba(40, 94, 168, 0.34);
    box-shadow: 0 22px 48px rgba(7, 27, 52, 0.28);
}

.session-modal-copy {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #516b8c;
}

.session-modal-form {
    gap: 0.85rem;
}

.session-mode-option {
    align-items: center;
}

.session-mode-option input {
    margin-top: 0;
}

.session-mode-copy {
    min-height: 4rem;
    align-content: center;
}

.session-modal-button {
    margin-top: 0.2rem;
}

.status-item-state,
.status-item-empty {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}










/* Stage 034.14 - Full-size connection line calibration workspace */
.connection-line-calibration-workspace-open {
    overflow: hidden;
}

.connection-line-calibration-workspace {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(3, 10, 22, 0.78);
    backdrop-filter: blur(6px);
}

.connection-line-calibration-workspace[hidden] {
    display: none !important;
}

.connection-line-calibration-workspace-shell {
    position: relative;
    width: min(96vw, 1320px);
    height: min(92vh, 980px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: 28px;
    border: 1px solid rgba(101, 148, 214, 0.18);
    background: linear-gradient(180deg, rgba(9, 21, 39, 0.97), rgba(5, 12, 24, 0.94));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.connection-line-calibration-workspace-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.connection-line-calibration-workspace-copy {
    display: grid;
    gap: 0.18rem;
}

.connection-line-calibration-workspace-eyebrow {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(163, 196, 236, 0.92);
}

.connection-line-calibration-workspace-title {
    margin: 0;
    color: #f8fbff;
    font-size: 1.08rem;
}

.connection-line-calibration-workspace-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.connection-line-calibration-field {
    display: grid;
    gap: 0.26rem;
    min-width: min(18rem, 64vw);
}

.connection-line-calibration-field-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(163, 196, 236, 0.88);
}

.connection-line-calibration-select {
    min-height: 2.3rem;
    padding: 0.42rem 0.72rem;
    border-radius: 12px;
    border: 1px solid rgba(101, 148, 214, 0.24);
    background: rgba(8, 20, 37, 0.92);
    color: #eef6ff;
    font: 600 0.78rem/1.25 "Poppins", sans-serif;
}

.connection-line-calibration-select:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.64);
    outline-offset: 1px;
}

.connection-line-calibration-nudge {
    display: grid;
    grid-template-columns: repeat(4, 2.15rem);
    gap: 0.32rem;
}

.connection-line-calibration-nudge-btn {
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(101, 148, 214, 0.24);
    border-radius: 12px;
    background: rgba(8, 20, 37, 0.9);
    color: #f8fbff;
    font: 800 0.95rem/1 "Poppins", sans-serif;
    cursor: pointer;
}

.connection-line-calibration-nudge-btn:hover,
.connection-line-calibration-nudge-btn:focus-visible {
    background: rgba(20, 44, 78, 0.96);
    border-color: rgba(96, 165, 250, 0.62);
    outline: none;
}

.connection-line-calibration-workspace-stage {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-line-calibration-scene {
    position: relative !important;
    inset: auto !important;
    width: min(100%, 1180px);
    height: auto;
    aspect-ratio: 11 / 8;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at 50% 18%, rgba(15, 23, 42, 0.28), transparent 52%), linear-gradient(180deg, rgba(8, 15, 31, 0.22), rgba(8, 15, 31, 0.08)), var(--cabinet-bg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.connection-line-calibration-workspace .cabinet-connection-layer {
    z-index: 12;
}

.connection-line-calibration-workspace .connection-line-calibration-overlay {
    z-index: 13;
}

.connection-line-html-handle {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
}

.connection-line-html-handle-dot {
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #4ea1ff;
    box-shadow: 0 0 0 2px rgba(78, 161, 255, 0.24);
}

.connection-line-html-handle-label {
    left: 50%;
    top: calc(50% - 9px);
    transform: translate(-50%, -100%);
    padding: 0.1rem 0.26rem;
    font-size: 0.5rem;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.connection-line-html-handle:hover .connection-line-html-handle-label,
.connection-line-html-handle:focus-visible .connection-line-html-handle-label,
.connection-line-html-handle.is-selected .connection-line-html-handle-label {
    opacity: 1;
}

.connection-line-html-handle.is-selected .connection-line-html-handle-dot {
    background: #ffb11f;
    box-shadow: 0 0 0 3px rgba(255, 177, 31, 0.26);
    transform: scale(1.08);
}

.connection-line-html-handle.is-dragging .connection-line-html-handle-dot {
    background: #0b66ff;
    box-shadow: 0 0 0 3px rgba(11, 102, 255, 0.24);
    transform: scale(1.1);
}

.connection-line-calibration-panel {
    right: 1rem;
    bottom: 1rem;
    width: min(28rem, calc(100% - 2rem));
    z-index: 30;
}

.connection-line-calibration-output {
    min-height: 10rem;
    max-height: 42vh;
}

@media (max-width: 960px) {
    .connection-line-calibration-workspace {
        padding: 0.55rem;
    }

    .connection-line-calibration-workspace-shell {
        width: 100%;
        height: min(94vh, 980px);
        padding: 0.85rem;
        border-radius: 20px;
    }

    .connection-line-calibration-workspace-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .connection-line-calibration-field {
        min-width: 100%;
    }

    .connection-line-calibration-scene {
        width: 100%;
    }

    .connection-line-calibration-panel {
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100% - 1.5rem);
    }
}

.educational-error-guide {
    margin-top: 0.95rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(44, 72, 112, 0.14);
    background: rgba(244, 248, 255, 0.96);
}

.educational-error-guide-title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #21486f;
}

.educational-error-guide-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.34rem;
    color: #284566;
    font-size: 0.77rem;
    line-height: 1.42;
}

.educational-error-guide-list li {
    margin: 0;
}

.component-helper-line {
    margin: 0.35rem 0 0;
    font-size: 0.67rem;
    line-height: 1.35;
    color: #55708f;
    font-weight: 600;
}




.challenge-exam-modal[hidden] {
    display: none;
}

.challenge-exam-box {
    width: min(94vw, 58rem);
    max-height: min(90vh, 56rem);
    display: flex;
    flex-direction: column;
}

.challenge-exam-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.challenge-exam-progress,
.challenge-exam-batch {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #27486f;
}

.challenge-exam-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 0;
}

.challenge-exam-question-list {
    max-height: min(58vh, 36rem);
    overflow: auto;
    padding-right: 0.35rem;
    display: grid;
    gap: 0.75rem;
}

.challenge-exam-question-card {
    margin: 0;
    border: 1px solid rgba(44, 73, 112, 0.14);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: rgba(248, 251, 255, 0.96);
}

.challenge-exam-question-title {
    padding: 0 0.2rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: #17355b;
}

.challenge-exam-question-text {
    margin: 0.3rem 0 0.8rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #213b5f;
}

.challenge-exam-options {
    display: grid;
    gap: 0.55rem;
}

.challenge-exam-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.72rem 0.78rem;
    border: 1px solid rgba(44, 73, 112, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.challenge-exam-option input {
    margin-top: 0.18rem;
    accent-color: #1d4ed8;
}

.challenge-exam-option-copy {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.challenge-exam-option-text {
    color: #1e3554;
    line-height: 1.45;
}

.challenge-exam-option-meta {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #31537f;
}

.challenge-exam-option-selected {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.challenge-exam-option-locked {
    cursor: default;
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.98);
    box-shadow: none;
}

.challenge-exam-option-selected-locked {
    border-color: rgba(100, 116, 139, 0.4);
    background: rgba(241, 245, 249, 0.98);
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.challenge-exam-error {
    margin: 0;
}

.challenge-exam-result {
    display: grid;
    gap: 0.75rem;
}

.challenge-exam-result-summary {
    border: 1px solid rgba(28, 88, 145, 0.14);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(250, 252, 255, 0.98));
}

.challenge-exam-result-title {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #17355b;
}

.challenge-exam-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.challenge-exam-result-metric {
    border-radius: 12px;
    padding: 0.72rem 0.78rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(44, 73, 112, 0.1);
}

.challenge-exam-result-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #526b8d;
}

.challenge-exam-result-value {
    display: block;
    margin-top: 0.18rem;
    font-size: 1.02rem;
    color: #16365b;
}

.challenge-exam-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.report-exam-card {
    display: grid;
    gap: 0.9rem;
}

.report-exam-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.report-exam-answer-list {
    display: grid;
    gap: 0.7rem;
}

.report-exam-answer-card {
    border-left: 4px solid #8b9caf;
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    background: rgba(247, 250, 253, 0.98);
}

.report-exam-answer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.report-exam-answer-status {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3f587a;
}

.report-exam-answer-correct {
    border-left-color: #2c9a71;
}

.report-exam-answer-incorrect {
    border-left-color: #d46a55;
}

.report-exam-answer-missing {
    border-left-color: #b78a3c;
}

@media (max-width: 900px) {
    .challenge-exam-result-grid,
    .report-exam-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .challenge-exam-box {
        width: min(96vw, 58rem);
    }

    .challenge-exam-toolbar,
    .challenge-exam-actions,
    .report-exam-answer-top,
    .challenge-exam-option-copy {
        flex-direction: column;
        align-items: stretch;
    }

    .challenge-exam-actions .btn {
        width: 100%;
    }
}


/* ============================================================
   Stage 14 - Ajustes UI modal inicial y examen desaf?o
   ============================================================ */
.session-modal-box {
    width: min(92vw, 560px);
    max-width: 560px;
}

.session-modal-form {
    gap: 0.95rem;
}

.session-guide-card {
    display: grid;
    gap: 0.65rem;
    padding: 0.95rem;
    border: 1px solid rgba(24, 56, 95, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(240, 246, 253, 0.98), rgba(249, 251, 255, 0.98));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.session-guide-title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 800;
    color: #17355b;
}

.session-guide-trigger {
    display: block;
    width: 100%;
    padding: 0.35rem;
    border: 1px solid rgba(36, 84, 146, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.session-guide-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.session-guide-trigger:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 3px;
}

.session-guide-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(246, 249, 252, 1), rgba(235, 241, 248, 1));
}

.session-guide-caption {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #426180;
}

.challenge-exam-modal {
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 1vw, 1rem);
    background: rgba(15, 23, 42, 0.44);
}

.challenge-exam-box {
    width: min(98vw, 1200px);
    max-width: 1200px;
    height: min(calc(100vh - 1rem), 940px);
    max-height: calc(100vh - 1rem);
    padding: 1.25rem 1.35rem 1rem;
    border-radius: 24px;
    border: 1px solid rgba(36, 84, 146, 0.18);
    background: linear-gradient(180deg, rgba(244, 248, 253, 0.99), rgba(236, 243, 252, 0.99));
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
    gap: 1rem;
    overflow: hidden;
}

.challenge-exam-box .session-modal-header {
    gap: 0.35rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(36, 84, 146, 0.12);
}

.challenge-exam-box .session-modal-title {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    color: #10253d;
}

.challenge-exam-box .session-modal-copy {
    margin: 0;
    color: #35506f;
    font-size: 0.96rem;
    line-height: 1.55;
}

.challenge-exam-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(36, 84, 146, 0.12);
    border-radius: 16px;
    background: rgba(235, 243, 252, 0.92);
}

.challenge-exam-progress,
.challenge-exam-batch {
    font-size: 0.9rem;
    color: #17355b;
}

.challenge-exam-batch {
    text-align: right;
}

.challenge-exam-form {
    flex: 1 1 auto;
    min-height: 0;
    gap: 1rem;
    overflow: hidden;
}

.challenge-exam-question-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.15rem 0.45rem 0.2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    align-content: start;
    scrollbar-gutter: stable;
}

.challenge-exam-question-card {
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid rgba(36, 84, 146, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.challenge-exam-question-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.challenge-exam-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 1));
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.challenge-exam-question-copy {
    min-width: 0;
}

.challenge-exam-question-title {
    margin: 0 0 0.35rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: #31537f;
}

.challenge-exam-question-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.58;
    color: #10253d;
}

.challenge-exam-options {
    gap: 0.75rem;
}

.challenge-exam-option {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: start;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.98);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    cursor: pointer;
}

.challenge-exam-option:hover {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(241, 247, 255, 0.98);
    transform: translateY(-1px);
}

.challenge-exam-option input {
    margin: 0;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #1d4ed8;
    transform: translateY(0.25rem);
}

.challenge-exam-option-marker {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: #dbe8f7;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.92);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.challenge-exam-option-copy {
    min-width: 0;
    display: grid;
    gap: 0.4rem;
    align-items: start;
}

.challenge-exam-option-text {
    font-size: 0.96rem;
    line-height: 1.55;
    color: #10253d;
}

.challenge-exam-option-meta {
    justify-self: start;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.96);
    color: #1e40af;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.challenge-exam-option-selected {
    border-color: rgba(37, 99, 235, 0.38);
    background: rgba(239, 246, 255, 0.98);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.challenge-exam-option-selected .challenge-exam-option-marker {
    background: #2563eb;
    transform: scale(1.08);
}

.challenge-exam-option-locked {
    cursor: default;
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.98);
    box-shadow: none;
    transform: none;
}

.challenge-exam-option-locked:hover {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.98);
    transform: none;
}

.challenge-exam-option-locked input {
    accent-color: #64748b;
}

.challenge-exam-option-selected-locked {
    border-color: rgba(100, 116, 139, 0.4);
    background: rgba(241, 245, 249, 0.98);
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.challenge-exam-option-selected-locked .challenge-exam-option-marker {
    background: #64748b;
    transform: none;
}

.challenge-exam-footer {
    display: grid;
    gap: 0.9rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(36, 84, 146, 0.12);
}

.challenge-exam-error {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 14px;
    background: rgba(255, 244, 242, 0.98);
    color: #8a1c14;
    font-size: 0.9rem;
    line-height: 1.5;
}

.challenge-exam-result-summary {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(36, 84, 146, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.challenge-exam-result-title {
    margin-bottom: 0.75rem;
    font-size: 0.96rem;
    color: #10253d;
}

.challenge-exam-result-grid {
    gap: 0.85rem;
}

.challenge-exam-result-metric {
    border-radius: 16px;
    padding: 0.85rem 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(36, 84, 146, 0.1);
}

.challenge-exam-result-label {
    font-size: 0.78rem;
    color: #426180;
}

.challenge-exam-result-value {
    margin-top: 0.25rem;
    font-size: 1.15rem;
    color: #10253d;
}

.challenge-exam-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
}

.challenge-exam-actions .btn {
    min-width: 230px;
    min-height: 46px;
    justify-content: center;
}

@media (max-width: 920px) {
    .challenge-exam-toolbar,
    .challenge-exam-result-grid,
    .report-exam-summary-grid {
        grid-template-columns: 1fr;
    }

    .challenge-exam-batch {
        text-align: left;
    }

    .challenge-exam-question-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .session-modal-box {
        width: min(94vw, 560px);
    }

    .challenge-exam-modal {
        padding: 0.4rem;
    }

    .challenge-exam-box {
        width: 100%;
        height: calc(100vh - 0.8rem);
        max-height: calc(100vh - 0.8rem);
        padding: 1rem 0.9rem 0.85rem;
        border-radius: 20px;
    }

    .challenge-exam-question-heading {
        grid-template-columns: 1fr;
    }

    .challenge-exam-question-number {
        width: 2.2rem;
        height: 2.2rem;
    }

    .challenge-exam-option {
        grid-template-columns: auto 1fr;
    }

    .challenge-exam-option-marker {
        display: none;
    }

    .challenge-exam-actions,
    .challenge-exam-option-copy,
    .report-exam-answer-top {
        flex-direction: column;
        align-items: stretch;
    }

    .challenge-exam-actions .btn {
        width: 100%;
        min-width: 0;
    }
}


/* ============================================================
   Stage 15 - Layout amplio del modal inicial de sesion
   ============================================================ */
.build-session-modal {
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 1vw, 1rem);
    background: rgba(15, 23, 42, 0.42);
}

.build-session-modal .session-modal-box {
    width: min(96vw, 1120px);
    max-width: 1120px;
    min-height: min(calc(100vh - 1rem), 760px);
    max-height: calc(100vh - 1rem);
    padding: 1.4rem 1.5rem 1.35rem;
    border-radius: 26px;
    border: 1px solid rgba(36, 84, 146, 0.16);
    background: linear-gradient(180deg, rgba(245, 249, 254, 0.99), rgba(237, 244, 252, 0.99));
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    gap: 1.2rem;
    overflow: hidden;
}

.build-session-modal .session-modal-header {
    gap: 0.35rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(36, 84, 146, 0.12);
}

.build-session-modal .session-modal-title {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    color: #10253d;
}

.build-session-modal .session-modal-copy {
    margin: 0;
    color: #36506e;
    font-size: 0.98rem;
    line-height: 1.55;
}

.build-session-modal .session-modal-form {
    flex: 1 1 auto;
    min-height: 0;
    gap: 0;
}

.session-modal-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
    gap: 1.25rem;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.session-modal-main,
.session-modal-side {
    min-width: 0;
}

.session-modal-main {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.15rem;
    border: 1px solid rgba(36, 84, 146, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.session-modal-side {
    display: flex;
}

.session-modal-main .session-modal-label {
    font-size: 0.86rem;
    color: #24456f;
}

.session-modal-main .session-modal-input {
    min-height: 50px;
    font-size: 0.98rem;
    border-radius: 12px;
}

.session-modal-main .session-mode-fieldset {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(36, 84, 146, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 250, 254, 0.98), rgba(241, 247, 253, 0.98));
}

.session-modal-main .session-mode-legend {
    padding: 0 0.4rem;
    font-size: 0.83rem;
    font-weight: 800;
    color: #2d4d77;
}

.session-modal-main .session-mode-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
}

.session-modal-main .session-mode-option input {
    margin-top: 0.3rem;
    accent-color: #1d4ed8;
}

.session-modal-main .session-mode-copy {
    display: grid;
    gap: 0.3rem;
}

.session-modal-main .session-mode-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #10253d;
}

.session-modal-main .session-mode-description {
    color: #46617f;
    line-height: 1.5;
}

.build-session-modal .session-modal-note {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 0.84rem;
}

.build-session-modal .session-modal-error {
    margin-top: -0.1rem;
    font-size: 0.84rem;
}

.build-session-modal .session-modal-button {
    min-height: 48px;
    margin-top: auto;
    font-size: 0.98rem;
}

.session-modal-side .session-guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    padding: 1.1rem;
    border: 1px solid rgba(36, 84, 146, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(239, 246, 253, 0.98), rgba(252, 254, 255, 0.98));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.session-modal-side .session-guide-title {
    font-size: 0.96rem;
    color: #10253d;
}

.session-modal-side .session-guide-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.55rem;
    border-radius: 18px;
}

.session-modal-side .session-guide-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(56vh, 520px);
    object-fit: contain;
    border-radius: 14px;
}

.session-modal-side .session-guide-caption {
    font-size: 0.84rem;
    color: #3c5a79;
}

@media (max-width: 920px) {
    .build-session-modal .session-modal-box {
        width: min(95vw, 960px);
        min-height: auto;
        max-height: calc(100vh - 1rem);
    }

    .session-modal-layout {
        grid-template-columns: 1fr;
    }

    .session-modal-side .session-guide-image {
        max-height: min(42vh, 420px);
    }
}

@media (max-width: 720px) {
    .build-session-modal {
        padding: 0.45rem;
    }

    .build-session-modal .session-modal-box {
        width: 100%;
        min-height: auto;
        max-height: calc(100vh - 0.9rem);
        padding: 1rem 0.9rem;
        border-radius: 22px;
        overflow: auto;
    }

    .session-modal-layout {
        gap: 1rem;
    }

    .session-modal-main,
    .session-modal-side .session-guide-card {
        padding: 0.95rem;
        border-radius: 18px;
    }

    .session-modal-side .session-guide-image {
        max-height: min(34vh, 320px);
    }
}





