/* © 2026 AVENLIO GLOBAL. Experiment "Tactile 3D Deep Navy" (22.11.2026) — NOT approved yet.
   Loaded after v3.css only in the preview. Physical tiles: bevel light from top-left, thickness, drop shadow;
   brushed navy metal; gold bevel on the side cards; the Lessons card is a navy leather book with a gold crest. */
:root { --tt-surface: linear-gradient(180deg, #1b3157 0%, #152847 45%, #0a162b 100%);
  --tt-bevel: inset 0 1.5px 1px rgba(255,255,255,.25), inset 1px 0 0 rgba(255,255,255,.08), inset 0 -3px 6px rgba(2,6,15,.8), inset -1px 0 0 rgba(0,0,0,.45);
  --tt-drop: 0 12px 24px rgba(1,4,10,.85);
  --tt-gold: linear-gradient(160deg, #f3dc9c 0%, #dfc07a 30%, #8c6d32 70%, #c9a35a 100%); }

/* brushed navy screen, the flag-and-city banner stays on top */
html body .app.is-home #view { background:
  linear-gradient(180deg, transparent 0, transparent calc(min(33.33vw, 146.67px) - 26px), #13254a calc(min(33.33vw, 146.67px) + 4px)) no-repeat,
  url("assets/home-banner.jpg") center top / 100% auto no-repeat,
  repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
  linear-gradient(180deg, #13254a 0%, #0b1834 60%, #071122 100%) !important; }

/* generic tactile tile */
.v3-state, .v3-prog, .v3-pt, .v3-carb { background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px),
    var(--tt-surface) !important;
  border: 0 !important; box-shadow: var(--tt-bevel), var(--tt-drop) !important; }
.v3-state:active, .v3-prog:active, .v3-pt:active, .v3-carb:active { transform: scale(.97); box-shadow: var(--tt-bevel), 0 6px 12px rgba(1,4,10,.85) !important; }
.v3-pt::before { display: none; }
.v3-pt b { color: #e9dcb8; }
.v3-pt-all b { color: #e9c77e; }

/* Florida: a plain raised bar, no photo */
.v3-state::before, .v3-state::after { display: none !important; }
.v3-st-tx b { color: #f1e6c8; text-shadow: none; }
.v3-st-tx small { color: #b8c3df; text-shadow: none; }
.v3-pen { background: linear-gradient(180deg, #1d3560, #0d1b38); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 6px rgba(0,0,0,.6); border: 1px solid rgba(223,192,122,.35); }
.v3-pen svg { stroke: #e9c77e; }

/* progress: a recessed groove with a glowing blue capsule */
.v3-prog b { color: #e9dcb8; }
.v3-bar { height: 12px; background: #060d1a; box-shadow: inset 0 2px 6px rgba(0,0,0,.75), 0 1px 0 rgba(255,255,255,.08); }
.v3-bar i { background: linear-gradient(180deg, #7dd3fc, #38bdf8 55%, #0284c7); box-shadow: 0 0 12px rgba(56,189,248,.6); }
.v3-prog strong { color: #e9c77e; }

/* carousel side cards: navy slabs with a thick gold bevel */
.v3-c.side { filter: none; border: 3px solid transparent;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px) padding-box, linear-gradient(180deg, #1f3a6b 0%, #152847 50%, #0b1a36 100%) padding-box, var(--tt-gold) border-box;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.25), inset 0 -4px 8px rgba(2,6,15,.8), 0 14px 26px rgba(1,4,10,.85), 0 0 0 1px rgba(60,40,10,.6); }
.v3-c.side::before, .v3-c.side::after { display: none; }
.v3-c.side b { color: #e9dcb8; }

/* the Lessons card as a navy leather book: spine on the left, pages at the bottom, gold crest */
.v3-c.mid[data-go="open-lesson"] { border: 0; border-radius: 8px 14px 14px 8px; animation: none;
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(255,255,255,.06), transparent 60%),
    repeating-radial-gradient(circle at 40% 30%, rgba(255,255,255,.015) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #0b1633 0%, #13254b 9%, #0f1f40 10%, #1b3160 40%, #16294f 100%);
  box-shadow: inset 6px 0 10px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12), 0 7px 0 -1px #e8dcc0, 0 9px 0 -1px #b7a57f, 0 18px 28px rgba(1,4,10,.9); }
.v3-c.mid[data-go="open-lesson"]::before { opacity: .35; }
.v3-c.mid[data-go="open-lesson"]::after { background: linear-gradient(90deg, transparent 8%, rgba(255,255,255,.07) 9%, transparent 11%); }
.v3-c.mid[data-go="open-lesson"] .v3-c-ic img { content: url(assets/v3/book-crest.webp); max-width: 78%; filter: drop-shadow(0 2px 1px rgba(0,0,0,.6)) drop-shadow(0 -1px 0 rgba(255,240,200,.25)); }
.v3-c.mid[data-go="open-lesson"] b { color: #e9c77e; font-family: Literata, Georgia, serif; text-shadow: 0 1px 0 rgba(0,0,0,.7); }
/* other cards when they come to the middle keep a gold bevel too */
.v3-c.mid:not([data-go="open-lesson"]) { border: 3px solid transparent; animation: none;
  background: linear-gradient(180deg, #23417a 0%, #152847 55%, #0b1a36 100%) padding-box, var(--tt-gold) border-box;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.25), inset 0 -4px 8px rgba(2,6,15,.8), 0 16px 28px rgba(1,4,10,.9); }
.v3-play { background: radial-gradient(circle at 40% 30%, #fbe9b7, #d9a94f 55%, #8c6d32 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,.6), inset 0 -2px 3px rgba(80,55,10,.6), 0 4px 8px rgba(0,0,0,.6); }

/* car capsule keeps the road photo; the icon is a raised gold-rim button */
.v3-cic { background: linear-gradient(180deg, #1d3560, #0d1b38); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 6px rgba(0,0,0,.6); }
.v3-carb-play { background: radial-gradient(circle at 40% 30%, rgba(255,255,255,.25), rgba(10,20,60,.6) 60%); box-shadow: inset 0 1px 1px rgba(255,255,255,.4), 0 3px 8px rgba(0,0,0,.6); }

/* tab bar: a raised navy panel; Mary a dark glass sphere with a soft cyan halo */
html body .app:has(#view) #tabbar.v3.tabs { background: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 4px), linear-gradient(180deg, #1b3157, #0c1a36) !important; border: 0 !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.22), inset 0 -3px 6px rgba(2,6,15,.8), 0 12px 24px rgba(1,4,10,.85) !important; }
html body .app #tabbar.v3 button { color: #c9d2e8 !important; }
html body .app #tabbar.v3 button.on { color: #e9c77e !important; }
.v3-orb { box-shadow: 0 0 0 2px rgba(200,225,255,.35), 0 0 0 6px rgba(12,26,54,.95), 0 0 22px 6px rgba(56,189,248,.45), 0 10px 18px rgba(0,0,0,.6); }
.v3-orb::before { inset: 0; border: 0; border-radius: 50%; animation: none; background: radial-gradient(60% 45% at 35% 22%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%), radial-gradient(80% 60% at 50% 110%, rgba(56,189,248,.35), transparent 60%); }
.v3-orb::after { border-color: rgba(56,189,248,.35); }

/* ---- 22.11 01:30: best parts of the second opinion's CSS (tactile-3d-navy.css) ---- */
/* Florida and progress stay raised, as on the owner's reference picture; only the progress groove is recessed */
/* progress fill in gold (blue stays only for Mary) */
.v3-bar { padding: 2px; background: #050b17; box-shadow: inset 0 2px 5px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.12); }
.v3-bar i { background: linear-gradient(180deg, #f3d78a 0%, #d4af5a 55%, #8a6928 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 0 10px rgba(212,175,90,.35); }
/* tiles sink when pressed */
.v3-pt:active, .v3-carb:active { transform: translateY(2px) scale(.975) !important; box-shadow: inset 0 3px 7px rgba(1,4,12,.9), inset 0 -1px 1px rgba(255,255,255,.12), 0 4px 10px rgba(1,4,12,.75) !important; }
.v3-pt img { filter: drop-shadow(0 10px 14px rgba(1,4,12,.85)); }
/* gold 3D play buttons */
.v3-play, .v3-carb-play { border: 1px solid rgba(255,245,200,.65); background: linear-gradient(145deg, #f3d78a 0%, #d4af5a 55%, #8a6928 100%);
  box-shadow: inset 0 1.5px 1.5px rgba(255,248,220,.75), inset 0 -3px 6px rgba(92,66,18,.85), 0 8px 18px rgba(0,0,0,.75), 0 0 14px rgba(212,175,90,.35); }
.v3-play svg, .v3-carb-play svg { fill: #091224; }
.v3-play:active, .v3-carb-play:active { transform: scale(.92); }
/* tab bar and Mary: the only cyan in the app */
html body .app:has(#view) #tabbar.v3.tabs { background: linear-gradient(180deg, rgba(20,39,71,.92) 0%, rgba(7,16,33,.97) 100%) !important; border: 1px solid rgba(255,255,255,.15) !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.22), 0 16px 32px rgba(0,3,10,.92) !important; }
html body .app #tabbar.v3 button.on { text-shadow: 0 0 12px rgba(212,175,90,.35); }
.v3-orb { box-shadow: 0 0 0 1.5px rgba(165,243,252,.65), inset 0 2px 4px rgba(255,255,255,.65), 0 10px 22px rgba(0,0,0,.85), 0 0 24px rgba(56,189,248,.55); }

/* ---- 22.11 01:35: graphite + gold alternative (html.tt-graphite), owner: "в сером тоже с золотым кайф" ---- */
html.tt-graphite body .app.is-home #view { background:
  linear-gradient(180deg, transparent 0, transparent calc(min(33.33vw, 146.67px) - 26px), #262a31 calc(min(33.33vw, 146.67px) + 4px)) no-repeat,
  url("assets/home-banner.jpg") center top / 100% auto no-repeat,
  repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
  linear-gradient(180deg, #262a31 0%, #181b21 60%, #0b0e14 100%) !important; }
html.tt-graphite .v3-state, html.tt-graphite .v3-prog, html.tt-graphite .v3-pt, html.tt-graphite .v3-carb { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #3a3f48 0%, #2a2e36 45%, #15181e 100%) !important; }
html.tt-graphite .v3-pen, html.tt-graphite .v3-cic { background: linear-gradient(180deg, #3a3f48, #1d2026); }
html.tt-graphite .v3-c.side { background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px) padding-box, linear-gradient(180deg, #474c56 0%, #30343c 50%, #1b1e24 100%) padding-box, linear-gradient(160deg, #6b6f78, #3c4048 60%, #555a63) border-box; }
html.tt-graphite .v3-c.mid[data-go="open-lesson"] { background:
    radial-gradient(120% 80% at 30% 10%, rgba(255,255,255,.07), transparent 60%),
    repeating-radial-gradient(circle at 40% 30%, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #17191e 0%, #2a2d33 9%, #22252a 10%, #35383f 40%, #2b2e34 100%); }
html.tt-graphite .v3-c.mid:not([data-go="open-lesson"]) { background: linear-gradient(180deg, #4a4f58 0%, #30343c 55%, #1b1e24 100%) padding-box, var(--tt-gold) border-box; }
html.tt-graphite .v3-st-tx small { color: #c3c7cf; }
html.tt-graphite body .app:has(#view) #tabbar.v3.tabs { background: linear-gradient(180deg, rgba(58,63,72,.95) 0%, rgba(22,24,30,.98) 100%) !important; }
html.tt-graphite body .app #tabbar.v3 button { color: #d4d7dd !important; }
html.tt-graphite body .app #tabbar.v3 button.on { color: #e9c77e !important; }
/* closer to the owner's reference: lighter steel-blue / steel-grey tiles */
:root { --tt-surface: linear-gradient(180deg, #2c4677 0%, #1f365f 45%, #13254a 100%); }
html.tt-graphite .v3-state, html.tt-graphite .v3-prog, html.tt-graphite .v3-pt, html.tt-graphite .v3-carb { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px), linear-gradient(180deg, #555a63 0%, #40444c 45%, #2a2d33 100%) !important; }

/* ---- 22.11 01:35: the Lessons book — leather grain, raised cover, thick pages, embossed gold crest ---- */
.v3-c.mid[data-go="open-lesson"] {
  --leather: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --pebble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='turbulence' baseFrequency='.22' numOctaves='2' seed='3'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='2.2'%3E%3CfeDistantLight azimuth='225' elevation='55'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23p)'/%3E%3C/svg%3E");
  width: calc(var(--cw) * 1.08); margin-left: calc(var(--cw) * -.54); height: calc(var(--ch) + 6px); top: 6px;
  border-radius: 6px 16px 16px 6px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 7%, rgba(255,255,255,.10) 8.2%, rgba(0,0,0,.25) 9.5%, transparent 13%),
    radial-gradient(130% 90% at 28% 8%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(120% 80% at 80% 110%, rgba(0,0,0,.45), transparent 60%),
    var(--leather) 0 0 / 160px 160px,
    linear-gradient(170deg, #1f386b 0%, #172c56 45%, #0f1f40 100%) !important;
  background-blend-mode: normal, normal, normal, soft-light, normal !important;
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255,255,255,.22), inset -2px -3px 0 rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(0,0,0,.35),
    3px 0 0 -1px #efe6cf, 5px 1px 0 -1px #d9ccab, 7px 2px 0 -1px #bfae86,
    0 6px 0 -1px #efe6cf, 2px 9px 0 -1px #d9ccab, 4px 12px 0 -2px #b29f74,
    0 22px 32px rgba(1,4,10,.9) !important; }
/* the pebbled leather relief on top of the colour */
.v3-c.mid[data-go="open-lesson"]::after { opacity: 1; mix-blend-mode: overlay;
  background: var(--pebble) 0 0 / 120px 120px, linear-gradient(90deg, transparent 8%, rgba(255,255,255,.08) 9%, transparent 11%) !important; }
/* gold blind-stamped frame on the cover */
.v3-c.mid[data-go="open-lesson"]::before { opacity: 1 !important; animation: none !important; inset: 9px 9px 9px 17px; border-radius: 6px; background: none !important;
  box-shadow: inset 0 0 0 1px rgba(233,199,126,.45), inset 1px 1px 0 1px rgba(0,0,0,.35); }
/* embossed crest: light from top-left, shadow to bottom-right, a little lift off the leather */
.v3-c.mid[data-go="open-lesson"] .v3-c-ic img { max-width: 84%;
  filter: drop-shadow(-1px -1px 0 rgba(255,244,210,.55)) drop-shadow(1.5px 2px 0 rgba(40,24,4,.85)) drop-shadow(0 6px 6px rgba(0,0,0,.55)) saturate(1.1) brightness(1.05); }
.v3-c.mid[data-go="open-lesson"] b { font-size: clamp(22px, 6vw, 26px); color: #f0cf86;
  text-shadow: -1px -1px 0 rgba(255,244,210,.35), 1px 1.5px 0 rgba(40,24,4,.9), 0 4px 6px rgba(0,0,0,.6); }
.v3-c.mid[data-go="open-lesson"] small { color: #e9e2cc; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
/* graphite leather */
html.tt-graphite .v3-c.mid[data-go="open-lesson"] { background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 7%, rgba(255,255,255,.10) 8.2%, rgba(0,0,0,.25) 9.5%, transparent 13%),
    radial-gradient(130% 90% at 28% 8%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(120% 80% at 80% 110%, rgba(0,0,0,.45), transparent 60%),
    var(--leather) 0 0 / 160px 160px,
    linear-gradient(170deg, #45494f 0%, #33363c 45%, #202227 100%) !important; }
/* tone the grain down: fine leather, not stucco */
.v3-c.mid[data-go="open-lesson"] { width: var(--cw); margin-left: calc(var(--cw) / -2); }
.v3-c.mid[data-go="open-lesson"]::after { opacity: .22; mix-blend-mode: soft-light; }
.v3-c.mid[data-go="open-lesson"] { background-blend-mode: normal, normal, normal, overlay, normal !important; }

/* ---- 22.11 01:40: details from the owner's close-ups ---- */
/* brushed metal: fine streaks along the slab */
:root { --tt-brush-h: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px);
        --tt-brush-v: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.06) 1px 2px, transparent 2px 5px); }
/* Florida / progress / car: slabs with a visible edge underneath */
.v3-state, .v3-prog, .v3-carb { background: var(--tt-brush-h), var(--tt-surface) !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.28), inset 0 -2px 3px rgba(2,6,15,.6), 0 5px 0 #0c1a36, 0 6px 0 rgba(0,0,0,.35), 0 14px 22px rgba(1,4,10,.85) !important; }
.v3-pen, .v3-cic { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 3px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.45), 0 3px 6px rgba(0,0,0,.6); }
/* four tiles: darker navy blocks with a lit top edge and a thick bottom */
.v3-pt { background: var(--tt-brush-v), linear-gradient(180deg, #1a2d55 0%, #12234a 50%, #0b1834 100%) !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.05), 0 5px 0 #07122a, 0 6px 0 rgba(0,0,0,.4), 0 14px 20px rgba(1,4,10,.85) !important; }
/* side cards: brushed navy face inside a thick, polished gold frame that shows its depth */
.v3-c.side { border: 4px solid transparent;
  background: var(--tt-brush-v) padding-box, linear-gradient(180deg, #2a4a86 0%, #1d3768 45%, #132a54 100%) padding-box,
    linear-gradient(135deg, #fff1c2 0%, #e6c374 18%, #a9823c 45%, #e9cd8a 62%, #8a6928 85%, #d9b766 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(60,40,10,.7), inset 0 2px 1px rgba(255,255,255,.3), inset 0 -6px 10px rgba(2,6,15,.6),
    -2px 4px 0 #7a5b22, -3px 7px 0 #5e4418, 0 18px 26px rgba(1,4,10,.9); }
html.tt-graphite .v3-c.side { background: var(--tt-brush-v) padding-box, linear-gradient(180deg, #5a5f69 0%, #43474f 45%, #2c2f35 100%) padding-box,
    linear-gradient(135deg, #fff1c2 0%, #e6c374 18%, #a9823c 45%, #e9cd8a 62%, #8a6928 85%, #d9b766 100%) border-box; }
/* bottom panel: the same brushed slab, lit top edge, visible thickness, a soft collar around Mary */
html body .app:has(#view) #tabbar.v3.tabs { background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.06) 1px 2px, transparent 2px 5px), linear-gradient(180deg, #2a4475 0%, #1b305a 50%, #10203f 100%) !important;
  border: 0 !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.28), inset 0 -3px 5px rgba(2,6,15,.7), 0 6px 0 #0a1630, 0 7px 0 rgba(0,0,0,.4), 0 18px 30px rgba(0,3,10,.9) !important; }
html.tt-graphite body .app:has(#view) #tabbar.v3.tabs { background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.06) 1px 2px, transparent 2px 5px), linear-gradient(180deg, #555a63 0%, #3c4048 50%, #25282e 100%) !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.28), inset 0 -3px 5px rgba(0,0,0,.6), 0 6px 0 #1a1c21, 0 7px 0 rgba(0,0,0,.4), 0 18px 30px rgba(0,0,0,.9) !important; }
html body .app #tabbar.v3 button.on::before { background: linear-gradient(90deg, #8a6928, #f3d78a, #8a6928) !important; box-shadow: 0 0 8px rgba(243,215,138,.6); }
html body .app #tabbar.v3 .v3-mary::before { content: ""; position: absolute; left: 50%; top: -38px; width: 104px; height: 104px; margin-left: -52px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: var(--tt-brush-v), linear-gradient(180deg, #2a4475, #14284f);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.25), inset 0 -4px 8px rgba(0,0,0,.6), 0 6px 14px rgba(0,0,0,.6); }
html.tt-graphite body .app #tabbar.v3 .v3-mary::before { background: var(--tt-brush-v), linear-gradient(180deg, #555a63, #2c2f35); }
html body .app #tabbar.v3 .v3-mary { position: relative; }
html body .app #tabbar.v3 .v3-mary > * { position: relative; z-index: 1; }
html.tt-graphite .v3-pt { background: var(--tt-brush-v), linear-gradient(180deg, #474b53 0%, #34373e 50%, #22252a 100%) !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.22), 0 5px 0 #17191d, 0 6px 0 rgba(0,0,0,.4), 0 14px 20px rgba(0,0,0,.85) !important; }
html.tt-graphite .v3-state, html.tt-graphite .v3-prog, html.tt-graphite .v3-carb { box-shadow: inset 0 1.5px 1px rgba(255,255,255,.28), inset 0 -2px 3px rgba(0,0,0,.5), 0 5px 0 #1b1d22, 0 6px 0 rgba(0,0,0,.35), 0 14px 22px rgba(0,0,0,.85) !important; }

/* ---- 22.11 01:45: lettering stamped into the metal (owner's close-ups): brushed-silver face, light edge on top, shadow below ---- */
.v3-st-tx b, .v3-prog b, .v3-c.side b, .v3-pt b, .v3-carb-tx b, html body .app #tabbar.v3 button > span:last-child {
  background: linear-gradient(180deg, #ffffff 0%, #e3e8f0 45%, #a9b3c4 55%, #dfe5ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  text-shadow: none !important; filter: drop-shadow(0 -1px 0 rgba(255,255,255,.35)) drop-shadow(0 1.5px 0 rgba(2,6,15,.9)) drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.v3-st-tx small, .v3-carb-tx small { color: #c9d1de !important; text-shadow: 0 1px 0 rgba(2,6,15,.9), 0 -1px 0 rgba(255,255,255,.12) !important; }
/* gold lettering stays gold, stamped the same way */
.v3-pt-all b, .v3-prog strong, html body .app #tabbar.v3 button.on > span:last-child, html body .app #tabbar.v3 .v3-mary > span:last-child {
  background: linear-gradient(180deg, #fff1c2 0%, #ecc978 45%, #a9823c 58%, #e6c374 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  text-shadow: none !important; filter: drop-shadow(0 -1px 0 rgba(255,240,200,.3)) drop-shadow(0 1.5px 0 rgba(40,24,4,.85)) drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
/* icons sit on the metal with a firm shadow */
html body .app #tabbar.v3 button svg { filter: drop-shadow(0 1.5px 0 rgba(2,6,15,.9)) drop-shadow(0 -1px 0 rgba(255,255,255,.2)); }

/* ---- 22.11 01:55: anodized navy metal from the owner's file (diagonal sheen, sharp edges, specular gold) ---- */
:root { --mt-hi: #284675; --mt-mid: #132544; --mt-lo: #091326;
  --mt-sheen: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.02) 38%, rgba(0,0,0,.18) 65%, rgba(255,255,255,.07) 100%);
  --mt-gold: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%); }
.v3-state, .v3-prog, .v3-carb { background: var(--tt-brush-h), var(--mt-sheen), linear-gradient(180deg, var(--mt-hi) 0%, var(--mt-mid) 45%, var(--mt-lo) 100%) !important; }
.v3-pt { background: var(--tt-brush-v), var(--mt-sheen), linear-gradient(180deg, #1f3763 0%, var(--mt-mid) 50%, var(--mt-lo) 100%) !important; }
.v3-state, .v3-prog, .v3-pt, .v3-carb { border-top: 1px solid rgba(168,204,255,.45) !important; border-left: 1px solid rgba(168,204,255,.25) !important;
  border-right: 1px solid rgba(5,10,20,.8) !important; border-bottom: 1.5px solid rgba(2,5,12,.95) !important; }
/* a soft specular streak across each slab */
.v3-pt::after, .v3-prog::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.12) 48%, rgba(255,255,255,.03) 55%, transparent 80%); }
.v3-prog { position: relative; overflow: hidden; }
.v3-prog > * { position: relative; z-index: 1; }
/* side cards: milled specular gold frame */
.v3-c.side { background: var(--tt-brush-v) padding-box, var(--mt-sheen) padding-box, linear-gradient(145deg, #2c4c86 0%, #1a3264 50%, #0f2147 100%) padding-box, var(--mt-gold) border-box; }
/* play buttons: polished gold */
.v3-play, .v3-carb-play { background: var(--mt-gold); border: 1px solid #fff3c4;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), inset 0 -2px 4px rgba(84,58,12,.9), 0 6px 14px rgba(0,0,0,.8), 0 0 12px rgba(212,175,90,.3); }
/* graphite keeps its own steel */
html.tt-graphite .v3-state, html.tt-graphite .v3-prog, html.tt-graphite .v3-carb { background: var(--tt-brush-h), var(--mt-sheen), linear-gradient(180deg, #5a5f68 0%, #3f434b 45%, #24272d 100%) !important; border-top-color: rgba(230,235,245,.45) !important; border-left-color: rgba(230,235,245,.25) !important; }
html.tt-graphite .v3-pt { background: var(--tt-brush-v), var(--mt-sheen), linear-gradient(180deg, #4b4f57 0%, #35383f 50%, #202227 100%) !important; border-top-color: rgba(230,235,245,.45) !important; border-left-color: rgba(230,235,245,.25) !important; }
html.tt-graphite .v3-c.side { background: var(--tt-brush-v) padding-box, var(--mt-sheen) padding-box, linear-gradient(145deg, #5e636d 0%, #43474f 50%, #2b2e34 100%) padding-box, var(--mt-gold) border-box; }

/* ---- 22.11 02:00: new header without the logo (the crest lives on the book only) ---- */
html body .app.is-home #view { background:
  linear-gradient(180deg, transparent 0, transparent calc(min(33.33vw, 146.67px) - 26px), #13254a calc(min(33.33vw, 146.67px) + 4px)) no-repeat,
  url("assets/v3/home-banner-clean.jpg") center top / 100% auto no-repeat,
  repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
  linear-gradient(180deg, #13254a 0%, #0b1834 60%, #071122 100%) !important; }
html.tt-graphite body .app.is-home #view { background:
  linear-gradient(180deg, transparent 0, transparent calc(min(33.33vw, 146.67px) - 26px), #262a31 calc(min(33.33vw, 146.67px) + 4px)) no-repeat,
  url("assets/v3/home-banner-clean.jpg") center top / 100% auto no-repeat,
  repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
  linear-gradient(180deg, #262a31 0%, #181b21 60%, #0b0e14 100%) !important; }

/* ---- 22.11 02:05: owner's metal header; no collar under Mary (it looked like a bump and swallowed her) ---- */
html body .app.is-home #view { background:
  linear-gradient(180deg, transparent 0, transparent calc(min(33.33vw, 146.67px) - 14px), #13254a calc(min(33.33vw, 146.67px) + 4px)) no-repeat,
  url("assets/v3/home-banner-metal.jpg") center top / 100% auto no-repeat,
  repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
  linear-gradient(180deg, #13254a 0%, #0b1834 60%, #071122 100%) !important; }
html body .app #tabbar.v3 .v3-mary::before, html.tt-graphite body .app #tabbar.v3 .v3-mary::before { display: none !important; }

/* ---- 22.11 02:10: let the gold arc of the header show; Mary in a polished gold bezel (option 3) ---- */
html body .app.is-home #view { background:
  url("assets/v3/home-banner-metal.jpg") center top / 100% auto no-repeat,
  repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
  linear-gradient(180deg, #13254a 0%, #0b1834 60%, #071122 100%) !important; }
html body .app.is-home .v3-home { margin-top: 62px; }
/* Mary: back to the glowing high-tech orb (owner: the gold bezel was heavy; industrial metal + high-tech orb is the right mix) */
@media (min-height: 700px) { html body .app.is-home .v3-home { gap: clamp(10px, 1.5vh, 16px); } .v3-car { --ch: clamp(160px, 21vh, 200px); } }

/* ---- 22.11 02:10: progress groove is no longer an empty hole: milled scale, a slow light in the slot, a steel knob riding at the current % ---- */
.v3-bar { position: relative; overflow: visible !important; height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(168,204,255,.22) 0 1px, transparent 1px 10%),
    linear-gradient(180deg, #03070f, #0a1426) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.95), inset 0 -1px 0 rgba(255,255,255,.08), 0 1px 0 rgba(255,255,255,.14) !important; }
.v3-bar::before { content: ""; position: absolute; inset: 3px 6px; border-radius: 9px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(120,170,255,.0) 35%, rgba(150,190,255,.35) 50%, rgba(120,170,255,0) 65%, transparent 100%);
  background-size: 300% 100%; animation: v3Slot 6s ease-in-out infinite; }
@keyframes v3Slot { 0% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
.v3-bar i { position: relative; min-width: 0; overflow: visible !important; }
/* the knob: a polished steel bead with a gold cap, sits at the end of the fill (at 0% it rests at the start) */
.v3-bar i::after { content: ""; position: absolute; right: -11px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 50% 50%, #f7e29c 0 3px, #8c6b28 3.5px 4.5px, transparent 5px),
    radial-gradient(circle at 35% 28%, #ffffff 0%, #dfe5ee 22%, #8f9bb0 55%, #4b5568 100%);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.6), 0 3px 6px rgba(0,0,0,.7), 0 0 10px rgba(150,190,255,.35); }
@media (prefers-reduced-motion: reduce) { .v3-bar::before { animation: none; } }
.v3-bar { padding: 0 12px !important; box-sizing: border-box; } .v3-bar i { border-radius: 9px; }

/* ================= Learn and Exam tabs in the same blue 3D (22.11 02:15) ================= */
html body .app:has(#view[data-screen="learn"]) #view, html body .app:has(#view[data-screen="exam"]) #view,
html body .app:has(#view[data-screen="cabinet"]) #view {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), radial-gradient(120% 50% at 50% 0%, #1d335f 0%, transparent 70%), linear-gradient(180deg, #13254a 0%, #0b1834 60%, #071122 100%) !important; }
.v3-scr h1 { background: linear-gradient(180deg, #ffffff 0%, #e3e8f0 45%, #a9b3c4 55%, #dfe5ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.3)) drop-shadow(0 2px 0 rgba(2,6,15,.9)) drop-shadow(0 4px 4px rgba(0,0,0,.5)); }
.v3-scr > p, .v3-lede { color: #c9d1de; }
/* segmented switch: a milled metal slot with a gold slider */
.v3-seg { background: linear-gradient(180deg, #03070f, #0a1426) !important; border: 0 !important; box-shadow: inset 0 2px 5px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.12) !important; }
.v3-seg button { color: #c9d1de; }
.v3-seg button.on { background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) !important; color: #0b1426 !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), inset 0 -2px 4px rgba(84,58,12,.9), 0 4px 10px rgba(0,0,0,.7); }
/* accordion groups and rows: metal slabs with an edge */
.v3-acc, .v3-row, .v3-tile, .v3-ready, .v3-es, .v3-ex-hero {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px), linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.02) 38%, rgba(0,0,0,.18) 65%, rgba(255,255,255,.06) 100%), linear-gradient(180deg, #284675 0%, #132544 45%, #091326 100%) !important;
  border: 0 !important; border-top: 1px solid rgba(168,204,255,.4) !important; border-bottom: 1.5px solid rgba(2,5,12,.95) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -3px 6px rgba(3,8,18,.8), 0 5px 0 #0a1630, 0 6px 0 rgba(0,0,0,.35), 0 14px 22px rgba(1,4,10,.85) !important; }
.v3-acc.open { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1.5px rgba(233,199,126,.6), 0 5px 0 #0a1630, 0 14px 22px rgba(1,4,10,.85) !important; }
.v3-acc .v3-tile, .v3-acc .v3-row { background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #1c3360 0%, #10224a 55%, #0a1834 100%) !important; }
.v3-acc-t b, .v3-row b, .v3-tile b, .v3-ready b, .v3-es b {
  background: linear-gradient(180deg, #ffffff 0%, #e3e8f0 45%, #a9b3c4 55%, #dfe5ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.3)) drop-shadow(0 1.5px 0 rgba(2,6,15,.9)); }
.v3-acc-t small, .v3-row small, .v3-ready small, .v3-es small { color: #c3ccdb !important; }
.v3-tile em, .v3-es.weak small { color: #f0cf86 !important; }
/* chevrons and play: polished gold buttons */
.v3-chev, .v3-cta { background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) !important; color: #0b1426 !important; border: 1px solid #fff3c4 !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), inset 0 -2px 4px rgba(84,58,12,.9), 0 6px 14px rgba(0,0,0,.75) !important; }
/* icon rings: a steel bezel with the gold progress inside */
.v3-ic, .v3-num, .v3-pdot { background: radial-gradient(circle at 35% 28%, #2c4c86, #0b1834) !important;
  box-shadow: 0 0 0 2px #c9d1de, 0 0 0 3px #4b5568, 0 0 0 4px rgba(255,255,255,.25), 0 4px 8px rgba(0,0,0,.6) !important; }
.v3-ring { box-shadow: 0 0 0 2px #c9d1de, 0 0 0 3px #4b5568, 0 4px 8px rgba(0,0,0,.6) !important; }
/* exam: officer card as a metal frame, readiness ring as a gauge */
.v3-ex-hero { border: 3px solid transparent !important; background: radial-gradient(70% 80% at 78% 40%, rgba(243,212,139,.16), transparent 65%) padding-box, linear-gradient(180deg, #23417a, #0b1834) padding-box, linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) border-box !important; }
.v3-rnum { box-shadow: inset 0 2px 5px rgba(0,0,0,.9), 0 0 0 2px #c9d1de, 0 0 0 3px #4b5568; }
.v3-rnum::after { background: radial-gradient(circle at 35% 28%, #2c4c86, #0b1834) !important; }
.v3-esn { background: radial-gradient(circle at 35% 28%, #ffffff, #8f9bb0 60%, #4b5568) !important; color: #0b1426 !important; border: 0 !important; }
.v3-es.ok .v3-esn { background: linear-gradient(135deg, #8c6b28, #f7e29c 40%, #c99e44) !important; }
/* learn path: the trail is a gold rail */
.v3-path::before { background: linear-gradient(180deg, #f7e29c, #8c6b28) !important; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 10px rgba(243,212,139,.35) !important; }
/* bottom sheets: a metal tray */
.v3-sheet { background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px), linear-gradient(180deg, #1b3157, #0a162b) !important; border-top: 1px solid rgba(168,204,255,.4) !important; }

/* ---- 22.11 02:20: the gold play button lives only on the Lessons book; Test / Cards in the middle are plain tiles that fit their text ---- */
.v3-c:not([data-go="open-lesson"]) .v3-play { display: none !important; }
.v3-c.mid:not([data-go="open-lesson"]) { justify-content: center; }
.v3-c.mid:not([data-go="open-lesson"]) .v3-c-ic { height: clamp(64px, 9vh, 88px); margin-top: 0; }
.v3-c.mid:not([data-go="open-lesson"]) b { margin-top: 6px; }
html body .v3-car .v3-c.mid:not([data-go="open-lesson"]) .v3-c-ic { height: clamp(60px, 8vh, 78px) !important; flex: none; }
html body .v3-car .v3-c.mid:not([data-go="open-lesson"]) .v3-c-ic img { height: clamp(60px, 8vh, 78px) !important; max-height: none !important; width: auto !important; }
html body .v3-car .v3-c.mid:not([data-go="open-lesson"]) b { margin-top: 10px; }

/* ================= In the car screen in the same blue 3D (22.11 02:25) ================= */
html body .app:has(#view[data-screen="car"]) #view { background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), radial-gradient(120% 50% at 50% 0%, #1d335f 0%, transparent 70%), linear-gradient(180deg, #13254a 0%, #0b1834 60%, #071122 100%) !important; }
#view[data-screen="car"] > h1, #view[data-screen="car"] h1 { background: linear-gradient(180deg, #ffffff 0%, #e3e8f0 45%, #a9b3c4 55%, #dfe5ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.3)) drop-shadow(0 2px 0 rgba(2,6,15,.9)); }
#view[data-screen="car"] .lede { color: #c9d1de !important; }
/* the question: a metal plate with a gold frame, text engraved in silver */
html body #view[data-screen="car"] .car-now { border: 3px solid transparent !important; border-radius: 22px !important;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px) padding-box, linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.02) 38%, rgba(0,0,0,.18) 65%, rgba(255,255,255,.06) 100%) padding-box, linear-gradient(180deg, #284675 0%, #132544 50%, #091326 100%) padding-box, linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -4px 8px rgba(3,8,18,.8), 0 6px 0 #0a1630, 0 16px 26px rgba(1,4,10,.85) !important; }
html body #view[data-screen="car"] .car-now h2 { background: linear-gradient(180deg, #ffffff 0%, #e3e8f0 45%, #b7c0cf 55%, #eef2f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.3)) drop-shadow(0 1.5px 0 rgba(2,6,15,.9)); }
html body #view[data-screen="car"] .car-now .q-num, html body #view[data-screen="car"] .car-now .car-voice { color: #f0cf86 !important; }
html body #view[data-screen="car"] .car-now .car-loop { color: #c9d1de !important; }
html body #view[data-screen="car"] .car-now .progress { background: linear-gradient(180deg, #03070f, #0a1426) !important; box-shadow: inset 0 2px 4px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.12) !important; }
html body #view[data-screen="car"] .car-now .progress span { background: linear-gradient(180deg, #f3d78a, #d4af5a 55%, #8a6928) !important; }
/* skip buttons: steel discs */
html body #view[data-screen="car"] .car-skip { border: 0 !important; background: radial-gradient(circle at 35% 28%, #3a5a92, #13254a 70%) !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.3), inset 0 -3px 5px rgba(0,0,0,.6), 0 0 0 2px #c9d1de, 0 0 0 3px #4b5568, 0 8px 14px rgba(0,0,0,.7) !important; }
/* the big play: a polished gold ring (progress) around a navy metal disc with a gold triangle */
html body #view[data-screen="car"] .car-play.round { box-shadow: 0 0 0 3px #4b5568, 0 0 0 5px #c9d1de, 0 14px 26px rgba(0,0,0,.85) !important; }
html body #view[data-screen="car"] .car-play.round .disc { background: radial-gradient(60% 45% at 35% 25%, rgba(255,255,255,.25), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), radial-gradient(circle at 50% 40%, #2c4c86, #0b1834 75%) !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.3), inset 0 -8px 14px rgba(0,0,0,.7) !important; }
html body #view[data-screen="car"] .car-play.round .disc i { border-left-color: #f0cf86 !important; filter: drop-shadow(0 2px 0 rgba(40,24,4,.9)) drop-shadow(0 -1px 0 rgba(255,240,200,.4)); }
html body #view[data-screen="car"] .car-play.round.on .disc i { background: linear-gradient(90deg, #f0cf86 0 36%, transparent 36% 64%, #f0cf86 64%) !important; }
/* Repeat / Stop / Resume: metal slabs */
html body #view[data-screen="car"] .car-mini, html body #view[data-screen="car"] .car-resume {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #284675 0%, #132544 50%, #091326 100%) !important;
  border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important; border-bottom: 1.5px solid rgba(2,5,12,.95) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 5px 0 #0a1630, 0 12px 18px rgba(1,4,10,.85) !important; color: #e9edf4 !important; }
html body #view[data-screen="car"] .car-mini.stop, html body #view[data-screen="car"] .car-resume span { color: #f0cf86 !important; }
/* settings: a metal panel with recessed selects and a gold switch */
html body #view[data-screen="car"] .panel.car-settings { border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(0,0,0,.15) 65%, rgba(255,255,255,.05) 100%), linear-gradient(180deg, #23417a 0%, #132544 50%, #0b1834 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -4px 8px rgba(3,8,18,.8), 0 6px 0 #0a1630, 0 16px 26px rgba(1,4,10,.85) !important; color: #e9edf4 !important; }
html body #view[data-screen="car"] .car-settings label, html body #view[data-screen="car"] .car-settings .switch span { color: #f0cf86 !important; }
html body #view[data-screen="car"] .car-settings select { background-color: #050b17 !important; color: #e9edf4 !important; border: 1px solid rgba(168,204,255,.18) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.1) !important; }
html body #view[data-screen="car"] .btn.wide, html body #view[data-screen="car"] .btn.cta { background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) !important; color: #0b1426 !important; border: 1px solid #fff3c4 !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), inset 0 -2px 4px rgba(84,58,12,.9), 0 6px 14px rgba(0,0,0,.75) !important; }
html body #view .switch .switch-track { background: linear-gradient(180deg, #03070f, #0a1426) !important; box-shadow: inset 0 2px 4px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.12) !important; }
html body #view .switch input:checked + .switch-track { background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 30%, #c99e44 60%, #7a5b1e 100%) !important; }
html body #view .switch .switch-track::after { background: radial-gradient(circle at 35% 28%, #ffffff, #dfe5ee 22%, #8f9bb0 60%, #4b5568) !important; box-shadow: 0 2px 4px rgba(0,0,0,.6) !important; }

/* ================= Inner screens in blue 3D (22.11 02:40): cream "paper" panels become metal slabs ================= */
/* one scope for every inner screen; Home, first-run screens and the paper certificate keep their own look */
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]):not([data-screen="onboard"]) {
  --ink: #eef2f8; --ink-2: #c9d1de; --slate: #b9c3d3; --hair: rgba(168,204,255,.16);
  --paper: #132544; --paper-2: #0b1834; --paper-3: #0a1630; --blue-2: #f0cf86; --blue: #f0cf86; --blue-soft: rgba(240,207,134,.12);
  --tt-slab: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(0,0,0,.15) 65%, rgba(255,255,255,.05) 100%), linear-gradient(180deg, #23417a 0%, #132544 50%, #0b1834 100%);
  --tt-slab-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -4px 8px rgba(3,8,18,.8), 0 6px 0 #0a1630, 0 16px 26px rgba(1,4,10,.85);
  --tt-gold: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%);
}
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]):not([data-screen="onboard"]) :is(.panel, .hub button.hub-item, .hub-item, .qrow, .pp-page, .bubble, .link-card, .state-card, .mini, .tile, .module, .today, .lesson):not(.car-settings) {
  color: #e9edf4 !important; background: var(--tt-slab) !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important; box-shadow: var(--tt-slab-shadow) !important; }
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]):not([data-screen="onboard"]) :is(.panel, .hub-item, .qrow, .pp-page, .bubble) :is(h2, h3, h4, .q-en, strong) { color: #f2f5fa !important; }
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]):not([data-screen="onboard"]) :is(.panel, .hub-item, .qrow, .pp-page, .bubble) :is(p, li, small, label, span:not([class*="btn"]), em, dd, dt) { color: inherit; }
/* question cards (lesson, flashcards, vocab, reading, writing, live interview answer): the car plate — navy metal in a polished gold frame */
html body #view :is(.flip .face, .panel.word-card, .panel.write-card, #view[data-screen="lesson"] article.panel, #view[data-screen="reading"] article.panel, .pp-cover) {
  color: #e9edf4 !important; border: 3px solid transparent !important;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px) padding-box, linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.02) 38%, rgba(0,0,0,.18) 65%, rgba(255,255,255,.06) 100%) padding-box, linear-gradient(180deg, #284675 0%, #132544 50%, #091326 100%) padding-box, linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -4px 8px rgba(3,8,18,.8), 0 6px 0 #0a1630, 0 16px 26px rgba(1,4,10,.85) !important; }
html body #view[data-screen="lesson"] article.panel, html body #view[data-screen="reading"] article.panel { color: #e9edf4 !important; border: 3px solid transparent !important;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px) padding-box, linear-gradient(180deg, #284675 0%, #132544 50%, #091326 100%) padding-box, linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) border-box !important; }
html body #view :is(.flip .face, .word-card, .write-card, .pp-cover, [data-screen="lesson"] article.panel, [data-screen="reading"] article.panel) :is(h2, .q-en, .word, b.word) {
  background: linear-gradient(180deg, #ffffff 0%, #e3e8f0 45%, #b7c0cf 55%, #eef2f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.3)) drop-shadow(0 1.5px 0 rgba(2,6,15,.9)); }
html body #view :is(.flip .face, .word-card, .pp-cover, article.panel) :is(.q-num, .q-kicker, .badge-num, .num) { color: #f0cf86 !important; }
html body #view :is(.face, .panel) .phon { background: rgba(3,8,18,.55) !important; color: #c9d1de !important; border: 1px solid rgba(168,204,255,.16) !important; box-shadow: inset 0 2px 4px rgba(0,0,0,.7) !important; }
/* the lessons cover keeps its banner picture inside the gold frame */
html body #view[data-screen="lessons"] .pp-cover h1, html body #view[data-screen="lessons"] .pp-cover h2 { color: #f0cf86 !important; }
/* fields: recessed into the metal */
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]):not([data-screen="onboard"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  background: #050b17 !important; color: #e9edf4 !important; border: 1px solid rgba(168,204,255,.18) !important; box-shadow: inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.1) !important; }
html body #view :is(input, textarea)::placeholder { color: #7f8ba0 !important; }
/* light glass / outline buttons become steel; the gold "main" buttons stay gold */
html body #view:not([data-screen="home"]) :is(.btn-aqua, .audio-glass, .btn-line, .choice, .lang-pill, .tp-normal, .tp-large, .pill, .mini-btn) {
  color: #f0cf86 !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #2c4c86 0%, #132544 55%, #0b1834 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 0 #0a1630, 0 10px 16px rgba(1,4,10,.8) !important; backdrop-filter: none !important; }
html body #view:not([data-screen="home"]) :is(.choice.on, .lang-pill.on, .tp-normal.on, .tp-large.on, .pill.on) { background: var(--tt-gold) !important; color: #0b1426 !important; box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), inset 0 -2px 4px rgba(84,58,12,.9), 0 6px 14px rgba(0,0,0,.75) !important; }
html body #view:not([data-screen="home"]) .panel > .btn.wide[data-act="flip"], html body #view:not([data-screen="home"]) .panel .btn:not(.cta):not(.wide):not(.bad):not(.good):not([data-act="know"]):not([data-act="again"]) {
  color: #f0cf86 !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important;
  background: linear-gradient(180deg, #2c4c86 0%, #132544 55%, #0b1834 100%) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 0 #0a1630, 0 10px 16px rgba(1,4,10,.8) !important; }
/* every wide main button on inner screens: polished gold, like the car screen */
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]) :is(.btn.wide, .btn.cta):not([data-act="flip"]):not(.bad):not(.good) {
  background: var(--tt-gold, linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%)) !important; color: #0b1426 !important; border: 1px solid #fff3c4 !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), inset 0 -2px 4px rgba(84,58,12,.9), 0 6px 14px rgba(0,0,0,.75) !important; }
/* profile letter: a steel disc with a gold initial */
html body #view[data-screen="cabinet"] .avatar.big { background: radial-gradient(circle at 35% 28%, #3a5a92, #13254a 70%) !important; color: #f0cf86 !important; border: 0 !important;
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.3), inset 0 -3px 5px rgba(0,0,0,.6), 0 0 0 2px #c9d1de, 0 0 0 3px #4b5568, 0 8px 14px rgba(0,0,0,.7) !important; }
/* inner-screen titles: engraved silver, like the car screen */
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]) > section > h1, html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]) > h1 {
  background: linear-gradient(180deg, #ffffff 0%, #e3e8f0 45%, #a9b3c4 55%, #dfe5ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.3)) drop-shadow(0 2px 0 rgba(2,6,15,.9)); }
html body #view:not([data-screen="home"]) :is(.lede, .sub) { color: #c9d1de !important; }
/* leftover dark text inside the new metal slabs */
html body #view :is(.q-ru, .hint, .tp-label, .tp-hint, .pp-mrz, .qrow-copy small, .pp-cover-stats span, .write-steps, .mary-invite p, .plan p, [data-screen="answers"] .panel p) { color: #c9d1de !important; }
html body #view :is(.pp-row-copy b, .qrow-copy strong, .qrow-copy b) { color: #f2f5fa !important; }
html body #view :is(.qrow-no, .write-head .q-num, .panel label, .profile-card label) { color: #f0cf86 !important; }
html body #view .qrow-no { background: radial-gradient(circle at 35% 28%, #3a5a92, #13254a 70%) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1.5px #b8893a !important; border: 0 !important; }
html body #view .oral-peek { color: #f0cf86 !important; }
html body #view:not([data-screen="home"]) :is(.row, .stack-btns, .tools) > .btn:not(.cta):not(.wide):not(.bad):not(.good):not([data-act="know"]):not([data-act="again"]) {
  color: #f0cf86 !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important;
  background: linear-gradient(180deg, #2c4c86 0%, #132544 55%, #0b1834 100%) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 0 #0a1630, 0 10px 16px rgba(1,4,10,.8) !important; }
html body #view .bubble :is(p, b, strong, span:not([class*="btn"])) { color: #eef2f8 !important; }
html body #view[data-screen="answers"] :is(.chip, .tag, .pill-chip, .ans-chip) { background: rgba(3,8,18,.6) !important; color: #e9edf4 !important; border: 1px solid rgba(240,207,134,.35) !important; }

/* ===== 22.11 02:40 — Elena's notes ===== */
/* Home "In the car": no road picture, a clean metal bar */
html body .v3-carb::before { display: none !important; }
/* "I know" / "Study again": 3D pills — glossy top, darker bottom edge, they press in */
html body #view :is(.btn-green, [data-act="know"]) { background: linear-gradient(180deg, #4fd39a 0%, #1f9a68 45%, #136b47 100%) !important; color: #fff !important; border: 1px solid rgba(190,255,220,.55) !important;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.5), inset 0 -3px 6px rgba(4,40,24,.7), 0 5px 0 #0b4a30, 0 12px 18px rgba(1,4,10,.75) !important; text-shadow: 0 1px 0 rgba(0,40,20,.6); }
html body #view :is(.btn-again, [data-act="again"]) { background: linear-gradient(180deg, #ff8a7a 0%, #d9433a 45%, #9c2420 100%) !important; color: #fff !important; border: 1px solid rgba(255,210,200,.55) !important;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.45), inset 0 -3px 6px rgba(60,6,4,.7), 0 5px 0 #6e1714, 0 12px 18px rgba(1,4,10,.75) !important; text-shadow: 0 1px 0 rgba(60,6,4,.6); }
html body #view :is(.btn-green, [data-act="know"], .btn-again, [data-act="again"]):active { transform: translateY(4px) !important; box-shadow: inset 0 2px 1px rgba(255,255,255,.35), inset 0 -2px 4px rgba(0,0,0,.6), 0 1px 0 rgba(0,0,0,.6), 0 4px 8px rgba(1,4,10,.7) !important; }
html body #view :is(.btn-green, [data-act="know"], .btn-again, [data-act="again"]) :is(i, .ic, svg) { filter: drop-shadow(0 1px 0 rgba(0,0,0,.45)); }
/* Profile "Your weak spots": metal rows instead of flat grey */
html body #view .panel.weak li button { background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #284675 0%, #132544 55%, #0b1834 100%) !important;
  border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important; color: #eef2f8 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 0 #0a1630, 0 10px 16px rgba(1,4,10,.75) !important; }
html body #view .panel.weak li button:active { transform: translateY(3px); box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 1px 0 #0a1630 !important; }
html body #view .panel.weak .wk-no { background: radial-gradient(circle at 35% 28%, #3a5a92, #13254a 70%) !important; color: #f0cf86 !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1.5px #b8893a, 0 3px 5px rgba(0,0,0,.6) !important; }
html body #view .panel.weak li em { color: #ff8a7a !important; font-weight: 700; }

/* ===== 22.11 02:45 — Test & Interview in blue 3D ===== */
/* Back always on the left */
html body #view > p:has(> .btn-quiet[data-act="go"]), html body #view > section > p:has(> .btn-quiet[data-act="go"]):first-child { text-align: left !important; justify-content: flex-start !important; }
/* Test start: icon in a steel bezel, rules in recessed wells with gold numbers */
html body #view .test-start .feat-ico { width: 68px; height: 68px; padding: 16px; border-radius: 50%; margin: 0 auto 10px; box-sizing: border-box;
  background: radial-gradient(circle at 35% 28%, #3a5a92, #13254a 70%); box-shadow: inset 0 2px 2px rgba(255,255,255,.3), inset 0 -4px 8px rgba(0,0,0,.6), 0 0 0 2px #c9d1de, 0 0 0 3.5px #4b5568, 0 8px 14px rgba(0,0,0,.7); }
html body #view .test-start .feat-ico :is(path, rect, circle) { stroke: #f0cf86 !important; filter: drop-shadow(0 1px 0 rgba(40,24,4,.9)); }
html body #view .test-rules > span { background: #050b17 !important; border: 1px solid rgba(168,204,255,.16) !important; border-radius: 16px !important;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.12) !important; color: #c9d1de !important; }
html body #view .test-rules > span :is(b, strong, em) { color: #f0cf86 !important; filter: drop-shadow(0 2px 0 rgba(40,24,4,.9)); }
/* A–D answers: metal slabs, steel letter coins; right = green 3D, wrong = red 3D */
html body #view .abcd > button { color: #eef2f8 !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #284675 0%, #132544 55%, #0b1834 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 5px 0 #0a1630, 0 12px 18px rgba(1,4,10,.75) !important; }
html body #view .abcd > button:active { transform: translateY(4px); box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 1px 0 #0a1630 !important; }
html body #view .abcd > button > i { background: radial-gradient(circle at 35% 28%, #3a5a92, #13254a 70%) !important; color: #f0cf86 !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1.5px #b8893a, 0 3px 5px rgba(0,0,0,.6) !important; }
html body #view .abcd > button.right { background: linear-gradient(180deg, #4fd39a 0%, #1f9a68 45%, #136b47 100%) !important; border-top-color: rgba(190,255,220,.6) !important; color: #fff !important;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.45), inset 0 -3px 6px rgba(4,40,24,.7), 0 5px 0 #0b4a30, 0 12px 18px rgba(1,4,10,.75) !important; }
html body #view .abcd > button.wrong { background: linear-gradient(180deg, #ff8a7a 0%, #d9433a 45%, #9c2420 100%) !important; border-top-color: rgba(255,210,200,.6) !important; color: #fff !important;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.45), inset 0 -3px 6px rgba(60,6,4,.7), 0 5px 0 #6e1714, 0 12px 18px rgba(1,4,10,.75) !important; }
html body #view .abcd > button:is(.right, .wrong) > i { background: radial-gradient(circle at 35% 28%, #fff, #e8edf4 60%, #b9c3d3) !important; box-shadow: 0 2px 4px rgba(0,0,0,.5) !important; }
html body #view .abcd > button.right > i { color: #0f6b45 !important; } html body #view .abcd > button.wrong > i { color: #c62f2f !important; }
html body #view .abcd > button:is(.right, .wrong) > b { color: #fff !important; }
html body #view .abcd > button.dim { opacity: .55; }
/* official answer panel: readable alternatives, gold "show all" */
html body #view :is(.t3-answer, .more-answers) p { color: #c9d1de !important; }
html body #view .more-answers summary { color: #f0cf86 !important; border-color: rgba(240,207,134,.45) !important; background: rgba(3,8,18,.5) !important; }
/* interview: "how it works" small print readable */
html body #view .iv-how :is(p, .fine) { color: #c9d1de !important; }
/* interview controls: steel pills, mic = steel disc in a gold ring */
html body #view .iv-btn { color: #f0cf86 !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #2c4c86 0%, #132544 55%, #0b1834 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 0 #0a1630, 0 10px 16px rgba(1,4,10,.8) !important; }
html body #view .iv-btn svg { stroke: #f0cf86 !important; }
html body #view .iv-btn:active { transform: translateY(3px); box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 1px 0 #0a1630 !important; }
html body #view .big-mic { border: 3px solid transparent !important;
  background: radial-gradient(60% 45% at 35% 25%, rgba(255,255,255,.25), transparent 60%) padding-box, radial-gradient(circle at 50% 40%, #2c4c86, #0b1834 75%) padding-box, linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) border-box !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.3), inset 0 -8px 14px rgba(0,0,0,.7), 0 0 0 3px #4b5568, 0 14px 26px rgba(0,0,0,.85) !important; }
html body #view .big-mic svg { filter: drop-shadow(0 2px 0 rgba(40,24,4,.9)); }
html body #view .iv-ai { color: #f0cf86 !important; }
html body #view .abcd > button:is(.right, .wrong) > b { background: radial-gradient(circle at 35% 28%, #fff, #e8edf4 60%, #b9c3d3) !important; border: 0 !important; box-shadow: 0 2px 4px rgba(0,0,0,.5) !important; }
html body #view .abcd > button.right > b { color: #0f6b45 !important; } html body #view .abcd > button.wrong > b { color: #c62f2f !important; }

/* ===== 22.11 03:06 — softer fields: deep navy instead of black, readable text (Elena: name almost invisible, too harsh) ===== */
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]):not([data-screen="onboard"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  background: linear-gradient(180deg, #0c1c3c 0%, #112650 100%) !important; color: #f4f6fa !important; border: 1px solid rgba(240,207,134,.32) !important;
  box-shadow: inset 0 2px 5px rgba(2,6,16,.75), 0 1px 0 rgba(255,255,255,.1) !important; }
html body #view :is(input, textarea):focus { border-color: #f0cf86 !important; outline: none !important; box-shadow: inset 0 2px 5px rgba(2,6,16,.75), 0 0 0 3px rgba(240,207,134,.25) !important; }
html body #view :is(input, textarea)::placeholder { color: #9aa6ba !important; }
/* the name in Profile: large gold serif, like the stamped titles */
html body #view[data-screen="cabinet"] #personName { font: 700 22px/1.2 Literata, Georgia, serif !important; color: #f7e2a6 !important; letter-spacing: .01em; min-height: 52px; }
html body #view[data-screen="cabinet"] .pp-mrz { color: #b9c3d3 !important; }
/* the recessed wells / switch track keep depth but also lose the pure black */
html body #view .test-rules > span { background: linear-gradient(180deg, #0c1c3c, #112650) !important; }
html body #view[data-screen="car"] .car-settings select { background: linear-gradient(180deg, #0c1c3c, #112650) !important; }

/* ===== 22.11 03:12 — results after a test round / mock interview ===== */
/* score: a steel medallion in a polished ring — red ring when not passed yet, gold when passed */
html body #view .t3-stamp { transform: none !important; border: 4px solid transparent !important; color: #f4f6fa !important;
  background: radial-gradient(60% 45% at 35% 25%, rgba(255,255,255,.22), transparent 60%) padding-box, radial-gradient(circle at 50% 40%, #2c4c86, #0b1834 75%) padding-box, linear-gradient(135deg, #7a1f26 0%, #ff8a7a 30%, #c0392b 60%, #5e1218 100%) border-box !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.3), inset 0 -8px 14px rgba(0,0,0,.7), 0 0 0 3px #4b5568, 0 12px 22px rgba(0,0,0,.8) !important; }
html body #view .test-done.pass .t3-stamp { background: radial-gradient(60% 45% at 35% 25%, rgba(255,255,255,.22), transparent 60%) padding-box, radial-gradient(circle at 50% 40%, #2c4c86, #0b1834 75%) padding-box, linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) border-box !important; }
html body #view .t3-stamp b { color: #f7e2a6 !important; font-size: 42px !important; filter: drop-shadow(0 2px 0 rgba(40,24,4,.9)); }
html body #view .t3-stamp small { color: #c9d1de !important; }
/* right / wrong counters: recessed wells */
html body #view .test-score > span { background: linear-gradient(180deg, #0c1c3c, #112650) !important; border: 1px solid rgba(168,204,255,.16) !important;
  box-shadow: inset 0 3px 8px rgba(2,6,16,.85), 0 1px 0 rgba(255,255,255,.1) !important; color: #c9d1de !important; }
html body #view .test-score > span.right, html body #view .test-score > span.right * { color: #5fe0a6 !important; }
html body #view .test-score > span.wrong, html body #view .test-score > span.wrong * { color: #ff8a7a !important; }
html body #view .test-score > span b { font-size: 22px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.8)); }
/* mistakes review: each mistake on a metal slab */
html body #view .quiz-wrong > li { color: #eef2f8 !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important; border-radius: 18px !important;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #284675 0%, #132544 55%, #0b1834 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 5px 0 #0a1630, 0 12px 18px rgba(1,4,10,.75) !important; }
html body #view .quiz-wrong .q-num { color: #f0cf86 !important; }
html body #view .quiz-wrong .q-en { color: #f4f6fa !important; }
html body #view .quiz-wrong :is(.q-ru, .fine, p:not(.good):not(.q-num):not(.q-en)) { color: #c9d1de !important; }
html body #view .quiz-wrong .good { color: #5fe0a6 !important; }
html body #view .review-list .section-title { color: #f4f6fa !important; }

/* ===== 22.11 10:20 — Elena: black "pit" in switches, one top row, tile texture ===== */
/* switches (All sections / My path, etc.): deep navy groove instead of black */
html body :is(.v3-seg, .seg, .mode-switch, .iv-modes) { background: linear-gradient(180deg, #0c1c3c 0%, #112650 100%) !important; border: 1px solid rgba(240,207,134,.22) !important;
  box-shadow: inset 0 2px 5px rgba(2,6,16,.75), 0 1px 0 rgba(255,255,255,.1) !important; }
/* Learn tiles and rows: the same horizontal brushed metal as every other slab */
html body .v3-acc :is(.v3-tile, .v3-row) { background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px), linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.02) 38%, rgba(0,0,0,.15) 65%, rgba(255,255,255,.05) 100%), linear-gradient(180deg, #284675 0%, #132544 50%, #0b1834 100%) !important; }
/* Exam: every part icon sits in the same steel bezel (speaking & writing had none) */
html body #view .v3-es img { width: 54px !important; height: 54px !important; padding: 6px; border-radius: 50%; box-sizing: border-box; object-fit: contain;
  background: radial-gradient(circle at 35% 28%, #3a5a92, #13254a 70%); box-shadow: inset 0 1px 1px rgba(255,255,255,.3), inset 0 -3px 5px rgba(0,0,0,.6), 0 0 0 2px #b8893a, 0 4px 8px rgba(0,0,0,.6); }
/* Exam main button: polished gold like the rest */
html body #view .v3-cta { background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) !important; color: #0b1426 !important; font-weight: 800 !important;
  border: 1px solid #fff3c4 !important; box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), inset 0 -2px 4px rgba(84,58,12,.9), 0 6px 14px rgba(0,0,0,.75) !important; }
/* one top row like Home: Back (steel pill) on the left, language on the right; the Back inside the page is hidden when the top row has it */
html body #top .hd-back { min-height: 44px; padding: 0 16px; border-radius: 22px; color: #f0cf86 !important; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #2c4c86 0%, #132544 55%, #0b1834 100%); border: 0; border-top: 1px solid rgba(168,204,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 0 #0a1630, 0 8px 12px rgba(1,4,10,.8); }
html body #top .hd-back::before { content: "‹"; font-size: 22px; line-height: 1; margin-top: -2px; }
html body .app:has(#top .hd-back) #view .v-back { display: none !important; }
html body #top .head-side.end { justify-content: flex-end; }
/* a new medal: red dot on the Profile tab */
html body #tabbar [data-dot] { position: relative; }
html body #tabbar [data-dot]::after { content: ""; position: absolute; top: 6px; left: calc(50% + 8px); width: 10px; height: 10px; border-radius: 50%; background: #ff5a4e; box-shadow: 0 0 0 2px #0b1834, 0 0 8px rgba(255,90,78,.7); }

/* ===== 22.11 10:45 — owner: brushed metal runs left-to-right everywhere (Home cards, small tiles, tab bar) ===== */
:root { --tt-brush-v: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.06) 1px 2px, transparent 2px 4px); }
html body .app:has(#view) #tabbar.v3.tabs { background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.06) 1px 2px, transparent 2px 4px), linear-gradient(180deg, #2a4475 0%, #1b305a 50%, #10203f 100%) !important; }
/* "In the car": a gold car on a steel disc in a gold ring (owner's reference, 22.11) — the disc is in the picture, so no extra bezel */
html body .v3-carb .v3-cic { width: 52px !important; height: 52px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 50%; }
html body .v3-carb .v3-cic img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
/* 22.11 11:25 — owner: lists must look like lists. Every select gets a gold "⌄" on the right (the navy field background had hidden the old arrow) */
html body #view:not([data-screen="home"]):not([data-screen="welcome"]):not([data-screen="setup"]):not([data-screen="ready"]):not([data-screen="onboard"]) select:not([multiple]):not([data-a1]):not([data-a2]):not([data-a3]) { /* extra :not()s only to outrank the field rule above */
  -webkit-appearance: none !important; appearance: none !important; padding-right: 52px !important; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23f0cf86' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 22px 22px no-repeat,
              linear-gradient(90deg, transparent calc(100% - 50px), rgba(240,207,134,.28) calc(100% - 50px), rgba(240,207,134,.28) calc(100% - 49px), transparent calc(100% - 49px)),
              linear-gradient(180deg, #0c1c3c 0%, #112650 100%) !important; }
html body #view select:active { border-color: #f0cf86 !important; }

/* ===== 22.11 11:50 — "In the car" 2.0 (owner approved mock 3) ===== */
html body #view[data-screen="car"] { --car-slab: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px), linear-gradient(180deg, #284675 0%, #132544 50%, #0b1834 100%); }
/* the one line with all trip settings */
html body #view[data-screen="car"] .car-setline { width: 100%; min-height: 52px; margin: 4px 0 12px; padding: 0 14px; border-radius: 26px; display: flex; align-items: center; gap: 10px; text-align: left;
  color: #eef2f8; font-size: 15px; font-weight: 700; background: linear-gradient(180deg, #0c1c3c, #112650); border: 1px solid rgba(240,207,134,.38); box-shadow: inset 0 2px 5px rgba(2,6,16,.75), 0 1px 0 rgba(255,255,255,.1); }
html body #view[data-screen="car"] .car-setline .car-gear { color: #f0cf86; font-size: 19px; }
html body #view[data-screen="car"] .car-setline .car-sum { flex: 1; min-width: 0; line-height: 1.25; }
html body #view[data-screen="car"] .car-setline .car-sum b { color: #f0cf86; }
html body #view[data-screen="car"] .car-setline .car-ch { color: #f0cf86; font-size: 22px; }
/* the question: a slim metal strip instead of the big framed plate */
html body #view[data-screen="car"] .car-now.car-strip { padding: 12px 14px 12px !important; border-radius: 20px !important; text-align: left !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important;
  background: var(--car-slab) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 5px 0 #0a1630, 0 14px 22px rgba(1,4,10,.85) !important; }
html body #view[data-screen="car"] .car-strip .q-num { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px !important; color: #f0cf86 !important; font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
html body #view[data-screen="car"] .car-strip h2 { font: 700 19px/1.25 Literata, Georgia, serif !important; margin: 0 !important; text-align: left !important; background: none !important; -webkit-text-fill-color: #f4f6fa !important; color: #f4f6fa !important; filter: none !important; }
html body #view[data-screen="car"] .car-strip .q-ru { margin: 3px 0 0 !important; font-size: 14px !important; color: #c9d1de !important; text-align: left !important; }
html body #view[data-screen="car"] .car-dots { display: flex; gap: 6px; margin-top: 10px; }
html body #view[data-screen="car"] .car-dots i { flex: 1; height: 5px; border-radius: 3px; background: #0c1c3c; box-shadow: inset 0 1px 2px rgba(0,0,0,.8); }
html body #view[data-screen="car"] .car-dots i.d { background: linear-gradient(135deg, #8c6b28, #f7e29c 40%, #c99e44); }
html body #view[data-screen="car"] .car-dots i.c { background: linear-gradient(90deg, #f0cf86 55%, #0c1c3c 55%); }
html body #view[data-screen="car"] .car-strip .progress { margin-top: 10px; }
/* controls breathe; phase line under the big button */
html body #view[data-screen="car"] .car-controls { margin-top: 22px !important; }
html body #view[data-screen="car"] .car-phase { text-align: center; margin: 14px 0 0; }
html body #view[data-screen="car"] .car-phase b { display: block; font-size: 18px; font-weight: 800; }
html body #view[data-screen="car"] .car-phase small { display: block; font-size: 14px; color: #c9d1de; margin-top: 2px; }
html body #view[data-screen="car"] .car-phase.q b { color: #5fe0a6; } html body #view[data-screen="car"] .car-phase.gap b { color: #f0cf86; }
html body #view[data-screen="car"] .car-phase.a b { color: #8fc0ff; } html body #view[data-screen="car"] .car-phase.paused b, html body #view[data-screen="car"] .car-phase.ready b { color: #f0cf86; }
html body #view[data-screen="car"] .car-loop { text-align: center; font-size: 13px; color: #9aa6ba; margin: 8px 12px 0; }
html body #view[data-screen="car"] .car-repeat-wide { display: flex; width: 100%; min-height: 58px; margin-top: 16px; border-radius: 29px !important; justify-content: center; align-items: center; font-size: 18px !important; font-weight: 800 !important; color: #f0cf86 !important; }
/* trip-over card */
html body #view[data-screen="car"] .car-done { margin-top: 30px; padding: 24px 18px; border-radius: 26px; text-align: center; background: var(--car-slab); border-top: 1px solid rgba(168,204,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 2px rgba(240,207,134,.6), 0 5px 0 #0a1630, 0 14px 22px rgba(1,4,10,.85); }
html body #view[data-screen="car"] .car-done-orb { display: block; width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.75), rgba(120,180,255,.4) 30%, #1a2fa0 70%); box-shadow: 0 0 24px 6px rgba(63,120,255,.45); }
html body #view[data-screen="car"] .car-done h2 { font: 700 22px Literata, Georgia, serif; color: #f4f6fa; margin-bottom: 6px; }
html body #view[data-screen="car"] .car-done p { color: #c9d1de; margin-bottom: 14px; }
/* trip settings sheet */
html body .car-sheet { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
html body .car-sheet .car-lab { display: block; margin: 10px 2px 2px; color: #f0cf86; font-weight: 700; font-size: 14px; }
html body .car-sheet select { width: 100%; min-height: 50px; border-radius: 14px; padding: 0 52px 0 14px; font: inherit; font-weight: 700; color: #f4f6fa; -webkit-appearance: none; appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23f0cf86' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 22px no-repeat, linear-gradient(180deg, #0c1c3c, #112650);
  border: 1px solid rgba(240,207,134,.32); box-shadow: inset 0 2px 5px rgba(2,6,16,.75); }
html body .car-sheet .car-opts { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; }
html body .car-sheet .car-opt { min-height: 48px; border-radius: 14px; font: inherit; font-weight: 800; font-size: 16px; color: #eef2f8; background: linear-gradient(180deg, #0c1c3c, #112650); border: 1px solid rgba(240,207,134,.32); box-shadow: inset 0 2px 5px rgba(2,6,16,.6); }
html body .car-sheet .car-opt.on { color: #0b1426; border-color: #fff3c4; background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%); box-shadow: inset 0 1.5px 1px rgba(255,255,255,.85), 0 4px 10px rgba(0,0,0,.6); }
html body .car-sheet .switch { margin: 12px 2px 0; color: #eef2f8; font-weight: 700; }
html body .car-sheet .switch .switch-track { background: linear-gradient(180deg, #03070f, #0a1426) !important; }
html body .car-sheet .switch input:checked + .switch-track { background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) !important; }
html body .car-sheet .car-save { min-height: 52px; border-radius: 16px; color: #f0cf86 !important; background: linear-gradient(180deg, #2c4c86 0%, #132544 55%, #0b1834 100%) !important; border: 0 !important; border-top: 1px solid rgba(168,204,255,.45) !important; box-shadow: 0 4px 0 #0a1630 !important; }
html body .car-sheet .btn.cta { margin-top: 14px; min-height: 56px; font-size: 18px; font-weight: 800; color: #0b1426 !important; background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) !important; border: 1px solid #fff3c4 !important; }
/* narrow phones (≤340): keep a gap between the round buttons */
@media (max-width: 340px) {
  html body #view[data-screen="car"] .car-play.round { width: 152px !important; height: 152px !important; flex-basis: 152px !important; }
  html body #view[data-screen="car"] .car-skip { width: 62px !important; height: 62px !important; }
  html body #view[data-screen="car"] .car-controls { gap: 8px !important; justify-content: center !important; }
}

/* ===== 22.11 12:20 — website / grant demo: Mary's ready answers and the contact line ===== */
html body #view[data-screen="ai"] .mary-chips { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
html body #view[data-screen="ai"] .mary-chips button { min-height: 54px; padding: 10px 16px; border-radius: 18px; text-align: left; font-weight: 700; font-size: 16px; color: #eef2f8;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), linear-gradient(180deg, #284675 0%, #132544 55%, #0b1834 100%); border: 0; border-top: 1px solid rgba(168,204,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 0 #0a1630, 0 10px 16px rgba(1,4,10,.75); }
html body #view[data-screen="ai"] .mary-chips button.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 2px #f0cf86, 0 4px 0 #0a1630 !important; color: #f0cf86; }
html body #view[data-screen="ai"] .mary-chat .msg { margin-top: 12px; }
html body #view[data-screen="ai"] .mary-chat .msg.mary { padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #0c1c3c, #112650); border: 1px solid rgba(240,207,134,.32); color: #eef2f8; }
html body #view[data-screen="ai"] .mary-chat .msg.me { text-align: right; color: #f0cf86; font-weight: 700; }
html body #view[data-screen="ai"] .mary-chat .mary-demo-q { font: 700 18px/1.3 Literata, Georgia, serif; color: #f4f6fa; margin: 10px 0 8px; }
html body #view[data-screen="ai"] .mary-chat .good { color: #5fe0a6; font-weight: 700; margin: 6px 0; }
html body #view[data-screen="ai"] .mary-chat .btn-line { margin: 8px 8px 0 0; min-height: 44px; }
html body .demo-contact { text-align: center; margin: 18px 0 6px; font-size: 14.5px; }
html body .demo-contact a { color: #f0cf86; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
html body #view[data-screen="ai"] .mary-chat .msg.me { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 4px !important; }
html body #view[data-screen="ai"] .mary-chat .msg.me p { display: inline-block; padding: 10px 14px; border-radius: 16px 16px 4px 16px; color: #0b1426 !important; font-weight: 700;
  background: linear-gradient(135deg, #8c6b28 0%, #f7e29c 25%, #c99e44 50%, #fff0b8 75%, #7a5b1e 100%) !important; }

/* 22.11 (owner): account circle on Home — gold, first letter of the name (person icon if none), left of the language pill, no caption */
html body .app.is-home .v3-hero .hm-top { gap: 10px !important; }
html body .app.is-home .v3-hero .hm-profile { display: grid !important; place-items: center; order: 0; width: 44px; height: 44px; border-radius: 50%; padding: 0 !important; transform: none !important;
  border: 0 !important; color: #3A2A08 !important; background: radial-gradient(circle at 35% 30%, #FFE6A8, #E8C27A 45%, #B8893A) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 6px 14px rgba(0,0,0,.55) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html body .app.is-home .v3-hero .hm-profile .hm-initial { font: 700 20px/1 Literata, Georgia, serif; }
html body .app.is-home .v3-hero .hm-profile svg, html body .app.is-home .v3-hero .hm-profile .ui-ico { color: #3A2A08 !important; stroke: #3A2A08 !important; width: 22px; height: 22px; }
html body .app.is-home .v3-hero .hm-top .lang-drop { order: 1; margin-left: 0 !important; }
html body .app.is-home .v3-hero .hm-profile:active { transform: translateY(2px) !important; }
html body .app.is-home .v3-hero .hm-profile.has-dot::after { content: ""; position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 2px #0b1a36; }
html body .app.is-home .v3-hero .hm-profile { position: relative; }
html body .app.is-home .v3-hero .hm-profile { flex: 0 0 44px; min-width: 44px; min-height: 44px; }

/* 22.11 purchases: My purchases panel (Profile) + Buy screen, owner-approved mock */
html body .my-buys h2 { font-size: 17px; margin: 0 0 6px; }
html body .my-buys .mb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-size: 16px; }
html body .my-buys .mb-gold { color: #E8C27A; } html body .my-buys .mb-aqua { color: #3FD0D4; }
html body .my-buys .mb-act { min-height: 44px; }
html body .my-buys .btn-line { width: 100%; margin-top: 8px; }
html body .my-buys .mb-restore { display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; color: #E8C27A; }
html body .buy h1 { font-family: Literata, Georgia, serif; }
html body .buy .lede { color: #B9C3D3; }
html body .buy-card { position: relative; border-radius: 20px; padding: 16px; margin: 0 0 14px; background: linear-gradient(180deg, #162B4D, #091326); box-shadow: inset 1px 1px 0 rgba(255,255,255,.18), inset -1px -2px 0 rgba(0,0,0,.45), 0 10px 18px -4px rgba(2,5,10,.75); color: #F2F5FA; }
html body .buy-card.main { box-shadow: inset 0 0 0 1.5px rgba(232,194,122,.6), inset 1px 1px 0 rgba(255,255,255,.18), 0 12px 22px -4px rgba(2,5,10,.75); }
html body .buy-badge { position: absolute; top: -10px; right: 14px; background: #E8C27A; color: #2a1d05; font-size: 12px; font-weight: 800; border-radius: 12px; padding: 3px 10px; }
html body .buy-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
html body .buy-t { display: block; font-size: 18px; } html body .buy-row small { display: block; color: #B9C3D3; font-size: 13px; margin-top: 2px; }
html body .buy-price { font-size: 24px; color: #E8C27A; white-space: nowrap; }
html body .buy-mh { display: flex; gap: 10px; align-items: center; }
html body .buy-orb { width: 40px; height: 40px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.8), rgba(120,200,255,.4) 30%, #0B2050 70%); box-shadow: 0 0 18px 3px rgba(63,208,212,.45); }
html body .buy-list { list-style: none; padding: 0; margin: 10px 0 12px; }
html body .buy-list li { position: relative; padding: 4px 0 4px 26px; font-size: 15px; line-height: 1.35; }
html body .buy-list li::before { content: "✓"; position: absolute; left: 4px; color: #E8C27A; font-weight: 800; }
html body .buy-card.mary .buy-list li::before { color: #3FD0D4; }
html body .buy .btn { width: 100%; min-height: 52px; border-radius: 26px; font-weight: 800; font-size: 17px; }
html body .buy .buy-gold { color: #2a1d05 !important; background: linear-gradient(180deg, #FFE6A8, #E8C27A 50%, #B8893A) !important; }
html body .buy .buy-mary { color: #04232a !important; background: linear-gradient(180deg, #9ff3f5, #3FD0D4 55%, #1f9ea2) !important; }
html body .buy-owned { border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; background: rgba(63,208,212,.08); border: 1px solid rgba(63,208,212,.35); }
html body .buy-free, html body .buy-fine { text-align: center; color: #B9C3D3; font-size: 13.5px; line-height: 1.45; }
html body .buy-fine { font-size: 12.5px; }
html body .buy-note { text-align: center; color: #F2F5FA; background: rgba(232,194,122,.12); border: 1px solid rgba(232,194,122,.4); border-radius: 14px; padding: 10px 12px; }
html body .buy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
html body .buy-links .text-link { min-height: 44px; display: inline-flex; align-items: center; color: #E8C27A; }
html body .app .my-buys .mb-gold { color: #E8C27A !important; font-weight: 800; }
html body .app .my-buys .mb-aqua { color: #3FD0D4 !important; font-weight: 800; }
html body .app .my-buys .mb-act { color: #E8C27A !important; border: 1px solid rgba(232,194,122,.55) !important; background: rgba(8,20,58,.4) !important; padding: 0 16px; border-radius: 22px; font-weight: 700; }
html body .app #view section.panel.my-buys b.mb-gold, html body .app #view section.panel.my-buys .mb-act { color: #E8C27A !important; -webkit-text-fill-color: #E8C27A !important; }
html body .app #view section.panel.my-buys b.mb-aqua { color: #3FD0D4 !important; -webkit-text-fill-color: #3FD0D4 !important; }
/* Mary buy button: steel (as in the approved mock) so only the course button is gold */
html body .app #view .buy .btn.buy-mary { color: #F2F5FA !important; -webkit-text-fill-color: #F2F5FA !important; background: linear-gradient(180deg, #22406e, #0f2142) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(63,208,212,.45), 0 6px 14px rgba(0,0,0,.5) !important; }
/* 22.11 (owner): Buy screen has no bottom menu */
html body .app.no-tabs #tabbar, html body .app.no-tabs #tabbar.v3 { display: none !important; }
/* store app: lock note on top of the Buy screen */
html body .app #view .buy .buy-lock { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin: 0 0 12px; border-radius: 16px; background: rgba(232,194,122,.1); border: 1px solid rgba(232,194,122,.45); color: #F2F5FA; font-size: 15px; line-height: 1.35; }
html body .app #view .buy .buy-lock svg, html body .app #view .buy .buy-lock .ui-ico { flex: none; width: 22px; height: 22px; color: #E8C27A; stroke: #E8C27A; }
html body .app #view .mary-free { text-align: center; color: #E8C27A !important; }
/* website demo: back to the AVENLIO site (top left) */
html body .app .demo-site { order: -1; margin-right: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; font: 700 14px/1 "Golos Text", sans-serif; letter-spacing: .06em; color: #F2F5FA !important; text-decoration: none; background: rgba(8,20,58,.55); border: 1px solid rgba(232,194,122,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .app.is-home .v3-hero .hm-top { justify-content: flex-start !important; }
html body .app.is-home .v3-hero .hm-top .hm-profile { margin-left: auto; }
@media (max-width: 400px) { html body .app .demo-site { width: 44px; padding: 0; justify-content: center; font-size: 18px; } html body .app .demo-site b { display: none; } }
/* invite to the full course after lesson 3 and after the free interview */
html body .app #view .panel.buy-invite { text-align: center; border: 1.5px solid rgba(232,194,122,.55) !important; }
html body .app #view .panel.buy-invite h2 { color: #E8C27A !important; font-family: Literata, Georgia, serif; }
html body .app #view .panel.buy-invite p { color: #F2F5FA !important; }
html body .app #view .panel.buy-invite .buy-gold { color: #2a1d05 !important; -webkit-text-fill-color: #2a1d05 !important; background: linear-gradient(180deg, #FFE6A8, #E8C27A 50%, #B8893A) !important; min-height: 52px; border-radius: 26px; font-weight: 800; }
/* ===== Profile in groups (owner 22.11) ===== */
html body .app #view .pf-me { display: flex; align-items: center; gap: 14px; }
html body .app #view .pf-me .avatar.big { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 28px Literata, Georgia, serif; color: #2a1d05; background: radial-gradient(circle at 35% 30%, #FFE6A8, #E8C27A 50%, #B8893A); box-shadow: 0 6px 14px rgba(0,0,0,.5); }
html body .app #view .pf-me .avatar.big .ui-ico { width: 30px; height: 30px; stroke: #2a1d05; }
html body .app #view .pf-me .grow { flex: 1; min-width: 0; }
html body .app #view .pf-me .pf-sub { display: block; margin-top: 6px; color: #B9C3D3; font-size: 14px; }
html body .app #view .pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
html body .app #view .pf-stats > * { min-height: 72px; padding: 10px 4px; border-radius: 16px; text-align: center; color: #F2F5FA; background: linear-gradient(180deg, #162B4D, #091326); box-shadow: inset 1px 1px 0 rgba(255,255,255,.18), inset -1px -2px 0 rgba(0,0,0,.45), 0 10px 18px -4px rgba(2,5,10,.75); border: 0; }
html body .app #view .pf-stats b { display: block; font-size: 22px; color: #E8C27A; }
html body .app #view .pf-stats span { font-size: 13px; color: #B9C3D3; line-height: 1.25; display: block; }
html body .app #view .pf-medals { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 16px; color: #F2F5FA; background: linear-gradient(180deg, #162B4D, #091326); box-shadow: inset 1px 1px 0 rgba(255,255,255,.18), 0 10px 18px -4px rgba(2,5,10,.75); border: 0; }
html body .app #view .pf-medals .sm-row { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
html body .app #view .pf-medals .sm-row i { width: 30px; height: 30px; flex: 0 0 30px; }
html body .app #view .pf-medals .sm-row img { width: 100%; height: 100%; }
html body .app #view .pf-medals .pf-val { font-size: 14px; color: #B9C3D3; white-space: nowrap; }
html body .app #view .pf-note { margin: 8px 4px 0; text-align: center; }
html body .app #view .pf-sec { margin: 22px 6px 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #E8C27A; font-weight: 700; font-family: inherit; text-align: left; }
html body .app #view .pf-group { padding: 0 14px; border-radius: 18px; background: linear-gradient(180deg, #162B4D, #091326); box-shadow: inset 1px 1px 0 rgba(255,255,255,.18), inset -1px -2px 0 rgba(0,0,0,.45), 0 10px 18px -4px rgba(2,5,10,.75); }
html body .app #view .pf-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 0; border: 0; border-top: 1px solid #1f2d4a; background: none; color: #F2F5FA; font-size: 16px; text-align: left; text-decoration: none; box-shadow: none; border-radius: 0; }
html body .app #view .pf-group > .pf-row:first-child { border-top: 0; }
html body .app #view .pf-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #0c1628; border: 1px solid #22314f; color: #E8C27A; font-weight: 700; font-size: 14px; }
html body .app #view .pf-ic .ui-ico { width: 18px; height: 18px; }
html body .app #view .pf-lbl { flex: 1; min-width: 0; }
html body .app #view .pf-val { color: #B9C3D3; font-size: 15px; text-align: right; max-width: 48%; }
html body .app #view .pf-chev { color: #6d7fa3; font-size: 22px; margin-left: 2px; }
html body .app #view .pf-tag { font-size: 12px; padding: 3px 8px; border-radius: 10px; background: rgba(232,194,122,.15); color: #E8C27A; font-weight: 700; }
html body .app #view .pf-row select, html body .app #view .pf-row input[type=date] { max-width: 52%; min-height: 44px; border-radius: 12px; background: #0c1628; color: #F2F5FA; border: 1px solid #2b3a58; padding: 0 10px; font-size: 15px; }
html body .app #view .pf-text { flex-wrap: wrap; }
html body .app #view .pf-text .tp-row { display: flex; gap: 6px; }
html body .app #view .pf-text .lang-pill { min-height: 44px; padding: 0 12px; font-size: 14px; }
html body .app #view .pf-danger .pf-lbl { color: #ff9c9c; }
html body .app #view .pf-confirm { flex-direction: column; align-items: stretch; }
html body .app #view .pf-me small.pf-sub { color: #B9C3D3 !important; -webkit-text-fill-color: #B9C3D3 !important; opacity: 1 !important; }
html body .app #view .pf-medals .sm-row i.locked img { filter: grayscale(1) brightness(.55); opacity: .7; }
html body .app #view .pf-date { flex-wrap: wrap; }
html body .app #view .pf-date .pf-lbl { flex: 1 1 140px; }
html body .app #view .pf-date input[type=date] { flex: 1 1 150px; max-width: none; }
html body .app #view .pf-static { flex-wrap: wrap; row-gap: 8px; padding: 10px 0; }
html body .app #view .pf-static .pf-lbl { flex: 1 1 120px; hyphens: manual; -webkit-hyphens: manual; }
html body .app #view .pf-static select { flex: 1 1 170px; max-width: none; }
html body .app #view .pf-text .tp-row { flex: 1 1 200px; }
html body .app #view .pf-text .tp-row .lang-pill { flex: 1; }
/* ===== First run (owner 22.11): language → my exam → course ready ===== */
html body .app #view .lang-step { text-align: center; padding-top: 8px; }
html body .app #view .lang-step .ls-hero { margin: -8px -16px 6px; height: 200px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, rgba(5,10,20,.1), #050A14 94%), url(assets/home-hero.jpg) center/cover; }
html body .app #view .lang-step .sv3-logo { width: 200px; height: auto; margin: 0 0 -4px; }
html body .app #view .lang-step h1 { margin: 14px 4px 6px; }
html body .app #view .ls-list { display: grid; gap: 10px; margin: 16px 0 18px; text-align: left; }
html body .app #view .ls-lang { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 0 18px; border: 0; border-radius: 18px; color: #F2F5FA; font-size: 18px; font-weight: 700; background: linear-gradient(180deg, #162B4D, #091326); box-shadow: inset 1px 1px 0 rgba(255,255,255,.18), inset -1px -2px 0 rgba(0,0,0,.45), 0 10px 18px -4px rgba(2,5,10,.75); }
html body .app #view .ls-lang.on { box-shadow: inset 0 0 0 2px #E8C27A, inset 1px 1px 0 rgba(255,255,255,.18), 0 12px 22px -4px rgba(2,5,10,.75); }
html body .app #view .ls-flag { font-size: 26px; }
html body .app #view .ls-name { flex: 1; }
html body .app #view .ls-ck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #3a4b6b; display: grid; place-items: center; font-size: 15px; font-weight: 900; }
html body .app #view .ls-lang.on .ls-ck { background: #E8C27A; border-color: #E8C27A; color: #2a1d05; }
html body .app #view .ls-trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 6px; }
html body .app #view .ls-trust span { font-size: 13px; color: #B9C3D3; padding: 6px 10px; border-radius: 14px; background: #0c1628; border: 1px solid #1e2c48; }
html body .app #view .ls-legal { margin-top: 12px; }
html body .app #view .ls-legal a { color: #E8C27A; }
html body .app #view .ls-dots { display: flex; gap: 6px; justify-content: center; margin: 4px auto 8px; }
html body .app #view .ls-dots i { width: 22px; height: 5px; border-radius: 3px; background: #24324d; }
html body .app #view .ls-dots i.on { background: #E8C27A; }
html body .app #view .welcome-top .ls-dots { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); margin: 0; }
html body .app #view .rd3 { text-align: center; }
html body .app #view .rd3 .ready-mark { margin: 14px auto 0; }
html body .app #view .rd-plan { list-style: none; padding: 6px 16px; margin: 16px 0 0; text-align: left; border-radius: 18px; background: linear-gradient(180deg, #162B4D, #091326); box-shadow: inset 0 0 0 1.5px rgba(232,194,122,.55), inset 1px 1px 0 rgba(255,255,255,.18), 0 12px 22px -4px rgba(2,5,10,.75); }
html body .app #view .rd-plan li { display: flex; gap: 12px; align-items: center; min-height: 60px; border-top: 1px solid #1f2d4a; }
html body .app #view .rd-plan li:first-child { border-top: 0; }
html body .app #view .rd-plan b { display: block; color: #F2F5FA; }
html body .app #view .rd-plan small { display: block; color: #B9C3D3; font-size: 14px; }
html body .app #view .rd-n { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #E8C27A; background: #0c1628; border: 1.5px solid rgba(232,194,122,.6); }
html body .app #view .rd-free { margin: 14px 0 18px; padding: 14px 16px; border-radius: 16px; background: #0c1628; border: 1px solid #1e2c48; color: #B9C3D3; font-size: 14px; line-height: 1.5; text-align: left; }
html body .app #view .rd3 .rd-home { margin-top: 10px; }
html body .app #view .lang-step h1 { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; font-size: clamp(24px, 7vw, 30px); line-height: 1.2; }
html body .app #view .sv3 .ls-dots { margin: 10px auto 2px; }
/* Dictation result (owner 22.11): right = bright green, wrong = red; "Your answer" coloured the same */
html body .app #view .write-result:not(.iv-verdict) { border: 0 !important; border-radius: 20px; padding: 16px; }
html body #app #view[data-screen] .panel.write-result.match:not(.iv-verdict) { background-image: none !important; background: linear-gradient(180deg, #2fd48f, #13a46a) !important; box-shadow: 0 10px 24px -6px rgba(19,164,106,.55), inset 0 1px 0 rgba(255,255,255,.35) !important; }
html body #app #view[data-screen] .panel.write-result:not(.match):not(.iv-verdict) { background-image: none !important; background: linear-gradient(180deg, #3a1a2a, #24101b) !important; box-shadow: inset 0 0 0 1.5px rgba(255,120,120,.55), 0 10px 22px -6px rgba(0,0,0,.6) !important; }
html body .app #view .write-result .result-head { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
html body .app #view .write-result.match:not(.iv-verdict) .result-head { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body .app #view .write-result:not(.match):not(.iv-verdict) .result-head { color: #ffb3b3 !important; -webkit-text-fill-color: #ffb3b3 !important; }
html body .app #view .write-result .compare { display: grid; gap: 10px; }
html body .app #view .write-result .compare > div { border-radius: 14px; padding: 10px 14px; background: rgba(5,10,20,.35) !important; }
html body .app #view .write-result .compare small { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.85) !important; -webkit-text-fill-color: rgba(255,255,255,.85) !important; }
html body .app #view .write-result .compare p { margin: 4px 0 0; font-size: 17px; color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body .app #view .write-result .compare .yours.ok { background: #0f8a57 !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
html body .app #view .write-result .compare .yours.bad { background: #b3263d !important; box-shadow: inset 0 0 0 2px rgba(255,170,170,.8); }
html body #app #view[data-screen] .panel.write-result .diff :is(.missing, .extra, .replace) { color: #5a0d18 !important; -webkit-text-fill-color: #5a0d18 !important; background: #ffd9dc !important; font-weight: 700; }
html body #app #view[data-screen] .panel.write-result .diff span { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body #app #view[data-screen] .panel.write-result .diff :is(.missing, .extra, .replace) { color: #5a0d18 !important; -webkit-text-fill-color: #5a0d18 !important; }
/* ===== Mary: conversation like a phone call (owner 22.11) ===== */
html body .app #view .mary-dock2 { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
html body .app #view .mary-dock2 .mary-input { flex: 1; display: flex; align-items: center; min-height: 54px; margin: 0; padding: 0 6px 0 16px; border-radius: 27px; background: #0c1730; border: 1px solid #2b4378; }
html body #app #view .mary-dock2 .mary-input input { flex: 1; min-width: 0; min-height: 50px; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #F2F5FA; font-size: 16px; padding: 0; }
html body .app #view .mary-dock2 .mi-send { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #1c2f5c; color: #E8C27A; font-size: 18px; border: 0; }
html body .app #view .mary-dock2 .mary-mic.big { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; border-radius: 50%; display: grid; place-items: center; color: #2a1d05; background: radial-gradient(circle at 35% 30%, #FFE6A8, #E8C27A 50%, #B8893A); box-shadow: 0 8px 18px -6px rgba(232,194,122,.5); border: 0; }
html body .app #view .mary-dock2 .mary-mic.big .ui-ico { width: 28px; height: 28px; stroke: #2a1d05; }
html body .app #view .mary-talkhint { text-align: center; margin: 4px 0 8px; }
html body #app #maryVoiceHost .mary-voice { position: fixed; inset: 0; z-index: 3000; background-color: #050A14 !important; display: flex; flex-direction: column; align-items: center; padding: calc(18px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom)); background: radial-gradient(90% 60% at 50% 38%, #1b3a86 0%, #0a1638 55%, #050A14 100%); overflow-y: auto; }
html body #app #maryVoiceHost .mary-voice .mv-top { font-size: 15px; color: #B9C3D3; font-weight: 600; margin: 0; }
html body #app #maryVoiceHost .mary-voice .mv-ai { display: inline-block; padding: 2px 7px; border-radius: 8px; font-size: 11px; font-weight: 800; color: #062a2b; background: #3FD0D4; vertical-align: 1px; }
html body #app #maryVoiceHost .mary-voice .mvx-orb { margin: 7vh 0 18px; padding: 0; border: 0; background: none; border-radius: 50%; box-shadow: 0 0 50px 10px rgba(63,208,212,.30); animation: mvBreath 3.2s ease-in-out infinite; }
html body #app #maryVoiceHost .mary-voice.listening .mvx-orb { box-shadow: 0 0 60px 16px rgba(63,208,212,.5); }
html body #app #maryVoiceHost .mary-voice.speaking .mvx-orb { animation: mvTalk .45s ease-in-out infinite alternate; box-shadow: 0 0 70px 18px rgba(232,194,122,.35); }
html body #app #maryVoiceHost .mary-voice.thinking .mvx-orb { animation: mvBreath 1.2s ease-in-out infinite; }
@keyframes mvBreath { 50% { transform: scale(1.05); } }
@keyframes mvTalk { to { transform: scale(1.09); } }
html body #app #maryVoiceHost .mary-voice .mv-state { font: 700 22px Literata, Georgia, serif; color: #F2F5FA; margin: 0; text-align: center; }
html body #app #maryVoiceHost .mary-voice .mv-line { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: #d6deeb; text-align: center; min-height: 48px; max-width: 34ch; }
html body #app #maryVoiceHost .mary-voice .mv-lang { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
html body #app #maryVoiceHost .mary-voice .mv-lang span { font-size: 14px; color: #B9C3D3; }
html body #app #maryVoiceHost .mary-voice .mv-lang button { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid #2b4378; background: #0f1d3a; color: #B9C3D3; font-weight: 700; font-size: 15px; }
html body #app #maryVoiceHost .mary-voice .mv-lang button.on { border-color: #E8C27A; color: #E8C27A; background: rgba(232,194,122,.12); }
html body #app #maryVoiceHost .mary-voice .mv-warn { margin-top: 12px; color: #ffb3b3; font-size: 14px; text-align: center; }
html body #app #maryVoiceHost .mary-voice .mv-btns { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 22px; }
html body #app #maryVoiceHost .mary-voice .mv-b { width: 64px; height: 64px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #14254d; border: 1px solid #2b4378; color: #F2F5FA; font-size: 20px; }
html body #app #maryVoiceHost .mary-voice .mv-b .ui-ico { width: 22px; height: 22px; }
html body #app #maryVoiceHost .mary-voice .mv-b small { font-size: 11px; color: #B9C3D3; }
html body #app #maryVoiceHost .mary-voice .mv-end { min-height: 64px; padding: 0 26px; border-radius: 32px; background: #5a1622; border: 1.5px solid #ff8a8a; color: #ffe1e1; font-weight: 800; font-size: 17px; }
@media (prefers-reduced-motion: reduce) { html body #app #maryVoiceHost .mary-voice .mvx-orb { animation: none !important; } }
html.mv-open, html.mv-open body { overflow: hidden; }
html.mv-open #tabbar { visibility: hidden; }
html body #app #maryVoiceHost .mary-voice .mv-en { margin-top: 16px; padding: 10px 18px; border-radius: 22px; background: rgba(232,194,122,.15); border: 1.5px solid rgba(232,194,122,.6); color: #FFE6A8; font-weight: 800; font-size: 18px; text-align: center; }
/* field: dictate mic + send; round voice button with a wave (owner's chat reference 22.11) */
html body #app #view .mary-dock2 .mi-dict { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 0; color: #B9C3D3; }
html body #app #view .mary-dock2 .mi-dict .ui-ico { width: 22px; height: 22px; }
html body #app #view .mary-dock2 .mi-dict.on { color: #3FD0D4; background: rgba(63,208,212,.15); box-shadow: 0 0 0 2px rgba(63,208,212,.6); }
html body #app #view .mary-dock2 .mv-go .mv-wave { display: flex; align-items: center; gap: 3px; height: 26px; }
html body #app #view .mary-dock2 .mv-go .mv-wave i { width: 4px; border-radius: 2px; background: #2a1d05; }
html body #app #view .mary-dock2 .mv-go .mv-wave i:nth-child(1), html body #app #view .mary-dock2 .mv-go .mv-wave i:nth-child(5) { height: 9px; }
html body #app #view .mary-dock2 .mv-go .mv-wave i:nth-child(2), html body #app #view .mary-dock2 .mv-go .mv-wave i:nth-child(4) { height: 17px; }
html body #app #view .mary-dock2 .mv-go .mv-wave i:nth-child(3) { height: 25px; }
html body #app #maryVoiceHost .mary-voice .mvx-orb { margin-top: 14vh !important; }
html body #app #maryVoiceHost .mary-voice .mvx-orb { margin-top: 8vh !important; }
html body #app #maryVoiceHost .mary-voice .mv-heard { margin: 12px 0 0; font-size: 16px; color: #B9C3D3; text-align: center; max-width: 34ch; }
html body #app #maryVoiceHost .mary-voice .mv-heard small { display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #8796b3; }
html body #app #maryVoiceHost .mary-voice .mv-reply { margin: 12px 0 0; padding: 14px 16px; max-width: 36ch; border-radius: 18px; background: rgba(19,37,77,.75); border: 1px solid #2b4378; font-size: 17px; line-height: 1.45; color: #F2F5FA; text-align: center; }
html body #app #maryVoiceHost .mary-voice .mv-reply .mv-q { display: block; margin: 8px 0; font: 700 21px/1.3 Literata, Georgia, serif; color: #FFE6A8; }
html body #app #maryVoiceHost .mary-voice .mv-again { margin-top: 12px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid rgba(232,194,122,.6); background: transparent; color: #E8C27A; font-weight: 700; font-size: 15px; }
/* phone-call buttons and the English pill (owner 22.11) */
html body #app #maryVoiceHost .mary-voice .mv-langnote { margin: 6px 0 0; font-size: 14px; color: #B9C3D3; }
html body #app #maryVoiceHost .mary-voice .mv-reply .mv-q { display: flex; align-items: center; gap: 10px; margin: 10px auto 4px; padding: 8px 8px 8px 16px; border-radius: 22px; background: linear-gradient(180deg, #FFE6A8, #E8C27A 55%, #C99A48); width: fit-content; max-width: 100%; text-align: left; }
html body #app #maryVoiceHost .mary-voice .mv-reply .mv-q b { font: 700 19px/1.3 Literata, Georgia, serif; color: #2a1d05; }
html body #app #maryVoiceHost .mary-voice .mv-qplay { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #13254d; color: #FFE6A8; border: 0; }
html body #app #maryVoiceHost .mary-voice .mv-qplay .ui-ico { width: 20px; height: 20px; }
html body #app #maryVoiceHost .mary-voice .mv-btns.call { gap: 28px; align-items: flex-start; }
html body #app #maryVoiceHost .mary-voice .mv-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
html body #app #maryVoiceHost .mary-voice .mv-col small { font-size: 14px; font-weight: 700; color: #F2F5FA; }
html body #app #maryVoiceHost .mary-voice .mv-col .mv-b { width: 64px; height: 64px; }
html body #app #maryVoiceHost .mary-voice .mv-mic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; background: radial-gradient(circle at 35% 30%, #FFE6A8, #E8C27A 50%, #B8893A); box-shadow: 0 0 0 4px rgba(232,194,122,.25), 0 10px 24px -6px rgba(232,194,122,.6); }
html body #app #maryVoiceHost .mary-voice .mv-mic .ui-ico { width: 36px; height: 36px; stroke: #fff; }
html body #app #maryVoiceHost .mary-voice .mv-mic.muted { background: #2b3a58; box-shadow: none; }
html body #app #maryVoiceHost .mary-voice .mv-mic.muted .ui-ico { stroke: #B9C3D3; }
html body #app #maryVoiceHost .mary-voice .mv-mic.muted::after { content: ""; position: absolute; width: 46px; height: 4px; border-radius: 2px; background: #ff8a8a; transform: rotate(-45deg); }
html body #app #maryVoiceHost .mary-voice .mv-mic { position: relative; }
html body #app #maryVoiceHost .mary-voice .mv-hang { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 0; color: #fff; background: radial-gradient(circle at 35% 30%, #ff8f8f, #e0303f 55%, #a3121f); box-shadow: 0 10px 22px -6px rgba(224,48,63,.6); }
html body #app #maryVoiceHost .mary-voice .mv-hang svg { width: 34px; height: 34px; }
html body #app #maryVoiceHost .mary-voice .mv-b .ui-ico { width: 26px; height: 26px; }
/* Reading: 3 actions (owner 22.11) */
html body #app #view .read-sample { text-align: center; margin: 10px 0 0; }
html body #app #view .read-sample .btn-aqua { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; }
html body #app #view .read-sample .ui-ico, html body #app #view .read-go .ui-ico { width: 20px; height: 20px; }
html body #app #view .read-go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-size: 18px; }
html body #app #view[data-screen] .panel.read-result.match { background-image: none !important; background: linear-gradient(180deg, #2fd48f, #13a46a) !important; border: 0 !important; }
html body #app #view[data-screen] .panel.read-result:not(.match) { background-image: none !important; background: linear-gradient(180deg, #3a1a2a, #24101b) !important; box-shadow: inset 0 0 0 1.5px rgba(255,120,120,.55) !important; border: 0 !important; }
html body #app #view[data-screen] .panel.read-result.match :is(.result-head, .hint, label span) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
/* Mary chat: keep the field clear of the orb in the tab bar */
html body #app #view[data-screen="ai"] { padding-bottom: 150px !important; }
html body #app #view[data-screen] .panel.read-result.match .rd-words, html body #app #view[data-screen] .panel.read-result.match .rd-words span { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body #app #view[data-screen] .panel.read-result.match label.iv-text > span { color: #fff !important; -webkit-text-fill-color: #fff !important; }

/* Demo Mary: visible AI label (Mary is always marked as an AI assistant) */
html body #app .mary-stage .ms-ai { margin: 4px 0 2px; font-size: 15px; font-weight: 700; color: #F2F5FA; text-align: center; }
html body #app .mary-stage .ms-ai .mv-ai { display: inline-block; padding: 2px 7px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #062a2b; background: #3FD0D4; vertical-align: 1px; }

/* 22.11 owner: on inner screens the top strip (Back / language) and the page were two different blues with a visible edge.
   One background for the whole screen: the page texture and light start at the very top, the strip is see-through. */
html body .app:not(.is-home):not(.is-welcome):not(.is-entry) { background:
  repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px),
  radial-gradient(120% 50% at 50% 0%, #1d335f 0%, transparent 70%),
  linear-gradient(180deg, #13254a 0%, #0b1834 60%, #071122 100%) !important; background-attachment: scroll !important; }
html body .app:not(.is-home):not(.is-welcome):not(.is-entry) #view { background: none !important; }
html body .app:not(.is-home):not(.is-welcome):not(.is-entry) #top { background: transparent !important; box-shadow: none !important; border: 0 !important; }
/* Safari paints the area under the clock with the page colour: match the top of inner screens */
html:has(.app:not(.is-home):not(.is-welcome):not(.is-entry)), html:has(.app:not(.is-home):not(.is-welcome):not(.is-entry)) body { background-color: #13254a !important; }
/* 22.11 owner: Learn — exam parts as compact rows (icon left, name and % right) so "Reference" and "My awards"
   fit above Mary's orb on a phone screen */
html body #app .v3-acc .v3-tile.v3-tile-row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 66px; padding: 8px 10px; text-align: left; }
html body #app .v3-tile-row .v3-tt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
html body #app .v3-tile-row .v3-tt b { text-align: left; font-size: 15px; line-height: 1.15; }
html body #app .v3-tile-row .v3-ring { flex: 0 0 auto; }
/* 22.11 owner: Profile title sits in the top row, centred between Back and the language pill */
html body #top .hd-title { margin: 0; flex: 1 1 auto; min-width: 0; text-align: center; font-family: var(--display, Georgia, serif); font-size: 24px; line-height: 1.2; font-weight: 700; color: #F2F5FA; text-shadow: 0 2px 8px rgba(0,0,0,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Learn: title moved into the top row; the one-line explanation stays, centred under it */
html body #app .v3-learn-scr > .v3-lede { margin-top: 0; text-align: center; }
@media (max-width: 360px) {
  html body #top .hd-title { font-size: 20px; }
  html:has(#top .hd-title) body #top .head-side .lang-drop b { display: none; } /* small phones: flag + arrow only, so the title has room */
}
