.styles-hero { padding-top:clamp(60px,9vh,112px); padding-bottom:32px; }
.styles-page :is(button,select,summary,a,[tabindex]) { scroll-margin-top:calc(var(--header-h) + 24px); scroll-margin-bottom:24px; }
.language-lenses { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; padding-bottom:44px; }
.language-lenses > div { display:flex; gap:14px; border-top:1px solid var(--line); padding-top:18px; }
.language-lenses > div > span { color:var(--ink-3); font:10px var(--font-mono); padding-top:3px; }
.language-lenses h2 { font-size:14px; letter-spacing:0; margin-bottom:7px; }
.language-lenses p { font-size:12px; line-height:1.7; color:var(--ink-2); }
.styles-layout { display:flex; flex-direction:column; gap:32px; padding-bottom:96px; }
.styles-selector { padding:22px; background:var(--surface); border:1px solid var(--line); border-radius:22px; }
.lang-switcher { display:grid; gap:12px; }
.lang-switcher-row { display:flex; align-items:center; gap:18px; }
.lang-switcher-row > p { width:80px; flex:none; font-size:11px; color:var(--ink-3); }
.lang-switcher-options { display:flex; flex-wrap:wrap; gap:7px; }
.lang-chip { padding:9px 14px; border:1px solid var(--line); border-radius:99px; background:var(--surface); color:var(--ink-2); font-size:12px; }
.lang-chip:hover { border-color:var(--line-strong); color:var(--ink); }
.lang-chip[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:#fff; }
.language-classification { margin-top:18px; font-size:11px; line-height:1.7; color:var(--ink-3); }
.language-bench-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.language-bench-heading h2 { font-size:18px; margin-top:8px; letter-spacing:-.02em; }
.language-suggestion { border:0; background:none; padding:8px 0; color:var(--accent-ink); font-size:11px; text-align:left; }
.language-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; position:sticky; top:calc(var(--header-h) + 8px); z-index:10; padding-block:12px; background:var(--bg); border-block:1px solid var(--line); }
.language-selects,.language-sync { display:flex; flex-wrap:wrap; gap:8px; }
.language-tools select { width:auto; max-width:100%; font-size:12px; }
.language-sync .preset-chip { font-size:12px; padding:9px 14px; }
.language-instruction { color:var(--ink-3); font-size:11px; margin:14px 0 20px; line-height:1.8; }
.language-scenes { display:grid; gap:24px; min-width:0; }
.language-scenes[data-compare="true"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.language-example { min-width:0; }
.language-scenes[data-compare="false"] .language-example { width:100%; max-width:760px; margin-inline:auto; }
.language-example-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 3px 16px; }
.lang-eyebrow { color:var(--ink-3); font:9px var(--font-mono); letter-spacing:.13em; line-height:1.7; }
.language-example-head h2 { font-size:22px; margin-top:5px; }
.language-example-type { font-size:10px; color:var(--ink-3); padding:5px 9px; border:1px solid var(--line); border-radius:99px; white-space:nowrap; }
.language-observe { display:flex; gap:12px; margin:16px 4px 0; color:var(--ink-2); font-size:12px; line-height:1.8; }
.language-observe > span { color:var(--accent-ink); flex:none; font-size:10px; padding-top:2px; }

/* The outer site stays quiet. Each embedded workspace has its own structure. */
.lang-demo { --ld-bg:#f5f5f7; --ld-surface:#fff; --ld-ink:#1d1d1f; --ld-muted:#646469; --ld-accent:#0066cc; --ld-on-accent:#fff; --ld-line:#d7d7dc; --ld-radius:24px; --ld-tint:#e6edf6; position:relative; border:1px solid var(--ld-line); border-radius:24px; overflow:hidden; background:var(--ld-bg); color:var(--ld-ink); font-size:13px; isolation:isolate; }
.ld-appbar { display:flex; justify-content:space-between; align-items:center; min-height:42px; gap:10px; padding:10px 20px; border-bottom:1px solid var(--ld-line); font-size:10px; }
.lang-demo-badge { font:9px var(--font-mono); color:var(--ld-muted); white-space:nowrap; }
.ld-workspace { position:relative; height:536px; overflow:hidden; }
.ld-overview { position:absolute; inset:0; padding:24px; overflow:auto; overscroll-behavior:auto; }
.ld-label { color:var(--ld-muted); font-size:10px; line-height:1.6; letter-spacing:.06em; }
.ld-project-title { font-size:clamp(30px,3vw,44px); line-height:1.12; letter-spacing:-.05em; margin:14px 0 20px; }
.ld-facts { display:flex; gap:24px; padding-block:16px; }
.ld-facts > div { flex:1; min-width:0; }
.ld-facts dt { font-size:10px; color:var(--ld-muted); margin-bottom:4px; }
.ld-facts dd { font-size:14px; font-weight:600; }
.ld-task-card { width:100%; display:flex; align-items:center; gap:12px; background:var(--ld-surface); color:var(--ld-ink); border:1px solid var(--ld-line); border-radius:var(--ld-radius); padding:0; text-align:left; overflow:hidden; position:relative; }
.ld-task-card:hover { outline:2px solid var(--ld-accent); outline-offset:3px; }
.ld-task-card:active { filter:brightness(.96); }
.ld-task-card strong { display:block; font-size:14px; line-height:1.5; }
.ld-task-card small { display:block; font-size:10px; line-height:1.5; color:var(--ld-muted); margin-top:4px; }
.ld-card-caption { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:15px 18px; }
.ld-card-caption > span:last-child { font-size:23px; }
.ld-art { display:block; position:relative; overflow:hidden; width:100%; height:142px; flex:none; background:#f3c595; }
.ld-art i { position:absolute; display:block; width:170px; height:170px; border-radius:50%; top:24px; left:calc(50% - 85px); background:linear-gradient(140deg,#f9d7ad,#be4b1c); box-shadow:0 12px 25px #70320e38; }
.ld-art i:nth-child(2) { width:126px; height:126px; top:46px; left:calc(50% - 63px); background:#ffddaf; }
.ld-art i:nth-child(3) { width:82px; height:82px; top:68px; left:calc(50% - 41px); background:linear-gradient(140deg,#e96e33,#a33912); }
.ld-task-rows { border-top:1px solid var(--ld-line); }
.ld-task-row { display:grid; grid-template-columns:22px 1fr 35px; gap:8px; align-items:center; padding:11px 0; border-bottom:1px solid var(--ld-line); font-size:11px; }
.ld-task-row > span:first-child,.ld-task-row > span:last-child { font:10px var(--font-mono); color:var(--ld-muted); }
.ld-task-row > span:last-child { text-align:right; }
.ld-task-detail { position:absolute; inset:16px; z-index:3; }
.ld-task-detail[inert] { pointer-events:none; }
.ld-panel-surface { position:absolute; inset:0; background:var(--ld-surface); border:1px solid var(--ld-line); border-radius:var(--ld-radius); transform-origin:top left; }
.ld-detail-content { position:relative; height:100%; overflow:auto; overscroll-behavior:auto; padding:22px; }
.ld-detail-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px; }
.ld-detail-copy h3 { font-size:26px; margin:8px 0 10px; letter-spacing:-.035em; }
.ld-detail-copy > p:last-child { font-size:12px; line-height:1.8; color:var(--ld-muted); }
.ld-detail-content .ld-facts { padding-block:18px; }
.ld-detail-content .ld-task-row { padding-block:10px; }
.ld-detail-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:16px; padding-bottom:3px; }
.ld-detail-hint { font-size:9px; color:var(--ld-muted); }
.ld-button { min-height:38px; border:1px solid var(--ld-line); border-radius:99px; padding:9px 15px; font-size:11px; font-weight:600; background:var(--ld-surface); color:var(--ld-ink); }
.ld-primary { display:inline-flex; align-items:center; justify-content:center; gap:10px; color:var(--ld-on-accent); background:var(--ld-accent); border-color:transparent; min-width:112px; }
.ld-action-icon { font-size:16px; line-height:1; }
.ld-quiet { padding:6px 11px; min-height:32px; font-weight:400; }
.ld-button:hover { filter:brightness(.94); }
.lang-demo :is(button):focus-visible { outline:3px solid var(--ld-accent); outline-offset:4px; }
.lang-demo .ld-primary:focus-visible { outline-offset:4px; }
.ld-button:disabled { cursor:wait; opacity:.8; }
.ld-feedback-box { margin-top:16px; padding:11px 12px; border-radius:8px; background:var(--ld-tint); border:1px solid transparent; }
.ld-task-feedback { font-size:11px; line-height:1.7; min-height:19px; }
.ld-task-feedback[data-state="error"] { font-weight:600; }
.lang-demo[data-state="error"] .ld-feedback-box { border-color:var(--ld-ink); }
.ld-context-note { margin-top:14px; color:var(--ld-muted); font-size:10px; line-height:1.7; }

/* Apple: opaque content, a separate floating functional layer. */
.lang-demo[data-lang="apple"] .ld-task-card { flex-direction:column; gap:0; border:0; box-shadow:0 5px 24px #27272b0c; }
.ld-apple-top { display:flex; align-items:center; justify-content:space-between; }
.ld-avatar { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:#e3e3e8; font-size:10px; }
.ld-floating-tools { position:absolute; bottom:20px; left:50%; translate:-50% 0; display:flex; gap:22px; white-space:nowrap; padding:13px 20px; border:1px solid #fff; background:#ffffffb8; border-radius:99px; box-shadow:0 5px 24px #30303b14; backdrop-filter:blur(18px); font-size:10px; }
.ld-floating-tools span:first-child { color:var(--ld-accent); font-weight:600; }
.ld-floating-tools button { border:0; background:none; padding:0; color:var(--ld-accent); font-size:11px; }
.lang-demo[data-lang="apple"] .ld-panel-surface { box-shadow:0 14px 40px #1d1d1f14; }

/* Material: navigation rail and tonal containment, baseline duration model. */
.lang-demo[data-lang="material"] { --ld-bg:#f7f2fa; --ld-surface:#eee6f4; --ld-line:#d8cfe1; --ld-ink:#211a2b; --ld-muted:#5b5265; --ld-accent:#6750a4; --ld-tint:#dfd0f5; --ld-radius:28px; }
.ld-material-shell { display:grid; grid-template-columns:46px minmax(0,1fr); gap:18px; height:100%; }
.ld-material-rail { display:flex; flex-direction:column; align-items:center; gap:22px; padding-top:8px; font-size:18px; }
.ld-material-rail span:first-child { border-radius:99px; background:#e0d3ed; padding:2px 12px; color:#4f378b; }
.ld-material-main h3 { font-size:27px; margin:14px 0 22px; }
.lang-demo[data-lang="material"] .ld-task-card { flex-direction:column; gap:0; border:0; background:#e6dcf0; }
.lang-demo[data-lang="material"] .ld-art { height:150px; background:#d8c8ed; }
.lang-demo[data-lang="material"] .ld-art i { border-radius:24px; background:#8066ac; box-shadow:none; transform:rotate(-12deg); }
.lang-demo[data-lang="material"] .ld-art i:nth-child(2) { background:#d4b8e8; transform:rotate(12deg); }
.lang-demo[data-lang="material"] .ld-art i:nth-child(3) { background:#583e7c; transform:none; }
.lang-demo[data-lang="material"] :is(.ld-task-card,.ld-primary)::after { content:""; position:absolute; inset:0; background:currentColor; opacity:0; pointer-events:none; }
.lang-demo[data-lang="material"] .ld-primary { position:relative; overflow:hidden; }
.lang-demo[data-lang="material"] :is(.ld-task-card,.ld-primary):active::after { opacity:.12; }

/* Expressive: contrasting scales and connected shapes, with spatial/effects split. */
.lang-demo[data-lang="expressive"] { --ld-bg:#f5edf8; --ld-surface:#fff6ff; --ld-line:#d9c9e3; --ld-ink:#2a153f; --ld-muted:#65506f; --ld-accent:#57318c; --ld-tint:#e3d5f5; --ld-radius:36px; }
.ld-expressive-top { display:flex; justify-content:space-between; align-items:center; }
.ld-flower { display:grid; place-items:center; width:56px; height:56px; background:#c8ef81; color:#284314; border-radius:24% 45% 24% 45%; font-size:44px; }
.lang-demo[data-lang="expressive"] .ld-project-title { font-size:48px; margin:10px 0 24px; }
.ld-expressive-group { display:grid; grid-template-columns:minmax(0,1fr) 90px; gap:4px; }
.lang-demo[data-lang="expressive"] .ld-task-card { border:0; padding:22px 16px; gap:14px; background:#dfcef3; border-radius:36px 12px 12px 36px; }
.ld-experiment-count { display:flex; flex-direction:column; align-items:center; justify-content:center; background:#e8c2d5; border-radius:12px 36px 36px 12px; }
.ld-experiment-count strong { font-size:34px; line-height:1.1; }
.ld-experiment-count span { font-size:10px; margin-top:5px; }
.ld-project-symbol { font-size:30px; flex:none; }
.lang-demo[data-lang="expressive"] .ld-primary { min-height:52px; min-width:155px; font-size:14px; border-radius:22px; transition:border-radius 220ms,background-color 180ms; }
.lang-demo[data-lang="expressive"][data-state="loading"] .ld-primary { border-radius:40px; }
.lang-demo[data-lang="expressive"][data-state="success"] .ld-primary { border-radius:12px 28px 28px 12px; }
.lang-demo[data-lang="expressive"] .ld-detail-copy h3 { font-size:32px; }
.lang-demo[data-lang="expressive"] .ld-feedback-box { border-radius:18px; }

/* Fluent: list-detail workflow, neutral surfaces and local emphasis. */
.lang-demo[data-lang="fluent"] { --ld-bg:#f4f5f7; --ld-surface:#fff; --ld-line:#d1d4db; --ld-ink:#242424; --ld-muted:#55585e; --ld-accent:#0f6cbd; --ld-tint:#e9f2fb; --ld-radius:6px; border-radius:12px; font-family:"Segoe UI",system-ui,sans-serif; }
.ld-office-title { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.ld-office-title h3 { font-size:24px; margin-top:5px; }
.ld-office-mark { background:#0f6cbd; color:#fff; display:grid; place-items:center; width:38px; height:38px; border-radius:8px; font-size:25px; }
.ld-office-layout { display:grid; grid-template-columns:30px minmax(0,1fr); gap:16px; }
.ld-office-nav { display:flex; flex-direction:column; gap:26px; color:#63666f; font-size:20px; }
.ld-office-list > .ld-label { margin-bottom:12px; }
.lang-demo[data-lang="fluent"] .ld-task-card { padding:18px 12px; background:#e7eff8; border-color:#98b8d8; border-left:3px solid var(--ld-accent); gap:10px; margin-bottom:22px; }
.lang-demo[data-lang="fluent"] .ld-project-symbol { font-size:22px; color:#0f6cbd; }
.ld-chevron { margin-left:auto; font-size:20px; }
.lang-demo[data-lang="fluent"] .ld-task-detail { inset:12px 12px 12px 26%; }
.lang-demo[data-lang="fluent"] .ld-panel-surface { box-shadow:-10px 0 30px #26394b1c; }
.lang-demo[data-lang="fluent"] .ld-button { border-radius:5px; }
.lang-demo[data-lang="fluent"] .ld-detail-content { padding:18px; }
.lang-demo[data-lang="fluent"] .ld-detail-top { gap:6px; }
.lang-demo[data-lang="fluent"] .ld-detail-top > .ld-label { font-size:8px; }

/* Carbon: aligned data columns and an inline vertical seam. */
.lang-demo[data-lang="carbon"] { --ld-bg:#f4f4f4; --ld-surface:#fff; --ld-line:#c6c6c6; --ld-ink:#161616; --ld-muted:#525252; --ld-accent:#0f62fe; --ld-tint:#edf5ff; --ld-radius:0px; border-radius:0; }
.lang-demo[data-lang="carbon"] .ld-appbar { background:#161616; color:#fff; border-color:#393939; }
.lang-demo[data-lang="carbon"] .lang-demo-badge { color:#c6c6c6; }
.lang-demo[data-lang="carbon"] .ld-overview { padding:24px 16px; }
.ld-data-heading h3 { font-size:26px; font-weight:400; margin:8px 0 26px; }
.ld-table-head,.lang-demo[data-lang="carbon"] .ld-task-card { display:grid; grid-template-columns:minmax(0,1fr) 44px 48px; gap:8px; align-items:center; }
.ld-table-head { background:#e0e0e0; padding:12px; font-size:10px; font-weight:600; }
.lang-demo[data-lang="carbon"] .ld-task-card { padding:16px 12px; border:0; border-bottom:1px solid var(--ld-line); font-size:10px; background:#e8e8e8; overflow:visible; }
.ld-project-cell { display:flex; align-items:center; gap:10px; min-width:0; }
.lang-demo[data-lang="carbon"] .ld-task-card strong { font-size:12px; }
.ld-project-cell .ld-chevron { margin:0; }
.ld-status-tag { background:#d0e2ff; color:#0043ce; padding:3px 7px; border-radius:99px; font-size:9px; }
.lang-demo[data-lang="carbon"] .ld-task-detail { inset:181px 16px 16px; }
.lang-demo[data-lang="carbon"] .ld-panel-surface { border:0; border-bottom:2px solid #0f62fe; }
.lang-demo[data-lang="carbon"] .ld-detail-content { padding:16px; }
.lang-demo[data-lang="carbon"] .ld-detail-top { margin-bottom:12px; }
.lang-demo[data-lang="carbon"] .ld-detail-copy h3 { font-size:22px; font-weight:400; }
.lang-demo[data-lang="carbon"] .ld-detail-content .ld-facts { display:none; }
.lang-demo[data-lang="carbon"] .ld-detail-content .ld-task-rows { margin-top:14px; }
.lang-demo[data-lang="carbon"] .ld-task-row { padding:9px 12px; }
.lang-demo[data-lang="carbon"] .ld-button { border-radius:0; font-weight:400; }
.lang-demo[data-lang="carbon"] .ld-primary { min-width:150px; justify-content:space-between; padding:13px 16px; }
.lang-demo[data-lang="carbon"] .ld-action-icon { order:1; }
.lang-demo[data-lang="carbon"] .ld-feedback-box { border-radius:0; border-left:3px solid #0f62fe; margin-top:12px; }
.lang-demo[data-lang="carbon"][data-state="error"] .ld-feedback-box { border-left-color:#da1e28; }

/* Swiss / editorial: the grid and type carry the composition. */
.lang-demo[data-lang="swiss"] { --ld-bg:#faf9f5; --ld-surface:#faf9f5; --ld-line:#252525; --ld-ink:#151515; --ld-muted:#535353; --ld-accent:#b51b16; --ld-tint:#efeee9; --ld-radius:0px; border-radius:0; }
.ld-editorial-top { display:flex; align-items:center; justify-content:space-between; border-bottom:2px solid #151515; padding-bottom:14px; }
.ld-editorial-top .ld-label { font:9px var(--font-mono); }
.ld-editorial-grid { display:grid; grid-template-columns:1fr 2fr; gap:14px; padding-block:26px; }
.ld-edition { color:#c12820; font-size:clamp(60px,6vw,96px); line-height:.85; letter-spacing:-.07em; }
.lang-demo[data-lang="swiss"] .ld-project-title { font-size:39px; margin:0 0 18px; }
.lang-demo[data-lang="swiss"] .ld-facts { gap:14px; border-top:1px solid #151515; }
.lang-demo[data-lang="swiss"] .ld-task-card { border:0; border-top:1px solid #151515; border-bottom:1px solid #151515; padding:15px 0; justify-content:space-between; font-size:12px; }
.lang-demo[data-lang="swiss"] .ld-task-card > span:last-child { color:#b51b16; font-size:26px; }
.lang-demo[data-lang="swiss"] .ld-task-row { padding:14px 0; }
.lang-demo[data-lang="swiss"] .ld-detail-copy h3 { font-size:38px; max-width:260px; }
.lang-demo[data-lang="swiss"] .ld-button { border-radius:0; }
.lang-demo[data-lang="swiss"] .ld-primary { background:#151515; }
.lang-demo[data-lang="swiss"] .ld-feedback-box { border-radius:0; padding-inline:0; background:transparent; border-top:2px solid #151515; }

/* Neo-brutalism: visible edges and hard, contact-like shadows. */
.lang-demo[data-lang="brutal"] { --ld-bg:#ffe265; --ld-surface:#fffdf3; --ld-line:#171717; --ld-ink:#171717; --ld-muted:#403a22; --ld-accent:#171717; --ld-tint:#ffe265; --ld-radius:2px; border:2px solid #171717; border-radius:3px; box-shadow:5px 5px 0 #171717; }
.lang-demo[data-lang="brutal"] .ld-appbar { border-bottom:2px solid #171717; font-weight:700; }
.ld-poster-top { display:flex; align-items:center; justify-content:space-between; }
.ld-poster-top .ld-label { color:#171717; font-weight:800; }
.ld-sticker { background:#c1a9f4; border:2px solid #171717; padding:5px 14px; transform:rotate(5deg); font-size:11px; font-weight:700; }
.lang-demo[data-lang="brutal"] .ld-project-title { font-size:50px; font-weight:850; letter-spacing:-.05em; margin-block:24px; }
.lang-demo[data-lang="brutal"] .ld-task-card { padding:12px 20px; border:2px solid #171717; background:#f6a6d2; box-shadow:6px 6px 0 #171717; justify-content:space-between; font-size:18px; font-weight:800; width:calc(100% - 6px); overflow:visible; }
.ld-big-arrow { font-size:42px; line-height:1.3; }
.lang-demo[data-lang="brutal"] :is(.ld-task-card,.ld-primary):active { transform:translate(5px,5px); box-shadow:none; filter:none; }
.lang-demo[data-lang="brutal"] .ld-facts { margin-top:16px; }
.lang-demo[data-lang="brutal"] .ld-task-row { border-width:2px; }
.lang-demo[data-lang="brutal"] .ld-panel-surface { border:2px solid #171717; box-shadow:5px 5px 0 #171717; }
.lang-demo[data-lang="brutal"] .ld-button { border:2px solid #171717; border-radius:2px; }
.lang-demo[data-lang="brutal"] .ld-primary { background:#b9e68a; color:#171717; box-shadow:4px 4px 0 #171717; }
.lang-demo[data-lang="brutal"] .ld-feedback-box { border:2px solid #171717; border-radius:0; font-weight:700; }

/* Glass: foreground windows reveal a deliberately rich backdrop. */
.lang-demo[data-lang="glass"] { --ld-bg:#c8d3ef; --ld-surface:#f8faffdf; --ld-line:#ffffffd9; --ld-ink:#172b4d; --ld-muted:#3b506f; --ld-accent:#254e9b; --ld-tint:#e8efff; --ld-radius:22px; background:radial-gradient(ellipse at 90% 30%,#ad9bdf,transparent 64%),linear-gradient(140deg,#c9deec,#e3b9cf); }
.lang-demo[data-lang="glass"] .ld-workspace::before { content:""; position:absolute; width:330px; height:330px; top:130px; left:-140px; border:46px solid #779ddba6; border-radius:50%; transform:rotate(-25deg); }
.lang-demo[data-lang="glass"] .ld-workspace::after { content:""; position:absolute; width:230px; height:130px; top:250px; right:-70px; border-radius:60px; background:#e8a5bd80; transform:rotate(-35deg); z-index:-1; }
.ld-glass-heading h3 { font-size:30px; margin:8px 0 26px; }
.ld-glass-window { padding:18px; border:1px solid #ffffffdc; border-radius:22px; background:#ffffff55; backdrop-filter:blur(18px); box-shadow:0 18px 40px #1d2f5d1a,inset 0 1px 0 #fff; }
.ld-window-top { display:flex; justify-content:space-between; font:9px var(--font-mono); color:#334566; margin-bottom:18px; }
.lang-demo[data-lang="glass"] .ld-task-card { flex-direction:column; gap:0; background:#f8faffb8; }
.lang-demo[data-lang="glass"] .ld-art { height:116px; background:linear-gradient(125deg,#b6c5e0,#d1bfdf); }
.lang-demo[data-lang="glass"] .ld-art i { background:linear-gradient(140deg,#e1dafa,#7970ae); box-shadow:0 15px 30px #2c325c2b; }
.lang-demo[data-lang="glass"] .ld-art i:nth-child(2) { background:#e7e9ff; }
.lang-demo[data-lang="glass"] .ld-art i:nth-child(3) { background:#8c8cbf; }
.lang-demo[data-lang="glass"] .ld-task-row { padding-block:9px; border-color:#ffffffb8; }
.lang-demo[data-lang="glass"] .ld-panel-surface { backdrop-filter:blur(18px); box-shadow:0 18px 40px #1d2f5d26,inset 0 1px 0 #fff; }

/* Soft UI: solid same-color volume, inset press, independent clear focus. */
.lang-demo[data-lang="soft"] { --ld-bg:#e7ebef; --ld-surface:#e7ebef; --ld-line:#bac4ce; --ld-ink:#293546; --ld-muted:#4e5d70; --ld-accent:#3e5785; --ld-tint:#dfe5eb; --ld-radius:22px; }
.lang-demo[data-lang="soft"] .ld-appbar { border-color:#c6ced8; }
.ld-soft-top { display:flex; gap:24px; align-items:center; margin:28px 0 34px; }
.ld-soft-top h3 { font-size:24px; }
.ld-soft-top p { font-size:11px; color:#4e5d70; margin-top:8px; }
.ld-dial { width:100px; height:100px; flex:none; display:grid; place-items:center; border-radius:50%; background:#e7ebef; box-shadow:8px 8px 18px #b6bfcbd9,-8px -8px 18px #ffffff; border:1px solid #c8d1db; }
.ld-dial span { width:66px; height:66px; display:grid; place-items:center; border-radius:50%; box-shadow:inset 4px 4px 9px #b7c0cc,inset -4px -4px 9px #fff; color:#405a8c; font:23px var(--font-mono); }
.lang-demo[data-lang="soft"] .ld-task-card { padding:24px 18px; box-shadow:7px 7px 17px #bfc8d3,-7px -7px 17px #fff; gap:14px; margin-bottom:22px; }
.lang-demo[data-lang="soft"] .ld-task-card:active { box-shadow:inset 5px 5px 12px #bbc5d0,inset -5px -5px 12px #fff; filter:none; }
.lang-demo[data-lang="soft"] .ld-project-symbol { color:#405a8c; }
.lang-demo[data-lang="soft"] .ld-panel-surface { box-shadow:8px 8px 20px #bcc5d0,-8px -8px 20px #fff; }
.lang-demo[data-lang="soft"] .ld-primary { background:#e7ebef; color:#304875; box-shadow:4px 4px 10px #b6c0cc,-4px -4px 10px #fff; border:1px solid #acb9c9; }
.lang-demo[data-lang="soft"] .ld-primary:active,.lang-demo[data-lang="soft"][data-state="loading"] .ld-primary { box-shadow:inset 4px 4px 9px #b6c0cc,inset -4px -4px 9px #fff; }
.lang-demo[data-lang="soft"] .ld-feedback-box { box-shadow:inset 3px 3px 7px #bec8d3,inset -3px -3px 7px #fff; border:1px solid #c2ccd6; }

/* Technical: stable columns and explicit command/result feedback. */
.lang-demo[data-lang="terminal"] { --ld-bg:#131b22; --ld-surface:#131b22; --ld-line:#43515d; --ld-ink:#dce7ee; --ld-muted:#a2b5c4; --ld-accent:#93e4c0; --ld-on-accent:#10291d; --ld-tint:#1b2a32; --ld-radius:2px; border-radius:6px; font-family:var(--font-mono); }
.lang-demo[data-lang="terminal"] .ld-appbar { background:#1c2730; }
.ld-terminal-bar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:10px; padding-bottom:20px; color:#a2b5c4; }
.ld-terminal-bar > span:last-child { color:#93e4c0; }
.ld-terminal-title { font-size:25px; margin:16px 0 10px; letter-spacing:0; }
.ld-terminal-path { font-size:11px; color:#a2b5c4; }
.lang-demo[data-lang="terminal"] .ld-facts { margin-block:14px; padding-block:14px; border-block:1px solid #43515d; }
.lang-demo[data-lang="terminal"] .ld-task-card { padding:16px 12px; margin-bottom:24px; border-color:#6f9e91; color:#93e4c0; font-size:11px; }
.lang-demo[data-lang="terminal"] .ld-task-card > span:last-child { margin-left:auto; }
.lang-demo[data-lang="terminal"] .ld-button { border-radius:2px; }
.lang-demo[data-lang="terminal"] .ld-detail-copy h3 { font-size:24px; letter-spacing:0; }
.lang-demo[data-lang="terminal"] .ld-feedback-box { border-radius:0; border-left:3px solid #93e4c0; }
.lang-demo[data-lang="terminal"][data-state="error"] .ld-feedback-box { border-color:#ffb4ae; }

/* Research sits beneath the interactive comparison, without squeezing it. */
.language-analysis { margin-top:20px; }
.language-section-heading h2 { margin-top:10px; font-size:26px; }
.language-table-scroll { margin-top:24px; overflow-x:auto; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.language-table { border-collapse:collapse; width:100%; table-layout:fixed; font-size:12px; text-align:left; }
.language-table caption { text-align:left; }
.language-table th,.language-table td { padding:18px 20px; vertical-align:top; line-height:1.85; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.language-table th { font-weight:500; color:var(--ink); }
.language-table thead th { background:var(--surface-2); }
.language-table thead th:first-child,.language-table tbody th { width:110px; color:var(--ink-2); }
.language-table td { color:var(--ink-2); border-left:1px solid var(--line); }
.language-table tbody tr:last-child :is(th,td) { border-bottom:0; }
.language-readings { display:grid; gap:24px; margin-top:24px; }
.language-readings[data-compare="true"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.language-reading-card { min-width:0; border:1px solid var(--line); border-radius:20px; padding:28px; background:var(--surface); }
.language-reading-card h3 { font-size:23px; margin-top:12px; }
.language-reading-tagline { margin-top:8px; font-size:13px; color:var(--ink-2); }
.lang-description { margin-top:18px; color:var(--ink-2); font-size:12px; line-height:1.9; }
.language-guidance { display:grid; gap:12px; margin-top:20px; }
.language-guidance > div { display:grid; grid-template-columns:32px 1fr; gap:12px; }
.language-guidance h4,.language-sources h4 { font-size:10px; color:var(--ink-3); letter-spacing:0; line-height:1.9; font-weight:400; }
.language-guidance p { color:var(--ink-2); font-size:11px; line-height:1.8; }
.language-recipe { border-block:1px solid var(--line); margin-top:22px; padding-block:16px; }
.language-recipe summary { font-size:11px; color:var(--ink-2); cursor:pointer; }
.lang-tokens { display:grid; grid-template-columns:1fr 1.15fr; gap:12px; margin-top:20px; font-size:11px; line-height:1.7; }
.lang-tokens dt { color:var(--ink-3); }
.lang-tokens dd { font:10px/1.8 var(--font-mono); overflow-wrap:anywhere; text-align:right; }
.lang-note { font-size:11px; line-height:1.85; color:var(--ink-3); margin-top:20px; }
.language-sources { display:flex; flex-direction:column; align-items:start; gap:9px; margin-top:20px; }
.language-sources a { font-size:11px; line-height:1.7; }
.language-atlas { border-top:1px solid var(--line); padding-top:24px; margin-top:12px; }
.language-atlas > summary { font-size:18px; cursor:pointer; }
.language-atlas > summary span { margin-left:16px; color:var(--ink-3); font-size:11px; }
.language-table-overview { min-width:820px; }
.language-table-overview thead th:first-child,.language-table-overview tbody th { width:160px; }
.language-table-overview small { display:block; font-size:10px; color:var(--ink-3); margin-top:5px; font-weight:400; }
@media(max-width:900px) { .language-bench-heading { align-items:start; flex-direction:column; gap:8px; }.language-scenes[data-compare="true"],.language-readings[data-compare="true"] { gap:18px; }.ld-overview { padding:20px; }.ld-detail-content { padding:18px; }.ld-project-title { font-size:34px; }.language-example-head { align-items:start; flex-direction:column; gap:9px; }.language-example-head h2 { font-size:20px; }.ld-expressive-group { grid-template-columns:minmax(0,1fr) 64px; }.ld-project-symbol { font-size:24px; }.ld-material-shell { grid-template-columns:32px minmax(0,1fr); gap:12px; }.language-table th,.language-table td { padding:14px; } }
@media(max-width:720px) { .language-scenes[data-compare="true"],.language-readings[data-compare="true"] { grid-template-columns:1fr; gap:30px; }.language-lenses { gap:14px; }.language-lenses > div { gap:8px; }.language-lenses p { font-size:11px; }.lang-switcher-row { align-items:start; flex-direction:column; gap:8px; }.styles-selector { padding:18px; }.language-example-head { flex-direction:row; align-items:center; }.language-example-head h2 { font-size:22px; }.language-table-scroll[data-columns="2"] .language-table { min-width:590px; }.language-table-overview { min-width:820px; }.ld-project-title { font-size:42px; }.ld-workspace { height:536px; }.language-reading-card { padding:24px; } }
@media(max-width:420px) { .language-lenses { grid-template-columns:1fr; gap:14px; padding-bottom:28px; }.language-lenses > div { padding-top:12px; }.language-lenses p { font-size:12px; }.language-lenses h2 { margin-bottom:4px; }.styles-hero { padding-top:48px; }.language-selects { display:grid; width:100%; }.language-tools select { width:100%; }.lang-chip { font-size:11px; padding:9px 11px; }.ld-workspace { height:552px; }.ld-detail-content { padding:16px; }.ld-detail-copy h3 { font-size:24px; }.ld-task-row { font-size:10px; }.ld-overview { padding:20px 16px; }.ld-material-shell { grid-template-columns:28px minmax(0,1fr); gap:12px; }.lang-demo[data-lang="fluent"] .ld-task-detail { left:16%; }.ld-floating-tools { gap:15px; padding-inline:16px; }.ld-editorial-grid { grid-template-columns:65px 1fr; }.lang-demo[data-lang="swiss"] .ld-project-title { font-size:34px; }.lang-demo[data-lang="brutal"] .ld-project-title { font-size:44px; }.language-example-type { font-size:9px; }.language-example-head h2 { font-size:19px; }.language-atlas > summary span { display:block; margin:8px 0 0 20px; } }
@media(prefers-reduced-transparency:reduce) { .ld-floating-tools { background:#fff; backdrop-filter:none; }.ld-glass-window { background:#edf1fc; backdrop-filter:none; }.lang-demo[data-lang="glass"] { --ld-surface:#f5f7ff; }.lang-demo[data-lang="glass"] .ld-panel-surface { backdrop-filter:none; } }
@media(prefers-contrast:more) { .lang-demo { --ld-line:var(--ld-ink); }.ld-floating-tools { background:#fff; border-color:#1d1d1f; backdrop-filter:none; }.ld-glass-window { background:#f5f7ff; border-color:#172b4d; backdrop-filter:none; }.lang-demo[data-lang="glass"] { --ld-surface:#f5f7ff; }.lang-demo[data-lang="glass"] .ld-panel-surface { backdrop-filter:none; }.lang-demo[data-lang="soft"] .ld-task-card { border-color:#293546; } }
:root[data-motion="reduced"] .lang-demo *, :root[data-motion="none"] .lang-demo * { transition:none!important; }
:root[data-motion="reduced"] .lang-demo :active, :root[data-motion="none"] .lang-demo :active { transform:none!important; }
.site-header > .motion-setting { justify-self:end; }
@media(max-width:420px) { .brand-name { font-size:12px; }.site-header { gap:8px; padding-inline:12px; }.site-nav a { padding-inline:9px; font-size:12px; }.motion-setting { max-width:88px; } }
.lc-workspace { position:relative; height:440px; overflow:hidden; }
.lc-main { height:100%; padding:24px; overflow:auto; }
.lc-toolbar { display:flex; gap:8px; flex-wrap:wrap; padding:16px 24px; border-top:1px solid var(--ld-line); }
.lc-status { padding:0 24px 20px; font-size:11px; line-height:1.8; min-height:58px; }
.lc-table { width:100%; border-collapse:collapse; text-align:left; font-size:12px; }
.lc-table caption { font-size:26px; font-weight:600; text-align:left; padding-bottom:24px; }
.lc-table :is(th,td) { padding:14px 6px; border-bottom:1px solid var(--ld-line); }
.lc-table th { font-size:10px; font-weight:500; color:var(--ld-muted); }
.lc-table :is(th,td):first-child { width:40px; }.lc-table :is(th,td):last-child { width:64px; }
.lc-table input { accent-color:var(--ld-accent); width:17px; height:17px; }
.lc-row-open { border:0; background:none; color:var(--ld-ink); padding:6px 0; text-align:left; font-size:12px; }
.lc-count { margin-top:20px; color:var(--ld-muted); font-size:11px; }
.lc-panel { position:absolute; inset:16px; border:1px solid var(--ld-line); border-radius:var(--ld-radius); background:var(--ld-surface); padding:22px; overflow:auto; }
.lc-panel h3 { font-size:26px; margin:20px 0 14px; }.lc-panel > p { font-size:12px; line-height:1.9; color:var(--ld-muted); }
.lc-panel > .lc-art { display:block; margin-top:16px; height:140px; border-radius:14px; }
.lc-panel[inert] { pointer-events:none; }
.lc-library-heading h3 { font-size:27px; margin:10px 0 26px; }
.lc-covers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.lc-cover { display:flex; flex-direction:column; min-width:0; padding:0 0 12px; border:1px solid var(--ld-line); border-radius:calc(var(--ld-radius)*.6); background:var(--ld-surface); color:var(--ld-ink); overflow:hidden; text-align:left; }
.lc-cover strong { font-size:11px; padding:12px 9px 7px; line-height:1.7; }.lc-cover small { color:var(--ld-muted); font:8px var(--font-mono); padding-inline:9px; }
.lc-art { position:relative; overflow:hidden; display:block; height:160px; width:100%; background:#abc2e8; }
.lc-art i { position:absolute; width:100px; height:100px; border:20px solid #4869a0; border-radius:50%; left:calc(50% - 50px); top:28px; }
.lc-art i:nth-child(2) { scale:.65; translate:0 15px; border-color:#ecf3ff; }.lc-art i:nth-child(3) { scale:.3; border-color:#7797ce; }
.lc-art[data-cover="1"] { background:#d4bce3; }.lc-art[data-cover="1"] i { border-radius:15px; border-color:#84559e; rotate:25deg; }.lc-art[data-cover="1"] i:nth-child(2){border-color:#f5e8ff;}
.lc-art[data-cover="2"] { background:#b3d9ca; }.lc-art[data-cover="2"] i { border-radius:45% 10% 45% 10%; border-color:#326e60; rotate:-25deg; }.lc-art[data-cover="2"] i:nth-child(2){border-color:#e0f7ef;}
.lc-demo[data-lang="fluent"] .lc-panel { left:24%; border-radius:6px; box-shadow:-8px 0 24px #0002; }
.lc-demo[data-lang="carbon"] .lc-panel { top:90px; border-width:0 0 2px; }
.lc-demo[data-lang="carbon"] .lc-table th { background:#e0e0e0; }.lc-demo[data-lang="carbon"] .lc-row-open { color:#0f62fe; }
.lc-demo[data-lang="swiss"] .lc-table caption { font-size:42px; border-top:3px solid #111; padding-top:14px; }
.lc-demo[data-lang="swiss"] .lc-covers { grid-template-columns:1.5fr 1fr; }.lc-demo[data-lang="swiss"] .lc-cover:first-child { grid-row:span 2; }.lc-demo[data-lang="swiss"] .lc-cover:not(:first-child) .lc-art { height:70px; }
.lc-demo[data-lang="brutal"] .lc-table { border:2px solid #171717; }.lc-demo[data-lang="brutal"] .lc-cover { border-width:2px; box-shadow:3px 3px 0 #171717; }
.lc-demo[data-lang="expressive"] .lc-library-heading h3 { font-size:38px; }.lc-demo[data-lang="expressive"] .lc-cover:first-child { border-radius:36px 12px 12px 36px; }.lc-demo[data-lang="expressive"] .lc-toolbar .lc-primary { min-height:50px; font-size:14px; }
.lc-demo[data-lang="glass"] .lc-main { background:#ffffff50; margin:16px; height:calc(100% - 32px); border:1px solid #fff; border-radius:20px; backdrop-filter:blur(18px); }
.lc-demo[data-lang="soft"] .lc-cover { box-shadow:5px 5px 13px #bac4d1,-5px -5px 13px #fff; }.lc-demo[data-lang="soft"] .lc-toolbar { margin:12px; border:1px solid #bac4ce; border-radius:16px; box-shadow:inset 3px 3px 8px #bac4d1,inset -3px -3px 8px #fff; }
.lc-demo[data-lang="terminal"] .lc-table caption { font:16px var(--font-mono); }.lc-demo[data-lang="terminal"] .lc-status { font-family:var(--font-mono); }
@media(max-width:900px){.lc-main{padding:18px;}.lc-covers{grid-template-columns:1fr 1fr;}.lc-art{height:110px;}.lc-cover:last-child{grid-column:1 / -1;}.lc-cover:last-child .lc-art{height:70px;}}
@media(prefers-reduced-transparency:reduce){.lc-demo[data-lang="glass"] .lc-main{background:#f5f7ff;backdrop-filter:none;}}
@media(prefers-contrast:more){.lc-demo[data-lang="glass"] .lc-main{background:#f5f7ff;backdrop-filter:none;border-color:#172b4d;}}
