:root {
  /* Light theme */
  --bg: #f1f3f4;
  --surface: #ffffff;
  --surface-inset: #f6f7f8;
  --border: #edeff1;
  --text: #1a1a1b;
  --muted: #787c7e;
  --accent: #ff9b21;
  --accent-hover: #e8890a;
  --link: #0079d3;
  --link-hover: #0060a8;
  --open: #46a758;
  --closed: #ea0027;
  --wait: #ff9b21;
  --soon: #0079d3;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  --param-bg: #edeff1;
  --param-text: #1a1a1b;
  --feed-cta-bg: #fff8ef;
  --feed-cta-border: #ffd9a8;
  --like-active-bg: #fff1f2;
  --like-active: #dc2626;
  --like-border: #b8bcc0;
  --like-color: #6b6f71;
  --comment-rail: #9ca3af;
  --comment-indent: 2rem;
  --comment-avatar: 1.75rem;
  --comment-curve: 0.85rem;
  --comment-line-w: 2px;
  --card-hover-border: #cccccc;
  --card-hover-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  --input-bg: #ffffff;
  --overview-notice-bg: #fff8ef;
  --overview-notice-border: #ffd9a8;
  --package-card-bg: #fff3e0;
  --package-card-border: #ffd9a8;
  --highlight-bg: rgba(0, 121, 211, 0.1);
  --avatar-bg: #ff9b21;
  --avatar-bg-end: #ffb04a;
  --btn-primary-bg: #0079d3;
  --btn-primary-hover: #0060a8;
  --card-radius: 12px;
  --card-inset-radius: 8px;
  --job-action-btn-height: 2rem;
  --job-action-btn-px: 1.95rem;
  --search-bar-bg: var(--bg);
  --search-pill-bg: var(--surface-inset);
  --search-pill-border: #d1d5db;
  --search-pill-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --header-height: 68px;
  --search-input-bg: var(--surface-inset);
  --search-input-border: #d1d5db;
}

[data-theme="dark"] {
  /* Dark theme */
  --bg: #030303;
  --surface: #1a1a1b;
  --surface-inset: #272729;
  --border: #343536;
  --text: #d7dadc;
  --muted: #818384;
  --accent: #ff9b21;
  --accent-hover: #ffad4d;
  --link: #648efc;
  --link-hover: #8bacfe;
  --open: #46d160;
  --closed: #ff585b;
  --wait: #ff9b21;
  --soon: #648efc;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --param-bg: #272729;
  --param-text: #d7dadc;
  --feed-cta-bg: #272729;
  --feed-cta-border: #343536;
  --like-active-bg: #3b171b;
  --like-active: #ef4444;
  --like-border: #5a5c5e;
  --like-color: #9a9c9e;
  --comment-rail: #4a4a4c;
  --card-hover-border: #4a4a4c;
  --card-hover-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  --input-bg: #1a1a1b;
  --overview-notice-bg: #272729;
  --overview-notice-border: #343536;
  --package-card-bg: #2d2819;
  --package-card-border: #5c4a22;
  --highlight-bg: rgba(100, 142, 252, 0.12);
  --avatar-bg: #ff9b21;
  --avatar-bg-end: #e8890a;
  --btn-primary-bg: #115bcc;
  --btn-primary-hover: #1870f4;
  --search-bar-bg: var(--bg);
  --search-pill-bg: #272729;
  --search-pill-border: #4a4a4c;
  --search-pill-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  --search-input-bg: #272729;
  --search-input-border: #4a4a4c;
}

[data-theme="dark"] .jobs-search-bar .hero-filter-field select,
[data-theme="dark"] .jobs-search-bar .hero-filter-field input[type="text"],
[data-theme="dark"] .search-landing .hero-filter-field select,
[data-theme="dark"] .search-landing .hero-filter-field input[type="text"],
[data-theme="dark"] .comment-form textarea,
[data-theme="dark"] .applied-status-picker-btn,
[data-theme="dark"] .applied-notes-input {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .applied-status-picker-menu {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .applied-status-picker-item:hover,
[data-theme="dark"] .applied-status-picker-item.is-selected {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
}

[data-theme="dark"] .jobs-search-bar .hero-filter-field select,
[data-theme="dark"] .jobs-search-bar .hero-filter-field input[type="text"],
[data-theme="dark"] .search-landing .hero-filter-field select,
[data-theme="dark"] .search-landing .hero-filter-field input[type="text"] {
  background: var(--search-input-bg);
  border-color: var(--search-input-border);
}

[data-theme="dark"] .flair-company { background: #0b3d1f; color: #46d160; }
[data-theme="dark"] .flair-applied { background: #1a2a3a; color: #648efc; }
[data-theme="dark"] .flair-mod { background: #0b3d1f; color: #46d160; }

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; }

.header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  font-size: 1.54rem;
  letter-spacing: -0.035em;
}

.logo-sub {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

[data-theme="dark"] .logo {
  color: var(--accent);
}

[data-theme="dark"] .logo-sub {
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 1.5rem; }

@media (max-width: 768px) {
  .header-inner {
    gap: 0.5rem;
    min-width: 0;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.15rem;
  }

  .logo-sub {
    font-size: 0.78rem;
  }

  .nav {
    flex: 0 0 auto;
    gap: 0.45rem;
    min-width: 0;
  }

  /* Keep Create on one line and stop it crushing into the logo. */
  .header .btn-sm {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  .theme-toggle,
  .nav-user-menu,
  .nav-user-trigger {
    flex-shrink: 0;
  }

  .nav-user-label {
    display: none !important;
  }
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link-bold {
  font-weight: 700;
  color: var(--text);
}

.nav-link.active, .nav-link:hover { color: var(--link); }

.nav-link-bold.active,
.nav-link-bold:hover {
  color: var(--link);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--like-border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

[data-theme="dark"] .theme-toggle-icon {
  filter: invert(1);
}

main.container {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  /* Must beat .container's padding shorthand (class > element). */
  padding-top: 1rem;
  padding-bottom: 7.5rem;
}

.page-home {
  padding-top: 0.25rem;
}

.home-toolbar {
  position: sticky;
  top: var(--header-height);
  z-index: 9;
  margin: 0 -1.25rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-toolbar .filters {
  margin-bottom: 0;
}

.filters-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
}

.filter-search {
  flex: 0 0 220px;
  width: 220px;
  max-width: 100%;
}

.filter-search input[type="search"] {
  width: 100%;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--surface);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 2.5rem;
  padding: 0.35rem 0;
  flex-wrap: wrap;
}

.footer-meta {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--link);
  text-decoration: underline;
}

a.footer-link {
  color: var(--muted);
}

.attribution-dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  max-width: min(32rem, calc(100vw - 2rem));
  width: 100%;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.attribution-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.attribution-dialog-body {
  margin: 0;
  padding: 1.25rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attribution-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.attribution-dialog-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.attribution-dialog-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.attribution-dialog-close:hover {
  color: var(--text);
  background: var(--bg);
}

.attribution-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.attribution-list a {
  color: var(--link);
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  min-width: 100px;
}

.stat-value { display: block; font-size: 1.75rem; font-weight: 700; }
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat.muted .stat-value { font-size: 1.25rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.filter-location {
  position: relative;
}

.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.autocomplete-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
  background: var(--highlight-bg);
  color: var(--link);
}

.filters select, .filters input[type="text"], .filters input[type="search"], .stack-form select, .stack-form input, .stack-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.stack-form textarea {
  width: 100%;
  min-height: 10rem;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

.create-post-page {
  max-width: 720px;
}

.create-post-card {
  margin-top: 0.5rem;
}

.create-post-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.create-post-form .char-count {
  align-self: flex-end;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.create-post-form .char-count.is-near-limit {
  color: var(--accent);
}

.create-post-form .btn-sm {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.post-detail {
  max-width: 720px;
  padding-top: 1rem;
}

.post-detail-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.post-detail-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.post-detail-author-name {
  display: block;
  font-size: 0.95rem;
}

.post-detail-time {
  margin: 0.1rem 0 0;
}

.post-detail-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-detail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.post-detail-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
}

.post-detail-actions .like-controls {
  border-radius: 999px;
  cursor: pointer;
}

.post-detail-actions .like-controls .like-btn {
  pointer-events: none;
}

.post-comment-body {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--text);
}

.post-comment-actions {
  margin-top: 1rem;
}

.post-discussion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.post-comment-form .comment-submit-btn {
  display: inline-flex;
  margin-top: 0.65rem;
}

.post-comment-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-comment-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
}

.filters button, .btn-sm {
  background: var(--btn-primary-bg);
  color: white;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.filters button:hover, .btn-sm:hover {
  background: var(--btn-primary-hover);
}

.btn-link { color: var(--link); font-size: 0.85rem; align-self: center; }

.checkbox-label { flex-direction: row !important; align-items: center; gap: 0.4rem !important; }

.meta { color: var(--muted); font-size: 0.85rem; }
.intro { color: var(--muted); margin-bottom: 1.25rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.table-wrap th:nth-child(1),
.table-wrap td:nth-child(1) { width: 24%; }

.table-wrap th:nth-child(9),
.table-wrap td:nth-child(9) { width: 240px; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.pill-open { background: rgba(34, 197, 94, 0.15); color: var(--open); }
.pill-closed { background: rgba(239, 68, 68, 0.15); color: var(--closed); }
.pill-waitlist, .pill-coming_soon { background: rgba(245, 158, 11, 0.15); color: var(--wait); }
.pill-user { background: var(--highlight-bg); color: var(--link); }

.badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.badge-in { background: #ff9933; color: #1a1a1a; font-weight: 700; }
.badge-applied { background: rgba(34, 197, 94, 0.2); color: var(--open); font-weight: 600; }
.badge-ok { background: rgba(34, 197, 94, 0.2); color: var(--open); }
.badge-warn { background: rgba(239, 68, 68, 0.2); color: var(--closed); }

.tag-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: text;
}

.tag-editor .tag-list {
  display: contents;
}

.tag-editor .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 6px;
  background: var(--highlight-bg);
  color: var(--link);
  white-space: nowrap;
}

.tag-editor .tag-remove {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}

.tag-editor .tag-remove:hover { opacity: 1; }

.tag-editor .tag-input {
  flex: 1;
  min-width: 9rem;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.15rem 0;
}

.tag-editor.resume-list-editor .tag-list {
  display: block;
  flex: 1 0 100%;
  margin: 0;
  padding-left: 1.6rem;
}

.tag-editor.resume-list-editor .tag {
  display: list-item;
  margin-bottom: 0.3rem;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
  background: transparent;
  color: inherit;
  white-space: normal;
}

.tag-editor.resume-list-editor .tag-remove {
  margin-left: 0.35rem;
  color: var(--muted);
  vertical-align: middle;
}

.action-cards {
  display: flex;
  gap: 0.5rem;
  min-width: 220px;
}

.action-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s;
}

.action-card-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Auto-apply is paused until a dedicated apply LLM is ready. */
.action-card-auto,
.action-card-form:has(.action-card-auto) {
  display: none !important;
}

.action-card-apply,
.action-card-auto,
.action-card-share,
.action-card-mark,
.action-card-tracked {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: var(--job-action-btn-height);
  min-height: var(--job-action-btn-height);
  min-width: 5.85rem;
  width: auto;
  padding: 0 var(--job-action-btn-px);
  border-radius: 9999px;
  border: 1px solid var(--text);
  background: transparent;
}

.action-card-form {
  flex: 0 0 auto;
  margin: 0;
  display: flex;
}

.action-card-form:has(.action-card-auto),
.action-card-form:has(.action-card-apply),
.action-card-form:has(.action-card-mark) {
  height: var(--job-action-btn-height);
  min-width: 5.85rem;
}

.action-card-form:has(.action-card-auto) .action-card,
.action-card-form:has(.action-card-apply) .action-card,
.action-card-form:has(.action-card-mark) .action-card {
  width: 100%;
  height: 100%;
}

.action-card-apply:hover,
.action-card-auto:hover,
.action-card-share:hover,
.action-card-mark:hover,
.action-card-tracked:hover {
  border-color: var(--link);
  background: transparent;
}

.action-card-apply .action-card-label,
.action-card-auto .action-card-label,
.action-card-share .action-card-label,
.action-card-mark .action-card-label,
.action-card-tracked .action-card-label {
  color: var(--link);
  font-weight: 700;
}

.action-card-done {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  cursor: default;
}

.action-card-done .action-card-label { color: var(--open); }

.action-card-tracked {
  text-decoration: none;
  cursor: pointer;
}

.action-card-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.is-hidden { display: none !important; }

.row-applied { background: rgba(34, 197, 94, 0.03); }

.job-row {
  cursor: pointer;
}

.job-row[data-url] { cursor: pointer; }
.job-row[data-url]:hover { background: var(--highlight-bg); }
.job-row.row-applied[data-url]:hover { background: rgba(34, 197, 94, 0.06); }

.ext-link { font-size: 0.8rem; color: var(--link); margin-left: 0.5rem; }

.inline-form { display: inline; }
.stack-form { display: flex; flex-direction: column; gap: 0.35rem; min-width: 140px; }

.empty { text-align: center; color: var(--muted); padding: 2rem !important; }
.empty code { background: var(--bg); padding: 0.15rem 0.4rem; border-radius: 4px; }

.row-closed { opacity: 0.75; }
.notes-cell { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-user {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-menu {
  position: relative;
}

.nav-user-trigger {
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  padding: 0.25rem 0;
}

.nav-user-trigger:hover,
.nav-user-menu.is-open .nav-user-trigger {
  color: var(--link);
}

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 10rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  z-index: 20;
}

.nav-user-menu.is-open .nav-user-dropdown {
  display: block;
}

.nav-user-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-user-dropdown-item:hover,
.nav-user-dropdown-item.active {
  background: var(--bg);
  color: var(--link);
}

.nav-user-dropdown-form {
  margin: 0;
}

.nav-user-dropdown-signout {
  color: var(--muted);
}

.btn-text-nav {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
}

.btn-text-nav:hover { color: var(--link); }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-shell { width: min(100%, 420px); }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.auth-logo { display: inline-block; margin-bottom: 1rem; }

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.auth-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-alert,
.auth-error {
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-alert {
  background: var(--highlight-bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.auth-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

.auth-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #15803d;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-completing {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--link);
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

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

/* While completing sign-in, hide the form and show only the spinner. */
body.is-completing-signin #auth-completing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0.9rem;
}

body.is-completing-signin .auth-spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

body.is-completing-signin .auth-card h1,
body.is-completing-signin .auth-subtitle,
body.is-completing-signin #auth-error,
body.is-completing-signin #google-sign-in,
body.is-completing-signin .auth-divider,
body.is-completing-signin .auth-mode-tabs,
body.is-completing-signin #email-link-form,
body.is-completing-signin #email-auth-form,
body.is-completing-signin #password-switch,
body.is-completing-signin .auth-note,
body.is-completing-signin #auth-success { display: none !important; }

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-mode-tab {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.auth-mode-tab.active {
  border-color: var(--link);
  color: var(--text);
  background: var(--highlight-bg);
}

.btn-google,
.btn-primary {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: white;
  color: #1f2937;
  font-weight: 600;
  border: 1px solid #747775;
}

.btn-google:hover { background: #f3f4f6; }

[data-theme="dark"] .btn-google {
  background: #131314;
  color: #e3e3e3;
  border-color: #8e918f;
}

[data-theme="dark"] .btn-google:hover { background: #1e1f20; }

.btn-primary {
  background: var(--btn-primary-bg);
  color: white;
  font-weight: 600;
}

.btn-primary:hover { background: var(--btn-primary-hover); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.auth-switch { margin: 1rem 0 0; text-align: center; }

.btn-text {
  background: none;
  border: none;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.auth-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.job-detail-row {
  overflow-anchor: none;
}

.job-detail-row td {
  background: var(--highlight-bg);
  padding: 0 !important;
  overflow: hidden;
}

.job-overview {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.job-overview h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.job-overview-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.overview-subtitle {
  margin: 0;
}

.overview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.overview-notice {
  margin: 0 0 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--overview-notice-bg);
  border: 1px solid var(--overview-notice-border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text);
}

.overview-about {
  margin-bottom: 1.25rem;
}

.overview-highlights {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
}

.overview-highlights-dl {
  gap: 0.5rem 1rem;
}

.overview-highlights-dl dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overview-highlights-dl dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.overview-summary {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  /* Full view: show the complete description, preserving paragraph breaks. */
  white-space: pre-line;
}

.job-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.job-overview-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .job-overview-grid-3 { grid-template-columns: 1fr; }
}

.overview-section h4 {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.overview-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

.overview-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.overview-dl dd {
  margin: 0;
  word-break: break-word;
}

.overview-dl-compact {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.overview-match-score {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.overview-link {
  margin: 0 0 0.85rem;
  word-break: break-all;
}

.overview-link .ext-link {
  margin-left: 0;
}

.job-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.job-row.row-expanded {
  background: var(--highlight-bg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.action-card-auto:hover {
  border-color: var(--link);
  background: transparent;
}

.action-card-auto .action-card-label { color: var(--link); }

.match-score {
  font-weight: 700;
  font-size: 0.85rem;
}

.match-high { color: var(--open); }
.match-mid { color: var(--wait); }
.match-low { color: var(--muted); }

.match-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.match-good { color: var(--open); }
.match-gap { color: var(--wait); }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.profile-sidebar,
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.profile-cv-card,
.profile-share-card,
.profile-showcase-card {
  padding: 0.85rem 1rem;
  width: 100%;
}

.profile-cv-card h2,
.profile-share-card h2,
.profile-showcase-card h2 {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.profile-cv-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.profile-cv-form input[type="file"] {
  flex: 1 1 8rem;
  min-width: 0;
  font-size: 0.8rem;
}

.profile-cv-form input[type="file"]::file-selector-button {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  margin-right: 0.5rem;
  background: var(--btn-primary-bg);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.profile-cv-form input[type="file"]::file-selector-button:hover {
  background: var(--btn-primary-hover);
}

.profile-shell .stack-form label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.profile-shell .stack-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.profile-shell .stack-form textarea,
.profile-shell .share-input {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
}

.profile-shell .stack-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

.profile-shell .tag-editor {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.profile-shell .btn-sm {
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
}

.profile-shell .btn-sm:hover {
  background: var(--btn-primary-hover);
}

.profile-shell .stack-form .btn-sm {
  align-self: flex-start;
  width: auto;
  margin-top: 0.75rem;
}

.unsaved-dialog-stay {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.unsaved-dialog-stay:hover {
  background: var(--highlight-bg);
}

.unsaved-dialog-leave {
  background: var(--btn-primary-bg);
  border-radius: 999px;
}

.profile-snackbar {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.profile-snackbar.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.profile-snackbar.is-hiding {
  opacity: 0;
  transform: translate(-50%, 0.75rem);
}

[data-theme="dark"] .profile-snackbar {
  background: #16a34a;
}

.unsaved-dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  max-width: min(22rem, calc(100vw - 2rem));
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.unsaved-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.unsaved-dialog-body {
  margin: 0;
  padding: 1.25rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.unsaved-dialog-body h2 {
  margin: 0;
  font-size: 1.05rem;
}

.unsaved-dialog-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.unsaved-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.profile-cv-filename {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}

.profile-share-card .meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}

.profile-share-card .share-input {
  width: 100%;
  box-sizing: border-box;
}

.share-link-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-link-row .share-input {
  flex: 1 1 auto;
  min-width: 0;
}

.share-link-row .btn-sm {
  flex: 0 0 auto;
}

.profile-section-hint {
  margin: -0.35rem 0 0.85rem;
}

.profile-public-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.profile-public-card-head h2 {
  margin: 0;
}

.profile-public-card-head .btn-sm {
  flex: 0 0 auto;
  margin-top: 0;
}

.profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.profile-edit-actions .btn-sm {
  margin-top: 0;
}

.profile-public-header {
  margin-top: 1.25rem;
}

.profile-public-header + .profile-public-card,
.profile-public-card + .profile-showcase-card {
  margin-top: 1.25rem;
}

.profile-public-card + .profile-showcase-card {
  width: fit-content;
  max-width: 100%;
}

.profile-public-header h1 {
  margin: 0;
  font-size: 1.35rem;
}

.resume-identity {
  margin-bottom: 1rem;
}

.resume-name {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
}

.resume-headline {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.resume-meta-row {
  margin: 0.35rem 0 0;
}

.resume-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.resume-column {
  min-width: 0;
}

.profile-card.profile-public-resume {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.profile-public-resume .resume-identity,
.profile-public-resume .resume-block {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

[data-theme="light"] .profile-public-resume .resume-identity,
[data-theme="light"] .profile-public-resume .resume-block {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.profile-public-resume .resume-identity {
  margin: 0 0 1.25rem;
}

.profile-public-resume .resume-columns {
  gap: 1.25rem;
}

.profile-public-resume .resume-block {
  margin-top: 1.25rem;
}

.profile-public-resume .resume-column > .resume-block:first-child {
  margin-top: 0;
}

.resume-editor .resume-block .resume-sublabel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.profile-public-resume .resume-column-secondary .resume-item-head strong,
.profile-public-resume .resume-column-secondary .resume-item-title {
  font-weight: 400;
}

.resume-block {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.resume-block h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.resume-summary {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.resume-contact-list,
.resume-timeline,
.resume-simple-list,
.resume-bullets {
  margin: 0;
  padding-left: 1.6rem;
}

.resume-contact-list li,
.resume-timeline > li,
.resume-simple-list li {
  margin-bottom: 0.55rem;
}

.resume-contact-list .meta {
  font-size: inherit;
}

.resume-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.resume-item-head strong {
  flex: 1 1 12rem;
}

.resume-item-head .resume-item-title {
  flex: 1 1 12rem;
  font-weight: 400;
}

.resume-item-head + .meta {
  margin: 0.1rem 0 0;
}

.resume-bullets {
  margin-top: 0.35rem;
}

.resume-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.resume-tag-list .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.resume-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.resume-block-head h3 {
  margin: 0;
}

.resume-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.resume-field-grid.resume-field-stack {
  grid-template-columns: 1fr;
}

.profile-shell .resume-editor .resume-block label {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.resume-editor .resume-block label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.resume-editor .resume-block label > .meta {
  font-weight: 400;
  line-height: 1.2;
}

.resume-editor .resume-block .checkbox-label {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
  margin-top: 1.4rem;
}

.resume-editor .resume-block input[type="text"],
.resume-editor .resume-block input[type="email"],
.resume-editor .resume-block input[type="url"],
.resume-editor .resume-block input[type="number"],
.resume-editor .resume-block textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.5rem;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.resume-editor .resume-block textarea {
  min-height: 6rem;
}

.resume-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.resume-lines-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.resume-lines-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.resume-line-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-line-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
  min-height: 2.5rem;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.resume-line-row .js-resume-line-remove {
  flex: 0 0 auto;
}

.resume-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.resume-item-editor {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-inset);
  padding: 0.85rem;
}

.resume-item-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

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

  .resume-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.showcase-form {
  gap: 1rem;
}

.showcase-kind {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.35rem;
}

.showcase-kind + .showcase-kind {
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
  padding-top: 0.75rem;
}

.showcase-kind-title {
  margin: 0;
  font-size: 0.9rem;
}

.showcase-search-label {
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  gap: 0.35rem !important;
  font-size: 0.85rem;
}

.showcase-search-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.showcase-search-input {
  width: 100% !important;
  border-radius: 8px;
  padding: 0.5rem 2.35rem 0.5rem 0.75rem !important;
}

.showcase-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.showcase-search-wrap.is-loading .showcase-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.showcase-search-spinner {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid var(--border);
  border-top-color: var(--link);
  border-radius: 50%;
  animation: showcase-search-spin 0.7s linear infinite;
  pointer-events: none;
}

.showcase-search-spinner[hidden] {
  display: none !important;
}

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

.showcase-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 0.35rem;
}

.showcase-search-results[hidden] {
  display: none !important;
}

.showcase-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.showcase-result:hover {
  background: var(--surface);
}

.showcase-result img {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--border);
  flex-shrink: 0;
}

.showcase-result-label {
  font-size: 0.85rem;
  line-height: 1.3;
}

.showcase-selected {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.showcase-selected-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 96px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.showcase-selected-thumb {
  width: 96px;
  height: 144px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--border);
  display: block;
}

.showcase-poster-link {
  display: block;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}

.showcase-poster-link:hover .showcase-selected-thumb,
.showcase-poster-link:hover .showcase-poster-img {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

.showcase-selected-thumb.is-fallback,
.showcase-poster-img.is-fallback {
  object-fit: contain;
  padding: 1rem;
  background: #000;
  box-sizing: border-box;
}

.showcase-selected-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.showcase-selected-title {
  font-size: 0.75rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-remove {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
}

.showcase-remove:hover {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.showcase-poster-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.showcase-poster-item {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.showcase-poster-img {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--border);
  display: block;
}

.showcase-poster-img.is-fallback {
  object-fit: contain;
  padding: 1rem;
  background: #000;
  box-sizing: border-box;
}

.showcase-poster-title {
  font-size: 0.75rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-poster-year {
  font-size: 0.7rem;
}

.showcase-kind-public + .showcase-kind-public {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.share-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.profile-activity {
  margin-top: 1rem;
  overflow: hidden;
}

.profile-shell {
  margin-top: 0.5rem;
}

.profile-tab-intro {
  margin: 0 0 1rem;
}

.profile-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: -1px;
  padding: 0.65rem 1.25rem;
}

.profile-tab:hover {
  color: var(--link);
}

.profile-tab.active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.profile-tab-panel {
  margin-top: 0.25rem;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.activity-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.activity-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.activity-link:hover,
.activity-link:focus-visible {
  border-color: var(--accent);
  background: var(--bg);
  color: inherit;
}

.activity-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.activity-job {
  font-weight: 600;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.activity-time {
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

.activity-text {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.activity-gif {
  display: block;
  max-width: min(100%, 220px);
  max-height: 160px;
  border-radius: 8px;
  margin-top: 0.4rem;
}

.sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.cover-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  white-space: pre-wrap;
  font-size: 0.85rem;
  overflow-x: auto;
}

/* Search landing (home) */
.search-landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 10rem);
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 2rem 4vw 4rem;
  box-sizing: border-box;
}

.search-landing-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.search-landing-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

.search-landing-subtitle {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.search-landing .hero-search-form {
  width: 50vw;
  max-width: 50vw;
  margin: 0 auto;
  text-align: left;
}

.search-landing .hero-search-primary {
  max-width: none;
  box-shadow: var(--search-pill-shadow);
}

.search-landing .hero-search-primary .hero-search-field {
  min-height: 68px;
  padding: 0 1.25rem;
}

.search-landing .hero-search-primary .hero-search-keywords {
  flex: 1 1 auto;
  padding-left: 1.75rem;
  gap: 0.75rem;
}

.search-landing .hero-search-icon svg {
  width: 24px;
  height: 24px;
}

.search-landing .hero-search-primary input[type="search"] {
  padding: 1rem 0;
  font-size: 1.1rem;
}

.search-landing .hero-search-primary .hero-search-btn {
  margin: 8px;
  padding: 0 2.5rem;
  font-size: 1.05rem;
  min-height: 52px;
}

.search-landing .hero-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  width: 100%;
  justify-content: flex-end;
}

.search-landing .hero-filter-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 0 0 auto;
  width: 200px;
  min-width: 0;
}

.search-landing .hero-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding-left: 0.25rem;
}

.search-landing .hero-filter-field select,
.search-landing .hero-filter-field input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 2rem 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--search-input-bg);
  border: 1px solid var(--search-input-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  outline: none;
  appearance: none;
}

.search-landing .hero-filter-field select:focus,
.search-landing .hero-filter-field input[type="text"]:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px var(--highlight-bg);
}

.search-landing .hero-search-select .hero-select-chevron {
  position: absolute;
  right: 0.85rem;
  bottom: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  font-size: 0.85rem;
}

.search-landing .hero-filter-location .autocomplete-list {
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
}

/* Hero search pill */
.hero-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: var(--search-pill-bg);
  border-radius: 999px;
  box-shadow: var(--search-pill-shadow);
  border: 1px solid var(--search-pill-border);
  overflow: visible;
  position: relative;
}

.hero-search-field {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  min-height: 52px;
  position: relative;
}

.hero-search-keywords {
  flex: 1.4 1 0;
  min-width: 0;
  padding-left: 1.25rem;
  gap: 0.5rem;
}

.hero-search-icon {
  color: var(--muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hero-search-keywords input[type="search"],
.hero-search-location input[type="text"] {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  box-shadow: none;
}

.hero-search-keywords input[type="search"]::placeholder,
.hero-search-location input[type="text"]::placeholder {
  color: var(--muted);
}

.hero-search-keywords input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.hero-search-divider {
  width: 1px;
  align-self: stretch;
  margin: 0.65rem 0;
  background: var(--border);
  flex-shrink: 0;
}

.hero-search-select {
  flex: 0.9 1 0;
  min-width: 0;
  position: relative;
}

.hero-search-select select {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.hero-search-select select:invalid,
.hero-search-select select option[value=""] {
  color: var(--muted);
}

.hero-select-chevron {
  position: absolute;
  right: 0.25rem;
  color: var(--muted);
  pointer-events: none;
  font-size: 0.85rem;
}

.hero-search-location {
  flex: 0.9 1 0;
  min-width: 0;
}

.hero-search-location .autocomplete-list {
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
}

.hero-search-btn {
  flex-shrink: 0;
  margin: 6px;
  padding: 0 1.75rem;
  border: none;
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.hero-search-btn:hover {
  background: var(--btn-primary-hover);
}

/* Jobs results page */
.has-jobs-top-bar main.container {
  padding-top: 0;
}

.has-jobs-top-bar .page-layout {
  margin-top: 1.25rem;
}

.page-jobs {
  padding-top: 0;
}

.jobs-top-chrome {
  position: sticky;
  top: var(--header-height);
  z-index: 9;
  background: var(--search-bar-bg);
  overflow: visible;
}

.jobs-top-chrome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  column-gap: 1.5rem;
  align-items: stretch;
}

.jobs-top-chrome-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.jobs-top-chrome-rail {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  min-height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.jobs-top-chrome-tabs {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.jobs-top-chrome-rail-spacer {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
}

.search-human-illustration {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: 9rem;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: auto 100%;
  pointer-events: none;
}

.jobs-search-bar {
  position: relative;
  top: auto;
  z-index: auto;
  width: 100%;
  padding: 0.85rem 0 0.35rem;
  background: var(--search-bar-bg);
  /* Let clicks reach job cards that scroll underneath non-control areas. */
  pointer-events: none;
  overflow: visible;
}

.jobs-search-bar a,
.jobs-search-bar button,
.jobs-search-bar input,
.jobs-search-bar select,
.jobs-search-bar summary,
.jobs-search-bar label,
.jobs-search-bar .autocomplete-list,
.jobs-search-bar details,
.jobs-search-bar .advanced-search-panel,
.jobs-search-bar .advanced-search-toggle {
  pointer-events: auto;
}

.jobs-search-bar-inner {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
  max-width: none;
}

.jobs-search-bar .hero-search-form {
  width: 100%;
  max-width: none;
  margin: 0;
}

.jobs-search-bar .hero-search-primary {
  max-width: none;
  width: 100%;
}

.jobs-search-bar .hero-search-primary .hero-search-keywords {
  flex: 1 1 auto;
}

.hero-search-advanced-slot {
  min-height: 1.85rem;
  margin-top: 0.45rem;
  padding-left: calc(1.25rem + 22px + 0.65rem);
  padding-right: 0.25rem;
}

.hero-search-advanced-wrap {
  width: 100%;
}

.hero-search-advanced-wrap.is-advanced-disabled {
  visibility: hidden;
  pointer-events: none;
}

.advanced-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  color: var(--link);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.2rem 0;
}

.advanced-search-toggle:hover {
  color: var(--accent);
}

.advanced-search-chevron {
  transition: transform 0.15s ease;
}

.advanced-search-toggle.is-open .advanced-search-chevron {
  transform: rotate(180deg);
}

.advanced-search-panel {
  margin-top: 0.65rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.advanced-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.jobs-search-bar .hero-filter-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.jobs-search-bar .hero-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.jobs-search-bar .hero-filter-field select,
.jobs-search-bar .hero-filter-field input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 1.75rem 0.65rem 0.85rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--search-input-bg);
  border: 1px solid var(--search-input-border);
  border-radius: 8px;
  outline: none;
  appearance: none;
}

.jobs-search-bar .hero-filter-field select:focus,
.jobs-search-bar .hero-filter-field input[type="text"]:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 2px var(--highlight-bg);
}

.jobs-search-bar .hero-search-select .hero-select-chevron {
  position: absolute;
  right: 0.75rem;
  bottom: 0.7rem;
  pointer-events: none;
}

.jobs-search-bar .hero-filter-location .autocomplete-list {
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
}

.jobs-search-bar .hero-search-field {
  min-height: 54px;
  padding: 0 1.25rem;
}

.jobs-search-bar .hero-search-keywords input[type="search"] {
  font-size: 1.05rem;
  padding: 0.85rem 0;
}

.jobs-search-bar .hero-search-icon svg {
  width: 22px;
  height: 22px;
}

.jobs-search-bar .hero-search-btn {
  margin: 5px;
  padding: 0 1.75rem;
  font-size: 1rem;
  min-height: 44px;
}

.hero-search-compact .hero-search-field {
  min-height: 42px;
}

.hero-search-compact .hero-search-btn {
  margin: 3px;
  padding: 0 1.25rem;
  font-size: 0.9rem;
}

.hero-search-type {
  flex: 0 0 auto;
  min-width: 8.5rem;
  padding: 0 0.5rem;
  position: relative;
}

.search-type-picker {
  position: relative;
}

.search-type-picker-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  padding: 0.65rem 1.75rem 0.65rem 0.25rem;
  outline: none;
  transition: background 0.12s;
}

.search-type-picker-btn:hover,
.search-type-picker-btn[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.04);
}

.search-type-picker-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
}

.search-type-picker-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  /* Anchor to the trigger's left edge so the menu stays on-screen on narrow
     viewports. right:0 made a 13.5rem menu overflow past the left edge. */
  left: 0;
  right: auto;
  min-width: 13.5rem;
  max-width: min(13.5rem, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 0.45rem;
  z-index: 50;
  overflow: hidden;
}

.search-type-picker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  color: #334155;
  cursor: pointer;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  transition: background 0.12s, color 0.12s;
}

.search-type-picker-icon {
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.12s;
}

.search-type-picker-text {
  line-height: 1.2;
}

.search-type-picker-item:hover,
.search-type-picker-item.is-selected {
  background: #eff6ff;
  color: #2563eb;
}

.search-type-picker-item:hover .search-type-picker-icon,
.search-type-picker-item.is-selected .search-type-picker-icon {
  color: #2563eb;
}

.search-type-picker-btn .hero-select-chevron {
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-search-type select {
  padding-top: 0;
}

.page-people {
  padding-top: 0;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem;
}

.people-grid-empty {
  grid-column: 1 / -1;
}

.people-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  text-align: center;
  min-height: 148px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.people-grid-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.people-grid-name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.people-grid-skills {
  font-size: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.people-grid-card .user-avatar-lg {
  width: 56px;
  height: 56px;
}

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

.page-companies {
  padding-top: 0;
}

.company-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.85rem;
}

.company-grid-empty {
  grid-column: 1 / -1;
}

.company-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  text-align: center;
  min-height: 148px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.company-grid-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.company-grid-name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-grid-meta {
  font-size: 0.78rem;
}

.company-avatar-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}

.company-avatar-frame.company-avatar-sm,
.company-avatar-img.company-avatar-sm,
.company-avatar.company-avatar-sm {
  width: 32px;
  height: 32px;
}

.company-avatar-frame.company-avatar-md,
.company-avatar-img.company-avatar-md,
.company-avatar.company-avatar-md {
  width: 40px;
  height: 40px;
}

.company-avatar-frame.company-avatar-lg,
.company-avatar-img.company-avatar-lg,
.company-avatar.company-avatar-lg {
  width: 64px;
  height: 64px;
}

.company-avatar-frame.company-avatar-lg {
  width: 72px;
  height: 72px;
}

.company-avatar-frame.company-avatar-lg .company-avatar-img {
  width: 72px;
  height: 72px;
}

.company-avatar-img {
  object-fit: contain;
  display: block;
  border: none;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
  min-width: 0;
  min-height: 0;
}

.company-avatar-frame .company-avatar-img {
  width: 100%;
  height: 100%;
}

.company-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.company-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.company-avatar-md {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}

.company-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.company-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.company-card-name {
  font-weight: 600;
  font-size: 1rem;
}

.company-card-meta {
  font-size: 0.85rem;
}

.company-card-arrow {
  color: var(--muted);
  flex-shrink: 0;
}

.jobs-results-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .search-landing .hero-search-form,
  .jobs-search-bar .hero-search-form {
    width: 100%;
    max-width: none;
  }

  .search-human-illustration {
    display: none;
  }

  .jobs-top-chrome-layout {
    grid-template-columns: 1fr;
  }

  .jobs-top-chrome-rail,
  .jobs-top-chrome-rail-spacer {
    display: none;
  }

  .jobs-top-chrome-tabs {
    grid-column: 1;
    grid-row: auto;
  }

  .advanced-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-landing .hero-search-primary {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 0.5rem;
  }

  .search-landing .hero-search-primary .hero-search-field {
    flex: 1 1 100%;
    border-bottom: none;
    padding: 0 0.75rem;
  }

  .search-landing .hero-search-primary .hero-search-btn {
    flex: 1 1 100%;
    margin: 0.5rem 0 0;
    border-radius: 12px;
    padding: 0.85rem;
  }

  .search-landing .hero-search-filters {
    justify-content: flex-end;
  }

  .search-landing .hero-filter-field {
    width: 46%;
    max-width: 200px;
  }

  .hero-search {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 0.5rem;
  }

  .hero-search-divider {
    display: none;
  }

  .hero-search-field {
    flex: 1 1 100%;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0.75rem;
  }

  .hero-search-field:last-of-type {
    border-bottom: none;
  }

  .hero-search-btn {
    flex: 1 1 100%;
    margin: 0.5rem 0 0;
    border-radius: 12px;
    padding: 0.75rem;
  }
}

/* --- Social feed --- */

.feed-tabs-sticky {
  background: var(--search-bar-bg);
  pointer-events: auto;
}

.feed-tabs-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  min-width: 0;
}

.feed-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0.75rem 0 0;
  border-bottom: 1px solid var(--border);
}

.feed-tabs-bar .feed-tabs {
  margin: 0;
  border-bottom: none;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-tabs-bar .feed-tabs::-webkit-scrollbar {
  display: none;
}

.feed-tabs-bar .job-sort-wrap {
  flex: 0 0 auto;
  margin: 0;
  padding-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  /* Mobile: search + tabs scroll with the feed (no sticky / collapse chrome). */
  .jobs-top-chrome {
    position: static;
    top: auto;
    z-index: auto;
  }

  .feed-tabs-bar {
    flex-wrap: nowrap;
    gap: 0.65rem;
    margin-top: 0.35rem;
  }

  .feed-tab {
    flex-shrink: 0;
    padding: 0.65rem 0.9rem;
  }

  .feed-tabs-bar .job-sort-wrap {
    padding-bottom: 0.55rem;
  }

  .job-sort-label {
    /* Keep label but allow the select to stay clear of tabs. */
    font-size: 0.8rem;
  }
}

.job-sort-label {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.job-sort-select {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 1.75rem 0.4rem 0.65rem;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
}

.job-sort-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.feed-tab {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.feed-tab:hover {
  color: var(--link);
}

.feed-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.job-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Author display:flex beats the UA [hidden] rule; keep soft-open hide reliable. */
.job-feed[hidden],
.js-feed-sentinel[hidden] {
  display: none !important;
}

.job-feed > .job-card,
.job-feed > .job-discussion,
.job-feed > .applied-card {
  width: 100%;
  max-width: none;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.5rem;
  scroll-margin-top: calc(56px + 7rem);
}

.job-card-clickable {
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
  color: inherit;
}

.job-card-clickable .no-card-nav {
  position: relative;
  z-index: 2;
}

.job-card-clickable:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
}

.comment-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.comment-controls {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-sizing: border-box;
  height: var(--job-action-btn-height);
  min-height: var(--job-action-btn-height);
  padding: 0 0.75rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--like-color);
  font-size: 0.85rem;
  line-height: 1;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.comment-controls:hover .comment-btn {
  border-color: var(--link);
  color: var(--link);
}

.comment-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.comment-count {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.page-feed,
.page-jobs,
.page-company,
.page-job-detail,
.page-applied,
.page-community {
  width: 100%;
}

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

.community-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.community-subtitle {
  margin: 0.25rem 0 0;
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.community-card-main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.community-card-main:hover .community-card-title,
.community-card-main:focus-visible .community-card-title {
  color: var(--accent);
}

.community-card-main:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.community-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.community-person-result .community-card-header {
  margin-bottom: 0;
}

.community-result-type {
  flex: 0 0 auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-inset);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.community-card-author {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.community-card-author strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.community-card-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.community-card-title {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.community-card-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-card-meta,
.community-card-actions {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.community-card-actions .like-controls,
.community-card-actions .comment-controls {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

/* Keep the full pill bounding box clickable (rounded corners otherwise miss). */
.community-card-actions .like-controls {
  border-radius: 999px;
}

.community-card-actions .like-controls .like-btn {
  pointer-events: none;
}

.post-detail-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
}

.post-detail-actions .like-controls {
  border-radius: 999px;
  cursor: pointer;
}

.post-detail-actions .like-controls .like-btn {
  pointer-events: none;
}

.post-comment-actions {
  margin-top: 1rem;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 1.5rem;
  align-items: start;
}

.page-layout-main {
  min-width: 0;
}

.sidebar-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
  min-width: 0;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sidebar-widget-cta {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.sidebar-widget-title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.sidebar-widget-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sidebar-stat-line {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.sidebar-stat-line strong {
  font-weight: 700;
}

.sidebar-widget-foot {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}

.sidebar-widget-foot a {
  color: var(--link);
  text-decoration: none;
}

.sidebar-widget-foot a:hover {
  text-decoration: underline;
}

.sidebar-job-mini {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.sidebar-job-mini-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-job-mini .company-avatar-frame,
.sidebar-job-mini .company-avatar,
.sidebar-job-mini .company-avatar-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sidebar-job-mini .company-avatar {
  font-size: 0.7rem;
}

.sidebar-company-mini {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.sidebar-company-mini .company-avatar-frame,
.sidebar-company-mini .company-avatar,
.sidebar-company-mini .company-avatar-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sidebar-company-mini .company-avatar {
  font-size: 0.7rem;
}

a.sidebar-company-mini,
a.sidebar-company-mini:visited,
a.sidebar-company-mini:hover {
  color: inherit;
  text-decoration: none;
}

.sidebar-company-mini:hover {
  background: var(--bg);
}

.sidebar-company-mini-static {
  cursor: default;
}

.sidebar-company-mini-static:hover {
  background: transparent;
}

.sidebar-company-mini-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sidebar-company-mini-name {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-company-mini-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.sidebar-job-mini:hover {
  background: var(--bg);
}

.sidebar-job-mini-title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-job-mini-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.sidebar-job-mini-badge {
  flex-shrink: 0;
}

.sidebar-job-mini-time {
  flex-shrink: 0;
}

.sidebar-comment-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.sidebar-comment-mini:hover {
  background: var(--bg);
}

.sidebar-comment-mini-body {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sidebar-comment-mini-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text);
  overflow: hidden;
  word-break: break-word;
}

.sidebar-comment-mini-gif-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin-top: 0.35rem;
  border-radius: 6px;
  display: flex;
  justify-content: flex-start;
}

.sidebar-comment-mini-gif {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  border-radius: 6px;
  object-fit: contain;
  object-position: left center;
  vertical-align: top;
}

.sidebar-comment-mini-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 0;
  max-width: 100%;
}

.sidebar-comment-mini-byline {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.sidebar-comment-mini-author {
  font-weight: 600;
  color: var(--text);
}

.sidebar-comment-mini-job {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.sidebar-comment-mini-score {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--like-active);
}

.sidebar-comment-mini-score .like-icon {
  width: 0.8rem;
  height: 0.8rem;
}

.sidebar-cta-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.sidebar-cta-text a {
  color: var(--link);
  font-weight: 500;
}

.sidebar-company-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sidebar-company-name {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.sidebar-company-name a {
  color: var(--text);
  text-decoration: none;
}

.sidebar-company-name a:hover {
  color: var(--link);
}

.sidebar-company-bio {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.sidebar-company-views {
  margin: 0 0 0.5rem;
}

.sidebar-widget-link {
  font-size: 0.82rem;
  color: var(--link);
  text-decoration: none;
}

.sidebar-widget-link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-rail {
    order: 2;
  }

  .page-layout-main {
    order: 1;
  }
}


.job-detail-back {
  margin: 0 0 1rem;
}

.job-detail-back a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.job-detail-back a:hover {
  color: var(--link);
}

.job-detail-post {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.job-detail-post.job-card {
  padding: 1.35rem 1.75rem;
}

.job-detail-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
}

.job-detail-actions .action-card-apply,
.job-detail-actions .action-card-auto,
.job-detail-actions .action-card-share,
.job-detail-actions .action-card-mark,
.job-detail-actions .action-card-tracked,
.job-detail-actions .action-card-done {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: var(--job-action-btn-height);
  min-height: var(--job-action-btn-height);
  min-width: 5.85rem;
  padding: 0 var(--job-action-btn-px);
  border-radius: 9999px;
  border: 1px solid var(--text);
  background: transparent;
}

.job-detail-actions .action-card-apply .action-card-label,
.job-detail-actions .action-card-auto .action-card-label,
.job-detail-actions .action-card-share .action-card-label,
.job-detail-actions .action-card-mark .action-card-label,
.job-detail-actions .action-card-tracked .action-card-label {
  color: var(--link);
  font-weight: 700;
}

.job-detail-actions .action-card-apply:hover,
.job-detail-actions .action-card-auto:hover,
.job-detail-actions .action-card-share:hover,
.job-detail-actions .action-card-mark:hover,
.job-detail-actions .action-card-tracked:hover {
  border-color: var(--link);
  background: transparent;
}

.job-detail-actions .action-card-form {
  flex: 0 0 auto;
  margin: 0;
}

.job-discussion {
  width: 100%;
  max-width: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.75rem;
}

.job-discussion-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.comment-form-top {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.job-card-applied {
  opacity: 0.85;
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.job-card-company {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.job-card-company-text {
  min-width: 0;
  flex: 1;
}

.job-card-company-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.job-card-params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.param-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--param-bg);
  color: var(--param-text);
  white-space: nowrap;
}

.company-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-bg), var(--avatar-bg-end));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.company-avatar.company-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
}

.company-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 1.1rem;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 0.65rem;
}

.user-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.2rem;
}

.user-avatar-initials {
  background: linear-gradient(135deg, var(--avatar-bg), var(--avatar-bg-end));
  color: #fff;
  font-weight: 700;
}

.user-avatar-initials-text {
  line-height: 1;
}

.user-avatar-preset {
  background: var(--user-avatar-color, var(--avatar-bg));
  background-image: url("/static/avatars/profile.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.user-avatar-snoo-orange { --user-avatar-color: #ff9b21; }
.user-avatar-snoo-blue { --user-avatar-color: #0079d3; }
.user-avatar-snoo-teal { --user-avatar-color: #0aa3a3; }
.user-avatar-snoo-purple { --user-avatar-color: #7c3aed; }
.user-avatar-snoo-pink { --user-avatar-color: #db2777; }
.user-avatar-snoo-green { --user-avatar-color: #16a34a; }
.user-avatar-snoo-gold { --user-avatar-color: #ca8a04; }
.user-avatar-snoo-slate { --user-avatar-color: #475569; }

.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 14rem;
}

.nav-user-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-avatar-link {
  text-decoration: none;
}

.company-name {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

a.company-name {
  color: var(--text);
}

a.company-name:hover {
  color: var(--link);
}

.job-card-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
}

.job-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.job-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.job-card-description {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
  /* Cap the home-list preview at 4 lines with a trailing ellipsis. */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-package-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.65rem 0 0.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  background: var(--package-card-bg);
  border: 1px solid var(--package-card-border);
}

.job-highlight-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.job-highlight-label {
  flex: 0 0 auto;
  min-width: 5.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.job-highlight-value,
.job-package-card-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
}

.page-job-detail .job-package-card {
  margin: 0.85rem 0 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
}

.page-job-detail .job-highlight-value,
.page-job-detail .job-package-card-text {
  font-size: 0.95rem;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.job-card-meta span::before {
  content: "·";
  margin-right: 0.75rem;
  color: var(--border);
}

.job-card-meta span:first-child::before {
  content: none;
  margin: 0;
}

.job-card-why {
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.job-card-summary {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.job-card-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding: 0.15rem 0;
  flex-wrap: wrap;
}

.job-card-footer .like-controls {
  flex: 0 0 auto;
}

.job-card-footer .comment-controls {
  flex: 0 0 auto;
}

.job-card-footer .like-btn,
.job-detail-actions .like-btn,
.community-card-actions .like-btn,
.post-detail-actions .like-btn {
  box-sizing: border-box;
  height: var(--job-action-btn-height);
  min-height: var(--job-action-btn-height);
  padding-top: 0;
  padding-bottom: 0;
  border: 1px solid var(--text);
  background: transparent;
}

.job-detail-actions .comment-controls {
  flex: 0 0 auto;
}

.job-card-action-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.job-card-action-pills .action-card-form {
  flex: 0 0 auto;
  margin: 0;
}

.job-card-action-pills .action-card-apply,
.job-card-action-pills .action-card-auto,
.job-card-action-pills .action-card-share,
.job-card-action-pills .action-card-mark,
.job-card-action-pills .action-card-tracked,
.job-card-action-pills .action-card-done {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: var(--job-action-btn-height);
  min-height: var(--job-action-btn-height);
  min-width: 5.85rem;
  padding: 0 var(--job-action-btn-px);
  border-radius: 9999px;
  border: 1px solid var(--text);
  background: transparent;
}

.job-card-action-pills .action-card-apply .action-card-label,
.job-card-action-pills .action-card-auto .action-card-label,
.job-card-action-pills .action-card-share .action-card-label,
.job-card-action-pills .action-card-mark .action-card-label,
.job-card-action-pills .action-card-tracked .action-card-label {
  color: var(--link);
  font-weight: 700;
}

.job-card-action-pills .action-card-apply:hover,
.job-card-action-pills .action-card-auto:hover,
.job-card-action-pills .action-card-share:hover,
.job-card-action-pills .action-card-mark:hover,
.job-card-action-pills .action-card-tracked:hover {
  border-color: var(--link);
  background: transparent;
}

.job-card-comment-stat {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

.job-card-engagement {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
  padding: 0.5rem 0;
}

.like-controls {
  display: inline-flex;
  align-items: center;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--like-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--like-color);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.like-btn:hover {
  border-color: var(--like-active);
  color: var(--like-active);
}

.like-btn.is-liked {
  background: var(--like-active-bg);
  border-color: var(--like-active);
  color: var(--like-active);
}

.like-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  display: block;
}

.like-count {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.job-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.job-card-actions .js-share-btn,
.job-detail-actions .js-share-btn {
  box-sizing: border-box;
  height: var(--job-action-btn-height);
  min-height: var(--job-action-btn-height);
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.comment-thread {
  flex: 1;
}

.comment-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.comment-toggle-btn:hover {
  border-color: var(--link);
  color: var(--link);
}

.comment-panel {
  margin-top: 0.75rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.75rem;
}

.comment-item {
  padding: 0;
  --comment-depth: 0;
}

.comment-item.comment-target-highlight > .comment-branch > .comment-row > .comment-main {
  border-radius: 8px;
  animation: comment-target-flash 2.2s ease;
}

@keyframes comment-target-flash {
  0%, 35% {
    background: color-mix(in srgb, var(--accent) 20%, transparent);
  }
  100% {
    background: transparent;
  }
}

.comment-branch {
  position: relative;
  z-index: 0;
}

.comment-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  position: relative;
}

.comment-gutter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--comment-avatar);
  flex-shrink: 0;
  z-index: 1;
}

.comment-gutter .user-avatar {
  width: var(--comment-avatar);
  height: var(--comment-avatar);
  flex-shrink: 0;
}

.comment-gutter-pending {
  min-height: var(--comment-avatar);
}

.comment-collapse-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.3rem;
  border: 1px solid var(--comment-rail);
  border-radius: 50%;
  background: var(--surface);
  color: var(--comment-rail);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.comment-item.has-replies > .comment-branch > .comment-row > .comment-gutter > .comment-collapse-btn {
  display: inline-flex;
}

.comment-collapse-btn:hover {
  border-color: var(--link);
  color: var(--link);
}

/* Thread line under collapse control, through the parent comment body */
.comment-item.has-replies:not(.is-collapsed) > .comment-branch > .comment-row > .comment-gutter::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--comment-avatar) + 1.25rem);
  bottom: 0;
  width: var(--comment-line-w);
  margin-left: calc(var(--comment-line-w) / -2);
  background: var(--comment-rail);
  pointer-events: none;
}

.comment-children > .comment-item {
  position: relative;
}

/* Continue vertical rail only through non-last siblings */
.comment-children > .comment-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(-1 * var(--comment-indent) + var(--comment-avatar) / 2 - var(--comment-line-w) / 2);
  top: 0;
  bottom: 0;
  width: var(--comment-line-w);
  background: var(--comment-rail);
  pointer-events: none;
  z-index: 0;
}

/* Curved elbow from parent thread into nested comment avatar */
.comment-children > .comment-item > .comment-branch > .comment-row > .comment-gutter::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--comment-indent) + var(--comment-avatar) / 2 - var(--comment-line-w) / 2);
  /* Reach into the parent so one continuous border forms the join */
  top: -2px;
  width: calc(var(--comment-indent) - var(--comment-avatar) / 2 + var(--comment-line-w) / 2);
  height: calc(var(--comment-avatar) / 2 + 2px);
  border-left: var(--comment-line-w) solid var(--comment-rail);
  border-bottom: var(--comment-line-w) solid var(--comment-rail);
  border-bottom-left-radius: var(--comment-curve);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

.comment-item.is-collapsed > .comment-branch > .comment-row > .comment-gutter::after,
.comment-item.is-collapsed .comment-gutter::before {
  display: none;
}

.comment-main {
  flex: 1;
  min-width: 0;
  padding: 0 0 0.5rem;
}

.comment-collapsed-summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.15rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
  min-height: var(--comment-avatar);
}

.comment-collapsed-summary:hover .comment-author {
  color: var(--link);
}

.comment-collapsed-summary .comment-author {
  color: var(--text);
}

.comment-like-controls {
  flex-shrink: 0;
}

.comment-like-controls .like-btn-compact {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
}

.comment-like-controls .like-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.comment-like-controls .like-count {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.comment-content {
  padding: 0;
}

.comment-children {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  padding-left: var(--comment-indent);
  position: relative;
}

.comment-children.is-hidden {
  display: none;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.comment-reply-btn:hover {
  color: var(--link);
}

.comment-load-more-wrap {
  margin-top: 0.75rem;
  text-align: center;
}

.comment-load-more-wrap.is-hidden {
  display: none;
}

.comment-load-more-btn {
  min-width: 8rem;
}

.comment-reply-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0;
}

.comment-reply-wrap {
  margin-top: 0.35rem;
}

.comment-reply-wrap.is-hidden {
  display: none;
}

.comment-reply-form textarea {
  margin-bottom: 0;
}

.comment-reply-form .comment-input-wrap textarea {
  padding-bottom: 2.75rem;
}

.comment-pending-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-pending-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--link);
  border-radius: 50%;
  animation: comment-pending-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.comment-item-pending {
  opacity: 0.85;
}

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

.comment-reply-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-reply-cancel {
  font-size: 0.8rem;
}

.comment-gif-btn {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
}

.comment-gif-btn:hover {
  border-color: var(--link);
  color: var(--link);
}

.comment-gif-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.comment-gif-previews:not(:empty) {
  margin-top: 0.4rem;
}

.comment-gif-preview {
  position: relative;
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comment-gif-preview img {
  display: block;
  max-width: 140px;
  max-height: 120px;
}

.comment-gif-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.comment-gif-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

.comment-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.comment-body .comment-text {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
}

.comment-body .comment-text:last-child {
  margin-bottom: 0;
}

.comment-gif {
  display: block;
  max-width: min(100%, 300px);
  max-height: 240px;
  border-radius: 8px;
  margin: 0.25rem 0 0.35rem;
}

.gif-picker {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.gif-picker.is-hidden {
  display: none;
}

.gif-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.gif-picker-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(70vh, 520px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--card-hover-shadow);
}

.gif-picker-header {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.gif-picker-search {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  background: transparent;
  color: inherit;
}

.gif-picker-close {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 0.25rem;
}

.gif-picker-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.35rem;
  padding: 0.65rem;
  overflow-y: auto;
}

.gif-picker-item {
  border: none;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--highlight-bg);
  aspect-ratio: 1;
}

.gif-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gif-picker-item:hover {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

.gif-picker-status,
.gif-picker-credit {
  padding: 0.5rem 0.75rem;
  margin: 0;
  text-align: center;
}

.gif-picker-credit {
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--comment-avatar);
  margin-bottom: 0.15rem;
}

.comment-author {
  font-size: 0.9rem;
}

.comment-time {
  font-size: 0.75rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.comment-input-wrap {
  position: relative;
}

/* Leave room at the bottom of the field for the overlaid submit button. */
.comment-input-wrap textarea {
  display: block;
  padding-bottom: 2.75rem;
}

.comment-submit-btn {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 1;
}

.comment-submit-btn.is-hidden {
  display: none;
}

.flair {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.flair-company {
  background: #d4e8d8;
  color: #0a4d1a;
}

.flair-applied {
  background: #cce4f6;
  color: #0b4d8a;
}

.flair-mod {
  background: #d4e8d8;
  color: #0a4d1a;
}

.feed-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.feed-cta {
  background: var(--feed-cta-bg);
  border: 1px solid var(--feed-cta-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.feed-error-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--text);
}

.feed-error-banner p {
  margin: 0;
  font-size: 0.95rem;
}

[data-theme="dark"] .feed-error-banner {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.feed-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feed-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 3rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.feed-load-more:not(.is-loading) .feed-load-more-text {
  display: none;
}

.feed-load-more.is-loading .feed-load-more-btn {
  opacity: 0.65;
}

.feed-load-more.is-loading .feed-load-more-text::after {
  content: '';
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.5rem;
  border: 2px solid var(--border);
  border-top-color: var(--link);
  border-radius: 50%;
  vertical-align: -0.1rem;
  animation: feed-spin 0.8s linear infinite;
}

.feed-load-more.is-error {
  color: var(--closed);
}

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

/* Applied cards */

.applied-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.applied-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.applied-feed .feed-empty {
  grid-column: 1 / -1;
}

.applied-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

@media (max-width: 900px) {
  .applied-feed {
    grid-template-columns: 1fr;
  }
}

.applied-card-closed {
  opacity: 0.8;
}

.applied-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.applied-card-title {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.applied-card-header .job-card-company {
  align-items: flex-start;
}

.applied-card-header .company-name {
  font-size: 0.9rem;
}

.applied-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.applied-card-notes {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.applied-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.applied-update-form {
  display: contents;
}

.applied-status-picker {
  position: relative;
  flex: 0 1 12rem;
  min-width: 8rem;
  max-width: 14rem;
  margin-left: auto;
}

.applied-status-picker-btn {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 36px;
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  background: var(--search-input-bg);
  border: 1px solid var(--search-input-border);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.applied-status-picker-btn:hover,
.applied-status-picker-btn[aria-expanded="true"] {
  border-color: var(--link);
}

.applied-status-picker-btn:focus-visible {
  border-color: var(--link);
  box-shadow: 0 0 0 2px var(--highlight-bg);
}

.applied-status-picker-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applied-status-picker-btn .hero-select-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.applied-status-picker-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 100%;
  width: max-content;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 0.45rem;
  z-index: 50;
  overflow: hidden;
}

.applied-status-picker-item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.applied-status-picker-item:hover,
.applied-status-picker-item.is-selected {
  background: #eff6ff;
  color: #2563eb;
}

.applied-notes-input {
  flex: 1 1 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--search-input-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--search-input-bg);
  outline: none;
}

.applied-notes-input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 2px var(--highlight-bg);
}

.applied-save-hint {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 4.5rem;
}

.applied-save-hint.is-saving {
  color: var(--muted);
}

.applied-save-hint.is-saved {
  color: var(--open);
}

.applied-save-hint.is-error {
  color: var(--closed);
}

/* Company profile */

.company-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.company-profile-header h1 {
  margin: 0 0 0.1rem;
}

.company-profile-header .meta {
  margin: 0;
}

.company-bio {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.company-website-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  color: var(--link);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.company-website-link:hover {
  text-decoration: underline;
}

.company-wiki-extract {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.company-wiki-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.company-wiki-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.company-wiki-more:hover {
  color: var(--link);
}

.welcome-card {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.welcome-form {
  margin-top: 1rem;
}

.welcome-avatar-preview-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.welcome-username-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.welcome-username-row input {
  flex: 1;
}

.welcome-hint {
  margin-top: -0.35rem;
}

.welcome-submit {
  margin-top: 0.5rem;
}

.profile-avatar-current {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.sidebar-comment-mini-author-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
