/* E-LMS leaderboard: scoped component styling alongside the existing Tailwind build. */
.er { --er-bg:#f7f8fc; --er-card:#fff; --er-ink:#203048; --er-muted:#627189; --er-line:#e2e7f0; --er-blue:#386acf; --er-soft:#edf2ff; --er-purple:#7654ca; color:var(--er-ink); background:var(--er-bg); font:14px/1.65 'Inter','Segoe UI',Arial,sans-serif; padding:27px 0 0; isolation:isolate; }
:is(.dark,[data-theme="dark"]) .er { --er-bg:#111a29; --er-card:#19263a; --er-ink:#e9eff8; --er-muted:#a7b6c9; --er-line:#304057; --er-blue:#95b7ff; --er-soft:#243551; --er-purple:#c3aaff; color-scheme:dark; }
.er *, .er *::before, .er *::after { box-sizing:border-box; }
.er [hidden] { display:none!important; }
.er :is(h1,h2,h3,p,ol,ul) { margin:0; }
.er :is(h1,h2,h3) { color:inherit; font-family:inherit; font-weight:750; letter-spacing:-.6px; }
.er h2 { font-size:clamp(23px,2.3vw,31px); line-height:1.3; }
.er h3 { font-size:18px; line-height:1.5; }
.er a { color:inherit; text-decoration:none; }
.er a:hover { color:var(--er-blue); }
.er button,.er input,.er select { font:inherit; }
.er button { cursor:pointer; border:0; color:inherit; background:none; }
.er :is(a,button,input,select,summary):focus-visible { outline:3px solid #cf9027; outline-offset:4px; }
.er svg { display:inline-block; width:21px; height:21px; flex-shrink:0; vertical-align:middle; }
.er img { display:block; max-width:100%; }
.er .er-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.er-container { width:min(1152px,calc(100% - 48px)); margin-inline:auto; }
.er-breadcrumb { display:flex; gap:10px; align-items:center; font-size:11px; color:var(--er-muted); margin-bottom:20px; }
.er-breadcrumb a { color:var(--er-blue); font-weight:700; }
.er-hero { display:grid; grid-template-columns:1.3fr .8fr; gap:45px; align-items:center; position:relative; overflow:hidden; background:radial-gradient(ellipse at 90% 8%,#6950a866,transparent 50%),radial-gradient(ellipse at 12% 100%,#23728b77,transparent 60%),#192c4a; border-radius:27px; padding:48px 52px; color:#fff; }
.er-hero::before { content:''; position:absolute; inset:0; opacity:.16; background-image:radial-gradient(#d2dcf4 .7px,transparent .7px); background-size:20px 20px; pointer-events:none; }
.er-hero-copy { position:relative; z-index:1; }
.er-eyebrow { display:flex; gap:7px; align-items:center; color:var(--er-blue); font-size:9px; letter-spacing:1.6px; font-weight:800; line-height:1.8; margin-bottom:11px!important; }
.er-hero .er-eyebrow { color:#bddddd; }
.er-eyebrow svg { width:16px; height:16px; }
.er-hero h1 { font-size:clamp(36px,4.2vw,51px); letter-spacing:-1.8px; line-height:1.17; font-weight:800; margin-top:17px; }
.er-hero h1 span { color:#f7dca7; }
.er-hero-copy > p:not(.er-eyebrow) { font-size:14px; line-height:1.9; color:#c6d4e5; margin-top:20px; max-width:465px; }
.er-hero-tags { display:flex; flex-wrap:wrap; gap:9px; margin-top:24px; }
.er-hero-tags span { display:flex; gap:6px; align-items:center; color:#e2e8f3; border:1px solid #bccbdd33; background:#ffffff08; border-radius:7px; padding:6px 9px; font-size:9px; }
.er-hero-tags svg { width:14px; height:14px; }
.er-hero-copy > a { display:inline-flex; align-items:center; gap:8px; font-size:10px; color:#c7d8ee; margin-top:23px; }
.er-hero-copy > a:hover { color:#fff; }
.er-hero-copy > a svg { width:15px; height:15px; }
.er-trophy-scene { position:relative; min-height:315px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.er-orbit { position:absolute; width:310px; height:270px; border:1px solid #cddeff2a; border-radius:50%; transform:rotate(-25deg); }
.er-orbit::before { content:''; position:absolute; inset:-21px 23px; border:1px dashed #cddeff24; border-radius:50%; }
.er-trophy-disc { z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; width:134px; height:134px; border:1px solid #ffd58a80; border-radius:37px; background:linear-gradient(140deg,#ffdf9533,#ffdf950b); box-shadow:0 0 65px #ffce6133; transform:rotate(-5deg); }
.er-trophy-disc svg { width:67px; height:67px; color:#fbd387; stroke-width:1.25; }
.er-trophy-disc > span { margin-top:5px; font-size:8px; letter-spacing:3px; color:#fbdca8; }
.er-honor-note { color:#d8e5f6; font-size:8px; font-weight:650; letter-spacing:1.8px; margin-bottom:22px; position:relative; }
.er-mini-podium { display:flex; align-items:flex-end; gap:8px; margin-top:17px; position:relative; }
.er-mini-podium span { display:grid; place-items:center; width:66px; height:50px; background:linear-gradient(#c7defe22,#c7defe08); border:1px solid #b9d5fc55; border-radius:10px 10px 3px 3px; color:#bbd5f5; font-size:20px; font-weight:750; }
.er-mini-podium span:nth-child(2) { height:72px; border-color:#f4cf8480; color:#ffdc99; background:linear-gradient(#f9d48033,#f9d48009); }
.er-mini-podium span:last-child { height:40px; border-color:#ecb49c55; color:#ecc0b0; }
.er-scene-caption { font-size:7px; letter-spacing:3px; margin-top:17px; color:#bdccdf; }
.er-spark { position:absolute; color:#f2d098; font-size:27px; }
.er-spark-one { left:6%; top:30%; }
.er-spark-two { right:4%; bottom:22%; color:#7ec6cc; font-size:38px; }
.er-control-panel { margin-top:26px; padding:27px; border:1px solid var(--er-line); border-radius:20px; background:var(--er-card); }
.er-control-top { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:20px; }
.er-control-top h2 { font-size:24px; }
.er-control-top .er-eyebrow { font-size:8px; margin-bottom:6px!important; }
.er-scope-tabs { display:flex; flex-wrap:wrap; gap:4px; padding:5px; border:1px solid var(--er-line); border-radius:12px; background:var(--er-bg); }
.er-scope-tabs a { display:flex; align-items:center; gap:7px; padding:10px 13px; border-radius:8px; color:var(--er-muted); font-size:11px; font-weight:650; transition:background .2s,color .2s; }
.er-scope-tabs a svg { width:16px; height:16px; }
.er-scope-tabs a.is-active { color:#fff; background:#3968ca; box-shadow:0 3px 8px #2f4b9020; }
.er-scope-tabs a:not(.is-active):hover { color:var(--er-blue); background:var(--er-soft); }
.er-scope-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:16px; border-top:1px solid var(--er-line); padding-top:22px; margin-top:22px; }
.er-scope-form label { flex:1; min-width:180px; font-size:11px; font-weight:650; color:var(--er-muted); }
.er-scope-form select { width:100%; display:block; margin-top:6px; padding:11px 13px; min-height:45px; border:1px solid var(--er-line); border-radius:9px; background:var(--er-bg); color:var(--er-ink); appearance:auto; font-size:12px; }
.er-scope-form > p { flex-basis:100%; font-size:10px; color:var(--er-muted); }
.er .er-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:43px; padding:11px 15px; border:1px solid transparent; border-radius:10px; font-size:11px; font-weight:700; line-height:1.5; transition:transform .2s; text-align:center; }
.er-btn:hover { transform:translateY(-2px); }
.er-btn svg { width:16px; height:16px; }
.er .er-btn-primary { background:#3968ca; color:#fff; }
.er .er-btn-soft { background:var(--er-soft); color:var(--er-blue); border-color:var(--er-line); }
.er-context-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; border-top:1px solid var(--er-line); margin-top:24px; padding-top:22px; }
.er-context-stats > div { display:flex; align-items:center; gap:12px; min-width:0; }
.er-stat-icon { display:grid; place-items:center; width:43px; height:43px; flex-shrink:0; border-radius:12px; }
.er-tone-blue { color:#386acf; background:#edf2ff; }
.er-tone-purple { color:#7a51b8; background:#f3eafb; }
.er-tone-green { color:#188468; background:#e3f5ed; }
.er-context-stats small { display:block; color:var(--er-muted); font-size:10px; }
.er-context-stats strong { display:block; font-size:15px; margin-top:4px; overflow-wrap:anywhere; line-height:1.5; }
.er-context-stats em { font-size:11px; font-style:normal; font-weight:400; }
.er-section-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; margin-bottom:25px; }
.er-section-heading > div > p:not(.er-eyebrow) { color:var(--er-muted); font-size:12px; margin-top:8px; }
.er-context-chip { color:var(--er-muted); font-size:11px; background:var(--er-card); border:1px solid var(--er-line); padding:7px 12px; border-radius:8px; }
.er-honors { margin-top:49px; }
.er-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:22px; padding-top:24px; }
.er-podium-card { --medal:#376997; --medal-bg:#eaf2fd; position:relative; text-align:center; padding:27px 22px 29px; min-width:0; background:var(--er-card); border:1px solid var(--er-line); border-radius:21px; box-shadow:0 10px 35px #18335606; overflow:hidden; }
.er-place-1 { --medal:#a86b12; --medal-bg:#fff1d4; grid-column:2; grid-row:1; padding-top:35px; padding-bottom:38px; border-color:#e9c78a; background:linear-gradient(180deg,var(--er-card) 45%,color-mix(in srgb,#f3ca71 13%,var(--er-card))); box-shadow:0 10px 35px #b37f2414; }
.er-place-2 { grid-column:1; grid-row:1; }
.er-place-3 { --medal:#b26542; --medal-bg:#ffeadc; grid-column:3; grid-row:1; }
.er-podium:has(> :only-child) { grid-template-columns:minmax(0,420px); justify-content:center; }
.er-podium:has(> :only-child) .er-place-1 { grid-column:1; }
.er-podium:has(> :nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:780px; margin-inline:auto; }
.er-medal { display:inline-flex; align-items:center; gap:5px; font-size:8px; letter-spacing:1.5px; color:var(--medal); background:var(--medal-bg); border-radius:7px; padding:6px 10px; font-weight:750; }
.er-medal svg { width:14px; height:14px; }
.er-podium-avatar { width:80px; height:80px; border-radius:25px; margin:24px auto 19px; position:relative; background:var(--medal-bg); border:4px solid var(--er-card); outline:2px solid color-mix(in srgb,var(--medal) 40%,transparent); box-shadow:0 8px 19px #1233540d; }
.er-podium-avatar > span { display:grid; place-items:center; width:100%; height:100%; font-size:24px; font-weight:750; color:var(--medal); }
.er-podium-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:21px; }
.er-place-1 .er-podium-avatar { width:97px; height:97px; border-radius:28px; }
.er-place-1 .er-podium-avatar img { border-radius:24px; }
.er-podium-card h3 { font-size:17px; font-weight:750; overflow-wrap:anywhere; }
.er-podium-card h3 > svg { width:16px; height:16px; }
.er-podium-school { color:var(--er-muted); font-size:10px; margin-top:6px!important; line-height:1.7; overflow-wrap:anywhere; }
.er-podium-school span { display:block; }
.er-role { margin-top:7px; font-size:10px; }
.er-role > * { vertical-align:middle; }
.er-podium-points { margin-top:23px; }
.er-podium-points strong { display:block; font-size:28px; font-weight:800; letter-spacing:-.8px; line-height:1.3; color:var(--medal); }
.er-place-1 .er-podium-points strong { font-size:35px; }
.er-podium-points > span { display:block; font-size:9px; margin-top:4px; color:var(--er-muted); text-transform:uppercase; letter-spacing:1.4px; }
.er-podium-stripe { position:absolute; bottom:0; left:20%; right:20%; height:3px; background:var(--medal); opacity:.6; border-radius:3px 3px 0 0; }
:is(.dark,[data-theme="dark"]) .er-place-1 { --medal:#efc170; --medal-bg:#473c27; }
:is(.dark,[data-theme="dark"]) .er-place-2 { --medal:#a4c9f5; --medal-bg:#293e59; }
:is(.dark,[data-theme="dark"]) .er-place-3 { --medal:#efb594; --medal-bg:#493427; }
.er-ranking { margin-top:51px; scroll-margin-top:100px; }
.er-list-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:15px; justify-content:space-between; margin-bottom:20px; padding:14px 17px; border:1px solid var(--er-line); border-radius:13px; background:var(--er-card); }
.er-search { display:flex; align-items:center; gap:10px; flex:1; min-width:200px; }
.er-search svg { width:18px; height:18px; color:var(--er-muted); }
.er-search input { color:var(--er-ink); border:0; background:transparent; width:100%; min-width:0; font-size:12px; padding:6px 0; box-shadow:none; }
.er-search input::placeholder { color:var(--er-muted); opacity:.85; }
.er-list-toolbar > span { color:var(--er-muted); font-size:10px; }
.er .er-text-button { color:var(--er-blue); font-size:11px; }
.er-list-labels { display:grid; grid-template-columns:77px minmax(0,1fr) 130px; gap:19px; font-size:8px; font-weight:700; letter-spacing:1.1px; color:var(--er-muted); padding:0 22px 11px; }
.er-list-labels > span:last-child { text-align:right; }
.er-member-list { padding:0; list-style:none; display:grid; gap:11px; }
.er-member-row { display:grid; grid-template-columns:77px minmax(0,1fr) 130px; gap:19px; align-items:center; padding:19px 22px; border:1px solid var(--er-line); background:var(--er-card); border-radius:15px; transition:box-shadow .2s,border-color .2s; scroll-margin-top:120px; }
.er-member-row:hover { border-color:#aebfe0; box-shadow:0 8px 23px #284b7a09; }
.er-member-row.is-self { border-color:#b3a0e5; background:color-mix(in srgb,var(--er-card) 96%,#9e7ded); box-shadow:inset 3px 0 #9371d5; }
.er-rank-number { color:var(--er-muted); font-size:20px; font-weight:750; text-align:center; letter-spacing:-.7px; }
.er-rank-top { display:grid; place-items:center; justify-self:center; width:40px; height:40px; border-radius:12px; font-size:17px; }
.er-rank-1 { color:#a46914; background:#fff0d1; }
.er-rank-2 { color:#416b98; background:#e9f1fc; }
.er-rank-3 { color:#ac6040; background:#ffeadb; }
.er-member-main { display:flex; align-items:center; min-width:0; gap:14px; }
.er-avatar { position:relative; width:47px; height:47px; flex-shrink:0; border-radius:15px; background:var(--er-soft); color:var(--er-blue); }
.er-avatar > span { width:100%; height:100%; display:grid; place-items:center; font-size:13px; font-weight:750; }
.er-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:15px; }
.er-online { position:absolute; right:-2px; bottom:-2px; width:12px; height:12px; border:3px solid var(--er-card); border-radius:50%; background:#15936c; }
.er-member-info { flex:1; min-width:0; }
.er-member-name { display:flex; flex-wrap:wrap; align-items:center; column-gap:6px; font-weight:700; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.er-member-name a { max-width:100%; }
.er-member-name > svg { width:16px; height:16px; }
.er-you { color:var(--er-purple); background:var(--er-soft); font-size:9px; padding:2px 7px; border-radius:5px; }
.er-member-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:3px; font-size:10px; color:var(--er-muted); }
.er-member-school { display:flex; flex-wrap:wrap; column-gap:13px; row-gap:4px; font-size:10px; color:var(--er-muted); margin-top:7px; }
.er-member-school span { display:inline-flex; align-items:flex-start; gap:5px; }
.er-member-school svg { width:13px; height:13px; margin-top:2px; }
.er-member-score { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; column-gap:6px; }
.er-member-score strong { color:var(--er-blue); font-size:22px; line-height:1.4; letter-spacing:-.5px; overflow-wrap:anywhere; }
.er-member-score svg { width:16px; height:16px; color:#ca952d; fill:#ca952d1a; }
.er-member-score small { flex-basis:100%; text-align:right; color:var(--er-muted); font-size:9px; }
.er-empty { display:flex; flex-direction:column; align-items:center; padding:45px 25px; text-align:center; border:1px dashed var(--er-line); border-radius:18px; background:var(--er-card); }
.er-empty > svg { width:45px; height:45px; color:var(--er-blue); margin-bottom:20px; }
.er-empty p { font-size:13px; max-width:500px; color:var(--er-muted); margin-top:10px; }
.er-empty .er-btn { margin-top:20px; }
.er-pagination { padding:20px; border:1px solid var(--er-line); border-radius:13px; margin-top:22px; background:var(--er-card); font-size:12px; }
.er-pagination nav > div:first-child { display:none; }
.er-pagination nav > div:last-child { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:15px; }
.er-pagination nav > div:last-child > div:last-child > span { display:flex; flex-wrap:wrap; align-items:center; gap:3px; }
.er-pagination :is(a,span)[aria-label], .er-pagination a, .er-pagination [aria-current] > span { display:inline-flex; align-items:center; justify-content:center; min-height:33px; min-width:33px; padding:5px 9px; border:1px solid var(--er-line); border-radius:7px; color:var(--er-blue); background:var(--er-card); }
.er-pagination [aria-current] > span { color:#fff; background:#3968ca; }
.er-pagination svg { width:16px; height:16px; }
.er-how { display:grid; grid-template-columns:1fr 1.1fr; gap:58px; margin-top:58px; border-top:1px solid var(--er-line); padding-top:45px; scroll-margin-top:100px; }
.er-small-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:var(--er-soft); color:var(--er-blue); margin-bottom:19px; }
.er-how > div > p:not(.er-eyebrow) { color:var(--er-muted); font-size:13px; margin-top:15px; }
.er-learning-links { display:flex; flex-wrap:wrap; gap:9px; margin-top:22px; }
.er-learning-links a { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--er-line); background:var(--er-card); padding:10px 12px; border-radius:8px; font-size:10px; color:var(--er-blue); }
.er-learning-links svg { width:15px; height:15px; }
.er-faq details { border-bottom:1px solid var(--er-line); padding:17px 0; }
.er-faq details:first-child { padding-top:0; }
.er-faq summary { cursor:pointer; font-size:13px; font-weight:650; }
.er-faq details p { margin-top:10px; color:var(--er-muted); font-size:12px; }
.er-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:15px; border-top:1px solid var(--er-line); padding:22px 0; margin-top:50px; color:var(--er-muted); font-size:10px; }
@media(max-width:950px) {
    .er-hero { gap:20px; padding:36px; }
    .er-hero h1 { font-size:42px; }
    .er-orbit { width:240px; height:230px; }
    .er-honor-note { font-size:7px; letter-spacing:1px; }
    .er-podium { gap:15px; }
    .er-podium-card { padding-inline:15px; }
    .er-context-stats { gap:13px; }
    .er-how { gap:30px; }
}
@media(max-width:700px) {
    .er-container { width:calc(100% - 30px); }
    .er { padding-top:18px; }
    .er-hero { grid-template-columns:1fr; padding:30px 25px 20px; gap:10px; }
    .er-hero h1 { font-size:39px; }
    .er-hero-copy > p:not(.er-eyebrow) { font-size:13px; }
    .er-trophy-scene { min-height:245px; }
    .er-honor-note { display:none; }
    .er-trophy-disc { width:105px; height:105px; border-radius:29px; }
    .er-trophy-disc svg { width:51px; height:51px; }
    .er-orbit { width:245px; height:205px; }
    .er-spark-one { left:15%; }.er-spark-two { right:14%; }
    .er-mini-podium span { width:57px; height:39px; font-size:16px; }.er-mini-podium span:nth-child(2) { height:54px; }.er-mini-podium span:last-child { height:33px; }
    .er-control-panel { padding:21px; }
    .er-control-top h2 { font-size:22px; }
    .er-scope-tabs { width:100%; }
    .er-scope-tabs a { flex:1; justify-content:center; padding:9px 8px; font-size:10px; gap:5px; }
    .er-context-stats { grid-template-columns:1fr; gap:17px; }
    .er-context-stats strong { font-size:14px; }
    .er-podium { grid-template-columns:1fr!important; max-width:none!important; gap:15px; padding-top:0; }
    .er-podium-card { grid-column:auto!important; grid-row:auto!important; display:grid; grid-template-columns:65px minmax(0,1fr) 90px; gap:0 15px; align-items:center; text-align:left; padding:24px 20px!important; }
    .er-podium-card .er-medal { grid-column:2; justify-self:start; font-size:7px; padding:4px 7px; margin-bottom:7px; }
    .er-podium-card .er-podium-avatar { grid-column:1; grid-row:1/5; margin:0; width:61px; height:61px; border-radius:19px; }
    .er-podium-card .er-podium-avatar img { border-radius:15px; }
    .er-podium-card .er-podium-avatar > span { font-size:18px; }
    .er-podium-card h3 { grid-column:2; font-size:14px; }
    .er-podium-school { grid-column:2; font-size:9px; }
    .er-podium-card .er-role { grid-column:2; }
    .er-podium-points { grid-column:3; grid-row:1/5; text-align:right; margin:0; }
    .er-podium-card .er-podium-points strong { font-size:24px; overflow-wrap:anywhere; }
    .er-podium-points > span { font-size:7px; letter-spacing:.5px; }
    .er-list-labels { grid-template-columns:39px minmax(0,1fr) 90px; gap:12px; padding-inline:13px; font-size:7px; letter-spacing:.3px; }
    .er-member-row { grid-template-columns:39px minmax(0,1fr) 90px; gap:12px; padding:17px 13px; }
    .er-rank-number { font-size:15px; }.er-rank-top { width:33px; height:33px; font-size:14px; }
    .er-member-main { align-items:flex-start; gap:10px; }
    .er-avatar { width:37px; height:37px; border-radius:12px; }.er-avatar img { border-radius:12px; }
    .er-member-name { font-size:12px; }.er-member-meta,.er-member-school { font-size:9px; }
    .er-member-score strong { font-size:18px; }.er-member-score svg { width:13px; height:13px; }
    .er-how { grid-template-columns:1fr; gap:30px; }
    .er-honors,.er-ranking { margin-top:36px; }
}
@media(max-width:430px) {
    .er-scope-tabs a { flex-direction:column; gap:4px; font-size:9px; }
    .er-podium-card { grid-template-columns:50px minmax(0,1fr); gap:0 14px; padding:21px 17px!important; }
    .er-podium-card .er-podium-avatar { width:49px; height:49px; border-radius:15px; }.er-podium-card .er-podium-avatar img { border-radius:11px; }
    .er-podium-points { grid-column:2; grid-row:auto; display:flex; align-items:center; gap:8px; text-align:left; margin-top:10px; }
    .er-podium-card .er-podium-points strong { font-size:22px; }.er-podium-points > span { margin:0; font-size:8px; }
    .er-member-row { grid-template-columns:30px minmax(0,1fr); gap:9px 12px; padding:17px 14px; }
    .er-member-main { align-items:flex-start; }
    .er-member-score { grid-column:2; justify-content:flex-start; padding-left:47px; }
    .er-member-score small { flex-basis:auto; font-size:9px; }
    .er-member-score strong { font-size:17px; }
    .er-member-name { font-size:13px; }
    .er-list-labels { display:none; }
    .er-list-toolbar { gap:8px; }
    .er-search { flex-basis:100%; }
    .er-scope-form label { min-width:100%; }
    .er-scope-form .er-btn { width:100%; }
    .er-pagination nav > div:last-child { justify-content:center; font-size:10px; }
}
@media(prefers-reduced-motion:reduce) { .er * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media print { .er { background:white; color:#111; --er-card:#fff; --er-muted:#444; --er-ink:#111; --er-line:#ddd; } .er-list-toolbar,.er-scope-form,.er-trophy-scene,.er-pagination,.er-how { display:none!important; } .er-member-row,.er-podium-card { break-inside:avoid; } }

/* Compact variant: filters, top members and list take priority over decoration. */
.er-compact { padding-top:17px; }
.er-compact .er-breadcrumb { margin-bottom:13px; }
.er-compact-header { display:flex; align-items:center; gap:15px; padding:20px 24px; border:1px solid var(--er-line); border-radius:18px; background:linear-gradient(110deg,var(--er-card),var(--er-soft)); }
.er-compact-header h1 { font-size:29px; line-height:1.3; letter-spacing:-.8px; }
.er-compact-header p { margin-top:4px; font-size:12px; color:var(--er-muted); }
.er-compact-emblem { display:grid; place-items:center; width:51px; height:51px; flex-shrink:0; border-radius:15px; color:#ae7519; background:#fff0d0; }
.er-compact-emblem svg { width:28px; height:28px; }
.er-compact .er-control-panel { margin-top:15px; padding:17px 21px; border-radius:15px; }
.er-compact .er-control-top { gap:12px; }
.er-compact .er-control-top h2 { font-size:15px; letter-spacing:-.2px; }
.er-compact .er-scope-tabs a { padding:8px 11px; }
.er-compact .er-context-stats { margin-top:15px; padding-top:14px; gap:14px; }
.er-compact .er-stat-icon { width:32px; height:32px; border-radius:10px; }
.er-compact .er-stat-icon svg { width:17px; height:17px; }
.er-compact .er-context-stats strong { font-size:13px; margin-top:1px; }
.er-compact .er-context-stats small { font-size:9px; }
.er-compact .er-scope-form { margin-top:15px; padding-top:15px; gap:11px; }
.er-compact .er-honors, .er-compact .er-ranking { margin-top:26px; }
.er-compact .er-section-heading { margin-bottom:14px; gap:12px; }
.er-compact .er-section-heading h2 { font-size:19px; letter-spacing:-.3px; }
.er-compact .er-section-heading h2 svg { width:18px; height:18px; color:#b5852b; margin-right:5px; }
.er-compact .er-context-chip { font-size:10px; padding:4px 9px; }
.er-compact .er-podium { align-items:stretch; gap:14px; padding:0; }
.er-compact .er-podium-card { grid-column:auto; grid-row:auto; display:grid; grid-template-columns:52px minmax(0,1fr); gap:0 14px; align-content:start; text-align:left; padding:21px 18px; border-radius:15px; box-shadow:none; }
.er-compact .er-podium-card .er-medal { grid-column:2; justify-self:start; padding:3px 7px; font-size:7px; margin-bottom:7px; }
.er-compact .er-podium-card .er-podium-avatar { grid-column:1; grid-row:1/5; margin:2px 0 0; width:52px; height:52px; border-radius:17px; }
.er-compact .er-podium-card .er-podium-avatar img { border-radius:13px; }
.er-compact .er-podium-card .er-podium-avatar > span { font-size:17px; }
.er-compact .er-podium-card h3 { grid-column:2; font-size:13px; line-height:1.5; }
.er-compact .er-podium-school { grid-column:2; font-size:9px; margin-top:4px!important; }
.er-compact .er-podium-card .er-role { grid-column:2; }
.er-compact .er-podium-points { grid-column:2; grid-row:auto; display:flex; flex-wrap:wrap; gap:6px; align-items:baseline; text-align:left; margin-top:9px; }
.er-compact .er-podium-card .er-podium-points strong { font-size:23px; }
.er-compact .er-podium-points > span { font-size:7px; margin:0; letter-spacing:.4px; }
.er-compact .er-list-toolbar { padding:10px 15px; margin-bottom:15px; }
.er-compact .er-member-list { gap:8px; }
.er-compact .er-member-row { padding-block:13px; }
.er-compact .er-member-school { margin-top:4px; }
.er-compact .er-member-score strong { font-size:20px; }
.er-help-compact { margin-top:23px; padding:15px 19px; border:1px solid var(--er-line); border-radius:12px; background:var(--er-card); }
.er-help-compact summary { cursor:pointer; color:var(--er-muted); font-size:12px; font-weight:650; }
.er-help-compact > p { font-size:12px; color:var(--er-muted); margin-top:12px; }
.er-help-compact .er-learning-links { margin-top:13px; }
.er-compact .er-footer { margin-top:24px; padding-block:16px; }
@media(max-width:700px) {
    .er-compact-header { padding:17px; gap:12px; }
    .er-compact-header h1 { font-size:23px; }
    .er-compact-header p { font-size:11px; }
    .er-compact-emblem { width:43px; height:43px; border-radius:12px; }
    .er-compact .er-context-stats { grid-template-columns:1fr 1fr; gap:12px; }
    .er-compact .er-context-stats > div:first-child { grid-column:1/-1; }
    .er-compact .er-podium { gap:10px; }
    .er-compact .er-podium-card { grid-template-columns:45px minmax(0,1fr) 94px; gap:0 13px; padding:16px!important; }
    .er-compact .er-podium-card .er-podium-avatar { width:44px; height:44px; border-radius:15px; }
    .er-compact .er-podium-card .er-podium-avatar img { border-radius:11px; }
    .er-compact .er-podium-card .er-podium-points { grid-column:3; grid-row:1/5; justify-content:flex-end; text-align:right; margin:0; }
    .er-compact .er-podium-points > span { flex-basis:100%; }
    .er-compact .er-podium-card .er-medal { padding:2px 6px; margin-bottom:4px; }
}
@media(max-width:430px) {
    .er-compact .er-control-panel { padding:15px; }
    .er-compact .er-context-stats { grid-template-columns:1fr; gap:9px; }
    .er-compact .er-context-stats > div { gap:10px; }
    .er-compact .er-context-stats > div > span:last-child { display:flex; align-items:baseline; justify-content:space-between; flex:1; gap:12px; }
    .er-compact .er-context-stats small { max-width:45%; }
    .er-compact .er-context-stats strong { font-size:12px; text-align:right; }
    .er-compact .er-podium-card { grid-template-columns:38px minmax(0,1fr); }
    .er-compact .er-podium-card .er-podium-avatar { width:36px; height:36px; border:2px solid var(--er-card); border-radius:11px; }
    .er-compact .er-podium-card .er-podium-avatar img { border-radius:9px; }
    .er-compact .er-podium-card .er-podium-avatar > span { font-size:12px; }
    .er-compact .er-podium-card .er-podium-points { grid-column:2; grid-row:auto; justify-content:flex-start; text-align:left; margin-top:6px; }
    .er-compact .er-podium-points > span { flex-basis:auto; }
    .er-compact .er-podium-card .er-podium-points strong { font-size:19px; }
}
