/* Oxford English Academy — app-style UI (mobile first). Uses the tokens from app.css. */
body.ac { background: #f4f5fb; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); -webkit-tap-highlight-color: transparent; }
body.ac-focus { padding-bottom: 0; }
.ac-wrap, .ac-main { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 16px; }
.ac-main { padding-block: 16px 28px; }
.ac-main.wide, body.ac-landing .ac-main { max-width: none; padding-inline: 0; padding-top: 0; }
.ac h1, .ac h2, .ac h3 { font-family: var(--font-head); }
.ac-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: rgba(6, 12, 51, .96); color: #fff; backdrop-filter: blur(8px); }
.ac-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-size: .95rem; letter-spacing: .01em; }
.ac-brand b { color: var(--gold-2); }
.ac-chips { display: flex; gap: 6px; align-items: center; }
.ac-chip { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .82rem; color: #fff; }
.ac-lvl { background: var(--gold); color: var(--navy); }
/* tab bar */
.ac-tabs { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-top: 1px solid var(--border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(6, 12, 51, .08); }
.ac-tabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.ac-tabs a .ti { font-size: 1.3rem; line-height: 1.15; filter: grayscale(.8); opacity: .8; }
.ac-tabs a.active { color: var(--navy); background: #fff3cf; }
.ac-tabs a.active .ti { filter: none; opacity: 1; }
@media (min-width: 900px) {
  body.ac { padding-bottom: 0; }
  .ac-tabs { position: sticky; top: 56px; inset: auto; z-index: 39; max-width: 560px; margin: 10px auto 0; border: 1px solid var(--border); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
  .ac-tabs a { flex-direction: row; justify-content: center; gap: 8px; font-size: .9rem; padding: 8px 6px; }
  .ac-tabs a .ti { font-size: 1.1rem; }
  .ac-top { padding-inline: max(16px, calc((100vw - 1100px) / 2)); }
  .ac-wrap, .ac-main { max-width: 900px; }
}
/* cards & bits */
.ac-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.ac-card h2, .ac-card h3 { margin: 0 0 .3em; }
.ac-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; border-radius: 22px; padding: 22px 20px; margin-bottom: 14px; position: relative; overflow: hidden; }
.ac-hero::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 211, 101, .35), transparent 70%); }
.ac-hero h1, .ac-hero h2 { color: #fff; margin: 0 0 6px; }
.ac-hero p { color: #d6dbf5; margin: 0 0 14px; }
.ac-progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.ac-card .ac-progress { background: var(--surface-2); }
.ac-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 99px; transition: width .5s; }
.ac-row { display: flex; align-items: center; gap: 12px; }
.ac-row.between { justify-content: space-between; }
.ac-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ac-tile { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; text-align: center; display: block; color: var(--text); box-shadow: var(--shadow); }
.ac-tile .big { font-size: 1.7rem; display: block; }
.ac-tile b { display: block; font-size: 1.15rem; }
.ac-tile small { color: var(--muted); }
.ac-tile:hover { border-color: var(--gold); color: var(--text); }
.ac-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff3cf; color: #7a5600; font-weight: 800; border-radius: 99px; padding: 3px 11px; font-size: .78rem; }
.ac-lock { opacity: .55; }
.ac-h { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; }
.ac-h h2 { margin: 0; font-size: 1.15rem; }
.ac-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-oliver { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3cf, var(--gold) 60%, var(--gold-dark)); display: grid; place-items: center; font-size: 1.6rem; flex: none; box-shadow: 0 4px 14px rgba(233, 179, 27, .5); }
.ac-oliver.speaking { animation: acPulse 1.1s infinite; }
@keyframes acPulse { 0% { box-shadow: 0 0 0 0 rgba(233, 179, 27, .6); } 70% { box-shadow: 0 0 0 16px rgba(233, 179, 27, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 179, 27, 0); } }
/* install banners */
.ac-install { position: fixed; z-index: 80; inset-inline: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); }
.ac-install > div { flex: 1; }
.ac-install .small { color: #cfd4ef; font-size: .8rem; }
.ac-install .btn-ghost { color: #cfd4ef; }
/* path / learn map */
.ac-unit { margin-bottom: 18px; }
.ac-unit-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.ac-unit-ico { width: 46px; height: 46px; border-radius: 14px; background: #fff3cf; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.ac-lessons { display: grid; gap: 8px; }
.ac-lesson { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; color: var(--text); }
.ac-lesson:hover { border-color: var(--gold); color: var(--text); }
.ac-lesson .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--navy); flex: none; }
.ac-lesson.done .dot { background: var(--success); color: #fff; }
.ac-lesson.open .dot { background: var(--gold); color: var(--navy); }
.ac-lesson.locked { opacity: .55; pointer-events: none; }
.ac-lesson .meta { font-size: .8rem; color: var(--muted); }
.ac-lesson .go { margin-inline-start: auto; font-size: 1.2rem; color: var(--muted); }
/* level badge */
.ac-level { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3cf, var(--gold)); color: var(--navy); font-weight: 800; font-size: 2.2rem; font-family: var(--font-head); box-shadow: 0 10px 30px rgba(233, 179, 27, .45); }
.ac-skill { display: grid; grid-template-columns: 90px 1fr 42px; gap: 10px; align-items: center; margin: 8px 0; font-size: .9rem; }
.ac-skill .bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; } .ac-skill .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-3), var(--navy)); border-radius: 99px; }
.ac-choice { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.ac-choice label { display: block; border: 2px solid var(--border); border-radius: 14px; padding: 12px; cursor: pointer; background: #fff; font-weight: 600; }
.ac-choice input { position: absolute; opacity: 0; }
.ac-choice label:has(input:checked) { border-color: var(--gold); background: #fff8e1; }
.ac-choice small { display: block; color: var(--muted); font-weight: 500; }
/* ================= Lesson player ================= */
.ls { display: flex; flex-direction: column; min-height: 100dvh; max-width: 860px; margin-inline: auto; }
.ls-top { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }
.ls-top .row { display: flex; align-items: center; gap: 10px; }
.ls-top a.back { color: #fff; font-size: 1.4rem; padding: 2px 8px; }
.ls-top h1 { font-size: 1rem; margin: 0; flex: 1; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-stages { display: flex; gap: 6px; margin-top: 8px; }
.ls-stages span { flex: 1; text-align: center; font-size: .75rem; font-weight: 800; padding: 5px 0; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #b9c0e6; }
.ls-stages span.on { background: var(--gold); color: var(--navy); } .ls-stages span.ok { background: rgba(18, 128, 92, .6); color: #fff; }
.ls-main { flex: 1; padding: 14px 14px 130px; }
.ls-teacher { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ls-caption { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: .95rem; min-height: 46px; line-height: 1.5; color: var(--text); }
[dir=rtl] .ls-caption { border-radius: 16px 16px 4px 16px; }
.ls-board { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; position: relative; min-height: 260px; background-image: linear-gradient(transparent 31px, #eef0f8 32px); background-size: 100% 32px; background-position: 0 14px; }
.ls-board h2 { margin: 0 0 12px; font-size: 1.5rem; display: flex; gap: 10px; align-items: center; background: #fff; display: inline-flex; padding-inline-end: 10px; }
.ls-board .ico { font-size: 1.7rem; }
.ls-pts { margin: 0 0 12px; padding-inline-start: 22px; background: rgba(255, 255, 255, .85); border-radius: 8px; }
.ls-pts li { margin: 5px 0; font-size: 1.05rem; font-weight: 500; }
.ls-ex { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ls-ex button { display: inline-flex; gap: 8px; align-items: center; text-align: start; background: #fff8e1; border: 1.5px solid #f2dd9a; border-radius: 14px; padding: 8px 14px; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.ls-ex button small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.ls-ex button:hover, .ls-ex button.playing { background: #fff0bd; border-color: var(--gold); }
.ls-table { border-collapse: collapse; width: 100%; background: #fff; margin: 10px 0; font-size: .98rem; border-radius: 10px; overflow: hidden; }
.ls-table th { background: var(--navy); color: #fff; padding: 8px 10px; text-align: start; }
.ls-table td { border: 1px solid var(--border); padding: 8px 10px; }
.ls-dlg { display: grid; gap: 8px; margin: 10px 0; }
.ls-dlg button { text-align: start; border: 0; background: #eef1fb; border-radius: 16px; padding: 9px 14px; font: inherit; font-size: 1.02rem; cursor: pointer; max-width: 88%; color: var(--text); }
.ls-dlg button b { display: block; font-size: .75rem; color: var(--navy-3); }
.ls-dlg button.b { background: #fff3cf; margin-inline-start: auto; }
.ls-dlg button.playing { outline: 2px solid var(--gold); }
.ls-note { background: #fff; border: 2px solid var(--gold); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.ls-note h3 { margin: 0 0 6px; font-size: 1.1rem; } .ls-note ul { margin: 0 0 6px; padding-inline-start: 20px; }
.ls-dock { position: fixed; z-index: 35; inset-inline: 0; bottom: 0; background: #fff; border-top: 1px solid var(--border); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 26px rgba(6, 12, 51, .1); }
.ls-dock .in { max-width: 860px; margin-inline: auto; display: flex; gap: 8px; align-items: center; justify-content: center; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--border); background: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; color: var(--navy); flex: none; }
.round.play { width: 58px; height: 58px; background: var(--gold); border-color: var(--gold); font-size: 1.4rem; }
.round.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.round[disabled] { opacity: .4; }
.ls-dots { display: flex; gap: 5px; justify-content: center; margin: 12px 0 0; }
.ls-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); } .ls-dots i.on { background: var(--gold); width: 22px; border-radius: 99px; } .ls-dots i.past { background: var(--navy-3); }
/* exercises */
.ex-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; }
.ex-q { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; line-height: 1.4; }
.ex-opts { display: grid; gap: 10px; }
.ex-opt { text-align: start; border: 2px solid var(--border); border-radius: 14px; padding: 13px 16px; background: #fff; font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer; color: var(--text); }
.ex-opt:hover { border-color: var(--navy-3); } .ex-opt.sel { border-color: var(--gold); background: #fff8e1; }
.ex-opt.right { border-color: var(--success); background: var(--success-bg); } .ex-opt.wrong { border-color: var(--danger); background: var(--danger-bg); }
.ex-input { width: 100%; font: inherit; font-size: 1.15rem; padding: 13px 16px; border: 2px solid var(--border); border-radius: 14px; }
.ex-input:focus { outline: none; border-color: var(--gold); }
.ex-bank, .ex-answer { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px; border-radius: 14px; }
.ex-answer { border: 2px dashed var(--border); margin-bottom: 12px; background: #fafbff; }
.tok { border: 2px solid var(--border); background: #fff; border-radius: 12px; padding: 8px 14px; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; color: var(--navy); }
.tok:hover { border-color: var(--gold); }
.ex-fb { margin-top: 14px; border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.ex-fb.ok { background: var(--success-bg); color: var(--success); } .ex-fb.no { background: var(--danger-bg); color: var(--danger); }
.ex-fb small { display: block; font-weight: 500; color: var(--text); margin-top: 3px; }
.ex-listen { display: flex; justify-content: center; margin: 4px 0 16px; }
.ex-listen .round { width: 84px; height: 84px; font-size: 2rem; background: var(--gold); border-color: var(--gold); }
.ex-match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ex-match .ex-opt { font-size: .95rem; padding: 10px 12px; } .ex-match .ex-opt.done { opacity: .35; pointer-events: none; border-color: var(--success); }
.ex-mic { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ex-mic .target { font-size: 1.3rem; font-weight: 700; text-align: center; }
.ex-mic .heard { min-height: 24px; color: var(--muted); font-style: italic; text-align: center; }
.rec { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-size: 1.8rem; cursor: pointer; box-shadow: 0 8px 22px rgba(198, 40, 40, .35); }
.rec.on { animation: acPulse 1s infinite; background: #e53935; }
.ex-prog { height: 6px; background: var(--surface-2); border-radius: 99px; margin-bottom: 14px; overflow: hidden; } .ex-prog i { display: block; height: 100%; background: var(--gold); transition: width .3s; }
/* result */
.ring { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; font-size: 2rem; font-weight: 800; font-family: var(--font); background: conic-gradient(var(--c, var(--success)) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.ring::after { content: ""; position: absolute; inset: 11px; background: #fff; border-radius: 50%; } .ring b { position: relative; z-index: 1; }
.rv { border-inline-start: 4px solid var(--border); padding: 8px 12px; margin: 8px 0; background: #fafbff; border-radius: 0 10px 10px 0; font-size: .95rem; } .rv.ok { border-color: var(--success); } .rv.no { border-color: var(--danger); }
/* chat drawer */
.ls-chat { position: fixed; z-index: 60; inset: 0; background: rgba(6, 12, 51, .5); display: none; align-items: flex-end; justify-content: center; }
.ls-chat.open { display: flex; }
.ls-chat .sheet { background: #fff; width: 100%; max-width: 640px; height: min(78dvh, 640px); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.ls-chat header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ls-chat header b { flex: 1; }
.ls-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; font-size: .98rem; }
.msg.t { background: #eef1fb; align-self: flex-start; border-end-start-radius: 4px; } .msg.me { background: var(--navy); color: #fff; align-self: flex-end; border-end-end-radius: 4px; }
.msg .fix { margin-top: 8px; padding: 8px 10px; background: #fff8e1; color: var(--text); border-radius: 10px; font-size: .88rem; } .msg .fix s { color: var(--danger); } .msg .fix b { color: var(--success); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.chips button { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--navy); }
.ls-send { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); }
.ls-send input { flex: 1; font: inherit; padding: 11px 14px; border: 2px solid var(--border); border-radius: 99px; min-width: 0; }
.mode-tag { font-size: .7rem; background: var(--surface-2); color: var(--muted); border-radius: 99px; padding: 2px 8px; font-weight: 700; }
/* conversation rooms */
.rm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 12px 0; }
.rm-p { text-align: center; background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 14px 8px; transition: border-color .2s, box-shadow .2s; }
.rm-p .av { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; background: var(--navy-3); color: #fff; }
.rm-p.speaking { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 179, 27, .25); } .rm-p.speaking .av { background: var(--gold); color: var(--navy); animation: acPulse 1.1s infinite; }
.rm-p.me .av { outline: 3px solid #fff3cf; } .rm-p small { color: var(--muted); display: block; }
.rm-stage { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 22px; padding: 18px; }
.rm-stage h2 { color: #fff; margin: 0 0 4px; } .rm-q { font-size: 1.25rem; font-weight: 700; margin: 10px 0; } .rm-timer { font-size: 2.4rem; font-weight: 800; font-family: var(--font); color: var(--gold-2); }
.rm-status { font-size: .8rem; color: var(--muted); margin: 6px 0; }
/* landing */
.lp-hero { background: radial-gradient(1000px 400px at 80% -10%, rgba(246, 211, 101, .22), transparent), linear-gradient(160deg, #060c33, #1c2a6b); color: #fff; padding: 56px 18px 64px; text-align: center; }
.lp-hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.12; margin: 0 auto 14px; max-width: 820px; }
.lp-hero h1 em { font-style: normal; color: var(--gold-2); }
.lp-hero p { color: #d6dbf5; font-size: 1.1rem; max-width: 640px; margin: 0 auto 22px; }
.lp-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.lp-badges span { background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 5px 14px; font-size: .85rem; font-weight: 600; }
.lp-sec { max-width: 1050px; margin: 0 auto; padding: 44px 18px; }
.lp-sec h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 8px; } .lp-sec .sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.lp-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.lp-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); } .lp-card .i { font-size: 2rem; } .lp-card h3 { margin: 8px 0 4px; font-size: 1.12rem; } .lp-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.lp-steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lp-steps li { list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 18px 60px; position: relative; counter-increment: s; }
[dir=rtl] .lp-steps li { padding: 18px 60px 18px 18px; }
.lp-steps li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: grid; place-items: center; }
.lp-price { background: linear-gradient(160deg, #060c33, #1c2a6b); color: #fff; border-radius: 26px; padding: 30px 22px; text-align: center; max-width: 560px; margin: 0 auto; }
.lp-price .amt { font-size: 3.4rem; font-weight: 800; font-family: var(--font); color: var(--gold-2); line-height: 1; }
.lp-price ul { text-align: start; list-style: none; padding: 0; margin: 18px auto; max-width: 380px; } .lp-price li { padding: 5px 0; } .lp-price li::before { content: "✓ "; color: var(--gold-2); font-weight: 800; }
.lp-track { display: flex; gap: 14px; align-items: center; } .lp-track .i { font-size: 2.2rem; }
.lp-demo { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 18px; max-width: 520px; margin: 28px auto 0; text-align: start; color: var(--text); }
.lp-demo .bubble { background: #eef1fb; border-radius: 14px; padding: 9px 13px; margin: 6px 0; font-size: .95rem; } .lp-demo .bubble.me { background: var(--navy); color: #fff; margin-inline-start: 22%; }
.lp-demo .fix { background: #fff8e1; border-radius: 10px; padding: 6px 10px; font-size: .85rem; margin: 6px 0 0; }
@media (max-width: 520px) { .ac-choice { grid-template-columns: 1fr; } .ex-match { grid-template-columns: 1fr 1fr; } }

.ls-dock .in { gap: 6px; flex-wrap: nowrap; }
@media (max-width: 440px) { .ls-dock .lbl { display: none; } .ls-dock .round { width: 42px; height: 42px; } .ls-dock .round.play { width: 54px; height: 54px; } .ls-dock .btn { padding: 12px 16px; } }

/* English content stays left-to-right inside Arabic pages; chat and captions follow the language of the text */
.ls-board, .ex-q, .ex-opt, .tok, .ex-answer, .ex-bank, .ex-input, .rm-q, .lp-demo, .ex-mic .target, .ac-skill > span:first-child { direction: ltr; text-align: left; }
.msg, .ls-caption, .rv { unicode-bidi: plaintext; text-align: start; }
[dir=rtl] .ls-board h2 { flex-direction: row; }
