:root {
  --ink: #09161c;
  --ink-2: #12242c;
  --paper: #f4f4ee;
  --panel: #fbfbf7;
  --line: #d9ddd6;
  --muted: #6c7777;
  --acid: #c8f53d;
  --aqua: #72e3dc;
  --blue: #5b8cff;
  --coral: #ff7c5d;
  --shadow: 0 28px 80px rgba(7, 29, 37, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
button, input { font: inherit; }
button { cursor: pointer; }
input { color: var(--ink); }
.page-width { width: min(1460px, calc(100% - 56px)); margin-inline: auto; }
.hidden { display: none !important; }

.topbar { height: 68px; padding: 0 max(28px, calc((100vw - 1460px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(9,22,28,.16); background: rgba(244,244,238,.92); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.045em; }
.brand em { color: #64810a; font-style: normal; font-weight: 500; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px 9px 13px 9px; display: grid; place-items: center; background: var(--ink); color: var(--acid); font: 750 13px ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.portal-back { margin-right: 8px; padding-right: 16px; border-right: 1px solid #cfd4cd; color: var(--muted); font-size: 10px; font-weight: 700; text-decoration: none; }
.portal-back span { margin-right: 6px; color: #6c880e; }
.portal-back:hover { color: var(--ink); }
.live-badge { margin-right: 12px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.live-badge i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #71a000; box-shadow: 0 0 0 4px rgba(113,160,0,.12); }
.quiet-button, .print-button { border: 0; border-radius: 7px; padding: 9px 12px; font-size: 11px; font-weight: 700; }
.quiet-button { background: transparent; color: var(--muted); }
.quiet-button:hover { color: var(--ink); background: #e8e9e2; }
.print-button { background: var(--ink); color: white; padding-inline: 15px; }
.print-button span { color: var(--acid); margin-left: 7px; }

.hero { min-height: 300px; padding: 63px 0 48px; display: grid; grid-template-columns: 1fr 350px; align-items: end; gap: 60px; }
.kicker { color: #6c7c7e; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.hero h1 { max-width: 850px; margin: 17px 0 0; font-size: clamp(48px, 6.2vw, 88px); line-height: .9; letter-spacing: -.075em; font-weight: 700; }
.hero h1 i { color: #668800; font-family: Georgia, serif; font-weight: 400; }
.hero > p { margin: 0 0 7px; padding-left: 25px; border-left: 1px solid #aeb8b5; color: var(--muted); font-size: 13px; line-height: 1.65; }

.calculator { display: grid; grid-template-columns: minmax(430px, .72fr) minmax(650px, 1.28fr); align-items: start; background: var(--panel); border: 1px solid #bcc4bf; box-shadow: var(--shadow); }
.input-column { min-width: 0; background: var(--panel); }
.input-section { padding: 28px 30px 32px; border-bottom: 1px solid var(--line); }
.input-section:last-child { border-bottom: 0; }
.section-heading, .card-heading, .comparison-heading > div:first-child { display: flex; align-items: center; gap: 13px; }
.section-heading > span, .card-index, .section-number { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #bac2bc; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-heading h2, .card-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.035em; }
.section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.field-grid { display: grid; gap: 9px; margin-top: 22px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
.field { display: block; min-width: 0; }
.field > span, .subhead { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .075em; }
.field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 45px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: white; }
.field > div:focus-within, .rx-row label:focus-within { border-color: #73900f; box-shadow: 0 0 0 3px rgba(150,190,20,.13); }
.field input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 10px 11px; background: transparent; font-size: 17px; font-weight: 700; }
.field b { min-width: 39px; padding: 0 8px; display: grid; place-items: center; border-left: 1px solid var(--line); background: #f5f5f0; color: var(--muted); font: 650 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.field small { display: block; margin-top: 6px; color: #8b9592; font-size: 9px; line-height: 1.4; }
.field.accent > div { border-color: #9ab21f; }
.eye-field.od > span, .od { color: #3e70de; }
.eye-field.oi > span, .oi { color: #c55d43; }
.subhead { margin-top: 23px; padding-top: 18px; border-top: 1px dashed var(--line); }
.subhead.split { display: flex; justify-content: space-between; }
.subhead.split span:last-child { color: #668800; }

.choice-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: #eceee8; border-radius: 9px; }
.choice-tabs button { border: 0; border-radius: 6px; background: transparent; padding: 9px 11px; text-align: left; color: var(--muted); }
.choice-tabs button b, .choice-tabs button small { display: block; }
.choice-tabs button b { font-size: 11px; }
.choice-tabs button small { margin-top: 2px; font-size: 8px; }
.choice-tabs button.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(19,37,42,.08); }
.choice-tabs.compact { width: 250px; margin-top: 20px; }
.choice-tabs.compact button { text-align: center; }
.shape-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.shape-picker button { border: 1px solid var(--line); border-radius: 8px; padding: 9px 5px 7px; display: grid; justify-items: center; gap: 5px; background: white; color: var(--muted); font-size: 8px; }
.shape-picker button.active { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 -3px 0 var(--acid); }
.shape-icon { width: 36px; height: 23px; display: block; border: 1.5px solid currentColor; }
.shape-icon.soft { border-radius: 9px; }
.shape-icon.round { border-radius: 50%; }
.shape-icon.rect { border-radius: 4px; }
.shape-icon.aviator { border-radius: 45% 45% 60% 55%; transform: rotate(-4deg); }
.inline-readout { margin: 10px 0 0; color: var(--muted); font-size: 9px; text-align: right; }
.inline-readout strong { color: var(--ink); }
#ed-field { margin-top: 11px; }

.rx-table { margin-top: 22px; }
.rx-row { display: grid; grid-template-columns: 31px repeat(3, 1fr); gap: 6px; align-items: center; margin-top: 6px; }
.rx-row.labels { margin-top: 0; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.rx-row > strong { font: 750 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.rx-row label { min-width: 0; height: 42px; display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.rx-row input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 9px; font-size: 14px; font-weight: 700; }
.rx-row i { padding-right: 8px; display: grid; place-items: center; color: var(--muted); font: normal 650 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.index-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.index-picker button { height: 48px; display: flex; align-items: baseline; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--muted); }
.index-picker button small { font-size: 8px; }
.index-picker button b { font-size: 14px; }
.index-picker button.active { border-color: var(--ink); color: var(--ink); background: var(--acid); box-shadow: inset 0 0 0 2px white; }

.result-column { min-width: 0; border-left: 1px solid #bcc4bf; background: #e8ebe6; }
.cut-status { min-height: 126px; padding: 25px 30px; display: grid; grid-template-columns: 47px 1fr auto; align-items: center; gap: 17px; background: var(--acid); border-bottom: 1px solid #aaba55; }
.cut-status.fail { background: #ffad97; border-color: #e7836a; }
.status-icon { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid rgba(9,22,28,.4); border-radius: 50%; font-size: 21px; }
.cut-status span { font: 750 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.cut-status h2 { margin: 4px 0 3px; font-size: 24px; letter-spacing: -.045em; }
.cut-status p { margin: 0; font-size: 10px; color: #40504e; }
.status-margin { min-width: 112px; padding-left: 20px; border-left: 1px solid rgba(9,22,28,.22); text-align: right; }
.status-margin span, .status-margin strong { display: block; }
.status-margin strong { margin-top: 5px; font-size: 24px; letter-spacing: -.045em; }
.result-card { background: var(--ink); color: white; }
.diameter-card { padding: 28px 30px 30px; }
.card-heading { justify-content: space-between; }
.card-heading > div:first-child { display: flex; align-items: center; gap: 12px; }
.card-heading .card-index { border-color: #44545a; color: #94a3a4; }
.card-heading h2 { color: white; }
.formula-chip { border: 1px solid #3d5057; border-radius: 30px; padding: 6px 9px; color: #97a6a8; font: 650 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyes-results { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border: 1px solid #314249; border-radius: 10px; overflow: hidden; }
.eyes-results article { padding: 19px 20px; }
.eyes-results article + article { border-left: 1px solid #314249; }
.eye-title { display: flex; align-items: center; gap: 7px; }
.eye-title .eye-dot { width: 7px; height: 7px; border-radius: 50%; }
.eye-dot.od { background: var(--blue); }.eye-dot.oi { background: var(--coral); }
.eye-title b { font-size: 11px; }.eye-title small { color: #7f9194; font-size: 8px; }
.diameter-value { display: flex; align-items: baseline; margin: 18px 0; }
.diameter-value span { margin-right: auto; color: #88999c; font-size: 9px; }
.diameter-value strong { font-size: 37px; letter-spacing: -.06em; }
.diameter-value i { margin-left: 5px; color: var(--acid); font: normal 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.decentration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.decentration-grid span { padding: 8px; border-radius: 5px; background: #13252d; }
.decentration-grid small, .decentration-grid b { display: block; }
.decentration-grid small { color: #74878a; font-size: 7px; text-transform: uppercase; }
.decentration-grid b { margin-top: 4px; font-size: 9px; white-space: nowrap; }

.visual-card { border-top: 1px solid #314249; padding: 28px 30px 25px; overflow: hidden; }
.eye-switch { display: flex; padding: 3px; border-radius: 7px; background: #15272f; }
.eye-switch button { border: 0; border-radius: 5px; padding: 6px 10px; background: transparent; color: #7f9295; font: 750 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.eye-switch button.active { background: var(--acid); color: var(--ink); }
.visual-intro { margin: 7px 0 0 42px; color: #7f9295; font-size: 9px; }
.visual-toolbar { min-height: 41px; margin: 15px 0 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.view-switch { display: flex; padding: 3px; border-radius: 7px; background: #15272f; }
.view-switch button { border: 0; border-radius: 5px; padding: 7px 10px; background: transparent; color: #7f9295; font-size: 8px; font-weight: 750; }
.view-switch button.active { background: #30434a; color: white; }
.view-switch button[data-value="compare"].active { background: var(--acid); color: var(--ink); }
.compare-selectors { display: flex; align-items: center; gap: 8px; }
.compare-selectors > span { color: #61767a; font: 650 8px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.compare-selectors label { height: 36px; display: flex; align-items: center; gap: 7px; padding: 3px 4px 3px 9px; border: 1px solid #31474e; border-radius: 7px; background: #11232a; }
.compare-selectors label > span { color: #71878a; font-size: 7px; text-transform: uppercase; }
.compare-selectors select { border: 0; border-radius: 5px; padding: 6px 22px 6px 7px; outline: 0; background: var(--acid); color: var(--ink); font-size: 10px; font-weight: 800; }
.lens-stage { height: 390px; margin-top: 10px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 46%, rgba(105,218,215,.13), transparent 42%); touch-action: none; }
.lens-stage.compare { background: radial-gradient(circle at 25% 48%, rgba(105,218,215,.12), transparent 28%), radial-gradient(circle at 75% 48%, rgba(200,245,61,.1), transparent 28%); }
.lens-stage.compare::after { content: ""; position: absolute; left: 50%; top: 55px; bottom: 35px; border-left: 1px dashed rgba(127,146,149,.23); pointer-events: none; }
#lens-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.thickness-callout, .center-callout { position: absolute; z-index: 2; pointer-events: none; }
.thickness-callout { min-width: 86px; padding: 7px 9px; border: 1px solid rgba(130,157,160,.28); border-radius: 6px; background: rgba(9,22,28,.74); backdrop-filter: blur(9px); }
.thickness-callout span, .thickness-callout b, .center-callout span, .center-callout b { display: block; }
.thickness-callout span, .center-callout span { color: #829497; font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.thickness-callout b { margin-top: 3px; font-size: 11px; }
.thickness-callout.top { left: 50%; top: 11px; transform: translateX(-50%); text-align: center; }
.thickness-callout.right { right: 4px; top: 50%; transform: translateY(-50%); text-align: right; }
.thickness-callout.bottom { left: 50%; bottom: 20px; transform: translateX(-50%); text-align: center; }
.thickness-callout.left { left: 4px; top: 50%; transform: translateY(-50%); }
.center-callout { left: calc(50% + 37px); top: calc(50% - 14px); padding-left: 18px; border-left: 1px solid var(--acid); }
.center-callout b { margin-top: 3px; color: var(--acid); font-size: 13px; }
.pair-label { position: absolute; z-index: 3; top: 7px; width: 43%; text-align: center; pointer-events: none; }
.pair-label.pair-a { left: 3%; }.pair-label.pair-b { right: 3%; }
.pair-label span, .pair-label b, .pair-label strong, .pair-label small { display: block; }
.pair-label span { color: #6f8589; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.pair-label b { margin: 2px 0 4px; color: var(--acid); font-size: 17px; letter-spacing: -.03em; }
.pair-label strong { color: white; font-size: 10px; }
.pair-label small { margin-top: 3px; color: #7f9497; font-size: 7px; line-height: 1.4; }
.drag-hint { position: absolute; right: 6px; bottom: 3px; color: #64777a; font-size: 8px; }
.drag-hint span { color: var(--acid); margin-right: 5px; }
.visual-footer { min-height: 61px; display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; align-items: center; border-top: 1px solid #314249; }
.visual-footer > div { padding-left: 12px; border-left: 1px solid #314249; }
.visual-footer > div:first-child { border-left: 0; padding-left: 0; }
.visual-footer span, .visual-footer strong { display: block; }
.visual-footer span { color: #74888b; font-size: 7px; text-transform: uppercase; }
.visual-footer strong { margin-top: 4px; font-size: 14px; }
.visual-footer p { justify-self: end; margin: 0; color: #74888b; font-size: 8px; }
.visual-footer p span { width: 42px; height: 4px; display: inline-block; margin-right: 7px; background: linear-gradient(90deg, var(--aqua), var(--acid), var(--coral)); }

.comparison { padding: 72px 0 78px; }
.comparison-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 27px; }
.comparison-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.055em; }
.comparison-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.pair-weight { text-align: right; }
.pair-weight span, .pair-weight strong { display: block; }
.pair-weight span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.pair-weight strong { margin-top: 4px; font-size: 27px; letter-spacing: -.05em; }
.comparison-table { border: 1px solid #bfc7c1; background: var(--panel); box-shadow: 0 18px 50px rgba(22,40,45,.05); }
.comparison-row { min-height: 67px; display: grid; grid-template-columns: 1.1fr 1fr 1.3fr 1fr 90px; align-items: center; gap: 20px; padding: 0 25px; border-top: 1px solid var(--line); }
.comparison-labels { min-height: 38px; border-top: 0; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.comparison-row.active { background: var(--ink); color: white; border-color: var(--ink); }
.material-name { display: flex; align-items: baseline; gap: 12px; }
.material-name strong { font-size: 22px; letter-spacing: -.045em; }
.material-name small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.comparison-row.active .material-name small { color: #8ca0a3; }
.comparison-row > strong { font-size: 15px; }
.reduction-bar { display: grid; grid-template-columns: 1fr 38px; align-items: center; gap: 10px; }
.reduction-bar i { height: 5px; border-radius: 5px; background: #e3e6e0; overflow: hidden; }
.reduction-bar i::after { content: ""; display: block; width: var(--reduction); height: 100%; background: #7c9f13; }
.comparison-row.active .reduction-bar i { background: #273a42; }.comparison-row.active .reduction-bar i::after { background: var(--acid); }
.reduction-bar b { font-size: 10px; }
.active-tag { justify-self: end; border: 1px solid #cfd5cd; border-radius: 20px; padding: 6px 8px; color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; }
.comparison-row.active .active-tag { border-color: var(--acid); color: var(--acid); }

.material-visualizer { margin-bottom: 72px; padding: 34px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 28px 80px rgba(7,29,37,.16); overflow: hidden; }
.material-visualizer-head { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.material-visualizer-head > div:first-child { display: flex; align-items: center; gap: 15px; }
.material-visualizer .section-number { border-color: #3a4e55; color: #82969a; }
.material-visualizer h2 { margin: 4px 0 0; font-size: 31px; letter-spacing: -.055em; }
.material-visualizer h2 + p { margin: 5px 0 0; color: #819497; font-size: 9px; }
.comparison-controls { display: flex; align-items: center; gap: 12px; }
.overlay-toggle { display: flex; align-items: center; gap: 8px; color: #8ea0a2; font-size: 8px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.overlay-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.overlay-toggle i { width: 30px; height: 17px; padding: 2px; border: 1px solid #3b5057; border-radius: 20px; background: #13262d; transition: .2s ease; }
.overlay-toggle i::after { content: ""; display: block; width: 11px; height: 11px; border-radius: 50%; background: #6c8184; transition: .2s ease; }
.overlay-toggle input:checked + i { border-color: #93b422; background: #27370e; }
.overlay-toggle input:checked + i::after { background: var(--acid); transform: translateX(13px); }
.overlay-toggle input:focus-visible + i { outline: 2px solid var(--acid); outline-offset: 2px; }
.eye-switch.light { border: 1px solid #30454c; background: #102129; }
.eye-switch.light button { padding: 7px 11px; }
.comparison-stage { height: 430px; margin-top: 27px; position: relative; overflow: hidden; border-top: 1px solid #314249; border-bottom: 1px solid #314249; background: radial-gradient(circle at 25% 50%, rgba(105,218,215,.12), transparent 27%), radial-gradient(circle at 75% 50%, rgba(200,245,61,.1), transparent 27%); touch-action: none; }
.comparison-stage::after { content: ""; position: absolute; left: 50%; top: 58px; bottom: 28px; border-left: 1px dashed rgba(127,146,149,.25); pointer-events: none; }
#comparison-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.index-group-label { position: absolute; z-index: 2; top: 16px; width: 42%; text-align: center; pointer-events: none; }
.index-group-label.group-a { left: 4%; }.index-group-label.group-b { right: 4%; }
.index-group-label span, .index-group-label strong { display: block; }
.index-group-label span { color: #73888b; font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.index-group-label strong { margin-top: 3px; color: var(--acid); font-size: 18px; letter-spacing: -.03em; }
.comparison-drag { position: absolute; right: 8px; bottom: 8px; color: #63787b; font-size: 8px; }
.comparison-drag span { color: var(--acid); margin-right: 6px; }
.comparison-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 17px; }
.comparison-metrics.two { grid-template-columns: 1fr 1fr; }
.comparison-metric { min-width: 0; padding: 13px 14px; border: 1px solid #2d4249; border-radius: 8px; background: #102129; }
.comparison-metric header { display: flex; justify-content: space-between; align-items: center; }
.comparison-metric header span { color: #7b9093; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.comparison-metric header b { color: var(--acid); font: 750 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.comparison-metric > strong { display: block; margin: 10px 0 4px; font-size: 18px; letter-spacing: -.035em; }
.comparison-metric > small { display: block; color: #7e9295; font-size: 7px; line-height: 1.55; }
.comparison-metric footer { min-height: 0; display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #263940; color: #a4b3b4; font-size: 8px; }

.method-note { margin-bottom: 25px; padding: 25px 29px; display: grid; grid-template-columns: 280px 1fr auto; gap: 35px; align-items: center; border: 1px solid #c5ccc6; border-radius: 9px; background: #e8ebe5; }
.method-note > div { display: flex; align-items: center; gap: 12px; }
.method-note > div > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--acid); font: italic 15px Georgia, serif; }
.method-note h2 { margin: 0; font-size: 14px; }
.method-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.method-note a { color: var(--ink); font-size: 9px; font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--ink); padding: 5px 0; white-space: nowrap; }
.method-note a span { color: #789714; }
footer { min-height: 110px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; color: var(--muted); font-size: 9px; }
footer .brand { font-size: 15px; } footer p { text-align: center; } footer > span { font: 650 8px ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 1080px) {
  .calculator { grid-template-columns: 1fr; }
  .result-column { border-left: 0; border-top: 1px solid #bcc4bf; }
  .input-column { display: grid; grid-template-columns: 1fr 1fr; }
  .input-section:last-child { grid-column: 1 / -1; }
  .input-section:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr 300px; }
  .method-note { grid-template-columns: 240px 1fr; }.method-note a { grid-column: 2; justify-self: start; }
}

@media (max-width: 680px) {
  .page-width { width: min(100% - 24px, 1460px); }
  .topbar { height: 60px; padding: 0 12px; }.live-badge, #reset { display: none; }.portal-back { max-width: 38px; overflow: hidden; white-space: nowrap; padding-right: 7px; margin-right: 0; }
  .hero { min-height: 270px; padding: 43px 0 35px; grid-template-columns: 1fr; gap: 28px; }.hero h1 { font-size: 51px; }.hero > p { max-width: 360px; }
  .calculator { width: 100%; border-left: 0; border-right: 0; }
  .input-column { display: block; }.input-section { padding: 25px 18px; border-right: 0 !important; }
  .field-grid.three { grid-template-columns: 1fr 1fr; }.field-grid.three .field:last-child { grid-column: 1/-1; }
  .cut-status { padding: 21px 18px; grid-template-columns: 40px 1fr; }.status-icon { width: 40px; height: 40px; }.status-margin { grid-column: 2; border: 0; padding: 0; text-align: left; display: flex; gap: 8px; align-items: baseline; }.status-margin strong { font-size: 18px; }
  .diameter-card, .visual-card { padding: 25px 16px; }.formula-chip { display: none; }.eyes-results { grid-template-columns: 1fr; }.eyes-results article + article { border-left: 0; border-top: 1px solid #314249; }
  .visual-toolbar { margin-left: 0; align-items: stretch; flex-direction: column; }.compare-selectors { justify-content: space-between; }.compare-selectors label { flex: 1; justify-content: space-between; }
  .lens-stage { height: 340px; }.visual-footer { grid-template-columns: repeat(3, 1fr); }.visual-footer p { display: none; }
  .comparison { padding: 52px 0; }.comparison-heading { align-items: flex-start; }.comparison-heading h2 { font-size: 24px; }.pair-weight { min-width: 85px; }
  .comparison-labels { display: none; }.comparison-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 15px 17px; }.comparison-row > :nth-child(3) { grid-column: 1/-1; }.active-tag { grid-column: 2; grid-row: 1; }
  .method-note { grid-template-columns: 1fr; gap: 14px; padding: 22px; }.method-note a { grid-column: 1; }
  .material-visualizer { width: 100%; margin-bottom: 45px; padding: 25px 14px; border-radius: 0; }.material-visualizer-head { align-items: stretch; flex-direction: column; }.comparison-controls { align-items: stretch; flex-direction: column; }.comparison-controls .eye-switch { align-self: flex-start; }.comparison-stage { height: 510px; }.comparison-metrics { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr auto; } footer p { display: none; }
}

@media print {
  .topbar, .hero, .input-column, .drag-hint, .method-note a { display: none !important; }
  body { background: white; }.calculator { width: 100%; display: block; border: 0; box-shadow: none; }.result-column { border: 0; }.comparison { padding: 28px 0; }.page-width { width: 100%; }.lens-stage { height: 320px; }
}
