:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --surface-blue: #f2f6ff;
  --text: #172033;
  --text-soft: #667085;
  --text-faint: #98a2b3;
  --line: #e6eaf0;
  --line-strong: #d8dee9;
  --primary: #3e6fe8;
  --primary-dark: #2f5dca;
  --primary-soft: #eaf0ff;
  --green: #1a9b71;
  --green-soft: #e8f8f2;
  --orange: #d97706;
  --orange-soft: #fff4e5;
  --purple: #7a5bd7;
  --purple-soft: #f1edff;
  --red: #d14343;
  --red-soft: #fff0f0;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 12px 34px rgba(30, 50, 90, 0.09);
  --shadow-lg: 0 24px 60px rgba(30, 50, 90, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --sidebar-width: 244px;
  font-family:
    Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 86% -10%, rgba(85, 126, 239, 0.07), transparent 32%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 9px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 5px;
}

.hidden {
  display: none !important;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--text-soft);
  background: var(--bg);
}

.boot-screen p {
  margin: 18px 0 0;
  font-size: 14px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 28px;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #547ff1, #315fd7);
  box-shadow: 0 9px 22px rgba(62, 111, 232, 0.23);
  font-size: 17px;
  font-weight: 800;
}

.brand-mark--large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 24px;
}

.brand strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand small,
.account-copy small {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 12px;
  color: #596579;
  font-size: 14px;
  font-weight: 570;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.nav-item:hover {
  color: var(--text);
  background: #f4f7fb;
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 680;
}

.nav-icon {
  display: grid;
  width: 22px;
  place-content: center;
  font-size: 19px;
  font-weight: 500;
}

.nav-count {
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 11px;
  line-height: 21px;
  text-align: center;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #deeee8;
  border-radius: 13px;
  background: #f3fbf7;
}

.privacy-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 5px;
  border: 2px solid #d6f4e8;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 155, 113, 0.1);
}

.privacy-card strong,
.privacy-card small {
  display: block;
}

.privacy-card strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.privacy-card small {
  color: #73847d;
  font-size: 10px;
  line-height: 1.5;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 72px;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(22px, 4vw, 48px);
  border-bottom: 1px solid rgba(230, 234, 240, 0.88);
  background: rgba(246, 248, 252, 0.84);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.global-search {
  display: flex;
  width: min(440px, 45vw);
  height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #edf1f7;
  color: var(--text-faint);
  transition:
    border-color 150ms,
    background 150ms,
    box-shadow 150ms;
}

.global-search:focus-within {
  border-color: rgba(62, 111, 232, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62, 111, 232, 0.09);
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.global-search input::placeholder {
  color: #98a1b0;
}

kbd {
  padding: 2px 6px;
  border: 1px solid #d7dde6;
  border-radius: 5px;
  color: #8c96a7;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 10px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  cursor: pointer;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #6c7687;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 20px;
  transition: 150ms ease;
}

.icon-button:hover {
  border-color: #cfd8e7;
  color: var(--primary);
  transform: translateY(-1px);
}

.icon-button.is-loading,
.button.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.icon-button.is-loading {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.account-button {
  display: flex;
  min-width: 118px;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 5px;
  cursor: pointer;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
}

.account-button:hover {
  background: rgba(255, 255, 255, 0.75);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-content: center;
  border-radius: 11px;
  color: #2c58bd;
  background: #dfe9ff;
  font-size: 13px;
  font-weight: 800;
}

.account-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 38px clamp(22px, 4vw, 48px) 80px;
}

.page {
  display: none;
  animation: page-in 180ms ease-out;
}

.page.active {
  display: block;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-heading {
  display: flex;
  min-height: 80px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.page-heading--home {
  margin-bottom: 24px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.subtle {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 16px rgba(62, 111, 232, 0.18);
}

.button--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 9px 20px rgba(62, 111, 232, 0.24);
}

.button--secondary {
  border-color: var(--line);
  color: #4f5d72;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button--secondary:hover {
  border-color: #ced7e5;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(30, 50, 90, 0.07);
}

.button--ghost {
  color: var(--primary);
  background: var(--primary-soft);
}

.button--danger-soft {
  border-color: #f1d2d2;
  color: var(--red);
  background: var(--red-soft);
}

.button--full {
  width: 100%;
}

.text-button {
  padding: 4px;
  cursor: pointer;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.text-button:hover {
  color: var(--primary-dark);
}

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #dce5fb;
  border-radius: 14px;
  background: #f3f6ff;
}

.demo-banner strong {
  display: block;
  margin-bottom: 2px;
  color: #315cbf;
  font-size: 13px;
}

.demo-banner p {
  margin: 0;
  color: #65759a;
  font-size: 11px;
  line-height: 1.5;
}

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

.stat-card {
  display: flex;
  min-height: 98px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-content: center;
  border-radius: 13px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
}

.stat-icon--green {
  color: var(--green);
  background: var(--green-soft);
}

.stat-icon--orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.stat-icon--purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card div > span {
  color: var(--text-soft);
  font-size: 11px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 0.75fr);
  gap: 18px;
}

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

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 15px;
}

.panel-heading p,
.section-heading p {
  margin: 0;
  color: var(--text-faint);
  font-size: 11px;
}

.job-list {
  display: flex;
  flex-direction: column;
}

.job-list--compact {
  padding: 0 10px 10px;
}

.job-list--full {
  gap: 10px;
}

.job-card {
  position: relative;
  display: grid;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--surface);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.job-card--compact {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 14px 12px;
  border-radius: 12px;
}

.job-card--compact + .job-card--compact {
  border-top-color: var(--line);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.job-card--compact:hover {
  z-index: 1;
  border-color: #dce4f1;
  background: #fbfcff;
}

.job-card--full {
  grid-template-columns: auto minmax(260px, 1.5fr) minmax(210px, 0.85fr) minmax(180px, 0.65fr) auto;
  min-height: 116px;
  padding: 18px 20px;
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.job-card--full:hover {
  border-color: #ccd8ef;
  box-shadow: 0 9px 24px rgba(42, 66, 112, 0.08);
  transform: translateY(-1px);
}

.job-rank {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-content: center;
  border-radius: 13px;
  color: #fff;
  background: #738096;
  box-shadow: 0 5px 13px rgba(70, 83, 108, 0.16);
  font-size: 16px;
  font-weight: 800;
}

.rank-S {
  background: linear-gradient(145deg, #4c77ed, #315dcc);
  box-shadow: 0 6px 15px rgba(62, 111, 232, 0.22);
}

.rank-A {
  background: linear-gradient(145deg, #2fb38b, #178862);
}

.rank-B {
  background: linear-gradient(145deg, #7f65d8, #6345bd);
}

.rank-C {
  background: linear-gradient(145deg, #e3973e, #c6721b);
}

.rank-stretch {
  color: #667085;
  background: #edf0f4;
  box-shadow: none;
  font-size: 10px;
}

.job-main {
  min-width: 0;
}

.job-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.job-title {
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-company {
  overflow: hidden;
  margin: 0 0 4px;
  color: #515d70;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--text-faint);
  font-size: 10px;
}

.job-meta span {
  position: relative;
}

.job-meta span + span::before {
  position: absolute;
  left: -7px;
  color: #d0d5dd;
  content: "·";
}

.job-pay {
  min-width: 108px;
  color: var(--text);
  text-align: right;
}

.job-pay strong {
  display: block;
  margin-bottom: 5px;
  color: #e16b28;
  font-size: 13px;
}

.job-pay span {
  color: var(--text-faint);
  font-size: 10px;
}

.job-reasons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #5e6a7d;
  font-size: 11px;
  line-height: 1.4;
}

.job-reasons span {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.job-reasons span::before {
  color: var(--green);
  content: "✓";
  font-weight: 700;
}

.job-reasons .verify::before {
  color: var(--orange);
  content: "!";
}

.job-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--text-soft);
  font-size: 10px;
}

.job-score strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.job-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.favorite-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-content: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #9aa3b1;
  background: #fff;
  font-size: 17px;
}

.favorite-button.active {
  border-color: #f0d7a7;
  color: #d89216;
  background: #fff9eb;
}

.badge {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 6px;
  color: #596579;
  background: #eef1f5;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.badge--blue {
  color: #315fc8;
  background: #eaf0ff;
}

.badge--green {
  color: #137b58;
  background: #e7f7f1;
}

.badge--orange {
  color: #b7650b;
  background: #fff1dd;
}

.badge--red {
  color: #ba3c3c;
  background: #ffeded;
}

.badge--purple {
  color: #6747bd;
  background: #f0ebff;
}

.badge--outline {
  border: 1px solid var(--line-strong);
  background: transparent;
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 9px 4px;
}

.skeleton-list span {
  display: block;
  height: 62px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f2f4f7 20%, #f8f9fb 50%, #f2f4f7 80%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.deadline-panel {
  min-height: 400px;
}

.timeline-mini {
  display: flex;
  flex-direction: column;
  padding: 3px 20px 18px;
}

.timeline-mini-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  min-height: 70px;
  padding-bottom: 12px;
}

.timeline-mini-item::before {
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 17px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-mini-item:last-child::before {
  display: none;
}

.timeline-time {
  display: grid;
  width: 34px;
  height: 34px;
  place-content: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.timeline-mini-item strong {
  display: block;
  margin: 3px 0 4px;
  font-size: 11px;
  line-height: 1.35;
}

.timeline-mini-item p {
  margin: 0;
  color: var(--text-faint);
  font-size: 9px;
}

.empty-inline {
  padding: 28px 15px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #edf1f6;
}

.segmented button {
  min-height: 31px;
  padding: 0 11px;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  color: #768195;
  background: transparent;
  font-size: 11px;
  font-weight: 620;
}

.segmented button.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 4px rgba(30, 50, 90, 0.09);
}

.filter-spacer {
  flex: 1;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition:
    border-color 140ms,
    box-shadow 140ms;
}

select,
input {
  height: 40px;
  padding: 0 11px;
}

textarea {
  min-height: 84px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(62, 111, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 111, 232, 0.09);
}

.filter-bar select {
  width: auto;
  min-width: 126px;
  height: 36px;
  border-color: transparent;
  background: #f2f4f7;
  font-size: 11px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 5px;
  color: var(--text-soft);
  font-size: 11px;
  white-space: nowrap;
}

.checkbox-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.empty-state {
  padding: 60px 20px;
  color: var(--text-soft);
  text-align: center;
}

.empty-state h3 {
  color: var(--text);
  font-size: 16px;
}

.empty-state p {
  margin: 0;
  font-size: 12px;
}

.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  place-content: center;
  border-radius: 17px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 24px;
}

.application-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.application-summary-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.application-summary-card strong,
.application-summary-card span {
  display: block;
}

.application-summary-card strong {
  margin-bottom: 5px;
  font-size: 20px;
}

.application-summary-card span {
  color: var(--text-soft);
  font-size: 11px;
}

.table-panel {
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.table-toolbar p {
  margin: 0;
  color: var(--text-faint);
  font-size: 11px;
}

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

.data-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th {
  padding: 12px 14px;
  color: var(--text-faint);
  background: #fafbfd;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 14px;
  border-top: 1px solid var(--line);
  color: #596579;
  vertical-align: middle;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 120ms;
}

.data-table tbody tr:hover {
  background: #fbfcff;
}

.table-primary strong,
.table-primary span {
  display: block;
}

.table-primary strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
}

.table-primary span {
  max-width: 310px;
  overflow: hidden;
  color: var(--text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-select {
  width: 126px;
  height: 34px;
  border: 0;
  background: var(--primary-soft);
  color: #315fc8;
  font-size: 10px;
  font-weight: 650;
}

.row-action {
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.public-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
  padding: 22px 24px;
  background:
    linear-gradient(110deg, rgba(237, 243, 255, 0.9), rgba(255, 255, 255, 0.95)),
    #fff;
}

.profile-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.public-profile h2 {
  margin-bottom: 7px;
}

.public-profile p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.tag-cloud {
  display: flex;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.tag-cloud span {
  padding: 7px 10px;
  border: 1px solid #d9e4fc;
  border-radius: 999px;
  color: #4f68a2;
  background: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

.process-strip {
  display: flex;
  overflow-x: auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.process-strip span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  color: #566176;
  background: #f2f4f7;
  font-size: 10px;
  font-weight: 650;
}

.process-strip i {
  width: 19px;
  height: 1px;
  flex: 0 0 auto;
  background: #ccd4df;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 12px;
}

.public-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-card {
  padding: 19px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition:
    border-color 130ms,
    transform 130ms;
}

.public-card:hover {
  border-color: #cdd9ee;
  transform: translateY(-1px);
}

.public-card-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.public-card h3 {
  font-size: 14px;
}

.public-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.public-progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
}

.public-progress span {
  height: 5px;
  border-radius: 999px;
  background: #e8ebf0;
}

.public-progress span.done {
  background: var(--primary);
}

.privacy-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #dbeee7;
  border-radius: 14px;
  background: #f2faf7;
}

.privacy-notice--small {
  margin: 15px 0 0;
  padding: 10px 12px;
}

.privacy-lock {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-content: center;
  border-radius: 11px;
  color: var(--green);
  background: #ddf5ec;
  font-weight: 800;
}

.privacy-notice strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.privacy-notice p {
  margin: 0;
  color: #6b7c75;
  font-size: 10px;
  line-height: 1.5;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 12px 12px;
}

.suggestion-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfe;
}

.suggestion-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.suggestion-source {
  display: flex;
  align-items: center;
  gap: 9px;
}

.suggestion-source-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-content: center;
  border-radius: 10px;
  color: #315fc8;
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 800;
}

.suggestion-source strong,
.suggestion-source span {
  display: block;
}

.suggestion-source strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.suggestion-source span {
  color: var(--text-faint);
  font-size: 9px;
}

.confidence {
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
}

.suggestion-summary {
  margin: 0 0 11px;
  color: #576477;
  font-size: 11px;
  line-height: 1.65;
}

.matched-application {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #4c5f8d;
  background: #eef3ff;
  font-size: 10px;
}

.suggestion-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.manual-recognition {
  position: sticky;
  top: 92px;
  padding-bottom: 18px;
}

form label,
.settings-card > label {
  display: block;
  margin-bottom: 13px;
}

form label > span,
.settings-card > label > span {
  display: block;
  margin-bottom: 6px;
  color: #596579;
  font-size: 10px;
  font-weight: 650;
}

.manual-recognition form {
  padding: 0 20px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 20px 13px;
  color: var(--text-faint);
  font-size: 9px;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.manual-recognition > .button {
  width: calc(100% - 40px);
  margin: 0 20px;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.resume-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.resume-card::after {
  position: absolute;
  top: -55px;
  right: -45px;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: var(--primary-soft);
  content: "";
}

.resume-card:nth-child(2)::after {
  background: var(--green-soft);
}

.resume-card:nth-child(3)::after {
  background: var(--orange-soft);
}

.resume-card:nth-child(4)::after {
  background: var(--purple-soft);
}

.resume-page-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 43px;
  height: 52px;
  margin-bottom: 20px;
  place-content: center;
  border: 1px solid #dbe3f2;
  border-radius: 8px 8px 11px 8px;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 7px 15px rgba(40, 64, 110, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.resume-card h3 {
  font-size: 15px;
  line-height: 1.4;
}

.resume-card p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.55;
}

.resume-file-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.resume-card-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
}

.resume-card-actions .button {
  min-height: 35px;
  flex: 1;
  padding: 0 10px;
  font-size: 10px;
}

.resume-policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.resume-policy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.resume-policy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
}

.policy-date {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 9px;
  color: #b3680e;
  background: var(--orange-soft);
  font-size: 10px;
  font-weight: 650;
}

.source-status {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
  padding: 16px 18px;
}

.status-pulse {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.status-pulse::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(26, 155, 113, 0.28);
  border-radius: 50%;
  content: "";
}

.source-status.running .status-pulse::after {
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  70%,
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.source-status strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.source-status p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
}

.source-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.source-toolbar h2 {
  margin: 0;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.source-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.source-card h3 {
  margin-bottom: 4px;
  font-size: 12px;
}

.source-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.55;
}

.source-url {
  display: block;
  overflow: hidden;
  margin: 8px 0;
  color: var(--primary);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 9px;
}

.switch {
  position: relative;
  display: inline-flex !important;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0 !important;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #d7dce5;
  transition: background 150ms;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 35, 60, 0.2);
  content: "";
  transition: transform 150ms;
}

.switch input:checked + span {
  background: var(--primary);
}

.switch input:checked + span::after {
  transform: translateX(16px);
}

.settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
}

.settings-card {
  padding: 20px;
}

.settings-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.settings-card-heading > div {
  flex: 1;
}

.settings-card-heading h2 {
  margin-bottom: 4px;
}

.settings-card-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.5;
}

.settings-icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-content: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
}

.settings-icon--green {
  color: var(--green);
  background: var(--green-soft);
}

.settings-icon--orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.settings-icon--purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.form-grid--two {
  margin-top: 18px;
}

.span-two {
  grid-column: 1 / -1;
}

label small {
  display: block;
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 9px;
}

.pairing-box,
.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.pairing-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfd;
}

.pairing-box span,
.pairing-box strong,
.notification-row strong,
.notification-row p {
  display: block;
}

.pairing-box span {
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 9px;
}

.pairing-box strong,
.notification-row strong {
  font-size: 11px;
}

.form-hint {
  margin: 10px 0 0;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.55;
}

.connection-result {
  margin: 10px 0 0;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.55;
}

.connection-result.success {
  color: var(--green);
}

.connection-result.error {
  color: var(--red);
}

.notification-row {
  margin: 14px 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notification-row p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 9px;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: #596579;
  font-size: 10px;
}

.privacy-list span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  place-content: center;
  border-radius: 6px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 800;
}

.settings-savebar {
  position: sticky;
  z-index: 4;
  bottom: 16px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 15px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.settings-savebar p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
}

dialog {
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
}

dialog::backdrop {
  background: rgba(20, 30, 49, 0.36);
  backdrop-filter: blur(3px);
}

.auth-dialog {
  width: min(430px, calc(100vw - 30px));
  border-radius: var(--radius-lg);
}

.auth-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(77, 116, 221, 0.18), transparent 35%),
    rgba(244, 247, 252, 0.96);
  backdrop-filter: blur(15px);
}

.auth-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.auth-card .brand-mark {
  margin-bottom: 24px;
}

.auth-card h1 {
  font-size: 26px;
}

.auth-card > p:not(.eyebrow, .form-error) {
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.65;
}

.form-error {
  margin: -2px 0 12px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 10px;
}

.drawer-dialog {
  width: min(620px, 100vw);
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0 0 0 auto;
}

.drawer {
  position: relative;
  min-height: 100%;
  padding: 34px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -15px 0 50px rgba(25, 39, 65, 0.13);
}

.drawer-dialog[open] .drawer {
  animation: drawer-in 180ms ease-out;
}

@keyframes drawer-in {
  from {
    transform: translateX(30px);
  }
  to {
    transform: translateX(0);
  }
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  cursor: pointer;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #748094;
  background: #fff;
  font-size: 19px;
}

.drawer-header {
  padding-right: 44px;
}

.drawer-header .job-rank {
  margin-bottom: 18px;
}

.drawer-header h1 {
  font-size: 25px;
}

.drawer-company {
  margin-bottom: 13px;
  color: #546175;
  font-size: 13px;
}

.drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.drawer-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.drawer-section h2 {
  margin-bottom: 12px;
  font-size: 14px;
}

.drawer-section p {
  color: #566176;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-item {
  padding: 12px;
  border-radius: 11px;
  background: #f7f9fc;
}

.detail-item span,
.detail-item strong {
  display: block;
}

.detail-item span {
  margin-bottom: 5px;
  color: var(--text-faint);
  font-size: 9px;
}

.detail-item strong {
  font-size: 11px;
  line-height: 1.45;
}

.analysis-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-list li {
  display: flex;
  gap: 9px;
  color: #536076;
  font-size: 11px;
  line-height: 1.55;
}

.analysis-list li::before {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-content: center;
  border-radius: 6px;
  color: var(--green);
  background: var(--green-soft);
  content: "✓";
  font-size: 9px;
  font-weight: 800;
}

.analysis-list--verify li::before {
  color: var(--orange);
  background: var(--orange-soft);
  content: "!";
}

.source-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #536076;
  font-size: 10px;
}

.source-link:hover {
  border-color: #cfd9ec;
  color: var(--primary);
}

.drawer-actionbar {
  position: sticky;
  bottom: -34px;
  display: flex;
  gap: 9px;
  margin: 20px -34px -34px;
  padding: 15px 34px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.drawer-actionbar .button--primary {
  flex: 1;
}

.modal-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  border-radius: var(--radius-lg);
}

.modal-card {
  position: relative;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal-card h2 {
  margin-bottom: 16px;
  font-size: 21px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.modal-actions--wrap {
  flex-wrap: wrap;
}

.modal-actions--wrap .button {
  flex: 1 1 140px;
}

.pairing-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pairing-value {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}

.pairing-value span,
.pairing-value code {
  display: block;
}

.pairing-value span {
  margin-bottom: 6px;
  color: var(--text-faint);
  font-size: 9px;
}

.pairing-value code {
  overflow-wrap: anywhere;
  color: #40506a;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  min-height: 61px;
}

.timeline-event::after {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-event:last-child::after {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border: 3px solid #dce7ff;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-event strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.timeline-event p {
  margin: 0;
  color: var(--text-faint);
  font-size: 9px;
}

.edit-application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.edit-application-form .span-two {
  grid-column: 1 / -1;
}

.mobile-nav {
  display: none;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  display: flex;
  width: min(370px, calc(100vw - 28px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
  animation: toast-in 180ms ease-out;
}

.toast-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-content: center;
  border-radius: 7px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 800;
}

.toast.error .toast-icon {
  color: var(--red);
  background: var(--red-soft);
}

.toast strong,
.toast p {
  display: block;
}

.toast strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.toast p {
  margin: 0;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.5;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 218px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-card--full {
    grid-template-columns: auto minmax(230px, 1.4fr) minmax(185px, 0.8fr) auto;
  }

  .job-card--full .job-reasons {
    display: none;
  }

  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    display: none;
  }

  .main {
    margin: 0;
  }

  .topbar {
    height: 64px;
    padding: 0 18px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 14px;
  }

  .mobile-brand strong {
    font-size: 13px;
  }

  .global-search {
    max-width: 320px;
    margin-left: auto;
  }

  .account-button {
    min-width: 0;
  }

  .account-copy,
  .install-button {
    display: none !important;
  }

  .content {
    padding: 28px 18px 104px;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -8px 24px rgba(20, 38, 70, 0.06);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border-radius: 10px;
    color: #8590a1;
    font-size: 9px;
    font-weight: 620;
  }

  .mobile-nav a span {
    font-size: 17px;
    line-height: 1;
  }

  .mobile-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
  }

  .home-grid,
  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .deadline-panel,
  .manual-recognition {
    position: static;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .public-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 25px;
  }

  .topbar {
    gap: 8px;
    padding: 0 13px;
  }

  .mobile-brand strong {
    display: none;
  }

  .global-search {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .global-search kbd,
  .account-button {
    display: none;
  }

  .top-actions {
    margin: 0;
  }

  .content {
    padding-right: 13px;
    padding-left: 13px;
  }

  .page-heading {
    min-height: 0;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }

  .page-heading .heading-actions {
    width: 100%;
  }

  .page-heading .heading-actions .button {
    flex: 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stat-card {
    min-height: 86px;
    gap: 10px;
    padding: 13px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .stat-card strong {
    font-size: 20px;
  }

  .demo-banner {
    align-items: flex-start;
  }

  .filter-bar {
    overflow-x: auto;
    align-items: center;
  }

  .filter-spacer {
    display: none;
  }

  .segmented {
    flex: 0 0 auto;
  }

  .filter-bar select {
    flex: 0 0 auto;
  }

  .job-card--full {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 105px;
    gap: 11px;
    padding: 15px;
  }

  .job-card--full .job-pay,
  .job-card--full .job-reasons {
    display: none;
  }

  .job-score strong {
    font-size: 15px;
  }

  .job-card--compact {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .job-card--compact .job-pay {
    display: none;
  }

  .application-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-profile {
    align-items: flex-start;
    flex-direction: column;
  }

  .tag-cloud {
    justify-content: flex-start;
  }

  .resume-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .resume-card {
    min-height: 235px;
  }

  .resume-policy {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .edit-application-form {
    grid-template-columns: 1fr;
  }

  .span-two,
  .edit-application-form .span-two {
    grid-column: auto;
  }

  .drawer {
    padding: 28px 20px;
  }

  .drawer-actionbar {
    bottom: -28px;
    margin: 18px -20px -28px;
    padding: 13px 20px calc(18px + env(safe-area-inset-bottom));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 24px 20px;
  }

  .auth-card {
    padding: 28px 22px;
  }

  .settings-savebar {
    bottom: 78px;
  }

  .toast-region {
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
