/* TS Quiz — self-contained styles (theme-independent). */

/* ---- Distraction-free standalone shell ---- */
body.tsq-standalone { margin: 0; background: #f4f4f2; color: #1a1a1a;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.tsq-shell { min-height: 100vh; display: flex; flex-direction: column; }
.tsq-top { padding: 18px 16px; text-align: center; border-bottom: 1px solid #e5e5e2; background: #fff; }
.tsq-brand { font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: #1a1a1a; }
.tsq-brand-logo { display: block; max-height: 46px; width: auto; margin: 0 auto; }
.tsq-main { flex: 1 0 auto; display: flex; align-items: flex-start; justify-content: center; padding: 24px 0; }
.tsq-foot { flex-shrink: 0; border-top: 1px solid #e5e5e2; background: #fff; padding: 22px 16px; text-align: center; }
.tsq-foot__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 0 0 10px; }
.tsq-foot__links a { color: #444; text-decoration: none; font-size: 14px; font-weight: 600; }
.tsq-foot__links a:hover { color: var(--tsq-accent, #0C76F0); }
.tsq-foot__legal { margin: 0; font-size: 12px; color: #8a8a8a; line-height: 1.5; }

/* ---- Quiz ---- */
.tsq { --tsq-ink:#1a1a1a; --tsq-muted:#5a5a5a; --tsq-line:#e3e3e0; --tsq-paper:#fbfbf8;
	width: 100%; max-width: 640px; margin: 0 auto; padding: 4px 16px 32px; color: var(--tsq-ink); }
.tsq *, .tsq *::before, .tsq *::after { box-sizing: border-box; }
.tsq__topbar { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; min-height: 30px; }
.tsq__back { border: 0; background: none; color: var(--tsq-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; flex: none; }
.tsq__back:hover { color: var(--tsq-accent, #0C76F0); background: rgba(0,0,0,.04); }
.tsq__progress { flex: 1; height: 6px; background: var(--tsq-line); border-radius: 999px; overflow: hidden; }
.tsq__bar { display: block; height: 100%; width: 0; background: var(--tsq-accent, #0C76F0); border-radius: 999px; transition: width .35s ease; }
.tsq__panel { text-align: center; animation: tsqfade .3s ease; }
@keyframes tsqfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tsq__title { font-size: clamp(26px, 5vw, 38px); line-height: 1.12; font-weight: 800; margin: 6px 0 14px; letter-spacing: -.01em; }
.tsq__sub { font-size: 17px; line-height: 1.6; color: var(--tsq-muted); max-width: 520px; margin: 0 auto 26px; }
.tsq__trust { font-size: 13px; color: #8a8a8a; margin: 18px 0 0; }
.tsq__q { font-size: clamp(21px, 3.6vw, 28px); line-height: 1.2; font-weight: 800; margin: 4px 0 24px; }
.tsq__options { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 0 auto; }
.tsq__opt { text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--tsq-ink); background: #fff; border: 2px solid var(--tsq-line); border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: border-color .15s, color .15s, transform .1s; }
.tsq__opt:hover { border-color: var(--tsq-accent, #0C76F0); color: var(--tsq-accent, #0C76F0); }
.tsq__opt:active { transform: scale(.99); }
.tsq__selectrow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 460px; margin: 0 auto; }
.tsq__select { flex: 1 1 240px; font: inherit; font-size: 16px; padding: 14px; border: 2px solid var(--tsq-line); border-radius: 12px; background: #fff; min-width: 0; }
.tsq__btn { display: inline-block; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--tsq-accent, #0C76F0); border: 0; border-radius: 12px; padding: 15px 30px; cursor: pointer; transition: filter .15s, transform .1s; text-decoration: none; }
.tsq__btn:hover { filter: brightness(1.08); }
.tsq__btn:active { transform: scale(.99); }
.tsq__btn:disabled { opacity: .6; cursor: default; }

/* ---- Registration gate ---- */
.tsq__gate { text-align: left; max-width: 460px; margin: 0 auto; }
.tsq__reco-lead { font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: #8a8a8a; margin: 0 0 6px; }
.tsq__reco-title { font-size: clamp(23px, 4vw, 30px); line-height: 1.15; font-weight: 800; margin: 0 0 10px; color: var(--tsq-accent, #0C76F0); }
.tsq__gate-note { font-size: 15px; color: var(--tsq-muted); line-height: 1.5; margin: 0 0 20px; }
.tsq__form { background: var(--tsq-paper); border: 1px solid var(--tsq-line); border-radius: 14px; padding: 22px; }
.tsq__field { margin: 0 0 14px; }
.tsq__field label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.tsq__field input { width: 100%; font: inherit; font-size: 16px; padding: 13px; border: 2px solid var(--tsq-line); border-radius: 10px; background: #fff; }
.tsq__field input:focus { outline: none; border-color: var(--tsq-accent, #0C76F0); }
.tsq__ferr { display: block; color: #c0392b; font-size: 12.5px; margin: 5px 0 0; min-height: 14px; }
.tsq__consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.5; color: var(--tsq-muted); margin: 4px 0 2px; }
.tsq__consent input { margin-top: 3px; flex: none; width: 17px; height: 17px; }
.tsq__error { color: #c0392b; font-size: 13.5px; margin: 8px 0 0; min-height: 16px; }
.tsq__submit { width: 100%; margin-top: 14px; }
.tsq__privacy { font-size: 12px; color: #8a8a8a; text-align: center; margin: 12px 0 0; }
.tsq__hp { position: absolute; left: -9999px; }

@media (max-width: 480px) {
	.tsq-foot__links { gap: 16px; }
}
@media (prefers-color-scheme: dark) {
	body.tsq-standalone { background: #121212; color: #f2f2f0; }
	.tsq-top, .tsq-foot { background: #1a1a1a; border-color: #333; }
	.tsq-brand { color: #f2f2f0; }
	.tsq { --tsq-ink:#f2f2f0; --tsq-muted:#b8b8b4; --tsq-line:#3a3a3a; --tsq-paper:#1e1e1e; }
	.tsq__opt, .tsq__select, .tsq__field input { background: #141414; }
}
