/* ── Layout: convert settings page to 3-col with right rail ── */
@media (min-width: 1280px) {
  body[data-page="settings"] .overview-layout--compressed {
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    gap: 24px;
  }
  /* When the user clicks "Compact" the left column shrinks to icon-rail width
     and the form's max-width cap is lifted so the middle column actually grows. */
  body[data-page="settings"] .overview-layout--compressed.is-sidebar-compacted {
    grid-template-columns: 62px minmax(0, 1fr) 320px;
  }
  body[data-page="settings"] .overview-layout--compressed.is-sidebar-compacted .dashboard-main {
    max-width: none;
  }
  body[data-page="settings"] .settings-rail {
    position: sticky;
    top: calc(var(--header-height, 56px) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--header-height, 56px) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(5,150,105,.25) transparent;
    padding-right: 4px;
  }
  body[data-page="settings"] .settings-rail::-webkit-scrollbar { width: 6px; }
  body[data-page="settings"] .settings-rail::-webkit-scrollbar-thumb { background: rgba(5,150,105,.25); border-radius: 99px; }
  body[data-page="settings"] .rail-fab,
  body[data-page="settings"] .rail-fab__scrim,
  body[data-page="settings"] .rail-card__close { display: none !important; }
}
@media (max-width: 1279px) {
  body[data-page="settings"] .settings-rail {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 92vw);
    background: #fbfdfc;
    box-shadow: -16px 0 40px rgba(15, 49, 36, .18);
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.22,.8,.36,1);
    z-index: 1200;
    overflow-y: auto;
    padding: 16px 14px 24px;
  }
  body[data-page="settings"] .settings-rail.is-open { transform: translateX(0); }
  body[data-page="settings"] .rail-fab__scrim {
    position: fixed; inset: 0; background: rgba(7, 32, 23, .5);
    z-index: 1100; backdrop-filter: blur(2px);
    animation: railFade .2s ease;
  }
  @keyframes railFade { from { opacity: 0 } to { opacity: 1 } }
}

/* ── Mobile FAB ── */
.rail-fab {
  position: fixed; bottom: 22px; right: 18px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #047857 0%, #059669 60%, #10b981 100%);
  color: #fff; border: 0; font: inherit; cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(4, 120, 87, .55), 0 4px 10px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .2s ease;
}
.rail-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(4, 120, 87, .65), 0 6px 14px rgba(0,0,0,.16); }
.rail-fab__pct { font-weight: 700; font-size: .9rem; }
.rail-fab__pct strong { font-size: 1.05rem; }
@media (min-width: 1280px) { .rail-fab { display: none; } }

/* ── Rail cards ── */
.settings-rail__inner { display: flex; flex-direction: column; gap: 14px; }
.rail-card {
  background: #ffffff;
  border: 1px solid rgba(5, 150, 105, .12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(15, 49, 36, .03), 0 8px 24px -16px rgba(15, 49, 36, .12);
  position: relative;
  overflow: hidden;
}
.rail-card__close {
  background: transparent; border: 0; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px;
  color: #6b7280; font-size: .9rem;
  transition: background .15s;
}
.rail-card__close:hover { background: #f3f4f6; color: #111827; }
.rail-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.rail-eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #047857;
}
.rail-eyebrow--inline { color: #6b7280; letter-spacing: .1em; }

/* ── Hero card ── */
.rail-card--hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, .10), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(4, 120, 87, .07), transparent 55%),
    #ffffff;
}
.rail-card--hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(5,150,105,.06) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .35; pointer-events: none;
}
.rail-hero__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; position: relative; }
.rail-hero__body {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  align-items: center; margin: 4px 0 12px; position: relative;
}
.rail-ring { position: relative; width: 120px; height: 120px; }
.rail-ring__value {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Figtree', sans-serif;
}
.rail-ring__value strong { font-size: 2rem; font-weight: 700; color: #047857; line-height: 1; letter-spacing: -.02em; }
.rail-ring__value span { font-size: .85rem; color: #059669; font-weight: 600; }
.rail-ring__value em {
  font-style: normal; font-size: .65rem; font-weight: 600;
  color: #6b7280; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px;
}
.rail-xp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rail-xp__row { display: flex; align-items: baseline; gap: 6px; }
.rail-xp__num { font-size: 1.45rem; font-weight: 700; color: #111827; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rail-xp__lbl {
  font-size: .65rem; font-weight: 700; color: #047857;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(16, 185, 129, .12); padding: 3px 8px; border-radius: 99px;
}
.rail-xp__bar {
  height: 6px; background: rgba(5, 150, 105, .1); border-radius: 99px; overflow: hidden;
}
.rail-xp__bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #10b981, #047857);
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(16, 185, 129, .35);
  transition: width .5s cubic-bezier(.22,.8,.36,1);
}
.rail-xp__hint { font-size: .72rem; color: #6b7280; }
.rail-xp__hint strong { color: #047857; font-weight: 700; }
.rail-xp__hint em { color: #111827; font-style: normal; font-weight: 600; }

.rail-quests {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px dashed rgba(5,150,105,.18); padding-top: 10px;
  position: relative;
}
.rail-quests li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center;
  gap: 8px; font-size: .78rem; color: #1f2937;
  padding: 6px 4px; border-radius: 8px;
  transition: background .15s;
}
.rail-quests li:hover { background: rgba(5,150,105,.05); cursor: pointer; }
.rail-quests li.is-done { color: #6b7280; text-decoration: line-through; text-decoration-color: rgba(107,114,128,.4); }
.rail-quests__check {
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(245, 158, 11, .14); color: #b45309;
  font-size: .7rem; font-weight: 700;
}
.rail-quests li.is-done .rail-quests__check { background: rgba(16, 185, 129, .18); color: #047857; }
.rail-quests li em {
  font-style: normal; font-size: .68rem; font-weight: 700; color: #047857;
  background: rgba(16, 185, 129, .1); padding: 2px 7px; border-radius: 99px;
  letter-spacing: .03em;
}

/* ── Skill web card ── */
.rail-card--web { padding: 18px 14px 16px; }
.rail-legend { display: flex; align-items: center; gap: 8px; }
.rail-legend small { font-size: .7rem; color: #6b7280; margin-right: 6px; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.legend-dot--self { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.18); }
.legend-dot--evid { background: #047857; box-shadow: 0 0 0 2px rgba(4,120,87,.18); }

/* Tooltip icon (appears next to "Receipts" legend label) */
.rail-tip {
  position: relative;
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  margin-left: 4px;
  color: #9ca3af;
  cursor: help;
  border-radius: 50%;
  outline: none;
  transition: color .15s, background .15s;
}
.rail-tip:hover, .rail-tip:focus { color: #047857; background: rgba(16,185,129,.1); }
.rail-tip__bubble {
  position: absolute;
  top: calc(100% + 8px);
  right: -8px;
  width: 240px;
  padding: 10px 12px;
  background: #111827;
  color: #f9fafb;
  border-radius: 10px;
  font-size: .72rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  box-shadow: 0 12px 28px -10px rgba(15, 49, 36, .35);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
  z-index: 60;
}
.rail-tip__bubble strong {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rail-tip__bubble em { font-style: italic; color: #fde68a; font-weight: 600; }
.rail-tip__bubble::before {
  content: "";
  position: absolute;
  top: -5px; right: 10px;
  width: 10px; height: 10px;
  background: #111827;
  transform: rotate(45deg);
}
.rail-tip:hover .rail-tip__bubble,
.rail-tip:focus .rail-tip__bubble {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 540px) {
  .rail-tip__bubble { right: auto; left: -8px; width: min(260px, 80vw); }
  .rail-tip__bubble::before { right: auto; left: 12px; }
}

.skill-web { position: relative; padding: 4px 0 8px; }
#skill-web-svg { width: 100%; height: auto; display: block; max-width: 280px; margin: 0 auto; }
.web-grid polygon { fill: rgba(5,150,105,.025); stroke: rgba(5,150,105,.18); stroke-width: 1; stroke-dasharray: 2 3; }
.web-axes line { stroke: rgba(5,150,105,.22); stroke-width: 1; }
.web-poly { stroke-width: 1.6; stroke-linejoin: round; transition: opacity .3s; }
.web-poly--evid { fill: rgba(4,120,87,.22); stroke: #047857; }
.web-poly--self { fill: rgba(245,158,11,.18); stroke: #f59e0b; stroke-dasharray: 4 3; }
.web-points circle { transition: r .15s, fill .15s; cursor: pointer; }
.web-labels text {
  font-family: 'Figtree', sans-serif; font-size: 10px; font-weight: 600;
  fill: #374151; text-anchor: middle; cursor: pointer;
  transition: fill .15s;
}
.web-labels text:hover, .web-labels text.is-active { fill: #047857; }

/* Name label (line 1) stays readable; mini-readout (line 2) is smaller */
.web-label__name {
  font-family: 'Figtree', sans-serif; font-size: 10px; font-weight: 700;
  fill: #374151;
}
.web-label__mini {
  font-family: 'Figtree', sans-serif; font-size: 8.5px; font-weight: 700;
  fill: #9ca3af;
}
.web-label__self { fill: #b45309; }
.web-label__sep  { fill: #cbd5e1; }
.web-label__evid { fill: #047857; }

/* Hover dims the rest so users can read one skill at a time */
#skill-web[data-focus-skill] .web-poly { opacity: .25; }
#skill-web[data-focus-skill] .web-label__name,
#skill-web[data-focus-skill] .web-label__mini,
#skill-web[data-focus-skill] .web-point { opacity: .25; transition: opacity .15s; }
#skill-web[data-focus-skill] [data-skill],
#skill-web[data-focus-skill] .web-point[data-skill] { opacity: 1; }
#skill-web .web-label__name[data-skill],
#skill-web .web-label__mini[data-skill],
#skill-web .web-point[data-skill] { transition: opacity .15s, transform .15s; }

/* Flash when a receipt is added to this skill (fires from recomputeEvidence) */
.web-labels text.is-pulse {
  animation: webPulse 1.1s cubic-bezier(.22,.8,.36,1);
  fill: #047857;
  font-weight: 800;
}
.web-point.is-pulse {
  animation: webPointPulse 1.1s cubic-bezier(.22,.8,.36,1);
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes webPulse {
  0%   { transform: scale(1);   filter: none; }
  30%  { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(4,120,87,.55)); }
  100% { transform: scale(1);   filter: none; }
}
@keyframes webPointPulse {
  0%   { transform: scale(1);   filter: none; }
  30%  { transform: scale(2.4); filter: drop-shadow(0 0 4px rgba(4,120,87,.7)); }
  100% { transform: scale(1);   filter: none; }
}

/* Intro copy above the radar */
.skill-web__intro { margin: 6px 0 2px; font-size: .74rem; }

/* The small "Receipts" legend dot pulses too so the eye moves to the right data */
.legend-dot--evid.is-pulse { animation: evidDotPulse 1.1s cubic-bezier(.22,.8,.36,1); }
@keyframes evidDotPulse {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(4,120,87,.35); }
  40%  { transform: scale(1.4); box-shadow: 0 0 0 6px rgba(4,120,87,.0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(4,120,87,0); }
}

/* Floating "+ receipt" bubble shown next to an entry when it gains a tag */
.receipt-float {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 8px 18px -8px rgba(4,120,87,.55);
  animation: receiptFloat 1.4s ease forwards;
}
@keyframes receiptFloat {
  0%   { opacity: 0; transform: translate(0, 6px); }
  15%  { opacity: 1; transform: translate(0, 0); }
  70%  { opacity: 1; transform: translate(0, -18px); }
  100% { opacity: 0; transform: translate(0, -28px); }
}

.skill-web__delta {
  margin-top: 6px; padding: 10px 12px;
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(245,158,11,.02));
  border-left: 3px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  font-size: .76rem; color: #1f2937;
  display: grid; grid-template-columns: 16px 1fr; gap: 6px 10px;
  align-items: start;
}
.skill-web__delta .delta-arrow { color: #f59e0b; font-size: .85rem; line-height: 1.2; }
.skill-web__delta strong { color: #047857; }
.skill-web__delta em { font-style: normal; font-weight: 600; }
.skill-web__delta small { grid-column: 2; color: #6b7280; font-size: .7rem; }

/* ── Skill list (replaces the radar chart) ──────────────────────────── */
.skill-list-intro { margin: 6px 0 8px; }
.rail-legend--list {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(5,150,105,.18);
  font-size: .68rem;
  gap: 14px;
}
.rail-legend--list > span { display: inline-flex; align-items: center; gap: 5px; }
.rail-legend--list .legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }

.skill-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.skill-list__item {
  padding: 10px 12px;
  background: #fafbfb;
  border: 1px solid #eef1f0;
  border-left: 3px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color .2s, background .2s, transform .12s;
}
.skill-list__item:hover { border-color: rgba(5,150,105,.28); transform: translateX(1px); }
.skill-list__item[data-gap-level="high"] { border-left-color: #f59e0b; }
.skill-list__item[data-gap-level="med"]  { border-left-color: #fbbf24; }
.skill-list__item[data-gap-level="low"]  { border-left-color: #10b981; }
.skill-list__item[data-gap-level="none"] { border-left-color: #047857; background: linear-gradient(180deg, rgba(16,185,129,.06), #fafbfb); }

.skill-list__item.is-receipt-flash {
  animation: skillListFlash 1.2s cubic-bezier(.22,.8,.36,1);
}
@keyframes skillListFlash {
  0%   { background: #fafbfb; box-shadow: 0 0 0 0 rgba(16,185,129,0); }
  25%  { background: rgba(16,185,129,.22); box-shadow: 0 0 0 6px rgba(16,185,129,.18); }
  100% { background: #fafbfb; box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.skill-list__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 6px;
}
.skill-list__head strong {
  font-size: .86rem; font-weight: 700; color: #111827;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.skill-list__gap {
  font-size: .65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: rgba(245,158,11,.14); color: #b45309;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: .02em;
}
.skill-list__gap[data-state="balanced"] {
  background: rgba(16,185,129,.14); color: #047857;
}

.skill-list__row {
  display: grid;
  grid-template-columns: 56px 1fr 22px;
  gap: 8px;
  align-items: center;
  margin-top: 3px;
}
.skill-list__row-label {
  font-size: .6rem; font-weight: 700; color: #9ca3af;
  letter-spacing: .08em; text-transform: uppercase;
}
.skill-list__bar {
  height: 6px; background: #f3f4f6; border-radius: 99px; overflow: hidden;
  position: relative;
}
.skill-list__bar > span {
  display: block; height: 100%; width: 0%;
  border-radius: 99px;
  transition: width .5s cubic-bezier(.22,.8,.36,1);
}
.skill-list__bar--self > span {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.skill-list__bar--evid > span {
  background: linear-gradient(90deg, #10b981, #047857);
  box-shadow: 0 0 6px rgba(4,120,87,.3);
}
.skill-list__num {
  font-size: .74rem; font-weight: 700; color: #111827;
  text-align: right; font-variant-numeric: tabular-nums;
}

/* ── Skill rater ── */
.skill-rater { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(5,150,105,.18); }
.skill-rater__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rail-mini-btn {
  background: rgba(16,185,129,.1); color: #047857; border: 0;
  font: inherit; font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; cursor: pointer;
  transition: background .15s;
}
.rail-mini-btn:hover { background: rgba(16,185,129,.2); }
.skill-rater__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rater-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.rater-item__name {
  font-size: .8rem; font-weight: 600; color: #1f2937;
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.rater-item__name button {
  border: 0; background: transparent; color: #d1d5db; cursor: pointer;
  font-size: .8rem; padding: 0; line-height: 1; transition: color .15s;
}
.rater-item__name button:hover { color: #dc2626; }
.rater-item__bar {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px;
  width: 130px;
}
.rater-item__bar i {
  height: 14px; background: #f3f4f6; border-radius: 2px; cursor: pointer;
  transition: background .12s;
}
.rater-item__bar i:hover { background: rgba(245,158,11,.4); }
.rater-item__bar i.is-on {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  box-shadow: inset 0 -1px 0 rgba(180, 83, 9, .25);
}
.rater-item__bar i:nth-child(n+8).is-on {
  background: linear-gradient(180deg, #fb923c, #ea580c);
}
.rater-item__bar i:nth-child(10).is-on {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
}
.skill-rater__add { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-top: 10px; }
.skill-rater__add input {
  border: 1px solid #d1d5db; border-radius: 8px; padding: 6px 10px;
  font: inherit; font-size: .8rem; outline: none;
}
.skill-rater__add input:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.skill-rater__add button {
  border: 0; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: .75rem; font-weight: 600;
  background: #047857; color: #fff;
}
.skill-rater__add button.ghost { background: transparent; color: #6b7280; }

/* ── Tips card ── */
.rail-card--tips { background: linear-gradient(180deg, #ffffff, #f9fbfa); }
.rail-context-badge {
  font-size: .65rem; font-weight: 700; color: #1f2937;
  background: rgba(5,150,105,.08); padding: 4px 10px;
  border-radius: 99px; letter-spacing: .02em;
  transition: background .25s;
  max-width: 50%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail-tip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rail-tip-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(5,150,105,.08);
  border-radius: 10px;
  font-size: .78rem; color: #374151; line-height: 1.45;
  transition: border-color .15s, transform .15s;
}
.rail-tip-list li:hover { border-color: rgba(5,150,105,.25); transform: translateX(2px); }
.rail-tip-list li::before {
  content: "→"; color: #047857; font-weight: 700;
  width: 18px; height: 18px; display: grid; place-items: center;
  background: rgba(16,185,129,.12); border-radius: 6px;
  font-size: .72rem;
}
.rail-example {
  margin-top: 10px; font-size: .78rem;
  border-top: 1px dashed rgba(5,150,105,.18); padding-top: 10px;
}
.rail-example summary {
  cursor: pointer; font-weight: 600; color: #047857;
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.rail-example summary::-webkit-details-marker { display: none; }
.rail-example summary::before { content: "★"; font-size: .85rem; }
.rail-example__body {
  margin-top: 8px; padding: 10px 12px;
  background: rgba(5,150,105,.04);
  border-radius: 8px;
  color: #1f2937; line-height: 1.5;
  font-size: .76rem;
  border-left: 2px solid #10b981;
}
.rail-example__body strong { color: #047857; }

/* ── Context widgets (Work prefs + Relocation sections only) ── */
.rail-context[hidden] { display: none !important; }
.rail-context {
  display: flex; flex-direction: column; gap: 14px;
  animation: ctxFade .3s ease;
}
@keyframes ctxFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Plain-English helper line used by every widget */
.rail-plain {
  margin: 4px 0 10px;
  font-size: .78rem; color: #4b5563; line-height: 1.55;
}
.rail-plain strong { color: #111827; font-weight: 700; }
.rail-plain em { font-style: normal; color: #047857; font-weight: 600; }

/* ── 1. Feed preview ── */
.rail-card--match { background: linear-gradient(180deg, rgba(16,185,129,.04), #ffffff); }
.rail-match-count {
  display: flex; align-items: baseline; gap: 8px;
  padding: 2px 0 12px;
}
.rail-match-count strong {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em;
  color: #047857; line-height: 1; font-variant-numeric: tabular-nums;
}
.rail-match-count > span { font-size: 1rem; color: #4b5563; font-weight: 600; }
.rail-match-delta {
  font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: rgba(16,185,129,.14); color: #047857;
  margin-left: auto;
}
.rail-match-delta[data-dir="up"] { background: rgba(16,185,129,.18); color: #047857; }
.rail-match-delta[data-dir="down"] { background: rgba(220,38,38,.12); color: #b91c1c; }
.rail-match-seeall {
  display: inline-block;
  margin-top: 10px;
  font-size: .78rem; font-weight: 700;
  color: #047857;
  text-decoration: none;
  padding: 4px 0;
}
.rail-match-seeall:hover { text-decoration: underline; text-underline-offset: 3px; }
.rail-match-feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rail-match-feed li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #fafbfb;
  border: 1px solid #eef1f0;
  border-radius: 10px;
  transition: border-color .15s, transform .12s;
  cursor: pointer;
}
.rail-match-feed li:hover { border-color: rgba(5,150,105,.3); transform: translateX(2px); }
.rail-match-feed__logo {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: .65rem; font-weight: 800; letter-spacing: .06em;
  color: #fff;
}
.rail-match-feed__logo[data-tone="1"] { background: linear-gradient(135deg, #6366f1, #4338ca); }
.rail-match-feed__logo[data-tone="2"] { background: linear-gradient(135deg, #f97316, #ea580c); }
.rail-match-feed__logo[data-tone="3"] { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.rail-match-feed__body { min-width: 0; }
.rail-match-feed__title {
  display: block;
  font-size: .78rem; font-weight: 700; color: #111827;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-match-feed__meta {
  display: block;
  font-size: .68rem; color: #6b7280;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 1px;
}
.rail-match-feed__sal {
  font-size: .7rem; font-weight: 700; color: #047857;
  white-space: nowrap;
}

/* ── 2. Strictness stepper (3 simple dots) ── */
.strictness-stepper {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.strictness-stepper__dot {
  flex: 1; height: 10px;
  background: #f3f4f6;
  border-radius: 99px;
  transition: background .3s;
}
.strictness-stepper__dot.is-on { background: linear-gradient(90deg, #10b981, #047857); }
.strictness-stepper[data-state="narrow"] .strictness-stepper__dot.is-on { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.strictness-stepper[data-state="tight"] .strictness-stepper__dot.is-on { background: linear-gradient(90deg, #ef4444, #b91c1c); }
.tightness-suggest {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(245,158,11,.06);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: .76rem; color: #1f2937; line-height: 1.5;
}
.tightness-suggest strong { color: #047857; font-weight: 700; }
.tightness-suggest em { font-style: normal; font-weight: 700; color: #047857; }

/* ── 3. Visa & relocation timelines ── */
.rail-visa-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rail-visa-list li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #eef1f0;
  border-radius: 10px;
  font-size: .78rem;
}
.rail-visa-empty {
  background: #fafbfb !important;
  border-style: dashed !important;
  color: #6b7280;
  font-style: italic;
  grid-template-columns: 1fr !important;
  font-size: .74rem !important;
  line-height: 1.5;
}
.rail-visa__flag {
  width: 28px; height: 20px; border-radius: 4px;
  display: grid; place-items: center;
  font-size: .6rem; font-weight: 800;
  background: #111827; color: #f9fafb;
  letter-spacing: .04em;
}
.rail-visa__name { font-weight: 700; color: #111827; }
.rail-visa__name small { display: block; font-size: .65rem; font-weight: 500; color: #6b7280; margin-top: 1px; }
.rail-visa__time {
  font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(16,185,129,.12); color: #047857;
  white-space: nowrap;
}
.rail-visa__time[data-speed="slow"] { background: rgba(220,38,38,.1); color: #b91c1c; }
.rail-visa__time[data-speed="medium"] { background: rgba(245,158,11,.12); color: #b45309; }
.rail-visa-hint {
  font-size: .72rem; color: #6b7280;
  margin: 10px 0 0; line-height: 1.5;
}
.rail-visa-hint em { font-style: normal; font-weight: 600; color: #374151; }

/* ── 4. Is your target salary realistic? ── */
.rail-market-bar {
  position: relative;
  height: 28px;
  margin: 10px 0 4px;
}
.rail-market-bar__track {
  position: absolute; top: 10px; left: 0; right: 0; height: 8px;
  background: linear-gradient(90deg, #fef3c7 0%, #d1fae5 50%, #047857 100%);
  border-radius: 99px;
}
.rail-market-bar__median {
  position: absolute; top: 6px; left: calc(50% - 1px); width: 2px; height: 16px;
  background: #111827;
  border-radius: 2px;
}
.rail-market-bar__median::after {
  content: "Median"; position: absolute; top: 100%;
  left: 50%; transform: translateX(-50%);
  font-size: .6rem; font-weight: 600; color: #111827;
  margin-top: 2px; white-space: nowrap;
}
.rail-market-bar__you {
  position: absolute; top: 4px;
  transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: #047857;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(4,120,87,.4);
  transition: left .3s cubic-bezier(.22,.8,.36,1);
  z-index: 2;
}
.rail-market-bar__you-label {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%);
  font-size: .62rem; font-weight: 700; color: #047857;
  white-space: nowrap;
}
.rail-market-scale-row {
  display: flex; justify-content: space-between;
  margin-top: 18px;
  font-size: .65rem; font-weight: 600;
  color: #9ca3af;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rail-market-details {
  margin-top: 12px; border-top: 1px dashed rgba(5,150,105,.18); padding-top: 10px;
  font-size: .78rem;
}
.rail-market-details summary {
  cursor: pointer; color: #047857; font-weight: 600;
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.rail-market-details summary::-webkit-details-marker { display: none; }
.rail-market-details summary::before { content: "+ "; font-weight: 700; }
.rail-market-details[open] summary::before { content: "− "; }
.rail-market-hirers-list {
  list-style: none; padding: 8px 0 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.rail-market-hirers-list li {
  padding: 3px 10px;
  background: #f3f4f6;
  border-radius: 99px;
  font-size: .72rem; font-weight: 600; color: #374151;
}

/* ── 5. When you could work with each country — 24-cell day strip + concrete times ── */
.rail-tz-legend {
  display: flex; gap: 12px;
  margin: 4px 0 10px;
  font-size: .66rem; color: #6b7280; font-weight: 600;
  flex-wrap: wrap;
}
.rail-tz-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rail-tz-key {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
}
.rail-tz-key--you { background: #cbd5e1; }
.rail-tz-key--them { background: #fdba74; }
.rail-tz-key--both { background: #047857; }

.rail-tz-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rail-tz-list li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: #fafbfb;
  border: 1px solid #eef1f0;
  border-radius: 10px;
}
.rail-tz-empty {
  background: #fafbfb !important;
  border-style: dashed !important;
  color: #6b7280;
  font-style: italic;
  font-size: .74rem !important;
  padding: 10px !important;
}
.rail-tz__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.rail-tz__name {
  font-size: .85rem; font-weight: 700; color: #111827;
}
.rail-tz__verdict {
  font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: rgba(16,185,129,.14); color: #047857;
  white-space: nowrap;
}
.rail-tz__verdict[data-q="some"] { background: rgba(245,158,11,.14); color: #b45309; }
.rail-tz__verdict[data-q="none"] { background: rgba(220,38,38,.1); color: #b91c1c; }

.rail-tz__strip {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 1px;
  height: 14px;
  background: #e5e7eb;
  padding: 1px;
  border-radius: 4px;
}
.rail-tz__cell {
  background: #f3f4f6; /* neither */
  border-radius: 1px;
}
.rail-tz__cell[data-s="you"]   { background: #cbd5e1; }
.rail-tz__cell[data-s="them"]  { background: #fdba74; }
.rail-tz__cell[data-s="both"]  { background: #047857; }

.rail-tz__axis {
  display: flex; justify-content: space-between;
  font-size: .6rem; color: #9ca3af; font-weight: 600;
  margin-top: -2px;
  padding: 0 2px;
}

.rail-tz__sentence {
  font-size: .76rem; color: #374151;
  line-height: 1.5;
  margin-top: 2px;
}
.rail-tz__sentence strong { color: #047857; font-weight: 700; }
.rail-tz__sentence[data-q="none"] strong { color: #b91c1c; }

/* ── 6. One-line pitch ── */
.rail-card--summary { background: linear-gradient(180deg, #fafbfb, #fff); }
.rail-summary-text {
  margin: 0 0 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(5,150,105,.18);
  border-radius: 10px;
  font-size: .82rem;
  color: #111827;
  line-height: 1.55;
  font-weight: 500;
}
.rail-summary-copy-btn {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}
.rail-summary-copy-btn.is-copied { background: #047857; border-color: #047857; color: #fff; }

/* ── Schedule cards (work shift) ── */
.schedule-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.schedule-card {
  position: relative; display: flex; flex-direction: column;
  align-items: flex-start; gap: 6px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  font: inherit;
}
.schedule-card:hover { border-color: #10b981; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(5,150,105,.4); }
.schedule-card.is-active {
  border-color: #047857;
  background: linear-gradient(180deg, rgba(16,185,129,.06), rgba(16,185,129,.01));
  box-shadow: 0 0 0 3px rgba(5,150,105,.12), 0 6px 16px -8px rgba(5,150,105,.4);
}
.schedule-card.is-active::after {
  content: ""; position: absolute; top: 10px; right: 12px;
  width: 6px; height: 11px;
  border: solid #047857; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
/* Shift-specific icon tokens — each ring/bg meaningfully represents the time of day */
.schedule-icon {
  position: relative; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15,49,36,.06);
}
.schedule-icon svg { position: relative; z-index: 1; }
.schedule-icon--any     { background: linear-gradient(135deg, #fef3c7, #e0f2fe 50%, #ede9fe); color: #047857; }
.schedule-icon--morning { background: linear-gradient(135deg, #fff7ed 0%, #fde68a 55%, #fdba74 100%); color: #b45309; }
.schedule-icon--day     { background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%); color: #b45309; }
.schedule-icon--afternoon { background: linear-gradient(135deg, #fde68a 0%, #fb923c 100%); color: #c2410c; }
.schedule-icon--evening { background: linear-gradient(135deg, #fdba74 0%, #f97316 40%, #7c3aed 100%); color: #5b21b6; }
.schedule-icon--night   { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%); color: #fef3c7; }
/* Work setup icons */
.schedule-icon--remote   { background: linear-gradient(135deg, #ecfeff 0%, #bae6fd 55%, #7dd3fc 100%); color: #0369a1; }
.schedule-icon--hybrid   { background: linear-gradient(135deg, #e0f2fe 0%, #a7f3d0 55%, #6ee7b7 100%); color: #047857; }
.schedule-icon--onsite   { background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 60%, #94a3b8 100%); color: #334155; }
.schedule-icon--flexible { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%); color: #b45309; }
.schedule-icon--abroad   { background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 55%, #7c3aed 100%); color: #5b21b6; }
.schedule-card.is-active .schedule-icon {
  box-shadow: inset 0 0 0 1px rgba(4,120,87,.25), 0 4px 10px -4px rgba(15,49,36,.2);
}
.schedule-card__title { font-weight: 700; font-size: .92rem; color: #111827; }
.schedule-card__sub { font-size: .72rem; color: #6b7280; font-variant-numeric: tabular-nums; }

/* ── Weekday cards ── */
.weekday-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.weekday-card {
  position: relative; display: flex; flex-direction: column;
  align-items: flex-start; gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer; text-align: left;
  transition: border-color .18s, transform .12s, box-shadow .18s;
  font: inherit;
}
.weekday-card:hover { border-color: #10b981; transform: translateY(-1px); }
.weekday-card.is-active {
  border-color: #047857;
  background: linear-gradient(180deg, rgba(16,185,129,.06), rgba(16,185,129,.01));
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}
.weekday-card.is-active::after {
  content: ""; position: absolute; top: 10px; right: 12px;
  width: 6px; height: 11px;
  border: solid #047857; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
.weekday-dots { display: flex; gap: 4px; }
.weekday-dots i {
  width: 16px; height: 16px; border-radius: 4px;
  background: #f3f4f6; display: grid; place-items: center;
  font-size: .58rem; font-weight: 700; color: #9ca3af;
  font-style: normal;
  transition: all .2s;
}
.weekday-dots i.is-on { background: linear-gradient(180deg, #10b981, #047857); color: #fff; box-shadow: 0 1px 2px rgba(4,120,87,.3); }
.weekday-dots--rotate i { animation: weekRotate 4s ease-in-out infinite; }
.weekday-dots--rotate i:nth-child(1) { animation-delay: 0s; }
.weekday-dots--rotate i:nth-child(2) { animation-delay: .2s; }
.weekday-dots--rotate i:nth-child(3) { animation-delay: .4s; }
.weekday-dots--rotate i:nth-child(4) { animation-delay: .6s; }
.weekday-dots--rotate i:nth-child(5) { animation-delay: .8s; }
.weekday-dots--rotate i:nth-child(6) { animation-delay: 1s; }
.weekday-dots--rotate i:nth-child(7) { animation-delay: 1.2s; }
@keyframes weekRotate {
  0%, 100% { background: #f3f4f6; color: #9ca3af; }
  30%, 70% { background: linear-gradient(180deg, #10b981, #047857); color: #fff; }
}
.weekday-dots--editable i { cursor: pointer; }
.weekday-card__title { font-weight: 700; font-size: .92rem; color: #111827; }
.weekday-card__sub { font-size: .72rem; color: #6b7280; }

/* ── Hours per week ── */
.hpw-grid { display: flex; flex-direction: column; gap: 10px; }
.hpw-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.hpw-presets {
  display: inline-flex;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 12px;
  gap: 2px;
}
.hpw-preset {
  border: 0; background: transparent;
  padding: 8px 16px;
  font: inherit; font-size: .9rem; font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
  transition: all .15s;
  font-variant-numeric: tabular-nums;
}
.hpw-preset:hover { color: #047857; }
.hpw-preset.is-active {
  background: #fff;
  color: #047857;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(5,150,105,.2);
}
.hpw-custom {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.hpw-custom:focus-within { border-color: #047857; box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.hpw-custom input {
  width: 56px;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: 1rem; font-weight: 700;
  text-align: right;
  color: #111827;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  padding: 0 4px;
}
.hpw-custom input::-webkit-outer-spin-button,
.hpw-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hpw-custom__sym {
  font-size: .68rem; font-weight: 700; color: #6b7280;
  letter-spacing: .08em; text-transform: uppercase;
  padding-right: 8px;
  border-right: 1px solid #e5e7eb;
}
.hpw-custom__suffix {
  font-size: .75rem; color: #6b7280; font-weight: 600;
  margin-left: 4px;
}

.hpw-readout {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(16,185,129,.05), rgba(16,185,129,.01));
  border-left: 3px solid #10b981;
  border-radius: 0 10px 10px 0;
  font-size: .82rem;
  flex-wrap: wrap;
}
.hpw-readout__label { color: #6b7280; font-size: .76rem; }
.hpw-readout strong { color: #047857; font-weight: 700; flex: 1; min-width: 0; }
.hpw-readout__bracket {
  font-size: .65rem; font-weight: 700; color: #047857;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(16,185,129,.14);
  padding: 3px 8px; border-radius: 99px;
}

.hpw-flex-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

@media (max-width: 540px) {
  .hpw-input-row { grid-template-columns: 1fr; }
  .hpw-presets { width: 100%; justify-content: space-between; }
  .hpw-preset { flex: 1; padding: 8px 0; }
  .hpw-custom { width: 100%; justify-content: space-between; }
  .hpw-custom input { width: auto; flex: 1; text-align: center; }
}

/* ── Years field: inline "Years of experience" label on hover (matches rater pattern) ── */
.skill-edit-item__years-field {
  position: relative;
}
.skill-edit-item__years-field::before {
  content: "Years of experience";
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-size: .65rem;
  font-weight: 700;
  color: #b45309;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .22s cubic-bezier(.22,.8,.36,1);
}
.skill-edit-item__years-field:hover::before,
.skill-edit-item__years-field:focus-within::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── Skill-edit item: centered inline "rate yourself" bar ── */
.skill-edit-item {
  display: grid !important;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 12px;
}
.skill-edit-item__name { justify-self: start; min-width: 0; }
.skill-edit-item__right { justify-self: end; }

.skill-edit-item__rater {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  flex-shrink: 0;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background .15s;
}
.skill-edit-item__rater:hover { background: rgba(245,158,11,.06); }
.skill-edit-item__rater-label {
  font-size: .65rem; font-weight: 700; color: #b45309;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity .18s, max-width .22s cubic-bezier(.22,.8,.36,1);
}
.skill-edit-item__rater:hover .skill-edit-item__rater-label,
.skill-edit-item__rater:focus-within .skill-edit-item__rater-label {
  opacity: 1;
  max-width: 120px;
}
.skill-edit-item__rater-bar {
  display: inline-grid;
  grid-template-columns: repeat(10, 8px);
  gap: 3px;
}
.skill-edit-item__rater-bar i {
  display: block;
  width: 8px; height: 14px;
  background: #e5e7eb;
  border-radius: 2px;
  cursor: pointer;
  transition: background .12s, transform .1s;
}
.skill-edit-item__rater-bar i:hover { background: #fcd34d; transform: scaleY(1.1); }
.skill-edit-item__rater-bar i.is-on {
  background: #f59e0b;
  box-shadow: inset 0 -1px 0 rgba(180,83,9,.18);
}
.skill-edit-item__rater-bar i:nth-child(n+8).is-on { background: #ea580c; }
.skill-edit-item__rater-bar i:nth-child(10).is-on { background: #dc2626; }

.skill-edit-item__rater-num {
  font-size: .74rem; font-weight: 700; color: #374151;
  font-variant-numeric: tabular-nums;
  min-width: 30px; text-align: right;
}
.skill-edit-item__rater-num em {
  font-style: normal; font-weight: 400; color: #9ca3af;
  font-size: .68rem;
}

@media (max-width: 640px) {
  .skill-edit-item {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }
  .skill-edit-item__rater {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .skill-edit-item__rater-label { opacity: 1; max-width: 120px; }
}

/* ── Address input with auto-locate button ── */
.address-input { display: flex !important; align-items: center; padding: 0 4px 0 12px; gap: 0; }
.address-input input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none; font: inherit;
  padding: 10px 6px;
}
.address-input__locate {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(16,185,129,.1);
  color: #047857;
  border: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font: inherit; font-size: .72rem; font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .12s;
  flex-shrink: 0;
  margin: 4px;
}
.address-input__locate:hover { background: rgba(16,185,129,.18); transform: translateY(-1px); }
.address-input__locate.is-locating {
  background: rgba(16,185,129,.18);
  pointer-events: none;
}
.address-input__locate.is-locating svg { animation: addrSpin 1s linear infinite; }
@keyframes addrSpin { to { transform: rotate(360deg); } }
.address-hint {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 6px;
  font-size: .74rem; color: #4b5563; line-height: 1.5;
}
.address-hint > svg { color: #047857; }
.address-hint strong { color: #047857; font-weight: 700; }

/* Time zone field + auto-detected badge */
.tz-auto-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(16,185,129,.14);
  color: #047857;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}
.tz-auto-badge[hidden] { display: none !important; }
/* Same guard for the "AUTO" pill inside the compensation local-currency select. */
.comp-select__auto-badge[hidden] { display: none !important; }
.gh-sync-badge[hidden] { display: none !important; }
.tz-hint {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 6px;
  font-size: .74rem; color: #4b5563; line-height: 1.5;
}
.tz-hint > svg { color: #047857; }
.tz-hint strong { color: #047857; font-weight: 700; }
.tz-hint em { font-style: normal; font-weight: 600; color: #374151; }

/* ── About textarea: breathing room for the last line ── */
.about-textarea {
  padding: 14px 14px 2.5em !important;
  line-height: 1.6;
}

/* ── Relocation & work eligibility — 3-cluster layout ── */
.reloc-cluster {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(5,150,105,.2);
}
.reloc-cluster:first-of-type { margin-top: 4px; padding-top: 0; border-top: 0; }
.reloc-cluster__title {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; color: #047857;
  letter-spacing: .04em; text-transform: uppercase;
  margin: 0 0 14px;
}
.reloc-cluster__num {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(16,185,129,.14);
  color: #047857;
  font-size: .75rem;
}
.reloc-cluster__body { display: flex; flex-direction: column; gap: 14px; }

/* Currently based in */
.reloc-base {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(16,185,129,.05), transparent);
  border: 1px solid rgba(5,150,105,.18);
  border-radius: 12px;
}
.reloc-base__icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; color: #047857;
  border: 1px solid rgba(5,150,105,.2);
}
.reloc-base__copy { min-width: 0; }
.reloc-base__label {
  display: block;
  font-size: .65rem; font-weight: 700; color: #6b7280;
  letter-spacing: .1em; text-transform: uppercase;
}
.reloc-base__copy strong {
  display: block; font-size: .92rem; font-weight: 700; color: #111827; margin-top: 2px;
}
.reloc-base__copy strong em { font-style: normal; color: #6b7280; font-weight: 500; font-size: .82rem; }
.reloc-base__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: #047857;
  cursor: pointer;
}
.reloc-base__toggle input { accent-color: #047857; width: 14px; height: 14px; }

/* Quick presets */
.reloc-presets {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.reloc-presets__label {
  font-size: .75rem; color: #6b7280; font-weight: 600;
  margin-right: 4px;
}
.reloc-preset-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff;
  border: 1.5px dashed rgba(5,150,105,.3);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.reloc-preset-btn:hover { border-style: solid; border-color: #10b981; background: rgba(16,185,129,.04); }
.reloc-preset-btn__title { font-size: .82rem; font-weight: 700; color: #047857; }
.reloc-preset-btn small { font-size: .7rem; color: #6b7280; margin-top: 1px; }

/* Region grid with country drilldown */
.reloc-regions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.reloc-region {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
}
.reloc-region:hover { border-color: rgba(5,150,105,.35); }
.reloc-region.is-selected { border-color: #047857; background: linear-gradient(180deg, rgba(16,185,129,.03), #fff); }
.reloc-region__head {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.reloc-region__check {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: all .15s;
}
.reloc-region.is-selected .reloc-region__check {
  background: #047857; border-color: #047857;
}
.reloc-region.is-selected .reloc-region__check::after {
  content: ""; position: absolute; top: 2px; left: 4px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.reloc-region__title { font-size: .85rem; font-weight: 700; color: #111827; }
.reloc-region__count {
  font-size: .65rem; font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 7px; border-radius: 99px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.reloc-region.is-selected .reloc-region__count { background: rgba(16,185,129,.14); color: #047857; }
.reloc-region__caret {
  color: #9ca3af; font-size: .85rem;
  transition: transform .2s;
}
.reloc-region.is-open .reloc-region__caret { transform: rotate(180deg); }

.reloc-region__countries {
  display: none;
  padding: 4px 12px 12px 38px;
  flex-direction: column;
  gap: 4px;
}
.reloc-region.is-open .reloc-region__countries { display: flex; }
.reloc-region__countries label {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
  font-size: .82rem;
  cursor: pointer;
  color: #374151;
}
.reloc-region__countries input {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 3px;
  background: #fff;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.reloc-region__countries input:checked { background: #047857; border-color: #047857; }
.reloc-region__countries input:checked::after {
  content: ""; position: absolute; top: 0; left: 3px;
  width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* No-sponsorship picker */
.reloc-elig {
  margin-top: 4px;
  padding: 14px;
  background: #fafbfb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.reloc-elig__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reloc-elig__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 99px;
  font: inherit; font-size: .78rem; font-weight: 600; color: #374151;
  cursor: pointer;
  transition: all .15s;
}
.reloc-elig__chip:hover { border-color: #10b981; }
.reloc-elig__chip.is-active {
  background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(16,185,129,.02));
  border-color: #047857; color: #047857;
}
.reloc-elig__chip-empty {
  font-size: .76rem; color: #6b7280; font-style: italic;
}

.reloc-sponsor-summary {
  display: grid; grid-template-columns: 18px 1fr; gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(245,158,11,.08);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: .78rem; color: #1f2937;
}
.reloc-sponsor-summary[data-empty="true"] {
  background: rgba(16,185,129,.06);
  border-left-color: #10b981;
}
.reloc-sponsor-summary__icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f59e0b;
  color: #fff;
  font-style: normal;
  font-size: .68rem; font-weight: 800;
  font-family: 'Times New Roman', serif;
}
.reloc-sponsor-summary[data-empty="true"] .reloc-sponsor-summary__icon { background: #10b981; }
.reloc-sponsor-summary em { font-style: normal; font-weight: 700; color: #047857; }
.reloc-sponsor-summary[data-empty="false"] em { color: #b45309; }

/* Specific date reveal */
.reloc-date-reveal {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 6px;
  animation: revealFade .25s ease;
}
@keyframes revealFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.reloc-date-reveal[hidden] { display: none; }

/* Timezone overlap cards */
.tz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.tz-card {
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: all .15s;
  position: relative;
}
.tz-card:hover { border-color: #10b981; transform: translateY(-1px); }
.tz-card.is-active {
  border-color: #047857;
  background: linear-gradient(180deg, rgba(16,185,129,.06), rgba(16,185,129,.01));
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.tz-card.is-active::after {
  content: ""; position: absolute; top: 10px; right: 12px;
  width: 6px; height: 11px; border: solid #047857; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
.tz-card__icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(16,185,129,.1);
  color: #047857;
  margin-bottom: 2px;
}
.tz-card__title { font-size: .88rem; font-weight: 700; color: #111827; }
.tz-card__sub { font-size: .72rem; color: #6b7280; line-height: 1.4; }

@media (max-width: 540px) {
  .reloc-base { grid-template-columns: 36px 1fr; }
  .reloc-base__toggle { grid-column: 1 / -1; }
  .reloc-regions { grid-template-columns: 1fr; }
}

/* ── Job type panel (checkbox list mirroring build4's filter) ── */
.jobtype-panel {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.jobtype-panel__search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}
.jobtype-panel__search > svg { color: #9ca3af; flex-shrink: 0; }
.jobtype-panel__search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font: inherit; font-size: .85rem; color: #111827;
  outline: none;
  padding: 4px 0;
}
.jobtype-panel__search input::placeholder { color: #9ca3af; }
.jobtype-panel__count {
  font-size: .68rem; font-weight: 700; color: #047857;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(16,185,129,.12);
  padding: 3px 8px; border-radius: 99px;
  flex-shrink: 0;
}

.jobtype-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(5,150,105,.25) transparent;
}
.jobtype-list::-webkit-scrollbar { width: 6px; }
.jobtype-list::-webkit-scrollbar-thumb { background: rgba(5,150,105,.25); border-radius: 99px; }

.jobtype-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem; color: #374151;
  transition: background .12s, color .12s;
}
.jobtype-row:hover { background: rgba(5,150,105,.06); color: #111827; }
.jobtype-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all .12s;
}
.jobtype-row input[type="checkbox"]:checked {
  background: #047857;
  border-color: #047857;
}
.jobtype-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute; top: 1px; left: 4px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.jobtype-row__icon {
  color: #9ca3af; display: grid; place-items: center;
  flex-shrink: 0; transition: color .12s;
}
.jobtype-row.is-active .jobtype-row__icon { color: #047857; }
.jobtype-row.is-active { color: #111827; font-weight: 600; }
.jobtype-row__label { flex: 1; min-width: 0; }
.jobtype-row.is-hidden { display: none; }

/* ── Sticky save bar (mirrors bottom actions) ── */
.save-dock {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 30%, #ffffff 100%);
  backdrop-filter: blur(6px);
  padding: 14px 20px 14px;
  border-top: 1px solid rgba(5,150,105,.12);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.22,.8,.36,1);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.save-dock.is-visible { transform: translateY(0); }
.save-dock__status {
  font-size: .78rem; color: #374151;
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.save-dock__status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.18);
  flex-shrink: 0;
  animation: saveDockPulse 2s ease-in-out infinite;
}
.save-dock.is-clean .save-dock__status::before {
  background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.18); animation: none;
}
@keyframes saveDockPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
.save-dock__status strong { color: #111827; font-weight: 700; }
.save-dock__actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 639px) {
  .save-dock { padding: 10px 14px; }
  .save-dock__status { font-size: .72rem; }
  .save-dock__status span { display: none; }
}
/* save-dock spans full viewport width on all sizes */

/* ── Quest clickable targeting ── */
.rail-quests li[data-target] { cursor: pointer; }
.rail-quests li[data-target]:hover .rail-quests__check { transform: scale(1.1); }
.settings-section.is-highlight {
  animation: sectionFlash 1.2s ease;
  border-radius: 16px;
}
@keyframes sectionFlash {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.4), 0 0 0 0 rgba(16,185,129,.2); }
  35% { box-shadow: 0 0 0 6px rgba(16,185,129,.25), 0 0 0 14px rgba(16,185,129,.06); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0), 0 0 0 0 rgba(16,185,129,0); }
}

/* ── Skill-tag picker inside portfolio entries ── */
.pf-skill-tags {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 8px;
  font-size: .75rem;
}
.pf-skill-tags__label {
  font-size: .68rem; font-weight: 700; color: #047857;
  letter-spacing: .08em; text-transform: uppercase;
  margin-right: 2px;
}
.pf-skill-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(4,120,87,.08);
  border: 1px solid rgba(4,120,87,.2);
  color: #047857;
  border-radius: 99px;
  padding: 3px 4px 3px 10px;
  font-size: .72rem; font-weight: 600;
}
.pf-skill-tag button {
  background: transparent; border: 0; color: inherit; cursor: pointer;
  padding: 2px 6px; font-size: .8em; opacity: .55;
  border-radius: 99px;
  line-height: 1;
}
.pf-skill-tag button:hover { opacity: 1; background: rgba(220,38,38,.15); color: #dc2626; }
.pf-skill-tag-add {
  border: 1px dashed rgba(5,150,105,.4); background: transparent;
  color: #047857;
  border-radius: 99px;
  padding: 3px 10px;
  font: inherit; font-size: .7rem; font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.pf-skill-tag-add:hover { background: rgba(5,150,105,.08); border-style: solid; }
.pf-skill-tag-popover {
  position: absolute; z-index: 80;
  background: #fff; border: 1px solid rgba(5,150,105,.18);
  border-radius: 10px; padding: 8px;
  box-shadow: 0 10px 28px -8px rgba(15,49,36,.18);
  display: flex; flex-wrap: wrap; gap: 4px;
  max-width: 280px;
  animation: pf-fadeIn .15s ease;
}
.pf-skill-tag-popover button {
  background: #f3f4f6; border: 0; padding: 4px 10px; border-radius: 99px;
  font: inherit; font-size: .7rem; font-weight: 600; color: #374151;
  cursor: pointer;
  transition: background .12s;
}
.pf-skill-tag-popover button:hover { background: rgba(5,150,105,.12); color: #047857; }
.pf-skill-tag-popover input {
  flex: 1; min-width: 120px;
  border: 1px solid #d1d5db; border-radius: 99px;
  padding: 4px 10px;
  font: inherit; font-size: .72rem; outline: none;
}
.pf-skill-tag-popover input:focus { border-color: #059669; }

/* ── Small-screen polish (<420px) ── */
@media (max-width: 420px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .schedule-card { padding: 10px; }
  .schedule-card__title { font-size: .85rem; }
  .schedule-card__sub { font-size: .65rem; }
  .weekday-grid { grid-template-columns: 1fr; }
  .jobtype-grid { grid-template-columns: repeat(2, 1fr); }
  .jobtype-chip { font-size: .75rem; padding: 8px 10px; }
}
@media (max-width: 360px) {
  .schedule-card__sundial { width: 28px; height: 28px; }
  .schedule-card__sundial::before { inset: 3px; }
}

/* ── Compensation panel ── */
.comp-panel {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(5,150,105,.12);
  background: #fff;
  overflow: hidden;
}
.comp-hero {
  padding: 22px 22px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,185,129,.09), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(4,120,87,.06), transparent 55%),
    linear-gradient(180deg, #f6faf8 0%, #ffffff 100%);
  position: relative;
  border-bottom: 1px solid rgba(5,150,105,.1);
}
.comp-hero__mainline {
  display: flex; align-items: baseline; gap: 6px;
  font-family: 'Figtree', sans-serif;
  color: #111827;
  flex-wrap: wrap;
}
.comp-hero__sym {
  font-size: 1.6rem; font-weight: 600; color: #047857;
  line-height: 1;
  margin-right: 2px;
}
.comp-hero__range {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 2.25rem; font-weight: 700; letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.comp-hero__range strong { font-weight: 700; color: #111827; }
.comp-hero__range em { font-style: normal; color: #9ca3af; font-weight: 400; font-size: 1.5rem; }
.comp-hero__period {
  font-size: .95rem; color: #6b7280; font-weight: 500;
  margin-left: 4px;
}
.comp-hero__sub {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-size: .8rem; color: #4b5563;
}
.comp-hero__code {
  font-size: .68rem; font-weight: 700; color: #047857;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(16,185,129,.12);
  padding: 3px 9px; border-radius: 99px;
}
.comp-hero__sep { color: #d1d5db; }

/* Range visualization */
.comp-range {
  padding: 14px 22px 18px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}
.comp-range__track {
  position: relative;
  height: 8px;
  background: #f3f4f6;
  border-radius: 99px;
  margin: 0 10px;
}
.comp-range__band {
  position: absolute; top: -2px; bottom: -2px;
  background: linear-gradient(90deg, #047857, #10b981);
  border-radius: 99px;
  box-shadow: 0 4px 12px -4px rgba(5,150,105,.5);
  transition: left .25s ease, right .25s ease;
  left: 45%; right: 25%;
}
.comp-range__handle {
  position: absolute; top: 50%;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #047857;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 8px rgba(4,120,87,.35);
  transition: left .25s ease;
}
.comp-range__handle span {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  font-size: .68rem; font-weight: 700; color: #047857;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.comp-range__handle--min { left: 45%; }
.comp-range__handle--min span { transform: translateX(-100%); text-align: right; padding-right: 2px; }
.comp-range__handle--max { left: 75%; }
.comp-range__handle--max span { transform: translateX(0); text-align: left; padding-left: 2px; }
.comp-range__scale {
  display: flex; justify-content: space-between;
  margin-top: 22px;
  padding: 0 4px;
  font-size: .68rem; color: #9ca3af;
  letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600;
}

/* Controls */
.comp-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding: 18px 22px 22px;
}
.comp-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.comp-field[hidden] { display: none; }
.comp-field--range { grid-column: 1 / -1; }
.comp-field--mode { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; justify-content: space-between; align-items: center; gap: 14px; }
.comp-field--mode .comp-field__label { margin: 0; }

/* Auto-detected local currency badge */
.comp-select--auto { position: relative; }
.comp-select__auto-badge {
  position: absolute; top: 50%; right: 24px;
  transform: translateY(-50%);
  font-size: .6rem; font-weight: 700; color: #047857;
  background: rgba(16,185,129,.14);
  padding: 2px 7px; border-radius: 99px;
  letter-spacing: .1em; text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}

.comp-hero__label-pay {
  font-size: .68rem; font-weight: 700; color: #b45309;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(245,158,11,.14);
  padding: 3px 9px; border-radius: 99px;
}
@media (max-width: 640px) {
  .comp-controls { grid-template-columns: 1fr; }
}
.comp-field__label {
  font-size: .68rem; font-weight: 700; color: #374151;
  letter-spacing: .08em; text-transform: uppercase;
}
.comp-field__label small { font-weight: 500; color: #9ca3af; letter-spacing: 0; text-transform: none; font-size: .9em; }
.comp-select {
  display: block;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 2px 10px;
  transition: border-color .15s, box-shadow .15s;
}
.comp-select:focus-within { border-color: #047857; box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.comp-select select {
  width: 100%;
  border: 0; background: transparent;
  font: inherit; font-size: .9rem; font-weight: 600; color: #111827;
  padding: 8px 0;
  outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 18px;
}

.comp-tabs {
  display: inline-flex;
  background: #f3f4f6;
  padding: 3px;
  border-radius: 10px;
  width: fit-content;
}
.comp-tab {
  border: 0; background: transparent;
  padding: 6px 16px;
  font: inherit; font-size: .8rem; font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
  transition: all .15s;
}
.comp-tab:hover { color: #047857; }
.comp-tab.is-active {
  background: #fff; color: #047857;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(5,150,105,.15);
}

.comp-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.comp-inputs--single { grid-template-columns: 1fr; max-width: 320px; }
.comp-input {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 0 10px;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.comp-input:focus-within { border-color: #047857; box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.comp-input__prefix {
  font-size: .95rem; font-weight: 600; color: #9ca3af;
  flex-shrink: 0;
}
.comp-input__suffix {
  font-size: .7rem; font-weight: 600; color: #9ca3af;
  letter-spacing: .06em; text-transform: uppercase;
  flex-shrink: 0;
}
.comp-input input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font: inherit; font-size: 1rem; font-weight: 600; color: #111827;
  padding: 10px 6px;
  outline: none;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.comp-input input::-webkit-outer-spin-button,
.comp-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.comp-input input[type=number] { -moz-appearance: textfield; }
.comp-input-sep { color: #9ca3af; font-weight: 500; padding: 0 2px; }

/* Flexibility chips */
.comp-field--flex { grid-column: 1 / -1; }
.comp-flex-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.comp-flex-chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: all .15s;
}
.comp-flex-chip:hover { border-color: #10b981; }
.comp-flex-chip.is-active {
  border-color: #047857;
  background: linear-gradient(180deg, rgba(16,185,129,.06), rgba(16,185,129,.01));
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.comp-flex-chip__title {
  font-size: .85rem; font-weight: 700; color: #111827;
}
.comp-flex-chip__sub {
  font-size: .7rem; color: #6b7280;
  line-height: 1.35;
}
.comp-flex-chip.is-active .comp-flex-chip__title { color: #047857; }
.comp-hint {
  font-size: .72rem; color: #6b7280;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .comp-hero__range { font-size: 1.75rem; }
  .comp-hero__range em { font-size: 1.2rem; }
  .comp-hero__sym { font-size: 1.25rem; }
  .comp-controls { grid-template-columns: 1fr; padding: 14px 16px 18px; }
  .comp-field--mode { grid-column: 1; justify-self: start; }
  .comp-range { padding: 14px 16px 18px; }
  .comp-hero { padding: 18px 16px 14px; }
}

/* ── Resume section — current file + autofill CTA + drop zone ── */
.resume-current {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid rgba(5,150,105,.15);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 14px;
}
.resume-current__file {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
}
.resume-current__badge {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(5,150,105,.15);
}
.resume-current__info { min-width: 0; }
.resume-current__info strong {
  display: block;
  font-size: .95rem; font-weight: 700; color: #111827;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.resume-current__info span {
  display: block;
  font-size: .78rem; color: #6b7280;
  margin-top: 2px;
}
.resume-current__info em {
  font-style: normal; color: #047857; font-weight: 600;
}
.resume-current__actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.resume-current__autofill {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 0% 50%, rgba(16,185,129,.1), transparent 40%),
    linear-gradient(180deg, #f6fdfa 0%, #ffffff 100%);
  border-top: 1px dashed rgba(5,150,105,.18);
  position: relative;
  overflow: hidden;
}
.resume-current__autofill::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(16,185,129,.14) 1.5px, transparent 2px),
    radial-gradient(circle at 88% 72%, rgba(245,158,11,.18) 1.5px, transparent 2px),
    radial-gradient(circle at 50% 20%, rgba(16,185,129,.12) 1.5px, transparent 2px);
  background-size: 120px 120px, 160px 160px, 140px 140px;
  pointer-events: none;
  opacity: .6;
}
.resume-autofill-tag {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 4px 10px -3px rgba(4,120,87,.45);
}
.resume-autofill-copy { position: relative; z-index: 1; min-width: 0; }
.resume-autofill-copy strong {
  display: block; font-size: .88rem; font-weight: 700; color: #111827;
}
.resume-autofill-copy span {
  display: block; font-size: .75rem; color: #6b7280;
  margin-top: 2px;
}
.resume-current__autofill .button { position: relative; z-index: 1; }

.resume-drop {
  margin-top: 12px;
  display: grid; grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px dashed rgba(5,150,105,.3);
  border-radius: 14px;
  background: #fbfdfc;
  transition: border-color .18s, background .18s, transform .12s;
  cursor: pointer;
}
.resume-drop:hover { border-color: #10b981; background: #f4fbf8; }
.resume-drop.is-dragover { border-color: #047857; background: rgba(16,185,129,.08); transform: scale(1.005); box-shadow: 0 8px 24px -10px rgba(5,150,105,.4); }
.resume-drop__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(16,185,129,.1);
  color: #047857;
}
.resume-drop__copy strong {
  display: block; font-size: .92rem; font-weight: 700; color: #111827;
}
.resume-drop__copy span {
  display: block; font-size: .75rem; color: #6b7280;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .resume-current__file, .resume-current__autofill { grid-template-columns: 1fr; }
  .resume-current__actions { justify-content: flex-start; }
  .resume-drop { grid-template-columns: 1fr; text-align: center; }
  .resume-drop__icon { margin: 0 auto; }
}

/* ── Autofill modal ── */
.autofill-scrim[hidden],
.autofill-parse[hidden],
.autofill-modal[hidden],
.autofill-banner[hidden] { display: none !important; }

/* When the autofill modal/parse is open, mute everything else fighting for the bottom */
body.has-autofill-modal .save-dock,
body.has-autofill-modal .rail-fab,
body.has-autofill-modal #save-toast { display: none !important; }
body.has-autofill-modal { overflow: hidden; }

.autofill-scrim {
  position: fixed; inset: 0;
  background: rgba(7, 32, 23, .55);
  z-index: 1400;
  backdrop-filter: blur(4px);
  animation: autofillFade .25s ease;
}
@keyframes autofillFade { from { opacity: 0 } to { opacity: 1 } }

/* Parsing overlay */
.autofill-parse {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center;
  pointer-events: none;
}
.autofill-parse__inner {
  pointer-events: auto;
  width: min(440px, 92vw);
  background: #fff;
  border-radius: 20px;
  padding: 30px 28px 24px;
  box-shadow: 0 20px 60px -15px rgba(15,49,36,.35);
  text-align: center;
  animation: autofillRise .35s cubic-bezier(.22,.8,.36,1);
}
@keyframes autofillRise { from { transform: translateY(14px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.autofill-parse__doc {
  width: 60px; height: 76px;
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.autofill-scanline {
  animation: scanY 1.6s ease-in-out infinite;
}
@keyframes scanY {
  0%   { y: 8; opacity: 0 }
  15%  { opacity: 1 }
  85%  { opacity: 1 }
  100% { y: 68; opacity: 0 }
}
.autofill-parse__title {
  font-size: 1.05rem; font-weight: 700; color: #111827;
  margin: 0 0 14px;
}
.autofill-parse__title span {
  display: inline-block;
  background: rgba(5,150,105,.1);
  color: #047857;
  font-weight: 600; font-size: .85rem;
  padding: 2px 10px;
  border-radius: 99px;
  margin-left: 2px;
  max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: middle;
}
.autofill-parse__stages {
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
  margin: 16px 0;
}
.autofill-stage {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: #9ca3af;
  font-weight: 500;
  transition: color .25s;
}
.autofill-stage.is-active { color: #111827; font-weight: 600; }
.autofill-stage.is-done { color: #047857; }
.autofill-stage__dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor;
  flex-shrink: 0;
  position: relative;
  transition: all .25s;
}
.autofill-stage.is-active .autofill-stage__dot {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
  animation: stageSpin 1.2s linear infinite;
}
.autofill-stage.is-active .autofill-stage__dot::before {
  content: ""; position: absolute; top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: #10b981;
}
@keyframes stageSpin { to { transform: rotate(360deg); } }
.autofill-stage.is-done .autofill-stage__dot {
  background: #10b981; border-color: #10b981;
}
.autofill-stage.is-done .autofill-stage__dot::after {
  content: "\2713"; position: absolute; inset: 0;
  color: #fff; font-size: 8px; font-weight: 900;
  display: grid; place-items: center;
}
.autofill-parse__bar {
  height: 6px; background: rgba(5,150,105,.1);
  border-radius: 99px; overflow: hidden;
  margin-top: 12px;
}
.autofill-parse__bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #10b981, #047857);
  border-radius: 99px;
  transition: width .4s ease;
  box-shadow: 0 0 10px rgba(16,185,129,.4);
}
.autofill-parse__hint {
  font-size: .72rem; color: #9ca3af;
  margin: 10px 0 0;
}

/* Review modal */
.autofill-modal {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center;
  padding: 3vh 16px;
  pointer-events: none;
}
.autofill-modal__inner {
  pointer-events: auto;
  width: min(860px, 100%);
  max-height: 94vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px -20px rgba(15,49,36,.45);
  display: flex; flex-direction: column;
  animation: autofillRise .3s cubic-bezier(.22,.8,.36,1);
  overflow: hidden;
}
.autofill-modal__head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #f3f4f6;
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  align-items: start;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,185,129,.08), transparent 45%),
    #ffffff;
}
.autofill-modal__titleblock h2 {
  margin: 6px 0 4px;
  font-size: 1.3rem; font-weight: 700; color: #111827; letter-spacing: -.01em;
}
.autofill-modal__titleblock p {
  margin: 0;
  font-size: .82rem; color: #4b5563; line-height: 1.5;
}
.autofill-modal__titleblock p strong { color: #047857; }
.autofill-eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .65rem; font-weight: 700; color: #047857;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(16,185,129,.12);
  padding: 4px 10px; border-radius: 99px;
}
.autofill-modal__close {
  width: 32px; height: 32px; border-radius: 8px;
  border: 0; background: #f3f4f6; color: #6b7280;
  cursor: pointer; font-size: .95rem;
  transition: background .15s;
  align-self: start;
}
.autofill-modal__close:hover { background: #e5e7eb; color: #111827; }

.autofill-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.autofill-stat {
  background: #fff;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.autofill-stat strong {
  font-size: 1.35rem; font-weight: 700; color: #111827;
  letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.autofill-stat span {
  font-size: .7rem; color: #6b7280; font-weight: 500;
}
.autofill-stat--hi strong { color: #047857; }
.autofill-stat--med strong { color: #b45309; }
.autofill-stat--low strong { color: #b91c1c; }

.autofill-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
  gap: 14px;
  flex-wrap: wrap;
}
.autofill-select-all {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: #374151;
  cursor: pointer;
}
.autofill-select-all input { accent-color: #047857; width: 15px; height: 15px; }
.autofill-toolbar__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.autofill-filter-pill {
  border: 1px solid #e5e7eb; background: #fff;
  font: inherit; font-size: .72rem; font-weight: 600; color: #6b7280;
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s;
}
.autofill-filter-pill:hover { color: #047857; border-color: #10b981; }
.autofill-filter-pill.is-active {
  background: #047857; color: #fff; border-color: #047857;
}

.autofill-body {
  overflow-y: auto;
  padding: 4px 24px 18px;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(5,150,105,.25) transparent;
}
.autofill-body::-webkit-scrollbar { width: 6px; }
.autofill-body::-webkit-scrollbar-thumb { background: rgba(5,150,105,.25); border-radius: 99px; }

.autofill-group { padding: 14px 0 4px; border-bottom: 1px dashed #f3f4f6; }
.autofill-group:last-child { border-bottom: 0; }
.autofill-group__title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px;
  font-size: .88rem; font-weight: 700; color: #111827;
}
.autofill-group__title em {
  font-style: normal; font-weight: 500; font-size: .75rem;
  color: #6b7280; margin-left: 4px;
}
.autofill-group__dot { width: 8px; height: 8px; border-radius: 50%; }
.autofill-group__behavior {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: #fafbfb;
  border-left: 3px solid rgba(5,150,105,.35);
  border-radius: 0 8px 8px 0;
  font-size: .72rem; color: #4b5563; line-height: 1.5;
}
.autofill-group__behavior strong { color: #047857; font-weight: 700; }

.autofill-rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.autofill-row {
  display: grid; grid-template-columns: 22px 180px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .12s;
}
.autofill-row:hover { background: rgba(5,150,105,.04); }
.autofill-row--conflict { background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.2); }
.autofill-row__check { display: grid; place-items: center; }
.autofill-row__check input {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  cursor: pointer; position: relative;
  transition: all .12s;
}
.autofill-row__check input:checked { background: #047857; border-color: #047857; }
.autofill-row__check input:checked::after {
  content: ""; position: absolute; top: 1px; left: 4px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.autofill-row__label {
  font-size: .82rem; font-weight: 600; color: #111827;
  min-width: 0;
  display: flex; flex-direction: column;
}
.autofill-row__label small {
  font-size: .68rem; font-weight: 500; color: #6b7280; margin-top: 1px;
}
.autofill-row__val input,
.autofill-row__val textarea {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 8px;
  font: inherit; font-size: .82rem; color: #1f2937;
  border-radius: 6px;
  outline: none;
  resize: vertical;
}
.autofill-row__val input:hover, .autofill-row__val textarea:hover { border-color: #e5e7eb; background: #fafafa; }
.autofill-row__val input:focus, .autofill-row__val textarea:focus { border-color: #047857; background: #fff; box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.autofill-row__val input:disabled { color: #9ca3af; font-style: italic; }
.autofill-row__val--choice { display: flex; gap: 4px; flex-wrap: wrap; }
.autofill-choice {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  font-size: .75rem; font-weight: 600; color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}
.autofill-choice:hover { border-color: #10b981; color: #047857; }
.autofill-choice.is-active { background: #047857; color: #fff; border-color: #047857; }
.autofill-choice input { appearance: none; -webkit-appearance: none; display: none; }

.autofill-conf {
  font-size: .65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.autofill-conf--hi { background: rgba(16,185,129,.12); color: #047857; }
.autofill-conf--med { background: rgba(245,158,11,.14); color: #b45309; }
.autofill-conf--low { background: rgba(220,38,38,.12); color: #b91c1c; }
.autofill-conf--muted { background: #f3f4f6; color: #9ca3af; }

/* Cards (experience / education) */
.autofill-rows--cards { gap: 8px; }
.autofill-card {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: #fafbfb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  align-items: start;
  transition: border-color .12s, background .12s;
}
.autofill-card:hover { border-color: rgba(5,150,105,.3); background: #fff; }
.autofill-row__check--card { padding-top: 2px; }
.autofill-card__body { min-width: 0; position: relative; }
.autofill-card__line { font-size: .84rem; color: #1f2937; line-height: 1.4; }
.autofill-card__line strong { color: #111827; font-weight: 700; }
.autofill-card__line em { font-style: normal; font-weight: 600; color: #047857; }
.autofill-card__line--sub { font-size: .74rem; color: #6b7280; margin-top: 2px; font-variant-numeric: tabular-nums; }
.autofill-card__line--desc { font-size: .78rem; color: #4b5563; margin-top: 6px; line-height: 1.5; }
.autofill-card .autofill-conf { position: absolute; top: 0; right: 0; }

/* Skills tags */
.autofill-skills { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.autofill-skill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  font-size: .78rem; color: #374151; font-weight: 600;
  cursor: pointer;
  transition: all .12s;
}
.autofill-skill-tag:hover { border-color: #10b981; }
.autofill-skill-tag input { accent-color: #047857; width: 14px; height: 14px; }
.autofill-skill-tag small {
  font-size: .62rem; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .06em;
  margin-left: 2px;
}
.autofill-skill-tag--new {
  background: rgba(16,185,129,.06);
  border-color: rgba(16,185,129,.3);
}
.autofill-skill-tag--new small { color: #047857; }

/* Modal footer */
.autofill-modal__foot {
  padding: 14px 24px;
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.autofill-foot__stats { font-size: .82rem; color: #4b5563; }
.autofill-foot__stats strong { color: #047857; font-weight: 700; font-size: .95rem; }
.autofill-foot__actions { display: flex; gap: 8px; }

/* Conflict resolution block (certifications) */
.autofill-conflict {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%;
}
.autofill-conflict__head {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: #111827;
}
.autofill-conflict__head strong { font-weight: 700; }
.autofill-conflict__pair {
  display: grid; grid-template-columns: 1fr 24px 1fr;
  gap: 10px; align-items: center;
}
.autofill-conflict__side {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.autofill-conflict__tag {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #6b7280;
}
.autofill-conflict__body strong {
  display: block; font-size: .84rem; font-weight: 700; color: #111827;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.autofill-conflict__body span {
  display: block; font-size: .72rem; color: #6b7280; margin-top: 1px;
}
.autofill-conflict__vs {
  text-align: center; font-size: 1.3rem; color: #9ca3af; font-weight: 700;
}
.autofill-conflict__choices {
  display: flex; flex-direction: column; gap: 6px;
}
.autofill-conflict__choices .autofill-choice {
  justify-content: flex-start;
  padding: 8px 14px;
  border-radius: 10px;
  gap: 8px;
  width: 100%;
}
.autofill-conflict__choices .autofill-choice small {
  color: #6b7280; font-weight: 500; font-size: .7rem;
  margin-left: auto;
}
.autofill-conflict__choices .autofill-choice.is-active small { color: rgba(255,255,255,.85); }
.autofill-row--conflict { grid-template-columns: 1fr; padding: 14px; }
@media (max-width: 640px) {
  .autofill-conflict__pair { grid-template-columns: 1fr; }
  .autofill-conflict__vs { text-align: left; }
}

/* Success inline banner (persistent, anchored above the form) */
.autofill-banner {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 16px;
  background:
    linear-gradient(120deg, rgba(16,185,129,.14) 0%, rgba(16,185,129,.03) 60%, transparent 100%),
    #ffffff;
  border: 1px solid rgba(5,150,105,.25);
  border-left: 4px solid #047857;
  border-radius: 12px;
  box-shadow: 0 6px 16px -10px rgba(15,49,36,.2);
  animation: autofillRise .3s cubic-bezier(.22,.8,.36,1);
}
.autofill-banner__check {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  box-shadow: 0 4px 10px -3px rgba(4,120,87,.45);
  flex-shrink: 0;
}
.autofill-banner__body strong {
  display: block; font-size: .92rem; font-weight: 700; color: #111827;
}
.autofill-banner__body strong em {
  font-style: normal; font-weight: 600; color: #047857;
  background: rgba(16,185,129,.1);
  padding: 1px 8px; border-radius: 99px;
  font-size: .82rem;
  margin-left: 4px;
  max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-block; vertical-align: middle;
}
.autofill-banner__body span {
  display: block; font-size: .78rem; color: #4b5563; margin-top: 3px; line-height: 1.5;
}
.autofill-banner__body em { font-style: normal; font-weight: 700; color: #047857; }
.autofill-banner__body strong strong { color: #111827; font-weight: 700; }
.autofill-banner__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.autofill-banner__undo {
  background: #fff;
  border: 1px solid rgba(5,150,105,.3);
  color: #047857;
  padding: 7px 14px;
  border-radius: 8px;
  font: inherit; font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.autofill-banner__undo:hover { background: rgba(16,185,129,.08); border-color: #10b981; }
.autofill-banner__dismiss {
  background: transparent;
  border: 0;
  color: #6b7280;
  width: 28px; height: 28px; border-radius: 8px;
  cursor: pointer; font-size: .9rem;
  transition: background .15s, color .15s;
}
.autofill-banner__dismiss:hover { background: #f3f4f6; color: #111827; }
@media (max-width: 640px) {
  .autofill-banner { grid-template-columns: 36px 1fr; }
  .autofill-banner__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .autofill-row { grid-template-columns: 22px 1fr auto; row-gap: 6px; }
  .autofill-row__label { grid-column: 2 / -1; }
  .autofill-row__val { grid-column: 2 / -1; }
  .autofill-conf { grid-column: 2 / -1; justify-self: start; }
  .autofill-stats { grid-template-columns: repeat(2, 1fr); }

  /* Modal chrome — much tighter on mobile, prioritize body space */
  .autofill-modal { padding: 0; }
  .autofill-modal__inner {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .autofill-modal__head {
    padding: 10px 14px 10px;
    grid-template-columns: 1fr 28px;
    gap: 8px;
    align-items: center;
  }
  .autofill-modal__titleblock { display: flex; flex-direction: column; gap: 4px; }
  .autofill-modal__titleblock h2 { font-size: 1rem; margin: 0; letter-spacing: -.01em; }
  .autofill-eyebrow { padding: 3px 8px; font-size: .6rem; }
  .autofill-modal__titleblock p {
    display: none; /* copy moves into compact sub-bar below */
  }
  .autofill-modal__close { width: 28px; height: 28px; font-size: .8rem; }

  /* Compact single-row stats — horizontal, scrollable if needed */
  .autofill-stats {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    background: #fff;
    padding: 8px 14px;
    border-bottom: 1px solid #f3f4f6;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .autofill-stats::-webkit-scrollbar { display: none; }
  .autofill-stat {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    padding: 4px 10px 4px 0;
    margin-right: 10px;
    border-right: 1px solid #f3f4f6;
    white-space: nowrap;
  }
  .autofill-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
  .autofill-stat strong { font-size: 1rem; line-height: 1; }
  .autofill-stat span { font-size: .68rem; letter-spacing: 0; }

  /* Toolbar — compact row */
  .autofill-toolbar {
    padding: 8px 14px;
    gap: 8px;
  }
  .autofill-select-all { font-size: .72rem; gap: 5px; }
  .autofill-filter-pill { font-size: .68rem; padding: 3px 8px; }

  /* Footer: stack Apply full-width primary, Cancel secondary text link */
  .autofill-modal__foot {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .autofill-foot__stats { text-align: center; font-size: .75rem; }
  .autofill-foot__actions { flex-direction: column-reverse; width: 100%; gap: 6px; }
  .autofill-foot__actions .button { width: 100%; justify-content: center; padding: 12px; }
  .autofill-foot__actions .button--ghost { padding: 8px; }

  /* Parse overlay sits above bottom-nav safe area */
  .autofill-parse__inner { width: calc(100vw - 24px); }

  /* Success banner — tighter copy, stacked check + body, actions inline at end */
  .autofill-banner {
    grid-template-columns: 28px 1fr auto;
    padding: 12px 12px;
    gap: 10px;
  }
  .autofill-banner__check { width: 28px; height: 28px; }
  .autofill-banner__body strong { font-size: .82rem; line-height: 1.35; }
  .autofill-banner__body strong em { font-size: .72rem; padding: 0 6px; max-width: 140px; }
  .autofill-banner__body span { font-size: .72rem; line-height: 1.5; margin-top: 4px; }
  .autofill-banner__actions { grid-column: 1 / -1; justify-content: space-between; margin-top: 4px; }
  .autofill-banner__undo { flex: 1; margin-right: 8px; }
}

/* ── Links section: icon-prefixed inputs ── */
.links-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.link-input {
  display: flex !important;
  align-items: center;
  gap: 0;
  padding-left: 10px;
}
.link-input__icon {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  color: #6b7280;
  flex-shrink: 0;
  margin-right: 6px;
}
.link-input__icon--linkedin { color: #0a66c2; }
.link-input__icon--github { color: #1f2937; }
.link-input__icon--x { color: #111827; }
.link-input__icon--dribbble { color: #ea4c89; }
.link-input__icon--behance { color: #1769ff; }
.link-input input {
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
  flex: 1;
  min-width: 0;
  padding: 8px 10px 8px 0;
}

/* ── GitHub auto-sync field + CTA + connected state ── */
.gh-sync-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(16,185,129,.14);
  color: #047857;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}

.gh-input { display: flex !important; align-items: center; gap: 4px; padding-right: 4px; }
.gh-input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; padding: 8px 10px; }
.gh-input__connect {
  display: inline-flex; align-items: center; gap: 5px;
  background: #111827;
  color: #fff;
  border: 0;
  padding: 5px 10px;
  border-radius: 8px;
  font: inherit; font-size: .68rem; font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, transform .12s;
  flex-shrink: 0;
}
.gh-input__connect:hover { background: #000; transform: translateY(-1px); }
[data-gh-state="on"] .gh-input__connect { display: none; }

/* CTA card */
.gh-cta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 0% 100%, rgba(17,24,39,.04), transparent 60%),
    linear-gradient(180deg, #fafbfb, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.gh-cta::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #111827 0%, #6b7280 60%, transparent);
}
.gh-cta__icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: #111827;
  color: #fff;
  flex-shrink: 0;
}
.gh-cta__body strong { display: block; font-size: .92rem; font-weight: 700; color: #111827; }
.gh-cta__body span { display: block; font-size: .76rem; color: #6b7280; margin-top: 3px; line-height: 1.5; }
.gh-cta__body em { font-style: normal; font-weight: 600; color: #1f2937; }

/* Synced state */
.gh-synced {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(16,185,129,.04), rgba(16,185,129,.01));
  border: 1px solid rgba(5,150,105,.25);
  border-left: 4px solid #047857;
  border-radius: 12px;
  animation: ghFadeIn .3s ease;
}
@keyframes ghFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.gh-synced__avatar {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  background: #111827;
  color: #fff;
  display: grid; place-items: center;
}
.gh-synced__check {
  position: absolute; bottom: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #047857; border: 2.5px solid #fff;
}
.gh-synced__check::after {
  content: ""; position: absolute; top: 3px; left: 5px;
  width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gh-synced__body strong { display: block; font-size: .9rem; font-weight: 700; color: #111827; }
.gh-synced__body strong em { font-style: normal; font-weight: 600; color: #047857; }
.gh-synced__body span { display: block; font-size: .76rem; color: #6b7280; margin-top: 3px; }
.gh-synced__body em { font-style: normal; font-weight: 600; color: #047857; }
.gh-synced__actions { display: flex; gap: 4px; flex-shrink: 0; }
@media (max-width: 640px) {
  .gh-cta, .gh-synced { grid-template-columns: 40px 1fr; }
  .gh-cta > .button, .gh-synced__actions { grid-column: 1 / -1; justify-self: stretch; }
  .gh-synced__actions { display: flex; justify-content: flex-end; }
}

/* ── GitHub Connect modal ── */
.gh-scrim[hidden], .gh-modal[hidden] { display: none !important; }
.gh-scrim {
  position: fixed; inset: 0; z-index: 1700;
  background: rgba(7,32,23,.55);
  backdrop-filter: blur(4px);
  animation: autofillFade .25s ease;
}
.gh-modal {
  position: fixed; inset: 0; z-index: 1800;
  display: grid; place-items: center;
  padding: 4vh 16px;
  pointer-events: none;
}
.gh-modal__inner {
  pointer-events: auto;
  width: min(460px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(15,49,36,.45);
  overflow: hidden;
  animation: autofillRise .3s cubic-bezier(.22,.8,.36,1);
}
.gh-modal__stage[hidden] { display: none; }

.gh-modal__head {
  display: grid; grid-template-columns: 36px 1fr 28px;
  gap: 12px;
  padding: 18px 18px 14px;
  align-items: start;
  border-bottom: 1px solid #f3f4f6;
}
.gh-modal__brand {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #111827;
  color: #fff;
}
.gh-modal__titleblock h2 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #111827; }
.gh-modal__titleblock p { margin: 4px 0 0; font-size: .78rem; color: #4b5563; line-height: 1.5; }
.gh-modal__titleblock p strong { color: #047857; font-weight: 700; }
.gh-modal__close {
  width: 28px; height: 28px; border-radius: 8px;
  border: 0; background: #f3f4f6; color: #6b7280;
  cursor: pointer; font-size: .85rem;
  align-self: start;
}
.gh-modal__close:hover { background: #e5e7eb; }

.gh-perms {
  padding: 14px 18px 10px;
  background: #fafbfb;
  border-bottom: 1px solid #f3f4f6;
}
.gh-perms__title {
  display: block;
  font-size: .65rem; font-weight: 700; color: #6b7280;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.gh-perms ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gh-perms li {
  display: grid; grid-template-columns: 16px 1fr; gap: 8px;
  font-size: .82rem; color: #1f2937;
  align-items: center;
}
.gh-perms li small { color: #6b7280; font-size: .72rem; }
.gh-perms__check {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(16,185,129,.15);
  position: relative;
}
.gh-perms__check::after {
  content: ""; position: absolute; top: 2px; left: 4px;
  width: 4px; height: 7px; border: solid #047857; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gh-perms__neg { color: #6b7280; font-size: .74rem; padding-top: 4px; border-top: 1px dashed #e5e7eb; margin-top: 4px; }
.gh-perms__cross {
  width: 14px; height: 14px; border-radius: 50%;
  background: #f3f4f6;
  position: relative;
}
.gh-perms__cross::after, .gh-perms__cross::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 7px; height: 1.5px; background: #9ca3af;
}
.gh-perms__cross::after { transform: translate(-50%, -50%) rotate(45deg); }
.gh-perms__cross::before { transform: translate(-50%, -50%) rotate(-45deg); }

.gh-handoff {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 18px;
  background: #fff;
  font-size: .78rem; font-weight: 600;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  color: #6b7280;
}
.gh-handoff__from { color: #047857; }
.gh-handoff__to { color: #111827; }
.gh-handoff__arrow { color: #9ca3af; display: grid; place-items: center; }

.gh-modal__foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 18px;
  background: #fafbfb;
  border-top: 1px solid #f3f4f6;
}
.gh-modal__authorize {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.gh-modal__authorize:hover { background: #000; border-color: #000; }

/* Connecting stage */
.gh-connect { padding: 50px 30px 40px; text-align: center; }
.gh-connect strong { display: block; font-size: 1rem; color: #111827; margin: 18px 0 4px; }
.gh-connect span { display: block; font-size: .8rem; color: #6b7280; }
.gh-connect span em { font-style: normal; color: #111827; font-weight: 600; }
.gh-connect__rings {
  width: 60px; height: 60px; margin: 0 auto;
  position: relative;
}
.gh-connect__rings span {
  position: absolute; inset: 0;
  border: 3px solid transparent;
  border-top-color: #047857;
  border-radius: 50%;
  animation: ghSpin 1.2s linear infinite;
}
.gh-connect__rings span:nth-child(2) { inset: 7px; border-top-color: #10b981; animation-duration: 1.4s; animation-direction: reverse; }
.gh-connect__rings span:nth-child(3) { inset: 14px; border-top-color: #6ee7b7; animation-duration: 1.6s; }
@keyframes ghSpin { to { transform: rotate(360deg); } }

/* Success stage */
.gh-success { padding: 40px 30px 30px; text-align: center; }
.gh-success__check {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  position: relative;
  box-shadow: 0 10px 24px -8px rgba(4,120,87,.5);
  animation: ghPop .4s cubic-bezier(.22,1.4,.6,1);
}
@keyframes ghPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.gh-success__check::after {
  content: ""; position: absolute; top: 17px; left: 21px;
  width: 10px; height: 18px;
  border: solid #fff; border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.gh-success strong { display: block; font-size: 1.05rem; font-weight: 700; color: #111827; margin-bottom: 6px; }
.gh-success strong em { font-style: normal; font-weight: 700; color: #047857; }
.gh-success span { display: block; font-size: .82rem; color: #4b5563; line-height: 1.55; margin-bottom: 18px; }
.gh-success span strong { display: inline; font-size: .82rem; color: #047857; font-weight: 700; }
.gh-success .button { width: 100%; }

/* ── Roles picker (one coherent emerald language, search, animated swaps) ── */
.role-picker { display: flex; flex-direction: column; gap: 10px; }

/* Active zone: soft emerald tray that holds up to 5 filled pills. */
.role-picker__active {
  display: flex; flex-wrap: wrap; gap: 6px;
  min-height: 54px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(16,185,129,.04), rgba(16,185,129,.01));
  border: 1.5px dashed rgba(5,150,105,.25);
  border-radius: 12px;
  align-content: flex-start;
}
.role-picker__active:empty {
  justify-content: center; align-items: center;
  color: #6b7280; font-size: .78rem; font-style: italic;
}
.role-picker__active:empty::before {
  content: "Pick up to 5 roles from the list below ↓";
}

/* One pill shape for everything. Active pills are filled emerald + have an ×;
   popular pills are outlined neutral and turn emerald on hover. */
.role-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  font: inherit; font-size: .78rem; font-weight: 600; color: #374151;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, color .15s, transform .12s, background .15s;
  animation: roleChipIn .36s cubic-bezier(.22,1.6,.4,1);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.role-chip:hover {
  border-color: #10b981; color: #047857;
  background: rgba(16,185,129,.05);
  transform: translateY(-1px);
}
.role-chip--active {
  background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(16,185,129,.04));
  border-color: #047857;
  color: #047857;
  padding-right: 6px;
}
.role-chip--active:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(16,185,129,.06)); }
.role-chip__remove {
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 99px;
  color: rgba(4,120,87,.55);
  font-size: .95rem; line-height: 1;
  transition: color .12s, background .12s;
}
.role-chip--active:hover .role-chip__remove {
  color: #dc2626; background: rgba(220,38,38,.1);
}
.role-chip--custom {
  background: #fff;
  border: 1px dashed rgba(5,150,105,.5);
  color: #047857;
}
.role-chip--custom::before {
  content: "+ "; font-weight: 700;
}
.role-chip.is-removing { animation: roleChipOut .22s ease forwards; }
@keyframes roleChipIn {
  0%   { opacity: 0; transform: scale(.85) translateY(4px); }
  55%  { opacity: 1; transform: scale(1.04) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes roleChipOut {
  to { opacity: 0; transform: scale(.85) translateY(-4px); }
}

.role-picker__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .72rem; color: #6b7280;
  padding: 0 4px;
}
.role-picker__count strong {
  color: #047857; font-weight: 700; font-variant-numeric: tabular-nums;
}
.role-picker.is-full .role-picker__count strong { color: #b45309; }

/* Search row — sits above the popular pool, matches the surface-input look. */
.role-picker__search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.role-picker__search:focus-within {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}
.role-picker__search > svg { color: #9ca3af; flex-shrink: 0; }
.role-picker__search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: .85rem; color: #111827;
  padding: 4px 0;
}
.role-picker__search input::placeholder { color: #9ca3af; }
.role-picker__search-clear {
  background: transparent; border: 0;
  color: #9ca3af; cursor: pointer;
  padding: 2px 6px; border-radius: 4px;
  font-size: .85rem; font-weight: 600;
  transition: background .12s, color .12s;
}
.role-picker__search-clear:hover { color: #111827; background: #f3f4f6; }
.role-picker__search-clear[hidden] { display: none; }

.role-picker__popular {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px;
  background: #fafbfb;
  border: 1px solid #eef1f0;
  border-radius: 12px;
  min-height: 54px;
  align-content: flex-start;
}
.role-picker__popular-empty {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  font-size: .76rem; color: #6b7280; font-style: italic;
  padding: 6px 0;
}

.role-picker.is-full .role-chip:not(.role-chip--active) {
  opacity: .4; cursor: not-allowed; pointer-events: none;
}
.role-picker.is-full .role-picker__popular::after {
  content: "Max 5 reached — remove one above to swap";
  width: 100%;
  text-align: center;
  font-size: .72rem; color: #b45309; font-weight: 600;
  padding: 6px 0 2px;
}

/* ── Entry description (Experience/Education/Certification/Assessment) ── */
.profile-form__entry-desc {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  color: #4b5563;
  line-height: 1.5;
  max-width: 60ch;
}
/* Subtle left accent so descriptions read as a quote of the user's voice */
.profile-form__entry-info .profile-form__entry-desc {
  padding-left: 10px;
  border-left: 2px solid rgba(5,150,105,.25);
}

/* ── Portfolio drop hint pulse ── */
[data-portfolio-entry].is-uploaded { animation: portfolioPulse .6s ease; }
@keyframes portfolioPulse {
  0% { box-shadow: 0 0 0 0 rgba(5,150,105,.5); }
  100% { box-shadow: 0 0 0 12px rgba(5,150,105,0); }
}
