body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #f8fafc;
}

.build-banner {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.12));
  color: #93c5fd;
  text-align: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

h1,
h2 {
  font-weight: 600;
}

.main-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: #f1f5f9;
}

.panel {
  margin-top: 24px;
  padding: 16px;
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

video {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  background: #020617;
}

.panel img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  background: #020617;
}

.distance-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.distance-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.distance-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #bfdbfe;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.distance-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
}

.distance-status {
  margin: 0;
  color: #cbd5f5;
  font-size: 0.92rem;
}

.distance-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.distance-actions .action-btn {
  flex: 0 0 auto;
}

.qr {
  margin: 16px auto;
  width: 200px;
  height: 200px;
}

.status {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #cbd5f5;
}

a {
  color: #38bdf8;
  word-break: break-all;
}

.hidden {
  display: none !important;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.primary-action {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(30, 64, 175, 0.25));
  color: #e0f2fe;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(30, 64, 175, 0.35));
}

.primary-action:active {
  transform: translateY(0);
}

.shot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: brightness(0.55);
}

.overlay-back {
  padding: 16px 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overlay-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.7);
}

.overlay-back:active {
  transform: translateY(0);
}

body.dimmed {
  background: #000;
}

body.dimmed .build-banner,
body.dimmed .container {
  filter: brightness(0.25);
}

.controls {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.controls-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 46px;
  height: 24px;
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #0f172a;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-slider {
  background: rgba(56, 189, 248, 0.6);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(22px);
}

.toggle-label {
  font-size: 0.9rem;
  color: #e2e8f0;
}

.action-btn {
  background: #334155;
  color: #f8fafc;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.action-btn:hover {
  background: #475569;
  transform: translateY(-1px);
}

.action-btn.primary {
  background: #38bdf8;
  color: #020617;
}

.action-btn.primary:hover {
  background: #0ea5e9;
}

.action-btn.secondary {
  background: #f97316;
  color: #0f172a;
}

.action-btn.secondary:hover {
  background: #ea580c;
}

.action-btn.tertiary {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(248, 250, 252, 0.4);
}

.action-btn.tertiary:hover {
  background: rgba(248, 250, 252, 0.08);
}

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

.shot-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: zoom-in;
  position: relative;
}

.shot {
  width: 240px;
  max-width: 100%;
  border-radius: 12px;
  background: #020617;
  object-fit: contain;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.5);
}

.shot-image-wrapper {
  position: relative;
  display: inline-block;
}

.primary-shot {
  border: 2px solid #38bdf8;
}

.shot-caption {
  font-size: 0.9rem;
  color: #e2e8f0;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shot-label {
  font-weight: 500;
  color: #e2e8f0;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.share-button:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #0ea5e9;
  transform: translateY(-1px);
}

.share-button:active {
  transform: translateY(0);
}

.mark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mark-button:hover {
  background: rgba(250, 204, 21, 0.28);
  color: #fbbf24;
  transform: translateY(-1px);
}

.mark-button:active {
  transform: translateY(0);
}

.mark-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.shot-caption-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.shot-caption-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shot-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

.shot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 600;
}

.shot-badge.success {
  background: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.shot-badge.muted {
  background: rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
}

.shot-badge-hit {
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shot-badge-miss {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.shot-badge-emphasis {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.shot-badge-detail {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
}

.shot-badge-placeholder {
  background: rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shot-hit-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shot-hit-marker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(248, 250, 252, 0.9);
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.6), 0 0 0 6px rgba(30, 64, 175, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.shot-hit-marker--active {
  border-color: rgba(248, 250, 252, 0.95);
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.65),
    0 0 0 10px rgba(37, 99, 235, 0.25),
    0 12px 24px rgba(30, 64, 175, 0.35);
}

.shot-hit-marker--muted {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.25),
    0 0 0 4px rgba(30, 41, 59, 0.35);
}

.shot-hit-marker-dot {
  display: block;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.8);
}

.shot-hit-marker-dot--active {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.95);
}

.shot-hit-marker-dot--muted {
  background: rgba(148, 163, 184, 0.85);
  box-shadow: 0 0 4px rgba(148, 163, 184, 0.4);
}

.shot-caption-actions button {
  margin-top: 0;
}

.marker-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
  margin: 0;
}

.marker-settings-inline {
  flex: 1 1 240px;
  min-width: 200px;
}

.marker-settings-label {
  font-size: 0.9rem;
  color: #cbd5f5;
  font-weight: 500;
}

.marker-settings-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marker-settings-range {
  flex: 1 1 auto;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  outline: none;
  cursor: pointer;
}

.marker-settings-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #0ea5e9;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.marker-settings-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #0ea5e9;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.marker-settings-value {
  font-size: 0.9rem;
  color: #e2e8f0;
  min-width: 52px;
  text-align: right;
}

@media (max-width: 720px) {
  .marker-settings-inline {
    flex: 1 1 100%;
    min-width: 0;
  }
  .marker-settings-control {
    gap: 10px;
  }
  .marker-settings-value {
    min-width: 48px;
  }
}

.shot-block[data-placeholder="true"] .shot {
  opacity: 0.85;
  filter: saturate(0.85);
}

.shot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-direction: column;
}

.live-feed {
  margin-top: 16px;
}

.live-feed h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 0;
  gap: 16px;
  backdrop-filter: blur(2px);
  touch-action: none;
  overscroll-behavior: contain;
}

.preview-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: grab;
  touch-action: none;
  position: relative;
  z-index: 0;
  transform-origin: center center;
}

.overlay-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 1rem;
  text-align: center;
  z-index: 2;
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: none;
  font-size: 2.5rem;
  color: #e2e8f0;
  cursor: pointer;
  line-height: 1;
  padding: 0 12px;
  border-radius: 999px;
  z-index: 3;
}

.overlay-close:hover {
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.8);
}

.mark-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(2px);
  z-index: 1100;
  padding: 16px;
  overflow-y: auto;
}

.mark-panel {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  width: min(960px, 100%);
  max-height: calc(100vh - 32px);
  margin: auto;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.75);
  box-sizing: border-box;
}

.mark-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mark-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.mark-close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
  border-radius: 999px;
}

.mark-close-btn:hover {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.12);
}

.mark-body {
  padding: 16px 20px 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.mark-viewport {
  position: relative;
  border-radius: 12px;
  background: #020617;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  flex: 1 1 auto;
  min-height: 200px;
  height: clamp(260px, 60vh, 560px);
  max-height: max(240px, calc(100vh - 240px));
  touch-action: none;
}

.mark-content {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: top left;
  cursor: grab;
  touch-action: none;
}

.mark-content.is-dragging {
  cursor: grabbing;
}

.mark-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
  user-select: none;
}

.mark-hit-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mark-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  flex-wrap: wrap;
}

.mark-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.mark-zoom-btn,
.mark-reset-btn {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mark-zoom-btn:hover,
.mark-reset-btn:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.28);
}

.mark-zoom-btn:active,
.mark-reset-btn:active {
  transform: translateY(0);
}

.mark-zoom-value {
  font-size: 0.95rem;
  color: #cbd5f5;
  min-width: 56px;
  text-align: center;
}

.mark-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.mark-action-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mark-action-btn.primary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(30, 64, 175, 0.32));
  color: #e0f2fe;
}

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

.mark-action-btn.secondary {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}

.mark-action-btn.secondary:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.75);
}

.mark-action-btn.tertiary {
  background: transparent;
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}

.mark-action-btn.tertiary:hover {
  transform: translateY(-1px);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.65);
}

.mark-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.mark-actions .mark-action-btn {
  width: 100%;
  max-width: 220px;
}

@media (max-width: 720px) {
  .mark-controls {
    gap: 12px;
  }

  .mark-size {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .mark-size-range {
    width: 100%;
  }

  .mark-size-value {
    text-align: left;
  }

  .mark-actions {
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }

  .mark-actions .mark-action-btn {
    width: 100%;
    max-width: none;
  }

  .distance-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .distance-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .distance-actions .action-btn {
    width: 100%;
  }

  .shot-caption-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
.page-title {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: #cbd5f5;
}

.calibration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 24px 16px;
  overflow-y: auto;
}

.calibration-panel {
  background: #1e293b;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.6);
  padding: 24px;
  width: min(960px, 96vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.calibration-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f8fafc;
}

.calibration-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #cbd5f5;
  cursor: pointer;
}

.calibration-close-btn:hover {
  color: #38bdf8;
}

.calibration-hint {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.9);
}

.calibration-canvas-wrapper {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
  max-height: 70vh;
}

.calibration-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  cursor: crosshair;
}

.calibration-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.calibration-mode-group {
  display: inline-flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px;
  border-radius: 999px;
}

.calibration-mode-btn {
  background: transparent;
  border: none;
  color: #cbd5f5;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.calibration-mode-btn.active {
  background: #38bdf8;
  color: #020617;
  font-weight: 600;
}

.calibration-mode-btn:hover {
  background: rgba(56, 189, 248, 0.15);
}

.calibration-diameter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px 12px;
  border-radius: 12px;
}

.calibration-sensitivity-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px 12px;
  border-radius: 12px;
}

.calibration-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5f5;
}

.calibration-sensitivity-range {
  width: 160px;
  accent-color: #0ea5e9;
}

.calibration-sensitivity-value {
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #bae6fd;
  font-weight: 600;
}

.calibration-diameter-btn {
  background: #334155;
  border: none;
  color: #f8fafc;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.calibration-diameter-btn:hover {
  background: #475569;
}

.calibration-diameter-value {
  min-width: 70px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  font-size: 0.95rem;
}

.calibration-actions {
  display: flex;
  gap: 8px;
}

.calibration-action-btn {
  background: rgba(148, 163, 184, 0.2);
  border: none;
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.calibration-action-btn:hover {
  background: rgba(148, 163, 184, 0.35);
}

.calibration-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.calibration-footer-btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.calibration-footer-btn.secondary {
  background: transparent;
  color: #cbd5f5;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.calibration-footer-btn.secondary:hover {
  background: rgba(148, 163, 184, 0.2);
}

.calibration-footer-btn.primary {
  background: #38bdf8;
  color: #020617;
  font-weight: 600;
}

.calibration-footer-btn.primary:hover {
  background: #0ea5e9;
}
