:root {
  --bg: #f5f6fa;
  --bg-elevated: #ffffff;
  --bg-soft: #f2f3f8;
  --line: #e4e7ee;
  --text: #1d2130;
  --muted: #6b7280;
  --accent: #6d5bd0;
  --accent-strong: #5b49c0;
  --accent-soft: #f0edfb;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --success: #067647;
  --success-soft: #e7f6ec;
  --warn: #b54708;
  --warn-soft: #fef6ee;
  --radius: 12px;
  --font: "Segoe UI", "Inter", "Helvetica Neue", sans-serif;
  --topbar-h: 56px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--accent-strong);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* ------------------------------------------------------------ top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
}

.brand-text strong {
  color: var(--accent);
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
}

.tabs {
  display: flex;
  gap: 6px;
  justify-self: center;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.tab.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tab-count {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  text-align: center;
}

.account {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-name {
  font-size: 13px;
  color: var(--muted);
}

.account-hint {
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
}

.home-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

/* ------------------------------------------------------------ buttons */

.ghost-btn,
.icon-btn {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  border-radius: 10px;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12.5px;
}

.icon-btn {
  width: 30px;
  padding: 0;
}

.ghost-btn:hover:not(:disabled),
.icon-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent);
}

.ghost-btn:disabled,
.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon-btn-close:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.icon-btn-refresh {
  color: var(--accent);
}

.icon-btn-refresh.is-spinning svg {
  animation: rc-spin 0.8s linear infinite;
}

.analyze-btn,
.add-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.analyze-btn:hover:not(:disabled) {
  background: var(--accent-strong);
}

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

.add-btn:hover:not(:disabled) {
  background: var(--accent-strong);
}

.add-btn.is-saved {
  background: var(--success-soft);
  color: var(--success);
}

.analyze-btn:disabled,
.add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--accent-strong);
  cursor: pointer;
  padding: 0;
  font-size: 12.5px;
}

/* ----------------------------------------------------------- auth page */

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 16px 40px rgba(29, 33, 48, 0.08);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  margin-bottom: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 18px;
}

.auth-tab {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
}

.auth-tab.is-active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(29, 33, 48, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-submit {
  margin-top: 4px;
}

.auth-foot {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

/* -------------------------------------------------------------- fields */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.field > span b {
  color: var(--danger);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.5;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.range-to {
  color: var(--muted);
  font-size: 12.5px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 14px;
}

.status {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.status.is-error,
.is-error {
  color: var(--danger);
}

/* ---------------------------------------------------------------- home */

.view {
  padding: 28px 24px 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.view.view-platform {
  max-width: none;
  padding: 0;
}

.home-title {
  margin: 0 0 4px;
  font-size: 22px;
}

.home-sub {
  margin: 0 0 22px;
  color: var(--muted);
}

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

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(109, 91, 208, 0.14);
}

/* Not yet available: shown dimmed with a badge and no hover/click affordance. */
.platform-card.is-coming-soon {
  position: relative;
  cursor: default;
  opacity: 0.6;
}

.platform-card.is-coming-soon:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.platform-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.platform-logo {
  display: inline-flex;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.platform-name {
  font-weight: 700;
}

.platform-meta {
  font-size: 12px;
  color: var(--accent-strong);
}

.platform-meta.is-empty {
  color: var(--muted);
}

/* --------------------------------------------------------------- saved */

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saved-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.saved-main {
  flex: 1 1 auto;
  min-width: 0;
}

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

.saved-line {
  margin: 2px 0 0;
  font-size: 12.5px;
}

.saved-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  vertical-align: middle;
}

.chip-new {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chip-rec {
  background: var(--success-soft);
  color: var(--success);
}

.chip-removable button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0 0 0 2px;
  font-size: 13px;
  line-height: 1;
}

.status-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--bg-soft);
  color: var(--muted);
}

.status-shortlisted {
  background: var(--success-soft);
  color: var(--success);
}

.status-maybe {
  background: var(--warn-soft);
  color: var(--warn);
}

.status-rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.empty h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
}

.empty p {
  margin: 0 0 16px;
}

.empty .add-btn,
.empty .ghost-btn {
  width: auto;
  display: inline-flex;
}

.empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* ------------------------------------------------------- platform page */

/* Single column: the analysis sidebar is the browser's own side panel, not
   part of the page. */
.platform-page {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--topbar-h));
}

.pf-jobbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.pf-jobbar-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  white-space: nowrap;
}

.pf-jobbar-picker {
  flex: 0 1 460px;
  min-width: 220px;
}

.pf-jobbar-hint {
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-btn.is-saved {
  color: #b54708;
  border-color: #f0ce9a;
  background: var(--warn-soft);
}

.rc-sidebar {
  background: #2b2f3a;
  padding: 14px;
  border-right: 1px solid #1f2230;
}

.rc-panel {
  position: sticky;
  top: calc(var(--topbar-h) + 14px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 12px 12px 14px;
  max-height: calc(100vh - var(--topbar-h) - 28px);
  overflow-y: auto;
}

.rc-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rc-panel-brand {
  font-weight: 700;
  color: var(--accent);
}

.rc-panel-user {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.context-line {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.jobs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jobs-head h2 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.jobs-count {
  color: var(--accent-strong);
}

.jobs-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.jobs-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.jobs-empty p {
  margin: 0;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-actions > button {
  flex: 1 1 130px;
}

/* attach zone */

.attach {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}

.attach-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.attach-btn:hover {
  border-color: var(--accent);
}

.attach-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.attach-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.attach-remove {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.attach-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

/* results */

.results {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.results-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.results-head h2 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.results-body {
  padding: 12px;
  font-size: 13px;
}

.loader-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 12px;
  text-align: center;
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: rc-spin 0.8s linear infinite;
}

.loader-title {
  margin: 0;
  font-weight: 600;
}

.loader-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

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

/* job picker */

.job-picker {
  position: relative;
}

.job-input {
  width: 100%;
  padding: 9px 32px 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  text-overflow: ellipsis;
}

.job-input:focus {
  outline: none;
  border-color: var(--accent);
  cursor: text;
}

.job-input:disabled {
  opacity: 0.6;
  cursor: wait;
}

.job-caret {
  position: absolute;
  top: 1px;
  right: 1px;
  height: calc(100% - 2px);
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0 10px 10px 0;
}

.job-picker.is-open .job-caret svg {
  transform: rotate(180deg);
}

.job-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  box-shadow: 0 10px 28px rgba(29, 33, 48, 0.16);
}

.job-option,
.job-create {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.35;
}

.job-option-title {
  color: var(--text);
  overflow-wrap: anywhere;
}

.job-option-meta,
.job-option-unread {
  color: var(--muted);
  font-size: 11px;
}

.job-option-unread {
  color: var(--accent-strong);
}

.job-option.is-active,
.job-option:hover,
.job-create.is-active,
.job-create:hover {
  background: var(--bg-soft);
}

.job-option.is-selected {
  background: var(--accent-soft);
}

.job-option.is-selected .job-option-title {
  font-weight: 600;
  color: var(--accent-strong);
}

.job-empty {
  padding: 10px 9px;
  color: var(--muted);
  font-size: 12px;
}

/* Pinned below the options: always present, never filtered out. */
.job-create {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  color: var(--accent-strong);
  font-weight: 600;
  position: sticky;
  bottom: -4px;
  background: var(--bg-elevated);
}

.job-create-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 13px;
}

/* ------------------------------------------------- platform main area */

.platform-main {
  min-width: 0;
  background: var(--bg);
}

.pf-topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.pf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.pf-nav {
  display: flex;
  gap: 22px;
  height: 100%;
}

.pf-nav-item {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.pf-nav-item.is-active {
  color: var(--text);
  border-bottom-color: #e5484d;
}

.pf-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.pf-crumb {
  color: var(--accent-strong);
}

.pf-crumb.is-current {
  color: var(--text);
  font-weight: 600;
}

.pf-crumb-sep {
  color: var(--muted);
}

.pf-grow {
  flex: 1 1 auto;
}

.pf-badge {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.pf-badge-good {
  background: var(--success-soft);
  color: var(--success);
}

.pf-badge-ok {
  background: #eff4ff;
  color: #175cd3;
}

.pf-badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.pf-badge-bad,
.pf-badge-muted {
  background: var(--danger-soft);
  color: var(--danger);
}

.pf-pager {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-pager-text {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: 6px;
}

.pf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}

.pf-btn:hover:not(:disabled) {
  border-color: var(--accent);
}

.pf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pf-btn-good {
  color: var(--success);
  border-color: #a6e0bb;
}

.pf-btn-bad {
  color: var(--danger);
  border-color: #f3b4ae;
}

.pf-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pf-btn-primary:hover:not(:disabled) {
  background: var(--accent-strong);
}

.pf-sep {
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 4px;
}

.pf-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  padding: 18px 24px 40px;
}

.pf-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pf-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.pf-card-head {
  display: flex;
  gap: 14px;
}

.pf-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.pf-name {
  margin: 0 0 4px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pf-summary {
  margin: 0 0 6px;
  color: #3b4050;
}

.pf-links {
  margin: 0;
  font-size: 12.5px;
}

.pf-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff8e8;
  font-size: 12.5px;
}

.pf-highlights span::first-letter {
  color: var(--success);
}

.pf-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.pf-contact .pf-btn {
  cursor: default;
}

.pf-card-title {
  margin: 0 0 12px;
  font-size: 15px;
}

.pf-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

.pf-detail {
  padding: 4px 0;
  font-size: 13px;
}

.pf-detail-label {
  color: var(--muted);
}

.pf-foot {
  margin: 12px 0 0;
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.pf-exp {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.pf-exp:first-of-type {
  border-top: 0;
}

/* applies list */

.pf-list {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  align-self: start;
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
  max-height: calc(100vh - var(--topbar-h) - 36px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 6px 8px;
}

.pf-list-head h3 {
  margin: 0;
  font-size: 14px;
}

.pf-list-head h3 span {
  color: var(--muted);
  font-weight: 500;
}

.pf-list-note {
  font-size: 11.5px;
  color: var(--accent-strong);
}

.pf-list-empty {
  margin: 0;
  padding: 12px 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.pf-row {
  display: grid;
  grid-template-columns: 8px auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pf-row:hover {
  background: var(--bg-soft);
}

.pf-row.is-current {
  background: var(--accent-soft);
  border-color: #d9d2f5;
}

.pf-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.pf-row.is-unread .pf-row-dot {
  background: var(--accent);
}

.pf-row.is-unread .pf-row-name {
  font-weight: 700;
}

.pf-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pf-row-name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-row-saved {
  color: #f79009;
}

.pf-row-line {
  font-size: 11.5px;
  color: #3b4050;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------- modal */

/* Create Job is a drawer that slides in from the right, over the page. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(29, 33, 48, 0.35);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.modal {
  width: 100%;
  max-width: 620px;
  height: 100vh;
  max-height: none;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: 0;
  box-shadow: -16px 0 48px rgba(29, 33, 48, 0.22);
  animation: rc-drawer-in 0.22s ease-out;
}

@keyframes rc-drawer-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.modal-body {
  flex: 1 1 auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
}

.steps {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0 20px 14px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
}

.step.is-current {
  color: var(--accent-strong);
  font-weight: 600;
}

.step.is-current .step-num {
  background: var(--accent);
  color: #fff;
}

.step.is-done .step-num {
  background: var(--success-soft);
  color: var(--success);
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}

.modal-error {
  flex: 1 1 auto;
  color: var(--danger);
  font-size: 12.5px;
}

.modal-primary {
  width: auto;
  margin-left: auto;
  padding: 9px 20px;
}

.chip-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: text;
}

.chip-input:focus-within {
  border-color: var(--accent);
}

.chip-input input {
  flex: 1 1 160px;
  border: 0;
  outline: none;
  padding: 4px;
  min-width: 120px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.check:has(:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.summary {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
}

.summary p {
  margin: 0 0 4px;
}

/* --------------------------------------------------------------- toast */

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 360px;
}

.toast.is-in {
  opacity: 1;
  transform: none;
}

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

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

  .rc-panel {
    position: static;
    max-height: none;
  }

  .pf-body {
    grid-template-columns: 1fr;
  }

  .pf-list {
    position: static;
    max-height: none;
  }

  .grid-2,
  .check-grid,
  .pf-details {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------
   Match Score Breakdown — copied from the extension panel stylesheet
   (component/orbit_workspace/src/sidebar/styles.css) so the web app draws
   the same cards the side panel does.
   ------------------------------------------------------------------------ */

.mb {
  --tone-good: #12b76a;
  --tone-good-fg: #05603a;
  --tone-good-bg: #e7f6ec;
  --tone-ok: #2e7cf6;
  --tone-ok-fg: #175cd3;
  --tone-ok-bg: #eff4ff;
  --tone-warn: #f79009;
  --tone-warn-fg: #b54708;
  --tone-warn-bg: #fef6ee;
  --tone-bad: #f04438;
  --tone-bad-fg: #b42318;
  --tone-bad-bg: #fef3f2;
  --tone-muted: #b6bcc9;
  --tone-muted-fg: #6b7280;
  --tone-muted-bg: #f2f4f8;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mb-spark {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

.mb-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mb-overall,
.mb-card,
.mb-facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 12px;
}

.mb-overall-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mb-overall-text {
  min-width: 0;
}

.mb-overall-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mb-overall-verdict {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

/* Fixed size: the ring must not shrink away when the verdict text is long. */
.mb-ring {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 2px solid currentColor;
}

.mb-ring strong {
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
}

.mb-ring span {
  font-size: 8px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.mb-ring-good { color: var(--tone-good-fg); background: var(--tone-good-bg); }
.mb-ring-ok { color: var(--tone-ok-fg); background: var(--tone-ok-bg); }
.mb-ring-warn { color: var(--tone-warn-fg); background: var(--tone-warn-bg); }
.mb-ring-bad { color: var(--tone-bad-fg); background: var(--tone-bad-bg); }
.mb-ring-muted { color: var(--tone-muted-fg); background: var(--tone-muted-bg); }

.mb-bar {
  margin: 10px 0 0;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.mb-bar-lg {
  height: 8px;
}

.mb-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.mb-fill-good { background: var(--tone-good); }
.mb-fill-ok { background: var(--tone-ok); }
.mb-fill-warn { background: var(--tone-warn); }
.mb-fill-bad { background: var(--tone-bad); }
.mb-fill-muted { background: var(--tone-muted); }

.mb-subject {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.mb-source {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.mb-facts-label,
.mb-chips-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mb-facts-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Label and value share a row until the panel gets narrow, where the value
   drops under its label rather than being squeezed to two characters. */
.mb-fact {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.mb-fact dt {
  flex: 0 0 88px;
  color: var(--muted);
}

.mb-fact dd {
  flex: 1 1 120px;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.mb-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mb-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.mb-weight {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.mb-pct {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mb-pill-good { color: var(--tone-good-fg); background: var(--tone-good-bg); }
.mb-pill-ok { color: var(--tone-ok-fg); background: var(--tone-ok-bg); }
.mb-pill-warn { color: var(--tone-warn-fg); background: var(--tone-warn-bg); }
.mb-pill-bad { color: var(--tone-bad-fg); background: var(--tone-bad-bg); }
.mb-pill-muted { color: var(--tone-muted-fg); background: var(--tone-muted-bg); }

/* An unscored dimension is excluded from the weighted average, so it must not
   read as a failing red card. */
.mb-card.is-unscored {
  border-style: dashed;
}

.mb-detail {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.mb-chips {
  margin-top: 10px;
}

.mb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mb-chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mb-chip-good,
.mb-chip-ok {
  color: var(--tone-good-fg);
  background: var(--tone-good-bg);
}

.mb-chip-warn {
  color: var(--tone-warn-fg);
  background: var(--tone-warn-bg);
}

.mb-chip-bad {
  color: var(--tone-bad-fg);
  background: var(--tone-bad-bg);
}

.mb-chip-muted {
  color: var(--tone-muted-fg);
  background: var(--tone-muted-bg);
}

/* ---------------------------------------------------------- saved jobs */

.saved-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.add-btn-inline {
  width: auto;
  padding: 9px 16px;
}

.seg-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 14px;
}

.seg-tab {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seg-tab.is-active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(29, 33, 48, 0.08);
}

.seg-count {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  text-align: center;
}

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

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.jobs-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.jobs-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.jobs-table tr:last-child td {
  border-bottom: 0;
}

.jobs-table .num {
  text-align: right;
}

.job-row {
  cursor: pointer;
}

.job-row:hover td {
  background: var(--bg-soft);
}

.job-title-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.job-platform {
  display: inline-flex;
}

.job-new {
  color: #e5484d;
  font-size: 12px;
}

.is-expired {
  color: var(--danger);
}

.job-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.job-status-published { color: var(--success); }
.job-status-expired { color: var(--danger); }
.job-status-draft { color: var(--muted); }
.job-status-closed { color: var(--muted); }

.row-open a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.row-open a:hover {
  color: var(--accent-strong);
}

.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px !important;
}

.section-title {
  margin: 28px 0 12px;
  font-size: 16px;
}

.status-hired {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pf-btn-hire {
  color: var(--accent-strong);
  border-color: #d9d2f5;
}

/* ---------------------------------------------------------- job detail */
.jd-head { margin-bottom: 14px; }
.jd-title-row { display: flex; align-items: center; gap: 12px; }
.jd-title-row h1 { margin: 0; font-size: 21px; }
.jd-back { text-decoration: none; font-size: 20px; color: var(--muted); line-height: 1; }
.jd-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.jd-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.jd-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.jd-actions strong { font-size: 15px; }
.jd-search { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; min-width: 200px; }
.jd-search:focus { outline: none; border-color: var(--accent); }
.jd-body { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.jd-filters { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: calc(var(--topbar-h) + 18px); }
.jd-filters h3 { margin: 0 0 12px; font-size: 14px; }
.jd-filter { margin-bottom: 16px; }
.jd-filter > label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.jd-filter select, .jd-filter input[type="range"] { width: 100%; }
.jd-filter select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elevated); }
.jd-radio { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 400 !important; color: var(--text) !important; margin-bottom: 5px; cursor: pointer; }
.jd-table td { vertical-align: middle; }
.jd-row.is-unread .jd-name { font-weight: 700; }
.jd-cand { display: inline-flex; align-items: center; gap: 10px; }
.jd-name { display: block; text-decoration: none; color: var(--text); font-weight: 600; }
.jd-sub { display: block; font-size: 11.5px; }
.mb-pill { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mb-pill-good { background: var(--success-soft); color: var(--success); }
.mb-pill-ok { background: #eff4ff; color: #175cd3; }
.mb-pill-warn { background: var(--warn-soft); color: var(--warn); }
.mb-pill-bad { background: var(--danger-soft); color: var(--danger); }
.jd-contact { font-size: 12px; }
.jd-contact a { display: block; }
.jd-row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.jd-status-select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; background: var(--bg-elevated); }
.jd-count { margin: 10px 4px; font-size: 12px; }
.modal-backdrop:has(.jd-add-modal) { align-items: center; justify-content: center; background: rgba(29, 33, 48, 0.45); }
.jd-add-modal { max-width: 560px; height: auto; max-height: calc(100vh - 48px); border-radius: 16px; margin: auto; animation: none; }
@media (max-width: 900px) { .jd-body { grid-template-columns: 1fr; } .jd-filters { position: static; } }

/* Keep the candidate cell tidy: name + one clamped sub-line. */
.jd-table td:first-child { max-width: 240px; }
.jd-cand { align-items: flex-start; }
.jd-cand-main { display: flex; flex-direction: column; min-width: 0; }
.jd-name {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--accent-strong); font-weight: 600; text-align: left; font: inherit;
}
.jd-name:hover { text-decoration: underline; }
.jd-star { color: #f79009; }
.jd-sub {
  display: block; max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px;
}

/* Candidate view modal. */
.cand-view-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cand-view-head h3 { margin: 0; font-size: 17px; }
.cand-view-head .mb-pill { margin-left: auto; }
.cand-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; }
.cand-facts div { display: flex; flex-direction: column; }
.cand-facts-wide { grid-column: 1 / -1; }
.cand-facts dt { font-size: 11.5px; color: var(--muted); }
.cand-facts dd { margin: 2px 0 0; }
.cand-summary { margin-top: 14px; }
.cand-summary dt { font-size: 11.5px; color: var(--muted); }
.cand-summary p { margin: 4px 0 0; line-height: 1.5; }

/* jd-table alignment fix: fixed layout so every cell clamps and rows stay a
   uniform height (auto layout ignored the max-width and let long text stretch
   the Candidate cell, knocking the row out of line). */
.jd-table { table-layout: fixed; width: 100%; min-width: 1180px; }
.jd-table th,
.jd-table td {
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 12px;
}
.jd-table th:nth-child(1), .jd-table td:nth-child(1) { width: 210px; max-width: 210px; }
.jd-table th:nth-child(2), .jd-table td:nth-child(2) { width: 74px; }
.jd-table th:nth-child(3), .jd-table td:nth-child(3) { width: 130px; }
.jd-table th:nth-child(4), .jd-table td:nth-child(4) { width: 84px; }
.jd-table th:nth-child(5), .jd-table td:nth-child(5) { width: 100px; }
.jd-table th:nth-child(6), .jd-table td:nth-child(6) { width: 104px; }
.jd-table th:nth-child(7), .jd-table td:nth-child(7) { width: 104px; }
.jd-table th:nth-child(8), .jd-table td:nth-child(8) { width: 90px; }
.jd-table th:nth-child(9), .jd-table td:nth-child(9) { width: 180px; }
.jd-table th:nth-child(10), .jd-table td:nth-child(10) { width: 60px; }

.jd-cand { align-items: center; }
.jd-cand-main { min-width: 0; }
.jd-name, .jd-sub { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-contact { overflow: hidden; }
.jd-contact a, .jd-contact span { display: block; overflow: hidden; text-overflow: ellipsis; }
.jd-row-actions { justify-content: center; }

/* Column chooser: a small popover of checkboxes to show/hide table columns,
   remembered per user. Hidden cells are removed from the fixed layout so the
   table shrinks to only its visible columns (no dead horizontal scroll). */
.jd-cols { position: relative; display: inline-flex; }
.jd-cols-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 196px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(29, 33, 48, 0.18);
}
.jd-cols-head {
  margin: 2px 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #8a8fa3);
}
.jd-cols-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.jd-cols-item:hover { background: var(--surface-2, #f4f5f9); }
.jd-cols-item input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent, #5b49c0);
  cursor: pointer;
}
.jd-cols-foot {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  text-align: right;
}
.jd-table th[hidden], .jd-table td[hidden] { display: none; }

/* Per-row actions collapsed into a 3-dots menu. The button sits in the table;
   the menu is a fixed-positioned popover shared by every row (positioned in JS),
   so the table's horizontal scroll container never clips it. */
.jd-kebab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #6b7180);
  cursor: pointer;
}
.jd-kebab:hover { background: var(--surface-2, #f1f2f6); color: var(--text, #1d2130); border-color: var(--line); }
.jd-rowmenu {
  position: fixed;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(29, 33, 48, 0.2);
}
.jd-menu-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--text, #1d2130);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.jd-menu-item:hover { background: var(--surface-2, #f1f2f6); }
.jd-menu-item.is-danger { color: #d3453b; }
.jd-menu-item.is-danger:hover { background: rgba(211, 69, 59, 0.1); }
.jd-menu-sep { height: 1px; margin: 5px 6px; background: var(--line); }
.jd-menu-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #6b7180);
}
.jd-rowmenu .jd-status-select {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 500;
  color: var(--text, #1d2130);
}

/* Candidate modal: inline sub-fields so phone (code + number) and experience
   (years + months) each still occupy a single grid cell. */
.field-inline { display: flex; align-items: center; gap: 8px; }
.field-inline > input, .field-inline > select { flex: 1 1 auto; min-width: 0; }
.field-inline .phone-code { flex: 0 0 98px; width: 98px; min-width: 98px; max-width: 98px; }
.field-inline .exp-unit { flex: 0 0 auto; font-size: 12px; color: var(--muted); }

/* Status tags: notice-period urgency and in/over-budget CTC. */
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.55; white-space: nowrap; }
.tag-green { background: #e4f5ec; color: #1a7f4b; }
.tag-teal { background: #e0f3f4; color: #0e8a8a; }
.tag-amber { background: #fdf1dd; color: #a9680a; }
.tag-red { background: #fde6e4; color: #c0392b; }
.tag-neutral { background: #eef0f4; color: #5b6172; }

/* Skills autocomplete under the job-modal chip input. */
.chip-input-wrap { position: relative; }
.skill-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(29, 33, 48, 0.16);
}
.skill-suggest-item {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  text-align: left;
  font-size: 13px;
  color: var(--text, #1d2130);
  cursor: pointer;
}
.skill-suggest-item:hover { background: var(--surface-2, #f1f2f6); }

/* Quill rich-text editor in the job-description step. */
.jd-editor-wrap { border-radius: 10px; }
.jd-editor-wrap .ql-toolbar.ql-snow { border-color: var(--line); border-top-left-radius: 10px; border-top-right-radius: 10px; }
.jd-editor-wrap .ql-container.ql-snow { border-color: var(--line); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.jd-editor-wrap .ql-container { min-height: 240px; font-size: 14px; font-family: inherit; }
.jd-editor-wrap .ql-editor { min-height: 240px; }
.jd-editor-wrap .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }

/* Real platform favicons on the Home cards + job chips. */
.platform-icon { display: block; object-fit: contain; background: #fff; }

/* Inline resume-download icon in a candidate row (shown when a CV file exists). */
.jd-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #6b7180);
  cursor: pointer;
  vertical-align: middle;
}
.jd-dl:hover { background: var(--surface-2, #f1f2f6); color: var(--brand, #6d5efc); border-color: var(--line); }
