/* App : barre haute en verre, dock liquide en bas, vues Flux / Offre / Suivi / Favoris / Coach / Profil, onboarding. */
.app { min-height: 100vh; position: relative; isolation: isolate; }
.app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 40% at 85% 0%, var(--glow-2), transparent 70%), radial-gradient(45% 40% at 0% 10%, var(--glow-1), transparent 70%); opacity: 0.55; }
.a-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; padding: 12px var(--gutter-r) 0 var(--gutter-l); }
.a-top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 999px; }
.a-top .brand { height: 42px; padding: 0 10px 0 10px; text-decoration: none; }
.a-top .brand-logo { height: 22px; }
.a-top-in .lang-seg { margin-left: auto; }
.lang-seg button { height: 32px; padding: 0 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; }
.a-top-in .icon-btn { width: 40px; height: 40px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; flex: none; font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(140deg, var(--primary), var(--accent)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5); }
.a-main { padding-top: 28px; padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
.a-dock { position: fixed; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: flex; justify-content: center; pointer-events: none; padding-inline: 8px; }
.a-dock .nimbus-nav { pointer-events: auto; }
.a-dock .nimbus-item:nth-child(6) { color: var(--n-fg); }
@media (max-width: 400px) { .hide-xs, .a-top .brand-txt { display: none; } .lang-seg button { padding: 0 9px; } }

.view-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.view-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.04em; font-weight: 780; line-height: 1.05; }
.view-head p { color: var(--muted); margin-top: 6px; }
.view-enter { animation: viewIn 0.6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Flux ---------- */
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; border-radius: 20px; margin-bottom: 18px; }
.summary b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; }
.summary .sep { width: 1px; height: 22px; background: var(--line); }
.summary .btn { margin-left: auto; }
.spin svg { animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: none; }
.filters button { height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; flex: none; transition: color 0.2s, background 0.3s; }
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.job { padding: 20px; display: grid; gap: 14px; cursor: pointer; text-align: left; border: 1px solid var(--line); font: inherit; color: inherit; }
.job:hover { transform: translateY(-3px); }
.job-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.job-top > div { min-width: 0; }
.job h3 { font-size: 16px; letter-spacing: -0.02em; font-weight: 600; }
.job .co { font-size: 13px; color: var(--muted); }
.job .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.job-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
/* « Nouvelle » : petite étiquette en capitales fines, un point bleu pétrole cerclé, pas de vert criard. */
.new-dot { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg); }
.new-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 18%, transparent); }
.fav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--muted); transition: transform 0.4s var(--spring), color 0.2s; }
/* Mallette : offre gardée de côté. Active = mallette pleine, à l'encre du thème. */
.fav[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.fav:active { transform: scale(0.8); }
.locked { position: relative; }
.locked .job { filter: blur(5px); pointer-events: none; opacity: 0.7; }
.lock-veil { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.lock-card { padding: 22px 24px; border-radius: 22px; text-align: center; max-width: 340px; display: grid; gap: 10px; justify-items: center; }
.lock-card h3 { font-size: 18px; }
.lock-card p { color: var(--muted); font-size: 14px; }

/* ---------- Offre ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.offer-main { padding: clamp(20px, 3vw, 34px); display: grid; gap: 22px; }
.offer-main h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.08; }
.offer-main h2 { font-size: 17px; }
.offer-main ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.offer-aside { position: sticky; top: 90px; padding: 22px; display: grid; gap: 16px; }
.offer-aside .big { display: flex; align-items: center; gap: 14px; }
.offer-aside .cta { display: grid; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } .offer-aside { position: static; } }

/* ---------- Suivi (Kanban) ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.k-col { border-radius: 22px; padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 360px; scroll-snap-align: start; background: color-mix(in oklab, var(--surface) 45%, transparent); border: 1px solid var(--line); transition: background 0.25s, border-color 0.25s; }
.k-col.over { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.col-h b { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; padding: 1px 8px; border-radius: 99px; background: var(--line); color: var(--fg); }
.tk-card { padding: 14px; border-radius: 16px; display: grid; gap: 8px; cursor: grab; touch-action: none; user-select: none; }
.tk-card .row { display: flex; align-items: center; gap: 10px; }
.tk-card h4 { font-size: 14px; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.tk-card p { font-size: 12.5px; color: var(--muted); }
.tk-card.ghost { opacity: 0.35; }
.drag-clone { position: fixed; z-index: 90; pointer-events: none; transform: rotate(3deg) scale(1.03); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.empty-col { font-size: 12.5px; color: var(--muted); text-align: center; padding: 22px 8px; border: 1px dashed var(--line); border-radius: 14px; }

/* ---------- Coach ---------- */
.coach-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 20px; }
/* Onglets du coach : trois segments de même largeur, icône + libellé, rien d'autre. */
.coach-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 390px); }
.coach-tabs button { height: 38px; justify-content: center; gap: 7px; font-size: 13.5px; padding: 0 12px; }
.coach-tabs .ic-w { width: 15px !important; height: 15px !important; }
.stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 18px; align-items: stretch; }
.orb-stage { padding: 22px; display: grid; justify-items: center; align-content: start; gap: 12px; overflow: hidden; position: relative; min-height: 520px; }
.orb-stage .orb-big { width: min(330px, 70vw); aspect-ratio: 1; position: relative; margin-top: 6px; cursor: pointer; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status[data-s="speak"] i { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent); }
.status[data-s="listen"] i { background: var(--good); animation: ping 1.6s infinite; }
.status[data-s="think"] i { background: var(--warn); }
.caption { width: 100%; max-width: 520px; min-height: 84px; text-align: center; font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }
.q-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; color: var(--muted); text-transform: none; }
.controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: auto; }
.mic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 0; }
.mic svg { width: 26px; height: 26px; }
.mic.live { background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.5), transparent 55%), var(--bad); color: #fff; box-shadow: 0 0 0 8px color-mix(in oklab, var(--bad) 20%, transparent); }
.answer { padding: 18px; display: grid; gap: 12px; align-content: start; }
.answer textarea { width: 100%; min-height: 150px; resize: vertical; border-radius: 16px; padding: 14px; font: inherit; font-size: 14.5px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); outline: none; }
.answer textarea:focus { border-color: color-mix(in oklab, var(--primary) 55%, transparent); }
.answer .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fb { padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.fb .stars { display: flex; gap: 4px; }
.fb .stars span { width: 22px; height: 6px; border-radius: 4px; background: var(--line); }
.fb .stars span.on { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.fb p b { display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.transcript { display: grid; gap: 8px; max-height: 260px; overflow: auto; padding-right: 4px; }
.transcript p { font-size: 13.5px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.transcript p.me { background: color-mix(in oklab, var(--primary) 12%, transparent); }
.tips { display: grid; gap: 12px; }
.tip { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.tip input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 2px; }
.tip h4 { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.tip p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tip .chip { font-size: 11px; height: 24px; }
.tip.done h4 { text-decoration: line-through; color: var(--muted); }
.cv-score { padding: 22px; display: grid; gap: 14px; align-content: start; }
.letter { padding: clamp(20px, 3vw, 34px); white-space: pre-wrap; font-size: 15px; line-height: 1.75; min-height: 380px; }
.letter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.letter-bar select { height: 40px; border-radius: 999px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); min-width: 0; max-width: 100%; }
.pro-gate { padding: 34px; text-align: center; display: grid; gap: 12px; justify-items: center; }
@media (max-width: 900px) { .stage, .coach-top { grid-template-columns: 1fr; } .orb-stage { min-height: 0; } }

/* ---------- Profil ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.p-card { padding: 24px; display: grid; gap: 16px; align-content: start; }
.p-id { display: flex; gap: 16px; align-items: center; }
.p-id .avatar { width: 64px; height: 64px; font-size: 20px; cursor: default; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.range { width: 100%; accent-color: var(--primary); }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-row .b { height: 10px; border-radius: 99px; background: var(--line); position: relative; }
.bar-row .me { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.bar-row .mk { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg); opacity: 0.55; border-radius: 2px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.legend i.mk { width: 2px; height: 12px; background: var(--fg); opacity: 0.55; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }

/* ---------- Onboarding ---------- */
.onb { min-height: 100vh; display: grid; place-items: center; padding-block: calc(24px + env(safe-area-inset-top, 0px)) 40px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); position: relative; isolation: isolate; }
.onb .aurora { inset: 0; position: fixed; }
.onb-card { width: min(100%, 560px); padding: clamp(22px, 4vw, 38px); border-radius: 32px; display: grid; gap: 22px; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots { display: flex; gap: 6px; }
.dots span { width: 26px; height: 5px; border-radius: 4px; background: var(--line); transition: background 0.4s, width 0.4s var(--spring); }
.dots span.on { background: var(--primary); width: 40px; }
.onb h1 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.05; }
.onb .lead { color: var(--muted); margin-top: 8px; }
.drop-big { border-radius: 24px; padding: 34px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; cursor: pointer; position: relative; border: 1px dashed color-mix(in oklab, var(--primary) 40%, transparent); }
.drop-big.drag { background: color-mix(in oklab, var(--primary) 10%, transparent); }
.parse-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.parse-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.parse-list li.ok { color: var(--fg); }
.parse-list li .ic-w { color: var(--good); }
.onb-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prio { display: grid; gap: 18px; }
.prio label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.prio label span { display: flex; justify-content: space-between; }
.prio label em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- Réglages ---------- */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.st-card { padding: 24px; display: grid; gap: 12px; }
.st-card h2 { font-size: 16px; }
.st-card .seg { justify-self: start; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.st-list li { display: flex; align-items: center; gap: 9px; }
.st-list svg { width: 15px; height: 15px; color: var(--primary); flex: none; }
.st-opts { display: grid; gap: 8px; }
.st-opts .ob-opt b { display: flex; align-items: center; gap: 6px; }
.st-opts .ob-opt svg { width: 13px; height: 13px; }
.st-locked { opacity: 0.55; cursor: not-allowed; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.st-row span { display: grid; gap: 2px; font-size: 14px; }
.st-row em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.st-switch { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background 0.25s; }
.st-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease); }
.st-switch:checked { background: var(--fg); }
.st-switch:checked::after { transform: translateX(18px); }
@media (max-width: 860px) { .st-grid { grid-template-columns: 1fr; } }

/* ---------- Coach : offre visée + rapport de fin d'entretien ---------- */
.iv-offer { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.iv-offer select { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 14px; font-weight: 500; padding: 0 12px; max-width: 100%; }
.iv-offer select:disabled { opacity: 0.7; }
.iv-report { display: grid; gap: 18px; }
.iv-r-head { display: flex; align-items: center; gap: 14px; }
.iv-r-head h3 { font-size: 18px; }
.iv-r-head p { font-size: 13px; }
.iv-report h4 { font-size: 14px; margin-bottom: 8px; }
.iv-r-q { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.iv-r-q li { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 13.5px; }
.iv-r-qh { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.iv-r-qh em { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 12.5px; }
.iv-r-qh .stars { display: flex; gap: 3px; }
.iv-r-qh .stars span { width: 16px; height: 5px; border-radius: 3px; background: var(--line); }
.iv-r-qh .stars span.on { background: var(--primary); }
.iv-r-list, .iv-r-plan { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.iv-r-plan li::marker { font-weight: 600; color: var(--primary); }
.iv-report .row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Entretien : préparation, déroulé, retour détaillé ---------- */
.iv-block { display: grid; gap: 8px; }
.iv-block h4, .iv-report h4 { font-size: 13px; font-weight: 600; }
.iv-block .seg { justify-self: start; flex-wrap: wrap; }
.iv-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: f; }
.iv-flow li { counter-increment: f; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.iv-flow li::before { content: counter(f) " · "; font-family: var(--font-mono); font-size: 11px; }
.iv-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.iv-hist li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.iv-prog { display: flex; gap: 4px; }
.iv-prog span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.iv-prog span.done { background: var(--primary); }
.iv-prog span.on { background: color-mix(in oklab, var(--primary) 45%, var(--line)); }
.iv-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.iv-count[data-state="ok"] { color: var(--good); }
.iv-count[data-state="long"] { color: var(--warn); }
.iv-crit { display: grid; gap: 10px; }
.iv-crit .meter { font-size: 12.5px; }
.iv-crit .meter .track { height: 5px; }
.iv-model { padding: 10px 12px; border-radius: 10px; background: color-mix(in oklab, var(--primary) 8%, var(--surface)); }
.iv-log summary, .iv-r-q details summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.iv-log .transcript { margin-top: 8px; }
.iv-r-q details ul { margin-top: 6px; }
.iv-prep { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.iv-prep .card { padding: 20px; display: grid; gap: 10px; align-content: start; }
.iv-prep h3 { font-size: 16px; }
.iv-prep h4 { font-size: 13px; }
.iv-prep .muted { font-size: 13px; }
.iv-check { display: grid; gap: 8px; }
.iv-check label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.iv-check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin-top: 1px; }
@media (max-width: 960px) { .iv-prep { grid-template-columns: 1fr; } }

/* Statut de suivi affiché sur les cartes de la page Favoris */
.fav-status { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--primary); }

/* ---------- Ajout manuel d'une offre ---------- */
.vh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.iv-add { margin-top: -6px; font-size: 13px; }
.mo-sheet { width: min(92vw, 460px); }
.mo-sheet form { display: grid; gap: 12px; }
.mo-sheet label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.mo-sheet label em { font-style: normal; font-weight: 400; color: var(--muted); }
.mo-sheet input, .mo-sheet select, .mo-sheet textarea { width: 100%; font: inherit; font-size: 14px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; }
.mo-sheet textarea { resize: vertical; }
.mo-sheet input:focus, .mo-sheet select:focus, .mo-sheet textarea:focus { border-color: color-mix(in oklab, var(--primary) 55%, transparent); }
.mo-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mo-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
@media (max-width: 420px) { .mo-2 { grid-template-columns: 1fr; } }

/* ---------- Sélecteur d'offre du coach ---------- */
.ivp { position: relative; display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ivp-lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ivp-btn, .ivp-menu button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ivp-btn { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s; }
.ivp-btn:hover:not(:disabled), .ivp.open .ivp-btn { border-color: color-mix(in oklab, var(--fg) 30%, transparent); }
.ivp-btn:disabled { cursor: default; background: var(--surface-2); }
.ivp-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ivp-txt b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ivp-txt em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ivp-chev { width: 16px; height: 16px; color: var(--muted); transform: rotate(90deg); transition: transform 0.25s var(--ease); flex: none; }
.ivp-chev svg { width: 100%; height: 100%; }
.ivp.open .ivp-chev { transform: rotate(-90deg); }
.ivp-menu { position: absolute; z-index: 20; top: calc(100% - 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35); }
.ivp-menu button { padding: 9px 10px; border-radius: 10px; }
.ivp-menu button:hover, .ivp-menu button:focus-visible { background: var(--surface-2); outline: none; }
.ivp-menu [aria-selected="true"] button { background: color-mix(in oklab, var(--primary) 9%, var(--surface)); }
.ivp-tag { flex: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--primary); }
.ivp-add { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.ivp-add button { color: var(--primary); font-size: 13.5px; font-weight: 600; }
.ivp-add svg { width: 16px; height: 16px; margin: 0 7px 0 7px; }

/* Pistes à inclure (avant de répondre) et pistes reprises (dans le retour) */
.iv-tips { padding: 12px 14px; border-radius: 12px; background: color-mix(in oklab, var(--primary) 7%, var(--surface)); border: 1px solid color-mix(in oklab, var(--primary) 18%, var(--line)); display: grid; gap: 6px; }
.iv-tips h4 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--primary); font-weight: 500; }
.iv-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.iv-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.iv-inc li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.iv-inc li svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.iv-inc li.ok { color: var(--fg); }
.iv-inc li.ok svg { color: var(--good); }

/* ---------- Entretien à la voix : enregistrement, transcription, retour de Claude, sessions ---------- */
.iv-ans { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.iv-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; flex-wrap: wrap; }
.iv-switch input { width: 18px; height: 18px; accent-color: var(--primary); }
.iv-switch small { color: var(--muted); font-size: 12px; }
.iv-mode { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.iv-mode i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.iv-mode[data-mode="local"] i { background: var(--good); }
.iv-mode[data-mode="artifact"] i { background: var(--accent); }
.iv-hist button { all: unset; display: flex; justify-content: space-between; gap: 10px; width: 100%; cursor: pointer; }
.iv-hist li:hover { background: color-mix(in oklab, var(--primary) 8%, var(--surface-2)); }
.iv-rec { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.iv-rec[data-state="rec"] { border-color: color-mix(in oklab, var(--bad) 55%, transparent); }
.iv-timer { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 4px; row-gap: 8px; font-size: 15px; font-weight: 600; }
.iv-timer .track { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.iv-timer .fill { height: 100%; background: var(--primary); transform-origin: left; }
.iv-rec[data-state="rec"] .iv-timer .fill { background: var(--bad); }
.iv-timer .muted { font-weight: 500; }
.iv-rec audio { width: 100%; height: 40px; }
.iv-rec .btn { justify-self: start; }
.iv-rec-hint:empty { display: none; }
.iv-rec-hint { font-size: 12.5px; color: var(--muted); }
.iv-err { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: color-mix(in oklab, var(--accent) 12%, var(--surface)); }
.iv-wait { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.iv-wait h3 { font-size: 17px; }
.iv-wait p { font-size: 13.5px; }
.iv-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--primary); flex: none; animation: iv-spin 0.9s linear infinite; margin-top: 2px; }
@keyframes iv-spin { to { transform: rotate(360deg); } }
.iv-src { display: inline-block; margin-top: 6px; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.iv-src[data-src="local"] { background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); }
.iv-synth { font-size: 14.5px; line-height: 1.5; }
.iv-k { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 4px; }
.iv-answer { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 13.5px; white-space: pre-wrap; }
.iv-r-q .iv-model b { display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.iv-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iv-sessions li { display: flex; gap: 6px; align-items: stretch; }
.iv-s-open { all: unset; flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.iv-s-open:hover, .iv-s-open:focus-visible { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.iv-s-open span { display: grid; gap: 2px; font-size: 14px; }
.iv-s-open small { color: var(--muted); font-size: 12.5px; }
.iv-s-score { font-size: 18px; color: var(--primary); }
.iv-s-del { align-self: center; }
.mic:disabled { opacity: 0.5; cursor: progress; }
.iv-voice { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.iv-voice select { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 13px; padding: 0 10px; max-width: 100%; flex: 1; min-width: 0; }
