/* Valuation-only clearance above the existing fixed market tape. */
/* Keep the decorative corner anchored inside its card, including mobile. */
#stepTwo .result { position: relative !important; min-width: 0; }
#stepTwo .result::after {
  right: 0;
  top: 0;
  width: 120px;
  max-width: 100%;
  height: 115px;
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 120px;
}
@media (max-width: 780px) {
  body main.wrap { min-width: 0; }
  body main.wrap .intro { grid-template-columns: minmax(0, 1fr); }
  body main.wrap .intro > * { min-width: 0; }
}
#stepTwo .slider-navigation {
  bottom: 68px !important;
  height: auto;
  max-height: none;
  margin-bottom: 16px !important;
  border-radius: 18px;
}
#stepTwo .slider-navigation button {
  min-height: 48px;
  height: auto !important;
  white-space: normal;
  line-height: 1.4;
}
#stepTwo .sliders { padding-bottom: 16px; }
@media (max-width: 600px) {
  #stepTwo .slider-navigation {
    bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 12px !important;
  }
}
/* Let unusually narrow or short screens scroll the full controls naturally. */
@media (max-width: 360px) {
  #stepTwo .slider-navigation { grid-template-columns: minmax(0, 1fr) !important; }
  #stepTwo .slider-navigation #previousCriterion { grid-column: 1; grid-row: 2; }
  #stepTwo .slider-navigation #nextCriterion { grid-column: 1; grid-row: 3; }
}
@media (max-height: 500px) {
  #stepTwo .slider-navigation { position: static !important; }
}
/* Cyan energy cue: two short cycles, then a steady glow without distraction. */
body main.wrap #confirmMicro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #071b36 !important;
  background: linear-gradient(115deg, #22b8f4, #6deaff 52%, #22b8f4) !important;
  border: 2px solid #a3f5ff !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px #ffffff66, 0 0 16px #2bd8ff55, 0 6px 18px #071b3626;
  animation: none !important;
  transition: box-shadow .2s ease;
}
body main.wrap #confirmMicro::before,
body main.wrap #confirmMicro::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
body main.wrap #confirmMicro::before {
  inset: -20% auto -20% 0;
  width: 36%;
  background: linear-gradient(105deg, transparent, #ffffff88, #baffff55, transparent);
  transform: translateX(-150%) skewX(-18deg);
  opacity: 0;
}
body main.wrap #confirmMicro::after {
  inset: 0;
  border-radius: inherit;
  border: 1px solid #e4ffff;
  box-shadow: inset 0 0 12px #b5faff88;
  opacity: .45;
}
body main.wrap #confirmMicro:not(:disabled)::before { animation: valuationEnergySweep 2.4s ease-in-out 2; }
body main.wrap #confirmMicro:not(:disabled)::after { animation: valuationElectricPulse 2.4s ease-in-out 2; }
body main.wrap #confirmMicro:hover { box-shadow: inset 0 0 0 1px #ffffff88, 0 0 22px #2bd8ff88, 0 6px 18px #071b3626; }
body main.wrap #confirmMicro:focus-visible { outline: 3px solid #fff !important; outline-offset: 4px !important; }
body main.wrap #confirmMicro:disabled { opacity: .6; cursor: not-allowed; }
body main.wrap #confirmMicro:is(:hover, :focus-visible)::before,
body main.wrap #confirmMicro:is(:hover, :focus-visible)::after { animation-play-state: paused; }
@keyframes valuationEnergySweep {
  0%, 12% { transform: translateX(-150%) skewX(-18deg); opacity: 0; }
  24% { opacity: .75; }
  78% { opacity: .75; }
  90%, 100% { transform: translateX(420%) skewX(-18deg); opacity: 0; }
}
@keyframes valuationElectricPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body main.wrap #confirmMicro,
  body main.wrap #confirmMicro::before,
  body main.wrap #confirmMicro::after { animation: none !important; transition: none !important; }
  body main.wrap #confirmMicro::before { display: none; }
}

/* Focused portrait polish: keep controls in the reading flow on narrow screens. */
#stepTwo .valuation-field-help { margin:8px 0 0; font-size:15px; line-height:1.5; color:#52657c; }
#stepTwo :is(button,summary,.comfort-choice,.orientation-options label) { min-height:44px; }
#stepTwo :is(button,select,input,summary,a):focus-visible { outline:3px solid #0756c5; outline-offset:3px; }
body main.wrap #confirmMicro:focus-visible { outline:3px solid #071b36 !important; outline-offset:4px !important; }
@media (max-width:360px) {
  #stepTwo .slider-navigation { position:static !important; }
}
@media (max-width:780px) {
  #stepTwo :is(input,select,button,summary) { scroll-margin-block:150px 180px; }
  #stepTwo .slider-navigation { padding-bottom:max(12px,env(safe-area-inset-bottom,0px)) !important; }
}
