/* HYRD — premium job-board theme. 8px spacing rhythm, refined type scale. */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel2: #eef4fc;
  --navy: #060b18;
  --blue: #1e90ff;
  --blue-dark: #0b63d8;
  --blue-deep: #084a9e;
  --blue-soft: #e2f0ff;
  --text: #0e1a2b;
  --text2: #33475f;
  --muted: #5c6d84;
  --faint: #8b9bb1;
  --border: #e2e8f2;
  --gold: #b7791f;
  --gold-bg: #fdf3dd;
  --green: #15803d;
  --green-bg: #e6f9ee;
  --red: #c03636;
  --red-bg: #fdecec;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 10px rgba(16, 24, 40, .06);
  --shadow-lg: 0 8px 28px rgba(16, 24, 40, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.screen { min-height: 100vh; padding: 16px; max-width: 1080px; margin: 0 auto; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: .5em 0; }
h2 { font-size: 1.3rem; font-weight: 750; letter-spacing: -.01em; margin: 1.75em 0 .5em; color: var(--text); }
h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .5em; color: var(--text); }
p { line-height: 1.6; color: var(--text2); }
.muted { color: var(--muted); font-size: .88rem; }
.error { color: var(--red); margin: .5em 0; font-size: .9rem; font-weight: 600; }

.config-warning {
  background: #fff8e1; color: #8a6d00; padding: 10px 14px;
  font-size: .85rem; text-align: center; border-bottom: 1px solid #f0e2a8;
}
.config-warning code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* ---------- Brand badge: the dark logo always sits on its home turf ---------- */
.brand-badge {
  background: var(--navy); border-radius: 20px; padding: 12px;
  display: inline-block; line-height: 0; box-shadow: var(--shadow);
}
.brand-badge-sm {
  background: var(--navy); border-radius: 10px; padding: 4px;
  display: inline-flex; line-height: 0; flex: none;
}
.auth-logo { width: 76px; border-radius: 12px; display: block; }
.header-logo { width: 32px; height: 32px; border-radius: 7px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  border: none; border-radius: 12px; padding: 12px 20px;
  font-size: .98rem; font-weight: 700; cursor: pointer;
  background: var(--panel2); color: var(--text);
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; display: inline-block; text-align: center;
  font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; box-shadow: 0 4px 14px rgba(30, 144, 255, .35);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(30, 144, 255, .45); }
.btn-outline-blue { background: #fff; border: 1.5px solid var(--blue); color: var(--blue-dark); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-danger-text { color: #e5484d; }
.btn-danger { background: #e5484d; border: 1px solid #e5484d; color: #fff; }
.btn-danger:disabled { background: #f3c1c3; border-color: #f3c1c3; cursor: not-allowed; }
.btn-lg { font-size: 1.08rem; padding: 15px 30px; border-radius: 14px; }
.btn-sm { font-size: .86rem; padding: 9px 14px; border-radius: 10px; }
.btn-block { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }

/* ---------- Inputs ---------- */
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  font-family: inherit;
}
input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 1rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); border-color: var(--blue); outline-offset: 0; }
textarea { resize: vertical; line-height: 1.5; }
form label { display: block; text-align: left; margin: 12px 0; font-size: .88rem; color: var(--muted); font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--muted); font-weight: 600; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.input-select {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: .9rem; font-weight: 600;
  max-width: 100%;
}

/* ============ LANDING ============ */
.landing-wrap { text-align: center; padding: 32px 8px 64px; max-width: 960px; margin: 0 auto; }
.hero-title { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 24px 0 8px; }
.hero-accent { color: var(--blue-dark); }
.hero-sub { font-size: 1.12rem; max-width: 640px; margin: 0 auto 24px; color: var(--text2); }
.hero-search {
  display: flex; gap: 0; max-width: 680px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; padding: 6px;
}
.hero-search input {
  border: none; margin: 0; border-radius: 0; padding: 14px 16px; font-size: 1rem;
  background: transparent;
}
.hero-search input + input { border-left: 1px solid var(--border); }
.hero-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); border-radius: 10px; }
.hero-search .btn { border-radius: 12px; white-space: nowrap; margin-left: 6px; }
.hero-micro { font-size: .85rem; color: var(--muted); margin-top: 12px; }

.gem-strip {
  max-width: 680px; margin: 32px auto 0; text-align: left;
  background: linear-gradient(135deg, #fffdf4, #fff8e6);
  border: 1px solid #f0dfae; border-radius: var(--radius);
  padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start;
}
.gem-strip p { margin: 4px 0 0; font-size: .94rem; }
.gem-tag {
  display: inline-block; font-size: .78rem; font-weight: 800; white-space: nowrap;
  background: var(--gold-bg); color: var(--gold);
  border: 1px solid #eed9a8; padding: 4px 12px; border-radius: 20px;
}
.gem-tag-sm { font-size: .72rem; padding: 2px 10px; }

.how-it-works { margin-top: 56px; }
.how-it-works h2, .stories h2 { font-size: 1.6rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; text-align: left; }
.step-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: 1.05rem;
}
.step-card p { font-size: .92rem; margin: 6px 0 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; text-align: left; }
.feature-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature-card p { font-size: .92rem; margin: 6px 0 0; }

.stories { margin-top: 56px; }
.stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; text-align: left; }
.story-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.story-card .story-quote { font-size: 1rem; font-style: italic; color: var(--text); margin: 0 0 12px; }
.story-card .story-who { font-size: .88rem; color: var(--muted); font-weight: 600; }
.story-card .story-role { font-size: .85rem; color: var(--blue-dark); font-weight: 700; }

.cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.closing { font-weight: 800; font-size: 1.1rem; color: var(--blue-dark); margin-top: 24px; }

/* ============ AUTH ============ */
.auth-wrap {
  max-width: 440px; margin: 32px auto; text-align: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow);
}
.auth-tabs { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.auth-tab { background: none; border: none; color: var(--muted); font-size: 1rem; padding: 8px 16px; cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; }
.auth-tab.active { color: var(--text); border-bottom-color: var(--blue); font-weight: 700; }

/* ============ APP SHELL ============ */
#screen-app { max-width: 1080px; }
.app-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px; margin: 0 -4px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); z-index: 20;
}
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: none; color: var(--muted); font-size: .94rem;
  padding: 10px 14px; cursor: pointer; white-space: nowrap; border-radius: 10px;
  font-weight: 650; font-family: inherit;
}
.tab.active { color: var(--blue-deep); background: var(--blue-soft); }
.tab:hover:not(.active) { background: var(--panel2); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-top: 16px;
  box-shadow: var(--shadow);
}
.stat-card p { min-height: 2.4em; }
.resume-preview {
  background: #f6f9fd; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; max-height: 320px; overflow: auto; white-space: pre-wrap;
  font-size: .82rem; line-height: 1.55; color: var(--text);
}
.markdown p { margin: .6em 0; }
.markdown ul { padding-left: 1.2em; }
.markdown li { margin: .3em 0; }
.markdown h2, .markdown h3 { margin-top: 1em; }

/* ============ JOBS — the heart ============ */
.jobs-toolbar {
  background: rgba(243, 246, 251, .97);
  padding: 12px 0 4px; margin: 0 -4px; padding-left: 4px; padding-right: 4px;
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.jobs-searchbar {
  display: flex; gap: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; padding: 5px;
}
.search-field { display: flex; align-items: center; flex: 1.4; min-width: 0; }
.search-field.search-loc { flex: 1; border-left: 1px solid var(--border); }
.search-icon { padding-left: 12px; font-size: .95rem; color: var(--faint); }
.search-field input {
  border: none; margin: 0; background: transparent; padding: 12px 10px;
  border-radius: 0; font-size: .98rem;
}
.search-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); border-radius: 8px; }
.search-field.search-state { flex: 0 1 auto; border-left: 1px solid var(--border); }
.search-field select {
  border: none; margin: 0; background: transparent; padding: 12px 10px;
  font-size: .98rem; font-family: inherit; color: inherit; max-width: 180px;
  cursor: pointer;
}
.search-field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); border-radius: 8px; }
.jobs-searchbar .btn { border-radius: 10px; white-space: nowrap; margin-left: 5px; padding: 12px 22px; }

.mode-tabs {
  display: inline-flex; background: #e8eef7; border-radius: 12px; padding: 4px;
  margin-top: 12px; gap: 4px;
}
.mode-tab {
  border: none; background: transparent; color: var(--muted);
  font-size: .9rem; font-weight: 700; padding: 9px 18px; border-radius: 9px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.mode-tab.active { background: #fff; color: var(--blue-deep); box-shadow: var(--shadow); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.chip {
  border: 1px solid var(--border); background: #fff; color: var(--text2);
  font-size: .85rem; font-weight: 650; padding: 8px 14px; border-radius: 20px;
  cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.chip[aria-pressed="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.chip-select {
  border: 1px solid var(--border); background: #fff; color: var(--text2);
  font-size: .85rem; font-weight: 650; padding: 8px 10px; border-radius: 20px;
  cursor: pointer; font-family: inherit; appearance: none; -webkit-appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235c6d84' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.gem-note { font-size: .82rem; color: var(--muted); margin: 10px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.kw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; align-items: center; }
.kw-chips::before { content: "Matching on:"; font-size: .8rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.kw-chip {
  background: var(--blue-soft); color: var(--blue-deep);
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.jobs-count { margin: 12px 0 0; font-weight: 600; }
/* Nearby/Remote result groups (location searches) */
.group-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.group-header { font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; margin: 20px 0 6px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.group-header .group-count { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--panel2); border: 1px solid var(--border); padding: 2px 10px; border-radius: 12px; }

/* ---------- ZIP radius row ---------- */
.radius-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.radius-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.radius-pill.active { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.badge-dist { background: var(--blue-soft); color: var(--blue-deep); font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; white-space: nowrap; }

/* ---------- Job cards: dense, scannable, premium ---------- */
.job-list { display: grid; gap: 12px; margin-top: 12px; }
.job-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  position: relative; transition: box-shadow .15s ease, transform .15s ease;
}
.job-card:hover { box-shadow: var(--shadow-lg); }
.job-card-top { display: flex; gap: 10px; align-items: flex-start; }
.job-card-main { flex: 1; min-width: 0; }
.job-title {
  margin: 0 0 2px; font-size: 1.08rem; font-weight: 750; letter-spacing: -.01em;
  color: var(--blue-deep); line-height: 1.35;
}
.job-title a { color: inherit; text-decoration: none; }
.job-title a:hover { text-decoration: underline; }
.job-company { font-size: .92rem; font-weight: 650; color: var(--text); }
.job-meta { color: var(--muted); font-size: .85rem; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.job-salary { color: var(--green); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.badge-remote {
  display: inline-block; font-size: .74rem; font-weight: 750;
  background: var(--green-bg); color: var(--green);
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.badge-posted { font-size: .8rem; color: var(--faint); white-space: nowrap; }
.badge-new {
  display: inline-block; font-size: .72rem; font-weight: 800;
  background: #fff7e6; color: #b45309; border: 1px solid #fcd34d;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}

.match-badge {
  flex: none; text-align: center; min-width: 64px;
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 10px;
}
.match-badge .pct { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.match-badge .lbl { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.match-high .pct { color: var(--green); }
.match-mid .pct { color: var(--gold); }
.match-low .pct { color: var(--muted); }
.match-high { border-color: #bfe6cd; background: var(--green-bg); }
.match-mid { border-color: #eed9a8; background: var(--gold-bg); }

.why-fits { margin-top: 10px; font-size: .88rem; }
.why-fits summary {
  cursor: pointer; color: var(--blue-dark); font-weight: 700; font-size: .88rem;
  list-style: none; display: inline-flex; align-items: center; gap: 4px;
}
.why-fits summary::-webkit-details-marker { display: none; }
.why-fits summary::before { content: "▸"; font-size: .8rem; transition: transform .15s; }
.why-fits[open] summary::before { transform: rotate(90deg); }
.why-fits ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--text2); }
.why-fits li { margin: .3em 0; }
.why-fits li::marker { color: var(--blue); }

.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.job-actions .spacer { flex: 1; }
.icon-btn {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  font-size: .82rem; font-weight: 650; padding: 8px 12px; border-radius: 10px;
  cursor: pointer; font-family: inherit;
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.icon-btn.saved { border-color: var(--green); color: var(--green); background: var(--green-bg); }

.job-desc {
  font-size: .88rem; color: var(--text2); max-height: 180px; overflow: auto;
  background: #f6f9fd; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; white-space: pre-wrap; margin-top: 12px; line-height: 1.55;
}

/* ---------- Skeleton loading ---------- */
.skel {
  border-radius: var(--radius); padding: 18px;
  background: var(--panel); border: 1px solid var(--border);
}
.skel-line {
  height: 14px; border-radius: 7px; margin: 10px 0;
  background: linear-gradient(90deg, #e8eef7 25%, #f4f8fd 50%, #e8eef7 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state {
  text-align: center; padding: 40px 20px;
  background: var(--panel); border: 1px dashed var(--border);
  border-radius: var(--radius); margin-top: 12px;
}
.empty-state .empty-emoji { font-size: 2.4rem; }
.empty-state h3 { margin: 12px 0 6px; }
.empty-state p { max-width: 420px; margin: 0 auto 16px; }

.apply-note {
  background: var(--blue-soft); color: var(--blue-deep);
  border-radius: 12px; padding: 12px 16px; font-size: .88rem; margin-top: 16px;
  border: 1px solid #c9e2ff;
}

/* ---------- Pipeline Kanban ---------- */
.pipeline {
  display: grid; grid-auto-flow: column; grid-auto-columns: 262px;
  gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-top: 12px;
  scroll-snap-type: x proximity;
}
.pipe-col {
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px; scroll-snap-align: start;
  min-height: 140px;
}
.pipe-col h4 {
  margin: 2px 2px 10px; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
  display: flex; align-items: center; gap: 6px; font-weight: 750;
}
.pipe-count {
  background: #fff; border: 1px solid var(--border); color: var(--muted);
  border-radius: 12px; padding: 1px 9px; font-size: .75rem; font-weight: 700;
}
.pipe-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.pipe-card h5 { margin: 0 0 4px; font-size: .92rem; color: var(--text); font-weight: 700; }
.pipe-meta { color: var(--muted); font-size: .78rem; margin-bottom: 8px; }
.pipe-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.status-pill {
  display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.st-saved { background: #e8eef7; color: #47617f; }
.st-applied { background: var(--blue-soft); color: var(--blue-deep); }
.st-interviewing { background: var(--gold-bg); color: var(--gold); }
.st-offer { background: var(--green-bg); color: var(--green); }
.st-hired { background: linear-gradient(135deg, #e6f9ee, #fdf3dd); color: #0d6b34; border: 1px solid #bfe6cd; }
.st-rejected { background: var(--red-bg); color: var(--red); }

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

/* ---------- Builder ---------- */
.builder-wrap { max-width: 680px; margin: 0 auto; padding-bottom: 40px; }
.builder-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step-dot { font-size: .75rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; background: #e8eef7; color: var(--muted); }
.step-dot.active { background: var(--blue); color: #fff; }
.step-dot.done { background: var(--green-bg); color: var(--green); }
.entry {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--shadow);
}
.entry h4 { margin: 0 0 8px; }
.builder-nav { display: flex; justify-content: space-between; margin-top: 20px; }

/* ---------- Modal / toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(14, 26, 43, .55);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; padding: 24px;
  box-shadow: var(--shadow-lg); animation: popIn .2s ease;
}
@keyframes popIn { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal h2 { margin-top: 0; }
#toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; width: max-content; max-width: 92vw; }
.toast {
  background: var(--navy); border: 1px solid var(--blue); color: #fff;
  padding: 12px 20px; border-radius: 12px; margin-top: 8px; font-size: .92rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); text-align: center;
  animation: popIn .2s ease;
}

/* ---------- Interview prep ---------- */
.interview-q { margin: 14px 0; padding: 16px; background: #f6f9fd; border: 1px solid var(--border); border-radius: 12px; }
.interview-q .q-type {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--blue-deep); background: var(--blue-soft);
  padding: 2px 10px; border-radius: 12px; margin-bottom: 6px;
}
.interview-q p { font-weight: 600; margin: 4px 0 8px; color: var(--text); }
.grade-card { margin: 14px 0; padding: 16px; background: #f6f9fd; border: 1px solid var(--border); border-radius: 12px; }
.grade-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.grade-score {
  font-size: 1.3rem; font-weight: 800; color: var(--blue-deep);
  background: var(--blue-soft); border-radius: 12px; padding: 4px 14px; flex: none;
}
.grade-card .better { background: #fff; border: 1px dashed var(--blue); border-radius: 10px; padding: 10px; margin-top: 8px; font-size: .9rem; }

/* ---------- Skill gap ---------- */
.gap-critical { border-left: 4px solid var(--red); }
.gap-important { border-left: 4px solid #e8a13d; }
.gap-nice-to-have { border-left: 4px solid var(--blue); }
.gap-card { background: #f6f9fd; border-radius: 10px; padding: 12px; margin: 10px 0; }
.gap-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 10px; border-radius: 12px; margin-bottom: 6px;
}
.tag-critical { background: var(--red-bg); color: var(--red); }
.tag-important { background: var(--gold-bg); color: var(--gold); }
.tag-nice-to-have { background: var(--blue-soft); color: var(--blue-deep); }
.matched-chip {
  display: inline-block; background: var(--green-bg); color: var(--green);
  font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 16px; margin: 3px 4px 3px 0;
}

/* ---------- Copy affordance ---------- */
.copyable { cursor: pointer; }
.copyable:hover { border-color: var(--blue); }
.headline-opt {
  background: #f6f9fd; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; margin: 8px 0; font-weight: 600; cursor: pointer; color: var(--text);
}
.headline-opt:hover { border-color: var(--blue); }

/* ============ CELEBRATION ============ */
.confetti-canvas { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.celeb { text-align: center; padding: 8px 4px; }
.celeb-emoji { font-size: 3.4rem; animation: celebBounce .6s ease; }
@keyframes celebBounce { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.celeb h2 { font-size: 1.7rem; margin: 12px 0 4px; }
.celeb-role { font-size: 1.1rem; font-weight: 700; color: var(--blue-deep); margin: 0 0 16px; }
.share-preview {
  width: 100%; max-width: 340px; border-radius: 16px; margin: 0 auto;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: block;
}
.celeb .btn-row { justify-content: center; }
.story-optin { margin-top: 20px; text-align: left; background: #f6f9fd; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.story-optin .check { margin: 0 0 4px; color: var(--text); }
#story-fields { margin-top: 10px; }

/* ============ RESUME TEMPLATES ============ */
.tpl-picker { display: flex; gap: 8px; margin: 10px 0 12px; flex-wrap: wrap; }
.tpl-btn { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; cursor: pointer; color: var(--text); }
.tpl-btn.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.rtpl-page { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px 34px; max-height: 480px; overflow: auto; box-shadow: 0 2px 10px rgba(11,99,216,.07); }
.rtpl { color: #1c1c1e; font-size: 13.5px; line-height: 1.55; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rtpl ul { margin: 4px 0 10px; padding-left: 20px; }
.rtpl li { margin-bottom: 3px; }
.rtpl p { margin: 4px 0 10px; }

/* --- Modern --- */
.rtpl-modern { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.rtpl-modern .rtpl-name { font-size: 27px; font-weight: 800; letter-spacing: -0.3px; color: #101418; margin: 0; }
.rtpl-modern .rtpl-headline { font-size: 14.5px; font-weight: 600; color: var(--blue-dark); margin: 2px 0 4px; }
.rtpl-modern .rtpl-contact { font-size: 12px; color: #5a5f66; margin-bottom: 14px; }
.rtpl-modern .rtpl-sec-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--blue-dark); border-bottom: 2px solid var(--blue-soft); padding-bottom: 4px; margin: 16px 0 8px; }
.rtpl-modern .rtpl-job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rtpl-modern .rtpl-job-title { font-weight: 700; font-size: 14px; }
.rtpl-modern .rtpl-job-dates { font-size: 12px; color: #5a5f66; white-space: nowrap; }
.rtpl-modern .rtpl-job-sub { font-size: 12.5px; color: #3a3f45; font-style: italic; margin-bottom: 2px; }
.rtpl-modern .rtpl-edu-line { margin-bottom: 4px; }
.rtpl-modern .rtpl-skills { font-size: 13px; }

/* --- Classic --- */
.rtpl-classic { font-family: Georgia, "Times New Roman", serif; }
.rtpl-classic .rtpl-name { font-size: 25px; font-weight: 700; text-align: center; color: #111; margin: 0; }
.rtpl-classic .rtpl-headline { font-size: 14px; text-align: center; color: #333; font-style: italic; margin: 2px 0 4px; }
.rtpl-classic .rtpl-contact { font-size: 12px; color: #444; text-align: center; margin-bottom: 12px; }
.rtpl-classic .rtpl-sec-title { font-size: 13px; font-weight: 700; font-variant: small-caps; letter-spacing: 1.6px; text-align: center; border-top: 1px solid #999; border-bottom: 1px solid #999; padding: 3px 0; margin: 16px 0 8px; }
.rtpl-classic .rtpl-job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rtpl-classic .rtpl-job-title { font-weight: 700; }
.rtpl-classic .rtpl-job-dates { font-size: 12px; white-space: nowrap; }
.rtpl-classic .rtpl-job-sub { font-style: italic; font-size: 12.5px; margin-bottom: 2px; }

/* --- Executive --- */
.rtpl-executive { font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; border-top: 5px solid #0f2a4a; padding-top: 18px; }
.rtpl-executive .rtpl-name { font-size: 29px; font-weight: 800; color: #0f2a4a; letter-spacing: -0.4px; margin: 0; }
.rtpl-executive .rtpl-headline { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: #4a5a6e; margin: 3px 0 5px; }
.rtpl-executive .rtpl-contact { font-size: 12px; color: #5a5f66; margin-bottom: 14px; }
.rtpl-executive .rtpl-sec-title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.3px; color: #0f2a4a; margin: 16px 0 8px; padding-left: 10px; border-left: 4px solid #0f2a4a; }
.rtpl-executive .rtpl-job { margin-bottom: 10px; }
.rtpl-executive .rtpl-job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rtpl-executive .rtpl-job-title { font-weight: 700; font-size: 14px; color: #0f2a4a; }
.rtpl-executive .rtpl-job-dates { font-size: 12px; color: #5a5f66; white-space: nowrap; }
.rtpl-executive .rtpl-job-sub { font-size: 12.5px; color: #3a3f45; margin-bottom: 2px; }

/* --- plain-text fallback --- */
.rtpl-plain pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; margin: 0; }

/* --- print: only the resume page prints --- */
#resume-print-root { display: none; }
@media print {
  body > *:not(#resume-print-root) { display: none !important; }
  #resume-print-root { display: block !important; padding: 0; }
  #resume-print-root .rtpl-page { border: none; border-radius: 0; box-shadow: none; max-height: none; overflow: visible; padding: 0; }
  #resume-print-root .rtpl-executive { border-top-width: 5px; }
  @page { size: letter; margin: 0.55in 0.6in; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .screen { padding: 12px; }
  .hero-title { font-size: 1.9rem; }
  .hero-search { flex-direction: column; }
  .hero-search input + input { border-left: none; border-top: 1px solid var(--border); }
  .hero-search .btn { margin: 6px 0 0; }
  .jobs-searchbar { flex-direction: column; }
  .search-field.search-loc { border-left: none; border-top: 1px solid var(--border); }
  .search-field.search-state { border-left: none; border-top: 1px solid var(--border); }
  .search-field select { max-width: none; width: 100%; }
  .jobs-searchbar .btn { margin: 5px 0 0; }
  .pipeline { grid-auto-columns: 80vw; }
  .match-badge { min-width: 56px; padding: 6px 8px; }
  .match-badge .pct { font-size: 1.05rem; }
  .modal { padding: 18px; }
}

/* ---- Job alerts (added 2026-09-16) ---- */
.alert-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.alert-form label { display: block; text-align: left; margin: 10px 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
.alert-form input[type=text], .alert-form select { width: 100%; margin-top: 6px; }
.alert-form label.check { display: flex; align-items: center; gap: 8px; margin-top: 34px; cursor: pointer; }
.alert-list { display: grid; gap: 12px; }
.alert-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.alert-card h3 { margin: 0 0 4px; }
.alert-card.paused { opacity: .72; }
.alert-meta { font-size: .82rem; margin-top: 6px; }
.alert-status.on { color: #34d399; font-weight: 700; }
.alert-status.off { color: var(--muted); font-weight: 700; }
.linklike { background: none; border: none; padding: 0; color: var(--accent, #4da3ff); font-size: .9rem; cursor: pointer; text-decoration: underline; }
.auth-row { text-align: right; margin: -4px 0 10px; }

/* HYRD 24/7 AI assistant widget */
#chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 6px 20px rgba(11, 99, 216, .45);
}
#chat-fab:active { transform: scale(.95); }
#chat-panel {
  position: fixed; right: 18px; bottom: 86px; z-index: 901;
  width: min(360px, calc(100vw - 36px)); height: min(520px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
#chat-panel[hidden] { display: none; }
#chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
}
#chat-close { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; padding: 4px 8px; }
#chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; white-space: pre-wrap; word-break: break-word; }
.chat-msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.ai { align-self: flex-start; background: var(--panel2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.typing { opacity: .6; font-style: italic; }
#chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
#chat-input { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .95rem; font-family: inherit; background: var(--panel); color: var(--text); }
#chat-send { border: none; border-radius: 12px; padding: 0 16px; font-size: 1.1rem; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }

/* App footer — Instagram handle */
.app-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 12px 30px; font-size: .88rem; color: var(--muted);
}
.footer-brand { font-weight: 800; letter-spacing: .12em; color: var(--text2); }
.footer-sep { color: var(--faint); }
.footer-ig { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.footer-ig:hover { text-decoration: underline; }

/* Hero banner — brand slogan */
.hero-banner {
  position: relative; overflow: hidden;
  border-radius: 20px; margin: 4px 0 20px; padding: 34px 28px;
  background: linear-gradient(120deg, #060b18 0%, #0a1f4d 55%, #0b63d8 130%);
  color: #fff; box-shadow: 0 10px 34px rgba(11, 99, 216, .28);
}
.hero-glow {
  position: absolute; inset: -40%;
  background:
    radial-gradient(420px 220px at 82% 18%, rgba(30, 144, 255, .45), transparent 65%),
    radial-gradient(360px 200px at 12% 88%, rgba(30, 144, 255, .22), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 560px; }
.hero-kicker {
  margin: 0 0 10px; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #9cc8ff;
}
.hero-slogan { margin: 0 0 10px; font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.hero-slogan em { font-style: normal; color: #7db9ff; }
.hero-sub { margin: 0 0 18px; font-size: 1rem; line-height: 1.55; color: #c9d9f2; }
.btn-hero {
  border: none; cursor: pointer; font-weight: 800; font-size: 1rem;
  padding: 13px 26px; border-radius: 14px; color: #06101f;
  background: linear-gradient(135deg, #fff, #cfe6ff);
  box-shadow: 0 6px 20px rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 255, 255, .32); }
@media (max-width: 560px) { .hero-banner { padding: 26px 20px; } }
