@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap";

/* virtual:styles.css */
#introOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  pointer-events: all;
  overflow: hidden;
}
.intro-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 55% at 50% 50%,
      rgba(167, 139, 250, 0.13) 0%,
      transparent 70%);
  opacity: 0;
  will-change: opacity;
}
.intro-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.intro-atom {
  position: absolute;
  top: -72px;
  left: 50%;
  transform: translate(-50%, 0) scale(0.6);
  width: 48px;
  height: 48px;
  opacity: 0;
}
.intro-atom svg {
  width: 100%;
  height: 100%;
}
.intro-label {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 300;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: #f0f0f2;
  opacity: 0;
  white-space: nowrap;
  will-change: opacity, letter-spacing;
}
.intro-sub {
  font-family: "Inter", sans-serif;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.7);
  opacity: 0;
  will-change: opacity;
}
.intro-rule {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 0px;
  background: rgba(240, 240, 242, 0.25);
  will-change: width;
}
.intro-skip {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}
.intro-skip:hover {
  color: rgba(255, 255, 255, 0.6);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --accent: #a78bfa;
  --accent-light: rgba(167, 139, 250, 0.08);
  --accent-mid: rgba(167, 139, 250, 0.15);
  --sidebar-bg: #0a0a10;
  --sidebar-border: #1a1a2e;
  --text-primary: #e8e8ec;
  --text-secondary: #8e8e9a;
  --text-tertiary: #5e5e6e;
  --surface: #0e0e16;
  --bg: #050508;
  --sidebar-width: 220px;
  --sidebar-collapsed: 54px;
}
html,
body {
  height: 100%;
  overflow: hidden;
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
.app {
  display: flex;
  height: 100vh;
  width: 100vw;
  padding-left: var(--sidebar-collapsed);
  box-sizing: border-box;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-collapsed);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  transition: width 0.52s cubic-bezier(0.32, 0, 0.16, 1), box-shadow 0.52s ease;
  z-index: 9050;
  overflow: hidden;
  will-change: width;
}
.sidebar:hover {
  width: var(--sidebar-width);
  box-shadow: 6px 0 40px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}
.sidebar-header {
  height: 58px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.atom-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: absolute;
  left: calc(var(--sidebar-collapsed) / 2);
  transform: translateX(-50%);
}
.atom-icon svg {
  width: 100%;
  height: 100%;
}
.sidebar-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  max-width: 0;
  margin-left: calc(var(--sidebar-collapsed) / 2 + 15px + 10px);
  pointer-events: none;
  transition: opacity 0.08s ease 0s, max-width 0.52s cubic-bezier(0.32, 0, 0.16, 1);
}
.sidebar:hover .sidebar-title {
  opacity: 1;
  max-width: 160px;
  pointer-events: auto;
  transition: opacity 0.15s ease 0.18s, max-width 0.52s cubic-bezier(0.32, 0, 0.16, 1);
}
.sidebar-label {
  padding: 0 14px;
  margin-bottom: 6px;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease 0s;
  flex-shrink: 0;
}
.sidebar:hover .sidebar-label {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease 0.18s;
}
.nav-list {
  list-style: none;
  padding: 0 6px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.nav-list li {
  display: flex;
  width: 100%;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px 9px 12px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
  border: none;
  background: transparent;
  text-align: left;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 450;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  justify-content: flex-start;
}
.nav-item:hover {
  background: var(--accent-light);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 550;
}
.nav-item.active .nav-icon {
  color: var(--accent);
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
}
.nav-text {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  max-width: 0;
  pointer-events: none;
  transition: opacity 0.08s ease 0s, max-width 0.52s cubic-bezier(0.32, 0, 0.16, 1);
  flex: 1;
  min-width: 0;
}
.sidebar:hover .nav-text {
  opacity: 1;
  max-width: 160px;
  pointer-events: auto;
  transition: opacity 0.15s ease 0.18s, max-width 0.52s cubic-bezier(0.32, 0, 0.16, 1);
}
.docs-arrow {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-left: auto;
  color: var(--text-tertiary);
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease 0.08s,
    max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.2s ease;
}
.sidebar:hover .docs-arrow {
  opacity: 0.6;
  max-width: 11px;
  pointer-events: auto;
}
.nav-item:hover .docs-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
  color: var(--accent);
}
.sidebar-tour-slot {
  margin-top: auto;
  padding: 10px 6px 14px;
  flex-shrink: 0;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.sidebar-tour-slot:empty {
  padding: 0;
  border-top: none;
}
.wt-float-card {
  position: fixed;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: rgba(12, 12, 20, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  padding: 20px 22px;
  z-index: 10100;
  pointer-events: all;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(167, 139, 250, 0.06);
  opacity: 0;
  transition:
    opacity 0.28s ease,
    left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.wt-float-card.wt-card-visible {
  opacity: 1;
}
.wt-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wt-float-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.wt-float-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.wt-float-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.wt-float-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.wt-float-body strong {
  color: var(--accent);
  font-weight: 550;
}
.wt-float-body em {
  color: var(--text-primary);
  font-style: normal;
}
.wt-float-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wt-float-btn {
  padding: 8px 20px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.wt-float-btn:hover {
  background: rgba(167, 139, 250, 0.24);
  border-color: rgba(167, 139, 250, 0.45);
}
.wt-float-skip {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.2s ease;
  padding: 6px 0;
}
.wt-float-skip:hover {
  color: rgba(255, 255, 255, 0.55);
}
.sidebar-tour-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 450;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  justify-content: flex-start;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-tour-btn:hover {
  background: var(--accent-light);
  color: var(--text-primary);
}
.sidebar-tour-btn .nav-icon {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}
.sidebar-tour-btn:hover .nav-icon {
  color: var(--accent);
}
.sidebar-tour-btn .sidebar-tour-label {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  max-width: 0;
  pointer-events: none;
  transition: opacity 0.08s ease 0s, max-width 0.52s cubic-bezier(0.32, 0, 0.16, 1);
  flex: 1;
  min-width: 0;
}
.sidebar:hover .sidebar-tour-btn .sidebar-tour-label {
  opacity: 1;
  max-width: 160px;
  pointer-events: auto;
  transition: opacity 0.15s ease 0.18s, max-width 0.52s cubic-bezier(0.32, 0, 0.16, 1);
}
body.wt-active .sidebar {
  width: var(--sidebar-width) !important;
  overflow-y: auto !important;
  transition: none !important;
}
body.wt-active .sidebar .nav-text,
body.wt-active .sidebar .sidebar-title,
body.wt-active .sidebar .sidebar-tour-label {
  opacity: 1 !important;
  max-width: 160px !important;
  pointer-events: auto !important;
}
body.wt-active .sidebar .sidebar-label {
  opacity: 1 !important;
  pointer-events: auto !important;
}
body.wt-active .sidebar .docs-arrow {
  opacity: 0.6 !important;
  max-width: 11px !important;
  pointer-events: auto !important;
}
body.wt-active .sidebar {
  z-index: 10002 !important;
  pointer-events: none !important;
}
body.wt-active .sidebar .nav-item,
body.wt-active .sidebar .nav-item * {
  pointer-events: none !important;
}
body.wt-active .dashboard-panel {
  z-index: 10002 !important;
  pointer-events: none !important;
}
body.wt-active .wt-target-active,
body.wt-active .wt-target-active *,
body.wt-active #sidebar .wt-target-active,
body.wt-active #sidebar .wt-target-active * {
  pointer-events: all !important;
}
.wt-target-active {
  position: relative;
  z-index: 10055;
}
.wt-passthrough {
  position: fixed;
  z-index: 10060;
  pointer-events: all;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.dashboard-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 230px;
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: 12px;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s ease;
}
.dashboard-panel.collapsed {
  border-radius: 10px;
}
.dashboard-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--sidebar-border);
  cursor: pointer;
  user-select: none;
}
.dashboard-collapse-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}
.dashboard-collapse-btn:hover {
  color: var(--text-primary);
}
.dashboard-collapse-btn svg {
  width: 14px;
  height: 14px;
}
#dashCollapseIcon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.dashboard-panel.collapsed #dashCollapseIcon {
  transform: rotate(180deg);
}
.dashboard-panel.collapsed .dashboard-collapse-btn {
  color: var(--accent);
}
.dashboard-panel.collapsed .dashboard-panel-header {
  border-bottom: none;
}
.dashboard-body {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 16px;
  transition:
    max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  opacity: 1;
}
.dashboard-panel.collapsed .dashboard-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.dashboard-body::-webkit-scrollbar {
  width: 4px;
}
.dashboard-body::-webkit-scrollbar-track {
  background: transparent;
}
.dashboard-body::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 4px;
}
.dashboard-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0;
}
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}
.dash-value {
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}
.dash-bar {
  width: 100%;
  height: 4px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2px;
}
.dash-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.dash-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: var(--text-tertiary);
  font-size: 12px;
  gap: 8px;
}
.dash-placeholder svg {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}
.bloch-dash-section {
  margin-bottom: 6px;
}
.bloch-dash-section-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--sidebar-border);
}
.dash-zone-separator {
  height: 1px;
  margin: 6px 0 8px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(156, 153, 254, 0.12) 30%,
      rgba(156, 153, 254, 0.12) 70%,
      transparent 100%);
}
.bloch-state-eq {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 8px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--sidebar-border);
  word-break: break-all;
}
.bloch-state-eq .ket {
  color: var(--accent);
  font-weight: 500;
}
.bloch-state-eq .coeff {
  color: #8e8e85;
}
.bloch-prob-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bloch-prob-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-secondary);
  width: 28px;
  flex-shrink: 0;
}
.bloch-prob-bar {
  flex: 1;
  height: 6px;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(156, 153, 254, 0.06);
}
.bloch-prob-fill {
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--accent),
      #b8b6ff);
  border-radius: 6px;
  transition: width 0.15s ease-out;
}
.bloch-prob-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-primary);
  width: 42px;
  text-align: right;
  flex-shrink: 0;
}
.bloch-angle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.bloch-angle-card {
  background: var(--surface);
  border: 1px solid var(--sidebar-border);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}
.bloch-angle-sym {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.bloch-angle-rad {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-primary);
  margin-top: 2px;
}
.bloch-angle-deg {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.bloch-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.bloch-preset-btn {
  background: var(--surface);
  border: 1px solid var(--sidebar-border);
  border-radius: 6px;
  padding: 6px 4px;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.15s ease;
}
.bloch-preset-btn:hover {
  background: var(--accent-light);
  border-color: rgba(156, 153, 254, 0.2);
  color: var(--accent);
}
.bloch-preset-btn.active-preset {
  background: var(--accent-light);
  border-color: rgba(156, 153, 254, 0.3);
  color: var(--accent);
  font-weight: 500;
}
.bloch-measure-btn {
  width: 100%;
  padding: 10px;
  background:
    linear-gradient(
      135deg,
      rgba(156, 153, 254, 0.15),
      rgba(156, 153, 254, 0.08));
  border: 1px solid rgba(156, 153, 254, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 550;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bloch-measure-btn:hover {
  background:
    linear-gradient(
      135deg,
      rgba(156, 153, 254, 0.25),
      rgba(156, 153, 254, 0.12));
  border-color: rgba(156, 153, 254, 0.35);
}
.bloch-measure-btn:active {
  transform: scale(0.98);
}
.bloch-measure-btn svg {
  width: 14px;
  height: 14px;
}
.qc-summary {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  min-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qc-wire-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
  max-width: 100%;
  overflow: hidden;
}
.qc-wire-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: rgba(167, 139, 250, 0.7);
  flex-shrink: 0;
  line-height: 1;
}
.qc-wire-label-left {
  margin-right: 0;
}
.qc-wire-label-right {
  font-size: 11px;
  color: rgba(167, 139, 250, 0.5);
}
.qc-wire {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
}
.qc-wire-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(167, 139, 250, 0.25);
  pointer-events: none;
  z-index: 0;
}
.qc-slot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 600;
  flex-shrink: 0;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  box-sizing: border-box;
}
.qc-slot-empty {
  border: 1px dashed rgba(167, 139, 250, 0.18);
  background: transparent;
}
.qc-slot-filled {
  border: 1px solid;
  cursor: default;
}
.qc-slot-active {
  transform: scale(1.18);
  box-shadow: 0 0 8px var(--gate-color, rgba(167,139,250,0.5));
  border-width: 1.5px !important;
}
.qc-controls {
  display: flex;
  gap: 5px;
}
.qc-ctrl-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 4px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--sidebar-border);
  color: var(--text-secondary);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    opacity 0.15s;
  letter-spacing: 0.02em;
}
.qc-ctrl-btn:not(:disabled):hover {
  background: var(--accent-light);
  border-color: rgba(156, 153, 254, 0.3);
  color: var(--accent);
}
.qc-ctrl-btn:not(:disabled):active {
  transform: scale(0.97);
}
.qc-ctrl-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.gate-matrix-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px;
}
.gate-mat-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.gate-matrix {
  display: flex;
  align-items: center;
  gap: 2px;
}
.gate-mat-bracket {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 100;
  color: rgba(167, 139, 250, 0.45);
  line-height: 1;
  user-select: none;
}
.gate-mat-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  padding: 2px 0;
}
.gate-mat-cell {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  min-width: 26px;
  line-height: 1.5;
}
.has-tip {
}
#omma-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  background: #13131f;
  color: var(--text-primary, #e8e8f0);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  width: max-content;
  max-width: 260px;
  white-space: normal;
  text-align: center;
  opacity: 0;
  transition: opacity 0.14s ease;
}
#omma-tooltip.visible {
  opacity: 1;
}
#omma-tooltip-arrow {
  position: fixed;
  z-index: 99998;
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(167, 139, 250, 0.25);
  opacity: 0;
  transition: opacity 0.14s ease;
}
#omma-tooltip-arrow.visible {
  opacity: 1;
}
.edu-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 8px;
}
.edu-section-header .bloch-dash-section-title {
  flex: 1;
  margin-bottom: 0;
  border: none;
  padding: 0;
}
.edu-tip-toggle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--text-tertiary);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1;
}
.edu-tip-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.edu-tip-toggle.active {
  border-color: var(--accent);
  color: var(--bg);
  background: var(--accent);
  transform: rotate(45deg);
}
.edu-tip-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    margin 0.3s ease;
  opacity: 0;
  margin-bottom: 0;
}
.edu-tip-body.open {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 8px;
}
.edu-tip-body p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-secondary);
  padding: 8px 10px;
  background: rgba(156, 153, 254, 0.05);
  border: 1px solid rgba(156, 153, 254, 0.1);
  border-radius: 6px;
  margin: 4px 0 0;
}
.edu-analogy {
  margin-bottom: 10px;
}
.edu-analogy-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: rgba(156, 153, 254, 0.06);
  border: 1px solid rgba(156, 153, 254, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.edu-analogy-toggle:hover {
  background: rgba(156, 153, 254, 0.1);
  border-color: rgba(156, 153, 254, 0.2);
}
.edu-analogy-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.edu-analogy-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  flex: 1;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.01em;
}
.edu-analogy-arrow {
  font-size: 10px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.edu-analogy-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
.edu-analogy-body.open {
  max-height: 200px;
  opacity: 1;
}
.edu-analogy-body p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 10px 10px 6px;
  margin: 0;
}
.edu-challenge {
  margin-top: 6px;
}
.edu-challenge-prompt {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
}
.edu-challenge-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.edu-challenge-btn {
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--sidebar-border);
  border-radius: 6px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: left;
  transition: all 0.15s ease;
}
.edu-challenge-btn:hover {
  background: var(--accent-light);
  border-color: rgba(156, 153, 254, 0.25);
  color: var(--text-primary);
}
.edu-challenge-btn.selected {
  background: rgba(156, 153, 254, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.edu-challenge-result {
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 6px;
  animation: fadeSlideIn 0.3s ease;
}
.edu-challenge-result.correct {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #34d399;
}
.edu-challenge-result.surprise {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.welcome-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  padding: 24px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.welcome-state .welcome-icon {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}
.welcome-state .welcome-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.welcome-state .welcome-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 220px;
}
.welcome-start-btn {
  margin-top: 6px;
  padding: 10px 20px;
  background:
    linear-gradient(
      135deg,
      rgba(156, 153, 254, 0.2),
      rgba(156, 153, 254, 0.1));
  border: 1px solid rgba(156, 153, 254, 0.25);
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 550;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.welcome-start-btn:hover {
  background:
    linear-gradient(
      135deg,
      rgba(156, 153, 254, 0.3),
      rgba(156, 153, 254, 0.15));
  border-color: rgba(156, 153, 254, 0.4);
}
.bloch-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 4px rgba(0, 0, 0, 1);
  white-space: nowrap;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}
.bloch-label.axis-x,
.bloch-label.axis-nx {
  color: #e07050cc;
}
.bloch-label.axis-y,
.bloch-label.axis-ny {
  color: #50d0a0cc;
}
.bloch-label.axis-z,
.bloch-label.axis-nz {
  color: #6aabffcc;
}
.bloch-labels-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.main {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
#viewport {
  width: 100%;
  height: 100%;
  display: block;
}
.module-overlay {
  position: absolute;
  bottom: 28px;
  left: 32px;
  max-width: 55%;
  pointer-events: none;
  z-index: 5;
}
.module-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.module-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
  line-height: 1.2;
}
.module-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}
.module-overlay.visible .module-tag,
.module-overlay.visible .module-name,
.module-overlay.visible .module-desc {
  opacity: 1;
  transform: translateY(0);
}
.scroll-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}
.scroll-hint::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--text-tertiary);
}
.mobile-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(10, 10, 16, 0.92);
  border: 1px solid var(--sidebar-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.mobile-toggle:hover {
  background: rgba(20, 20, 30, 0.96);
  border-color: rgba(167, 139, 250, 0.25);
}
.mobile-toggle svg {
  width: 17px;
  height: 17px;
  color: var(--text-primary);
}
.mobile-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
@media (max-width: 900px) {
  .scroll-hint {
    display: none;
  }
}
.mobile-toggle {
  display: none !important;
}
.mobile-scrim {
  display: none !important;
}
.sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 100vh !important;
  transform: none !important;
  border-top: none !important;
  border-radius: 0 !important;
  max-height: none !important;
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  flex-direction: column !important;
  width: var(--sidebar-collapsed) !important;
  border-right: 1px solid var(--sidebar-border) !important;
}
.sidebar:hover {
  width: var(--sidebar-width) !important;
  overflow-y: auto !important;
  box-shadow: 6px 0 40px rgba(0, 0, 0, 0.55) !important;
}
.app {
  padding-left: var(--sidebar-collapsed) !important;
  box-sizing: border-box !important;
}
.dashboard-panel {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.main {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
}
.wt-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.42);
  transition: clip-path 0.45s ease, opacity 0.3s ease;
  pointer-events: all;
}
.wt-ring {
  position: fixed;
  pointer-events: none;
  z-index: 10050;
  border-radius: 12px;
  box-sizing: border-box;
  border: 2px solid rgba(167, 139, 250, 0.55);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.12);
  opacity: 0;
  transition:
    left 0.45s ease,
    top 0.45s ease,
    width 0.45s ease,
    height 0.45s ease,
    opacity 0.3s ease;
}
.wt-hint {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10100;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wt-hint::before,
.wt-hint::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: wt-pulse 1.8s ease-out infinite;
}
.wt-hint::after {
  animation-delay: 0.9s;
}
@keyframes wt-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}
.wt-hint-drag {
  width: 18px;
  height: 18px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.28), 0 0 14px rgba(167, 139, 250, 0.45);
}
.wt-hint-drag::before,
.wt-hint-drag::after {
  background: var(--accent);
  animation: wt-pulse 1.6s ease-out infinite;
}
.wt-card {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 300px;
  background: rgba(10, 10, 16, 0.96);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  padding: 20px;
  z-index: 10200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(167, 139, 250, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wt-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.wt-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.18);
  transition: background 0.3s ease, transform 0.3s ease;
}
.wt-dot-on {
  background: var(--accent);
  transform: scale(1.3);
}
.wt-dot-done {
  background: rgba(167, 139, 250, 0.45);
}
.wt-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.wt-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.wt-body {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.wt-body strong {
  color: var(--accent);
  font-weight: 550;
}
.wt-body em {
  color: var(--text-primary);
  font-style: normal;
}
.wt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wt-btn {
  padding: 8px 18px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 550;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.wt-btn:hover {
  background: rgba(167, 139, 250, 0.22);
  border-color: rgba(167, 139, 250, 0.4);
}
.wt-btn:active {
  transform: scale(0.97);
}
.wt-skip {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  padding: 4px 0;
  flex-shrink: 0;
}
.wt-skip:hover {
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 600px) {
  .wt-card {
    right: 12px;
    bottom: 16px;
    width: calc(100vw - 24px);
    max-width: 340px;
  }
}
