:root {
  color-scheme: light;
  --bg: #f3efe8;
  --paper: #fffdf9;
  --ink: #1e1a17;
  --muted: #6f675e;
  --faint: #8a8176;
  --line: #e6dfd4;
  --line-strong: #d5cdc2;
  --teal: #135e64;
  --shadow: 0 1px 2px rgba(40, 32, 22, 0.04), 0 16px 40px rgba(40, 32, 22, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(900px 280px at 0% -10%, #e5f2f1 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC",
    "Source Han Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  margin: 8px 0 0;
  max-width: 38em;
  color: var(--muted);
}

.stats {
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stats p { margin: 0; }
.stats p + p { margin-top: 2px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
}

.chip span {
  min-width: 1.4rem;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.8);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chip.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.chip.is-active span {
  color: #fff;
  background: transparent;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.empty,
.notice {
  padding: 72px 28px;
  text-align: center;
}

.empty h2,
.notice h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.empty p,
.notice p {
  margin: 0 auto;
  max-width: 36em;
  color: var(--muted);
  word-break: keep-all;
}

.empty p + p,
.notice p + p { margin-top: 8px; }

.empty-kicker {
  margin-bottom: 8px !important;
  color: var(--teal) !important;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.notice-error h2 { color: #8d332b; }

.notice a,
.empty a,
td a {
  color: var(--teal);
  text-underline-offset: 2px;
}

.sort-note {
  margin: 0;
  padding: 14px 16px 0;
  color: var(--faint);
  font-size: 13px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

caption.sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: keep-all;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background: #faf7f2; }

.company,
.role {
  min-width: 8em;
  white-space: normal;
}

.company { font-weight: 650; }

.source,
.date,
.status,
.link {
  white-space: nowrap;
}

.date { font-variant-numeric: tabular-nums; }

.result {
  min-width: 6em;
  white-space: normal;
}

.notes {
  min-width: 12em;
  max-width: 22em;
  white-space: pre-wrap;
  word-break: break-word;
}

.table-wrap { overflow-x: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-applied { background: #e7eef6; color: #1c4f86; }
.badge-talking { background: #f8efd4; color: #8a5410; }
.badge-interview { background: #ece6f7; color: #5a348c; }
.badge-passed { background: #e4f3e8; color: #1b6a38; }
.badge-rejected { background: #f8e7e4; color: #8d332b; }
.badge-other { background: #eeeae4; color: #5c564e; }

.foot {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

.foot p { margin: 0; }

@media (max-width: 800px) {
  .wrap { padding: 28px 16px 48px; }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats { text-align: left; }
  h1 { font-size: 30px; }
  .empty, .notice { padding: 48px 18px; }
}
