:root {
  color-scheme: light;
  --ink: #13213c;
  --muted: #64748b;
  --line: #dce3ed;
  --surface: #ffffff;
  --soft: #f3f6fa;
  --navy: #101d3a;
  --blue: #2457d6;
  --blue-dark: #173fa8;
  --green: #11875d;
  --amber: #b86800;
  --red: #c82e40;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--soft); color: var(--ink); min-height: 100vh; }
button, input, textarea { font: inherit; }
button { border: 0; border-radius: 10px; padding: 11px 17px; background: var(--blue); color: white; font-weight: 750; cursor: pointer; }
button:hover { background: var(--blue-dark); }
button:disabled { opacity: .55; cursor: wait; }
button.ghost { background: #e9eef6; color: var(--ink); }
button.ghost:hover { background: #dce5f2; }
.icon-button { width: 38px; height: 38px; padding: 0; border-radius: 50%; background: #edf1f7; color: var(--ink); font-size: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg,#2e66f0,#142f80); color: white; font-weight: 900; letter-spacing: -.5px; box-shadow: 0 8px 18px #2457d633; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 45px #20314d12; }
.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at top left,#dfe9ff,transparent 42%),var(--soft); }
.login-card { width: min(430px,100%); padding: 34px; }
.login-card h1 { margin: 34px 0 8px; font-size: 30px; }
.login-card p { color: var(--muted); line-height: 1.55; margin: 0 0 24px; }
label { display: grid; gap: 7px; margin-bottom: 15px; color: #334155; font-size: 14px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; background: white; color: var(--ink); outline: none; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #2457d620; }
.login-card > button { width: 100%; margin-top: 5px; }
.error { color: var(--red); min-height: 22px; margin-top: 12px; font-size: 14px; white-space: pre-wrap; }
header { height: 74px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px,calc((100vw - 1180px)/2)); position: sticky; top: 0; z-index: 10; }
.header-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.workspace { width: min(1180px,calc(100% - 40px)); margin: 36px auto 70px; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.hero h1 { margin: 7px 0 8px; font-size: clamp(28px,4vw,42px); letter-spacing: -1.3px; }
.hero p, .section-title p { margin: 0; color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 900; letter-spacing: 1.4px; color: var(--blue); }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stats article { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 20px; }
.stats span, .stats strong { display: block; }
.stats span { color: var(--muted); font-size: 13px; }
.stats strong { font-size: 30px; margin-top: 7px; }
.table-card { overflow: hidden; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; }
.section-title h2 { margin: 4px 0; font-size: 20px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th,td { text-align: left; padding: 16px 18px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; background: #fbfcfe; }
td strong,td small { display: block; }
td small { color: var(--muted); margin-top: 3px; }
td a { color: var(--blue); text-decoration: none; }
td a:hover { text-decoration: underline; }
.empty { text-align: center; color: var(--muted); padding: 36px; }
.status { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 800; background: #e8edf5; color: #506079; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.running,.status.active { background: #e0f5ec; color: var(--green); }
.status.error,.status.missing { background: #fde8eb; color: var(--red); }
.status.provisioning { background: #fff0d8; color: var(--amber); }
.row-actions { display: flex; gap: 7px; }
.row-actions button { padding: 7px 10px; font-size: 12px; }
dialog { border: 0; padding: 0; border-radius: 20px; width: min(760px,calc(100% - 30px)); box-shadow: 0 30px 100px #0b163b55; }
dialog::backdrop { background: #08133099; backdrop-filter: blur(3px); }
.dialog-card { padding: 8px 26px 24px; }
.dialog-card.compact { padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.form-grid .wide { grid-column: 1/-1; }
.dialog-card footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 14px; margin: 22px 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 800; word-break: break-all; }

@media (max-width: 700px) {
  header { padding: 0 16px; }
  .header-actions span { display: none; }
  .workspace { width: min(100% - 24px,1180px); margin-top: 22px; }
  .hero { align-items: stretch; flex-direction: column; }
  .hero button { align-self: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .login-card { padding: 26px 22px; }
}
