/* ============================================================================
 * Parametric PCB & Silkscreen Studio Workbench Stylesheet
 * High-contrast dark EDA CAD aesthetic with crisp typography & zero overflow
 * ============================================================================ */

:root {
  --bg-app: #090b10;
  --bg-panel: #10131c;
  --bg-panel-alt: #151926;
  --bg-input: #0b0e16;
  --bg-hover: #1c2233;
  --border-subtle: #202637;
  --border-strong: #2e374f;
  --text-main: #e6edf7;
  --text-muted: #8b95ab;
  --text-dim: #5d677d;
  --accent-cyan: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-pink: #ec4899;
  --accent-red: #ef4444;
  --accent-purple: #a78bfa;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  user-select: none;
}

input, select, textarea {
  user-select: text;
}

.studio-shell {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

/* TOP COMMAND RIBBON */
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  min-height: 46px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  z-index: 20;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-group {
  gap: 8px;
}

.studio-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  letter-spacing: -0.01em;
}

.group-caption {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  margin-right: 2px;
}

.status-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}

.status-pill.status-live {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

.status-pill.status-static {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.status-pill.status-checking {
  background: var(--bg-panel-alt);
  color: var(--text-muted);
}

/* INPUTS & BUTTONS */
.studio-select,
.studio-input {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.studio-select:focus,
.studio-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.studio-select.compact {
  padding: 3px 5px;
  font-size: 11.5px;
}

.studio-input.full-width {
  width: 100%;
}

.studio-input.narrow {
  width: 68px;
}

.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11.5px;
}

button, .btn-ghost {
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--bg-panel-alt);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn-ghost.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn-ghost.icon-only {
  padding: 4px 7px;
}

.btn-accent-outline {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 4px 9px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-accent-outline:hover {
  background: rgba(56, 189, 248, 0.2);
}

.btn-accent-outline.active {
  background: var(--accent-cyan);
  color: #06101a;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #06111d;
  border: 1px solid #7dd3fc;
  padding: 4px 10px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  background: #7dd3fc;
}

.btn-route {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.45);
  padding: 4px 9px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-route:hover:not(:disabled) {
  background: rgba(167, 139, 250, 0.28);
}

.btn-publish {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #04130d;
  border: 1px solid #34d399;
  padding: 4px 10px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-publish:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 5px 9px;
  font-weight: 600;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.28);
}

.full-width {
  width: 100%;
}

/* TOOL SEGMENTED & STAMP BAR */
.tool-segmented {
  background: var(--bg-input);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  gap: 2px;
}

.tool-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 3px 8px;
  font-weight: 600;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tool-btn kbd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
}

.tool-btn:hover {
  color: var(--text-main);
}

.tool-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.45);
}

.stamp-btn {
  background: var(--bg-panel-alt);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 3px 7px;
  font-size: 11.5px;
  font-weight: 600;
}

.stamp-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--accent-amber);
  color: #fde68a;
}

/* MAIN 3-COLUMN WORKBENCH */
.studio-main {
  flex: 1;
  display: grid;
  grid-template-columns: 272px 1fr 312px;
  min-height: 0;
  overflow: hidden;
}

.studio-leftbar,
.studio-rightbar {
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.studio-leftbar {
  border-right: 1px solid var(--border-subtle);
}

.studio-rightbar {
  border-left: 1px solid var(--border-subtle);
}

.panel-block {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.panel-heading h4 {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.muted-count {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* BOOTSTRAP BANNER */
.bootstrap-banner {
  margin: 10px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 11.5px;
  line-height: 1.45;
}

.bootstrap-title {
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 4px;
}

.bootstrap-banner p {
  margin: 0 0 8px;
  color: var(--text-main);
}

.bootstrap-banner code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 4px;
  border-radius: 3px;
}

/* LAYERS */
.active-side-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.mini-pill {
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
}

.mini-pill.active[data-side="top"] {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: #ffffff;
}

.mini-pill.active[data-side="bottom"] {
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
  border-color: #38bdf8;
}

.layer-toggles {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-main);
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.swatch-top-silk { background: #ffffff; }
.swatch-bot-silk { background: #38bdf8; }
.swatch-pad { background: #d4af37; }
.swatch-top-cu { background: #ec4899; }
.swatch-bot-cu { background: #06b6d4; }
.swatch-courtyard { border: 1px dashed #a78bfa; background: rgba(167, 139, 250, 0.2); }
.swatch-obb { border: 1px solid #38bdf8; background: rgba(56, 189, 248, 0.2); }

/* DRC PANEL */
.mini-action-btn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
}

.mini-action-btn:hover {
  background: rgba(245, 158, 11, 0.28);
}

.drc-badge {
  padding: 6px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 11.5px;
  margin-bottom: 6px;
}

.drc-badge.pass {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.drc-badge.warn {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.drc-list {
  max-height: 145px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drc-item {
  background: var(--bg-panel-alt);
  border-left: 3px solid var(--accent-red);
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
  color: var(--text-main);
}

.drc-item.warn-only {
  border-left-color: var(--accent-amber);
}

.drc-item:hover {
  background: var(--bg-hover);
}

/* OBJECT EXPLORER */
.explorer-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  border-bottom: none;
}

.explorer-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 7px 0;
}

.exp-tab {
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 3px 4px;
  font-size: 11px;
  font-weight: 600;
}

.exp-tab.active {
  background: var(--bg-hover);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

.object-tree-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11.5px;
  border: 1px solid transparent;
}

.tree-row:hover {
  background: var(--bg-hover);
}

.tree-row.selected {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
}

.tree-row.has-violation {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
}

.tree-row-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.tree-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  flex-shrink: 0;
}

.tree-tag.comp { background: rgba(167, 139, 250, 0.2); color: #c4b5fd; }
.tree-tag.top { background: rgba(255, 255, 255, 0.14); color: #f8fafc; }
.tree-tag.bot { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.tree-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* CENTER STAGE & RULERS */
.studio-stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #07090e;
}

.studio-stage.split-3d .cad-pane {
  width: 58%;
}

.studio-stage.split-3d .preview-3d-pane {
  width: 42%;
  display: flex;
}

.cad-pane {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: 24px 1fr 26px;
  min-width: 0;
  min-height: 0;
}

.ruler-corner {
  grid-column: 1;
  grid-row: 1;
  background: #0e1119;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ruler-top {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 24px;
  background: #0e1119;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}

.ruler-left {
  grid-column: 1;
  grid-row: 2;
  width: 26px;
  height: 100%;
  background: #0e1119;
  border-right: 1px solid var(--border-subtle);
  display: block;
}

.cad-canvas-wrap {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: none;
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.03) 0%, transparent 70%),
    #07090e;
}

.cad-svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.cad-svg.cursor-pan { cursor: grab; }
.cad-svg.cursor-panning { cursor: grabbing; }
.cad-svg.cursor-measure { cursor: crosshair; }

/* SVG INTERACTIVE ELEMENTS */
.cad-draggable {
  cursor: move;
}

.cad-resize-handle {
  cursor: nwse-resize;
}

.cad-rotate-handle {
  cursor: pointer;
}

@keyframes pulseViolation {
  0%, 100% { stroke-opacity: 0.95; fill-opacity: 0.16; }
  50% { stroke-opacity: 0.45; fill-opacity: 0.28; }
}

.obb-violation {
  animation: pulseViolation 1.4s ease-in-out infinite;
}

/* FLOATING OVERLAYS */
.floating-clear-rulers {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #fde68a;
  border: 1px solid var(--accent-amber);
  padding: 5px 10px;
  font-weight: 700;
  z-index: 10;
}

.studio-toast {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 20, 31, 0.96);
  color: #fff;
  border: 1px solid var(--accent-cyan);
  border-radius: 7px;
  padding: 7px 14px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  z-index: 15;
  pointer-events: none;
}

.studio-toast.toast-error {
  border-color: var(--accent-red);
  color: #fecaca;
}

.studio-toast.toast-success {
  border-color: var(--accent-emerald);
  color: #a7f3d0;
}

.compile-pill {
  position: absolute;
  top: 10px;
  left: 12px;
  background: rgba(16, 20, 31, 0.92);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 700;
  z-index: 12;
}

.cad-statusbar {
  grid-column: 1 / -1;
  grid-row: 3;
  background: #0d1018;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow: hidden;
  white-space: nowrap;
}

.cad-statusbar strong {
  color: var(--text-main);
}

#status-hover-info {
  margin-left: auto;
  color: var(--accent-cyan);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3D SPLIT PREVIEW PANE */
.preview-3d-pane {
  flex-direction: column;
  border-left: 1px solid var(--border-subtle);
  background: #0c0e14;
  min-width: 0;
  min-height: 0;
}

.pane-3d-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.studio-3d-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* RIGHT INSPECTOR */
.inspector-root {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insp-card {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.insp-title {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  font-family: var(--font-mono);
}

.insp-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.field-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.field-col label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.rot-quick-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.rot-chip {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.rot-chip.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* WEB-DEV PX -> MM FONT PRESET GRID */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.preset-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 5px 7px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  text-align: left;
  color: var(--text-main);
}

.preset-pill:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.preset-pill.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
}

.preset-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-weight: 700;
  font-size: 11.5px;
}

.preset-mm {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.preset-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.warn-callout {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.4;
}

/* TETHERED MARKER ROWS INSIDE COMPONENT INSPECTOR */
.marker-row-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.marker-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.marker-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 11.5px;
}

.kbd-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.kbd-row {
  display: flex;
  justify-content: space-between;
}

.kbd-row kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-main);
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  width: 520px;
  max-width: 94vw;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-header h3 {
  margin: 0;
  font-size: 15px;
}

.modal-desc {
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.calibration-bar-wrap {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 14px;
}

.calibration-card-bar {
  height: 54px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(16, 185, 129, 0.25));
  border: 2px solid var(--accent-cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  color: #e0f2fe;
  white-space: nowrap;
}

.calibration-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.calibration-controls input[type="range"] {
  flex: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
