/* One calculator layout. Brand colors live in the tokens at :root.
   GarageFarm and Copernicus only override those tokens. */

:root {
  --calc-accent: #3b6fd8;
  --calc-accent-strong: #2d58b0;
  --calc-accent-text: #2d58b0;
  --calc-accent-soft: #eef3fc;
  --calc-ink: #1c2430;
  --calc-muted: #5c6b7e;
  --calc-line: oklch(0 0 0 / 0.08);
  --calc-page: #f3f5f8;
  --calc-surface: #fff;
  --calc-fill: #eef1f5;
  --calc-fill-strong: #e6eaf0;
  --calc-danger: #e11d48;
  --calc-radius: 20px;
  --calc-radius-sm: 12px;
  --calc-radius-xs: 10px;
  --calc-radius-2xs: 6px;
  --calc-field-text: 14px;
  --calc-focus: color-mix(in oklab, var(--calc-accent) 62%, white);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Safari on iPhone zooms into any field under 16px when it gets focus. */
@media (max-width: 959px), (pointer: coarse) {
  :root {
    --calc-field-text: 16px;
  }
}

/* Standalone pages only. An embed must not restyle the host document. */
html:has(body.calc-standalone) {
  color-scheme: light;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  border-radius: var(--calc-radius-xs);
  background: var(--calc-ink);
  color: #fff;
  font: 600 14px/1.2 var(--calc-font, inherit);
  text-decoration: none;
  outline: 2px solid var(--calc-focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page chrome only for the standalone page. Host pages keep their own body. */
body.calc-standalone {
  margin: 0;
  background: var(--calc-page);
  color: var(--calc-ink);
  font-family: var(--calc-font, inherit);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.calc-standalone ::selection,
#calculator ::selection,
#calcResults ::selection {
  background: var(--calc-accent-soft);
  color: var(--calc-ink);
}

#calculator .hidden,
#calcResults .hidden {
  display: none !important;
}

.wrap-div {
  max-width: 1120px;
  margin: 28px auto 48px;
  padding: 0 16px;
}

.wrap-div .heading-59 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--calc-ink);
  text-transform: none;
}

.wrap-div .w-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.wrap-div .w-col,
.wrap-div .w-col-6,
.wrap-div .cost-inputs,
.wrap-div .cost-results {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

@media (min-width: 960px) {
  .wrap-div .w-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .wrap-div .cost-inputs,
  .wrap-div .cost-results {
    flex: 1 1 0;
    width: calc(50% - 10px);
    min-width: 0;
  }

  .wrap-div .cost-results {
    position: sticky;
    top: 16px;
  }
}

/* Host pages can leave an empty <div id="gf-calc">. The script fills it.
   Stay the full width of the page column. Results must not stretch it. */
.calculator_component > .align-center:has(#gf-calc) {
  width: 100%;
  max-width: none;
  min-width: 0;
}

#gf-calc {
  width: 100%;
  max-width: none;
  min-width: 0;
}

#gf-calc .gf-calc-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 20px;
}

#gf-calc .cost-inputs,
#gf-calc .cost-results {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 960px) {
  #gf-calc .gf-calc-row {
    flex-direction: row;
    align-items: flex-start;
  }

  #gf-calc .cost-inputs,
  #gf-calc .cost-results {
    flex: 1 1 0;
    width: calc(50% - 10px);
  }

  #gf-calc .cost-results {
    position: sticky;
    top: 16px;
  }
}

#calculator,
#calcResults {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  color-scheme: light;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  scroll-margin-top: 16px;
  background: var(--calc-surface);
  border-radius: var(--calc-radius);
  box-shadow:
    0 0 0 1px oklch(0 0 0 / 0.05),
    0 1px 2px oklch(0 0 0 / 0.04),
    0 12px 32px oklch(0 0 0 / 0.05);
  color: var(--calc-ink);
  font-family: var(--calc-font, inherit);
  font-size: 16px;
  line-height: 1.5;
}

#calculator button,
#calculator input,
#calculator select,
#calculator textarea,
#calcResults button,
#calcResults input,
#calcResults textarea {
  font-family: inherit;
}

#calculator {
  padding: 20px 20px 16px;
}

#calculator:focus {
  outline: none;
}

#calculator:focus-visible {
  outline: 2px solid var(--calc-focus);
  outline-offset: 4px;
}

#calculator *,
#calcResults * {
  box-sizing: border-box;
}

#calculator .div-block-109 {
  margin: 0 0 4px;
  padding: 12px 14px;
  background: var(--calc-accent-soft);
  border-radius: var(--calc-radius-sm);
}

#calculator .text-block-172 {
  max-width: 65ch;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--calc-muted);
}

#calculator li {
  list-style: none;
}

#calculator ol.calc-column {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

#calculator ol.calc-column > li {
  margin: 0;
  padding: 20px 0 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--calc-ink);
}

#calculator ol.calc-column > li:not(.hidden) {
  counter-increment: step;
}

#calculator ol.calc-column > li:not(.hidden)::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--calc-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: middle;
}

#calculator .calc-step-title {
  display: inline;
  margin: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: inherit;
  line-height: inherit;
  vertical-align: middle;
  text-wrap: balance;
}

#calculator fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#calculator legend {
  padding: 0;
  font: inherit;
  color: inherit;
}

#calculator p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--calc-muted);
}

#calculator .tip,
#calcResults .tip {
  color: var(--calc-accent-text);
  font-weight: 600;
}

#calculator a,
#calcResults a {
  color: var(--calc-accent-text);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-skip-ink: auto;
}

#calculator .calc-radio_container,
#calculator .calc-box_container {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
}

#calculator .calc-radio_container > input[name="device"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#calculator .calc-radio_cpu,
#calculator .calc-radio_gpu,
#calculator .producer_logo {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

#calculator .producer_logo {
  border: none;
  appearance: none;
  font: inherit;
  color: inherit;
}

#calculator .cpudiv,
#calculator .gpudiv,
#calculator .producer_logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 72px;
  margin: 0;
  padding: 40px 8px 10px;
  border-radius: var(--calc-radius-sm);
  background-color: var(--calc-surface);
  background-repeat: no-repeat;
  background-position: center 10px;
  background-size: 22px auto;
  box-shadow: 0 0 0 1px var(--calc-line);
  opacity: 1;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--calc-ink);
  text-align: center;
  user-select: none;
  transition:
    transform 140ms var(--ease-out),
    background-color 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out);
}

#calculator .cpudiv {
  background-image: url("https://uploads-ssl.webflow.com/5e4cf0c7e19c924b448d0560/611f9f86f0051e4119f4a39d_cpu_img.png");
}

#calculator .gpudiv {
  background-image: url("https://uploads-ssl.webflow.com/5e4cf0c7e19c924b448d0560/611f9f88ff242a4209069c9e_gpu_img.png");
}

#calculator #logo_intel {
  background-image: url("https://uploads-ssl.webflow.com/5e4cf0c7e19c924b448d0560/61216d4765485d095f737690_logo_intel.png");
  background-size: 52px auto;
}

#calculator #logo_amd {
  background-image: url("https://uploads-ssl.webflow.com/5e4cf0c7e19c924b448d0560/61216d46bbe7a132902e501e_logo_amd.png");
  background-size: 52px auto;
}

#calculator #logo_apple {
  background-image: url("https://uploads-ssl.webflow.com/5e4cf0c7e19c924b448d0560/63b0300b83088c2f605e2e90_apple.png");
  background-size: 20px auto;
}

#calculator #logo_cinebench {
  background-image: url("https://uploads-ssl.webflow.com/5e4cf0c7e19c924b448d0560/61216d4865485d17cc737691_logo_cinebench.png");
  background-size: 22px auto;
}

#calculator .producer_logo,
#calculator .producer_logo:hover,
#calculator .calc-radio_container .active,
#calculator .cpudiv,
#calculator .gpudiv {
  background-repeat: no-repeat;
}

@media (hover: hover) and (pointer: fine) {
  #calculator .calc-radio_cpu:hover .cpudiv,
  #calculator .calc-radio_gpu:hover .gpudiv,
  #calculator .producer_logo:hover:not(.active) {
    background-color: color-mix(in oklab, var(--calc-accent-soft) 45%, var(--calc-surface));
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--calc-accent) 45%, transparent);
  }
}

#calculator .calc-radio_container .active,
#calculator .producer_logo.active,
#calculator input[name="device"]:checked + .calc-radio_cpu .cpudiv,
#calculator input[name="device"]:checked + .calc-radio_gpu .gpudiv {
  background-color: var(--calc-accent-soft);
  box-shadow: 0 0 0 2px var(--calc-accent);
}

#calculator input[name="device"]:focus-visible + .calc-radio_cpu .cpudiv,
#calculator input[name="device"]:focus-visible + .calc-radio_gpu .gpudiv,
#calculator .producer_logo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--calc-focus);
}

#calculator .calc-radio_cpu:active .cpudiv,
#calculator .calc-radio_gpu:active .gpudiv,
#calculator .producer_logo:active {
  transform: scale(0.97);
}

#calculator .select,
#calculator .active-mark {
  display: none;
}

#calculator .cpudiv span,
#calculator .gpudiv span,
#calculator .producer_logo span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--calc-ink);
  user-select: none;
}

/* "Cinebench benchmark" takes two lines on a phone. The other method cards match its height. */
@media (max-width: 420px) {
  #calculator .producer_logo {
    min-height: 82px;
  }
}

#calculator .cpuComboDiv {
  margin-top: 10px;
}

#calculator .cpuComboDiv + .cpuComboDiv {
  margin-top: 8px;
}

/* Native select, used until the search field is mounted and if JS has not run.
   Without a width it grows to the longest processor name and widens the page. */
#calculator select.cpuCombo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 36px 0 14px;
  border: none;
  border-radius: var(--calc-radius-sm);
  background-color: var(--calc-surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--calc-muted) 50%), linear-gradient(135deg, var(--calc-muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px var(--calc-line);
  appearance: none;
  font-size: var(--calc-field-text);
  color: var(--calc-ink);
  text-overflow: ellipsis;
}

#calculator select.cpuCombo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--calc-focus);
}

#calculator select.cpuCombo:disabled {
  background-color: var(--calc-fill);
  box-shadow: none;
  color: var(--calc-muted);
  opacity: 1;
}

/* The FAQ block under the calculator is also z-index 1, and it comes later
   in the page, so an open list would paint underneath those pills. */
.calculator_component:has(#calculator) {
  z-index: 5;
}

#calculator .chosen-container {
  width: 100% !important;
  font-size: 14px;
}

#calculator .chosen-container.chosen-with-drop {
  z-index: 20;
}

#calculator .chosen-container-single .chosen-single {
  height: 44px !important;
  padding: 0 36px 0 14px !important;
  border: none !important;
  border-radius: var(--calc-radius-sm) !important;
  background: var(--calc-surface) !important;
  background-image: none !important;
  box-shadow: 0 0 0 1px var(--calc-line) !important;
  line-height: 44px !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  color: var(--calc-ink) !important;
  text-decoration: none !important;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  #calculator .chosen-container-single:not(.chosen-disabled) .chosen-single:hover {
    box-shadow: 0 0 0 1px oklch(0 0 0 / 0.16) !important;
  }
}

#calculator .chosen-container-single .chosen-single span {
  height: 44px;
  margin-right: 24px;
  line-height: 44px;
  font-size: 14px;
  font-weight: 400;
  color: var(--calc-ink);
}

#calculator .chosen-container-single.chosen-disabled .chosen-single {
  background: var(--calc-fill) !important;
  color: var(--calc-muted) !important;
  box-shadow: none !important;
  cursor: default;
}

#calculator .chosen-container-single.chosen-disabled .chosen-single span {
  color: var(--calc-muted);
}

#calculator .chosen-container-single.chosen-disabled .chosen-single div b {
  border-top-color: var(--calc-muted);
  opacity: 0.5;
}

#calculator .chosen-container-active.chosen-with-drop .chosen-single,
#calculator .chosen-container-single.chosen-container-active .chosen-single {
  background: var(--calc-surface) !important;
  box-shadow: 0 0 0 2px var(--calc-focus) !important;
}

#calculator .chosen-container .chosen-drop {
  left: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  margin-top: 6px;
  border: none !important;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-surface);
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px var(--calc-line),
    0 12px 28px oklch(0 0 0 / 0.12);
}

#calculator .chosen-container .chosen-search {
  padding: 10px 10px 6px;
}

#calculator .chosen-container .chosen-search input[type="text"] {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: none !important;
  border-radius: var(--calc-radius-xs);
  /* Chosen's retina rule puts the whole sprite sheet back with !important.
     background-position then falls to the top left, so the arrows, clear
     marks, and search icon all show at once. */
  background: var(--calc-surface) !important;
  background-image: none !important;
  box-shadow: 0 0 0 1px var(--calc-line);
  text-align: left;
}

#calculator .chosen-container .chosen-results {
  max-height: min(280px, 45vh);
  margin: 0 0 6px;
  padding: 0 6px 6px;
  overscroll-behavior: contain;
}

#calculator .chosen-container .chosen-results li {
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.3;
  color: var(--calc-ink);
  white-space: normal;
  overflow-wrap: anywhere;
}

#calculator .chosen-container .chosen-results li.highlighted {
  background: var(--calc-accent) !important;
  color: #fff !important;
}

/* Family labels in the single processor list. Same role as a select group label. */
#calculator .chosen-container .chosen-results li.group-result,
#calculator .chosen-container .chosen-results li.group-result.highlighted {
  margin: 8px 4px 0;
  padding: 8px 8px 2px;
  border-radius: 0;
  background: transparent !important;
  color: var(--calc-muted) !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  cursor: default;
}

#calculator .chosen-container .chosen-results > li.group-result:first-child {
  margin-top: 2px;
}

#calculator .chosen-container .chosen-results li.group-option {
  padding-left: 20px;
}

#calculator .chosen-container .chosen-results:has(li.group-result) {
  max-height: min(360px, 45vh);
}

#calculator .chosen-container .chosen-results li.disabled-result {
  display: none;
}

#calculator .chosen-container-single .chosen-single div {
  position: absolute;
  top: 0;
  right: 14px;
  width: 12px;
  height: 100%;
  display: flex;
  align-items: center;
}

#calculator .chosen-container-single .chosen-single div b {
  display: block;
  width: 0;
  height: 0;
  margin: 0;
  background: none !important;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--calc-muted);
}

#calculator .chosen-container-single.chosen-with-drop .chosen-single div b {
  border-top: none;
  border-bottom: 6px solid var(--calc-muted);
}

/* Processor and CPU count lists (cpu-picker.js). The open list is moved to <body>,
   so a host page's overflow or transform cannot clip it. */
#calculator select.is-enhanced {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#calculator .cpu-combo {
  width: 100%;
  min-width: 0;
}

#calculator .cpu-combo-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px 0 14px;
  border: none;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-line);
  color: var(--calc-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  touch-action: manipulation;
  transition: box-shadow 140ms var(--ease-out);
}

#calculator .cpu-combo-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calculator .cpu-combo-value .cpu-combo-spec {
  margin-left: 6px;
  color: var(--calc-muted);
  font-size: 13px;
}

#calculator .cpu-combo-trigger.is-placeholder .cpu-combo-value {
  color: var(--calc-muted);
}

#calculator .cpu-combo-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--calc-muted);
  transition: transform 180ms var(--ease-out);
}

#calculator .cpu-combo-trigger[aria-expanded="true"] .cpu-combo-chevron {
  transform: rotate(180deg);
}

#calculator .cpu-combo-trigger:focus {
  outline: none;
}

#calculator .cpu-combo-trigger:focus-visible,
#calculator .cpu-combo-trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 2px var(--calc-focus);
}

/* Focus comes back to the field after a tap or click in the list. Only a keyboard shows the ring. */
#calculator .cpu-combo-trigger.no-ring:focus-visible:not([aria-expanded="true"]) {
  box-shadow: 0 0 0 1px var(--calc-line);
}

@media (hover: hover) and (pointer: fine) {
  #calculator .cpu-combo-trigger:not(:disabled):hover {
    box-shadow: 0 0 0 1px oklch(0 0 0 / 0.16);
  }

  #calculator .cpu-combo-trigger:not(.no-ring):focus-visible:hover,
  #calculator .cpu-combo-trigger[aria-expanded="true"]:hover {
    box-shadow: 0 0 0 2px var(--calc-focus);
  }
}

#calculator .cpu-combo-trigger:disabled {
  background: var(--calc-fill);
  box-shadow: none;
  color: var(--calc-muted);
  cursor: default;
}

#calculator .cpu-combo-trigger:disabled .cpu-combo-chevron {
  opacity: 0.4;
}

/* CPU count: a short menu next to the clock speed field. */
#calculator .cpu-details_processors .cpu-combo {
  flex: none;
  width: 80px;
}

#calculator .cpu-details_processors .cpu-combo-trigger {
  gap: 4px;
  height: 36px;
  padding: 0 8px 0 12px;
  border-radius: var(--calc-radius-xs);
  font-size: var(--calc-field-text);
}

#calculator .cpu-details_processors .cpu-combo-chevron {
  width: 14px;
  height: 14px;
}

#calculator #cpuDetails .cpu-combo-trigger span {
  font: inherit;
  color: inherit;
}

html.cpu-combo-lock {
  overflow: hidden;
}

.cpu-combo-backdrop {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.cpu-combo-backdrop.is-sheet {
  background: oklch(0.2 0.02 255 / 0.4);
  animation: cpu-combo-fade 200ms var(--ease-out, ease-out);
}

.cpu-combo-panel {
  position: fixed;
  z-index: 2147483001;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-surface, #fff);
  box-shadow:
    0 0 0 1px oklch(0 0 0 / 0.08),
    0 4px 12px oklch(0 0 0 / 0.06),
    0 16px 40px oklch(0 0 0 / 0.12);
  color: var(--calc-ink, #1c2430);
  color-scheme: light;
  font-family: var(--calc-font, inherit);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  transform-origin: top center;
  animation: cpu-combo-pop 140ms var(--ease-out, ease-out);
}

.cpu-combo-panel.is-up {
  transform-origin: bottom center;
}

.cpu-combo-panel *,
.cpu-combo-panel *::before,
.cpu-combo-panel *::after {
  box-sizing: border-box;
}

.cpu-combo-panel [hidden] {
  display: none !important;
}

.cpu-combo-bar {
  display: flex;
  flex: none;
  align-items: center;
  border-bottom: 1px solid oklch(0 0 0 / 0.08);
}

.cpu-combo-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.cpu-combo-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: var(--calc-muted, #5c6b7e);
  pointer-events: none;
}

.cpu-combo-panel .cpu-combo-search {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 40px 0 36px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--calc-ink, #1c2430);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  appearance: none;
}

.cpu-combo-panel .cpu-combo-search::placeholder {
  color: var(--calc-muted, #5c6b7e);
  opacity: 1;
}

.cpu-combo-panel .cpu-combo-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -16px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--calc-muted, #5c6b7e);
  cursor: pointer;
  appearance: none;
}

.cpu-combo-panel .cpu-combo-clear svg {
  display: block;
  width: 16px;
  height: 16px;
}

.cpu-combo-panel .cpu-combo-cancel {
  display: none;
  flex: none;
  height: 40px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--calc-accent-text, #2d58b0);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}

.cpu-combo-panel .cpu-combo-clear:focus-visible,
.cpu-combo-panel .cpu-combo-cancel:focus-visible {
  outline: 2px solid var(--calc-focus, #9db7ef);
  outline-offset: -2px;
}

.cpu-combo-empty {
  flex: none;
  margin: 0;
  padding: 20px 16px;
  color: var(--calc-muted, #5c6b7e);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.cpu-combo-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: oklch(0 0 0 / 0.2) transparent;
  outline: none;
}

.cpu-combo-group + .cpu-combo-group {
  margin-top: 2px;
}

/* Pinned while its family scrolls by. Negative top cancels the list padding. */
.cpu-combo-group-label {
  position: sticky;
  top: -4px;
  z-index: 1;
  margin: 0;
  padding: 8px 10px 4px;
  background: var(--calc-surface, #fff);
  color: var(--calc-muted, #5c6b7e);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.02em;
}

.cpu-combo-option {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  min-height: 30px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--calc-ink, #1c2430);
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.cpu-combo-name,
.cpu-combo-spec {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cpu-combo-option .cpu-combo-spec {
  color: var(--calc-muted, #5c6b7e);
  font-size: 12px;
}

.cpu-combo-option mark {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--calc-ink, #1c2430);
  font-weight: 600;
}

.cpu-combo-option.is-active {
  background: var(--calc-accent-soft, #eef3fc);
}

.cpu-combo-option[aria-selected="true"] {
  padding-right: 32px;
}

.cpu-combo-option[aria-selected="true"] .cpu-combo-name {
  color: var(--calc-accent-text, #2d58b0);
  font-weight: 500;
}

.cpu-combo-option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--calc-accent-text, #2d58b0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

/* Fingers: taller rows, and a 16px search field so iOS does not zoom in on focus. */
.cpu-combo-panel.is-touch .cpu-combo-search {
  font-size: 16px;
}

.cpu-combo-panel.is-touch .cpu-combo-option {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
}

.cpu-combo-panel.is-touch .cpu-combo-option .cpu-combo-spec {
  font-size: 13px;
}

.cpu-combo-panel.is-touch .cpu-combo-option[aria-selected="true"] {
  padding-right: 36px;
}

.cpu-combo-panel.is-touch .cpu-combo-option[aria-selected="true"]::after {
  right: 12px;
}

.cpu-combo-panel.is-touch .cpu-combo-option:active {
  background: var(--calc-accent-soft, #eef3fc);
}

.cpu-combo-panel.is-touch .cpu-combo-group-label {
  padding: 12px 12px 4px;
  font-size: 12px;
  line-height: 16px;
}

.cpu-combo-panel.is-sheet {
  border-radius: 16px;
  box-shadow:
    0 0 0 1px oklch(0 0 0 / 0.06),
    0 24px 64px oklch(0 0 0 / 0.28);
  transform-origin: center;
  animation-name: cpu-combo-rise;
  animation-duration: 220ms;
}

.cpu-combo-panel.is-sheet .cpu-combo-bar {
  gap: 4px;
  padding: 8px 6px 8px 8px;
}

.cpu-combo-panel.is-sheet .cpu-combo-search {
  height: 40px;
  border-radius: var(--calc-radius-xs);
  background: oklch(0.5 0.02 255 / 0.09);
}

.cpu-combo-panel.is-sheet .cpu-combo-cancel {
  display: block;
}

.cpu-combo-panel.is-sheet .cpu-combo-list {
  padding: 4px 6px 8px;
}

@keyframes cpu-combo-pop {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes cpu-combo-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes cpu-combo-fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpu-combo-panel,
  .cpu-combo-backdrop.is-sheet {
    animation: none;
  }

  #calculator .cpu-combo-trigger,
  #calculator .cpu-combo-chevron {
    transition: none;
  }
}

#calculator input[type="number"]::-webkit-inner-spin-button,
#calculator input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

#calculator input[type="number"] {
  appearance: textfield;
}

#calculator .time,
#calculator .frames,
#calculator .strips,
#calculator .render-params,
#calculator .resolution-scale {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--calc-muted);
  text-align: left;
}

/* Cinebench and OctaneBench: version chips, then the score. */
#calculator .bench-version,
#calculator .bench-score {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
}

#calculator .bench-version .label,
#calculator .bench-score label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--calc-muted);
}

/* Version chips and the Animation / Still image switch share one look. */
#calculator .bench-options,
#calculator .switch-container {
  display: flex;
  width: 100%;
  gap: 4px;
  padding: 4px;
  border-radius: calc(var(--calc-radius-xs) + 4px);
  background: var(--calc-fill);
  box-sizing: border-box;
}

/* Seven Cinebench versions: four to a row on a phone, one row when the column has room. */
#calculator #cbControls .bench-version {
  container: cb-versions / inline-size;
  margin-top: 0;
}

#calculator #cbControls .bench-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@container cb-versions (min-width: 400px) {
  #calculator #cbControls .bench-options {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

#calculator .bench-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#calculator .bench-options label,
#calculator .switch-option {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 8px 6px;
  border: none;
  border-radius: var(--calc-radius-xs);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  color: var(--calc-muted);
  user-select: none;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}

#calculator .bench-options input:checked + label,
#calculator .switch-option.active {
  background: var(--calc-surface);
  color: var(--calc-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.08);
}

#calculator .bench-options input:focus-visible + label,
#calculator .switch-option:focus-visible,
#calculator .switch-option.active:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--calc-focus);
}

#calculator .bench-options label:active,
#calculator .switch-option:active {
  transform: scale(0.97);
}

#calculator .bench-score .input-box {
  flex: 0 0 auto;
  width: 100%;
  height: 44px;
  min-height: 44px;
  border-radius: var(--calc-radius-sm);
}

#calculator #obControls .calc-toggle-row {
  margin-top: 10px;
}

#calculator #rtxGpuCard-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--calc-muted);
}

#calculator .frames-strips-container {
  margin: 0;
}

/* Time + frames share one surface. Outer radius = inner radius + padding. */
#calculator .project-measure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: calc(var(--calc-radius-xs) + 10px);
  background: var(--calc-accent-soft);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.04);
  overflow: hidden;
}

#calculator .project-measure .time,
#calculator .project-measure .render-params.frames,
#calculator .project-measure .render-params.strips,
#calculator .project-measure .resolution-scale {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 0;
  min-height: 0;
}

#calculator .project-measure .time .label,
#calculator .project-measure .render-params.frames .label,
#calculator .project-measure .render-params.strips .label,
#calculator .project-measure .resolution-scale .label {
  width: 100%;
  margin: 0;
  white-space: normal;
}

#calculator .project-measure .time .content,
#calculator .project-measure .render-params.frames .content,
#calculator .project-measure .render-params.strips .content {
  width: 100%;
}

#calculator .project-measure .input-box {
  flex: 1 1 0;
  width: auto;
  height: 44px;
}

#calculator .project-measure .input-box input[type="number"] {
  height: 100%;
}

#calculator .time {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

#calculator .render-params.frames,
#calculator .render-params.strips {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-top: 10px;
}

#calculator .time .label,
#calculator .frames .label,
#calculator .strips .label,
#calculator .resolution-scale .label,
#calculator .label label {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--calc-muted);
}

#calculator .time .content,
#calculator .frames .content,
#calculator .strips .content,
#calculator .input-container.content,
#calculator .resolution-scale .content {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

#calculator .time .label {
  width: 100%;
  margin: 0;
  white-space: nowrap;
}

#calculator .time .input-box {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 44px;
}

#calculator .render-params.frames .label,
#calculator .render-params.strips .label {
  flex: 1 1 auto;
  width: auto;
  margin: 0;
  white-space: nowrap;
}

/* Tip sits beside the label text. A block label at 100% width was pushing the icon down. */
#calculator .resolution-scale .label,
#calculator .render-params.strips .label {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
}

#calculator .project-measure .resolution-scale .label,
#calculator .project-measure .render-params.strips .label {
  white-space: nowrap;
}

#calculator .resolution-scale .label label,
#calculator .render-params.strips .label label {
  display: inline;
  width: auto;
  margin: 0;
  white-space: nowrap;
}

#calculator .resolution-scale .label .animDetails-include_tip,
#calculator .render-params.strips .label .animDetails-include_tip {
  flex: 0 0 auto;
  margin-left: 0;
}

#calculator .render-params.frames .content,
#calculator .render-params.strips .content {
  flex: 0 0 auto;
  width: auto;
}

#calculator .render-params.frames .input-box,
#calculator .render-params.strips .input-box {
  flex: 0 0 120px;
  width: 120px;
  height: 44px;
}

#calculator .input-box {
  display: flex;
  flex: 1 1 0;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: auto;
  min-width: 0;
  float: none;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--calc-radius-xs);
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-line);
  box-sizing: border-box;
  overflow: hidden;
}

#calculator .input-box:focus-within {
  box-shadow: 0 0 0 2px var(--calc-focus);
}

/* calc.showFieldError marks the field; the message sits under its row. */
#calculator .input-box:has([aria-invalid="true"]) {
  box-shadow: 0 0 0 1px var(--calc-danger);
}

#calculator .input-box:has([aria-invalid="true"]):focus-within {
  box-shadow: 0 0 0 2px var(--calc-danger);
}

#calculator .input-box-wide {
  flex: 1 1 auto;
}

#calculator .input-container.content input[type="number"],
#calculator .input-box input[type="number"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 38px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--calc-field-text);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: var(--calc-ink);
}

#calculator .input-container.content input[type="number"]:focus,
#calculator .input-box input[type="number"]:focus {
  outline: none;
}

#calculator .input-suffix {
  flex: 0 0 auto;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: var(--calc-muted);
  white-space: nowrap;
}

#calculator .input-box label {
  display: none;
}

#calculator .render-params.frames .input-box,
#calculator .render-params.strips .input-box {
  flex: 1 1 auto;
}

#calculator input[type="range"] {
  accent-color: var(--calc-accent);
}

#calculator .render-type-switch {
  margin-top: 14px;
  width: 100%;
}

#calculator .animDetails-include {
  margin: 10px 0 0;
  height: auto;
  max-width: none;
}

#calculator .calc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 10px 0 0;
  padding: 0 12px;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-line);
  box-sizing: border-box;
  overflow: hidden;
}

#calculator .calc-option .calc-toggle-row {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

#calculator .calc-toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 10px 0 0;
  padding: 0 12px;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-line);
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

#calculator .animDetails-include > .calc-toggle-row {
  margin: 0;
}

#calculator .labelTick,
#calculator .contentTick,
#calculator .includeTimeContent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#calculator .contentTick,
#calculator .includeTimeContent {
  flex: 0 0 auto;
  margin-left: 0;
}

#calculator .labelTick {
  flex: 1 1 auto;
}

/* The block padding keeps the tip's 40px hit area inside this clipped box. */
#calculator .animDetails-include p,
#calculator .labelTick p {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 6px;
  margin: -12px 0;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--calc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#calculator .animDetails-include p:has(.animDetails-include_tip:focus-visible),
#calculator .labelTick p:has(.animDetails-include_tip:focus-visible) {
  overflow: visible;
}

#calculator .loadingTimeInput,
#calculator .fpeInput {
  flex: 0 0 auto;
  margin-left: auto;
}

#calculator .loadingTimeInput .input-box,
#calculator .fpeInput .input-box {
  width: auto;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
}

#calculator .loadingTimeInput .input-box.hidden,
#calculator .fpeInput .input-box.hidden {
  display: none !important;
}

#calculator .loadingTimeInput input,
#calculator .fpeInput input {
  width: 4.5ch;
  height: 34px;
  font-size: var(--calc-field-text);
  font-variant-numeric: tabular-nums;
}

#calculator .loadingTimeInput .input-suffix,
#calculator .fpeInput .input-suffix {
  margin-left: 4px;
  font-size: 12px;
}

#calculator .loadingTimeInput label,
#calculator .fpeInput label {
  display: none;
}

#calculator .animDetails-include_check {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: var(--calc-radius-2xs);
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-line);
  cursor: pointer;
}

#calculator .animDetails-include_check::before {
  content: "";
  position: absolute;
  inset: -10px;
}

#calculator .animDetails-include_check.active {
  background: var(--calc-accent);
  box-shadow: none;
}

#calculator .animDetails-include_check:focus-visible {
  outline: 2px solid var(--calc-focus);
  outline-offset: 2px;
}

#calculator .animDetails-include_check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.95);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='9' fill='none'%3E%3Cpath fill='%23fff' d='M1.76 3.77 3.75 6.2l4.52-5.34c.37-.44 1.05-.4 1.37.07.21.32.2.73-.03 1.03L4.53 8.06a.7.7 0 0 1-1.1 0L.4 4.87a.7.7 0 0 1 .05-1.03c.32-.4.98-.43 1.31-.07Z'/%3E%3C/svg%3E") center / 10px 9px no-repeat;
  transition-property: opacity, transform;
  transition-duration: 140ms;
  transition-timing-function: var(--ease-out);
}

#calculator .animDetails-include_check.active svg {
  opacity: 1;
  transform: scale(1);
}

#calculator .animDetails-include_tip,
#calcResults .animDetails-include_tip {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  vertical-align: -3px;
  background: none;
  font: inherit;
  color: var(--calc-accent);
  cursor: pointer;
}

/* The glyph is masked on a pseudo-element: a mask on the button would clip its focus ring. */
#calculator .animDetails-include_tip::before,
#calcResults .animDetails-include_tip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Ccircle cx='8' cy='8' r='6.25' stroke='%23000' stroke-width='1.4'/%3E%3Cpath fill='%23000' d='M7.2 7.1h1.6v4.4H7.2zM7.2 4.3h1.6V5.8H7.2z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Ccircle cx='8' cy='8' r='6.25' stroke='%23000' stroke-width='1.4'/%3E%3Cpath fill='%23000' d='M7.2 7.1h1.6v4.4H7.2zM7.2 4.3h1.6V5.8H7.2z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

/* 16px glyph, 40px target. */
#calculator .animDetails-include_tip::after,
#calcResults .animDetails-include_tip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}

#calculator .animDetails-include_tip:focus-visible,
#calcResults .animDetails-include_tip:focus-visible {
  outline: 2px solid var(--calc-focus);
  outline-offset: 2px;
}

#calculator #animDetails > p {
  margin: 10px 0 0;
}

#calculator #btnCalculate {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 44px;
  margin: 20px 0 0;
  padding: 0 16px;
  border: none;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-accent);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.06), 0 8px 16px color-mix(in oklab, var(--calc-accent) 35%, transparent);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  user-select: none;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    background-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #calculator .bench-options input:not(:checked) + label:hover,
  #calculator .switch-option:not(.active):hover {
    color: var(--calc-ink);
  }

  #calculator #btnCalculate:hover,
  #calculator .fpe-confirm-accept:hover {
    background: var(--calc-accent-strong);
  }

  #calculator .fpe-confirm-cancel:hover {
    color: var(--calc-ink);
    background: var(--calc-page);
  }
}

#calculator #btnCalculate:active {
  transform: scale(0.97);
}

#calculator #btnCalculate:focus-visible {
  outline: 2px solid var(--calc-focus);
  outline-offset: 2px;
}

#calculator #btnCalculate:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Working: the button stays at full strength and a light sweep crosses it once per beat. */
#calculator #btnCalculate.is-calculating:disabled {
  opacity: 1;
  cursor: progress;
}

#calculator #btnCalculate::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, oklch(1 0 0 / 0.32), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}

#calculator #btnCalculate.is-calculating::after {
  animation: calc-sweep 420ms linear infinite;
}

@keyframes calc-sweep {
  to {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #calculator #btnCalculate.is-calculating::after {
    animation: none;
  }

  #calculator .cpudiv,
  #calculator .gpudiv,
  #calculator .producer_logo,
  #calculator #btnCalculate,
  #calculator .switch-option,
  #calculator .bench-options label,
  #calculator .animDetails-include_check,
  #calculator .animDetails-include_check svg {
    transition: none;
  }

  #calculator .animDetails-include_check svg,
  #calculator .animDetails-include_check.active svg {
    transform: none;
  }

  #calculator .calc-radio_cpu:active .cpudiv,
  #calculator .calc-radio_gpu:active .gpudiv,
  #calculator .producer_logo:active,
  #calculator #btnCalculate:active,
  #calculator .switch-option:active,
  #calculator .bench-options label:active,
  #calculator .fpe-confirm button:active {
    transform: none;
  }
}

#calcResults {
  min-height: 200px;
  padding: 20px;
}

/*
  Calculate, in order (results.js runs the timing):
  1. Press. The button sweeps and the page glides to this panel.
  2. Compute, about 400ms. Render buckets light up corner to corner.
  3. Resolve. The cards rise in one step at a time (--i) and their figures count up.
*/
#calcResults .calc-results-in > * {
  animation: calc-rise 280ms var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes calc-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes calc-fade {
  from {
    opacity: 0;
  }
}

/* The real figure keeps its place in the layout while an aria-hidden copy counts on top of it. */
#calcResults .count {
  position: relative;
  display: inline-block;
}

#calcResults .count.is-counting .count-real {
  opacity: 0;
}

#calcResults .count-live {
  position: absolute;
  inset: 0;
  animation: calc-focus 300ms var(--ease-out) backwards;
}

/* A quick number is a blurred one: it comes into focus as it settles. */
@keyframes calc-focus {
  from {
    opacity: 0.4;
    filter: blur(3px);
  }
}

#calcResults .calcResults-empty,
#calcResults .calc-calculating {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 0;
  padding: 24px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--calc-muted);
  text-align: center;
}

#calcResults .calc-calculating {
  flex-direction: column;
  gap: 14px;
  animation: calc-fade 140ms var(--ease-out) backwards;
}

#calcResults .calc-calculating p {
  margin: 0;
}

/* Render buckets: the tiles a renderer fills in. A wave of light crosses them corner to corner. */
#calcResults .calc-buckets {
  display: grid;
  grid-template-columns: repeat(5, 12px);
  gap: 4px;
}

#calcResults .calc-buckets i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--calc-accent);
  opacity: 0.16;
  transform: scale(0.72);
  animation: calc-bucket 800ms var(--ease-out) infinite;
  animation-delay: calc(var(--d) * 45ms);
}

@keyframes calc-bucket {
  16% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #calcResults .calc-results-in > * {
    animation: calc-fade 200ms ease backwards;
    animation-delay: 0ms;
  }

  #calcResults .calc-buckets i {
    opacity: 0.45;
    transform: none;
    animation: none;
  }
}

#calcResults .calc-results-in > div:first-child:not(.calcResults-empty):not(.results):not(.disclaimer-container):not(#disclaimer):not(#discounts):not(#saveShare) {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--calc-ink);
}

#calcResults .disclaimer-container {
  margin: 0 0 10px;
}

#calcResults .disclaimer-head {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--calc-ink);
}

#calcResults .disclaimer-info {
  margin: 0;
  max-width: 65ch;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--calc-muted);
}

#calcResults .results,
#calcResults #discounts {
  max-width: none;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: var(--calc-accent-soft);
  border: none;
  border-radius: var(--calc-radius-sm);
  font-size: 13px;
  line-height: 1.5;
  color: var(--calc-ink);
}

#calcResults .results p,
#calcResults .results table,
#calcResults #discounts p,
#calcResults #discounts table {
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  border-collapse: collapse;
}

#calcResults td {
  padding: 3px 0;
  font-size: 13px;
  color: var(--calc-ink);
  vertical-align: middle;
}

#calcResults td:first-child {
  width: 100%;
}

#calcResults td:last-child,
#calcResults .results-data {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--calc-accent-text);
}

#calcResults .results-arrow {
  width: 20px;
  min-width: 20px;
  padding: 0 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' fill='none'%3E%3Cpath fill='%235c6b7e' d='M5.86.12'v1.25c0 .07.03.14.08.18l3.81 3.36H.12A.12.12 0 0 0 0 5.04v.92c0 .07.05.12.12.12h9.63L5.94 9.45a.23.23 0 0 0-.08.18v1.25c0 .1.12.16.2.09l5.77-5.1a.5.5 0 0 0 0-.74L6.06.03a.12.12 0 0 0-.2.09Z'/%3E%3C/svg%3E") center / 12px 11px no-repeat;
}

#calcResults .discountInfo {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--calc-accent-text);
}

/* Save / share + email. */
#calcResults #saveShare {
  box-sizing: border-box;
  max-width: none;
  margin-top: 16px;
  padding: 16px;
  background: var(--calc-accent-soft);
  border: none;
  border-radius: var(--calc-radius-sm);
}

#calcResults #saveShare .saveShare-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--calc-ink);
  text-transform: none;
}

#calcResults #saveShare .saveShare-intro {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--calc-muted);
}

#calcResults #saveShare .saveShare-option {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--calc-line);
}

#calcResults #saveShare .saveShare-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--calc-ink);
}

#calcResults #saveShare .saveShare-hint {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--calc-muted);
}

#calcResults #saveShare .saveShare-row,
#calcResults #saveShare .email-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
}

#calcResults #saveShare .saveShare-pop {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
}

#calcResults #saveShare #inputEmail,
#calcResults #saveShare #shareUrl {
  flex: 1 1 160px;
  width: auto;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: none;
  border-radius: var(--calc-radius-xs);
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-line);
  font-size: var(--calc-field-text);
  font-weight: 400;
  line-height: 36px;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  color: var(--calc-ink);
}

#calcResults #saveShare #btnEmail,
#calcResults #saveShare #btnShare {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 36px;
  margin: 0;
  padding: 0 16px;
  border: none;
  border-radius: var(--calc-radius-xs);
  background: var(--calc-accent);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    background-color 140ms ease;
}

#calcResults #saveShare #btnEmail:active,
#calcResults #saveShare #btnShare:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  #calcResults #saveShare #btnEmail:hover:not(:disabled),
  #calcResults #saveShare #btnShare:hover:not(:disabled) {
    background: var(--calc-accent-strong);
  }
}

#calcResults #saveShare #btnEmail:focus-visible,
#calcResults #saveShare #btnShare:focus-visible {
  outline: 2px solid var(--calc-focus);
  outline-offset: 2px;
}

#calcResults #saveShare #inputEmail:focus-visible,
#calcResults #saveShare #shareUrl:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--calc-focus);
}

#calcResults #saveShare #inputEmail[aria-invalid="true"] {
  box-shadow: 0 0 0 1px var(--calc-danger);
}

#calcResults #saveShare #inputEmail[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 2px var(--calc-danger);
}

#calcResults #saveShare #inputEmail:disabled {
  background: var(--calc-fill);
  box-shadow: none;
  color: var(--calc-muted);
  opacity: 1;
}

#calcResults #saveShare #btnEmail:disabled,
#calcResults #saveShare #btnShare:disabled {
  opacity: 0.6;
  cursor: default;
}

#calcResults #saveShare .emailMessage,
#calcResults #saveShare .shareMessage {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: 220px;
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--calc-radius-xs);
  background: var(--calc-surface);
  box-shadow:
    0 0 0 1px var(--calc-line),
    0 8px 24px oklch(0 0 0 / 0.12);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--calc-accent-text);
  text-align: center;
  transform-origin: center bottom;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) scale(0.95);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

#calcResults #saveShare .emailMessage.is-in,
#calcResults #saveShare .shareMessage.is-in {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#calcResults #saveShare #shareUrl:not(.hidden) {
  opacity: 0;
  transform: translateY(4px);
}

#calcResults #saveShare #shareUrl.is-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  #calcResults #saveShare #btnEmail,
  #calcResults #saveShare #btnShare {
    transition: none;
  }

  #calcResults #saveShare #btnEmail:active,
  #calcResults #saveShare #btnShare:active {
    transform: none;
  }

  #calcResults #saveShare .emailMessage,
  #calcResults #saveShare .emailMessage.is-in,
  #calcResults #saveShare .shareMessage,
  #calcResults #saveShare .shareMessage.is-in {
    transform: translateX(-50%);
    transition: opacity 200ms var(--ease-out);
  }

  #calcResults #saveShare #shareUrl:not(.hidden),
  #calcResults #saveShare #shareUrl.is-in {
    transform: none;
    transition: opacity 200ms var(--ease-out);
  }
}

#calcResults #saveShare .emailMessage.red,
#calcResults #saveShare .shareMessage.red {
  color: var(--calc-danger);
}

#calcResults #saveShare .emailMessage:empty,
#calcResults #saveShare .shareMessage:empty {
  display: none;
}

#calculator .share-banner {
  box-sizing: border-box;
  max-width: none;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--calc-accent-soft);
  border: none;
  border-radius: var(--calc-radius-sm);
}

#calculator .share-banner-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--calc-ink);
}

#calculator .share-banner-date {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--calc-ink);
}

#calculator .share-banner-text {
  margin: 4px 0 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--calc-muted);
}

#calculator .share-fresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--calc-radius-xs);
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-accent-text);
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--calc-accent-text);
}

@media (hover: hover) and (pointer: fine) {
  #calculator .share-fresh:hover {
    background: var(--calc-accent);
    color: #fff;
  }
}

#calculator .share-fresh:focus-visible {
  border-radius: var(--calc-radius-xs);
}

ol.calc-column.share-locked label,
ol.calc-column.share-locked .producer_logo,
ol.calc-column.share-locked .cpudiv,
ol.calc-column.share-locked .gpudiv,
ol.calc-column.share-locked input,
ol.calc-column.share-locked select,
ol.calc-column.share-locked .chosen-container,
ol.calc-column.share-locked .switch-option,
ol.calc-column.share-locked .calc-toggle-row,
ol.calc-column.share-locked .animDetails-include_check,
ol.calc-column.share-locked button,
ol.calc-column.share-locked a {
  pointer-events: none;
}

#calculator #obControls,
#calculator #animDetails,
#calculator #cbControls {
  list-style: none;
  margin: 0;
  padding: 20px 0 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--calc-ink);
}

/* Not a step of its own: it sits under the step title, where the processor picker would. */
#calculator #cbControls {
  padding: 0;
}

#calculator #cpuDetails {
  list-style: none;
  margin: 0;
}

#calculator #cpuDetails {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-accent-soft);
  box-sizing: border-box;
}

#calculator .cpu-details_speed,
#calculator .cpu-details_processors {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--calc-muted);
}

#calculator #speed,
#calculator #processors {
  width: 72px;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: none;
  border-radius: var(--calc-radius-xs);
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-line);
  font-size: var(--calc-field-text);
  font-weight: 400;
  text-align: center;
  color: var(--calc-ink);
}

#calculator #speed:focus-visible,
#calculator #processors:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--calc-focus);
}

/* Scene loading and FPE sit inside .input-box, which already draws the field. */
#calculator .input-box #scene-loading-time,
#calculator .input-box #fpe {
  width: 4.5ch;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--calc-field-text);
  font-weight: 400;
  text-align: right;
  color: var(--calc-ink);
}

#calculator #processors {
  width: 80px;
  text-align: left;
  text-indent: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--calc-muted) 50%), linear-gradient(135deg, var(--calc-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Positioned so it paints over the neighbouring tip's 40px hit area. */
#calculator a.read-more-link {
  position: relative;
  margin-left: 0;
  white-space: nowrap;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: var(--calc-accent-text);
  text-decoration-line: underline;
  text-underline-offset: 2px;
}

/* FPE warning sits by the checkbox. Fixed so the row's overflow does not clip it. */
#calculator .fpe-confirm {
  position: fixed;
  z-index: 30;
  width: min(280px, calc(100vw - 24px));
  margin: 0;
  padding: 12px;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-surface);
  box-shadow:
    0 0 0 1px var(--calc-line),
    0 8px 24px oklch(0 0 0 / 0.12);
  box-sizing: border-box;
  color: var(--calc-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  transform-origin: var(--fpe-arrow, 22px) -6px;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

#calculator .fpe-confirm[data-place="above"] {
  transform-origin: var(--fpe-arrow, 22px) calc(100% + 6px);
}

#calculator .fpe-confirm[data-starting-style],
#calculator .fpe-confirm[data-ending-style] {
  opacity: 0;
  transform: scale(0.95);
}

#calculator .fpe-confirm[data-ending-style] {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #calculator .fpe-confirm {
    transition: opacity 200ms var(--ease-out);
  }

  #calculator .fpe-confirm[data-starting-style],
  #calculator .fpe-confirm[data-ending-style] {
    transform: none;
  }
}

#calculator .fpe-confirm p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--calc-ink);
}

#calculator .fpe-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

#calculator .fpe-confirm button {
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: var(--calc-radius-xs);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}

#calculator .fpe-confirm-cancel {
  background: var(--calc-surface);
  box-shadow: 0 0 0 1px var(--calc-line);
  color: var(--calc-muted);
}

#calculator .fpe-confirm-accept {
  background: var(--calc-accent);
  color: #fff;
}

#calculator .fpe-confirm button:focus-visible {
  outline: 2px solid var(--calc-focus);
  outline-offset: 2px;
}

#calculator .fpe-confirm button:active {
  transform: scale(0.97);
}

#calculator .fpe-confirm::before,
#calculator .fpe-confirm::after {
  content: "";
  position: absolute;
  left: var(--fpe-arrow, 22px);
  transform: translateX(-50%);
  border-style: solid;
  border-color: transparent;
}

#calculator .fpe-confirm[data-place="below"]::before {
  top: -7px;
  border-width: 0 7px 7px;
  border-bottom-color: var(--calc-line);
}

#calculator .fpe-confirm[data-place="below"]::after {
  top: -6px;
  border-width: 0 6px 6px;
  border-bottom-color: var(--calc-surface);
}

#calculator .fpe-confirm[data-place="above"]::before {
  bottom: -7px;
  border-width: 7px 7px 0;
  border-top-color: var(--calc-line);
}

#calculator .fpe-confirm[data-place="above"]::after {
  bottom: -6px;
  border-width: 6px 6px 0;
  border-top-color: var(--calc-surface);
}

#calculator a:focus-visible,
#calcResults a:focus-visible {
  outline: 2px solid var(--calc-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

#calculator #rtxGpuCard-label {
  cursor: pointer;
}

#calculator .resolution-scale .content {
  align-items: center;
  width: 100%;
  max-width: 100%;
}

#calculator .resolution-scale .datalist-container {
  position: relative;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

#calculator #resolutionScale {
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  background: var(--calc-fill-strong);
  border-radius: 999px;
  accent-color: var(--calc-accent);
}

#calculator #resolutionScale::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--calc-accent);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.08);
  cursor: pointer;
}

#calculator #resolutionScale::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--calc-accent);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.08);
  cursor: pointer;
}

#calculator #resolutionScale:focus-visible {
  outline: none;
}

#calculator #resolutionScale:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px var(--calc-surface), 0 0 0 4px var(--calc-focus);
}

#calculator #resolutionScale:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 2px var(--calc-surface), 0 0 0 4px var(--calc-focus);
}

@media (pointer: coarse) {
  #calculator #resolutionScale::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  #calculator #resolutionScale::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
}

#calculator .resolution-scale .input-box {
  flex: 0 0 auto;
  width: auto;
  height: 36px;
  padding: 0 10px;
}

#calculator .resolution-scale .input-box #resolutionScaleValue {
  flex: 0 0 auto;
  width: 3ch;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--calc-field-text);
  font-weight: 400;
  text-align: right;
  color: var(--calc-ink);
}

#calculator .resolution-scale .input-box #resolutionScaleValue:focus,
#calculator .resolution-scale .input-box #resolutionScaleValue:focus-visible {
  outline: none;
  box-shadow: none;
}

#calculator #cpuDetails span,
#calculator .cpu-details_speed span {
  font-size: 13px;
  font-weight: 500;
  color: var(--calc-muted);
}

#calcResults .disclaimer-head span {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' fill='none'%3E%3Cpath fill='%23e11d48' d='M8 .4 15.4 13H.6L8 .4Zm0 4.2c-.4 0-.7.3-.7.7v3.2c0 .4.3.7.7.7s.7-.3.7-.7V5.3c0-.4-.3-.7-.7-.7Zm0 6.1a.8.8 0 1 0 0 1.6.8.8 0 0 0 0-1.6Z'/%3E%3C/svg%3E") center / 14px 12px no-repeat;
}


#calculator .calc-field-error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--calc-danger);
  opacity: 0;
  transform: translateY(4px);
}

#calculator .calc-field-error.is-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  #calculator .calc-field-error,
  #calculator .calc-field-error.is-in {
    transform: none;
    transition: opacity 200ms var(--ease-out);
  }
}

.tippy-box[data-animation="shift-away"][data-placement^="top"][data-state="hidden"] {
  transform: translateY(4px);
}

.tippy-box[data-animation="shift-away"][data-placement^="bottom"][data-state="hidden"] {
  transform: translateY(-4px);
}

.tippy-box[data-animation="shift-away"][data-placement^="left"][data-state="hidden"] {
  transform: translateX(4px);
}

.tippy-box[data-animation="shift-away"][data-placement^="right"][data-state="hidden"] {
  transform: translateX(-4px);
}

/* The tippy.js bundle only ships the dark theme. This one matches the FPE popover. */
.tippy-box[data-theme~="light"] {
  border-radius: var(--calc-radius-sm);
  background-color: var(--calc-surface);
  box-shadow:
    0 0 0 1px var(--calc-line),
    0 8px 24px oklch(0 0 0 / 0.12);
  font-family: var(--calc-font, inherit);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--calc-ink);
}

.tippy-box[data-theme~="light"] > .tippy-content {
  padding: 10px 12px;
}

.tippy-box[data-theme~="light"] > .tippy-arrow {
  color: var(--calc-surface);
}

/* A larger triangle behind the arrow carries the hairline around it. */
.tippy-box[data-theme~="light"] > .tippy-arrow::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-color: transparent;
  border-style: solid;
}

.tippy-box[data-theme~="light"][data-placement^="top"] > .tippy-arrow::after {
  bottom: -8px;
  left: -1px;
  border-width: 9px 9px 0;
  border-top-color: var(--calc-line);
}

.tippy-box[data-theme~="light"][data-placement^="bottom"] > .tippy-arrow::after {
  top: -8px;
  left: -1px;
  border-width: 0 9px 9px;
  border-bottom-color: var(--calc-line);
}

.tippy-box[data-theme~="light"][data-placement^="left"] > .tippy-arrow::after {
  top: -1px;
  right: -8px;
  border-width: 9px 0 9px 9px;
  border-left-color: var(--calc-line);
}

.tippy-box[data-theme~="light"][data-placement^="right"] > .tippy-arrow::after {
  top: -1px;
  left: -8px;
  border-width: 9px 9px 9px 0;
  border-right-color: var(--calc-line);
}

#calculator .project-measure {
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--calc-radius-sm);
  background: var(--calc-accent-soft);
  box-shadow: none;
  overflow: visible;
}

#calculator #animDetails > p {
  margin: 10px 0 2px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

#calculator .tip::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -2px;
  background: var(--calc-accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath stroke='%23000' stroke-width='1.4' stroke-linejoin='round' d='M7 1.5a3.3 3.3 0 0 0-1.6 6.2c.3.2.4.5.4.8v.7h2.4v-.7c0-.3.1-.6.4-.8A3.3 3.3 0 0 0 7 1.5Z'/%3E%3Cpath stroke='%23000' stroke-width='1.4' stroke-linecap='round' d='M5.6 10.8h2.8M6 12.2h2'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath stroke='%23000' stroke-width='1.4' stroke-linejoin='round' d='M7 1.5a3.3 3.3 0 0 0-1.6 6.2c.3.2.4.5.4.8v.7h2.4v-.7c0-.3.1-.6.4-.8A3.3 3.3 0 0 0 7 1.5Z'/%3E%3Cpath stroke='%23000' stroke-width='1.4' stroke-linecap='round' d='M5.6 10.8h2.8M6 12.2h2'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

#calculator .project-measure .time,
#calculator .project-measure .render-params.frames,
#calculator .project-measure .render-params.strips {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 40px;
}

/* Below 140px the label would stack word by word, so the fields drop to their own line. */
#calculator .project-measure .time .label,
#calculator .project-measure .render-params.frames .label,
#calculator .project-measure .render-params.strips .label {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  margin: 0;
  white-space: normal;
}

#calculator .project-measure .label label {
  margin: 0;
}

#calculator .project-measure .time .content,
#calculator .project-measure .render-params.frames .content,
#calculator .project-measure .render-params.strips .content {
  flex: 0 0 auto;
  width: auto;
  gap: 6px;
}

#calculator .project-measure .time .input-box,
#calculator .project-measure .render-params .input-box,
#calculator .project-measure .resolution-scale .input-box,
#calculator .loadingTimeInput .input-box,
#calculator .fpeInput .input-box {
  flex: 0 0 auto;
  width: auto;
  height: 36px;
  padding: 0 10px;
  justify-content: center;
}

/* Sized by their digits, with a floor so the h, m and s boxes line up. */
#calculator .project-measure .time .input-box,
#calculator .project-measure .resolution-scale .input-box {
  min-width: 64px;
}

/* Hours run to 9999. Minutes and seconds stay at two digits. */
#calculator .project-measure .time .input-box:first-child {
  min-width: 72px;
}

#calculator .project-measure .time .input-box:first-child input[type="number"] {
  width: 4ch;
}

#calculator .project-measure .time .input-box input[type="number"],
#calculator .project-measure .render-params .input-box input[type="number"],
#calculator .project-measure .resolution-scale .input-box input[type="number"] {
  flex: 0 0 auto;
  width: 3ch;
  min-width: 0;
  height: 34px;
  font-size: var(--calc-field-text);
  text-align: right;
}

#calculator .project-measure .time .input-box input[type="number"]::placeholder {
  color: var(--calc-ink);
  opacity: 1;
}

#calculator .project-measure .render-params .input-box input[type="number"] {
  width: 4ch;
}

/* Frame counts run to six digits (100000). Strips stay at 4ch (max 50). */
#calculator .project-measure .render-params.frames .input-box input[type="number"] {
  width: 8ch;
}

#calculator .project-measure .input-suffix,
#calculator .loadingTimeInput .input-suffix,
#calculator .fpeInput .input-suffix {
  margin-left: 4px;
}

#calcResults .results-head {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--calc-muted);
}

#calcResults .results-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#calcResults .results-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--calc-ink);
}

#calcResults .results-title-row .animDetails-include_tip {
  flex: 0 0 auto;
  margin: 0;
}

#calcResults .results-note {
  margin: 4px 0 0;
  max-width: 62ch;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--calc-muted);
}

#calcResults #tipEstimates {
  transition-property: transform;
  transition-duration: 100ms;
  transition-timing-function: var(--ease-out);
}

#calcResults #tipEstimates:active {
  transform: scale(0.97);
}

/* Same blue card as the breakdown below. Two by two: the column is too narrow for four. */
#calcResults .results-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto auto auto;
  margin: 0 0 8px;
  padding: 2px 0;
  background: var(--calc-accent-soft);
  border-radius: 12px;
}

/* Label, value and note share rows with the cell beside them. */
#calcResults .results-summary-item {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  justify-items: start;
  align-items: start;
  min-width: 0;
  padding: 10px 52px 12px 14px;
  text-align: left;
}

#calcResults .results-summary-mark {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 0;
  width: 40px;
  height: 40px;
  color: var(--calc-accent-text);
  opacity: 0.22;
  pointer-events: none;
  transform: translateY(-50%);
}

#calcResults .results-summary-mark .results-summary-icon {
  display: block;
  width: 40px;
  height: 40px;
}

#calcResults .results-summary-label,
#calcResults .results-summary-value,
#calcResults .results-summary-note {
  position: relative;
  z-index: 1;
}

#calcResults .results-summary-item:nth-child(even) {
  box-shadow: inset 1px 0 0 oklch(0.45 0.04 250 / 0.12);
}

#calcResults .results-summary-item:nth-child(n + 3) {
  box-shadow: inset 0 1px 0 oklch(0.45 0.04 250 / 0.12);
}

#calcResults .results-summary-item:nth-child(4) {
  box-shadow:
    inset 1px 0 0 oklch(0.45 0.04 250 / 0.12),
    inset 0 1px 0 oklch(0.45 0.04 250 / 0.12);
}

#calcResults .results-summary-label {
  display: block;
  min-height: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  color: var(--calc-muted);
}

#calcResults .results-summary-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0;
  color: var(--calc-accent-text);
}

#calcResults .results-summary-value {
  margin-top: 2px;
  max-width: 100%;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.011em;
  font-variant-numeric: tabular-nums;
  color: var(--calc-ink);
  white-space: nowrap;
}

#calcResults .results-summary-note,
#calcResults .results-card-note {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--calc-muted);
}

#calcResults .results-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 12px;
}

#calcResults .results-card-copy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

#calcResults .results-card-copy .results-summary-icon {
  width: 18px;
  height: 18px;
  margin-top: 0;
}

/* Inline text, not flex: brand names are wrapped in spans and would become separate flex items. */
#calcResults .results-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--calc-ink);
}

#calcResults .results-card-sub {
  width: auto;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--calc-muted);
}

#calcResults .results-card-figure {
  flex: 0 0 auto;
  text-align: right;
}

#calcResults .results-card-figure .results-data {
  font-size: 16px;
  line-height: 1.2;
}

#calcResults td:last-child,
#calcResults .results-data {
  color: var(--calc-ink);
}

/* Line height matches the card title, so the link sits on the title line. */
#calcResults .results-context-link {
  flex: 0 1 auto;
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--calc-muted);
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
#calcResults .results-context-link:hover {
    color: var(--calc-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

#calcResults .results td b {
  font-weight: 400;
  color: var(--calc-muted);
}

#calcResults .results td,
#calcResults #discounts td {
  padding: 6px 0;
}

#calcResults .results td + td,
#calcResults #discounts td + td {
  padding-left: 12px;
}

/* Both columns share the width, so on the narrowest phones each takes two lines instead of the offer running past the card. */
#calcResults #discounts td:first-child {
  width: auto;
}

#calcResults #discounts td:last-child {
  white-space: normal;
}

#calcResults .results tr + tr td,
#calcResults #discounts tr + tr td {
  border-top: 1px solid oklch(0.45 0.04 250 / 0.12);
}

#calcResults #saveShare {
  margin-top: 8px;
  padding: 16px 0 0;
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--calc-line);
}

#calcResults #saveShare .saveShare-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

#calcResults #saveShare .saveShare-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

#calcResults #saveShare .saveShare-label {
  min-height: 18px;
}

#calcResults #saveShare .saveShare-row,
#calcResults #saveShare .email-container {
  flex-wrap: nowrap;
  align-items: center;
  min-height: 36px;
}

#calcResults #saveShare .saveShare-hint {
  margin: 0;
}

#calcResults #saveShare #btnShare {
  gap: 6px;
  background: #fff;
  color: var(--calc-accent-text);
  box-shadow: inset 0 0 0 1px var(--calc-accent);
}

#calcResults #saveShare #btnShare .btn-link-icon {
  flex: 0 0 auto;
}

@media (hover: hover) and (pointer: fine) {
#calcResults #saveShare #btnShare:hover:not(:disabled):not(.is-confirmed) {
    background: var(--calc-accent-soft);
    color: var(--calc-accent-text);
  }
}

#calcResults #saveShare #btnEmail.is-confirmed {
  background: var(--calc-accent);
  color: #fff;
  box-shadow: none;
  opacity: 1;
}

#calcResults #saveShare #btnShare.is-confirmed {
  background: var(--calc-accent);
  color: #fff;
  box-shadow: none;
}

#calcResults #saveShare .emailMessage:not(.red),
#calcResults #saveShare .shareMessage:not(.red) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

@media (max-width: 420px) {
#calcResults .results-summary {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

#calcResults .results-summary-item {
    display: block;
    padding-top: 10px;
    box-shadow: none;
  }

#calcResults .results-summary-item + .results-summary-item {
    box-shadow: inset 0 1px 0 oklch(0.45 0.04 250 / 0.12);
  }
}

@media (max-width: 720px) {
  /* Keeps "Pay $1,000 USD" and its credits on one line at 375px. */
#calcResults #discounts td {
    font-size: 12px;
  }

#calcResults #saveShare .saveShare-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The link moves under the title, in line with the title text (18px icon + 8px gap). */
#calcResults .results-card-head:has(.results-context-link) {
    flex-wrap: wrap;
  }

#calcResults .results-context-link {
    flex-basis: 100%;
    margin-left: 26px;
    text-align: left;
  }
}

@media (max-width: 959px) {
  #calculator .calc-option,
  #calculator .calc-toggle-row {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  #calculator .labelTick p {
    white-space: normal;
  }

  /* When the label needs more than 200px, the field moves under it instead of squeezing it. */
  #calculator .calc-option {
    flex-wrap: wrap;
    row-gap: 4px;
    padding-block: 4px;
  }

  #calculator .calc-option .calc-toggle-row {
    flex: 1 1 200px;
    min-height: 36px;
  }

  #calculator .chosen-container.chosen-with-drop {
    position: relative;
    z-index: 30;
  }
}

/* Phone only. The desktop column keeps the label beside its field.
   A phone fits "Number of frames" next to one box, so that row never
   wraps the way the three time boxes do. Scene loading and FPE drop
   their value out of the checkbox card: a box inside that card reads
   as a field inside a field. */
@media (max-width: 480px) {
  /* The page already insets the cards by 16px. 20px inside them, then 14px
     inside the tinted groups, left the fields 50px from the screen edge. */
  #calculator,
  #calcResults {
    padding-left: 14px;
    padding-right: 14px;
  }

  #calculator .div-block-109,
  #calculator .project-measure,
  #calculator #cpuDetails,
  #calcResults .results,
  #calcResults #discounts {
    padding-left: 12px;
    padding-right: 12px;
  }

  #calculator .project-measure .render-params.frames,
  #calculator .project-measure .render-params.strips {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  #calculator .project-measure .render-params.frames .label,
  #calculator .project-measure .render-params.strips .label,
  #calculator .project-measure .render-params.frames .content,
  #calculator .project-measure .render-params.strips .content {
    flex: none;
    width: 100%;
  }

  #calculator .project-measure .render-params.frames .input-box,
  #calculator .project-measure .render-params.strips .input-box {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
  }

  #calculator .project-measure .render-params.frames .input-box input[type="number"],
  #calculator .project-measure .render-params.strips .input-box input[type="number"] {
    flex: 1 1 auto;
    width: auto;
    text-align: left;
  }

  #calculator .calc-option {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  #calculator .calc-option .calc-toggle-row {
    flex: none;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--calc-radius-sm);
    background: var(--calc-surface);
    box-shadow: 0 0 0 1px var(--calc-line);
  }

  #calculator .loadingTimeInput,
  #calculator .fpeInput {
    width: 100%;
    margin: 0;
  }

  #calculator .loadingTimeInput:has(.input-box.hidden),
  #calculator .fpeInput:has(.input-box.hidden) {
    display: none;
  }

  #calculator .loadingTimeInput .input-box,
  #calculator .fpeInput .input-box {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    justify-content: flex-start;
  }

  #calculator .input-box #scene-loading-time,
  #calculator .input-box #fpe {
    flex: 1 1 auto;
    width: auto;
    height: 42px;
    text-align: left;
  }
}
