
:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0c1929;
  --surface-2: #11243a;
  --line: #223b55;
  --text: #eef6ff;
  --muted: #90a6bc;
  --accent: #39d98a;
  --accent-2: #20b8d8;
  --danger: #ff6b7a;
  --warning: #ffc857;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 184, 216, .15), transparent 31rem),
    radial-gradient(circle at 90% 10%, rgba(57, 217, 138, .10), transparent 25rem),
    var(--bg);
  color: var(--text);
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.topbar {
  border-bottom: 1px solid rgba(144, 166, 188, .16);
  background: rgba(7, 17, 31, .75);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #04150e;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(32, 184, 216, .18);
}
.brand strong { display: block; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); margin-top: .1rem; }
.top-actions { display: flex; align-items: center; gap: .75rem; color: var(--muted); }
main.shell { padding: 2.5rem 0 4rem; }
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  color: var(--accent);
  font-weight: 750;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.055em; margin-bottom: .6rem; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; }
.hero p, .muted { color: var(--muted); }
.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  background: rgba(17, 36, 58, .72);
}
.status::before {
  content: "";
  width: .52rem;
  height: .52rem;
  border-radius: 50%;
  background: var(--muted);
}
.status-running::before, .status-completed::before { background: var(--accent); }
.status-running::before { box-shadow: 0 0 0 .25rem rgba(57, 217, 138, .13); }
.status-failed::before { background: var(--danger); }
.status-stopping::before { background: var(--warning); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.card {
  border: 1px solid rgba(144, 166, 188, .17);
  border-radius: 18px;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(17, 36, 58, .88), rgba(9, 23, 39, .92));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-header p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.metric {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(7, 17, 31, .52);
  border: 1px solid rgba(144, 166, 188, .1);
}
.metric span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .35rem; }
.metric strong { font-size: 1.5rem; letter-spacing: -.035em; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  padding: .75rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(144, 166, 188, .11);
}
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts strong { text-align: right; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
label { display: block; color: var(--muted); font-size: .82rem; font-weight: 650; }
label span { display: block; margin-bottom: .42rem; }
input, select {
  width: 100%;
  color: var(--text);
  background: #081523;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: .72rem .8rem;
  outline: none;
}
input:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(32,184,216,.12); }
.check {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  padding-top: .25rem;
}
.check input { width: 1rem; height: 1rem; accent-color: var(--accent); }
.check span { margin: 0; }
.full { grid-column: 1 / -1; }
.actions { display: flex; gap: .7rem; align-items: center; margin-top: 1rem; }
.button {
  appearance: none;
  border: 0;
  border-radius: 11px;
  padding: .72rem 1rem;
  color: #04150e;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}
.button-danger { color: white; background: #a82f42; }
.button-small { padding: .5rem .72rem; font-size: .82rem; }
.alert {
  border: 1px solid rgba(255, 107, 122, .38);
  background: rgba(168, 47, 66, .15);
  color: #ffd9dd;
  border-radius: 12px;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
}
.notice {
  border: 1px solid rgba(255, 200, 87, .3);
  background: rgba(255, 200, 87, .08);
  color: #ffe8ac;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .88rem;
}
.login-layout { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(430px, 100%); }
.login-card h1 { font-size: 2.2rem; margin-top: 1rem; }
.login-card .field { margin-bottom: 1rem; }
.login-card .button { width: 100%; }
.fineprint { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: 1.2rem 0 0; }
code {
  color: #b6f8dc;
  background: rgba(7, 17, 31, .72);
  border: 1px solid rgba(144, 166, 188, .12);
  border-radius: 6px;
  padding: .1rem .35rem;
}
@media (max-width: 850px) {
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { display: block; }
  .hero .status { margin-top: 1rem; }
}
@media (max-width: 540px) {
  .shell { width: min(100% - 1.2rem, 1180px); }
  .top-actions > span { display: none; }
  .form-grid, .metric-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  main.shell { padding-top: 1.5rem; }
}
