/* 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;
  background: #fff;
  border: 1px solid #0831d0;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.35);
  z-index: 27;
  display: none;
  direction: ltr;
}
.xp-submenu.is-open { display: block; }
@media (max-width: 700px) {
  .xp-submenu {
    left: 8px;
    right: 8px;
    width: auto;
    top: auto;
    bottom: 100%;
  }
}

/* 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;
}
