
@media screen {
  #f.entry-four{display:flex;flex-direction:column;gap:16px}
  #f>.case-header{position:static;inset:auto;box-shadow:none;padding:4px 0;margin:0;width:100%}
  #f.no-eye:not(.both-eyes)>.case-header{position:sticky;top:0;z-index:60;background:var(--bg);padding:10px 12px;box-shadow:0 6px 14px #0002}
  #f.both-eyes>.case-header{position:static!important;box-shadow:none!important}
  .case-eyes{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:24px}
  .case-eyes #both-eyes{min-width:150px;width:auto;white-space:nowrap;text-align:center;display:block;padding:10px 16px;border-radius:24px;animation:none}
  #both-eyes[aria-checked=true]{border-color:var(--accent);background:var(--surface)}
  .shared-patient{width:100%;min-width:0}
  .shared-patient h2{font-size:16px;margin:12px 0}
  .shared-patient .eye-pill{display:none}
  .shared-patient>.fields{display:flex!important;gap:24px;flex-wrap:wrap;align-items:start}
  .shared-patient>.fields>.field{flex:1 1 280px}
  .shared-patient .pt-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;width:100%}
  .shared-patient .pt-strip input{width:100%;height:40px!important;min-width:0}
  .shared-patient .pt-strip .pt-note{grid-column:1/-1}
  #eye-workspace{width:100%;min-width:0}
  #eye-live{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px}
  #eye-live>.card{min-width:0;margin:0}
  #eye-live>.other-situations{grid-column:1/-1;margin:0}
  .other-situations>.patient-context{padding-top:14px}
  #f>.eye-actions{position:static;inset:auto;display:grid;grid-template-columns:1fr auto 1fr;gap:16px;width:100%;background:transparent;border:0;padding:16px 0}
  .eye-actions .calculate-anchor,.eye-actions .stale-note{display:none!important}
  .eye-actions #calculate-OD{grid-column:1;grid-row:1;justify-self:start}
  .eye-actions #clear{display:block!important;grid-column:2;grid-row:1;border:1px solid var(--line);background:var(--surface);padding:10px 20px;height:auto;white-space:nowrap}
  .eye-actions #calculate-OS{grid-column:3;grid-row:1;justify-self:end}
  .eye-actions #view-results{grid-row:2;grid-column:1/-1;justify-self:center}
  .eye-actions #calculate-both{grid-column:1;grid-row:1;justify-self:start}
  .eye-actions button{min-height:44px}
  .intereye-review{font-size:13px;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:8px}
  .intereye-review summary{cursor:pointer;line-height:1.4}
  .intereye-review.has-difference summary,.intereye-values .difference{color:var(--ink);font-weight:700}
  .intereye-values{overflow:auto}
  .intereye-values table{width:100%;margin-top:12px;border-collapse:collapse;text-align:left}
  .intereye-values th,.intereye-values td{padding:7px;border-bottom:1px solid var(--line)}
  #both-calculation-status:empty{display:none}
  #both-calculation-status{margin:0;font-size:14px}
  #intereye-settings summary{font-weight:600;cursor:pointer}
  .threshold-row{display:grid;grid-template-columns:minmax(0,1fr) 128px;align-items:center;gap:16px;margin:12px 0}
  .threshold-row .threshold-name{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:10px;min-width:0;line-height:1.4}
  .threshold-row .threshold-name input{width:18px;height:18px;margin:0;opacity:1}
  .threshold-row .threshold-value{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:8px;min-width:0}
  .threshold-row input[type=number]{width:100%;min-width:0;padding:0 10px}
  #intereye-settings>.help{margin:12px 0 16px}
  .filename-examples{flex-basis:100%;grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-width:0;margin:8px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--line)}
  .filename-examples legend{font-size:13px;font-weight:600;padding:0 8px 0 0}
  .filename-caption{grid-column:1/-1;margin:0;font-size:12px;line-height:1.4;color:var(--ink-2)}
  .filename-choice{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px 8px;align-content:start;min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.4;cursor:pointer}
  .filename-choice.selected{border-color:var(--accent)}
  .filename-choice input{width:16px;height:16px;margin:1px 0 0;accent-color:var(--accent)}
  .filename-choice code{grid-column:2;min-width:0;font:11px/1.5 var(--mono,monospace);overflow-wrap:anywhere;color:var(--ink-2)}
  .filename-choice input:disabled~span,.filename-choice input:disabled~code{opacity:.6}
  .res-actions .eye-export{min-height:44px;height:auto;padding:10px 16px;font-weight:700;background:var(--eye-od);border-color:var(--eye-od);color:var(--eye-od-ink)}
  .res-actions .eye-export[data-eye=OS]{background:var(--eye-os);border-color:var(--eye-os);color:var(--eye-ink)}
  .both-exports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;width:100%;max-width:720px;box-sizing:border-box;padding:16px;margin-top:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
  .both-exports button{width:100%;min-width:0;min-height:64px;height:auto;padding:10px 12px;font-size:14px;line-height:1.35;white-space:normal;background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
  .both-exports .export-default{display:table;margin:4px auto 0;padding:1px 6px;border:1px solid currentColor;border-radius:999px;font-size:10px;line-height:1.3;font-weight:600}
  .both-exports button:disabled{background:var(--surface);border-color:var(--line);color:var(--ink-2);opacity:.6}
  #both-export-status:empty{display:none}
  #both-export-status{grid-column:1/-1}
  .both-exports>span{grid-column:1/-1;font-size:13px;line-height:1.5;color:var(--ink-2)}
  .result-patient-actions{grid-column:1/-1;width:100%;max-width:720px;margin:20px 0;text-align:center}
  .result-patient-actions button{min-height:44px;padding:10px 20px;font-size:14px}
  #both-print-pages{display:none}
  #app.both-eyes{display:block;max-width:1680px}
  #app.both-eyes #eye-workspace,#both-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
  #app.both-eyes .eye-column{display:flex;flex-direction:column;align-items:stretch;gap:16px;min-width:0}
  #app.both-eyes .eye-column>.card{width:100%;margin:0}
  #app.both-eyes .eye-column h2 .eye-pill{float:right}
  #app.both-eyes .eye-column[data-eye=OD]{--eye:var(--eye-od)}
  #app.both-eyes .eye-column[data-eye=OS]{--eye:var(--eye-os)}
  #app.both-eyes .eye-column .card{border-top-color:var(--eye)}
  #app.both-eyes .eye-column>.other-situations{width:100%;margin:0}
  #app.both-eyes #both-results .results{display:block;position:static;min-width:0;max-width:100%;margin:16px 0}
  #both-results .res-nav,#both-results .res-actions,#both-results .result-bar{display:none!important}
  #both-results .toric-table{min-width:0;width:100%}
  #both-results .toric-fig svg{max-width:360px;width:100%}
  #both-results .res-grid{display:block}
  #both-results .case-stale{font-size:13px}
  #app.both-eyes .eye-actions{grid-template-columns:1fr auto 1fr}
  #app.both-eyes .both-exports{margin-top:16px}
  .intereye-print-note{display:none}
  [hidden]{display:none!important}
}
@media screen and (max-width:1099px){
  #app.show-results #f.entry-four,#app.show-results #mobile-calculate{display:none}
  .case-eyes{grid-template-columns:1fr 1fr;gap:16px}
  #eye-live{grid-template-columns:1fr 1fr}
  #eye-live>.card-lens{grid-column:1/-1}
  .shared-patient .pt-strip{grid-template-columns:1fr 1fr}
}
@media screen and (max-width:600px){
  .filename-examples{grid-template-columns:minmax(0,1fr)}
  .res-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  .res-actions .eye-export{width:100%;min-width:0;white-space:normal;line-height:1.4}
  .res-actions .export-scope{width:100%;min-width:0}
  .res-actions .export-scope button{flex:1;min-width:0}
  .res-actions .filename-option{min-width:0;line-height:1.4}
  #eye-live{display:flex;flex-direction:column;gap:16px}
  #eye-live>*{width:100%}
  .shared-patient>.fields{gap:8px}
  #f>.eye-actions{gap:6px;grid-template-columns:1fr auto 1fr}
  .eye-actions #clear{font-size:12px;padding:8px}
  .eye-actions #calculate-OD,.eye-actions #calculate-OS{font-size:13px;padding:8px;width:100%}
  .threshold-row{grid-template-columns:minmax(0,1fr) 112px;gap:12px}
}
@media print{
  #eye-mirror,#other-eye-result,.both-exports,.result-patient-actions,#both-calculation-status{display:none!important}
  .intereye-print-note{display:block;font-size:9px;margin:6px 0}
  body.printing-both>*{display:none!important}
  body.printing-both>#both-print-pages{display:block!important}
}
@media screen {
  #eye-live>.eye-validation {grid-column:1/-1;margin:0;font-size:13px;color:var(--ink);border-left:3px solid var(--accent);padding-left:10px}
  .both-eyes .eye-column[data-eye=OD] {--eye-active:var(--eye-od)}
  .both-eyes .eye-column[data-eye=OS] {--eye-active:var(--eye-os)}
}
@media screen {
  .both-eyes .eye-column[data-eye=OD] {--required-ring:var(--eye-od)}
  .both-eyes .eye-column[data-eye=OS] {--required-ring:var(--eye-os)}
  #calculate-OD {background:var(--eye-od);border-color:var(--eye-od);color:var(--eye-od-ink)}
  #calculate-OS {background:var(--eye-os);border-color:var(--eye-os);color:var(--eye-ink)}
}
@media screen {
 .entry-four .card-cornea [data-twin-id=opt-cornea],.entry-four .card-cornea [data-twin-id=cornea-help]{grid-column:1/-1}
 .entry-four [data-twin-id=tk-opt] small{display:block;font-size:11px;line-height:1.3;font-weight:400}
 .entry-four [data-twin-id=tk-opt] span{flex-direction:column;padding:4px 8px}
 .entry-four [data-twin-id=opt-postref]{border:0;padding:0;margin:10px 0}
 .entry-four [data-twin-id=opt-postref]>summary{display:none}
 .entry-four [data-twin-id=opt-postref]>.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .shared-patient .pt-date{display:flex;flex-direction:column;align-items:stretch;gap:4px;font-size:12px}
 .shared-patient .pt-date input{height:32px!important;width:100%;min-width:0}
}
@media screen {
 .eye-actions #previous-patient{grid-column:1/-1;grid-row:3;justify-self:center;font-size:13px;min-height:36px;padding:6px 12px}
}
@media screen and (max-width:1099px){
 #f>.eye-actions{grid-template-columns:minmax(0,1fr) auto;gap:10px}
 .eye-actions #calculate-OD,.eye-actions #calculate-OS{grid-column:1;grid-row:1;width:100%;justify-self:stretch;font-size:14px;padding:10px 12px}
 .eye-actions #clear{grid-column:2;grid-row:1;font-size:12px;padding:8px 10px;min-height:40px;align-self:center}
}
.new-patient-confirm{max-width:420px}
.new-patient-confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.new-patient-confirm-actions button{min-width:80px;min-height:44px}
@media screen {
 .shared-patient>h2{display:none}
 .shared-patient .pt-strip{align-items:end}
 .shared-patient .pt-date input{height:40px!important}
 .biometry-stack{display:flex;flex-direction:column;gap:16px;min-width:0}
 .biometry-stack>.card{width:100%;min-width:0;margin:0}
 .entry-four .other-situations{padding:18px;border-top:3px solid var(--accent);margin:0}
 .entry-four .other-situations>.patient-context{margin:0;padding:0}
 .other-situations>.uncommon-situations{margin:14px 0 0}
 .uncommon-situations>.opt,.uncommon-situations>.situation-status{margin:14px 0 0}
 .uncommon-situations>.situation-status{padding-top:14px;border-top:1px solid var(--line)}
 .situation-status>.pseudophakic-fields{margin-top:12px}
 .uncommon-situations summary{cursor:pointer}
 .entry-four .card-lens .lens-target-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:6px 12px;align-items:start;min-width:0}
 .lens-target-row>.primary-lens,.lens-target-row .primary-lens>.favourite-picker{display:contents}
 .lens-target-row .primary-lens>.lbl{grid-column:1;grid-row:1;margin:0}
 .lens-target-row .primary-lens>select,.lens-target-row .favourite-picker>select{grid-column:1;grid-row:2;width:100%;min-width:0}
 .lens-target-row>.target-field{grid-column:2;grid-row:1/span 2;min-width:0;display:grid;grid-template-rows:subgrid;gap:6px}
 .lens-target-row .target-field>.lbl{margin:0;white-space:nowrap}
 .lens-target-row .target-field input{padding-right:24px}
 .lens-target-row .favourite-all{grid-column:1/-1;grid-row:3;min-width:0;margin:0}
 .lens-target-row .favourite-all select{width:100%;min-width:0}
 .lens-target-row .lens-full{grid-column:1/-1;grid-row:4}
}
@media screen and (min-width:1100px){
 .entry-four .shared-patient{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;align-items:center}
 .shared-patient .pt-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .entry-four .shared-patient>.fields{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px;align-items:center}
 .entry-four .shared-patient>.fields>.field{display:grid;grid-template-columns:128px minmax(0,1fr);align-items:center;gap:8px}
 .shared-patient .shared-sex>.lbl,.shared-patient .shared-age>.lbl{margin:0;font-size:12px}
 .shared-patient .shared-age>.lbl em{display:block;margin:0}
 .shared-patient .shared-age input{height:40px}
 .shared-patient>.fields>.field{min-width:0}
 .shared-patient .segbtn button{padding:8px 6px;font-size:13px}
 .shared-patient .shared-age .in input{padding-left:8px;padding-right:42px}
 .shared-patient .shared-age .in i{font-size:11px;right:7px}
 .shared-patient .shared-age .pair{gap:5px}
}
@media screen and (max-width:1099px){
 .shared-patient>.fields{margin-top:14px}
}
@media screen and (min-width:1100px){
 .case-eyes{align-items:stretch}
 .case-eyes #both-eyes{min-height:80px;height:100%;display:grid;grid-template-columns:auto auto;align-content:center;justify-content:center;gap:7px 10px;border-radius:14px;padding:10px 18px}
 .both-toggle-label{grid-column:1/-1;font-size:14px;font-weight:600}
 .both-toggle-track{display:block;position:relative;width:46px;height:26px;border:1px solid var(--line);border-radius:20px;background:var(--surface);transition:background .25s ease,border-color .25s ease}
 .both-toggle-thumb{position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:var(--ink-2);transition:transform .25s ease,background .25s ease}
 .both-toggle-state{align-self:center;min-width:22px;text-align:left;font-size:12px}
 #both-eyes[aria-checked=true] .both-toggle-track{background:var(--accent);border-color:var(--accent)}
 #both-eyes[aria-checked=true] .both-toggle-thumb{transform:translateX(20px);background:var(--surface)}
}
@media (prefers-reduced-motion:reduce){.both-toggle-track,.both-toggle-thumb{transition:none}}
@media screen and (min-width:1100px){.entry-four .shared-patient>.fields>.field{grid-column:auto}}
@media screen {
 .lbl .recommended-hint{display:block;margin-left:0;font-size:11.5px;font-weight:400;line-height:1.5}
 .lbl .optional-info{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:22px;height:22px;min-height:22px;padding:0;border-radius:50%;border:1px solid var(--line-strong);color:var(--accent);font:700 13px Georgia,serif;background:var(--surface)}
 .optional-field-help{position:fixed;z-index:150;width:280px;max-width:calc(100vw - 16px);padding:12px 14px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--ink);box-shadow:0 4px 16px #0004;font-size:13px;line-height:1.5}
 .age-enter-one{font-size:10px;font-weight:400;color:var(--ink-2);margin-left:5px}
}
@media screen and (min-width:1100px){
 .entry-four .shared-patient>.fields>.field{grid-template-columns:175px minmax(0,1fr)}
 .shared-patient .age-enter-one{display:none}
 .shared-patient .shared-age>.lbl em{margin:0}
}
@media print{.optional-info,.optional-field-help{display:none!important}}
@media screen {
 .other-situations .situation-row{margin:0;padding:12px 0;border:0;border-top:1px solid var(--line)}
 .other-situations .situation-row:first-of-type{border-top:0;padding-top:0}
 .other-situations .situation-row>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:40px;font-size:14px;font-weight:600}
 .other-situations .situation-row>summary::-webkit-details-marker{display:none}
 .other-situations .situation-row>summary::before{content:'▸';display:inline-block;flex:0 0 12px;width:12px;font:inherit;color:var(--ink)}
 .other-situations .situation-row[open]>summary::before{content:'▾'}
 .other-situations .situation-row>summary::after{content:none}
 .other-situations .situation-current{margin-left:auto;font-size:12px;font-weight:400;color:var(--ink-2);text-align:right}
 .other-situations .hint{font-size:11px;font-weight:400;color:var(--ink-2)}
 .other-situations .situation-row>.field,.other-situations .situation-row>.pseudophakic-fields{margin-top:12px}
 .other-situations .situation-row .help{margin:10px 0;padding:0}
 .experimental-switch{display:flex;align-items:center;gap:10px;min-height:44px;margin:8px 0;font-size:14px}
 .experimental-switch input{width:20px;height:20px;margin:0;flex:0 0 20px}
 .other-situations .fixation-controls>.fields{grid-template-columns:1fr;padding:0;gap:12px}
 .other-situations .fixation-controls .segbtn{flex-wrap:wrap}
 .other-situations .fixation-controls .segbtn button{flex:1 1 100px;min-height:40px}
 .calculate-pill{display:inline-block;border-radius:999px;padding:1px 9px;margin:0 3px;font-size:.82em;--pulse:var(--eye-od);background:var(--pulse);color:var(--eye-od-ink);animation:eye-pulse2 3.2s ease-in-out infinite}
 .calculate-pill.eye-pill-os{--pulse:var(--eye-os);color:var(--eye-ink)}
 .eye-actions button:disabled .calculate-pill{animation:none}
 #calculate-both{max-width:none}
 .experimental-fixation{border:1px solid var(--line-strong)}
}
@media (prefers-reduced-motion:reduce){.calculate-pill{animation:none}}
.other-situations .inline-history>summary::before{content:none!important}
#unstable-lens-options,.other-situations [id$="unstable-lens-options"]{margin-top:12px}
[id$="acd-options"] .field{grid-template-columns:1fr;min-width:0}
[id$="acd-options"] .segbtn{display:flex;flex-direction:column;width:100%}
[id$="acd-options"] .segbtn button{flex:none;text-align:left;white-space:normal;min-height:44px;border-radius:0}
[id$="acd-options"] .help{font-size:.85em}
[id$="acd-substitution"] .unit{max-width:180px}
[id$="acd-substitution"] .unit{display:flex;align-items:center;gap:8px;max-width:220px}
[id$="acd-substitution"] .unit input{min-width:0;width:100%}
[id$="opt-lens-status"] > .field > .lbl{display:none}
@media screen {
 .shared-sex.strongly-recommended{border-radius:9px;outline:2px solid color-mix(in srgb,var(--accent) 18%,transparent);outline-offset:5px;box-shadow:0 0 12px color-mix(in srgb,var(--accent) 8%,transparent)}
 .eye-column[data-eye=OD]{--lt-ring:var(--eye-od)}
 .eye-column[data-eye=OS]{--lt-ring:var(--eye-os)}
 .eye-column .strongly-recommended>.in>input:not(:disabled){box-shadow:0 0 0 2px color-mix(in srgb,var(--lt-ring,var(--eye-od)) 18%,transparent),0 0 8px color-mix(in srgb,var(--lt-ring,var(--eye-od)) 8%,transparent)}
}
.both-eye-summary{box-sizing:border-box;width:273mm;color:#000;background:#fff;font:11px/1.3 Arial,sans-serif;text-align:left;overflow-wrap:anywhere}
.both-eye-summary *{box-sizing:border-box}
.both-eye-summary h1{font-size:18px;margin:0 0 3px}
.both-eye-summary .summary-subtitle{font-size:12px;margin:0 0 10px}
.summary-patient{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px 14px;border-bottom:1px solid #333;padding-bottom:9px;margin-bottom:10px}
.summary-eyes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.summary-eye{min-width:0;border:1px solid #aaa;padding:9px}
.summary-eye h2{font:700 15px/1.3 Arial,sans-serif;border-bottom:2px solid #222;padding:0 0 5px;margin:0 0 7px}
.summary-eye h3{font:700 11px/1.3 Arial,sans-serif;margin:9px 0 3px}
.summary-eye p{margin:4px 0}
.summary-eye .summary-lens{font-weight:700;font-size:12px}
.summary-eye .summary-lens-role,.summary-eye .summary-date{font-size:9px;color:#333}
.summary-eye .summary-order{font-size:17px;font-weight:700;margin:6px 0}
.summary-eye .summary-flags{font-weight:700;border:1px solid #444;padding:4px}
.summary-cautions{font-size:9.5px;border-top:1px solid #bbb;margin-top:8px;padding-top:4px}
.summary-review{border:1px solid #555;padding:7px;margin:10px 0 6px;font-weight:700}
.summary-footer{font-size:9px;margin:4px 0}
@media screen{#both-summary-pages{position:fixed;left:-10000px;top:0}}
@media print{
 body.printing-summary{padding:0;margin:0}
 body.printing-summary>*{display:none!important}
 body.printing-summary>#both-summary-pages{display:block!important;break-inside:avoid;margin:0 auto}
}
.summary-eye .summary-lens-role{display:inline;margin-right:6px}
.summary-eye .summary-order{margin:3px 0;font-size:19px}
.summary-eye .summary-selection,.summary-eye .summary-toric,.summary-eye .summary-incision{font-size:11px;margin:3px 0}
.summary-diagram{margin:4px 0;text-align:center;--ink:#000;--ink-2:#333;--accent:#0369a1;--warn:#8a4b00;--tz-iris:#dbe6f2;--tz-pupil:#bfd2e8}
.summary-diagram svg{display:block;width:100mm;height:auto;max-height:76mm;margin:0 auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.summary-diagram figcaption{font-size:10px;margin:0 0 4px}
.summary-measurements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 9px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;padding:6px 0;margin:5px 0;font-size:10.5px;line-height:1.3}
.summary-measurements .summary-wide{grid-column:1/-1}
.summary-eye .summary-cautions{font-size:9.5px;margin-top:4px;padding-top:3px}
.summary-results{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center;margin:5px 0}
.summary-results .summary-diagram{min-width:0;margin:0}
.summary-results .summary-diagram svg{width:100%;max-width:65mm;max-height:50mm}
.summary-power,.summary-toric-steps{min-width:0}
.both-eye-summary .power-table,.both-eye-summary .toric-table{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;font:10px/1.25 Arial,sans-serif;margin:4px 0}
.both-eye-summary .power-table th,.both-eye-summary .power-table td,.both-eye-summary .toric-table th,.both-eye-summary .toric-table td{padding:3px;border:1px solid #aaa;font-size:10px;white-space:normal;overflow:visible;text-overflow:clip}
.both-eye-summary .power-table th,.both-eye-summary .toric-table th{font-size:9px;font-weight:600}
.both-eye-summary .power-table tr.surgeon td,.both-eye-summary .toric-table tr.surgeon td{padding-top:6px;padding-bottom:6px}
.both-eye-summary .ring-txt{font-size:7px}
.both-eye-summary .arrow{font-size:11px;margin-right:3px}
.both-eye-summary .tag,.both-eye-summary .rtype{font-size:8px}
.both-eye-summary .toric-wrap{overflow:visible}
.summary-eye .summary-toric-steps h3,.summary-eye .summary-power h3{margin:3px 0}
#workflow-preferences .field{margin-block:14px}#workflow-preferences .seg{width:max-content;min-width:130px}#pref-minus-limit{max-width:140px}
#mobile-calculate{display:none}
@media screen and (max-width:1099px){
 body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
 #mobile-calculate{display:block;position:fixed;z-index:45;left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:calc(100% - 28px);max-width:none;min-height:54px;border-radius:999px;border:2px solid var(--surface);box-shadow:0 6px 20px #0004;font-size:16px;background:var(--eye-od);color:var(--eye-od-ink)}
 #mobile-calculate[data-eye=OS]{background:var(--eye-os);color:var(--eye-ink)}
 #mobile-calculate:disabled .calculate-pill{animation:none}
 #f>.eye-actions #calculate-OD,#f>.eye-actions #calculate-OS,#app .result-bar{display:none!important}
 #f>.other-situations{width:100%;min-width:0}
 #f>.eye-actions{grid-template-columns:1fr;position:static}
 #f>.eye-actions #clear{grid-column:1;justify-self:center;min-height:44px;font-size:14px;padding:10px 20px}
 .other-situations>.other-situations-more{margin-top:10px;padding-bottom:0}
 .other-situations-more>.situation-row:last-child{padding-bottom:0}
 html{scroll-padding-bottom:90px}
}
@media print{#mobile-calculate{display:none!important}}
.both-eye-summary .power-table { table-layout: auto; }
.both-eye-summary .power-table td { white-space: nowrap; }
.both-eye-summary .power-table th { overflow-wrap: normal; word-break: normal; }
.both-eye-summary .summary-results { grid-template-columns: minmax(0,3fr) minmax(0,2fr); }
.both-eye-summary .toric-table { table-layout: auto; overflow-wrap: normal; word-break: normal; }
.both-eye-summary .power-table tr.chosen td { font-size: 11px !important; }
.both-eye-summary tr.sel:not(.chosen) td { font-size: 8.5px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.both-eye-summary tr.sel:not(.chosen) td.res { font-size: 9px !important; }
.both-eye-summary .short-only { display: none; }
.both-eye-summary .long-only { display: inline; }
.both-eye-summary .summary-patient { padding-bottom: 5px; margin-bottom: 6px; }
.both-eye-summary .summary-subtitle { margin-bottom: 5px; }
.both-eye-summary .summary-eye h2 { padding-bottom: 3px; margin-bottom: 4px; }
.both-eye-summary .summary-measurements { gap: 2px 9px; padding: 4px 0; }
@media screen and (max-width:1099px){
 body input:is([type="number"],[type="text"],[type="date"],[type="email"],[type="search"],:not([type])),body select,body textarea{font-size:16px!important;min-width:0;max-width:100%}
}
.mobile-photo-upload{display:none}
@media screen and (max-width:1099px){
 .mobile-photo-upload{display:flex;justify-content:center;flex-basis:100%;width:100%;margin-top:8px}
 .mobile-photo-upload button{height:40px;padding:0 14px;font-size:13px;color:var(--accent);border-color:var(--accent)}
}
