/* Prêt-à-passer brand tokens (Brand system v2).
   Loaded last on every page so its roles win over older per-page variables.
   Every colour is a light/dark pair. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB;
}

:root {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --marine: #1f3a6b;
  --mer: #5aa9d6;
  --citron: #f4d35e;
  --tomate: #d8413a;
  --voile: #f7f7f2;
  /* roles */
  --bg: #f7f7f2;
  --card: #ffffff;
  --ink: #1a2b4a;
  --heading: #1f3a6b;
  --muted: #51607a;
  --border: #c7d6e4;
  --line: #9fb3c8;
  --tint: #e6f1f9;
  --track: #eef1f5;
  --accent-text: #1f3a6b;
  --error: #c7362f;
  --error-bg: #fff5f4;
  --success: #2e6b4f;
  --success-bg: #edf6f1;
  --focus: #1f3a6b;
  --on-citron: #1f3a6b;
  /* legacy names used by older stylesheets */
  --text: #1f3a6b;
  --body: #1a2b4a;
  --secondary: #51607a;
  --sea: #5aa9d6;
  --sidebar: #1f3a6b;
  --side-text: #f7f7f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1b3058;
    --card: #243d6b;
    --ink: #f2f5fa;
    --heading: #f7f7f2;
    --muted: #c3cede;
    --border: #3a5687;
    --line: #6f8bb5;
    --tint: #2e4a7d;
    --track: #2e4a7d;
    --accent-text: #f7f7f2;
    --error: #ff8a7e;
    --error-bg: #3a2a3a;
    --success: #7fd1a8;
    --success-bg: #24473f;
    --focus: #5aa9d6;
    --text: #f7f7f2;
    --body: #f2f5fa;
    --secondary: #c3cede;
    --sidebar: #142748;
    --side-text: #f2f5fa;
  }
}

body {
  font-family: var(--serif);
}
button,
input,
select,
textarea {
  font-family: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 2px !important;
}

/* ---------- plan pills ---------- */
.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font: 700 12px/18px var(--serif);
  white-space: nowrap;
  vertical-align: middle;
}
.plan-pill-success {
  background: var(--tint);
  color: var(--accent-text);
}
.plan-pill-premium {
  background: #1f3a6b;
  color: #f7f7f2;
  box-shadow: inset 0 0 0 1.5px var(--citron);
}
.plan-pill-free {
  border: 1px solid var(--border);
  color: var(--accent-text);
}

/* ---------- buttons ---------- */
.link-button {
  background: none;
  border: 0;
  padding: 0 4px;
  min-height: 44px;
  color: var(--accent-text);
  font: 600 16px var(--serif);
  text-decoration: underline;
  text-decoration-color: var(--mer);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

/* ---------- upgrade dialog (V2): one surface, price under the label ---------- */
.funnel-dialog {
  background: var(--card) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
}
.funnel-dialog h2 {
  color: var(--heading);
  font-size: 24px;
  line-height: 1.2;
  margin: 10px 0 8px;
}
.funnel-dialog-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 20px;
}
.funnel-dialog .upgrade-go {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 56px;
  padding: 10px 20px;
  gap: 2px;
  line-height: 1.2;
  width: 100%;
}
.funnel-dialog .upgrade-go small {
  font-weight: 400;
  font-size: 13px;
}
.funnel-dialog .link-button {
  align-self: center;
}

/* ---------- paid capability buttons (H4) ---------- */
.funnel-features {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.funnel-features[hidden] {
  display: none !important;
}
.feature-button {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  height: auto !important;
  min-height: 52px;
  padding: 8px 14px !important;
  gap: 2px;
  line-height: 1.2;
  text-align: left;
}
.feature-button small {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.feature-button small:empty {
  display: none;
}

/* ---------- phrasing check (H1) ---------- */
.phrasing-check {
  background: var(--tint) !important;
  border: 1.5px solid var(--mer) !important;
  color: var(--ink) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phrasing-check .demo-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phrasing-check .chloe-avatar.small {
  width: 44px;
  height: 44px;
}
.phrasing-check h3 {
  margin: 0;
  color: var(--heading);
}
.phrasing-check > blockquote {
  margin: 0;
  padding: 12px 14px;
  background: var(--card);
  border: 0 !important;
  border-radius: 12px;
  font-size: 19px;
  color: var(--heading);
}
.phrasing-check fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.phrasing-check legend {
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.demo-options {
  display: grid;
  gap: 8px;
}
.demo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 400 16px/1.35 var(--serif);
  text-align: left;
  cursor: pointer;
  margin: 0 !important;
}
.demo-option:disabled {
  cursor: default;
  opacity: 0.7;
}
.demo-option.right {
  border: 2px solid var(--success);
  background: var(--success-bg);
  opacity: 1;
}
.demo-option.wrong {
  border: 2px solid var(--error);
  background: var(--error-bg);
  opacity: 1;
}
.demo-tag {
  margin-left: auto;
  font-weight: 700;
  font-size: 13px;
}
.demo-option.right .demo-tag {
  color: var(--success);
}
.demo-option.wrong .demo-tag {
  color: var(--error);
}
.demo-option.right .demo-tag::before {
  content: "✓ ";
}
.demo-option.wrong .demo-tag::before {
  content: "✕ ";
}
.demo-feedback:not(:empty) {
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-feedback b {
  color: var(--heading);
}
.demo-feedback p {
  margin: 0;
}

/* ---------- Livret source under answers ---------- */
.livret-source {
  margin-top: 10px;
}
.livret-source blockquote {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--mer);
  background: var(--bg);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.livret-ref {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.livret-ref::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: var(--icon-book) center/contain no-repeat;
  mask: var(--icon-book) center/contain no-repeat;
}

/* ---------- restored draft (F3) ---------- */
.restored-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--ink);
  font-size: 15px;
}

/* ---------- dictée ---------- */
.dictee {
  margin-top: 22px;
  padding: 20px;
  border: 1.5px solid var(--mer);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dictee h3 {
  margin: 0;
  color: var(--heading);
}
.dictee-intro {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.dictee-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.dictee-settings select {
  margin-left: 8px;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 0 10px;
}
.dictee-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.dictee-check input {
  width: 20px;
  height: 20px;
}
.dictee-actions,
.dictee-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dictee-progress {
  margin: 0;
  font-weight: 600;
  color: var(--heading);
}
.dictee-bar {
  height: 6px;
  background: var(--track);
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0 10px;
}
.dictee-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mer);
  transition: width 0.3s;
}
.dictee-write {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--heading);
}
.dictee-write textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: 18px/1.6 var(--serif);
  background: var(--card);
  color: var(--ink);
  box-sizing: border-box;
}
.dictee-result {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
}
.dictee-score {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--heading);
}
.dictee-diff {
  margin: 0;
  font-size: 18px;
  line-height: 2;
}
.dictee [class^="w-"] {
  padding: 1px 3px;
  border-radius: 4px;
}
.dictee .w-ok {
  color: var(--ink);
}
.dictee .w-missing {
  background: var(--error-bg);
  color: var(--error);
  text-decoration: underline wavy;
}
.dictee .w-spelling,
.dictee .w-accent {
  background: #fff1c9;
  color: #6b4a12;
}
.dictee .w-extra {
  color: var(--muted);
}
.dictee small {
  font-size: 13px;
}
.dictee-legend {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.dictee-status:empty {
  display: none;
}
.dictee-status {
  margin: 0;
  color: var(--error);
}
@media (prefers-color-scheme: dark) {
  .dictee .w-spelling,
  .dictee .w-accent {
    background: #4a3f1d;
    color: #f4d35e;
  }
}

/* ---------- form errors (A4) ---------- */
.form-error {
  color: var(--error) !important;
  font-weight: 600;
}
.form-error::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: var(--icon-alert) center/contain no-repeat;
  mask: var(--icon-alert) center/contain no-repeat;
}
input[aria-invalid="true"] {
  border-color: var(--error) !important;
}
.form-success {
  color: var(--success) !important;
}

/* ---------- icons (replace emoji) ---------- */
:root {
  --icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z'/%3E%3C/svg%3E");
  --icon-mic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E");
  --icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --icon-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E");
  --icon-speaker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z'/%3E%3Cpath d='M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E");
  --icon-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 4h12a4 4 0 0 1 4 4v12H8a4 4 0 0 1-4-4z'/%3E%3Cpath d='M8 8h8M8 12h6'/%3E%3C/svg%3E");
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E");
}
#listen::before,
#listenGuidelines::before,
#listenPersonalGuide::before,
#listenTranslation::before,
#record::before,
#personalRecord::before,
.version-option.locked::before,
.nav button.locked > span:first-child::before,
.settings > summary::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
  background: currentColor;
  flex: none;
}
#listen::before {
  -webkit-mask: var(--icon-play) center/contain no-repeat;
  mask: var(--icon-play) center/contain no-repeat;
}
#listenGuidelines::before,
#listenPersonalGuide::before,
#listenTranslation::before {
  -webkit-mask: var(--icon-speaker) center/contain no-repeat;
  mask: var(--icon-speaker) center/contain no-repeat;
}
#record::before,
#personalRecord::before {
  -webkit-mask: var(--icon-mic) center/contain no-repeat;
  mask: var(--icon-mic) center/contain no-repeat;
}
.version-option.locked::before,
.nav button.locked > span:first-child::before {
  width: 13px;
  height: 13px;
  margin-right: 6px;
  -webkit-mask: var(--icon-lock) center/contain no-repeat;
  mask: var(--icon-lock) center/contain no-repeat;
}
.settings > summary::before {
  -webkit-mask: var(--icon-gear) center/contain no-repeat;
  mask: var(--icon-gear) center/contain no-repeat;
}
/* A2: locked wording options readable (4.5:1+) */
.version-option.locked {
  color: var(--muted) !important;
}

/* ---------- nav: Interview Insights + phone account item (M2) ---------- */
.global-nav .nav-pill {
  margin-left: 6px;
  font-size: 11px;
  line-height: 16px;
  padding: 1px 7px;
}
.global-nav .nav-mobile-only {
  display: none;
}
@media (max-width: 760px) {
  .global-nav.open .nav-mobile-only {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .global-nav.open {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .global-nav.open a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
}
.menu-toggle[aria-expanded="true"] {
  background: var(--marine) !important;
  color: var(--voile) !important;
}
@media (prefers-color-scheme: dark) {
  .menu-toggle[aria-expanded="true"] {
    background: var(--voile) !important;
    color: var(--marine) !important;
  }
}

/* ---------- study page polish (V5, button ladder) ---------- */
body[data-page="study"] #listen {
  background: transparent !important;
  color: var(--heading) !important;
  border: 1.5px solid var(--heading) !important;
}
body[data-page="study"] .settings {
  margin-left: 0 !important;
}
@media (min-width: 761px) {
  body[data-page="study"] .shell {
    background: linear-gradient(
      to right,
      var(--sidebar) 0 260px,
      transparent 260px
    );
  }
}

/* ---------- interview report (5 steps, phone first) ---------- */
.report-flow {
  width: min(560px, 100vw);
  max-width: 100vw;
  max-height: min(860px, 100dvh);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--serif);
}
.report-flow[open] {
  display: flex;
}
.report-flow::backdrop {
  background: rgb(15 30 60 / 0.5);
}
@media (max-width: 600px) {
  .report-flow {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
  }
}
.report-head {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.report-close {
  width: 44px;
  height: 44px;
  margin: -8px -10px -8px 0;
  border: 0;
  background: none;
  color: var(--heading);
  cursor: pointer;
}
.report-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.report-progress i {
  height: 5px;
  border-radius: 3px;
  background: var(--border);
}
.report-progress i.on {
  background: var(--heading);
}
.report-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.report-body h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  color: var(--heading);
}
.report-body h2.small {
  font-size: 20px;
  margin-top: 6px;
}
.report-body p {
  margin: 0;
}
.report-intro {
  display: flex;
  gap: 12px;
  align-items: center;
}
.report-intro .chloe-avatar {
  width: 46px;
  height: 46px;
}
.report-promise {
  margin: 0;
  padding: 12px 14px 12px 32px;
  background: var(--tint);
  border-radius: 12px;
  font-size: 14px;
  display: grid;
  gap: 3px;
}
.report-summary,
.report-hint {
  font-size: 13px;
  color: var(--muted);
}
.report-q {
  font-weight: 600;
  color: var(--heading);
  font-size: 15px;
  margin: 4px 0 0 !important;
  display: block;
}
.report-q.big {
  font-size: 17px;
}
.report-q b {
  font-weight: 400;
  color: var(--muted);
}
.report-strong {
  font-weight: 600;
}
.report-body select,
.report-body textarea {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
  font: 16px var(--serif);
  box-sizing: border-box;
}
.report-options {
  display: grid;
  gap: 6px;
}
.report-cap {
  font: 700 12px/1.2 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px !important;
}
.report-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: 15px/1.35 var(--serif);
  text-align: left;
  cursor: pointer;
}
.report-option small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.report-option .radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  flex-shrink: 0;
  margin-top: 1px;
  box-sizing: border-box;
}
.report-option.on {
  border-color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--heading);
}
.report-option.on .radio-dot {
  border: 6px solid var(--heading);
}
.report-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.report-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: 14px var(--serif);
  cursor: pointer;
  text-align: left;
}
.report-chip.on {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--bg);
}
.report-themes .report-chip.on::before {
  content: "✓";
  font-weight: 700;
}
.report-scale {
  display: grid;
  gap: 4px;
}
.scale-cells {
  display: grid;
  gap: 4px;
}
.scale-cells button {
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
  font: 600 14px system-ui, sans-serif;
  cursor: pointer;
}
.scale-cells button.on {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--bg);
}
.scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.report-privacy {
  font-size: 13px;
  background: var(--tint);
  border-radius: 10px;
  padding: 8px 10px;
}
.report-foot {
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}
.report-error {
  margin: 0 0 8px;
}
.report-buttons {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}
.report-buttons .btn-primary,
.report-buttons .btn-secondary {
  width: 100%;
  min-height: 50px;
  height: auto;
}
.report-buttons > :only-child {
  grid-column: 1 / -1;
}

/* My preparation: interview answers and Insights cards */
.answers-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.answers-card h2 .plan-pill-premium,
.insights-card h2 .plan-pill-premium {
  vertical-align: middle;
  margin-left: 6px;
}
.answers-card .progress-bar {
  margin-top: 8px;
}
.insights-hint {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.insights-hint .plan-pill-premium {
  margin-left: 4px;
  vertical-align: middle;
}
