/* ============================================================
   REHYRD design language — "second sunrise"
   Warm paper, deep charcoal ink, sunrise-orange primary.
   Deliberately NOT HYRD's dark-navy/electric-blue.
   Mobile-first. Big tap targets. Low-bandwidth (no webfonts).
   ============================================================ */
:root {
  --paper: #faf6ef;
  --paper-deep: #f3ecdf;
  --card: #fffdf9;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --muted: #78716c;
  --line: #e7ded0;
  --accent: #c2410c;
  --accent-deep: #9a3412;
  --accent-soft: #ffedd5;
  --sunrise: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #c2410c 100%);
  --teal: #0f766e;
  --teal-deep: #115e59;
  --teal-soft: #ccfbf1;
  --gold: #b45309;
  --gold-soft: #fef3c7;
  --danger: #b91c1c;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(28, 25, 23, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 18px; }
.wrap.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); }
.center { text-align: center; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-weight: 700; border-radius: 12px; padding: 12px 22px; font-size: 1rem;
  transition: transform .06s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sunrise); color: #fff; box-shadow: 0 4px 14px rgba(194, 65, 12, .35); }
.btn-lg { width: 100%; padding: 15px; font-size: 1.08rem; margin-top: 6px; }
.btn-outline { background: transparent; color: var(--accent-deep); border: 2px solid var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; font-size: .9rem; }
.btn-sm { padding: 9px 14px; font-size: .9rem; }
.pill { background: var(--accent-soft); color: var(--accent-deep); border-radius: 999px; padding: 1px 8px; font-size: .78rem; font-weight: 800; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-flex; }
.brand-name { font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; }
.brand-tag { font-size: .85rem; color: var(--accent-deep); font-weight: 700; font-style: italic; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 8px; }
.topnav a:hover { background: var(--paper-deep); }
@media (max-width: 640px) { .topnav a { display: none; } .brand-tag { display: none; } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #fff7ed 0%, var(--paper) 100%); padding: 44px 0 30px; border-bottom: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: var(--accent-deep); margin: 0 0 10px; }
.hero h1 { font-size: clamp(1.7rem, 5.4vw, 2.7rem); line-height: 1.16; letter-spacing: -.02em; margin: 0 0 12px; }
.lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 640px; margin: 0 0 22px; }

.search-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); max-width: 680px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font-size: 1rem; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lead-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.lead-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-check { display: flex; align-items: flex-end; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; padding: 10px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }

.fairchance-switch { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; max-width: 680px; }
.seg {
  flex: 1 1 auto; padding: 11px 12px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); font-weight: 700; font-size: .88rem; color: var(--ink-soft); cursor: pointer;
}
.seg.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- honesty bar ---------- */
.honesty-bar { background: var(--ink); color: #f5f0e8; }
.honesty-bar .wrap { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.honesty-bar p { margin: 0; font-size: .9rem; }
.honesty-bar strong { color: #fdba74; }

/* ---------- results ---------- */
.results { padding: 30px 18px 40px; }
.results-head h2 { margin: 0 0 4px; font-size: 1.5rem; letter-spacing: -.01em; }
.job-list { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 720px) { .job-list { grid-template-columns: 1fr 1fr; } }

.job-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.job-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.job-title { margin: 0 0 4px; font-size: 1.08rem; line-height: 1.3; }
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a:hover { color: var(--accent-deep); text-decoration: underline; }
.job-company { font-weight: 700; color: var(--accent-deep); font-size: .95rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--ink-soft); margin-top: 6px; }
.job-salary { font-weight: 800; color: var(--teal-deep); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-verified { background: var(--teal-soft); color: var(--teal-deep); border: 1px solid #99f6e4; }
.badge-signal { background: var(--gold-soft); color: #92400e; border: 1px solid #fde68a; }
.badge-remote { background: var(--paper-deep); color: var(--ink-soft); border: 1px solid var(--line); }
.badge-new { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid #fed7aa; }
.badge-unverified { background: var(--paper-deep); color: var(--ink-soft); border: 1px dashed var(--line); }
.badge-dist { background: var(--paper-deep); color: var(--ink-soft); border: 1px solid var(--line); }

.match-wrap { text-align: center; min-width: 64px; }
.match-pct { font-size: 1.35rem; font-weight: 900; color: var(--accent-deep); }
.match-lbl { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.why-fits { font-size: .88rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; }
.why-fits summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); }
.why-fits ul { margin: 8px 0 4px; padding-left: 18px; color: var(--ink-soft); }
.why-fits li { margin-bottom: 3px; }

.fc-note { font-size: .82rem; background: var(--teal-soft); border-radius: 10px; padding: 8px 12px; color: var(--teal-deep); }
.fc-note.signal { background: var(--gold-soft); color: #92400e; }
.fc-note a { color: inherit; font-weight: 700; }

.job-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: .88rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.icon-btn.saved { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }

.empty-state { text-align: center; padding: 46px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }
.empty-emoji { font-size: 2.6rem; }
.empty-state h3 { margin: 10px 0 6px; }
.empty-state p { color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

.skel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.skel-line { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--paper-deep), var(--line), var(--paper-deep)); margin-bottom: 10px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- bands / cards ---------- */
.band { background: var(--ink); color: #f5f0e8; padding: 48px 0; }
.band .kicker { color: #fdba74; }
.band h2 { margin: 0 0 20px; font-size: 1.6rem; letter-spacing: -.01em; }
.band-alt { background: var(--paper-deep); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-alt .kicker { color: var(--accent-deep); }
/* Rights tab — state selector + state card (reuses .field select styling) */
.rights-state-field { max-width: 340px; margin-bottom: 16px; }
.rights-state-heading { margin: 24px 0 10px; }
.state-card { border-color: var(--accent); box-shadow: var(--shadow); }
.state-ban { background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; font-size: .92rem; }

.cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.employers .cards { grid-template-columns: 1fr; }
@media (min-width: 720px) { .employers .cards { grid-template-columns: 1fr 1fr; } }
.card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px; }
.band-alt .card, .employers .card { background: var(--card); border: 1px solid var(--line); }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0 0 10px; color: inherit; opacity: .92; font-size: .94rem; }
.card a { color: #fdba74; font-weight: 700; }
.band-alt .card a, .employers .card a { color: var(--accent-deep); }

.employers { padding: 48px 18px; }
.employers h2 { margin: 0 0 10px; font-size: 1.6rem; }

.rules { padding-left: 22px; display: grid; gap: 14px; font-size: 1rem; }
.rules li::marker { color: var(--accent-deep); font-weight: 900; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 60px; background: var(--paper); }
.footer p { margin: 0 0 10px; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(28, 25, 23, .55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
/* display:flex above would override the `hidden` attribute (which only maps
   to display:none in the UA stylesheet) — without this the "closed" modal
   stays rendered as a white pill over the page and swallows all clicks. */
.modal-backdrop[hidden] { display: none !important; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; padding: 24px; } }
.modal { background: var(--card); width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 22px 20px 30px; position: relative; }
@media (min-width: 640px) { .modal { border-radius: 20px; } }
.modal-x { position: absolute; top: 12px; right: 12px; border: none; background: var(--paper-deep); width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; color: var(--ink); }
.modal h2 { margin: 0 0 6px; padding-right: 40px; }
.modal .job-meta { margin: 8px 0; }
.modal-desc { font-size: .94rem; color: var(--ink-soft); white-space: pre-wrap; margin: 14px 0; max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 14px; }

/* ============================================================
   REHYRD — screen additions (tab bar, builder, coach, library,
   alerts, account, print). Extends the "second sunrise" base.
   ============================================================ */
.pad-top { padding-top: 26px; padding-bottom: 90px; }
.lede-sm { color: var(--ink-soft); max-width: 640px; }
.mt { margin-top: 28px; }

/* ---------- offline banner ---------- */
.offline-banner { background: #7c2d12; color: #fff7ed; text-align: center; font-size: .85rem; font-weight: 700; padding: 8px 14px; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: rgba(250, 246, 239, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab { flex: 1; border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; color: var(--ink-soft); }
.tab-icon { font-size: 1.35rem; line-height: 1; }
.tab-label { font-size: .68rem; font-weight: 700; }
.tab.active { color: var(--accent-deep); background: var(--accent-soft); }
body { padding-bottom: 0; }
.footer { padding-bottom: 120px; }

/* ---------- subnav / chips ---------- */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .88rem; font-weight: 600; }
.chip-btn { cursor: pointer; background: var(--card); }
.chip-btn.on, .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.chip-x { border: none; background: none; cursor: pointer; color: inherit; font-size: .8rem; padding: 0 2px; }

/* ---------- builder ---------- */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.step { font-size: .76rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--paper-deep); color: var(--muted); border: 1px solid var(--line); }
.step.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.step.done { background: var(--teal-soft); color: var(--teal-deep); border-color: #99f6e4; }
.builder-body { margin: 14px 0; }
.builder-nav { margin-bottom: 90px; }
.exp-entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: grid; gap: 8px; }
.exp-cat { font-weight: 800; color: var(--accent-deep); font-size: .9rem; }
.exp-entry textarea { width: 100%; padding: 11px 12px; font-size: .95rem; border: 2px solid var(--line); border-radius: 10px; font-family: inherit; resize: vertical; }
.exp-entry textarea:focus { outline: none; border-color: var(--accent); }
.suggestion { background: var(--teal-soft); border: 1px dashed var(--teal); border-radius: 10px; padding: 10px 12px; }
.sug-text { font-style: italic; color: var(--teal-deep); margin-bottom: 8px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; cursor: pointer; }
.radio-card.on { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { width: 22px; height: 22px; accent-color: var(--accent); margin-top: 2px; }
.field-row2 { display: flex; gap: 10px; margin-top: 10px; }
.field-row2 .field { flex: 1; margin-bottom: 0; }
.hard-rule { background: var(--ink); color: #f5f0e8; border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: .92rem; margin: 14px 0; }
.danger { color: var(--danger); border-color: #fecaca; }

/* ---------- documents / print ---------- */
.doc-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); margin: 10px 0 18px; }
.resume-head h3 { margin: 0 0 4px; font-size: 1.4rem; }
.resume-head .muted { margin: 0 0 12px; }
.doc-preview h4, .print-doc h4 { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent-deep); border-bottom: 2px solid var(--accent-soft); padding-bottom: 4px; margin: 18px 0 8px; }
.resume-list { margin: 6px 0 10px; padding-left: 20px; }
.resume-list li { margin-bottom: 6px; }
.resume-gap { font-style: italic; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 10px; }
mark { background: #fef08a; padding: 0 2px; border-radius: 3px; }
.cover-letter p { margin: 0 0 12px; }
#print-area { display: none; }
body.printing > *:not(#print-area) { display: none !important; }
body.printing #print-area { display: block; }
.print-doc { font-family: Georgia, "Times New Roman", serif; color: #111; padding: 24px; max-width: 720px; margin: 0 auto; }
.print-doc .print-title { font-size: 1.1rem; color: #666; border-bottom: 1px solid #ccc; padding-bottom: 8px; }
@media print {
  body.printing { background: #fff; }
  body.printing #print-area { display: block; }
}

/* ---------- modal: transparency card ---------- */
.transparency-card { background: var(--paper); border: 2px solid var(--teal); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.transparency-card h4 { margin: 0 0 10px; color: var(--teal-deep); }
.tr-row { margin-bottom: 10px; }
.tr-label { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-deep); margin-bottom: 2px; }
.tr-val { color: var(--ink-soft); font-size: .94rem; }
.tr-body { color: var(--ink-soft); font-size: .94rem; }
.before-apply { margin: 14px 0; }
.badge-row { margin: 10px 0; }
.fc-signals { margin: 6px 0 2px; padding-left: 18px; }

/* ---------- coach ---------- */
.practice-card h3 { user-select: none; }
.checklist { display: grid; gap: 8px; margin: 12px 0; }
.practice-inner { margin-top: 10px; }

/* ---------- library ---------- */
.rich p { margin: 0 0 10px; font-size: .94rem; }
.rich ul { margin: 0 0 10px; padding-left: 20px; font-size: .94rem; }
.rich a { color: var(--accent-deep); font-weight: 700; }
.intro { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 16px; max-width: 680px; }
ol.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: step; }
ol.steps .card { position: relative; padding-left: 64px; }
.step-num { position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--sunrise); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.cert-meta { margin: 8px 0; }
.cert-facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); margin-bottom: 8px; }
.script-text { font-size: 1.02rem; font-style: italic; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 12px; }

/* ---------- alerts / account ---------- */
.anon-note { background: var(--gold-soft); border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; color: #92400e; font-size: .94rem; }
.alert-card h3 { margin: 0 0 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; text-align: center; }
.stat-num { font-size: 1.7rem; font-weight: 900; color: var(--accent-deep); }
.stat-lbl { font-size: .78rem; color: var(--muted); font-weight: 700; }
.trend-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; padding: 4px 0; }
.trend-bar { height: 10px; background: var(--sunrise); border-radius: 5px; min-width: 4px; }
.wotc-card { margin: 26px 0; border-color: #fde68a; background: var(--gold-soft); }
.wotc-card h3, .wotc-card p { color: #92400e; }

/* ---------- brand ---------- */
.brand-logo { border-radius: 9px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
#lang-toggle { font-weight: 800; min-width: 44px; }

/* desktop: tab bar becomes a top row under header */
@media (min-width: 760px) {
  .tabbar { position: static; border-top: none; border-bottom: 1px solid var(--line); justify-content: center; padding: 6px; }
  .tab { flex: 0 1 auto; min-width: 110px; }
  .footer { padding-bottom: 40px; }
  .pad-top { padding-bottom: 40px; }
  .builder-nav { margin-bottom: 20px; }
}

/* ---------- résumé upload ---------- */
.upload-card { background: var(--accent-soft, #eef4ff); border: 2px dashed var(--accent, #2563eb); border-radius: var(--radius, 12px); padding: 16px; margin-bottom: 16px; }
.upload-card .btn { margin-top: 8px; }
.upload-card .ok-line { color: #1a7f37; font-weight: 600; margin: 8px 0 0; }
#b-upload-review { margin-bottom: 16px; }
#b-upload-text { width: 100%; box-sizing: border-box; font-family: inherit; }

/* Phase 2 Feature 2 — verification card + report form */
.verify-card { background: var(--teal-soft); border: 1px solid var(--teal); }
.v-title { color: var(--teal-deep); font-weight: 800; letter-spacing: .02em; margin-bottom: .35rem; }
.v-why { margin: .4rem 0; }
.v-meta { color: var(--ink-soft); font-size: .9em; margin: .15rem 0; }
.v-stale { color: var(--gold); font-weight: 700; margin: .4rem 0; }
#v-report-form { margin-top: .6rem; display: grid; gap: .5rem; }
#v-report-form[hidden] { display: none; }
#v-report-form textarea { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; font: inherit; background: var(--card); }
.v-report-row { align-items: flex-start; }
.v-report-text { margin-top: .25rem; }
.v-report-actions { display: flex; gap: .4rem; margin-top: .35rem; }

/* Phase 2 Feature 3 — résumé match explainer */
.matchx-card { margin-top: 1rem; }
.matchx-card h4 { margin: .8rem 0 .4rem; }
.miss-item { display: flex; align-items: center; gap: .4rem; }
.fix-link { cursor: pointer; }
.gap-banner { background: var(--accent-soft, #eef4ff); border: 1px solid var(--accent, #2563eb); border-radius: var(--radius, 12px); padding: 12px 14px; margin: 10px 0; }
.gap-banner .chip-row { margin-top: 8px; }
.gap-banner .fine { margin: 8px 0 0; }

/* Phase 2 Feature 6 — certification funding snippet */
.funding-box { margin-top: .6rem; padding: .6rem .8rem; border: 1px dashed var(--gold, #b8860b); border-radius: var(--radius, 12px); }
.funding-box h4 { margin: 0 0 .3rem; }

/* ============ Home dashboard (layout refresh) ============ */
.home-hello { margin: 0 0 14px; }
.home-roadmap-card { background: #1c1a17; color: #fff; border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.home-rc-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: #d8d4c9; }
.home-rc-big { font-size: 19px; font-weight: 800; margin: 4px 0 10px; }
.home-rc-body { color: #d8d4c9; font-size: 13.5px; margin: 4px 0 10px; }
.home-bar { height: 8px; background: #3a362f; border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.home-bar i { display: block; height: 100%; background: #f59e0b; border-radius: 99px; transition: width .4s; }
.home-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.home-tile { background: var(--card, #fff); border: 1px solid var(--line, #e5e1d6); border-radius: 14px; padding: 14px 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.home-tile:active { transform: scale(.98); }
.home-tile-icon { font-size: 24px; }
.home-tile-title { font-weight: 700; font-size: 14px; margin-top: 6px; }
.home-tile-sub { color: var(--ink-soft, #7a7468); font-size: 12px; }
.home-sec { margin: 0 0 10px; }
.home-fresh { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.home-job { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card, #fff); border: 1px solid var(--line, #e5e1d6); border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; color: inherit; text-align: left; width: 100%; }
.home-job-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-job-title { font-weight: 700; font-size: 14px; }
.home-job-co { color: var(--ink-soft, #7a7468); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.home-job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.home-job-pay { font-weight: 700; font-size: 13px; }
.home-empty { border: 1px dashed var(--line, #e5e1d6); border-radius: 14px; padding: 18px; text-align: center; color: var(--ink-soft, #7a7468); }
.home-empty p { margin: 0 0 10px; }
@media (min-width: 700px) { .home-tiles { grid-template-columns: repeat(3, 1fr); } }

/* Applied tab — follow-up tracker */
.fu-box { border-top: 1px dashed var(--line, #e5e1d6); margin-top: 10px; padding-top: 10px; }
.fu-chip { display: inline-block; font-size: .78rem; font-weight: 700; background: #eef2f7; color: #47617f; border-radius: 20px; padding: 3px 10px; }
.fu-chip.fu-done { background: #e6f4ea; color: #137333; }
.fu-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.fu-contact { display: block; margin-top: 4px; max-width: 320px; width: 100%; padding: 8px 10px; border: 1px solid var(--line, #e5e1d6); border-radius: 10px; font: inherit; }
.fu-email { margin-top: 10px; }
.fu-subject { font-size: .88rem; margin-bottom: 6px; }
.fu-body { width: 100%; font-size: .85rem; line-height: 1.45; padding: 10px; border: 1px solid var(--line, #e5e1d6); border-radius: 10px; font: inherit; }
