:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-accent: #0b1730;
  --panel: rgba(12, 23, 45, 0.82);
  --panel-strong: #101d37;
  --panel-soft: #0d1830;
  --border: rgba(120, 146, 208, 0.22);
  --border-strong: rgba(143, 174, 255, 0.34);
  --text: #edf3ff;
  --muted: #9aacd3;
  --primary: #6ea8ff;
  --primary-strong: #4f7cff;
  --success: #3dd9a1;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(88, 132, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(61, 217, 161, 0.12), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0a1326 42%, #09111d 100%);
  color: var(--text);
}
.wrap { max-width: 1440px; margin: 0 auto; padding: 22px 24px 40px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 18px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(17, 31, 61, 0.9), rgba(10, 22, 43, 0.88));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto -50px -90px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(110, 168, 255, 0.2), transparent 68%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 168, 255, 0.24);
  background: rgba(110, 168, 255, 0.08);
  color: #cfe0ff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.08; letter-spacing: -0.03em; }
.hero p { margin: 0; max-width: 920px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  max-width: 920px;
}
.hero-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(143, 174, 255, 0.12);
}
.hero-stat b { display: block; font-size: 14px; margin-bottom: 4px; }
.hero-stat span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.overview-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.overview-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(143, 174, 255, 0.14);
  background: linear-gradient(180deg, rgba(12, 23, 45, 0.82), rgba(9, 17, 33, 0.9));
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.overview-item b {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 6px;
  color: #f3f7ff;
}
.overview-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.panel-stack {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 20px;
}
.sidebar-card {
  background: rgba(10, 18, 34, 0.9);
  border: 1px solid rgba(143, 174, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.main-card {
  background: rgba(12, 23, 45, 0.88);
  min-width: 0;
  max-width: 100%;
}
.card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.card h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.flow-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(143, 174, 255, 0.14);
  border-radius: 16px;
  background: rgba(9, 18, 35, 0.8);
}
.flow-step.done { border-color: rgba(61, 217, 161, 0.26); background: rgba(20, 58, 48, 0.28); }
.flow-step.active { border-color: rgba(110, 168, 255, 0.46); box-shadow: 0 10px 28px rgba(79, 124, 255, 0.12); }
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #dce8ff;
  background: rgba(110, 168, 255, 0.16);
  border: 1px solid rgba(110, 168, 255, 0.28);
  font-weight: 800;
  font-size: 12px;
}
.flow-step.done .step-index { background: rgba(61, 217, 161, 0.16); border-color: rgba(61, 217, 161, 0.3); color: #b6f5de; }
.step-title { font-weight: 800; font-size: 13px; margin-bottom: 3px; }
.step-copy { color: var(--muted); font-size: 12px; line-height: 1.45; }
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.quick-card {
  padding: 12px;
  border: 1px solid rgba(143, 174, 255, 0.14);
  border-radius: 16px;
  background: rgba(7, 16, 31, 0.64);
}
.quick-card b { display: block; font-size: 13px; margin-bottom: 5px; }
.quick-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-help { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 8px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-kicker {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.section-divider { height: 1px; background: linear-gradient(90deg, rgba(143,174,255,.22), transparent); margin: 18px 0; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
input, select, textarea, button, pre {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7, 16, 31, 0.78);
  color: var(--text);
  padding: 12px 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.14);
  background: rgba(8, 19, 38, 0.94);
}
textarea { min-height: 124px; resize: vertical; line-height: 1.65; }
button {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(79, 124, 255, 0.22);
}
button:hover { transform: translateY(-1px); filter: brightness(1.04); }
button.secondary {
  background: linear-gradient(135deg, rgba(56, 92, 180, 0.88), rgba(37, 60, 118, 0.92));
}
button.danger {
  background: linear-gradient(135deg, rgba(214, 73, 73, 0.96), rgba(154, 42, 42, 0.96));
  box-shadow: 0 12px 24px rgba(154, 42, 42, 0.24);
}
button.subtle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(143, 174, 255, 0.14);
  box-shadow: none;
}
button.small {
  width: auto;
  min-width: 116px;
  padding: 10px 12px;
  font-size: 13px;
}
button.ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
