/* English placement test screens (public/placement.js): the student's page (/test) and the Placement tests page. */
.pt { display: grid; gap: 14px; }
.pt-progress { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; overflow: hidden; font-size: 13px; color: var(--ink-2); }
.pt-progress span { position: relative; z-index: 1; }
.pt-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--accent-soft); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; padding: 3px 10px 3px 4px; cursor: pointer; font-size: 13px; }
.pt-chip small { color: var(--ink-3); }
.pt-chip.full small { color: var(--green); font-weight: 700; }
.pt-chip[aria-current="true"] { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, #fff); }
.pt-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--sc); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pt-sec { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--sc); border-radius: var(--radius); padding: 16px clamp(12px, 3vw, 22px); display: grid; gap: 12px; }
.pt-sech { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.pt-sech h2 { font-size: 20px; }
.pt-sech span { color: var(--sc); font-weight: 700; }
.pt-q { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; background: color-mix(in srgb, var(--sc) 4%, #fff); }
.pt-qh { display: flex; gap: 10px; align-items: flex-start; }
.pt-qh p { margin: 0; flex: 1; }
.pt-qh p b { display: block; font-size: 15px; }
.pt-qh p span { color: var(--ink-3); font-size: 13px; }
.pt-qn { flex: none; min-width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: color-mix(in srgb, var(--sc) 20%, #fff); }
.pt-skill { font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; color: var(--ink-2); white-space: nowrap; }
.pt-stim { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pt-pic { font-size: 44px; line-height: 1; }
.pt-big { font-size: 34px; font-weight: 800; padding: 4px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); white-space: pre; }
.pt-en { font-size: 19px; font-weight: 700; background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 4px 12px; white-space: pre-line; }
.pt-card { flex: 1 1 260px; text-align: left; background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid var(--sc); border-radius: 10px; padding: 10px 14px; font-size: 16px; }
.pt-say { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 8px 16px; background: var(--sc); color: #fff; font-weight: 700; cursor: pointer; }
.pt-say.playing { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc) 35%, transparent); }
.pt-nosound { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--red); }
.pt-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pt-opt { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 16px; font-weight: 600; min-height: 48px; cursor: pointer; }
.pt-opt.emo { font-size: 30px; }
.pt-opt:hover:not(:disabled) { border-color: var(--sc); }
.pt-opt.sel { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 16%, #fff); box-shadow: inset 0 0 0 1px var(--sc); }
.pt-opt.sw { display: grid; place-items: center; }
.pt-opt.right { border-color: var(--green); background: var(--green-soft); }
.pt-opt.wrong { border-color: var(--red); background: var(--red-soft); text-decoration: line-through; }
.pt-opt:disabled, .pt-mi:disabled, .pt-word:disabled { cursor: default; color: var(--ink); }
.pt-sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); display: inline-block; }
.pt-sw.sm { width: 28px; height: 28px; }
.pt-typed { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pt-typed input { font-size: 18px; font-weight: 700; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; max-width: 260px; width: 100%; }
.pt-typed input.right, .pt-line.right { border-color: var(--green); }
.pt-typed input.wrong, .pt-line.wrong { border-color: var(--red); }
.pt-hint { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.pt-match { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pt-match > div { display: grid; gap: 8px; align-content: start; }
.pt-mi { position: relative; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; min-height: 46px; padding: 6px 10px 6px 34px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.pt-mi.pick { border-color: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 30%, transparent); }
.pt-emo { font-size: 26px; line-height: 1; }
.pt-tag { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.pt-line { min-height: 50px; border: 2px dashed var(--line); border-radius: 12px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pt-line.right, .pt-line.wrong { border-style: solid; }
.pt-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-word { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 14px; font-size: 15px; font-weight: 700; cursor: pointer; }
.pt-line .pt-word { background: color-mix(in srgb, var(--sc) 16%, #fff); border-color: var(--sc); }
.pt-teach { font-size: 12.5px; color: var(--ink-3); }
.pt-teach summary { cursor: pointer; }
.pt-key { margin: 0; font-size: 13px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 8px; }
.pt-key b { color: var(--green); }
.pt-pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pt-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pt-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pt-btn:disabled { opacity: .5; cursor: default; }
.pt-flash { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pt-flashbox { width: 160px; height: 160px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-size: 96px; font-weight: 800; }
.pt-flashctl { display: flex; flex-wrap: wrap; gap: 8px; }

/* Placement tests page (report and oral scoring) */
.pt-rub { display: grid; gap: 8px; }
.pt-rubi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pt-rubi .say-line { direction: ltr; text-align: left; background: var(--surface-2); border-radius: 8px; padding: 3px 10px; margin: 4px 0; }
.pt-seg { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.pt-seg button { border: 0; background: var(--surface); padding: 6px 12px; min-width: 42px; font-weight: 700; cursor: pointer; }
.pt-seg button + button { border-inline-start: 1px solid var(--line); }
.pt-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.pt-scene { font-size: 30px; letter-spacing: .15em; }
.pt-ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.pt-ring div { width: 86px; height: 86px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.pt-meter { height: 9px; border-radius: 5px; background: var(--line); overflow: hidden; min-width: 70px; }
.pt-meter i { display: block; height: 100%; background: var(--accent); }
.pt-gate { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.pt-gate.start { border-color: var(--accent); background: var(--accent-soft); }
.pt-gate .no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); }
.pt-gate small { display: block; color: var(--ink-3); }
.pt-linkbox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pt-linkbox input { flex: 1 1 260px; direction: ltr; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.pt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pt-tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; cursor: pointer; }
.pt-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* the student's page */
.pt-page { max-width: 900px; margin: 0 auto; padding: 18px max(14px, env(safe-area-inset-left)) 60px; display: grid; gap: 14px; }
.pt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-head img { width: 36px; height: 36px; }
.pt-head h1 { font-size: 20px; }
.pt-head p { margin: 0; color: var(--ink-3); }
.pt-msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; display: grid; gap: 8px; }
.pt-msg .stars { font-size: 40px; letter-spacing: .1em; }
.pt-save { font-size: 12.5px; color: var(--ink-3); min-height: 1.4em; }
@media (max-width: 560px) { .pt-match { gap: 6px; } .pt-flashbox { width: 120px; height: 120px; font-size: 72px; } }
