:root {
  --bg-app: #f1f5f9;
  --bg-panel: #ffffff;
  --bg-floor: #ffffff;
  --border-color: #cbd5e1;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  /* Colores de madera realistas para las mesas */
  --wood-surface: #ebd0a8;
  --wood-border: #b5834c;
  --wood-edge: #9c6b36;

  --teacher-wood: #deb37c;
  --teacher-border: #96652c;

  /* Pizarra clásica verde con marco de madera */
  --board-green: #1b4d3e;
  --board-frame: #a47148;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ==================== BARRA SUPERIOR ==================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.config-name-input {
  background: #f8fafc;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.38rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  width: 230px;
}

.config-name-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}

.stage-config-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.25rem 0.85rem;
  margin: 0 auto 0.5rem auto;
  width: fit-content;
}

.mode-tabs {
  display: flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
}

.tab-btn {
  background: transparent;
  color: #475569;
  border: none;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.tab-btn:hover {
  color: #0f172a;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==================== BOTONES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.48rem 0.85rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
}

.btn:hover {
  background: #f8fafc;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #f1f5f9;
}

.btn-outline {
  background: #ffffff;
}

.btn-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
}

.btn-view-toggle.active-inverted {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-xs {
  background: #f8fafc;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.48rem;
  border-radius: 5px;
  font-size: 0.73rem;
  cursor: pointer;
}

.btn-xs:hover {
  background: #e2e8f0;
}

.btn-xs.laptop-active {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e40af;
  font-weight: 700;
}

.btn-icon {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 26px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.btn-icon:hover {
  background: #e2e8f0;
}

.full-width {
  width: 100%;
}

/* ==================== LAYOUT PRINCIPAL ==================== */
.main-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  flex: 1;
  min-height: 0;
}

.sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.panel-header h2 {
  font-size: 0.92rem;
  font-weight: 700;
}

.preset-actions {
  display: flex;
  gap: 0.3rem;
}

.help-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.select-input,
.text-input {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 2px 5px;
}

.stepper button {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ==================== CSV Y ALUMNOS ==================== */
.csv-dropzone {
  border: 2px dashed #94a3b8;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.7rem;
  text-align: center;
  font-size: 0.8rem;
  cursor: pointer;
}

.csv-dropzone:hover,
.csv-dropzone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
}

.csv-paste-details {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.csv-paste-details summary {
  cursor: pointer;
  font-weight: 600;
}

.csv-paste-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.csv-paste-body textarea {
  width: 100%;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.45rem;
  font-family: monospace;
  font-size: 0.75rem;
}

.group-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.student-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 270px;
  overflow-y: auto;
}

.student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.38rem 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.79rem;
  cursor: grab;
}

.student-item:hover {
  border-color: var(--primary);
}

.student-item.absent {
  opacity: 0.45;
  text-decoration: line-through;
}

.student-item.assigned {
  border-left: 4px solid #16a34a;
}

.student-info {
  min-width: 0;
  flex: 1;
}

.student-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-meta {
  font-size: 0.69rem;
  color: var(--text-muted);
}

.student-actions {
  display: flex;
  align-items: center;
  gap: 0.22rem;
}

.seat-tag {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ==================== ÁREA DEL PLANO ==================== */
.canvas-area {
  display: flex;
  flex-direction: column;
  background: #e2e8f0;
  min-width: 0;
  min-height: 0;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stats-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  background: #f8fafc;
  padding: 2px 5px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.alert-banner {
  background: #fef2f2;
  border-bottom: 1px solid #f87171;
  color: #991b1b;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==================== PLANO DEL AULA ==================== */
.classroom-viewport {
  flex: 1;
  overflow: auto;
  padding: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.classroom-stage {
  background-color: var(--bg-floor);
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  border: 2px solid #94a3b8;
  border-radius: 12px;
  padding: 1rem 1.75rem;
  min-width: 780px;
  min-height: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  transform-origin: top center;
}

/* ==================== PIZARRA (COMPACTA Y MOVIBLE) ==================== */
.blackboard-item {
  position: absolute;
  width: 260px;
  height: 30px;
  background: var(--board-green);
  border: 3px solid var(--board-frame);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.65rem;
  cursor: move;
  user-select: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.blackboard-item.vertical {
  width: 32px;
  height: 200px;
  flex-direction: column;
  padding: 0.65rem 0;
  writing-mode: vertical-rl;
}

.drag-handle {
  opacity: 0.7;
  font-size: 1rem;
  cursor: move;
}

.rotate-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}

.rotate-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ==================== MESA DEL PROFESOR ==================== */
.teacher-desk-item {
  position: absolute;
  z-index: 9;
  cursor: move;
  user-select: none;
}

.teacher-desk-surface {
  background: var(--teacher-wood);
  border: 2px solid var(--teacher-border);
  border-bottom: 4px solid #7c4f1d;
  border-radius: 8px;
  padding: 0.32rem 0.55rem;
  min-width: 155px;
  min-height: 40px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  position: relative;
}

/* En Vista Invertida (Proyección / Alumnos), invertimos el orden interno para que el puesto quede arriba (junto a su silla) y el texto "Mesa del Profesor" quede abajo sin taparse nunca */
.classroom-stage.view-inverted .teacher-desk-surface {
  flex-direction: column-reverse;
}

/* En Vista Profesor (pizarra abajo): la silla del profesor está ABAJO mirando hacia arriba (a los alumnos) */
.teacher-desk-surface.no-student-seats::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 32%;
  width: 36%;
  height: 5px;
  background: #475569;
  border-radius: 0 0 6px 6px;
  pointer-events: none;
}

/* En Vista Alumnos Invertida (pizarra arriba): la silla del profesor está ARRIBA mirando hacia abajo */
.classroom-stage.view-inverted .teacher-desk-surface.no-student-seats::after {
  bottom: auto;
  top: -9px;
  border-radius: 6px 6px 0 0;
}

.teacher-desk-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #3b230a;
  line-height: 1.1;
}

.teacher-seats-container {
  display: flex;
  gap: 0.35rem;
}

/* ==================== FILAS Y MESAS DE ALUMNOS (COMPACTAS) ==================== */
.rows-container {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.classroom-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.row-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.4rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 48px;
}

.row-badge-actions {
  display: flex;
  gap: 2px;
}

.row-items-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 1;
}

.row-add-controls {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* MESA DE MADERA REALISTA Y MENOS ANCHA/PROFUNDA */
.desk-block {
  background: var(--wood-surface);
  border: 2px solid var(--wood-border);
  border-bottom: 4px solid var(--wood-edge);
  border-radius: 7px;
  padding: 0.24rem 0.35rem 0.28rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.07);
  position: relative;
}

.desk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.66rem;
  color: #5c3a16;
  font-weight: 700;
}

.desk-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mini-btn {
  background: rgba(255, 255, 255, 0.78);
  color: #1e293b;
  border: 1px solid rgba(156, 107, 54, 0.45);
  border-radius: 4px;
  padding: 0px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-btn:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.mini-btn.danger:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

.desk-seats-row {
  display: flex;
  align-items: stretch;
  gap: 0.32rem;
}

/* PASILLO ENTRE MESAS */
.aisle-block {
  width: 50px;
  min-height: 48px;
  border: 1px dashed #cbd5e1;
  background: rgba(241, 245, 249, 0.6);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 600;
}

/* ==================== PUESTO DENTRO DE LA MESA (COMPACTO) ==================== */
.seat-card {
  width: 110px;
  min-height: 52px;
  background: #ffffff;
  border: 2px solid #c89d66;
  border-radius: 5px;
  padding: 0.18rem 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/*
 * ORIENTACIÓN DE SILLAS SEGÚN LA VISTA:
 * 1) Vista Profesor por defecto (Pizarra abajo):
 *    - Los alumnos tienen su silla ARRIBA mirando hacia abajo (hacia la pizarra).
 *    - El puesto en la mesa del profesor tiene su silla ABAJO mirando hacia arriba.
 */
.seat-card::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 26%;
  width: 48%;
  height: 5px;
  background: #64748b;
  border-radius: 5px 5px 0 0;
  pointer-events: none;
}

.seat-card.teacher-seat::after {
  top: auto;
  bottom: -9px;
  background: #475569;
  border-radius: 0 0 5px 5px;
}

/*
 * 2) Vista Alumnos / Invertida (Pizarra arriba, .classroom-stage.view-inverted):
 *    - Los alumnos tienen su silla ABAJO mirando hacia arriba (hacia la pizarra).
 *    - La mesa del profesor tiene su silla ARRIBA mirando hacia abajo.
 */
.classroom-stage.view-inverted .seat-card::after {
  top: auto;
  bottom: -8px;
  border-radius: 0 0 5px 5px;
}

.classroom-stage.view-inverted .seat-card.teacher-seat::after {
  bottom: auto;
  top: -9px;
  border-radius: 5px 5px 0 0;
}

.seat-card:hover {
  border-color: var(--primary);
}

.seat-card.drag-over {
  border-color: var(--primary);
  background: #eff6ff;
}

.seat-card.occupied {
  background: #f0fdf4;
  border-color: #16a34a;
}

.seat-card.disabled {
  opacity: 0.4;
  background: #f1f5f9;
  border-style: dashed;
}

/* ==================== MONITOR DE ORDENADOR VISUAL EN EL DIAGRAMA ==================== */
.seat-monitor-graphic {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  margin: 0 auto;
  order: 3;
  pointer-events: none;
}

/* Solo se muestra el emoji 🖥️ si el puesto tiene PC */
.seat-card.has-pc .seat-monitor-graphic {
  display: flex;
}

/* En la mesa del profesor (Vista Profesor), la silla está abajo, así que su monitor va arriba */
.seat-card.teacher-seat .seat-monitor-graphic {
  order: -1;
}

/* En Vista Invertida (Pizarra Arriba), el monitor de alumnos va arriba y el del profesor abajo */
.classroom-stage.view-inverted .seat-card:not(.teacher-seat) .seat-monitor-graphic {
  order: -1;
}

.classroom-stage.view-inverted .seat-card.teacher-seat .seat-monitor-graphic {
  order: 3;
}

.seat-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seat-code {
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
}

.seat-quick-toggles {
  display: flex;
  align-items: center;
  gap: 2px;
}

.seat-toggle-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 3px;
  font-size: 0.62rem;
  cursor: pointer;
  opacity: 0.55;
}

.seat-toggle-btn:hover {
  opacity: 1;
}

.seat-toggle-btn.active-pc {
  opacity: 1;
  background: #e0f2fe;
  border-color: #0284c7;
}

.seat-toggle-btn.active-lock {
  opacity: 1;
  background: #fef3c7;
  border-color: #d97706;
}

.seat-student-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

.seat-student-firstname {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.08;
}

.seat-student-lastname {
  font-size: 0.66rem;
  color: #334155;
  line-height: 1.08;
}

.seat-laptop-badge {
  font-size: 0.56rem;
  color: #1d4ed8;
  font-weight: 700;
}

.seat-empty-label {
  font-size: 0.66rem;
  color: #94a3b8;
}

/* ==================== VISIBILIDAD SEGÚN EL MODO ==================== */
body.mode-assign .edit-only,
body.mode-project .edit-only {
  display: none !important;
}

body.mode-assign .aisle-block,
body.mode-project .aisle-block {
  border-color: transparent;
  background: transparent;
}

body.mode-assign .aisle-label,
body.mode-project .aisle-label {
  display: none;
}

body.mode-assign .desk-header,
body.mode-project .desk-header {
  display: none;
}

/* En Modo Proyección: sin códigos F3-M1-P1 ni barras de botones */
body.mode-project .seat-top-bar,
body.mode-project .seat-code,
body.mode-project .seat-laptop-badge {
  display: none !important;
}

body.mode-project .main-layout {
  grid-template-columns: 1fr;
}

body.mode-project .sidebar {
  display: none !important;
}

body.mode-project .seat-card {
  width: 124px;
  min-height: 58px;
}

body.mode-project .seat-student-firstname {
  font-size: 0.94rem;
}

body.mode-project .seat-student-lastname {
  font-size: 0.74rem;
}

body.mode-project .row-badge {
  display: none;
}

body.mode-project .drag-handle {
  display: none;
}

/* ==================== MODAL ==================== */
.seat-modal {
  margin: auto;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0;
  width: min(380px, 92vw);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.seat-modal::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.modal-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.modal-seat-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #f8fafc;
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.override-name-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #f8fafc;
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.override-name-box .preset-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.override-name-box .text-input {
  width: 100%;
  min-width: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ==================== IMPRESIÓN / GUARDAR EN PDF ==================== */
@media print {
  @page {
    size: landscape;
    margin: 8mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: #ffffff !important;
    height: auto !important;
    overflow: visible !important;
  }

  .no-print,
  .topbar,
  .sidebar,
  .canvas-toolbar,
  .alert-banner,
  .edit-only,
  .seat-top-bar,
  .seat-code,
  .row-badge,
  .drag-handle,
  .aisle-label {
    display: none !important;
  }

  .main-layout {
    display: block !important;
  }

  .canvas-area,
  .classroom-viewport {
    background: #ffffff !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
  }

  .classroom-stage {
    border: 2px solid #64748b !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    transform: scale(0.92) !important;
    transform-origin: top center !important;
  }

  .aisle-block {
    border-color: transparent !important;
    background: transparent !important;
  }

  .desk-header {
    display: none !important;
  }
}
