/* Accueil : parcours en orbite (#s-parcours), cartes Coach avec aperçu d'interface, bento « Pour les écoles ».
   Chargé après v36.css ; logique dans js/landing-journey.js et js/landing-features.js. */

/* ---------- Parcours : orbite ---------- */
.jr { padding-block: 70px 50px; }
.jr-head { max-width: 40em; }
.jr-body { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.jr-orbit { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin-inline: auto; }
.jr-ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); pointer-events: none; }
.jr-ring.in { inset: 31%; border-style: dashed; border-color: color-mix(in oklab, var(--fg) 8%, transparent); }
.jr-core { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary)); display: grid; place-items: center; box-shadow: 0 0 60px -6px color-mix(in oklab, var(--primary) 55%, transparent); }
.jr-core i { width: 34px; height: 34px; border-radius: 50%; background: color-mix(in oklab, var(--surface) 82%, transparent); }
.jr-core::before, .jr-core::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); animation: jr-pulse 3s var(--ease) infinite; }
.jr-core::after { animation-delay: 1.5s; }
@keyframes jr-pulse { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }

.jr-node { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer;
  opacity: var(--depth, 1); z-index: 1; will-change: transform; -webkit-tap-highlight-color: transparent; }
.jr-dot { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid color-mix(in oklab, var(--fg) 22%, transparent);
  color: var(--muted); transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.jr-dot svg { width: 19px; height: 19px; }
.jr-lbl { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.jr-node:hover .jr-dot, .jr-node:focus-visible .jr-dot { border-color: var(--primary); color: var(--fg); }
.jr-node:focus-visible { outline: none; }
.jr-node:focus-visible .jr-dot { box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 35%, transparent); }
.jr-node.on { opacity: 1; z-index: 2; }
.jr-node.on .jr-dot { transform: scale(1.18); background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 7px color-mix(in oklab, var(--primary) 16%, transparent), 0 10px 30px -8px color-mix(in oklab, var(--primary) 70%, transparent); }
.jr-node.on .jr-lbl { color: var(--fg); }
.jr-node.rel .jr-dot { border-color: var(--accent); color: var(--fg); }
.jr-node.rel .jr-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); animation: jr-pulse 1.8s var(--ease) infinite; }

.jr-side { display: grid; gap: 16px; }
.jr-cards { display: grid; }
.jr-card { grid-area: 1 / 1; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.4s; }
.jr-card.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.jr-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jr-phase { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; padding: 4px 9px; border-radius: 999px;
  color: var(--primary); background: color-mix(in oklab, var(--primary) 12%, transparent); border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent); }
.jr-when { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.jr-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -0.03em; }
.jr-card p { color: var(--muted); font-size: 15px; }
.jr-prog { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.jr-prog b { font-weight: 600; color: var(--fg); }
.jr-prog i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)) 0 0 / var(--v) 100% no-repeat, var(--line); }
.jr-rel { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.jr-rel > span { font-size: 12.5px; color: var(--muted); }
.jr-rel > div { display: flex; flex-wrap: wrap; gap: 6px; }
.jr-rel button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; transition: border-color 0.2s; }
.jr-rel button svg { width: 12px; height: 12px; color: var(--muted); }
.jr-rel button:hover, .jr-rel button:focus-visible { border-color: var(--accent); outline: none; }
.jr-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.jr-count { font-size: 12.5px; color: var(--muted); min-width: 64px; text-align: center; }

/* ---------- Coach : cartes avec aperçu d'interface ---------- */
.tools { align-items: stretch; }
.tool { position: relative; overflow: hidden; padding: 26px 26px 0; grid-template-rows: auto auto 1fr auto; }
.tool > p { max-width: 24em; }
.tool .ic { background: none; border: 1px solid var(--line); }
.tool .td { margin-top: 18px; margin-bottom: -1px; font-size: 13px; transition: transform 0.5s var(--ease); }
.tool:hover .td { transform: translateY(-6px); }
.td { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: 14px 14px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -10px 30px -22px rgba(16, 44, 64, 0.5); min-height: 132px; align-content: start; }
.td b { font-weight: 600; font-size: 13.5px; }
.td-sub, .td-foot { color: var(--muted); font-size: 12.5px; }
.td-q { display: flex; gap: 6px; margin-block: 6px 2px; }
.td-q span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-family: var(--font-mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.td-q span svg { width: 13px; height: 13px; }
.td-q .ok { background: color-mix(in oklab, var(--good) 14%, var(--surface)); border-color: color-mix(in oklab, var(--good) 35%, transparent); color: var(--good); }
.td-q .cur { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 14%, transparent); }
.td-av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--primary); color: var(--primary-ink); font-size: 9.5px; font-weight: 600; }
.sk { display: block; height: 7px; border-radius: 4px; background: color-mix(in oklab, var(--fg) 9%, transparent); width: 92%; }
.sk.s2 { width: 70%; } .sk.s3 { width: 55%; }
.sk.hl { background: color-mix(in oklab, var(--accent) 45%, transparent); width: 80%; }
.td-cv { padding: 16px 0 0 16px; background: none; border: 0; box-shadow: none; display: block; }
.td-note { position: relative; z-index: 1; width: 72%; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px 8px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.td-note em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.td-note .sk { grid-column: 1 / -1; }
.td-tag { grid-column: 1 / -1; justify-self: start; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); }
.td-sheet { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; display: grid; gap: 9px; align-content: start; padding: 18px 14px; border-radius: 14px 0 0 0; background: var(--surface-2); border: 1px solid var(--line); border-width: 1px 0 0 1px; }
.td-spark { color: var(--accent); }
.td-spark svg { width: 16px; height: 16px; }
.td-lt p { font-size: 13.5px; line-height: 1.45; color: var(--fg); }
.td-input { margin: 6px -8px 0; padding: 12px; border-radius: 12px 12px 0 0; background: var(--surface-2); display: grid; gap: 10px; color: var(--muted); }
.td-input > div { display: flex; align-items: center; gap: 6px; }
.td-b, .td-send { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.td-b svg, .td-send svg { width: 14px; height: 14px; }
.td-send { margin-left: auto; background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Pour les écoles : bento ---------- */
.sch-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bx { grid-column: span 2; padding: 26px; display: grid; gap: 8px; align-content: start; overflow: hidden; }
.bx h4 { font-size: 16.5px; letter-spacing: -0.02em; }
.bx p { color: var(--muted); font-size: 14px; }
.bx-c, .bx-100 { text-align: center; justify-items: center; }
.bx-big { position: relative; display: grid; place-items: center; width: min(220px, 100%); height: 112px; margin-bottom: 6px; }
.bx-big svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: color-mix(in oklab, var(--fg) 22%, transparent); stroke-width: 4; stroke-linecap: round; }
.bx-big b { font-family: var(--font-display); font-size: 46px; font-weight: 760; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bx-seal { position: relative; width: 112px; height: 112px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line);
  box-shadow: 0 0 0 10px color-mix(in oklab, var(--fg) 3%, transparent), 0 0 0 11px var(--line); }
.bx-seal span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--primary); background: color-mix(in oklab, var(--primary) 10%, transparent); }
.bx-seal span svg { width: 26px; height: 26px; }
.bx-seal i { position: absolute; left: 16%; right: 16%; top: 50%; height: 2px; border-radius: 2px; background: var(--fg); opacity: 0.7; animation: bx-scan 3.2s ease-in-out infinite; }
@keyframes bx-scan { 0%, 100% { transform: translateY(-22px); } 50% { transform: translateY(22px); } }
.bx-chart { width: 100%; height: 112px; margin-bottom: 6px; display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.bx-chart > div { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); }
.bx-chart > div span { display: inline-flex; align-items: center; gap: 6px; }
.bx-chart > div svg { width: 13px; height: 13px; }
.bx-chart > div b { font-family: var(--font-mono); font-weight: 500; color: var(--fg); }
.bx-chart > svg { width: 100%; height: 100%; }
.bx-chart .l { fill: none; stroke: var(--primary); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.bx-chart .a { fill: color-mix(in oklab, var(--primary) 12%, transparent); }
.bx-wide { grid-column: span 3; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding-right: 0; }
.bx-txt { display: grid; gap: 8px; align-content: center; padding-block: 8px; }
.bx-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; color: var(--primary); border: 1px solid var(--line); box-shadow: 0 0 0 6px color-mix(in oklab, var(--fg) 3%, transparent); }
.bx-ic svg { width: 19px; height: 19px; }
.bx-nouv { position: absolute; top: 24px; left: 86px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--accent); }
.bx-new { position: relative; border-color: color-mix(in oklab, var(--primary) 30%, var(--line)); }
.bx-win { align-self: end; margin-bottom: -26px; border-radius: 14px 0 0 0; background: var(--surface-2); border: 1px solid var(--line); border-width: 1px 0 0 1px; padding-bottom: 14px; font-size: 12px; }
.bx-bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.bx-bar i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklab, var(--fg) 16%, transparent); }
.bx-bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 8px 12px 0; }
.bx-row .td-av { grid-row: span 2; background: color-mix(in oklab, var(--primary) 16%, var(--surface)); color: var(--primary); }
.bx-row b { font-weight: 600; }
.bx-row em { grid-column: 2; font-style: normal; color: var(--muted); font-size: 11px; }
.bx-st { grid-column: 3; grid-row: 1 / span 2; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.bx-st.cur { color: var(--primary); border-color: color-mix(in oklab, var(--primary) 35%, transparent); }
.bx-st.ok { color: var(--good); border-color: color-mix(in oklab, var(--good) 35%, transparent); background: color-mix(in oklab, var(--good) 10%, var(--surface)); }
/* Les deux cartes larges partagent une rangée : chaque colonne occupe toute la hauteur de la carte. */
.bx-wide { align-content: stretch; grid-template-rows: minmax(0, 1fr); }
.bx-line { position: relative; align-self: stretch; display: grid; align-content: space-evenly; gap: 14px; padding-block: 6px; }
.bx-line::before { content: ""; position: absolute; top: -26px; bottom: -26px; left: 50%; width: 1px; background: var(--line); }
.bx-line > div { position: relative; display: flex; align-items: center; gap: 8px; width: 50%; justify-content: flex-end; margin-left: 13px; }
.bx-line > div.r { flex-direction: row-reverse; justify-content: flex-end; margin-left: calc(50% - 13px); }
.bx-line span { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 11.5px; white-space: nowrap; box-shadow: 0 6px 16px -12px rgba(0,0,0,.35); }
.bx-line i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--primary); }
.bx-line i svg { width: 13px; height: 13px; }
.sch-pilot.wide { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 8px; align-items: center; }
.sch-pilot.wide > :not(.sch-ctas) { grid-column: 1; }
.sch-pilot.wide .sch-ctas { grid-column: 2; grid-row: 1 / span 3; flex-direction: row; margin: 0; }
.sch-pilot.wide .btn { width: auto; }

@media (max-width: 1020px) {
  .bx-wide { grid-template-columns: 1fr; grid-template-rows: none; padding-right: 26px; }
  .bx-win { margin-right: -26px; }
  .bx-line { padding-block: 0 4px; }
  .bx-line::before { display: none; }
}
@media (max-width: 900px) {
  .jr-body { grid-template-columns: 1fr; gap: 28px; }
  .sch-bento { grid-template-columns: 1fr 1fr; }
  .bx { grid-column: span 1; }
  .bx-c:nth-child(3), .bx-wide { grid-column: span 2; }
  .sch-pilot.wide { grid-template-columns: 1fr; }
  .sch-pilot.wide .sch-ctas { grid-column: 1; grid-row: auto; flex-direction: column; }
  .sch-pilot.wide .btn { width: 100%; }
}
@media (max-width: 640px) {
  .jr { padding-block: 50px 30px; }
  .jr-dot { width: 38px; height: 38px; }
  .jr-dot svg { width: 16px; height: 16px; }
  .jr-lbl { font-size: 10.5px; }
  .jr-node:not(.on) .jr-lbl { opacity: 0.85; }
  .jr-core { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .jr-core i { width: 26px; height: 26px; }
  .jr-card { padding: 20px; }
  .tool { padding: 22px 22px 0; }
  .sch-bento { grid-template-columns: 1fr; }
  .bx, .bx-c:nth-child(3), .bx-wide { grid-column: auto; }
  .bx-wide { padding-right: 22px; }
  .bx { padding: 22px; }
  .bx-win { margin-right: -22px; margin-bottom: -22px; }
}
/* ---------- Offres cachées : chiffre à mesurer, badge ---------- */
.tbd { display: inline-flex; align-items: center; padding: 0.1em 0.5em; border-radius: 0.4em; border: 1px dashed color-mix(in oklab, var(--accent) 70%, transparent);
  color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); font-family: var(--font-mono); font-size: 0.62em; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; vertical-align: middle; }
.why-stats .tbd { font-size: 0.4em; padding: 0.3em 0.7em; }
.hid-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; vertical-align: 2px;
  color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); }

/* ---------- Écoles : mention « sur devis » ---------- */
.sch-alt { font-size: 13px; color: var(--muted); text-align: center; }
.sch-alt a, .sch-alt button { color: var(--fg); font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--fg) 30%, transparent); background: none; border: 0; padding: 0; cursor: pointer; }
.sch-alt a:hover, .sch-alt button:hover { text-decoration-color: var(--accent); }

/* ---------- Coach : avatar à la place de l'orbe ---------- */
/* Grille : comme dans l'entretien, elle donne sa taille au corps de l'avatar (un <span>). */
.coach-l .coach-av { width: min(230px, 56vw); margin: 44px auto 40px; display: grid; place-items: center; }

@media (prefers-reduced-motion: reduce) {
  .jr-core::before, .jr-core::after, .jr-node.rel .jr-dot::after, .bx-seal i { animation: none; }
  .jr-card, .tool .td { transition: none; }
}

/* ---------- Pour les écoles : démo du tableau de bord (School dashboard) ---------- */
/* Bouton « Essayer la démo » sur la carte, puis fenêtre modale. */
.sch-anchor { scroll-margin-top: 96px; }
/* Même famille que les boutons pleins de l'accueil (« Prendre rendez-vous », « Commencer ») :
   aplat sombre, reflet intérieur, ombre portée en couches, flèche dans une pastille, balayage lumineux au survol. */
.bx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.bx-demo { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 18px;
  border: 0; border-radius: 12px; cursor: pointer; font: 600 14.5px/1 var(--font-body); letter-spacing: -0.01em; white-space: nowrap;
  color: var(--bg); background: linear-gradient(180deg, color-mix(in oklab, var(--fg) 88%, var(--bg)), var(--fg));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--bg) 22%, transparent), inset 0 0 0 1px color-mix(in oklab, var(--fg) 70%, var(--bg)),
    0 1px 2px rgba(6, 14, 20, .18), 0 10px 24px -12px rgba(6, 14, 20, .45);
  transition: transform .35s var(--spring, cubic-bezier(.2,.8,.2,1)), box-shadow .35s; }
.bx-demo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in oklab, var(--bg) 26%, transparent) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.bx-demo:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--bg) 22%, transparent), inset 0 0 0 1px color-mix(in oklab, var(--fg) 70%, var(--bg)),
    0 2px 4px rgba(6, 14, 20, .18), 0 16px 32px -14px rgba(6, 14, 20, .55); }
.bx-demo:hover::after { transform: translateX(120%); }
.bx-demo:active { transform: scale(.97); }
.bx-demo:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.bx-demo-go { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
  background: color-mix(in oklab, var(--bg) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bg) 12%, transparent); }
.bx-demo-go svg { width: 15px; height: 15px; transition: transform .35s var(--spring, cubic-bezier(.2,.8,.2,1)); }
.bx-demo:hover .bx-demo-go svg { transform: translateX(2px); }
.bx-demo-hint { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bx-demo-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--good, #1d8560); box-shadow: 0 0 0 3px color-mix(in oklab, var(--good, #1d8560) 18%, transparent); }
.bx-win[data-sd-open] { cursor: pointer; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.bx-new:hover .bx-win[data-sd-open] { transform: translate(-4px, -4px); }
html.sd-lock { overflow: hidden; }
.sd-modal { width: min(1280px, calc(100vw - 32px)); height: min(880px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface-2); color: var(--fg);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.55); display: none; flex-direction: column; }
.sd-modal[open] { display: flex; animation: sd-in .32s cubic-bezier(.2,.8,.2,1); }
.sd-modal::backdrop { background: color-mix(in oklab, #05080c 55%, transparent); backdrop-filter: blur(6px); animation: sd-fade .25s ease; }
.sd-modal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; }
.sd-modal-bar > i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklab, var(--fg) 16%, transparent); }
.sd-modal-bar span { margin: 0 auto 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-modal-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-size: 12.5px; text-decoration: none; }
.sd-modal-btn:hover { border-color: var(--primary); color: var(--primary); }
.sd-modal-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.sd-modal-x:hover { background: color-mix(in oklab, var(--fg) 8%, transparent); }
.sd-modal-x svg { width: 17px; height: 17px; }
.sd-modal iframe { flex: 1; width: 100%; border: 0; background: var(--surface-2); }
.sd-modal-note { padding: 9px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }
@keyframes sd-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes sd-fade { from { opacity: 0; } }
@media (max-width: 640px) {
  .sd-modal { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .sd-modal-note, .sd-modal-btn { display: none; }
  .bx-demo { flex: 1 1 100%; justify-content: space-between; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .bx-demo::after { display: none; } .sd-modal[open], .sd-modal::backdrop { animation: none; } }
