.drawer-head {
  border-color: var(--theme-line) !important;
  background: var(--theme-surface-raised) !important;
}

.drawer-head h2,
.drawer-head .eyebrow {
  color: var(--theme-ink) !important;
}

.operator-step-progress {
  position: sticky;
  top: -1px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--theme-line, #d9d9d6);
  border-left: 4px solid var(--theme-accent, #147a58);
  border-radius: 6px;
  background: var(--theme-surface, #fff);
  box-shadow: var(--theme-shadow-1, 0 8px 22px rgba(22, 29, 25, 0.08));
}

.operator-step-progress > div {
  display: grid;
  gap: 3px;
}

.operator-step-progress small,
.operator-step-progress > span {
  color: var(--theme-muted, #666662);
  font-size: 13px;
  line-height: 1.5;
}

.operator-step-progress strong {
  color: var(--theme-ink, #292927);
  font-size: 17px;
  line-height: 1.35;
  outline: none;
}

.operator-step-progress > span {
  align-self: center;
  max-width: 230px;
  text-align: right;
}

.operator-step-progress [role="alert"] {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 9px 11px;
  border-left: 3px solid var(--theme-danger, #b7483f);
  background: var(--theme-danger-soft, rgba(183, 72, 63, 0.09));
  color: var(--theme-danger, #9b302a);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.operator-form-step[hidden],
.operator-step-button[hidden],
.edit-form[data-operator-enhanced="1"] .form-actions button[type="submit"][hidden] {
  display: none !important;
}

.operator-form-section + .operator-form-section {
  margin-top: 24px;
  padding-top: 4px;
  border-top: 1px solid var(--theme-line, #e1e1de);
}

.edit-form[data-operator-enhanced="1"] .form-actions {
  border-color: var(--theme-line) !important;
  background: var(--theme-surface) !important;
}

.operator-copy-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 5px 0 0;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--theme-accent, #147a58);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.operator-copy-toggle:hover {
  color: var(--theme-ink, #292927);
}

.operator-copy-toggle:focus-visible,
.operator-step-button:focus-visible,
.operator-toast-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-accent, #147a58) 32%, transparent);
  outline-offset: 3px;
}

.toast.operator-toast-error,
.toast.operator-toast-success {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: min(460px, calc(100vw - 32px));
  min-height: 76px;
  padding: 15px 16px 15px 18px;
  white-space: normal;
}

.toast.operator-toast-error {
  border-left: 4px solid var(--theme-danger, #d05b51);
}

.toast.operator-toast-success {
  border-left: 4px solid var(--theme-positive, #3b9b72);
}

.operator-toast-copy {
  display: grid;
  flex: 1;
  gap: 5px;
  min-width: 0;
}

.operator-toast-copy strong {
  font-size: 15px;
  line-height: 1.35;
}

.operator-toast-copy span {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.55;
}

.operator-toast-close {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: rgba(127, 127, 127, 0.12);
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .operator-step-progress {
    position: static;
    grid-template-columns: 1fr;
  }

  .operator-step-progress > span {
    max-width: none;
    text-align: left;
  }

  .edit-form[data-operator-enhanced="1"] .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .edit-form[data-operator-enhanced="1"] .form-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .operator-form-step input,
  .operator-form-step select,
  .operator-form-step textarea {
    scroll-behavior: auto;
  }
}
