/* Lexra Code: the Explain pill and the card. Every rule is scoped to .lxc-*
   so the same file can style the card inside the Chrome extension's shadow
   root. Shared with the Chrome extension (as card.css): edit it here, then run
   `node scripts/sync-lexra-chrome.mjs`. */
.lxc-pill,.lxc-layer,.lxc-card{--lxc-bg:#171a22;--lxc-bg2:#12141b;--lxc-ink:#e6eaf2;--lxc-muted:#8f98aa;--lxc-line:#2a303c;--lxc-accent:#5eead4;--lxc-on:#062019;--lxc-code:#0b0d12;--lxc-warn:#ffd479;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.lxc-pill{position:absolute;z-index:2147483000;display:inline-flex;align-items:center;gap:7px;padding:5px 12px 5px 6px;border:1px solid var(--lxc-line);border-radius:999px;background:#0f1117;color:var(--lxc-ink);font:600 13px/1 Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.35)}
.lxc-pill img{width:18px;height:18px;border-radius:5px;background:#fdfcfa}
.lxc-pill:hover{border-color:var(--lxc-accent)}
.lxc-pill:focus-visible{outline:2px solid var(--lxc-accent);outline-offset:2px}
.lxc-pill[hidden]{display:none!important}
.lxc-layer{position:absolute;z-index:2147483001;width:420px;max-width:calc(100vw - 24px)}
.lxc-layer.lxc-sheet{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;max-height:78vh;overflow:auto;padding:0}
.lxc-sheet .lxc-card{border-radius:18px 18px 0 0;max-height:none;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
.lxc-card{box-sizing:border-box;width:100%;max-height:70vh;overflow:auto;background:var(--lxc-bg);color:var(--lxc-ink);border:1px solid var(--lxc-line);border-radius:16px;box-shadow:0 26px 60px rgba(0,0,0,.55);padding:16px 16px 12px;font-size:14px;line-height:1.5;text-align:left}
.lxc-card *{box-sizing:border-box}
/* Learners need to see the characters: no joined => or === glyphs, in code or in notes. */
.lxc-card,.lxc-card *,.lxc-pill{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}
.lxc-card:focus{outline:none}.lxc-card:focus-visible{outline:2px solid var(--lxc-accent);outline-offset:2px}
.lxc-card code,.lxc-card pre{font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}
.lxc-head{display:flex;align-items:flex-start;gap:10px}
.lxc-title{margin:0;font:700 21px/1.25 "JetBrains Mono",ui-monospace,monospace;color:var(--lxc-ink);word-break:break-word;font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}
.lxc-acts{margin-left:auto;display:flex;gap:6px;flex:none}
.lxc-act{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--lxc-line);border-radius:9px;background:var(--lxc-bg2);color:var(--lxc-muted);cursor:pointer;padding:0}
.lxc-act:hover{color:var(--lxc-ink);border-color:var(--lxc-accent)}
.lxc-act.on{color:#f4547f;border-color:rgba(244,84,127,.5)}
.lxc-act.on .lxc-ic{fill:currentColor}
.lxc-act:focus-visible,.lxc-opt:focus-visible,.lxc-learn:focus-visible{outline:2px solid var(--lxc-accent);outline-offset:2px}
.lxc-ic{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lxc-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 10px}
.lxc-chip{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;border:1px solid var(--lxc-line);background:var(--lxc-bg2);color:var(--lxc-muted);font:600 12px/1.3 Inter,system-ui,sans-serif}
.lxc-chip.lxc-lang{color:var(--lxc-accent);border-color:rgba(94,234,212,.4);background:rgba(94,234,212,.12)}
.lxc-chip.lxc-warn{color:var(--lxc-warn);border-color:rgba(255,212,121,.4)}
.lxc-meaning{margin:0 0 12px;font-size:15px;color:var(--lxc-ink)}
.lxc-lbl{display:block;margin:0 0 6px;font:700 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--lxc-muted)}
.lxc-here{background:var(--lxc-bg2);border:1px solid var(--lxc-line);border-radius:12px;padding:10px 12px;margin:0 0 12px}
.lxc-facts{display:grid;grid-template-columns:minmax(64px,auto) 1fr;gap:5px 12px;margin:0}
.lxc-facts dt{font:500 13px/1.45 "JetBrains Mono",ui-monospace,monospace;color:var(--lxc-accent);word-break:break-word;font-variant-ligatures:none}
.lxc-facts dd{margin:0;color:#cdd3de;font-size:13.5px}
.lxc-sec{margin:0 0 12px}
.lxc-snip{margin:0;background:var(--lxc-code);border:1px solid var(--lxc-line);border-radius:10px;padding:9px 12px;font-size:13px;line-height:1.65;color:#cdd3de;white-space:pre-wrap;word-break:break-word}
.lxc-note{margin:6px 0 0;color:var(--lxc-muted);font-size:12.5px}
.lxc-opts{display:flex;flex-wrap:wrap;gap:8px}
.lxc-opt{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:7px 11px;border:1px solid var(--lxc-line);border-radius:11px;background:var(--lxc-bg2);color:var(--lxc-ink);font:inherit;text-align:left;max-width:100%}
button.lxc-opt{cursor:pointer}
button.lxc-opt:hover{border-color:var(--lxc-accent)}
.lxc-opt code{font-size:13px;color:var(--lxc-ink)}
.lxc-opt span{font-size:12px;color:var(--lxc-muted)}
.lxc-learn{display:flex;align-items:center;gap:10px;margin:2px 0 4px;padding:10px 12px;border-radius:11px;background:var(--lxc-accent);color:var(--lxc-on);font-weight:700;font-size:13.5px;text-decoration:none}
.lxc-learn-r{margin-left:auto;font-weight:600;font-size:12.5px;opacity:.85;text-align:right}
.lxc-learn .lxc-ic{width:15px;height:15px;flex:none}
.lxc-none{margin:4px 0;color:var(--lxc-muted);font-size:13px}
.lxc-parts,.lxc-lines{margin:10px 0 12px;padding:0;list-style:none;counter-reset:lxc;display:grid;gap:7px}
.lxc-parts li{counter-increment:lxc;display:grid;grid-template-columns:24px minmax(0,auto) 1fr;gap:10px;align-items:baseline;padding:8px 10px;border:1px solid var(--lxc-line);border-radius:10px;background:var(--lxc-bg2)}
.lxc-parts li::before{content:counter(lxc);width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--c,var(--lxc-accent));color:var(--lxc-on);font:700 11px/1 "JetBrains Mono",monospace;align-self:center}
.lxc-parts li:nth-child(6n+2){--c:#82aaff}.lxc-parts li:nth-child(6n+3){--c:#c792ea}.lxc-parts li:nth-child(6n+4){--c:#ffd479}.lxc-parts li:nth-child(6n+5){--c:#f78c6c}.lxc-parts li:nth-child(6n+6){--c:#f4547f}
.lxc-parts code{font-size:12.5px;color:var(--lxc-ink);word-break:break-word}
.lxc-parts span{font-size:13px;color:#cdd3de}
.lxc-lines li{padding:8px 10px;border:1px solid var(--lxc-line);border-radius:10px;background:var(--lxc-bg2)}
.lxc-lines code{display:block;font-size:12.5px;color:var(--lxc-muted);white-space:pre-wrap;word-break:break-word}
.lxc-lines .lxc-sentence{margin:4px 0 0}
.lxc-read{margin:0 0 12px;padding:10px 12px;border-radius:11px;background:rgba(94,234,212,.08);border:1px solid rgba(94,234,212,.3)}
.lxc-read .lxc-lbl{color:var(--lxc-accent)}
.lxc-sentence{margin:0;font-size:14px;color:var(--lxc-ink)}
.lxc-sentence code{font-size:12.5px;padding:1px 5px;border-radius:5px;background:var(--lxc-code);color:var(--lxc-accent)}
.lxc-foot{margin-top:8px;padding-top:8px;border-top:1px solid var(--lxc-line);color:var(--lxc-muted);font-size:11.5px}
@media (prefers-reduced-motion:no-preference){.lxc-layer{animation:lxc-in .14s ease-out}}
@keyframes lxc-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
