/* Outils IA de stage.fr : assistant, (Dé)monte ton CV, oral, marches. Mobile d'abord.
   Les couleurs et polices viennent de site.css (variables :root). */

.ai-page { padding: 16px 0 40px; }
.ai-page [hidden] { display: none !important; }
.ai-narrow { max-width: 760px; }
.ai-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.ai-h2 { font-family: var(--font-head); font-size: 20px; margin-bottom: 12px; }
.ai-section { margin-top: 28px; }
.ai-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-row--center { justify-content: center; }
.ai-crumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.ai-crumb a { color: var(--muted); }

/* Boutons */
.ai-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--petrol);
}
.ai-btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.ai-btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.ai-btn--mint { background: var(--mint); color: var(--petrol); }
.ai-btn--mint:hover { background: #00AD7A; color: var(--petrol); }
.ai-btn--dark { background: var(--petrol); color: var(--on-dark); }
.ai-btn--dark:hover { background: var(--petrol-2); color: var(--white); }
.ai-btn--ghost { background: transparent; border-color: var(--line-strong); }
.ai-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.ai-btn:disabled { opacity: .7; cursor: progress; }
.ai-link-strong { font-weight: 700; color: var(--ink); }

/* Mise en page de l'assistant */
.ai-layout { display: grid; gap: 16px; }
.ai-side--left { display: none; }
.ai-side--right { display: grid; gap: 12px; order: 2; }
.ai-main {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.ai-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 14px 16px 10px; }
.ai-title { font-family: var(--font-head); font-size: 20px; line-height: 1.2; }
.ai-sub { font-size: 14px; color: var(--muted); }
.ai-quota { flex: none; font-size: 13px; font-weight: 700; color: var(--petrol); background: var(--mint-soft); border-radius: 999px; padding: 4px 10px; }

.ai-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ai-tab {
  flex: 1 0 auto; min-height: 44px; padding: 8px 12px; border: 0; background: none; cursor: pointer;
  font: 700 15px var(--font-body); color: var(--muted); border-bottom: 3px solid transparent;
}
.ai-tab[aria-selected="true"] { color: var(--petrol); border-bottom-color: var(--mint); }

.ai-panel { flex: 1; }
.ai-thread { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 280px; }

/* Bulles */
.ai-bubble { max-width: 92%; padding: 12px 14px; border-radius: var(--radius); line-height: 1.5; }
.ai-bubble p + p, .ai-bubble p + ul, .ai-bubble ul + p { margin-top: 8px; }
.ai-bubble .ai-btn { margin-top: 10px; }
.ai-bubble--bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-top-left-radius: 4px; }
.ai-bubble--me { align-self: flex-end; background: var(--petrol); color: var(--on-dark); border-top-right-radius: 4px; white-space: pre-line; }
.ai-bubble--mint { align-self: stretch; max-width: none; background: var(--mint-soft); }
.ai-bubble--warn { align-self: stretch; max-width: none; background: var(--warning-bg); border: 1px solid var(--warning-line); }
.ai-bubble--recruiter { position: relative; padding-left: 44px; }
.ai-bubble--recruiter::before {
  content: "R"; position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 700 13px var(--font-head); background: var(--petrol); color: var(--mint);
}
.ai-bubble h3 { font-family: var(--font-head); font-size: 16px; margin: 14px 0 6px; }
.ai-bubble h3:first-child { margin-top: 0; }
.ai-bubble ol, .ai-bubble ul { padding-left: 20px; }
.ai-bubble ol { list-style: decimal; }
.ai-bubble ul { list-style: disc; }
.ai-bubble li + li { margin-top: 6px; }
.ai-gap { background: var(--warning-bg); color: inherit; border-radius: 4px; padding: 0 2px; }
.ai-letter { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.ai-letter p + p { margin-top: 10px; }

.ai-intro { font-weight: 500; }
.ai-ideas { margin-top: 8px; }
.ai-tip { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--mint); background: var(--mint-soft); border-radius: 6px; font-size: 15px; }
.ai-followup { margin-top: 10px; font-weight: 700; }

.ai-typing { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.ai-dots { width: 28px; height: 8px; background: radial-gradient(circle, var(--ink) 3px, transparent 4px) 0 0 / 10px 8px repeat-x; animation: ai-dots 1s steps(3) infinite; }
@keyframes ai-dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Puces de suggestion */
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--petrol);
  font: 500 14px var(--font-body); text-decoration: none; cursor: pointer;
}
.ai-chip:hover { border-color: var(--ink); color: var(--ink); }

/* Offres trouvées : toujours des vraies offres de la base */
.ai-offers { display: grid; gap: 10px; margin-top: 10px; }
.ai-offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }
.ai-offer__body { display: grid; gap: 4px; }
.ai-offer__title { font: 700 16px/1.3 var(--font-head); text-decoration: none; }
.ai-offer__title:hover { text-decoration: underline; }
.ai-offer__meta { font-size: 14px; color: var(--muted); }
.ai-offer__why { font-size: 14px; color: var(--ink); font-weight: 500; }
.ai-offer__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Offre choisie (Candidature, oral) */
.ai-job { display: grid; gap: 4px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: var(--radius); }
.ai-job__title { font: 700 16px/1.3 var(--font-head); }
.ai-job__meta { font-size: 14px; color: var(--muted); }
.ai-job__link { font-size: 14px; font-weight: 700; color: var(--ink); }

/* Mon CV : dépôt et avant / après */
.ai-upload { display: grid; gap: 12px; }
.ai-upload--card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.ai-drop {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 16px; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg); cursor: pointer; color: var(--ink);
}
.ai-drop b { color: var(--petrol); }
.ai-drop:hover, .ai-drop:focus-within { border-color: var(--ink); }
.ai-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ai-paste summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink); min-height: 32px; }
.ai-paste textarea, .ai-field input {
  width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 16px/1.4 var(--font-body); color: var(--petrol); background: var(--white);
}
.ai-field { display: grid; font-size: 15px; font-weight: 700; }
.ai-field .muted { font-weight: 400; }

.ai-changes { display: grid; gap: 10px; margin-top: 10px; }
.ai-change { display: grid; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ai-change__col { display: grid; gap: 4px; }
.ai-change__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ai-change__label--after { color: var(--ink); }
.ai-change__before { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(75, 94, 102, .45); white-space: pre-line; }
.ai-change__after { font-weight: 500; }
.ai-change__why { grid-column: 1 / -1; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }

/* Zone de saisie : collée en bas sur mobile */
.ai-composer {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px; background: var(--white); border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.ai-composer[hidden] { display: none; }
.ai-composer textarea {
  flex: 1; min-height: 46px; max-height: 160px; resize: none; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: 22px; font: 16px/1.4 var(--font-body); color: var(--petrol);
}
.ai-composer textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--mint-soft); }
.ai-composer--inline { border: 1px solid var(--line); border-radius: var(--radius-lg); margin-top: 12px; }
.ai-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--mint); color: var(--petrol); cursor: pointer; display: grid; place-items: center; }
.ai-send:hover { background: #00AD7A; }
.ai-disclaimer { font-size: 13px; color: var(--muted); text-align: center; padding: 8px 16px 12px; }

/* Cartes de côté */
.ai-card { display: grid; gap: 8px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--petrol); }
.ai-card__title { font: 700 16px var(--font-head); }
.ai-card--dark { background: var(--petrol); border-color: var(--petrol); color: var(--on-dark); }
.ai-card--dark span { color: var(--on-dark-muted); }
.ai-card--roast { background: linear-gradient(135deg, var(--mint-soft), var(--white)); }
.ai-card--roast:hover { border-color: var(--ink); color: var(--petrol); }
.ai-steps-count { font: 700 36px/1 var(--font-head); color: var(--ink); }

.ai-mode {
  display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-body); color: var(--petrol);
}
.ai-mode b { font-size: 15px; }
.ai-mode span { font-size: 13px; color: var(--muted); }
.ai-mode[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--on-dark); }
.ai-mode[aria-pressed="true"] span { color: var(--on-dark-muted); }
.ai-convs { display: grid; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.ai-convs a { color: var(--petrol); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-convs a:hover { color: var(--ink); }

/* (Dé)monte ton CV */
.ai-hero { text-align: center; margin: 8px 0 20px; }
.ai-hero--left { text-align: left; }
.ai-hero__title { font: 700 30px/1.15 var(--font-head); }
.ai-hero__sub { margin-top: 10px; font-size: 17px; color: var(--muted); }
.ai-msg { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warning-bg); border: 1px solid var(--warning-line); }
.ai-msg .ai-btn { margin-top: 8px; }
.ai-how { display: grid; gap: 10px; }
.ai-how div { display: grid; gap: 2px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ai-how span { font-size: 14px; color: var(--muted); }
.ai-list { display: grid; gap: 8px; }
.ai-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ai-list a { text-decoration: none; }

.ai-roast { text-align: center; padding: 24px 18px; background: var(--petrol); color: var(--on-dark); border-radius: var(--radius-xl); }
.ai-roast .ai-eyebrow { color: var(--mint); }
.ai-score { display: inline-flex; align-items: baseline; margin: 6px 0 8px; }
.ai-score__num { font: 700 72px/1 var(--font-head); color: var(--mint); }
.ai-score__max { font: 700 26px var(--font-head); color: var(--on-dark-muted); }
.ai-roast__verdict { font: 700 22px/1.3 var(--font-head); max-width: 560px; margin: 0 auto 18px; }
.ai-roast__list { counter-reset: r; display: grid; gap: 10px; text-align: left; max-width: 600px; margin: 0 auto; }
.ai-roast__list li { counter-increment: r; position: relative; padding: 12px 14px 12px 50px; background: var(--petrol-2); border: 1px solid var(--petrol-line); border-radius: var(--radius); }
.ai-roast__list li::before {
  content: counter(r); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: var(--petrol); font: 700 14px var(--font-head);
}
.ai-roast .ai-btn--ghost { color: var(--on-dark); border-color: var(--petrol-line); }
.ai-roast .ai-btn--ghost:hover { color: var(--mint); border-color: var(--mint); }
.ai-roast .ai-row { margin-top: 20px; }
.ai-fixes { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.ai-fixes .ai-h2 { margin-bottom: 4px; }
.ai-fixes__list { list-style: decimal; padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }

/* Oral */
.ai-start { display: grid; gap: 6px; padding: 14px; margin: 14px 0; background: var(--mint-soft); border-radius: var(--radius); }
#ai-oral .ai-job { margin-bottom: 14px; }
#ai-oral .ai-thread { padding: 16px 0 0; min-height: 0; }
#ai-oral [data-start] { width: 100%; }
.ai-progress { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ai-feedback { display: grid; gap: 12px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ai-feedback__title { font: 700 20px var(--font-head); }
.ai-feedback__grid { display: grid; gap: 12px; }
.ai-feedback__col { padding: 12px 14px; border-radius: var(--radius); }
.ai-feedback__col ul { list-style: disc; padding-left: 20px; margin-top: 6px; display: grid; gap: 6px; }
.ai-feedback__col--good { background: var(--mint-soft); }
.ai-feedback__col--work { background: var(--warning-bg); }
.ai-feedback .ai-btn { justify-self: start; }

/* Marches : un escalier en CSS */
.ai-steps-hero {
  display: grid; gap: 16px; padding: 20px; background: var(--petrol); color: var(--on-dark); border-radius: var(--radius-xl); overflow: hidden;
}
.ai-steps-hero .ai-eyebrow { color: var(--mint); }
.ai-steps-hero__count { font: 700 20px var(--font-head); }
.ai-steps-hero__count span { font-size: 52px; line-height: 1; color: var(--mint); margin-right: 4px; }
.ai-steps-hero__sub { color: var(--on-dark-muted); margin-top: 6px; }
.ai-steps-hero__legend { color: var(--on-dark-muted); }
.ai-escalator { --n: 10; --w: calc(100% / var(--n)); position: relative; height: 150px; }
.ai-stair {
  position: absolute; bottom: 0; left: calc(var(--i) * var(--w)); width: var(--w);
  height: calc((var(--i) + 1) * 10%); background: var(--petrol-2); border-top: 3px solid var(--petrol-line);
}
.ai-stair.is-done { background: rgba(0, 195, 137, .28); border-top-color: var(--mint); }
.ai-stair.is-here { background: rgba(0, 195, 137, .5); }
.ai-climber {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--mint);
  left: calc(var(--i) * var(--w) + var(--w) / 2 - 9px); bottom: calc((var(--i) + 1) * 10% + 6px);
  box-shadow: 0 0 0 4px rgba(0, 195, 137, .25); animation: ai-bounce 1.6s ease-in-out infinite;
}
@keyframes ai-bounce { 50% { transform: translateY(-5px); } }

.ai-ways, .ai-history { display: grid; gap: 8px; }
.ai-way { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ai-way__pts { flex: none; min-width: 48px; text-align: center; font: 700 15px var(--font-head); color: var(--petrol); background: var(--mint-soft); border-radius: 999px; padding: 4px 8px; }
.ai-way__label { flex: 1; }
.ai-way__go { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ai-way__state { font-size: 14px; font-weight: 700; color: var(--green); }
.ai-way.is-done .ai-way__label { color: var(--muted); }
.ai-use { display: grid; gap: 4px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ai-history li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ai-history .is-plus { color: var(--green); }
.ai-history .is-minus { color: #A33A2B; }

@media (min-width: 640px) {
  .ai-page { padding: 28px 0 56px; }
  .ai-bubble { max-width: 80%; }
  .ai-change { grid-template-columns: 1fr 1fr; }
  .ai-hero__title { font-size: 40px; }
  .ai-how { grid-template-columns: repeat(3, 1fr); }
  .ai-feedback__grid { grid-template-columns: 1fr 1fr; }
  .ai-steps-hero { grid-template-columns: 1fr 1.2fr; align-items: end; padding: 28px; }
  .ai-steps-hero__legend { grid-column: 1 / -1; }
  #ai-oral [data-start] { width: auto; }
}

@media (min-width: 960px) {
  .ai-layout { grid-template-columns: 230px minmax(0, 1fr) 270px; align-items: start; gap: 20px; }
  .ai-side--left { display: block; }
  .ai-side--right { order: 0; }
  .ai-composer { position: static; }
  .ai-tabs { display: none; }
  .ai-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
  .ai-title { font-size: 22px; }
  .ai-thread { padding: 20px; min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-dots, .ai-climber { animation: none; }
}

/* Oral : choix Écrire / Parler */
.ai-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.ai-modecard {
  display: grid; justify-items: start; gap: 4px; padding: 14px; text-align: left; cursor: pointer;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); color: var(--petrol);
  font-family: var(--font-body);
}
.ai-modecard b { font: 700 16px var(--font-head); }
.ai-modecard span { font-size: 14px; line-height: 1.35; color: var(--muted); }
.ai-modecard svg { color: var(--ink); }
.ai-modecard[aria-checked="true"] { border-color: var(--mint); background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--mint); }
.ai-modecard:focus-visible { outline: none; box-shadow: var(--focus); }
/* Candidature : choix Message court / Lettre de motivation */
.ai-modes--format { margin: 0; padding: 16px 16px 0; }
.ai-modes--format .ai-modecard { padding: 10px 12px; }
.ai-modes--format .ai-modecard b { font-size: 15px; }
.ai-voice-intro { display: grid; gap: 8px; padding: 14px; margin-bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ai-voice-privacy { padding-left: 10px; border-left: 3px solid var(--mint); color: var(--muted); }
#ai-oral [data-voice-start] { width: 100%; }

/* Oral à la voix : le panneau */
.ai-voice {
  display: grid; justify-items: center; gap: 12px; margin-top: 16px; padding: 16px;
  background: var(--petrol); color: var(--on-dark); border-radius: var(--radius-xl); text-align: center;
}
.ai-voice__top { display: flex; justify-content: space-between; width: 100%; font-size: 14px; font-weight: 700; color: var(--on-dark-muted); }
.ai-voice__timer { font-variant-numeric: tabular-nums; }
.ai-voice__timer.is-low { color: var(--warning-line); }
.ai-voice__orb {
  position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: var(--petrol-2); color: var(--on-dark-muted); border: 2px solid var(--petrol-line);
}
.ai-voice__ring {
  --level: 0; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--mint);
  opacity: calc(.15 + var(--level) * .85); transform: scale(calc(1 + var(--level) * .22)); transition: transform .1s, opacity .1s;
}
.ai-voice[data-state="you"] .ai-voice__orb { background: var(--mint); color: var(--petrol); border-color: var(--mint); }
.ai-voice[data-state="recruiter"] .ai-voice__ring { animation: ai-talk 1.1s ease-in-out infinite; opacity: .8; }
.ai-voice[data-state="connecting"] .ai-voice__ring, .ai-voice[data-state="thinking"] .ai-voice__ring { animation: ai-wait 1.4s ease-in-out infinite; }
@keyframes ai-talk { 50% { transform: scale(1.14); } }
@keyframes ai-wait { 50% { opacity: .2; } }
.ai-voice__status { font: 700 18px/1.3 var(--font-head); min-height: 24px; }
.ai-voice__answer { display: grid; gap: 4px; width: 100%; }
.ai-voice__answer textarea {
  width: 100%; min-height: 84px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--petrol-line);
  font: 16px/1.4 var(--font-body); color: var(--petrol); background: var(--white); resize: vertical;
}
.ai-voice .ai-btn--ghost { color: var(--on-dark); border-color: var(--petrol-line); }
.ai-voice .ai-btn--ghost:hover { color: var(--mint); border-color: var(--mint); }
.ai-voice .ai-btn.is-on { background: var(--warning-line); }
.ai-voice__privacy { font-size: 13px; color: var(--on-dark-muted); }

/* Bilan : ta façon de parler */
.ai-speech { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--blue-soft); }
.ai-speech__stats { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-speech__stats span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--white); color: var(--petrol); }
.ai-speech ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }

/* (Dé)monte ton CV : la vidéo */
.ai-video { display: grid; justify-items: center; gap: 12px; margin-top: 18px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; }
.ai-video__preview { width: min(100%, 270px); aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--petrol); }
.ai-video__bar { width: min(100%, 320px); height: 8px; border-radius: 999px; background: var(--grey-soft); overflow: hidden; }
.ai-video__bar span { display: block; height: 100%; width: 0; background: var(--mint); transition: width .2s linear; }
.ai-video canvas { display: none; }

@media (min-width: 640px) {
  #ai-oral [data-voice-start] { width: auto; }
  .ai-voice { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-voice__ring { animation: none !important; transition: none; }
}
