/* Environment Simulation + Design Gate — matches platform dark/purple theme */

/* ─── Shared overlay ─── */
.env-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 200;
  background: #0c0f14;
  display: none;
  -webkit-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}
.env-overlay.is-open {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}
.env-overlay-bar {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  height: 48px;
  background: #12161e;
  border-bottom: 1px solid #2a3140;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.env-back-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1a1f2a;
  border: 1px solid #2a3140;
  color: #e8ecf4;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.env-back-btn:active { opacity: 0.7; }
.env-back-arrow {
  font-size: 18px;
  line-height: 1;
}
.env-overlay-title {
  font-size: 13px;
  color: #8b95a8;
  margin-right: 8px;
}
.env-overlay-body {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0c0f14;
}

/* Hint bar */
.env-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(109, 40, 217, 0.92);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 92%;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.env-success {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 40;
  background: #12161e;
  border: 1px solid #3dd68c;
  border-radius: 16px;
  padding: 24px 28px;
  text-align: center;
  min-width: 260px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.env-success p {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #3dd68c;
}
.env-success .btn {
  min-width: 140px;
}

/* Highlight pulse for correct next step */
.env-pulse {
  -webkit-animation: envPulse 1.2s ease-in-out infinite;
  animation: envPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 2px #7c4dff, 0 0 12px rgba(124, 77, 255, 0.6) !important;
  outline: none;
}
@-webkit-keyframes envPulse {
  0%, 100% { box-shadow: 0 0 0 2px #7c4dff, 0 0 8px rgba(124, 77, 255, 0.4); }
  50% { box-shadow: 0 0 0 3px #c4b5fd, 0 0 18px rgba(124, 77, 255, 0.8); }
}
@keyframes envPulse {
  0%, 100% { box-shadow: 0 0 0 2px #7c4dff, 0 0 8px rgba(124, 77, 255, 0.4); }
  50% { box-shadow: 0 0 0 3px #c4b5fd, 0 0 18px rgba(124, 77, 255, 0.8); }
}

/* ─── Environment row buttons in learn section ─── */
.env-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.env-row p {
  margin: 0;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 200px;
  flex: 1 1 200px;
}
.env-sim-btn {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 36px;
  line-height: 36px;
  padding: 0 14px;
  font-size: 12px;
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid #7c4dff;
  color: #c4b5fd;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.env-sim-btn:active { opacity: 0.75; }
@media (max-width: 520px) {
  .env-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
  }
  .env-sim-btn {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   CLASSIC XP SIMULATION
   ═══════════════════════════════════════════ */
.xp-screen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #3a6ea5;
  background: -webkit-linear-gradient(top, #5b9bd5 0%, #3a6ea5 40%, #2d5a87 70%, #1e3a5f 100%);
  background: linear-gradient(to bottom, #5b9bd5 0%, #3a6ea5 40%, #2d5a87 70%, #1e3a5f 100%);
  overflow: hidden;
  font-family: "Tahoma", "Segoe UI", Arial, sans-serif;
  direction: ltr;
  -webkit-user-select: none;
  user-select: none;
}
/* Hill */
.xp-screen:before {
  content: "";
  position: absolute;
  bottom: 40px;
  left: -10%;
  right: -10%;
  height: 38%;
  background: #3d8c40;
  background: -webkit-radial-gradient(ellipse 80% 100% at 50% 100%, #4caf50 0%, #2e7d32 50%, #1b5e20 100%);
  background: radial-gradient(ellipse 80% 100% at 50% 100%, #4caf50 0%, #2e7d32 50%, #1b5e20 100%);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  pointer-events: none;
}
/* Sky glow */
.xp-screen:after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: -webkit-radial-gradient(ellipse 70% 80% at 70% 20%, rgba(255,255,200,0.25) 0%, transparent 60%);
  background: radial-gradient(ellipse 70% 80% at 70% 20%, rgba(255,255,200,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.xp-icons {
  position: absolute;
  top: 16px;
  left: 12px;
  z-index: 2;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 18px;
}
.xp-icon {
  width: 64px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  cursor: default;
}
.xp-icon-img {
  width: 36px;
  height: 36px;
  margin: 0 auto 4px;
  border-radius: 4px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
}

/* Taskbar */
.xp-taskbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: #245edc;
  background: -webkit-linear-gradient(top, #3c81f3 0%, #245edc 8%, #245edc 100%);
  background: linear-gradient(to bottom, #3c81f3 0%, #245edc 8%, #245edc 100%);
  border-top: 1px solid #0831d0;
  z-index: 20;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 0 4px;
}
.xp-start {
  height: 30px;
  padding: 0 14px 0 8px;
  background: #3c8d3c;
  background: -webkit-linear-gradient(top, #5cb85c 0%, #3c8d3c 40%, #2e7d32 100%);
  background: linear-gradient(to bottom, #5cb85c 0%, #3c8d3c 40%, #2e7d32 100%);
  border-radius: 0 12px 12px 0;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  margin-right: 8px;
}
.xp-start:hover, .xp-start.env-pulse {
  filter: brightness(1.1);
}
.xp-start-logo {
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 3px;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 11px;
  color: #245edc;
  font-weight: 900;
}
.xp-tray {
  margin-left: auto;
  height: 28px;
  padding: 0 10px;
  background: #0a246a;
  background: -webkit-linear-gradient(top, #1a3a9a 0%, #0a246a 100%);
  background: linear-gradient(to bottom, #1a3a9a 0%, #0a246a 100%);
  border-left: 1px solid #0831d0;
  color: #fff;
  font-size: 11px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
}

/* Start menu */
.xp-start-menu {
  position: absolute;
  bottom: 36px;
  left: 0;
  width: 320px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid #0831d0;
  border-radius: 0 6px 0 0;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.4);
  z-index: 25;
  display: none;
  overflow: hidden;
  direction: ltr;
}
.xp-start-menu.is-open { display: block; }
.xp-sm-header {
  background: #245edc;
  background: -webkit-linear-gradient(top, #3c81f3 0%, #245edc 100%);
  background: linear-gradient(to bottom, #3c81f3 0%, #245edc 100%);
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
}
.xp-sm-avatar {
  width: 36px; height: 36px;
  background: #6d28d9;
  border-radius: 4px;
  border: 2px solid #fff;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 16px;
}
.xp-sm-body {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  min-height: 280px;
  max-height: 55vh;
}
.xp-sm-left {
  width: 55%;
  background: #fff;
  border-right: 1px solid #d0d0d0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.xp-sm-right {
  width: 45%;
  background: #d3e5fa;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.xp-sm-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: #000;
  cursor: default;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.xp-sm-item:hover {
  background: #316ac5;
  color: #fff;
}
.xp-sm-item.env-pulse {
  background: rgba(124, 77, 255, 0.2);
  color: #000;
}
.xp-sm-item .ico {
  width: 22px; height: 22px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 14px;
}
.xp-sm-sep {
  height: 1px;
  background: #d0d0d0;
  margin: 4px 8px;
}
.xp-sm-all {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.xp-sm-all:hover, .xp-sm-all.env-pulse {
  background: #316ac5;
  color: #fff;
}
.xp-sm-all .arrow {
  margin-left: auto;
  color: #3c8d3c;
  font-weight: 900;
  font-size: 14px;
}

/* All Programs flyout */
.xp-programs {
  position: absolute;
  bottom: 36px;
  left: 318px;
  width: 260px;
  max-width: calc(100vw - 20px);
  max-height: 70vh;
  background: #fff;
  border: 1px solid #0831d0;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.4);
  z-index: 26;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  direction: ltr;
}
.xp-programs.is-open { display: block; }
@media (max-width: 600px) {
  .xp-programs {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: 40px;
  }
}
.xp-prog-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #000;
  cursor: default;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  position: relative;
}
.xp-prog-item:hover {
  background: #316ac5;
  color: #fff;
}
.xp-prog-item.env-pulse {
  background: rgba(124, 77, 255, 0.18);
  color: #000;
}
.xp-prog-item .ico {
  width: 20px; height: 20px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  font-size: 13px;
  text-align: center;
}
.xp-prog-item.has-sub .arrow {
  margin-left: auto;
  font-size: 11px;
  color: #666;
}
.xp-prog-item.has-sub:hover .arrow { color: #fff; }

/* Submenu for Visual Studio 6.0 */
.xp-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  width: 220px;
  max-width: calc(100vw - 16px);
  background: #fff;
  border: 1px solid #0831d0;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.35);
  z-index: 40;
  display: none;
  direction: ltr;
  pointer-events: auto;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}
.xp-submenu.is-open { display: block; }
.xp-submenu .xp-prog-item {
  min-height: 36px;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}
@media (max-width: 700px) {
  .xp-submenu {
    width: min(260px, calc(100vw - 16px));
  }
}

/* Loading splash */
.xp-loading {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #000080;
  z-index: 30;
  display: none;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  color: #fff;
  font-family: "Tahoma", Arial, sans-serif;
  direction: ltr;
}
.xp-loading.is-open {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}
.xp-loading-box {
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 20px 32px;
  color: #000;
  text-align: center;
  min-width: 260px;
}
.xp-loading-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.xp-loading-bar {
  height: 16px;
  background: #fff;
  border: 1px inset #808080;
  overflow: hidden;
}
.xp-loading-fill {
  height: 100%;
  width: 0%;
  background: #000080;
  -webkit-transition: width 0.8s ease;
  transition: width 0.8s ease;
}

/* VB6 New Project window */
.vb6-window {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 94vw;
  background: #c0c0c0;
  border: 2px outset #fff;
  z-index: 35;
  display: none;
  direction: ltr;
  font-family: "Tahoma", "MS Sans Serif", Arial, sans-serif;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.45);
}
.vb6-window.is-open { display: block; }
.vb6-titlebar {
  background: #000080;
  background: -webkit-linear-gradient(left, #000080, #1084d0);
  background: linear-gradient(to right, #000080, #1084d0);
  color: #fff;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 700;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
}
.vb6-titlebar .logo {
  width: 16px; height: 16px;
  background: #fff;
  color: #000080;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  line-height: 16px;
  border-radius: 2px;
}
.vb6-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  background: #c0c0c0;
  padding: 4px 4px 0;
  gap: 2px;
  border-bottom: 1px solid #808080;
}
.vb6-tab {
  padding: 4px 12px;
  font-size: 11px;
  background: #c0c0c0;
  border: 1px solid #808080;
  border-bottom: none;
  cursor: default;
  color: #000;
}
.vb6-tab.is-active {
  background: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  font-weight: 700;
}
.vb6-body {
  background: #fff;
  padding: 10px;
  border: 1px solid #808080;
  border-top: none;
  min-height: 180px;
}
.vb6-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.vb6-proj {
  width: 90px;
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 11px;
  color: #000;
  background: transparent;
  font-family: inherit;
}
.vb6-proj:hover {
  background: #e8f0fe;
  border-color: #316ac5;
}
.vb6-proj.is-selected {
  background: #316ac5;
  color: #fff;
  border-color: #0831d0;
}
.vb6-proj .ico {
  width: 40px; height: 40px;
  margin: 0 auto 6px;
  background: #d0d0d0;
  border: 1px solid #808080;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 20px;
}
.vb6-footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
}
.vb6-btn {
  min-width: 72px;
  height: 26px;
  padding: 0 12px;
  font-size: 11px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  color: #000;
  font-family: inherit;
}
.vb6-btn:active {
  border-style: inset;
}
.vb6-btn.primary {
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   MODERN VS SIMULATION
   ═══════════════════════════════════════════ */
.vs-screen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #1e1e1e;
  direction: ltr;
  font-family: "Segoe UI", "Cairo", Tahoma, Arial, sans-serif;
  color: #cccccc;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.vs-titlebar {
  height: 36px;
  background: #3c3c3c;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  color: #ccc;
  border-bottom: 1px solid #2d2d2d;
}
.vs-body {
  max-width: 720px;
  margin: 24px auto;
  padding: 0 16px 40px;
}
.vs-heading {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
}
.vs-field {
  margin-bottom: 16px;
}
.vs-label {
  display: block;
  font-size: 12px;
  color: #9d9d9d;
  margin-bottom: 6px;
}
.vs-select-wrap {
  position: relative;
}
.vs-select {
  width: 100%;
  height: 36px;
  background: #3c3c3c;
  border: 1px solid #555;
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.vs-select.env-pulse {
  border-color: #7c4dff;
}
.vs-templates {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.vs-card {
  width: 160px;
  background: #2d2d2d;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  color: #ccc;
  font-family: inherit;
  transition: border-color 0.15s;
}
.vs-card:hover {
  border-color: #7c4dff;
  background: #333;
}
.vs-card.env-pulse,
.vs-card.is-selected {
  border-color: #7c4dff;
  box-shadow: 0 0 0 1px #7c4dff;
}
.vs-card .ico {
  font-size: 28px;
  margin-bottom: 8px;
}
.vs-card .name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.vs-card .desc {
  font-size: 11px;
  color: #9d9d9d;
}
.vs-note {
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 6px;
  font-size: 12px;
  color: #c4b5fd;
}

/* ═══════════════════════════════════════════
   DESIGN GATE (before stage-design)
   ═══════════════════════════════════════════ */
.design-gate {
  display: none;
  padding: 20px 0 40px;
  text-align: center;
}
.design-gate.is-visible {
  display: block;
}
.design-gate-q {
  font-size: 18px;
  font-weight: 700;
  color: #e8ecf4;
  margin: 0 0 20px;
}
.design-gate-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.design-gate-actions .btn {
  min-width: 120px;
}

/* New Project dialog used as gate */
.gate-dialog-wrap {
  display: none;
  padding: 12px 0 30px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.gate-dialog-wrap.is-visible {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}
.gate-dialog {
  width: 400px;
  max-width: 96vw;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: "Tahoma", "MS Sans Serif", Arial, sans-serif;
  direction: ltr;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  text-align: left;
}
.gate-dialog .vb6-titlebar { cursor: default; }
.gate-dialog .vb6-body { min-height: 160px; }
.gate-dialog .vb6-proj { width: 100px; }
.gate-dialog .vb6-proj .ico { font-size: 22px; }

/* Hide real designer content until gate is passed */
#stage-design .design-content-hidden {
  display: none !important;
}
#stage-design.gate-passed .design-content-hidden {
  display: block !important;
}
#stage-design.gate-passed .design-gate,
#stage-design.gate-passed .gate-dialog-wrap {
  display: none !important;
}

/* ── ZIP export modal ── */
.zip-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 300;
  background: rgba(0,0,0,0.55);
  display: none;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  padding: 16px;
}
.zip-modal.is-open {
  display: -webkit-box; display: -webkit-flex; display: flex;
}
.zip-modal-card {
  background: #12161e;
  border: 1px solid #2a3140;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 360px; width: 100%;
  text-align: center;
  -webkit-box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.zip-q { font-size: 16px; font-weight: 700; color: #e8ecf4; margin: 0 0 20px; line-height: 1.5; }
.zip-actions { display: -webkit-box; display: -webkit-flex; display: flex; gap: 10px; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; flex-wrap: wrap; }
.zip-bar { height: 8px; background: #1a1f2a; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.zip-bar-fill { height: 100%; width: 0; background: #7c4dff; border-radius: 999px; -webkit-transition: width 0.6s ease; transition: width 0.6s ease; }
.zip-file-icon {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto 12px;
  background: transparent; border: none; cursor: pointer;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.zip-file-icon:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; border-radius: 12px; }
.zip-file-icon.is-bounce .zip-success-svg {
  animation: zipBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.zip-success-svg {
  display: block;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.25));
}
.zip-fname {
  font-size: 14px; color: #c4b5fd; font-weight: 700;
  margin: 0 0 8px; font-family: monospace; opacity: 0;
}
.zip-ok { color: #3dd68c; font-weight: 700; margin: 0 0 16px; opacity: 0; }
.zip-done-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.zip-done-actions .btn { min-height: 44px; opacity: 0; }
.zip-particles {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.zip-particle {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  animation: zipParticle 0.65s ease-out forwards;
}
@keyframes zipBounce {
  0% { transform: scale(1); }
  40% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
@keyframes zipParticle {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .zip-file-icon.is-bounce .zip-success-svg { animation: none; }
  .zip-bar-fill { transition: none; }
  .zip-particle { display: none; }
  .zip-fname, .zip-ok, .zip-done-actions .btn { opacity: 1 !important; }
}

.btn-confirm-design {
  background: #6d28d9 !important;
  color: #fff !important;
  border-color: #6d28d9 !important;
  font-weight: 700;
}
.btn-confirm-design:active { opacity: 0.85; }

/* ── Environment chooser ── */
.vs-chooser {
  max-width: 560px; margin: 40px auto; padding: 0 16px; text-align: center;
}
.vs-chooser-title { font-size: 22px; font-weight: 800; color: #e8ecf4; margin: 0 0 6px; }
.vs-chooser-sub { color: #8b95a8; margin: 0 0 24px; font-size: 14px; }
.vs-chooser-cards {
  display: -webkit-box; display: -webkit-flex; display: flex;
  gap: 16px; flex-wrap: wrap; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
}
.vs-chooser-card {
  width: 230px; max-width: 100%;
  min-height: 44px;
  background: #12161e; border: 1px solid #2a3140; border-radius: 16px;
  padding: 22px 16px 18px; cursor: pointer; text-align: center; color: #e8ecf4;
  font-family: inherit;
  -webkit-transition: border-color 0.18s ease, -webkit-transform 0.18s ease, box-shadow 0.18s ease;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.vs-chooser-card:hover {
  border-color: #7c4dff;
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(124, 77, 255, 0.18);
}
.vs-chooser-card:active {
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
}
.vs-chooser-card:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}
.vs-chooser-logo {
  width: 80px; height: 80px; margin: 0 auto 12px;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
}
.vs-logo-vscode svg { filter: drop-shadow(0 0 10px rgba(59, 156, 217, 0.45)); }
.vs-logo-vs svg { filter: drop-shadow(0 0 10px rgba(155, 77, 202, 0.5)); }
.vs-chooser-name { font-weight: 800; font-size: 15px; margin-bottom: 6px; color: #e8ecf4; }
.vs-chooser-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 8px;
  background: rgba(59, 156, 217, 0.15); color: #7dd3fc;
  border: 1px solid rgba(59, 156, 217, 0.35);
}
.vs-chooser-tag.is-recommended {
  background: rgba(155, 77, 202, 0.18); color: #e9d5ff;
  border-color: rgba(155, 77, 202, 0.4);
}
.vs-chooser-desc { font-size: 12px; color: #8b95a8; line-height: 1.45; }
.vs-chooser-note {
  margin: 22px 0 0; font-size: 11px; color: #6b7280; line-height: 1.4;
}
.vs-back-env {
  display: inline-block; margin-bottom: 12px; background: #1a1f2a; border: 1px solid #2a3140;
  color: #c4b5fd; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  min-height: 44px; min-width: 44px;
}

/* ── VS Code shell ── */
.vsc-app {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal;
  -webkit-flex-direction: column; flex-direction: column;
  background: #1e1e1e; color: #ccc; direction: ltr;
  font-family: "Segoe UI", Consolas, Monaco, monospace; font-size: 13px;
}
.vsc-titlebar {
  height: 34px; background: #3c3c3c; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 0 10px; gap: 10px; border-bottom: 1px solid #2d2d2d; color: #ccc; font-size: 12px;
}
.vsc-tb-btn {
  cursor: pointer; padding: 4px 8px; border-radius: 4px; background: #505050; color: #fff; font-weight: 700;
}
.vsc-tb-spacer { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.vsc-main {
  -webkit-box-flex: 1; -webkit-flex: 1; flex: 1;
  display: -webkit-box; display: -webkit-flex; display: flex;
  min-height: 0; overflow: hidden;
}
.vsc-activity {
  width: 48px; background: #333; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; padding-top: 8px; gap: 4px;
}
.vsc-act {
  width: 40px; height: 40px; border: none; background: transparent; color: #ccc;
  font-size: 18px; border-radius: 6px; cursor: pointer;
}
.vsc-act:hover, .vsc-act.env-pulse { background: #2a2a2a; }
.vsc-side {
  width: 220px; max-width: 40vw; background: #252526; border-right: 1px solid #1e1e1e;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column;
  overflow: hidden;
}
.vsc-side-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #bbb;
  padding: 10px 12px 6px; text-transform: uppercase;
}
.vsc-side-body { padding: 4px 8px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.vsc-muted { color: #777; font-size: 12px; padding: 8px; }
.vsc-search-wrap { padding: 0 8px 8px; }
.vsc-search {
  width: 100%; height: 28px; background: #3c3c3c; border: 1px solid #555; color: #fff;
  border-radius: 2px; padding: 0 8px; font-size: 12px;
}
.vsc-ext-card {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  gap: 8px; padding: 8px; background: #2a2d2e; border-radius: 4px; margin-bottom: 6px;
}
.vsc-ext-ico { font-size: 22px; }
.vsc-ext-info { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; text-align: left; }
.vsc-ext-name { font-weight: 700; color: #fff; font-size: 12px; }
.vsc-ext-pub { font-size: 10px; color: #999; }
.vsc-install {
  background: #0e639c; color: #fff; border: none; border-radius: 2px;
  padding: 4px 10px; font-size: 11px; font-weight: 700; cursor: pointer; min-height: 28px;
}
.vsc-install.is-installed { background: #3c3c3c; color: #9d9; }
.vsc-editor {
  -webkit-box-flex: 1; -webkit-flex: 1; flex: 1;
  background: #1e1e1e; overflow: auto; -webkit-overflow-scrolling: touch; position: relative;
}
.vsc-editor-empty { padding: 40px; text-align: center; color: #666; }
.vsc-status {
  height: 24px; background: #007acc; color: #fff; font-size: 11px;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 0 10px; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;
}
.vsc-term { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column; height: 100%; }
.vsc-term-tabs { background: #252526; padding: 6px 10px; border-bottom: 1px solid #1e1e1e; }
.vsc-term-tabs .is-on { color: #fff; font-weight: 700; font-size: 12px; }
.vsc-term-body { padding: 10px; font-family: Consolas, Monaco, monospace; font-size: 12px; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; overflow: auto; text-align: left; }
.vsc-term-line { color: #ccc; margin-bottom: 2px; }
.vsc-term-out { color: #9cdcfe; margin-bottom: 2px; }
.vsc-cmd-text { color: #ce9178; }
.vsc-cmd {
  margin: 8px 10px; background: #0e639c; color: #fff; border: none; border-radius: 4px;
  padding: 10px 12px; font-size: 12px; font-family: Consolas, Monaco, monospace;
  cursor: pointer; text-align: left; min-height: 40px;
}
.vsc-tree-folder { padding: 4px 6px; color: #ccc; font-weight: 700; }
.vsc-tree-file {
  display: block; width: 100%; text-align: left; background: transparent; border: none;
  color: #ccc; padding: 6px 12px; font-size: 12px; cursor: pointer; border-radius: 3px;
  font-family: inherit;
}
.vsc-tree-file:hover, .vsc-tree-file.env-pulse { background: #2a2d2e; }
.vsc-code-tab { background: #1e1e1e; border-bottom: 1px solid #2d2d2d; padding: 8px 12px; color: #fff; font-size: 12px; text-align: left; }
.vsc-code {
  margin: 0; padding: 14px 16px; text-align: left; color: #9cdcfe; font-size: 13px;
  line-height: 1.55; white-space: pre; overflow: auto; font-family: Consolas, Monaco, monospace;
}
@media (max-width: 520px) {
  .vsc-side { width: 160px; }
  .vsc-activity { width: 40px; }
}

/* ── Team intro splash ── */
.team-intro-splash {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 180;
  background: #0c0f14;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, #1a1030 0%, #0c0f14 70%);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  opacity: 0;
  -webkit-transition: opacity 0.35s ease;
  transition: opacity 0.35s ease;
  padding: 20px;
}
.team-intro-splash.is-visible { opacity: 1; }
.team-intro-splash.is-leaving { opacity: 0; }
.team-intro-inner { text-align: center; max-width: 520px; width: 100%; }
.team-intro-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; color: #e8ecf4; }
.team-intro-sub { color: #8b95a8; margin: 0 0 22px; font-size: 14px; }
.team-intro-cards {
  display: -webkit-box; display: -webkit-flex; display: flex;
  flex-wrap: wrap; gap: 10px;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  margin-bottom: 22px;
}
.team-intro-card {
  width: 96px; background: #12161e; border: 1px solid #2a3140; border-radius: 14px;
  padding: 12px 8px; color: #e8ecf4; cursor: pointer; font-family: inherit;
  opacity: 0; -webkit-transform: translateY(12px); transform: translateY(12px);
}
@media (prefers-reduced-motion: no-preference) {
  .team-intro-splash.is-visible .team-intro-card {
    -webkit-animation: teamCardIn 0.5s ease forwards;
    animation: teamCardIn 0.5s ease forwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-intro-card { opacity: 1; -webkit-transform: none; transform: none; }
}
@-webkit-keyframes teamCardIn {
  to { opacity: 1; -webkit-transform: none; }
}
@keyframes teamCardIn {
  to { opacity: 1; transform: none; }
}
.team-intro-card.is-pulse {
  -webkit-animation: teamPulse 0.45s ease;
  animation: teamPulse 0.45s ease;
}
@-webkit-keyframes teamPulse {
  50% { -webkit-transform: scale(1.08); box-shadow: 0 0 0 3px rgba(124,77,255,0.45); }
}
@keyframes teamPulse {
  50% { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(124,77,255,0.45); }
}
.team-intro-av {
  display: -webkit-box; display: -webkit-flex; display: flex;
  width: 44px; height: 44px; margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d28d9, #7c4dff);
  color: #fff; font-weight: 800; font-size: 18px;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
}
.team-intro-name { display: block; font-size: 11px; font-weight: 600; line-height: 1.3; color: #c4b5fd; }
.team-intro-progress { width: 40px; height: 40px; margin: 0 auto 12px; }
.team-intro-ring { width: 40px; height: 40px; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); }
.team-intro-ring-bg { fill: none; stroke: #2a3140; stroke-width: 3; }
.team-intro-ring-fg {
  fill: none; stroke: #7c4dff; stroke-width: 3; stroke-linecap: round;
  -webkit-transition: stroke-dashoffset 0.05s linear;
  transition: stroke-dashoffset 0.05s linear;
}
.team-intro-skip {
  background: transparent; border: 1px solid #2a3140; color: #8b95a8;
  border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.team-intro-skip:active { color: #e8ecf4; }

/* ── Unified SVG icons ── */
.ico-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}
.ico-svg svg {
  display: block;
  width: 1em;
  height: 1em;
}
.vs-card .ico-svg,
.vs-chooser-card .ico-svg {
  font-size: 28px;
  color: #c4b5fd;
  margin-bottom: 6px;
}
.btn .ico-svg,
.vs-back-env .ico-svg {
  font-size: 16px;
  margin-inline-end: 6px;
}
.vsc-act .ico-svg {
  font-size: 18px;
  color: #ccc;
}
.zip-file-icon .ico-svg {
  font-size: 48px;
  color: #fbbf24;
}
/* Button states for icon buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #2a3140;
  background: #1a1f2a;
  color: #c4b5fd;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s, color 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon:hover { border-color: #7c4dff; background: rgba(124,77,255,0.12); }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.btn-icon:disabled,
.btn-icon.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-icon .ico-svg { font-size: 20px; margin: 0; }

/* ── VS Community Educational Wizard ── */
.wiz-screen .vs-body { padding: 12px 16px 20px; overflow-y: auto; }
.wiz-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.wiz-toggle-tips {
  background: transparent; border: 1px solid #2a3140; color: #8b95a8;
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; min-height: 36px;
}
.wiz-toggle-tips:hover { color: #e8ecf4; border-color: #7c4dff; }

.wiz-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 18px; flex-wrap: wrap;
}
.wiz-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 56px;
}
.wiz-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: #1a1f2a; border: 2px solid #2a3140; color: #8b95a8;
}
.wiz-step.is-current .wiz-step-dot {
  border-color: #7c4dff; background: rgba(124,77,255,0.2); color: #e9d5ff;
}
.wiz-step.is-done .wiz-step-dot {
  border-color: #22c55e; background: rgba(34,197,94,0.15); color: #4ade80;
}
.wiz-step-label { font-size: 11px; color: #6b7280; }
.wiz-step.is-current .wiz-step-label { color: #c4b5fd; font-weight: 700; }
.wiz-step-line {
  width: 28px; height: 2px; background: #2a3140; margin: 0 2px 18px;
}
.wiz-step-line.is-done { background: #22c55e; }

.wiz-intro-card {
  max-width: 420px; margin: 30px auto; text-align: center;
  background: #12161e; border: 1px solid #2a3140; border-radius: 16px;
  padding: 28px 22px;
}
.wiz-intro-title { font-size: 20px; font-weight: 800; margin: 0 0 12px; color: #e8ecf4; }
.wiz-intro-text { color: #8b95a8; line-height: 1.6; margin: 0 0 22px; font-size: 14px; }

.wiz-explain { color: #8b95a8; font-size: 13px; line-height: 1.55; margin: 0 0 16px; }
.wiz-step-panel { max-width: 640px; margin: 0 auto; }

.wiz-lang-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.wiz-lang-card {
  background: #12161e; border: 1px solid #2a3140; border-radius: 12px;
  padding: 14px 12px; cursor: pointer; text-align: center; color: #e8ecf4;
  font-family: inherit; transition: border-color 0.16s, transform 0.16s;
  min-height: 44px;
}
.wiz-lang-card:hover { border-color: #7c4dff; }
.wiz-lang-card:active { transform: scale(0.97); }
.wiz-lang-card.is-selected { border-color: #7c4dff; box-shadow: 0 0 0 1px #7c4dff; }
.wiz-lang-card.is-recommended { border-color: rgba(124,77,255,0.5); }
.wiz-lang-name { display: block; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.wiz-lang-note { display: block; font-size: 11px; color: #8b95a8; }
.wiz-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; margin: 4px 0;
  background: rgba(124,77,255,0.2); color: #e9d5ff; border: 1px solid rgba(124,77,255,0.4);
}

.wiz-tpl-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.wiz-tpl-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: #12161e; border: 1px solid #2a3140; border-radius: 12px;
  padding: 12px; cursor: pointer; transition: border-color 0.16s;
}
.wiz-tpl-card:hover { border-color: #7c4dff; }
.wiz-tpl-card.is-selected { border-color: #7c4dff; box-shadow: 0 0 0 1px #7c4dff; }
.wiz-tpl-ico { flex-shrink: 0; color: #c4b5fd; font-size: 28px; line-height: 0; padding-top: 2px; }
.wiz-tpl-body { flex: 1; min-width: 0; text-align: right; }
.wiz-tpl-name { font-weight: 800; font-size: 14px; margin-bottom: 4px; color: #e8ecf4; }
.wiz-tpl-desc { font-size: 12px; color: #8b95a8; line-height: 1.45; }
.wiz-tpl-ex { font-size: 11px; color: #6b7280; margin-top: 3px; }
.wiz-meaning-btn {
  margin-top: 6px; background: transparent; border: 1px solid #2a3140;
  color: #a78bfa; border-radius: 6px; padding: 3px 10px; font-size: 11px;
  font-weight: 600; cursor: pointer;
}
.wiz-meaning-btn:hover { border-color: #7c4dff; }
.wiz-tpl-preview {
  width: 64px; height: 48px; flex-shrink: 0;
  background: #0d1118; border-radius: 6px; border: 1px solid #2a3140;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.prev-win { width: 48px; height: 34px; background: #1e2430; border: 1px solid #3b4455; border-radius: 3px; position: relative; }
.prev-win .prev-title { height: 8px; background: #3b4455; }
.prev-win .prev-btn { width: 16px; height: 8px; background: #7c4dff; border-radius: 2px; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); }
.prev-console { font-family: monospace; font-size: 12px; color: #4ade80; }
.prev-wpf { width: 40px; height: 28px; background: linear-gradient(135deg,#7c4dff33,#3b82f633); border-radius: 4px; border: 1px solid #7c4dff55; }
.prev-lib { width: 28px; height: 32px; background: #1e2430; border: 1px solid #3b4455; border-radius: 2px; }

.wiz-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.wiz-field-row { display: flex; align-items: center; gap: 8px; }
.vs-input {
  flex: 1; background: #0d1118; border: 1px solid #2a3140; border-radius: 8px;
  color: #e8ecf4; padding: 10px 12px; font-size: 14px; font-family: inherit;
  min-height: 44px; direction: ltr; text-align: left;
}
.vs-input:focus { outline: none; border-color: #7c4dff; }
.wiz-path {
  flex: 1; background: #0d1118; border: 1px solid #2a3140; border-radius: 8px;
  color: #8b95a8; padding: 10px 12px; font-size: 13px;
  display: flex; align-items: center; gap: 8px; min-height: 44px;
}
.wiz-hint { font-size: 11px; color: #6b7280; margin: 4px 0 0; line-height: 1.4; }
.wiz-field-msg { font-size: 12px; margin: 4px 0 0; min-height: 16px; }
.wiz-field-msg.is-warn { color: #fbbf24; }

.wiz-summary {
  background: #12161e; border: 1px solid #2a3140; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px; font-size: 13px; line-height: 1.8; color: #c4b5fd;
}
.wiz-create-status { margin-bottom: 16px; }
.wiz-create-bar {
  height: 6px; background: #1a1f2a; border-radius: 999px; overflow: hidden; margin-bottom: 8px;
}
.wiz-create-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, #7c4dff, #a78bfa);
  border-radius: 999px; transition: width 0.4s ease;
}
.wiz-create-msg { font-size: 13px; color: #8b95a8; margin: 0; }

.wiz-msg {
  padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 12px;
  line-height: 1.45;
}
.wiz-msg.is-info {
  background: rgba(124,77,255,0.1); border: 1px solid rgba(124,77,255,0.3); color: #c4b5fd;
}

.wiz-nav {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 8px;
}
.wiz-nav .btn { min-height: 44px; min-width: 100px; }

.wiz-guide { margin-top: 14px; }
.wiz-guide-inner {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(124,77,255,0.08); border: 1px solid rgba(124,77,255,0.2);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #c4b5fd; line-height: 1.45;
}
.wiz-glossary { margin-top: 12px; }
.wiz-gloss-title { font-size: 11px; font-weight: 700; color: #6b7280; margin-bottom: 6px; }
.wiz-gloss-list { display: flex; flex-wrap: wrap; gap: 6px; }
.wiz-gloss-item {
  font-size: 11px; color: #8b95a8; background: #12161e; border: 1px solid #2a3140;
  border-radius: 6px; padding: 4px 8px;
}
.wiz-body.wiz-tips-hidden .wiz-guide,
.wiz-body.wiz-tips-hidden .wiz-glossary { display: none; }

@media (max-width: 480px) {
  .wiz-lang-grid { grid-template-columns: 1fr 1fr; }
  .wiz-tpl-card { flex-wrap: wrap; }
  .wiz-tpl-preview { display: none; }
  .wiz-step-label { font-size: 10px; }
}

/* ── Team astronomical intro ── */
.team-astro {
  background: #05060a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-astro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.team-astro-ui {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  width: 100%;
  max-width: 520px;
  padding: 20px;
}
.team-astro-ui .team-intro-skip {
  pointer-events: auto;
}
.team-astro-center {
  margin-bottom: 18px;
}
.team-astro .team-intro-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #e8ecf4;
  text-shadow: 0 0 24px rgba(167,139,250,0.4);
}
.team-astro .team-intro-sub {
  color: #a78bfa;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.team-astro-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}
.team-astro-reticle::before,
.team-astro-reticle::after {
  content: '';
  position: absolute;
  background: rgba(167,139,250,0.35);
}
.team-astro-reticle::before {
  width: 1px; height: 12px; top: -14px; left: 50%;
}
.team-astro-reticle::after {
  width: 12px; height: 1px; left: -14px; top: 50%;
}
.team-astro-readouts {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: monospace;
  color: rgba(167,139,250,0.45);
  letter-spacing: 0.06em;
  pointer-events: none;
}
.team-astro .team-intro-progress {
  margin: 16px auto 12px;
}
.team-astro-card {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,6,10,0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.team-astro-card.is-open {
  opacity: 1;
  pointer-events: auto;
}
.team-astro-card-inner {
  background: rgba(18,22,30,0.82);
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1);
}
.team-astro-card.is-open .team-astro-card-inner {
  transform: scale(1);
}
.team-astro-card-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c4dff, #a78bfa);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(124,77,255,0.4);
}
.team-astro-card-name {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #e8ecf4;
}
.team-astro-card-role {
  font-size: 13px;
  color: #a78bfa;
  margin: 0 0 18px;
}
.team-astro-card .btn {
  min-height: 44px;
  min-width: 120px;
}
@media (prefers-reduced-motion: reduce) {
  .team-astro-card,
  .team-astro-card-inner {
    transition: none;
  }
}
