/* Alum -- white cards on warm paper, one deep ink colour, a soft Hokie-orange
 * wash at the top of the page, inky controls with a little depth when they're
 * on, tinted status pills, big numbers over small-caps labels, big tap
 * targets. Icons are Lucide (stroke 1.75). Phones first; the grid widens to
 * three or four columns on bigger screens. */

@font-face {
  font-family: "Sentient";
  src: url("assets/fonts/Sentient-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sentient";
  src: url("assets/fonts/Sentient-VariableItalic.woff2") format("woff2");
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --ink: #16161d;
  --muted: #6a6a6a;
  --faint: #b0b0b0;
  --line: #ebebeb;
  --soft: #f1f0ec;
  --hover: #ecebe6;
  --accent: #16161d;
  --good: #0a8f4e;
  --warn: #b26b00;
  --bad: #c2185b;
  --orange: #e5751f;
  --maroon: #861f41;
  --hokie: #b8530c;
  --badge: #f5f0e6;
  --badge-ink: #6b5418;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.1);
  --rest: 0 1px 2px rgba(22, 22, 29, 0.04), 0 6px 20px rgba(22, 22, 29, 0.05);
  /* "On": a black key with a lit top edge, sitting on a soft shadow. */
  --press: linear-gradient(180deg, #34343e, #0e0e13);
  --press-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 14px rgba(22, 22, 29, 0.24);
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Sentient", Georgia, "Times New Roman", serif;
  --page: 1280px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }
/* The wash: Hokie orange and maroon, blurred out behind the search bar. */
body:not(.landing) { position: relative; }
body:not(.landing)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 460px;
  background:
    radial-gradient(38% 60% at 22% 18%, rgba(229, 117, 31, 0.5), transparent 70%),
    radial-gradient(34% 52% at 78% 8%, rgba(134, 31, 65, 0.3), transparent 70%),
    radial-gradient(30% 50% at 55% 40%, rgba(255, 186, 110, 0.32), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }

/* Top bar ------------------------------------------------------------ */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px max(20px, calc((100vw - var(--page)) / 2));
  background: rgba(246, 245, 242, 0.72);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(22, 22, 29, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { width: 38px; height: 39px; }
.brand span { font-size: 31px; font-weight: 700; letter-spacing: -0.02em; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }

/* Profile, on its own at the right: a white pill, the black key when open. */
.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 18px 0 6px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(22, 22, 29, 0.06), 0 0 0 1px rgba(22, 22, 29, 0.06);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms var(--ease);
}
.profile-pill .lucide { box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 999px; background: var(--soft); transition: background 200ms ease; }
.profile-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22, 22, 29, 0.1), 0 0 0 1px rgba(22, 22, 29, 0.06); }
.profile-pill[aria-pressed="true"] { background: var(--press); color: #fff; box-shadow: var(--press-shadow); transform: none; }
.profile-pill[aria-pressed="true"] .lucide { background: rgba(255, 255, 255, 0.14); }

/* The sliding switch: an ink track with a white pill that glides between
 * the two buttons. */
.switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 6px 18px rgba(22, 22, 29, 0.18);
}
.switch button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  transition: color 200ms ease;
}
.switch button:hover { color: #fff; }
.switch button[aria-selected="true"] { color: var(--ink); }
.switch-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 320ms var(--ease), opacity 200ms ease;
}
.switch[data-on="pro"] .switch-pill { transform: translateX(100%); }
/* On Profile neither tab is on: the pill fades out where it was. */
.switch[data-on="profile"] .switch-pill { opacity: 0; }

/* The Pro star: a four-point star in a turning Hokie-orange gradient, with a
 * small one that twinkles beside it. */
.pro-star { width: 22px; height: 22px; margin: -2px -2px -2px -4px; flex: none; overflow: visible; }
.pro-star-big, .pro-star-small { transform-box: fill-box; transform-origin: center; }
.pro-star-big { animation: star-breathe 3.2s var(--ease) infinite; }
.pro-star-small { animation: star-twinkle 3.2s ease-in-out infinite; }
.switch button:hover .pro-star-big { animation-duration: 1.2s; }
@keyframes star-breathe {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(45deg) scale(0.86); }
}
@keyframes star-twinkle {
  0%, 30%, 100% { opacity: 0.2; transform: scale(0.5); }
  55% { opacity: 1; transform: scale(1.15) rotate(90deg); }
}

/* Pro page: a placeholder until the plan is settled. */
.pro-hero { display: grid; justify-items: center; gap: 14px; max-width: 560px; margin: 72px auto 0; text-align: center; }
.pro-star-hero { width: 88px; height: 88px; filter: drop-shadow(0 10px 28px rgba(229, 117, 31, 0.45)); }
.pro-badge { padding: 4px 12px; border-radius: 999px; border: 1px solid #f6c9a0; background: #fff3e8; color: var(--hokie); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pro-hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.pro-hero p { margin: 0; color: var(--muted); font-size: 17px; }

.view { max-width: var(--page); margin: 0 auto; padding: 24px 20px 64px; }

/* Search ------------------------------------------------------------ */

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 8px auto 0;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(134, 31, 65, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.search > .lucide { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; font-size: 16px; }
.search input::placeholder { color: var(--muted); }

.round {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.round:hover { box-shadow: var(--shadow); }
.round.dark { background: var(--press); border: 0; color: #fff; box-shadow: var(--press-shadow); }
.round .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 999px; background: #ff385c; border: 2px solid #fff; }

/* Category row: one pill per category, icon beside label, so the gap
 * between them is the same however long the label. The active one is the
 * black key. The row scrolls sideways and fades out at the edges. */
.cats {
  display: flex;
  gap: 8px;
  margin: 22px -20px 0;
  padding: 4px 20px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 48px), transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 40px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(22, 22, 29, 0.06), 0 0 0 1px rgba(22, 22, 29, 0.05);
  color: #4a4a52;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms var(--ease);
}
.cat .lucide { width: 17px; height: 17px; }
.cat:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22, 22, 29, 0.1), 0 0 0 1px rgba(22, 22, 29, 0.05); }
.cat[aria-pressed="true"] { background: var(--press); color: #fff; font-weight: 600; box-shadow: var(--press-shadow); transform: none; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 16px; }
.bar p { margin: 0; color: var(--muted); font-size: 14px; }
.bar p b { color: var(--ink); }
.sort { display: flex; gap: 4px; }
.sort button { white-space: nowrap; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
.sort button:hover { background: var(--hover); }
.sort button[aria-pressed="true"] { background: var(--press); color: #fff; box-shadow: var(--press-shadow); }

/* Cards -------------------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.job {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--rest);
  cursor: pointer;
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease), border-color 240ms ease;
}
.job:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04), 0 18px 40px rgba(0, 0, 0, 0.12); }
.job:hover .logo { transform: scale(1.06); }
.job-top { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.job-co { min-width: 0; }
.job-co b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-co span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-co em { font-style: normal; }
/* Posted in the last day: a green dot that glows. */
.job-co em.new { color: var(--good); font-weight: 600; }
.job-co em.new::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 5px 1px 1px;
  border-radius: 999px;
  background: #2bd47d;
  box-shadow: 0 0 0 3px rgba(43, 212, 125, 0.18), 0 0 8px rgba(43, 212, 125, 0.8);
}
.job h3 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pay { padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; white-space: nowrap; }

.save {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--ink);
  transition: background 160ms ease, transform 160ms ease;
}
.save:hover { background: var(--hover); }
.save:active { transform: scale(0.9); }
.save.on .lucide { fill: #ff385c; stroke: #ff385c; }

.logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.logo { transition: transform 240ms var(--ease); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; opacity: 0; transition: opacity 200ms ease; }
.logo.has-img img { opacity: 1; }
.logo.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 19px; }

/* Big number, small-caps label. */
.hokie { min-width: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hokie b { margin-right: 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--hokie); }

/* What a posting asks for, on the card: clearance, citizens, grad window. */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid #e2e1dc; background: var(--soft); font-size: 12px; font-weight: 600; color: #4a4a52; white-space: nowrap; }
.tag .lucide { flex: none; width: 14px; height: 14px; }
.tag.clear { border-color: #c7cbf5; background: #eef0ff; color: #3b3fa8; }
.tag.no { border-color: #f6c1d6; background: #fff0f6; color: var(--bad); }
.job.out { opacity: 0.6; }
.job.out:hover { opacity: 1; }
.bar .link { font-size: inherit; color: var(--ink); }

/* Small pill buttons: "Alert me", "Fill from resume". */
.ghost.small, .secondary.small { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 999px; gap: 6px; }
.ghost.small .lucide { width: 15px; height: 15px; }
.bar #save-search { margin-left: auto; }

/* Account, radars, tracker details, resume review. */
.card-head .ghost.small { margin-left: auto; }
.signin { display: flex; gap: 12px; align-items: stretch; }
.signin .field { flex: 1; }
.signin .primary { height: auto; }
.sent { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-weight: 600; }
.sent.bad { color: var(--bad); }
.spin { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.review { margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.review h3 { margin: 0 0 6px; font-size: 15px; }
.pick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pick input { margin-top: 3px; accent-color: var(--ink); }
.fine-inline { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.saved-wrap { border-bottom: 1px solid var(--line); }
.saved-wrap:last-child { border-bottom: 0; }
.saved-wrap .saved { border-bottom: 0; }
.saved-text em { font-style: normal; color: var(--warn); font-weight: 600; }
.saved-text em.new { color: var(--good); }
.saved-more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 0 16px 56px; }
.saved-more .fine-inline, .saved-more .row-actions { grid-column: 1 / -1; margin: 0; }
.field textarea { width: 100%; border: 0; outline: 0; background: none; padding: 0; font: inherit; font-size: 15px; resize: vertical; }
.remove[aria-expanded="true"] .lucide { transform: rotate(180deg); }
.logo.radar { display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.logo.radar .lucide { width: 20px; height: 20px; }
.sheet.small { width: min(480px, 100%); }
.sheet .sub { margin-top: 0; }

/* Interview notes in a job's detail. */
.stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin: 6px 0 12px; }
.stat-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.stat span { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.notes { margin: 0 0 8px; padding: 0; list-style: none; }
.notes li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.notes li:last-child { border-bottom: 0; }
.notes p { margin: 4px 0 0; color: var(--ink); }
.notes em { font-style: normal; color: var(--muted); font-weight: 600; }
.note-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.note-head span { font-size: 13px; color: var(--muted); }

/* Who can apply, marked against the profile. */
.asks { margin: 0; padding: 0; list-style: none; }
.asks li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.asks li:last-child { border-bottom: 0; }
.asks .lucide { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.asks li.ok .lucide { color: var(--good); }
.asks li.warn .lucide { color: var(--warn); }
.asks li.no { color: var(--bad); }
.asks li.no .lucide { color: var(--bad); }
.asks b { font-weight: 800; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 64px 16px; color: var(--muted); }
.empty .lucide { width: 32px; height: 32px; }
.empty p { margin: 0; }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* Buttons ---------------------------------------------------------- */

.primary, .ghost, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background 160ms ease, transform 120ms ease;
}
.primary { background: var(--press); color: #fff; box-shadow: var(--press-shadow); }
.primary:hover { filter: brightness(1.25); }
.primary:active, .secondary:active { transform: scale(0.98); }
.ghost { border: 1px solid var(--ink); background: var(--card); }
.ghost:hover { background: var(--soft); }
.secondary { border: 1px solid var(--line); background: var(--card); }
.secondary:hover { background: var(--soft); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Modals: a centred sheet on desktop, a sheet from the bottom on phones. */

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  animation: fade 200ms ease both;
}
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: rise 280ms var(--ease) both;
}
.sheet-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 16px; text-align: center; }
.sheet-head .round { border: 0; }
.sheet-body { overflow-y: auto; padding: 24px; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-top: 1px solid var(--line); }
.close { position: absolute; top: 14px; right: 14px; z-index: 1; border: 0; background: var(--soft); }

/* Detail ------------------------------------------------------------- */

.d-head { display: flex; gap: 14px; align-items: center; padding-right: 44px; }
.d-head p { margin: 2px 0 0; color: var(--muted); }
.d-title { margin: 18px 0 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.d-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.d-actions .secondary { width: 48px; padding: 0; }
.d-actions .secondary.on .lucide { fill: #ff385c; stroke: #ff385c; }

.section { padding: 22px 0; border-top: 1px solid var(--line); }
.section:first-of-type { margin-top: 22px; }
.section h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 6px; }
.section > p { margin: 0 0 12px; color: var(--muted); }
.section .lucide { width: 20px; height: 20px; }
.stat { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; color: var(--hokie); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.pill b { margin-left: 4px; color: var(--muted); font-weight: 500; }
.titles { margin: 0; padding: 0; list-style: none; }
.titles li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.titles li:last-child { border-bottom: 0; }
.titles b { color: var(--muted); font-weight: 500; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.row-actions .secondary { height: 44px; padding: 0 16px; font-size: 14px; }
.fine { margin: 18px 0 0; font-size: 12px; color: var(--faint); }
.fine a { text-decoration: underline; }

/* Filters ------------------------------------------------------------ */

.f-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.f-group:first-child { padding-top: 0; }
.f-group:last-child { border-bottom: 0; }
.f-group h3 { font-size: 17px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 160ms ease, background 160ms ease;
}
.chip .lucide { width: 16px; height: 16px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: transparent; background: var(--press); color: #fff; box-shadow: var(--press-shadow); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0; cursor: pointer; }
.toggle small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.toggle input { appearance: none; flex: none; width: 48px; height: 30px; border-radius: 999px; background: var(--faint); position: relative; cursor: pointer; transition: background 200ms ease; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 200ms var(--ease); }
.toggle input:checked { background: var(--good); }
.toggle input:checked::after { transform: translateX(18px); }

/* Profile ------------------------------------------------------------ */

#profile { max-width: 760px; }

/* Profile header: avatar, name, one line about you. */
.me { display: flex; align-items: center; gap: 18px; margin: 12px 0 28px; }
.me-avatar { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 26px; font-weight: 600; }
.me-avatar .lucide { width: 28px; height: 28px; }
.me h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.me p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.me .link { font-size: inherit; color: var(--ink); }

/* Tracker tabs: quiet text tabs with a count; the active one is the black key. */
.seg { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 6px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button span { font-size: 12px; color: var(--faint); }
.seg button:hover { background: var(--hover); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--press); color: #fff; box-shadow: var(--press-shadow); }
.seg button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.6); }

.card { padding: 28px; margin-bottom: 20px; border-radius: 24px; background: var(--card); box-shadow: var(--rest); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 22px; }
.card h3 { margin: 24px 0 12px; font-size: 15px; }
.sub { margin: 6px 0 20px; color: var(--muted); }
.saved-note { font-size: 13px; color: var(--good); font-weight: 500; transition: opacity 400ms ease; }
.count { color: var(--muted); font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field.wide { grid-column: 1 / -1; }
.sub.small { margin: 10px 0 0; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 14px; border: 1px solid var(--faint); border-radius: var(--radius); }
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field span { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; min-width: 0; border: 0; outline: 0; background: none; padding: 0; font-size: 16px; }

.saved { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.saved-text { transition: opacity 160ms ease; }
.saved-text:hover b { text-decoration: underline; text-underline-offset: 3px; }
.saved:last-child { border-bottom: 0; }
.saved-text { flex: 1; min-width: 0; cursor: pointer; }
.saved-text b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-text span { font-size: 13px; color: var(--muted); }
.status { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; }
.status { font-weight: 600; }
.status[data-v="Applied"] { border-color: #c7cbf5; background: #eef0ff; color: #3b3fa8; }
.status[data-v="Interviewing"] { border-color: #f7d79a; background: #fff7e6; color: #946200; }
.status[data-v="Offer"] { border-color: #a9e8c6; background: #ebfbf2; color: #0a7a43; }
.status[data-v="Rejected"] { color: var(--muted); }
.remove { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: var(--muted); }
.remove:hover { background: var(--hover); color: var(--ink); }
.none { display: grid; justify-items: center; gap: 10px; padding: 28px 0 8px; color: var(--muted); text-align: center; }
.none > .lucide { box-sizing: content-box; width: 22px; height: 22px; padding: 14px; border-radius: 18px; background: var(--soft); color: var(--ink); }
.none p { max-width: 360px; }
.none p { margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--press);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--press-shadow);
  animation: rise 240ms var(--ease) both;
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.toast { animation-name: toastIn; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Phones ------------------------------------------------------------- */

@media (max-width: 720px) {
  .lag { display: none; }
  .bar { flex-wrap: wrap; }
  .bar #save-search { margin-left: 0; }
  .signin { flex-direction: column; }
  .signin .primary { height: 48px; }
  .saved-more { grid-template-columns: 1fr; padding-left: 0; }
  .top { padding: 12px 16px; }
  .top { grid-template-columns: auto 1fr auto; gap: 10px; }
  #updated { display: none; }
  .switch { justify-self: center; }
  .profile-pill { height: 42px; padding: 0 4px; }
  .profile-pill span { display: none; }
  .switch button { padding: 0 14px; height: 34px; font-size: 14px; }
  .view { padding: 16px 16px 48px; }
  .search { padding-left: 16px; }
  .cats { margin: 16px -16px 0; padding: 4px 16px 8px; }
  .grid { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end stretch; }
  .sheet { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; animation-name: up; }
  @keyframes up { from { transform: translateY(100%); } }
  .sheet-body { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  /* Tracker rows: the status pill drops under the title so the title has room. */
  .saved { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 8px; }
  .saved .status { grid-column: 2; grid-row: 2; justify-self: start; }
  .saved .remove { grid-column: 3; grid-row: 1; }
}
@media (max-width: 420px) {
  .switch button .lucide { display: none; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
