/* Claude Code 2026-11-11 (owner: "button gold I like a bit calm" → "yes both"): the main app's gold buttons use the same soft
   satin gold as Academic Words — less shine, less contrast, softer shadow. Loaded last; delete the link to restore the bright gold. */
html body :is(
  .s-go, .jump-pills .jump-pill[aria-selected="true"], .jump-pills .jump-pill[aria-current="true"],
  .set-exit, #mtCreate, .btn-gold, #v-translator .vt-translate, #v-writing .wr-gweb, #writingResultsCard .wr-gweb
) {
  background: linear-gradient(180deg, #E4D2A0 0%, #D2B676 55%, #BFA060 100%) !important;
  border-color: rgba(160, 128, 68, .75) !important; color: #2A2112 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(40, 28, 8, .22) !important; text-shadow: none !important;
}
html body :is(.s-go, .set-exit, #mtCreate, .btn-gold, #v-translator .vt-translate, #v-writing .wr-gweb, #writingResultsCard .wr-gweb):hover {
  background: linear-gradient(180deg, #EAD9AA 0%, #D8BC80 55%, #C4A566 100%) !important;
}
html body :is(.s-go, .set-exit, #mtCreate, .btn-gold, #v-translator .vt-translate, #v-writing .wr-gweb, #writingResultsCard .wr-gweb) :is(svg, .ic) { color: #2A2112 !important; }

/* 2026-11-11 (owner: flag + language name, honest 10/10): language list — a small flag before the name (LexiFlags font so Windows
   shows real flags), gold radio, slim gold scrollbar, calm gold Done (was blue); the old green "available" ticks are gone */
.lp-dialog .lp-flag { display: inline-grid; place-items: center; width: 1.6em; font-size: 1.1em; line-height: 1;
  font-family: "LexiFlags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.lp-dialog .lp-row { grid-template-columns: auto auto minmax(0, 1fr) auto !important; }
.lp-dialog .lp-row input { accent-color: #C9A24A !important; }
.lp-dialog .lp-list { scrollbar-width: thin; scrollbar-color: rgba(226, 190, 114, .55) transparent; }
.lp-dialog .lp-list::-webkit-scrollbar { width: 6px; }
.lp-dialog .lp-list::-webkit-scrollbar-thumb { background: rgba(226, 190, 114, .55); border-radius: 6px; }
.lp-dialog .lp-list::-webkit-scrollbar-track { background: transparent; }
.lp-dialog :is(.btn-navy, .dialog-actions .btn, .actions .btn) {
  color: #2A2112 !important; border: 1px solid rgba(160, 128, 68, .75) !important;
  background: linear-gradient(180deg, #E4D2A0 0%, #D2B676 55%, #BFA060 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(40, 28, 8, .22) !important; }

/* 2026-11-11 (owner: "for phone flag and name in English"): on phones each language row = flag + English name on one line
   (the native name is still searchable); the current choice keeps its gold radio */
@media (max-width: 599px) {
  .lp-dialog .lp-row .lp-native[lang], .lp-dialog .lp-row .lp-native:not([lang]) + .lp-name { display: none !important; }
  .lp-dialog .lp-row .lp-native[lang] + .lp-name { font-weight: 700; font-size: 1rem; color: inherit; }
  .lp-dialog .lp-row .lp-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.lp-dialog .lp-recent .lp-region { color: #E2BE72; }

/* Claude Code 2026-11-11 — luxury Install dialog (openHomeScreenAutoInstallDialog): navy + champagne gold on every theme */
dialog.lux-install-dlg {
  background: radial-gradient(120% 70% at 50% 0%, #22365e 0%, #111d36 55%, #0a1224 100%) !important;
  color: #F4ECD8 !important; border: 1px solid rgba(214,180,106,.55) !important; border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,236,190,.06) !important;
  max-width: min(440px, 94vw) !important; padding: 18px 18px 20px !important;
}
dialog.lux-install-dlg .dlg-head { border: 0 !important; padding: 0 !important; margin: 0 !important; }
dialog.lux-install-dlg .dlg-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.05rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #D9BE82 !important; margin: 0; }
dialog.lux-install-dlg .dlg-x { color: #E9DCB8 !important; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(214,180,106,.35) !important; border-radius: 999px; }
.lux-install { text-align: center; }
.lux-install .li-crest { width: 64px; height: 64px; margin: 6px auto 8px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #1f3157, #0d1730); border: 1.5px solid rgba(214,180,106,.8);
  box-shadow: 0 0 0 5px rgba(214,180,106,.08), 0 8px 24px rgba(214,180,106,.18); }
.lux-install .li-crest img { width: 38px; height: 38px; }
.lux-install .li-kicker { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 700; line-height: 1.15;
  background: linear-gradient(180deg, #FFF1C9, #D9B46A 60%, #B48A3E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lux-install .li-lead { margin: 4px 0 14px; font-size: .82rem; color: rgba(244,236,216,.75); }
.lux-install .li-go { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255,240,200,.65); color: #1B1406;
  background: linear-gradient(180deg, #F0E2B6 0%, #DCC285 48%, #C2A160 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(120,86,30,.25), 0 10px 26px rgba(201,162,84,.28);
  transition: transform .15s ease, box-shadow .15s ease; text-align: left; }
.lux-install .li-go:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 30px rgba(201,162,84,.38); }
.lux-install .li-go:active { transform: translateY(1px); }
.lux-install .li-go-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #12203D; color: #E7CC8D; box-shadow: inset 0 0 0 1px rgba(231,204,141,.5); }
.lux-install .li-go-ic svg { width: 18px; height: 18px; }
.lux-install .li-go-t { display: flex; flex-direction: column; line-height: 1.2; }
.lux-install .li-go-t b { font-size: 1rem; font-weight: 800; }
.lux-install .li-go-t small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.lux-install .li-steps { list-style: none; margin: 16px 0 0; padding: 0; text-align: left; position: relative; }
.lux-install .li-steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 1px;
  background: linear-gradient(180deg, rgba(214,180,106,.7), rgba(214,180,106,.15)); }
.lux-install .li-steps li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.lux-install .li-steps li + li { border-top: 1px solid rgba(214,180,106,.12); }
.lux-install .li-n { position: relative; z-index: 1; width: 31px; height: 31px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.05rem; font-weight: 700; color: #E7CC8D;
  background: #12203D; border: 1px solid rgba(214,180,106,.75); }
.lux-install .li-tx { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; min-width: 0; }
.lux-install .li-tx b { font-size: .9rem; font-weight: 700; color: #F7F0DE; line-height: 1.45; }
.lux-install .li-tx small { font-size: .76rem; color: rgba(244,236,216,.62); line-height: 1.5; }
.lux-install .li-note { margin: 10px 0 0; font-size: .78rem; color: #E7CC8D; min-height: 0; }
.lux-install .li-note:empty { display: none; }
.lux-install .li-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 999px;
  background: rgba(8,14,30,.55); border: 1px solid rgba(214,180,106,.35); }
.lux-install .li-seg button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(244,236,216,.72); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.lux-install .li-seg button svg { width: 17px; height: 17px; flex: none; }
.lux-install .li-seg button[aria-selected="true"] { color: #1B1406; background: linear-gradient(180deg, #F0E2B6, #D2B676 55%, #BFA060);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 12px rgba(201,162,84,.25); }
/* "Offline Dictionary Packs" → Install LexiGlobal link (Claude Code 2026-11-11) */
.li-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: .8rem; font-weight: 700; color: #E7CC8D; background: rgba(10,18,36,.55); border: 1px solid rgba(214,180,106,.55); }
.li-link svg { width: 15px; height: 15px; }
.li-link:hover { background: rgba(214,180,106,.14); }

/* Install window language list (Claude Code 2026-11-11, 65 languages) */
.lux-install .li-lang { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 6px 12px; border-radius: 999px;
  background: rgba(8,14,30,.55); border: 1px solid rgba(214,180,106,.4); cursor: pointer; }
.lux-install .li-lang-f { font-family: "LexiFlags", "Segoe UI Emoji", sans-serif; font-size: 1.05rem; line-height: 1; }
.lux-install .li-lang select { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: 0;
  color: #F4ECD8; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; padding: 2px 0; }
.lux-install .li-lang select option { color: #1E2C4A; background: #fff; }
.lux-install .li-lang-c { color: #D9BE82; display: grid; }
.lux-install .li-lang-c svg { width: 16px; height: 16px; }
.lux-install .li-lang:focus-within { border-color: rgba(231,204,141,.85); box-shadow: 0 0 0 3px rgba(214,180,106,.18); }
.lux-install[dir="rtl"] .li-steps, .lux-install[dir="rtl"] .li-go { text-align: right; }
.lux-install[dir="rtl"] .li-steps::before { left: auto; right: 15px; }
/* Language list: ✓ Offline tick (Claude Code 2026-11-11) */
.lp-row .lp-state.lp-offline { color: #1F8A5B; font-weight: 800; font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }
.lp-row .lp-state.lp-offline-dl { color: #B08A3C; font-weight: 800; font-size: .72rem; white-space: nowrap; }

/* Offline Dictionary Packs window (Claude Code 2026-11-11): separate text / voice files per language */
.lux-offline .lo-steps { margin-top: 6px; }
.lux-offline .lo-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.lux-offline .lo-apps .li-go { padding: 10px 12px; gap: 9px; }
.lux-offline .lo-apps .li-go-ic { width: 32px; height: 32px; }
.lux-offline .lo-apps .li-go-t b { font-size: .9rem; }
.lux-offline .lo-apps .li-go-t small { text-transform: none; letter-spacing: 0; font-size: .7rem; }
.lux-offline .lo-go-2 { background: linear-gradient(180deg, #2A3D66, #1A2A4D) !important; color: #F4ECD8 !important; border-color: rgba(214,180,106,.55) !important; }
.lux-offline .lo-go-2 .li-go-ic { background: rgba(214,180,106,.15); }
.lux-offline .lo-h { margin: 16px 0 6px; text-align: left; font-family: "Cormorant Garamond", Georgia, serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #D9BE82; }
.lux-offline .lo-list { text-align: left; border: 1px solid rgba(214,180,106,.25); border-radius: 14px; overflow: hidden; max-height: 46vh; overflow-y: auto; }
.lux-offline .lo-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(214,180,106,.12); }
.lux-offline .lo-row:last-of-type { border-bottom: 0; }
.lux-offline .lo-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lux-offline .lo-name b { font-size: .86rem; color: #F7F0DE; font-family: "LexiFlags", inherit; }
.lux-offline .lo-name small { font-size: .72rem; color: rgba(244,236,216,.6); }
.lux-offline .lo-done .lo-name small { color: #7FE0B0; font-weight: 700; }
.lux-offline .lo-size { font-size: .8rem; font-weight: 800; color: #E7CC8D; }
.lux-offline .lo-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lux-offline .lo-file { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: .72rem; font-weight: 800; color: #E7CC8D; background: rgba(10,18,36,.6); border: 1px solid rgba(214,180,106,.5); white-space: nowrap; }
.lux-offline .lo-file svg { width: 13px; height: 13px; }
.lux-offline .lo-file:hover { background: rgba(214,180,106,.16); }
.lux-offline .lo-core { background: rgba(214,180,106,.07); }
.lux-offline .lo-more, .lux-offline .lo-wait { margin: 0; padding: 10px 12px; font-size: .74rem; color: rgba(244,236,216,.6); }
.lux-offline .lo-note { margin: 10px 0 0; font-size: .74rem; color: rgba(244,236,216,.65); text-align: left; }
@media (max-width: 380px) { .lux-offline .lo-apps { grid-template-columns: 1fr; } }
/* Settings › Update to the latest version (Claude Code 2026-11-11) */
.row-update .val { white-space: nowrap; }
.row-update.row-update-new .val { color: #1B1406 !important; background: linear-gradient(180deg, #F0E2B6, #D2B676 55%, #BFA060) !important; border-color: #E7CC8D !important; font-weight: 800; }
.row-update.row-updating .val { color: #E7CC8D !important; }

/* Install window round 2 (Claude Code 2026-11-11, owner: "full screen + back or X", "theme colour must match the set theme",
   "1 2 3 4 5 same font as the Khmer text, bold", branding = reference "LexiGlobal English · Learner"). */
dialog.lux-install-dlg[open] {
  position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important; max-width: none !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; overflow-y: auto !important; overscroll-behavior: contain;
  background:
    radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--btn-a) 92%, #fff 6%) 0%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--btn-a) 78%, #000) 0%, color-mix(in srgb, var(--btn-b) 82%, #000) 55%, color-mix(in srgb, var(--btn-b) 55%, #000) 100%) !important;
  box-shadow: none !important;
}
dialog.lux-install-dlg::backdrop { background: #000; }
dialog.lux-install-dlg .dlg-head { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
dialog.lux-install-dlg .dlg-actions:empty, dialog.lux-install-dlg .dstatus:empty { display: none; }
dialog.lux-install-dlg .dlg-body { padding: 0 !important; margin: 0 !important; }
.lux-install { max-width: 560px; margin: 0 auto; padding: 0 18px calc(28px + env(safe-area-inset-bottom)); }
/* sticky top bar: back · language · close (below Telegram's Close / ⋯ row) */
.lux-install .li-top {
  position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 10px;
  margin: 0 -18px 4px; padding: calc(10px + var(--tg-top, env(safe-area-inset-top, 0px))) 18px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-a) 70%, #000) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lux-install .li-back, .lux-install .li-close {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #F3D27A; padding: 0;
  border: 1.5px solid rgba(231, 196, 110, .8); background: color-mix(in srgb, var(--btn-b) 70%, #000); box-shadow: 0 0 10px rgba(255, 196, 77, .22);
}
.lux-install .li-back svg, .lux-install .li-close svg { width: 20px; height: 20px; }
.lux-install .li-top .li-lang { margin: 0; }
/* branding: logo ↓20 · LexiGlobal English ↓14 · Learner plaque ↓18 · ornament */
.lux-install .li-brand { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 6px; }
.lux-install .li-logo { display: block; width: clamp(92px, 12vw, 170px); height: auto; object-fit: contain; margin: 0 auto 20px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)) drop-shadow(0 0 14px rgba(255, 200, 80, .22)); }
.lux-install .li-title {
  margin: 0 0 14px; font-family: "Cinzel", "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
  font-size: min(32px, calc((100vw - 36px) / 10.6)); white-space: nowrap;
  background: linear-gradient(180deg, #FFF5D6 0%, #FCE5A0 18%, #D4A64D 43%, #FFF0BB 56%, #B88427 78%, #F4D88C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); padding: 0 .04em .06em;
}
.lux-install .li-learner { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 0 0 18px; }
.lux-install .li-ln { flex: 0 1 35px; height: 1px; background: linear-gradient(90deg, rgba(230, 189, 104, 0), #E6BD68); }
.lux-install .li-ln.r { background: linear-gradient(90deg, #E6BD68, rgba(230, 189, 104, 0)); }
.lux-install .li-plaque {
  display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 6px 40px; border-radius: 999px; border: 2px solid #E6BD68;
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-a) 92%, #000), color-mix(in srgb, var(--btn-b) 72%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 245, 205, .5), 0 0 12px rgba(216, 170, 76, .2), 0 5px 15px rgba(0, 0, 0, .25);
}
.lux-install .li-learner-t {
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 29px; letter-spacing: .03em; line-height: 1.1;
  background: linear-gradient(180deg, #FFF5D5, #E5B95B 55%, #B9852E); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding: 0 .08em .06em;
}
.lux-install .li-orn { display: block; width: 150px; height: auto; margin: -6px auto 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.lux-install .li-lead { margin: 12px 0 16px; }
@media (min-width: 768px) {
  .lux-install { max-width: 720px; }
  .lux-install .li-logo { width: 135px; }
  .lux-install .li-title { font-size: 54px; letter-spacing: -1px; }
  .lux-install .li-learner-t { font-size: 48px; letter-spacing: 1px; }
  .lux-install .li-plaque { padding: 6px 55px; }
  .lux-install .li-ln { flex-basis: 90px; }
  .lux-install .li-orn { width: 200px; }
}
@media (min-width: 1024px) {
  .lux-install { max-width: 860px; }
  .lux-install .li-logo { width: 170px; }
  .lux-install .li-title { font-size: 76px; letter-spacing: -1.5px; line-height: 1.12; }
  .lux-install .li-learner-t { font-size: 66px; letter-spacing: 2px; }
  .lux-install .li-ln { flex-basis: 160px; }
  .lux-install .li-orn { width: 240px; }
}
/* steps: numbers in the same font as the step text (Manrope / Kantumruy Pro for Khmer), bold; colours from the theme */
.lux-install .li-n { font-family: var(--sans) !important; font-weight: 800 !important; font-style: normal !important; font-size: .95rem !important;
  color: #F3D27A !important; background: color-mix(in srgb, var(--btn-b) 70%, #000) !important; line-height: 1; }
.lux-install .li-seg { background: color-mix(in srgb, var(--btn-b) 55%, rgba(0, 0, 0, .5)) !important; }
.lux-install .li-lang { background: color-mix(in srgb, var(--btn-b) 60%, rgba(0, 0, 0, .45)) !important; }
.lux-install .li-back:focus:not(:focus-visible), .lux-install .li-close:focus:not(:focus-visible) { outline: none; }
.lux-install .li-back:focus-visible, .lux-install .li-close:focus-visible { outline: 2px solid #F3D27A; outline-offset: 2px; }
.lux-install .li-top { background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; isolation: isolate; }
.lux-install .li-top::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-a) 72%, #000) 65%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent); }

/* Install window round 3 (owner 2026-11-11): flag language button + list for all languages, tighter branding,
   Khmer subtitle in the step font (bold, a bit bigger), language button restyled to match the gold round keys. */
.lux-install .li-lang {
  display: flex !important; align-items: center; gap: 10px; width: 100%; min-width: 0; height: 42px; padding: 0 14px !important; margin: 0 !important; cursor: pointer;
  border-radius: 999px !important; border: 1.5px solid rgba(231, 196, 110, .8) !important; color: #FFF8E6; font: 700 .95rem/1 var(--sans);
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-a) 88%, #fff 6%), color-mix(in srgb, var(--btn-b) 80%, #000)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .25), 0 0 10px rgba(255, 196, 77, .18) !important;
}
.lux-install .li-lang:hover { border-color: #F3D27A !important; }
.lux-install .li-lang .li-lang-n { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lux-install .li-lang .li-lang-c { color: #F3D27A; }
.lux-install .li-lang-f { font-family: "LexiFlags", "Segoe UI Emoji", "Apple Color Emoji", sans-serif !important; font-size: 1.25rem; line-height: 1; flex: none; }
/* language list (full window, theme colours) */
.lux-install .li-lpanel {
  position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; gap: 10px;
  padding: calc(10px + var(--tg-top, env(safe-area-inset-top, 0px))) max(18px, calc(50vw - 280px)) calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-a) 82%, #000), color-mix(in srgb, var(--btn-b) 60%, #000));
}
.lux-install .li-lpanel[hidden] { display: none; }
.lux-install .li-lp-head { display: flex; align-items: center; justify-content: space-between; }
.lux-install .li-lp-t { font: italic 700 1.6rem/1 "Cormorant Garamond", Georgia, serif; background: linear-gradient(180deg, #FFF5D5, #E5B95B 60%, #B9852E);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lux-install .li-lp-q { height: 44px; border-radius: 999px; padding: 0 16px; font: 600 .95rem var(--sans); color: #FFF8E6; outline: none;
  border: 1.5px solid rgba(231, 196, 110, .6); background: color-mix(in srgb, var(--btn-b) 55%, rgba(0, 0, 0, .45)); }
.lux-install .li-lp-q::placeholder { color: rgba(255, 248, 230, .55); }
.lux-install .li-lp-q:focus { border-color: #F3D27A; }
.lux-install .li-lp-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; border-radius: 16px; border: 1px solid rgba(231, 196, 110, .35);
  background: color-mix(in srgb, var(--btn-b) 45%, rgba(0, 0, 0, .35)); }
.lux-install .li-lp-list li + li { border-top: 1px solid rgba(231, 196, 110, .14); }
.lux-install .li-lp-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: none; cursor: pointer;
  color: #FFF8E6; font: 700 .95rem/1.25 var(--sans); text-align: left; }
.lux-install .li-lp-list button:hover { background: rgba(231, 196, 110, .1); }
.lux-install .li-lp-list .li-lp-n { flex: 1; min-width: 0; }
.lux-install .li-lp-list .li-lp-nat { color: rgba(255, 240, 210, .7); font-weight: 600; font-size: .9rem; text-align: right; }
.lux-install .li-lp-list button[aria-selected="true"] { background: linear-gradient(90deg, rgba(231, 196, 110, .28), rgba(231, 196, 110, .08)); box-shadow: inset 3px 0 0 #E7C46E; }
.lux-install .li-lp-list button[aria-selected="true"] .li-lp-n { color: #F3D27A; }
/* tighter branding: logo ↓12 · title ↓8 · Learner ↓6 · ornament */
.lux-install .li-brand { padding: 6px 0 2px; }
.lux-install .li-logo { margin-bottom: 12px !important; }
.lux-install .li-title { margin-bottom: 8px !important; letter-spacing: .01em; }
.lux-install .li-learner { margin-bottom: 4px !important; gap: 12px; }
.lux-install .li-plaque { padding: 3px 34px; }
.lux-install .li-orn { margin-top: 0 !important; }
/* subtitle: same font as the bold step titles (Manrope / Kantumruy Pro), a little bigger */
.lux-install .li-lead { font-family: var(--sans) !important; font-weight: 700 !important; font-size: 1.02rem !important; line-height: 1.45; color: #F7F0DE !important;
  margin: 10px 0 16px !important; }
@media (min-width: 768px) { .lux-install .li-lead { font-size: 1.15rem !important; } .lux-install .li-plaque { padding: 4px 50px; } }
.lux-install .li-title { letter-spacing: -.02em !important; }
.lux-install .li-lang:focus:not(:focus-visible), .lux-install .li-lp-list button:focus:not(:focus-visible) { outline: none; }
.lux-install .li-lang:focus-visible, .lux-install .li-lp-list button:focus-visible { outline: 2px solid #F3D27A; outline-offset: 2px; }

/* Install window round 4 (owner "fix all" on the 8.5/10 review): name shown once (emblem without text), compact phone
   branding so the steps come sooner, clearer gold button, readable hints, stronger plaque lines, gold scrollbar. */
.lux-install .li-emblem {
  display: block; width: 116px; margin: 0 auto 10px; padding: 2px; border-radius: 18px; line-height: 0;
  background: linear-gradient(135deg, #FFF3C4, #E2B04A 35%, #9A6814 60%, #F7DC82 85%, #B8841F);
  box-shadow: 0 0 16px rgba(255, 200, 80, .3), 0 8px 18px rgba(0, 0, 0, .45);
}
.lux-install .li-emblem .li-logo { width: 100% !important; height: auto !important; margin: 0 !important; border-radius: 16px; filter: none !important; }
.lux-install .li-title { margin-bottom: 6px !important; }
.lux-install .li-learner { margin-bottom: 0 !important; }
.lux-install .li-ln { flex: 0 1 56px !important; height: 1.5px !important; }
.lux-install .li-ln { background: linear-gradient(90deg, rgba(243, 210, 122, 0), #F3D27A 70%, #FFF1B8) !important; }
.lux-install .li-ln.r { background: linear-gradient(90deg, #FFF1B8, #F3D27A 30%, rgba(243, 210, 122, 0)) !important; }
.lux-install .li-orn { width: 124px !important; }
.lux-install .li-lead { margin: 6px 0 12px !important; }
.lux-install .li-go { padding: 10px 14px !important; }
.lux-install .li-go-t b { font-size: 1rem !important; line-height: 1.25; }
.lux-install .li-tx b { font-size: .95rem !important; }
.lux-install .li-tx small { font-size: .84rem !important; color: rgba(244, 236, 216, .74) !important; line-height: 1.45 !important; }
.lux-install .li-steps { margin-top: 12px !important; }
.lux-install .li-steps li { padding: 7px 0 !important; }
dialog.lux-install-dlg { scrollbar-width: thin; scrollbar-color: rgba(231, 196, 110, .6) transparent; }
dialog.lux-install-dlg::-webkit-scrollbar { width: 6px; }
dialog.lux-install-dlg::-webkit-scrollbar-thumb { background: rgba(231, 196, 110, .55); border-radius: 6px; }
@media (max-width: 767px) {
  .lux-install .li-learner-t { font-size: 27px !important; }
  .lux-install .li-plaque { padding: 2px 30px !important; }
}
@media (min-width: 768px) { .lux-install .li-emblem { width: 168px; border-radius: 22px; } .lux-install .li-emblem .li-logo { border-radius: 20px; }
  .lux-install .li-ln { flex-basis: 110px !important; } .lux-install .li-orn { width: 180px !important; } }
@media (min-width: 1024px) { .lux-install .li-emblem { width: 210px; } .lux-install .li-ln { flex-basis: 170px !important; } .lux-install .li-orn { width: 230px !important; } }

/* Offline Packs: 65-language picker (owner 2026-11-12 "user can select their 65 languages") */
.lux-offline .lo-h2 { margin-top: 14px !important; }
.lux-offline .lo-langbtn { margin: 6px 0 8px !important; }
.lux-offline .lo-soon { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; font: 600 .78rem/1.2 var(--sans);
  color: rgba(244, 236, 216, .62); border: 1px dashed rgba(214, 180, 106, .45); white-space: nowrap; }
.lux-offline .lo-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lux-offline .li-lp-list .li-lp-n { display: flex; flex-direction: column; gap: 2px; }
.lux-offline .li-lp-list .lo-st { font: 600 .72rem/1.2 var(--sans); color: rgba(244, 236, 216, .6); }
.lux-offline .li-lp-list button[aria-selected="true"] .lo-st { color: rgba(243, 210, 122, .85); }
/* owner 2026-11-12 "hide or remove": no Android / Windows app buttons in the Offline Packs window */
.lux-offline .lo-apps { display: none !important; }
.lux-offline .lo-list { max-height: none !important; overflow: visible !important; }
.lux-offline #loSel .lo-row { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
.lux-offline #loSel .lo-name b { white-space: nowrap; }
.lux-offline #loSel .lo-btns { justify-content: flex-start !important; }
/* Offline Packs: save into the app (owner 2026-11-12) */
.lux-offline .lo-save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  font: 800 .9rem/1.2 var(--sans); color: #20160A; border: 1px solid rgba(246, 236, 206, .7);
  background: linear-gradient(180deg, #EEE2BF 0%, #DCC594 45%, #C7A96A 80%, #B8995B 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 10px rgba(0, 0, 0, .3); }
.lux-offline .lo-save svg { width: 18px; height: 18px; }
.lux-offline .lo-save:disabled { cursor: default; opacity: .85; }
.lux-offline .lo-save.lo-saved { color: #DFF5E6; background: rgba(46, 125, 91, .28); border-color: rgba(120, 210, 160, .6); box-shadow: none; opacity: 1; }
.lux-offline .lo-online { border-style: solid; border-color: rgba(214, 180, 106, .3); }
.lux-offline #loSel .lo-btns { flex-direction: column; align-items: stretch; }
/* owner 2026-11-12 "erase logo": the globe + book emblem at the top of the Install window is hidden (delete to restore) */
.li-emblem { display: none !important; }
/* 2026-11-16: the one Install window says the installed app stays the newest version */
.lux-install .li-fresh { margin: 10px 0 0; font: 600 .8rem/1.4 "Manrope", sans-serif; color: #9FE0BE; text-align: center; }

/* 2026-11-21 install window: the second key (Windows installer from R2, desktop + Start-menu icon) */
.lux-install .li-go2 { margin-top: 10px; text-decoration: none; background: linear-gradient(180deg, #2A3D66, #1A2A4D) !important;
  color: #F4ECD8 !important; border-color: rgba(214,180,106,.55) !important; }
.lux-install .li-go2[hidden] { display: none; }
.lux-install .li-go2 .li-go-ic { background: rgba(214,180,106,.15); }
.lux-install .li-go2 .li-go-t small { text-transform: none; letter-spacing: 0; }
/* 2026-11-21: one-tap install key — its small line is a sentence (in 65 languages), not a caps label */
.lux-install .li-go.is-install .li-go-t small { text-transform: none; letter-spacing: 0; opacity: .8; }
/* 2026-11-21 (real Redmi Pad): Telegram's shortcut blocked by the phone → the reason right under the gold key */
.lux-install .li-hint { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; font: 600 .86rem/1.5 "Manrope", sans-serif; color: #F6E7C1;
  background: rgba(214, 180, 106, .14); border: 1px solid rgba(214, 180, 106, .45); }
.lux-install .li-hint[hidden] { display: none; }
