/* ===========================================================================
   moncvhub — Prépa Entretien IA · production stylesheet
   Ported from the Stitch design source (.redesign-prepa-source/prepa.css +
   prepa-room.css), 2026-06-06. The dev-only "review chrome" (.review-bar,
   .stage, .frame, .scroll, .appnav, .appbar, .tabbar) is stripped — the
   page lives inside the existing /outils/layout.tsx (HomeNav + MobileTabBar).
   Device-conditional rules `[data-device="mobile|desktop"]` are converted to
   standard @media queries (break at 900px).
   =========================================================================== */

:root {
  /* Brand — green family (matches Tailwind primary-* tokens) */
  --pe-brand: #134E3A;
  --pe-brand-strong: #0E3F2E;
  --pe-brand-hover: #176A4C;
  --pe-brand-ink: #0C2E22;
  --pe-brand-tint: #E8F1EC;
  --pe-brand-tint-2: #F3F8F5;
  --pe-brand-ring: rgba(19, 78, 58, 0.16);

  /* Neutrals — warm green-leaning grey */
  --pe-bg: #FBFCFB;
  --pe-surface: #FFFFFF;
  --pe-surface-2: #F6F8F7;
  --pe-ink: #16211C;
  --pe-ink-2: #46544D;
  --pe-ink-3: #748179;
  --pe-border: #E7ECE9;
  --pe-border-2: #DCE3DF;

  /* Coral accent — used sparingly per brief (warm, lifted from --roast family) */
  --pe-coral: #FF6B35;
  --pe-coral-ink: #C2410C;
  --pe-coral-tint: #FCEDE4;

  /* Functional (derived, calm) */
  --pe-good: #157A52;
  --pe-good-tint: #E4F1EA;
  --pe-warn-ink: #B45309;
  --pe-warn-tint: #FBF1E2;

  --pe-radius: 18px;
  --pe-radius-sm: 12px;
  --pe-radius-lg: 24px;
  --pe-radius-xl: 30px;
  --pe-shadow-1: 0 1px 2px rgba(16, 38, 28, 0.04), 0 2px 8px rgba(16, 38, 28, 0.05);
  --pe-shadow-2: 0 4px 14px rgba(16, 38, 28, 0.06), 0 10px 34px rgba(16, 38, 28, 0.08);
  --pe-shadow-3: 0 8px 24px rgba(16, 38, 28, 0.08), 0 24px 60px rgba(16, 38, 28, 0.12);

  --pe-ease: cubic-bezier(0.32, 0.72, 0.32, 1);
  --pe-dur: 200ms;
}

.pe-root {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--pe-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: var(--pe-bg);
  min-height: 60vh;
  position: relative;
}
.pe-root * { box-sizing: border-box; }
.pe-root h1, .pe-root h2, .pe-root h3, .pe-root h4 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
.pe-root :focus-visible { outline: 2.5px solid var(--pe-brand); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .pe-root *, .pe-root *::before, .pe-root *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================ Icons ============================ */
.pe-root .icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pe-root .icon-sm { width: 16px; height: 16px; }
.pe-root .icon-lg { width: 26px; height: 26px; }

/* ============================ Buttons ============================ */
.pe-root .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--pe-dur) var(--pe-ease), background var(--pe-dur) var(--pe-ease), box-shadow var(--pe-dur) var(--pe-ease), color var(--pe-dur) var(--pe-ease), border-color var(--pe-dur) var(--pe-ease);
}
.pe-root .btn:active { transform: translateY(1px) scale(0.99); }
.pe-root .btn-primary { background: var(--pe-brand); color: #fff; box-shadow: 0 6px 18px var(--pe-brand-ring); }
.pe-root .btn-primary:hover { background: var(--pe-brand-hover); box-shadow: 0 10px 26px var(--pe-brand-ring); }
.pe-root .btn-block { width: 100%; }
.pe-root .btn-lg { min-height: 56px; font-size: 1.06rem; padding: 0 28px; }
.pe-root .btn-sm { min-height: 42px; font-size: 0.92rem; padding: 0 18px; gap: 8px; }
.pe-root .btn-ghost { background: transparent; color: var(--pe-ink); border: 1.5px solid var(--pe-border-2); }
.pe-root .btn-ghost:hover { border-color: var(--pe-brand); color: var(--pe-brand); background: var(--pe-brand-tint-2); }
.pe-root .btn-soft { background: var(--pe-brand-tint); color: var(--pe-brand-ink); }
.pe-root .btn-soft:hover { background: #DCEAE2; }
.pe-root .btn-white { background: #fff; color: var(--pe-brand); }
.pe-root .btn-white:hover { background: #F0F5F2; }
.pe-root .btn-coral { background: var(--pe-coral); color: #fff; box-shadow: 0 6px 18px rgba(255,107,53,0.25); }
.pe-root .btn-coral:hover { background: #F65A20; }
.pe-root .btn-link { background: none; border: 0; color: var(--pe-brand); font-weight: 700; cursor: pointer; padding: 8px 14px; }

/* ============================ Generic layout helpers ============================ */
.pe-root .screen { animation: peScreenIn 240ms var(--pe-ease) both; }
@keyframes peScreenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pe-root .wrap-d { max-width: 1080px; margin-inline: auto; padding: 0 18px; }
@media (min-width: 901px) { .pe-root .wrap-d { padding: 0 30px; } }
.pe-root .eyebrow { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pe-brand); margin: 0 0 10px; }
.pe-root .muted { color: var(--pe-ink-2); }
.pe-root .center { text-align: center; }

/* chips */
.pe-root .chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: var(--pe-surface); border: 1.5px solid var(--pe-border-2); font-size: 0.9rem; font-weight: 600; color: var(--pe-ink-2); cursor: pointer; transition: border-color var(--pe-dur), background var(--pe-dur), color var(--pe-dur); }
.pe-root .chip:hover { border-color: var(--pe-brand); color: var(--pe-brand); }
.pe-root .chip[data-on="1"] { background: var(--pe-brand-tint); border-color: var(--pe-brand); color: var(--pe-brand-ink); }
.pe-root .chip .ico { font-size: 1rem; line-height: 1; }
.pe-root .chip-row { display: flex; flex-wrap: wrap; gap: 9px; }

/* ============================ LANDING ============================ */
.pe-root .lp-hero { position: relative; overflow: clip; padding: 26px 18px 30px; }
.pe-root .lp-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 55% at 80% -8%, var(--pe-brand-tint) 0%, transparent 66%), radial-gradient(60% 45% at -5% 4%, var(--pe-brand-tint-2) 0%, transparent 60%); }
.pe-root .lp-hero > * { position: relative; z-index: 1; }
.pe-root .lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--pe-brand-ink); box-shadow: var(--pe-shadow-1); }
.pe-root .lp-pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--pe-coral); box-shadow: 0 0 0 0 rgba(255,107,53,0.5); animation: peLivePulse 2.4s var(--pe-ease) infinite; }
@keyframes peLivePulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,53,0.45); } 70% { box-shadow: 0 0 0 8px rgba(255,107,53,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); } }
.pe-root .lp-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 800; margin-top: 18px; }
.pe-root .lp-hero .promise { color: var(--pe-ink-2); font-size: 1.08rem; margin: 16px 0 0; max-width: 34ch; text-wrap: pretty; }
.pe-root .lp-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.pe-root .lp-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pe-root .lp-trust .t { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700; color: var(--pe-ink-2); background: var(--pe-surface); border: 1px solid var(--pe-border); padding: 8px 12px; border-radius: 999px; }
.pe-root .lp-trust .t svg { color: var(--pe-brand); }
.pe-root .lp-trust .t strong { color: var(--pe-brand-ink); white-space: nowrap; }

.pe-root .lp-stage-card { background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius-xl); box-shadow: var(--pe-shadow-3); overflow: hidden; }
.pe-root .lp-stage-top { background: linear-gradient(160deg, #165A41, var(--pe-brand-strong)); padding: 26px 24px 30px; color: #fff; position: relative; }
.pe-root .lp-stage-top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,0.1), transparent 60%); }
.pe-root .lp-stage-top .role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.pe-root .lp-stage-q { font-size: 1.22rem; font-weight: 700; margin-top: 12px; line-height: 1.3; max-width: 26ch; position: relative; }
.pe-root .lp-stage-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.pe-root .lp-mini-bars { display: flex; gap: 8px; align-items: center; }

.pe-root .section-soft { padding: 30px 18px; }
.pe-root .section-soft.alt { background: var(--pe-surface-2); }
.pe-root .section-soft h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 800; }
.pe-root .section-soft > .lead { color: var(--pe-ink-2); margin: 10px 0 0; }

/* how it works */
.pe-root .how-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.pe-root .how-item { display: flex; gap: 15px; align-items: flex-start; background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius); padding: 18px; box-shadow: var(--pe-shadow-1); }
.pe-root .how-item .hw-n { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--pe-brand-tint); color: var(--pe-brand); display: grid; place-items: center; font-weight: 800; }
.pe-root .how-item h3 { font-size: 1.06rem; font-weight: 700; }
.pe-root .how-item p { margin: 4px 0 0; color: var(--pe-ink-2); font-size: 0.94rem; }
@media (min-width: 901px) {
  .pe-root .how-list { flex-direction: row; }
  .pe-root .how-item { flex: 1; flex-direction: column; align-items: flex-start; }
}

/* testimonials */
.pe-root .quote-card { background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius); padding: 22px; box-shadow: var(--pe-shadow-1); }
.pe-root .quote-card p { font-size: 1.02rem; color: var(--pe-ink); margin: 0; text-wrap: pretty; }
.pe-root .quote-card .who { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.pe-root .quote-card .who .av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 0.95rem; }
.pe-root .quote-card .who b { font-size: 0.92rem; }
.pe-root .quote-card .who span { display: block; font-size: 0.82rem; color: var(--pe-ink-3); font-weight: 600; }
.pe-root .quote-card .stars { color: var(--pe-coral); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem; }
.pe-root .testimonials-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
@media (min-width: 901px) { .pe-root .testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }

/* faq */
.pe-root .faq2 { margin-top: 18px; }
.pe-root .faq2-item { border: 1px solid var(--pe-border); border-radius: var(--pe-radius-sm); background: var(--pe-surface); margin-bottom: 10px; overflow: hidden; }
.pe-root .faq2-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 1rem; font-weight: 700; color: var(--pe-ink); }
.pe-root .faq2-q .chev { flex: none; color: var(--pe-brand); transition: transform var(--pe-dur); }
.pe-root .faq2-item[data-open="1"] .chev { transform: rotate(45deg); }
.pe-root .faq2-a { max-height: 0; overflow: hidden; transition: max-height var(--pe-dur) var(--pe-ease); }
.pe-root .faq2-a > div { padding: 0 18px 18px; color: var(--pe-ink-2); font-size: 0.95rem; text-wrap: pretty; }

.pe-root .final-band { margin: 16px 18px 30px; background: var(--pe-brand); color: #fff; border-radius: var(--pe-radius-lg); padding: 34px 26px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--pe-shadow-3); }
.pe-root .final-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,0.12), transparent 60%); }
.pe-root .final-band > * { position: relative; }
.pe-root .final-band h2 { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; }
.pe-root .final-band p { opacity: 0.85; margin: 12px 0 22px; }

/* desktop hero grid */
@media (min-width: 901px) {
  .pe-root .lp-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; max-width: 1080px; margin-inline: auto; padding: 8px 30px 30px; }
  .pe-root .lp-hero-grid h1 { font-size: 3rem; }
  .pe-root .lp-hero-grid .promise { font-size: 1.2rem; max-width: 40ch; }
  .pe-root .lp-hero-grid .lp-cta { flex-direction: row; }
}

/* ============================ SETUP WIZARD ============================ */
.pe-root .wz-top { padding: 16px 18px 6px; max-width: 640px; margin-inline: auto; width: 100%; }
@media (min-width: 901px) { .pe-root .wz-top { padding-top: 34px; } }
.pe-root .wz-steps { display: flex; align-items: center; gap: 8px; }
.pe-root .wz-steps .s { flex: 1; height: 6px; border-radius: 999px; background: var(--pe-border-2); overflow: hidden; }
.pe-root .wz-steps .s .fill { display: block; height: 100%; width: 0; background: var(--pe-brand); border-radius: inherit; transition: width 360ms var(--pe-ease); }
.pe-root .wz-steps .s[data-state="done"] .fill, .pe-root .wz-steps .s[data-state="active"] .fill { width: 100%; }
.pe-root .wz-steps .s[data-state="active"] .fill { background: linear-gradient(90deg, var(--pe-brand), var(--pe-brand-hover)); }
.pe-root .wz-label { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.pe-root .wz-label .k { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pe-ink-3); }
.pe-root .wz-label .skip { font-size: 0.86rem; font-weight: 700; color: var(--pe-ink-3); background: none; border: 0; cursor: pointer; }
.pe-root .wz-label .skip:hover { color: var(--pe-brand); }

.pe-root .wz-body { padding: 8px 18px 24px; max-width: 640px; margin-inline: auto; width: 100%; }
.pe-root .wz-body h2 { font-size: 1.5rem; font-weight: 800; margin-top: 6px; }
.pe-root .wz-body .sub { color: var(--pe-ink-2); margin: 8px 0 20px; text-wrap: pretty; }

.pe-root .cv-onfile { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--pe-brand); background: var(--pe-brand-tint-2); border-radius: var(--pe-radius); }
.pe-root .cv-onfile .doc { width: 44px; height: 54px; flex: none; border-radius: 7px; background: #fff; border: 1px solid var(--pe-border-2); box-shadow: var(--pe-shadow-1); position: relative; overflow: hidden; }
.pe-root .cv-onfile .doc::before { content: ""; position: absolute; left: 7px; right: 7px; top: 9px; height: 4px; border-radius: 2px; background: var(--pe-brand); }
.pe-root .cv-onfile .doc::after { content: ""; position: absolute; left: 7px; right: 14px; top: 18px; height: 3px; border-radius: 2px; background: var(--pe-border-2); box-shadow: 0 7px 0 var(--pe-border-2), 0 14px 0 var(--pe-border-2); }
.pe-root .cv-onfile .meta b { font-size: 0.98rem; }
.pe-root .cv-onfile .meta .check { display: inline-flex; align-items: center; gap: 5px; color: var(--pe-good); font-weight: 700; font-size: 0.84rem; }
.pe-root .cv-onfile .meta span { display: block; font-size: 0.84rem; color: var(--pe-ink-3); }
.pe-root .cv-onfile .change { margin-left: auto; font-size: 0.86rem; font-weight: 700; color: var(--pe-brand); background: none; border: 0; cursor: pointer; white-space: nowrap; }

.pe-root .dropzone2 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 18px; border: 1.5px dashed var(--pe-border-2); border-radius: var(--pe-radius); background: var(--pe-surface-2); cursor: pointer; transition: border-color var(--pe-dur), background var(--pe-dur); }
.pe-root .dropzone2:hover { border-color: var(--pe-brand); background: var(--pe-brand-tint-2); }
.pe-root .dropzone2 .dz-ico { width: 52px; height: 52px; border-radius: 15px; background: var(--pe-brand-tint); color: var(--pe-brand); display: grid; place-items: center; }
.pe-root .dropzone2 b { font-size: 1rem; }
.pe-root .dropzone2 span { font-size: 0.84rem; color: var(--pe-ink-3); }
.pe-root .or-split { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--pe-ink-3); font-size: 0.82rem; font-weight: 700; }
.pe-root .or-split::before, .pe-root .or-split::after { content: ""; height: 1px; flex: 1; background: var(--pe-border); }

.pe-root .field { margin-top: 14px; }
.pe-root .field > label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--pe-ink-2); margin-bottom: 7px; }
.pe-root .input, .pe-root .textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--pe-border); border-radius: var(--pe-radius-sm);
  font: inherit; font-size: 0.96rem; color: var(--pe-ink); background: var(--pe-surface);
  transition: border-color var(--pe-dur), box-shadow var(--pe-dur);
}
.pe-root .textarea { min-height: 96px; resize: vertical; }
.pe-root .input::placeholder, .pe-root .textarea::placeholder { color: var(--pe-ink-3); }
.pe-root .input:focus, .pe-root .textarea:focus { outline: none; border-color: var(--pe-brand); box-shadow: 0 0 0 4px var(--pe-brand-ring); }

.pe-root .detected { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pe-root .detected .d { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--pe-good-tint); border-radius: 999px; font-size: 0.84rem; font-weight: 700; color: var(--pe-good); }
.pe-root .detected .d svg { width: 14px; height: 14px; }

.pe-root .fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 4px; }
.pe-root .fmt { text-align: left; border: 1.5px solid var(--pe-border-2); background: var(--pe-surface); border-radius: var(--pe-radius); padding: 15px; cursor: pointer; transition: border-color var(--pe-dur), box-shadow var(--pe-dur), background var(--pe-dur); position: relative; font-family: inherit; color: inherit; }
.pe-root .fmt:hover { border-color: var(--pe-brand); }
.pe-root .fmt[data-on="1"] { border-color: var(--pe-brand); background: var(--pe-brand-tint-2); box-shadow: 0 0 0 3px var(--pe-brand-ring); }
.pe-root .fmt .ico { font-size: 1.5rem; line-height: 1; }
.pe-root .fmt b { display: block; margin-top: 9px; font-size: 0.98rem; }
.pe-root .fmt span { font-size: 0.82rem; color: var(--pe-ink-3); }
.pe-root .fmt .tick { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--pe-brand); color: #fff; display: none; place-items: center; }
.pe-root .fmt[data-on="1"] .tick { display: grid; }
.pe-root .fmt .tick svg { width: 12px; height: 12px; }

.pe-root .seg-control { display: flex; background: var(--pe-surface-2); border: 1px solid var(--pe-border); border-radius: 999px; padding: 4px; gap: 3px; }
.pe-root .seg-control button { flex: 1; border: 0; background: transparent; cursor: pointer; padding: 11px 8px; border-radius: 999px; font-family: inherit; font-size: 0.9rem; font-weight: 700; color: var(--pe-ink-2); transition: background var(--pe-dur), color var(--pe-dur); }
.pe-root .seg-control button[data-on="1"] { background: var(--pe-surface); color: var(--pe-brand); box-shadow: var(--pe-shadow-1); }

.pe-root .toggle-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-top: 1px solid var(--pe-border); }
.pe-root .toggle-row:first-of-type { border-top: 0; }
.pe-root .toggle-row .tg-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--pe-brand-tint); color: var(--pe-brand); display: grid; place-items: center; }
.pe-root .toggle-row .tg-meta b { font-size: 0.96rem; display: flex; align-items: center; gap: 7px; }
.pe-root .toggle-row .tg-meta .why { font-size: 0.74rem; font-weight: 700; color: var(--pe-brand); background: var(--pe-brand-tint); padding: 2px 8px; border-radius: 999px; cursor: help; }
.pe-root .toggle-row .tg-meta span { font-size: 0.84rem; color: var(--pe-ink-3); }
.pe-root .toggle-row .switch { margin-left: auto; }
.pe-root .switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; border: 0; background: var(--pe-border-2); cursor: pointer; transition: background var(--pe-dur); }
.pe-root .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--pe-shadow-1); transition: transform var(--pe-dur) var(--pe-ease); }
.pe-root .switch[data-on="1"] { background: var(--pe-brand); }
.pe-root .switch[data-on="1"]::after { transform: translateX(20px); }

.pe-root .wz-foot { padding: 12px 18px; background: color-mix(in srgb, var(--pe-bg) 90%, transparent); border-top: 1px solid var(--pe-border); display: flex; gap: 12px; max-width: 640px; margin: 0 auto; width: 100%; }
@media (min-width: 901px) {
  .pe-root .wz-foot { background: transparent; border-top: 0; margin: 14px auto 40px; }
}

/* briefing */
.pe-root .briefing { padding: 30px 18px; }
@media (min-width: 901px) { .pe-root .briefing { display: grid; place-items: start center; padding-top: 40px; } }
.pe-root .briefing-card { background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius-lg); box-shadow: var(--pe-shadow-2); overflow: hidden; max-width: 520px; width: 100%; }
.pe-root .briefing-head { background: linear-gradient(160deg, #165A41, var(--pe-brand-strong)); color: #fff; padding: 26px 22px; text-align: center; position: relative; overflow: hidden; }
.pe-root .briefing-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% -10%, rgba(255,255,255,0.14), transparent 60%); }
.pe-root .briefing-head > * { position: relative; }
.pe-root .briefing-head .ready { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.pe-root .briefing-head h2 { font-size: 1.5rem; font-weight: 800; margin-top: 8px; }
.pe-root .briefing-rows { padding: 8px 20px 4px; }
.pe-root .briefing-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--pe-border); }
.pe-root .briefing-row:last-child { border-bottom: 0; }
.pe-root .briefing-row .b-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--pe-brand-tint); color: var(--pe-brand); display: grid; place-items: center; }
.pe-root .briefing-row .k { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pe-ink-3); }
.pe-root .briefing-row .v { font-size: 1rem; font-weight: 700; }
.pe-root .briefing-foot { padding: 18px 20px 22px; }

/* ============================ Coach avatar ============================ */
.pe-root .coach {
  position: relative; flex: none;
  width: var(--cz, 64px); height: var(--cz, 64px); border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; letter-spacing: -0.02em;
  background: var(--c-grad, linear-gradient(155deg, #2C7A5A, #134E3A));
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.22), 0 6px 16px rgba(12,30,22,0.18);
}
.pe-root .coach[data-coach="camille"] { --c-grad: linear-gradient(155deg, #2F8A64, #115441); }
.pe-root .coach[data-coach="theo"]    { --c-grad: linear-gradient(155deg, #3D7DA8, #1F4E6B); }
.pe-root .coach[data-coach="ines"]    { --c-grad: linear-gradient(155deg, #C98A4B, #9A5A2C); }
.pe-root .coach .ini { font-size: calc(var(--cz, 64px) * 0.4); }
.pe-root .coach[data-state="parle"]::before,
.pe-root .coach[data-state="ecoute"]::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2.5px solid var(--pe-brand); opacity: 0.5;
  animation: peRing 1.6s var(--pe-ease) infinite;
}
.pe-root .coach[data-state="ecoute"]::before { border-color: var(--pe-coral); }
@keyframes peRing { 0% { transform: scale(0.92); opacity: 0.55; } 70% { transform: scale(1.18); opacity: 0; } 100% { opacity: 0; } }
@keyframes peSpin { to { transform: rotate(360deg); } }

/* Multi-step upload loading card — replaces the dropzone while /upload + /parse run.
 * Mirrors the dropzone padding so layout doesn't jump on transition. */
.pe-root .upload-loading {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 18px;
  border: 1.5px solid var(--pe-brand);
  background: var(--pe-brand-tint-2);
  border-radius: var(--pe-radius);
}
.pe-root .upload-loading .spinner {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 3px solid var(--pe-border-2);
  border-top-color: var(--pe-brand);
  animation: peSpin 0.9s linear infinite;
}
.pe-root .upload-loading .stage {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--pe-brand);
}
.pe-root .upload-loading .file {
  font-size: 0.94rem; font-weight: 700; color: var(--pe-ink);
  margin-top: 2px; word-break: break-word;
}
.pe-root .upload-loading .hint {
  font-size: 0.82rem; color: var(--pe-ink-3); margin-top: 2px;
}
.pe-root .upload-loading.done { border-color: var(--pe-good); background: var(--pe-good-tint); }
.pe-root .upload-loading.done .spinner { border: 3px solid var(--pe-good); border-top-color: var(--pe-good); animation: none; }
.pe-root .upload-loading.done .stage { color: var(--pe-good); }

/* Error card with retry button */
.pe-root .upload-error {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin-top: 12px;
  border: 1px solid var(--pe-coral-tint);
  background: var(--pe-coral-tint);
  border-radius: var(--pe-radius-sm);
  color: var(--pe-coral-ink);
}
.pe-root .upload-error .icon { color: var(--pe-coral-ink); flex: none; margin-top: 2px; }
.pe-root .upload-error .msg { font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
.pe-root .upload-error .retry {
  font-size: 0.82rem; font-weight: 800; color: #fff;
  background: var(--pe-coral); border: 0;
  padding: 7px 13px; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  margin-left: auto; flex: none;
}
.pe-root .upload-error .retry:hover { background: #F65A20; }

/* URL field — inline spinner inside the input when extraction is running */
.pe-root .url-wrap { position: relative; }
.pe-root .url-wrap .url-spinner {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none;
  border: 2px solid var(--pe-border-2);
  border-top-color: var(--pe-brand);
  border-radius: 50%;
  animation: peSpin 0.8s linear infinite;
}
/* Tighter spacing on the URL field when it shows an inline spinner so the
 * spinner doesn't visually collide with the user's text cursor. */
.pe-root .url-wrap .input { padding-right: 38px; }

/* Status pill anchored DIRECTLY below the URL field so the loading state
 * is unmistakably tied to the URL (not a floating banner). */
.pe-root .url-status {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px;
  font-size: 0.84rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.pe-root .url-status[data-kind="loading"] { background: var(--pe-brand-tint); color: var(--pe-brand-ink); }
.pe-root .url-status[data-kind="success"] { background: var(--pe-good-tint); color: var(--pe-good); }
.pe-root .url-status[data-kind="error"]   { background: var(--pe-coral-tint); color: var(--pe-coral-ink); }
.pe-root .url-status .mini-spin {
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: peSpin 0.8s linear infinite;
  opacity: 0.7;
}
.pe-root .coach[data-state="reflechit"] .ini { opacity: 0.55; }
.pe-root .coach .eq { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: none; gap: 2px; align-items: flex-end; height: 12px; }
.pe-root .coach[data-state="parle"] .eq { display: flex; }
.pe-root .coach .eq i { width: 2.5px; background: rgba(255,255,255,0.9); border-radius: 2px; animation: peEq 0.9s ease-in-out infinite; }
.pe-root .coach .eq i:nth-child(1){ animation-delay: 0s; } .pe-root .coach .eq i:nth-child(2){ animation-delay: .15s; } .pe-root .coach .eq i:nth-child(3){ animation-delay: .3s; } .pe-root .coach .eq i:nth-child(4){ animation-delay: .45s; }
@keyframes peEq { 0%,100% { height: 3px; } 50% { height: 11px; } }

.pe-root .coach-state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--pe-surface-2); color: var(--pe-ink-2); }
.pe-root .coach-state[data-state="reflechit"] { background: var(--pe-brand-tint); color: var(--pe-brand-ink); }
.pe-root .coach-state[data-state="parle"] { background: var(--pe-brand-tint); color: var(--pe-brand-ink); }
.pe-root .coach-state[data-state="ecoute"] { background: var(--pe-coral-tint); color: var(--pe-coral-ink); }

/* ============================ Interview shell ============================ */
.pe-root .iv-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pe-border); background: var(--pe-bg); position: sticky; top: 0; z-index: 30; }
.pe-root .iv-progress { display: flex; gap: 5px; }
.pe-root .iv-progress .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pe-border-2); transition: background var(--pe-dur), transform var(--pe-dur); }
.pe-root .iv-progress .dot[data-state="done"] { background: var(--pe-brand); }
.pe-root .iv-progress .dot[data-state="active"] { background: var(--pe-brand); transform: scale(1.4); box-shadow: 0 0 0 3px var(--pe-brand-ring); }
.pe-root .iv-timer { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--pe-ink-2); }
.pe-root .iv-timer svg { color: var(--pe-brand); }
.pe-root .iv-quit { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--pe-ink-2); background: none; border: 1.5px solid var(--pe-border); padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.pe-root .iv-quit:hover { border-color: var(--pe-coral); color: var(--pe-coral-ink); }
.pe-root .iv-focus-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--pe-ink-2); background: var(--pe-surface-2); border: 1px solid var(--pe-border); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.pe-root .iv-focus-btn[data-on="1"] { background: var(--pe-brand); color: #fff; border-color: var(--pe-brand); }

.pe-root .iv-body { padding: 18px 18px 6px; }
.pe-root .iv-coach-row { display: flex; align-items: center; gap: 13px; }
.pe-root .iv-coach-row .nm b { font-size: 1.02rem; }
.pe-root .iv-coach-row .nm span { display: block; font-size: 0.82rem; color: var(--pe-ink-3); font-weight: 600; white-space: nowrap; }

.pe-root .q-thread { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pe-root .q-card { background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius); padding: 20px; box-shadow: var(--pe-shadow-1); position: relative; }
.pe-root .q-card.followup { margin-left: 22px; border-left: 3px solid var(--pe-brand-tint); }
.pe-root .q-card .q-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pe-brand); display: inline-flex; align-items: center; gap: 6px; }
.pe-root .q-card .q-tag.fup { color: var(--pe-ink-3); }
.pe-root .q-card .q-text { font-size: 1.18rem; font-weight: 700; line-height: 1.32; margin-top: 9px; text-wrap: pretty; }
@media (min-width: 901px) { .pe-root .q-card .q-text { font-size: 1.34rem; } }
.pe-root .q-card .q-listen { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 0.86rem; font-weight: 700; color: var(--pe-brand); background: var(--pe-brand-tint); border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.pe-root .q-card .q-listen[data-playing="1"] { background: var(--pe-brand); color: #fff; }
.pe-root .q-card .cv-callout { margin-top: 12px; display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; background: var(--pe-brand-tint-2); border-radius: var(--pe-radius-sm); font-size: 0.88rem; color: var(--pe-brand-ink); }
.pe-root .q-card .cv-callout svg { color: var(--pe-brand); flex: none; margin-top: 1px; }

.pe-root .a-bubble { align-self: flex-end; max-width: 86%; background: var(--pe-brand); color: #fff; border-radius: var(--pe-radius) var(--pe-radius) 6px var(--pe-radius); padding: 13px 16px; font-size: 0.96rem; box-shadow: var(--pe-shadow-1); }
.pe-root .a-bubble.you-label::before { content: "Vous"; display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.65; margin-bottom: 4px; }

.pe-root .answer-zone { margin-top: 14px; padding: 0 18px 18px; }
.pe-root .compose { border: 1.5px solid var(--pe-border); border-radius: var(--pe-radius); background: var(--pe-surface); overflow: hidden; transition: border-color var(--pe-dur), box-shadow var(--pe-dur); }
.pe-root .compose:focus-within { border-color: var(--pe-brand); box-shadow: 0 0 0 4px var(--pe-brand-ring); }
.pe-root .compose textarea { width: 100%; border: 0; outline: none; resize: none; padding: 14px 15px; font: inherit; font-size: 1rem; color: var(--pe-ink); background: transparent; min-height: 72px; }
.pe-root .compose-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--pe-border); }
.pe-root .compose-bar .mini { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--pe-ink-2); background: var(--pe-surface-2); border: 1px solid var(--pe-border); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background var(--pe-dur), color var(--pe-dur), border-color var(--pe-dur); font-family: inherit; }
.pe-root .compose-bar .mini:hover { border-color: var(--pe-brand); color: var(--pe-brand); }
.pe-root .compose-bar .mini svg { width: 15px; height: 15px; }
.pe-root .compose-bar .grow { flex: 1; }
.pe-root .compose-bar .send { width: 44px; height: 44px; border-radius: 13px; background: var(--pe-brand); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px var(--pe-brand-ring); transition: background var(--pe-dur); }
.pe-root .compose-bar .send:hover { background: var(--pe-brand-hover); }
.pe-root .compose-bar .send:disabled { background: var(--pe-border-2); box-shadow: none; cursor: default; }

.pe-root .answer-actions { display: flex; gap: 9px; margin-top: 11px; }
.pe-root .answer-actions .mini { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--pe-ink-2); background: var(--pe-surface); border: 1.5px solid var(--pe-border); padding: 12px 16px; border-radius: 999px; cursor: pointer; transition: border-color var(--pe-dur), color var(--pe-dur); font-family: inherit; }
.pe-root .answer-actions .mini:hover { border-color: var(--pe-brand); color: var(--pe-brand); }

.pe-root .voice-zone { margin-top: 14px; background: var(--pe-surface); border: 1.5px solid var(--pe-border); border-radius: var(--pe-radius); padding: 20px 18px; text-align: center; }
.pe-root .voice-zone.live { border-color: var(--pe-coral); box-shadow: 0 0 0 4px rgba(255,107,53,0.1); }
.pe-root .mic-btn { width: 78px; height: 78px; border-radius: 50%; border: 0; margin: 0 auto; display: grid; place-items: center; background: var(--pe-brand); color: #fff; cursor: pointer; box-shadow: 0 8px 22px var(--pe-brand-ring); transition: transform var(--pe-dur), background var(--pe-dur); }
.pe-root .mic-btn svg { width: 30px; height: 30px; }
.pe-root .mic-btn.recording { background: var(--pe-coral); box-shadow: 0 0 0 0 rgba(255,107,53,0.5); animation: peMicPulse 1.6s var(--pe-ease) infinite; }
@keyframes peMicPulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,53,0.4); } 70% { box-shadow: 0 0 0 18px rgba(255,107,53,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); } }
.pe-root .voice-hint { font-size: 0.9rem; color: var(--pe-ink-3); margin-top: 12px; font-weight: 600; }
.pe-root .waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; margin-top: 14px; }
.pe-root .waveform i { width: 3px; border-radius: 3px; background: var(--pe-coral); height: 6px; animation: peWave 1s ease-in-out infinite; }
@keyframes peWave { 0%,100% { height: 5px; } 50% { height: var(--h, 22px); } }
.pe-root .live-transcript { margin-top: 14px; text-align: left; background: var(--pe-surface-2); border-radius: var(--pe-radius-sm); padding: 13px 15px; font-size: 0.96rem; color: var(--pe-ink-2); min-height: 54px; }
.pe-root .live-transcript .cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--pe-coral); margin-left: 1px; vertical-align: -2px; animation: peBlink 1s step-end infinite; }
@keyframes peBlink { 50% { opacity: 0; } }

/* PIP — top-right, never overlaps the answer zone or send button.
 * Sizes bumped 2026-06-07 per Ali ("too small to read"): mobile 120×90
 * (was 96×72), desktop 200×150 (was 160×120). 4:3 aspect ratio
 * preserved. Draggable handlers in DraggablePip override left/top via
 * inline style once the user grabs it. */
.pe-root .pip {
  position: fixed; z-index: 35;
  width: 120px; height: 90px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #20302A, #0E1A15);
  border: 2px solid rgba(255,255,255,0.6); box-shadow: var(--pe-shadow-3);
  right: 12px; top: 64px; bottom: auto;
  transition: opacity var(--pe-dur) var(--pe-ease);
}
.pe-root .pip:hover { opacity: 0.7; }
@media (min-width: 901px) {
  .pe-root .pip { width: 200px; height: 150px; top: 90px; right: 24px; }
}
.pe-root .pip .me { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,0.4); }
.pe-root .pip .rec { position: absolute; top: 7px; left: 7px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.62rem; font-weight: 800; color: #fff; background: rgba(0,0,0,0.45); padding: 3px 7px; border-radius: 999px; }
.pe-root .pip .rec .d { width: 6px; height: 6px; border-radius: 50%; background: var(--pe-coral); animation: peBlink 1.4s step-end infinite; }
.pe-root .pip .posture { position: absolute; left: 0; right: 0; bottom: 0; font-size: 0.62rem; font-weight: 700; color: #fff; background: rgba(21,122,82,0.85); padding: 4px 6px; text-align: center; }
.pe-root .pip video { width: 100%; height: 100%; object-fit: cover; }

.pe-root .fb-stack { position: fixed; left: 14px; right: 14px; z-index: 36; display: flex; flex-direction: column; gap: 8px; pointer-events: none; bottom: 95px; }
@media (min-width: 901px) { .pe-root .fb-stack { left: auto; right: 26px; bottom: 28px; max-width: 320px; } }
.pe-root .fb-chip { pointer-events: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 14px; background: rgba(11,32,23,0.92); color: #fff; font-size: 0.9rem; font-weight: 600; box-shadow: var(--pe-shadow-2); max-width: 100%; animation: peFbIn 200ms var(--pe-ease) both; }
.pe-root .fb-chip.out { animation: peFbOut 300ms var(--pe-ease) both; }
.pe-root .fb-chip .fb-emoji { font-size: 1.05rem; line-height: 1; }
.pe-root .fb-chip .fb-x { margin-left: 4px; opacity: 0.6; cursor: pointer; display: grid; place-items: center; }
@keyframes peFbIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes peFbOut { to { opacity: 0; transform: translateY(-6px) scale(0.97); } }

.pe-root .nudge { margin-top: 12px; display: flex; gap: 10px; align-items: center; padding: 13px 15px; background: var(--pe-warn-tint); border-radius: var(--pe-radius-sm); font-size: 0.9rem; color: var(--pe-warn-ink); font-weight: 600; }
.pe-root .nudge svg { flex: none; }
.pe-root .nudge .reformulate { margin-left: auto; font-weight: 800; color: var(--pe-brand); background: none; border: 0; cursor: pointer; white-space: nowrap; font-family: inherit; }

/* desktop 2-col */
.pe-root .iv-2col { display: none; }
@media (min-width: 901px) {
  .pe-root .iv-1col { display: none; }
  .pe-root .iv-2col { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 0; min-height: 720px; }
}
.pe-root .iv-left { padding: 26px 30px; border-right: 1px solid var(--pe-border); overflow: auto; }
.pe-root .iv-right { padding: 24px 26px; background: var(--pe-surface-2); display: flex; flex-direction: column; }
.pe-root .iv-right.focus-hidden { display: none; }

.pe-root .fb-panel { display: flex; flex-direction: column; gap: 14px; }
.pe-root .fb-panel h4 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pe-ink-3); }
.pe-root .meter { background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius-sm); padding: 14px; }
.pe-root .meter .mh { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; font-weight: 700; }
.pe-root .meter .mh .val { font-variant-numeric: tabular-nums; color: var(--pe-brand); }
.pe-root .meter .track { position: relative; height: 8px; border-radius: 999px; background: var(--pe-surface-2); margin-top: 10px; overflow: hidden; }
.pe-root .meter .band { position: absolute; top: 0; bottom: 0; background: var(--pe-good-tint); }
.pe-root .meter .needle { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--pe-ink); transition: left 600ms var(--pe-ease); }
.pe-root .meter small { display: block; margin-top: 8px; font-size: 0.78rem; color: var(--pe-ink-3); }
.pe-root .fb-metric { display: flex; align-items: center; gap: 12px; background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius-sm); padding: 13px 14px; }
.pe-root .fb-metric .m-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--pe-brand-tint); color: var(--pe-brand); }
.pe-root .fb-metric .m-big { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pe-root .fb-metric .m-lbl { font-size: 0.8rem; color: var(--pe-ink-3); font-weight: 600; }
.pe-root .fb-metric.good .m-ico { background: var(--pe-good-tint); color: var(--pe-good); }
.pe-root .fb-metric.warn .m-ico { background: var(--pe-warn-tint); color: var(--pe-warn-ink); }

/* ============================ REPORT ============================ */
.pe-root .rp { padding: 0 0 30px; }
.pe-root .rp-hero { background: linear-gradient(165deg, #1A6047 0%, var(--pe-brand-strong) 100%); color: #fff; padding: 30px 22px 34px; position: relative; overflow: hidden; }
.pe-root .rp-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 82% -5%, rgba(255,255,255,0.12), transparent 60%); }
.pe-root .rp-hero > * { position: relative; }
.pe-root .rp-hero .eyebrow { color: rgba(255,255,255,0.75); }
.pe-root .rp-score-wrap { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.pe-root .rp-ring { position: relative; width: 116px; height: 116px; flex: none; }
.pe-root .rp-ring svg { transform: rotate(-90deg); }
.pe-root .rp-ring .num { position: absolute; inset: 0; display: grid; place-items: center; flex-direction: column; text-align: center; }
.pe-root .rp-ring .num b { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.pe-root .rp-ring .num span { font-size: 0.74rem; opacity: 0.8; }
.pe-root .rp-hero h2 { font-size: 1.4rem; font-weight: 800; }
.pe-root .rp-hero .sum { opacity: 0.9; margin: 8px 0 0; font-size: 0.96rem; max-width: 40ch; text-wrap: pretty; }

.pe-root .radar-card { margin: 16px 18px 0; background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius-lg); padding: 22px; box-shadow: var(--pe-shadow-1); }
.pe-root .radar-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.pe-root .radar-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
@media (min-width: 901px) { .pe-root .radar-wrap { grid-template-columns: 280px 1fr; } }
.pe-root .radar-svg { width: 100%; max-width: 280px; margin-inline: auto; display: block; }
.pe-root .radar-legend { display: flex; flex-direction: column; gap: 9px; }
.pe-root .radar-legend .rl { display: flex; align-items: center; gap: 11px; font-size: 0.92rem; }
.pe-root .radar-legend .rl .lbl { flex: 1; font-weight: 600; color: var(--pe-ink-2); }
.pe-root .radar-legend .rl .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.pe-root .radar-legend .rl .bar { width: 70px; height: 6px; border-radius: 999px; background: var(--pe-surface-2); overflow: hidden; }
.pe-root .radar-legend .rl .bar i { display: block; height: 100%; background: var(--pe-brand); border-radius: inherit; }

.pe-root .rp-section { padding: 26px 18px 6px; }
.pe-root .rp-section > h3 { font-size: 1.2rem; font-weight: 800; }
.pe-root .rp-section > .sub { color: var(--pe-ink-2); margin: 6px 0 0; font-size: 0.94rem; }

.pe-root .hl { background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius); padding: 16px; box-shadow: var(--pe-shadow-1); margin-top: 13px; }
.pe-root .hl.best { border-left: 3px solid var(--pe-good); }
.pe-root .hl.weak { border-left: 3px solid var(--pe-coral); }
.pe-root .hl-head { display: flex; align-items: center; gap: 9px; }
.pe-root .hl-badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pe-root .hl.best .hl-badge { background: var(--pe-good-tint); color: var(--pe-good); }
.pe-root .hl.weak .hl-badge { background: var(--pe-coral-tint); color: var(--pe-coral-ink); }
.pe-root .hl-q { font-size: 0.84rem; color: var(--pe-ink-3); font-weight: 600; margin-left: auto; text-align: right; }
.pe-root .hl-replay { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; width: 100%; background: var(--pe-surface-2); border: 1px solid var(--pe-border); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.pe-root .hl-replay .play { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--pe-brand); color: #fff; display: grid; place-items: center; }
.pe-root .hl-replay .play svg { width: 13px; height: 13px; }
.pe-root .hl-replay .pbar { flex: 1; height: 5px; border-radius: 999px; background: var(--pe-border-2); position: relative; overflow: hidden; }
.pe-root .hl-replay .pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 32%; background: var(--pe-brand); border-radius: inherit; }
.pe-root .hl-replay .dur { font-size: 0.78rem; font-weight: 700; color: var(--pe-ink-3); font-variant-numeric: tabular-nums; }
.pe-root .hl-comment { margin-top: 13px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--pe-ink-2); }
.pe-root .hl-comment .ai { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--pe-brand-tint); color: var(--pe-brand); display: grid; place-items: center; }
.pe-root .hl-comment .ai svg { width: 15px; height: 15px; }
.pe-root .hl-comment b { color: var(--pe-ink); }

.pe-root .axis { display: flex; gap: 14px; background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius); padding: 18px; box-shadow: var(--pe-shadow-1); margin-top: 13px; }
.pe-root .axis .ax-n { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--pe-coral-tint); color: var(--pe-coral-ink); display: grid; place-items: center; font-weight: 800; }
.pe-root .axis h4 { font-size: 1rem; font-weight: 700; }
.pe-root .axis p { margin: 6px 0 0; color: var(--pe-ink-2); font-size: 0.92rem; text-wrap: pretty; }
.pe-root .axis .ex { margin-top: 10px; padding: 11px 13px; background: var(--pe-surface-2); border-radius: var(--pe-radius-sm); font-size: 0.88rem; color: var(--pe-ink-2); }
.pe-root .axis .ex b { color: var(--pe-brand-ink); }

.pe-root .plan-card { margin-top: 13px; background: var(--pe-surface); border: 1px solid var(--pe-border); border-radius: var(--pe-radius); padding: 8px 18px; box-shadow: var(--pe-shadow-1); }
.pe-root .plan-item { display: flex; align-items: flex-start; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--pe-border); cursor: pointer; }
.pe-root .plan-item:last-child { border-bottom: 0; }
.pe-root .plan-check { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--pe-border-2); display: grid; place-items: center; color: #fff; transition: background var(--pe-dur), border-color var(--pe-dur); margin-top: 1px; }
.pe-root .plan-item[data-done="1"] .plan-check { background: var(--pe-brand); border-color: var(--pe-brand); }
.pe-root .plan-item[data-done="1"] .plan-check svg { opacity: 1; }
.pe-root .plan-check svg { width: 15px; height: 15px; opacity: 0; }
.pe-root .plan-item[data-done="1"] .pi-text b { text-decoration: line-through; color: var(--pe-ink-3); }
.pe-root .pi-text b { font-size: 0.96rem; font-weight: 700; }
.pe-root .pi-text span { display: block; font-size: 0.84rem; color: var(--pe-ink-3); margin-top: 2px; }

.pe-root .rp-ctas { padding: 24px 18px 10px; display: flex; flex-direction: column; gap: 11px; }
.pe-root .cross-link { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: var(--pe-radius); background: var(--pe-surface); border: 1px solid var(--pe-border); box-shadow: var(--pe-shadow-1); cursor: pointer; transition: transform var(--pe-dur), box-shadow var(--pe-dur); }
.pe-root .cross-link:hover { transform: translateY(-2px); box-shadow: var(--pe-shadow-2); }
.pe-root .cross-link .cl-ico { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--pe-brand-tint); color: var(--pe-brand); display: grid; place-items: center; }
.pe-root .cross-link b { font-size: 0.98rem; }
.pe-root .cross-link span { display: block; font-size: 0.84rem; color: var(--pe-ink-3); }
.pe-root .cross-link .arrow { margin-left: auto; color: var(--pe-ink-3); }

.pe-root .share-card { width: 100%; max-width: 360px; margin: 6px auto 0; border-radius: var(--pe-radius-lg); overflow: hidden; box-shadow: var(--pe-shadow-3); background: linear-gradient(165deg, #1A6047, var(--pe-brand-strong)); color: #fff; position: relative; }
.pe-root .share-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 85% 0%, rgba(255,255,255,0.14), transparent 60%); pointer-events: none; }
.pe-root .share-card .sc-in { position: relative; padding: 26px 24px; }
.pe-root .share-card .sc-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; }
.pe-root .share-card .sc-brand .mk { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,0.16); display: grid; place-items: center; }
.pe-root .share-card .sc-brand .mk svg { width: 14px; height: 14px; }
.pe-root .share-card .sc-score { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.pe-root .share-card .sc-score b { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.pe-root .share-card .sc-score span { opacity: 0.8; font-weight: 700; }
.pe-root .share-card .sc-label { font-size: 1.05rem; font-weight: 700; margin-top: 6px; }
.pe-root .share-card .sc-mini { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.pe-root .share-card .sc-mini .m { background: rgba(255,255,255,0.12); border-radius: 10px; padding: 9px 12px; font-size: 0.8rem; font-weight: 700; }
.pe-root .share-card .sc-mini .m b { display: block; font-size: 1.05rem; }
.pe-root .share-card .sc-foot { margin-top: 22px; font-size: 0.82rem; opacity: 0.8; }

/* desktop report grid */
@media (min-width: 901px) {
  .pe-root .rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; max-width: 1080px; margin-inline: auto; padding: 0 30px; }
  .pe-root .rp-grid .rp-section { padding-inline: 0; }
  .pe-root .rp-hero, .pe-root .rp-section, .pe-root .rp-ctas { padding-inline: 30px; }
}

/* ============================ Sheets / modals ============================ */
.pe-root .scrim { position: fixed; inset: 0; z-index: 90; background: rgba(12,30,22,0.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 260ms var(--pe-ease), visibility 260ms; }
.pe-root .scrim[data-open="1"] { opacity: 1; visibility: visible; pointer-events: auto; }
.pe-root .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; background: var(--pe-surface); border-radius: 24px 24px 0 0; padding: 12px 20px 24px; box-shadow: 0 -12px 40px rgba(12,30,22,0.22); transform: translateY(101%); visibility: hidden; transition: transform 340ms var(--pe-ease), visibility 340ms; max-height: 90%; overflow-y: auto; }
.pe-root .sheet[data-open="1"] { transform: translateY(0); visibility: visible; }
@media (min-width: 901px) {
  .pe-root .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; max-width: 92%; border-radius: var(--pe-radius-lg); transform: translate(-50%, -46%); opacity: 0; transition: transform 300ms var(--pe-ease), opacity 240ms var(--pe-ease); }
  .pe-root .sheet[data-open="1"] { transform: translate(-50%, -50%); opacity: 1; }
}
.pe-root .sheet-handle { width: 40px; height: 5px; border-radius: 999px; background: var(--pe-border-2); margin: 0 auto 16px; }
@media (min-width: 901px) { .pe-root .sheet-handle { display: none; } }
.pe-root .sheet h3 { font-size: 1.25rem; font-weight: 800; }
.pe-root .sheet > p { color: var(--pe-ink-2); margin: 8px 0 16px; text-wrap: pretty; }
.pe-root .sheet-actions { display: flex; gap: 11px; margin-top: 18px; }

.pe-root .confirm-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.pe-root .confirm-ico.warn { background: var(--pe-warn-tint); color: var(--pe-warn-ink); }
.pe-root .confirm-ico.coral { background: var(--pe-coral-tint); color: var(--pe-coral-ink); }

.pe-root .perm-steps { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 4px; }
.pe-root .perm-row { display: flex; gap: 12px; align-items: center; padding: 13px; background: var(--pe-surface-2); border-radius: var(--pe-radius-sm); }
.pe-root .perm-row .pn { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--pe-brand); color: #fff; display: grid; place-items: center; font-size: 0.82rem; font-weight: 800; }
.pe-root .perm-row span { font-size: 0.92rem; font-weight: 600; }
.pe-root .perm-shot { border: 1px solid var(--pe-border); border-radius: var(--pe-radius-sm); overflow: hidden; margin: 14px 0; }
.pe-root .perm-shot .bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--pe-surface-2); border-bottom: 1px solid var(--pe-border); font-size: 0.8rem; color: var(--pe-ink-3); }
.pe-root .perm-shot .bar .lock { width: 14px; height: 14px; }
.pe-root .perm-shot .body { padding: 14px; display: flex; gap: 12px; align-items: center; }
.pe-root .perm-shot .mic-perm { width: 38px; height: 38px; border-radius: 10px; background: var(--pe-brand-tint); color: var(--pe-brand); display: grid; place-items: center; flex: none; }
.pe-root .perm-shot .opts { display: flex; gap: 8px; margin-top: 4px; }
.pe-root .perm-shot .opts .o { font-size: 0.78rem; font-weight: 700; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--pe-border-2); }
.pe-root .perm-shot .opts .o.on { background: var(--pe-brand); color: #fff; border-color: var(--pe-brand); }

.pe-root .pw-head { text-align: center; }
.pe-root .pw-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pe-coral-ink); background: var(--pe-coral-tint); padding: 7px 14px; border-radius: 999px; }
.pe-root .pw-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 16px 0 4px; }
.pe-root .pw-price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.pe-root .pw-price span { color: var(--pe-ink-3); font-weight: 700; }
.pe-root .pw-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.pe-root .pw-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; color: var(--pe-ink-2); }
.pe-root .pw-list li svg { color: var(--pe-brand); flex: none; margin-top: 2px; }
.pe-root .pw-list li b { color: var(--pe-ink); font-weight: 700; }

/* empty CV */
.pe-root .empty-wrap { padding: 40px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 540px; margin-inline: auto; }
.pe-root .empty-ill { width: 96px; height: 96px; border-radius: 28px; background: var(--pe-brand-tint); color: var(--pe-brand); display: grid; place-items: center; margin-bottom: 20px; }
.pe-root .empty-ill svg { width: 44px; height: 44px; }
.pe-root .empty-wrap h2 { font-size: 1.4rem; font-weight: 800; }
.pe-root .empty-wrap p { color: var(--pe-ink-2); margin: 10px 0 22px; max-width: 32ch; text-wrap: pretty; }
.pe-root .empty-actions { display: flex; flex-direction: column; gap: 11px; width: 100%; max-width: 320px; }
