:root {
  --bg: #f4f8ff;
  --paper: #ffffff;
  --line: #dbeafe;
  --line-strong: #bfdbfe;
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --blue: #0284c7;
  --blue-600: #0369a1;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(14,165,233,0.10), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(59,130,246,0.06), transparent 45%),
    #f8fbff;
}

.hidden { display: none !important; }

.mira-page {
  min-height: 100vh;
}

.mira-wizard-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(191,219,254,0.55);
}

.mira-top-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 14px 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mira-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.mira-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mira-top-hint {
  font-size: 12px;
  color: var(--muted-soft);
}

.mira-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: var(--muted);
}

.mira-pill.is-ok {
  color: #166534;
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
}

.mira-pill.is-warn {
  color: #92400e;
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.mira-pill.is-info {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

.mira-wizard-progress {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 14px 12px;
}

.mira-stepper-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.04);
}

.mira-stepper-item {
  position: relative;
  min-width: 0;
  text-align: center;
}

.mira-stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 18px);
  width: calc(100% - 26px);
  height: 2px;
  background: #dbeafe;
}

.mira-stepper-item.is-done:not(:last-child)::after {
  background: #93c5fd;
}

.mira-stepper-dot-wrap {
  display: flex;
  justify-content: center;
}

.mira-stepper-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid #fff;
  background: #94a3b8;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15);
  z-index: 1;
  position: relative;
}

.mira-stepper-item.is-done .mira-stepper-dot {
  background: var(--green);
}
.mira-stepper-item.is-current .mira-stepper-dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(2,132,199,0.16);
}
.mira-stepper-item.is-error .mira-stepper-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.14);
}

.mira-stepper-title {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mira-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 14px 28px;
}

.mira-paper {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240,249,255,0.6) 0%, #fff 16%, #fff 100%);
  box-shadow: var(--shadow);
  padding: 18px;
}

.mira-paper-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mira-step-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-600);
  margin-bottom: 4px;
}

.mira-paper-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.mira-paper-desc {
  margin: 6px 0 0;
  color: var(--muted-soft);
  font-size: 13px;
}

.mira-stage-body {
  min-height: 460px;
}

.mira-stage-panel {
  display: grid;
  gap: 12px;
}

.mira-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.mira-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.mira-card-head-bottom { align-items: center; }

.mira-card-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mira-grid-2 {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.mira-grid-3 {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mira-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

#panelBasic .mira-grid-2 > .mira-field {
  grid-template-rows: auto 1fr;
}

#panelBasic #versionInput {
  min-height: 82px;
  font-size: 18px;
  font-weight: 700;
}

.mira-field > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

input[type="text"],
input[type="number"],
input[type="file"] {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  color: var(--text);
  padding: 10px 12px;
}

input[type="file"] { padding: 8px 10px; }
input:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(2,132,199,0.10);
}

.mira-upload-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 82px;
}

.mira-dropzone {
  position: relative;
  min-height: 82px;
  border-radius: 14px;
  border: 1.5px dashed var(--line-strong);
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.mira-dropzone:hover { border-color: #7dd3fc; }
.mira-dropzone.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(2,132,199,0.13);
  transform: translateY(-1px);
}
.mira-dropzone.is-disabled { opacity: .6; cursor: not-allowed; }
.mira-dropzone.is-loaded {
  border-style: solid;
  border-color: #86efac;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 0 0 3px rgba(34,197,94,0.10);
}

.mira-dropzone.is-loaded::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.mira-dropzone-title {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.mira-dropzone-sub {
  font-size: 11px;
  color: var(--muted-soft);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mira-dropzone-tip {
  margin-top: 2px;
  font-size: 10px;
  color: #64748b;
  text-align: center;
  letter-spacing: .01em;
  opacity: .92;
}

.mira-dropzone.is-loaded .mira-dropzone-title {
  color: #166534;
  font-size: 13px;
}

.mira-dropzone.is-loaded .mira-dropzone-sub {
  color: #15803d;
  font-weight: 600;
  max-width: calc(100% - 12px);
}

.mira-file-input-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.btn {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  color: var(--muted);
  border-radius: 14px;
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 6px 14px rgba(14,165,233,.08);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff;
  border-color: var(--blue);
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.btn-secondary {
  border-color: #bae6fd;
  color: #0369a1;
  background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
}

.btn-danger {
  border-color: #fecaca;
  color: #991b1b;
  background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
}

.btn-ghost { min-height: 38px; padding: 8px 10px; border-radius: 12px; }

.mira-auth-panel,
.mira-note-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff 0%, #fff 100%);
  padding: 12px;
}

.mira-note-box.compact { padding: 10px 12px; }
.mira-note-box.success { border-color: #bbf7d0; background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); }
.mira-note-title { font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.mira-note-text { font-size: 12px; color: var(--muted); line-height: 1.6; }

.mira-summary-list {
  display: grid;
  gap: 10px;
}

.mira-summary-section {
  border: 1px solid #e6efff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfdff 0%, #ffffff 100%);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.mira-summary-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-600);
  margin-bottom: 2px;
}

.mira-summary-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 12px;
  color: var(--muted);
}

.mira-summary-row > span:first-child {
  color: var(--muted-soft);
  font-weight: 700;
}

.mira-summary-row > span:last-child {
  color: var(--text);
  word-break: break-all;
}

.mira-summary-entry {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 5px;
}

.mira-summary-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mira-summary-entry-index {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.mira-summary-entry-status {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid #e2e8f0;
  color: var(--muted);
  background: #f8fafc;
}

.mira-summary-entry-status.is-ready {
  color: #166534;
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.mira-summary-entry-status.is-missing,
.mira-summary-entry-status.is-error {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.mira-summary-empty {
  font-size: 12px;
  color: var(--muted-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef8ff 100%);
}

.mira-box-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.mira-auth-inline { margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.mira-auth-text {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.mira-auth-meta { margin-top: 6px; font-size: 11px; color: var(--muted-soft); line-height: 1.5; }

.mira-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 12%, var(--line) 88%, transparent 100%);
  margin: 4px 0;
}

.mira-slot-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.mira-slot {
  min-height: 108px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
  padding: 9px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.mira-slot:hover { border-color: #94a3b8; }
.mira-slot:focus-visible {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.16);
}
.mira-slot.selected {
  border-color: var(--blue);
  background: linear-gradient(135deg, #eaf6ff 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(2,132,199,0.10), 0 8px 18px rgba(14,165,233,0.08);
}
.mira-slot.empty {
  border-style: dashed;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.mira-slot-left {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}
.mira-slot-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}
.mira-slot-title-wrap {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.mira-slot-bottom {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.mira-slot-actions {
  width: 28px;
  align-self: start;
}
.mira-slot-action.btn {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.mira-slot-action.btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.03);
}
.mira-slot-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  transform: none;
}
.mira-slot-title {
  min-width: 0;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mira-slot-subtitle {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mira-slot-subtitle.is-ok { color: #0f172a; }
.mira-slot-subtitle.is-missing { color: #b91c1c; }
.mira-slot-state {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.92);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.mira-slot-state.is-ready { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.mira-slot-state.is-missing { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.mira-slot-state.is-error { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.mira-slot-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  align-content: start;
  padding: 5px 7px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.85);
  min-height: 36px;
}
.mira-slot.selected .mira-slot-meta-row {
  border-color: #dbeafe;
  background: rgba(255,255,255,0.95);
}
.mira-slot-meta-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.1;
}
.mira-slot-meta-value {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}
.mira-slot-meta-value.is-ok { color: #15803d; }
.mira-slot-meta-value.is-missing { color: #dc2626; }
.mira-slot-add {
  min-height: 108px;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  display: flex;
}

@media (max-width: 640px) {
  .mira-slot-head {
    grid-template-columns: 1fr;
  }
  .mira-slot-bottom {
    grid-template-columns: 1fr;
  }
}
.mira-slot-add:hover { border-color: #7dd3fc; }
.mira-slot-add-plus {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.mira-slot-add-text {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.mira-editor { display: grid; gap: 12px; }
.mira-empty-block {
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: var(--muted-soft);
  background: linear-gradient(135deg, #f8fbff 0%, #eef8ff 100%);
  font-size: 13px;
}

.mira-inline-hint {
  min-height: 18px;
  font-size: 12px;
  color: var(--muted-soft);
}

.mira-alert {
  margin-bottom: 10px;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid transparent;
}
.mira-alert-error {
  color: #991b1b;
  background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
  border-color: #fecaca;
}
.mira-alert-success {
  color: #14532d;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
  border-color: #bbf7d0;
}

.mira-log {
  margin: 0;
  min-height: 180px;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  color: #1e293b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.mira-progress-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #f7fbff 0%, #fff 100%);
}

.mira-progress-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mira-progress-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.mira-progress-status.is-running { color: #1d4ed8; }
.mira-progress-status.is-success { color: #166534; }
.mira-progress-status.is-error { color: #991b1b; }

.mira-linear-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  overflow: hidden;
}

.mira-linear-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93c5fd 0%, #2563eb 100%);
  transition: width .24s ease;
}

.mira-linear-progress-fill.is-running {
  background: linear-gradient(90deg, #93c5fd 0%, #3b82f6 50%, #93c5fd 100%);
  background-size: 200% 100%;
  animation: mira-progress-shimmer 1.2s linear infinite;
}

.mira-linear-progress-fill.is-success {
  background: linear-gradient(90deg, #86efac 0%, #22c55e 100%);
}

.mira-linear-progress-fill.is-error {
  background: linear-gradient(90deg, #fca5a5 0%, #ef4444 100%);
}

.mira-kv-list { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.mira-kv-item { display: grid; grid-template-columns: 100px 1fr; gap: 8px; align-items: start; }
.mira-kv-key { font-weight: 700; color: var(--muted-soft); }
.mira-kv-val { word-break: break-all; }

.mira-progress { display: grid; gap: 8px; }
.mira-progress-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.mira-progress-line { display: grid; gap: 10px; }
.mira-progress-line.backend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mira-step { min-width: 0; text-align: center; }
.mira-step-dot-row { display: flex; justify-content: center; align-items: center; }
.mira-step-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(148,163,184,.15); }
.mira-step-bottom { min-height: 56px; display: grid; gap: 2px; align-content: start; margin-top: 6px; }
.mira-step-title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mira-step-state { font-size: 10px; font-weight: 700; }
.mira-step-msg { font-size: 10px; color: var(--muted-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mira-wizard-nav {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e6efff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mira-wizard-nav .btn {
  min-width: 132px;
}

code {
  font-family: Consolas, "Courier New", monospace;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 1px 5px;
}

@media (max-width: 960px) {
  .mira-stepper-line { grid-template-columns: 1fr; gap: 8px; }
  .mira-stepper-item:not(:last-child)::after { display: none; }
  .mira-stepper-item { display: grid; grid-template-columns: 34px 1fr; align-items: center; text-align: left; gap: 8px; }
  .mira-stepper-title { margin-top: 0; }
  .mira-stepper-dot-wrap { justify-content: flex-start; }
  .mira-grid-2 { grid-template-columns: 1fr; }
  .mira-card-head { flex-direction: column; align-items: stretch; }
  .mira-card-head-actions { width: 100%; }
  .mira-card-head-actions .btn { flex: 1; }
  .mira-progress-line.backend { grid-template-columns: 1fr 1fr; }
  .mira-top-inner { align-items: flex-start; flex-direction: column; }
  .mira-top-meta { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .mira-grid-3 { grid-template-columns: 1fr; }
  .mira-upload-row { grid-template-columns: 1fr; }
  .mira-wizard-nav { flex-direction: column; }
  .mira-wizard-nav .btn { width: 100%; }
  .mira-progress-line.backend { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .mira-dropzone { transition: none; }
  .mira-linear-progress-fill.is-running { animation: none; }
}

@keyframes mira-progress-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
