:root {
  --bg: #0b1020;
  --bg-elev: #121a2f;
  --bg-panel: #151d33;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --warn: #fbbf24;
  --danger: #f87171;
  --success: #34d399;
  --radius: 14px;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Fira Code", ui-monospace, Menlo, monospace;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(167, 139, 250, 0.12), transparent 50%),
    radial-gradient(800px 400px at 50% 100%, rgba(52, 211, 153, 0.06), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  line-height: 1.45;
}

/* ── Layout ─────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 32, 0.82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #a78bfa 55%, #f472b6);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 1rem;
  padding: 1rem 1.25rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.panel-header h2 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.panel-body {
  padding: 0.9rem 1rem 1.1rem;
}

.sidebar .panel-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.right-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Controls ───────────────────────────────────────── */
label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

select,
input[type="range"] {
  accent-color: var(--accent);
}

select {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

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

.btn-ghost {
  background: transparent;
}

.btn-danger {
  color: var(--danger);
}

/* ── Gate palette ───────────────────────────────────── */
.gate-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.gate-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 10px;
  min-height: 40px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.12s ease;
}

.gate-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}

.gate-btn.active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.gate-h { background: linear-gradient(160deg, #0c4a6e, #164e63); color: #7dd3fc; }
.gate-x { background: linear-gradient(160deg, #7f1d1d, #991b1b); color: #fca5a5; }
.gate-y { background: linear-gradient(160deg, #4c1d95, #5b21b6); color: #c4b5fd; }
.gate-z { background: linear-gradient(160deg, #134e4a, #115e59); color: #5eead4; }
.gate-s, .gate-t, .gate-sx { background: linear-gradient(160deg, #312e81, #3730a3); color: #a5b4fc; }
.gate-r { background: linear-gradient(160deg, #713f12, #854d0e); color: #fde68a; }
.gate-cx, .gate-cz, .gate-ccx, .gate-swap { background: linear-gradient(160deg, #1e3a5f, #1e40af); color: #93c5fd; }
.gate-m { background: linear-gradient(160deg, #3f3f46, #52525b); color: #e4e4e7; }
.gate-barrier { background: linear-gradient(160deg, #27272a, #3f3f46); color: #a1a1aa; }

/* ── Demos ──────────────────────────────────────────── */
.demo-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.demo-btn {
  appearance: none;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: 0.12s ease;
}

.demo-btn:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.08);
}

.demo-btn strong {
  font-size: 0.88rem;
}

.demo-btn span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Circuit ────────────────────────────────────────── */
.circuit-wrap {
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.03), transparent 40%),
    var(--bg-elev);
  border-radius: 12px;
  border: 1px solid var(--border);
  min-height: 220px;
}

#circuit-svg {
  display: block;
  width: 100%;
  min-height: 220px;
}

.wire {
  stroke: rgba(148, 163, 184, 0.55);
  stroke-width: 1.5;
}

.wire-label {
  fill: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
}

.cell-hit {
  fill: transparent;
  cursor: crosshair;
}

.cell-hit:hover {
  fill: rgba(56, 189, 248, 0.08);
}

.ctrl-line {
  stroke: #93c5fd;
  stroke-width: 2;
}

.ctrl-dot {
  fill: #93c5fd;
}

.cx-target {
  fill: none;
  stroke: #93c5fd;
  stroke-width: 2;
}

.cx-cross {
  stroke: #93c5fd;
  stroke-width: 2;
}

.swap-x {
  stroke: #c4b5fd;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.barrier-line {
  stroke: #64748b;
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.gate-shape rect {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.gate-shape.gate-h rect { fill: #0c4a6e; }
.gate-shape.gate-x rect { fill: #7f1d1d; }
.gate-shape.gate-y rect { fill: #5b21b6; }
.gate-shape.gate-z rect { fill: #115e59; }
.gate-shape.gate-s rect,
.gate-shape.gate-t rect,
.gate-shape.gate-sx rect { fill: #3730a3; }
.gate-shape.gate-r rect { fill: #854d0e; }
.gate-shape.gate-m rect { fill: #3f3f46; }
.gate-shape.gate-cx rect,
.gate-shape.gate-cz rect { fill: #1e40af; }

.gate-text {
  fill: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
}

.gate-param {
  fill: var(--muted);
  font-size: 9px;
  font-family: var(--mono);
}

.del-hit {
  fill: rgba(248, 113, 113, 0.15);
  stroke: rgba(248, 113, 113, 0.5);
  cursor: pointer;
}

.del-hit:hover {
  fill: rgba(248, 113, 113, 0.4);
}

.del-x {
  fill: #fca5a5;
  font-size: 11px;
  font-weight: 700;
}

.placement-hint {
  fill: none;
  stroke: var(--warn);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

#circuit-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

#status {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}

#status.error {
  color: var(--danger);
}

/* ── Statevector ────────────────────────────────────── */
.sv-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 90px 3.5rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.sv-ket {
  font-family: var(--mono);
  color: var(--accent);
}

.sv-amp {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.sv-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  border-radius: 99px;
}

.sv-prob {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* ── Histogram ──────────────────────────────────────── */
#histogram {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 140px;
  padding-top: 1.5rem;
  position: relative;
  flex-wrap: wrap;
}

.hist-title {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.75rem;
  color: var(--muted);
  width: 100%;
}

.hist-col {
  flex: 1 1 36px;
  min-width: 36px;
  max-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 120px;
  justify-content: flex-end;
  gap: 0.25rem;
}

.hist-bar {
  width: 100%;
  min-height: 2px;
  background: linear-gradient(180deg, #a78bfa, #38bdf8);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.hist-label {
  font-size: 0.68rem;
  color: var(--accent);
}

.hist-count {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* ── Bloch ──────────────────────────────────────────── */
#bloch-canvas {
  width: 100%;
  height: 240px;
  display: block;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.9), #0a0f1c);
  border: 1px solid var(--border);
  cursor: grab;
  touch-action: none;
}

#bloch-canvas:active {
  cursor: grabbing;
}

.bloch-meta {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ── QASM ───────────────────────────────────────────── */
#qasm-out {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #cbd5e1;
  background: #0a0f1c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  max-height: 200px;
  overflow: auto;
  white-space: pre;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--mono);
}

.help-text {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.help-text code {
  font-family: var(--mono);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-size: 0.74rem;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0 1rem 1.5rem;
}

/* ── Tool banner ────────────────────────────────────── */
.tool-banner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tool-banner-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tool-banner strong {
  font-size: 0.95rem;
  color: #e0f2fe;
}

.tool-banner #tool-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.btn-help {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(56, 189, 248, 0.2));
  border-color: rgba(167, 139, 250, 0.45);
  color: #e9d5ff;
  font-weight: 700;
}

.btn-help:hover {
  border-color: rgba(167, 139, 250, 0.8);
}

.panel-note {
  margin: 0 0 0.75rem;
}

.panel.flash {
  animation: panel-flash 0.7s ease;
}

@keyframes panel-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
  }
  40% {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45), var(--shadow);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

.stat-pill.sample-mode {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.stat-pill.exact-mode {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

/* ── Dual histogram ─────────────────────────────────── */
.hist-mode-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.hist-mode-tag.exact {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.hist-mode-tag.sampled {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}

.hist-compare {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hist-group-title {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.hist-bars-row {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 110px;
  flex-wrap: wrap;
}

.hist-col .hist-bar.ideal {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  opacity: 0.85;
}

.hist-col .hist-bar.sampled {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.hist-dual {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  width: 100%;
  height: 100px;
}

.hist-dual .hist-bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  min-height: 2px;
  align-self: flex-end;
}

.hist-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hist-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: -1px;
}

.hist-legend .lg-ideal::before {
  background: #38bdf8;
}

.hist-legend .lg-sample::before {
  background: #fbbf24;
}

/* ── Bloch explain ──────────────────────────────────── */
.bloch-explain {
  font-family: var(--font);
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-top: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.bloch-explain.warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.bloch-explain.ok {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}

.tips-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.tips-list li {
  margin-bottom: 0.35rem;
}

/* ── Toast ──────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 100;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: min(92vw, 420px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.toast.sample {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fef3c7;
}

/* ── Help modal ─────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.help-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.help-nav button {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.help-nav button.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.modal-body {
  padding: 1rem 1.2rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.help-pane {
  display: none;
}

.help-pane.active {
  display: block;
}

.help-pane h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.help-pane h3:first-child {
  margin-top: 0;
}

.help-pane p,
.help-pane li {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.help-pane code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.help-callout {
  margin: 0.85rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.85rem;
  line-height: 1.5;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0.5rem 0 1rem;
}

.help-table th,
.help-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.help-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.help-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
}

.circuit-hint-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  background: rgba(11, 16, 32, 0.35);
  border-radius: 12px;
}

.circuit-wrap {
  position: relative;
}
