@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --teal: #007f86;
  --teal-hover: #006970;
  --teal-light: #f3f8f8;
  --ink: #222222;
  --muted: #666666;
  --line: #d9e5e5;
  font-family: "IBM Plex Sans", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.6; }
button, select, input { font: inherit; }
button, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.header-label { color: var(--muted); font-size: .875rem; }
main { width: min(100% - 80px, 1080px); margin: 0 auto; padding: 44px 0 40px; }
.intro { max-width: 760px; margin-bottom: 32px; }
.intro-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.eyebrow { color: var(--teal); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; margin: 0 0 10px; }
h1 { margin: 0; font-size: clamp(1.875rem, 3.1vw, 2.5rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; }
.title-period { color: var(--teal); }
.intro-copy { color: var(--muted); margin: 14px 0 0; font-size: 1rem; line-height: 1.6; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.input-panel, .result-panel { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 6px; }
.input-panel { background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
h2 { font-size: 1.25rem; line-height: 1.4; font-weight: 500; margin: 0; letter-spacing: -.015em; }
.sph-label { font-size: .8125rem; letter-spacing: .025em; font-weight: 500; color: var(--muted); }
form { margin: 0; }
.eye-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.eye-input { min-width: 0; margin: 0; padding: 0; border: 0; }
.eye-input legend { width: 100%; padding: 0 0 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.4; font-weight: 500; }
.eye-code { color: var(--muted); font-size: .8125rem; font-weight: 400; margin-left: 4px; }
.field-label { display: flex; gap: 4px; color: var(--muted); font-size: .875rem; font-weight: 500; line-height: 1.4; margin-bottom: 8px; }
.field-label span { color: var(--teal); }
.cylinder-label { margin-top: 20px; }
.select-wrap { position: relative; }
select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; min-height: 58px; padding: 12px 38px 12px 16px; color: var(--muted); background: #fff; border: 1px solid #b8cccc; border-radius: 4px; font-size: 1rem; line-height: 1.4; font-weight: 400; font-variant-numeric: tabular-nums lining-nums; cursor: pointer; }
select:hover:not(:disabled) { border-color: var(--teal); }
select:focus-visible { outline-offset: 2px; border-color: var(--teal); }
select.has-value { color: var(--ink); border-color: #83b5b8; background: #fbfdfd; font-size: 1.375rem; font-weight: 500; }
select:disabled { color: var(--muted); background: #f1f5f5; border-color: var(--line); cursor: default; opacity: 1; }
select option { color: var(--ink); background: #fff; font-size: 1rem; font-weight: 400; }
.chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--teal); width: 18px; height: 18px; }
.same-control { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding-block: 8px; min-height: 44px; font-size: .875rem; line-height: 1.5; cursor: pointer; }
.same-control input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--teal); cursor: inherit; }
.same-control:has(input:disabled) { color: var(--muted); cursor: default; }
.input-help { color: var(--muted); margin: 8px 0 24px; font-size: .875rem; line-height: 1.6; }
.input-help strong { font-weight: 500; color: var(--ink); }
.input-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.calculate-button { width: 100%; min-height: 56px; padding: 13px 20px; border: 1px solid var(--teal); border-radius: 4px; color: #fff; background: var(--teal); font-size: 1rem; font-weight: 600; line-height: 1.4; cursor: pointer; }
.calculate-button:hover:not(:disabled) { background: var(--teal-hover); border-color: var(--teal-hover); }
.calculate-button:disabled { background: #dfe9e9; color: #677c7d; border-color: #dfe9e9; cursor: default; }
.reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 10px 6px; border: 0; border-radius: 4px; color: var(--teal); background: transparent; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.reset-button:hover:not(:disabled) { background: var(--teal-light); }
.reset-button:disabled { color: #829191; cursor: default; }
.result-panel { background: var(--teal-light); border-top: 3px solid var(--teal); scroll-margin-block: 24px; }
.result-heading h2 { color: var(--teal); font-weight: 600; }
.estimate-label { color: #4a6e70; background: #e5eeee; padding: 3px 9px; border-radius: 3px; font-size: .8125rem; line-height: 1.4; font-weight: 400; }
.results { margin-top: 8px; }
.result-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 28px 0; min-height: 126px; }
.result-row + .result-row { border-top: 1px solid var(--line); }
.result-caption { min-width: 0; flex: 1 1 120px; }
.result-caption h3 { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.result-caption h3 span { color: var(--muted); font-size: .8125rem; font-weight: 400; margin-left: 4px; }
.result-caption p { color: var(--muted); font-size: .875rem; margin: 7px 0 0; line-height: 1.5; white-space: pre-line; font-variant-numeric: tabular-nums lining-nums; }
.power-display { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; flex: 0 0 auto; margin-left: auto; }
output { color: #8baaaa; font-family: "IBM Plex Sans", sans-serif; font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.result-row.has-result output { color: var(--teal); }
.unit { font-size: .9375rem; color: var(--teal); }
.result-footnote { border-top: 1px solid var(--line); color: var(--muted); margin: 0; padding-top: 18px; font-size: .875rem; line-height: 1.6; }
.care-note { display: flex; align-items: flex-start; gap: 12px; max-width: 960px; margin-top: 30px; color: var(--muted); }
.info-icon { flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.care-copy { min-width: 0; }
.care-copy ul { font-size: 1rem; line-height: 1.7; margin: 0; padding-inline-start: 1.125rem; }
.care-copy li + li { margin-top: 12px; }
.site-footer { width: min(100% - 80px, 1080px); margin: 0 auto; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.error-message { color: #9c2d24; border-left: 3px solid #bd5c52; background: #fff5f3; padding: 12px; font-size: .875rem; margin: 18px 0 0; }
@media (max-width: 1000px) {
  .calculator { gap: 22px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .input-panel, .result-panel { padding: 24px; }
  .eye-inputs { gap: 18px; }
}
@media (max-width: 780px) {
  main, .site-footer { width: min(100% - 48px, 580px); }
  main { padding-top: 30px; padding-bottom: 30px; }
  .intro { margin-bottom: 26px; }
  h1 { font-size: 2rem; }
  .calculator { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .result-panel { padding: 24px; }
  .result-row { min-height: 116px; }
}
@media (max-width: 520px) {
  main, .site-footer { width: calc(100% - 40px); }
  .header-label { display: none; }
  main { padding-top: 26px; }
  .eyebrow { font-size: .75rem; margin-bottom: 9px; }
  h1 { font-size: 1.875rem; }
  .intro-copy { margin-top: 12px; }
  .input-panel, .result-panel { padding: 22px 20px; border-radius: 4px; }
  .eye-inputs { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 24px; }
  .eye-input legend { padding-bottom: 10px; margin-bottom: 14px; }
  .cylinder-label { margin-top: 16px; }
  select { min-height: 56px; }
  .same-control { margin-top: 18px; }
  .input-help { margin-bottom: 20px; }
  .input-bottom { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .reset-button { justify-self: center; min-width: 96px; }
  .result-row { gap: 10px; padding-block: 23px; }
  .result-caption { flex-basis: 112px; }
  output { font-size: 2.875rem; }
  .care-note { gap: 10px; margin-top: 24px; }
  .site-footer { padding-top: 18px; padding-bottom: 24px; }
}
@media (max-width: 350px) {
  main, .site-footer { width: calc(100% - 32px); }
  .input-panel, .result-panel { padding-inline: 16px; }
  .result-caption { flex-basis: 100px; }
  output { font-size: 2.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
