:root {
  --bg: #f3efe5;
  --ink: #172432;
  --muted: #5a6670;
  --panel: rgba(255, 250, 240, 0.88);
  --line: rgba(23, 36, 50, 0.12);
  --accent: #bf4f2d;
  --accent-2: #0f6d5f;
  --warn: #af7a16;
  --shadow: 0 18px 50px rgba(23, 36, 50, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(191, 79, 45, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15, 109, 95, 0.18), transparent 26%),
    linear-gradient(180deg, #f6f0e3 0%, #ece6da 100%);
  font-family: "Segoe UI", "Aptos", sans-serif;
  min-height: 100vh;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.45;
  pointer-events: none;
}
.ambient-a { top: -4rem; right: -6rem; background: rgba(191, 79, 45, 0.22); }
.ambient-b { bottom: -6rem; left: -4rem; background: rgba(15, 109, 95, 0.18); }

.topbar, .nav, .shell { position: relative; z-index: 1; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 2rem 2rem 1rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 0.78rem;
}

.brand {
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0 2rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.82);
  backdrop-filter: blur(10px);
}

.nav a, .link-button {
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.shell {
  padding: 0 2rem 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.panel.inset {
  background: rgba(255, 255, 255, 0.72);
}

.wide { max-width: 1100px; }
.hero { display: flex; justify-content: center; }
.grid {
  display: grid;
  gap: 1.2rem;
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stack { display: grid; gap: 0.5rem; }

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input, select, textarea, button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.85rem 0.95rem;
  font: inherit;
}

button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.callout {
  padding: 0.95rem;
  border-left: 4px solid var(--accent);
  background: rgba(191, 79, 45, 0.08);
  border-radius: 12px;
}

.callout-good {
  border-left-color: var(--accent-2);
  background: rgba(15, 109, 95, 0.08);
}

.callout-warn {
  border-left-color: var(--warn);
  background: rgba(175, 122, 22, 0.12);
}

.lead {
  color: var(--muted);
  max-width: 70ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 36, 50, 0.08);
  color: var(--ink);
  font-size: 0.85rem;
}
.pill-good { background: rgba(15, 109, 95, 0.14); color: var(--accent-2); }
.pill-warn { background: rgba(175, 122, 22, 0.14); color: var(--warn); }
.status-cluster { display: flex; gap: 0.5rem; flex-wrap: wrap; }

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 16px;
  background: #1d2530;
  color: #edf4f7;
  min-height: 7rem;
}

.job-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.5);
}
.job-top, .job-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

ul {
  padding-left: 1.25rem;
}

@media (max-width: 720px) {
  .topbar, .shell { padding-left: 1rem; padding-right: 1rem; }
  .nav { margin-left: 1rem; margin-right: 1rem; border-radius: 22px; }
}
