:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #09110f;
  color: #e9f1e8;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { position: relative; display: grid; grid-template-columns: minmax(310px, 390px) 1fr; height: 100vh; overflow: hidden; }
.sidebar {
  z-index: 2;
  overflow-y: auto;
  padding: 24px;
  background: linear-gradient(180deg, #101d19, #08110f);
  border-right: 1px solid #345146;
}
.eyebrow { margin: 0; color: #75c6a7; font-size: .72rem; letter-spacing: .18em; }
h1 { margin: 6px 0 8px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
h2 { font-family: Georgia, serif; font-weight: 500; }
#status { color: #a7b8b1; }
.career-builder-button {
  margin-top: 12px;
  background: linear-gradient(135deg, #285f4d, #816329);
  border-color: #8fae72;
}
.landscape-button {
  margin-top: 8px;
  background: linear-gradient(135deg, #214f65, #315e4e);
  border-color: #668d91;
}
.career-builder-button:disabled, .landscape-button:disabled { opacity: .65; cursor: wait; }
.career-builder-note { margin: 7px 0 0; color: #91aaa0; font-size: .72rem; line-height: 1.4; }
.filters { display: grid; gap: 14px; margin: 24px 0; padding: 18px 0; border-block: 1px solid #2a443a; }
label { display: grid; gap: 6px; color: #cbd9d3; font-size: .85rem; }
.check { display: flex; align-items: center; }
input, select, button {
  width: 100%;
  border: 1px solid #416558;
  border-radius: 3px;
  padding: 10px;
  background: #0d1714;
  color: #eef6f1;
}
.check input { width: auto; }
.work-style {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border: 1px solid #345146;
}
.work-style legend, .skill-filters legend, .entry-barriers legend { padding: 0 6px; color: #cbd9d3; font-size: .85rem; }
.work-style p, .filter-help { margin: 2px 0 0; color: #91aaa0; font-size: .75rem; line-height: 1.4; }
.skill-filters, .entry-barriers {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #345146;
}
.entry-barrier-options { display: grid; gap: 7px; }
.barrier-filter-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px;
  background: #0b1612;
  border: 1px solid #294238;
}
.barrier-filter-row input { width: auto; margin: 3px 0 0; }
.barrier-filter-row span { display: grid; gap: 2px; }
.barrier-filter-row strong { font-size: .78rem; }
.barrier-filter-row small { color: #91aaa0; font-size: .67rem; line-height: 1.35; }
.skill-options { display: grid; gap: 7px; }
.skill-filter-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: #0b1612;
  border: 1px solid #294238;
}
.skill-filter-row input { width: auto; margin: 0; }
.skill-filter-description { display: grid; min-width: 0; gap: 2px; }
.skill-filter-description strong { font-size: .78rem; font-weight: 650; }
.skill-filter-description small { color: #91aaa0; font-size: .66rem; line-height: 1.3; }
.skill-mode {
  width: 58px;
  padding: 6px 4px;
  font-size: .66rem;
}
.skill-mode.include { background: #174d3c; border-color: #3a7c66; }
.skill-mode.reject { background: #542923; border-color: #a8584d; }
button { cursor: pointer; background: #174d3c; font-weight: 700; }
button:hover { background: #21644f; }
.detail-panel {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  width: min(520px, calc(100vw - 390px));
  height: 100%;
  overflow-y: auto;
  padding: 28px 28px 48px;
  background: linear-gradient(180deg, rgba(16, 29, 25, .98), rgba(8, 17, 15, .99));
  border-left: 1px solid #4c7767;
  box-shadow: -18px 0 40px rgba(0, 0, 0, .38);
  transform: translateX(102%);
  transition: transform 180ms ease;
}
.detail-panel.open { transform: translateX(0); }
.panel-navigation {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  margin: -8px 0 12px;
  background: linear-gradient(180deg, #101d19 72%, transparent);
}
.back-detail {
  width: auto;
  padding: 8px 12px;
  background: #142822;
}
.back-detail[hidden] { visibility: hidden; }
.close-detail {
  margin-left: auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
}
.detail { padding-bottom: 32px; }
.detail h2 { margin-bottom: 4px; }
.detail .meta { color: #91aaa0; }
.detail .score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.barrier-summary {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 11px;
  border: 1px solid #47685c;
  background: #0d1814;
}
.barrier-summary > span { color: #91aaa0; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.barrier-summary > strong { color: #d9eddf; }
.barrier-summary > small { color: #a9bbb4; line-height: 1.35; }
.barrier-summary.level-1 { border-left: 4px solid #5da97c; }
.barrier-summary.level-2 { border-left: 4px solid #a3b85c; }
.barrier-summary.level-3 { border-left: 4px solid #d29a4a; }
.barrier-summary.level-4 { border-left: 4px solid #bd6554; }
.barrier-summary.level-unknown { border-left: 4px solid #747b83; }
.career-tiers { display: grid; gap: 18px; margin-top: 18px; }
.career-tier {
  padding: 14px;
  border: 1px solid #3c5f52;
  background: #0b1612;
}
.career-tier.level-1 { border-top: 4px solid #5da97c; }
.career-tier.level-2 { border-top: 4px solid #a3b85c; }
.career-tier.level-3 { border-top: 4px solid #d29a4a; }
.career-tier.level-4 { border-top: 4px solid #bd6554; }
.career-tier header > span { color: #75c6a7; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.career-tier h3 { margin: 4px 0; font-family: Georgia, serif; font-size: 1.3rem; }
.career-tier header p { margin: 0 0 12px; color: #9fb2aa; font-size: .78rem; line-height: 1.4; }
.career-tier h4 { margin: 16px 0 7px; color: #d6e3dc; font-size: .78rem; }
.career-salary { display: grid; gap: 2px; padding: 10px; background: #11231c; border: 1px solid #315246; }
.career-salary span, .career-salary small { color: #91aaa0; font-size: .7rem; }
.career-salary strong { color: #bce4d1; font-size: 1.2rem; }
.career-associations { display: grid; gap: 5px; }
.career-associations > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #20372f;
}
.career-associations strong { font-size: .75rem; }
.career-associations span { color: #91aaa0; font-size: .68rem; text-align: right; }
.career-examples { display: grid; gap: 6px; }
.career-method { color: #91aaa0; font-size: .72rem; line-height: 1.5; }
.market-landscape h3, .detail > h3 {
  margin: 26px 0 8px;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.landscape-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 24px;
}
.landscape-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px;
  background: #0d1814;
  border: 1px solid #345146;
}
.landscape-metric span, .landscape-metric small {
  color: #91aaa0;
  font-size: .68rem;
}
.landscape-metric strong {
  overflow-wrap: anywhere;
  color: #bce4d1;
  font-size: 1.13rem;
}
.location-bars { display: grid; gap: 7px; }
.location-row {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) 1.35fr 32px;
  gap: 8px;
  align-items: center;
  font-size: .72rem;
}
.location-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-row > div, .demand-row > i {
  height: 8px;
  overflow: hidden;
  background: #1d3029;
  border-radius: 99px;
}
.location-row i {
  display: block;
  height: 100%;
  background: #5eaa86;
  border-radius: inherit;
}
.location-row strong { text-align: right; }
.landscape-rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.landscape-ranking {
  min-width: 0;
  padding: 8px;
  background: #0b1612;
  border: 1px solid #2e4a40;
}
.landscape-ranking h4 { margin: 0 0 7px; color: #9ecab7; font-size: .72rem; }
.landscape-ranking button {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  padding: 7px;
  text-align: left;
  background: #10201a;
  border-color: #2b493d;
}
.landscape-ranking strong { font-size: .67rem; }
.landscape-ranking span { color: #91aaa0; font-size: .58rem; font-weight: 400; }
.chart-intro { margin: 0 0 10px; color: #91aaa0; font-size: .7rem; line-height: 1.45; }
.tier-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 9px;
  color: #b7c8c1;
  font-size: .65rem;
}
.tier-legend span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-radius: 2px;
  content: "";
}
.tier-legend .level-1::before, .tier-range.level-1 { background: #5da97c; }
.tier-legend .level-2::before, .tier-range.level-2 { background: #a3b85c; }
.tier-legend .level-3::before, .tier-range.level-3 { background: #d29a4a; }
.tier-legend .level-4::before, .tier-range.level-4 { background: #bd6554; }
.income-axis {
  display: flex;
  justify-content: space-between;
  margin: 0 43px 3px min(154px, 35%);
  color: #82978e;
  font-size: .58rem;
}
.income-chart { display: grid; gap: 3px; }
.income-row {
  display: grid;
  grid-template-columns: minmax(120px, 35%) 1fr 38px;
  gap: 7px;
  align-items: center;
  min-height: 43px;
  padding: 5px;
  text-align: left;
  background: transparent;
  border-color: transparent;
}
.income-row:hover { background: #13271f; border-color: #345146; }
.chart-label {
  overflow: hidden;
  color: #d9e5df;
  font-size: .66rem;
  text-overflow: ellipsis;
}
.chart-label small { display: block; margin-top: 2px; color: #82978e; font-size: .56rem; }
.income-row > strong { color: #b8d4c8; font-size: .66rem; text-align: right; }
.income-track {
  position: relative;
  height: 34px;
  background:
    linear-gradient(90deg, transparent 49.5%, #344b42 50%, transparent 50.5%),
    #172821;
  border-radius: 2px;
}
.tier-range {
  position: absolute;
  height: 6px;
  min-width: 3px;
  border-radius: 2px;
  opacity: .95;
}
.tier-range.level-1 { top: 2px; }
.tier-range.level-2 { top: 10px; }
.tier-range.level-3 { top: 18px; }
.tier-range.level-4 { top: 26px; }
.demand-chart { display: grid; gap: 3px; }
.demand-row {
  display: grid;
  grid-template-columns: minmax(120px, 42%) 1fr 34px;
  gap: 8px;
  align-items: center;
  padding: 6px;
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: #d9e5df;
  font-size: .68rem;
}
.demand-row:hover { background: #13271f; border-color: #345146; }
.demand-row > i { display: block; }
.demand-row > i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #39785f, #75c6a7);
  border-radius: inherit;
}
.demand-row > strong { text-align: right; }
.occupation-tier-list { display: grid; gap: 7px; }
.occupation-tier {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #0d1814;
  border: 1px solid #345146;
  border-left-width: 4px;
}
.occupation-tier.level-1 { border-left-color: #5da97c; }
.occupation-tier.level-2 { border-left-color: #a3b85c; }
.occupation-tier.level-3 { border-left-color: #d29a4a; }
.occupation-tier.level-4 { border-left-color: #bd6554; }
.occupation-tier span, .occupation-tier small { color: #91aaa0; font-size: .68rem; }
.occupation-tier strong { color: #d9e5df; }
.score { padding: 10px; border: 1px solid #345146; background: #0d1814; }
.score strong { display: block; font-size: 1.35rem; color: #91e0bd; }
.detail a { color: #83d9b5; }
.description { line-height: 1.5; white-space: pre-wrap; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.skill-chip {
  padding: 4px 7px;
  border: 1px solid #416558;
  border-radius: 999px;
  background: #10251e;
  color: #bde7d4;
  font-size: .72rem;
}
.qualification-chip {
  border-color: #685a35;
  background: #292311;
  color: #ead797;
}
.job-list { display: grid; gap: 8px; margin-top: 18px; }
.job-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #10201a;
  border-color: #345146;
}
.job-list-item:hover { background: #193328; }
.job-list-item span { color: #91aaa0; font-size: .78rem; font-weight: 400; }
.job-list-item .job-list-salary { color: #bce4d1; font-weight: 650; }
#map { min-width: 0; background: #d7dfda; }
.maplibregl-popup-content { background: #10211b; color: #edf6f1; border: 1px solid #4c7767; }
.maplibregl-popup-tip { border-top-color: #10211b !important; }

@media (max-width: 760px) {
  main { grid-template-columns: 1fr; grid-template-rows: 48vh 52vh; }
  .sidebar { grid-row: 2; border-right: 0; border-top: 1px solid #345146; }
  #map { grid-row: 1; }
  .detail-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 58vh;
    border-top: 1px solid #4c7767;
    border-left: 0;
    transform: translateY(102%);
  }
  .detail-panel.open { transform: translateY(0); }
}
