body { font-family: sans-serif; padding: 30px; transition: 0.3s; margin: 0; }

/* THEME */
body.dark { background: #020617; color: white; }
body.light { background: #f1f5f9; color: #020617; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.topbar h2 { margin: 0; }

/* NAV */
.nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.nav a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: inherit; background: #1e293b; transition: 0.2s; }
.light .nav a { background: #e2e8f0; }
.nav a:hover { background: #334155; }
.light .nav a:hover { background: #cbd5e1; }
.nav a.active { background: #16a34a; color: white; }

/* FORM */
.form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin: 10px 0; }
.field { position: relative; display: inline-block; }
.field label { display: block; font-size: 11px; opacity: 0.7; margin: 0 0 2px 7px; }
input { padding: 10px; margin: 5px; border-radius: 8px; border: none; box-sizing: border-box; }
.field input { padding-right: 34px; min-width: 190px; }
.light input { box-shadow: 0 0 0 1px #cbd5e1; }
.eye { position: absolute; right: 10px; bottom: 13px; background: none !important; padding: 0 !important; color: #64748b !important; font-size: 14px; line-height: 1; }

button { padding: 8px 14px; border-radius: 8px; background: #16a34a; color: white; border: none; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
#runBtn { padding: 10px 18px; margin: 5px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.card { padding: 20px; border-radius: 18px; text-align: center; transition: 0.3s; overflow-wrap: anywhere; }
.card h4 { margin: 0 0 6px; opacity: 0.7; }
.card h2 { margin: 0 0 10px; font-size: 20px; }
.card .meta { font-size: 12px; opacity: 0.75; }
.dark .card { background: linear-gradient(160deg, #020617, #0c4a6e); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05); }
.light .card { background: white; box-shadow: 0 0 8px rgba(0, 0, 0, 0.08); }
.ok { border: 2px solid #22c55e }
.err { border: 2px solid #ef4444 }
.warn { border: 2px solid #facc15 }

.badge { margin-top: 10px; display: inline-block; padding: 5px 10px; background: #16a34a; color: white; border-radius: 6px; font-size: 12px; }
.badge.yellow { background: #a16207; }
.badge.red { background: #b91c1c; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; }

.progress-wrap { margin-top: 15px; background: #1e293b; border-radius: 8px; padding: 10px; }
.light .progress-wrap { background: #e2e8f0; }
.progress-bar { height: 10px; background: #334155; border-radius: 8px; overflow: hidden; margin-top: 8px; }
.light .progress-bar { background: #cbd5e1; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #16a34a, #22c55e); transition: 0.3s; }
.current-endpoint { font-size: 12px; margin-top: 5px; }

.ext-warning { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #422006; border: 1px solid #a16207; color: #fde68a; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.light .ext-warning { background: #fef9c3; color: #713f12; }
.ext-warning button { background: #a16207; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; align-items: center; justify-content: center; }
.modal-box { background: white; color: black; padding: 20px; border-radius: 12px; width: 80%; max-width: 600px; }

/* WIZARD */
.wizard { background: #0f172a; color: white; padding: 22px; border-radius: 14px; animation: fadeIn .3s ease; margin-top: 10px; }
.wizard-header { margin-bottom: 15px; }
.wizard-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.wizard-sub { font-size: 13px; color: #cbd5f5; margin-bottom: 10px; }
.wizard-progress { font-size: 12px; color: #cbd5f5; }
.wiz-bar { height: 6px; background: #1e293b; border-radius: 8px; margin-top: 6px; overflow: hidden; }
.wiz-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #22c55e, #4ade80); transition: .3s; }
.wizard-body { margin-top: 15px; }
.wiz-title { font-weight: 600; margin-bottom: 8px; }
.wiz-card { background: #020617; padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05); }
.wiz-card.success { background: linear-gradient(135deg, #065f46, #047857); }
.wiz-card a { color: inherit; text-decoration: none; }
.wiz-btn { margin-top: 12px; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 600; transition: .2s; }
.wiz-btn:hover { transform: scale(1.03); }
.wiz-btn.blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.wiz-btn.teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.wizard-nav { margin-top: 18px; display: flex; justify-content: space-between; }
.wiz-hint { margin-top: 10px; font-size: 13px; color: #cbd5f5; background: #0f172a; padding: 10px; border-radius: 8px; animation: fadeIn .3s ease; }
.fade { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px) } to { opacity: 1; transform: translateY(0) } }

.notice { margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: #1e293b; border: 1px solid #334155; font-size: 13px; color: #e2e8f0; }
.disclaimer { margin-top: 40px; font-size: 11px; opacity: .6; line-height: 1.5; }

@media (max-width: 600px) {
  body { padding: 16px; }
  .field, .field input, #runBtn { width: 100%; }
  .field input { margin: 5px 0; }
}
