.gwCameraModal[hidden]{display:none!important}
.gwCameraModal{position:fixed;inset:0;z-index:10000;background:#fff;display:grid;place-items:center;font-family:Arial,Helvetica,sans-serif;touch-action:none;overscroll-behavior:none}
.gwCameraPanel{width:min(940px,100vw);height:min(100dvh,980px);background:#fff;color:#202124;display:flex;flex-direction:column;overflow:hidden;touch-action:none;overscroll-behavior:none}
.gwCameraTop{height:58px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 18px 0 20px;border-bottom:1px solid #e5e7eb}
.gwCameraBrand{font-size:16px;font-weight:600;letter-spacing:-.15px;color:#202124}\n.gwCameraTopActions{display:flex;align-items:center;gap:5px}\n.gwTopTextButton{height:34px;border:0;border-radius:17px;background:transparent;color:#202124;padding:0 11px;font-size:12px;font-weight:600;cursor:pointer}\n.gwTopTextButton:hover,.gwTopTextButton:active{background:#f1f3f4}
.gwFlipButton{width:42px;height:42px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:#202124;cursor:pointer;touch-action:manipulation}
.gwFlipButton:active{background:#f1f3f4}
.gwFlipButton svg{width:25px;height:25px}
.gwCameraBody{min-height:0;flex:1;display:flex;flex-direction:column;padding:10px 18px calc(14px + env(safe-area-inset-bottom));overflow:hidden}
.gwVisionStage{position:relative;width:100%;flex:1;min-height:280px;background:#000;border-radius:16px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.gwVisionStage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;will-change:transform;transform-origin:50% 50%}
.gwUploadedImage{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;will-change:transform;transform-origin:50% 50%}\n.gwUploadedImage[hidden]{display:none!important}
.gwVisionStage canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.gwCameraFlash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;z-index:4}
.gwCameraFlash.flash{animation:gwFlash .22s ease-out}
@keyframes gwFlash{0%{opacity:0}25%{opacity:.9}100%{opacity:0}}
.gwMeter{flex:0 0 auto;padding:11px 2px 0}
.gwMeterLabels{display:flex;justify-content:space-between;align-items:center;margin:0 1px 7px;font-size:11px;font-weight:600;letter-spacing:.02em;color:#5f6368}
.gwMeterTrack{position:relative;height:4px;border-radius:999px;background:linear-gradient(90deg,#202124 0%,#5f6368 100%);box-shadow:0 0 0 1px #dadce0}
.gwMeterBall{position:absolute;left:0%;top:50%;width:17px;height:17px;border-radius:50%;background:#ea4335;border:3px solid #fff;box-shadow:0 2px 9px rgba(0,0,0,.5);transform:translate(-50%,-50%);transition:left 1.05s cubic-bezier(.2,.8,.2,1);will-change:left}
.gwDollarValue{text-align:center;margin-top:8px;min-height:31px;font-size:30px;line-height:35px;font-weight:700;letter-spacing:-.035em;color:#202124;font-variant-numeric:tabular-nums}
.gwCameraStatus{height:14px;flex:0 0 14px;text-align:center;font-size:11px;line-height:18px;color:#80868b;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gwShutterDeck{height:102px;flex:0 0 102px;display:grid;grid-template-columns:1fr 82px 1fr;align-items:center;gap:24px;padding:8px 12px 12px;margin-top:3px}
.gwShutterLine{height:2px;background:#5f6368;border-radius:999px;opacity:.45}
.gwShutterButton{width:82px;height:82px;border-radius:50%;border:5px solid #fff;background:#fff;box-shadow:0 0 0 1px #c7c9cc;padding:7px;display:grid;place-items:center;cursor:pointer;touch-action:manipulation;transition:transform .08s ease,opacity .15s}
.gwShutterButton:active{transform:scale(.95)}
.gwShutterButton:disabled{opacity:.45}
.gwShutterCenter{width:58px;height:58px;border-radius:50%;background:#e53935;display:block;box-shadow:0 0 0 1px rgba(0,0,0,.18) inset}
.gwCameraSpinner{display:inline-block;width:10px;height:10px;border:2px solid #dadce0;border-top-color:#5f6368;border-radius:50%;animation:gwSpin .8s linear infinite;vertical-align:-1px;margin-right:5px}
@keyframes gwSpin{to{transform:rotate(360deg)}}
html,body{max-width:100%;overflow-x:hidden;overscroll-behavior:none}
@media(min-width:700px){.gwCameraPanel{height:min(94vh,940px);border-radius:22px;box-shadow:0 26px 80px rgba(0,0,0,.55)}}
@media(max-width:699px){.gwCameraPanel{width:100vw;height:100dvh}.gwCameraTop{height:50px}.gwCameraBody{padding:6px 10px calc(10px + env(safe-area-inset-bottom))}.gwVisionStage{flex:0 1 auto;height:min(58dvh,470px);min-height:210px;border-radius:12px}.gwMeter{padding-top:9px}.gwMeterLabels{margin-bottom:6px}.gwDollarValue{font-size:27px;line-height:31px;min-height:31px;margin-top:8px}.gwCameraStatus{height:12px;flex-basis:12px;line-height:12px}.gwShutterDeck{height:96px;flex-basis:96px;grid-template-columns:1fr 76px 1fr;gap:22px;padding:8px 12px 10px;margin-top:5px}.gwShutterButton{width:76px;height:76px}.gwShutterCenter{width:54px;height:54px}}
@media(max-width:699px){.gwTopTextButton{padding:0 8px;font-size:11px}.gwCameraTopActions{gap:2px}}
.gwShutterUploadSlot{height:82px;display:flex;align-items:center;justify-content:flex-end;min-width:0}
.gwShutterUploadButton{min-width:104px;height:38px;border:1px solid #dadce0;border-radius:19px;background:#fff;color:#202124;padding:0 14px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;box-shadow:0 1px 2px rgba(60,64,67,.08);touch-action:manipulation}
.gwShutterUploadButton:hover,.gwShutterUploadButton:active{background:#f1f3f4}
@media(max-width:699px){.gwShutterUploadSlot{height:76px}.gwShutterUploadButton{min-width:92px;height:36px;padding:0 10px;font-size:11px}}
.gwAdvancedPanel[hidden]{display:none!important}
.gwAdvancedPanel{flex:0 0 auto;padding:12px;border:1px solid #dadce0;border-radius:12px;margin:9px 0;background:#f8f9fa;max-height:34dvh;overflow:auto;touch-action:pan-y}
.gwAdvancedHeading{font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:8px}
.gwAdvancedHeading span{font-size:11px;font-weight:400;color:#5f6368}
.gwAdvancedFields{display:grid;grid-template-columns:1fr 1fr 1.5fr auto;align-items:end;gap:7px;margin-top:9px}
.gwAdvancedFields label{font-size:11px;color:#555}
.gwAdvancedFields input{box-sizing:border-box;width:100%;display:block;margin-top:4px;height:34px;border:1px solid #bdc1c6;border-radius:7px;background:white;color:#202124;padding:5px}
.gwAdvancedFields button{height:34px;border:0;border-radius:8px;background:#202124;color:white;font-size:11px;padding:0 10px;cursor:pointer}
.gwBodyResult{font-size:12px;line-height:1.45;margin-top:8px}
@media(max-width:500px){.gwAdvancedFields{grid-template-columns:1fr 1fr 1.5fr}.gwAdvancedFields button{grid-column:1/-1}.gwAdvancedPanel{max-height:38dvh}}
.gwCameraTop{position:relative}
.gwCameraBrand{flex:0 0 auto}
.gwCameraModes{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:4px;align-items:center;justify-content:center;z-index:1}
.gwModeButton{font-size:12px;font-weight:700;letter-spacing:.025em;padding:8px 13px;min-height:35px;border:1px solid #dadce0;border-radius:17px;background:#fff;color:#333;cursor:pointer;white-space:nowrap}
.gwModeButton.is-active{background:#202124;color:#fff;border-color:#202124}
.gwCameraTopActions{margin-left:auto}
.gwMeter[hidden]{display:none!important}
@media(max-width:600px){.gwCameraBrand{font-size:12px}.gwModeButton{padding:7px 9px;font-size:10px;min-height:31px}.gwCameraTop{padding-left:9px;padding-right:9px}}
.gwFeetTool{margin-top:12px;padding-top:12px;border-top:1px solid #dadce0}
.gwFeetTitle{display:flex;justify-content:space-between;gap:8px;font-size:13px;font-weight:700}
.gwFeetTitle span{font-weight:400;font-size:10px;color:#777}
.gwFootCharts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:8px}
.gwFootType{text-align:center;background:white;border:1px solid #e1e1e1;border-radius:8px;padding:3px 1px}
.gwFootType svg{display:block;width:100%;height:66px}
.gwFootType strong{font-size:9px;display:block}
.gwFootNote{font-size:10px;color:#666;margin:8px 0}
.gwFeetActions{display:flex;gap:8px;flex-wrap:wrap}
.gwFeetActions button,.gwFeetUpload{cursor:pointer;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#202124;font-size:11px;font-weight:600;padding:10px}
.gwFeetResult{font-size:12px;margin-top:9px;line-height:1.45}
.gwAdvancedTabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.gwAdvancedTab{border:1px solid #dadce0;border-radius:9px;background:#fff;color:#202124;padding:11px 7px;min-height:40px;font-size:12px;font-weight:700;cursor:pointer}
.gwAdvancedTab.is-active{background:#202124;border-color:#202124;color:white}
#gwBodyTool[hidden],.gwFeetTool[hidden]{display:none!important}
.gwFeetTool{margin-top:0;border-top:0;padding-top:0}
@media(max-width:480px){.gwAdvancedTab{font-size:11px;padding:8px 4px}}
.gwAdvancedPanel .gwFeetTool{display:block!important;margin-top:14px;padding-top:14px;border-top:1px solid #dadce0}
/* Advanced raters: two visible, expandable lines, no extra navigation buttons. */
.gwAdvancedPanel{display:flex;flex-direction:column;gap:8px;max-height:46dvh;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:9px}
.gwRaterRow{flex:0 0 auto;border:1px solid #dadce0;border-radius:9px;background:white;overflow:visible}
.gwRaterHeading{list-style:none;display:block;cursor:pointer;user-select:none;font-size:13px;font-weight:700;color:#202124;padding:12px 14px;line-height:20px;touch-action:manipulation}
.gwRaterHeading::-webkit-details-marker{display:none}
.gwRaterHeading:focus-visible{outline:2px solid #1a73e8;outline-offset:-2px}
.gwRaterContents{padding:0 13px 12px;min-width:0}
.gwRaterRow .gwFeetTool{margin:0!important;padding:0!important;border:0!important;display:block}
@media(max-width:699px){
  .gwAdvancedPanel{max-height:46dvh}
}
/* BODY RATER: calculator and answer share one uninterrupted row. */
.gwRaterRow .gwAdvancedFields{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,.72fr) minmax(0,1.12fr) minmax(0,1.1fr) minmax(0,1.12fr);align-items:end;gap:5px;margin-top:7px}
.gwRaterRow .gwAdvancedFields label{min-width:0;font-size:10px;line-height:13px;overflow-wrap:normal}
.gwRaterRow .gwAdvancedFields input{min-width:0;width:100%;margin-top:5px;height:34px;font-size:12px;padding:3px 5px}
.gwRaterRow .gwAdvancedFields button{grid-column:auto;min-width:0;width:100%;height:34px;padding:0 3px;font-size:10px;white-space:nowrap}
.gwBodyAnswer{min-width:0;display:flex;flex-direction:column;justify-content:flex-end}
.gwBodyAnswerTitle{display:block;font-size:10px;line-height:13px;color:#555;margin-bottom:5px;white-space:normal}
.gwRaterRow .gwBodyResult{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:34px;width:100%;min-width:0;margin:0;padding:2px 3px;border:1px solid #bdc1c6;border-radius:7px;background:#f8f9fa;color:#202124;font-size:12px;font-weight:700;white-space:nowrap;line-height:1.1}
@media(max-width:480px){.gwRaterRow .gwAdvancedFields{gap:4px}.gwRaterRow .gwAdvancedFields button{font-size:9px}}

/* Shared advanced-rater box format: action button is always last. */
.gwRaterRow .gwAdvancedFields{grid-template-columns:minmax(0,.78fr) minmax(0,.72fr) minmax(0,1.12fr) minmax(0,1.12fr) minmax(0,1.1fr)}
.gwRaterRow .gwFeetFields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.12fr);gap:5px;align-items:end}
.gwFeetFields .gwBodyAnswer,.gwFeetFields .gwBodyResult{min-width:0}
.gwFeetFields .gwBodyResult{font-size:clamp(9px,2.1vw,12px);white-space:normal;overflow-wrap:anywhere;text-align:center}
.gwRaterRow .gwFeetFields button{width:100%;height:34px;grid-column:auto;font-size:10px}
@media(max-width:480px){.gwFeetFields .gwBodyResult{font-size:9px}.gwRaterRow .gwFeetFields{gap:4px}}

/* Consistent boxed single-row layout for every advanced camera section. */
.gwRaterRow .gwAgeFields{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) minmax(0,1.1fr);gap:5px;align-items:end}
.gwRaterRow .gwAgeFields button{grid-column:auto;width:100%;height:34px}
.gwAgeFields .gwBodyAnswer,.gwAgeFields .gwBodyResult{min-width:0}
@media(max-width:480px){.gwRaterRow .gwAgeFields{gap:4px}}


/* Existing GoogleWoman W mark links to the homepage, immediately after camera flip. */
.gwCameraTopActions{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:0 0 auto}
.gwCameraHomeLink{box-sizing:border-box;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;text-decoration:none;touch-action:manipulation}
.gwCameraHomeLink img{display:block;width:36px;height:36px;object-fit:contain}
.gwCameraHomeLink:hover,.gwCameraHomeLink:active{background:#f1f3f4}
.gwCameraHomeLink:focus-visible{outline:2px solid #1a73e8;outline-offset:1px}
@media(max-width:699px){.gwCameraTopActions{gap:1px}.gwCameraHomeLink{flex-basis:36px;width:36px;height:36px}.gwCameraHomeLink img{width:33px;height:33px}}
/* Small phones: reserve separate header slots so the reverse button stays clear. */
@media(max-width:399px){
  .gwCameraTop{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px;padding-left:9px;padding-right:7px}
  .gwCameraBrand{min-width:0;font-size:10px;letter-spacing:-.2px;white-space:nowrap}
  .gwCameraModes{position:static;left:auto;transform:none;gap:2px;justify-self:center}
  .gwModeButton{font-size:9px;padding:5px 5px;min-height:30px}
  .gwCameraTopActions{gap:0;justify-self:end}
  .gwFlipButton{width:34px;height:34px}
  .gwFlipButton svg{width:22px;height:22px}
  .gwCameraHomeLink{flex:0 0 34px;width:34px;height:34px}
  .gwCameraHomeLink img{width:32px;height:32px}
}


/* Matching Upload Image and Save Image buttons, on either side of the shutter. */
.gwShutterDeck{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr)}
.gwShutterSaveSlot{display:flex;align-items:center;justify-content:flex-start;min-width:0;max-width:100%;height:82px}
.gwShutterUploadButton{box-sizing:border-box;width:104px;min-width:0;max-width:100%;padding:0 7px}
.gwShutterSaveSlot .gwShutterUploadButton:disabled{opacity:.55;cursor:wait}
@media(max-width:699px){
  .gwShutterDeck{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)}
  .gwShutterSaveSlot{height:76px}
  .gwShutterUploadButton{width:92px}
}
@media(max-width:360px){
  .gwShutterDeck{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);gap:10px;padding-left:4px;padding-right:4px}
  .gwShutterUploadButton{width:100%;font-size:9px;padding:0 2px}
  .gwShutterButton{width:68px;height:68px}
  .gwShutterCenter{width:46px;height:46px}
}


/* Kids classification follows the exact same Age boxed row. */
.gwKidsFields .gwBodyResult{font-size:clamp(9px,2vw,12px);white-space:normal;overflow-wrap:break-word;text-align:center}


/* FACTS: Kids and Donors number inputs, classification, Calculate in one row. */
.gwRaterRow .gwKidsFields{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,.75fr) minmax(0,1.4fr) minmax(0,1.05fr);align-items:end;gap:5px}
.gwKidsFields label{min-width:0}
.gwKidsFields .gwBodyResult{font-size:clamp(8px,1.8vw,12px);overflow-wrap:anywhere}
.gwRaterRow .gwKidsFields button{grid-column:auto;width:100%}
@media(max-width:480px){.gwRaterRow .gwKidsFields{gap:4px}}


/* FACTS: 4 number fields + classification + Calculate on one line. */
.gwRaterRow .gwKidsFields{grid-template-columns:repeat(4,minmax(0,.83fr)) minmax(0,1.45fr) minmax(0,1.25fr);gap:4px;align-items:end}
.gwKidsFields .gwBodyAnswerTitle{overflow-wrap:anywhere}
.gwKidsFields label{white-space:normal;overflow-wrap:normal}
.gwKidsFields input{appearance:textfield;-moz-appearance:textfield}
.gwKidsFields input::-webkit-inner-spin-button,.gwKidsFields input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:480px){
  #gwKidsRow .gwRaterContents{padding-left:7px;padding-right:7px}
  .gwRaterRow .gwKidsFields{gap:3px}
  .gwKidsFields label{font-size:8px;line-height:12px}
  .gwKidsFields .gwBodyAnswerTitle{font-size:8px;line-height:12px}
  .gwKidsFields .gwBodyResult{font-size:8px;padding-left:1px;padding-right:1px}
  .gwRaterRow .gwKidsFields button{font-size:8px;padding-left:1px;padding-right:1px}
  .gwKidsFields input{font-size:11px;padding-left:2px;padding-right:2px}
}


/* VALUE-only FACTS bar: slightly taller, with breathing room after the money meter. */
.gwMeter .gwFactsValueRow{margin-top:17px;display:block;max-width:100%;background:#f8f9fa}
.gwMeter .gwFactsValueRow .gwRaterHeading{padding:9px 10px;font-size:12px;line-height:16px}
.gwMeter .gwFactsValueRow .gwRaterContents{padding:0 9px 13px}
.gwMeter .gwFactsValueRow .gwAdvancedFields{margin-top:3px}
.gwMeter .gwFactsValueRow .gwAdvancedFields input{height:36px}
.gwMeter .gwFactsValueRow .gwBodyResult{height:36px}
.gwMeter .gwFactsValueRow .gwAdvancedFields button{height:36px}
.gwMeter .gwFactsValueRow .gwBodyAnswerTitle{margin-bottom:5px}
.gwMeter .gwDollarValue{margin-top:7px}
@media(max-width:480px){
 .gwMeter .gwFactsValueRow{margin-top:13px}
 .gwMeter .gwFactsValueRow .gwRaterHeading{padding:8px 7px;font-size:11px;line-height:15px}
 .gwMeter .gwFactsValueRow .gwRaterContents{padding:0 6px 10px}
}


/* VALUE FACTS: fuller ADVANCED-style gray panel and white Calculate button. */
.gwMeter .gwFactsValueRow{
  background:#f1f3f4;
  border:1px solid #dadce0;
  border-radius:9px;
}
.gwMeter .gwFactsValueRow .gwRaterHeading{
  padding-top:11px;
  padding-bottom:11px;
}
.gwMeter .gwFactsValueRow .gwRaterContents{
  padding-bottom:17px;
}
.gwMeter .gwFactsValueRow .gwAdvancedFields input,
.gwMeter .gwFactsValueRow .gwBodyResult,
.gwMeter .gwFactsValueRow .gwAdvancedFields button{
  height:40px;
}
/* The white "FACTS" heading is the expandable control; Calculate stays dark. */
.gwMeter .gwFactsValueRow > .gwRaterHeading{
  background:#fff;
  color:#202124;
  border-radius:8px 8px 0 0;
  border-bottom:0;
}
.gwMeter .gwFactsValueRow:not([open]) > .gwRaterHeading{
  border-bottom:0;
  border-radius:8px;
}
.gwMeter .gwFactsValueRow .gwAdvancedFields button{
  background:#202124;
  color:#fff;
  border:0;
  border-radius:8px;
  font-weight:600;
}
.gwMeter .gwFactsValueRow .gwAdvancedFields button:hover,
.gwMeter .gwFactsValueRow .gwAdvancedFields button:active{
  background:#303134;
}
@media(max-width:480px){
  .gwMeter .gwFactsValueRow .gwRaterHeading{
    padding-top:9px;
    padding-bottom:9px;
  }
  .gwMeter .gwFactsValueRow .gwRaterContents{
    padding-bottom:13px;
  }
}


/* Match the live preview height in VALUE and ADVANCED by reserving equal control space.
   The advanced list scrolls inside that space instead of shrinking the camera. */
.gwCameraBody #gwAdvancedPanel{
  box-sizing:border-box;
  margin:0;
  min-height:0;
  max-height:none;
  height:var(--gwControlAreaHeight,213px);
  flex:0 0 var(--gwControlAreaHeight,213px);
  overflow-y:auto;
}
@media(max-width:699px){
  .gwCameraBody #gwAdvancedPanel{
    height:var(--gwControlAreaHeight,206px);
    flex-basis:var(--gwControlAreaHeight,206px);
  }
}

/* VALUE FACTS all-white interior; the Calculate action stays black. */
.gwMeter .gwFactsValueRow,
.gwMeter .gwFactsValueRow > .gwRaterHeading,
.gwMeter .gwFactsValueRow .gwRaterContents,
.gwMeter .gwFactsValueRow .gwAdvancedFields,
.gwMeter .gwFactsValueRow .gwBodyResult{
  background:#fff;
}
.gwMeter .gwFactsValueRow .gwAdvancedFields button{
  background:#202124;
  color:#fff;
}

/* Raise the three shutter controls clear of the phone's bottom edge, in both modes.
   On unusually short screens let both previews flex smaller so the entire deck fits. */
@media(max-width:699px){
  .gwShutterDeck{position:relative;top:-4px}
}
@media(max-width:699px) and (max-height:580px){
  .gwVisionStage{min-height:clamp(72px,calc(100dvh - 440px),180px)}
}


/* EDUCATION: seven independent, tappable checkboxes in ADVANCED only. */
.gwEducationChoices{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:7px}
.gwEducationOption{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:38px;padding:3px 5px;box-sizing:border-box;border:1px solid #dadce0;border-radius:8px;background:#fff;color:#202124;font-size:10px;font-weight:600;white-space:nowrap;cursor:pointer;user-select:none}
.gwEducationOption input{display:block;flex:none;width:15px;height:15px;margin:0;accent-color:#202124;cursor:pointer}
.gwEducationOption:has(input:checked){border-color:#202124;background:#f1f3f4}
.gwEducationOption:focus-within{outline:2px solid #1a73e8;outline-offset:1px}
@media(max-width:699px){.gwEducationChoices{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.gwEducationOption{min-height:36px;gap:4px;padding:3px;font-size:10px}}
@media(max-width:360px){.gwEducationChoices{gap:3px}.gwEducationOption{gap:3px;font-size:9px}.gwEducationOption input{width:14px;height:14px}}


/* EDUCATION aligned checkbox tiles: identical sizes, fixed check columns, consistent label baseline. */
#gwEducationRow .gwEducationChoices{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px;
  align-items:stretch;
}
#gwEducationRow .gwEducationOption{
  display:grid;
  grid-template-columns:15px minmax(0,1fr);
  align-items:center;
  justify-content:initial;
  column-gap:6px;
  width:100%;
  height:42px;
  min-height:42px;
  padding:0 8px;
  margin:0;
  text-align:left;
  font-size:11px;
  line-height:1.15;
  box-sizing:border-box;
  overflow:hidden;
}
#gwEducationRow .gwEducationOption input{
  position:static;
  width:15px;
  height:15px;
  margin:0;
  justify-self:center;
  align-self:center;
}
#gwEducationRow .gwEducationOption span{
  display:block;
  min-width:0;
  justify-self:start;
  align-self:center;
  white-space:nowrap;
}
@media(max-width:699px){
  #gwEducationRow .gwEducationChoices{
    grid-template-columns:repeat(8,minmax(0,1fr));
    column-gap:3px;
    row-gap:7px;
  }
  #gwEducationRow .gwEducationOption{
    grid-column:span 2;
    height:42px;
    min-height:42px;
    padding:0 6px;
    column-gap:5px;
    font-size:10px;
  }
  #gwEducationRow .gwEducationOption:nth-child(5){grid-column:2 / span 2}
}
@media(max-width:360px){
  #gwEducationRow .gwEducationOption{
    padding:0 3px;
    column-gap:4px;
    font-size:9px;
  }
  #gwEducationRow .gwEducationOption input{width:14px;height:14px}
  #gwEducationRow .gwEducationOption{grid-template-columns:14px minmax(0,1fr)}
}


/* RESULTS: one aligned outcome field and one Calculate action, as the last ADVANCED row. */
#gwResultsRow .gwResultsFields{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);
  align-items:end;
  gap:7px;
}
#gwResultsRow .gwResultsFields .gwBodyResult{
  height:34px;
  font-size:13px;
  letter-spacing:.02em;
  white-space:nowrap;
}
#gwResultsRow .gwResultsFields button{grid-column:auto;height:34px;width:100%}
@media(max-width:480px){
  #gwResultsRow .gwResultsFields{gap:5px}
}

/* Three aligned fields in ADVANCED RESULTS: Answer, Worth and Calculate. */
#gwResultsRow .gwResultsFields{
  grid-template-columns:minmax(0,.90fr) minmax(0,1.55fr) minmax(0,1.0fr);
  gap:7px;
  align-items:end;
}
#gwResultsRow .gwResultsFields .gwBodyAnswer{min-width:0}
#gwResultsRow #gwResultsWorth{
  font-variant-numeric:tabular-nums;
  font-size:clamp(9px,1.4vw,13px);
  letter-spacing:-.035em;
  white-space:nowrap;
  overflow:hidden;
  padding:0 3px;
  text-overflow:clip;
}
#gwResultsRow #gwResultsJudgment{font-size:clamp(9px,1.4vw,13px)}
#gwResultsRow .gwResultsFields button{grid-column:auto!important;align-self:end}
@media(max-width:480px){
  #gwResultsRow .gwResultsFields{gap:4px}
  #gwResultsRow .gwRaterContents{padding-left:7px;padding-right:7px}
  #gwResultsRow #gwResultsWorth{font-size:9px;padding:0 1px}
  #gwResultsRow .gwResultsFields button{font-size:10px}
}

/* BMI/heritage reference (BODY only; all other ADVANCED rows unchanged). */
.gwBodyContextFields{display:grid;grid-template-columns:1.2fr 1.3fr .8fr .8fr;gap:7px;margin-top:12px;align-items:end}
.gwBodyContextFields label{font-size:10px;line-height:1.3;min-width:0;color:#555}
.gwBodyContextFields select,.gwBodyContextFields input{box-sizing:border-box;width:100%;height:35px;margin-top:5px;border:1px solid #bdc1c6;border-radius:7px;background:#fff;color:#202124;padding:3px 5px;font:inherit;font-size:11px}
.gwBodyBmiInfo{display:block;margin-top:10px;font-size:11px;line-height:1.45;color:#3c4043;overflow-wrap:anywhere}
@media(max-width:540px){.gwBodyContextFields{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gwBodyContextFields label{font-size:10px}}

/* Adult petite examples: compact, scroll-safe, balanced on narrow phones */
.gwPetiteCalibration{margin-top:11px;border-top:1px solid #e2e5e9;padding-top:9px}
.gwPetiteCalTitle{display:block;font-size:10px;font-weight:700;letter-spacing:.03em;color:#3c4043;margin-bottom:6px}
.gwPetiteCalChips{display:flex;flex-wrap:wrap;gap:6px}
.gwPetiteCalChips button{border:1px solid #cbd1d8;background:#fff;color:#202124;border-radius:16px;padding:6px 9px;min-height:30px;font-size:10px;line-height:1.15;cursor:pointer;white-space:normal}
.gwPetiteCalChips button.is-active{border-color:#202124;background:#202124;color:#fff}
.gwPetiteCalNote{display:block;color:#5f6368;font-size:10px;margin-top:7px;line-height:1.35}
@media(max-width:450px){.gwPetiteCalChips{gap:5px}.gwPetiteCalChips button{padding:5px 7px;font-size:9px;min-height:32px}}

/* BODY calibration 90-300 lb at 4'11"-6'5", bust mass is optional and manual. */
.gwBodyContextFields{grid-template-columns:repeat(3,minmax(0,1fr))}
.gwBodyContextFields label:nth-child(1),.gwBodyContextFields label:nth-child(2){grid-column:span 1}
.gwFullRangePresets{margin:5px 0 11px}
.gwPetiteCalTitle{margin-top:8px}
@media(max-width:540px){.gwBodyContextFields{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gwCaptureModeRow{display:flex;gap:9px;align-items:end;justify-content:center;flex-wrap:wrap;padding:1px 0 6px}
.gwCaptureModeLabel{display:flex;flex-direction:column;gap:3px;color:#5f6368;font-size:10px;font-weight:600}
.gwCaptureModeLabel select{background:#fff;border:1px solid #dadce0;border-radius:7px;min-height:30px;min-width:195px;color:#202124;font-size:11px;padding:4px 7px;max-width:65vw}
.gwCapturePolishLabel{display:flex;gap:5px;align-items:center;color:#3c4043;font-size:10px;font-weight:600;min-height:30px;white-space:nowrap}
.gwCapturePolishLabel input{accent-color:#a148b8;width:15px;height:15px}
.gwVisionStage.gwPortraitPolish video,.gwVisionStage.gwPortraitPolish .gwUploadedImage{filter:brightness(1.045) contrast(1.035) saturate(1.075)}
.gwPortraitMoment{pointer-events:none;position:absolute;bottom:16px;left:50%;z-index:5;transform:translateX(-50%) scale(.93);opacity:0;color:white;background:rgba(26,26,26,.65);border:1px solid rgba(255,255,255,.62);border-radius:16px;padding:7px 15px;font-size:12px;font-weight:700;letter-spacing:.12em;white-space:nowrap;text-shadow:0 1px 2px #333}
.gwMomentSuccess .gwPortraitMoment{animation:gwPortraitPop 2.8s ease-out both}
.gwMomentSuccess{box-shadow:inset 0 0 50px rgba(214,153,223,.28)}
@keyframes gwPortraitPop{0%{opacity:0;transform:translateX(-50%) scale(.85)}15%,75%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) scale(1.04)}}
@media(prefers-reduced-motion:reduce){.gwMomentSuccess .gwPortraitMoment{animation:none;opacity:1}}
@media(max-width:400px){.gwCaptureModeRow{gap:5px}.gwCaptureModeLabel select{font-size:10px;min-width:185px}.gwCapturePolishLabel{font-size:9px}}

/* Accessible camera controls without altering measurement/value algorithms. */
.gwCameraModal button:focus-visible,.gwCameraModal input:focus-visible,.gwCameraModal select:focus-visible{
 outline:3px solid #1a73e8!important;outline-offset:3px!important;
}
.gwCameraModal .gwModeButton{touch-action:manipulation}
.gwCameraModal .gwShutterButton{touch-action:manipulation}
@media(max-width:760px){
 .gwCameraModal .gwCameraPanel{max-width:100vw}
 .gwCameraModal .gwCameraBody{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
}
