@import url(https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap);
:root {
  /* Smooth decelerating spring for hovers, reveals, and modals */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  /* Snappy spring for clicks, taps, and tactile feedback */
  --ease-snappy: cubic-bezier(0.2, 0.9, 0.2, 1);

  /* Elevation shadow levels */
  --shadow-rest: 0 1px 1px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 0 0 1px var(--border, rgba(255, 255, 255, 0.1)),
                  0 8px 16px -4px rgba(0, 0, 0, 0.3),
                  0 28px 56px -12px rgba(0, 0, 0, 0.45);

  /* Optical edge highlights */
  --rim: rgba(255, 255, 255, 0.08);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 42%);

  /* Dynamic surface & accent tokens (updated live by AtmosphereSwatchesDOM & MusicPlayer) */
  --accent: #38bdf8;
  --accent-secondary: #8b5cf6;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(0, 0, 0, 0.45);
  --canvas-sub: #0d1017;
  --canvas-ins: rgba(255, 255, 255, 0.06);
  --fg: #f8fafc;
  --fg-muted: #94a3b8;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: #072446;
  overflow: hidden;
}

body {
  position: relative;
  isolation: isolate;
}

body::before,
body::after,
#macbook-os-root::after,
#xdr-os-root::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none !important;
  background:
    radial-gradient(1100px 460px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    radial-gradient(900px 520px at -10% 110%, color-mix(in srgb, var(--accent-secondary, #8B5CF6) 11%, transparent), transparent 65%);
  transition: opacity 0.3s var(--ease-smooth);
}

body::after {
  z-index: 4;
}

#macbook-os-root::after,
#xdr-os-root::after {
  position: absolute;
  z-index: 3;
}

#webgl {
  width: 100vw;
  height: 100vh;
  pointer-events: auto;
  touch-action: pan-y;
}

#cssBambuPrinter,
#cssMacBook,
#cssProDisplayXDR {
  pointer-events: none;
  cursor: pointer;
  display: block;
}

#cssProDisplayXDR.station-active,
#cssMacBook.station-active {
  pointer-events: none !important;
  z-index: 10 !important;
}

.css3d-screen-root {
  pointer-events: none;
}

.css3d-screen-root.station-active {
  pointer-events: none !important;
}

#xdr-os-root.station-active,
#macbook-os-root.station-active {
  pointer-events: auto !important;
}

#xdr-scroll-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.4);
}

#xdr-scroll-container::-webkit-scrollbar {
  width: 6px;
}

#xdr-scroll-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 999px;
}

#xdr-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.4);
  border-radius: 999px;
}

#xdr-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.8);
}

#drawing-canvas {
  background-color: #ffffff;
  display: none;
}

.banner {
  display: flex;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(248, 250, 252, 0.92);
  padding: 6px 28px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: absolute;
  top: 0px;
  height: 46px;
  left: 0;
  width: 100vw;
  box-sizing: border-box;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 30;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: top 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.banner-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.22s ease, color 0.22s ease;
}

.banner-brand:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #ffffff;
  transform: translateY(-1.5px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 -1px 0 rgba(255, 255, 255, 0.3);
}

.banner-brand:active {
  transform: translateY(0.5px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 -0.5px 0 rgba(255, 255, 255, 0.15);
}

.banner-brand-monogram {
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.banner-brand-logo {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45));
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}

.banner-brand:hover .banner-brand-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.65));
}

.banner-brand-wordmark {
  height: 13px;
  width: auto;
  display: block;
  object-fit: contain;
}

.banner-stations {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.banner-nav-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.audio-dot {
  font-size: 0.65rem;
  color: #10b981;
  transition: color 0.2s ease;
}

.audio-pill.is-muted .audio-dot {
  color: #ef4444;
}

.banner-theme-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.theme-icon {
  font-size: 0.82rem;
}

.recruiter-fast-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(14, 165, 233, 0.18) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #f0f9ff;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.recruiter-fast-mode-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.45) 0%, rgba(14, 165, 233, 0.32) 100%);
  border-color: rgba(56, 189, 248, 0.75);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.banner-legacy-links {
  display: none !important;
}

.apple-glyph {
  font-size: 1.05rem;
  line-height: 1;
}

.banner-brand-text {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-link {
  text-align: center;
  user-select: none;
  justify-content: center;
  cursor: pointer;
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease, text-shadow 0.22s ease;
}

.banner-link:hover {
  color: #ffffff;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: translateY(-1.5px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 -1px 0 rgba(255, 255, 255, 0.28);
}

.banner-link:active {
  transform: translateY(0.5px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 -0.5px 0 rgba(255, 255, 255, 0.15);
}

.banner-link.is-active {
  color: #38bdf8;
  background: transparent;
  border: none;
  box-shadow: none;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.5), 0 1px 2px rgba(0, 0, 0, 0.8), 0 -1px 0 rgba(255, 255, 255, 0.25);
}

.banner-back-pill {
  display: none;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #38bdf8;
  font-weight: 700;
}

.banner-back-pill.show-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.banner-brand {
  cursor: pointer;
}

.circular-button {
  position: absolute;
  display: block;
  bottom: 84px;
  left: 24px;
  width: 48px;
  height: 48px;
  opacity: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
  line-height: 48px;
  text-decoration: none;
  visibility: hidden;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 60;
  background-image: url(assets/images/72178d92e1249f02d8d66ea74bc64cfb.svg);
  background-size: 52%;
  background-position: center;
  background-repeat: no-repeat;
}

.show-back-button {
  visibility: visible;
  opacity: 1;
}

.circular-button:hover {
  transform: scale(1.08);
  background-color: rgba(30, 41, 59, 0.75);
  border-color: rgba(56, 189, 248, 0.65);
}

.button-row {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 100vw;
  bottom: 92px;
  display: flex;
  justify-content: center;
  z-index: 25;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.show-button-row {
  visibility: visible;
  opacity: 1;
}

.circular-button-whiteboard {
  display: inline-block;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  width: 76px;
  height: 76px;
  background-size: 62%;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  margin: 0px 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.circular-button-whiteboard:hover {
  transform: translateY(-3px) scale(1.05);
}

.whiteboard-selected {
  border: 3px solid #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.55), 0 12px 32px rgba(2, 6, 23, 0.48);
}

.audio-button {
  display: none !important;
}

/* ==========================================================================
   Music Player Widget (portfolio_template audio system)
   ========================================================================== */

.music-player-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  user-select: none;
  -webkit-user-select: none;
}

.music-player-container.show-music-player {
  opacity: 1;
  visibility: visible;
}

/* --- Collapsed Glass Pill --- */
.music-player-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 25, 47, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--music-accent, rgba(237, 167, 45, 0.45));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px var(--music-glow, rgba(237, 167, 45, 0.2));
  padding: 6px 14px 6px 12px;
  border-radius: 9999px;
  color: #f3f4f6;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 310px;
}

.music-player-pill:hover {
  background: rgba(10, 25, 47, 0.94);
  border-color: var(--music-accent, rgba(237, 167, 45, 0.8));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 20px var(--music-glow, rgba(237, 167, 45, 0.35));
  transform: translateY(-2px);
}

.music-player-pill.hidden {
  display: none !important;
}

/* Equalizer animation in pill */
.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  width: 14px;
  flex-shrink: 0;
}

.eq-bar {
  width: 2.5px;
  background-color: var(--music-accent, #eda72d);
  border-radius: 1px;
  height: 4px;
  transition: height 0.2s ease, background-color 0.3s ease;
}

.music-equalizer.playing .eq-1 {
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}
.music-equalizer.playing .eq-2 {
  animation: eq-bounce 1.1s ease-in-out infinite alternate 0.2s;
}
.music-equalizer.playing .eq-3 {
  animation: eq-bounce 0.7s ease-in-out infinite alternate 0.4s;
}

@keyframes eq-bounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

.music-icon {
  width: 14px;
  height: 14px;
  color: var(--music-accent, #eda72d);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.pill-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 165px;
}

.pill-title {
  font-size: 11px;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.pill-mood {
  font-size: 9px;
  font-weight: 600;
  color: var(--music-accent, #eda72d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.pill-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--music-accent, #eda72d);
  color: #0a192f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.15s ease, background 0.3s ease;
}

.pill-play-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}

.pill-play-btn svg {
  width: 11px;
  height: 11px;
}

/* --- Simplified Music Player Card --- */
.music-player-card {
  display: none;
  flex-direction: column;
  width: 260px;
  max-width: calc(100vw - 32px);
  background: rgba(10, 25, 47, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--music-accent, rgba(237, 167, 45, 0.35));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px var(--music-glow, rgba(237, 167, 45, 0.15));
  border-radius: 18px;
  padding: 12px 16px 16px 16px;
  color: #f3f4f6;
  animation: card-appear 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.music-player-card.visible {
  display: flex;
}

@keyframes card-appear {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hide unneeded elements to keep player purely minimal */
.card-badges,
.card-chips-row,
.card-mood-theme,
.progress-section,
.track-playlist {
  display: none !important;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2px;
}

.card-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.card-close-btn:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.1);
}

.card-close-btn svg {
  width: 16px;
  height: 16px;
}

.card-meta {
  margin-bottom: 14px;
  text-align: center;
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.card-artist {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.card-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.15s ease, transform 0.15s ease;
}

.ctrl-btn:hover {
  color: var(--music-accent, #eda72d);
  transform: scale(1.1);
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.play-main-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--music-accent, #eda72d);
  color: #0a192f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--music-glow, rgba(237, 167, 45, 0.35));
  transition: all 0.15s ease;
  padding: 0;
}

.play-main-btn:hover {
  filter: brightness(1.12);
  color: #0a192f;
  transform: scale(1.08);
  box-shadow: 0 6px 18px var(--music-glow, rgba(237, 167, 45, 0.5));
}

.play-main-btn svg {
  width: 18px;
  height: 18px;
}

/* Volume Slider */
.volume-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.volume-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.volume-btn:hover {
  color: var(--music-accent, #eda72d);
}

.volume-btn svg {
  width: 15px;
  height: 15px;
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--music-accent, #eda72d);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-label {
  font-size: 11px;
  font-family: monospace;
  color: #94a3b8;
  min-width: 28px;
  text-align: right;
}

.circular-button-whiteboard:hover {
  background-size: 80%;
}

.loadingScreen,
.loadingScreen.loading-screen-hover,
.loadingScreen.show-loading-screen {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.show-audio-button {
  visibility: visible;
  opacity: 0.4;
}
.mobile-text {
  display: none !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  width: 60%;
  color: #eda72d;
  z-index: 9999;
}

/* Phase 11: 3D Pop-Out Photo Masonry Wall & Bin-Packing Styles (Apple visionOS Spatial Drawer) */
.masonry-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 460px;
  max-width: calc(100vw - 48px);
  max-height: 74vh;
  overflow-y: auto;
  padding: 22px;
  box-sizing: border-box;
  z-index: 55;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: none;
}

.masonry-container.show-masonry-drawer {
  display: block;
}

.masonry-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.masonry-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.masonry-title-row h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.add-memory-btn {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.add-memory-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
}

.masonry-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.masonry-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.masonry-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.masonry-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  perspective: 800px;
  transform-style: preserve-3d;
}

.masonry-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.masonry-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
}

.masonry-matting {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-style: preserve-3d;
}

.popout-subject {
  width: 70%;
  height: 70%;
  transform: translateZ(38px);
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.popout-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateZ(28px);
}

.masonry-card-meta {
  padding: 12px 16px;
}

.masonry-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.masonry-card-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

.masonry-card-tag {
  color: #38bdf8;
  font-weight: 500;
}

.masonry-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.masonry-modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.masonry-modal-content h4 {
  margin: 0 0 16px 0;
  color: #f8fafc;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-sizing: border-box;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.modal-actions .save-btn {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

/* ==========================================================================
   Feature 2: Entry Smash Gate (#intro-overlay & #intro-start-btn)
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s ease;
}

.intro-percentage {
  position: fixed;
  top: calc(50% - 150px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #e2e8f0;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.75), 0 0 24px rgba(56, 189, 248, 0.35);
  pointer-events: none;
  z-index: 10000;
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-overlay.ready .intro-percentage {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

#intro-start-btn,
#start-button,
.start-button,
.intro-start-btn {
  position: fixed;
  top: var(--start-btn-top, calc(50% + 10vh));
  left: 50%;
  transform: translateX(-50%) !important;
  z-index: 10000;
  min-width: 136px;
  height: 40px;
  padding: 0 20px;
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 16, 23, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: #ffd580;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 1px 0 var(--rim), 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s var(--ease-smooth),
              background 0.18s var(--ease-smooth),
              box-shadow 0.18s var(--ease-smooth),
              opacity 0.35s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.intro-overlay.ready #intro-start-btn,
.intro-overlay.ready #start-button,
.intro-overlay.ready .start-button,
.intro-overlay.ready .intro-start-btn {
  display: inline-flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#intro-start-btn:hover,
#start-button:hover,
.start-button:hover,
.intro-start-btn:hover {
  transform: translateX(-50%) !important;
  border-color: rgba(245, 179, 53, 0.75);
  color: #ffffff;
  background: rgba(20, 26, 38, 0.85);
  box-shadow: 0 1px 0 var(--rim), 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 179, 53, 0.35);
}

#intro-start-btn:active,
#start-button:active,
.start-button:active,
.intro-start-btn:active {
  transform: translateX(-50%) scale(0.98) !important;
}

#intro-start-btn .intro-start-label,
.intro-start-btn .intro-start-label {
  display: inline-block;
  line-height: 1;
}

#intro-start-btn .k,
.intro-start-btn .k {
  margin-left: 2px;
  font-size: 0.65rem;
  letter-spacing: normal;
  border-color: rgba(245, 179, 53, 0.35);
  color: #ffd580;
  background: rgba(245, 179, 53, 0.12);
}

#intro-key-hint,
.intro-key-hint {
  position: fixed;
  top: calc(var(--start-btn-top, calc(50% + 10vh)) + 48px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(226, 232, 240, 0.45);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 10000;
  display: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.intro-overlay.ready #intro-key-hint,
.intro-overlay.ready .intro-key-hint {
  display: block !important;
  opacity: 0.75;
  visibility: visible;
}

.intro-overlay.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-aspect-ratio: 1/1), (max-width: 768px) {
  :root {
    --start-btn-top: calc(50% + 19vh);
  }
}

.volume-label {
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: var(--music-accent, #eda72d);
  min-width: 30px;
  text-align: right;
}

/* 6 Room Color Schemes HUD Bar (Consolidated Popover Palette in Dock) */
.atmosphere-hud {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.atmosphere-hud.open {
  display: flex;
  animation: themePopoverIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes themePopoverIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scheme-key-hint {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(248, 250, 252, 0.7);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.scheme-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scheme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, var(--swatch-wall, #14171c) 50%, var(--swatch-accent, #38bdf8) 50%);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.scheme-swatch:hover {
  transform: scale(1.18);
  border-color: #ffffff;
}

.scheme-swatch.active {
  transform: scale(1.22);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--swatch-accent, #38bdf8);
}

.scheme-toast {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fafc;
  white-space: nowrap;
  padding-right: 4px;
}

/* ==========================================================================
   Feature 4: Dual-Layer Whiteboard Tool Palette & Mobile Station Bar
   ========================================================================== */
.button-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.whiteboard-color-dot {
  position: relative;
}

.whiteboard-color-dot::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--marker-swatch, #f59e0b);
  box-shadow: 0 0 12px var(--marker-swatch, #f59e0b);
}

.whiteboard-thickness-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.whiteboard-thickness-wrap input[type="range"] {
  width: 84px;
  accent-color: #38bdf8;
  cursor: pointer;
}

.whiteboard-action-pill {
  height: 42px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.whiteboard-action-pill:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.88);
}

.whiteboard-blueprint-pill {
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
}

.mobile-station-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 48;
  display: none;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(28px) saturate(195%);
  -webkit-backdrop-filter: blur(28px) saturate(195%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.52);
  scrollbar-width: none;
}

.mobile-station-bar::-webkit-scrollbar {
  display: none;
}

.mobile-station-pill {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mobile-station-pill:hover,
.mobile-station-pill:active,
.mobile-station-pill.is-active {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
}

.mobile-resume-btn {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38bdf8 !important;
  font-weight: 700;
}

@media (max-width: 860px) {
  .banner-stations {
    display: none;
  }
}

@media (max-width: 768px) {
  .banner {
    padding: 0 12px;
  }

  .banner-brand-text {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  .banner-brand-logo {
    height: 24px;
  }

  .banner-nav-right {
    gap: 6px;
  }

  .banner-link {
    padding: 4px 6px;
    font-size: 0.8rem;
  }

  .mobile-station-bar {
    display: flex;
  }

  .music-player-container {
    bottom: 68px;
    left: 12px;
  }

  .atmosphere-hud {
    top: calc(100% + 8px);
    right: 0;
  }
}

/* ==========================================================================
   Recruiter Fast Mode / 2D Resume View (ISSUE-04)
   ========================================================================== */
.recruiter-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.recruiter-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.recruiter-modal-content {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.recruiter-modal-backdrop.open .recruiter-modal-content {
  transform: scale(1) translateY(0);
}

.recruiter-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 18px;
}

.recruiter-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recruiter-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.recruiter-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.01em;
}

.recruiter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.75);
  margin-top: 4px;
}

.recruiter-email-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

.recruiter-email-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.recruiter-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(248, 250, 252, 0.8);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.recruiter-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
  transform: rotate(90deg);
}

.recruiter-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recruiter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recruiter-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
  margin: 0;
}

.recruiter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recruiter-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #bae6fd;
  letter-spacing: 0.02em;
}

.recruiter-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.recruiter-project-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.recruiter-project-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.4);
}

.recruiter-project-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
}

.recruiter-project-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recruiter-project-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(203, 213, 225, 0.8);
  margin: 0;
}

.recruiter-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.recruiter-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.recruiter-download-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.recruiter-download-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  border-color: #38bdf8;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.recruiter-contact-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.recruiter-contact-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1.5px);
}

.u-hidden {
  display: none !important;
}

/* ==========================================================================
   Visual & Physical Design Engineering Manual — Sections 2 to 12
   ========================================================================== */

/* 2. Interactive Spotlight Glow ([data-spot], .spot) */
:where([data-spot], .spot) {
  position: relative;
  overflow: hidden;
}

[data-spot]:not(.btn):not([data-interactive])::after,
.spot:not(.btn):not([data-interactive])::after,
.btn[data-spot]::before,
button[data-interactive][data-spot]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  border-radius: inherit;
  background: radial-gradient(
    140px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.25s var(--ease-smooth);
  z-index: 1;
}

[data-spot]:not(.btn):not([data-interactive]):hover::after,
.spot:not(.btn):not([data-interactive]):hover::after,
.btn[data-spot]:hover::before,
button[data-interactive][data-spot]:hover::before {
  opacity: 1;
}

:where([data-spot], .spot) > :where(*:not(.local-progress-bar):not(.mdos-popover)) {
  position: relative;
  z-index: 2;
}

/* 3. Subpixel Frosted Glass (.glass & header.glass) */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass:not(.mdos-menubar)::before,
  header.glass:not(.mdos-menubar)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none !important;
    border-radius: inherit;
    background: color-mix(in srgb, var(--canvas-sub, #0D1017) 72%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass:not(.mdos-menubar)::before,
  header.glass:not(.mdos-menubar)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none !important;
    border-radius: inherit;
    background: var(--canvas-sub, #0D1017);
  }
}

:where(.glass) {
  position: relative;
}

.glass {
  isolation: isolate;
  background: transparent !important;
  box-shadow: 0 1px 0 var(--rim), var(--shadow-rest);
}

header.glass:not(.banner):not(.mdos-menubar) {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: inset 0 -1px 0 var(--border-soft, rgba(255, 255, 255, 0.08)),
              0 1px 0 var(--rim),
              var(--shadow-rest) !important;
}

.spatial-glass-hud.hidden,
#keyboard-help-hud.hidden {
  display: none !important;
  pointer-events: none !important;
}

header.banner.glass {
  box-shadow: inset 0 -1px 0 var(--border-soft, rgba(255, 255, 255, 0.08)),
              0 1px 0 var(--rim),
              var(--shadow-rest) !important;
}

#contentContainer {
  margin-top: -3.5rem;
  padding-top: 3.5rem;
  height: 100dvh;
}

/* 4. Tactile Button Physics & Specular Light Sweeps */
.btn,
a.btn,
button[data-interactive] {
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s var(--ease-snappy),
              background-color 0.12s var(--ease-smooth),
              border-color 0.12s var(--ease-smooth),
              box-shadow 0.15s var(--ease-smooth),
              color 0.12s var(--ease-smooth);
}

.btn:hover:not(:disabled),
button[data-interactive]:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled),
button[data-interactive]:active:not(:disabled) {
  transform: translateY(0) scale(0.975);
}

.btn::after,
button[data-interactive]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 64%
  );
  transform: translateX(-125%);
  transition: transform 0.32s var(--ease-smooth);
}

.btn:hover:not(:disabled)::after,
button[data-interactive]:hover:not(:disabled)::after {
  transform: translateX(125%);
}

/* 5. 3D Keycap Badges (kbd.k) */
kbd.k {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 500;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-bottom: 2px solid var(--border-dark, rgba(0, 0, 0, 0.4));
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--canvas-ins, rgba(255, 255, 255, 0.06));
  color: var(--fg-muted, #94A3B8);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  user-select: none;
}

/* 6. Dynamic Inline Links & Underline Sweeps (.ulink & .primer-link) */
.ulink {
  position: relative;
  text-decoration: none !important;
}

.ulink::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.22s var(--ease-snappy);
  pointer-events: none !important;
}

.ulink:hover::after {
  transform: scaleX(1);
  transform-origin: 0% 50%;
}

.primer-link {
  text-decoration: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--accent) 8%, var(--canvas-sub, #121724));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border-soft, rgba(255, 255, 255, 0.1)));
  color: var(--fg, #FFF);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.18s var(--ease-snappy);
}

.primer-link:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--canvas-sub, #121724));
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.primer-link:active {
  transform: translateY(0) scale(0.97);
}

/* 7. Mac-Style Code Blocks & Copy Flash Feedback */
.code {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  background: var(--canvas-sub, #0B0E14);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--rim), var(--shadow-rest);
  margin: 0.9rem 0;
  transition: box-shadow 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  background: var(--sheen), var(--canvas-ins, rgba(255, 255, 255, 0.03));
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--fg-muted, #94A3B8);
}

.dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.dots span:nth-child(1) { background: #EF4444; opacity: 0.75; }
.dots span:nth-child(2) { background: #F59E0B; opacity: 0.75; }
.dots span:nth-child(3) { background: #10B981; opacity: 0.75; }

.code pre {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.55;
  color: #e2e8f0;
  overflow-x: auto;
}

.code.copy-flash {
  animation: copyFlash 0.65s var(--ease-smooth);
}

@keyframes copyFlash {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-rest); }
  40%  { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent), var(--shadow-lift); }
  100% { box-shadow: 0 1px 0 var(--rim), var(--shadow-rest); }
}

/* 8. Specular Tables & Horizontal Scroll Hint */
.table-scroll {
  overflow-x: auto;
  margin: 0.75rem 0;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  background: var(--canvas-sub, #0D1017);
  box-shadow: 0 1px 0 var(--rim), var(--shadow-rest);
  position: relative;
}

.table-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 40%, transparent),
    transparent
  );
  pointer-events: none !important;
}

table.tbl {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
}

table.tbl th,
table.tbl td {
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

table.tbl th {
  background: var(--sheen), var(--canvas-ins, rgba(255, 255, 255, 0.04));
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted, #94A3B8);
}

table.tbl tbody tr {
  transition: background-color 0.12s var(--ease-smooth);
}

table.tbl tbody tr:hover td {
  background: var(--accent-soft, rgba(59, 130, 246, 0.08));
}

/* 9. Scroll-Aware Header Auto-Hide & Top Reading Progress Bar */
#progressBar,
.local-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary, #8B5CF6));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 65%, transparent);
  transform-origin: 0 50%;
  transform: scaleX(0.18);
  transition: transform 0.18s var(--ease-smooth);
  z-index: 60;
  pointer-events: none !important;
}

.local-progress-bar {
  position: absolute;
}

header.glass:not(.mdos-menubar) {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.22s ease,
              box-shadow 0.2s ease;
  will-change: transform;
}

header.glass.header-hidden:not(.mdos-menubar) {
  transform: translateY(-105%);
  opacity: 0.02;
  pointer-events: none;
}

.mdos-menubar,
#mdos-menubar {
  transform: translateZ(1px) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mdos-notch,
#mdos-notch {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 10. Streaming & Status Micro-Animations (Shimmers, Pulses, Carets) */
.ltc-think-line {
  position: relative;
  overflow: hidden;
}

.ltc-think-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    color-mix(in srgb, var(--accent) 22%, transparent) 48%,
    rgba(255, 255, 255, 0.28) 52%,
    transparent 78%
  );
  transform: translateX(-120%);
  animation: ltcShimmer 1.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none !important;
}

@keyframes ltcShimmer {
  100% { transform: translateX(120%); }
}

.ltc-caret {
  display: inline-block;
  width: 6px;
  height: 1.05em;
  vertical-align: -2px;
  margin-left: 2px;
  border-radius: 1px;
  background: var(--accent);
  animation: ltcCaretBlink 0.9s steps(2, start) infinite;
}

@keyframes ltcCaretBlink {
  to { opacity: 0.15; }
}

.ltc-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: ltcStatusPulse 2.4s ease-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes ltcStatusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ltc-msg-enter {
  animation: ltcMsgEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ltcMsgEnter {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ltc-chip {
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.2, 1),
              border-color 0.16s ease,
              background-color 0.16s ease,
              box-shadow 0.16s ease;
}

.ltc-chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--canvas-sub, #121724));
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 30%, transparent);
}

.ltc-chip:active {
  transform: translateY(0) scale(0.97);
}

/* 11. Interactive Stepper & Dry-Run Visualizer Components */
.dr-player {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  background: var(--canvas-sub, #0D1017);
  padding: 0.75rem 0.9rem;
  margin-top: 0.65rem;
  box-shadow: 0 1px 0 var(--rim), var(--shadow-rest);
}

.viz-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.viz-cell {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  background: var(--canvas-ins, rgba(255, 255, 255, 0.04));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease-snappy),
              background-color 0.2s var(--ease-smooth),
              border-color 0.2s var(--ease-smooth),
              color 0.2s var(--ease-smooth),
              box-shadow 0.2s var(--ease-smooth);
}

.viz-cell.active {
  background: var(--accent);
  color: #FFF;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}

.viz-cell.dr-pop {
  animation: drCellPop 0.28s var(--ease-snappy);
}

@keyframes drCellPop {
  0%   { transform: translateY(0) scale(0.92); }
  60%  { transform: translateY(-3px) scale(1.06); }
  100% { transform: translateY(-2px) scale(1); }
}

tr[data-dryrun-step] {
  transition: background-color 0.18s var(--ease-smooth);
}

tr[data-dryrun-current="true"] td {
  background: var(--accent-soft, rgba(59, 130, 246, 0.12)) !important;
}

tr[data-dryrun-current="true"] td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 600;
  color: var(--accent);
}

.dr-range {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: var(--border, rgba(255, 255, 255, 0.15));
  outline: none;
  cursor: pointer;
}

.dr-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--canvas-sub, #0D1017);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s var(--ease-snappy);
}

.dr-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

/* 12. Reduced Motion Accessibility Contract */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/**
 * mdos-goldengate.css — Scoped Stylesheet for MDos (macOS Golden Gate 27)
 * Mounted strictly inside #macbook-os-root (1280×800 CSS3D plane).
 * IMPORTANT: Child elements inherit pointer-events from #macbook-os-root so ORBIT_FREE raycasting works.
 */

#macbook-os-root,
#xdr-os-root,
#standalone-mdos-root {
  --mdos-bg-glass: rgba(28, 28, 32, 0.74);
  --mdos-bg-glass-inactive: rgba(28, 28, 32, 0.86);
  --mdos-bg-menubar: rgba(24, 24, 28, 0.72);
  --mdos-bg-dock: rgba(24, 24, 28, 0.72);
  --mdos-border-light: rgba(255, 255, 255, 0.12);
  --mdos-border-highlight: rgba(255, 255, 255, 0.22);
  --mdos-accent: #f8fafc;
  --mdos-accent-warm: #e2e8f0;
  --mdos-text-primary: #f8fafc;
  --mdos-text-secondary: #cbd5e1;
  --mdos-text-muted: #94a3b8;
  --mdos-red: #ff5f56;
  --mdos-yellow: #ffbd2e;
  --mdos-green: #27c93f;
  position: relative;
  overflow: hidden;
  user-select: none;
  color: var(--mdos-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", -apple-system, sans-serif;
  background: #000000;
  box-sizing: border-box;
}

#macbook-os-root {
  width: 1280px;
  height: 800px;
}

#standalone-mdos-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
}

#macbook-os-root *,
#macbook-os-root *::before,
#macbook-os-root *::after,
#xdr-os-root *,
#xdr-os-root *::before,
#xdr-os-root *::after,
#standalone-mdos-root *,
#standalone-mdos-root *::before,
#standalone-mdos-root *::after {
  box-sizing: border-box;
}

#standalone-mdos-root .mdos-os-shell {
  border-radius: 0;
  pointer-events: auto;
  transform-style: flat !important;
}

#standalone-mdos-root .mdos-stage,
#standalone-mdos-root .mdos-window-layer {
  transform-style: flat !important;
}

#standalone-mdos-root .mdos-wallpaper-layer {
  pointer-events: auto;
}

#standalone-mdos-root,
#standalone-mdos-root * {
  cursor: default;
}

#standalone-mdos-root a,
#standalone-mdos-root button,
#standalone-mdos-root [role="button"],
#standalone-mdos-root input,
#standalone-mdos-root select,
#standalone-mdos-root textarea,
#standalone-mdos-root .mdos-dock-item,
#standalone-mdos-root .mdos-desktop-icon,
#standalone-mdos-root .mdos-menu-btn,
#standalone-mdos-root .mdos-popover-item,
#standalone-mdos-root .mdos-traffic-btn {
  cursor: pointer;
}

#standalone-mdos-root [data-win-titlebar] {
  cursor: grab;
}

#standalone-mdos-root .mdos-window.is-dragging [data-win-titlebar] {
  cursor: grabbing;
}

@media (max-width: 680px) {
  #standalone-mdos-root .mdos-notch {
    display: none;
  }
  #standalone-mdos-root .mdos-dock {
    gap: 4px;
    padding: 5px 8px;
    border-radius: 16px;
    max-width: 96vw;
  }
  #standalone-mdos-root .mdos-dock-item {
    width: 36px;
    height: 36px;
  }
}

.mdos-os-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  border-radius: 10px 10px 0 0;
  background: #000000;
}

.mdos-wallpaper-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.45s ease, filter 0.45s ease;
  z-index: 1;
  pointer-events: none !important;
}

.mdos-wallpaper-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.38)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.48) 100%);
  z-index: 2;
  pointer-events: none !important;
}

/* Continuity Toast Banner */
.mdos-continuity-toast {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%) translateY(-18px);
  opacity: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.90);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none !important;
}

.mdos-continuity-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mdos-continuity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 8px rgba(39, 201, 63, 0.7);
}

/* Top Menu Bar */
.mdos-menubar {
  position: relative;
  z-index: 120;
  height: 32px;
  width: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24, 24, 26, 0.65) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  font-size: 12px;
  font-weight: 500;
  pointer-events: auto;
  transform: translateZ(1px);
}

/* 16" Liquid Retina XDR Notch & Camera Housing */
.mdos-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 156px;
  height: 31px;
  background: #000000 !important;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 200;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mdos-camera-lens {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(56, 189, 248, 0.45) 0%, #0f172a 45%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9), inset 0 0 2px rgba(56, 189, 248, 0.4);
}

.mdos-camera-sensor {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  opacity: 0.95;
}

.mdos-menubar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 156px;
  height: 31px;
  background: #000000 !important;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 150;
  pointer-events: none;
}

.mdos-menubar::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(56, 189, 248, 0.45) 0%, #0f172a 45%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9), inset 0 0 2px rgba(56, 189, 248, 0.4), 18px 0 0 -4px #22c55e;
  z-index: 151;
  pointer-events: none;
}

.mdos-menubar-left {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(50% - 84px);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: auto;
}

.mdos-menubar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(50% - 84px);
  justify-content: flex-end;
  white-space: nowrap;
  pointer-events: auto;
}

.mdos-menu-btn {
  background: transparent;
  border: none;
  color: #f8fafc;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.12s ease;
  pointer-events: auto;
  transform: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.mdos-menu-btn:hover,
.mdos-menu-btn.is-active {
  background: rgba(255, 255, 255, 0.14) !important;
  transform: none !important;
}

.mdos-menu-btn::before,
.mdos-menu-btn::after {
  display: none !important;
}

.mdos-menu-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.75;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

#mdos-btn-apple,
.mdos-menu-apple {
  width: 28px !important;
  height: 22px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  border-radius: 4px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transform: none !important;
  transition: background 0.12s ease !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#mdos-btn-apple:hover,
#mdos-btn-apple:focus-visible,
#mdos-btn-apple.is-active,
.mdos-menu-apple:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  transform: none !important;
}

#mdos-btn-apple::before,
#mdos-btn-apple::after,
.mdos-menu-apple::before,
.mdos-menu-apple::after {
  display: none !important;
}

.mdos-menu-logo-img {
  height: 14px;
  width: auto;
  max-width: 16px;
  object-fit: contain;
  pointer-events: none;
  display: inline-block;
  vertical-align: middle;
}

.mdos-menu-logo-fallback {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mdos-menu-logo-fallback svg {
  width: 14px;
  height: 14px;
}

.mdos-menu-app-title {
  font-weight: 700;
  color: #ffffff;
}

.mdos-xdr-pill {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mdos-xdr-pill:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Menu Bar Dropdown & Control Center Popover */
.mdos-popover {
  position: absolute;
  top: 32px;
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  padding: 5px;
  z-index: 125;
  min-width: 200px;
  pointer-events: auto;
  transform: translateZ(2px);
}

.mdos-popover[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.mdos-popover-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #f1f5f9;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  transition: background 0.1s ease;
}

.mdos-popover-item:hover {
  background: #0071e3;
  color: #ffffff;
}

.mdos-popover-item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.75;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.mdos-popover-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 2px;
}

.mdos-cc-popover {
  right: 12px;
  width: 280px;
  padding: 12px;
}

.mdos-cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mdos-cc-tile {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mdos-cc-tile:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.45);
}

/* Main Stage & Desktop Icon Grid */
.mdos-stage {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.mdos-desktop-grid {
  position: absolute;
  top: 14px;
  left: 16px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.mdos-desktop-icon {
  width: 86px;
  padding: 8px 6px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #f8fafc;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

.mdos-desktop-icon:hover,
.mdos-desktop-icon.is-selected {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.42);
  transform: translateY(-1px);
}

.mdos-desktop-icon img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 6px 12px rgba(2, 6, 23, 0.55));
}

.mdos-desktop-icon span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Windows Layer & Window Chrome */
.mdos-window-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes mdosWindowOpen {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.mdos-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: rgba(28, 28, 32, 0.74);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    0 24px 48px -12px rgba(0, 0, 0, 0.56);
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease,
    box-shadow 0.22s ease;
  pointer-events: auto;
  animation: mdosWindowOpen 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mdos-window.is-focused {
  background: rgba(32, 32, 36, 0.80);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28),
    0 28px 56px -10px rgba(0, 0, 0, 0.65);
}

.mdos-window.is-maximized {
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mdos-window.is-dragging {
  transition: none !important;
  animation: none !important;
}

.mdos-window.is-closed {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none !important;
  animation: none !important;
  visibility: hidden;
  display: none !important;
}

.mdos-window.is-minimized {
  opacity: 0;
  transform: translateY(220px) scale(0.24, 0.04);
  pointer-events: none !important;
  visibility: hidden;
  animation: none !important;
  transition:
    transform 0.32s cubic-bezier(0.45, 0, 0.85, 0.4),
    opacity 0.28s ease,
    visibility 0s 0.32s;
}

.mdos-titlebar {
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  cursor: grab;
}

.mdos-titlebar:active {
  cursor: grabbing;
}

.mdos-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 64px;
}

.mdos-traffic-btn {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter 0.1s ease, transform 0.1s ease;
  overflow: hidden;
}

.mdos-traffic-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 7px 7px;
}

.mdos-traffic-lights:hover .mdos-traffic-btn::after {
  opacity: 0.9;
}

.mdos-traffic-btn:active {
  filter: brightness(0.85);
}

.mdos-traffic-close {
  background-color: #FF5F56;
}
.mdos-traffic-close::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234c0002' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3.25 3.25l5.5 5.5M8.75 3.25l-5.5 5.5'/%3E%3C/svg%3E");
}

.mdos-traffic-minimize {
  background-color: #FFBD2E;
}
.mdos-traffic-minimize::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23593b00' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2.5 6h7'/%3E%3C/svg%3E");
}

.mdos-traffic-maximize {
  background-color: #27C93F;
}
.mdos-traffic-maximize::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23004a11' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 6h6M6 3v6'/%3E%3C/svg%3E");
}

.mdos-window-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.mdos-window-title-group img {
  width: 16px;
  height: 16px;
}

.mdos-window-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mdos-segmented {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.mdos-seg-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.mdos-seg-btn.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mdos-window-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  color: #e2e8f0;
}

/* Floating Glass Dock */
.mdos-dock-container {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: none;
  z-index: 100;
}

.mdos-dock {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(24, 24, 26, 0.65);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  pointer-events: auto;
}

.mdos-dock-item {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: bottom center;
  transition: transform 0.09s ease-out;
  pointer-events: auto;
}

.mdos-dock-item img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

.mdos-dock-tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.14s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.mdos-dock-item:hover .mdos-dock-tooltip {
  opacity: 1;
}

.mdos-dock-dot {
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  opacity: 0;
}

.mdos-dock-item.is-running .mdos-dock-dot {
  opacity: 1;
}

.mdos-dock-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 4px;
  align-self: center;
}

/* About Me App — Mode A (Story Feed) & Mode B (Executive Bento) */
.mdos-story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mdos-story-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mdos-story-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
}

.mdos-story-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mdos-story-slide-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
}

.mdos-story-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mdos-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 64px;
  color: #ff2d55;
  text-shadow: 0 8px 24px rgba(255, 45, 85, 0.65);
  opacity: 0;
  pointer-events: none !important;
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.28s ease;
}

.mdos-heart-burst.is-bursting {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

.mdos-story-nav-btn {
  position: absolute;
  top: 96px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(28, 28, 30, 0.78);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdos-story-prev { left: 10px; }
.mdos-story-next { right: 10px; }

.mdos-story-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(24, 24, 26, 0.85);
}

.mdos-like-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mdos-like-btn.is-liked {
  background: rgba(255, 45, 85, 0.22);
  border-color: #ff2d55;
  color: #ff2d55;
}

.mdos-bento-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.mdos-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
}

.mdos-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

/* Experience Split Layout */
.mdos-exp-split {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  height: 100%;
}

.mdos-company-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mdos-company-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}

.mdos-company-btn.is-active,
.mdos-company-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.mdos-company-btn img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

/* Studio Hardware Control & Contact Form */
.mdos-hw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mdos-hw-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}

.mdos-hw-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.mdos-input,
.mdos-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 11px;
  color: #f8fafc;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.mdos-input:focus,
.mdos-textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.mdos-primary-btn {
  background: #0071e3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mdos-primary-btn:hover {
  background: #0077ed;
  transform: translateY(-1px);
}

/* Spotlight Overlay */
.mdos-spotlight-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  z-index: 115;
}

.mdos-spotlight-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.mdos-spotlight-modal {
  width: 520px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

/* ==========================================================================
   Physical & Visual Design Manual Integration for MDOS & 6K XDR
   ========================================================================== */

/* Preserve popover & tooltip overflow on menubar and dock */
#mdos-menubar,
#mdos-dock {
  overflow: visible !important;
}

/* Subpixel glass depth & float elevation on active MDOS windows */
.mdos-window.glass {
  background: rgba(28, 28, 32, 0.74) !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), 0 24px 48px -12px rgba(0, 0, 0, 0.56) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s var(--ease-smooth), border-color 0.22s var(--ease-smooth);
}

.mdos-window.glass.is-active {
  background: rgba(32, 32, 36, 0.80) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.28), 0 28px 56px -10px rgba(0, 0, 0, 0.65) !important;
}

/* Interactive elevation lift on MDOS & 6K XDR spotlight cards */
.mdos-card.spot,
.mdos-project-card.spot,
.mdos-bento-card.spot,
.mdos-contact-card.spot,
.xdr-project-card.spot {
  box-shadow: 0 1px 0 var(--rim), var(--shadow-rest);
  transition: transform 0.2s var(--ease-smooth),
              border-color 0.2s var(--ease-smooth),
              box-shadow 0.2s var(--ease-smooth),
              background-color 0.2s var(--ease-smooth);
}

.mdos-card.spot:hover,
.mdos-project-card.spot:hover,
.mdos-bento-card.spot:hover,
.mdos-contact-card.spot:hover,
.xdr-project-card.spot:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 1px 0 var(--rim), var(--shadow-lift);
}

/* Dry-run visualizer layout refinements inside Credits & Experience apps */
.dr-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dr-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  color: #f8fafc;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
}

.dr-step-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--accent, #f8fafc);
  font-weight: 700;
  min-width: 58px;
  text-align: right;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  color: #e2e8f0;
  border-radius: 6px;
  padding: 2px 9px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
}

/* Cohesive In-Screen Virtual Cursor & Half-Radius Halo Ring (14px radius / 28px diameter) */
#macbook-os-root,
#macbook-os-root *,
#xdr-os-root,
#xdr-os-root * {
  cursor: none !important;
}

.mdos-virtual-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none !important;
  z-index: 99999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.12s ease;
  will-change: transform, opacity;
}

.mdos-virtual-cursor.is-visible {
  opacity: 1;
}

.mdos-cursor-halo {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.72);
  background: radial-gradient(
    14px circle at center,
    rgba(56, 189, 248, 0.28),
    rgba(99, 102, 241, 0.1) 60%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.38);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  pointer-events: none !important;
}

.mdos-virtual-cursor.is-interactive .mdos-cursor-halo {
  transform: scale(1.15);
  border-color: rgba(52, 211, 153, 0.9);
  background: radial-gradient(
    14px circle at center,
    rgba(52, 211, 153, 0.34),
    rgba(56, 189, 248, 0.14) 65%,
    transparent 100%
  );
}

.mdos-virtual-cursor.is-pressed .mdos-cursor-halo {
  transform: scale(0.82);
  border-color: rgba(255, 255, 255, 0.6);
}

.mdos-cursor-arrow {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
  pointer-events: none !important;
}

/* Linear Dark Glass Editorial Showcase (Pro Display XDR) */
.xdr-hero-workspace {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 16px 24px;
  height: calc(100% - 84px);
  box-sizing: border-box;
  overflow: hidden;
  background: #0a0a0c;
}

.xdr-hero-preview-col {
  flex: 1.15;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 23, 0.85);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.xdr-hero-preview-col.is-fullscreen {
  position: absolute;
  inset: 16px 24px;
  z-index: 50;
}

.xdr-hero-preview-col.is-minimized #xdr-view-live,
.xdr-hero-preview-col.is-minimized #xdr-view-arch {
  opacity: 0.15;
  pointer-events: none;
}

.xdr-hero-chrome {
  height: 42px;
  background: rgba(24, 24, 26, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 12px;
  user-select: none;
}

.xdr-traffic-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.xdr-traffic-btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
}
.xdr-traffic-btn.close { background: #ff5f56; }
.xdr-traffic-btn.min { background: #ffbd2e; }
.xdr-traffic-btn.max { background: #27c93f; }

.xdr-hero-url-pill {
  flex: 1;
  max-width: 520px;
  height: 28px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  overflow: hidden;
}

.xdr-hero-details-col {
  width: 460px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(24, 24, 27, 0.82);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.xdr-hero-tag {
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.xdr-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #f8fafc;
  color: #090d16;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, background 0.15s ease;
}
.xdr-hero-btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.xdr-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.xdr-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.xdr-direct-pill {
  flex: 1;
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(28, 28, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.xdr-direct-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}
.xdr-direct-pill.is-active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #f8fafc;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   MDos Ghostty Terminal.app — Authentic Apple Glass & Catppuccin Styling
   ========================================================================== */

.mdos-window.mdos-ghostty-window {
  background: var(--ghostty-bg, rgba(30, 30, 46, 0.62)) !important;
  backdrop-filter: blur(28px) saturate(210%) brightness(1.05) !important;
  -webkit-backdrop-filter: blur(28px) saturate(210%) brightness(1.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.mdos-window.mdos-ghostty-window.is-focused {
  background: var(--ghostty-bg, rgba(30, 30, 46, 0.65)) !important;
  backdrop-filter: blur(28px) saturate(210%) brightness(1.05) !important;
  -webkit-backdrop-filter: blur(28px) saturate(210%) brightness(1.05) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.mdos-ghostty-window .mdos-titlebar {
  background: transparent !important;
  border-bottom: none !important;
  height: 38px;
  min-height: 38px;
}

.mdos-ghostty-window .mdos-window-title-group span {
  font-family: "Geist Mono", "GeistMono Nerd Font", "SF Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ghostty-subtext, #a6adc8);
  letter-spacing: 0.02em;
}

.mdos-ghostty-window .mdos-window-body {
  padding: 8px 16px 14px 16px !important;
  font-family: "Geist Mono", "GeistMono Nerd Font", "SF Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  font-feature-settings: "calt" 1, "zero" 1;
  color: var(--ghostty-text, #cdd6f4);
  background: transparent !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ghostty-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: transparent !important;
}

.ghostty-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}

.ghostty-output {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ghostty-welcome-block {
  padding: 2px 0 6px 0;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  font-size: 13px;
}

.ghostty-welcome-tag {
  font-weight: 700;
  color: var(--ghostty-mauve, #cba6f7);
  margin-right: 6px;
}

.ghostty-prompt-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.55;
  font-size: 14px;
}

.ghostty-prompt-line.is-history {
  color: var(--ghostty-text, #cdd6f4);
}

.ghostty-prompt-user {
  color: var(--ghostty-mauve, #cba6f7);
  font-weight: 700;
}

.ghostty-prompt-dir {
  color: var(--ghostty-blue, #89b4fa);
  font-weight: 600;
}

.ghostty-prompt-symbol {
  color: var(--ghostty-green, #a6e3a1);
  font-weight: 700;
}

.ghostty-input-wrapper {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  flex: 1;
  min-width: 140px;
}

.ghostty-input-before,
.ghostty-input-after {
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ghostty-text, #cdd6f4);
}

.ghostty-bar-cursor {
  width: 2px;
  height: 1.2em;
  background: var(--ghostty-cursor, #f5e0dc);
  display: inline-block;
  vertical-align: text-bottom;
  animation: ghosttyBarBlink 1s step-end infinite;
  margin: 0 1px;
}

@keyframes ghosttyBarBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.ghostty-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: text;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  padding: 0;
  margin: 0;
  color: transparent;
}

.ghostty-history-row {
  margin-bottom: 6px;
}

.ghostty-history-cmd {
  color: var(--ghostty-text, #cdd6f4);
  font-weight: 600;
}

.ghostty-history-result {
  margin-top: 4px;
  padding-left: 2px;
  font-size: 13.5px;
  line-height: 1.5;
}

.ghostty-dim {
  color: var(--ghostty-subtext, #a6adc8);
  font-size: 12px;
}

.ghostty-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ghostty-surface0, rgba(49, 50, 68, 0.6));
  color: var(--ghostty-mauve, #cba6f7);
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.12s ease;
}

.ghostty-tag:hover {
  background: var(--ghostty-surface1, #45475a);
  color: #fff;
}

.ghostty-kbd {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--ghostty-surface1, #45475a);
  color: var(--ghostty-text, #cdd6f4);
  font-size: 11px;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghostty-table {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0;
  font-size: 13px;
}

.ghostty-table td {
  padding: 3px 12px 3px 0;
  vertical-align: top;
}

.ghostty-cmd-name {
  color: var(--ghostty-peach, #fab387);
  font-weight: 700;
  cursor: pointer;
}

.ghostty-cmd-name:hover {
  text-decoration: underline;
}

.ghostty-section-title {
  font-weight: 700;
  color: var(--ghostty-blue, #89b4fa);
  margin-bottom: 6px;
}

.ghostty-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 6px 0;
}

.ghostty-skills-group {
  background: var(--ghostty-surface0, rgba(49, 50, 68, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.ghostty-skills-header {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ghostty-skills-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
  color: var(--ghostty-subtext, #a6adc8);
}

.ghostty-projects-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 6px 0;
  font-size: 12.5px;
}

.ghostty-projects-header {
  display: grid;
  grid-template-columns: 120px 1.4fr 100px 1.4fr;
  gap: 8px;
  font-weight: 700;
  color: var(--ghostty-subtext, #a6adc8);
  padding: 0 6px 4px 6px;
  border-bottom: 1px solid var(--ghostty-surface1, #45475a);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.ghostty-projects-row {
  display: grid;
  grid-template-columns: 120px 1.4fr 100px 1.4fr;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ghostty-projects-row:hover {
  background: var(--ghostty-surface0, rgba(49, 50, 68, 0.6));
}

.ghostty-p-slug {
  color: var(--ghostty-peach, #fab387);
  font-weight: 600;
}

.ghostty-p-title {
  color: var(--ghostty-text, #cdd6f4);
}

.ghostty-p-status {
  color: var(--ghostty-green, #a6e3a1);
}

.ghostty-p-stack {
  color: var(--ghostty-subtext, #a6adc8);
  font-size: 12px;
}

.ghostty-neofetch-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 8px 0;
  font-size: 12.5px;
  flex-wrap: wrap;
}

.ghostty-neofetch-art {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.25;
  margin: 0;
}

.ghostty-neofetch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ghostty-color-palette {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.ghostty-color-palette span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

.ghostty-pills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  z-index: 2;
}

.ghostty-pills-label {
  font-size: 11px;
  color: var(--ghostty-subtext, #a6adc8);
  margin-right: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ghostty-pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ghostty-surface0, rgba(49, 50, 68, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ghostty-text, #cdd6f4);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ghostty-pill:hover {
  background: var(--ghostty-surface1, rgba(69, 71, 90, 0.8));
  border-color: var(--ghostty-mauve, #cba6f7);
  color: #fff;
  transform: translateY(-1px);
}

.ghostty-titlebar-theme {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Geist Mono", "SF Mono", monospace;
  font-size: 11px;
  color: var(--ghostty-subtext, #a6adc8);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.ghostty-titlebar-theme:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ghostty-theme-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ghostty-mauve, #cba6f7);
}

.ghostty-error-msg {
  color: var(--ghostty-red, #f38ba8);
}

/* ==========================================================================
   MDos 27 Flagship Apps: Safari, Preview, Settings & Spotlight Upgrade
   ========================================================================== */

/* MDos Spotlight List & Selection */
.mdos-spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #f1f5f9;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease;
  font-family: inherit;
}

.mdos-spotlight-item:hover,
.mdos-spotlight-item.is-selected {
  background: rgba(56, 189, 248, 0.18) !important;
  outline: 1px solid rgba(56, 189, 248, 0.45);
}

.mdos-spotlight-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mdos-spotlight-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mdos-spotlight-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mdos-spotlight-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mdos-spotlight-subtitle {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mdos-spotlight-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* Safari App (MDos 27 Browser) */
[data-win-id="app-safari"] .mdos-window-body,
[data-win-body="app-safari"] {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #080c14 !important;
}

.safari-app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #080c14;
}

/* Safari Tabs Bar */
.safari-tabs-bar {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px 0 12px;
  flex-shrink: 0;
  gap: 8px;
}

.safari-tabs-scroll {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

.safari-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.safari-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 7px 14px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
  outline: none;
}

.safari-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.safari-tab.is-active {
  background: rgba(28, 28, 32, 0.96);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  font-weight: 600;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.safari-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2997ff;
}

.safari-tab-favicon {
  font-size: 12px;
  line-height: 1;
}

.safari-tab-title {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Safari Toolbar & Omnibar */
.safari-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(22, 22, 25, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.safari-nav-btns {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.safari-tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d2d2d7;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
  outline: none;
}

.safari-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.safari-tool-btn:active {
  transform: scale(0.95);
}

.safari-omnibar {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #f5f5f7;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.safari-ssl-icon {
  font-size: 12px;
  opacity: 0.8;
  flex-shrink: 0;
}

.safari-domain-text {
  flex: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #f5f5f7;
  letter-spacing: 0.01em;
  text-align: center;
}

.safari-open-external-btn {
  font-size: 11px;
  color: #2997ff;
  text-decoration: none;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.28);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.safari-open-external-btn:hover {
  background: rgba(41, 151, 255, 0.22);
  color: #ffffff;
  border-color: rgba(41, 151, 255, 0.45);
}

.safari-viewport-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.safari-vp-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #86868b;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  outline: none;
}

.safari-vp-btn:hover {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.06);
}

.safari-vp-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Safari Stage */
.safari-stage {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  background: #0a0a0c;
}

.safari-overview-content,
.safari-project-detail-content {
  height: auto !important;
  min-height: 100%;
}

.safari-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.safari-reveal-card {
  background: rgba(28, 28, 30, 0.78) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Preview App (Resume & Document QuickLook) */
[data-win-id="app-preview"] .mdos-window-body,
[data-win-body="app-preview"] {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0c1222 !important;
}

.preview-app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #0c1222;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.preview-toolbar-left,
.preview-toolbar-center,
.preview-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-sidebar-toggle {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}

.preview-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.preview-zoom-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(2, 6, 23, 0.5);
  padding: 2px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-tool-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 0;
  line-height: 1;
  outline: none;
}

.preview-tool-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

#preview-zoom-reset {
  width: auto;
  padding: 0 7px;
  font-size: 10.5px;
  font-weight: 600;
}

.preview-zoom-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.preview-mode-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(2, 6, 23, 0.5);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-mode-btn {
  padding: 4px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  outline: none;
}

.preview-mode-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.preview-mode-btn.is-active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.preview-download-btn {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Preview Workspace: Sidebar and Viewport */
.preview-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 45px);
}

.preview-sidebar {
  width: 140px;
  background: rgba(15, 23, 42, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex-shrink: 0;
}

.preview-thumb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.preview-thumb-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.preview-thumb-card.is-active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.preview-thumb-paper {
  width: 68px;
  height: 88px;
  background: #ffffff;
  border-radius: 4px;
  padding: 8px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  box-sizing: border-box;
}

.preview-thumb-mock-line {
  height: 2.5px;
  background: #cbd5e1;
  border-radius: 1px;
}

.preview-thumb-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
}

.preview-thumb-card.is-active .preview-thumb-label {
  color: #38bdf8;
}

.preview-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  background: #0b1120;
}

.preview-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.preview-pages-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

/* Paper Sheet Layout */
.preview-paper-sheet {
  width: 680px;
  min-height: 880px;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 4px;
  padding: 36px 40px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.resume-sec-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f172a;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 4px;
  margin: 0 0 10px 0;
}

/* Settings App Styling */
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  font-family: inherit;
}

.settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.settings-nav-item.is-active {
  background: rgba(56, 189, 248, 0.18);
  color: #fff;
  font-weight: 600;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-btn {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.settings-btn.primary {
  background: var(--accent, #38bdf8);
  border-color: transparent;
  color: #020617;
  font-weight: 700;
}

.settings-btn.primary:hover {
  filter: brightness(1.1);
}



/* casestudy.css — Reusable UI Block Styles for Design Engineering & Agency Case Studies */

:root {
  --cs-bg: #0a0a0c;
  --cs-card-bg: rgba(28, 28, 30, 0.72);
  --cs-card-border: rgba(255, 255, 255, 0.10);
  --cs-accent: #2997ff;
  --cs-accent-glow: rgba(41, 151, 255, 0.18);
  --cs-text-main: #f5f5f7;
  --cs-text-muted: #86868b;
  --cs-success: #30d158;
  --cs-warning: #ff9f0a;
  --cs-danger: #ff453a;
}

.cs-wrapper {
  background: var(--cs-bg);
  color: var(--cs-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Audience Mode Switcher */
.cs-header {
  border-bottom: 1px solid var(--cs-card-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.cs-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.cs-badge-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cs-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cs-card-border);
  color: var(--cs-accent);
}
.cs-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--cs-card-border);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}
.cs-mode-btn {
  background: transparent;
  border: none;
  color: var(--cs-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cs-mode-btn.active {
  background: var(--cs-accent);
  color: #030712;
  font-weight: 700;
}

/* Section Title */
.cs-section {
  margin-bottom: 36px;
}
.cs-section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cs-section-subtitle {
  font-size: 13px;
  color: var(--cs-text-muted);
  margin-top: -10px;
  margin-bottom: 18px;
}

/* Component 1: Wayback Scrubber */
.cs-scrubber-container {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cs-card-border);
  background: #030712;
  user-select: none;
}
.cs-scrubber-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cs-scrubber-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  box-sizing: border-box;
}
.cs-scrubber-badge {
  position: absolute;
  top: 16px;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}
.cs-badge-gen1 {
  left: 16px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}
.cs-badge-gen2 {
  right: 16px;
  background: rgba(41, 151, 255, 0.16);
  border: 1px solid rgba(41, 151, 255, 0.35);
  color: #2997ff;
}
.cs-scrubber-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  cursor: ew-resize;
  z-index: 20;
}
.cs-scrubber-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Component 2: Code Diff & AST Inspector */
.cs-diff-container {
  background: #040814;
  border: 1px solid var(--cs-card-border);
  border-radius: 12px;
  overflow: hidden;
}
.cs-diff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--cs-card-border);
  flex-wrap: wrap;
  gap: 10px;
}
.cs-diff-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid var(--cs-card-border);
}
.cs-stat-item {
  display: flex;
  flex-direction: column;
}
.cs-stat-label {
  font-size: 11px;
  color: var(--cs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.cs-diff-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
}
.cs-diff-col {
  padding: 16px;
  overflow-x: auto;
}
.cs-diff-col-del {
  background: rgba(239, 68, 68, 0.04);
  border-right: 1px solid var(--cs-card-border);
}
.cs-diff-col-add {
  background: rgba(16, 185, 129, 0.04);
}
.cs-diff-title {
  font-size: 11px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--cs-card-border);
  display: flex;
  justify-content: space-between;
}

/* Component 3: Telemetry & AOV Calculator */
.cs-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.cs-metric-card {
  background: var(--cs-card-bg);
  border: 1px solid var(--cs-card-border);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.cs-metric-num {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 6px 0 2px 0;
  color: #fff;
}
.cs-calc-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--cs-card-border);
  border-radius: 12px;
  padding: 20px;
}
.cs-calc-controls {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.cs-calc-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cs-card-border);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cs-calc-btn.selected {
  background: var(--cs-accent);
  color: #030712;
  font-weight: 700;
  border-color: var(--cs-accent);
}

/* Component 4: Mockup Lens & Token Deck */
.cs-lens-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cs-card-border);
  background: #0a0a0c;
}
.cs-lens-slider-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.cs-swatch-deck {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cs-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cs-card-border);
  font-size: 11px;
  font-family: monospace;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.cs-swatch:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}
.cs-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Component 5: Omnichannel Shelf & Verification */
.cs-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.cs-market-card {
  background: var(--cs-card-bg);
  border: 1px solid var(--cs-card-border);
  border-radius: 12px;
  padding: 18px;
}
.cs-market-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .cs-diff-body {
    grid-template-columns: 1fr;
  }
  .cs-scrubber-container {
    height: 320px;
  }
}


/*# sourceMappingURL=main.4630d4a7ede4b812546d.css.map*/