/* Settings — luxury first-class look (Claude Code 2026-11-07, owner: "resign more professional luxury first class").
   Theme colours only (tokens.css), so all 9 themes keep their palette. Loaded after screens.css; remove the <link> to restore. */

#v-settings, #v-settings .card, dialog.offpack-dlg {
  --lux-gold: color-mix(in srgb, var(--metal-text, var(--head)) 55%, #C9A24A);
  --lux-line: color-mix(in srgb, var(--lux-gold) 38%, transparent);
  --lux-glass: color-mix(in srgb, var(--surface) 92%, transparent);
}

/* title */
#v-settings .settings-title { font-size: 2.35rem; letter-spacing: .06em; }
#v-settings .title-orn { width: min(220px, 64%); margin-top: 8px; }
#v-settings .title-orn .orn-line { background: linear-gradient(90deg, transparent, var(--lux-gold)); }
#v-settings .title-orn .orn-line.r { background: linear-gradient(90deg, var(--lux-gold), transparent); }

/* group cards: glass surface, gold hairline, soft depth */
#v-settings .sgroup {
  position: relative; margin-top: 12px; border-radius: 20px; border: 1px solid var(--lux-line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hi) 55%, transparent), transparent 46px),
    var(--lux-glass);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--hi) 70%, transparent) inset,
              0 10px 28px -14px color-mix(in srgb, var(--head) 40%, transparent),
              0 2px 6px -2px color-mix(in srgb, var(--head) 18%, transparent);
  overflow: hidden;
}
#v-settings .sgroup::before {             /* thin gold line along the top edge */
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lux-gold), transparent); opacity: .7;
}

/* group header: medallion · serif title · round chevron */
#v-settings .group-head {
  grid-template-columns: auto minmax(0, 1fr) auto !important; grid-template-areas: "ico title chev" !important;
  gap: 0 14px; min-height: 64px; padding: 12px 16px;
}
#v-settings .group-head:not(:has(.sg-ico)) { grid-template-areas: "title title chev" !important; }
#v-settings .sg-ico {
  grid-area: ico; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: color-mix(in srgb, var(--lux-gold) 70%, #3a2a05);
  background: radial-gradient(circle at 32% 28%, #FFF8E6, #F1D88F 42%, #C9A24A 78%, #9A7428);
  box-shadow: 0 0 0 1px color-mix(in srgb, #8A6A22 55%, transparent), 0 3px 8px -2px rgba(120, 88, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .7);
}
#v-settings .sg-ico .ic { width: 19px; height: 19px; color: #5A4210; }
#v-settings .group-head .h-card { font: 600 1.42rem/1.15 var(--serif); letter-spacing: .015em; color: var(--head); }
#v-settings .group-head .chev {
  width: 30px; height: 30px; padding: 7px; border-radius: 50%; color: var(--head);
  background: color-mix(in srgb, var(--chip-bg, var(--hi)) 80%, transparent); border: 1px solid var(--lux-line);
}
#v-settings .group-head[aria-expanded="true"] { border-bottom: 1px solid var(--lux-line); }
#v-settings .group-head[aria-expanded="true"] .chev { background: linear-gradient(180deg, var(--nav-a), var(--nav-b)); color: var(--nav-ink); border-color: transparent; }

/* rows: inset hairlines, value as a soft pill */
#v-settings .group-body > * + * { border-top: 0 !important; box-shadow: 0 -1px 0 color-mix(in srgb, var(--hairline) 90%, transparent); margin: 0 16px; padding-left: 0; padding-right: 0; width: calc(100% - 32px); box-sizing: border-box; }
#v-settings .group-body > .row-btn:first-child, #v-settings .group-body > .row-static:first-child { margin: 0 16px; padding-left: 0; padding-right: 0; width: calc(100% - 32px); box-sizing: border-box; }
#v-settings .row-btn, #v-settings .row-static { min-height: 56px; font: 600 .98rem/1.35 var(--sans); color: var(--text); }
#v-settings .row-btn .val, #v-settings .row-static .val {
  font: 600 .84rem/1.2 var(--sans); color: var(--head); padding: 6px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--chip-bg, var(--hi)) 75%, transparent); border: 1px solid var(--lux-line);
}
#v-settings .row-btn .val:empty { display: none; }
#v-settings .row-btn .chev { color: var(--lux-gold); }
#v-settings .row-btn:hover { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hi) 60%, transparent), transparent); }
#v-settings .editor { margin: 0 !important; padding: 6px 16px 16px; }

/* reset button and other buttons inside groups */
#v-settings .group-body .btn { border-radius: 999px; }

/* profile card */
#v-settings .profile { min-height: 84px; padding: 14px 16px; gap: 16px; }
#v-settings .avatar {
  width: 58px; height: 58px; font: 700 1.3rem/1 var(--serif); color: #3A2A05;
  background: radial-gradient(circle at 34% 28%, #FFF8E6, #F1D88F 40%, #C9A24A 75%, #8E6A22);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px #C9A24A, 0 6px 14px -4px rgba(120, 88, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .7);
}
#v-settings .profile .name { font: 600 1.45rem/1.15 var(--serif); letter-spacing: .01em; }
#v-settings .profile .tag {
  font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
  color: #5A4210; border: 1px solid rgba(154, 116, 40, .55);
  background: linear-gradient(180deg, #FFF6DC, #F0D894);
}
#v-settings .profile .chev { width: 18px; height: 18px; color: var(--lux-gold); }

/* the menu (…) and footer */
#v-settings .overflow .icon-btn { border-radius: 50%; border: 1px solid var(--lux-line); }

/* ------------------------------------------------------------------ Offline dictionary dialog */
dialog.offpack-dlg { border-radius: 22px; border: 1px solid color-mix(in srgb, #C9A24A 45%, transparent); }
.offpack-hero { display: flex; gap: 14px; align-items: flex-start; }
.offpack-hero p { margin: 0; line-height: 1.5; }
.offpack-medal {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF8E6, #F1D88F 42%, #C9A24A 78%, #9A7428);
  box-shadow: 0 0 0 1px rgba(138, 106, 34, .55), 0 4px 10px -3px rgba(120, 88, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.offpack-medal .ic { width: 21px; height: 21px; color: #5A4210; }
.offpack-tiers { display: grid; gap: 10px; margin: 16px 0 10px; }
.offpack-tier {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); transition: border-color .15s, box-shadow .15s, background .15s;
}
.offpack-tier input { accent-color: #C9A24A; width: 18px; height: 18px; margin: 0; flex: none; }
.offpack-tier-t { display: grid; gap: 3px; flex: 1; min-width: 0; }
.offpack-tier-t b { font: 700 1.02rem/1.2 var(--sans); }
.offpack-tier-t small { opacity: .78; font-size: .82rem; }
.offpack-tier:has(input:checked) { border-color: #C9A24A; box-shadow: 0 0 0 1px #C9A24A inset, 0 6px 16px -10px rgba(201, 162, 74, .9); }
.offpack-tick {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  font: 700 .76rem/1 var(--sans); color: #0B5D3B; background: linear-gradient(180deg, #E4F8EE, #BDEBD3); border: 1px solid #5CC495;
}
.offpack-tick .ic { width: 13px; height: 13px; }
.offpack-tier.is-saved { background: color-mix(in srgb, #34D3A0 9%, transparent); }
.offpack-bar { height: 8px; border-radius: 6px; background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; margin: 6px 0 8px; }
.offpack-fill { height: 100%; width: 0; background: linear-gradient(90deg, #34D3A0, #F2C14E); transition: width .3s; }
.offpack-status { margin: 4px 0 0; font-size: .9rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.offpack-status.ok { color: #1D9E6B; }
.offpack-status .ic { width: 16px; height: 16px; }
.offpack-note { margin: 6px 0 0; font-size: .8rem; opacity: .7; }
dialog.offpack-dlg #offGo:disabled { opacity: 1; filter: saturate(.85); }
dialog.offpack-dlg #offGo .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.offpack-flag { font-family: "LexiFlags", sans-serif; }
#v-settings .group-body > .editor { width: 100% !important; margin: 0 !important; box-shadow: none; }
#v-settings .row-btn .val, #v-settings .row-static .val { white-space: nowrap; }
.offpack-tick { flex-direction: row; }
.offpack-tick .ic { display: inline-block; flex: none; }
.offpack-tier .offpack-tick { display: inline-flex; }
.offpack-tier .offpack-tick[hidden] { display: none; }

/* Claude Code 2026-11-07 (owner: "first home page view should show LexiGlobal on the top" → "remove the empty gap"):
   inside Telegram the frame already starts below Telegram's own top row, so the brand header adds no extra space */
html.tg .brand-header { padding-top: 0 !important; margin-top: 0 !important; }
html.tg body[data-route="home"] .app { padding-top: max(env(safe-area-inset-top, 0px), var(--tg-top, 0px)) !important; }

/* Claude Code 2026-11-07 (owner: "fix this all the time … redesign, professional, luxury first class, save space"): the user's
   name is a slim gold ribbon set into the top edge of the bottom bar (src/components/UserPlaque.js) — always visible, takes
   no space in the page; the old plaque at the end of each page is hidden (tap the ribbon to change the name). */
html.has-name-ribbon .credit { display: none !important; }
.bottom-nav { overflow: visible; }
html.has-name-ribbon .bottom-nav { padding-top: 9px; }
.name-ribbon {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -52%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; max-width: min(78%, 320px); height: 24px; padding: 0 14px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 600 .74rem/1 "Cormorant Garamond", var(--serif, Georgia, serif); letter-spacing: .22em; text-transform: uppercase;
  color: #F6E2A8; background: linear-gradient(180deg, #1C2D52, #0F1A33);
  border: 1px solid rgba(214, 178, 96, .85);
  box-shadow: 0 0 0 2px rgba(15, 26, 51, .55), 0 4px 12px -4px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 236, 190, .25);
}
.name-ribbon .nr-name { overflow: hidden; text-overflow: ellipsis; font-size: .82rem; font-weight: 700;
  background: linear-gradient(180deg, #FFF3CF, #E9C875 55%, #C79A3E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.name-ribbon .nr-gem { flex: none; width: 5px; height: 5px; transform: rotate(45deg); background: linear-gradient(135deg, #FFF3CF, #C79A3E); box-shadow: 0 0 4px rgba(233, 200, 117, .6); }
.name-ribbon.is-placeholder .nr-name { font-weight: 600; opacity: .85; letter-spacing: .14em; }
.name-ribbon:hover { border-color: #F2D58A; }
.name-ribbon:focus-visible { outline: 2px solid #F2D58A; outline-offset: 2px; }
/* the bar is 9 px taller and the ribbon rises 12 px above it: pages end above both */
html.has-name-ribbon .app { padding-bottom: calc(var(--nav-h, 60px) + var(--nav-float, 0px) + var(--safe-b, 0px) + 32px) !important; }

/* Download app dialog (Claude Code 2026-11-08) */
#v-settings .row-apps .lbl { font-weight: 700; color: var(--head); }
.offapps p { margin: 0 0 10px; line-height: 1.5; }
.offapps-list { display: grid; gap: 10px; margin: 12px 0; }
.offapps-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1px solid rgba(201, 162, 74, .7); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #fff), var(--surface)); color: var(--text);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .45); }
.offapps-btn:hover { border-color: #C9A24A; }
.offapps-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF8E6, #F1D88F 42%, #C9A24A 78%, #9A7428); box-shadow: 0 0 0 1px rgba(138, 106, 34, .55); }
.offapps-ico .ic { width: 21px; height: 21px; color: #5A4210; }
.offapps-t { display: grid; gap: 2px; } .offapps-t b { font-size: 1.06rem; } .offapps-t small { opacity: .75; font-size: .82rem; }
.offapps-steps { margin: 6px 0 10px 18px; padding: 0; display: grid; gap: 6px; line-height: 1.45; }
.offapps-note { font-size: .82rem; opacity: .75; }

/* Back / Exit keys (Claude Code 2026-11-08, owner: "add exit word or key in order back to original place user") */
#v-settings .set-back { position: absolute; left: 0; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; max-width: 34%; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--lux-gold, #C9A24A); background: var(--lux-card, rgba(255,255,255,.9)); color: var(--head, #14223f);
  font: 600 .95rem/1 var(--sans); box-shadow: 0 2px 8px rgba(20,34,63,.12); }
#v-settings .set-back-ar { font-size: 1.5rem; line-height: .8; margin-top: -2px; color: var(--lux-gold, #C9A24A); }
#v-settings .set-back-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v-settings .set-back:active, #v-settings .set-exit:active { transform: translateY(1px); }
#v-settings .set-exit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px;
  margin: 14px 0 6px; border-radius: 16px; cursor: pointer; border: 1px solid var(--lux-gold, #C9A24A);
  background: linear-gradient(180deg, #1E2C4A, #14223f); color: #F3E2B3; font: 600 1rem/1.2 var(--sans); letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(20,34,63,.25), inset 0 1px 0 rgba(255,255,255,.12); }
#v-settings .set-exit span { font-size: 1.4rem; line-height: .8; color: #E8C76A; }
@media (max-width: 380px) { #v-settings .set-back { padding: 0 10px 0 8px; font-size: .88rem; } }
#v-settings .settings-head:has(.set-back) { padding-top: 52px; }
#v-settings .settings-head .set-back { top: 4px; }
#v-settings .settings-head .overflow { top: 4px; }

/* Bottom bar current key (Claude Code 2026-11-08, owner: "fix this bad appearance key"): the gold capsule now holds BOTH the
   icon and the label (it was a small pill behind the icon that the name ribbon's padding pushed off the icon, label outside). */
.bottom-nav a { align-self: stretch; }
.bottom-nav a::before { top: 3px; bottom: 3px; left: 12%; right: 12%; width: auto; height: auto; margin-left: 0; border-radius: 16px; }
.bottom-nav a[aria-current="page"]::before {
  background: linear-gradient(180deg, #FBEFC6, #E3C373 52%, #BE9440);
  box-shadow: 0 0 0 1px #9C7428, 0 6px 14px -6px rgba(120, 88, 20, .75), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(120, 88, 20, .25);
}
.bottom-nav a[aria-current="page"] .ic, .bottom-nav a[aria-current="page"] span { position: relative; z-index: 1; color: #14223F; }
.bottom-nav a[aria-current="page"] .ic { transform: none; }
.bottom-nav a[aria-current="page"] span { font-weight: 800; letter-spacing: .03em; }
/* fixed sizes: the bar must fit its height whatever the reading text size (20 px text made the label 21 px tall) */
#bottomNav a { font-size: 12px; line-height: 14px; gap: 3px; }
#bottomNav a .ic { width: 22px; height: 22px; }
@media (min-width: 700px) {
  #bottomNav a { font-size: 13px; line-height: 15px; }
  #bottomNav a .ic { width: 24px; height: 24px; }
  .bottom-nav a::before { left: 24%; right: 24%; }
}

/* 2026-11-09 owner: "hide saved words" — the Saved words card on Home is hidden (the Saved page and the bottom-bar Saved key stay).
   Delete this rule to show it again. */
#v-home .saved-card { display: none !important; }
/* 2026-11-09 owner: "hide" — the My Space subtitle "Personalize photo & study music" on Home */
#v-home #msRowS { display: none !important; }
/* 2026-11-09 owner: "hide" — the My Space banner line "Your personalized study space & background" on Home */
#v-home .ms-banner-hint { display: none !important; }

/* 2026-11-09 owner: "redesign luxury, minimize space, buttons not too big and not in front of the photo" — My Space card on Home.
   One compact row: the photo becomes a small gold-ringed thumbnail on the left; title + Open on the right; the three options sit
   under the title as small gold-outline pills (no longer on the photo). Pure CSS (markup unchanged; clicks still open My Space). */


/* 2026-11-09 owner: "on phone minimise the 6 cards and enlarge My Space to full screen, for all phones".
   Phones: each shortcut card = icon + title on one line, short subtitle under it; My Space (large photo banner) fills the rest. */
@media (max-width: 599px) {
  #v-home .shortcuts { gap: .4rem; }
  #v-home .shortcuts .shortcut { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .45rem; row-gap: .1rem;
    align-items: center; justify-items: start; text-align: left; padding: .5rem .6rem; min-height: 0; }
  #v-home .shortcuts .shortcut > .ic { grid-row: 1 / span 2; width: 1.15rem; height: 1.15rem; margin: 0; }
  #v-home .shortcuts .shortcut .t { font-size: .72rem; line-height: 1.15; white-space: nowrap; max-width: 100%; letter-spacing: -.005em; }
  #v-home .shortcuts .shortcut .t .ic { width: .7rem; height: .7rem; }
  #v-home .shortcuts .shortcut .s { font-size: .54rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #v-home .shortcuts .shortcut .t .ic { display: none; }
  #v-home section.card.myspace { flex: 1 1 auto; min-height: 14rem; }
  #v-home section.card.myspace .ms-banner { flex: 1 1 auto; min-height: 9rem; }
}
@media (max-width: 360px) { #v-home .shortcuts .shortcut .t { font-size: .66rem; } #v-home .shortcuts .shortcut { padding: .45rem .5rem; } }

/* 2026-11-09 owner: "4D luxury button key" — My Space Photo / MP3 Music / Themes keys: raised gold metal (bevel + depth + soft glow) */
#v-home .myspace .ms-chip { position: relative; display: inline-flex; align-items: center; gap: .25rem; padding: .32rem .58rem .36rem; white-space: nowrap;
  border-radius: .7rem; font: 700 .6rem/1.1 var(--sans); letter-spacing: .02em; color: #1E2C4A; text-shadow: 0 1px 0 rgba(255, 248, 225, .55);
  background: linear-gradient(180deg, #FBEBB6 0%, #EBCB7A 38%, #C99A3E 72%, #A97A27 100%);
  border: 1px solid #8A6A2E;
  box-shadow: inset 0 1px 0 rgba(255, 252, 235, .85), inset 0 -2px 0 rgba(110, 82, 33, .55), 0 3px 0 #6E5221, 0 6px 14px rgba(0, 0, 0, .38), 0 0 12px rgba(243, 213, 138, .25);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .12s ease, box-shadow .12s ease; }
#v-home .myspace .ms-chip::after { content: ""; position: absolute; left: 10%; right: 10%; top: 2px; height: 40%; border-radius: .6rem .6rem 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
#v-home .myspace .ms-chip .ic { width: .72rem; height: .72rem; color: #1E2C4A; filter: drop-shadow(0 1px 0 rgba(255, 248, 225, .5)); }
#v-home .myspace .ms-banner:hover .ms-chip { box-shadow: inset 0 1px 0 rgba(255, 252, 235, .9), inset 0 -2px 0 rgba(110, 82, 33, .55), 0 3px 0 #6E5221, 0 8px 18px rgba(0, 0, 0, .42), 0 0 16px rgba(243, 213, 138, .4); }
#v-home .myspace .ms-banner:active .ms-chip { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 252, 235, .7), inset 0 -1px 0 rgba(110, 82, 33, .5), 0 1px 0 #6E5221, 0 3px 8px rgba(0, 0, 0, .35); }
#v-home .myspace .ms-banner-chips { gap: .35rem; padding-bottom: 3px; flex-wrap: nowrap; }

/* 2026-11-09 owner: "hide this [Theme], pull Learn English up" — the header Theme key is hidden (themes stay in Settings and My Space);
   the empty actions box is removed, so the "Learn English in 65+ languages" row moves up under the logo. */
#themeBtn { display: none !important; }
.brand-row .brand-actions:not(:has(> :not(#themeBtn))) { display: none !important; }
.brand-header .lang-row { margin-top: .15rem; }

/* 2026-11-09 owner: "try first, luxury and first class" — header in two tidy lines:
   line 1 = logo (left) + language key (right, where Theme was); line 2 = "Learn English in 65+ languages ›" as one quiet subtitle line. */
#brandHeader.brand-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand pick" "langs langs"; align-items: center; column-gap: .6rem; row-gap: .1rem; }
#brandHeader .brand-row, #brandHeader .lang-row { display: contents; }
#brandHeader .brand-row .brand { grid-area: brand; min-width: 0; }
#brandHeader .brand-actions { display: none !important; }
#brandHeader #langPick { grid-area: pick; justify-self: end; align-self: center; height: auto; min-height: 0; padding: .32rem .7rem .34rem .8rem; gap: .3rem;
  border-radius: 999px; font: 700 .66rem/1 var(--sans); letter-spacing: .04em; color: #F6E7BF;
  background: linear-gradient(180deg, rgba(36, 56, 98, .92), rgba(14, 26, 50, .92));
  border: 1px solid rgba(243, 213, 138, .6);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .28), 0 4px 12px rgba(0, 0, 0, .35), 0 0 10px rgba(243, 213, 138, .14); }
#brandHeader #langPick .ic { width: .7rem; height: .7rem; color: #F3D58A; }
#brandHeader #langsBtn { grid-area: langs; justify-self: start; display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .15rem .1rem;
  background: none; border: 0; box-shadow: none; white-space: nowrap; font: 500 .66rem/1.2 var(--sans); letter-spacing: .06em; color: rgba(246, 231, 191, .82); }
#brandHeader #langsBtn > span { white-space: nowrap; }
#brandHeader #langsBtn .ic { width: .72rem; height: .72rem; color: #D9B25A; opacity: .9; }
#brandHeader #langsBtn:hover { color: #F6E7BF; }
#brandHeader .brand .wm-name, #brandHeader .brand .wm-tag { white-space: nowrap; }
@media (max-width: 599px) {
  #brandHeader .brand { gap: .45rem; }
  #brandHeader .brand img { width: 3.1rem; height: auto; }
  #brandHeader .brand .wm-name { font-size: min(1.9rem, 8.4vw); line-height: 1; }
  #brandHeader .brand .wm-tag { font-size: min(.62rem, 2.75vw); letter-spacing: .14em; }
}

/* 2026-11-09 owner: "check all themes, text colour cannot be seen" — the header pill must beat the older `background: none !important`
   rules (screens.css 791, royal-navy 1064), and the subtitle line follows light / dark themes. */
html #brandHeader #langPick { background: linear-gradient(180deg, #24385F, #0E1A32) !important; color: #F6E7BF !important;
  border: 1px solid rgba(243, 213, 138, .7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .28), 0 4px 12px rgba(0, 0, 0, .25), 0 0 10px rgba(243, 213, 138, .14) !important;
  min-height: 0 !important; padding: .34rem .72rem .36rem .82rem !important; font-size: .66rem !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html #brandHeader #langPick .ic { color: #F3D58A !important; }
:root:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #brandHeader #langsBtn { color: #24365C; }
:root:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #brandHeader #langsBtn .ic { color: #A97A27; opacity: 1; }
:root:is([data-theme="champagne-ivory"], [data-theme="pearl-gold"], [data-theme="silver-platinum"], [data-theme="lavender-platinum"], [data-theme="sapphire-silver"]) #brandHeader #langsBtn:hover { color: #0E1A32; }

/* 2026-11-09 owner: "try first — glass bar" (replaces the 4D gold keys): one slim frosted-glass strip across the bottom of the photo,
   thin gold top edge, three evenly spaced items (gold icon + ivory label) split by fine gold dividers. */
#v-home .myspace .ms-banner-content { padding: 0 .5rem .5rem; }
#v-home .myspace .ms-banner-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; padding: 0;
  border-radius: .85rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 26, 50, .52), rgba(8, 16, 34, .72));
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(243, 213, 138, .22); border-top: 1px solid rgba(243, 213, 138, .7);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .18), 0 8px 20px rgba(0, 0, 0, .3); }
#v-home .myspace .ms-chip { justify-content: center; gap: .32rem; padding: .55rem .2rem; margin: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); transform: none;
  font: 600 .62rem/1.1 var(--sans); letter-spacing: .05em; color: #F5EEDC; white-space: nowrap; }
#v-home .myspace .ms-chip + .ms-chip { border-left: 1px solid rgba(243, 213, 138, .32); }
#v-home .myspace .ms-chip::after { content: none; }
#v-home .myspace .ms-chip .ic { width: .78rem; height: .78rem; color: #E9C877; filter: none; }
#v-home .myspace .ms-banner:hover .ms-chip, #v-home .myspace .ms-banner:active .ms-chip { box-shadow: none; transform: none; }
#v-home .myspace .ms-banner:hover .ms-banner-chips { border-top-color: rgba(243, 213, 138, .95); }

/* 2026-11-09 owner: "try it" — bottom bar matches the glass bar: frosted navy with a thin gold top line; the active key has no
   solid block (gold icon + gold label + small gold line underneath, faint glow); other keys soft ivory. The name ribbon leaves
   the bar (option b: the name is shown in My Space as "<name>’s Space"). */
/* 2026-11-09 owner: "I love this style" — the name ribbon stays on the bottom bar (not hidden) */
#bottomNav.bottom-nav { background: linear-gradient(180deg, rgba(16, 30, 58, .78), rgba(8, 16, 34, .9)) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(243, 213, 138, .18) !important; border-top: 1px solid rgba(243, 213, 138, .6) !important;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .12), 0 -6px 24px rgba(0, 0, 0, .28) !important; }
#bottomNav.bottom-nav a::before { display: none !important; }
#bottomNav.bottom-nav a { color: rgba(245, 238, 220, .72) !important; position: relative; }
#bottomNav.bottom-nav a .ic { color: rgba(245, 238, 220, .72) !important; }
#bottomNav.bottom-nav a span { font-weight: 600 !important; letter-spacing: .03em; }
#bottomNav.bottom-nav a[aria-current="page"] { color: #F3D58A !important; }
#bottomNav.bottom-nav a[aria-current="page"] .ic { color: #F3D58A !important; filter: drop-shadow(0 0 6px rgba(243, 213, 138, .45)); }
#bottomNav.bottom-nav a[aria-current="page"] span { color: #F3D58A !important; font-weight: 700 !important; text-shadow: 0 0 10px rgba(243, 213, 138, .35); }
#bottomNav.bottom-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 1.4rem; height: 2px; margin-left: -.7rem;
  border-radius: 2px; background: linear-gradient(90deg, rgba(243, 213, 138, 0), #F3D58A, rgba(243, 213, 138, 0)); box-shadow: 0 0 8px rgba(243, 213, 138, .6); }
/* My Space title with the name; "Add your name" link when there is none */
#v-home #msRowS.ms-addname:not([hidden]) { display: inline-flex !important; align-items: center; gap: .25rem; margin-top: .1rem; cursor: pointer;
  font: 600 .62rem/1.2 var(--sans); letter-spacing: .05em; color: #D9B25A; text-decoration: underline; text-decoration-color: rgba(217, 178, 90, .45); text-underline-offset: 3px; }
/* 2026-11-09 fix: the two-line header grid above must not show the header on full-screen pages (Settings, Voice Studio,
   Live Meeting, Recorder, My Space) — base.css hides [data-variant="none"], but the grid rule above won by specificity */
#brandHeader.brand-header[data-variant="none"] { display: none !important; }

/* ---- Offline dictionary: 65 languages, text + voice (Claude Code 2026-11-12) ---- */
dialog.offpack-dlg .dlg-body { position: relative; }
.op-flag { font-family: "LexiFlags", sans-serif; font-size: 1.35rem; line-height: 1; flex: none; }
.op-lang { display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0 10px; padding: 10px 14px; min-height: 60px; text-align: left; cursor: pointer;
  color: inherit; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px #C9AE76; }
.op-lang:hover { background: rgba(255, 255, 255, .1); }
.op-lang .op-flag { font-size: 1.7rem; }
.op-lang-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.op-lang-t small { font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.op-lang-t b { font: 700 1.1rem/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-lang-c .ic { width: 18px; height: 18px; color: #E4D2A0; }
.op-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font: 700 .72rem/1 var(--sans); white-space: nowrap; }
.op-chip.ok { color: #0F5E3F; background: #DFF5E6; }
.op-chip .ic { width: 12px; height: 12px; }
.op-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op-part { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; cursor: pointer; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(201, 174, 118, .45); }
.op-part:has(input:checked) { background: rgba(201, 174, 118, .12); box-shadow: inset 0 0 0 1.5px #C9AE76; }
.op-part input { accent-color: #C9A24A; width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.op-part-t { display: grid; gap: 3px; min-width: 0; }
.op-part-t b { display: inline-flex; align-items: center; gap: 6px; font: 700 .98rem/1.2 var(--sans); }
.op-part-t b .ic { width: 16px; height: 16px; color: #E4D2A0; }
.op-part-t small { font-size: .78rem; line-height: 1.35; opacity: .78; }
.op-saved { margin: 12px 0 2px; padding: 10px 12px; border-radius: 14px; background: rgba(52, 211, 160, .07); box-shadow: inset 0 0 0 1px rgba(52, 211, 160, .3); }
.op-saved-h { display: block; margin-bottom: 4px; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8FE3BE; }
.op-saved-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.op-saved-row + .op-saved-row { border-top: 1px solid rgba(255, 255, 255, .08); }
.op-saved-n { flex: 1; display: grid; gap: 2px; font: 600 .95rem/1.2 var(--sans); }
.op-saved-n small { font-weight: 500; font-size: .76rem; opacity: .7; }
.op-del { min-width: 40px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer; color: #C8CDD6; background: none; font: 700 .76rem/1 var(--sans); }
.op-del .ic { width: 18px; height: 18px; }
.op-del:hover { color: #FFB3B3; background: rgba(180, 35, 47, .15); }
.op-del.is-armed { color: #fff; background: #B4232F; }
/* the language list covers the dialog body */
.op-panel { position: absolute; inset: -6px -4px; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 6px 4px;
  background: color-mix(in srgb, var(--vt-base, #13213B) 96%, #000); border-radius: 14px; }
.op-panel[hidden] { display: none; }
.op-panel-top { display: flex; gap: 8px; align-items: center; }
.op-back { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer; color: #E4D2A0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(201, 174, 118, .7); }
.op-back .ic { width: 18px; height: 18px; }
.op-panel input[type="search"] { flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border: 0; border-radius: 12px; font: 500 .95rem/1 var(--sans); color: #1C2433; background: #FFFDF6; box-shadow: inset 0 0 0 1.5px #C9AE76; }
.op-list { list-style: none; margin: 0; padding: 0 2px; overflow: auto; flex: 1; min-height: 0; }
.op-list li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 12px; cursor: pointer; }
.op-list li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.op-list li:hover, .op-list li:focus-visible { background: rgba(201, 174, 118, .12); outline: none; }
.op-list li[aria-selected="true"] { background: rgba(201, 174, 118, .2); box-shadow: inset 0 0 0 1.5px #C9AE76; }
.op-ln { flex: 1; min-width: 0; display: grid; gap: 1px; }
.op-ln b { font: 700 .95rem/1.2 var(--sans); }
.op-ln small { font-size: .78rem; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font: 700 .7rem/1 var(--sans); white-space: nowrap; color: #E4D2A0; box-shadow: inset 0 0 0 1px rgba(201, 174, 118, .55); }
.op-st.ok { color: #0F5E3F; background: #DFF5E6; box-shadow: none; }
.op-st.dim { opacity: .55; }
.op-st .ic { width: 12px; height: 12px; }
.op-none { opacity: .7; justify-content: center; }
@media (max-width: 420px) { .op-parts { grid-template-columns: 1fr; } }
/* saved languages: expand / collapse (2026-11-12) */
.op-saved-tog { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 0; min-height: 44px; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.op-saved-tog .op-saved-h { margin: 0; flex: none; }
.op-saved-sum { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.op-saved-sum small { font: 600 .76rem/1.2 var(--sans); opacity: .8; white-space: nowrap; }
.op-saved-flags { display: inline-flex; align-items: center; overflow: hidden; }
.op-saved-flags .op-flag { font-size: 1.05rem; margin-left: -3px; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .5)); }
.op-saved.is-open .op-saved-flags { display: none; }
.op-more { margin-left: 4px; font: 700 .7rem/1 var(--sans); opacity: .8; }
.op-saved-chev { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(143, 227, 190, .6); transition: transform .2s; }
.op-saved-chev .ic { width: 16px; height: 16px; color: #8FE3BE; }
.op-saved.is-open .op-saved-chev { transform: rotate(180deg); }
.op-saved-list { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.op-saved-list[hidden] { display: none; }
@media (max-width: 380px) { .op-saved-sum small { display: none; } }
/* two lines: title, then flags + count; the round key on the right */
dialog.offpack-dlg .op-saved-tog { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; align-items: center; }
dialog.offpack-dlg .op-saved-tog .op-saved-h { grid-column: 1; grid-row: 1; display: block; }
dialog.offpack-dlg .op-saved-sum { grid-column: 1; grid-row: 2; justify-content: flex-start; }
dialog.offpack-dlg .op-saved-chev { grid-column: 2; grid-row: 1 / span 2; }
dialog.offpack-dlg .op-saved.is-open .op-saved-sum { display: none; }
dialog.offpack-dlg .op-saved.is-open .op-saved-tog { grid-template-rows: auto; }
dialog.offpack-dlg .op-saved-flags .op-flag { margin-left: 0; margin-right: 3px; }
/* owner 2026-11-12 "hide": closed = only the title + the round key; open = the full list */
dialog.offpack-dlg .op-saved-sum { display: none !important; }
dialog.offpack-dlg .op-saved-tog { grid-template-rows: auto; }
dialog.offpack-dlg .op-saved-chev { grid-row: 1; }
/* owner 2026-11-12: ✓ Text / ✓ Voice instead of the delete key */
.op-ticks { display: inline-flex; gap: 6px; flex: none; }
.op-tk { display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 999px; font: 700 .72rem/1 var(--sans); white-space: nowrap; color: rgba(244, 238, 223, .55); box-shadow: inset 0 0 0 1px rgba(244, 238, 223, .25); }
.op-tk.ok { color: #0F5E3F; background: #DFF5E6; box-shadow: none; }
.op-tk .ic { width: 12px; height: 12px; }
/* owner 2026-11-12 "use only symbol": round icon keys — book = text, speaker = voice; green fill = saved, outline = not saved */
.op-ticks { gap: 8px; }
.op-tk { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; }
.op-tk .ic { width: 17px; height: 17px; }
.op-tk.ok { color: #0F5E3F; background: #DFF5E6; }
/* owner 2026-11-12: "Word pack" — the three sizes open / close under one header */
.op-size { margin: 12px 0 8px; padding: 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1.5px #C9AE76; }
.op-size-tog { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; width: 100%; min-height: 52px; padding: 4px 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; align-items: center; }
.op-size-h { grid-column: 1; grid-row: 1; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #E4D2A0; }
.op-size-now { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.op-size-now b { font: 700 1.02rem/1.2 var(--sans); }
.op-size-now small { font-size: .82rem; opacity: .78; }
.op-size-now .offpack-tick { display: inline-flex; }
.op-size .op-saved-chev { grid-column: 2; grid-row: 1 / span 2; box-shadow: inset 0 0 0 1.5px rgba(228, 210, 160, .7); }
.op-size .op-saved-chev .ic { color: #E4D2A0; }
.op-size.is-open .op-saved-chev { transform: rotate(180deg); }
.op-size.is-open .op-size-now { display: none; }
.op-size .offpack-tiers { margin: 6px 0 6px; }
.op-size .offpack-tiers[hidden] { display: none; }
/* owner 2026-11-12 "3 different cards with our background like Home": the My Space photo under a theme veil (as on Home),
   and three Home-style cards — Language (+ Text / Voice), Word pack, Saved on this device — flat theme colour, calm gold line */
dialog.offpack-dlg.op-photo {
  --one: color-mix(in srgb, var(--btn-a, #1B3155) 80%, #000);
  background: linear-gradient(180deg, color-mix(in srgb, var(--vt-base, #0E1A33) 70%, transparent), color-mix(in srgb, var(--vt-base, #0E1A33) 86%, transparent)),
    var(--op-photo, none) center / cover no-repeat, var(--vt-base, #0E1A33) !important;
}
dialog.offpack-dlg.op-photo .op-card { margin: 12px 0; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--one) 92%, transparent) !important;
  box-shadow: inset 0 0 0 1.5px #C9AE76, 0 10px 26px rgba(0, 0, 0, .3) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.offpack-dlg.op-photo .op-card-lang .op-lang { margin: 0 0 10px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(201, 174, 118, .55); }
dialog.offpack-dlg.op-photo .op-card .op-part { background: rgba(255, 255, 255, .04); }
dialog.offpack-dlg.op-photo .op-size.op-card { padding: 6px 14px; }
dialog.offpack-dlg.op-photo .op-saved.op-card { padding: 8px 14px; }
dialog.offpack-dlg.op-photo .op-saved.op-card .op-saved-h { color: #8FE3BE; }
dialog.offpack-dlg.op-photo .offpack-hero p, dialog.offpack-dlg.op-photo .offpack-status, dialog.offpack-dlg.op-photo .offpack-note { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
dialog.offpack-dlg.op-photo .op-lang-t b { white-space: normal; overflow: visible; }
/* owner 2026-11-12 "fix all" (review 7/10 → 9+): one-line intro, Text "Included", status inside Word pack, one gold Download,
   Remove all as a small link, iPhone-in-Telegram note */
dialog.offpack-dlg .offpack-hero { align-items: center; }
dialog.offpack-dlg .offpack-hero p { font-size: 1.02rem; }
dialog.offpack-dlg .op-part-fixed { cursor: default; }
dialog.offpack-dlg .op-inc { width: 18px; height: 18px; flex: none; margin-top: 2px; display: grid; place-items: center; border-radius: 5px; background: #DFF5E6; color: #0F5E3F; }
dialog.offpack-dlg .op-inc .ic { width: 13px; height: 13px; }
dialog.offpack-dlg .op-part-t b em { font: 700 .66rem/1 var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; color: #0F5E3F; background: #DFF5E6; }
dialog.offpack-dlg .op-size .offpack-status { margin: 4px 0 6px; font-size: .86rem; }
dialog.offpack-dlg .op-size .offpack-bar { margin: 8px 0 4px; }
dialog.offpack-dlg .dlg-actions { display: block; }
dialog.offpack-dlg #offGo { width: 100%; min-height: 50px; font-size: 1rem; border-radius: 14px; }
dialog.offpack-dlg .offpack-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
dialog.offpack-dlg .op-rmall { border: 0; background: none; padding: 6px 0; color: #F2B8B8; font: 600 .8rem/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
dialog.offpack-dlg .op-rmall[hidden] { display: none; }
dialog.offpack-dlg .op-rmall.is-armed { color: #fff; background: #B4232F; padding: 6px 10px; border-radius: 999px; text-decoration: none; }
dialog.offpack-dlg .op-ios { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.4; background: rgba(242, 193, 78, .14); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, .45); }
dialog.offpack-dlg .op-ios[hidden] { display: none; }
dialog.offpack-dlg .op-ios .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #F2C14E; }
