/* ==========================================================================
   CAREVO Jobs — Design System
   Brand: Career + Evolution. Modern SaaS, card-based, teal + gold.
   ========================================================================== */

:root {
  /* Brand */
  --teal-900: #003b35;
  --teal-700: #005149; /* primary dark teal */
  --teal-500: #00786c; /* light teal */
  --teal-100: #d9efeb;
  --teal-050: #eef7f5;

  --gold-600: #d99d00;
  --gold-500: #f5b501; /* CTA */
  --gold-100: #fdf0cc;

  --navy: #2427ab;
  --burgundy: #791e3f;
  --gold-brown: #b58d47;
  --blue-purple: #5a6fec;

  /* Neutrals */
  --ink: #14201e;
  --ink-soft: #4a5856;
  --muted: #7c8a87;
  --line: #e4e9e8;
  --line-soft: #eef1f0;
  --bg: #f6f8f8;
  --surface: #ffffff;

  --success: #1f8a5b;
  --warning: #c98a00;
  --danger: #c0392b;
  --info: #2563eb;

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 30, 0.06);
  --shadow: 0 6px 20px rgba(20, 32, 30, 0.08);
  --shadow-lg: 0 18px 50px rgba(20, 32, 30, 0.14);

  --container: 1140px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--teal-500); text-decoration: none; }
a:hover { color: var(--teal-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
small { color: var(--muted); }
hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--teal-100); outline-offset: 1px; }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-900); color: #fff; }
.btn-cta { background: var(--gold-500); color: #2a2300; }
.btn-cta:hover { background: var(--gold-600); color: #2a2300; }
.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal-500); color: var(--teal-700); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3d2cd; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }

/* ----------------------------------------------------------------- Cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.5rem; }

/* ------------------------------------------- Formatted job content (jc) */
.jc-body { color: var(--text); line-height: 1.7; font-size: .95rem; }
.jc-body > *:first-child { margin-top: 0; }
.jc-body > *:last-child { margin-bottom: 0; }
.jc-body p { margin: 0 0 .85rem; }
.jc-body .jc-h {
  margin: 1.35rem 0 .6rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--primary);
  padding-bottom: .35rem; border-bottom: 1px solid var(--line);
}
.jc-body .jc-h:first-child { margin-top: 0; }
.jc-body .jc-list { margin: 0 0 .9rem; padding: 0; list-style: none; }
.jc-body .jc-list li {
  position: relative; padding: .15rem 0 .15rem 1.4rem; margin-bottom: .35rem;
}
.jc-body .jc-list li::before {
  content: ""; position: absolute; left: .35rem; top: .7rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

/* ----------------------------------------------- Company info sidebar */
.company-info-list { list-style: none; margin: 0; padding: 0; }
.company-info-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: .875rem;
}
.company-info-list li:last-child { border-bottom: 0; }
.company-info-list .ci-label { color: var(--text-muted); flex-shrink: 0; }
.company-info-list .ci-value { color: var(--text); font-weight: 600; text-align: right; }
.company-info-links {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem;
}
.company-info-links a {
  font-size: .8rem; font-weight: 600; padding: .3rem .7rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--primary);
  text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
.company-info-links a:hover { background: var(--primary-50, rgba(13,148,136,.08)); border-color: var(--primary); }
.card-hover { transition: box-shadow .15s ease, transform .15s ease; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ----------------------------------------------------------------- Badges */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; padding: .25rem .6rem;
  border-radius: 999px; background: var(--teal-050); color: var(--teal-700);
}
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-navy { background: #e6e7fb; color: var(--navy); }
.badge-muted { background: var(--line-soft); color: var(--muted); }
.badge-success { background: #e2f3ea; color: var(--success); }
.badge-warning { background: #fbf0d8; color: var(--warning); }
.badge-danger { background: #fbe5e2; color: var(--danger); }

/* ----------------------------------------------------------------- Forms */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.input, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="url"], input[type="tel"],
select, textarea {
  width: 100%; padding: .7rem .85rem; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100);
}
.field-error { color: var(--danger); font-size: .82rem; margin-top: .3rem; }
.input.has-error, input.has-error, select.has-error, textarea.has-error { border-color: var(--danger); }
.help-text { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .6rem; }
.checkbox-row input { width: auto; margin-top: .2rem; }
.checkbox-row label { font-weight: 500; margin: 0; }

/* ----------------------------------------------------------------- Alerts */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: #e2f3ea; color: #14613f; border-color: #bfe3cf; }
.alert-error { background: #fbe5e2; color: #8a2418; border-color: #f0c4bd; }
.alert-info { background: var(--teal-050); color: var(--teal-700); border-color: var(--teal-100); }
.alert-warning { background: #fbf0d8; color: #7a5600; border-color: #f0dca7; }

/* ----------------------------------------------------------------- Layout */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .85rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }

/* ----------------------------------------------------------------- Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--teal-700); }
.brand:hover { color: var(--teal-900); }
.brand-logo { display: block; height: 40px; width: auto; }
@media (max-width: 600px) { .brand-logo { height: 34px; } }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); color: #fff; font-weight: 800;
}
.brand .sub { font-weight: 600; color: var(--gold-600); font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--teal-700); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* Avatar / dropdown */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-500); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.avatar.avatar-has-img { background: none; padding: 0; overflow: hidden; }
.avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .4rem; display: none; z-index: 60;
}
.dropdown-menu.open { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: block; width: 100%; text-align: left; padding: .6rem .75rem; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: .92rem; background: none; border: none; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--line-soft); color: var(--teal-700); }

/* ----------------------------------------------------------------- Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, var(--teal-100), transparent), var(--teal-050); padding: 4.5rem 0; }
.hero h1 { font-size: 2.8rem; max-width: 16ch; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 50ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--teal-500); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .8rem; }

/* ----------------------------------------------------------------- Stats */
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--teal-700); }
.stat .label { color: var(--muted); font-size: .9rem; }

/* ----------------------------------------------------------------- Job card */
.jobs-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.jobs-sort { display: flex; align-items: center; gap: .5rem; margin: 0; }
.jobs-sort label { white-space: nowrap; }
.jobs-sort .select-sm { min-width: 150px; }
.job-card { display: flex; flex-direction: column; gap: .6rem; position: relative; }
.job-card .title { font-size: 1.1rem; font-weight: 700; color: var(--ink); padding-right: 3.6rem; }
.job-card .company { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .85rem; }
.job-meta span { display: inline-flex; align-items: center; gap: .3rem; }
/* Layer popup (modal) */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 4vh 1rem; background: rgba(20, 32, 30, .5); backdrop-filter: blur(2px); overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-overlay .modal { width: 100%; max-width: 680px; background: var(--surface, #fff); border-radius: var(--radius, 14px); box-shadow: var(--shadow-lg); animation: modal-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }
.apply-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.apply-modal-body { padding: 1.2rem 1.3rem 1.4rem; }
.modal-close { background: transparent; border: none; font-size: 1.1rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .35rem .5rem; border-radius: var(--radius-sm); }
.modal-close:hover { background: var(--line-soft); color: var(--ink); }
[data-apply-modal].is-loading { opacity: .65; pointer-events: none; }
.apply-sent-ico { width: 52px; height: 52px; margin: .25rem 0 1rem; border-radius: 50%; background: #e2f3ea; color: var(--success, #1f9d57); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; }
.apply-track-q { font-size: 1rem; line-height: 1.6; margin-bottom: 1.1rem; }
.match-include { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; margin: 0 0 1rem; border: 1px solid var(--teal-100, #cfe9e4); background: var(--teal-050, #f0f8f6); border-radius: 10px; cursor: pointer; }
.match-include input { margin-top: .2rem; }
.match-include strong { display: block; font-size: .92rem; color: var(--ink); }
.match-include-hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; line-height: 1.5; }
.jc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.jc-foot .jc-sector { display: inline-block; max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-foot .jc-apply { flex: 0 0 auto; white-space: nowrap; }
.locked { filter: blur(4px); user-select: none; pointer-events: none; }
.lock-pill { display:inline-flex; align-items:center; gap:.3rem; background: var(--line-soft); color: var(--muted); font-size:.75rem; font-weight:600; padding:.25rem .6rem; border-radius:999px; }

/* ----------------------------------------------- Company reviews / ratings */
/* Star rating input (5 → 1 in DOM, reversed so value 1 sits on the left) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { color: #d6d3cd; cursor: pointer; font-size: 1.5rem; line-height: 1; transition: color .12s ease; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold-500); }
.star-input input:focus-visible + label { outline: 2px solid var(--teal-500); border-radius: 3px; }

.rating-grid { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .5rem; }
.rating-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.rating-row-label { min-width: 150px; font-weight: 600; font-size: .9rem; }
.review-overall-preview {
  margin: .5rem 0 1rem; padding: .5rem .75rem; background: var(--teal-050);
  border-radius: var(--radius-sm); font-size: .9rem;
}
.review-overall-preview strong { color: var(--teal-700); font-size: 1.05rem; }
.review-overall-preview .rop-stars { color: var(--gold-500); margin-left: .25rem; }

/* Summary card: score + per-criterion bars */
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.review-summary-score { text-align: center; min-width: 110px; }
.review-summary-score .rs-num { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--ink); }
.review-summary-score .rs-stars { color: var(--gold-500); font-size: 1rem; margin: .15rem 0; }
.rs-count { margin-top: .25rem; }
.review-bars { display: flex; flex-direction: column; gap: .4rem; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 32px; align-items: center; gap: .6rem; font-size: .85rem; }
.bar-label { color: var(--muted); }
.bar-track { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--teal-500); border-radius: 999px; }
.bar-val { text-align: right; font-weight: 700; color: var(--ink); }

/* Grade label pill (tone-based) */
.rating-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.rating-pill.tone-neutral { background: #efece6; color: #8c8579; }
.rating-pill.tone-low { background: #f7e3dd; color: #b0492f; }
.rating-pill.tone-mid { background: #f6ecd5; color: #a6792c; }
.rating-pill.tone-good { background: #ddf0e5; color: #3d8b63; }
.rating-pill.tone-great { background: #d3ecdf; color: #1f6f50; }
.sample-badge {
  display: inline-block; margin-left: .35rem; font-size: .68rem; font-weight: 700;
  padding: .1rem .45rem; border-radius: 999px; background: #f6ecd5; color: #a6792c;
}

/* Compact rating row on company list cards */
.company-rating { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.company-rating .company-rating-stars { color: var(--gold-500); letter-spacing: 1px; }
.company-rating .company-rating-num { font-weight: 700; color: var(--ink); }
.company-rating .company-rating-count { color: var(--muted); }
.company-rating.is-empty .company-rating-stars { color: var(--line); }
.company-rating .company-rating-cta { margin-left: .5rem; padding: .25rem .7rem; font-size: .8rem; }

.review-item { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.review-crit-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.crit-tag {
  font-size: .72rem; padding: .12rem .5rem; border-radius: 999px;
  background: var(--teal-050); color: var(--teal-700); border: 1px solid var(--line);
}
.crit-tag strong { color: var(--ink); }

@media (max-width: 640px) {
  .review-summary { grid-template-columns: 1fr; gap: .9rem; }
  .bar-row { grid-template-columns: 110px 1fr 30px; }
  .rating-row-label { min-width: 120px; }
}

/* Match score ring */
.match-ring { --val: 0; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--teal-500) calc(var(--val) * 1%), var(--line) 0);
  display: grid; place-items: center; }
.match-ring .inner { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--teal-700); }
.match-ring { margin: 0 auto; }
.match-ring.locked { background: conic-gradient(var(--line) 0 100%); filter: grayscale(1); }
.match-ring.locked .inner { color: var(--muted); }

/* Small match ring pinned to the top-right of a job card */
.match-ring.match-ring-sm { width: 50px; height: 50px; }
.match-ring.match-ring-sm .inner { width: 39px; height: 39px; font-size: .72rem; }
.jc-score { position: absolute; top: 1rem; right: 1rem; margin: 0; z-index: 1; }
.jc-score-locked {
  width: 50px; height: 50px; border-radius: 50%; background: var(--line-soft);
  display: grid; place-items: center; color: var(--muted); font-size: 1.05rem;
  border: 1px dashed var(--line);
}
/* Colour the ring by match quality so strength reads at a glance */
.match-ring.is-strong { background: conic-gradient(#16a34a calc(var(--val) * 1%), var(--line) 0); }
.match-ring.is-strong .inner { color: #15803d; }
.match-ring.is-good { background: conic-gradient(var(--teal-500) calc(var(--val) * 1%), var(--line) 0); }
.match-ring.is-good .inner { color: var(--teal-700); }
.match-ring.is-fair { background: conic-gradient(#f59e0b calc(var(--val) * 1%), var(--line) 0); }
.match-ring.is-fair .inner { color: #b45309; }
.match-ring.is-low { background: conic-gradient(#ef4444 calc(var(--val) * 1%), var(--line) 0); }
.match-ring.is-low .inner { color: #b91c1c; }

/* Company logo monogram */
.company-logo { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--teal-100); color: var(--teal-700);
  display: inline-grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex-shrink: 0; }
.company-logo.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.company-logo.has-img { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 4px; }
.company-logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Fallback initials are hidden only while the image is present; if the image
   fails to load, JS removes .has-img and the monogram shows again. */
.company-logo.has-img .company-logo-fallback { display: none; }

/* Company detail page hero logo: small framed favicon by default, grows up to
   200px wide only when JS confirms the image is high-res (.is-large). */
.company-hero-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.company-hero-logo .frame {
  width: 64px; height: 64px; border-radius: var(--radius-sm); background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
  overflow: hidden; padding: 4px;
}
.company-hero-logo .frame img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.company-hero-logo .frame .fallback { display: none; font-weight: 800; color: var(--teal-700); font-size: 1.4rem; }
.company-hero-logo.is-large .frame {
  width: auto; height: auto; max-width: 200px; max-height: 110px;
  border: 0; background: transparent; padding: 0; border-radius: 0;
}
.company-hero-logo.is-large .frame img { max-width: 200px; max-height: 110px; width: auto; height: auto; }
.company-hero-logo.no-img .frame img { display: none; }
.company-hero-logo.no-img .frame .fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.select-sm { padding: .3rem .5rem; font-size: .85rem; }
.review-form summary { display: inline-block; cursor: pointer; list-style: none; }
.review-form summary::-webkit-details-marker { display: none; }

/* Checkbox rows (settings) */
.check-row { display: flex; align-items: center; gap: .55rem; padding: .4rem 0; font-size: .93rem; cursor: pointer; }
.check-row input { width: auto; }

/* Notification rows */
.notif-row.unread { background: var(--teal-050); }

/* Document uploader: drag & drop + multi-file list */
.link-btn { background: none; border: none; padding: 0; color: var(--teal-700); font-weight: 600;
  cursor: pointer; text-decoration: underline; font-size: inherit; }
.link-btn:hover { color: var(--teal-900); }

.dropzone { border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--teal-050);
  padding: 1.6rem 1rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus { border-color: var(--teal-500); outline: none; }
.dropzone.is-dragover { border-color: var(--teal-700); background: var(--teal-100); }
.dropzone-inner { pointer-events: none; }
.dropzone-inner .link-btn { pointer-events: auto; }
.dz-icon { font-size: 1.8rem; line-height: 1; margin-bottom: .4rem; }
.dz-title { margin: 0 0 .15rem; }

.file-list { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.file-list-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .55rem .75rem; background: var(--teal-050); border-bottom: 1px solid var(--line); }
.file-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: none; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-name { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: .78rem; color: var(--muted); }
.file-row .row-category { flex-shrink: 0; max-width: 180px; }
.file-remove { flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.file-remove:hover { border-color: var(--danger, #dc2626); color: var(--danger, #dc2626); }
.file-row.is-busy { opacity: .8; }
.file-row .row-progress { display: none; flex: 0 0 100%; order: 5; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: .15rem; }
.file-row.is-busy .row-progress { display: block; }
.file-row .row-progress > span { display: block; height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700)); transition: width .25s ease; }
.file-size .tag-compressed { color: var(--teal-700); font-weight: 600; }

/* Upload / compression progress (multi-file uploader) */
.upload-progress { margin-top: .85rem; }
.upload-progress[hidden] { display: none; }
.upload-progress-head { display: flex; justify-content: space-between; align-items: baseline;
  font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.upload-progress-head span:first-child { font-weight: 600; color: var(--text, #1f2937); }
.upload-progress-track { height: 9px; border-radius: 6px; background: var(--teal-100); overflow: hidden; }
.upload-progress-track > span { display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700)); transition: width .2s ease; }
.upload-progress.is-indeterminate .upload-progress-track > span { width: 40% !important;
  animation: upload-indet 1.1s ease-in-out infinite; }
@keyframes upload-indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* AI analyzing state */
.analyze-panel { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; margin-bottom: 1rem;
  border: 1px solid var(--teal-100); background: var(--teal-050); border-radius: var(--radius-sm); }
.analyze-panel[hidden] { display: none; }
.analyze-panel-body { flex: 1; min-width: 0; }
.spinner { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--teal-100); border-top-color: var(--teal-700);
  animation: spin .8s linear infinite; will-change: transform; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.analyze-progress { margin-top: .55rem; height: 7px; border-radius: 6px; background: var(--teal-100); overflow: hidden; }
.analyze-progress > span { display: block; height: 100%; width: 8%; border-radius: 6px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-700)); transition: width .5s ease; }
.analyze-panel-title-dots::after { content: ''; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
/* The spinner is a loading indicator — keep it turning even with reduced
   motion (just slower) so users always see that work is in progress. */
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.6s; }
  .analyze-panel-title-dots::after { animation-duration: 2.4s; }
}

/* AI preference suggestion */
.card-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.card-head-row h3 { margin-bottom: .15rem; }
#pref-suggest-btn { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.pref-suggest-spinner { width: 16px; height: 16px; border-width: 2px; }
.pref-suggest-spinner[hidden] { display: none; }
.suggest-panel { padding: .9rem 1.1rem; margin: .25rem 0 1rem; border: 1px solid var(--teal-100);
  background: var(--teal-050); border-radius: var(--radius-sm); }
.suggest-panel[hidden] { display: none; }
.suggest-panel.is-empty { border-color: var(--line); background: var(--line-soft); }
.suggest-panel-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.suggest-panel-head strong { color: var(--teal-700); }
.suggest-panel.is-empty .suggest-panel-head strong { color: var(--ink-soft); }
.suggest-panel p { margin: .35rem 0 0; }
.suggest-dismiss { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer;
  color: var(--ink-soft); padding: 0 .2rem; }
.suggest-dismiss:hover { color: var(--ink); }

/* Drag-and-drop reordering */
.drag-handle { cursor: grab; color: var(--ink-soft); user-select: none; font-size: 1rem; line-height: 1;
  padding: .15rem .25rem; align-self: center; touch-action: none; border-radius: 4px; }
.drag-handle:hover { color: var(--ink); background: var(--line-soft); }
.drag-handle:active { cursor: grabbing; }
.sortable-item.dragging { opacity: .5; }
.sortable-list .sortable-item.dragging { background: var(--teal-050); }
.sortable-inline .drag-handle { font-size: .85rem; padding: 0 .2rem 0 0; }
.reorder-saving { opacity: .75; transition: opacity .15s ease; }

/* Profile photo card */
.photo-card { margin-bottom: 1.25rem; }
.photo-layout { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin-top: .75rem; }
.photo-figure { flex-shrink: 0; }
.photo-current { width: 140px; height: 140px; object-fit: cover; border-radius: 16px;
  border: 1px solid var(--line); background: var(--line-soft); display: block; }
.photo-current.is-empty, .photo-current[hidden] { display: none; }
.photo-placeholder { width: 140px; height: 140px; border-radius: 16px; border: 1px dashed var(--line);
  display: grid; place-items: center; color: var(--ink-soft); font-size: .8rem; background: var(--line-soft);
  text-align: center; padding: .5rem; }
.photo-placeholder[hidden] { display: none; }
.photo-actions { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.photo-actions .btn { min-width: 230px; justify-content: center; display: inline-flex; align-items: center; gap: .5rem; }
.photo-actions .help-text { margin-top: .1rem; }
#photo-generate-btn .pref-suggest-spinner { border-color: rgba(0,0,0,.2); border-top-color: #2a2300; }

.photo-review { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.photo-review[hidden] { display: none; }
.photo-review-head { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .7rem; }
.photo-review-body { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.photo-review-body .photo-current { width: 200px; height: 200px; }
.photo-review-actions { display: flex; flex-direction: column; gap: .55rem; }
.photo-review-actions .btn { min-width: 160px; justify-content: center; }

/* ----------------------------------------------------------------- Dashboard shell */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 1.25rem .9rem; }
.sidebar .nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 1.2rem .6rem .4rem; }
.sidebar a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-sm); color: var(--ink-soft); font-weight: 500; font-size: .93rem; }
.sidebar a:hover { background: var(--teal-050); color: var(--teal-700); }
.sidebar a.active { background: var(--teal-700); color: #fff; }
.app-main { padding: 1.75rem; max-width: 1100px; width: 100%; margin-inline: auto; }
/* Center the content over the WHOLE viewport (not just the area right of the
   sidebar), compensating for the 248px sidebar. 798px = 248 sidebar + 550 (half
   of the 1100px max-width). Clamped so it never overlaps the sidebar on mid
   screens. Mobile (<=900px) keeps the plain centered/full-width layout. */
@media (min-width: 901px) {
  .app-main { margin-left: max(1.75rem, calc(50vw - 798px)); margin-right: auto; }
}
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 1rem; }
.page-head h1 { font-size: 1.6rem; margin: 0; }

/* Progress */
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--gold-500)); border-radius: 999px; }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table tr:hover td { background: var(--teal-050); }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: .5rem; }

/* Footer */
.footer { background: var(--teal-900); color: #cfe3df; padding: 3rem 0 2rem; margin-top: 4rem; }
.footer a { color: #cfe3df; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer .muted { color: #8fb4ad; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; color: #8fb4ad; }

/* Pagination */
.pagination { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pagination a, .pagination span { padding: .45rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .9rem; }
.pagination .active { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

/* Score breakdown bar */
.score-item { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.score-item .label { width: 110px; font-size: .85rem; color: var(--ink-soft); }
.score-item .bar { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.score-item .bar > span { display: block; height: 100%; background: var(--teal-500); }

/* Tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tabs a { padding: .7rem 1rem; color: var(--ink-soft); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--teal-700); border-bottom-color: var(--teal-700); }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; margin-left: .35rem; font-size: .7rem; font-weight: 700; line-height: 1; border-radius: 999px;
  background: var(--line-soft); color: var(--muted); vertical-align: middle; animation: tab-count-pop .3s ease; }
.tabs a.active .tab-count { background: var(--teal-100); color: var(--teal-700); }
@keyframes tab-count-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tab-count { animation: none; } }

/* Utility list reset */
.list-plain { list-style: none; padding: 0; margin: 0; }

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 64px; bottom: 0; width: 248px; transform: translateX(-100%); transition: transform .2s; z-index: 40; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .footer .cols { grid-template-columns: 1fr; }
}

/* Prepare-for-submission callout (Career Builder → Import) ----------------- */
.doc-prep {
  margin-top: 1.25rem;
  border: 1px solid var(--teal-100);
  border-left: 4px solid var(--teal-500);
  background: linear-gradient(180deg, var(--teal-050), #fff 120%);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 1.1rem;
}
.doc-prep h4 {
  margin: 0 0 .35rem;
  display: flex; align-items: center; gap: .5rem;
  color: var(--teal-700); font-size: 1rem; font-weight: 700;
}
.doc-prep > p {
  margin: 0 0 .85rem;
  font-size: .82rem; line-height: 1.6; color: var(--ink-soft);
}
.doc-prep-item {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .6rem .75rem; margin-top: .5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.doc-prep-item .dpi-name { flex: 1; min-width: 11rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.doc-prep-item .dpi-name small { display: block; margin-top: .15rem; font-weight: 400; font-size: .76rem; color: var(--muted); }
.doc-prep-item .dpi-name small.dpi-ready { color: var(--success); }
.doc-prep-item .btn { flex-shrink: 0; }

/* PDF-recommended note in the upload card ---------------------------------- */
.upload-pdf-note {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: .85rem; padding: .7rem .85rem;
  background: #fff8e6; border: 1px solid #f3d98a;
  border-left: 4px solid #e0a800; border-radius: var(--radius-sm);
  font-size: .8rem; line-height: 1.55; color: #6b5300;
}
.upload-pdf-note strong { color: #5a4500; }
.upload-pdf-note-ic { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }

/* Review & confirm (merged into the Import panel) -------------------------- */
.review-section { margin-top: 1.5rem; }
.review-banner {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .9rem 1.1rem; margin-bottom: 1rem;
  border: 1px solid var(--gold-100); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--gold-100), #fff 135%);
}
.review-banner .rb-spark { font-size: 1.3rem; line-height: 1.2; }
.review-banner strong { color: var(--ink); }
.review-banner .text-sm { color: var(--ink-soft); margin-top: .15rem; }

.review-doc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); margin-bottom: .85rem; overflow: hidden;
}
.review-doc > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.1rem; font-weight: 600;
}
.review-doc > summary::-webkit-details-marker { display: none; }
.review-doc > summary::after {
  content: "\25B8"; color: var(--muted); transition: transform .15s ease;
  margin-left: .25rem; flex-shrink: 0;
}
.review-doc[open] > summary::after { transform: rotate(90deg); }
.review-doc > summary:hover { background: var(--line-soft); }
.review-doc .rd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-doc .rd-meta { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.review-doc-body { padding: .25rem 1.1rem 1.1rem; border-top: 1px solid var(--line-soft); }
.review-doc-body fieldset:first-of-type { margin-top: 1rem; }

.review-confirm-bar {
  position: sticky; bottom: .75rem; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: .75rem;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.review-confirm-bar .btn { flex-shrink: 0; }

@keyframes reviewFlash { 0% { box-shadow: 0 0 0 0 var(--gold-500); } 100% { box-shadow: 0 0 0 8px rgba(245,181,1,0); } }
.review-section.flash .review-banner { animation: reviewFlash 1s ease-out 1; }

/* ==========================================================================
   Resume template picker (visual thumbnails)
   ========================================================================== */
.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tpl-option { display: block; margin: 0; cursor: pointer; }
.tpl-option .tpl-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.tpl-card {
  position: relative; display: block; padding: 8px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.tpl-option:hover .tpl-card { border-color: #c2c9cf; }
.tpl-radio:focus-visible + .tpl-card { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.tpl-radio:checked + .tpl-card { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(0,81,73,.16); }
.tpl-name { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.tpl-desc { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.tpl-check {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  width: 18px; height: 18px; border-radius: 50%; background: var(--teal-700); color: #fff;
  display: none; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; line-height: 1;
}
.tpl-radio:checked + .tpl-card .tpl-check { display: inline-flex; }

/* schematic mini mockup */
.tt {
  position: relative; width: 100%; aspect-ratio: 1 / 1.32; overflow: hidden;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.tt * { box-sizing: border-box; }
.tt-flex { display: flex; height: 100%; }
.tt-col { display: flex; flex-direction: column; }
.tt-bar { display: block; height: 3px; border-radius: 2px; background: #d7dbdf; }
.tt-bar.lg { height: 5px; }
.tt-dot { border-radius: 50%; background: #c4cace; }
.tt-band { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #ececec; padding: 9px 10px; }

@media (max-width: 900px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
