@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Inter+Tight:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════
   Luna Design System — Modern Dashboard (Jobright/Donezo-inspired)
   ─────────────────────────────────────────────────────────────────────
   STRUCTURAL: icon-only sidebar, 24px card radius, 32px+ headings,
   42px stat numbers, generous spacing, soft diffuse shadows
═══════════════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand — Emerald ── */
  --brand:         #2F97EF;
  --brand-hover:   #1D7FD6;
  --brand-subtle:  #EFF6FE;
  --brand-dim:     #BEE3FF;
  --brand-text:    #12507E;
  --brand-dark:    #12507E;
  --brand-gradient: linear-gradient(135deg, #2F97EF, #5BB8FF);
  --brand-glow:    rgba(47, 151, 239, 0.12);

  /* ── CTA — Dark Charcoal ── */
  --btn-primary:       #5BB8FF;
  --btn-primary-hover:  #3FA5F5;

  /* ── Accent — Warm Amber ── */
  --accent:        #FF6B5B;
  --accent-hover:  #F05545;
  --accent-subtle: #FFE9E5;
  --accent-dim:    #FFB3A8;
  --accent-text:   #B23F33;
  --accent-dark:   #8E2E24;

  /* ── Secondary — Soft Violet ── */
  --violet:        #5BB8FF;
  --violet-subtle: #E3F1FF;
  --violet-text:   #15476F;
  --violet-dark:   #123A5C;

  /* ── Tertiary — Ocean Blue ── */
  --teal:          #5BB8FF;
  --teal-subtle:   #E3F1FF;
  --teal-text:     #0C4A6E;

  /* ── Neutral surfaces ── */
  --bg:            #F7F8FB;
  --surface:       #FFFFFF;
  --surface-low:   #F8FAFC;
  --surface-mid:   #EEF0F4;
  --surface-high:  #E2E5EB;
  --surface-dim:   #D1D5DB;

  /* ── Text ── */
  --text-primary:   #1B1B24;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;
  --border:         #E8ECF1;
  --border-strong:  #D1D5DB;

  /* ── Error ── */
  --error:         #EF4444;
  --error-subtle:  #FEE2E2;
  --error-text:    #991B1B;

  /* ── Success ── */
  --success:       #10B981;
  --success-subtle:#D1FAE5;

  /* ── Status (semantic) ── */
  --amber-50:  #E3F1FF;
  --amber-800: #1D5E96;

  /* ── Border radius — MUCH ROUNDER ── */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* ── Shadows — softer, more diffuse ── */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.02);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.02);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.03);
  --shadow-brand: 0 4px 12px rgba(184, 127, 36, 0.15);

  /* ── Legacy aliases ── */
  --green-50:   var(--brand-subtle);
  --green-100:  var(--brand-dim);
  --green-400:  var(--brand);
  --green-600:  var(--brand-hover);
  --green-800:  var(--brand-text);
  --gray-50:    var(--surface-low);
  --gray-100:   var(--surface-mid);
  --gray-200:   var(--border);
  --gray-300:   var(--surface-dim);
  --gray-400:   var(--text-muted);
  --gray-500:   var(--text-muted);
  --gray-700:   var(--text-secondary);
  --gray-900:   var(--text-primary);
  --purple-50:  var(--violet-subtle);
  --purple-800: var(--violet-dark);
  --blue-50:    var(--teal-subtle);
  --blue-800:   var(--teal-text);
  --red-50:     var(--error-subtle);
  --red-800:    var(--error-text);

  /* ── Layout — ICON-ONLY SIDEBAR ── */
  --sidebar-width: 232px;
  --topbar-height: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Shell layout ── */
.shell { display: flex; height: 100vh; overflow: hidden; }

/* ═══════════════════════════════════════════
   SIDEBAR — ICON-ONLY (80px)
═══════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
  padding: 20px 0 16px;
}

.sb-top {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sb-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}
.sb-logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 14px;
  border: none;
  box-shadow: none;
}
.sb-appname {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hide user info in icon-only sidebar */
.sb-user { display: none; }

/* Nav — icon-only with tiny labels */
.nav-section {
  padding: 0;
  flex: 1;
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav-label { display: none; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .2s ease;
  border: none;
  background: none;
  width: 64px;
  text-align: center;
  margin-bottom: 0;
  position: relative;
  border-left: none;
  line-height: 1.2;
}
.nav-item i {
  font-size: 22px;
  width: auto;
  text-align: center;
  opacity: 0.6;
}
.nav-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60px;
}
.nav-item:hover {
  background: var(--surface-low);
  color: var(--text-primary);
}
.nav-item:hover i { opacity: 1; }
.nav-item.active {
  background: var(--brand-subtle);
  color: var(--brand);
  font-weight: 600;
  border-left-color: transparent;
  box-shadow: none;
}
.nav-item.active i { opacity: 1; color: var(--brand); }

/* Sidebar bottom — compact progress ring */
.sb-bottom {
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  justify-content: center;
}
.sb-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sb-progress-label { font-size: 9px; color: var(--text-muted); font-weight: 500; text-align: center; }
.sb-progress-pct { font-size: 12px; font-weight: 700; color: var(--brand); display: none; }

/* ═══════════════════════════════════════════
   MAIN AREA
═══════════════════════════════════════════ */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.topbar {
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  flex-shrink: 0;
}
.topbar-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.streak-pill {
  background: var(--accent-subtle); color: var(--accent-text);
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 6px;
}

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow .2s;
}
.avatar:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.icon-btn {
  background: none; border: none;
  color: var(--text-muted); font-size: 22px;
  padding: 10px; border-radius: var(--radius-sm);
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--surface-low); color: var(--text-primary); }

/* ═══════════════════════════════════════════
   CONTENT — MORE GENEROUS SPACING
═══════════════════════════════════════════ */
.content { flex: 1; overflow-y: auto; padding: 36px 44px; scroll-behavior: smooth; }
.page { display: none; }
.page.active { display: block; }

/* ═══════════════════════════════════════════
   CARDS — MUCH ROUNDER, MORE PADDING
═══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card:empty { display: none !important; }

.card-title {
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.card-title i { font-size: 20px; color: var(--brand); }

/* ── Focus card ── */
.focus-card {
  background: #FFF7DC;
  border: 1px solid #F3E2AF;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.focus-label {
  font-size: 11px; font-weight: 700;
  color: var(--brand); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.focus-text {
  font-size: 15px; font-weight: 500;
  color: var(--brand-text);
  margin-bottom: 14px; line-height: 1.6;
}

/* ═══════════════════════════════════════════
   BUTTONS — ROUNDER, LARGER
═══════════════════════════════════════════ */
.btn-primary {
  background: var(--btn-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active { box-shadow: var(--shadow-xs); transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-size: 14px; font-weight: 500;
  transition: all .2s ease;
}
.btn-ghost:hover {
  background: var(--surface-low);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   LAYOUT — WIDER SIDEBAR GAP
═══════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.right-col > * { margin-bottom: 20px; }

/* ═══════════════════════════════════════════
   TABS — ROUNDER
═══════════════════════════════════════════ */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--surface-mid);
  margin-bottom: 20px; gap: 0;
}
.tab {
  font-size: 14px; padding: 12px 22px;
  color: var(--text-muted); border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .15s; font-weight: 500;
}
.tab:hover { color: var(--text-primary); }
.tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ═══════════════════════════════════════════
   TASKS / CHECKLIST
═══════════════════════════════════════════ */
.task {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-mid);
}
.task:last-child { border-bottom: none; }
.task-cb {
  width: 22px; height: 22px;
  border: 2px solid var(--border-strong); border-radius: 8px;
  flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: all .2s ease;
}
.task-cb:hover { border-color: var(--brand); background: var(--brand-subtle); }
.task-cb.done {
  background: var(--brand);
  border-color: var(--brand);
  animation: checkPop .3s ease;
}
.task-cb.done::after { content: "\2713"; font-size: 12px; color: #fff; font-weight: 700; }
@keyframes checkPop { 50% { transform: scale(1.2); } }

.task-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.task-tag {
  font-size: 11px; padding: 4px 12px;
  border-radius: var(--radius-pill); font-weight: 600;
  flex-shrink: 0; margin-top: 2px;
}
.tag-resume  { background: var(--violet-subtle); color: var(--violet-dark); }
.tag-apply   { background: var(--brand-subtle);  color: var(--brand-dark); }
.tag-learn   { background: var(--accent-subtle); color: var(--accent-text); }
.tag-network { background: var(--teal-subtle);   color: var(--teal-text); }

/* ── Phase progress ── */
.phase-progress {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--surface-mid);
  display: flex; align-items: center; gap: 14px;
}
.prog-bar { flex: 1; height: 8px; background: var(--surface-mid); border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--brand); border-radius: 4px; transition: width .4s ease; }
.prog-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; font-weight: 500; }

/* ═══════════════════════════════════════════
   DASHBOARD — Hero & Grid
═══════════════════════════════════════════ */
.dash-greeting-bar {
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
.dash-greeting {
  font-size: 28px; font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.03em;
}
.dash-role-pill {
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  background: var(--brand-subtle);
  border: 1px solid var(--brand-dim);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  white-space: nowrap;
}
.dash-date { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

/* Dashboard grid — wider sidebar */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 28px;
  align-items: start;
}
.dash-main { display: flex; flex-direction: column; gap: 24px; }
.dash-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* Dashboard sections */
.dash-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.dash-section:hover { box-shadow: var(--shadow-md); }

.dash-section-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dash-section-title {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.dash-see-all {
  font-size: 13px; color: var(--brand);
  font-weight: 600; text-decoration: none;
  transition: opacity .15s;
}
.dash-see-all:hover { opacity: 0.7; }

/* ═══════════════════════════════════════════
   PIPELINE STATS — MUCH LARGER
═══════════════════════════════════════════ */
.pipeline-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: transparent;
  border: none; padding: 0;
  box-shadow: none;
  margin-bottom: 0;
}

.stat-chip {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
}
.stat-chip::before {
  display: none;
}
.stat-chip:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-chip-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-chip-icon i { font-size: 24px; }

/* Stat chip variants */
.stat-chip.stat-applied { border-left-color: var(--brand); }
.stat-chip.stat-applied .stat-chip-icon { background: var(--brand-subtle); color: var(--brand); }
.stat-chip.stat-interview { border-left-color: #FF6B5B; }
.stat-chip.stat-interview .stat-chip-icon { background: #FFE9E5; color: #FF6B5B; }
.stat-chip.stat-offers { border-left-color: #E0A72E; }
.stat-chip.stat-offers .stat-chip-icon { background: #FFF3CF; color: #B87F24; }

.stat-chip-body {}
.pipeline-bar-num {
  font-size: 42px; font-weight: 800;
  line-height: 1; margin-bottom: 6px;
  letter-spacing: -1px;
}
.pipeline-bar-num.pipeline-applied { color: var(--brand); }
.pipeline-bar-num.pipeline-interview { color: var(--violet); }
.pipeline-bar-num.pipeline-offers { color: var(--success); }
.pipeline-bar-lbl {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600;
}

/* Legacy pipeline stat */
.pipeline-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px; text-align: center;
}
.pipeline-num { font-size: 42px; font-weight: 800; color: var(--brand); line-height: 1; }
.pipeline-lbl { font-size: 12px; color: var(--text-muted); margin-top: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ═══════════════════════════════════════════
   MATCH CARDS — ROUNDER, MORE PADDING
═══════════════════════════════════════════ */
.match-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--surface);
  transition: box-shadow .3s ease, transform .2s ease, border-color .2s ease;
}
.match-card:last-child { margin-bottom: 0; }
.match-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-dim);
  transform: translateY(-1px);
}
.match-card.best {
  border-color: var(--border);
  background: var(--surface);
}
.match-card.chosen-role {
  border-color: var(--brand-dim);
  background: var(--surface);
}
.match-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.match-why-line { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 8px 0 12px; }
.match-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.match-tag {
  font-size: 12px;
  background: var(--surface-low);
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.match-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.match-role { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.match-pct {
  font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: var(--radius-pill);
}
.match-pct:not(.muted) {
  background: linear-gradient(135deg, #2F97EF, #5BB8FF);
  color: #fff;
}
.match-pct.muted { background: var(--surface-mid); color: var(--text-muted); }
.match-why li {
  font-size: 13px; color: var(--text-muted);
  padding: 4px 0; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.match-why li::before { content: "\2713"; color: var(--brand); font-size: 12px; margin-top: 1px; flex-shrink: 0; }
.match-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.salary-pill {
  background: var(--surface-low); color: var(--text-muted);
  font-size: 12px; padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   WHAT'S NEXT NUDGES — ROUNDER
═══════════════════════════════════════════ */
.nudge-row {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s ease, transform .2s ease;
}
.nudge-row:last-child { margin-bottom: 0; }
.nudge-row:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.nudge-bubble {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nudge-bubble.nudge-interview { background: var(--brand-subtle); }
.nudge-bubble.nudge-stale { background: var(--error-subtle); }
.nudge-bubble i { font-size: 22px; }
.nudge-bubble.nudge-interview i { color: var(--brand); }
.nudge-bubble.nudge-stale i { color: var(--error); }

.nudge-body { flex: 1; min-width: 0; }
.nudge-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.nudge-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.nudge-btn {
  font-size: 13px; font-weight: 600; padding: 10px 22px;
  border-radius: var(--radius-pill); border: none; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: all .2s ease;
}
.nudge-interview .nudge-btn {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.nudge-interview .nudge-btn:hover { background: var(--btn-primary-hover); box-shadow: var(--shadow-md); }
.nudge-stale .nudge-btn {
  background: transparent;
  color: var(--error);
  border: 1.5px solid var(--error);
}

/* ── Tips card ── */
.dash-tips-card {
  background: #F3F9FF;
  border: 1px solid #D6EAFF;
  box-shadow: none;
  margin-top: 0;
  position: relative; overflow: hidden;
}
.dash-tips-card::before {
  content: '\201C';
  position: absolute; top: -12px; right: 18px;
  font-size: 80px; font-weight: 800; line-height: 1;
  color: rgba(184, 127, 36, 0.08); pointer-events: none;
  font-family: Georgia, serif;
}

/* ═══════════════════════════════════════════
   METRIC BOXES — LARGER
═══════════════════════════════════════════ */
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; }
.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.metric-num { font-size: 32px; font-weight: 800; color: var(--brand); }
.metric-lbl { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* ═══════════════════════════════════════════
   STATUS BADGES
═══════════════════════════════════════════ */
.status-badge {
  font-size: 12px; padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600; display: inline-block;
  white-space: nowrap;
}
.st-saved     { background: var(--surface-mid); color: var(--text-muted); }
.st-applied   { background: var(--brand-subtle); color: var(--brand-dark); }
.st-interview { background: var(--accent-subtle); color: var(--accent-text); }
.st-offer     { background: var(--violet-subtle); color: var(--violet-dark); }
.st-rejected  { background: var(--error-subtle); color: var(--error-text); }

/* ═══════════════════════════════════════════
   TRACKER TABLE — ROUNDER
═══════════════════════════════════════════ */
.tracker-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.tracker-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; table-layout: fixed;
}
.tracker-table th {
  text-align: left; padding: 14px 16px;
  border-bottom: 2px solid var(--surface-mid);
  color: var(--text-muted); font-weight: 600;
  font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase;
}
.tracker-table td {
  padding: 16px;
  border-bottom: 1px solid var(--surface-mid);
  color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-table tr:hover td { background: var(--surface-low); }

/* ── Heatmap ── */
.heatmap { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin: 12px 0; }
.heat-cell { height: 16px; border-radius: 4px; background: var(--surface-mid); }
.heat-cell.on  { background: var(--brand); }
.heat-cell.med { background: var(--brand-dim); }

/* ═══════════════════════════════════════════
   QUICK ACCESS LINKS
═══════════════════════════════════════════ */
.quicklinks { display: flex; flex-direction: column; gap: 6px; }
.qlink {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 500; color: var(--text-primary);
  padding: 14px 16px; border-radius: var(--radius-md);
  text-decoration: none;
  transition: background .15s ease;
  cursor: pointer;
}
.qlink:hover { background: var(--surface-low); }
.qlink-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--brand-subtle);
}
.qlink-icon i { font-size: 18px; color: var(--brand); }
.qlink-label { flex: 1; line-height: 1.3; }
.qlink-chevron { font-size: 16px; color: var(--text-muted); transition: transform .15s; }
.qlink:hover .qlink-chevron { transform: translateX(3px); }
.qlink-browse {
  width: 100%; margin-top: 14px; padding: 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-low); border: none;
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; transition: background .15s;
}
.qlink-browse:hover { background: var(--surface-mid); }

/* ═══════════════════════════════════════════
   INTERVIEW ACCORDION — ROUNDER
═══════════════════════════════════════════ */
.interview-q {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px; overflow: hidden;
}
.interview-q-head {
  padding: 18px 22px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: background .15s;
}
.interview-q-head:hover { background: var(--surface-low); }
.interview-q-body {
  display: none; padding: 18px 22px;
  background: var(--surface-low);
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}
.interview-q-body.open { display: block; }

/* Interview numbered badges */
#page-interview { counter-reset: q-num; }
.interview-q { counter-increment: q-num; }
.interview-q-head { gap: 14px; }
.interview-q-head::before {
  content: counter(q-num);
  min-width: 28px; height: 28px;
  background: var(--brand); color: #fff;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Practice */
.practice-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.char-counter { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 4px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════
   RESOURCES — ROUNDER
═══════════════════════════════════════════ */
.res-pill {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: all .15s; margin: 3px;
}
.res-pill i { font-size: 15px; color: var(--text-muted); }
.res-pill:hover { background: var(--brand-subtle); border-color: var(--brand); color: var(--brand); }
.resource-row { margin-bottom: 12px; }

/* Learning timeline */
.learning-timeline { position: relative; padding-left: 36px; }
.learning-timeline::before {
  content: ''; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
  border-radius: 2px;
}
.course-card {
  position: relative; margin-bottom: 18px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid var(--border);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.course-card:last-child { margin-bottom: 0; }
.course-card::before {
  content: ''; position: absolute; left: -28px; top: 26px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--surface);
}
.course-card:hover { box-shadow: var(--shadow-sm); border-color: var(--brand-dim); }
.course-card.completed { border-left: 3px solid var(--success); }
.course-card.completed::before { background: var(--success); }
.course-card.priority-card { background: var(--brand-subtle); border-color: var(--brand-dim); }
.course-card.priority-card::before { background: var(--brand); border-color: var(--brand-subtle); }

/* Resource pills */
.resource-pills { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.resource-pill {
  flex: 0 0 200px; background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease;
  text-decoration: none; display: block;
}
.resource-pill:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.resource-pill-icon { font-size: 28px; margin-bottom: 12px; }
.resource-pill-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.3; }
.resource-pill-why { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════
   COMPANY CARDS — ROUNDER
═══════════════════════════════════════════ */
.co-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); transition: box-shadow .2s ease;
}
.co-card:hover { box-shadow: var(--shadow-sm); }
.co-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.co-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.co-badge { font-size: 11px; padding: 4px 12px; border-radius: var(--radius-pill); font-weight: 600; margin-left: 8px; }
.tier1 { background: var(--violet-subtle); color: var(--violet-dark); }
.tier2 { background: var(--brand-subtle); color: var(--brand-dark); }
.tier3 { background: var(--accent-subtle); color: var(--accent-text); }

/* ═══════════════════════════════════════════
   SECTION DIVIDER
═══════════════════════════════════════════ */
.section-divider {
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .08em; text-transform: uppercase;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-mid);
}

/* ═══════════════════════════════════════════
   RESUME BUILDER — ROUNDER INPUTS
═══════════════════════════════════════════ */
.resume-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: stretch; }

#resume-editor-panel { display: flex; flex-direction: column; }
.resume-editor-card { display: flex; flex-direction: column; }
.editor-download-row { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--surface-mid); }

#resume-preview-wrapper {
  width: 100%; height: auto; overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  font-family: 'Times New Roman', Times, serif;
}
#resume-preview-wrapper * { font-family: 'Times New Roman', Times, serif; }
#resume-preview { width: 100%; }

/* ── Live editing affordances on the preview ── */
#resume-preview [data-le] { cursor: text; border-radius: 3px; transition: background .12s, box-shadow .12s; }
#resume-preview [data-le]:hover { background: #EFF6FE; box-shadow: 0 0 0 3px #EFF6FE; }
#resume-preview [data-le]:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px #BEE3FF; }
#resume-preview .rp-bullet-row { position: relative; }
#resume-preview .le-del, #resume-preview .le-del-role {
  position: absolute; opacity: 0; pointer-events: none;
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: #FFE9E5; color: #B23F33; font-size: 11px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: 'Inter Tight', sans-serif; transition: opacity .12s, background .12s; }
#resume-preview .le-del { right: -6px; top: 50%; transform: translateY(-50%); }
#resume-preview .le-del-role { right: -6px; top: 0; }
#resume-preview .rp-bullet-row:hover .le-del,
#resume-preview .rp-exp-entry:hover .le-del-role { opacity: 1; pointer-events: auto; }
#resume-preview .le-del:hover, #resume-preview .le-del-role:hover { background: #FFB3A8; color: #7a241a; }

/* Live on-screen template variants — mirror resumeTemplateCss() so clicking
   Classic / Modern / Compact restyles the preview, not just the PDF. */
#resume-preview-wrapper.tpl-modern,
#resume-preview-wrapper.tpl-modern * { font-family: Georgia, 'Times New Roman', serif; }
#resume-preview-wrapper.tpl-modern .rp-name { text-align: left; font-size: 26px; letter-spacing: -0.01em; }
#resume-preview-wrapper.tpl-modern .rp-contact { text-align: left; }
#resume-preview-wrapper.tpl-modern .rp-section-label { border-bottom: none; color: #17324f; letter-spacing: .09em; }

#resume-preview-wrapper.tpl-compact { padding: 36px 44px; }
#resume-preview-wrapper.tpl-compact .rp-body,
#resume-preview-wrapper.tpl-compact .rp-bullet-row,
#resume-preview-wrapper.tpl-compact .rp-edu-entry,
#resume-preview-wrapper.tpl-compact .rp-skills-cat { font-size: 12.5px; line-height: 1.3; }
#resume-preview-wrapper.tpl-compact .rp-section-label { margin: 10px 0 5px; }
#resume-preview-wrapper.tpl-compact .rp-exp-entry { margin-bottom: 7px; }

.resume-field-label {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 6px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  display: block;
}
.resume-field { margin-bottom: 20px; }
.resume-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.resume-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.resume-textarea { resize: vertical; min-height: 90px; height: auto; }

.ats-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--brand-subtle);
  border: 1px solid var(--brand-dim);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.ats-score { font-size: 28px; font-weight: 800; color: var(--brand); }
.ats-sub { font-size: 13px; color: var(--brand-hover); margin-top: 2px; }

/* Resume preview */
.rp-name { font-size: 24px; font-weight: 700; text-align: center; color: #111; margin-bottom: 4px; }
.rp-contact { font-size: 13px; color: #222; text-align: center; margin-bottom: 14px; line-height: 1.4; }
.rp-contact a { color: #0000EE; text-decoration: underline; }
.rp-section-label {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #111; border-bottom: 1px solid #111;
  padding-bottom: 2px; margin: 13px 0 7px;
}
.rp-contact + .rp-section-label { margin-top: 0; }
.rp-body { font-size: 14px; color: #111; line-height: 1.4; margin: 0 0 8px; }
.rp-exp-entry { margin-bottom: 10px; }
.rp-exp-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3px; }
.rp-exp-left { flex: 1; }
.rp-exp-company { font-size: 14px; font-weight: 700; color: #111; }
.rp-exp-role { font-size: 14px; font-style: italic; color: #111; }
.rp-exp-date { font-size: 13px; color: #111; flex-shrink: 0; margin-left: 8px; }
.rp-bullet-row { margin-bottom: 4px; font-size: 14px; line-height: 1.4; color: #111; padding-left: 16px; text-indent: -16px; position: relative; }
.rp-bullet-dot { margin-right: 8px; }
.rp-edu-entry { font-size: 14px; color: #111; line-height: 1.4; margin-bottom: 3px; }
.rp-skills-cat { font-size: 14px; line-height: 1.4; margin-bottom: 3px; color: #111; padding-left: 16px; text-indent: -16px; }
.rp-skills-cat > span:first-child { margin-right: 8px; }
.skill-tag {
  background: var(--brand-subtle);
  border: 1px solid var(--brand-dim);
  border-radius: 8px;
  padding: 4px 12px; font-size: 12px;
  color: var(--brand-dark);
  display: inline-block; margin: 2px; font-weight: 500;
}

/* ═══════════════════════════════════════════
   LINKEDIN LAYOUT
═══════════════════════════════════════════ */
.li-row { margin-bottom: 24px; }
.li-row-2col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.li-about-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.li-score-card { padding-bottom: 22px; }
.li-tip-row { display: flex; align-items: flex-start; gap: 16px; }
.li-tip-num { font-size: 24px; font-weight: 800; color: var(--brand); opacity: 0.2; line-height: 1; flex-shrink: 0; width: 34px; }

/* LinkedIn audit checkboxes */
.linkedin-check { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--surface-mid); }
.linkedin-check:last-child { border: none; }
.linkedin-check span { font-size: 14px; color: var(--text-secondary); }

/* ═══════════════════════════════════════════
   SALARY TIERS
═══════════════════════════════════════════ */
.salary-tier-row {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 127, 36, 0.12);
  font-size: 14px;
}
.salary-tier-row:last-child { border: none; }
.salary-tier-label { font-weight: 600; color: var(--brand-dark); }
.salary-tier-range { color: var(--brand); }

/* ═══════════════════════════════════════════
   COACHING GRID — ROUNDER
═══════════════════════════════════════════ */
.coaching-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 28px; }
.coach-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; text-align: center; cursor: pointer;
  background: var(--surface);
  transition: box-shadow .3s ease, border-color .3s ease, transform .2s ease;
}
.coach-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.coach-card.featured { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow-md); }
.coach-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--brand-subtle);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--brand); font-size: 26px;
}
.coach-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.coach-sub { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.coach-dur { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.most-booked {
  background: var(--brand-subtle); color: var(--brand-dark);
  font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: var(--radius-pill);
  display: inline-block; margin-bottom: 14px; letter-spacing: .06em;
}

/* ═══════════════════════════════════════════
   PERSONA CARDS
═══════════════════════════════════════════ */
.persona-card {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-mid);
}
.persona-card:last-child { border-bottom: none; }
.persona-label { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.persona-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Message box */
.msg-box {
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}

/* Tailor tabs */
.tailor-tab {
  font-size: 13px; font-weight: 500;
  padding: 8px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary);
  cursor: pointer; transition: all .15s;
}
.tailor-tab:hover { background: var(--surface-low); }
.tailor-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Skill/language tabs */
.skill-tabs { display: flex; gap: 8px; }
.skill-tab {
  font-size: 13px; padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: none; color: var(--text-muted);
  cursor: pointer; transition: all .15s; font-weight: 500;
}
.skill-tab:hover { background: var(--surface-low); color: var(--text-primary); }
.skill-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Tracker notes */
.tracker-note {
  width: 100%; font-size: 13px; font-family: inherit;
  border: 1px solid transparent; border-radius: 10px;
  padding: 6px 8px; resize: none;
  background: transparent; color: var(--text-secondary);
  transition: all .15s;
}
.tracker-note:hover, .tracker-note:focus { border-color: var(--border); background: var(--surface); outline: none; }

/* Notes toggle */
.notes-toggle {
  font-size: 12px; color: var(--brand);
  background: none; border: none; cursor: pointer;
  padding: 0; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.notes-toggle:hover { text-decoration: underline; }
.notes-area { display: none; margin-top: 10px; }

/* ═══════════════════════════════════════════
   DASHBOARD FOCUS ITEMS — ROUNDER
═══════════════════════════════════════════ */
.focus-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: var(--surface-low);
  transition: background .15s ease;
}
.focus-item:last-child { margin-bottom: 0; }
.focus-item:hover { background: var(--surface-mid); }
.focus-item span { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }

/* ═══════════════════════════════════════════
   CHECK-IN CARD — ROUNDER
═══════════════════════════════════════════ */
.checkin-card {
  background: var(--surface);
  border: 2px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.checkin-q { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; }
.emoji-row { display: flex; gap: 10px; margin-bottom: 16px; }
.emoji-btn {
  width: 42px; height: 42px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.emoji-btn:hover, .emoji-btn.sel { border-color: var(--brand); background: var(--brand-subtle); transform: scale(1.08); }

/* ═══════════════════════════════════════════
   PAGE HEADERS — MUCH BIGGER TITLES
═══════════════════════════════════════════ */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 20px; }
.page-title {
  font-size: 32px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.page-sub { font-size: 15px; color: var(--text-muted); line-height: 1.5; }
.tracker-metrics { grid-template-columns: repeat(4,1fr); margin-bottom: 18px; }

/* Page content wrapper */
.page-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════
   VIEW TOGGLE — BIGGER
═══════════════════════════════════════════ */
.view-toggle {
  display: flex; background: var(--surface-low);
  border-radius: var(--radius-pill); padding: 5px; gap: 3px;
}
.view-toggle-btn {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none; background: transparent;
  color: var(--text-muted); cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.view-toggle-btn.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.view-toggle-btn i { font-size: 16px; }

/* ═══════════════════════════════════════════
   KANBAN BOARD — ROUNDER
═══════════════════════════════════════════ */
/* ── Pipeline (Asana-style board) ── */
.kanban-board {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 2px 2px 18px; align-items: stretch;
  min-height: calc(100vh - 250px);
}
.kanban-col {
  flex: 0 0 280px; min-width: 240px; align-self: stretch;
  background: var(--surface-low);
  border-radius: 16px;
  padding: 12px 12px 14px; display: flex; flex-direction: column;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
}
.kanban-col-header {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 2px 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.kanban-col-header .kc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--stage, var(--brand)); flex-shrink: 0; }
.kanban-col-name { font-size: 13px; font-weight: 700; color: var(--text-primary); letter-spacing: -.01em; }
.kanban-col-count {
  font-size: 11.5px; font-weight: 700; color: var(--text-muted);
  background: var(--surface-mid);
  padding: 2px 9px; border-radius: var(--radius-pill);
}
.kc-add-top {
  margin-left: auto; width: 26px; height: 26px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text-muted);
  border-radius: 8px; cursor: pointer; transition: background .12s, color .12s;
}
.kc-add-top i { font-size: 17px; }
.kc-add-top:hover { background: var(--surface-mid); color: var(--stage, var(--brand)); }

.kanban-cards { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 48px; overflow-y: auto; }
.kanban-card {
  position: relative; background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--stage, var(--border));
  padding: 13px 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20,20,40,.05);
  transition: box-shadow .18s ease, transform .18s ease;
  user-select: none;
}
.kanban-card:hover { box-shadow: 0 8px 20px rgba(20,20,40,.1); transform: translateY(-1px); }
.kanban-card:active { cursor: grabbing; }
.kc-top { display: flex; align-items: flex-start; gap: 10px; }
.kc-avatar {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px;
  background: var(--stage, var(--brand)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.kc-titles { min-width: 0; flex: 1; }
.kanban-card-company { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card-role { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.kc-pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--stage, var(--brand));
  background: color-mix(in srgb, var(--stage, var(--brand)) 14%, transparent);
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.kc-date { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.kc-date i { font-size: 13px; }
.kc-next { display: flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 11.5px; color: var(--text-secondary); }
.kc-next i { font-size: 13px; color: var(--coral, #FF6B5B); flex-shrink: 0; }
.kanban-empty { font-size: 12px; color: var(--text-muted); text-align: center; padding: 20px 8px; border: 1.5px dashed var(--border); border-radius: 12px; }
.kanban-add-form {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  margin-bottom: 4px;
}
.kanban-add-form {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   WEEKLY SNAPSHOT
═══════════════════════════════════════════ */
.week-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.week-stat-cell {
  background: var(--surface-low); border-radius: var(--radius-md);
  padding: 18px; position: relative;
}
.week-stat-num { font-size: 32px; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 8px; }
.week-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.week-stat-inc {
  position: absolute; top: 12px; right: 12px;
  background: none; border: 1px solid var(--border);
  border-radius: 10px;
  width: 26px; height: 26px;
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; font-family: inherit; padding: 0;
}
.week-stat-inc:hover { border-color: var(--brand); color: var(--brand); }
.week-context { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════
   SKELETONS
═══════════════════════════════════════════ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card {
  height: 90px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface-low) 25%, var(--surface-mid) 50%, var(--surface-low) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}
.skeleton-pill {
  flex: 0 0 180px; height: 130px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface-low) 25%, var(--surface-mid) 50%, var(--surface-low) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}

/* ═══════════════════════════════════════════
   TOOLTIPS — ROUNDER
═══════════════════════════════════════════ */
.info-tip {
  position: relative; display: inline-flex; align-items: center;
  cursor: help; color: var(--text-muted); font-size: 15px;
  margin-left: 5px; vertical-align: middle;
}
.info-tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); left: -8px;
  background: var(--text-primary); color: #fff;
  font-size: 13px; font-weight: 400;
  padding: 10px 16px; border-radius: var(--radius-sm);
  white-space: normal; width: 260px; line-height: 1.5;
  opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 200;
  box-shadow: var(--shadow-lg); text-align: left;
}
.info-tip::before {
  content: '';
  position: absolute; bottom: calc(100% + 6px); left: 8px;
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
  opacity: 0; transition: opacity .2s; z-index: 200;
}
.info-tip:hover::after, .info-tip:hover::before { opacity: 1; }
/* Downward variant for tooltips near the top of the page (would clip if opened up). */
.info-tip.tip-below::after { top: calc(100% + 10px); bottom: auto; }
.info-tip.tip-below::before {
  top: calc(100% + 6px); bottom: auto;
  border-top-color: transparent; border-bottom-color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   MODALS — ROUNDER
═══════════════════════════════════════════ */
#match-detail-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  z-index: 1000;
}
.match-modal-inner {
  background: #fff; max-width: 560px;
  width: calc(100% - 32px);
  padding: 36px; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-height: 80vh; overflow-y: auto;
}

/* Profile settings */
.ps-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
/* Roomier profile & settings sections (launch polish) */
#page-profile .card, #page-settings .card { margin-bottom: 24px !important; padding: 30px 32px; }
#page-profile .card-title, #page-settings .card-title { margin-bottom: 24px; }

/* ═══════════════════════════════════════════
   DRAWER / DETAIL PANEL — ROUNDER INPUTS
═══════════════════════════════════════════ */
.drawer-section { margin-bottom: 26px; }
.drawer-section:last-child { margin-bottom: 0; }
.drawer-section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-mid);
}
.drawer-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.drawer-field label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.drawer-field input, .drawer-field select, .drawer-field textarea {
  font-size: 14px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--surface-low); color: var(--text-primary);
  font-family: inherit; transition: all .2s;
  height: 48px;
}
.drawer-field input:focus, .drawer-field select:focus, .drawer-field textarea:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.drawer-field textarea { resize: vertical; min-height: 90px; height: auto; }

.btn-detail {
  font-size: 12px; padding: 6px 14px; white-space: nowrap;
  background: var(--surface-low); color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all .15s;
}
.btn-detail:hover { border-color: var(--brand); color: var(--brand); }

/* Details panel (dp-*) */
.dp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.dp-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
}
.dp-input {
  font-size: 14px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--surface-low); color: var(--text-primary);
  font-family: inherit; width: 100%; box-sizing: border-box;
  transition: all .2s;
  height: 48px;
}
.dp-input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-glow); }
.dp-section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-mid);
}
.btn-details-link {
  background: none; border: none; color: var(--brand);
  font-size: 13px; cursor: pointer; font-weight: 600;
  padding: 0; text-decoration: underline; font-family: inherit;
}
.btn-details-link:hover { color: var(--brand-hover); }

/* ═══════════════════════════════════════════
   FIND MY PATH DASHBOARD — ROUNDER
═══════════════════════════════════════════ */
.path-phase-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px; margin-bottom: 14px;
  background: var(--surface-low); opacity: 0.6;
  transition: all .25s;
}
.path-phase-card.active {
  opacity: 1; background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-glow);
}
.path-phase-card.complete {
  opacity: 0.75; background: var(--surface-low);
  border-color: var(--success);
}
.path-phase-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.path-phase-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.path-phase-duration { font-size: 12px; color: var(--text-muted); }
.path-phase-prog {
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-subtle); border-radius: var(--radius-pill);
  padding: 4px 14px;
}
.path-phase-tasks { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.path-task-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; padding: 6px 0;
}
.path-task-row:hover { color: var(--text-primary); }
.path-task-row.done { color: var(--text-muted); text-decoration: line-through; }
.path-task-row .task-cb { flex-shrink: 0; margin-top: 1px; }

/* Company avatar */
.company-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.tracker-co-cell { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.tracker-co-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* No-response warning */
.no-response-warn {
  font-size: 11px; font-weight: 600; color: var(--error);
  display: block; margin-top: 5px; letter-spacing: .02em;
}

/* Triangle card */
@keyframes triCardPulse {
  0%,100% { opacity: 0.95; }
  50%     { opacity: 1; box-shadow: 0 0 0 4px var(--brand-glow); }
}
.tri-card-inner { border-radius: var(--radius-md); padding: 4px; }
.tri-card-inner.tri-pulse { animation: triCardPulse 3s ease-in-out infinite; }

/* Milestone toast */
.milestone-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--btn-primary); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  opacity: 0; white-space: nowrap; pointer-events: none;
}
.milestone-toast.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { width: 64px; padding: 12px 0; }
  .sb-appname, .sb-bottom, .nav-item span { display: none; }
  .nav-item { width: 48px; padding: 10px 4px 8px; }
  .nav-item i { font-size: 20px; }
  .sb-logo { width: 32px; height: 32px; }
  .two-col, .dash-grid { grid-template-columns: 1fr; }
  .right-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .coaching-grid { grid-template-columns: 1fr; }
  .resume-layout { grid-template-columns: 1fr; }
  #resume-editor-panel { height: auto; }
  #resume-preview-wrapper { height: auto; }
  .content { padding: 24px; }
  .topbar { padding: 0 24px; }
}
@media (max-width: 600px) {
  .right-col { grid-template-columns: 1fr; }
  .content { padding: 16px 20px; }
  .pipeline-bar { grid-template-columns: 1fr; }
  .li-row-2col { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
  .dash-greeting { font-size: 22px; }
  .pipeline-bar-num { font-size: 32px; }
}

/* ═══════════════════════════════════════════
   PRINT
═══════════════════════════════════════════ */
@media print {
  .sidebar, .topbar, .btn-primary, .btn-ghost, .nudge-btn,
  .kanban-add-btn, .icon-btn, .streak-pill, .view-toggle { display: none !important; }
  .shell { display: block; }
  .main { overflow: visible; }
  .content { padding: 0; overflow: visible; }
  .card, .dash-section { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  body { background: #fff; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LUNA LIGHT EDITORIAL LAYER — award-grade dashboard, sky primary
═══════════════════════════════════════════════════════════════════════ */
h1, h2, h3,
.page-title, .dash-greeting, .card-title, .topbar-title,
.pipeline-bar-num, .dash-section-title {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
}
.sb-appname { font-family: 'Quicksand', 'Inter Tight', sans-serif; }
.page-title { font-weight: 700; letter-spacing: -0.01em; }
.card-title, .dash-section-title { font-weight: 600; }

/* cards: hairline + soft depth */
.card {
  border: 1px solid #E9EBF2;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20,20,35,0.04), 0 8px 24px rgba(20,20,35,0.05);
}
.stat-chip {
  border: 1px solid #E9EBF2 !important;
  box-shadow: 0 1px 2px rgba(20,20,35,0.04), 0 8px 24px rgba(20,20,35,0.05);
}
.btn-primary {
  background: var(--btn-primary);
  color: #14395C;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 1px 2px rgba(20,20,35,0.08);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: #0F2E4C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47,151,239,0.3);
}
.btn-secondary, .btn-ghost { font-family: 'Quicksand', sans-serif; font-weight: 600; }

/* sidebar: 232px, icon + label rows */
.sidebar {
  background: #FFFFFF;
  border-right: 1px solid #E9EBF2;
  align-items: stretch;
  padding: 22px 14px 14px;
}
.sb-top { align-items: stretch; }
.sb-brand {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  margin-bottom: 26px;
}
.sb-logo { width: 30px; height: 30px; border-radius: 8px; }
.sb-appname {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0.01em;
}
.nav-section { align-items: stretch; gap: 3px; }
.nav-item {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
}
.nav-item span {
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Quicksand', 'Inter Tight', sans-serif;
  white-space: nowrap;
  overflow: visible;
  text-transform: none;
  letter-spacing: 0;
}
.nav-item i { font-size: 20px; width: 22px; text-align: center; }
.nav-item:hover { background: var(--surface-low); color: var(--text-primary); }
.nav-item.active {
  background: #EFF6FE;
  color: var(--text-primary);
  box-shadow: none;
}
.nav-item.active i { color: #1D7FD6; }
.sb-bottom { width: 100%; padding: 12px 10px 0; }
.sb-progress { justify-content: flex-start; }

/* topbar blends into canvas */
.topbar { background: transparent; border-bottom: 1px solid #E9EBF2; }

/* dashboard grid: columns align independently, no dead space */
.dash-grid { align-items: start; }

/* The Luna way: full-width strip */
.luna-way-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 900px) { .luna-way-strip { grid-template-columns: 1fr; } }
.luna-way-item { display: flex; gap: 12px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.luna-way-dot {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: #EFF6FE; color: #1D7FD6;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-top: 1px; border: none;
}
.luna-way-item b { color: var(--text-primary); display: block; margin-bottom: 2px; font-family: 'Quicksand', sans-serif; }

/* Tech dictionary (editorial) */
.dict-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.dict-search {
  flex: 1; min-width: 220px;
  height: 46px; padding: 0 18px;
  border: 1px solid #E9EBF2; border-radius: 12px;
  font-size: 14px; font-family: 'Inter Tight', sans-serif;
  background: #fff; color: var(--text-primary);
  outline: none;
  box-shadow: 0 1px 2px rgba(20,20,35,0.04);
}
.dict-search:focus { border-color: #5BB8FF; box-shadow: 0 0 0 3px rgba(91,184,255,0.18); }
.dict-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dict-cat {
  padding: 8px 16px; border-radius: 9999px;
  border: 1px solid #E9EBF2;
  background: #fff; color: var(--text-secondary);
  font-family: 'Quicksand', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.dict-cat:hover { border-color: #5BB8FF; color: #1D7FD6; }
.dict-cat.active { background: #1D7FD6; border-color: #1D7FD6; color: #fff; }
.dict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dict-card {
  background: #fff; border: 1px solid #E9EBF2; border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(20,20,35,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dict-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,20,35,0.08); }
.dict-term { font-family: 'Quicksand', sans-serif; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.dict-full { font-size: 12px; color: #1D7FD6; font-weight: 600; margin: 1px 0 7px; }
.dict-def { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.dict-tag {
  display: inline-block; margin-top: 10px;
  font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 9999px; background: #EEF1F7; color: #5D5B66;
}
.dict-tag.t-industry { background: #E3F1FF; color: #1D5E96; }
.dict-tag.t-roles { background: #FFE9E5; color: #B23F33; }
.dict-empty { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════════
   PHASE 2 — role-match cards with circular fit-ring tiles (Jobright vibe)
═══════════════════════════════════════════════════════════════════════ */
.match-card {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid #E9EBF2; border-radius: 18px;
  background: #fff; overflow: hidden; padding: 0;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(20,20,35,0.04);
  transition: box-shadow .25s ease, transform .2s ease, border-color .2s ease;
}
.match-card:hover { box-shadow: 0 10px 30px rgba(20,20,35,0.09); transform: translateY(-2px); border-color: #DDE2EC; }
.match-card.best, .match-card.chosen-role { background: #fff; border-color: #E9EBF2; }
.match-body { flex: 1; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; }
.match-role-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.match-role { font-family: 'Inter Tight', sans-serif; font-size: 17px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.match-focus-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #14395C;
  background: #EFF6FE; border: 1px solid #D6EAFF; border-radius: 999px; padding: 3px 10px;
}
.match-why-line { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin: 2px 0 12px; }
.match-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.match-tag {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  background: #F1F4F9; border-radius: 999px; padding: 5px 12px;
}
.match-tag-soft { background: #FFF1EF; color: #B23F33; }
.match-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; align-items: center; }
.btn-soft {
  font-family: 'Inter Tight', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--text-primary); background: #F1F4F9; border: none;
  border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .15s;
}
.btn-soft:hover { background: #E6EAF2; }
.btn-link-muted {
  font-family: 'Inter Tight', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); background: none; border: none; cursor: pointer; padding: 8px 6px;
}
.btn-link-muted:hover { color: var(--text-secondary); }

/* dark gradient ring tile */
.match-ring-tile {
  position: relative; flex: 0 0 152px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(155deg, #24374E 0%, #0F1B2A 100%);
}
.match-ring-tile.tier-mid { background: linear-gradient(155deg, #2B2F55 0%, #14162B 100%); }
.match-ring-tile.tier-lo  { background: linear-gradient(155deg, #34404E 0%, #171E27 100%); }
.match-ring { width: 82px; height: 82px; }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 6; }
.ring-fg {
  fill: none; stroke: #5BB8FF; stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 163.36;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1);
}
.tier-mid .ring-fg { stroke: #9C8CFF; }
.tier-lo  .ring-fg { stroke: #FFC24B; }
.match-ring-num {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  text-align: center; font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 22px; line-height: 1;
}
.match-ring-num .pct-sign { font-size: 13px; font-weight: 600; opacity: .8; }
.match-ring-tier {
  position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

/* role-facet chip row above matches */
.facet-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.facet-chip {
  font-family: 'Inter Tight', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary); background: #fff; border: 1px solid #E9EBF2;
  border-radius: 999px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 6px;
}
.facet-chip i { font-size: 14px; color: #1D7FD6; }

/* gamified "complete your setup" card */
.setup-card { }
.setup-progress-track { height: 8px; border-radius: 999px; background: #EDF0F5; overflow: hidden; margin: 10px 0 4px; }
.setup-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#5BB8FF,#2F97EF); width: 0; transition: width 1s cubic-bezier(.22,1,.36,1); }
.setup-pct { font-family:'Inter Tight',sans-serif; font-size: 12px; font-weight: 700; color: #1D7FD6; }
.setup-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; font-size: 13.5px; color: var(--text-secondary); }
.setup-item + .setup-item { border-top: 1px solid #F0F2F6; }
.setup-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #D7DCE6; display: flex; align-items: center; justify-content: center; color: transparent;
}
.setup-item.done .setup-check { background: #5BB8FF; border-color: #5BB8FF; color: #14395C; }
.setup-item.done { color: var(--text-primary); }
.setup-item .setup-go { margin-left: auto; font-size: 12px; font-weight: 600; color: #1D7FD6; text-decoration: none; white-space: nowrap; }

@media (max-width: 560px) {
  .match-card { flex-direction: column; }
  .match-ring-tile { flex-basis: auto; padding: 20px; flex-direction: row; gap: 14px; justify-content: flex-start; }
  .match-ring-num { position: static; transform: none; text-align: left; }
  .match-ring-tier { position: static; text-align: left; margin-left: 4px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Greeting banner with peeking Luna
═══════════════════════════════════════════════════════════════════════ */
.greet-card {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #EAF3FE 0%, #FFF6E6 82%);
  border: 1px solid #E9EBF2; border-radius: 18px;
  padding: 26px 30px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: 0 1px 2px rgba(20,20,35,0.04), 0 8px 24px rgba(20,20,35,0.05);
}
.greet-hi { font-family: 'Inter Tight', sans-serif; font-size: 24px; font-weight: 700; color: #1B1B24; margin-bottom: 5px; letter-spacing: -0.01em; }
.greet-sub { font-size: 13.5px; color: #5D5B66; margin-bottom: 14px; max-width: 460px; }
.greet-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EFF6FE; border: 1px solid #D6EAFF; border-radius: 20px;
  padding: 6px 16px; font-size: 13px; font-weight: 600; color: #1D7FD6;
}
.greet-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0; align-self: stretch; }
.greet-date { font-size: 12px; color: #9AA0AA; white-space: nowrap; }
.greet-cat {
  width: 150px; height: 104px; margin: 0 4px -26px 0; flex-shrink: 0;
  overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  align-self: flex-end;
}
.greet-cat video {
  width: 168px; height: 168px; object-fit: cover; object-position: center 56%;
  mix-blend-mode: multiply; display: block;
  animation: catPeek 0.85s cubic-bezier(0.34,1.5,0.5,1) 0.2s both;
}
@keyframes catPeek { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 640px) {
  .greet-card { padding: 20px 22px; }
  .greet-cat { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Setup card peeking from behind the greeting banner's top edge
═══════════════════════════════════════════════════════════════════════ */
.setup-peek-wrap { position: relative; padding-top: 46px; margin-bottom: 4px; }
.setup-peek-wrap .dash-greeting-bar { position: relative; z-index: 2; }
/* the greeting banner sits on top; its own greet-card margin-bottom spaces the grid */
.setup-peek-card {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  padding: 0; overflow: hidden;
  background: #fff; border: 1px solid #E4E7F0; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(20,20,35,0.08);
  animation: peekRise .55s cubic-bezier(.34,1.4,.5,1) .35s both;
}
@keyframes peekRise { from { transform: translateY(44px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.setup-peek-tab {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  height: 46px; padding: 0 44px 0 18px; user-select: none;
}
.setup-peek-title { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 13.5px; color: #1B1B24; display: inline-flex; align-items: center; gap: 8px; }
.setup-peek-tab .setup-pct { margin-left: auto; }
.setup-peek-caret { color: #9AA0AA; font-size: 16px; transition: transform .25s ease; }
.setup-peek-wrap.expanded .setup-peek-caret { transform: rotate(180deg); }
.setup-peek-body { padding: 0 18px 16px; max-height: 150px; overflow: hidden; }
.setup-peek-close {
  position: absolute; top: 9px; right: 10px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
  background: #F1F3F8; color: #7A7F8C; display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; transition: background .15s ease, color .15s ease;
}
.setup-peek-close:hover { background: #E6E9F1; color: #1B1B24; }
/* expanded: card drops into flow above the banner and lifts forward */
.setup-peek-wrap.expanded { padding-top: 0; }
.setup-peek-wrap.expanded .setup-peek-card { position: relative; z-index: 3; margin-bottom: 14px; box-shadow: 0 14px 34px rgba(20,20,35,0.12); animation: none; }
.setup-peek-wrap.expanded .setup-peek-body { max-height: 320px; }
@media (prefers-reduced-motion: reduce) {
  .setup-peek-card { animation: none; }
}
