/*
 * The web app. Only ever loaded by /app.
 *
 * It reuses style.css wholesale for tokens, buttons, chips and the job rows,
 * so the dashboard and the landing page are recognizably the same product.
 * What is new here is only what the landing page has no use for: onboarding
 * steps, the card grid, and the resume document itself.
 */

/*
 * Clearance under the sticky header.
 *
 * The bar is translucent and sticky, so the first line of any screen sits
 * right under it. On a phone, focusing an input scrolls the page and the
 * heading ends up half hidden behind the blur: "Step 2 of 3" was cut in half
 * on the first real device it was opened on.
 */
.appbody { padding-bottom: 6rem; }
.appbody main { padding-top: 1.4rem; }
.appbody .wrap.wide { max-width: 78rem; }
.wrap.narrow { max-width: 30rem; }

/*
 * Room for the browser chrome at the bottom of a phone.
 *
 * Safari's address bar floats over the page, and the Next button sat directly
 * behind it. svh rather than vh because vh on iOS is the height the page would
 * have if the bar were hidden, which is the whole problem.
 */
@supports (padding: env(safe-area-inset-bottom)) {
  .appbody { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------- onboarding */

h1.onboard {
  margin: 0.5rem 0 0.6rem;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
}

.stepform { position: relative; margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.stepform input,
.stepform textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.8rem 1rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 0.7rem;
}
.stepform textarea { resize: vertical; line-height: 1.6; }
.stepform input:focus-visible,
.stepform textarea:focus-visible { outline: 2px solid var(--blood); outline-offset: 1px; }
.stepform .row {
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}
.stepform > form { display: grid; gap: 0.8rem; }
.stepform .bigcta { justify-self: start; }

/* The suggestion list, positioned against the step rather than the hero. */
.stepform .suggest {
  position: absolute; left: 0; right: 0; top: 3.4rem; z-index: 10;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.7rem; overflow: hidden;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.12);
}
.stepform .suggest button {
  display: block; width: 100%; text-align: left;
  padding: 0.7rem 1rem; border: 0; background: none;
  font: inherit; cursor: pointer; color: var(--ink);
}
.stepform .suggest button:hover { background: var(--page); color: var(--blood); }

.progress { margin-top: 2rem; display: flex; gap: 0.4rem; }
.progress span {
  height: 2px; flex: 1;
  background: var(--line); border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.progress span.on { background: var(--blood); }

/* ------------------------------------------------------------- the resume */

/*
 * Deliberately plain, and narrower than the panel.
 *
 * It is a document, not a dashboard widget, and it should look like the thing
 * that ends up in somebody's email. The one concession to being on screen is
 * the small note beside each line saying why it is where it is, which is the
 * whole product and which obviously does not get copied.
 */
.resumedoc {
  max-width: 34rem; margin: 1.5rem 0 0;
  padding: 1.8rem; background: var(--page);
  border: 1px solid var(--line); border-radius: 0.6rem;
}
.rhead h3 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.rhead p { margin: 0.3rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.rhead .rhl { margin-top: 0.9rem; color: var(--ink); font-size: 0.95rem; }

.rjob { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.rjob h4 {
  margin: 0 0 0.6rem; font-size: 0.98rem; font-weight: 600;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline;
}
.rwhen { font-size: 0.82rem; font-weight: 400; color: var(--ink-faint); }
.rjob ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.rjob li { font-size: 0.93rem; padding-left: 0.9rem; position: relative; }
.rjob li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--ink-faint);
}

/* A line that says nothing about this particular job. Kept visible, because
   the decision to cut it belongs to the person whose experience it is. */
.rjob li.weak { opacity: 0.45; }

.rwhy { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--good); }
.rwhy.dim { color: var(--ink-faint); }

.unaddressed { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.unaddressed h4 { margin: 0 0 0.3rem; font-size: 0.98rem; font-weight: 600; }
.unaddressed ul {
  margin: 0.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem;
}
.unaddressed li {
  display: grid; gap: 0.1rem; padding-left: 0.9rem; border-left: 2px solid var(--blood);
}

/* --------------------------------------------------------------- openings */

.opening {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.opening.done { opacity: 0.5; }
.openmain { flex: 1 1 14rem; min-width: 0; }
.openmain a { color: inherit; text-decoration: none; font-weight: 550; }
.openmain a:hover { color: var(--blood); }
.openmain .why { margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--ink-faint); }
.opening .fit {
  flex: none; display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--blood); border: 1px solid currentColor; border-radius: 50%;
}

/* ----------------------------------------------------------- applications */

.status {
  flex: none; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.status.sent { border-color: var(--good); color: var(--good); }
.status.replied { background: var(--good); border-color: var(--good); color: var(--page); }
.status.rejected { opacity: 0.6; }

/* ------------------------------------------------------- paste a resume */

.pasteresume { margin-top: 1.4rem; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.8rem; }
.pasteresume summary { cursor: pointer; font-size: 0.93rem; font-weight: 550; }
.pasteresume textarea {
  display: block; width: 100%; margin-top: 0.8rem; font: inherit; font-size: 0.93rem;
  padding: 0.8rem 1rem; color: var(--ink); background: var(--page);
  border: 1px solid var(--line); border-radius: 0.7rem; resize: vertical;
}
.pasteresume .ghostbtn { margin-top: 0.7rem; }
.pasteresume .caveat { margin: 0.7rem 0 0; }

/* ------------------------------------------------------------- app shell */

.shell {
  --barh: 3.6rem;
  display: grid; gap: 2rem;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  width: 100%; max-width: 78rem; margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}
.main { min-width: 0; outline: none; }

.side {
  position: sticky; top: calc(var(--barh) + 0.6rem); align-self: start;
  display: grid; gap: 1.2rem;
}
.sidenav { display: grid; gap: 0.15rem; }
.sidenav a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem; border-radius: 0.6rem;
  font-size: 0.93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.sidenav a svg { flex: none; }
.sidenav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.sidenav a[aria-current="page"] { background: var(--ink); color: var(--page); }
.sidenav .lk { margin-left: auto; display: inline-flex; opacity: 0.55; }

.sideplan {
  padding: 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 0.8rem;
}
.sideplan .k { margin: 0; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.sideplan .t { margin: 0.4rem 0 0.8rem; font-size: 0.84rem; color: var(--ink-soft); line-height: 1.45; }
.sideplan .linky { margin-top: 0.3rem; }
.bigcta.small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

a.bigcta, a.ghostbtn { display: inline-block; text-decoration: none; text-align: center; }
a.bigcta { margin-top: 0; }

.viewbody { display: grid; gap: 1.4rem; align-content: start; padding-bottom: 2rem; }
.viewbody > * { min-width: 0; }

.vhead {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.8rem 1.2rem;
  padding-bottom: 0.2rem;
}
.vhead h1 {
  margin: 0; font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
}
.vhead .sub { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--ink-soft); max-width: 40rem; }

.aim {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem;
  padding: 0.4rem 0.85rem; font-size: 0.82rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
}
.aim strong { color: var(--ink); font-weight: 600; }
.aim a { color: var(--blood); text-decoration: none; font-weight: 550; }

.verdictline { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.verdictline strong { color: var(--ink); font-weight: 600; }
.verdictline.move strong { color: var(--blood); }

.upsell {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.2rem;
  padding: 1rem 1.2rem; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--blood); border-radius: 0.8rem;
}
.upsell div { flex: 1 1 18rem; display: grid; gap: 0.15rem; }
.upsell strong { font-weight: 600; }
.upsell span { font-size: 0.9rem; color: var(--ink-soft); }

/* ------------------------------------------------------- blocks and rows */

.kpis { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.kpi {
  display: grid; gap: 0.15rem; align-content: start;
  padding: 1.1rem 1.2rem; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.9rem;
  transition: border-color 0.2s var(--ease);
}
a.kpi:hover { border-color: var(--blood); }
.kpi .k, .block .k {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint);
}
.kpi .n { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; }
.kpis.small .kpi { padding: 0.9rem 1.1rem; }
.kpis.small .n { font-size: 1.6rem; }

.grid2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

.block {
  padding: 1.3rem 1.4rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
}
.block h2 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.block .why { margin: 0.5rem 0 0; }
.blockhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.block.bridge { margin-top: 0; }
.narrowblock { max-width: 34rem; display: grid; gap: 0.9rem; }
.bigline { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.note { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }

.rows { margin: 0; padding: 0; list-style: none; }
.rows li { border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows a, .rows li > .rt { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; color: inherit; text-decoration: none; }
.rows a:hover .rt { color: var(--blood); }
.rt { display: grid; gap: 0.1rem; min-width: 0; font-weight: 550; letter-spacing: -0.01em; }
.rt small { font-size: 0.78rem; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.rows .fit {
  flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--blood);
  border: 1px solid currentColor; border-radius: 50%;
}

.checklist { margin: 0 0 1rem; padding: 0; list-style: none; }
.checklist a { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; color: inherit; text-decoration: none; font-size: 0.93rem; }
.checklist a:hover { color: var(--blood); }
.checklist .tick {
  flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem;
  border: 1.5px solid var(--line); border-radius: 50%; color: var(--page);
}
.checklist .done .tick { background: var(--good); border-color: var(--good); }
.checklist .done a { color: var(--ink-soft); }

.meter { display: block; width: 6rem; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--blood); border-radius: 99px; transition: width 0.3s var(--ease); }
.progressrow { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: var(--ink-soft); }
.progressrow .meter { width: min(16rem, 50%); }

/* ------------------------------------------------------------- the gate */

.gate {
  display: grid; justify-items: start; gap: 0.8rem; max-width: 36rem;
  padding: 1.6rem 1.6rem 1.8rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 1rem;
}
.gate h2 { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.gate p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.gateicon {
  display: grid; place-items: center; width: 2.8rem; height: 2.8rem;
  border-radius: 50%; background: color-mix(in srgb, var(--blood) 12%, transparent); color: var(--blood);
}
.gate .getlist { margin: 0.2rem 0 0.6rem; }

.empty {
  display: grid; justify-items: start; gap: 0.7rem; max-width: 34rem;
  padding: 1.6rem; background: var(--surface); border: 1px dashed var(--line); border-radius: 1rem;
}
.empty h2 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.empty p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

/* ----------------------------------------------------------- tabs, forms */

.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  flex: none; padding: 0.7rem 1rem; font: inherit; font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft); background: none; border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blood); font-weight: 600; }
#tabbody { display: grid; gap: 1rem; padding-top: 0.4rem; min-width: 0; }

.block label, .jobform label { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 550; color: var(--ink-soft); }
.block input, .block select, .block textarea {
  width: 100%; font: inherit; font-size: 0.95rem; font-weight: 400;
  padding: 0.65rem 0.85rem; color: var(--ink); background: var(--page);
  border: 1px solid var(--line); border-radius: 0.6rem;
}
.block input[type="checkbox"] { width: auto; }
.block textarea { resize: vertical; line-height: 1.55; }
.block input:focus-visible, .block select:focus-visible, .block textarea:focus-visible { outline: 2px solid var(--blood); outline-offset: 1px; }
.block form { display: grid; gap: 0.8rem; }
.setgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.setgrid > .block { display: grid; gap: 0.8rem; align-content: start; }
.formrow { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.typeahead { position: relative; display: block; }
.btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.saved { font-size: 0.85rem; color: var(--ink-soft); }
.ghostbtn.danger { color: var(--blood); }
.ghostbtn.danger:hover { border-color: var(--blood); }
.ghostbtn.linkbtn { justify-self: start; }

details.block > summary { cursor: pointer; font-size: 0.95rem; font-weight: 600; list-style: none; }
details.block > summary::-webkit-details-marker { display: none; }
details.block[open] > summary { margin-bottom: 1rem; }
.jobcard > summary { display: grid; gap: 0.15rem; }
.jobcard > summary span { font-size: 0.82rem; font-weight: 400; color: var(--ink-faint); }

/* ---------------------------------------------------------------- board */

.board { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: start; }
.col { display: grid; gap: 0.6rem; align-content: start; padding: 0.9rem; background: color-mix(in srgb, var(--ink) 3%, transparent); border-radius: 0.9rem; min-width: 0; }
.col h2 { margin: 0 0 0.2rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); display: flex; justify-content: space-between; }
.kcard { display: grid; gap: 0.3rem; padding: 0.8rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.7rem; min-width: 0; overflow-wrap: anywhere; }
.kcard a, .kcard strong { font-weight: 550; color: inherit; text-decoration: none; }
.kcard a:hover { color: var(--blood); }
.kcard p { margin: 0; }
.jobmeta { font-size: 0.82rem; color: var(--ink-soft); }
.kmeta { font-size: 0.76rem; color: var(--ink-faint); }
.kact { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.2rem; }
.kact .linky { font-size: 0.8rem; }

/* ----------------------------------------------------------- jobs, gap */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; font-size: 0.88rem; color: var(--ink-soft); }
.filters label { display: inline-flex; align-items: center; gap: 0.5rem; }
.filters select {
  font: inherit; padding: 0.4rem 0.7rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 0.5rem;
}
.filters .count { margin-left: auto; color: var(--ink-faint); }

#joblist { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 0 1.2rem; }
#joblist .caveat { margin: 0; padding: 1.2rem 0; }
#joblist .opening:first-of-type { border-top: 0; }

.checks { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; }
.checks label { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.6rem 0; cursor: pointer; }
.checks input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--blood); }
.checks label > span { display: grid; gap: 0.1rem; }
.checks input:checked + span .pname { text-decoration: line-through; color: var(--ink-faint); }
.block.phase h2 { margin-bottom: 0; }

/* ------------------------------------------------------------ on a phone */

@media (max-width: 52rem) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 1rem; }

  /*
   * The sidebar becomes a strip of tabs pinned under the header. Pinned so
   * moving between pages never means scrolling back to the top first, and
   * scrolling sideways inside itself so it can hold seven items without the
   * page itself ever scrolling sideways.
   */
  .side {
    position: sticky; top: var(--barh); z-index: 30;
    margin: 0 calc(-1 * clamp(16px, 5vw, 40px)); padding: 0.4rem clamp(16px, 5vw, 40px);
    background: color-mix(in srgb, var(--page) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .sidenav { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav a { flex: none; padding: 0.5rem 0.8rem; font-size: 0.88rem; }
  .sidenav a svg { display: none; }
  .sideplan { display: none; }
  .vhead { align-items: flex-start; }
  .block, .gate, .empty { padding: 1.1rem; }

  /* The choice comes first. "Stay and adapt" is the fallback, so it goes last. */
  .trio .opt:first-child { order: 3; }
  .tabs button { padding-left: 0.7rem; padding-right: 0.7rem; }

  /* The next step stays in reach while the page scrolls. */
  .nextbar {
    position: sticky; bottom: 0.8rem; z-index: 20; margin-top: 1rem;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 28%, transparent);
  }
  .next { padding: 1.2rem; margin: 0.4rem 0; }
  .next h2 { font-size: 1.35rem; }
  .unlockfoot .bigcta, .btnrow .bigcta { width: 100%; }
  .filters .count { margin-left: 0; }
  #joblist { padding: 0 1rem; }
  .opening { flex-wrap: wrap; }
}

/* ---------------------------------------------------- soft lock (blurred) */

/*
 * The blurred page and the gate share one grid cell, so the cell is as tall as
 * whichever is taller. The gate carries a list and price cards now, and pinning
 * it over the blur with absolute positioning let it spill out of the bottom.
 */
.softlock { display: grid; min-height: 26rem; }
.softlock > * { grid-area: 1 / 1; }
.softlock .preview {
  filter: blur(7px); opacity: 0.75; pointer-events: none; user-select: none;
  align-self: start; max-height: 32rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.softlock .gate {
  position: relative; z-index: 2;
  align-self: start; justify-self: center; margin: 1.5rem 0 2rem;
  width: min(32rem, calc(100% - 1.5rem)); justify-items: center; text-align: center;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 16%, transparent);
}
.gate .getlist { text-align: left; justify-self: stretch; }
.gate .prices { width: 100%; }
.gatedone { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.9rem; font-size: 0.88rem; }
.gatedone span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink); font-weight: 550; }
.gatedone svg { color: var(--good); flex: none; }
.ph { display: block; height: 0.8rem; margin: 0.55rem 0; border-radius: 99px; background: var(--line); }
.preview .option, .preview .kcard, .preview .opening, .preview .resumedoc { padding: 0.9rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); margin-bottom: 0.7rem; }
.preview .opening { display: flex; gap: 0.9rem; align-items: center; }
.preview .opening .openmain { flex: 1; }
.softlock { min-height: 30rem; }
.softlock .preview { max-height: 36rem; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.preview .resumedoc { max-width: none; width: 100%; }

/* ------------------------------------------------- guided next step */

.next {
  display: grid; gap: 0.7rem; justify-items: start; max-width: 40rem;
  padding: 1.6rem; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--blood); border-radius: 1rem; margin: 1.2rem 0;
}
.next .eyebrow { margin: 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.next h2 { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.next p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.next .fine { font-size: 0.85rem; }
.steps { max-width: 40rem; }

/* A move you can choose: the match as a badge, the job beside it. */
.viewbody .option {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 0.8rem; row-gap: 0.1rem;
  align-items: center; width: 100%; text-align: left; padding: 0.7rem 0;
}
.viewbody .option .fit {
  grid-row: 1 / span 2; justify-self: start; align-self: center;
  padding: 0.3rem 0.5rem; border-radius: 99px; font-size: 0.82rem; text-align: center;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.viewbody .option .d { grid-column: 2; font-size: 0.85rem; color: var(--ink-soft); }
.viewbody .option.picked .fit { background: var(--blood); color: #fff; }

/* ----------------------------------------- free resume preview, the end of the walk */

.rmore { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--ink-faint); font-style: italic; }
.unlockfoot {
  display: grid; justify-items: start; gap: 0.6rem; max-width: 40rem;
  padding: 1.3rem; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--blood); border-radius: 1rem;
}
.unlockfoot h4 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.unlockfoot p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.nextbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: 40rem; margin: 1.6rem 0 0; padding: 1rem 1.2rem; border-radius: 1rem;
  background: var(--ink); color: var(--page); text-decoration: none; font-weight: 600;
}
.nextbar small { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

#pathdetail .btnrow { margin-top: 1.1rem; }

/* -------------------------------------------------------------- auto apply */

.autoapply { margin-bottom: 1.1rem; }
.autoapply > summary { display: flex; align-items: center; gap: 0.7rem; }
.autoapply form { margin-top: 0.9rem; }
.autoapply .terms { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--ink-soft); }
.autoapply .check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 550; }
.autoapply .check input { margin-top: 0.2rem; flex: none; }
.autoapply .yn { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; min-width: 0; }
.autoapply .yn legend { padding: 0; margin-bottom: 0.3rem; font-size: 0.82rem; font-weight: 550; color: var(--ink-soft); }
.autoapply .yn label { display: flex; align-items: center; gap: 0.4rem; font-weight: 450; }
.autoapply .yn input { width: auto; }
.autoapply .autoq { display: grid; gap: 0.7rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.rowbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.applybtns { flex: none; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.ghostbtn.primary { border-color: var(--blood); color: var(--blood); }
.autonote { margin: -0.4rem 0 0.4rem 3.3rem; font-size: 0.8rem; color: var(--ink-soft); }
.autonote:empty { display: none; }
.autolist { display: grid; gap: 0.7rem; margin-bottom: 1.1rem; }
.autohead { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.autorow .why { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 40rem) {
  .opening { flex-wrap: wrap; }
  .applybtns { width: 100%; justify-content: flex-start; padding-left: 3.3rem; }
  .autonote { margin-left: 0; }
}
