:root {
  font-size: 18px;
  --jh-bg: #f5f7f9;
  --jh-surface: #ffffff;
  --jh-surface-2: #eef2f6;
  --jh-surface-3: #d9e0e8;
  --jh-surface-strong: #ffffff;
  --jh-surface-muted: #f8fafc;
  --jh-glass: rgba(255, 255, 255, 0.64);
  --jh-glass-strong: rgba(255, 255, 255, 0.82);
  --jh-line: rgba(15, 23, 42, 0.14);
  --jh-line-strong: rgba(15, 23, 42, 0.24);
  --jh-border: #e5e7eb;
  --jh-text: #111827;
  --jh-muted: rgba(17, 24, 39, 0.72);
  --jh-soft: rgba(17, 24, 39, 0.48);
  --jh-evergreen: #0f172a;
  --jh-forest: #1f2937;
  --jh-accent: #2563eb;
  --jh-blue: #2563eb;
  --jh-onlinejobs: #2563eb;
  --jh-teal: #22b8a0;
  --jh-lime: #d8ff63;
  --jh-action: #2563eb;
  --jh-action-deep: #1d4ed8;
  --jh-gold: #f0b94b;
  --jh-good: #168a55;
  --jh-warn: #ad7414;
  --jh-danger: #c2412f;
  --jh-card-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --jh-soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --jh-radius: 12px;
  --jh-control-radius: 999px;
  --jh-control-height: 42px;
  --jh-filter-label-height: 16px;
  --jh-filter-label-gap: 2px;
  --jh-content-width: 1320px;
}

html,
body {
  min-height: 100%;
  background: var(--jh-bg);
  overflow-x: hidden;
}

body.heatseeker-job-hunter-page {
  margin: 0;
  color: var(--jh-text);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.jh-app {
  min-height: 100vh;
  padding: 28px 18px 40px;
  background: var(--jh-bg);
}

.jh-shell {
  max-width: var(--jh-content-width);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.jh-nav {
  box-sizing: border-box;
  width: auto;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 0;
  padding: 10px max(18px, calc((100% - var(--jh-content-width)) / 2));
  margin: -28px calc(50% - 50vw) 0;
  position: relative;
  background: var(--jh-evergreen);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 36px rgba(7, 59, 43, 0.2);
}

.jh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fffaf0;
  text-decoration: none;
}

.jh-brand img {
  width: 132px;
  max-height: 34px;
  object-fit: contain;
}

.jh-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jh-nav-links a {
  color: rgba(255, 250, 240, 0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.jh-nav-links a:hover,
.jh-nav-links a.is-active {
  color: #fffaf0;
  background: rgba(216, 255, 99, 0.12);
  border-color: rgba(216, 255, 99, 0.22);
}

.jh-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  padding: 10px 0 0;
}

.jh-kicker {
  margin: 0 0 10px;
  color: var(--jh-forest);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 500;
}

.jh-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 620;
  color: var(--jh-evergreen);
}

.jh-subtitle {
  display: none;
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--jh-muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

.jh-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
}

.jh-summary-panel {
  position: sticky;
  top: 18px;
  grid-column: 3;
  grid-row: 2;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--jh-soft-shadow);
}

.jh-summary-panel .jh-kicker {
  margin-bottom: 12px;
  color: var(--jh-soft);
  font-size: 9px;
}

.jh-dashboard-nav {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  box-shadow: var(--jh-soft-shadow);
  min-width: 0;
}
.jh-dashboard-control-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.jh-dashboard-control-row .jh-search {
  flex: 0 1 340px;
  min-width: 240px;
  max-width: 360px;
}

.jh-dashboard-rate-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid var(--jh-border);
  padding-top: 12px;
}

.jh-dashboard-status-row {
  min-width: 0;
  border-top: 1px solid var(--jh-border);
  padding-top: 12px;
}

.jh-stat {
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  min-height: 70px;
  padding: 12px 14px;
  background: #ffffff;
  backdrop-filter: blur(18px);
  box-shadow: none;
  display: grid;
  align-content: center;
}

.jh-stat span,
.jh-label,
.jh-card-label,
.jh-field span,
.jh-select-filter span,
.jh-filter-popover-label,
.jh-range-filter legend {
  display: block;
  color: var(--jh-action);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.jh-label,
.jh-field span,
.jh-select-filter span,
.jh-filter-popover-label,
.jh-range-filter legend {
  min-height: var(--jh-filter-label-height);
  margin: 0 0 var(--jh-filter-label-gap) 12px;
  line-height: 1;
  white-space: nowrap;
}

.jh-filter-popover-wrap {
  width: auto;
  display: grid;
  align-content: end;
  flex: 0 0 auto;
  min-width: 0;
}

.jh-mute-switch {
  width: auto;
}

.jh-mute-manager-wrap {
  width: auto;
}

.jh-range-filter {
  width: fit-content;
  min-width: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.jh-range-inputs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: var(--jh-control-height);
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: #ffffff;
  padding: 0 10px;
  box-sizing: border-box;
}

.jh-range-inputs input {
  width: 68px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--jh-text);
  min-height: calc(var(--jh-control-height) - 2px);
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
}

.jh-range-inputs input + input {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--jh-border);
}

.jh-range-inputs input::placeholder {
  color: rgba(16, 59, 44, 0.42);
}

.jh-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
  line-height: 1;
}

.jh-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  justify-content: start;
  min-width: 0;
}

.jh-grid > .jh-dashboard-nav {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  box-sizing: border-box;
}

.jh-grid > .jh-stack {
  grid-column: 2;
}

.jh-grid > section.jh-stack {
  grid-row: 2;
}

.jh-job-hunter-nav {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  grid-column: 1;
  grid-row: 2 / span 2;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  box-shadow: var(--jh-soft-shadow);
  padding: 18px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.jh-job-hunter-nav .jh-kicker {
  margin: 0 0 2px;
  color: var(--jh-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jh-job-hunter-nav button {
  width: 100%;
  min-height: var(--jh-control-height);
  border-radius: var(--jh-control-radius);
  border: 1px solid var(--jh-border);
  background: #ffffff;
  color: var(--jh-evergreen);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 0 11px;
  cursor: pointer;
}

.jh-job-hunter-nav button:hover,
.jh-job-hunter-nav button.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--jh-action);
}

.jh-sidebar-scan {
  margin-top: 0;
  display: grid;
  gap: 8px;
}

.jh-sidebar-scan > strong {
  color: var(--jh-evergreen);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.jh-sidebar-scan .jh-kicker {
  margin-top: 0;
  margin-bottom: -4px;
}

.jh-sidebar-note {
  margin: 2px 0 8px;
  color: var(--jh-muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.45;
}

.jh-source-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.jh-source-actions button {
  min-height: 32px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: #ffffff;
  color: var(--jh-evergreen);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.jh-source-actions button:hover {
  background: #f7faf7;
  border-color: rgba(7, 59, 43, 0.34);
}

.jh-source-grid-inline {
  position: static;
  width: 100%;
  box-shadow: none;
  border: 0;
  padding: 0;
  background: transparent;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jh-sidebar-scan .jh-check {
  min-height: 34px;
  font-size: 12px;
}

.jh-sidebar-scan .jh-button {
  min-height: 48px;
  width: 100%;
  padding-inline: 12px;
  margin-top: 0;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--jh-control-radius);
  justify-content: center;
}

.jh-sidebar-scan .jh-button-primary {
  background: var(--jh-action);
  border-color: var(--jh-action);
  color: #ffffff;
}

.jh-sidebar-scan .jh-button-primary:hover {
  background: var(--jh-action-deep);
  border-color: var(--jh-action-deep);
  color: #ffffff;
}

.jh-sidebar-scan .jh-button-ghost {
  background: #ffffff;
  border-color: #bfdbfe;
  color: var(--jh-action);
}

.jh-sidebar-scan .jh-button-ghost:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--jh-action-deep);
}

.jh-ai-review-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.jh-sidebar-folders {
  border-top: 1px solid var(--jh-border);
  margin-top: 10px;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.jh-sidebar-folders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.jh-sidebar-folders-head span {
  color: var(--jh-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jh-folder-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.jh-sidebar-folders-head button {
  width: 24px;
  height: 24px;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--jh-action);
  display: inline-grid;
  place-items: center;
  padding: 0;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.jh-sidebar-folders-head button:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.jh-folder-delete-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jh-folder-delete-toggle.is-active {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}

.jh-folder-list {
  display: grid;
  gap: 2px;
}

.jh-folder-row {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--jh-muted);
}

.jh-folder-pill {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: #ffffff;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 18px;
  font: inherit;
  cursor: pointer;
}

.jh-folder-pill:hover,
.jh-folder-row.is-active .jh-folder-pill {
  background: #eff6ff;
  border-color: #dbeafe;
  color: var(--jh-action);
}

.jh-folder-row.is-active {
  font-weight: 700;
}

.jh-folder-name {
  min-width: 0;
  display: block;
  font-size: 13px;
  font-weight: inherit;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: inherit;
}

.jh-folder-count {
  color: var(--jh-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  margin-left: auto;
}

.jh-folder-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.jh-folder-menu-trigger {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid var(--jh-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--jh-soft);
  display: inline-grid;
  place-items: center;
  padding: 0;
  font: inherit;
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.jh-job-hunter-nav .jh-folder-menu-trigger {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
}

.jh-folder-menu-trigger:hover,
.jh-folder-menu-trigger[aria-expanded="true"] {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--jh-action);
}

.jh-folder-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 4px;
  z-index: 20;
  width: min(240px, calc(100% - 4px));
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  box-shadow: var(--jh-card-shadow);
  padding: 6px;
}

.jh-folder-menu button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--jh-text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.jh-folder-menu button:hover {
  background: var(--jh-surface-muted);
  color: var(--jh-action);
}

.jh-folder-menu button.jh-folder-menu-danger {
  color: #dc2626;
}

.jh-folder-menu button.jh-folder-menu-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.jh-folder-menu button:disabled {
  color: var(--jh-soft);
  cursor: not-allowed;
  opacity: 0.62;
}

.jh-folder-menu button:disabled:hover {
  background: transparent;
  color: var(--jh-soft);
}

.jh-folder-row.is-active .jh-folder-count,
.jh-folder-pill:hover .jh-folder-count {
  color: var(--jh-action);
}

.jh-folder-row[data-jh-folder-row=""] .jh-folder-pill {
  border-color: #dbeafe;
}

.jh-folder-pill.is-editing {
  cursor: text;
}

.jh-folder-row.is-delete-target:hover .jh-folder-pill {
  background: rgba(239, 68, 68, 0.1);
  border-color: #fecaca;
  color: #b91c1c;
}

.jh-folder-row.is-delete-protected .jh-folder-pill {
  cursor: not-allowed;
}

.jh-folder-row.is-delete-protected:hover .jh-folder-pill {
  background: #ffffff;
  border-color: var(--jh-border);
  color: var(--jh-muted);
}

.jh-folder-edit {
  flex: 1 1 auto;
  min-height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--jh-text);
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.jh-sidebar-scan .jh-scan-result {
  margin-top: 0;
  font-size: 12px;
  font-weight: 650;
}

.jh-grid > aside.jh-stack {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.jh-grid > aside.jh-stack > .jh-panel:nth-child(1) {
  grid-column: span 4;
}

.jh-grid > aside.jh-stack > .jh-panel:nth-child(2) {
  grid-column: span 8;
}

.jh-grid > aside.jh-stack > .jh-panel:nth-child(3),
.jh-grid > aside.jh-stack > .jh-panel:nth-child(4) {
  grid-column: span 6;
}

.jh-grid > aside.jh-stack > .jh-panel[data-jh-view-panel="search"],
.jh-grid > aside.jh-stack > .jh-panel[data-jh-view-panel="filters"] {
  grid-column: 1 / -1;
}

[data-jh-view-panel][hidden] {
  display: none !important;
}

.jh-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.jh-panel {
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  backdrop-filter: blur(18px);
  box-shadow: var(--jh-soft-shadow);
  overflow: hidden;
}

.jh-panel-head,
.jh-panel-body {
  padding: 16px;
}

.jh-panel-head {
  border-bottom: 1px solid var(--jh-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jh-panel-head strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.jh-feed-status {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.jh-feed-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.jh-feed-status .jh-kicker {
  margin-bottom: 6px;
}

.jh-feed-status strong {
  color: var(--jh-evergreen);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.jh-scan-progress {
  min-height: 34px;
  max-width: 520px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: var(--jh-surface-muted);
  color: var(--jh-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.jh-folder-ai-run {
  min-height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: var(--jh-control-radius);
  background: #eff6ff;
  color: var(--jh-action);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
}

.jh-folder-ai-run:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

.jh-folder-ai-run:disabled {
  border-color: var(--jh-border);
  background: var(--jh-surface-muted);
  color: var(--jh-soft);
  cursor: default;
}

.jh-mass-hide-run {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.jh-mass-hide-run:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.jh-mass-hide-run:disabled {
  border-color: var(--jh-border);
  background: var(--jh-surface-muted);
  color: var(--jh-soft);
}

.jh-scan-progress.is-running {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--jh-action);
}

.jh-scan-progress.is-running::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  animation: jh-pulse 1s ease-in-out infinite;
}

.jh-scan-progress.is-complete {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.jh-scan-progress.is-error {
  border-color: rgba(194, 65, 47, 0.24);
  background: #fdecea;
  color: var(--jh-danger);
}

.jh-backend-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: #ffffff;
  color: var(--jh-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 14px;
  white-space: nowrap;
}

.jh-backend-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 8px;
  background: #94a3b8;
}

.jh-backend-status.is-connected {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.jh-backend-status.is-connected::before {
  background: #22c55e;
}

.jh-backend-status.is-offline {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.jh-backend-status.is-offline::before {
  background: #ef4444;
}

.jh-backend-status.is-checking {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--jh-action);
}

.jh-backend-status.is-checking::before {
  background: #3b82f6;
}

.jh-backend-disabled,
.jh-button:disabled,
.jh-card-icon-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@keyframes jh-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.jh-discovery-panel .jh-panel-head {
  background:
    radial-gradient(circle at 22% 0%, rgba(216, 255, 99, 0.22), transparent 34%),
    linear-gradient(90deg, var(--jh-evergreen), #0f5d3f);
  padding-top: 12px;
  padding-bottom: 10px;
}

.jh-discovery-panel .jh-kicker,
.jh-discovery-panel .jh-panel-head strong {
  color: #fffaf0;
}

.jh-discovery-panel .jh-panel-head .jh-kicker {
  color: rgba(255, 250, 240, 0.68);
}

.jh-discovery-panel .jh-dashboard-nav button {
  border-color: rgba(255, 250, 240, 0.18);
  background: rgba(255, 250, 240, 0.08);
  color: rgba(255, 250, 240, 0.78);
}

.jh-discovery-panel .jh-dashboard-nav button.is-active {
  background: var(--jh-lime);
  color: var(--jh-evergreen);
  border-color: rgba(216, 255, 99, 0.72);
}

.jh-discovery-panel .jh-panel-body {
  padding-top: 12px;
}

.jh-discovery-panel #jh-scan-form {
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.35fr) auto auto;
  gap: 10px;
  align-items: end;
}

.jh-discovery-panel #jh-scan-form > .jh-form-row {
  display: contents;
}

.jh-discovery-panel #jh-scan-form textarea {
  min-height: 40px;
  height: 40px;
  resize: vertical;
}

.jh-discovery-panel #jh-scan-run {
  min-height: 40px;
  padding-inline: 14px;
  white-space: nowrap;
}

.jh-source-disclosure {
  position: relative;
  min-width: 150px;
}

.jh-source-disclosure summary {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  color: var(--jh-evergreen);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.jh-source-disclosure summary::-webkit-details-marker {
  display: none;
}

.jh-source-disclosure summary::after {
  content: "+";
  margin-left: 8px;
  color: var(--jh-soft);
}

.jh-source-disclosure[open] summary::after {
  content: "–";
}

.jh-source-grid {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  width: min(520px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: var(--jh-surface-strong);
  box-shadow: 0 22px 56px rgba(7, 59, 43, 0.16);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jh-discovery-panel .jh-scan-result {
  margin-top: 8px;
}

.jh-form {
  display: grid;
  gap: 12px;
}

.jh-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.jh-field {
  display: grid;
  align-content: end;
  gap: var(--jh-filter-label-gap);
}

.jh-field input,
.jh-field textarea,
.jh-field select,
.jh-search input,
.jh-select-filter select,
.jh-filter-popover summary {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: #ffffff;
  color: var(--jh-text);
  min-height: var(--jh-control-height);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
}

.jh-field textarea {
  border-radius: var(--jh-radius);
  min-height: 132px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
  line-height: 1.55;
}

.jh-field input::placeholder,
.jh-field textarea::placeholder,
.jh-search input::placeholder {
  color: rgba(16, 59, 44, 0.42);
  font-size: 13px;
  font-weight: 500;
}

.jh-field input:focus,
.jh-field textarea:focus,
.jh-field select:focus,
.jh-search input:focus {
  border-color: rgba(47, 109, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.12);
}

.jh-range-filter:focus-within .jh-range-inputs {
  border-color: rgba(47, 109, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.12);
}

.jh-dashboard-nav .jh-search.is-filter-active input,
.jh-dashboard-nav .jh-select-filter.is-filter-active select,
.jh-dashboard-nav .jh-filter-popover-wrap.is-filter-active .jh-filter-popover summary,
.jh-dashboard-nav .jh-range-filter.is-filter-active .jh-range-inputs,
.jh-dashboard-nav .jh-sort-pay.is-filter-active {
  border-color: var(--jh-action);
  background: rgba(47, 109, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.08);
}

.jh-dashboard-nav .jh-search.is-filter-active .jh-label,
.jh-dashboard-nav .jh-select-filter.is-filter-active span,
.jh-dashboard-nav .jh-filter-popover-wrap.is-filter-active .jh-filter-popover-label,
.jh-dashboard-nav .jh-range-filter.is-filter-active legend {
  color: var(--jh-action);
  font-weight: 700;
}

.jh-check {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--jh-muted);
  font-size: 13px;
  font-weight: 500;
}

.jh-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--jh-accent);
}

.jh-button {
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  min-height: 44px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--jh-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.jh-button:hover {
  border-color: rgba(22, 138, 85, 0.38);
  background: rgba(238, 243, 216, 0.82);
}

.jh-button-primary {
  background: var(--jh-action);
  border-color: var(--jh-action-deep);
  color: #ffffff;
  box-shadow: none;
}

.jh-button-good {
  background: rgba(216, 255, 99, 0.35);
  border-color: rgba(22, 138, 85, 0.28);
}

.jh-button-ghost {
  background: #ffffff;
  color: var(--jh-action);
  border-color: #bfdbfe;
}

.jh-button-ghost:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--jh-action-deep);
}

.jh-button-danger {
  background: #ffffff;
  border-color: #fecaca;
  color: #dc2626;
}

.jh-button-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.jh-stack {
  display: grid;
  gap: 16px;
}

.jh-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.jh-filter-panel {
  display: none;
}

.jh-filter-bar {
  border-top: 1px solid var(--jh-border);
  border-bottom: 1px solid var(--jh-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--jh-surface-muted);
  min-width: 0;
}

.jh-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}

.jh-filter-row-primary {
  justify-content: space-between;
}

.jh-filter-row-tabs {
  border-top: 1px solid var(--jh-border);
  padding-top: 12px;
}

.jh-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.jh-search {
  width: auto;
  flex: 1 1 360px;
  min-width: 240px;
}

.jh-select-filter {
  width: auto;
  display: grid;
  align-content: end;
  gap: 0;
  flex: 0 0 auto;
}

.jh-select-filter select,
.jh-filter-popover summary {
  padding-right: 34px;
  padding-left: 14px;
}

.jh-dashboard-nav .jh-select-filter select,
.jh-dashboard-nav .jh-filter-popover summary {
  width: auto;
  min-width: 0;
  max-width: 280px;
  box-shadow: none;
}

.jh-dashboard-nav .jh-recency-filter select {
  max-width: 160px;
}

.jh-dashboard-nav .jh-hunt-profile-filter select {
  max-width: 190px;
}

.jh-dashboard-nav .jh-clear-filters {
  flex: 0 0 auto;
  min-height: var(--jh-control-height);
  align-self: flex-end;
  padding: 0 6px;
  margin-left: auto;
  white-space: nowrap;
}

.jh-sort-pay,
.jh-profile-button {
  flex: 0 0 auto;
  min-height: var(--jh-control-height);
  align-self: flex-end;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: #ffffff;
  color: var(--jh-muted);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
}

.jh-profile-button {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--jh-action);
}

.jh-sort-pay:hover,
.jh-profile-button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--jh-action);
}

.jh-filter-popover {
  position: relative;
  width: 100%;
}

.jh-filter-popover summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.jh-filter-popover summary::-webkit-details-marker {
  display: none;
}

.jh-filter-popover summary::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--jh-soft);
  border-bottom: 2px solid var(--jh-soft);
  transform: translateY(-60%) rotate(45deg);
}

.jh-filter-popover[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.jh-filter-popover summary strong {
  max-width: 236px;
  color: var(--jh-evergreen);
  font: inherit;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jh-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  width: 260px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  box-shadow: var(--jh-card-shadow);
  padding: 10px;
}

.jh-mute-menu {
  width: min(620px, calc(100vw - 48px));
  max-height: 520px;
  padding: 14px;
}

.jh-filter-menu-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--jh-border);
  margin-bottom: 8px;
}

.jh-filter-menu-actions button,
.jh-clear-filters {
  border: 0;
  background: transparent;
  color: var(--jh-action);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
}

.jh-filter-options {
  display: grid;
  gap: 2px;
}

.jh-source-filter .jh-filter-options {
  max-height: 20rem;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.jh-filter-check {
  min-height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--jh-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}

.jh-filter-check:hover {
  background: var(--jh-surface-muted);
}

.jh-filter-check input {
  accent-color: var(--jh-action);
}

.jh-mute-manager {
  display: grid;
  gap: 14px;
  color: var(--jh-text);
}

.jh-mute-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--jh-border);
}

.jh-mute-manager-head .jh-filter-popover-label {
  margin-left: 0;
}

.jh-mute-manager-head strong {
  display: block;
  margin-top: 4px;
  color: var(--jh-evergreen);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.jh-mute-manager-head p,
.jh-mute-empty {
  margin: 5px 0 0;
  color: var(--jh-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.jh-mute-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.jh-mute-group-list,
.jh-mute-editor {
  min-width: 0;
}

.jh-mute-group-list {
  display: grid;
  align-content: start;
  gap: 6px;
}

.jh-mute-group-row {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--jh-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--jh-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.jh-mute-group-row:hover,
.jh-mute-group-row.is-selected {
  background: var(--jh-surface-muted);
  border-color: #bfdbfe;
}

.jh-mute-group-row strong,
.jh-mute-group-row em {
  display: block;
}

.jh-mute-group-row strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.jh-mute-group-row em {
  margin-top: 3px;
  color: var(--jh-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.jh-mute-radio {
  width: 18px;
  height: 18px;
  border: 1px solid var(--jh-border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 4px #ffffff;
  flex: 0 0 auto;
}

.jh-mute-radio.is-active {
  border-color: var(--jh-action);
  background: var(--jh-action);
}

.jh-mute-editor {
  display: grid;
  align-content: start;
  gap: 12px;
}

.jh-mute-field {
  display: grid;
  gap: 7px;
}

.jh-mute-field .jh-filter-popover-label {
  margin-left: 0;
}

.jh-mute-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--jh-control-height);
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: #ffffff;
  color: var(--jh-text);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
}

.jh-mute-field input:focus {
  border-color: rgba(47, 109, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.12);
}

.jh-mute-tags {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.jh-mute-tags button {
  min-height: 30px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--jh-action);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.jh-mute-tags button:hover {
  background: #dbeafe;
}

.jh-mute-tags button span {
  color: rgba(37, 99, 235, 0.72);
  font-size: 15px;
  line-height: 1;
}

.jh-mute-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--jh-border);
  padding-top: 12px;
}

.jh-mute-link {
  border: 0;
  background: transparent;
  color: var(--jh-action);
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
}

.jh-mute-link.is-danger {
  color: var(--jh-danger);
}

.jh-status-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.nav-pill,
.jh-status-tabs button,
.jh-priority-toggle {
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: #ffffff;
  color: var(--jh-muted);
  min-height: var(--jh-control-height);
  padding: 0 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.active-pill,
.jh-status-tabs button.is-active,
.jh-priority-toggle.is-active {
  color: #ffffff;
  border-color: var(--jh-action);
  background: var(--jh-action);
}

.jh-status-tabs button {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  padding: 0 0 8px;
  min-height: 34px;
}

.jh-status-tabs button.is-active {
  color: var(--jh-text);
  border-color: transparent;
  border-bottom: 3px solid var(--jh-action);
  background: transparent;
}

.jh-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.jh-scan-result {
  margin-top: 12px;
  color: var(--jh-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 750;
}

.jh-scan-result strong {
  color: var(--jh-text);
}

.jh-empty {
  padding: 30px;
  color: var(--jh-muted);
  text-align: center;
  border: 1px dashed var(--jh-line);
  border-radius: 3px;
  font-size: 13px;
}

.jh-opportunity {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  color: var(--jh-text);
  padding: 22px 24px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
  font: inherit;
  position: relative;
  z-index: 1;
  box-shadow: var(--jh-card-shadow);
  transition: opacity 0.18s ease, transform 0.18s ease, max-height 0.18s ease, margin 0.18s ease, padding 0.18s ease;
  will-change: opacity, transform;
}

.jh-opportunity:has(.jh-card-context-menu),
.jh-opportunity:has(.jh-triage-popover) {
  z-index: 70;
}

.jh-opportunity.is-hiding {
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
}

.jh-opportunity:hover,
.jh-opportunity.is-active {
  border-color: #bfdbfe;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.12);
}

.jh-opportunity-top,
.jh-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.jh-opportunity-top,
.jh-pill-row,
.jh-opportunity-meta {
  grid-column: 1 / -1;
}

.jh-opportunity-top {
  align-items: start;
}

.jh-opportunity-top > span:first-child {
  min-width: 0;
}

.jh-opportunity-title-group {
  display: grid;
  gap: 7px;
  min-width: 0;
  justify-items: start;
}

.jh-card-tag-row {
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jh-opportunity strong {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.jh-card-identity,
.jh-card-pay,
.jh-card-meta,
.jh-card-footer,
.jh-card-close {
  min-width: 0;
}

.jh-card-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(180px, 3fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.jh-card-identity {
  display: grid;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
}

.jh-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.jh-title-line strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.jh-card-pay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 84px;
  align-self: start;
  text-align: right;
  white-space: nowrap;
  z-index: 75;
}

.jh-card-pay strong {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.jh-source-line {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jh-source-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jh-source-ai-verified {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.jh-source-ai-check {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.jh-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.jh-card-meta > span:not(:first-child)::before {
  content: "•";
  margin-right: 8px;
  color: #9ca3af;
}

.jh-card-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  flex: 0 0 auto;
  white-space: nowrap;
}

.jh-card-location {
  min-width: 0;
  max-width: min(64ch, 100%);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jh-card-ai-summary {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--jh-border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.jh-card-ai-summary:hover {
  opacity: 0.94;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.jh-card-ai-summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.jh-card-ai-verdict-badge {
  flex: 0 0 auto;
  min-height: 24px;
  border-radius: var(--jh-control-radius);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.jh-card-ai-summary-reason {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jh-card-ai-summary.is-prioritize {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.jh-card-ai-summary.is-prioritize .jh-card-ai-verdict-badge {
  background: #16a34a;
  color: #ffffff;
}

.jh-card-ai-summary.is-low-priority {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.jh-card-ai-summary.is-low-priority .jh-card-ai-verdict-badge {
  background: #2563eb;
  color: #ffffff;
}

.jh-card-ai-summary.is-skip {
  border-color: #fecaca;
  background: #fef2f2;
}

.jh-card-ai-summary.is-skip .jh-card-ai-verdict-badge {
  background: #ef4444;
  color: #ffffff;
}

.jh-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.jh-card-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.jh-card-close span {
  color: var(--jh-action);
  font-size: 12px;
  font-weight: 850;
}

.jh-card-close em {
  color: #6b7280;
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
}

.jh-source-tag {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  border-radius: var(--jh-control-radius);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jh-source-tag-blue {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.jh-source-tag-green {
  background: #e8f6ed;
  border-color: #d1ead9;
  color: #276749;
}

.jh-source-tag-purple {
  background: #f1ebff;
  border-color: #dfd3ff;
  color: #6346a4;
}

.jh-source-tag-orange {
  background: #fff0dd;
  border-color: #f6d9b2;
  color: #98610f;
}

.jh-source-tag-pink {
  background: #fdebf2;
  border-color: #f6d1de;
  color: #9b3b63;
}

.jh-source-tag-gray {
  background: #f1f1ef;
  border-color: #dfdfdc;
  color: #5f5f5b;
}

.jh-applied-badge {
  width: fit-content;
  min-height: 22px;
  border: 1px solid #86efac;
  border-radius: var(--jh-control-radius);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.jh-hunt-match-tag {
  width: fit-content;
  min-height: 22px;
  border: 1px solid #93c5fd;
  border-radius: var(--jh-control-radius);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.jh-opportunity small,
.jh-opportunity-meta-line {
  color: var(--jh-muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
}

.jh-opportunity-meta-line {
  display: block;
  grid-column: 1 / -1;
}

.jh-description-preview {
  display: -webkit-box;
  grid-column: 1 / -1;
  color: var(--jh-text);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.jh-card-action,
.jh-card-icon-action {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-control-radius);
  background: #ffffff;
  color: #6b7280;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.jh-bookmark-icon {
  width: 15px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.jh-card-icon-action.is-active .jh-bookmark-icon {
  fill: currentColor;
}

.jh-card-action:hover,
.jh-card-action:focus,
.jh-card-icon-action:hover,
.jh-card-icon-action:focus {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--jh-action);
  outline: none;
}

.jh-card-action.is-active,
.jh-card-icon-action.is-active,
.jh-card-icon-action.jh-bookmark-apply,
.jh-card-icon-action.jh-bookmark-priority,
.jh-card-icon-action.jh-bookmark-apply-now,
.jh-card-icon-action.jh-bookmark-low-priority,
.jh-card-icon-action.jh-bookmark-saved-later,
.jh-card-icon-action[class*="jh-bookmark-folder-"],
.jh-card-icon-action.jh-bookmark-maybe,
.jh-card-icon-action.jh-bookmark-evaluate,
.jh-card-icon-action.jh-bookmark-tailor,
.jh-card-icon-action.jh-bookmark-applied,
.jh-card-icon-action.jh-bookmark-interview,
.jh-card-icon-action.jh-bookmark-offer,
.jh-card-icon-action.jh-bookmark-skip,
.jh-card-icon-action.jh-bookmark-closed {
  border-color: var(--jh-border);
  background: #ffffff;
  color: #2563eb;
}

.jh-triage-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: max-content;
  min-width: 154px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  box-shadow: var(--jh-card-shadow);
  padding: 6px;
  display: grid;
  gap: 2px;
  text-align: left;
}

.jh-triage-popover button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--jh-text);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.jh-triage-popover button:hover,
.jh-triage-popover button.is-active {
  background: var(--jh-surface-muted);
  color: var(--jh-action);
}

.jh-card-hide-action {
  color: #94a3b8;
}

.jh-card-hide-action:hover,
.jh-card-hide-action:focus {
  border-color: rgba(194, 65, 47, 0.28);
  background: #fff7f6;
  color: var(--jh-danger);
}

.jh-card-menu-action {
  font-size: 20px;
  letter-spacing: 0;
}

.jh-card-context-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: max-content;
  min-width: 210px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  box-shadow: var(--jh-card-shadow);
  padding: 6px;
  display: grid;
  gap: 4px;
  text-align: left;
  white-space: nowrap;
}

.jh-card-context-row,
.jh-card-context-menu > button,
.jh-card-context-panel button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--jh-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.jh-card-context-row:hover,
.jh-card-context-row:focus,
.jh-card-context-menu > button:hover,
.jh-card-context-menu > button:focus,
.jh-card-context-panel button:hover,
.jh-card-context-panel button:focus,
.jh-card-context-panel button.is-active {
  background: var(--jh-surface-muted);
  color: var(--jh-action);
  outline: none;
}

.jh-card-context-submenu {
  position: relative;
  display: block;
}

.jh-card-context-panel {
  position: absolute;
  top: 0;
  right: calc(100% + 8px);
  z-index: 95;
  min-width: 190px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  box-shadow: var(--jh-card-shadow);
  padding: 6px;
  display: none;
  gap: 2px;
}

.jh-card-context-submenu:hover .jh-card-context-panel,
.jh-card-context-submenu:focus-within .jh-card-context-panel {
  display: grid;
}

.jh-card-context-danger {
  color: var(--jh-danger) !important;
}

.jh-card-context-danger:hover,
.jh-card-context-danger:focus {
  background: #fff7f6 !important;
  color: var(--jh-danger) !important;
}

.jh-ai-verified {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--jh-action);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.jh-ai-verified svg {
  width: 18px;
  height: 18px;
  fill: #dbeafe;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jh-pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.jh-opportunity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jh-opportunity-meta span {
  min-height: 26px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: rgba(238, 243, 216, 0.58);
  color: var(--jh-evergreen);
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
}

.jh-opportunity-meta em {
  color: var(--jh-soft);
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jh-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  padding: 2px 8px;
  color: var(--jh-muted);
  background: rgba(238, 243, 216, 0.76);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jh-pill-high {
  color: var(--jh-good);
  border-color: rgba(22, 138, 85, 0.28);
  background: rgba(216, 255, 99, 0.36);
}

.jh-pill-low {
  color: var(--jh-warn);
}

.jh-score {
  width: 58px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(18, 64, 47, 0.18);
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--jh-text);
  font-size: 12px;
  font-weight: 500;
  flex: 0 0 auto;
  box-shadow: none;
}

.jh-score-high {
  border-color: rgba(22, 138, 85, 0.42);
  background: #ffffff;
  color: var(--jh-evergreen);
  box-shadow: none;
}

.jh-score-mid {
  border-color: rgba(34, 184, 160, 0.36);
}

.jh-score-low {
  border-color: rgba(245, 208, 111, 0.34);
  box-shadow: none;
}

.jh-pay-badge {
  min-width: 150px;
  max-width: 220px;
  min-height: 34px;
  border: 1px solid rgba(22, 138, 85, 0.26);
  border-radius: 3px;
  background: rgba(216, 255, 99, 0.32);
  color: var(--jh-evergreen);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  flex: 0 0 auto;
}

.jh-modal-open {
  overflow: hidden;
}

.jh-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(10px);
}

.jh-modal-backdrop[hidden],
.jh-detail-modal[hidden] {
  display: none !important;
}

.jh-detail-modal {
  position: fixed;
  inset: 28px;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.jh-detail-card {
  width: min(1420px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  pointer-events: auto;
}

.jh-detail-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.jh-source-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.jh-source-link:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.jh-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: rgba(255, 253, 246, 0.86);
  color: var(--jh-text);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.jh-modal-close:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--jh-action);
}

.jh-detail-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.jh-detail-meta {
  margin-top: 8px;
  color: var(--jh-muted);
  font-size: 12px;
  font-weight: 400;
}

.jh-detail-meta a {
  color: var(--jh-accent);
  text-decoration: none;
}

.jh-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.jh-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
  gap: 18px;
  align-items: start;
  margin-top: 0;
}

.jh-detail-tabs {
  margin-top: 18px;
  border-top: 1px solid var(--jh-line);
  border-bottom: 1px solid var(--jh-line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.jh-detail-tabs button {
  min-height: 38px;
  border: 1px solid var(--jh-border);
  border-radius: 999px;
  background: var(--jh-surface-muted);
  color: var(--jh-soft);
  padding: 0 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.jh-detail-tabs button:hover {
  border-color: #bfdbfe;
  color: var(--jh-action);
}

.jh-detail-tabs button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--jh-action);
}

.jh-detail-tab-wrap {
  padding-top: 18px;
}

.jh-detail-tab-panel {
  min-width: 0;
}

.jh-detail-main,
.jh-detail-side {
  min-width: 0;
  align-self: start;
}

.jh-detail-main > .jh-section:first-child {
  margin-top: 0;
}

.jh-detail-side {
  position: sticky;
  top: 0;
  display: grid;
  gap: 14px;
}

.jh-detail-side .jh-detail-grid,
.jh-detail-side .jh-signal-grid {
  grid-template-columns: 1fr;
}

.jh-cardlet {
  min-height: 74px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: rgba(255, 253, 246, 0.78);
  padding: 12px;
  box-shadow: none;
}

.jh-cardlet strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.jh-pay-breakdown-card {
  display: grid;
  gap: 10px;
}

.jh-pay-breakdown-card > strong {
  margin-top: 0;
}

.jh-pay-breakdown-list {
  display: grid;
  gap: 8px;
}

.jh-pay-breakdown-list p {
  margin: 0;
  display: grid;
  gap: 3px;
}

.jh-pay-breakdown-list span {
  color: var(--jh-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.jh-pay-breakdown-list strong {
  margin: 0;
  color: var(--jh-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.jh-market-tag {
  display: block;
  margin-top: 8px;
  color: var(--jh-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.jh-signal-grid {
  margin-top: 0;
}

.jh-section {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.jh-detail-side .jh-section {
  margin-top: 0;
}

.jh-ai-panel {
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: rgba(255, 253, 246, 0.78);
  padding: 12px;
}

.jh-ai-panel.jh-ai-apply {
  border-color: rgba(22, 138, 85, 0.3);
}

.jh-ai-panel.jh-ai-review {
  border-color: rgba(36, 84, 166, 0.24);
}

.jh-ai-panel.jh-ai-skip {
  border-color: rgba(194, 65, 47, 0.24);
}

.jh-intel-report {
  gap: 16px;
  padding: 18px;
}

.jh-overview-report {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius);
  background: #ffffff;
  box-shadow: none;
}

.jh-overview-report hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--jh-line);
}

.jh-overview-report .jh-intel-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jh-overview-report .jh-intel-facts p {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
}

.jh-overview-report .jh-intel-facts span {
  padding: 0;
}

.jh-overview-report .jh-intel-facts strong,
.jh-overview-report .jh-intel-facts a {
  color: var(--jh-text);
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.jh-overview-report .jh-intel-facts a {
  color: var(--jh-action);
  text-decoration: none;
}

.jh-overview-list {
  margin: 0;
  padding-left: 18px;
  color: var(--jh-muted);
  font-size: 14px;
  line-height: 1.65;
}

.jh-overview-list li + li {
  margin-top: 6px;
}

.jh-original-job-description {
  white-space: pre-line;
  color: var(--jh-muted);
  font-size: 15px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.jh-intel-report hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--jh-line);
}

.jh-intel-section {
  display: grid;
  gap: 10px;
}

.jh-intel-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jh-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.jh-intel-section p {
  margin: 0;
  color: var(--jh-muted);
  font-size: 14px;
  line-height: 1.65;
}

.jh-intel-section strong {
  color: var(--jh-text);
  font-weight: 750;
}

.jh-executive-summary {
  display: grid;
  gap: 8px;
}

.jh-executive-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 30px;
}

.jh-executive-metrics p,
.jh-executive-narrative {
  margin: 0;
}

.jh-executive-metrics p {
  color: var(--jh-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.jh-executive-verdict,
.jh-executive-score {
  font-weight: 850;
}

.jh-executive-verdict.is-apply {
  color: #16a34a;
}

.jh-executive-verdict.is-prioritize {
  color: #2563eb;
}

.jh-executive-verdict.is-skip {
  color: #dc2626;
}

.jh-executive-score {
  color: #b7791f;
}

.jh-executive-narrative {
  color: var(--jh-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.jh-executive-fit-list {
  margin: -2px 0 0;
  padding-left: 20px;
  color: var(--jh-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.jh-executive-fit-list li + li {
  margin-top: 5px;
}

.jh-risk-flags-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.jh-risk-flag-column {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.jh-risk-flag-column + .jh-risk-flag-column {
  border-left: 1px solid var(--jh-line);
  padding-left: 18px;
}

.jh-risk-flag-column h4 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jh-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.jh-risk-flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
}

.jh-risk-flag-column.is-green .jh-risk-flag-icon {
  background: #dcfce7;
  color: #16a34a;
}

.jh-risk-flag-column.is-red .jh-risk-flag-icon {
  background: #fee2e2;
  color: #dc2626;
}

.jh-risk-flag-column ul,
.jh-intel-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--jh-muted);
  font-size: 14px;
  line-height: 1.6;
}

.jh-risk-flag-column li + li,
.jh-intel-section li + li {
  margin-top: 6px;
}

.jh-intel-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.jh-intel-facts p {
  color: var(--jh-text);
  font-weight: 650;
}

.jh-intel-facts span {
  color: var(--jh-soft);
  padding-inline: 4px;
}

.jh-ai-refresh-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: var(--jh-radius);
  background: #eff6ff;
}

.jh-ai-refresh-note p {
  color: var(--jh-action);
  font-size: 13px;
  font-weight: 650;
}

.jh-ai-empty-state {
  border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius);
  background: #ffffff;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 24px;
}

.jh-ai-empty-state h3,
.jh-ai-empty-state p {
  margin: 0;
}

.jh-ai-empty-state h3 {
  color: var(--jh-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.jh-ai-empty-state p:not(.jh-kicker) {
  max-width: 620px;
  color: var(--jh-muted);
  font-size: 14px;
  line-height: 1.6;
}

.jh-hunt-brief-card {
  width: min(1120px, calc(100vw - 40px));
}

.jh-profile-card {
  width: min(980px, calc(100vw - 40px));
}

.jh-profile-panel {
  margin-top: 18px;
}

.jh-profile-raw,
.jh-profile-output {
  display: grid;
  gap: 16px;
}

.jh-profile-raw textarea {
  min-height: 420px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.6;
}

.jh-profile-preview-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--jh-card-shadow);
}

.jh-profile-preview-card hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--jh-border);
}

.jh-profile-card-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.jh-profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jh-profile-section-edit {
  display: grid;
  gap: 8px;
}

.jh-profile-section-edit > span {
  color: var(--jh-action);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jh-profile-section-edit textarea,
.jh-profile-card-header textarea {
  min-height: 120px;
  resize: vertical;
}

.jh-profile-section-edit textarea {
  min-height: 150px;
}

.jh-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.jh-profile-save-note {
  margin: 0;
  color: var(--jh-soft);
  font-size: 13px;
  font-style: italic;
}

.jh-brief-section {
  margin-top: 26px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.jh-brief-heading {
  display: grid;
  gap: 5px;
}

.jh-brief-heading h3 {
  margin: 0;
  color: var(--jh-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jh-brief-heading p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.jh-control-center-hub {
  margin-top: 18px;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: #ffffff;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto minmax(170px, auto);
  gap: 10px;
  align-items: end;
  box-shadow: var(--jh-card-shadow);
}

.jh-control-center-hub .jh-select-filter,
.jh-control-center-hub .jh-field {
  min-width: 0;
}

.jh-control-center-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  justify-content: flex-start;
  min-width: max-content;
}

.jh-control-center-actions .jh-button,
.jh-control-center-run {
  width: auto;
  white-space: nowrap;
}

.jh-control-center-run {
  min-height: 48px;
  padding-inline: 24px;
  font-weight: 800;
}

.jh-keyword-box {
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: var(--jh-surface-muted);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.jh-keyword-box textarea,
.jh-hunt-brief-card #jh-keyword-group-keywords {
  min-height: 118px;
}

.jh-source-panel {
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius);
  background: var(--jh-surface-muted);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.jh-hunt-brief-card .jh-source-grid-inline {
  position: static;
  inset: auto;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jh-brief-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.jh-brief-row .jh-select-filter,
.jh-brief-row .jh-field {
  flex: 1 1 220px;
}

.jh-section h3 {
  margin: 0;
  color: var(--jh-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 500;
}

.jh-prose {
  margin: 0;
  color: var(--jh-muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}

.jh-job-description-section {
  margin-top: 0;
}

.jh-job-description {
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: rgba(255, 253, 246, 0.78);
  padding: 18px;
  color: var(--jh-text);
  font-size: 14px;
  line-height: 1.68;
  font-weight: 400;
}

.jh-job-description p {
  margin: 0 0 14px;
}

.jh-job-description p:last-child {
  margin-bottom: 0;
}

.jh-job-post-card {
  display: grid;
  gap: 18px;
}

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

.jh-job-post-highlights div {
  min-height: 76px;
  border: 1px solid rgba(7, 59, 43, 0.16);
  border-radius: 3px;
  background: #ffffff;
  padding: 12px;
}

.jh-job-post-highlights span,
.jh-job-post-card h4 {
  margin: 0;
  color: var(--jh-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
}

.jh-job-post-highlights strong {
  display: block;
  margin-top: 8px;
  color: var(--jh-evergreen);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.jh-job-post-card section {
  display: grid;
  gap: 8px;
}

.jh-job-post-card p,
.jh-job-post-card li {
  color: var(--jh-text);
  font-size: 14px;
  line-height: 1.58;
}

.jh-job-post-card p {
  margin: 0;
}

.jh-job-post-card ul {
  margin: 0;
  padding-left: 18px;
}

.jh-job-post-card li + li {
  margin-top: 6px;
}

.jh-full-job-post {
  margin: 0;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: rgba(247, 249, 252, 0.82);
  padding: 14px;
  color: var(--jh-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.jh-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.jh-bullets li {
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: rgba(255, 253, 246, 0.78);
  padding: 11px 12px;
  color: var(--jh-muted);
  font-size: 13px;
  font-weight: 400;
}

.jh-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jh-toast {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 30;
  max-width: 360px;
  border: 1px solid var(--jh-line);
  border-radius: 3px;
  background: var(--jh-surface-strong);
  color: var(--jh-text);
  padding: 12px 14px;
  box-shadow: 0 22px 56px rgba(7, 59, 43, 0.16);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.jh-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .jh-header,
  .jh-grid,
  .jh-grid > aside.jh-stack,
  .jh-results-grid {
    grid-template-columns: 1fr;
  }

  .jh-grid > .jh-stack,
  .jh-job-hunter-nav,
  .jh-summary-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .jh-job-hunter-nav,
  .jh-summary-panel {
    position: static;
    grid-row: auto;
  }

  .jh-job-hunter-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .jh-job-hunter-nav .jh-kicker,
  .jh-sidebar-scan {
    grid-column: 1 / -1;
  }

  .jh-grid > aside.jh-stack > .jh-panel:nth-child(1),
  .jh-grid > aside.jh-stack > .jh-panel:nth-child(2),
  .jh-grid > aside.jh-stack > .jh-panel:nth-child(3),
  .jh-grid > aside.jh-stack > .jh-panel:nth-child(4) {
    grid-column: auto;
  }

  .jh-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
  }

  .jh-results-grid {
    width: 100%;
    min-width: 0;
  }

  .jh-discovery-panel #jh-scan-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jh-source-disclosure {
    min-width: 0;
  }

  .jh-source-grid {
    left: 0;
    right: auto;
  }

  .jh-filter-bar {
    gap: 12px;
  }

  .jh-dashboard-control-row,
  .jh-dashboard-rate-row,
  .jh-filter-row,
  .jh-filter-actions {
    flex-wrap: wrap;
  }

  .jh-dashboard-nav .jh-search {
    width: auto;
    flex: 1 1 260px;
  }

  .jh-filter-row-primary {
    justify-content: flex-start;
  }

  .jh-feed-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .jh-scan-progress {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    text-align: left;
  }

  .jh-opportunity {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .jh-card-top {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 0;
  }

  .jh-card-pay {
    justify-content: flex-start;
    text-align: left;
  }

  .jh-card-close {
    padding-right: 0;
    justify-content: flex-start;
  }

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

  .jh-detail-side {
    position: static;
  }

  .jh-detail-side .jh-detail-grid,
  .jh-detail-side .jh-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jh-profile-card-header,
  .jh-profile-meta-grid {
    grid-template-columns: 1fr;
  }

  .jh-overview-report .jh-intel-facts {
    grid-template-columns: 1fr;
  }

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

  .jh-control-center-hub {
    grid-template-columns: minmax(260px, 1fr) minmax(240px, 1fr);
  }

  .jh-control-center-actions,
  .jh-control-center-run {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .jh-app {
    padding: 14px;
  }

  .jh-nav {
    padding-inline: 14px;
    margin-top: -14px;
  }

  .jh-nav,
  .jh-header,
  .jh-command-bar,
  .jh-discovery-panel #jh-scan-form,
  .jh-toolbar,
  .jh-form-row,
  .jh-opportunity-meta,
  .jh-detail-grid,
  .jh-risk-flags-grid,
  .jh-overview-report .jh-intel-facts,
  .jh-summary,
  .jh-results-grid {
    grid-template-columns: 1fr;
  }

  .jh-risk-flag-column + .jh-risk-flag-column {
    border-left: 0;
    border-top: 1px solid var(--jh-line);
    padding-left: 0;
    padding-top: 14px;
  }

  .jh-nav,
  .jh-nav-links,
  .jh-header,
  .jh-command-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .jh-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jh-header {
    padding-top: 8px;
  }

  .jh-dashboard-nav {
    gap: 12px;
    padding: 12px;
  }

  .jh-dashboard-control-row,
  .jh-dashboard-rate-row,
  .jh-filter-actions,
  .jh-control-center-hub {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .jh-control-center-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .jh-control-center-actions .jh-button,
  .jh-control-center-run {
    width: 100%;
  }

  .jh-filter-bar {
    gap: 12px;
  }

  .jh-search,
  .jh-select-filter,
  .jh-filter-popover-wrap,
  .jh-range-filter,
  .jh-filter-actions,
  .jh-priority-toggle {
    width: 100%;
    flex: 1 1 100%;
  }

  .jh-range-inputs {
    width: 100%;
  }

  .jh-range-inputs input {
    width: 100%;
  }

  .jh-filter-menu {
    left: 0;
    right: auto;
    width: min(100%, 320px);
  }

  .jh-mute-menu {
    width: min(100%, calc(100vw - 48px));
  }

  .jh-mute-manager-head,
  .jh-mute-editor-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .jh-detail-side .jh-detail-grid,
  .jh-detail-side .jh-signal-grid,
  .jh-detail-actions {
    grid-template-columns: 1fr;
  }

  .jh-detail-modal {
    inset: 12px;
  }

  .jh-opportunity-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jh-pay-badge {
    width: 100%;
    max-width: none;
  }

  .jh-detail-card {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .jh-source-grid {
    position: static;
    width: auto;
    margin-top: 8px;
    grid-template-columns: 1fr;
  }
}
