/* Kit v3 Language platform (owner rulings R71, R82, R83). Tokens from v3.css only; logical properties only, so every
   console works right to left; one radius (var(--r)). Script fonts are self-hosted (vendor/fonts, copied from
   @fontsource, SIL Open Font License 1.1): Estedad, Vazirmatn and Noto Naskh Arabic for the Arabic-based alphabets,
   IBM Plex Sans and Noto Sans for Latin and Cyrillic. Data bars use var(--pastel); red marks only the selection. */
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-cyrillic-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-cyrillic-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "NotoCyr"; src: url(vendor/fonts/noto-sans-cyrillic-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "NotoCyr"; src: url(vendor/fonts/noto-sans-cyrillic-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Estedad"; src: url(vendor/fonts/estedad-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Estedad"; src: url(vendor/fonts/estedad-arabic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url(vendor/fonts/vazirmatn-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url(vendor/fonts/vazirmatn-arabic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Naskh"; src: url(vendor/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Naskh"; src: url(vendor/fonts/noto-naskh-arabic-arabic-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

:root { --sf: "Plex", "NotoCyr", "Estedad", "Vazirmatn", "Naskh", system-ui, sans-serif; --lp-w: 380px; --lp-ww: 620px; --lp-iw: 372px; }
body { font-family: "Plex", "NotoCyr", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif; }
.sc { font-family: var(--sf); }
.sc[dir="rtl"] { font-family: "Estedad", "Vazirmatn", "Naskh", var(--f); }
.lp-pad-x { padding-inline: 16px; }

/* Frame: the console at the start, the inspector at the end, the globe between them */
/* Home positions (owner, 5 Nov: one shell, full bleed): main panel at the start, inspector at the end clear of the rail,
   the strip at the foot; the studios widen the main panel over the same globe */
.lp-main { inset-block: 76px 120px; inset-inline-start: 76px; width: var(--lp-w); transition: width .18s var(--ease); }
.lp-main.is-wide { width: min(var(--lp-ww), calc(100% - 76px - 76px - var(--lp-iw) - 24px)); }
[data-insp="off"] .lp-main.is-wide { width: min(880px, calc(100% - 76px - 88px)); }
.lp-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; padding: 6px; border-block-end: 1px solid var(--line); }
.lp-tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 2px 6px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-3); font-size: 10.5px; font-weight: 500; min-width: 0; }
.lp-tabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-tabs button:hover { color: var(--ink); background: var(--bg-2); }
.lp-tabs button[aria-selected="true"] { color: var(--ink); background: var(--bg-2); box-shadow: inset 0 -2px 0 var(--red); }
.lp-hd { padding-block: 12px; }
.lp-hd__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.lp-hd .title { font-size: 19px; }
.lp-hd .stats { margin-block-start: 12px; }
.lp-hd .stat { padding: 10px 12px; }
.lp-hd .stat b { font-size: 26px; }
.lp-hd .stat span { font-size: 11.5px; }
.lp-seg { margin-block-start: 12px; }
.lp-seg button em { font-style: normal; color: var(--ink-3); font-size: 11px; margin-inline-start: 2px; }
.lp-seg--wrap { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-vpick select { height: 28px; max-width: 250px; padding-inline: 8px 24px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font-size: 12px; }
.lp-layers[hidden] { display: none; }
.lp-strip { grid-template-columns: 196px minmax(0, 1fr) 260px; }
.lp-strip .time__l { justify-content: space-between; gap: 8px; }
.lp-strip__seg button { font-size: 11.5px; padding-inline: 4px; }
.lp-strip__mid { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); align-items: center; gap: 14px; padding-inline: 16px; min-width: 0; }
.lp-strip__mid input { height: 40px; padding-inline: 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-1); color: var(--ink); font-size: 18px; min-width: 0; }
.lp-strip__mid input:focus { outline: 1px solid var(--ink-3); }
.lp-strip__out { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.lp-strip__out button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 12px; border: 0; background: var(--bg-1); text-align: start; min-width: 0; }
.lp-strip__out button:hover { background: var(--bg-2); }
.lp-strip__out b { font-size: 20px; font-weight: 500; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-strip__out small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.lp-strip .next b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-strip .next { cursor: pointer; }
.lp-toast { position: absolute; z-index: 60; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(-50%); padding: 9px 14px; font-size: 12.5px; }
.lp-toast[hidden] { display: none; }
.lp-mk { appearance: none; border: 0; background: none; padding: 1px 4px; font: 500 11px/1.2 var(--f); color: var(--ink); text-shadow: 0 0 3px var(--bg), 0 0 6px var(--bg); cursor: pointer; white-space: nowrap; }
.lp-mk.is-sel { color: var(--red); font-weight: 600; }
.lp-mk[hidden] { display: none; }

/* Shared bits */
.lp-foot { padding: 12px 16px 16px; color: var(--ink-3); font-size: 11.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lp-empty { color: var(--ink-3); font-size: 12.5px; }
.lp-note { color: var(--ink-3); font-size: 12px; }
.lp-src { display: inline-flex; align-items: center; height: 22px; padding-inline: 8px; border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); font-size: 11.5px; text-decoration: none; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
a.lp-src:hover { color: var(--ink); }
.lp-lb { height: 22px; font-size: 11px; }
.lp-srcs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-start: 10px; }
.lp-prep { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 10px 12px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 12px; }
.lp-prep .chip { flex: none; }
.lp-sec .lp-prep, .lp-pcard .lp-prep, .lp-emptyc .lp-prep, .lp-voice .lp-prep { margin-inline: 0; }
.lp-tag { display: inline-flex; align-items: center; height: 28px; padding-inline: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); font-size: 12.5px; color: var(--ink); }
button.lp-tag:hover { border-color: var(--line-2); background: var(--bg-2); }
button.lp-tag[aria-pressed="true"] { border-color: var(--red); }
.cities .lp-tag { margin: 0; }
.lp-sec .cities, .lp-lcard .cities { padding: 0; }
.lp-bar { display: inline-block; vertical-align: middle; width: 72px; height: 4px; border-radius: var(--r); background: var(--bg-3); overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--pastel); background-size: 72px 100%; }
.lp-search { display: flex; align-items: center; gap: 8px; margin-block-start: 12px; height: 36px; padding-inline: 10px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); }
.lp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13.5px; }
.lp-search:focus-within { border-color: var(--line-2); }
.lp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px 0; color: var(--ink-3); font-size: 12px; }
.lp-meta .lp-prep { margin: 0; padding: 6px 10px; }

/* Atlas */
.lp-vrow { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--r); background: transparent; text-align: start; }
.lp-vrow:hover { background: var(--bg-2); }
.lp-vrow[aria-selected="true"] { background: var(--red-soft); }
.lp-vrow__n { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.lp-vrow__n .sc { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-vrow__n .sc { display: block; width: fit-content; max-width: 100%; }
.lp-vrow__n small { max-width: 100%; color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-vrow__m { display: flex; gap: 6px; align-items: center; }
.lp-vrow__m code { font: 500 11px/1 var(--m); color: var(--ink-2); }
.lp-vrow__m em { font-style: normal; font-size: 11px; color: var(--ink-3); padding: 3px 6px; border-radius: var(--r); background: var(--bg-2); white-space: nowrap; }
.lp-vrow__s { justify-self: end; font: 500 12px/1 var(--m); color: var(--ink-3); }
.lp-tree { padding: 12px 12px 0; }
.lp-tn { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 26px; padding-inline-start: calc(var(--d) * 12px + 14px); font-size: 12.5px; color: var(--ink-2); }
.lp-tn i { position: absolute; inset-inline-start: calc(var(--d) * 12px + 3px); inset-block: 0; width: 1px; background: var(--line-2); }
.lp-tn i::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 0; width: 8px; height: 1px; background: var(--line-2); }
.lp-tn.is-leaf > span { color: var(--ink); font-weight: 600; }
.lp-tn button { height: 24px; padding-inline: 8px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); font-size: 12.5px; }
.lp-tn button[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }

/* Inspector */
.lp-ititle { font-size: 30px; line-height: 1.2; margin-inline-end: 40px; }
.lp-isub { color: var(--ink-2); margin-block-start: 2px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.lp-insp .fig .src .chip { cursor: pointer; background: transparent; }
.lp-sec { padding: 14px 16px 0; }
.lp-sec__h { display: flex; align-items: center; justify-content: space-between; margin-block: 2px 8px; }
.lp-sec__h em { font: 500 11px/1 var(--m); font-style: normal; color: var(--ink-3); }
.lp-lcard .lp-sec__h, .lp-voice .lp-sec__h { margin-block-start: 16px; }
.lp-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 30px; border-block-end: 1px solid var(--line); font-size: 12.5px; }
.lp-kv > span:first-child { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-kv b { font-weight: 500; text-align: end; }
.lp-kv b i, .lp-tab i { color: var(--ink-3); font-style: normal; }
.lp-scs { display: grid; gap: 6px; }
.lp-scs button { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); text-align: start; }
.lp-scs button:hover { border-color: var(--line-2); }
.lp-scs b { font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.lp-scs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.lp-scs small { font: 500 11px/1 var(--m); color: var(--ink-3); }
.lp-endo { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-endo span { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); font-size: 16px; }
.lp-endo small { font: 500 10.5px/1 var(--m); color: var(--ink-3); }
.lp-words { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.lp-words div { background: var(--bg-1); padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.lp-words small { font-size: 10.5px; color: var(--ink-3); }
.lp-words b { font-size: 16px; font-weight: 600; }
.lp-words em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.lp-path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--ink-2); }
.lp-path li { display: inline-flex; align-items: center; gap: 4px; }
.lp-path li + li::before { content: "/"; color: var(--ink-3); margin-inline-end: 2px; }
.lp-path li:last-child { color: var(--ink); font-weight: 600; }
.lp-view { border-block-end: 1px solid var(--line); }
.lp-view summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 500; }
.lp-view summary::-webkit-details-marker { display: none; }
.lp-view summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-view summary svg { color: var(--ink-3); transition: transform .18s var(--ease); }
.lp-view[open] summary svg { transform: rotate(90deg); }
.lp-view p { margin: 0 0 10px; color: var(--ink-2); font-size: 12.5px; }
.lp-view .lp-srcs { margin-block: 0 12px; }
.lp-dg + .lp-dg { margin-block-start: 8px; }
.lp-dg small { display: block; color: var(--ink-3); font-size: 11.5px; margin-block-end: 6px; }
.lp-ipa > small { display: block; color: var(--ink-3); font-size: 11px; margin-block: 6px 4px; }
.lp-ipa div { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.lp-ipa span { background: var(--bg-1); text-align: center; padding: 6px 0; font-size: 14px; }
.lp-course { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; padding: 9px 0; border-block-end: 1px solid var(--line); text-decoration: none; color: inherit; }
.lp-course code { font: 500 11px/1.6 var(--m); color: var(--ink-3); grid-row: 1 / 3; }
.lp-course span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-course small { grid-column: 2; color: var(--ink-3); font-size: 11.5px; }
.lp-course em { grid-column: 3; grid-row: 1 / 3; align-self: center; font-style: normal; }
.lp-course:hover span { text-decoration: underline; text-underline-offset: 3px; }
.lp-res { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 8px 0; border-block-end: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 12.5px; }
.lp-res span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-res small { grid-column: 1; color: var(--ink-3); font-size: 11.5px; }
.lp-res .chip { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.lp-pad { height: 16px; }

/* Script studio */
.lp-tr { margin: 14px 16px 0; padding: 12px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); }
.lp-tr__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.lp-tr__in input { height: 36px; padding-inline: 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 17px; min-width: 0; }
.lp-tr__in input:focus { outline: 1px solid var(--ink-3); }
.lp-tr__out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-start: 10px; }
.lp-tr__o { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 8px 10px; border-radius: var(--r); background: var(--bg-2); min-width: 0; }
.lp-tr__o output { grid-column: 1; font-size: 20px; font-weight: 500; min-height: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-tr__o .btn { grid-column: 2; grid-row: 1 / 3; }
.lp-tr .lp-srcs { margin-block-start: 8px; }
.lp-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px 16px 16px; align-items: start; }
.lp-abc { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.lp-abc__h, .lp-abc__r { display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; align-items: center; }
.lp-abc__h { padding: 8px 10px; background: var(--bg-1); border-block-end: 1px solid var(--line); }
.lp-abc__h span { font: 500 10.5px/1 var(--f); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.lp-abc__r { width: 100%; padding: 3px 10px; border: 0; border-block-end: 1px solid var(--line); background: transparent; text-align: start; }
.lp-abc__r:last-child { border-block-end: 0; }
.lp-abc__r:hover { background: var(--bg-2); }
.lp-abc__r[aria-selected="true"] { background: var(--red-soft); }
.lp-abc__r b { font-size: 18px; font-weight: 500; line-height: 1.5; }
.lp-abc__r > * { justify-self: center; }
.lp-abc__h span { text-align: center; }
.lp-abc__r b i { color: var(--ink-3); font-style: normal; font-size: 13px; }
.lp-abc__r small { font-size: 12px; color: var(--ink-3); }
.lp-abc__r.is-ext b:first-child { color: var(--ink-3); }
.lp-yz { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; margin-block-start: 10px; }
.lp-yz b { font: 500 11px/1 var(--m); color: var(--ink-3); }
.lp-yz .lp-prep { margin: 0; grid-column: 1 / -1; }
.lp-studio__r { position: sticky; inset-block-start: 0; }
.lp-lcard { padding: 14px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); }
.lp-lcard__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.lp-lcard__g div { background: var(--bg); padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.lp-lcard__g b { font-size: 44px; font-weight: 500; line-height: 1.15; }
.lp-lcard__g em { font: 400 10.5px/1.2 var(--m); font-style: normal; color: var(--ink-3); text-align: center; }
.lp-forms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.lp-forms div { background: var(--bg); padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lp-forms b { font-size: 34px; font-weight: 400; line-height: 1.3; }
.lp-forms small { font-size: 11px; color: var(--ink-3); }
.lp-kvs { margin-block-start: 10px; }
.lp-lcard .lp-kv:last-child { border-block-end: 0; }
.lp-big { font-size: 88px; line-height: 1.2; text-align: center; padding: 8px 0; background: var(--bg); border-radius: var(--r); }
.lp-any__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 16px 0; }
.lp-any__bar select { max-width: 320px; height: 32px; }
.lp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; margin-block-end: 10px; }
.lp-tiles button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); min-width: 0; }
.lp-tiles button:hover { border-color: var(--line-2); }
.lp-tiles button[aria-selected="true"] { border-color: var(--red); background: var(--red-soft); }
.lp-tiles b { font-size: 22px; font-weight: 500; line-height: 1.3; }
.lp-tiles small { font-size: 10.5px; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tables */
.lp-tablewrap { margin: 12px 16px 0; border-radius: var(--r); border: 1px solid var(--line); overflow: auto; scrollbar-width: thin; }
.lp-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lp-tab th, .lp-tab td { padding: 7px 10px; text-align: start; border-block-end: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.lp-tab thead th { position: sticky; inset-block-start: 0; z-index: 1; background: var(--bg-1); font: 500 10.5px/1.3 var(--f); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.lp-tab thead th small { display: block; text-transform: none; letter-spacing: 0; font-size: 10.5px; color: var(--ink-3); font-weight: 400; }
.lp-tab tbody th { font-weight: 500; }
.lp-tab tbody th small, .lp-tab td small { display: block; color: var(--ink-3); font-size: 11px; font-weight: 400; }
.lp-tab tbody tr:last-child > * { border-block-end: 0; }
.lp-tab .is-sel { box-shadow: inset 0 2px 0 var(--red); }
.lp-tab tbody .is-sel { box-shadow: none; background: var(--bg-2); }
.lp-tab tr.is-sel > * { background: var(--red-soft); }
.lp-cmp td b { font-size: 15px; font-weight: 500; }
.lp-cmp tr.is-dim { opacity: .35; }
.lp-cmp tr.is-hit th { color: var(--ink); box-shadow: inset 2px 0 0 var(--ink); }
.lp-terms td { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.lp-loc td .lp-bar { margin-inline-end: 8px; }
.lp-loc td small.num { display: inline; }
.lp-sup td i { font-size: 11.5px; }
.lp-ok { font: 500 11.5px/1 var(--m); }

/* Forms and flows */
.lp-form { display: grid; gap: 10px; padding: 14px 16px 0; }
.lp-form__g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-form label { display: grid; gap: 6px; }
.lp-form input, .lp-form select { height: 36px; padding-inline: 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-1); color: var(--ink); font-size: 13px; min-width: 0; }
.lp-form input:focus, .lp-form select:focus { outline: 1px solid var(--ink-3); }
.lp-req { margin: 0; padding: 12px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); font: 400 12px/1.5 var(--m); white-space: pre-wrap; }
.lp-req[hidden] { display: none; }
.lp-flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; margin-block: 4px; }
.lp-pad-x.lp-flow { margin: 14px 16px 0; padding: 0; }
.lp-flow div { background: var(--bg-1); padding: 10px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; min-width: 0; }
.lp-flow i { grid-row: 1 / 3; width: 24px; height: 24px; border-radius: var(--r-dot); display: grid; place-items: center; font: 500 11px/1 var(--m); font-style: normal; border: 1px solid var(--line-2); color: var(--ink-2); }
.lp-flow div.is-on i { border-color: var(--ink); color: var(--ink); }
.lp-flow b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-flow small { color: var(--ink-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Voice */
.lp-voice { padding: 14px 16px 16px; }
.lp-rec { padding: 14px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); display: grid; gap: 12px; }
.lp-wave { width: 100%; height: 48px; display: block; }
.lp-rec__c { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-rec__c b { display: block; font-size: 28px; font-weight: 600; line-height: 1.2; }
.lp-rec__c small { color: var(--ink-3); }
.lp-recb { height: 40px; padding-inline: 16px; }
.lp-recrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 6px; border-block-end: 1px solid var(--line); }
.lp-recrow audio { width: 100%; height: 32px; }
.lp-arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.lp-arch div { background: var(--bg-1); padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.lp-arch span { justify-self: start; max-width: 100%; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-arch small { grid-column: 1; color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-arch em { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 600 18px/1 var(--f); font-style: normal; color: var(--ink-3); }

/* Places */
.lp-prow { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px 8px; border: 0; border-radius: var(--r); background: transparent; text-align: start; }
.lp-prow:hover { background: var(--bg-2); }
.lp-prow[aria-selected="true"] { background: var(--red-soft); }
.lp-prow > .fl, .lp-prow > img { grid-row: 1 / 3; }
.lp-prow__n { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-prow__a { grid-column: 3; grid-row: 1 / 3; color: var(--ink-2); font-size: 12.5px; }
.lp-prow small { grid-column: 2; color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-prow:not(:has(.fl)) .lp-prow__n, .lp-prow:not(:has(.fl)) small { grid-column: 1 / 3; }
.group__h .fl { margin-inline-end: 4px; vertical-align: -3px; }
.lp-pcard { margin: 12px 12px 4px; padding: 14px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); display: grid; gap: 10px; }
.lp-pcard__t { display: flex; align-items: center; gap: 12px; }
.lp-pcard__t b { display: block; font-size: 20px; font-weight: 600; }
.lp-pcard__t small { color: var(--ink-3); }
.lp-pcard .lp-kvs { margin: 0; }
.lp-pcard .btn { justify-self: start; }

/* Culture */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 14px 16px 0; }
.lp-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); text-decoration: none; color: inherit; min-width: 0; }
a.lp-card:hover { border-color: var(--line-2); background: var(--bg-2); }
.lp-card__nat { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.lp-card__nat b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.lp-card > span { color: var(--ink-2); font-size: 12px; }
.lp-card--h b { font-size: 14px; font-weight: 600; }
.lp-card__f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-block-start: auto; padding-block-start: 8px; }
.lp-card__f small { color: var(--ink-3); font-size: 11px; display: flex; gap: 4px; align-items: center; overflow: hidden; }
.lp-card__f em { font: 600 13px/1 var(--f); font-style: normal; white-space: nowrap; }
.lp-card__f .lp-src { max-width: 110px; }
.lp-emptyc { padding: 14px 16px; display: grid; gap: 12px; }
.lp-emptyc .stats { margin: 0; }

/* Numbers */
.lp-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 14px 16px 0; }
.lp-num { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 6px; min-width: 0; }
.lp-num b { font: 600 28px/1.1 var(--f); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.lp-num b i { display: block; font: 400 12px/1.3 var(--f); color: var(--ink-3); font-style: normal; }
.lp-num small { color: var(--ink-3); font-size: 11px; }
.lp-num.is-sel { border-color: var(--line-2); box-shadow: inset 0 2px 0 var(--ink-2); }
.lp-cals { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 0 16px; }
.lp-cal { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 6px; }
.lp-cal b { font-size: 15px; font-weight: 600; }
.lp-cal small { color: var(--ink-3); font-size: 12px; min-height: 1em; }
.lp-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 16px; }
.lp-next a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); text-decoration: none; color: inherit; min-width: 0; }
.lp-next a:hover { border-color: var(--line-2); }
.lp-next em { grid-row: 1 / 4; font: 600 24px/1 var(--f); font-style: normal; letter-spacing: -.02em; align-self: center; }
.lp-next em small { font-size: 11px; color: var(--ink-3); margin-inline-start: 2px; }
.lp-next b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-next span, .lp-next a > small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-bd > .lp-sec__h { margin-block-start: 16px; }
.lp-bd > .lp-prep:last-child, .lp-bd > .lp-tablewrap:last-child { margin-block-end: 16px; }

/* Translate */
.lp-wl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 16px 0; padding: 12px 14px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); }
.lp-wl b { display: block; font-size: 15px; font-weight: 600; margin-block: 4px 2px; }
.lp-wl small { color: var(--ink-3); font-size: 12px; }

/* Phone: the globe stays full screen; the console is a bottom sheet, the inspector a sheet above it */
@media (max-width: 760px) {
  .lp-main, .lp-main.is-wide { height: 56vh; max-height: 56vh !important; }
  .lp-insp { z-index: 14; max-height: 70vh; }
  .lp-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .lp-tabs::-webkit-scrollbar { display: none; }
  .lp-tabs button { flex: none; min-width: 64px; }
  .lp-layers, .has-rail-end .lp-layers { inset-block: 112px auto; inset-inline: 8px; max-width: none; }
  .lp-hd .stats { display: none; }
  .lp-hd .title { font-size: 17px; }
  .lp-studio { grid-template-columns: 1fr; }
  .lp-studio__r { position: static; order: -1; }
  .lp-tr__out { grid-template-columns: 1fr; }
  .lp-tr__in { grid-template-columns: 1fr; }
  .lp-next { grid-template-columns: 1fr; }
  .lp-form__g { grid-template-columns: 1fr; }
  .lp-flow { grid-auto-flow: row; }
  .lp-words { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lp-vpick select { max-width: 170px; }
  .lp-seg--wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The reader's context first ("For Germany"), the rest kept */
.lp-ctx { display: flex; align-items: center; gap: 10px; margin: 12px 12px 0; padding: 10px 12px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.lp-ctx span { flex: 1; min-width: 0; }
.lp-ctx .chip { background: transparent; cursor: pointer; }
.lp-for { color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.lp-card.is-ctx { border-color: var(--line-2); }

/* An empty cell says so in words (QA, 5 Nov: no dash placeholders) */
.lp-nr { font: italic 400 11px/1.2 var(--f); color: var(--ink-3); white-space: nowrap; }
