/* The hidden attribute has to win.
   The UA stylesheet sets [hidden] { display: none }, but ANY author rule that
   sets display beats it - so .jobby-verify-verified { display: flex } and
   .jobby-verify-form { display: flex } silently un-hid both blocks, and the
   panel rendered its confirmed state, its request form and its code entry all
   at once. The accessibility tree reported nothing wrong: all three were
   genuinely visible, which is precisely why this was only findable by looking
   at the pixels. */
[hidden] { display: none !important; }

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --accent: #dbeafe;
  --success: #22c55e;

  /* Anchor scrolling, declared on the scrolling element.
   *
   * Both of these were on `body`, where neither belongs. `scroll-behavior` and
   * `scroll-padding-top` apply to the element that actually scrolls, which is the
   * root here — so on `body` they were inert, and `getComputedStyle(html)`
   * reported `auto` for both while the stylesheet appeared to set them.
   *
   * --header-h is the height of .site-header, which is `position: sticky`.
   *
   * Sticky headers stay in the flow and float above whatever scrolls past them,
   * so an anchor jump aligns its target flush with the top of the viewport — and
   * the nav then covers the first 59px of it. Measured, not guessed: Home landed at
   * scrollY 59 instead of 0, and Jobs and How it works both put their heading
   * underneath the bar. Nothing was clipped by overflow; the targets were simply
   * scrolled to the wrong place.
   *
   * scroll-padding-top offsets where the scroll *stops* without moving anything in
   * the layout, so the sticky header behaves exactly as it does now and Home
   * resolves to a true scroll-to-zero (59px of padding against a 59px offset).
   *
   * One rule covers every anchor in the page, including any added later.
   *
   * If the header's padding or content height changes, this has to change with it
   * — a stale value here is the same bug in a smaller dose. */
  --header-h: 59px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scroll on body */

  /* The height of .site-header, which is `position: sticky`.
   *
   * Sticky headers stay in the flow and float above whatever scrolls past them,
   * so an anchor jump aligns its target flush with the top of the viewport — and
   * the nav then covers the first 59px of it. Measured, not guessed: Home landed at
   * scrollY 59 instead of 0, and Jobs and How it works both put their heading
   * underneath the bar. Nothing was clipped by overflow; the targets were simply
   * scrolled to the wrong place.
   *
   * `scroll-padding-top` on the scrolling element is the fix rather than a margin
   * on the sections: it offsets where the scroll *stops* without moving anything
   * in the layout, so the sticky header behaves exactly as it does now and Home
   * resolves to a true scroll-to-zero (59px of padding against a 59px offset).
   *
   * One rule covers every anchor in the page, including any added later.
   *
   * If the header's padding or content height changes, this has to change with it
   * — a stale value here is the same bug in a smaller dose. */
}

/* Language toggle. Styled as a nav control rather than a button so it does not
 * read as a call to action beside the real one. */
.lang-toggle {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.lang-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--accent);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* On a phone the nav has to fit: the three section links collapse away and the
 * toggle stays, because a candidate whose first language is not English needs
 * the switch more than the internal navigation does. */
@media (max-width: 640px) {
  .lang-toggle { padding: 0.34rem 0.66rem; }
}

/* --- Header & Nav --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark {
  background: var(--primary);
  color: var(--white);
  font-weight: bold;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.brand strong { font-size: 0.9rem; }
.brand small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: normal;
  line-height: 1;
}

nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping if items overflow */
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover { color: var(--primary); }

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.button:active { transform: scale(0.98); }
.button:hover { background: var(--primary-hover); }
.button.secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}
.button.secondary:hover { background: var(--bg); }
.button-small { padding: 0.3rem 0.6rem; font-size: 0.7rem; }

/* --- Layout --- */
.section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Hero (Mobile First) --- */
/* --- Hero ---------------------------------------------------------------
 * Three layers: the scene behind, a scrim for legibility, the content in
 * front. The animation is what the product does, so it belongs behind the thing
 * you came here to do rather than beside it.
 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Tight. The field behind is full-bleed, so every rem of padding is a rem of
   * empty slate. At 3rem/3.5rem the hero reached 842px, most of it nothing, and
   * the drop zone fell below the fold. */
  padding: 2rem 1rem 2.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Depth of field. A layer meant to be behind has to look behind, and blur is
   * the cheapest honest way to say so. It also dissolves the scene's own small
   * text, so that text can never be misread for the page's text showing through
   * it - which was the original reason for burying the layer under a
   * near-opaque scrim.
   *
   * Scaled very slightly, because a filter samples from outside the element and
   * would otherwise fade the layer's own edges. */
  filter: blur(1.5px);
  transform: scale(1.025);
  transform-origin: 50% 42%;
}

/* On a phone the hero is tall and narrow, so the scene drawn for a wide hero
 * arrives small and fine, and reads as paper texture rather than as a screen
 * working. Scaled up it becomes legible as shapes and motion - which is what a
 * background layer has to be. Blur is eased off to match, since at this size
 * there are no small glyphs left to dissolve. */
@media (max-width: 560px) {
  .hero-bg canvas {
    transform: scale(1.45);
    filter: blur(1.1px);
  }
}

/* Legibility, written for the stacked layout rather than adapted to it.
 *
 * This used to be an angled left-to-right gradient, which is right for the
 * desktop two-column split where the text occupies the left. Stacked, the
 * content is centred, so an angled scrim is densest over the empty field at one
 * edge and thinnest over the words at the other - precisely inverted, and the
 * reason the animation was invisible on a phone.
 *
 * Radial, centred on the content, is the shape the stacked layout actually
 * needs: firmest where the words are, thinning outwards so the field comes back
 * at the top and bottom of the hero where nothing is written. The 900px block
 * below replaces this with an angled gradient, which is correct once there are
 * two unequal columns. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(128% 76% at 50% 44%,
      rgba(248, 250, 252, 0.9) 0%,
      rgba(248, 250, 252, 0.78) 38%,
      rgba(248, 250, 252, 0.52) 68%,
      rgba(248, 250, 252, 0.3) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: center;
}

/* The copy carries its own backing. This is what lets the scrim stay thin: the
 * legibility of the words comes from this panel, not from burying the animation
 * underneath them.
 *
 * Kept well short of opaque, because an opaque panel is just a hole in the
 * layer. At 0.82 the hero read as a white slab with the animation peeking round
 * its edges. At 0.62 over a scene that is itself light where the copy sits, the
 * heading still has full contrast, and the frosted blur turns what is behind it
 * into a wash instead of competing shapes. */
.hero-copy {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 1.55rem;
  border-radius: 18px;
  /* Translucent, because on a phone this card covers most of the hero's width
   * and a near-opaque panel leaves the scene visible only in slivers at the
   * edges. The field is meant to be seen *through* the content, not around it.
   * The opacity is bounded by the heading's contrast ratio against the
   * composited result, which _test_mobile_hero.py asserts rather than trusts. */
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 42px -26px rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* The three concrete claims. A list, not a paragraph, so a reader skimming
 * gets the specifics rather than the adjectives. */
.hero-points {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 32rem;
  text-align: left;
  display: grid;
  gap: 0.6rem;
}
.hero-points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--primary);
}

/* The drop zone is part of the hero composition, so it carries its own
 * surface: the background behind it is an animation, not a page.
 *
 * Frosted rather than solid, for the same reason the copy panel is: on a phone
 * this card spans nearly the whole hero, and a solid one would hide the scene
 * completely. It is held a little more opaque than the copy panel because it
 * carries a dashed drop target and a status line whose small text needs more
 * help against a moving background. */
.resume-drop-zone {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 14px 34px -18px rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
}

/* The act label and the pause control float over the scene rather than
 * occupying layout, so they cost the copy nothing. */
.hero-scene-bar {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.4rem 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}
.hero-scene-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-scene-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: hero-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.hero-scene-toggle {
  font: inherit;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
}
.hero-scene-toggle:hover { color: var(--primary); border-color: var(--primary); }
.hero-scene-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* Paused: the live dot stops too, so the control does not read as "running"
 * while the scene is held still. */
.hero-scene-host.is-paused .hero-scene-label::before { animation: none; opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  .hero-scene-label::before { animation: none; }
}

@media (min-width: 900px) {
  .hero { padding: 3rem 2rem 3.5rem; }
  /* Copy and drop zone share the row. The copy takes a little under half so a
   * line of the h1 never runs the full measure of the page.
   *
   * The zone itself gets a full-width row of its own beneath the copy. In a plain
   * flex row it was a sibling column sitting in roughly the right-hand third of a
   * wide screen — and because the parsed profile and its download actions live
   * inside that zone, the candidate's CV looked crammed into a narrow column
   * beside the headline. `flex-wrap` with a 100% basis moves it to its own line
   * at full width, which is how it already behaved on narrow screens. The dossier
   * panel below the hero is already `width: 100%` and is untouched by this. */
  .hero-inner {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 3.5rem;
    flex-wrap: wrap;
  }
  .hero-inner > #resume-drop-zone {
    flex: 1 0 100%;
  }
  /* The dossier panel is nested inside .hero-inner as well, which is why the
     candidate's CV rendered inside the header beside the headline. Same treatment:
     its own full-width row. Still inside <section class="hero">, so moving it out
     of the hero entirely is a markup change - see index.html. */
  .hero-inner > #dossier-panel {
    flex: 1 0 100%;
  }
  /* Grows a little past its basis to absorb the padding it now carries, so the
   * two columns stay visually even rather than the copy looking narrow. */
  .hero-copy { flex: 0 0 46%; margin: 0; padding: 1.75rem 1.75rem 1.9rem; }
  .hero h1 { font-size: 3.25rem; }
  .hero-points { margin-left: 0; }
  .resume-drop-zone {
    flex: 1 1 54%;
    max-width: none;
    margin: 0;
    text-align: left;
    /* Matched to the copy panel so the two read as a pair. */
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 42px -26px rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
  }
  .hero-scene-bar { right: 2rem; bottom: 1.5rem; }
  /* Thinner still than the stacked default. With two panels each carrying
   * their own backing, the right-hand side is bare page and that is where the
   * scene should be doing the most visible work. */
  .hero-scrim {
    background:
      linear-gradient(96deg,
        rgba(248, 250, 252, 0.66) 0%,
        rgba(248, 250, 252, 0.42) 34%,
        rgba(248, 250, 252, 0.24) 58%,
        rgba(248, 250, 252, 0.12) 100%);
  }
}


.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}



/* The three concrete claims. Written as a list rather than a paragraph so a
 * reader skimming gets the specifics, not the adjectives. */
.hero-points {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 0;
  max-width: 34rem;
  text-align: left;
  display: grid;
  gap: 0.6rem;
}
.hero-points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--primary);
}


/* --- The hero scene --- */
/* The canvas carries the demonstration; the copy in front of it carries the
 * meaning, so the animation is decorative and never the only way anything is
 * conveyed. Its own rules live with the rest of the hero block. */








/* Paused: the live indicator stops too, so the state is not signalled as
 * "running" while the scene is held still. */


@media (prefers-reduced-motion: reduce) {


}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.step-list {
  list-style: none;
}

.step-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.step-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.step-list span {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8rem;
  opacity: 0.5;
}

.step-list strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.step-list p { font-size: 0.8rem; color: var(--text-muted); }

/* --- Feature Grid (Mobile First) --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card .icon {
  display: block;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.8rem; }

/* --- Track Table (Mobile First: Card Layout) --- */
.track-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.track-row {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}

.track-head {
  display: none;
}

.track-row strong {
  font-size: 1rem;
  color: var(--primary);
}

.track-row span {
  font-size: 0.9rem;
  color: var(--text);
}

.track-row .status {
  align-self: flex-start;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status.active { background: #dcfce7; color: #166534; }
.status.planned { background: #f1f5f9; color: #475569; }
.status.boundary { background: #fef9c3; color: #854d0e; }

/* --- Audit Panel (Mobile First) --- */
.audit-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--text);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 24px;
}

.audit-panel h2 { font-size: 1.75rem; margin-bottom: 1rem; line-height: 1.1; }
.audit-panel p { color: #94a3b8; margin-bottom: 1.5rem; font-size: 1rem; }

.check-list { list-style: none; }
.check-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.check-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

/* --- Start Card --- */
.start-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.start-card h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.start-card p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }

.site-footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer a {
  display: block;
  margin-top: 0.75rem;
  color: var(--primary);
  text-decoration: none;
}

/* --- Form groups ---
   The onboarding overlay used to carry the comment above these rules. It is
   gone - it collected values and then alerted that onboarding was complete
   without saving anything - but the form controls are still used by the Google
   card, so the rules stay. */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.modal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

#summary-box {
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

/* --- Desktop Enhancements --- */
@media (min-width: 900px) {
  .site-header { padding: 1.25rem 2rem; }
  
  


  
  .section { padding: 6rem 2rem; }
  .section-heading h2 { font-size: 2.5rem; }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .track-table .track-row {
    flex-direction: row;
    grid-template-columns: 120px 1fr 200px;
    display: grid;
    padding: 1rem 2rem;
    gap: 0;
  }
  
  .track-head {
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    background: var(--bg);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
  }
  
  .track-row strong {
    font-size: 1rem;
    color: var(--text);
  }
  
  .track-row .status {
    align-self: center;
    text-align: center;
  }
  
  .audit-panel {
    flex-direction: row;
    padding: 4rem;
    gap: 4rem;
  }
  
  .audit-panel h2 { font-size: 2.5rem; }
  
  .start-card { padding: 4rem 2rem; }
  
  .site-footer { padding: 4rem 2rem; }
}

/* The download controls, shown once there is something to download. */
.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.dossier-actions[hidden] { display: none; }

/* The print option is a secondary path, so it is styled as one: a real reader
 * may want to save a PDF and keep their own margins and fonts. */
.button-quiet {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.button-quiet:hover {
  color: var(--primary);
  border-color: var(--primary);
}


/* --- Dossier build progress ----------------------------------------------
 * Shown while the dossier is constructed, which is 10-90s. Two layers: the bar
 * itself, and the list of stages. The list is the part that reassures - naming
 * the six steps and marking the finished ones is what turns an unexplained wait
 * into bounded work, where a bar alone just says "something is happening".
 */
.dossier-progress {
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 14px 34px -24px rgba(15, 23, 42, 0.4);
  /* The section this sits in is text-align: center, which is right for the
   * rendered dossier cards and wrong here: a progress readout centred in a card
   * has its bar and its stage names drifting out of alignment with each other,
   * and a column of steps reads as a list of nothing in particular. */
  text-align: left;
}

.dp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.dp-stage {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.dp-count {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* The track. Overflow hidden so the fill's sheen is clipped to the bar rather
 * than spilling past its end when the build is nearly finished. */
.dp-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  overflow: hidden;
}

.dp-fill {
  height: 100%;
  width: 4%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

/* The sheen. Without it a 60s wait looks like a frozen page; with it, the bar
 * is visibly alive even between stage changes. */
.dp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: dp-sheen 1.6s ease-in-out infinite;
}

@keyframes dp-sheen {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.dp-steps {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.dp-step {
  position: relative;
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 200ms ease;
}

/* State is carried by the text mark the script writes (tick, arrow, middot), not
 * only by colour, so it survives colour-blindness and a no-motion rendering. */
.dp-step[data-state="todo"] { color: var(--text-muted); opacity: 0.55; }
.dp-step[data-state="active"] { color: var(--text); font-weight: 600; }
.dp-step[data-state="done"] { color: var(--text-muted); }

/* No separate pulsing dot. An absolutely positioned one at left: -0.85rem sits
 * outside the list item's box, so in the centred section it floated at the card
 * edge, detached from the step it belonged to. The arrow the script already
 * writes into the line marks the active step, and the bar's sheen carries the
 * "still working" signal on its own. */

.dp-note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Motion off: the fill width and the tick marks still report the state, so
 * nothing is lost by removing the movement - which matters here because this
 * animation runs for up to ninety seconds. */
@media (prefers-reduced-motion: reduce) {
  .dp-fill { transition: none; }
  .dp-fill::after { animation: none; }
}


/* --- Resume ingestion (mobile first) --- */
.resume-drop-zone {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.drop-topline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.drop-topline strong {
  color: var(--text);
  font-size: 0.9rem;
}

.drop-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 1.5rem 1rem;
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.drop-area:hover,
.drop-area:focus-visible,
.drop-area.drag-over {
  border-color: var(--primary);
  background: #eff6ff;
  outline: none;
}

.drop-area.drag-over {
  transform: scale(1.01);
}

.drop-icon {
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.drop-label {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.9rem;
}

.drop-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

#resume-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.drop-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.drop-status[data-kind="error"] { color: #b91c1c; }
.drop-status[data-kind="working"] { color: var(--primary); }
.drop-status[data-kind="success"] { color: #15803d; }

.parsed-profile-section[hidden] { display: none; }
.parsed-profile-section {
  width: 100%;
  margin-top: 2rem;
  /* Left, because the content is data. Education, the confirmed achievements,
   * the job history: these are lists a candidate reads down a column, and
   * centred list items with ragged left edges are measurably slower to scan and
   * look wrong besides.
   *
   * It was centred, and .parsed-profile-grid below papered over it for the three
   * signal cards - but #dossier-body is a sibling of that grid rather than a
   * child, so the dossier cards inherited the centring and the override never
   * reached them. Fixed at the section so a new block cannot reintroduce it. */
  text-align: left;
}

/* The section intro stays centred: it is a heading and a sentence, not a list,
 * and centring it is a deliberate choice about the page rather than an accident
 * inherited from a container. */
.parsed-profile-section .section-heading {
  text-align: center;
}

.parsed-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  text-align: left;
}

.parsed-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.parsed-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.9rem;
}

.parsed-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (min-width: 900px) {
  .resume-drop-zone { max-width: 520px; }
  .parsed-profile-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Dossier ---------------------------------------------------------------- */

.dossier-grid .dossier-card { display: flex; flex-direction: column; }

.dossier-name {
  margin: 0 0 0.15rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.dossier-role {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.85rem;
}

.dossier-muted {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.dossier-summary {
  margin: 0;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.6;
}

.dossier-confidence {
  margin: 0.6rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dossier-list {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.dossier-list li { margin-bottom: 0.2rem; }

.dossier-list li.dossier-muted {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-left: -1.1rem;
  font-style: italic;
}

.dossier-subhead {
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  text-align: left;
}

.dossier-timeline {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

/* ── the dossier record card ──────────────────────────────────────────────── */

/* One card treatment, shared by every record in the dossier.
 *
 * This shell used to belong to employment alone. Education, achievements and the
 * two honesty sections below it were plain `<ul>` lists at 0.8rem in muted grey,
 * so the visual language stopped dead at the "Experience" subhead: the first part
 * of a candidate's history read as designed, and the rest read as debug output.
 * The information was identical in both — only the wrapper differed.
 *
 * `.dossier-entry` is the shared name. `.dossier-job` is kept as an alias so
 * employment markup is unchanged, and so nothing that styles jobs by name breaks.
 *
 * The shadow is on all of them, including the jobs that already read as having
 * one, so the card is a recognisable shape rather than employment having a
 * privilege the rest of the page does not. */
.dossier-job,
.dossier-entry {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 22px -16px rgba(15, 23, 42, 0.5);
}

.dossier-job h3,
.dossier-entry h3 {
  margin: 0;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

/* The headline is the fact; the supporting line below it is context. Both are
   printed from the record — neither is filled in when the source is silent. */
.dossier-entry .dossier-muted {
  margin: 0.25rem 0 0;
}

/* The two sections that report what could NOT be established.
 *
 * They are cards like everything else, but their accent is changed rather than
 * their structure: a gap in a resume is not a failure, and it must not be drawn
 * in the same blue as a job the candidate definitely held. Amber reads as
 * "unverified", grey as "silent in the source" — which is the actual difference
 * between the two. */
.dossier-entry.is-flag {
  border-left-color: #b45309;
}

.dossier-entry.is-flag h3 {
  color: #92400e;
}

.dossier-entry.is-gap {
  border-left-color: var(--border);
  background: #fbfaf7;
}

.dossier-entry.is-gap h3 {
  color: var(--text-muted);
}

/* ── confirmed achievements ──────────────────────────────────────────────── */

/* Medals, not tiles.
 *
 * Each achievement is one sentence the resume actually supports, so the job here
 * is to make it look like evidence without inflating it into a panel. The row is
 * a medal and a line of prose; the prose keeps the dossier's body size and leading
 * rather than being promoted to a heading, because a heading per achievement would
 * imply fifteen separate claims of equal weight when they are a list of things
 * worth mentioning.
 *
 * The medal is drawn rather than an image: it has to survive a missing asset, and
 * an <img> with an alt of "" is a worse way to draw a circle than a span is. */

.ach-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ach-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.4rem 0;
}

/* A hairline between rows, not a border around each. The list reads as one block
   of achievements; the rule gives the eye a line to follow without repeating a box
   fifteen times. */
.ach-row + .ach-row {
  border-top: 1px solid var(--border);
}

/* The medal: a gold disc with two ribbon tails behind it.
 *
 * Positioned rather than laid out, because the tails have to tuck behind the disc
 * and a flex child cannot. The disc is the parent and the tails are its
 * ::before and ::after, so they overlap it in the right order with no z-index
 * juggling and no extra elements in the DOM. */
.ach-medal {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7d774 0%, #d4a017 45%, #a97406 100%);
  /* A rim rather than a drop shadow: a medal is a struck object, and the highlight
     along the top edge is what makes it read as metal instead of a flat dot. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 2px rgba(0, 0, 0, 0.28);
}

/* The ribbon tails. Angled outward and clipped to a notch, which is what makes the
   shape read as fabric rather than as two extra bars. */
.ach-medal::before,
.ach-medal::after {
  content: '';
  position: absolute;
  top: 11px;
  width: 6px;
  height: 12px;
  background: #b3392f;
  /* A notch cut out of the bottom edge. */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.ach-medal::before {
  left: 1px;
  transform: rotate(11deg);
  background: linear-gradient(180deg, #c4453a, #8f2a22);
}

.ach-medal::after {
  right: 1px;
  transform: rotate(-11deg);
  background: linear-gradient(180deg, #c4453a, #8f2a22);
}

/* The sentence. Sits at body size and normal weight — this is the candidate's
   claim, not a section title — with the leading opened up so consecutive
   achievements do not crowd. */
.ach-text {
  margin: 0;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── the two honesty sections keep the card, with a changed accent ───────── */

/* A card holding a single confirmed achievement is the most repeated object on
   the page, so it sits tighter than an employment card with bullets under it. */
.dossier-entry.is-compact {
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

#dossier-body > .dossier-list { margin-top: 0; }

/* Jobby — the agent panel ------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.jobby-status {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
}

.jobby-status[hidden] { display: none; }

.jobby-mission-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobby-mission-value {
  margin: 0.15rem 0 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
}

.jobby-tracks,
.jobby-cap {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.jobby-cap[data-kind="error"] { color: #b91c1c; }

.jobby-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.jobby-toggle {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
}

.jobby-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
  text-align: left;
}

.jobby-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.jobby-log {
  flex: 1;
  max-height: 460px;
  padding: 1rem;
  overflow-y: auto;
}

.jobby-empty,
.jobby-muted {
  margin: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

.jobby-msg {
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #f7f8fa;
}

.jobby-msg-user {
  background: #eef4ff;
  border: 1px solid #d7e3ff;
}

.jobby-msg-jobby {
  border: 1px solid var(--border);
}

.jobby-who {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobby-text {
  margin: 0;
  color: var(--text);
  font-size: 0.87rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.jobby-tools {
  margin: 0.45rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.jobby-compose {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.jobby-compose textarea {
  flex: 1;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.jobby-compose button {
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.jobby-compose button:disabled { opacity: 0.55; cursor: progress; }

.jobby-hint {
  margin: 0;
  padding: 0 0.75rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.jobby-hint[data-kind="error"] { color: #b91c1c; }
.jobby-hint[data-kind="working"] { color: var(--primary); }

.jobby-side { display: grid; gap: 1rem; align-content: start; }

.jobby-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.jobby-card h3 {
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-size: 0.85rem;
}

.jobby-track,
.jobby-action,
.jobby-edit {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.jobby-track:last-child,
.jobby-action:last-child,
.jobby-edit:last-child { border-bottom: 0; }

.jobby-track-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--border);
}

.jobby-track.is-active .jobby-track-dot { background: var(--primary); }
.jobby-track:not(.is-active) { opacity: 0.55; }

/* Track 5's third state: closed, but the resume suggests it would fit. It is
 * deliberately NOT dimmed like a closed track — dimming it would say "nothing
 * here for you", which is the opposite of what the relay decided. It gets a
 * dashed outline and full opacity so it reads as an option, not a rejection. */
.jobby-track.is-offered {
  opacity: 1;
  border: 1px dashed var(--primary);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
}

.jobby-track.is-offered .jobby-track-dot {
  background: transparent;
  border: 2px solid var(--primary);
}

.jobby-track.is-offered .jobby-track-state { color: var(--primary); font-weight: 600; }

/* The reason the relay decided each track's state, and the honest caveats that
 * came with the roster. Read as an aside, not as a headline. */
.jobby-track-reason {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

/* The FIFO explainer under the marketing track table. Sits inside .tracks, so
 * it inherits that section's rhythm but is set as a note rather than a row. */
.track-note {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  background: var(--surface, transparent);
}

.track-note h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.track-note p {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.track-note p:last-child { margin-bottom: 0; }

.jobby-track-name,
.jobby-action-title,
.jobby-edit-path {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.jobby-track-state,
.jobby-action-detail,
.jobby-edit-reason,
.jobby-edit-meta {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.jobby-action-detail {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jobby-action-prio,
.jobby-edit-verb {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jobby-edit-meta { font-size: 0.66rem; }

@media (min-width: 900px) {
  .jobby-grid { grid-template-columns: 1.4fr 1fr; }
}

/* Google connection -------------------------------------------------------- */

#google-hint[data-kind="error"] { color: #b91c1c; font-style: normal; }
#google-hint[data-kind="ok"] { color: #15803d; font-style: normal; }
#google-hint[data-kind="working"] { color: var(--primary); font-style: normal; }

.google-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.google-actions[hidden] { display: none; }

.google-btn {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.google-btn:hover { border-color: var(--primary); color: var(--primary); }
.google-btn[hidden] { display: none; }

.google-btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.google-btn-primary:hover { color: #fff; opacity: 0.9; }

.google-btn-quiet { color: var(--text-muted); }

#google-detail {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

#google-detail[hidden] { display: none; }

.google-list { max-height: 220px; overflow-y: auto; }

.google-row {
  margin: 0.2rem 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* ── Email verification ──────────────────────────────────────────────────
   Sits inside the status bar, under the controls. Deliberately not a modal and
   not a separate page: it is a small persistent fact about the session, and the
   candidate should be able to see it and carry on reading the conversation.

   Mobile-first, like everything else here. The form is a column until there is
   room for the input and the button to sit side by side, because a 6-digit code
   box and a button fighting for one 320px line is where this kind of flow dies. */
.jobby-verify {
  margin: 0.75rem 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.jobby-verify-lead {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.55;
}
.jobby-verify-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}
.jobby-verify-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.jobby-verify input[type=email],
.jobby-verify input[type=text] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
}
.jobby-verify input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
/* Tabular figures so six digits do not shuffle sideways as they are typed. */
.jobby-verify input[type=text] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35em;
  text-align: center;
}
.jobby-verify button {
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.jobby-verify button:hover:not(:disabled) { background: var(--primary-hover); }
.jobby-verify button:disabled { opacity: 0.6; cursor: progress; }
.jobby-verify .jobby-hint { padding: 0.5rem 0 0; }
.jobby-verify .jobby-hint[data-kind=ok] { color: #15803d; }
.jobby-verify .jobby-hint[data-kind=error] { color: #b91c1c; }

.jobby-verify-verified {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 600;
}
.jobby-verify-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
}

@media (min-width: 30rem) {
  .jobby-verify-form { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .jobby-verify-form input { flex: 1 1 12rem; width: auto; }
  .jobby-verify-form button { flex: 0 0 auto; }
  .jobby-verify-label { flex: 1 0 100%; }
}

/* Dossier view switcher.
   The tabs are the interaction, so they are a real tablist with selection state
   rather than a row of buttons. `.dv-count` sits on the tab so a view with more
   to show is obvious before clicking it. */
.dossier-views {
  margin: 0 0 1.4rem;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface, transparent);
}

.dv-head .eyebrow { margin: 0 0 0.2rem; }
.dv-note {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.dv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.dv-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.dv-tab:hover { border-color: var(--primary); }

.dv-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* A view with nothing in it is still offered — that is information — but it is
   never styled as if it were fully populated. */
.dv-tab.is-empty .dv-count { color: var(--text-muted); font-weight: 400; }

.dv-count {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.75;
}

.dv-viewhead { margin-bottom: 0.8rem; }
.dv-viewlabel { margin: 0 0 0.15rem; font-size: 0.95rem; font-weight: 700; }
.dv-blurb,
.dv-audience {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}
.dv-audience { margin-top: 0.15rem; font-style: italic; }

.dv-section {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* The sections a recruiter actually reads first get a marked edge. */
.dv-section.is-lead { border-left: 3px solid var(--primary); }

.dv-section h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Our reading of a service record, beside the record itself. Deliberately
   quieter than the original wording, and never replacing it. */
.dv-also {
  margin-top: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: rgba(127, 127, 127, 0.08);
}
.dv-also-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.dv-also-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dv-also-reason {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Rendered, never hidden. A view that quietly omitted its own gaps would read
   as complete, which is the failure the whole feature exists to prevent. */
.dv-gaps {
  margin-top: 0.7rem;
  padding: 0.55rem 0.65rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.dv-gaps-label {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dv-footnote {
  margin: 0.8rem 0 0;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Provenance line on a derived section: where the content was read from.
   Quiet on purpose — it is an aside, not a claim. */
.dv-derived {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-style: italic;
  color: var(--text-muted);
}

/* The no-resume invitation. Sits in the section heading because the offer is to
   skip the upload box ABOVE it, so the two have to be read together. */
.jobby-noresume {
  max-width: 46rem;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.06);
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.jobby-noresume strong { color: var(--text); }

/* ── the compose bar ─────────────────────────────────────────────────────
   One row: attach, type, send. The textarea used to sit beside the button
   with no room to grow, so a long question was typed into a two-line box
   that scrolled. min-width: 0 on the growing child is what makes the
   button stop being squeezed off the edge. */

.compose-bar {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.5rem;
}

.compose-bar textarea {
  flex: 1 1 12rem;
  min-width: 0;
  resize: none;
  overflow-y: hidden;
  line-height: 1.5;
}

.compose-bar button[type="submit"] {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ── attachments ────────────────────────────────────────────────────────
   Staged on the message rather than sent with it, so a file can be added
   and still taken back before anything leaves the browser. */

.attach-row {
  margin-top: 0.5rem;
}

.attach-row[data-dragging="true"] {
  outline: 2px dashed var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.attach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.4rem 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.08);
  font-size: 0.74rem;
  max-width: 100%;
}

.attach-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.attach-size {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.attach-remove {
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  line-height: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}

.attach-remove:hover { background: rgba(127, 127, 127, 0.18); color: var(--text); }
.attach-remove:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.attach-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  cursor: pointer;
}

.attach-button:hover { color: var(--text); border-color: var(--primary); }

.attach-glyph {
  font-size: 1rem;
  line-height: 1;
}

/* The file input is driven by its label, so it is not a second control. */
#jobby-attach {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#jobby-attach:focus-visible + .compose-bar textarea,
.attach-button:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ── voice ──────────────────────────────────────────────────────────────
   Off until pressed, because a browser will not start audio without a
   gesture and a button that looks on but is not produces silence and a
   support ticket. */

.voice-button {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.voice-button.is-on {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(127, 127, 127, 0.12);
}

/* Asked for it before, but the browser still needs this session's click. */
.voice-button.is-wanted:not(.is-on) {
  border-style: dashed;
  border-color: var(--primary);
}

.voice-button:disabled { opacity: 0.4; cursor: not-allowed; }
.voice-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ── notes in the transcript ────────────────────────────────────────────
   Attachment progress and merge conflicts. A third role, not a Jobby
   message: putting them in Jobby's voice would be a lie about who said
   them, and a candidate who cannot tell a system notice from an answer
   stops reading both. */

.jobby-msg-note {
  border-left: 3px solid var(--border);
  padding-left: 0.6rem;
}

.jobby-msg-note .jobby-who { font-style: italic; }

.jobby-msg-working { border-left-color: #2f5f8f; }
.jobby-msg-success { border-left-color: #2f6f3f; }
.jobby-msg-error { border-left-color: #b03030; }
.jobby-msg-error .jobby-text { color: #b03030; }
