/* ============================================================
   HopeBridge CV Builder — premium shell (matches Career Path v6)
   ============================================================ */

:root {
  --page: radial-gradient(900px 620px at 8% -5%, rgba(31,122,110,.38), transparent 60%),
          radial-gradient(860px 640px at 100% 105%, rgba(92,104,220,.26), transparent 60%), #060b1a;
  --shell: rgba(14,22,45,.86);
  --card: #111a33;
  --surface: #17223f;
  --surface2: #1e2b4e;
  --inset: #0b1226;
  --line: rgba(255,255,255,.07);
  --line2: rgba(255,255,255,.13);
  --tx: #eaf0fa;
  --mut: #8c98b3;
  --teal: #1F7A6E;
  --teal2: #4fd1b8;
  --teal-soft: rgba(79,209,184,.12);
  --gold: #d9bf6a;
  --gold2: #e6ca65;
  --ink: #1F7A6E;
  --ink-h: #25897b;
  --c1: 79,209,184;
  --c2: 96,165,250;
  --c3: 217,191,106;
  --c4: 140,150,245;
  --danger: #ef6b6b;
  --warn: #f59e0b;
  --ok: #34d399;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.3,.7,.3,1);
}

[data-theme="light"] {
  --page: radial-gradient(900px 620px at 0% 0%, #c9efe6, transparent 60%),
          radial-gradient(900px 640px at 100% 100%, #d8d5f8, transparent 60%), #e6edf8;
  --shell: rgba(244,247,252,.82);
  --card: #fff;
  --surface: #f3f6fb;
  --surface2: #e8edf6;
  --inset: #eef2f8;
  --line: rgba(15,26,51,.08);
  --line2: rgba(15,26,51,.15);
  --tx: #0f1a33;
  --mut: #667391;
  --teal2: #12806f;
  --teal-soft: rgba(31,122,110,.1);
  --gold: #a8860f;
  --gold2: #b8960f;
  --ink: #0f1a33;
  --ink-h: #1b2a4d;
  --c1: 31,122,110;
  --c2: 37,99,235;
  --c3: 168,134,15;
  --c4: 99,102,241;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 30px 80px -40px rgba(40,50,110,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.hb-app {
  font: 15px/1.65 var(--font);
  color: var(--tx);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* ---------- Top bar ---------- */
.hb-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--shell);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.hb-back {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--mut);
  transition: .15s;
}
.hb-back:hover { background: var(--surface); color: var(--tx); }
.hb-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.hb-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75) 0 8%, transparent 30%),
              radial-gradient(circle at 50% 55%, #8aefdc, #2fb59f 55%, #1F7A6E);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff;
  flex: none;
}
.hb-brand-text h1 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.2; }
.hb-brand-text p { margin: 0; font-size: 12px; color: var(--mut); }
.hb-progress-mini {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--mut);
}
.hb-progress-mini .bar {
  width: 72px; height: 6px;
  background: var(--surface);
  border-radius: 4px; overflow: hidden;
}
.hb-progress-mini .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  border-radius: 4px;
  transition: width .35s var(--ease);
}
.hb-theme-btn {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--mut);
  background: none; border: 0; cursor: pointer;
  transition: .15s;
}
.hb-theme-btn:hover { background: var(--surface); color: var(--tx); }
.hb-theme-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .ic-moon { display: none; }
[data-theme="dark"] .ic-sun, :root:not([data-theme]) .ic-sun { display: none; }
[data-theme="light"] .ic-sun { display: block; }

/* ---------- Mobile steps ---------- */
.hb-mobile-steps {
  display: none;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--shell);
  border-bottom: 1px solid var(--line);
}
.hb-mobile-steps::-webkit-scrollbar { display: none; }
.hb-mobile-step {
  flex: none;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px; font-weight: 700;
  background: var(--surface);
  color: var(--mut);
  border: 0; cursor: pointer;
  white-space: nowrap;
}
.hb-mobile-step.is-active { background: var(--teal-soft); color: var(--teal2); box-shadow: inset 0 0 0 1.5px var(--teal2); }
.hb-mobile-step.is-done { color: var(--tx); }

/* ---------- Shell ---------- */
.hb-shell {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr) 320px;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  max-width: 1440px;
  margin: 0 auto;
}
.hb-sidebar {
  padding: 18px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  border-right: 1px solid var(--line);
}
.hb-side-section { margin-bottom: 18px; }
.hb-side-label {
  font-size: 11.5px; font-weight: 800;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0 10px 8px;
}
.hb-side-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 14px; font-weight: 700;
  color: var(--mut);
  background: none; border: 0; cursor: pointer;
  text-align: left;
  transition: .15s;
}
.hb-side-item:hover { background: var(--card); color: var(--tx); }
.hb-side-item.is-active { background: var(--card); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line); }
.hb-side-item.is-done .hb-side-dot { background: var(--teal); color: #fff; box-shadow: none; }
.hb-side-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800;
  box-shadow: inset 0 0 0 2px var(--line2);
  flex: none;
}
.hb-side-item.is-active .hb-side-dot { box-shadow: inset 0 0 0 2px var(--teal2); color: var(--teal2); }

.hb-main {
  overflow-y: auto;
  padding: 20px 24px 40px;
  scrollbar-width: thin;
}
.hb-aside {
  border-left: 1px solid var(--line);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 16px;
  overflow: hidden;
}
.hb-tips {
  background: linear-gradient(135deg, rgba(var(--c1),.14), rgba(var(--c4),.12));
  border-radius: 18px;
  padding: 16px 18px;
}
.hb-tips h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--teal2); }
.hb-tips p { margin: 0; font-size: 13.5px; color: var(--tx); opacity: .92; line-height: 1.5; }
.hb-preview-pane {
  flex: 1; min-height: 0;
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hb-preview-pane-head {
  padding: 10px 14px;
  font-size: 12.5px; font-weight: 800;
  color: var(--mut);
  border-bottom: 1px solid var(--line);
}
.hb-preview-scale {
  flex: 1; overflow: auto;
  padding: 12px;
  display: flex; justify-content: center;
}
#hbLivePreview {
  transform: scale(var(--pz, 0.42));
  transform-origin: top center;
  width: 794px;
  pointer-events: none;
}

/* ---------- Progress bar ---------- */
.hb-prog {
  height: 6px;
  background: var(--surface);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.hb-prog i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  border-radius: 4px;
  transition: width .35s var(--ease);
}

/* ---------- Cards & form ---------- */
.hb-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hb-step-count {
  font-size: 13px; font-weight: 700;
  color: var(--teal2);
  margin-bottom: 8px;
}
.hb-step-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0 0 6px;
  outline: none;
}
.hb-step-hint {
  color: var(--mut);
  margin: 0 0 22px;
  font-size: 15px;
}
.hb-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 8px;
}
.hb-field { display: flex; flex-direction: column; gap: 6px; }
.hb-field.full { grid-column: 1 / -1; }
.hb-field label {
  font-size: 13.5px; font-weight: 700;
  color: var(--tx);
}
.hb-field .req { color: var(--danger); }
.hb-field input,
.hb-field select,
.hb-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--tx);
  box-shadow: inset 0 0 0 1px var(--line2);
  outline: 0;
  transition: box-shadow .15s;
}
.hb-field input:focus,
.hb-field select:focus,
.hb-field textarea:focus {
  box-shadow: inset 0 0 0 2px var(--teal2);
}
.hb-field textarea { resize: vertical; min-height: 80px; }
.hb-help { margin: 0; font-size: 12.5px; color: var(--mut); }

/* Buttons */
.btn, .hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 99px;
  font: inherit; font-weight: 800; font-size: 14px;
  border: 0; cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .15s;
}
.btn:hover:not(:disabled), .hb-btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold, .btn-pri {
  background: var(--ink); color: #fff;
}
.btn-gold:hover:not(:disabled), .btn-pri:hover:not(:disabled) { background: var(--ink-h); }
.btn-outline {
  background: var(--card);
  color: var(--tx);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.btn-outline:hover:not(:disabled) { background: var(--surface2); }
.btn-teal {
  background: var(--teal); color: #fff;
}
.btn-teal:hover:not(:disabled) { background: #25897b; }
.btn-ghost {
  background: transparent; color: var(--mut);
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--tx); background: var(--surface); }

.hb-btn-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Template cards */
.hb-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.hb-template-card {
  text-align: left;
  background: var(--card);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  border: 0;
  transition: .2s;
  display: flex; flex-direction: column;
}
.hb-template-card:hover { box-shadow: inset 0 0 0 1.5px var(--teal2); transform: translateY(-2px); }
.hb-template-card.is-selected {
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 2px var(--teal2);
}
.hb-tpl-thumb {
  position: relative;
  height: 120px;
  background: var(--inset);
  overflow: hidden;
}
.hb-tpl-thumb i {
  position: absolute;
  display: block;
}
.hb-tpl-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.hb-tpl-name { font-weight: 800; font-size: 16px; }
.hb-tpl-tagline { font-size: 13px; color: var(--teal2); font-weight: 700; }
.hb-tpl-desc { font-size: 13.5px; color: var(--mut); margin-top: 4px; line-height: 1.45; }
.hb-tpl-best { font-size: 12.5px; color: var(--mut); margin-top: 6px; }
.hb-tpl-cta { font-size: 13.5px; font-weight: 800; color: var(--teal2); margin-top: 10px; }

/* Entry list */
.hb-entry-list { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.hb-entry-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
}
.hb-entry-actions { display: flex; gap: 4px; flex: none; }

/* Skill chips */
.hb-skill-chips { margin: 16px 0 8px; }
.hb-skill-chips-label { font-size: 13px; font-weight: 700; color: var(--mut); margin: 0 0 10px; }
.hb-skill-chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-skill-chip {
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px; font-weight: 700;
  background: var(--card);
  color: var(--mut);
  border: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line2);
  transition: .15s;
}
.hb-skill-chip:hover { box-shadow: inset 0 0 0 1.5px var(--teal2); color: var(--tx); }
.hb-skill-chip.is-on {
  background: var(--teal-soft);
  color: var(--teal2);
  box-shadow: inset 0 0 0 2px var(--teal2);
}

/* AI row */
.hb-ai-row { margin: 18px 0 8px; }
.hb-ai-note { font-size: 12.5px; color: var(--mut); margin: 8px 0 4px; }
.hb-ai-status { font-size: 13.5px; font-weight: 600; color: var(--teal2); min-height: 1.4em; }

/* ---------- Welcome ---------- */
.hb-welcome {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(12px, 4vh, 36px) 0;
  text-align: center;
}
.hb-welcome h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.hb-welcome p {
  color: var(--mut);
  font-size: 16px;
  max-width: 52ch;
  margin: 0 auto 24px;
}
.hb-welcome a { color: var(--teal2); text-decoration: underline; text-underline-offset: 2px; }
.hb-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
  text-align: left;
}
.hb-facts div {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hb-facts b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.hb-facts div { font-size: 13.5px; color: var(--mut); }
.hb-welcome .actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* ---------- Finish dashboard ---------- */
.hb-dash { max-width: 820px; }
.hb-dash-header {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
}
.hb-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.hb-stat {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hb-stat .num {
  font-size: 24px; font-weight: 800;
  line-height: 1.1;
  color: var(--tx);
}
.hb-stat .lbl {
  font-size: 12.5px; color: var(--mut);
  margin-top: 4px;
}
.hb-score-bars {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hb-score-bars h3 {
  margin: 0 0 14px;
  font-size: 15px; font-weight: 800;
}
.hb-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13.5px;
}
.hb-bar-row .label { font-weight: 600; }
.hb-bar-row .pts { color: var(--mut); font-weight: 700; }
.hb-bar-track {
  grid-column: 1 / -1;
  height: 7px;
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
}
.hb-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s var(--ease);
}
.hb-improvements {
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hb-improvements h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.hb-tip-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.hb-tip-row:last-child { border-bottom: 0; }
.hb-next-steps {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 20px 0 12px;
}

/* Jobs */
.hb-jobs { display: flex; flex-direction: column; gap: 10px; }
.hb-job {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hb-job h4 { margin: 0 0 4px; font-size: 15.5px; }
.hb-job .meta { font-size: 13.5px; color: var(--mut); margin-bottom: 12px; }
.hb-job .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pass card */
.hb-pass {
  background: var(--surface);
  border-radius: 22px;
  padding: 22px;
  margin-top: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hb-pass-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.hb-pass-badge {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--teal-soft);
  display: grid; place-items: center;
  font-size: 18px;
  flex: none;
}
.hb-pass-title { margin: 0; font-size: 17px; font-weight: 800; }
.hb-pass-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--mut); }
.hb-pass-price { margin-bottom: 14px; }
.hb-pass-amount { font-size: 28px; font-weight: 800; color: var(--gold2); }
.hb-pass-terms { font-size: 13.5px; color: var(--mut); margin-left: 8px; }
.hb-pass-list { list-style: none; padding: 0; margin: 0 0 18px; }
.hb-pass-list li {
  display: flex; gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}
.hb-pass-list .tick { color: var(--teal2); font-weight: 800; flex: none; }
.hb-pass-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.hb-pass-fine { font-size: 12.5px; color: var(--mut); margin: 0; line-height: 1.5; }
.hb-unlock-row {
  display: flex; gap: 8px;
  margin-top: 12px;
}
.hb-unlock-row input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--card);
  color: var(--tx);
  box-shadow: inset 0 0 0 1px var(--line2);
  font: inherit;
}

/* Toast */
.hb-toast {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  z-index: 99;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px);
}
.hb-toast button {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 0;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* FAB + Preview modal */
.hb-fab-preview {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 30;
  padding: 12px 20px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border: 0;
  box-shadow: 0 12px 32px -8px rgba(31,122,110,.5);
  display: none;
}
.hb-preview-modal {
  position: fixed; inset: 0;
  background: rgba(6,11,26,.72);
  z-index: 80;
  display: grid; place-items: center;
  padding: 16px;
}
.hb-preview-modal[hidden] { display: none; }
.hb-preview-sheet {
  background: var(--card);
  border-radius: 20px;
  width: min(920px, 100%);
  max-height: 92vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hb-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: #0b1430;
  color: #fff;
}
.hb-preview-head p { margin: 0; font-weight: 800; }
.hb-preview-body {
  flex: 1; overflow: auto;
  padding: 20px;
  background: var(--inset);
  display: flex; justify-content: center;
}
.hb-preview-body #cvStage {
  transform: scale(var(--pz-m, 0.85));
  transform-origin: top center;
  width: 794px;
}
.hb-preview-actions {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* Inline messages */
.hb-inline-msg {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  margin: 12px 0;
}
.hb-inline-msg.info { background: var(--teal-soft); color: var(--tx); }
.hb-inline-msg.error { background: rgba(239,107,107,.12); color: var(--danger); }

/* Apply modal (light restyle to match) */
.hope-apply-overlay {
  position: fixed; inset: 0;
  background: rgba(6,11,26,.7);
  z-index: 90;
  display: grid; place-items: center;
  padding: 16px;
}
.hope-apply-card {
  background: var(--card);
  border-radius: 22px;
  width: min(440px, 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hope-apply-head {
  padding: 20px 22px 16px;
  position: relative;
  background: linear-gradient(135deg, rgba(var(--c1),.18), rgba(var(--c4),.12));
}
.hope-apply-badge {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  color: var(--teal2);
  margin-bottom: 6px;
}
.hope-apply-title { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.hope-apply-target strong { display: block; }
.hope-apply-target span { font-size: 13.5px; color: var(--mut); }
.hope-apply-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 0; color: var(--mut);
  font-size: 20px; cursor: pointer;
}
.hope-apply-body { padding: 18px 22px 22px; }
.hope-field-group { margin-bottom: 16px; }
.hope-field-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.hope-file-drop {
  position: relative;
  border-radius: 14px;
  background: var(--surface);
  padding: 18px;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line2);
}
.hope-file-drop input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.hope-file-text { font-size: 14px; color: var(--mut); }
.hope-file-name { color: var(--teal2); font-weight: 700; }
.hope-apply-btn {
  width: 100%;
  padding: 13px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border: 0; cursor: pointer;
  font-size: 15px;
}

/* Print */
@media print {
  .hb-topbar, .hb-sidebar, .hb-aside, .hb-mobile-steps, .hb-fab-preview,
  .hb-dash-header, .hb-next-steps, .hb-pass, .hb-improvements { display: none !important; }
  .hb-main { padding: 0; }
}

/* Responsive */
@media (max-width: 1100px) {
  .hb-shell { grid-template-columns: 240px minmax(0,1fr); }
  .hb-aside { display: none; }
  .hb-fab-preview { display: inline-flex; }
}
@media (max-width: 800px) {
  .hb-shell { grid-template-columns: 1fr; height: auto; min-height: calc(100dvh - 110px); }
  .hb-sidebar { display: none; }
  .hb-mobile-steps { display: flex; }
  .hb-main { padding: 14px 14px 80px; }
  .hb-field-grid { grid-template-columns: 1fr; }
  .hb-stat-grid { grid-template-columns: 1fr 1fr; }
  .hb-facts { grid-template-columns: 1fr; }
  .hb-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}