/* Shared visual language. Scoring, recording and answer-state colors stay app-specific. */
:root{--accent:#4565be;--primary:#4565be;--line:#dfe7f0;--muted:#6b7e92;--pte-ink:#19324e;--pte-surface:#fff;--pte-background:#f3f6fa;color-scheme:light}
html{background:var(--pte-background)}
body{font-family:"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:var(--pte-ink);background:var(--pte-background)}
button,input,select,textarea{font-family:inherit}
button,input,select,textarea{border-radius:9px}
button{transition:background-color .15s,border-color .15s}
button:disabled{cursor:default}
:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #a7bdec;outline-offset:3px}
input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{border-color:#cdd9e7;color:var(--pte-ink)}
.card{border-color:var(--line);border-radius:16px;box-shadow:0 2px 10px #19324e04}
dialog{border:1px solid var(--line);border-radius:18px;color:var(--pte-ink);box-shadow:0 18px 64px #19324e26;max-width:calc(100vw - 32px)}
dialog::backdrop{background:#19324e66}
button:is(.primary,.btn-primary),.btn-play{background:#4565be;border-color:#4565be;color:#fff}
body .pte-app-header{box-sizing:border-box;max-width:none;width:100%;margin:0;box-shadow:none;border-radius:0;position:relative;top:auto;z-index:auto;flex-wrap:wrap;background:#fff;color:#19324e;padding:22px 4vw;gap:18px}
body .pte-app-header .brand{display:flex;align-items:center;gap:14px;flex:1 1 260px;min-width:0}
body .pte-app-header .logo{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:13px;background:#4565be;color:#fff;font-size:16px;font-weight:700;line-height:1;letter-spacing:-.03em}
body .pte-app-header .brand h1{font-size:24px;line-height:1.3;color:#19324e;margin:0;font-weight:700;white-space:normal}
body .pte-app-header .brand p{font-size:13px;line-height:1.6;color:#6b7e92;margin:5px 0 0;white-space:normal}
body .pte-app-header .home-link{background:#f6f8fc;border:1px solid #dce5ef;border-radius:8px;color:#456185;padding:9px 12px;font-size:13px;text-decoration:none;white-space:nowrap;flex:none}
body .pte-app-header button{font-size:13px;line-height:1.5;padding:9px 12px;margin:0;border-radius:8px;min-width:0;min-height:0}
body .pte-app-header :is(.tools,.nav,.header-actions,.header-tools,.actions){display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body .pte-app-header :is(input,select){font-size:13px;max-width:100%;min-width:0;padding:9px 10px;min-height:0}
body .pte-app-header .spacer{display:none}
body .pte-app-header #qSelect{max-width:260px}
body .pte-app-header #search{max-width:220px}
body:has(>.top-bar.pte-app-header){padding:0}
body:has(>.top-bar.pte-app-header) .app-layout{padding:24px}
@media(max-width:600px){body .pte-app-header{padding:18px;gap:12px}body .pte-app-header .brand{order:-1;flex:1 0 100%;width:100%;gap:12px}body .pte-app-header .logo{width:44px;height:44px;flex-basis:44px;font-size:15px}body .pte-app-header .brand h1{font-size:22px}body .pte-app-header .brand p{font-size:12px}body .pte-app-header .home-link{order:0}body .pte-app-header :is(.navigation,.app-header-actions,.header-actions,.nav,.tools){order:1;max-width:100%;margin-left:0}body .pte-app-header #qSelect{max-width:100%;width:100%}body .pte-app-header button{padding:8px 10px}body:has(>.top-bar.pte-app-header) .app-layout{padding:14px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
