/* ==================================================
   RC16.256 · Guided Flow + Sync Fix
   ================================================== */

/* Progress: position and prepared count share exactly one line.
   History arrows sit clearly below the position label, not near the prepared count. */
.rc256-progress-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:baseline!important;
  gap:10px!important;
  margin-top:12px!important;
}
.rc256-step-label{
  min-width:0;
  white-space:nowrap;
}
.rc256-prepared-count{
  margin:0!important;
  white-space:nowrap;
  text-align:right;
  align-self:baseline;
}
.rc256-step-nav-row{
  width:min(100%,980px);
  margin:5px auto 0;
  display:flex;
  justify-content:flex-start;
}
.rc256-step-nav{
  display:flex;
  gap:5px;
}
.rc256-step-nav button{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  border-radius:10px!important;
}

/* The old bottom Zurück/Weiter wizard footer is intentionally gone.
   Top arrows are the only step-by-step navigation in guided mode. */
.rc251-form-shell .emergency-wizard-controls{display:none!important}

/* Completion must never sit on top of a history step. */
.rc251-form-stage>.emergency-wizard-complete[hidden]{display:none!important}

@media(max-width:720px){
  .rc256-progress-row{font-size:.78rem!important}
  .rc256-step-label{font-size:.78rem!important}
  .rc256-prepared-count{font-size:.78rem!important;line-height:1.15!important}
  .rc256-step-nav-row{margin-top:4px}
  .rc256-step-nav button{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    font-size:1.2rem!important;
  }
}
@media(max-width:370px){
  .rc256-step-label,.rc256-prepared-count{font-size:.70rem!important}
  .rc256-progress-row{gap:6px!important}
  .rc256-step-nav button{width:28px!important;height:28px!important;min-width:28px!important}
}
