:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #10141c;
  --panel-strong: #171d27;
  --text: #f3f7fb;
  --muted: #9aa7b6;
  --line: #27303d;
  --accent: #61d394;
  --accent-strong: #94f7c0;
  --amber: #f4c96b;
  --red: #ff7a90;
  --shadow: 0 18px 55px rgb(0 0 0 / 32%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgb(97 211 148 / 16%), transparent 32rem),
    linear-gradient(180deg, #0c1018 0%, var(--bg) 34rem);
  color: var(--text);
}

a {
  color: inherit;
}

button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

code {
  color: var(--accent-strong);
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.topbar__links {
  display: flex;
  gap: 18px;
}

.brand {
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.hero {
  padding: 52px 0 44px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats div {
  min-width: 0;
  padding: 20px;
  background: rgb(16 20 28 / 88%);
}

.stats strong {
  display: block;
  font-size: 1.85rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 14px 0 18px;
  background: rgb(8 10 15 / 88%);
  backdrop-filter: blur(14px);
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 0 56px;
}

.job-card {
  display: flex;
  min-height: 348px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  padding: 20px;
  box-shadow: 0 12px 34px rgb(0 0 0 / 22%);
}

.job-card__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.company {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 750;
}

h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}

.pill {
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pill--open {
  color: var(--accent-strong);
}

.pill--inactive,
.pill--closed {
  color: var(--red);
}

.job-meta {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.job-meta div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.job-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: #07100b;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
}

.admin-hero {
  padding-bottom: 28px;
}

.admin-toolbar {
  grid-template-columns: 1fr 170px 220px 170px;
  align-items: end;
}

.admin-grid {
  display: grid;
  gap: 14px;
  padding: 16px 0 56px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  padding: 18px;
  box-shadow: 0 12px 34px rgb(0 0 0 / 22%);
}

.admin-card__head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-id {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.admin-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-weight: 750;
}

.admin-check span {
  margin: 0;
  color: var(--text);
}

.admin-check--toolbar {
  min-height: 44px;
  align-items: center;
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 170px minmax(180px, 0.6fr);
  gap: 12px;
  margin-top: 18px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .stats,
  .job-grid,
  .toolbar,
  .admin-toolbar,
  .admin-form {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar label:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    padding-top: 30px;
  }

  .stats,
  .job-grid,
  .toolbar,
  .admin-toolbar,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .job-card {
    min-height: 0;
  }
}
