:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1e2933;
  --muted: #6b7785;
  --line: #dce3ea;
  --blue: #2563eb;
  --teal: #0f766e;
  --amber: #b45309;
  --red: #b91c1c;
  --shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e8f2ff;
  color: var(--blue);
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.25;
}

.brand p,
.summary small,
.stats small,
label span {
  color: var(--muted);
}

.brand p {
  margin-top: 3px;
  font-size: 13px;
}

.summary {
  min-width: 132px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: right;
}

.summary span {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 22px auto 48px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(132px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label span {
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5df;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 11px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 1px;
}

button {
  min-height: 40px;
  border: 1px solid #cbd5df;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}

button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.stats div {
  min-height: 76px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats span {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.table-wrap {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 75px;
  z-index: 5;
  background: #f9fbfd;
  color: #3f4b59;
  font-size: 13px;
}

th:nth-child(1),
td:nth-child(1) {
  width: 18%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 29%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 18%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 12%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 12%;
}

th:nth-child(6),
td:nth-child(6) {
  width: 11%;
}

td {
  font-size: 14px;
  line-height: 1.55;
}

.company {
  font-weight: 750;
}

.muted {
  color: var(--muted);
}

.tagline {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef6f5;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.row-action {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--amber);
  font-weight: 700;
  cursor: pointer;
}

.card-list {
  display: none;
}

.empty-state {
  padding: 42px 16px;
  color: var(--muted);
  text-align: center;
}

dialog {
  width: min(760px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.detail {
  position: relative;
  padding: 24px;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 22px;
}

.detail-kicker {
  padding-right: 44px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.detail h2 {
  margin-top: 7px;
  padding-right: 44px;
  font-size: 24px;
}

.detail p {
  margin-top: 8px;
  color: var(--muted);
}

.detail dl {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 10px 14px;
  margin: 20px 0 0;
}

.detail dt {
  color: var(--muted);
  font-weight: 700;
}

.detail dd {
  margin: 0;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 7px;
  background: #e8f2ff;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .summary {
    min-width: 96px;
    padding: 8px 10px;
  }

  h1 {
    font-size: 19px;
  }

  main {
    width: calc(100% - 20px);
    margin-top: 12px;
  }

  .filters,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .search-box,
  #resetBtn {
    grid-column: 1 / -1;
  }

  table {
    display: none;
  }

  .card-list {
    display: grid;
    gap: 0;
  }

  .job-card {
    padding: 15px;
    border-bottom: 1px solid #eef2f6;
  }

  .job-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
  }

  .job-card p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
  }

  .detail {
    padding: 20px;
  }

  .detail dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
