/* v82 Quote Tool: compact advanced-mode control, away from the primary heading.
   The button remains inside #app so existing delegated click handlers continue to work. */
#app .mode-row {
  position: fixed;
  top: 8.15rem; /* immediately below the desktop header's blue border */
  right: clamp(1rem, 2.5vw, 2rem);
  z-index: 8;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: .48rem .85rem;
  background: var(--ink, #12304A);
  color: #fff;
  border: 0;
  border-top: 4px solid var(--brand, #6ABEEC);
  border-radius: 12px;
  box-shadow: 0 12px 30px -12px rgba(18, 48, 74, .55);
}
#app .mode-row .hint { display: none; }
#app .mode-row .switch,
#app .mode-row .switch-label { color: #fff; font-size: .9rem; }
#app .mode-row .switch-track { background: #8295A5; }
#app .mode-row .switch[aria-checked="true"] .switch-track { background: var(--brand, #6ABEEC); }
#app .mode-row .switch:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Avoid covering headings/forms on tablets and phones: keep it aligned right,
   directly above the heading, rather than floating over input controls. */
@media (max-width: 1279px) {
  #app .mode-row {
    position: static;
    float: right;
    margin: 0 0 .6rem .75rem;
  }
  #app .mode-row + .step-title { clear: both; }
}
@media print { #app .mode-row { display: none; } }
