.composer-report-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.card-panel__sidebar--composer {
  gap: var(--space-lg);
}

.composer-sidebar-selectors {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.composer-sidebar-selectors [data-composer-type-target="panel"] {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.card-panel__sidebar--composer .card-panel__field {
  padding: 0;
}

.card-panel__sidebar--composer .card-panel__submit {
  margin-top: 0;
}

.composer-field-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.composer-field-step[hidden],
.composer-wizard-fields [data-composer-type-target="panel"][hidden] {
  display: none;
}

.composer-field-step__head {
  display: flex;
  flex-direction: column;
}

.composer-field-step__head .card-panel__section-title {
  margin-bottom: var(--space-xs);
}

.composer-field-step__title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

@media (min-width: 992px) {
  .composer-field-step__title {
    display: none;
  }
}

.map-selector {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-selector__canvas {
  width: 100%;
  height: 100%;
}

.map-selector__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  color: var(--color-brand);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.map-selector__pin svg {
  width: 36px;
  height: 36px;
}

.map-selector__locate {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.map-selector__locate svg {
  width: 20px;
  height: 20px;
}

.radius-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.radius-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.radius-field__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.radius-field__value {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.radius-field__value strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.radius-field__row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.radius-field__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}

.radius-field__step:active {
  background: var(--color-bg);
}

.range-slider {
  flex: 1;
  min-width: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  appearance: none;
  outline: none;
  touch-action: pan-y;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-brand);
  cursor: pointer;
}

.range-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-brand);
  cursor: pointer;
}

.wizard-bar {
  display: none;
}

.wizard-footer {
  display: none;
}

.wizard-step__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.wizard-step__hint {
  margin-top: var(--space-xs);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.wizard-choices {
  margin-top: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wizard-choice {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-bottom: 1px solid var(--color-border);
  background-color: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.wizard-choice[hidden] {
  display: none;
}

.wizard-choices > .wizard-choice:last-child {
  border-bottom: none;
}

.wizard-choice:hover .wizard-choice__label {
  color: var(--color-brand);
}

.wizard-choice:active {
  background-color: var(--color-bg);
}

.wizard-choice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.wizard-choice__icon--brand {
  color: var(--color-brand);
}

.wizard-choice__icon-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-text);
  color: #ffffff;
  border: 2px solid var(--color-surface);
}

.wizard-choice__icon-badge svg {
  width: 12px;
  height: 12px;
}

.wizard-choice__icon svg {
  width: 24px;
  height: 24px;
}

.wizard-choice--danger .wizard-choice__icon {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.wizard-choice__text {
  flex: 1 1 auto;
  min-width: 0;
}

.wizard-choice__label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
}

.wizard-choice--danger .wizard-choice__label {
  color: var(--color-danger-text);
}

.wizard-choice__hint {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.wizard-choice__chevron {
  display: flex;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transform: scaleX(-1);
}

.wizard-choice__chevron svg {
  width: 18px;
  height: 18px;
}

.wizard-choice__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1875rem;
  flex-shrink: 0;
  overflow: hidden;
}

.wizard-choice__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .composer-wizard {
    display: none;
  }
}

@media (max-width: 991px) {
  .card-page--composer {
    height: 100%;
    padding: 0;
    gap: 0;
  }

  .card-page--composer .card-panel {
    flex: 1;
    min-height: 0;
    gap: 0;
  }

  .composer-sidebar-selectors,
  .card-page--composer .card-panel__sidebar--composer {
    display: none;
  }

  .composer-wizard[hidden],
  .composer-wizard-fields.is-pending {
    display: none;
  }

  .composer-wizard {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-lg) 0 var(--space-xl);
  }

  .wizard-step__title,
  .wizard-step__hint {
    padding: 0 var(--space-md);
  }

  .wizard-choices {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  @media (max-width: 360px) {
    .wizard-choice {
      gap: var(--space-sm);
      padding-left: var(--space-md);
      padding-right: var(--space-md);
    }
  }

  .composer-wizard-fields,
  .composer-wizard-fields .card-panel__main,
  .composer-wizard-fields [data-composer-type-target="panel"]:not([hidden]),
  .composer-wizard-fields form,
  .composer-field-step:not([hidden]) {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    gap: 0;
  }

  .composer-wizard-fields {
    grid-template-columns: none;
    align-items: stretch;
  }

  .composer-field-step:not([hidden]) {
    gap: var(--space-lg);
    overflow-y: auto;
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }

  .composer-field-step--map:not([hidden]) {
    overflow: hidden;
    gap: 0;
    padding: 0;
  }

  .composer-field-step--map .composer-field-step__head {
    padding: var(--space-md) var(--space-md) var(--space-sm);
  }

  .composer-field-step--map .composer-field-step__head .card-panel__section-title {
    display: none;
  }

  .composer-field-step--map .map-selector {
    flex: 1;
    min-height: 120px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .composer-field-step--map .radius-field {
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-md) var(--space-sm);
  }

  @media (max-height: 620px) {
    .composer-field-step--map .composer-field-step__title {
      display: none;
    }
  }

  .wizard-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }

  .wizard-bar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-left: calc(var(--space-sm) * -1);
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--color-text);
    cursor: pointer;
  }

  .wizard-bar__back:active {
    background: var(--color-bg);
  }

  .wizard-bar__back svg {
    width: 22px;
    height: 22px;
  }

  .wizard-steps {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .wizard-steps__item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }

  .wizard-steps__item[hidden] {
    display: none;
  }

  .wizard-steps__item + .wizard-steps__item::before {
    content: "";
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background-color: var(--color-border);
  }

  .wizard-steps__item.is-done::before,
  .wizard-steps__item.is-current::before {
    background-color: var(--color-map-green);
  }

  .wizard-steps__item:first-child {
    flex: 0 0 auto;
  }

  .wizard-steps__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-surface);
    color: var(--color-text-muted);
  }

  .wizard-steps__dot svg {
    width: 12px;
    height: 12px;
  }

  .wizard-steps__item.is-done .wizard-steps__dot {
    color: var(--color-text);
  }

  .wizard-steps__item.is-current .wizard-steps__dot {
    width: 32px;
    height: 32px;
    color: var(--color-text);
  }

  .wizard-steps__item.is-current .wizard-steps__dot svg {
    width: 15px;
    height: 15px;
  }

  .wizard-bar__context {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    overflow: hidden;
    cursor: pointer;
  }

  .wizard-bar__context[hidden] {
    display: none;
  }

  .wizard-footer {
    display: block;
    flex-shrink: 0;
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  .wizard-footer[hidden] {
    display: none;
  }

  .wizard-footer__action {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
}
