:root {
  --modelora-accent: #0f6dff;
  --modelora-accent-soft: #e8f0ff;
  --modelora-bg: #f2f6fb;
  --modelora-card: #ffffff;
  --modelora-border: #d8e2ee;
  --modelora-text: #17293f;
  --modelora-muted: #5f728a;
  --modelora-shadow: 0 14px 34px rgba(15, 46, 84, 0.08);
}

.modelora-admin-wrap {
  margin-top: 18px;
}

.modelora-admin-app {
  max-width: 1100px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--modelora-text);
}

.modelora-admin-header {
  background: linear-gradient(125deg, #ffffff 0%, #f8fbff 56%, #eef5ff 100%);
  border: 1px solid var(--modelora-border);
  border-radius: 18px;
  box-shadow: var(--modelora-shadow);
  padding: 20px 22px;
  margin-bottom: 14px;
}

.modelora-admin-header h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.modelora-admin-header p {
  margin: 7px 0 0;
  color: var(--modelora-muted);
  font-size: 14px;
}

.modelora-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.modelora-stepper li {
  border: 1px solid var(--modelora-border);
  background: #ffffff;
  color: var(--modelora-muted);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 12px;
}

.modelora-stepper li.is-active {
  color: #0d4fb9;
  background: var(--modelora-accent-soft);
  border-color: #bfd4ff;
}

.modelora-stepper li.is-complete {
  color: #245a0c;
  background: #eaf7e2;
  border-color: #cbe6bc;
}

.modelora-step-card,
.modelora-settings-wrap .modelora-settings-form {
  background: var(--modelora-card);
  border: 1px solid var(--modelora-border);
  border-radius: 18px;
  box-shadow: var(--modelora-shadow);
  padding: 22px;
}

.modelora-section-head {
  margin-bottom: 14px;
}

.modelora-section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.modelora-section-head p {
  margin: 6px 0 0;
  color: var(--modelora-muted);
}

.modelora-field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.modelora-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--modelora-muted);
  font-weight: 600;
}

.modelora-step-card input[type="text"],
.modelora-step-card input[type="url"],
.modelora-step-card input[type="file"],
.modelora-step-card select,
.modelora-step-card textarea,
.modelora-settings-wrap input[type="number"],
.modelora-settings-wrap select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #c8d4e2;
  background: #fff;
  min-height: 38px;
  padding: 8px 10px;
}

.modelora-step-card input[type="file"] {
  background: #f8fbff;
  border-style: dashed;
  border-color: #b9c9dc;
}

.modelora-step-card .button,
.modelora-step-card .button.button-primary {
  border-radius: 10px;
  min-height: 38px;
}

.modelora-step-card .button {
  border-color: #b9c9dc;
}

.modelora-step-card textarea {
  min-height: 74px;
  resize: vertical;
}

.modelora-step-card input:focus,
.modelora-step-card select:focus,
.modelora-step-card textarea:focus {
  border-color: #95b8ff;
  box-shadow: 0 0 0 3px rgba(15, 109, 255, 0.12);
  outline: none;
}

.modelora-section-divider {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--modelora-border);
}

.modelora-upload-panels {
  display: grid;
  gap: 14px;
}

.modelora-convert-panel {
  border: 1px solid var(--modelora-border);
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 20px rgba(15, 46, 84, 0.05);
}

.modelora-convert-panel h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.modelora-panel-kicker {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.modelora-panel-upload {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  border-color: #c8d9ed;
}

.modelora-panel-upload .modelora-panel-kicker {
  color: #0d4fb9;
  background: #e9f1ff;
  border-color: #bdd3ff;
}

.modelora-panel-url {
  background: linear-gradient(180deg, #ffffff, #f8fcff);
  border-color: #c8d9ed;
}

.modelora-panel-url .modelora-panel-kicker {
  color: #0b5a4b;
  background: #e7f8f3;
  border-color: #bfe8dd;
}

.modelora-panel-convert {
  background: linear-gradient(180deg, #ffffff, #fafbff);
  border-color: #d4dbee;
}

.modelora-panel-convert .modelora-panel-kicker {
  color: #5a3d0b;
  background: #fff5e7;
  border-color: #ffe2bd;
}

.modelora-note {
  color: var(--modelora-muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.modelora-progress {
  margin-top: 10px;
}

.modelora-progress progress {
  width: 100%;
}

.modelora-warning {
  margin-top: 8px;
  background: #fff7eb;
  border: 1px solid #ffe3ba;
  border-radius: 10px;
  padding: 8px 10px;
}

.modelora-warning ul {
  margin: 6px 0 0 18px;
}

.modelora-error {
  color: #a12020;
  background: #fff3f3;
  border: 1px solid #ffd6d6;
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 10px;
}

.modelora-preview-box {
  border-radius: 14px;
  background: linear-gradient(165deg, #f8fbff, #edf4fb);
  border: 1px solid var(--modelora-border);
  padding: 10px;
}

.modelora-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modelora-row .button {
  min-height: 38px;
}

.modelora-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 10px 0 20px;
}

.modelora-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modelora-demo-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--modelora-border);
}

.modelora-embed-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.modelora-inline-success {
  margin-top: 8px;
  border: 1px solid #bfe0b0;
  background: #eff9ea;
  color: #1f5d10;
  border-radius: 10px;
  padding: 6px 10px;
}

@media (max-width: 782px) {
  .modelora-admin-header {
    padding: 16px;
  }

  .modelora-step-card {
    padding: 16px;
  }

  .modelora-row,
  .modelora-embed-actions {
    flex-direction: column;
  }
}
