/* 21n / Memotron design system: see .claude/rules/design.md.
   Light-mode, near-monochrome. Charcoal #333 is the ONLY filled button color.
   Red/green appear only on links/icons, never as fills. Flat: no shadows/gradients. */

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

:root {
  --color-snow: #ffffff;
  --color-fog: #f9f9fb;
  --color-mist: #eff0f6;
  --color-silver: #e5e7eb;
  --color-charcoal: #333333;
  --color-graphite: #545454;
  --color-smoke: #767676;
  --color-ash: #808080;
  --color-emerald-pulse: #24b26d;
  --color-rose-signal: #e35d6a;

  --font-sen: 'Sen', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-card: 12px;
  --radius-link: 6px;
  --radius-pill: 9999px;
}

* { box-sizing: border-box; }

/* The hidden attribute must always win, including over display:flex/grid classes
   (.pilou-note is a flexbox: without this, [hidden] on it silently does nothing). */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-sen);
  color: var(--color-charcoal);
  background: var(--color-snow);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-rose-signal);
  text-decoration: none;
  border-radius: var(--radius-link);
}
a:hover { text-decoration: underline; }

/* ---- Site header (common to every page) ---- */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 0 32px;
  background: var(--color-snow);
  border-bottom: 1px solid var(--color-silver);
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--color-charcoal);
  justify-self: start;
}
.site-header__brand:hover { text-decoration: none; }
.site-header__logo { height: 26px; width: 26px; display: block; }
.site-header .btn { width: auto; }

/* Centered plain-text menu links (Profile / Applications / Find jobs) — same
   treatment as the landing page's .nav-links, never a bordered pill. */
.site-header__menu { display: flex; align-items: center; gap: 30px; justify-self: center; }
.site-header__menu a, .site-header__menu span { font-size: 15px; font-weight: 500; color: var(--color-charcoal); }
.site-header__menu a:hover { color: var(--color-rose-signal); text-decoration: none; }
.site-header__menu .is-active { font-weight: 600; cursor: default; }

/* Far-right bordered action (Log out) — the only pill button in the header. */
.site-header__actions { display: flex; align-items: center; gap: 16px; justify-self: end; }

/* ---- Split-screen shell (signup / login) ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
}

.split__brand {
  background: var(--color-fog);
  border-right: 1px solid var(--color-silver);
  padding: 67px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split__form {
  background: var(--color-snow);
  padding: 67px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.brand-headline {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.07;
  margin: 0 0 21px;
}
.brand-headline em {
  font-style: normal;
  color: var(--color-rose-signal);
}

.brand-sub {
  font-size: 17px;
  color: var(--color-graphite);
  line-height: 1.6;
  margin: 0;
  max-width: 34ch;
}

.brand-proof {
  margin-top: 38px;
  padding-top: 21px;
  border-top: 1px solid var(--color-silver);
  font-size: 15px;
  color: var(--color-smoke);
}

/* ---- Forms ---- */

.page-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 29px;
  text-align: center;
}

.field { margin-bottom: 17px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  font-family: var(--font-sen);
  font-size: 15px;
  color: var(--color-charcoal);
  background: var(--color-snow);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-card);
  padding: 11px 13px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-graphite);
}
input::placeholder, textarea::placeholder { color: var(--color-ash); }

textarea { resize: vertical; min-height: 72px; }

.terms {
  font-size: 13px;
  color: var(--color-smoke);
  margin: 4px 0 21px;
}

/* Explanatory line under a single input (e.g. where a beta invite code comes from). */
.field-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-smoke);
  margin: 6px 0 0;
}
.field-hint b { color: var(--color-charcoal); font-weight: 600; }

/* Codes are issued and stored uppercase; typing lowercase still works, it just looks
   like the code on the card while you type it. */
input.code-input {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
input.code-input::placeholder { text-transform: none; letter-spacing: normal; }

/* The one and only filled button variant: Charcoal. */
.btn {
  width: 100%;
  font-family: var(--font-sen);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-snow);
  background: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  cursor: pointer;
}
.btn:disabled { background: var(--color-ash); border-color: var(--color-ash); cursor: default; }

/* Secondary outlined action (e.g. logout): never a chromatic fill. */
.btn-ghost {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-graphite);
  transition: color .18s ease, border-color .18s ease;
}
.btn-ghost:hover {
  color: var(--color-rose-signal);
  border-color: var(--color-rose-signal);
}

.form-foot {
  margin-top: 21px;
  text-align: center;
  font-size: 15px;
  color: var(--color-smoke);
}

.alert {
  font-size: 14px;
  color: #9b2c2c;
  background: var(--color-mist);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-card);
  padding: 10px 13px;
  margin-bottom: 17px;
}
.alert:empty { display: none; }

.hint {
  font-size: 14px;
  color: var(--color-smoke);
  margin: 8px 0 0;
}

.hint--success {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hint--success.is-visible {
  opacity: 1;
}
.hint--success .hint-check {
  color: var(--color-emerald-pulse);
  margin-right: 2px;
}

/* ---- App / onboarding + review ---- */

.app-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 38px 25px 90px;
}

.card {
  background: var(--color-snow);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-card);
  padding: 25px;
  margin-bottom: 21px;
}
.card h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}
.card .card-sub {
  font-size: 15px;
  color: var(--color-graphite);
  margin: 0 0 21px;
}

/* Profile-editor tabs: hairline-bordered bar, active tab gets a charcoal underline —
   no rose here, that hue is reserved for hover states and Pilou's own voice. */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-silver);
  margin-bottom: 21px;
  overflow-x: auto;
}
.tab-btn {
  font-family: var(--font-sen);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-graphite);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 11px 17px;
  white-space: nowrap;
  cursor: pointer;
}
.tab-btn:hover { color: var(--color-charcoal); }
.tab-btn.is-active {
  color: var(--color-charcoal);
  font-weight: 600;
  border-bottom-color: var(--color-charcoal);
}

/* Two-column tab layout, now that .app-wrap has room: pairs of related cards (Personal +
   Skills/Languages, Education + Projects, Preferences + Saved answers) sit side by side
   instead of stacking full-width. .grid-col is a plain stacking column for a tab-grid cell
   that holds more than one card. */
.tab-grid {
  display: grid;
  /* minmax(0, 1fr), not 1fr: a grid track's default min width is its content's min-content
     size, so one unbreakable long string (a project name, a URL) would force this track
     wider than its share and push the whole page off-center to the right. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 21px;
  align-items: start;
}
.grid-col > .card:last-child { margin-bottom: 0; }

/* Repeatable-item lists (a job, a diploma, a project...) laid out two per row instead of
   one, so a wide viewport isn't wasted on a single narrow column of cards. Row spacing
   comes from .item's own margin-bottom, so the grid only adds a column gap. */
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 21px;
}

@media (max-width: 820px) {
  .tab-grid, .section-grid { grid-template-columns: 1fr; }
}

.dropzone {
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-card);
  background: var(--color-fog);
  padding: 38px 25px;
  text-align: center;
}
.dropzone input[type="file"] { margin: 13px 0 21px; }
.dropzone .btn { max-width: 260px; margin: 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  color: var(--color-charcoal);
  background: var(--color-mist);
  border-radius: var(--radius-pill);
  padding: 4px 13px;
}

/* Editable chips (profile skills): the chip carries its own remove control, and the
   add row sits under the list. Rose only on the small × hover, never as a fill. */
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip-x {
  border: none;
  background: none;
  padding: 0;
  width: auto;
  font-family: var(--font-sen);
  font-size: 15px;
  line-height: 1;
  color: var(--color-smoke);
  cursor: pointer;
}
.chip-x:hover { color: var(--color-rose-signal); }
.chip-add { display: flex; gap: 8px; margin-top: 13px; }
.chip-add input { flex: 1; }

/* Repeatable profile entries (a job, a diploma, a project, a language, a saved answer).
   A Fog surface inside the white card: one more layer of the surface stack, no shadow. */
.item {
  background: var(--color-fog);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-card);
  padding: 17px;
  margin-bottom: 13px;
}
.item .field:last-child { margin-bottom: 0; }
.item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 13px;
}
.item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* A flex item's default min-width is its content's min-content size, which for
     white-space:nowrap text is the full unwrapped string — without this, a long entry
     title (e.g. a project name) refuses to shrink and overflows .item-head instead of
     eliding, pushing the whole page wider than the viewport. */
  min-width: 0;
}

/* Small outlined pill for add/remove inside a card: same ghost treatment as the
   header action, one size down. Never a filled variant. */
.btn-small {
  width: auto;
  flex: none;
  font-family: var(--font-sen);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-charcoal);
  background: none;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-pill);
  padding: 6px 17px;
  cursor: pointer;
}
.btn-small:hover { border-color: var(--color-graphite); }
.btn-remove { color: var(--color-graphite); }
.btn-remove:hover { border-color: var(--color-rose-signal); color: var(--color-rose-signal); }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.checkbox-row input { width: auto; }

.status-tag {
  display: inline-block;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-pill);
  padding: 1px 10px;
  font-size: 13px;
  color: var(--color-graphite);
}

/* ---- Pilou signature: first-person note bubble (reused across app pages) ---- */

.pilou-note { display: flex; gap: 10px; align-items: flex-end; margin-top: 21px; }
.pilou-avatar {
  width: 32px; height: 32px; border-radius: var(--radius-pill); flex: none;
  background: var(--color-fog); border: 1px solid var(--color-silver);
  display: flex; align-items: center; justify-content: center;
}
.pilou-avatar img { width: 17px; height: 17px; display: block; }
.pilou-bubble {
  background: var(--color-mist);
  border-radius: var(--radius-card);
  border-bottom-left-radius: 4px;
  padding: 11px 14px;
}
.pilou-bubble p { font-size: 14px; color: var(--color-charcoal); line-height: 1.6; margin: 0; }
.pilou-bubble p b { font-weight: 700; }
.pilou-bubble p em { font-style: italic; color: var(--color-graphite); }

/* ---- Date range dropdown (reusable: see web/date-picker.js, design.md) ---- */

.date-dd { position: relative; }
.date-dd-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-sen); font-size: 15px; color: var(--color-charcoal);
  background: var(--color-snow); border: 1px solid var(--color-silver);
  border-radius: var(--radius-card); padding: 11px 13px; cursor: pointer; text-align: left;
}
.date-dd-trigger .chev { flex: none; display: flex; color: var(--color-smoke); transition: transform .15s; }
.date-dd.open .date-dd-trigger .chev { transform: rotate(180deg); }
.date-dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  background: var(--color-snow); border: 1px solid var(--color-silver);
  border-radius: var(--radius-card); padding: 6px;
}
.date-dd-option {
  display: block; width: 100%; min-width: 200px; text-align: left; background: none; border: none;
  font-family: var(--font-sen); font-size: 15px; color: var(--color-charcoal);
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.date-dd-option:hover { background: var(--color-fog); }
.date-dd-option.active { background: var(--color-mist); font-weight: 600; }

.date-dd-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(51, 51, 51, 0.4); }
.date-dd-calendar {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 101;
  width: 260px; padding: 21px;
  background: var(--color-snow); border: 1px solid var(--color-silver);
  border-radius: var(--radius-card);
}
/* Calendar-only mode (opts.presets: false, no Today/Last-7/Last-30/Personalized step above it):
   no extra override needed here since the calendar is always its own centered fixed popup,
   independent of whether the preset step above it exists. */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.cal-nav {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--color-snow); border: 1px solid var(--color-silver); border-radius: 8px;
  color: var(--color-charcoal); cursor: pointer; padding: 0;
}
.cal-nav:hover { background: var(--color-fog); }
.cal-nav:disabled { opacity: .35; cursor: default; pointer-events: none; }
.cal-month-label {
  font-family: var(--font-sen); font-size: 15px; font-weight: 600; color: var(--color-charcoal);
}
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
  font-size: 12px; color: var(--color-smoke); margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto; font-size: 14px; color: var(--color-charcoal); background: none; border: none;
  border-radius: var(--radius-pill); cursor: pointer; position: relative; font-family: var(--font-sen);
}
.cal-day:hover { background: var(--color-fog); }
.cal-day.muted { color: var(--color-ash); cursor: default; }
.cal-day.muted:hover { background: none; }
.cal-day.disabled { color: var(--color-ash); cursor: default; opacity: .5; }
.cal-day.disabled:hover { background: none; }
.cal-day.selected { background: var(--color-charcoal); color: var(--color-snow); font-weight: 600; }
.cal-day.today::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--color-rose-signal);
}
.cal-day.today.selected::after { background: var(--color-snow); }

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-smoke);
  margin: 0 0 13px;
}

/* ---- ATS CV page (/cv, web/cv.js) ---- */

/* A charcoal .btn rendered as a link (e.g. "Go to my profile"): same pill, no underline. */
.cv-btn-link { display: inline-block; width: auto; text-decoration: none; text-align: center; }
.cv-btn-link:hover { text-decoration: none; }

/* Language picker: multi-select pill toggles. The selected state reuses the
   system's single filled surface (Charcoal), exactly as the date picker's
   selected day does, rather than introducing a second accent fill. */
.cv-lang-picker { border: 0; margin: 21px 0; padding: 0; }
.cv-lang-picker .section-label { padding: 0; margin-bottom: 8px; }
.cv-lang-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-lang-opt {
  position: relative;   /* anchors the visually-hidden checkbox inside the pill */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-charcoal);
  background: var(--color-snow);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
}
.cv-lang-opt:hover { border-color: var(--color-graphite); }
.cv-lang-opt.is-on {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-snow);
}
/* The checkbox stays in the DOM (and keyboard-reachable) but the pill IS the
   control: a native box next to a filled pill reads as two competing states. */
.cv-lang-check { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cv-lang-opt:focus-within { outline: 2px solid var(--color-graphite); outline-offset: 2px; }
.cv-lang-tag { font-size: 13px; font-weight: 400; color: var(--color-smoke); }
.cv-lang-opt.is-on .cv-lang-tag { color: var(--color-silver); }
#lang-hint { margin: 13px 0 0; }

/* Flags are content (which edition of the CV), not palette, so their colours sit
   outside the accent rules. Kept at icon scale, with a hairline so a white band
   still has an edge against the Snow canvas. */
.cv-flag {
  width: 18px;
  height: 12px;
  flex: none;
  border: 1px solid var(--color-silver);
  border-radius: 1px;
}
.cv-lang-opt.is-on .cv-flag { border-color: rgba(255, 255, 255, 0.45); }

.cv-lang-card { margin-bottom: 0; }
.cv-lang-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.cv-lang-head h2 { margin: 0; }
.cv-lang-title { display: inline-flex; align-items: center; gap: 8px; }
.cv-lang-title .cv-flag { width: 24px; height: 16px; }
.cv-built-at { margin: 4px 0 13px; }

.status-tag[title] { cursor: help; }

.cv-lang-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cv-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
}
.cv-preview-btn svg { width: 14px; height: 14px; flex: none; }

.cv-preview-modal { width: 100%; max-width: 760px; height: 86vh; }
.cv-preview-body { flex: 1; padding: 0; overflow: hidden; }
.cv-preview-body iframe { display: block; width: 100%; height: 100%; border: 0; }

.cv-downloads { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
a.cv-download { color: var(--color-charcoal); text-decoration: none; }
a.cv-download:hover { text-decoration: none; border-color: var(--color-graphite); }

.cv-lang-card .section-label { margin: 21px 0 8px; }
.cv-check-list { list-style: none; margin: 0; padding: 0; }
.cv-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; line-height: 1.5; padding: 3px 0;
}
/* The one sanctioned accent use: 14px functional ticks. Emerald = the neutral
   system-success color; rose marks what needs the user (never a fill). */
.cv-tick { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.cv-tick.is-ok { color: var(--color-emerald-pulse); }
.cv-tick.is-fail { color: var(--color-rose-signal); }
.cv-check-detail { font-size: 13px; color: var(--color-smoke); }

.cv-robot { margin-top: 21px; border-top: 1px solid var(--color-silver); padding-top: 13px; }
.cv-robot summary {
  font-size: 15px; font-weight: 600; color: var(--color-charcoal); cursor: pointer;
}
.cv-robot .hint { margin: 8px 0; }
.cv-robot-pre {
  background: var(--color-fog);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius-card);
  padding: 13px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow: auto;
}

/* ---------------------------------------------------------------------------
   Modal dialog
   Lifted out of web/dashboard.html's page block when /interview became its
   second consumer: a component on 2+ pages has exactly one source of truth, so
   a style change never means hunting down every copy (see .claude/rules/design.md).
   Flat like everything else here: the overlay tint and the hairline border do
   the separating, there is no shadow.
   --------------------------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(51, 51, 51, .42); display: flex; align-items: center; justify-content: center; padding: 25px; }
.modal-overlay[hidden] { display: none; }
.modal { width: 100%; max-width: 580px; background: var(--color-snow); border: 1px solid var(--color-silver); border-radius: var(--radius-card); max-height: 86vh; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; padding: 19px 21px 13px; border-bottom: 1px solid var(--color-silver); }
.modal-head h3 { font-size: 19px; font-weight: 600; margin: 0; line-height: 1.3; }
.modal-head .sub { font-size: 13px; color: var(--color-smoke); margin: 3px 0 0; }
.modal-close { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--color-snow); border: 1px solid var(--color-silver); border-radius: 8px; color: var(--color-graphite); cursor: pointer; }
.modal-close:hover { background: var(--color-fog); }
.modal-body { padding: 19px 21px; overflow-y: auto; }
.modal-body p.desc-text { font-size: 15px; line-height: 1.6; color: var(--color-charcoal); white-space: pre-wrap; margin: 0; }
.modal-textarea { width: 100%; min-height: 190px; font-family: var(--font-sen); font-size: 15px; line-height: 1.6; }
.modal-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 21px 19px; border-top: 1px solid var(--color-silver); }
.modal-foot .btn { width: auto; padding: 9px 18px; font-size: 14px; }
.modal-foot .btn-ghost { padding: 9px 17px; }

/* ---------------------------------------------------------------------------
   Mock-interview chat bubbles
   The shape .claude/rules/design.md names as the one to reuse for anything
   conversational: q is the interviewer on the left in mist, a is the candidate
   on the right in charcoal, each notched on the corner nearest its speaker.
   index.html carries its own copy of this on purpose (the landing page is
   deliberately self-contained and does not link this file), so the two are a
   re-expression of one shape, not a duplication to collapse. Keep them in sync.
   --------------------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: var(--radius-card); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.bubble.q { align-self: flex-start; background: var(--color-mist); color: var(--color-charcoal); border-bottom-left-radius: 4px; }
.bubble.a { align-self: flex-end; background: var(--color-charcoal); color: var(--color-snow); border-bottom-right-radius: 4px; }

/* Pilou's turns reuse the pilou-note avatar + bubble pairing (see the "Pilou signature" block
   above) instead of a bare bubble, so the same small mark that vouches for truthfulness on
   profile/cv shows up here too. Only Pilou gets the avatar; the candidate's own bubble stays
   unchanged. */
.bubble-row { display: flex; gap: 10px; align-items: flex-end; align-self: flex-start; max-width: 82%; }
.bubble-row .bubble.q { align-self: auto; max-width: none; }

/* Pilou is composing. Three dots rather than a spinner: the system has no
   spinners, and the dots read as "someone is typing" instead of "loading". */
.bubble.typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.bubble.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--color-smoke); animation: iv-dot 1.1s infinite ease-in-out; }
.bubble.typing i:nth-child(2) { animation-delay: .16s; }
.bubble.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes iv-dot { 0%, 60%, 100% { opacity: .28; } 30% { opacity: 1; } }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__brand { display: none; }
}
