/* ============================================================
   Crisalida — Studio IA (présentation, mes documents, espace de travail, outils de révision)
   Toutes les couleurs passent par les jetons du design system : le mode sombre suit automatiquement.
   ============================================================ */

/* ------------------------------------------------------------ Présentation */
.st-hero .el-hero-inner { padding-bottom: 72px; }
.st-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: #c9cdd6; font-size: 14px; font-weight: 600; }
.st-proof li { display: inline-flex; align-items: center; gap: 8px; }
.st-proof svg { width: 17px; height: 17px; color: var(--coral-light); }

.st-mock { position: relative; padding: 18px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.st-mock-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.st-mock-page { position: relative; align-self: start; aspect-ratio: 3 / 4; border-radius: 6px; background: #fff; padding: 22px 12px 12px; display: grid; gap: 6px; align-content: start; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.st-mock-page .k { position: absolute; top: 7px; left: 10px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #c0203a; }
.st-mock-page i { display: block; height: 5px; border-radius: 3px; background: #e3e5ec; }
.st-mock-page i.t { height: 8px; width: 70%; background: #2c2f37; margin-bottom: 4px; }
.st-mock-page i.s { width: 62%; }
.st-mock-page i.hl { background: rgba(192, 32, 58, .35); box-shadow: 0 0 0 3px rgba(192, 32, 58, .12); animation: stPulse 2.4s ease-in-out infinite; }
@keyframes stPulse { 50% { box-shadow: 0 0 0 6px rgba(192, 32, 58, .05); } }
.st-mock-chat .el-demo-msg:last-child { margin-bottom: 0; }

.st-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.st-steps li { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.st-step-n { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-solid); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 17px; box-shadow: var(--sh-crimson); }
.st-steps h3 { font-size: 16px; font-weight: 800; margin: 2px 0 6px; }
.st-steps p { color: var(--slate); font-size: 14px; }

.st-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.st-feature { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.st-feature:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--crimson) 30%, var(--line)); }
.st-feature .f-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--crimson-50); color: var(--crimson); margin-bottom: 14px; }
.st-feature .f-ic svg { width: 21px; height: 21px; }
.st-feature h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.st-feature p { color: var(--slate); font-size: 14px; }
.st-feature-main { grid-column: span 2; grid-row: span 2; background: var(--grad-dark); border-color: transparent; color: #e6e8ee; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.st-feature-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 260px at 100% 0%, rgba(192, 32, 58, .5), transparent 60%); pointer-events: none; }
.st-feature-main > * { position: relative; }
.st-feature-main h3 { color: #fff; font-size: 22px; margin-top: 8px; }
.st-feature-main p { color: #c9cdd6; font-size: 15.5px; max-width: 460px; }
.st-feature-main .f-ic { background: var(--grad-solid); color: #fff; width: 52px; height: 52px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.st-chips span { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .18); color: #e6e8ee; }

.st-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.st-h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 14px 0 22px; }
.st-list { display: grid; gap: 18px; }
.st-list li { display: flex; gap: 14px; }
.st-list li > svg { flex: 0 0 auto; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--crimson-50); color: var(--crimson); }
.st-list b { display: block; font-family: var(--font-head); font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.st-list span { color: var(--slate); font-size: 14.5px; }
.st-answer-card { padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-lg); font-size: 15px; line-height: 1.65; color: var(--text-strong); }
.st-answer-head { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); margin-bottom: 10px; }
.st-answer-head svg { width: 14px; height: 14px; }
.st-cite { display: inline-flex; padding: 0 6px; border-radius: 5px; background: var(--crimson-50); color: var(--crimson); font-size: 11.5px; font-weight: 800; }
.st-answer-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate-light); }
.st-answer-foot svg { width: 15px; height: 15px; }

.st-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.st-plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.st-plan.is-featured { border: 2px solid var(--crimson); box-shadow: var(--sh-lg); }
.st-badge { position: absolute; top: -12px; left: 28px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--grad-solid); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.st-plan h3 { font-size: 19px; font-weight: 800; }
.st-price { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--ink); margin: 8px 0 18px; }
.st-price small { font-size: 14px; font-weight: 600; color: var(--slate-light); }
.st-plan ul { display: grid; gap: 10px; margin-bottom: 24px; }
.st-plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-strong); }
.st-plan li svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--success); margin-top: 1px; }
.st-plan > .btn, .st-plan-actions { margin-top: auto; }
.st-plan-actions { display: grid; gap: 12px; justify-items: center; }

.st-faq { display: grid; gap: 10px; }
.st-faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 0 18px; transition: border-color .2s; }
.st-faq details[open] { border-color: color-mix(in srgb, var(--crimson) 35%, var(--line)); }
.st-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--crimson); transition: transform .2s; }
.st-faq details[open] summary::after { transform: rotate(45deg); }
.st-faq p { padding: 0 0 16px; color: var(--slate); font-size: 14.5px; }

.st-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: var(--r-xl); background: var(--grad-dark); color: #fff; position: relative; overflow: hidden; }
.st-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 260px at 100% 0%, rgba(192, 32, 58, .5), transparent 62%); pointer-events: none; }
.st-cta > * { position: relative; }
.st-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 6px; }
.st-cta p { color: #c9cdd6; }

/* ------------------------------------------------------------ Mes documents */
.st-docs-page { padding-top: 24px; padding-bottom: 64px; }
.st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.st-head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; }
.st-account { display: grid; gap: 10px; justify-items: end; }
.st-account-plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-streak { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--warning-ink, var(--warning)); background: var(--warning-bg); padding: 3px 10px; border-radius: var(--r-pill); }
.st-streak svg { width: 13px; height: 13px; }
.st-meters { display: flex; gap: 12px; flex-wrap: wrap; }
.st-meter { min-width: 190px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.st-meter span { font-size: 12px; color: var(--slate-light); font-weight: 700; }
.st-meter b { font-family: var(--font-head); font-size: 20px; color: var(--ink); line-height: 1.1; }
.st-meter b small { font-size: 12.5px; font-weight: 600; color: var(--slate-light); }

.st-dash { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 22px; align-items: start; }
.st-upload { position: sticky; top: calc(var(--header-h) + 16px); }
.st-upload-form { display: grid; gap: 16px; }
.st-drop { padding: 34px 20px; gap: 6px; }
.st-drop-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--crimson-50); margin-bottom: 4px; transition: transform .25s var(--ease); }
.st-drop:hover .st-drop-ic, .st-drop.is-over .st-drop-ic { transform: translateY(-3px) scale(1.04); }
.st-drop > span:not(.st-drop-ic):not(.file-name) { font-size: 13px; }
.st-drop u { color: var(--crimson); font-weight: 700; text-decoration: none; }
.st-drop.has-file { border-style: solid; border-color: var(--crimson); background: var(--crimson-50); }
.st-drop.is-busy { pointer-events: none; opacity: .7; }
.st-upload-fields { display: grid; gap: 14px; }
.st-upload-fields .input { padding: 10px 12px; font-size: 14px; }
.st-upload-fields .form-grid { gap: 12px; }
.st-privacy { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--slate-light); }
.st-privacy svg { width: 14px; height: 14px; flex: 0 0 auto; }
.st-progress { display: grid; gap: 12px; padding: 4px 0; }
.st-progress-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.st-progress-top b { font-family: var(--font-head); color: var(--ink); }
.st-progress-top span { font-weight: 800; color: var(--crimson); }
.st-progress-steps { display: grid; gap: 8px; }
.st-progress-steps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--slate-light); transition: color .2s; }
.st-progress-steps li svg { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: var(--mist); flex: 0 0 auto; transition: background .2s, color .2s; }
.st-progress-steps li.is-active { color: var(--ink); font-weight: 700; }
.st-progress-steps li.is-active svg { background: var(--crimson-50); color: var(--crimson); animation: stBlink 1.2s ease-in-out infinite; }
.st-progress-steps li.is-done { color: var(--success); }
.st-progress-steps li.is-done svg { background: var(--success-bg); color: var(--success); }
@keyframes stBlink { 50% { opacity: .55; } }
.st-limit { text-align: center; padding: 18px 6px 6px; }
.st-limit .es-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--slate-light); }
.st-limit .es-ic svg { width: 22px; height: 22px; }
.st-limit h3 { font-size: 16px; margin-bottom: 6px; }
.st-limit p { color: var(--slate); font-size: 14px; margin-bottom: 14px; }

.st-docs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.st-docs-head h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.st-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.st-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: color-mix(in srgb, var(--crimson) 25%, var(--line)); }
.st-card-thumb { position: relative; display: block; background: var(--mist) linear-gradient(135deg, var(--mist), var(--mist-2)); min-height: 150px; overflow: hidden; }
.st-card-thumb img { position: absolute; inset: 10px 10px auto; width: calc(100% - 20px); border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, .16); background: #fff; }
.st-card-pages { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(29, 31, 38, .82); color: #fff; font-size: 11px; font-weight: 800; }
.st-card-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-card h3 { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.st-card h3 a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-card h3 a:hover { color: var(--crimson); }
.st-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--slate); }
.st-card-meta svg, .st-card-meta span svg { width: 13px; height: 13px; vertical-align: -2px; }
.st-card-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--slate-light); }
.st-card-stats li { display: inline-flex; align-items: center; gap: 4px; }
.st-card-stats svg { width: 13px; height: 13px; }
.st-card-error { font-size: 12.5px; color: var(--danger); }
.st-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.st-card-actions .btn { padding: 7px 12px; font-size: 12.5px; }
.st-ready-mini .ring { --ring-color: var(--crimson); }
.st-ready-mini .ring > span { font-size: 10px; }
.st-empty { padding: 48px 24px; }
.st-empty-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: 13px; color: var(--slate); font-weight: 600; }
.st-empty-list li { display: inline-flex; align-items: center; gap: 6px; }
.st-empty-list svg { width: 15px; height: 15px; color: var(--crimson); }

/* ------------------------------------------------------------ Espace de travail : en-tête */
.st-work-head { align-items: flex-end; }
.st-title-block { min-width: 0; flex: 1 1 420px; }
.st-title-block h1 { overflow-wrap: anywhere; }
.st-doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--slate); }
.st-doc-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.st-doc-meta svg { width: 14px; height: 14px; }
.st-doc-meta .link-btn { font-size: 12.5px; }
.st-rename { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-rename .input { flex: 1 1 180px; padding: 8px 11px; font-size: 14px; }
.st-ready { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.st-ready .ring { --ring-color: var(--crimson); }
.st-ready .ring.ok { --ring-color: var(--success); }
.st-ready small { display: block; font-size: 11.5px; color: var(--slate-light); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.st-ready b { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); }
.st-ready-detail { display: block; font-size: 12px; color: var(--slate); }
.st-ready.is-bump .ring { animation: popIn .5s var(--ease); }
.st-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.st-processing { max-width: 640px; margin: 30px auto; padding: 40px 32px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.st-processing h2 { font-size: 22px; font-weight: 800; }
.st-processing p { color: var(--slate); max-width: 480px; }
.st-processing .st-progress-steps { text-align: left; margin-top: 6px; }
.st-spinner { position: relative; width: 72px; height: 72px; display: grid; place-items: center; color: var(--crimson); }
.st-spinner span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--crimson-50); border-top-color: var(--crimson); animation: spin 1s linear infinite; }
.st-spinner svg { width: 28px; height: 28px; animation: stBlink 1.6s ease-in-out infinite; }
.st-spinner.sm { width: 48px; height: 48px; }
.st-spinner.sm svg { width: 20px; height: 20px; }
.st-failed { max-width: 620px; margin: 30px auto; }

/* ------------------------------------------------------------ Espace de travail : grille */
.st-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) minmax(400px, 460px); gap: 16px; align-items: stretch; height: calc(var(--screen-h) - var(--header-h) - 172px); min-height: 620px; }
.st-layout .reader { height: 100%; }
.st-side .p-side-body { padding: 6px; }
.st-outline { display: grid; gap: 1px; }
.st-out { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 8px; text-align: left; font-size: 13px; line-height: 1.35; color: var(--text-strong); transition: background .15s, color .15s; }
.st-out span { min-width: 0; overflow-wrap: anywhere; }
.st-out small { flex: 0 0 auto; font-size: 11px; color: var(--slate-light); font-weight: 700; }
.st-out:hover { background: var(--surface-hover); color: var(--crimson); }
.st-out.l1 { font-weight: 700; color: var(--ink); }
.st-out.l2 { padding-left: 20px; }
.st-out.l3 { padding-left: 32px; font-size: 12.5px; color: var(--slate); }
.st-out.is-current { background: var(--crimson-50); color: var(--crimson); box-shadow: inset 3px 0 0 var(--crimson); }
.st-side-empty { padding: 10px; font-size: 13px; color: var(--slate); }
.st-side-sec { margin-top: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line-soft); }
.st-side-sec h3 { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 10px; }
.st-side-sec h3 svg { width: 14px; height: 14px; }
.st-notions { display: flex; flex-wrap: wrap; gap: 6px; }
.st-notions button { padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--text-strong); transition: border-color .15s, background .15s, color .15s; text-align: left; }
.st-notions button:hover { border-color: var(--crimson); background: var(--crimson-50); color: var(--crimson); }
.st-warn { display: flex; gap: 8px; margin: 12px 8px 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--warning-bg); color: var(--warning-ink, var(--warning)); font-size: 12.5px; }
.st-warn svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.st-info { display: flex; gap: 8px; margin: 12px 8px 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--success-bg); color: var(--success); font-size: 12.5px; }
.st-info svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }

/* Panneau assistant + outils */
.st-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.st-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px; border-bottom: 1px solid var(--line-soft); flex: 0 0 auto; }
.st-tabs button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 8px; border-radius: 10px; font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--slate); transition: background .15s, color .15s; min-width: 0; }
.st-tabs button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.st-tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tabs button:hover { background: var(--surface-hover); color: var(--ink); }
.st-tabs button[aria-selected="true"] { background: var(--crimson-50); color: var(--crimson); }
.st-tabs button:focus-visible { outline: 2px solid var(--crimson); outline-offset: -2px; }
.st-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--crimson); color: #fff; font-size: 10.5px; display: inline-grid; place-items: center; }
.st-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.st-pane[hidden] { display: none !important; }
.st-chat { overflow: hidden; }
.st-chat-head { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 8px; }
.st-chat-opts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--slate); }
.st-chat-opts .st-icon-btn { margin-left: auto; }
.st-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 700; user-select: none; }
.st-switch input { position: absolute; opacity: 0; pointer-events: none; }
.st-switch > span { position: relative; width: 30px; height: 18px; border-radius: 10px; background: var(--line-strong); transition: background .2s; flex: 0 0 auto; }
.st-switch > span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.st-switch input:checked + span { background: var(--crimson); }
.st-switch input:checked + span::after { transform: translateX(12px); }
.st-switch input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: 2px; }
.st-switch b { color: var(--ink); }
.st-icon-btn { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--slate); border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; flex: 0 0 auto; }
.st-icon-btn:hover { background: var(--surface-hover); color: var(--crimson); border-color: var(--line); }
.st-icon-btn svg { width: 16px; height: 16px; }
.st-icon-btn.sm { width: 26px; height: 26px; }
.st-icon-btn.sm svg { width: 13px; height: 13px; }
.st-icon-btn.is-confirming, .st-mini.is-confirming { color: #fff; background: var(--danger); }
.st-chat .chat-log { flex: 1; }
.st-chat .chat-input { flex: 0 0 auto; }
.st-msg-tag { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.st-msg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.st-engine { font-size: 11px; color: var(--slate-light); }
.st-msg-actions { display: inline-flex; gap: 4px; }
.st-mini { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 700; color: var(--slate); border: 1px solid var(--line); background: var(--surface); transition: color .15s, border-color .15s, background .15s; }
.st-mini:hover { color: var(--crimson); border-color: var(--crimson); }
.st-mini svg { width: 12px; height: 12px; }
.st-mini[disabled] { opacity: .6; pointer-events: none; }
.msg .bubble .cite-page { min-width: 0; padding: 0 6px; }

/* ------------------------------------------------------------ Outils : structure commune */
.st-tool { display: flex; flex-direction: column; min-height: 100%; }
.st-tool-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 10px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.st-tool-title { flex: 1; min-width: 0; }
.st-hub .st-tool-head { padding-left: 14px; }
.st-tool-head h3 { font-size: 15.5px; font-weight: 800; }
.st-tool-head small { display: block; font-size: 12px; color: var(--slate-light); }
.st-tool-actions { display: flex; align-items: center; gap: 6px; }
.st-tool-body { padding: 14px; display: grid; gap: 14px; align-content: start; }
.st-tool-error { margin: 12px 14px 0; }
.st-empty-tool { display: grid; justify-items: center; gap: 12px; padding: 34px 22px; text-align: center; color: var(--slate); font-size: 14px; }
.st-empty-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--crimson-50); color: var(--crimson); }
.st-empty-ic svg { width: 24px; height: 24px; }
.st-empty-tool p { max-width: 320px; }
.st-cost { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--slate-light); }
.st-cost svg { width: 12px; height: 12px; }
.st-loading { display: grid; justify-items: center; gap: 12px; padding: 34px 20px; text-align: center; }
.st-loading b { font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.st-skel { width: 100%; display: grid; gap: 8px; margin-top: 8px; }
.st-skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--mist) 25%, var(--mist-2) 50%, var(--mist) 75%); background-size: 200% 100%; animation: stShimmer 1.4s linear infinite; }
.st-skel i:nth-child(2) { width: 86%; }
.st-skel i:nth-child(3) { width: 92%; }
.st-skel i:nth-child(4) { width: 64%; }
@keyframes stShimmer { to { background-position: -200% 0; } }
.st-page { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; background: var(--crimson-50); color: var(--crimson); font-size: 11.5px; font-weight: 800; white-space: nowrap; vertical-align: 1px; transition: background .15s, color .15s; }
.st-page:hover { background: var(--crimson); color: #fff; }
.st-overview { font-size: 14px; color: var(--text-strong); line-height: 1.6; padding-left: 12px; border-left: 3px solid var(--crimson); }
.st-progress-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 700; color: var(--slate); }
.st-progress-line .progress { flex: 1; max-width: 180px; }
.st-history { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--slate); }
.st-history svg { width: 14px; height: 14px; color: var(--warning); }
.st-history b { color: var(--ink); }

/* Tableau de bord « Réviser » */
.st-hub-grid { display: grid; gap: 8px; }
.st-hub-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.st-hub-card:hover { border-color: color-mix(in srgb, var(--crimson) 40%, var(--line)); box-shadow: var(--sh-sm); transform: translateY(-1px); }
.st-hub-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--mist); color: var(--slate); transition: background .15s, color .15s; }
.st-hub-ic svg { width: 19px; height: 19px; }
.st-hub-card.is-ready .st-hub-ic { background: var(--crimson-50); color: var(--crimson); }
.st-hub-text { min-width: 0; }
.st-hub-text b { display: block; font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.st-hub-text small { display: block; font-size: 12px; color: var(--slate-light); line-height: 1.35; }
.st-hub-status { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); background: var(--mist); color: var(--slate); white-space: nowrap; }
.st-hub-status.ok { background: var(--success-bg); color: var(--success); }
.st-hub-status.warn { background: var(--warning-bg); color: var(--warning-ink, var(--warning)); }
.st-hub-kit { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--grad-dark); color: #fff; position: relative; overflow: hidden; }
.st-hub-kit::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 120px at 100% 0%, rgba(192, 32, 58, .5), transparent 62%); pointer-events: none; }
.st-hub-kit > * { position: relative; }
.st-hub-kit > svg { width: 20px; height: 20px; flex: 0 0 auto; color: #f3697e; }
.st-hub-kit > svg:last-child { color: #fff; transition: transform .2s var(--ease); }
.st-hub-kit:hover > svg:last-child { transform: translateX(3px); }
.st-hub-kit span { flex: 1; min-width: 0; }
.st-hub-kit b { display: block; font-family: var(--font-head); font-size: 14px; color: #fff; }
.st-hub-kit small { display: block; font-size: 12px; color: #c9cdd6; }

/* Résumé */
.st-takeaways { padding: 14px 16px; border-radius: var(--r-md); background: var(--grad-dark); color: #e6e8ee; position: relative; overflow: hidden; }
.st-takeaways::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 160px at 100% 0%, rgba(192, 32, 58, .45), transparent 60%); pointer-events: none; }
.st-takeaways > * { position: relative; }
.st-takeaways h4 { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 14px; margin-bottom: 8px; }
.st-takeaways h4 svg { width: 15px; height: 15px; color: #f3697e; }
.st-takeaways ul { display: grid; gap: 7px; padding-left: 16px; list-style: disc; font-size: 13.5px; }
.st-takeaways li::marker { color: #f3697e; }
.st-takeaways .st-page { background: rgba(243, 105, 126, .2); color: #ffb3bf; }
.st-sum-part { padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); }
.st-sum-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.st-sum-head h4 { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.st-sum-n { font-family: var(--font-head); font-weight: 800; font-size: 12px; color: var(--crimson); }
.st-topics { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.st-topics span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--mist); color: var(--slate); }
.st-sum-part ul { display: grid; gap: 7px; padding-left: 16px; list-style: disc; font-size: 13.5px; line-height: 1.55; color: var(--text-strong); }
.st-sum-part li::marker { color: var(--crimson); }

/* Fiches mémo */
.st-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--mist); }
.st-seg button { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--slate); }
.st-seg button[aria-pressed="true"] { background: var(--raised); color: var(--crimson); box-shadow: var(--sh-sm); }
.st-fc-stats { display: grid; grid-template-columns: repeat(3, auto) minmax(60px, 1fr); align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r-md); background: var(--mist); }
.st-fc-stats div { display: flex; flex-direction: column; line-height: 1.1; }
.st-fc-stats b { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.st-fc-stats span { font-size: 11px; color: var(--slate-light); font-weight: 700; }
.st-flip-wrap { display: grid; gap: 12px; }
.st-flip { position: relative; display: block; width: 100%; min-height: 230px; perspective: 1200px; text-align: left; border-radius: var(--r-lg); }
.st-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s var(--ease); box-shadow: var(--sh-md); }
.st-front { background: var(--surface); }
.st-back { background: var(--grad-dark); color: #fff; border-color: transparent; transform: rotateY(180deg); }
.st-flip.is-flipped .st-front { transform: rotateY(-180deg); }
.st-flip.is-flipped .st-back { transform: rotateY(0); }
.st-face small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); }
.st-back small { color: #f3697e; }
.st-face b { font-family: var(--font-head); font-size: 17px; line-height: 1.4; color: var(--ink); }
.st-back b { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 15.5px; line-height: 1.55; }
.st-face em { font-style: normal; font-size: 12px; color: var(--slate-light); margin-top: auto; }
.st-flip:focus-visible { outline: 3px solid rgba(192, 32, 58, .4); outline-offset: 3px; }
.st-flip-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-flip-actions .btn { padding: 11px 12px; font-size: 13.5px; }
.st-flip-actions kbd { font-family: var(--font-mono); font-size: 11px; padding: 0 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .6; }
.st-card-list { display: grid; gap: 10px; counter-reset: card; }
.st-card-list li { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); counter-increment: card; }
.st-card-list b { display: block; font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.st-card-list b::before { content: counter(card, decimal-leading-zero) " · "; color: var(--crimson); }
.st-card-list p { font-size: 13.5px; color: var(--text-strong); margin: 4px 0 8px; }
.st-card-list li > div { display: flex; justify-content: space-between; align-items: center; }
.st-box { font-size: 11px; letter-spacing: 2px; color: var(--crimson); }
.st-done { display: grid; justify-items: center; gap: 10px; padding: 26px 12px; text-align: center; }
.st-done svg { width: 44px; height: 44px; color: var(--warning); }
.st-done h4 { font-size: 16px; font-weight: 800; }
.st-done p { color: var(--slate); font-size: 13.5px; max-width: 320px; }

/* Quiz et examen */
.st-quiz { display: grid; gap: 14px; }
.st-q { font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.st-q span { color: var(--crimson); }
.st-choices { display: grid; gap: 8px; }
.st-choice { position: relative; display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 11px 12px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); text-align: left; font-size: 14px; line-height: 1.45; color: var(--text-strong); cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.st-choice:hover:not([disabled]) { border-color: var(--line-strong); background: var(--surface-hover); }
.st-choice input { position: absolute; opacity: 0; pointer-events: none; }
.st-letter { flex: 0 0 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--mist-2); font-family: var(--font-head); font-weight: 800; font-size: 12px; color: var(--slate); }
.st-choice.is-right { border-color: var(--success); background: var(--success-bg); }
.st-choice.is-right .st-letter { background: var(--success); color: #fff; }
.st-choice.is-wrong { border-color: var(--danger); background: var(--danger-bg); }
.st-choice.is-wrong .st-letter { background: var(--danger); color: #fff; }
.st-choice.is-dim { opacity: .55; }
.st-choice[disabled] { cursor: default; }
.st-choice.is-picked { border-color: var(--crimson); background: var(--crimson-50); }
.st-choice.is-picked .st-letter { background: var(--crimson); color: #fff; }
.st-choice:has(input:focus-visible) { outline: 3px solid rgba(192, 32, 58, .35); outline-offset: 1px; }
.st-choices.compact .st-choice { padding: 8px 10px; font-size: 13.5px; }
.st-feedback { padding: 12px 14px; border-radius: var(--r-md); display: grid; gap: 6px; justify-items: start; font-size: 13.5px; }
.st-feedback b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); }
.st-feedback b svg { width: 16px; height: 16px; }
.st-feedback.ok { background: var(--success-bg); }
.st-feedback.ok b { color: var(--success); }
.st-feedback.ko { background: var(--danger-bg); }
.st-feedback.ko b { color: var(--danger); }
.st-feedback p { color: var(--text-strong); }
.st-result { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; text-align: center; }
.st-result .ring { --ring-color: var(--crimson); margin-bottom: 4px; }
.st-result .ring.ok { --ring-color: var(--success); }
.st-result h4 { font-size: 18px; font-weight: 800; }
.st-result p { color: var(--slate); font-size: 14px; }
.st-review { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--slate); margin-top: 4px; }
.st-result-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.st-correction { display: grid; gap: 10px; counter-reset: q; }
.st-correction li { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); border-left-width: 4px; font-size: 13.5px; display: grid; gap: 5px; justify-items: start; }
.st-correction li.ok { border-left-color: var(--success); }
.st-correction li.ko { border-left-color: var(--danger); }
.st-correction b { font-family: var(--font-head); color: var(--ink); font-size: 14px; }
.st-corr-line { display: flex; gap: 6px; align-items: flex-start; color: var(--text-strong); }
.st-corr-line svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
li.ko > .st-corr-line:not(.right) svg { color: var(--danger); }
.st-corr-line.right svg, li.ok > .st-corr-line svg { color: var(--success); }
.st-correction p { color: var(--slate); }
.st-exam-intro { display: grid; justify-items: center; gap: 12px; padding: 22px 10px; text-align: center; }
.st-exam-intro > svg { width: 46px; height: 46px; color: var(--crimson); }
.st-exam-intro h4 { font-size: 18px; font-weight: 800; }
.st-exam-intro ul { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.st-exam-intro li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--mist); font-size: 13px; color: var(--slate); }
.st-exam-intro li b { color: var(--ink); }
.st-exam-intro p { color: var(--slate); font-size: 13.5px; max-width: 340px; }
.st-exam { display: grid; gap: 14px; }
.st-timer { position: sticky; top: 59px; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--inverse-bg); color: var(--inverse-fg); font-size: 12.5px; box-shadow: var(--sh-md); }
.st-timer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.st-timer svg { width: 15px; height: 15px; }
.st-timer b { font-family: var(--font-mono); font-size: 16px; }
.st-timer > span:nth-child(2) { justify-self: end; opacity: .8; }
.st-timer .progress { grid-column: 1 / -1; background: rgba(255, 255, 255, .15); }
.st-timer.is-late { background: var(--danger); color: #fff; }
.st-exam-list { display: grid; gap: 18px; }
.st-exam-list > li { display: grid; gap: 8px; }
.st-exam-list .st-q { font-size: 14.5px; }

/* Glossaire */
.st-search { position: relative; display: block; }
.st-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--slate-light); pointer-events: none; }
.st-search .input { padding: 9px 12px 9px 36px; font-size: 14px; }
.st-gloss { display: grid; gap: 2px; }
.st-letter-head { font-family: var(--font-head); font-weight: 800; font-size: 12px; color: var(--crimson); padding: 12px 2px 4px; border-bottom: 1px solid var(--line-soft); }
.st-term { padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.st-term b { font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.st-term i { font-style: normal; font-size: 12.5px; color: var(--slate); }
.st-term p { font-size: 13.5px; color: var(--text-strong); margin: 3px 0 7px; line-height: 1.5; }
.st-term-actions { display: flex; align-items: center; gap: 6px; }
.st-none { padding: 18px 4px; color: var(--slate); font-size: 13.5px; }

/* Carte mentale */
.st-map { display: grid; gap: 12px; }
.st-map-root { justify-self: center; max-width: 100%; padding: 12px 18px; border-radius: var(--r-md); background: var(--grad-dark); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; text-align: center; box-shadow: var(--sh-md); }
.st-branches { display: grid; gap: 10px; position: relative; }
.st-branch { --branch: var(--crimson); position: relative; padding: 4px 0 4px 16px; border-left: 3px solid var(--branch); }
.st-branch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 9px; background: color-mix(in srgb, var(--branch) 12%, var(--surface)); color: var(--ink); text-align: left; font-family: var(--font-head); font-weight: 800; font-size: 13.5px; transition: background .15s; }
.st-branch-head:hover { background: color-mix(in srgb, var(--branch) 22%, var(--surface)); }
.st-branch-head small, .st-node small { flex: 0 0 auto; font-family: var(--font-body); font-size: 10.5px; font-weight: 700; color: var(--slate-light); }
.st-branch ul { display: grid; gap: 4px; margin: 6px 0 2px 10px; }
.st-node > button { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; padding: 4px 8px; border-radius: 7px; text-align: left; font-size: 13px; color: var(--text-strong); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, color .15s; }
.st-node > button:hover { border-color: var(--branch); color: var(--branch); }
.st-node.d3 > button { font-size: 12.5px; border-style: dashed; }
.st-map.is-big .st-branches { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.st-map.is-big .st-map-root { font-size: 18px; padding: 16px 28px; }
.st-overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; background: rgba(12, 14, 18, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: pop .25s var(--ease); }
.st-overlay-box { width: min(1180px, 100%); max-height: calc(var(--screen-h) - 48px); display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.st-overlay-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.st-overlay-head h3 { font-size: 17px; font-weight: 800; }
.st-overlay-body { padding: 20px; overflow: auto; }

/* Plan de révision */
.st-plan-form { display: grid; gap: 14px; }
.st-plan-form .input, .st-plan-form .select { padding: 10px 12px; font-size: 14px; }
.st-countdown { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--grad-dark); color: #fff; }
.st-countdown > div:first-child { display: flex; flex-direction: column; line-height: 1.15; }
.st-countdown b { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: #fff; }
.st-countdown span { font-size: 12.5px; color: #c9cdd6; }
.st-countdown-progress { flex: 1; display: grid; gap: 6px; }
.st-countdown-progress .progress { background: rgba(255, 255, 255, .15); }
.st-plan-warn { font-size: 13px; }
.st-days { display: grid; gap: 10px; }
.st-day { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); }
.st-day.is-today { border: 2px solid var(--crimson); box-shadow: var(--sh-sm); }
.st-day.is-past { opacity: .62; }
.st-day.is-exam { background: var(--crimson-50); border-color: transparent; }
.st-day.is-exam p { font-size: 13px; color: var(--text-strong); margin-top: 4px; }
.st-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.st-day-head b { font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.st-day.is-today .st-day-head b { color: var(--crimson); }
.st-day-head span { font-size: 12px; font-weight: 700; color: var(--slate-light); }
.st-day.is-exam .st-day-head { margin-bottom: 0; }
.st-day.is-exam .st-day-head span { color: var(--crimson); }
.st-day > ul { display: grid; gap: 7px; }
.st-task { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.st-task .check { font-size: 13.5px; }
.st-task .check input { flex-basis: 18px; width: 18px; height: 18px; }
.st-task.is-done .check span { text-decoration: line-through; color: var(--slate-light); }
.st-task-meta { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.st-task-meta small { font-size: 11px; color: var(--slate-light); font-weight: 700; }

/* Notes */
.st-notes { padding: 14px; gap: 14px; }
.st-note-form { display: grid; gap: 8px; }
.st-note-form .textarea { min-height: 84px; font-size: 14px; padding: 10px 12px; }
.st-note-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.st-note-list { display: grid; gap: 10px; }
.st-note { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.st-note-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--slate-light); font-weight: 700; margin-bottom: 6px; }
.st-note-meta .st-icon-btn { margin-left: auto; }
.st-note-text { font-size: 13.5px; line-height: 1.55; color: var(--text-strong); overflow-wrap: anywhere; }
.st-note-text p + p, .st-note-text p + ul, .st-note-text ul + p { margin-top: 6px; }
.st-note-text ul { padding-left: 16px; list-style: disc; display: grid; gap: 3px; }
.st-note-text .cite { display: inline-flex; padding: 0 5px; border-radius: 5px; background: var(--crimson-50); color: var(--crimson); font-size: 11px; font-weight: 800; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1500px) {
  .st-layout { grid-template-columns: 220px minmax(0, 1fr) minmax(380px, 420px); }
  .st-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .st-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); height: auto; }
  .st-layout .st-side { grid-column: 1 / -1; grid-row: 2; max-height: 340px; }
  .st-layout .reader, .st-layout .st-panel { height: calc(var(--screen-h) - var(--header-h) - 172px); min-height: 600px; }
  .st-dash { grid-template-columns: 1fr; }
  .st-upload { position: static; }
  .st-split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1100px) {
  .st-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-mock-body { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .st-steps { grid-template-columns: 1fr; }
  .st-plans { grid-template-columns: minmax(0, 1fr); }
  .st-account { justify-items: start; }
}
@media (max-width: 860px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-layout .reader { height: 72vh; min-height: 460px; }
  .st-layout .st-panel { grid-row: 2; height: 78vh; min-height: 520px; }
  .st-layout .st-side { grid-row: 3; max-height: none; }
  .st-work-head .st-ready { order: 3; }
}
@media (max-width: 600px) {
  .st-features { grid-template-columns: 1fr; }
  .st-feature-main { grid-column: auto; grid-row: auto; }
  .st-card { grid-template-columns: 86px minmax(0, 1fr); }
  .st-card-thumb { min-height: 120px; }
  .st-meter { min-width: 0; flex: 1 1 140px; }
  .st-cta { padding: 26px 22px; }
  .st-mock-body { grid-template-columns: 1fr; }
  .st-mock-page { display: none; }
  .st-flip { min-height: 260px; }
  .st-fc-stats { grid-template-columns: repeat(3, 1fr); }
  .st-mastery { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .st-tabs button > svg { display: none; }   /* libellés complets sur petit écran */
  .st-tabs button { font-size: 13px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-face { transition: none; }
  .st-mock-page i.hl, .st-progress-steps li.is-active svg, .st-spinner svg, .st-skel i { animation: none; }
}

/* ------------------------------------------------------------ Synthèse premium (PDF) */
.st-synth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px 28px; padding: 22px 24px; margin-bottom: 16px; border-top: 3px solid var(--crimson); }
.st-synth[hidden] { display: none; }
.st-synth-intro h2 { font-size: 20px; font-weight: 800; margin: 8px 0 6px; }
.st-synth-intro p { color: var(--slate); font-size: 14px; }
.st-synth-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--charcoal, #2c2f37); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.st-synth-badge svg { width: 13px; height: 13px; color: var(--coral, #f3697e); }
.st-synth-form { display: grid; gap: 12px; }
.st-synth-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.st-synth-levels legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.st-synth-level { position: relative; cursor: pointer; }
.st-synth-level input { position: absolute; opacity: 0; }
.st-synth-level span { display: grid; gap: 3px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.st-synth-level b { font-size: 14px; color: var(--ink); }
.st-synth-level small { font-size: 12px; color: var(--slate); line-height: 1.35; }
.st-synth-level input:checked + span { border-color: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-50); }
.st-synth-level input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: 2px; }
.st-synth-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-synth-actions .muted { font-size: 12.5px; flex: 1 1 220px; }
.st-synth-list { grid-column: 1 / -1; display: grid; gap: 8px; }
.st-synth-list:empty { display: none; }
.st-synth-list h3 { font-size: 14px; font-weight: 800; margin: 4px 0 2px; }
.st-synth-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--surface); }
.st-synth-item > small { grid-column: 1; }
.st-synth-meta { display: grid; gap: 2px; min-width: 0; }
.st-synth-meta b { font-size: 14px; color: var(--ink); }
.st-synth-meta small { font-size: 12px; color: var(--slate); overflow-wrap: anywhere; }
.st-synth-buttons { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.st-synth-progress { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--crimson-50); overflow: hidden; }
.st-synth-progress span { display: block; height: 100%; background: var(--crimson); border-radius: inherit; transition: width .6s var(--ease, ease); }
.st-synth-error { color: var(--danger, #c0203a); font-size: 12.5px; }
@media (max-width: 860px) {
  .st-synth { grid-template-columns: 1fr; padding: 18px 16px; }
  .st-synth-levels { grid-template-columns: 1fr; }
  .st-synth-item { grid-template-columns: 1fr; }
  .st-synth-buttons { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
[data-kit][aria-busy="true"], .st-hub-kit[aria-busy="true"] { opacity: .65; cursor: progress; }
