/* KEEP - host-owned Kidora shared component (feature 31, W4b): the short stepper (kd-stepper.js). Tokens only (the dark theme follows them),
   logical properties only (RTL follows the page direction). The indicator is visible only when the script shows it (below the breakpoint). */
.kd-stepper { display: flex; list-style: none; margin: 0 0 1rem; padding: 0; }
.kd-stepper[hidden] { display: none !important; }
.kd-stepper__item { position: relative; flex: 1 1 0; min-inline-size: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .25rem .15rem; min-block-size: 44px; cursor: pointer; color: var(--kd-text-muted); font-size: .85rem; font-weight: 600; text-align: center; }
.kd-stepper__item::before { content: ""; position: absolute; inset-block-start: calc(.25rem + .875rem); inset-inline: -50% 50%; block-size: 2px; background: var(--kd-border-strong); z-index: 0; }
.kd-stepper__item:first-child::before { display: none; }
.kd-stepper__item.is-done::before, .kd-stepper__item.is-active::before { background: var(--kd-primary); }
.kd-stepper__n { position: relative; z-index: 1; inline-size: 1.75rem; block-size: 1.75rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--kd-border-strong); background: var(--kd-surface); color: var(--kd-text-secondary); font-size: .85rem; font-weight: 700; }
.kd-stepper__item.is-active { color: var(--kd-text-heading); }
.kd-stepper__item.is-active .kd-stepper__n { background: var(--kd-primary); border-color: var(--kd-primary); color: var(--kd-on-primary, #fff); }
.kd-stepper__item.is-done .kd-stepper__n { border-color: var(--kd-primary); color: var(--kd-primary); }
.kd-stepper__item:focus-visible { outline: 3px solid var(--kd-focus); outline-offset: 2px; border-radius: var(--kd-radius); }
.kd-stepper__label { overflow-wrap: anywhere; }
.kd-stepper__nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-block-start: 1rem; }
.kd-stepper__nav[hidden], .kd-stepper__nav [hidden] { display: none !important; }
.kd-stepper__nav > :only-child { margin-inline-start: auto; }
[data-kd-step][hidden] { display: none !important; }
