/* Test-taking screen. Deliberately one light look (like the real test software), independent of the dashboard theme. */
#exam { position: fixed; inset: 0; z-index: 100; background: #ffffff; color: #1c2427; display: flex; flex-direction: column; font: 16px/1.5 Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif; color-scheme: light; direction: ltr; text-align: left; }
#exam * { box-sizing: border-box; }
#exam button { font: inherit; }
#exam :focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.xbar { background: #103a42; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 16px; min-height: 56px; position: relative; flex: 0 0 auto; }
.xbrand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.xbrand b { font-size: 15px; letter-spacing: .06em; border: 1.5px solid #fff; padding: 2px 7px; border-radius: 3px; }
.xbrand span { font-size: 13px; opacity: .85; white-space: nowrap; }
.xtimer { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.xtimer .v { font-size: 18px; font-weight: 700; min-width: 4.2ch; text-align: right; }
.xtimer .v.low { color: #fca5a5; }
.xtb { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 4px; padding: 6px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.xtb:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.xtb:disabled { opacity: .35; cursor: not-allowed; }
.xtb.primary { background: #fff; color: #103a42; border-color: #fff; }
.xtb.primary:hover:not(:disabled) { background: #dff1ee; }
.xtb.primary:disabled { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.xtb.small { padding: 3px 9px; font-size: 12px; font-weight: 600; }
.xbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.xvol { position: absolute; right: 16px; top: 100%; background: #0b2c33; padding: 12px 16px; border-radius: 0 0 6px 6px; display: flex; gap: 10px; align-items: center; color: #fff; z-index: 3; }
.xvol input { width: 160px; accent-color: #5eead4; }
.xstrip { background: #f2f5f6; border-bottom: 1px solid #cdd6da; padding: 7px 16px; font-size: 14px; color: #58676e; display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 0 0 auto; }
.xstrip b { color: #1c2427; }
.xstrip .mode { margin-left: auto; font-weight: 700; color: #0f766e; }
.xstage { flex: 1 1 auto; overflow: auto; padding: 24px 16px 48px; }
.xstage > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.x-center { max-width: 780px; margin: 0 auto; }
.x-h { font-size: 20px; margin: 0 0 16px; font-weight: 700; }
.xsplit { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); border: 1px solid #cdd6da; border-radius: 6px; overflow: hidden; min-height: 62vh; }
.xsplit > section { padding: 22px 24px; min-width: 0; overflow: auto; max-height: calc(100vh - 150px); }
.xsplit > section + section { border-left: 1px solid #cdd6da; }
.xsplit > section.stim { background: #f2f5f6; }
@media (max-width: 820px) { .xsplit { grid-template-columns: minmax(0,1fr); } .xsplit > section { max-height: none; } .xsplit > section + section { border-left: 0; border-top: 1px solid #cdd6da; } }
.passage { font-family: Georgia, "Times New Roman", Times, serif; font-size: 17px; line-height: 1.7; max-width: 68ch; }
.passage p { margin: 0 0 1em; }
.passage table { border-collapse: collapse; margin: 8px 0 14px; font-family: Arial, sans-serif; font-size: 15px; }
.passage td, .passage th { border: 1px solid #b9c4c9; padding: 6px 10px; }
.passage img { max-width: 100%; height: auto; display: block; margin: 8px auto; }
.passage mark { background: transparent; color: inherit; }
.passage mark.on { background: #fde68a; padding: 0 2px; }
.passage .sent { cursor: pointer; border-radius: 3px; }
.passage .sent:hover { background: #e3f3f0; }
.passage .sent.picked { background: #0f766e; color: #fff; }
.p-title { font-family: Arial, sans-serif; font-size: 18px; margin: 0 0 12px; text-align: center; }
.mail { background: #fff; border: 1px solid #cdd6da; border-radius: 6px; }
.mail-h { padding: 10px 14px; border-bottom: 1px solid #cdd6da; font-size: 15px; display: grid; gap: 2px; font-family: Arial, sans-serif; }
.mail-b { padding: 14px; }
.doc { background: #fff; border: 1px solid #cdd6da; border-radius: 6px; padding: 16px; }
.doc.ad { border: 2px solid #1c2427; text-align: center; }
.doc.social { border-radius: 12px; }
.doc.chat p { margin-bottom: .5em; }
.qtext { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 11px 14px; border: 1.5px solid #cdd6da; border-radius: 6px; background: #fff; cursor: pointer; width: 100%; color: #1c2427; }
.opt:hover { border-color: #0f766e; }
.opt .dot { flex: 0 0 18px; height: 18px; border: 2px solid #58676e; border-radius: 50%; margin-top: 2px; position: relative; }
.opt.on { border-color: #0f766e; background: #e3f3f0; }
.opt.on .dot { border-color: #0f766e; }
.opt.on .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0f766e; }
.opt.ok { border-color: #157a3c; background: #e7f6ec; }
.opt.no { border-color: #b42318; background: #fdecea; }
.ctw { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 2.35; max-width: 78ch; background: #f2f5f6; border: 1px solid #cdd6da; border-radius: 6px; padding: 20px 24px; }
.w { white-space: nowrap; }
.lb { width: 1.05em; height: 1.45em; border: 0; border-bottom: 2px solid #1c2427; background: #fff; text-align: center; font: inherit; font-family: Georgia, serif; padding: 0; margin: 0 1px; border-radius: 2px 2px 0 0; vertical-align: baseline; color: #0f766e; font-weight: 700; }
.lb:focus { outline: none; background: #e3f3f0; border-bottom-color: #0f766e; }
.lb.ok { color: #157a3c; border-bottom-color: #157a3c; } .lb.no { color: #b42318; border-bottom-color: #b42318; background: #fdecea; }
.fix { color: #157a3c; font-weight: 700; font-family: Arial, sans-serif; font-size: 13px; vertical-align: super; margin-left: 2px; }
.dir { max-width: 780px; margin: 0 auto; font-size: 17px; }
.dir h2 { font-size: 24px; margin: 0 0 14px; }
.dir table { border-collapse: collapse; max-width: 100%; }
.dir th { background: #0f766e; color: #fff; }
.dir th, .dir td { padding: .6rem .75rem; border: 1px solid #b9c4c9; text-align: left; }
.dirwrap { overflow-x: auto; }
.cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.xbtn { background: #0f766e; color: #fff; border: 0; border-radius: 5px; padding: 10px 22px; font-weight: 700; cursor: pointer; font-size: 16px; }
.xbtn:hover { filter: brightness(1.08); }
.xbtn.ghost { background: transparent; color: #0f766e; border: 1.5px solid #0f766e; }
.xbtn:disabled { opacity: .4; cursor: not-allowed; }
.media { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.media img, .media video { max-height: 44vh; max-width: 100%; width: auto; border-radius: 6px; border: 1px solid #cdd6da; background: #fff; }
.prog { width: min(420px, 100%); height: 10px; background: #f2f5f6; border: 1px solid #cdd6da; border-radius: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: #0f766e; transition: width .25s linear; }
.status { font-weight: 700; color: #58676e; font-size: 15px; }
.status.rec { color: #b42318; }
.recdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #b42318; margin-right: 6px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .recdot { animation: none; } .prog i { transition: none; } }
.bas { max-width: 860px; margin: 0 auto; display: grid; gap: 20px; }
.turn { display: flex; gap: 14px; align-items: center; }
.turn img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex: 0 0 66px; border: 1px solid #cdd6da; }
.bubble { background: #f2f5f6; border: 1px solid #cdd6da; border-radius: 10px; padding: 10px 14px; font-size: 17px; min-width: 0; }
.resp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; font-size: 17px; min-width: 0; }
.slot { min-width: 104px; min-height: 40px; border: 0; border-bottom: 2px solid #1c2427; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; background: transparent; cursor: pointer; }
.slot.over { background: #e3f3f0; }
.slot.ok { border-bottom-color: #157a3c; } .slot.no { border-bottom-color: #b42318; }
.bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px; border: 1px dashed #cdd6da; border-radius: 8px; min-height: 72px; }
.tile { background: #fff; border: 1.5px solid #0f766e; color: #1c2427; border-radius: 5px; padding: 6px 12px; font-size: 16px; cursor: grab; user-select: none; }
.slot .tile { cursor: pointer; }
.tile:hover { background: #e3f3f0; }
.ed-head { font-size: 15px; border: 1px solid #cdd6da; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 8px 12px; background: #f2f5f6; display: grid; gap: 2px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid #cdd6da; border-bottom: 0; padding: 6px 8px; background: #f2f5f6; }
.toolbar.first { border-radius: 6px 6px 0 0; }
.toolbar button { background: #fff; border: 1px solid #cdd6da; border-radius: 4px; padding: 4px 12px; font-size: 14px; cursor: pointer; }
.toolbar .wc { margin-left: auto; font-size: 14px; color: #58676e; font-variant-numeric: tabular-nums; }
textarea.essay { width: 100%; min-height: 340px; border: 1px solid #cdd6da; border-radius: 0 0 6px 6px; padding: 12px; font: 16px/1.6 Arial, sans-serif; resize: vertical; background: #fff; color: #1c2427; }
textarea.essay:focus { outline: 2px solid #0f766e; outline-offset: -2px; }
.prompt p { margin: 0 0 .8em; } .prompt ul { margin: 0 0 .8em; padding-left: 1.3em; }
.post { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.av { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #0f766e; color: #fff; display: grid; place-items: center; font-weight: 700; }
.av.st { background: #5b6b73; }
.post .body { background: #fff; border: 1px solid #cdd6da; border-radius: 6px; padding: 10px 14px; min-width: 0; white-space: pre-wrap; }
.post .name { font-weight: 700; margin-bottom: 4px; }
.xover { position: fixed; inset: 0; background: rgba(10,25,30,.55); z-index: 120; display: grid; place-items: center; padding: 16px; }
.xover .box { background: #fff; border-radius: 8px; max-width: 640px; width: 100%; max-height: 85vh; overflow: auto; padding: 24px; }
.xnote { border-radius: 6px; padding: 10px 14px; font-size: 15px; margin: 12px 0; }
.xnote.warn { background: #fff4e0; color: #a15c07; } .xnote.info { background: #e3f3f0; color: #0f766e; } .xnote.ok { background: #e7f6ec; color: #157a3c; } .xnote.bad { background: #fdecea; color: #b42318; }
.lessoncard { border-left: 4px solid #b5652a; background: #f7ebe0; border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 0 0 16px; }
.lessoncard .fa { direction: rtl; text-align: right; font-family: Vazirmatn, Tahoma, sans-serif; margin-top: 6px; }
/* feedback */
.fb { max-width: 980px; margin: 0 auto; display: grid; gap: 18px; }
.fb h2 { font-size: 22px; margin: 0; }
.fb .score { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: #f2f5f6; border-radius: 8px; padding: 16px 20px; }
.fb .score b { font-size: 36px; font-variant-numeric: tabular-nums; }
.fb .item { border-top: 1px solid #cdd6da; padding-top: 14px; display: grid; gap: 8px; }
.fb .q { font-weight: 700; }
.tag { font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 7px; margin-left: 6px; }
.tag.ok { background: #e7f6ec; color: #157a3c; } .tag.no { background: #fdecea; color: #b42318; } .tag.sk { background: #f2f5f6; color: #58676e; }
.expl { background: #f2f5f6; border-radius: 6px; padding: 10px 14px; font-size: 15px; }
.expl h4 { font-size: 15px; margin: .5em 0 .2em; } .expl p { margin: .3em 0; } .expl ul { margin: .3em 0; padding-left: 1.2em; }
.pre { white-space: pre-wrap; background: #f2f5f6; border-radius: 6px; padding: 10px 14px; font-size: 15px; }
.crit { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.crit div { background: #f2f5f6; border-radius: 6px; padding: 8px 10px; font-size: 14px; display: flex; justify-content: space-between; }
.err { border-left: 3px solid #b42318; padding: 6px 12px; background: #fff; }
.err .was { color: #b42318; text-decoration: line-through; } .err .now { color: #157a3c; font-weight: 700; }
.align span { padding: 1px 3px; border-radius: 3px; margin-right: 3px; } .align .omit { background: #fdecea; color: #b42318; text-decoration: line-through; } .align .sub { background: #fff4e0; color: #a15c07; } .align .ok { color: #157a3c; } .align .insert { background: #e3f3f0; color: #0f766e; }
audio { max-width: 100%; }

/* ---------- writing feedback sheet (Writing Desk format) ---------- */
.sh { display: grid; gap: 14px; }
.sh-card { border: 1px solid #cdd6da; border-radius: 10px; padding: 16px; display: grid; gap: 10px; background: #fff; min-width: 0; }
.sh-card h3 { font-size: 17px; margin: 0; }
.sh-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.sh .eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #58676e; }
.sh .small { font-size: 13.5px; } .sh .muted { color: #58676e; }
.sh-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sh-score { border: 1px solid #cdd6da; border-radius: 8px; padding: 8px 12px; }
.sh-score .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-score .v small { font-size: 12.5px; font-weight: 500; color: #58676e; }
.sh-t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sh-t th, .sh-t td { border-bottom: 1px solid #e3e8ea; padding: 8px 7px; text-align: left; vertical-align: top; }
.sh-t th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #58676e; }
.sh-t p { margin: 0; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #cdd6da; } .dots i.on { background: #0e6e62; }
.sh .fa { font-family: Vazirmatn, Tahoma, sans-serif; direction: rtl; text-align: right; line-height: 1.9; color: #3c4a50; margin: 2px 0 0; }
.marked { font-size: 16px; line-height: 2.15; white-space: pre-wrap; overflow-wrap: anywhere; }
.sh del, .ex-orig del { color: #b42318; text-decoration-thickness: 1.5px; }
.sh ins { color: #157a3c; text-decoration: none; font-weight: 600; }
.sh .code { font: 600 10.5px/1 ui-monospace, Menlo, monospace; vertical-align: super; color: #9a6500; margin-left: 2px; }
.rule { border: 1px solid #e3e8ea; border-radius: 8px; padding: 10px 12px; display: grid; gap: 5px; }
.rule p { margin: 0; } .rule .fa { border-top: 1px dashed #cdd6da; padding-top: 5px; }
.sh-note { border-left: 3px solid #0e6e62; background: #e3f2ef; padding: 8px 12px; border-radius: 0 8px 8px 0; }
ul.check { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
ul.check li::before { content: "☐ "; color: #58676e; }
.ok-t { color: #157a3c; } .no-t { color: #b42318; }
.ex-item { border-top: 1px solid #e3e8ea; padding-top: 12px; display: grid; gap: 8px; }
.ex-item p { margin: 0; }
.ex-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-opt { font: inherit; font-size: 15px; padding: 7px 14px; border-radius: 8px; border: 1px solid #b9c4c9; background: #fff; color: #1c2427; cursor: pointer; }
.ex-opt:hover:not(:disabled) { border-color: #0e6e62; }
.ex-opt.right { background: #e7f6ec; border-color: #157a3c; color: #157a3c; font-weight: 600; }
.ex-opt.wrong { background: #fdecea; border-color: #b42318; color: #b42318; text-decoration: line-through; }
.ex-opt:disabled { cursor: default; }
.row-ex { display: flex; gap: 10px; align-items: flex-start; }
.ex-in { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #b9c4c9; border-radius: 8px; flex: 1; min-width: 0; resize: vertical; background: #fff; color: #1c2427; }
.ex-in:disabled { background: #f2f5f6; }
.ex-orig { color: #3c4a50; }
.ex-fb { display: grid; gap: 4px; }
@media (max-width: 640px) { .sh-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row-ex { flex-direction: column; align-items: stretch; } .sh-card { padding: 12px; } }

/* ---------- 2026 test look (matched to the IBTIL UI guide screenshots) ---------- */
#exam { font-family: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #1a1a1a; }
.xbar { background: #0e8c8f; min-height: 60px; padding: 8px 18px; gap: 14px; flex-wrap: nowrap; }
.xtitle { font-size: 19px; font-weight: 700; color: #fff; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xtb { border-radius: 6px; padding: 7px 16px; font-size: 17px; font-weight: 700; border: 1.5px solid #fff; }
.xtb.light { background: #fff; color: #1a1a1a; border-color: #fff; }
.xtb.light:hover:not(:disabled) { background: #e8f5f5; }
.xtb.primary, .xtb.primary:disabled { background: #0e8c8f; color: #fff; border-color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.xtb.primary:hover:not(:disabled) { background: #0b7a7d; }
.xtb.light:disabled { opacity: .55; }
.xtb.xhide { display: none; }
.xbtns { flex-wrap: nowrap; gap: 10px; }
.burger { display: inline-block; width: 14px; height: 10px; margin-right: 8px; vertical-align: 1px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.burger::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.xstrip { background: #fff; border-bottom: 1px solid #d5e6e7; padding: 6px 18px; font-size: 14px; color: #1a1a1a; align-items: center; gap: 4px 16px; }
.xq { font-weight: 700; }
.xmode { color: #0e7a7d; font-weight: 600; font-size: 13px; }
.xtimes { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.xt .l { color: #6b7280; font-size: 13px; }
.xt b { font-variant-numeric: tabular-nums; font-size: 14px; }
.xt b.red, .xt b.low { color: #e0262f; }
.xlink { background: none; border: 0; color: #0e7a7d; text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.xstage { padding: 28px 24px 56px; }
.x-sub { color: #4b5563; font-size: 15px; margin: 0 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* reading */
.ctw { font-family: inherit; font-size: 20px; line-height: 1.9; max-width: none; background: none; border: 0; padding: 4px 60px; }
.lbs { display: inline-flex; background: #c9c9c9; padding: 0 3px; margin: 0 1px; border-radius: 1px; vertical-align: baseline; }
.lb { width: .8em; height: 1.35em; background: transparent; border: 0; border-bottom: 2px solid transparent; font-family: inherit; font-size: 20px; margin: 0; color: #1a1a1a; }
.lb::placeholder { color: #555; opacity: 1; }
.lb:focus { background: #fff; border-bottom-color: #0e8c8f; }
.lb:focus::placeholder { color: transparent; }
.xsplit { border: 0; border-radius: 0; min-height: 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; overflow: visible; }
.xsplit > section { padding: 4px 8px; max-height: calc(100vh - 170px); }
.xsplit > section + section { border-left: 0; }
.xsplit > section.stim { background: none; }
.xsplit.acad > section.stim { padding-left: 14%; }
.passage { font-family: inherit; font-size: 17px; line-height: 1.75; max-width: none; }
.p-title { font-family: inherit; font-size: 19px; font-weight: 700; text-align: center; margin: 0 0 18px; }
.doc { border: 0; padding: 0; font-size: 19px; line-height: 1.6; }
.doc.ad { border: 2px solid #1a1a1a; padding: 14px; }
.qtext { font-size: 19px; font-weight: 600; margin: 0 0 18px; line-height: 1.5; }
.opts { gap: 6px; }
.opt { border: 0; background: none; padding: 8px 6px; font-size: 17px; align-items: center; border-radius: 6px; }
.opt:hover { background: #f1f8f8; }
.opt .dot { flex: 0 0 22px; height: 22px; border: 1.5px solid #6b7280; margin-top: 0; }
.opt.on { background: none; }
.opt.on .dot { border-color: #0e8c8f; }
.opt.on .dot::after { background: #0e8c8f; inset: 4px; }
.opt.ok { background: #e7f6ec; } .opt.no { background: #fdecea; }
/* listening */
.xpair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; max-width: 1240px; align-items: start; }
.xpair .pic { display: flex; justify-content: center; }
.xpair .side { padding-top: 8px; }
.media img, .media video { border: 0; border-radius: 0; max-height: 52vh; }
.x-center.solo .media img { max-height: 62vh; }
.prog.thin { height: 3px; border: 0; background: #eef3f3; width: min(320px, 80%); }
.prog.thin i { background: #9fd2d3; }
@media (max-width: 820px) { .xpair { grid-template-columns: minmax(0,1fr); } .xsplit.acad > section.stim { padding-left: 8px; } .ctw { padding: 4px 8px; } }
/* build a sentence */
.bas { max-width: 1000px; gap: 26px; justify-items: start; }
.turn { align-items: center; gap: 22px; }
.turn > img, .av-ph { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px; border: 2px solid #0e8c8f; padding: 2px; background: #fff; }
.av-ph { display: inline-block; background: #e6f2f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='15' r='7' fill='%2390b8b9'/%3E%3Cpath d='M6 36c2-8 8-12 14-12s12 4 14 12' fill='%2390b8b9'/%3E%3C/svg%3E") center/70% no-repeat; }
.bubble { background: none; border: 0; padding: 0; font-size: 16px; font-weight: 600; }
.stack2 { display: grid; gap: 14px; }
.resp { gap: 8px; font-size: 16px; }
.slot { min-width: 78px; min-height: 40px; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); position: relative; background: #fff; }
.slot:empty::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 11px; border-bottom: 1.5px solid #4a90c2; }
.bank { border: 0; padding: 0; min-height: 0; justify-content: flex-start; gap: 8px; }
.tile { border: 1px solid #d1d5db; border-radius: 8px; padding: 7px 12px; font-size: 16px; background: #fff; }
.slot .tile { border: 0; padding: 4px 6px; }
/* writing */
.xsplit.wr { max-width: 1120px; }
.xsplit.wr .prompt { font-size: 15px; line-height: 1.6; }
.ed-head { border: 0; background: none; padding: 0 0 14px; font-size: 15px; gap: 14px; }
.toolbar { border: 0; background: none; padding: 0 0 10px; gap: 8px; }
.toolbar button { border: 1.5px solid #9fd2d3; border-radius: 6px; padding: 5px 12px; font-weight: 700; font-size: 15px; color: #1a1a1a; background: #fff; }
.toolbar button[data-ed=undo], .toolbar button[data-ed=redo] { color: #9ca3af; border-color: #d9eaea; }
.toolbar .wc { font-weight: 700; color: #4b5563; }
textarea.essay { border: 1px solid #e5e7eb; border-radius: 6px; min-height: 270px; font-family: inherit; }
.disc { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 22px; max-width: 1120px; }
.disc .prompt { font-size: 14px; line-height: 1.45; } .disc .prompt p { margin: 0 0 .4em; } .disc .prompt ul { margin: 0 0 .6em; }
.prof { display: grid; justify-items: center; gap: 6px; margin-top: 8px; }
.prof .ptext { justify-self: stretch; font-size: 14px; line-height: 1.45; }
.prof .name { font-weight: 700; font-size: 14px; }
.av-ph.big { width: 220px; height: 220px; flex-basis: 220px; border: 0; }
.disc .post { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 12px; margin-bottom: 18px; }
.disc .post .who { display: grid; justify-items: center; gap: 4px; font-size: 14px; }
.disc .post .who .av-ph { width: 62px; height: 62px; flex-basis: 62px; border: 0; }
.disc .post .body { border: 0; padding: 0; background: none; font-size: 15px; line-height: 1.55; }
@media (max-width: 820px) { .disc { grid-template-columns: minmax(0,1fr); } .av-ph.big { width: 120px; height: 120px; } }
/* speaking */
.speak { max-width: 980px; margin: 0 auto; display: grid; justify-items: center; gap: 22px; text-align: center; }
.sctx { font: 700 20px/1.5 Roboto, "Segoe UI", Arial, sans-serif; margin: 0; }
.rhead { font: 700 30px/1.3 Roboto, "Segoe UI", Arial, sans-serif; margin: 0; }
.speak .media img { border: 1.5px solid #4b5563; max-height: 46vh; }
.speak .media.small video { max-height: 26vh; }
.speak .media.big video { max-height: 50vh; }
.rbox { width: min(360px, 92%); border: 1.5px solid #7d7d7d; border-radius: 22px; overflow: hidden; }
.rbh { background: #0b6b6e; color: #fff; font: 700 21px/1 Roboto, Arial, sans-serif; padding: 18px 10px; letter-spacing: .01em; }
.rbb { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 10px 8px; }
.rstop { width: 28px; height: 28px; border-radius: 50%; background: #d32f2f; position: relative; }
.rstop::after { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 2px; }
.ring { width: 48px; height: 48px; }
.ring .trk { fill: none; stroke: #eef0f2; stroke-width: 3.5; }
.ring .arc { fill: none; stroke: #0b6b6e; stroke-width: 3.5; stroke-dasharray: 119.4; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 22px 22px; stroke-linecap: round; }
.ring .mic { fill: none; stroke: #7d7d8a; stroke-width: 2; stroke-linecap: round; }
.rt { font: 700 34px/1 Roboto, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.rbox .status { font-size: 13px; padding: 0 0 10px; }
/* reviews */
.xrev { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 15px; }
.xrev th, .xrev td { border-bottom: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
.xrev tr.go { cursor: pointer; } .xrev tr.go:hover { background: #f1f8f8; } .xrev tr.cur { background: #eef7f7; }
/* release 4: planner and self-correction step */
.planner { margin-top: 14px; border: 1px solid #d5dde0; border-radius: 6px; padding: 10px 12px; background: #f7fafa; }
.planner summary { font-weight: 700; cursor: pointer; }
.planner .plan-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.planner .plan-in { border: 1px solid #c5d0d4; border-radius: 4px; padding: 6px 8px; font: inherit; }
.selfcheck .eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #58676e; font-weight: 700; }
.selfmark { background: #fff1c7; border-bottom: 2px solid #e2b53b; padding: 0 2px; }
.selfmark .code { margin-left: 3px; }
@media (max-width: 760px) { .planner .plan-row { grid-template-columns: 1fr; } }
/* release 4: transcript that follows the audio */
.tsync { display: grid; gap: 8px; border: 1px solid #d5dde0; border-radius: 6px; padding: 12px; background: #f7fafa; }
.tsync audio { width: 100%; }
.tsync .tlines { max-height: 260px; overflow-y: auto; position: relative; }
.tsync .tlines p { margin: 0; padding: 6px 10px; border-radius: 4px; cursor: pointer; line-height: 1.5; transition: background .15s; }
.tsync .tlines p:hover { background: #e9f1f2; }
.tsync .tlines p.on { background: #fff1c7; box-shadow: inset 3px 0 0 #e2b53b; font-weight: 600; }
