/* Wheel System Lab — wheel left · intelligence panel right */

body.wheel-system-lab #panelWheel .dash-lab-env {
  display: none;
}

body.wheel-system-lab #panelWheel.is-active .intel-wheel-scene {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 12px 20px 32px;
  box-sizing: border-box;
}

body.wheel-system-lab .intel-wheel__viewport {
  position: relative;
  z-index: 4;
  width: 100%;
}

/* Vertical picker rail (design-lab only) */
body.wheel-system-lab .intel-wheel__viewport--vertical {
  height: min(280px, 42vh);
  min-height: 220px;
  max-height: 320px;
  margin-bottom: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

body.wheel-system-lab .intel-wheel__viewport--vertical.is-dragging {
  cursor: grabbing;
}

body.wheel-system-lab .intel-wheel__track--vertical {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: auto;
  will-change: transform;
}

body.wheel-system-lab .intel-wheel__viewport--vertical .intel-wheel__chip {
  flex: 0 0 48px;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
}

body.wheel-system-lab .intel-wheel__viewport--vertical .intel-wheel__chip-label {
  width: 100%;
  text-align: center;
  font-family: var(--dash-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 236, 245, 0.65);
  transform-origin: center center;
  will-change: transform, opacity;
  white-space: nowrap;
}

body.wheel-system-lab .intel-wheel__viewport--vertical .intel-wheel__chip.is-centered .intel-wheel__chip-label {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--dash-gold, #d4a85a) !important;
  text-shadow: 0 0 22px rgba(212, 168, 90, 0.45);
}

body.wheel-system-lab .intel-wheel__focus--vertical {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  width: auto;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 90, 0.14);
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 168, 90, 0.1), transparent 72%);
  box-shadow: 0 0 32px rgba(212, 168, 90, 0.1);
  pointer-events: none;
}

body.wheel-system-lab .intel-wheel__focus--vertical::after {
  left: 12%;
  right: 12%;
  top: auto;
  bottom: -1px;
  width: auto;
  height: 2px;
}

/* Two-column stage: vertical rail | intelligence */
.wheel-stage {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .wheel-stage {
    grid-template-columns: 1fr;
  }
}

.wheel-stage__wheel {
  position: sticky;
  top: 56px;
  padding: 20px 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 8, 14, 0.55);
  backdrop-filter: blur(12px);
}

.wheel-stage__panel {
  min-width: 0;
}

#wheelEngine.wheel-stage__panel:not(.is-swapping) {
  opacity: 1 !important;
}

#wheelEngine.is-swapping {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.35s var(--dash-ease, ease);
}

/* Intelligence panel */
.intel-panel {
  padding: 28px 28px 32px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(12, 14, 22, 0.92), rgba(4, 6, 12, 0.88));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.intel-panel__head {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intel-panel__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid rgba(212, 168, 90, 0.35);
  background: rgba(212, 168, 90, 0.08);
  font-family: var(--dash-mono, "JetBrains Mono", monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dash-gold, #d4a85a);
}

.intel-panel__headline {
  font-family: var(--dash-display, "Playfair Display", Georgia, serif);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f5f0e8;
}

.intel-panel__explanation {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(200, 208, 220, 0.92);
  margin-bottom: 24px;
}

.intel-panel__block {
  margin-bottom: 22px;
}

.intel-panel__label {
  font-family: var(--dash-mono, "JetBrains Mono", monospace);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 168, 90, 0.65);
  margin-bottom: 10px;
}

.intel-panel__copy {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(176, 184, 200, 0.95);
}

/* Data cards */
.intel-data-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.intel-data-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.intel-data-card--wide {
  padding: 16px 18px;
}

.intel-data-card__kicker {
  display: block;
  font-family: var(--dash-mono, "JetBrains Mono", monospace);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(138, 148, 168, 0.85);
  margin-bottom: 6px;
}

.intel-data-card__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #e8ecf5;
  margin-bottom: 6px;
}

.intel-data-card__move {
  font-family: var(--dash-mono, "JetBrains Mono", monospace);
  font-size: 13px;
  font-weight: 500;
}

.intel-data-card__move.is-up { color: #3ecf8e; }
.intel-data-card__move.is-dn { color: #f07178; }

.intel-data-card__copy {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(200, 208, 220, 0.9);
  margin: 0;
}

/* Stocks */
.intel-panel__stocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.intel-stock {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 2px 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  transition: border-color 0.25s, transform 0.2s ease;
}

.intel-stock:hover {
  border-color: rgba(212, 168, 90, 0.4);
  transform: translateY(-1px);
}

.intel-stock__sym {
  grid-column: 1;
  font-size: 16px;
  font-weight: 600;
}

.intel-stock__pct {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--dash-mono, "JetBrains Mono", monospace);
  font-size: 13px;
}

.intel-stock__pct.is-up { color: #3ecf8e; }
.intel-stock__pct.is-dn { color: #f07178; }

.intel-stock__name {
  grid-column: 1;
  font-size: 12px;
  color: rgba(138, 148, 168, 0.95);
}

.intel-stock__role {
  grid-column: 1 / -1;
  font-size: 11px;
  color: rgba(212, 168, 90, 0.55);
  font-family: var(--dash-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.04em;
}

/* Watch next */
.intel-panel__watch {
  margin: 0;
  padding: 0;
  list-style: none;
}

.intel-panel__watch li {
  position: relative;
  padding: 10px 0 10px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(200, 208, 220, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.intel-panel__watch li:last-child {
  border-bottom: none;
}

.intel-panel__watch li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dash-gold, #d4a85a);
  opacity: 0.7;
}

.is-swapping .intel-panel__headline,
.is-swapping .intel-panel__explanation,
.is-swapping .intel-panel__copy {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Chrome */
.wheel-lab-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(2, 2, 4, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--dash-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wheel-lab-chrome strong { color: var(--dash-gold); }
.wheel-lab-chrome a { color: rgba(232, 236, 245, 0.45); text-decoration: none; }
.wheel-lab-chrome a:hover { color: var(--dash-gold); }

.wheel-lab-main {
  padding-top: 48px;
  min-height: 100vh;
}

.wheel-lab-scene {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Debug */
.wheel-lab-debug {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 500;
  max-width: min(420px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 90, 0.35);
  background: rgba(4, 6, 12, 0.92);
  font-family: var(--dash-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  line-height: 1.45;
  color: #b0b8c8;
  pointer-events: none;
}
.wheel-lab-debug strong {
  display: block;
  color: var(--dash-gold, #d4a85a);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wheel-lab-debug dl { margin: 0; }
.wheel-lab-debug dt {
  float: left;
  clear: left;
  color: rgba(212, 168, 90, 0.65);
  margin-right: 8px;
}
.wheel-lab-debug dd { margin: 0 0 4px 0; overflow: hidden; }
.wheel-lab-debug dd.ok { color: #3ecf8e; }
.wheel-lab-debug dd.err { color: #f07178; }

/* Mock Deep Dive */
.wheel-dive {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  visibility: hidden;
}
.wheel-dive.is-open {
  pointer-events: auto;
  visibility: visible;
}
.wheel-dive__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s;
}
.wheel-dive.is-open .wheel-dive__bg { background: rgba(0, 0, 0, 0.78); }
.wheel-dive__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(100%, 400px);
  background: linear-gradient(165deg, #0e1018, #06070c);
  border-left: 1px solid rgba(212, 168, 90, 0.25);
  transform: translateX(100%);
  transition: transform 0.5s var(--dash-ease, ease);
  padding: 24px;
}
.wheel-dive.is-open .wheel-dive__panel { transform: translateX(0); }
.wheel-dive__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #e8ecf5;
  font-size: 20px;
  cursor: pointer;
}
.wheel-dive h3 { font-size: 24px; margin: 20px 0 8px; }
.wheel-dive p { font-size: 14px; line-height: 1.55; color: #8a94a8; }
.wheel-dive .kicker {
  font-family: var(--dash-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dash-gold);
}
