/* Kavin Inc · Robotic Welding Cell Interactive Play Portal
   Theme: Luxury Warm Ivory & Cyber Neon Emerald
   Features: Drag-and-Drop Placement, Green/Red Instant Feedback, Dot-to-Dot Wiring, Test Weld Commissioning
*/

:root {
  --cell-ivory-bg: #FAF7F0;
  --cell-ivory-card: #FFFFFF;
  --cell-ivory-elevated: #FCFAF5;
  --cell-ivory-border: #DCD5C8;
  --cell-ivory-border-subtle: #EBE5DB;
  --cell-text-primary: #0A261B;
  --cell-text-secondary: #486457;
  --cell-text-muted: #6E877B;
  --cell-neon-green: #00FF88;
  --cell-neon-green-glow: rgba(0, 255, 136, 0.45);
  --cell-neon-red: #EF4444;
  --cell-neon-red-glow: rgba(239, 68, 68, 0.45);
  --cell-neon-blue: #38BDF8;
  --cell-neon-amber: #FF9900;
  --cell-emerald: #10B981;
  --cell-emerald-dark: #07261B;
  --cell-blueprint-bg: #071711;
  --cell-grid-line: rgba(0, 255, 136, 0.12);
}

.cell-page {
  padding-top: 112px;
  background: radial-gradient(circle at 12% 18%, rgba(0, 255, 136, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
              var(--cell-ivory-bg);
  color: var(--cell-text-primary);
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cell-wrap {
  max-width: 1440px;
  margin: auto;
  padding: 24px 32px 80px;
  box-sizing: border-box;
}

.cell-breadcrumb {
  font-size: 0.82rem;
  color: var(--cell-text-muted);
  margin: 10px 0 24px;
}
.cell-breadcrumb a {
  color: #047857;
  text-decoration: none;
  font-weight: 600;
}
.cell-breadcrumb a:hover {
  color: var(--cell-neon-green);
  text-decoration: underline;
}

/* Header & Mission Banner */
.cell-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cell-hero-title h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 12px 0 10px;
  color: var(--cell-text-primary);
}
.cell-hero-title h1 span {
  display: inline-block;
  background: linear-gradient(135deg, #056645 0%, #10B981 50%, #00FF88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 255, 136, 0.3));
}
.cell-hero-title p {
  font-size: 0.95rem;
  color: var(--cell-text-secondary);
  max-width: 680px;
  line-height: 1.6;
  margin: 0;
}

.cell-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #046647;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.12);
}

.cell-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cell-neon-green);
  box-shadow: 0 0 8px var(--cell-neon-green);
  animation: neonBeaconPulse 1.8s infinite;
}

@keyframes neonBeaconPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* HUD Control Bar */
.cell-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cell-ivory-card);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 18px;
  padding: 14px 22px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px -10px rgba(10, 36, 25, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.cell-score-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cell-score-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #047857;
  min-width: 60px;
}
.cell-progress-pill {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}
.cell-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: #EFF9F3;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065F46;
}
.cell-badge.is-complete {
  background: #D1FAE5;
  border-color: #10B981;
  color: #064E3B;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.cell-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cell-actions button {
  cursor: pointer;
  border: 1px solid var(--cell-ivory-border);
  border-radius: 10px;
  padding: 8px 14px;
  background: #FFFFFF;
  color: var(--cell-text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.cell-actions button:hover {
  border-color: var(--cell-neon-green);
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.2);
  transform: translateY(-1px);
}
.cell-actions .cell-btn-primary {
  background: linear-gradient(135deg, #056645 0%, #047857 50%, #059669 100%);
  border-color: var(--cell-neon-green);
  color: #FFFFFF;
  box-shadow: 0 4px 16px -2px rgba(0, 255, 136, 0.35);
}
.cell-actions .cell-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

/* Mode Switcher Tabs */
.cell-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.cell-mode-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--cell-ivory-card);
  border: 1px solid var(--cell-ivory-border);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cell-text-secondary);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 8px -2px rgba(10, 36, 25, 0.05);
}
.cell-mode-tab i {
  font-size: 1.1rem;
  color: #10B981;
}
.cell-mode-tab:hover {
  border-color: var(--cell-neon-green);
  box-shadow: 0 6px 18px -4px rgba(0, 255, 136, 0.25);
  transform: translateY(-2px);
}
.cell-mode-tab.is-active {
  background: var(--cell-emerald-dark);
  border-color: var(--cell-neon-green);
  color: #FFFFFF;
  box-shadow: inset 0 3px 0 var(--cell-neon-green), 0 8px 24px -4px rgba(0, 255, 136, 0.35);
  transform: translateY(-2px);
}
.cell-mode-tab.is-active i {
  color: var(--cell-neon-green);
  filter: drop-shadow(0 0 6px var(--cell-neon-green));
}

/* Master Interactive Workshop Grid (3 Columns) */
.cell-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
  transition: all 0.25s ease;
}

/* In Wiring, Questions, and Commissioning modes, expand stage to full width */
.cell-workspace[data-mode="wiring"],
.cell-workspace[data-mode="questions"],
.cell-workspace[data-mode="commissioning"] {
  grid-template-columns: 1fr;
  max-width: 1240px;
  margin: 20px auto 0;
}

.cell-workspace[data-mode="wiring"] .cell-rack,
.cell-workspace[data-mode="questions"] .cell-rack,
.cell-workspace[data-mode="commissioning"] .cell-rack {
  display: none !important;
}

/* Equipment Racks (Left and Right) */
.cell-rack {
  background: var(--cell-ivory-card);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 20px;
  padding: 18px 14px;
  box-shadow: 0 15px 35px -15px rgba(6, 36, 25, 0.08);
}
.cell-rack-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #046647;
  margin: 0 0 14px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cell-rack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Draggable Equipment Card */
.cell-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #D8D1C2;
  border-bottom: 3px solid #059669;
  border-radius: 12px;
  box-shadow: 0 3px 8px -2px rgba(10, 36, 25, 0.08);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.cell-item-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cell-neon-green);
  border-bottom-color: var(--cell-neon-green);
  box-shadow: 0 8px 20px -4px rgba(0, 255, 136, 0.35), 0 0 12px rgba(0, 255, 136, 0.2);
}
.cell-item-card:active {
  cursor: grabbing;
  transform: translateY(1px);
}
.cell-item-card.is-placed {
  opacity: 0.45;
  filter: grayscale(0.5);
  pointer-events: none;
  border-color: #D1D5DB;
  border-bottom-color: #9CA3AF;
  box-shadow: none;
}
.cell-item-card.is-selected {
  border-color: var(--cell-neon-green);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.3), 0 0 15px rgba(0, 255, 136, 0.3);
  background: #F0FDF5;
}
.cell-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F3EC;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.cell-item-icon svg {
  width: 100%;
  height: 100%;
}
.cell-item-info {
  flex: 1;
  min-width: 0;
}
.cell-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cell-text-primary);
  line-height: 1.25;
  margin-bottom: 2px;
}
.cell-item-desc {
  font-size: 0.68rem;
  color: var(--cell-text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Interactive CAD Blueprint Stage */
.cell-stage-card {
  background: var(--cell-ivory-card);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 45px -20px rgba(6, 36, 25, 0.1);
  position: relative;
}
.cell-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cell-stage-title h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--cell-text-primary);
}
.cell-stage-title p {
  font-size: 0.76rem;
  color: var(--cell-text-muted);
  margin: 4px 0 0;
}

/* The CAD Blueprint Floor (SVG + HTML Interactive Elements) */
.cell-blueprint-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 480px;
  background: var(--cell-blueprint-bg);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 10px 30px -10px rgba(0, 255, 136, 0.15);
  scroll-margin-top: 140px;
}

.cell-blueprint-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

#blueprint-slots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#blueprint-ports {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

/* Interactive Drop Target Zones (Placed on Stage) */
.cell-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(0, 255, 136, 0.45);
  border-radius: 14px;
  background: rgba(4, 34, 23, 0.55);
  color: #A7F3D0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-sizing: border-box;
  pointer-events: auto;
}

.cell-slot:hover {
  border-color: var(--cell-neon-green);
  background: rgba(0, 255, 136, 0.12);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.35);
  transform: translate(-50%, -50%) scale(1.03);
}

.cell-slot.is-dragover {
  border-color: var(--cell-neon-amber);
  background: rgba(255, 153, 0, 0.2);
  box-shadow: 0 0 25px rgba(255, 153, 0, 0.5);
  transform: translate(-50%, -50%) scale(1.06);
}

/* Correct Placement State (GREEN FLASH) */
.cell-slot.is-correct {
  border: 2px solid var(--cell-neon-green) !important;
  background: rgba(0, 255, 136, 0.18) !important;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.6), inset 0 0 15px rgba(0, 255, 136, 0.3) !important;
  animation: lockSuccess 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lockSuccess {
  0% { transform: translate(-50%, -50%) scale(0.9); }
  50% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 35px var(--cell-neon-green); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Incorrect Placement State (RED FLASH & SHAKE) */
.cell-slot.is-wrong {
  border: 2px solid var(--cell-neon-red) !important;
  background: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.75) !important;
  animation: shakeError 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shakeError {
  10%, 90% { transform: translate(-52%, -50%); }
  20%, 80% { transform: translate(-48%, -50%); }
  30%, 50%, 70% { transform: translate(-54%, -50%); }
  40%, 60% { transform: translate(-46%, -50%); }
  100% { transform: translate(-50%, -50%); }
}

.cell-slot-label {
  font-family: 'Space Grotesk', Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: #C6F6D5;
  letter-spacing: 0.05em;
  padding: 4px 6px;
  line-height: 1.2;
}
.cell-slot-hint {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.6);
}

.cell-slot.is-filled {
  border: 1.5px solid #10B981;
  background: #042419;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(0, 255, 136, 0.12);
}
.cell-slot.is-filled .cell-slot-hint {
  display: none;
}
.cell-slot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 6px;
  box-sizing: border-box;
}
.cell-slot-content svg {
  max-width: 80%;
  max-height: 70%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.cell-slot-content-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 3px;
  white-space: nowrap !important;
  text-overflow: clip;
  overflow: visible !important;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Equipment Terminal Ports for Cable Wiring */
.cell-port {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #042217;
  border: 2.5px solid var(--cell-neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.7), inset 0 0 6px #00FF88;
  cursor: pointer;
  pointer-events: auto !important;
  z-index: 40;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, background 0.18s ease;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
}

/* Generous 44px hit-box for easy clicking and touch tapping */
.cell-port::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  pointer-events: auto !important;
  cursor: pointer;
}

/* Inner dot */
.cell-port::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00FF88;
  transition: background 0.2s;
  pointer-events: none;
}

.cell-port:hover {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 20px #00FF88, 0 0 35px rgba(0, 255, 136, 0.5), 0 0 4px #FFFFFF;
  background: #00FF88;
}
.cell-port:hover::before {
  background: #042217;
}

.cell-port.is-active-port {
  animation: portPulse 0.8s infinite alternate;
  background: #FFFFFF !important;
  border-color: #00FF88 !important;
  box-shadow: 0 0 25px #00FF88, 0 0 40px #00FF88 !important;
}
.cell-port.is-active-port::before {
  background: #047857;
}

.cell-port.is-compatible-target {
  animation: portCompatiblePulse 1.2s infinite alternate;
  border-color: #38BDF8;
}
@keyframes portCompatiblePulse {
  0% { transform: translate(-50%, -50%) scale(1.0); box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }
  100% { transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 20px #38BDF8, 0 0 30px #00FF88; }
}

@keyframes portPulse {
  0% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 10px var(--cell-neon-green); }
  100% { transform: translate(-50%, -50%) scale(1.45); box-shadow: 0 0 25px var(--cell-neon-green), 0 0 35px #00FF88; }
}

/* Port label badges - clean smart floating tooltip */
.cell-port-label {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: rgba(4, 34, 23, 0.96);
  border: 1.5px solid #00FF88;
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 255, 136, 0.35);
  transition: opacity 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.18s;
  z-index: 80;
  letter-spacing: 0.02em;
}

/* Label positioning based on port data-label-pos */
.cell-port[data-label-pos="top"] .cell-port-label {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}
.cell-port[data-label-pos="bottom"] .cell-port-label {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}
.cell-port[data-label-pos="left"] .cell-port-label {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
}
.cell-port[data-label-pos="right"] .cell-port-label {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}

/* Hover, focus, and active port label reveal */
.cell-port:hover .cell-port-label,
.cell-port:focus .cell-port-label,
.cell-port.is-active-port .cell-port-label {
  opacity: 1;
  visibility: visible;
  z-index: 100;
}
.cell-port[data-label-pos="top"]:hover .cell-port-label,
.cell-port[data-label-pos="top"].is-active-port .cell-port-label {
  transform: translateX(-50%) translateY(0);
}
.cell-port[data-label-pos="bottom"]:hover .cell-port-label,
.cell-port[data-label-pos="bottom"].is-active-port .cell-port-label {
  transform: translateX(-50%) translateY(0);
}
.cell-port[data-label-pos="left"]:hover .cell-port-label,
.cell-port[data-label-pos="left"].is-active-port .cell-port-label {
  transform: translateY(-50%) translateX(0);
}
.cell-port[data-label-pos="right"]:hover .cell-port-label,
.cell-port[data-label-pos="right"].is-active-port .cell-port-label {
  transform: translateY(-50%) translateX(0);
}

/* Live dynamic drag rubberband wire */
.cell-drag-wire {
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.8));
  pointer-events: none;
}

/* Educational Feedback Banner */
.cell-coach-banner {
  margin-top: 16px;
  padding: 14px 20px;
  background: #F0FDF4;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 15px rgba(10, 36, 25, 0.05);
  transition: all 0.3s ease;
}
.cell-coach-banner.is-green {
  background: #ECFDF5;
  border-color: var(--cell-neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}
.cell-coach-banner.is-red {
  background: #FEF2F2;
  border-color: var(--cell-neon-red);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.cell-coach-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cell-coach-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--cell-text-primary);
  flex: 1;
}
.cell-coach-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.cell-coach-banner.is-red strong {
  color: #B91C1C;
}
.cell-coach-banner.is-green strong {
  color: #047857;
}

/* Wiring Mode Color Key Bar */
.cell-cable-bar {
  margin-top: 20px;
  padding: 16px 20px;
  background: #FCFAF5;
  border: 1px solid var(--cell-ivory-border);
  border-radius: 16px;
}
.cell-cable-bar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cell-text-secondary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cell-cable-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cell-cable-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D8D1C2;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cell-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cell-cable-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.cell-cable-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.cell-cable-btn.is-active {
  border-color: #07261B;
  background: #07261B;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* SVG Drawn Cables */
.cell-cable-line {
  stroke-linecap: round;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}
.cell-cable-line.is-active-flow {
  animation: cableFlow 1s linear infinite;
}
@keyframes cableFlow {
  to { stroke-dashoffset: -32; }
}

/* Mode 3: Placement Questions Panel */
.cell-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.cell-quiz-card {
  background: #FFFFFF;
  border: 1px solid var(--cell-ivory-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 3px 10px rgba(10, 36, 25, 0.05);
}
.cell-quiz-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--cell-text-primary);
  line-height: 1.4;
}
.cell-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cell-quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--cell-ivory-border);
  border-radius: 10px;
  background: #FCFAF5;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.cell-quiz-opt:hover {
  background: #F0FDF4;
  border-color: var(--cell-neon-green);
}
.cell-quiz-opt.is-correct {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  color: #064E3B !important;
  font-weight: 700;
}
.cell-quiz-opt.is-wrong {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  color: #991B1B !important;
}

/* Mode 4: Commissioning & Energize Simulation */
.cell-commissioning-console {
  background: #071711;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 20px;
  padding: 24px;
  color: #E6F8EE;
  margin-top: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}
.cell-comm-meters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.cell-meter {
  background: #0B241B;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.cell-meter-label {
  font-size: 0.68rem;
  color: #A7F3D0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.cell-meter-val {
  font-family: Consolas, monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cell-neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.cell-comm-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.cell-comm-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.cell-btn-power {
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #00FF88 100%);
  color: #042217;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.5);
}
.cell-btn-power:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.7);
}
.cell-btn-weld {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 50%, #FFAA00 100%);
  color: #2D1400;
  box-shadow: 0 4px 20px rgba(255, 153, 0, 0.5);
}
.cell-btn-weld:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 153, 0, 0.7);
}

/* Congratulations & Thumbs Up Completion Modal (Without Background Card) */
.cell-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 28, 19, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

/* Minimalist Pure Overlay (No Background) */
.cell-congrats-clean {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 650px;
  width: 100%;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cleanPopup 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

@keyframes cleanPopup {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Thumbs Up WITHOUT Background */
.cell-thumbs-up-pure {
  font-size: clamp(80px, 14vw, 120px);
  line-height: 1;
  margin: 0 0 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 35px rgba(0, 255, 136, 0.8)) drop-shadow(0 0 70px rgba(0, 255, 136, 0.45));
  animation: pureThumbsBounce 1.5s ease infinite alternate;
  cursor: default;
}

@keyframes pureThumbsBounce {
  0% { transform: translateY(0) scale(1) rotate(-3deg); }
  50% { transform: translateY(-14px) scale(1.1) rotate(3deg); }
  100% { transform: translateY(0) scale(1) rotate(-3deg); }
}

/* Congratulations with Name */
.cell-congrats-pure-heading {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 136, 0.35);
  background: transparent !important;
}

.cell-congrats-pure-heading span {
  display: inline-block;
  color: #00FF88;
  text-shadow: 0 0 25px rgba(0, 255, 136, 0.85), 0 0 50px rgba(0, 255, 136, 0.5);
  background: transparent !important;
}

/* Score Display without background */
.cell-congrats-pure-score {
  font-family: 'Space Grotesk', Consolas, monospace;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 750;
  color: #E2E8F0;
  letter-spacing: 0.05em;
  margin: 0 0 32px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  background: transparent !important;
}

.cell-congrats-pure-score span {
  color: #00FF88;
  font-weight: 800;
}

/* Actions */
.cell-congrats-pure-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}

.cell-pure-close-btn {
  padding: 14px 38px;
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #00FF88 100%);
  color: #042217;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  border: 1.5px solid rgba(0, 255, 136, 0.9);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(0, 255, 136, 0.55), 0 0 15px rgba(0, 255, 136, 0.3);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cell-pure-close-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 35px rgba(0, 255, 136, 0.75), 0 0 25px rgba(0, 255, 136, 0.5);
  color: #000000;
}

.cell-congrats-card {
  background: #FFFFFF;
  border: 2px solid rgba(0, 255, 136, 0.45);
  border-radius: 28px;
  max-width: 620px;
  width: 100%;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 255, 136, 0.25);
  position: relative;
  overflow: hidden;
  animation: congratsPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes congratsPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.cell-congrats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #047857 0%, #10B981 40%, #00FF88 100%);
}

/* Animated Thumbs Up Emblem */
.cell-thumbs-up-emblem {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell-thumbs-icon {
  font-size: 54px;
  display: block;
  z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(0, 255, 136, 0.5));
  animation: thumbsBounce 1.4s ease infinite alternate;
}

@keyframes thumbsBounce {
  0% { transform: translateY(0) scale(1) rotate(-4deg); }
  50% { transform: translateY(-8px) scale(1.12) rotate(4deg); }
  100% { transform: translateY(0) scale(1) rotate(-4deg); }
}

.cell-thumbs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.25) 0%, rgba(16, 185, 129, 0.08) 70%, transparent 100%);
  border: 2px solid rgba(0, 255, 136, 0.5);
  animation: ringPulse 2s infinite ease-in-out;
}

@keyframes ringPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6); }
  70% { transform: scale(1.18); box-shadow: 0 0 25px 8px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.cell-congrats-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cell-congrats-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #0A261B;
  line-height: 1.2;
  margin: 0 0 10px;
}

.cell-congrats-student {
  color: #059669;
  text-decoration: underline;
  text-decoration-color: #00FF88;
  text-underline-offset: 4px;
}

.cell-congrats-sub {
  font-size: 0.92rem;
  color: #486457;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 22px;
}

/* Score Box */
.cell-congrats-score-box {
  background: #F4F9F5;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 0 auto 26px;
  max-width: 520px;
}

.cell-congrats-score-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.cell-score-sublabel {
  font-size: 0.72rem;
  font-weight: 800;
  color: #065F46;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cell-score-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #047857;
  line-height: 1.1;
  margin: 4px 0;
  text-shadow: 0 2px 10px rgba(0, 255, 136, 0.25);
}

.cell-score-pill-badge {
  display: inline-block;
  background: #D1FAE5;
  color: #064E3B;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid #10B981;
}

.cell-congrats-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding-top: 14px;
  font-size: 0.8rem;
  color: #2D4A3E;
  text-align: left;
}

.cell-congrats-metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.metric-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 900;
}

.cell-congrats-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cell-congrats-btn-close {
  padding: 12px 22px;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  background: #FFFFFF;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cell-congrats-btn-close:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  transform: translateY(-1px);
}

/* Legacy Certificate Modal Compatibility */
.cell-cert-card {
  background: #FFFFFF;
  border: 4px double #10B981;
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  padding: 40px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.cell-cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #047857 0%, #10B981 50%, #00FF88 100%);
}
.cell-cert-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #044C34;
  margin: 12px 0 6px;
}
.cell-cert-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0A261B;
  text-decoration: underline;
  text-decoration-color: var(--cell-neon-green);
  text-underline-offset: 6px;
  margin: 16px 0;
}

/* Touch Drag Ghost */
.cell-drag-ghost {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  background: #042417;
  color: #FFFFFF;
  border: 2px solid var(--cell-neon-green);
  font: 700 13px 'Space Grotesk', sans-serif;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 255, 136, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .cell-workspace {
    grid-template-columns: 200px minmax(0, 1fr) 200px;
  }
}

@media (max-width: 950px) {
  .cell-workspace {
    grid-template-columns: 1fr;
  }
  .cell-rack {
    order: 2;
  }
  .cell-stage-card {
    order: 1;
  }
  .cell-modes {
    grid-template-columns: repeat(2, 1fr);
  }
  .cell-comm-meters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .cell-modes {
    grid-template-columns: 1fr;
  }
  .cell-hud {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================================
   Architectural CAD Blueprint Popup Modal & Trigger Buttons
   ======================================================== */

.cell-btn-blueprint-popup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #042217;
  color: #00FF88;
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.15);
}

.cell-btn-blueprint-popup:hover {
  background: #073826;
  border-color: #00FF88;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.35);
  color: #FFFFFF;
}

.cell-btn-blueprint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #022216;
  color: #00FF88;
  border: 1px solid rgba(0, 255, 136, 0.5);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
}

.cell-btn-blueprint-pill:hover {
  background: #06452E;
  color: #FFFFFF;
  border-color: #00FF88;
  transform: scale(1.03);
}

/* Conduit Guide Button & Blueprint Conduits */
.cell-btn-conduit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #022216;
  color: #34D399;
  border: 1.5px solid rgba(0, 255, 136, 0.45);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.15);
}

.cell-btn-conduit-toggle:hover {
  background: #073826;
  border-color: #00FF88;
  color: #FFFFFF;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.35);
}

.cell-btn-conduit-toggle.is-active {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  border-color: #00FF88;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  transform: translateY(-1px);
}

/* Blueprint Conduit Paths & Circuit Routing Tags */
.cell-blueprint-conduits .bp-conduit-path {
  transition: opacity 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

.cell-blueprint-conduits .bp-conduit-tag {
  transition: opacity 0.3s ease, font-size 0.2s ease;
  pointer-events: none;
  user-select: none;
}

/* When Blueprint Guide toggle is active */
.cell-blueprint-conduits.show-all-conduits .bp-conduit-path {
  opacity: 0.95 !important;
  stroke-width: 3.2px !important;
  filter: drop-shadow(0 0 5px currentColor);
  animation: conduitDash 2s linear infinite;
}

.cell-blueprint-conduits.show-all-conduits .bp-conduit-tag {
  opacity: 1 !important;
}

/* When individual conduit is active from selected cable */
.bp-conduit-path.is-active-conduit {
  opacity: 1 !important;
  stroke-width: 4px !important;
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor);
  animation: conduitDash 1.2s linear infinite;
}

.bp-conduit-tag.is-active-tag {
  opacity: 1 !important;
  font-weight: 900 !important;
  font-size: 8.5px !important;
}

@keyframes conduitDash {
  to {
    stroke-dashoffset: -20;
  }
}

/* Blueprint Modal Window */
.cell-blueprint-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 18, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: bpModalFade 0.25s ease-out;
}

@keyframes bpModalFade {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.cell-blueprint-dialog {
  background: #032116;
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-radius: 18px;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 255, 136, 0.15);
  overflow: hidden;
  position: relative;
}

.cell-blueprint-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  background: rgba(2, 18, 12, 0.6);
}

.cell-blueprint-badge {
  display: inline-block;
  background: rgba(0, 255, 136, 0.12);
  color: #00FF88;
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.cell-blueprint-dialog-titles h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.cell-blueprint-dialog-titles p {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #94A3B8;
}

.cell-blueprint-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cell-blueprint-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
  transform: rotate(90deg);
}

.cell-blueprint-dialog-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cell-blueprint-cad-viewport {
  background: #041E15;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.cell-blueprint-cad-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 560;
}

.cell-blueprint-tech-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.cell-bp-note-item {
  background: rgba(2, 24, 16, 0.65);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cell-bp-note-item strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.cell-bp-note-item span {
  font-size: 0.74rem;
  color: #C0D6CB;
  line-height: 1.45;
}

.cell-blueprint-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid rgba(0, 255, 136, 0.15);
  background: rgba(2, 18, 12, 0.7);
}

@media (max-width: 650px) {
  .cell-blueprint-dialog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cell-blueprint-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  .cell-blueprint-tech-notes {
    grid-template-columns: 1fr;
  }
}
