/* Xiaomo — composants. Dépend de tokens.css. Préfixe x- */

/* ---------- base */
.x-app { background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: var(--fs-16); line-height: var(--lh-text); -webkit-font-smoothing: antialiased; }
.x-display { font-family: var(--font-display); font-weight: 500; line-height: var(--lh-tight); text-wrap: balance; }
.x-zh { font-family: var(--font-zh); }
.x-calli { font-family: var(--font-calli); }
.x-label { font-size: var(--fs-12); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.x-muted { color: var(--ink-2); }
.x-num { font-variant-numeric: tabular-nums; }
.x-hanzi { font-family: var(--font-zh); line-height: 1; color: var(--ink); }
.x-hanzi--s { font-size: var(--hz-s); } .x-hanzi--m { font-size: var(--hz-m); } .x-hanzi--l { font-size: var(--hz-l); } .x-hanzi--xl { font-size: var(--hz-xl); }
.x-pinyin { color: var(--ink-2); font-size: var(--fs-18); letter-spacing: .02em; }
[hidden] { display: none !important; }

/* ---------- boutons */
.x-btn { appearance: none; border: 1.5px solid transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: var(--fs-15);
  min-height: var(--tap); padding: 0 var(--s-5); border-radius: var(--r-m); display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  background: var(--seal); color: var(--on-seal); transition: transform var(--d-instant) var(--e-standard), background var(--d-quick), box-shadow var(--d-quick), opacity var(--d-quick); user-select: none; -webkit-tap-highlight-color: transparent; }
.x-btn:hover { background: var(--seal-ink); }
.x-btn:active, .x-btn.is-pressed { transform: scale(.97); }
.x-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.x-btn:disabled { opacity: .45; cursor: default; transform: none; }
.x-btn--secondary { background: transparent; color: var(--seal); border-color: var(--seal); }
.x-btn--secondary:hover { background: var(--seal-soft); }
.x-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.x-btn--ghost:hover { background: var(--surface-2); }
.x-btn--quiet { background: transparent; color: var(--ink-2); padding: 0 var(--s-3); }
.x-btn--quiet:hover { color: var(--ink); background: var(--surface-2); }
.x-btn--block { width: 100%; }
.x-btn--lg { min-height: 56px; font-size: var(--fs-16); border-radius: var(--r-l); }
.x-btn--sm { min-height: 36px; font-size: var(--fs-13); padding: 0 var(--s-3); border-radius: var(--r-s); }
.x-btn--icon { width: var(--tap); padding: 0; border-radius: var(--r-pill); }
.x-btn .x-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: x-spin .8s linear infinite; }
@keyframes x-spin { to { transform: rotate(360deg); } }

/* ---------- tuiles de réponse */
.x-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.x-tiles--col { grid-template-columns: 1fr; }
.x-tile { appearance: none; font: inherit; cursor: pointer; min-height: 60px; padding: var(--s-3) var(--s-4); border-radius: var(--r-m); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 500; font-size: var(--fs-16); text-align: center; display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  transition: transform var(--d-instant) var(--e-standard), border-color var(--d-quick), background var(--d-quick), color var(--d-quick); -webkit-tap-highlight-color: transparent; }
.x-tile:active { transform: scale(.97); }
.x-tile:focus-visible { outline: none; box-shadow: var(--focus); }
.x-tile.is-selected { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.x-tile.is-correct { border-color: var(--seal); background: var(--seal-soft); color: var(--seal); animation: x-pop var(--d-move) var(--e-pop); }
.x-tile.is-wrong { border-color: var(--wrong); background: var(--wrong-soft); color: var(--wrong); animation: x-shake var(--d-move) var(--e-standard); }
.x-tile.is-dim { opacity: .45; }
.x-tile .x-zh { font-size: var(--fs-22); }
.x-tile--pict { padding: var(--s-3); }
.x-pictcard { display: grid; place-items: center; }
.x-pict { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
@keyframes x-pop { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes x-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---------- cartes */
.x-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s-4) var(--s-5); }
.x-card--lift { box-shadow: var(--shadow); border-color: transparent; }
.x-card--hanzi { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-6) var(--s-5); text-align: center; }
.x-card--hanzi .x-sens { font-family: var(--font-display); font-size: var(--fs-22); }
.x-card .x-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

/* ---------- jauges */
.x-bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.x-bar > i { display: block; height: 100%; width: 0; background: var(--seal); border-radius: var(--r-pill); transition: width var(--d-move) var(--e-out); }
.x-bar--thin { height: 5px; }
.x-steps { display: flex; gap: var(--s-1); }
.x-steps > i { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--surface-2); }
.x-steps > i.is-done { background: var(--seal); }
.x-steps > i.is-now { background: var(--ink); }

/* ---------- série */
.x-streak { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-14); }
.x-streak .x-flame { width: 24px; height: 24px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--seal); position: relative; transform-origin: 50% 90%; animation: x-flame 2.4s ease-in-out infinite; }
.x-streak .x-flame::after { content: ""; position: absolute; left: 8px; top: 10px; width: 8px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--on-seal); opacity: .9; }
.x-streak .x-shield { font-size: var(--fs-12); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px 8px; }
@keyframes x-flame { 0%,100% { transform: scaleY(1) rotate(0); } 50% { transform: scaleY(1.06) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .x-streak .x-flame { animation: none; } }

/* ---------- pastilles, badges, cachet */
.x-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--seal-soft); color: var(--seal); }
.x-pill--ink { background: var(--surface-2); color: var(--ink-2); }
.x-badge { width: 44px; height: 44px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-zh); font-size: var(--fs-18); color: var(--seal); }
.x-badge.is-locked { color: var(--ink-3); border-style: dashed; }
.x-seal { width: 56px; height: 56px; border-radius: 10px; background: var(--seal); color: var(--on-seal); display: grid; place-items: center; font-family: var(--font-zh); font-size: 26px; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px rgba(255,253,249,.55), inset 0 0 0 4px var(--seal); }
.x-seal.is-stamping { animation: x-stamp var(--d-slow) var(--e-out); }
@keyframes x-stamp { 0% { transform: rotate(-14deg) scale(1.8); opacity: 0; } 55% { transform: rotate(-6deg) scale(.94); opacity: 1; } 75% { transform: rotate(-6deg) scale(1.03); } 100% { transform: rotate(-6deg) scale(1); } }
.x-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-zh); font-size: var(--fs-14); background: var(--seal-soft); color: var(--seal); flex: none; }
.x-dot.is-done { background: var(--seal); color: var(--on-seal); }

/* ---------- liste : menu du jour */
.x-list { display: grid; gap: var(--s-2); }
.x-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); min-height: var(--tap); text-decoration: none; color: inherit; transition: transform var(--d-instant) var(--e-standard), background var(--d-quick); }
.x-item:active { transform: scale(.985); }
.x-item b { font-weight: 600; display: block; font-size: var(--fs-15); }
.x-item small { color: var(--ink-2); font-size: var(--fs-13); display: block; }
.x-item .x-meta { color: var(--ink-2); font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.x-item.is-done b { color: var(--ink-2); }

/* ---------- champs, bascule, onglets */
.x-field { display: grid; gap: 6px; }
.x-field label { font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); }
.x-input { font: inherit; font-size: var(--fs-16); min-height: var(--tap); padding: 0 var(--s-4); border: 1.5px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); color: var(--ink); width: 100%; transition: border-color var(--d-quick), box-shadow var(--d-quick); }
.x-input:focus { outline: none; border-color: var(--ink); }
.x-input:focus-visible { box-shadow: var(--focus); }
.x-input--zh { font-family: var(--font-zh); font-size: var(--fs-22); text-align: center; }
.x-toggle { appearance: none; width: 52px; height: 30px; border-radius: var(--r-pill); background: var(--line-2); position: relative; cursor: pointer; transition: background var(--d-quick); flex: none; }
.x-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--d-quick) var(--e-out); }
.x-toggle:checked { background: var(--seal); }
.x-toggle:checked::after { transform: translateX(22px); }
.x-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.x-tabs { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.x-tabs button { appearance: none; border: 0; font: inherit; font-weight: 600; font-size: var(--fs-14); padding: 8px 14px; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); cursor: pointer; transition: background var(--d-quick), color var(--d-quick); }
.x-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.x-tabs button:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- en-tête et barre du bas (téléphone) */
.x-topbar { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; gap: var(--s-2); min-height: 56px; padding: 0 var(--s-2); }
.x-topbar .x-title { text-align: center; font-weight: 600; font-size: var(--fs-15); }
.x-topbar .x-bar { grid-column: 1 / -1; margin: 0 var(--s-2) var(--s-2); }
.x-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)); }
.x-tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--ink-2); font-size: 11px; font-weight: 600; padding: 4px 0; min-height: var(--tap); }
.x-tabbar a .x-ico { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid currentColor; display: grid; place-items: center; font-family: var(--font-zh); font-size: 13px; }
.x-tabbar a.is-active { color: var(--seal); }
.x-tabbar a.is-active .x-ico { background: var(--seal); color: var(--on-seal); border-color: var(--seal); }

/* ---------- avatar */
.x-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--font-display); font-size: var(--fs-18); flex: none; }
.x-avatar--seal { background: var(--seal); color: var(--on-seal); }
.x-avatar--lg { width: 64px; height: 64px; font-size: var(--fs-28); }

/* ---------- jauge de ton */
.x-tone { display: grid; gap: var(--s-2); }
.x-tone svg { width: 100%; height: auto; display: block; }
.x-tone .x-legend { display: flex; justify-content: space-between; font-size: var(--fs-12); color: var(--ink-2); }

/* ---------- clavier pinyin (coque) */
.x-kbd { display: grid; gap: 6px; background: var(--surface-2); padding: var(--s-2); border-radius: var(--r-l); }
.x-kbd .x-krow { display: flex; gap: 5px; justify-content: center; }
.x-kbd .x-key { flex: 1 1 0; max-width: 40px; min-height: 42px; border-radius: var(--r-s); background: var(--surface); border: 0; font: inherit; font-size: var(--fs-16); color: var(--ink); box-shadow: 0 1px 0 var(--line-2); cursor: pointer; }
.x-kbd .x-key:active { transform: translateY(1px); box-shadow: none; }
.x-kbd .x-key.is-lit { background: var(--seal); color: var(--on-seal); transition: background .15s; }
.x-kbd .x-key--wide { max-width: 64px; font-size: var(--fs-13); color: var(--ink-2); }
.x-kbd .x-key--space { max-width: 160px; }
.x-kbd .x-tones .x-key { max-width: 56px; font-family: var(--font-zh); color: var(--seal); font-weight: 600; }

/* ---------- zone de tracé */
.x-trace { aspect-ratio: 1; width: 100%; max-width: 320px; margin: 0 auto; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-l); position: relative; overflow: hidden; }
.x-trace::before, .x-trace::after { content: ""; position: absolute; background: var(--line); }
.x-trace::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.x-trace::after { top: 50%; left: 0; right: 0; height: 1px; }
.x-trace .x-diag { position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)), linear-gradient(to bottom left, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); }
.x-trace .x-ghost { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-zh); font-size: 200px; line-height: 1; color: var(--ink); opacity: .08; }
.x-trace .x-count { position: absolute; right: 10px; top: 8px; font-size: var(--fs-12); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- toast, modale, feuille */
.x-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-14); box-shadow: var(--shadow-lift); transition: transform var(--d-move) var(--e-out), opacity var(--d-move); pointer-events: none; z-index: 50; max-width: calc(100vw - 32px); }
.x-toast.is-on { transform: translateX(-50%) translateY(0); opacity: 1; }
.x-scrim { position: fixed; inset: 0; background: rgba(28,26,23,.45); opacity: 0; transition: opacity var(--d-move); pointer-events: none; z-index: 40; }
.x-scrim.is-on { opacity: 1; pointer-events: auto; }
.x-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s-4) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform var(--d-move) var(--e-out); z-index: 45; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-lift); }
.x-sheet.is-on { transform: translateY(0); }
.x-sheet .x-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto var(--s-4); }

/* ---------- bilan, XP, coffre */
.x-bilan { display: grid; gap: var(--s-4); text-align: center; }
.x-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.x-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-3) var(--s-2); }
.x-stat .x-n { font-family: var(--font-display); font-size: var(--fs-28); line-height: 1; font-variant-numeric: tabular-nums; }
.x-stat .x-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.x-xp { position: absolute; font-family: var(--font-display); font-weight: 600; color: var(--seal); font-size: var(--fs-18); pointer-events: none; animation: x-xp var(--d-slow) var(--e-out) forwards; }
@keyframes x-xp { 0% { transform: translateY(0) scale(.8); opacity: 0; } 20% { opacity: 1; transform: translateY(-8px) scale(1.1); } 100% { transform: translateY(-36px) scale(1); opacity: 0; } }
.x-chest { width: 120px; height: 100px; margin: 0 auto; position: relative; cursor: pointer; }
.x-chest .x-lid, .x-chest .x-box { position: absolute; left: 10px; right: 10px; background: var(--ink); border-radius: 14px 14px 6px 6px; }
.x-chest .x-box { top: 42px; bottom: 0; border-radius: 6px 6px 14px 14px; }
.x-chest .x-box::after { content: ""; position: absolute; left: 50%; top: 4px; width: 16px; height: 18px; margin-left: -8px; background: var(--seal); border-radius: 4px; }
.x-chest .x-lid { top: 14px; height: 36px; transform-origin: 50% 100%; transition: transform var(--d-slow) var(--e-pop); border-bottom: 3px solid var(--paper); box-sizing: border-box; }
.x-chest .x-glow { position: absolute; left: 30px; right: 30px; top: 20px; height: 30px; border-radius: 50%; background: var(--seal); opacity: 0; filter: blur(10px); transition: opacity var(--d-slow); }
.x-chest.is-open .x-lid { transform: rotateX(-110deg) translateY(-6px); }
.x-chest.is-open .x-glow { opacity: .7; }
.x-chest .x-drop { position: absolute; left: 50%; top: 30px; width: 34px; height: 34px; margin-left: -17px; border-radius: 10px; background: var(--seal); color: var(--on-seal); display: grid; place-items: center; font-family: var(--font-zh); font-size: 18px; opacity: 0; transform: scale(.4); transition: transform var(--d-slow) var(--e-pop), opacity var(--d-quick); }
.x-chest.is-open .x-drop { opacity: 1; transform: translateY(-34px) scale(1); }

/* ---------- utilitaires de mise en page */
.x-stack { display: grid; gap: var(--s-3); }
.x-hstack { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.x-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

/* ---------- accueil enfant : mission du jour, pas du jour, bandeau, grille de tuiles-icônes */
.x-mission { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; padding: var(--s-5); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform var(--d-instant) var(--e-standard); }
.x-mission:active { transform: scale(.985); }
.x-mission .x-seal { width: 76px; height: 76px; font-size: 36px; border-radius: 14px; }
.x-mission.is-done .x-seal { background: var(--ink); color: var(--paper); box-shadow: none; transform: none; }
.x-mission .x-title { font-family: var(--font-display); font-size: var(--fs-28); line-height: 1.05; margin: 0; text-wrap: balance; }
.x-mission .x-meta-row { display: flex; gap: var(--s-2); margin-top: var(--s-3); flex-wrap: wrap; align-items: center; }
.x-path { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: var(--s-3) var(--s-1); justify-items: center; }
.x-path a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink-2); font-size: 11px; font-weight: 600; text-align: center; min-width: 0; max-width: 100%; }
.x-path a > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.x-path .x-node { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-zh); font-size: 19px; background: var(--surface); border: 2px solid var(--line-2); color: var(--ink-2); transition: transform var(--d-instant) var(--e-standard); }
.x-path a:active .x-node { transform: scale(.94); }
.x-path a.is-done .x-node { background: var(--seal); border-color: var(--seal); color: var(--on-seal); font-family: var(--font-ui); font-weight: 700; }
.x-path a.is-done { color: var(--seal); }
.x-path a.is-now .x-node { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.x-path a.is-now { color: var(--ink); }
.x-path a.is-off { opacity: .45; }
.x-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.x-strip > a, .x-strip > div { display: grid; align-content: start; gap: 4px; padding: var(--s-3); border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; }
.x-strip .x-v { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: var(--fs-22); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 24px; }
.x-strip .x-k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-strip .x-bar { margin-top: 4px; }
.x-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.x-grid > a, .x-grid > div { display: grid; align-content: space-between; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 128px; position: relative; transition: transform var(--d-instant) var(--e-standard); }
.x-grid > a:active { transform: scale(.97); }
.x-grid .is-off, .x-grid > a.is-off { opacity: .5; }
.x-grid b { display: block; font-size: var(--fs-16); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.x-grid .x-corner { position: absolute; top: var(--s-3); right: var(--s-3); }
.x-grid .x-seal { width: 52px; height: 52px; font-size: 24px; }

/* ---------- espace parent : bloc repliable */
.x-fold { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.x-fold > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: var(--tap); font-weight: 600; font-size: var(--fs-15); }
.x-fold > summary::-webkit-details-marker { display: none; }
.x-fold > summary .x-meta { color: var(--ink-2); font-weight: 500; font-size: var(--fs-13); display: inline-flex; align-items: center; gap: 8px; }
.x-fold > summary .x-meta::after { content: "›"; display: inline-block; transition: transform var(--d-quick); }
.x-fold[open] > summary .x-meta::after { transform: rotate(90deg); }
.x-fold > .x-body { padding: 0 var(--s-4) var(--s-4); }
