/* RES Exam Portal — component styles (theme-agnostic; the RES Portal theme sets the tokens). */
:root {
	--resp-ink: #13233a;
	--resp-muted: #5d6b7e;
	--resp-line: #e2e7ee;
	--resp-bg: #f5f7fb;
	--resp-card: #ffffff;
	--resp-primary: #0b5f6b;
	--resp-primary-ink: #ffffff;
	--resp-primary-soft: #e3f2f3;
	--resp-accent: #f2a007;
	--resp-ok: #1f8a4c;
	--resp-ok-soft: #e6f5ec;
	--resp-bad: #c23b32;
	--resp-bad-soft: #fcebea;
	--resp-flag: #d97706;
	--resp-radius: 14px;
	--resp-shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 8px 24px rgba(16, 32, 56, .06);
}

.resp-card { background: var(--resp-card); border: 1px solid var(--resp-line); border-radius: var(--resp-radius); padding: 24px; box-shadow: var(--resp-shadow); margin: 0 0 20px; }
.resp-card h2, .resp-card h3 { margin-top: 0; }
.resp-muted { color: var(--resp-muted); }
.resp-small { font-size: .875rem; }
.resp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .resp-grid-2 { grid-template-columns: 1fr; } }
.resp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.resp-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.resp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.resp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--resp-primary); color: var(--resp-primary-ink) !important; border: 1px solid var(--resp-primary); border-radius: 10px; padding: 11px 20px; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease; font-family: inherit; }
.resp-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 14px rgba(11, 95, 107, .25); }
.resp-btn:active { transform: translateY(1px); }
.resp-btn:disabled, .resp-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.resp-btn--ghost { background: transparent; color: var(--resp-primary) !important; }
.resp-btn--ghost:hover { background: var(--resp-primary-soft); box-shadow: none; }
.resp-btn--block { width: 100%; }
.resp-btn--sm { padding: 8px 14px; font-size: .875rem; }
.resp-chip { border: 1px solid var(--resp-line); background: var(--resp-card); color: var(--resp-ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .875rem; cursor: pointer; }
.resp-chip.is-active, .resp-chip:hover { border-color: var(--resp-primary); color: var(--resp-primary); background: var(--resp-primary-soft); }

/* Forms */
.resp-form { display: grid; gap: 14px; }
.resp-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.resp-field input, .resp-field select, .resp-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd7e2; border-radius: 10px; padding: 11px 13px; font: inherit; font-weight: 400; background: #fff; color: var(--resp-ink); }
.resp-field input:focus, .resp-field select:focus, .resp-field textarea:focus { outline: none; border-color: var(--resp-primary); box-shadow: 0 0 0 3px rgba(11, 95, 107, .15); }
.resp-field input:disabled { background: var(--resp-bg); color: var(--resp-muted); }
.resp-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.resp-check input { margin-top: 3px; accent-color: var(--resp-primary); }
.resp-alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; }
.resp-alert ul { margin: 0; padding-left: 18px; }
.resp-alert--error { background: var(--resp-bad-soft); color: #8a2620; border: 1px solid #f3c7c3; }
.resp-alert--ok { background: var(--resp-ok-soft); color: #145c33; border: 1px solid #bfe3cd; }

/* Auth */
.resp-auth { max-width: 560px; margin-left: auto; margin-right: auto; }
.resp-auth__alt { text-align: center; margin: 18px 0 0; color: var(--resp-muted); }
.resp-auth--done { text-align: center; }
.resp-auth__tick { width: 56px; height: 56px; border-radius: 50%; background: var(--resp-ok-soft); color: var(--resp-ok); display: grid; place-items: center; font-size: 28px; margin: 0 auto 10px; }
.resp-gate { text-align: center; max-width: 560px; margin: 20px auto; }
.resp-gate .resp-actions { justify-content: center; }

/* Disclaimer */
.resp-disclaimer { display: flex; gap: 12px; align-items: flex-start; background: #fff8e8; border: 1px solid #f6dfa6; color: #6b4e0b; border-radius: 12px; padding: 12px 16px; margin: 24px 0 0; font-size: .85rem; line-height: 1.5; }
.resp-disclaimer p { margin: 0; }
.resp-disclaimer__icon { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--resp-accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .8rem; }
.resp-disclaimer--compact { font-size: .78rem; padding: 8px 12px; }

/* Dashboard */
.resp-dash__hello { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.resp-dash__hello h2 { margin: 0 0 4px; }
.resp-countdown { background: var(--resp-ink); color: #fff; border-radius: 14px; padding: 12px 20px; text-align: center; }
.resp-countdown strong { display: block; font-size: 1.9rem; line-height: 1; }
.resp-countdown span { font-size: .8rem; opacity: .8; }
.resp-papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
@media (max-width: 860px) { .resp-papers { grid-template-columns: 1fr; } }
.resp-paper { background: var(--resp-card); border: 1px solid var(--resp-line); border-radius: var(--resp-radius); padding: 24px; box-shadow: var(--resp-shadow); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.resp-paper::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--resp-primary); }
.resp-paper--p2::before { background: var(--resp-accent); }
.resp-paper__head h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.resp-paper__head p { margin: 0; font-size: .85rem; }
.resp-paper__tag { display: inline-block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--resp-primary); background: var(--resp-primary-soft); padding: 3px 10px; border-radius: 999px; margin: 0; }
.resp-paper__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.resp-paper__stats div { background: var(--resp-bg); border-radius: 10px; padding: 10px; text-align: center; }
.resp-paper__stats strong { display: block; font-size: 1.4rem; }
.resp-paper__stats span { font-size: .75rem; color: var(--resp-muted); text-transform: uppercase; letter-spacing: .05em; }
.resp-progress__bar { height: 8px; background: var(--resp-bg); border-radius: 99px; overflow: hidden; }
.resp-progress__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--resp-primary), #14a3a8); border-radius: 99px; }
.resp-progress small { color: var(--resp-muted); }
.resp-paper__verdict { margin: 0; font-size: .85rem; font-weight: 600; }
.resp-paper__verdict.is-pass { color: var(--resp-ok); }
.resp-paper__verdict.is-fail { color: var(--resp-flag); }
.resp-paper__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.resp-inprogress { width: 100%; margin: 0; font-size: .85rem; color: var(--resp-flag); font-weight: 600; }
.resp-list { margin: 0; padding-left: 18px; }
.resp-list li { margin-bottom: 8px; }

.resp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.resp-bars li { display: grid; grid-template-columns: minmax(140px, 2fr) 3fr 56px; gap: 12px; align-items: center; font-size: .88rem; }
.resp-bars__track { height: 10px; background: var(--resp-bg); border-radius: 99px; overflow: hidden; }
.resp-bars__fill { display: block; height: 100%; background: var(--resp-ok); border-radius: 99px; }
.resp-bars__fill.is-low { background: var(--resp-bad); }
.resp-bars__val { text-align: right; font-variant-numeric: tabular-nums; color: var(--resp-muted); }
@media (max-width: 560px) { .resp-bars li { grid-template-columns: 1fr 48px; } .resp-bars__track { grid-column: 1 / -1; order: 3; } }

.resp-table-wrap { overflow-x: auto; }
.resp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.resp-table th, .resp-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--resp-line); white-space: nowrap; }
.resp-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--resp-muted); }
.resp-score { font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.resp-score.is-pass { background: var(--resp-ok-soft); color: var(--resp-ok); }
.resp-score.is-fail { background: var(--resp-bad-soft); color: var(--resp-bad); }

.resp-brief ul { margin: 0; padding-left: 20px; }
.resp-brief li { margin-bottom: 6px; }

/* ---------- Exam player ---------- */
.resp-exam { position: relative; }
.resp-exam__loading { padding: 40px; text-align: center; color: var(--resp-muted); }
.resp-x__top { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--resp-ink); color: #fff; padding: 12px 18px; border-radius: 12px; margin-bottom: 16px; box-shadow: var(--resp-shadow); }
body.admin-bar .resp-x__top { top: 32px; }
.resp-x__title { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.resp-x__progress { font-size: .85rem; opacity: .8; }
.resp-x__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.resp-x__tools .resp-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.resp-x__tools .resp-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.resp-x__tools .resp-btn:not(.resp-btn--ghost) { background: var(--resp-accent); border-color: var(--resp-accent); color: #1b1300 !important; }
.resp-x__timer { font-variant-numeric: tabular-nums; font-weight: 700; background: rgba(255, 255, 255, .12); padding: 6px 10px; border-radius: 8px; }
.resp-x__timer.is-low { background: var(--resp-bad); }
.resp-x__status { font-size: .8rem; opacity: .85; min-width: 80px; }
.resp-x__status.is-err { color: #ffb4ad; opacity: 1; }
.resp-x__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.resp-x__main { display: grid; gap: 16px; }
.resp-x__nav { position: sticky; top: 90px; background: var(--resp-card); border: 1px solid var(--resp-line); border-radius: var(--resp-radius); padding: 16px; box-shadow: var(--resp-shadow); max-height: calc(100vh - 110px); overflow: auto; }
.resp-x__navtoggle { display: none; }
.resp-x__legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: .72rem; color: var(--resp-muted); margin-bottom: 10px; }
.resp-x__legend .lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.lg--ans::before { background: var(--resp-primary); }
.lg--flag::before { background: var(--resp-flag); }
.lg--cur::before { background: #fff; border: 2px solid var(--resp-ink); }
.resp-x__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.resp-x__gridhead { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--resp-muted); margin: 8px 0 2px; font-weight: 700; }
.resp-x__cell { aspect-ratio: 1; border: 1px solid var(--resp-line); background: var(--resp-bg); border-radius: 7px; font: inherit; font-size: .75rem; cursor: pointer; color: var(--resp-ink); padding: 0; position: relative; }
.resp-x__cell.is-ans { background: var(--resp-primary); color: #fff; border-color: var(--resp-primary); }
.resp-x__cell.is-flag::after { content: ""; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--resp-flag); }
.resp-x__cell.is-cur { outline: 2px solid var(--resp-ink); outline-offset: 1px; }
.resp-x__casebox { background: #fbfcf4; border: 1px solid #e4e7c9; border-radius: var(--resp-radius); padding: 0; }
.resp-x__casebox summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.resp-x__casebody { padding: 0 18px 12px; max-height: 360px; overflow: auto; font-size: .93rem; line-height: 1.6; }
.resp-x__q { background: var(--resp-card); border: 1px solid var(--resp-line); border-radius: var(--resp-radius); padding: 24px; box-shadow: var(--resp-shadow); }
.resp-x__qhead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.resp-x__qno { font-weight: 700; color: var(--resp-primary); }
.resp-x__marks { font-size: .8rem; color: var(--resp-muted); }
.resp-x__flag { margin-left: auto; border: 1px solid var(--resp-line); background: transparent; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--resp-muted); }
.resp-x__flag.is-on { border-color: var(--resp-flag); color: var(--resp-flag); background: #fff5e6; }
.resp-x__stem { font-size: 1.05rem; line-height: 1.6; }
.resp-x__stem p { margin: 0 0 10px; }
.resp-x__stmts { list-style: none; margin: 0 0 14px; padding: 12px 16px; background: var(--resp-bg); border-radius: 10px; line-height: 1.55; }
.resp-x__stmts li { margin: 4px 0; }
.resp-x__hint { font-size: .85rem; font-weight: 700; color: var(--resp-flag); margin: 0 0 10px; }
.resp-x__opts { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.resp-x__opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--resp-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.resp-x__opt:hover { border-color: #a9c7cb; }
.resp-x__opt input { position: absolute; opacity: 0; pointer-events: none; }
.resp-x__opt.is-sel { border-color: var(--resp-primary); background: var(--resp-primary-soft); }
.resp-x__opt input:focus-visible + .resp-x__letter { outline: 3px solid rgba(11, 95, 107, .35); }
.resp-x__letter { flex: 0 0 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: var(--resp-bg); color: var(--resp-ink); }
.resp-x__opt input[type="checkbox"] + .resp-x__letter { border-radius: 6px; }
.resp-x__opt.is-sel .resp-x__letter { background: var(--resp-primary); color: #fff; }
.resp-x__otext { padding-top: 4px; line-height: 1.5; }
.resp-x__pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; }
.resp-x__clear { background: none; border: 0; color: var(--resp-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.resp-x__keys { font-size: .75rem; color: var(--resp-muted); margin: 14px 0 0; text-align: center; }
.resp-x__modal { position: fixed; inset: 0; background: rgba(10, 20, 35, .55); z-index: 100000; display: grid; place-items: center; padding: 16px; }
.resp-x__modal[hidden] { display: none; }
.resp-x__dialog { background: #fff; border-radius: 16px; padding: 24px; max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); max-height: 90vh; overflow: auto; }
.resp-x__dialog h3 { margin-top: 0; }
.resp-x__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.resp-x__chips .resp-chip { padding: 3px 10px; }
.resp-x__dialogbtns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
@media (max-width: 960px) {
	.resp-x__body { grid-template-columns: 1fr; }
	.resp-x__navtoggle { display: block; width: 100%; margin-bottom: 12px; border: 1px solid var(--resp-line); background: var(--resp-card); border-radius: 10px; padding: 10px; font: inherit; font-weight: 600; cursor: pointer; }
	.resp-x__nav { display: none; position: static; max-height: none; }
	.resp-x__nav.is-open { display: block; order: -1; }
	.resp-x__grid { grid-template-columns: repeat(10, 1fr); }
	.resp-x__q { padding: 18px; }
}
@media (max-width: 600px) {
	.resp-x__grid { grid-template-columns: repeat(8, 1fr); }
	.resp-x__top { position: sticky; }
	.resp-x__status { display: none; }
}

/* ---------- Results ---------- */
.resp-results__hero { display: flex; gap: 28px; align-items: center; background: var(--resp-card); border: 1px solid var(--resp-line); border-radius: var(--resp-radius); padding: 28px; margin-bottom: 20px; box-shadow: var(--resp-shadow); flex-wrap: wrap; }
.resp-results__hero h2 { margin: 8px 0 12px; font-size: 1.35rem; }
.resp-ring { --c: var(--resp-bad); width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--resp-bg) 0); display: grid; place-items: center; flex: 0 0 140px; }
.is-pass .resp-ring { --c: var(--resp-ok); }
.resp-ring span { width: 108px; height: 108px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; line-height: 1; text-align: center; }
.resp-ring small { display: block; font-size: .8rem; color: var(--resp-muted); font-weight: 500; }
.resp-kv { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.resp-kv li { background: var(--resp-bg); border-radius: 10px; padding: 8px 12px; display: grid; }
.resp-kv span { font-size: .7rem; color: var(--resp-muted); text-transform: uppercase; letter-spacing: .05em; }
.resp-review__filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; position: sticky; top: 0; background: var(--resp-bg); padding: 8px 0; z-index: 5; }
.resp-review__section { margin: 28px 0 12px; }
.resp-case { background: #fbfcf4; border: 1px solid #e4e7c9; border-radius: var(--resp-radius); margin: 0 0 14px; }
.resp-case summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.resp-case__body { padding: 0 18px 12px; font-size: .93rem; line-height: 1.6; }
.resp-q { background: var(--resp-card); border: 1px solid var(--resp-line); border-left: 5px solid var(--resp-line); border-radius: var(--resp-radius); padding: 20px; margin-bottom: 14px; }
.resp-q--right { border-left-color: var(--resp-ok); }
.resp-q--wrong { border-left-color: var(--resp-bad); }
.resp-q--blank { border-left-color: var(--resp-muted); }
.resp-q__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; margin-bottom: 8px; }
.resp-q__no { font-weight: 800; color: var(--resp-ink); }
.resp-q__unit { color: var(--resp-muted); }
.resp-q__flag { color: var(--resp-flag); }
.resp-q__verdict { margin-left: auto; font-weight: 700; }
.resp-q--right .resp-q__verdict { color: var(--resp-ok); }
.resp-q--wrong .resp-q__verdict { color: var(--resp-bad); }
.resp-q__stem p { margin: 0 0 8px; }
.resp-q__stmts { list-style: none; background: var(--resp-bg); border-radius: 10px; padding: 10px 14px; margin: 0 0 10px; }
.resp-q__opts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.resp-q__opts li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; flex-wrap: wrap; }
.resp-q__opts li.is-key { background: var(--resp-ok-soft); border-color: #bfe3cd; }
.resp-q__opts li.is-picked:not(.is-key) { background: var(--resp-bad-soft); border-color: #f3c7c3; }
.resp-q__letter { flex: 0 0 26px; height: 26px; border-radius: 7px; background: var(--resp-bg); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.resp-q__opts li > span:nth-child(2) { flex: 1 1 200px; }
.resp-tag { font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--resp-line); color: var(--resp-muted); align-self: center; }
.resp-tag--key { color: var(--resp-ok); border-color: #bfe3cd; }
.resp-q__expl { background: #f3f7ff; border-radius: 10px; padding: 12px 14px; font-size: .93rem; line-height: 1.6; }
.resp-q__expl p { margin: 4px 0 0; }
.resp-q__ask { margin: 10px 0 0; font-size: .85rem; }

/* ---------- Leaderboard ---------- */
.resp-lb__controls { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.resp-tabs { display: flex; gap: 4px; background: var(--resp-card); border: 1px solid var(--resp-line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.resp-tabs--wrap { background: transparent; border: 0; padding: 0; gap: 6px; }
.resp-tab { padding: 8px 14px; border-radius: 9px; text-decoration: none !important; color: var(--resp-muted) !important; font-weight: 600; font-size: .88rem; }
.resp-tabs--wrap .resp-tab { border: 1px solid var(--resp-line); background: var(--resp-card); }
.resp-tab.is-active { background: var(--resp-ink); color: #fff !important; border-color: var(--resp-ink); }
.resp-lb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.resp-lb__row { display: grid; grid-template-columns: 40px 40px minmax(0, 2fr) minmax(80px, 2fr) 90px; gap: 12px; align-items: center; background: var(--resp-card); border: 1px solid var(--resp-line); border-radius: 12px; padding: 10px 16px; }
.resp-lb__row.is-me { border-color: var(--resp-primary); box-shadow: 0 0 0 2px var(--resp-primary-soft); }
.resp-lb__rank { font-weight: 800; font-size: 1.1rem; text-align: center; color: var(--resp-muted); }
.is-top-1 .resp-lb__rank { color: #c89400; }
.is-top-2 .resp-lb__rank { color: #8a96a8; }
.is-top-3 .resp-lb__rank { color: #b0673a; }
.is-top .resp-lb__rank::after { content: " ★"; font-size: .8rem; }
.resp-lb__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--resp-primary-soft); color: var(--resp-primary); display: grid; place-items: center; font-weight: 800; }
.resp-lb__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.resp-lb__name small { display: block; font-weight: 400; color: var(--resp-muted); font-size: .75rem; }
.resp-lb__bar { height: 8px; background: var(--resp-bg); border-radius: 99px; overflow: hidden; }
.resp-lb__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--resp-primary), var(--resp-accent)); }
.resp-lb__score { text-align: right; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.resp-lb__score small { font-size: .75rem; color: var(--resp-muted); font-weight: 500; }
@media (max-width: 600px) { .resp-lb__row { grid-template-columns: 30px minmax(0, 1fr) 70px; } .resp-lb__avatar, .resp-lb__bar { display: none; } }

/* ---------- Forum ---------- */
.resp-forum__new summary { list-style: none; display: inline-flex; }
.resp-forum__new summary::-webkit-details-marker { display: none; }
.resp-forum__new[open] summary { margin-bottom: 16px; }
.resp-forum__new:not([open]) { padding: 16px 24px; }
.resp-forum__bar { display: grid; gap: 12px; margin-bottom: 16px; }
.resp-forum__search { display: flex; gap: 8px; }
.resp-forum__search input, .resp-forum__search select { border: 1px solid #cfd7e2; border-radius: 10px; padding: 9px 12px; font: inherit; }
.resp-forum__search input { flex: 1; min-width: 0; }
.resp-threads { list-style: none; margin: 0; padding: 0; background: var(--resp-card); border: 1px solid var(--resp-line); border-radius: var(--resp-radius); overflow: hidden; }
.resp-thread { display: flex; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--resp-line); align-items: center; }
.resp-thread:last-child { border-bottom: 0; }
.resp-thread__count { flex: 0 0 64px; text-align: center; background: var(--resp-primary-soft); color: var(--resp-primary); border-radius: 10px; padding: 6px 0; }
.resp-thread__count.is-zero { background: #fff5e6; color: var(--resp-flag); }
.resp-thread__count strong { display: block; font-size: 1.2rem; }
.resp-thread__count span { font-size: .7rem; }
.resp-thread__title { font-weight: 700; font-size: 1.02rem; text-decoration: none; color: var(--resp-ink); }
.resp-thread__title:hover { color: var(--resp-primary); }
.resp-thread__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--resp-muted); margin-top: 4px; }
.resp-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--resp-bg); border: 1px solid var(--resp-line); font-size: .72rem; font-weight: 600; color: var(--resp-muted); }
.resp-badge--ok { background: var(--resp-ok-soft); color: var(--resp-ok); border-color: #bfe3cd; }
.resp-badge--tutor { background: var(--resp-ink); color: #fff; border-color: var(--resp-ink); }
.resp-pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.resp-pager a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--resp-line); text-decoration: none; }
.resp-pager a.is-active { background: var(--resp-ink); color: #fff; }
