:where(#onset-lens-tool-loader, body) .onset-preloader {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px solid rgba(232, 228, 210, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 28%, rgba(125, 204, 141, 0.12), transparent 34%),
    linear-gradient(135deg, #060707, #151817 52%, #0b0c0c);
  color: #ede9dc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

:where(#onset-lens-tool-loader, body) .onset-preloader-inner {
  display: grid;
  justify-items: center;
  gap: 16px;
}

:where(#onset-lens-tool-loader, body) .onset-preloader-logo {
  width: 154px;
  height: auto;
  padding: 12px;
  border: 1px solid rgba(226, 222, 204, 0.16);
  border-radius: 8px;
  background: rgba(237, 233, 220, 0.9);
  filter: contrast(1.08) drop-shadow(0 10px 18px rgba(0,0,0,0.45));
  animation: onsetLogoPulse 1.65s ease-in-out infinite;
}

:where(#onset-lens-tool-loader, body) .onset-preloader-text {
  margin: 0;
  color: #a7aaa2;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .onset-preloader-bar {
  width: min(210px, 58vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(237, 233, 220, 0.14);
}

:where(#onset-lens-tool-loader, body) .onset-preloader-bar::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b8f67, #7dcc8d, #ffd07a);
  animation: onsetPreloaderBar 1.1s ease-in-out infinite;
}

@keyframes onsetLogoPulse {
  0%, 100% { transform: scale(1); opacity: 0.84; }
  50% { transform: scale(1.035); opacity: 1; }
}

@keyframes onsetPreloaderBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

:where(#onset-lens-tool-loader, body) .app-shell {
  --oc-black: #070808;
  --oc-black-2: #101213;
  --oc-graphite: #1a1d1d;
  --oc-graphite-2: #262a29;
  --oc-metal: #3b403e;
  --oc-metal-soft: #626a65;
  --oc-green: #5b8f67;
  --oc-green-hot: #7dcc8d;
  --oc-red: #9d4039;
  --oc-amber: #b78a46;
  --oc-paper: #ede9dc;
  --oc-muted: #a7aaa2;
  --oc-dim: #70766f;
  --oc-line: rgba(197, 202, 190, 0.18);
  --oc-line-strong: rgba(232, 228, 210, 0.28);
  --oc-radius: 12px;
  --oc-radius-sm: 7px;
  --oc-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
  --oc-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -18px 32px rgba(0, 0, 0, 0.28);
  --oc-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --oc-mono: "SFMono-Regular", "Roboto Mono", "Space Mono", ui-monospace, monospace;
  min-height: 100vh;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 0%, rgba(123, 204, 141, 0.08), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(183, 138, 70, 0.08), transparent 34%),
    linear-gradient(135deg, #060707, #151817 52%, #0b0c0c);
  color: var(--oc-paper);
  font-family: var(--oc-font);
  position: relative;
  isolation: isolate;
}

:where(#onset-lens-tool-loader, body) .app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 84%);
}

:where(#onset-lens-tool-loader, body) .app-shell,
:where(#onset-lens-tool-loader, body) .app-shell * {
  box-sizing: border-box;
}

:where(#onset-lens-tool-loader, body) .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

:where(#onset-lens-tool-loader, body) .app-shell button,
:where(#onset-lens-tool-loader, body) .app-shell input,
:where(#onset-lens-tool-loader, body) .app-shell select {
  font: inherit;
}

:where(#onset-lens-tool-loader, body) .workspace {
  width: min(1540px, 100%);
  margin: 0 auto;
}

:where(#onset-lens-tool-loader, body) .topbar {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-radius);
  background:
    linear-gradient(180deg, rgba(44, 48, 46, 0.95), rgba(16, 18, 18, 0.98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 9px);
  box-shadow: var(--oc-shadow), var(--oc-inset);
  position: relative;
  overflow: hidden;
}

:where(#onset-lens-tool-loader, body) .topbar::before,
:where(#onset-lens-tool-loader, body) .topbar::after,
:where(#onset-lens-tool-loader, body) .control-panel::before,
:where(#onset-lens-tool-loader, body) .preview-panel::before,
:where(#onset-lens-tool-loader, body) .results-panel::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(238, 234, 216, 0.22);
  background: radial-gradient(circle at 35% 35%, #858b82, #252928 62%, #0b0c0c);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 1px 1px rgba(0,0,0,0.75);
}

:where(#onset-lens-tool-loader, body) .topbar::before,
:where(#onset-lens-tool-loader, body) .control-panel::before,
:where(#onset-lens-tool-loader, body) .preview-panel::before,
:where(#onset-lens-tool-loader, body) .results-panel::before {
  top: 10px;
  left: 10px;
}

:where(#onset-lens-tool-loader, body) .topbar::after {
  right: 10px;
  bottom: 10px;
}

:where(#onset-lens-tool-loader, body) .brand-lockup {
  display: flex;
  align-items: end;
  gap: 18px;
  min-width: 0;
}

:where(#onset-lens-tool-loader, body) .brand-logo {
  width: clamp(92px, 12vw, 168px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 10px;
  border: 1px solid rgba(226, 222, 204, 0.12);
  border-radius: 8px;
  background: rgba(237, 233, 220, 0.82);
  filter: contrast(1.08) drop-shadow(0 10px 18px rgba(0,0,0,0.45));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -10px 18px rgba(0,0,0,0.08);
}

:where(#onset-lens-tool-loader, body) .app-shell h1,
:where(#onset-lens-tool-loader, body) .app-shell h2,
:where(#onset-lens-tool-loader, body) .app-shell p {
  margin-top: 0;
}

:where(#onset-lens-tool-loader, body) .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--oc-green-hot);
  font-family: var(--oc-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oc-green-hot);
  box-shadow: 0 0 14px rgba(125, 204, 141, 0.82);
}

:where(#onset-lens-tool-loader, body) .app-shell h1 {
  max-width: 900px;
  margin-bottom: 0;
  color: #f0ecdf;
  font-size: 2.85rem;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .app-shell h1 span {
  display: block;
  white-space: nowrap;
}

:where(#onset-lens-tool-loader, body) .app-shell h2 {
  margin-bottom: 14px;
  color: #f2edde;
  font-family: var(--oc-mono);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .top-actions,
:where(#onset-lens-tool-loader, body) .section-heading-row,
:where(#onset-lens-tool-loader, body) .visual-toolbar,
:where(#onset-lens-tool-loader, body) .legend,
:where(#onset-lens-tool-loader, body) .switch {
  display: flex;
  align-items: center;
}

:where(#onset-lens-tool-loader, body) .top-actions {
  align-self: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

:where(#onset-lens-tool-loader, body) .icon-button,
:where(#onset-lens-tool-loader, body) .text-button {
  border: 1px solid rgba(221, 220, 203, 0.24);
  background:
    linear-gradient(180deg, #353a37, #171a19);
  color: var(--oc-paper);
  min-height: 42px;
  border-radius: var(--oc-radius-sm);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -10px 16px rgba(0,0,0,0.34), 0 8px 18px rgba(0,0,0,0.36);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

:where(#onset-lens-tool-loader, body) .icon-button:hover,
:where(#onset-lens-tool-loader, body) .text-button:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 204, 141, 0.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -10px 16px rgba(0,0,0,0.32), 0 0 0 1px rgba(125, 204, 141, 0.12), 0 10px 20px rgba(0,0,0,0.42);
}

:where(#onset-lens-tool-loader, body) .icon-button {
  width: 42px;
  font-size: 1.1rem;
}

:where(#onset-lens-tool-loader, body) .text-button {
  padding: 0 16px;
  font-family: var(--oc-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .download-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

:where(#onset-lens-tool-loader, body) .download-button span {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(237, 233, 220, 0.35);
  border-radius: 50%;
  color: #7dcc8d;
  font-size: 0.72rem;
  line-height: 1;
}

:where(#onset-lens-tool-loader, body) .manual-modal[hidden] {
  display: none !important;
}

body.manual-open {
  overflow: hidden;
}

:where(#onset-lens-tool-loader, body) .manual-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 4, 4, 0.78);
  backdrop-filter: blur(8px);
}

:where(#onset-lens-tool-loader, body) .manual-dialog {
  width: min(880px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgba(232, 228, 210, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(43, 47, 45, 0.98), rgba(11, 12, 12, 0.98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 9px);
  color: #ede9dc;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:where(#onset-lens-tool-loader, body) .manual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(226, 222, 204, 0.16);
}

:where(#onset-lens-tool-loader, body) .manual-head .eyebrow {
  margin-bottom: 4px;
  color: #7dcc8d;
}

:where(#onset-lens-tool-loader, body) .manual-head h2 {
  margin: 0;
  color: #f0ecdf;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

:where(#onset-lens-tool-loader, body) .manual-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: calc(min(760px, 100vh - 44px) - 108px);
  overflow: auto;
  padding: 18px 24px 24px;
}

:where(#onset-lens-tool-loader, body) .manual-body section {
  border: 1px solid rgba(226, 222, 204, 0.13);
  border-radius: 7px;
  background: rgba(8, 9, 9, 0.48);
  padding: 15px;
}

:where(#onset-lens-tool-loader, body) .manual-body h3 {
  margin: 0 0 8px;
  color: #ffd07a;
  font-family: "SFMono-Regular", "Roboto Mono", "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .manual-body p {
  margin: 0;
  color: #d5d1c6;
  font-size: 0.96rem;
  line-height: 1.5;
}

:where(#onset-lens-tool-loader, body) .tool-grid {
  display: grid;
  grid-template-columns: 350px minmax(420px, 1fr);
  grid-template-areas:
    "controls preview"
    "results results";
  gap: 16px;
}

:where(#onset-lens-tool-loader, body) .control-panel,
:where(#onset-lens-tool-loader, body) .preview-panel,
:where(#onset-lens-tool-loader, body) .results-panel {
  position: relative;
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-radius);
  background:
    linear-gradient(180deg, rgba(43, 47, 45, 0.98), rgba(14, 16, 16, 0.98));
  box-shadow: var(--oc-shadow), var(--oc-inset);
  overflow: hidden;
}

:where(#onset-lens-tool-loader, body) .control-panel::after,
:where(#onset-lens-tool-loader, body) .preview-panel::after,
:where(#onset-lens-tool-loader, body) .results-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.07), transparent 28%);
}

:where(#onset-lens-tool-loader, body) .control-panel {
  grid-area: controls;
  padding: 20px;
}

:where(#onset-lens-tool-loader, body) .panel-section {
  position: relative;
  z-index: 1;
}

:where(#onset-lens-tool-loader, body) .panel-section + .panel-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 222, 204, 0.14);
}

:where(#onset-lens-tool-loader, body) .panel-section + .panel-section::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--oc-amber), transparent);
}

:where(#onset-lens-tool-loader, body) .app-shell label,
:where(#onset-lens-tool-loader, body) .field-group {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: var(--oc-muted);
  font-family: var(--oc-mono);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .field-label {
  display: block;
}

:where(#onset-lens-tool-loader, body) .app-shell select,
:where(#onset-lens-tool-loader, body) .app-shell input[type="number"],
:where(#onset-lens-tool-loader, body) .app-shell input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(226, 222, 204, 0.2);
  border-radius: var(--oc-radius-sm);
  background:
    linear-gradient(180deg, #111413, #090a0a);
  color: var(--oc-paper);
  padding: 0 12px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.04);
  outline: none;
}

:where(#onset-lens-tool-loader, body) .app-shell select option,
:where(#onset-lens-tool-loader, body) .app-shell select optgroup {
  background: #070808;
  color: #f0ecdf;
}

:where(#onset-lens-tool-loader, body) .app-shell select option:checked,
:where(#onset-lens-tool-loader, body) .app-shell select option:hover,
:where(#onset-lens-tool-loader, body) .app-shell select option:focus {
  background: #24362a;
  color: #ffffff;
}

:where(#onset-lens-tool-loader, body) .app-shell select:focus,
:where(#onset-lens-tool-loader, body) .app-shell input[type="number"]:focus,
:where(#onset-lens-tool-loader, body) .app-shell input[type="search"]:focus {
  border-color: rgba(125, 204, 141, 0.62);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.72), 0 0 0 3px rgba(125, 204, 141, 0.12);
}

:where(#onset-lens-tool-loader, body) .app-shell input[type="range"] {
  width: 100%;
  accent-color: var(--oc-green);
  min-height: 44px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

:where(#onset-lens-tool-loader, body) .app-shell input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border: 1px solid rgba(226, 222, 204, 0.22);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(237,233,220,0.22) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #060707, #1a1d1d 52%, #080909);
  box-shadow: inset 0 2px 7px rgba(0,0,0,0.78), 0 1px 0 rgba(255,255,255,0.05);
}

:where(#onset-lens-tool-loader, body) .app-shell input[type="range"]::-moz-range-track {
  height: 12px;
  border: 1px solid rgba(226, 222, 204, 0.22);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(237,233,220,0.22) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #060707, #1a1d1d 52%, #080909);
  box-shadow: inset 0 2px 7px rgba(0,0,0,0.78), 0 1px 0 rgba(255,255,255,0.05);
}

:where(#onset-lens-tool-loader, body) .app-shell input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  margin-top: -12px;
  border: 2px solid rgba(237, 233, 220, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #9baa96, #4d7655 42%, #18201a 72%),
    linear-gradient(135deg, #6d756f, #202322);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.18), inset 0 -6px 9px rgba(0,0,0,0.55), 0 0 0 4px rgba(91, 143, 103, 0.16), 0 8px 16px rgba(0,0,0,0.5);
}

:where(#onset-lens-tool-loader, body) .app-shell input[type="range"]::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(237, 233, 220, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #9baa96, #4d7655 42%, #18201a 72%),
    linear-gradient(135deg, #6d756f, #202322);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.18), inset 0 -6px 9px rgba(0,0,0,0.55), 0 0 0 4px rgba(91, 143, 103, 0.16), 0 8px 16px rgba(0,0,0,0.5);
}

:where(#onset-lens-tool-loader, body) .app-shell input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:where(#onset-lens-tool-loader, body) .range-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

:where(#onset-lens-tool-loader, body) .step-button {
  width: 44px;
  min-height: 44px;
  border: 1px solid rgba(226, 222, 204, 0.22);
  border-radius: var(--oc-radius-sm);
  background: linear-gradient(180deg, #353a37, #171a19);
  color: var(--oc-paper);
  cursor: pointer;
  font-family: var(--oc-mono);
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -8px 14px rgba(0,0,0,0.3);
  -webkit-tap-highlight-color: transparent;
}

:where(#onset-lens-tool-loader, body) .step-button:active {
  transform: translateY(1px);
  border-color: rgba(125, 204, 141, 0.52);
}

:where(#onset-lens-tool-loader, body) .step-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

:where(#onset-lens-tool-loader, body) .range-readout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 72px;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid rgba(125, 204, 141, 0.28);
  border-radius: 6px;
  background: rgba(7, 8, 8, 0.78);
  color: var(--oc-green-hot);
  font-family: var(--oc-mono);
  font-weight: 850;
}

:where(#onset-lens-tool-loader, body) .frame-note,
:where(#onset-lens-tool-loader, body) .coverage-profile-note {
  margin: 11px 0 0;
  color: var(--oc-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

:where(#onset-lens-tool-loader, body) .coverage-profile-note {
  margin-bottom: 14px;
}

:where(#onset-lens-tool-loader, body) .comparison-fields {
  transition: opacity 180ms ease, filter 180ms ease;
}

:where(#onset-lens-tool-loader, body) .comparison-fields.is-disabled {
  opacity: 0.38;
  filter: grayscale(0.8);
}

:where(#onset-lens-tool-loader, body) .comparison-fields.is-disabled select {
  pointer-events: none;
}

:where(#onset-lens-tool-loader, body) .section-heading-row {
  justify-content: space-between;
  gap: 12px;
}

:where(#onset-lens-tool-loader, body) .switch {
  gap: 8px;
  margin: 0;
  color: var(--oc-paper);
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(226, 222, 204, 0.16);
  border-radius: var(--oc-radius-sm);
  background: rgba(8, 9, 9, 0.48);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

:where(#onset-lens-tool-loader, body) .switch input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: var(--oc-green);
  cursor: pointer;
}

:where(#onset-lens-tool-loader, body) .switch span {
  cursor: pointer;
}

:where(#onset-lens-tool-loader, body) .compare-switch {
  min-width: 132px;
  justify-content: center;
}

:where(#onset-lens-tool-loader, body) .compare-switch .switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border: 1px solid rgba(226, 222, 204, 0.26);
  border-radius: 999px;
  background: rgba(30, 33, 32, 0.9);
}

:where(#onset-lens-tool-loader, body) .compare-switch .switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a7aaa2;
  transition: transform 160ms ease, background 160ms ease;
}

:where(#onset-lens-tool-loader, body) .compare-switch.is-on {
  border-color: rgba(125, 204, 141, 0.42);
  background: rgba(42, 74, 50, 0.46);
}

:where(#onset-lens-tool-loader, body) .compare-switch.is-on .switch-track {
  border-color: rgba(125, 204, 141, 0.58);
  background: rgba(91, 143, 103, 0.56);
}

:where(#onset-lens-tool-loader, body) .compare-switch.is-on .switch-track::after {
  transform: translateX(14px);
  background: #7dcc8d;
}

:where(#onset-lens-tool-loader, body) .preview-panel {
  grid-area: preview;
  padding: 18px;
  min-height: 760px;
}

:where(#onset-lens-tool-loader, body) .visual-toolbar {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(226, 222, 204, 0.14);
}

:where(#onset-lens-tool-loader, body) .visual-toolbar h2 {
  margin: 4px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.7rem);
  line-height: 1.2;
}

:where(#onset-lens-tool-loader, body) .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin-bottom: 0;
  padding: 0 11px;
  border: 1px solid rgba(125, 204, 141, 0.38);
  border-radius: 999px;
  background: rgba(63, 107, 74, 0.18);
  color: var(--oc-green-hot);
  font-family: var(--oc-mono);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

:where(#onset-lens-tool-loader, body) .status-pill.warning,
:where(#onset-lens-tool-loader, body) .status-pill.borderline {
  border-color: rgba(183, 138, 70, 0.46);
  background: rgba(183, 138, 70, 0.16);
  color: #e0b76a;
}

:where(#onset-lens-tool-loader, body) .status-pill.hard_vignette {
  border-color: rgba(255, 179, 64, 0.58);
  background: rgba(255, 179, 64, 0.16);
  color: #ffb340;
}

:where(#onset-lens-tool-loader, body) .status-pill.not_covered,
:where(#onset-lens-tool-loader, body) .status-pill.no_cover {
  border-color: rgba(157, 64, 57, 0.58);
  background: rgba(157, 64, 57, 0.18);
  color: #df796f;
}

:where(#onset-lens-tool-loader, body) .status-pill.unknown {
  border-color: rgba(167, 170, 162, 0.38);
  background: rgba(167, 170, 162, 0.12);
  color: var(--oc-muted);
}

:where(#onset-lens-tool-loader, body) .legend {
  flex-wrap: wrap;
  gap: 12px;
  color: var(--oc-muted);
  font-family: var(--oc-mono);
  font-size: 0.72rem;
  font-weight: 740;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

:where(#onset-lens-tool-loader, body) .legend i {
  display: inline-block;
  width: 16px;
  height: 16px;
}

:where(#onset-lens-tool-loader, body) .legend .circle {
  border: 2px solid var(--oc-red);
  border-radius: 50%;
}

:where(#onset-lens-tool-loader, body) .legend .frame {
  border: 2px solid #00e4e6;
}

:where(#onset-lens-tool-loader, body) .legend .compare-frame {
  border: 2px solid #ffb340;
}

:where(#onset-lens-tool-loader, body) .legend .frameline {
  border: 2px solid #39ff14;
}

:where(#onset-lens-tool-loader, body) .app-shell canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: min(100%, 920px);
  margin: 0 auto;
  aspect-ratio: 1;
  border: 1px solid rgba(226, 222, 204, 0.2);
  border-radius: var(--oc-radius-sm);
  background: #080909;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.7), inset 0 0 42px rgba(0,0,0,0.65);
}

:where(#onset-lens-tool-loader, body) .simulator-watermark {
  position: absolute;
  left: 50%;
  top: calc(50% + 34px);
  z-index: 2;
  width: clamp(92px, 13vw, 154px);
  height: auto;
  opacity: 0.11;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: screen;
}

:where(#onset-lens-tool-loader, body) .comparison-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: min(100%, 920px);
  margin: 16px auto 0;
}

:where(#onset-lens-tool-loader, body) .summary-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(226, 222, 204, 0.16);
  border-radius: var(--oc-radius-sm);
  background:
    linear-gradient(180deg, rgba(26, 29, 29, 0.96), rgba(8, 9, 9, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -12px 22px rgba(0,0,0,0.32);
}

:where(#onset-lens-tool-loader, body) .summary-card.is-disabled {
  opacity: 0.52;
}

:where(#onset-lens-tool-loader, body) .summary-kicker {
  margin: 0 0 8px;
  color: var(--oc-muted);
  font-family: var(--oc-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .summary-card h3 {
  margin: 0 0 14px;
  color: var(--oc-paper);
  font-size: clamp(1.04rem, 1.2vw, 1.28rem);
  line-height: 1.22;
  letter-spacing: 0;
}

:where(#onset-lens-tool-loader, body) .summary-camera-a {
  border-color: rgba(0, 228, 230, 0.34);
}

:where(#onset-lens-tool-loader, body) .summary-camera-a .summary-kicker,
:where(#onset-lens-tool-loader, body) .summary-camera-a h3 {
  color: #00e4e6;
}

:where(#onset-lens-tool-loader, body) .summary-lens {
  border-color: rgba(0, 228, 230, 0.24);
}

:where(#onset-lens-tool-loader, body) .summary-lens .summary-kicker,
:where(#onset-lens-tool-loader, body) .summary-lens h3 {
  color: #00e4e6;
}

:where(#onset-lens-tool-loader, body) .summary-camera-b {
  border-color: rgba(255, 179, 64, 0.34);
}

:where(#onset-lens-tool-loader, body) .summary-camera-b .summary-kicker,
:where(#onset-lens-tool-loader, body) .summary-camera-b h3 {
  color: #ffb340;
}

:where(#onset-lens-tool-loader, body) .summary-result h3.clean,
:where(#onset-lens-tool-loader, body) .summary-result h3.cover {
  color: var(--oc-green-hot);
}

:where(#onset-lens-tool-loader, body) .summary-result h3.warning,
:where(#onset-lens-tool-loader, body) .summary-result h3.borderline {
  color: #e0b76a;
}

:where(#onset-lens-tool-loader, body) .summary-result h3.hard_vignette {
  color: #ffb340;
}

:where(#onset-lens-tool-loader, body) .summary-result h3.not_covered,
:where(#onset-lens-tool-loader, body) .summary-result h3.no_cover {
  color: #df796f;
}

:where(#onset-lens-tool-loader, body) .summary-card dl {
  gap: 8px;
}

:where(#onset-lens-tool-loader, body) .summary-card dl div {
  display: grid;
  grid-template-columns: minmax(104px, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  justify-content: normal;
  gap: 12px;
  padding-top: 8px;
}

:where(#onset-lens-tool-loader, body) .summary-card dt {
  line-height: 1.2;
}

:where(#onset-lens-tool-loader, body) .summary-card dd {
  min-width: 0;
  color: #f0ecdf;
  font-size: clamp(0.96rem, 1.08vw, 1.12rem);
  line-height: 1.22;
  text-align: right;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

:where(#onset-lens-tool-loader, body) .results-panel {
  grid-area: results;
  padding: 18px;
}

:where(#onset-lens-tool-loader, body) .results-scope {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

:where(#onset-lens-tool-loader, body) .scope-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(226, 222, 204, 0.16);
  border-radius: 999px;
  background: rgba(5, 7, 7, 0.42);
  color: var(--oc-muted);
  font-family: var(--oc-mono);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .scope-chip.camera-a {
  border-color: rgba(0, 228, 230, 0.42);
  color: #00e4e6;
  box-shadow: 0 0 16px rgba(0, 228, 230, 0.08);
}

:where(#onset-lens-tool-loader, body) .scope-chip.camera-b {
  border-color: rgba(255, 179, 64, 0.44);
  color: #ffb340;
  box-shadow: 0 0 16px rgba(255, 179, 64, 0.08);
}

:where(#onset-lens-tool-loader, body) .scope-chip.lens-scope {
  border-color: rgba(0, 228, 230, 0.42);
  color: #00e4e6;
  box-shadow: 0 0 16px rgba(0, 228, 230, 0.08);
}

:where(#onset-lens-tool-loader, body) .metric-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

:where(#onset-lens-tool-loader, body) .metric-strip article,
:where(#onset-lens-tool-loader, body) .result-block {
  border: 1px solid rgba(226, 222, 204, 0.16);
  border-radius: var(--oc-radius-sm);
  background:
    linear-gradient(180deg, rgba(38, 42, 40, 0.94), rgba(12, 14, 14, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -12px 22px rgba(0,0,0,0.32);
}

:where(#onset-lens-tool-loader, body) .metric-strip article {
  min-height: 94px;
  padding: 14px;
}

:where(#onset-lens-tool-loader, body) .metric-card-a,
:where(#onset-lens-tool-loader, body) .camera-a-block,
:where(#onset-lens-tool-loader, body) .lens-block {
  border-color: rgba(0, 228, 230, 0.28);
}

:where(#onset-lens-tool-loader, body) .metric-card-lens {
  border-color: rgba(157, 64, 57, 0.34);
}

:where(#onset-lens-tool-loader, body) .comparison-block {
  border-color: rgba(255, 179, 64, 0.34);
}

:where(#onset-lens-tool-loader, body) .metric-strip span,
:where(#onset-lens-tool-loader, body) .app-shell dt {
  color: var(--oc-muted);
  font-family: var(--oc-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(#onset-lens-tool-loader, body) .metric-strip strong {
  display: block;
  margin-top: 10px;
  color: var(--oc-paper);
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  line-height: 1;
}

:where(#onset-lens-tool-loader, body) .result-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

:where(#onset-lens-tool-loader, body) .result-block {
  padding: 14px;
}

:where(#onset-lens-tool-loader, body) .result-block h2 {
  margin-bottom: 10px;
}

:where(#onset-lens-tool-loader, body) .app-shell dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

:where(#onset-lens-tool-loader, body) .app-shell dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  border-top: 1px solid rgba(226, 222, 204, 0.13);
}

:where(#onset-lens-tool-loader, body) .app-shell dd {
  margin: 0;
  color: var(--oc-paper);
  text-align: right;
  font-weight: 850;
}

:where(#onset-lens-tool-loader, body) .app-shell.embed .topbar,
:where(#onset-lens-tool-loader, body).embed .topbar,
:where(#onset-lens-tool-loader, body) body.embed .topbar,
:where(#onset-lens-tool-loader, body) .app-shell.embed .control-panel,
:where(#onset-lens-tool-loader, body).embed .control-panel,
:where(#onset-lens-tool-loader, body) body.embed .control-panel {
  display: none;
}

body.embed :where(#onset-lens-tool-loader, body) .tool-grid {
  grid-template-columns: 1fr;
  grid-template-areas:
    "preview"
    "results";
}

@media (max-width: 980px) {
  :where(#onset-lens-tool-loader, body) .app-shell h1 {
    font-size: 2.1rem;
  }

  :where(#onset-lens-tool-loader, body) .tool-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "controls"
      "preview"
      "results";
  }

  :where(#onset-lens-tool-loader, body) .preview-panel {
    min-height: auto;
  }

  :where(#onset-lens-tool-loader, body) .metric-strip,
  :where(#onset-lens-tool-loader, body) .result-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :where(#onset-lens-tool-loader, body) .app-shell {
    padding: 12px;
  }

  :where(#onset-lens-tool-loader, body) .topbar,
  :where(#onset-lens-tool-loader, body) .visual-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  :where(#onset-lens-tool-loader, body) .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  :where(#onset-lens-tool-loader, body) .brand-logo {
    width: 142px;
  }

  :where(#onset-lens-tool-loader, body) .app-shell h1 {
    font-size: 1.36rem;
    line-height: 1.05;
  }

  :where(#onset-lens-tool-loader, body) .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: stretch;
    justify-content: stretch;
  }

  :where(#onset-lens-tool-loader, body) .top-actions .icon-button,
  :where(#onset-lens-tool-loader, body) .top-actions .text-button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  :where(#onset-lens-tool-loader, body) .range-control {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  :where(#onset-lens-tool-loader, body) .metric-strip,
  :where(#onset-lens-tool-loader, body) .comparison-summary,
  :where(#onset-lens-tool-loader, body) .result-columns {
    grid-template-columns: 1fr;
  }

  :where(#onset-lens-tool-loader, body) .summary-card {
    padding: 14px;
  }

  :where(#onset-lens-tool-loader, body) .summary-card h3 {
    font-size: 1.08rem;
  }

  :where(#onset-lens-tool-loader, body) .summary-card dl div {
    grid-template-columns: minmax(94px, 0.72fr) minmax(0, 1.28fr);
    gap: 10px;
  }

  :where(#onset-lens-tool-loader, body) .manual-body {
    grid-template-columns: 1fr;
  }

  :where(#onset-lens-tool-loader, body) .app-shell dl div {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  :where(#onset-lens-tool-loader, body) .app-shell dd {
    text-align: left;
  }

  :where(#onset-lens-tool-loader, body) .summary-card dl div {
    display: grid;
    grid-template-columns: minmax(94px, 0.72fr) minmax(0, 1.28fr);
  }

  :where(#onset-lens-tool-loader, body) .summary-card dd {
    text-align: right;
  }
}

@media (max-width: 360px) {
  :where(#onset-lens-tool-loader, body) .app-shell h1 {
    font-size: 1.22rem;
  }
}
