:root {
  --canvas: #fff7e8;
  --canvas-deep: #ffe9bd;
  --surface: #ffffff;
  --surface-warm: #fff2d4;
  --surface-mint: #dff8eb;
  --surface-blue: #dff0ff;
  --surface-lavender: #eee8ff;
  --ink: #13213a;
  --ink-soft: #32415f;
  --muted: #5d6b84;
  --border: #d9c9aa;
  --border-strong: #a78955;
  --blue: #1262d6;
  --blue-dark: #0b3d91;
  --coral: #e94f37;
  --coral-dark: #9d2e20;
  --sun: #ffc943;
  --sun-dark: #6f4d00;
  --mint: #16a66a;
  --mint-dark: #08633d;
  --lavender: #7057d7;
  --danger: #c9302c;
  --danger-bg: #ffe4df;
  --focus: #13213a;
  --shadow-soft: 0 14px 34px rgba(30, 37, 59, 0.12);
  --shadow-lift: 0 26px 56px rgba(30, 37, 59, 0.18);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --font-display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 201, 67, 0.34), transparent 18rem),
    radial-gradient(circle at 92% 12%, rgba(112, 87, 215, 0.18), transparent 20rem),
    radial-gradient(circle at 52% 0%, rgba(18, 98, 214, 0.12), transparent 22rem),
    linear-gradient(180deg, #fffaf0 0%, var(--canvas) 42rem, #fffdf7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    radial-gradient(circle, rgba(19, 33, 58, 0.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(18, 98, 214, 0.14) 1px, transparent 1px);
  background-position: 0 0, 12px 12px;
  background-size: 28px 28px;
}

a {
  color: inherit;
}

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

button,
a,
input,
select,
textarea {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-shell,
.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: visible;
  border-bottom: 2px solid rgba(167, 137, 85, 0.28);
  background: rgba(255, 247, 232, 0.86);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.72rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand span {
  white-space: nowrap;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}

.company-avatar:hover,
.sponsored-logo:hover,
.profile-avatar:hover {
  transform: translateY(-2px) scale(1.03);
}

.brand-mark {
  display: block;
  height: 29px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  transition: transform 0.2s ease;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 1px;
}

.topnav-auth {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  flex-shrink: 0;
  padding-left: 0.65rem;
  margin-left: 0.35rem;
  border-left: 1px solid rgba(19, 33, 58, 0.1);
}

.topnav-auth .topnav-link-admin {
  margin-left: 0.15rem;
  flex-shrink: 0;
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.44rem 0.68rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(19, 33, 58, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.topnav-link::after {
  display: none;
}

.topnav-link:hover {
  color: var(--blue-dark);
  border-color: rgba(18, 98, 214, 0.18);
  box-shadow: 0 8px 18px rgba(19, 33, 58, 0.08);
}

.topnav-link.is-active {
  color: var(--blue-dark);
  background: var(--surface-blue);
  border-color: rgba(18, 98, 214, 0.24);
}

.topnav-link-external {
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.92), rgba(255, 255, 255, 0.92));
  border-color: rgba(245, 197, 24, 0.28);
}

.topnav-link-external:hover {
  color: #9a6500;
  border-color: rgba(154, 101, 0, 0.24);
}

.topnav-link-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.topnav-link-label {
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.topnav a,
.auth-user {
  color: var(--ink-soft);
  font-weight: 800;
  text-decoration: none;
}

.auth-user {
  max-width: 10.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.2;
}

.topnav-auth .btn {
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.topnav-auth .btn:hover {
  transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.topnav-auth .btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.topnav a {
  position: relative;
}

.topnav a::after,
.company-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--coral);
  transition: right 180ms ease;
}

.topnav a:hover::after,
.company-link:hover::after {
  right: 0;
}

.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 var(--space-4);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: var(--space-3);
  align-items: center;
}

.hero h1,
.page-title,
.profile-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero h1,
.page-title {
  max-width: 820px;
  font-size: clamp(2.25rem, 5.6vw, 4.2rem);
}

.lead,
.hero p {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero p {
  line-height: 1.75;
}

.hero-kicker-row,
.profile-actions,
.queue-actions,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  border: 2px solid rgba(19, 33, 58, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin: 0 0 0.7rem;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.hero-card,
.card,
.table-card,
.sponsored-card,
.profile-card,
.admin-panel,
.search-panel,
.feature-card,
.dialog-card,
.queue-item {
  border: 2px solid rgba(19, 33, 58, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-3);
  transform: rotate(1deg);
}

.hero-card::before,
.profile-hero-card::before,
.sponsored-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 201, 67, 0.4), transparent 8rem),
    radial-gradient(circle at 70% 20%, rgba(22, 166, 106, 0.22), transparent 9rem);
  transform: rotate(12deg);
}

.hero-card > *,
.profile-hero-card > *,
.sponsored-card > * {
  position: relative;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric,
.detail {
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: 18px;
  padding: 1rem;
  background: var(--surface-warm);
}

.metric:nth-child(2),
.detail:nth-child(2) {
  background: var(--surface-mint);
}

.metric:nth-child(3),
.detail:nth-child(3) {
  background: var(--surface-lavender);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.1;
}

.metric span,
.detail span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-2);
}

.section-header h2,
.profile-card h2,
.feature-card h2,
.admin-panel h2,
.dialog-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.sponsored-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.sponsored-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-2);
  background: var(--surface);
}

.sponsored-card:nth-child(4n + 1) {
  background: linear-gradient(145deg, #fff, var(--surface-blue));
}

.sponsored-card:nth-child(4n + 2) {
  background: linear-gradient(145deg, #fff, var(--surface-mint));
}

.sponsored-card:nth-child(4n + 3) {
  background: linear-gradient(145deg, #fff, var(--surface-warm));
}

.sponsored-card:nth-child(4n) {
  background: linear-gradient(145deg, #fff, var(--surface-lavender));
}

.sponsored-card:hover,
.profile-card:hover,
.feature-card:hover,
.queue-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.sponsored-card:hover {
  rotate: -1deg;
}

.sponsored-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sponsored-card h3 {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.sponsored-copy {
  display: grid;
  gap: 0.35rem;
}

.sponsored-copy p {
  margin: 0;
}

.sponsored-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.sponsored-pill {
  min-width: 0;
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: 16px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sponsored-pill strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sponsored-card-open .sponsored-logo {
  background: #fff;
}

.sponsored-logo,
.company-avatar {
  position: relative;
  overflow: hidden;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background:
    radial-gradient(circle at 35% 30%, #fff 0 45%, #f8fafc 100%);
  box-shadow:
    0 14px 30px rgba(19, 33, 58, 0.16),
    0 3px 8px rgba(19, 33, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-weight: 700;
}

.company-avatar img,
.profile-avatar img,
.sponsored-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.company-avatar.has-logo,
.profile-avatar.has-logo,
.sponsored-logo.has-logo {
  padding: 4px;
}

.company-avatar.has-logo > span,
.profile-avatar.has-logo > span,
.sponsored-logo.has-logo > span {
  display: none;
}

.company-avatar.logo-failed > span,
.profile-avatar.logo-failed > span,
.sponsored-logo.logo-failed > span {
  display: inline;
}

.badge,
.status-badge,
.count-pill,
.pay-value,
.score-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.badge,
.status-badge {
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  border: 2px solid rgba(19, 33, 58, 0.14);
  color: var(--blue-dark);
  background: #fff;
}

.status-positive {
  color: var(--mint-dark);
  background: #d3f8e4;
  border: 2px solid #76d8a5;
}

.status-negative {
  color: var(--coral-dark);
  background: #ffe2dd;
  border: 2px solid #f39788;
}

.status-neutral {
  color: #423178;
  background: var(--surface-lavender);
  border: 2px solid #b7a8f4;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: end;
  margin: var(--space-3) 0 var(--space-2);
  padding: var(--space-2);
  background: #fffdf7;
}

.filter-panel {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 var(--space-3);
  padding: var(--space-2);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 22px;
}

.filter-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.filter-pill {
  min-height: 38px;
  padding: 0.45rem 1rem;
  border: 1.5px solid #d8d2cb;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.filter-pill:hover {
  border-color: #9a938b;
  transform: translateY(-1px);
}

.filter-pill.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.filter-pill:focus-visible {
  outline: 3px solid rgba(18, 98, 214, 0.28);
  outline-offset: 2px;
}

.hiring-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.hiring-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(202, 155, 82, 0.14);
  color: #6b4d1f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.search-panel label {
  display: grid;
  gap: 0.45rem;
  font-weight: 900;
}

.search-panel input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input,
.inline-form textarea,
.auth-dialog input,
.admin-field {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--border-strong);
  border-radius: 16px;
  padding: 0.82rem 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-panel input::placeholder,
.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #76706a;
}

.search-panel input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.inline-form input:focus,
.inline-form textarea:focus,
.auth-dialog input:focus,
.admin-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 98, 214, 0.18);
}

.btn {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-secondary {
  color: var(--ink);
  background: var(--sun);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-small {
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

.table-card {
  overflow: hidden;
  margin-bottom: var(--space-5);
  background: #fff;
}

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

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

th {
  position: static;
  padding: 0.85rem 0.7rem;
  color: #fff;
  background: var(--ink);
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

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

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

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

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

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

th:nth-child(8),
td:nth-child(8) {
  width: 6.5%;
}

.table-sort {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: inherit;
}

td {
  padding: 0.85rem 0.7rem;
  border-top: 2px solid #f0e1c8;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

tbody tr {
  background: #fff;
}

tbody tr:hover {
  background: #fff9eb;
  box-shadow: inset 6px 0 0 var(--sun);
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.company-avatar-stack {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.watchlist-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(19, 33, 58, 0.12);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.watchlist-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 98, 214, 0.28);
  box-shadow: 0 8px 18px rgba(19, 33, 58, 0.08);
}

.watchlist-toggle.is-active {
  color: #fff;
  background: linear-gradient(180deg, #1362d6, #0f4ea8);
  border-color: rgba(15, 78, 168, 0.4);
  box-shadow: 0 8px 20px rgba(18, 98, 214, 0.24);
}

.watchlist-eye {
  width: 18px;
  height: 18px;
  display: block;
}

.watchlist-card {
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.72), rgba(255, 255, 255, 0.96));
}

.watchlist-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.watchlist-profile-btn.is-active {
  color: var(--blue-dark);
  background: rgba(232, 241, 255, 0.95);
  border-color: rgba(18, 98, 214, 0.24);
}

.watchlist-manage-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.watchlist-page {
  padding-bottom: var(--space-5);
}

.watchlist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.watchlist-hero-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 247, 214, 0.55), rgba(255, 255, 255, 0.94));
  box-shadow: 0 16px 40px rgba(19, 33, 58, 0.06);
}

.watchlist-hero-panel-label {
  margin: 0 0 0.45rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watchlist-hero-panel p:last-child {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.watchlist-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px)) minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: var(--space-3);
}

.watchlist-summary-card {
  padding: 1rem 1.05rem;
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: 20px;
  background: var(--surface-warm);
}

.watchlist-summary-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.watchlist-summary-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.watchlist-summary-copy {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.watchlist-summary-copy p:last-child {
  margin: 0.35rem 0 0;
  color: var(--ink);
  line-height: 1.55;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-2);
}

.watchlist-item-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 247, 0.96));
  box-shadow: 0 18px 44px rgba(19, 33, 58, 0.07);
}

.watchlist-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.watchlist-item-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.watchlist-item-heading {
  min-width: 0;
}

.watchlist-item-heading .company-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.watchlist-item-saved {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}

.watchlist-item-summary {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.watchlist-item-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.watchlist-metric {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 33, 58, 0.08);
  font-size: 0.84rem;
}

.watchlist-metric strong {
  margin-right: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.watchlist-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.watchlist-status-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 280px;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(19, 33, 58, 0.06);
}

.watchlist-status-banner {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.watchlist-status-picker {
  display: grid;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.watchlist-status-picker-label {
  color: rgba(19, 33, 58, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watchlist-status-picker select {
  min-width: 168px;
  min-height: 40px;
  border: 1px solid rgba(19, 33, 58, 0.14);
  border-radius: 12px;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2313213A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  appearance: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.watchlist-status-notice--watching {
  color: #17663a;
  background: linear-gradient(180deg, rgba(223, 248, 235, 0.98), rgba(198, 241, 214, 0.92));
  border-color: rgba(23, 102, 58, 0.22);
}

.watchlist-status-notice--sent {
  color: #0f4ea8;
  background: linear-gradient(180deg, rgba(232, 241, 255, 0.98), rgba(210, 228, 255, 0.92));
  border-color: rgba(18, 98, 214, 0.22);
}

.watchlist-status-notice--interview {
  color: #9a6500;
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.98), rgba(255, 236, 170, 0.92));
  border-color: rgba(154, 101, 0, 0.22);
}

.watchlist-status-notice--decision {
  color: #5b3ea8;
  background: linear-gradient(180deg, rgba(243, 236, 255, 0.98), rgba(228, 214, 255, 0.92));
  border-color: rgba(91, 62, 168, 0.22);
}

.watchlist-status-notice--failed {
  color: #a32626;
  background: linear-gradient(180deg, rgba(255, 236, 236, 0.98), rgba(255, 214, 214, 0.92));
  border-color: rgba(163, 38, 38, 0.22);
}

.watchlist-status-notice--joined {
  color: #0d5f49;
  background: linear-gradient(180deg, rgba(214, 255, 244, 0.98), rgba(178, 245, 223, 0.92));
  border-color: rgba(13, 95, 73, 0.24);
}

.watchlist-remove-btn {
  margin-left: auto;
}

.watchlist-empty {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.watchlist-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--surface-blue);
}

.watchlist-empty-icon .watchlist-eye {
  width: 34px;
  height: 34px;
}

.watchlist-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.watchlist-loading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-2);
}

.watchlist-skeleton-card {
  min-height: 240px;
  border-radius: 24px;
}

.celebration-confetti {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 12001;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(19, 33, 58, 0.42);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.celebration-overlay.is-visible {
  opacity: 1;
}

.celebration-card {
  width: min(100%, 520px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 3px solid var(--ink);
  border-radius: 28px;
  text-align: center;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 247, 214, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top, rgba(255, 201, 67, 0.28), transparent 55%);
  box-shadow: 10px 10px 0 var(--ink);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.celebration-overlay.is-visible .celebration-card {
  transform: scale(1) translateY(0);
}

.celebration-sparkles {
  margin-bottom: 0.35rem;
  color: #f5c518;
  font-size: 1.35rem;
  letter-spacing: 0.35em;
}

.celebration-card h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.celebration-message {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.company-rating-label,
.profile-rating-badge,
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  line-height: 1;
  white-space: nowrap;
}

.company-rating-label {
  color: #9a6500;
  font-size: 0.82rem;
  font-weight: 900;
}

.profile-rating-badge {
  padding: 0.38rem 0.72rem;
  border: 2px solid rgba(154, 101, 0, 0.18);
  border-radius: 999px;
  color: #9a6500;
  background: rgba(255, 247, 214, 0.92);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(154, 101, 0, 0.12);
}

.rating-badge-value {
  font-variant-numeric: tabular-nums;
}

.rating-star-icon {
  color: #f5c518;
  font-size: 1.05em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(154, 101, 0, 0.18);
}

.company-link {
  position: relative;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.company-link:hover {
  color: var(--blue-dark);
}

.pay-value,
.score-value {
  min-width: 0;
  padding: 0.32rem 0.55rem;
  color: var(--mint-dark);
  background: #dff8eb;
  border: 2px solid #8cddb4;
  white-space: nowrap;
}

.score-value {
  color: var(--blue-dark);
  background: var(--surface-blue);
  border-color: #9ccfff;
}

.vote-buttons {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
}

.vote-button {
  min-width: 43px;
  height: 38px;
  padding: 0 0.45rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}

.vote-button:hover {
  transform: translateY(-2px) rotate(-4deg);
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
}

.vote-button[data-vote="-1"]:hover,
[data-vote-profile="-1"]:hover {
  background: #ffe2dd;
}

.vote-pop {
  animation: votePop 420ms ease;
}

.skeleton {
  min-height: 64px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f6e6c5, #fffaf0, #f6e6c5);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.profile-hero {
  padding: var(--space-4) 0 var(--space-3);
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(0.55cm, 2.5vw, 1.15rem);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 201, 67, 0.82), rgba(223, 248, 235, 0.92)),
    #fff;
  box-shadow: 7px 7px 0 var(--ink);
}

.profile-hero-card .muted {
  color: var(--ink-soft);
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: start;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.profile-avatar {
  position: relative;
  overflow: hidden;
  width: clamp(96px, 12vw, 132px);
  height: clamp(96px, 12vw, 132px);
  flex: 0 0 auto;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background:
    radial-gradient(circle at 35% 30%, #fff 0 45%, #f8fafc 100%);
  box-shadow:
    0 20px 46px rgba(19, 33, 58, 0.2),
    0 4px 12px rgba(19, 33, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
}

.profile-hero-card .profile-title-row {
  margin-bottom: 0.1rem;
}

.profile-title-row h1 {
  max-width: 100%;
  font-size: clamp(2rem, 5vw, 3.75rem);
  overflow-wrap: anywhere;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: var(--space-3);
  align-items: start;
  margin-bottom: var(--space-5);
}

.profile-main,
.profile-side {
  display: grid;
  gap: var(--space-2);
}

.profile-cta-card {
  padding: var(--space-2);
}

.profile-go-btn {
  min-height: 54px;
  font-size: 1.05rem;
}

.application-email-value {
  margin: 0.35rem 0 0.75rem;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(19, 33, 58, 0.12);
  border-radius: 16px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-word;
}

.profile-card {
  padding: var(--space-3);
}

.profile-card > h2,
.profile-card > .eyebrow + h2 {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: var(--space-3);
  background: #fff;
}

.feature-card:nth-child(1) {
  background: linear-gradient(145deg, #fff, var(--surface-warm));
}

.feature-card:nth-child(2) {
  background: linear-gradient(145deg, #fff, var(--surface-mint));
}

.feature-card strong {
  display: block;
  margin: 0.6rem 0 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-detail-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.detail {
  overflow-wrap: anywhere;
}

.source-link {
  color: var(--blue-dark);
  font-weight: 900;
}

.review-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.rating-score {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--surface-warm);
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.rating-score strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
}

.rating-bars {
  display: grid;
  gap: 0.55rem;
}

.rating-bar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 40px;
  gap: 0.6rem;
  align-items: center;
  color: var(--ink-soft);
  font-weight: 900;
}

.rating-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(19, 33, 58, 0.18);
  border-radius: 999px;
  background: #f3e4c7;
}

.rating-fill {
  height: 100%;
  width: var(--rating-width, 0%);
  border-radius: inherit;
  background: var(--sun);
}

.review {
  padding: var(--space-2);
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: 18px;
  background: #fffdf7;
}

.review + .review {
  margin-top: 0.75rem;
}

.stars {
  color: #9a6500;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rating-picker {
  display: grid;
  gap: 0.65rem;
}

.rating-picker-label {
  margin: 0;
  font-weight: 900;
  color: var(--ink);
}

.rating-picker-hint {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.rating-picker-hint.is-active {
  color: var(--ink);
  font-weight: 700;
}

.star-rating-input {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  touch-action: none;
  user-select: none;
  padding: 0.35rem 0;
  outline: none;
}

.star-rating-input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 12px;
}

.star-rating-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.35rem, 8vw, 2.85rem);
  height: clamp(2.35rem, 8vw, 2.85rem);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}

.star-rating-star svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 0 rgba(154, 101, 0, 0.12));
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.star-rating-star path {
  fill: transparent;
  stroke: #b88900;
  stroke-width: 1.65;
  stroke-linejoin: round;
  transition: fill 0.22s ease, stroke 0.22s ease, filter 0.22s ease;
}

.star-rating-star.is-preview path,
.star-rating-star.is-active path {
  fill: #f5c518;
  stroke: #d4a017;
  filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.45));
}

.star-rating-input.is-previewing .star-rating-star.is-preview svg {
  animation: starGlow 0.35s ease;
}

.star-rating-input.is-dragging .star-rating-star.is-preview svg {
  transform: scale(1.08);
}

.star-rating-star:is(:hover, :focus-visible) svg {
  transform: scale(1.12);
}

.star-rating-star.is-readonly {
  cursor: default;
  pointer-events: none;
}

.star-rating-input--dialog {
  justify-content: center;
  gap: 0.25rem;
}

.star-rating-input--dialog .star-rating-star {
  width: 2rem;
  height: 2rem;
}

.review-dialog-rating {
  margin-bottom: 0;
}

.profile-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.profile-modal::backdrop {
  background: rgba(19, 33, 58, 0.62);
  backdrop-filter: blur(4px);
}

.profile-modal-card,
.site-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border: 1px solid rgba(19, 33, 58, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  box-shadow:
    0 28px 70px rgba(19, 33, 58, 0.22),
    0 8px 24px rgba(19, 33, 58, 0.12);
  animation: profileModalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.site-modal-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 33, 58, 0.24) rgba(19, 33, 58, 0.06);
}

.profile-modal-body {
  display: grid;
  gap: 1rem;
  min-height: 0;
  padding: 1.15rem 1.35rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 33, 58, 0.24) rgba(19, 33, 58, 0.06);
}

.auth-dialog-body {
  display: block;
  padding: 0.35rem 1.35rem 1rem;
}

.profile-modal-body::-webkit-scrollbar,
.site-modal-scroll::-webkit-scrollbar {
  width: 10px;
}

.profile-modal-body::-webkit-scrollbar-track,
.site-modal-scroll::-webkit-scrollbar-track {
  margin: 0.35rem 0;
  border-radius: 999px;
  background: rgba(19, 33, 58, 0.06);
}

.profile-modal-body::-webkit-scrollbar-thumb,
.site-modal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(19, 33, 58, 0.24);
  background-clip: padding-box;
}

.profile-modal-body::-webkit-scrollbar-thumb:hover,
.site-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 33, 58, 0.36);
  background-clip: padding-box;
}

.site-modal-footer,
.profile-modal-footer,
.auth-dialog-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.35rem 1.25rem;
  border-top: 1px solid rgba(19, 33, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 247, 0.98));
}

.auth-dialog-header {
  position: relative;
  padding: 1.15rem 1.35rem 0.55rem;
}

.auth-dialog-header .dialog-close {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  float: none;
  margin: 0;
}

.auth-dialog-footer {
  min-height: 2.2rem;
}

.auth-dialog-footer .form-message {
  margin: 0;
}

.profile-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(19, 33, 58, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 201, 67, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 247, 0.92));
}

.profile-modal-heading {
  min-width: 0;
}

.profile-modal-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.profile-modal-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.08;
}

.profile-modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(19, 33, 58, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(19, 33, 58, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.profile-modal-close:hover {
  transform: scale(1.04);
  background: var(--surface-warm);
  border-color: rgba(19, 33, 58, 0.18);
}

.profile-modal-close:focus-visible {
  outline: 3px solid rgba(18, 98, 214, 0.28);
  outline-offset: 2px;
}

.profile-modal-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.profile-modal-panel {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.45), rgba(255, 255, 255, 0.92));
}

.auth-dialog-note {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-dialog-note p {
  margin: 0;
}

.auth-dialog-member-notice {
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 201, 67, 0.38), rgba(255, 247, 214, 0.95));
  box-shadow: 4px 4px 0 var(--ink);
}

.auth-dialog-member-notice__title {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.auth-dialog-member-notice p:not(.auth-dialog-member-notice__title):not(.auth-dialog-member-notice__alert) {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-dialog-member-notice__alert {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(233, 79, 55, 0.28);
  color: var(--coral-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.auth-dialog-member-notice__alert strong {
  color: var(--coral);
}

.auth-dialog-member-notice__fineprint {
  margin: 0.75rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(19, 33, 58, 0.1);
  color: rgba(19, 33, 58, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-dialog-member-notice__fineprint a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.auth-dialog-card.site-modal-panel {
  gap: 0;
}

.auth-dialog-brand {
  display: flex;
  justify-content: center;
  margin: 0.1rem 0 0.15rem;
}

.auth-dialog-logo {
  display: block;
  height: 12px;
  width: auto;
  max-width: 53px;
  object-fit: contain;
  background: transparent;
}

.auth-dialog-lead {
  margin: 0 0 1rem;
  color: rgba(19, 33, 58, 0.82);
  line-height: 1.55;
}

.auth-dialog-info-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.auth-dialog-info-card {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.auth-dialog-info-card--otc {
  border-color: rgba(19, 33, 58, 0.18);
  background: linear-gradient(180deg, rgba(255, 201, 67, 0.24), rgba(255, 255, 255, 0.94));
}

.auth-dialog-info-card__title {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.auth-dialog-info-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-dialog-choose-label {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.auth-dialog-choices {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.auth-dialog-choice {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.auth-dialog-choice:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
  background: rgba(255, 247, 214, 0.55);
}

.auth-dialog-choice:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.auth-dialog-choice__title {
  font-size: 0.98rem;
  font-weight: 900;
}

.auth-dialog-choice__text {
  color: rgba(19, 33, 58, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-dialog-support {
  margin: 0;
  color: rgba(19, 33, 58, 0.78);
  font-size: 0.86rem;
}

.auth-dialog-support a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.auth-dialog-join-link {
  margin: 1rem 0 0.5rem;
  text-align: center;
}

.auth-dialog-join-link a {
  color: var(--coral-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.auth-dialog-join-link a:hover {
  color: var(--coral);
}

.auth-dialog-step[hidden] {
  display: none !important;
}

.auth-dialog-back {
  justify-self: start;
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-dialog-back:hover {
  text-decoration: underline;
}

.auth-dialog-step-note {
  margin: 0 0 1rem;
  color: rgba(19, 33, 58, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-actions-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.auth-dialog .form-message {
  margin-top: 0.35rem;
}

.password-field .password-input-wrap {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(19, 33, 58, 0.72);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--ink);
  background: rgba(255, 201, 67, 0.28);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.password-toggle-icon {
  width: 18px;
  height: 18px;
}

.password-toggle-icon--hide {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon--show {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon--hide {
  display: block;
}

.profile-modal-card .field-block {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.profile-modal-card .field-label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.profile-modal-card .field-label-optional {
  color: var(--muted);
  font-weight: 700;
}

.profile-modal-card .field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.profile-modal-card select,
.profile-modal-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(19, 33, 58, 0.14);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-modal-card textarea {
  min-height: 168px;
  resize: vertical;
  line-height: 1.55;
}

.profile-modal-card select {
  cursor: pointer;
  appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.profile-modal-card select:focus,
.profile-modal-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 98, 214, 0.14);
}

.profile-modal-card .btn-full {
  min-height: 52px;
  box-shadow: 0 10px 24px rgba(18, 98, 214, 0.18);
}

.edit-modal-card .edit-field-guide {
  display: grid;
  gap: 0.45rem;
}

.edit-modal-card .edit-field-guide--note {
  background: linear-gradient(180deg, rgba(232, 241, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.edit-field-guide-kicker {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edit-field-guide-copy {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.edit-field-guide-copy strong {
  color: var(--blue-dark);
}

.edit-modal-card #edit-suggested-value {
  min-height: 160px;
}

.edit-modal-card textarea[name="note"] {
  min-height: 110px;
}

.review-modal-card .review-dialog-rating .field-label {
  margin-bottom: 0.45rem;
}

.review-modal-card .star-rating-input--dialog {
  justify-content: flex-start;
}

.profile-comments-section {
  margin-bottom: var(--space-5);
}

.profile-comments-card {
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border: 1px solid rgba(19, 33, 58, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 247, 0.96)),
    radial-gradient(circle at top right, rgba(255, 201, 67, 0.12), transparent 42%);
  box-shadow:
    0 24px 60px rgba(19, 33, 58, 0.08),
    0 8px 24px rgba(19, 33, 58, 0.05);
}

.profile-comments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.profile-comments-header h2 {
  margin: 0;
}

.profile-comments-count {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-comments-intro {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.profile-comments-link {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.profile-comments-link:hover {
  color: var(--blue-dark);
}

.comment-review-prompt {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.55), rgba(255, 255, 255, 0.92));
}

.star-rating-input--comment-cta {
  margin-top: 0.35rem;
}

.review-picker-card.is-highlighted {
  animation: reviewPickerPulse 1.2s ease;
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.28);
}

@keyframes reviewPickerPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }
}

.comment-composer,
.comment-composer-guest {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.comment-composer-guest {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.comment-composer-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-blue);
  font-size: 1.4rem;
}

.comment-composer-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.comment-composer-copy {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.comment-composer-field {
  display: grid;
  gap: 0.5rem;
}

.comment-composer textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(19, 33, 58, 0.14);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  font: inherit;
  line-height: 1.55;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.comment-composer textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 98, 214, 0.14);
  outline: none;
}

.comment-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comment-thread {
  display: grid;
  gap: 0.85rem;
}

.comment-thread-empty {
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(19, 33, 58, 0.14);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.comment-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(19, 33, 58, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.comment-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(19, 33, 58, 0.06);
}

.comment-item-review {
  background: linear-gradient(180deg, rgba(255, 247, 214, 0.28), rgba(255, 255, 255, 0.96));
}

.comment-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--surface-lavender);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.comment-body {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.comment-meta strong {
  display: block;
  font-size: 0.98rem;
}

.comment-meta .muted {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.comment-badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comment-badge-review {
  color: #9a6500;
  background: rgba(255, 247, 214, 0.95);
  text-transform: none;
  letter-spacing: 0.08em;
}

.comment-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@keyframes profileModalIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes starGlow {
  0% {
    transform: scale(0.88);
  }

  55% {
    transform: scale(1.14);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes starPop {
  0% {
    transform: scale(0.5);
    opacity: 0.4;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active svg {
  animation: starPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(1) svg {
  animation-delay: 0.02s;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(2) svg {
  animation-delay: 0.06s;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(3) svg {
  animation-delay: 0.1s;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(4) svg {
  animation-delay: 0.14s;
}

dialog[open] .star-rating-input--dialog .star-rating-star.is-active:nth-child(5) svg {
  animation-delay: 0.18s;
}

.form-grid,
.inline-form {
  display: grid;
  gap: var(--space-2);
}

.form-grid label,
.inline-form label,
.auth-dialog label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 900;
}

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

textarea {
  min-height: 132px;
  resize: vertical;
}

select {
  cursor: pointer;
}

.dialog-card {
  width: min(540px, calc(100vw - 32px));
  padding: var(--space-3);
  border: 3px solid var(--ink);
  background: #fffdf7;
  box-shadow: 8px 8px 0 var(--ink);
}

.dialog-card.site-modal-panel,
.auth-dialog-card.site-modal-panel {
  width: min(560px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(19, 33, 58, 0.56);
}

.dialog-close {
  float: right;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--sun);
  cursor: pointer;
  font-weight: 900;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: "";
  height: 2px;
  background: #ead7b8;
}

.form-message {
  min-height: 1.4rem;
  color: var(--danger);
  font-weight: 900;
}

.toast-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 360px;
  padding: 0.95rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.toast-success {
  color: var(--ink);
  background: var(--surface-mint);
}

.toast-error {
  background: var(--danger);
}

.company-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--canvas);
  animation: overlayIn 180ms ease;
}

.company-overlay-bar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border);
  background: rgba(255, 247, 232, 0.94);
  backdrop-filter: blur(16px);
}

.company-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fffdf7;
}

.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin: var(--space-4) auto var(--space-5);
}

.admin-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--space-2);
}

.admin-tabs {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.admin-tab {
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

.admin-tab.is-active {
  color: #fff;
  background: var(--blue);
}

.admin-panel {
  min-height: 520px;
  padding: var(--space-2);
  background: #fffdf7;
}

.queue-item {
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  background: #fff;
}

.queue-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.queue-item p {
  margin: 0.35rem 0;
}

footer {
  padding: var(--space-5) 0;
  color: var(--muted);
  text-align: center;
}

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

@keyframes votePop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.18) rotate(-2deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes overlayIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .profile-layout,
  .profile-header,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-actions {
    justify-content: flex-start;
  }

  .comment-composer-guest {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .comment-composer-icon {
    margin: 0 auto;
  }

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

  .watchlist-hero,
  .watchlist-summary {
    grid-template-columns: 1fr;
  }

  .watchlist-remove-btn {
    margin-left: 0;
  }

  .watchlist-status-notice {
    flex-basis: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  th,
  td {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }

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

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

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

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

  th:nth-child(7),
  td:nth-child(7) {
    width: 16%;
  }

  th:nth-child(8),
  td:nth-child(8) {
    width: 10%;
  }

  .vote-button {
    min-width: 50px;
    font-size: 0.92rem;
  }
}

@media (max-width: 1100px) {
  .brand {
    font-size: 0.96rem;
    gap: 0.55rem;
  }

  .brand-mark {
    height: 25px;
    max-width: 114px;
  }

  .topnav-link {
    padding: 0.4rem 0.58rem;
    gap: 0.3rem;
  }

  .topnav-link-label {
    font-size: 0.78rem;
  }

  .topnav-link-icon svg {
    width: 15px;
    height: 15px;
  }

  .auth-user {
    max-width: 7.5rem;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .section-header,
  .auth-actions,
  .company-overlay-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-inner {
    padding: 0.85rem 0;
  }

  .topnav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.65rem;
  }

  .topnav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .topnav-auth {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topnav-link {
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding-top: var(--space-4);
  }

  .hero h1,
  .page-title {
    font-size: clamp(2rem, 11vw, 3.15rem);
  }

  .search-panel,
  .filter-panel,
  .feature-grid,
  .detail-grid,
  .profile-detail-strip,
  .review-summary,
  .two-column,
  .metric-row,
  .sponsored-grid {
    grid-template-columns: 1fr;
  }

  .table-card {
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody {
    display: grid;
    gap: var(--space-2);
  }

  tbody tr {
    border: 2px solid rgba(19, 33, 58, 0.12);
    border-radius: var(--radius);
    padding: var(--space-2);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  tbody tr:hover {
    box-shadow: var(--shadow-lift);
  }

  td {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0.7rem 0;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
  }

  td:first-child {
    display: block;
    padding-top: 0;
  }

  td:first-child::before {
    content: "";
  }

  .company-cell {
    min-width: 0;
  }

  .hide-mobile {
    display: none;
  }
}

@media (max-width: 430px) {
  .site-shell,
  .topbar-inner,
  .admin-shell {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    font-size: 0.96rem;
  }

  .profile-title-row h1 {
    font-size: clamp(1.85rem, 13vw, 2.8rem);
  }
}

.breadcrumbs {
  padding-top: var(--space-2);
  padding-bottom: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  color: var(--border-strong);
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
  border-top: 2px solid rgba(19, 33, 58, 0.08);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer-links a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.site-footer-note {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.companies-directory {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem 1.2rem;
}

.companies-directory li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: baseline;
}

.companies-directory a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.companies-directory a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.companies-directory.compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.companies-index-page,
.not-found-page {
  padding-bottom: var(--space-4);
}

.faq-section {
  padding-bottom: var(--space-4);
}

.faq-list {
  display: grid;
  gap: var(--space-2);
}

.faq-item {
  border: 2px solid rgba(19, 33, 58, 0.1);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
  padding: 0.85rem 0;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.faq-item a {
  color: var(--blue);
  font-weight: 800;
}

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

@media (max-width: 720px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}
