/* A single compact leaderboard; colors inherit the signed-in foundry themes. */
.profit-ranking-page {
 --pr-line: var(--forge-line,var(--border)); --pr-soft: var(--forge-soft,var(--accent-soft));
 --pr-panel: var(--forge-panel,var(--surface)); --pr-profit: var(--positive,#79dfba);
 --pr-loss: var(--negative,#ed6c7b);
 --pr-gold: #edc68b; --pr-silver: #b9cede; --pr-bronze: #d7a98c;
 max-width: 860px; margin: 20px auto 0; min-width: 0; color: var(--text);
}
.profit-ranking-page svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.pr-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:3px 4px 0; }
.pr-eyebrow { color:var(--accent); font-size:9px; letter-spacing:.14em; font-weight:550; }
.pr-heading h1 { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:9px 0 7px; font-size:29px; letter-spacing:-.04em; line-height:1.3; font-weight:650; }
body.ui-polished .pr-kind-trigger { display:inline-flex; align-items:center; gap:5px; min-height:40px; padding:0; border:0; border-radius:8px; background:none; box-shadow:none; color:inherit; font:inherit; letter-spacing:inherit; }
.pr-kind-trigger>svg { width:17px; height:17px; color:var(--muted); stroke-width:1.7; }
.pr-entry-chevron { display:inline-block; vertical-align:middle; width:12px; height:12px; margin-left:3px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
body.ui-polished .home-strategy-footer.home-strategy-actions { justify-content:space-between; gap:12px; }
body.ui-polished .home-strategy-actions .home-ranking-entry {
 display:inline-flex; align-items:center; justify-content:center; gap:5px; flex:0 0 auto;
 min-height:34px; padding:7px 10px; border:1px solid var(--forge-line-strong,var(--border)); border-radius:11px;
 background:var(--forge-soft,var(--accent-soft)); color:var(--accent); font-size:12px; line-height:1.4; font-weight:550;
 box-shadow:inset 0 1px 0 var(--ui-highlight,transparent); white-space:nowrap;
}
.home-ranking-entry .home-ranking-icon { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.home-ranking-entry:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.pr-kind-menu { position:fixed; z-index:1600; display:grid; min-width:132px; padding:5px; border:1px solid var(--forge-line,var(--border)); border-radius:14px; background:var(--forge-panel,var(--surface)); color:var(--text); box-shadow:var(--forge-shadow,var(--ui-shadow)); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
body.ui-polished .pr-kind-menu>button { display:flex; justify-content:space-between; align-items:center; gap:22px; min-height:40px; padding:9px 12px; border:0; border-radius:9px; background:none; box-shadow:none; color:var(--text); font-size:12px; font-weight:550; }
body.ui-polished .pr-kind-menu>button[aria-checked=true] { background:var(--forge-soft,var(--accent-soft)); color:var(--accent); }
.pr-kind-menu svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.pr-kind-menu>button:focus-visible { outline:2px solid var(--accent); outline-offset:0; }
.pr-heading p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.pr-heading p>span { margin-inline:6px; opacity:.5; }
.pr-heading-mark { width:56px; height:56px; display:grid; place-items:center; border:1px solid var(--pr-line); border-radius:19px; background:var(--pr-soft); box-shadow:var(--ui-control-shadow); color:var(--pr-gold); flex-shrink:0; }
.pr-heading-mark svg { width:31px; height:31px; stroke-width:1.3; }
.pr-heading-mark.pr-heading-loss { color:var(--pr-loss); }
.pr-preview-badge { font-size:9px; letter-spacing:0; font-weight:500; line-height:1.5; padding:5px 8px; color:var(--warning); background:var(--pr-soft); border:1px solid var(--pr-line); border-radius:8px; }
.pr-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:19px 2px 14px; }
body.ui-polished .pr-filters { display:inline-flex; gap:4px; padding:4px; border:1px solid var(--pr-line); border-radius:14px; background:var(--pr-soft); }
body.ui-polished .pr-filters>button { min-height:32px; min-width:67px; padding:7px 18px; border:1px solid transparent; border-radius:10px; background:none; color:var(--muted); font-size:11px; font-weight:550; box-shadow:none; }
body.ui-polished .pr-filters>button[aria-pressed=true] { background:var(--surface); border-color:var(--pr-line); color:var(--accent); box-shadow:var(--ui-control-shadow); }
body.ui-polished .pr-refresh { display:grid; place-items:center; width:40px; height:40px; padding:9px; border:1px solid var(--pr-line); border-radius:13px; background:var(--pr-soft); color:var(--accent); box-shadow:var(--ui-control-shadow); }
.pr-refresh:disabled,.pr-filters button:disabled { opacity:.55; cursor:default; }
.pr-refresh.is-loading svg { animation:pr-spin 1.5s linear infinite; }
.pr-board { overflow:hidden; border:1px solid var(--pr-line); border-radius:26px; background:var(--pr-panel); box-shadow:var(--forge-shadow,var(--ui-shadow)); }
.pr-board-meta { display:flex; justify-content:space-between; gap:12px; padding:17px 18px 0; color:var(--muted); font-size:9px; }
.pr-board-meta>span { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.pr-board-meta i { width:3px; height:3px; background:currentColor; border-radius:50%; opacity:.5; margin:0 2px; }
.pr-board-meta svg { width:12px; height:12px; stroke-width:1.8; }
.pr-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; padding:22px 13px 0; gap:6px; border-bottom:1px solid var(--pr-line); }
.pr-podium-count-1 { grid-template-columns:minmax(0,1fr); max-width:220px; margin-inline:auto; border-bottom:0; }
.pr-podium-count-2 { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:480px; margin-inline:auto; }
.pr-podium-entry { min-width:0; text-align:center; display:flex; flex-direction:column; align-items:center; }
.pr-medal { position:relative; width:43px; height:49px; display:block; color:var(--pr-gold); }
.pr-medal>svg { width:100%; height:100%; stroke-width:1; overflow:visible; filter:drop-shadow(0 2px 3px #00000010); }
.pr-medal-disc { fill:currentColor; stroke:currentColor; }
.pr-medal-inner { fill:none; stroke:var(--surface); stroke-opacity:.6; }
.pr-medal-spark { stroke:white; stroke-opacity:.6; stroke-width:1.4; }
.pr-medal .pr-ribbon { fill:currentColor; fill-opacity:.4; stroke:none; }
.pr-medal>b { position:absolute; top:8px; left:0; width:100%; font-size:15px; font-weight:650; color:#54432b; line-height:22px; font-variant-numeric:tabular-nums; }
.pr-medal-2 { color:var(--pr-silver); }
.pr-medal-2>b { color:#405166; }
.pr-medal-3 { color:var(--pr-bronze); }
.pr-medal-3>b { color:#694737; }
.pr-place-1 .pr-medal { width:48px; height:55px; }
.pr-place-1 .pr-medal>b { top:9px; font-size:17px; }
.pr-podium-entry h2 { font-size:12px; font-weight:550; line-height:1.5; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:9px 0 3px; }
.pr-user-id { font-size:9px; color:var(--muted); font-variant-numeric:tabular-nums; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pr-profit { color:var(--pr-profit)!important; font-variant-numeric:tabular-nums; font-weight:600; letter-spacing:-.015em; white-space:nowrap; }
.pr-profit.pr-loss { color:var(--pr-loss)!important; }
.pr-podium-entry .pr-profit { font-size:clamp(11px,3.25vw,16px); line-height:1.5; margin-top:10px; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.pr-place-1 .pr-profit { font-size:clamp(12px,3.6vw,18px); }
.pr-unit { color:var(--muted); font-size:8px; letter-spacing:.04em; margin-top:1px; }
.pr-podium-step { display:grid; place-items:center; width:100%; margin-top:15px; min-height:34px; border:1px solid var(--pr-line); border-bottom:0; border-radius:13px 13px 0 0; background:var(--pr-soft); color:var(--pr-silver); box-shadow:inset 0 1px 0 #ffffff0c; }
.pr-podium-step b { font-size:18px; font-weight:550; opacity:.8; line-height:1; }
.pr-place-1 .pr-podium-step { min-height:53px; color:var(--pr-gold); background:linear-gradient(180deg,#e8c07d13,var(--pr-soft)); }
.pr-place-3 .pr-podium-step { min-height:26px; color:var(--pr-bronze); }
.pr-list-head,.pr-list>li { display:grid; grid-template-columns:28px minmax(0,1fr) auto; column-gap:11px; align-items:center; }
.pr-list-head { padding:16px 18px 9px; color:var(--muted); font-size:9px; }
.pr-list-head span:last-child { text-align:right; }
.pr-list { list-style:none; padding:0 18px 9px; margin:0; }
.pr-list>li { min-height:65px; border-top:1px solid var(--pr-line); padding:11px 0; box-sizing:border-box; }
.pr-list-rank { color:var(--muted); font-size:13px; font-weight:550; text-align:center; font-variant-numeric:tabular-nums; }
.pr-list-user { display:flex; flex-direction:column; gap:5px; min-width:0; }
.pr-list-user>b { font-size:12px; font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pr-list-user>span { font-size:9px; color:var(--muted); font-variant-numeric:tabular-nums; }
.pr-list>li>.pr-profit { font-size:13px; text-align:right; max-width:170px; overflow:hidden; text-overflow:ellipsis; }
.pr-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 10px; color:var(--muted); padding:15px 5px 0; font-size:9px; line-height:1.8; }
.pr-footer>p { flex-basis:100%; margin:3px 0 0; color:var(--muted); font-size:9px; }
.pr-footer>.pr-disclosure { margin-top:7px; color:var(--text-secondary,var(--text)); font-size:9px; line-height:1.8; overflow-wrap:anywhere; }
body.ui-polished .pr-return { display:inline-flex; align-items:center; justify-content:center; gap:3px; margin:19px 0 0; min-height:42px; padding:8px 12px 8px 8px; border:1px solid var(--pr-line); border-radius:13px; background:var(--pr-soft); color:var(--text); font-size:11px; box-shadow:var(--ui-control-shadow); }
.pr-error { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; padding:11px 13px; border:1px solid var(--pr-line); border-radius:14px; background:var(--pr-soft); font-size:10px; line-height:1.7; color:var(--text-secondary,var(--muted)); }
.pr-error small { display:block; font-size:9px; color:var(--muted); }
body.ui-polished .pr-error button { flex-shrink:0; padding:5px 9px; border:0; border-radius:8px; color:var(--accent); font-size:10px; background:transparent; box-shadow:none; }
.pr-loading,.pr-empty { display:flex; flex-direction:column; align-items:center; text-align:center; padding:35px 20px; border:1px solid var(--pr-line); border-radius:25px; background:var(--pr-panel); }
.pr-empty>svg { width:39px; height:39px; stroke-width:1; color:var(--accent); margin-bottom:12px; }
.pr-empty h2 { font-size:15px; font-weight:550; margin:0 0 9px; }
.pr-empty p,.pr-loading p { max-width:280px; color:var(--muted); font-size:11px; line-height:1.8; margin:0; }
body.ui-polished .pr-empty>button { border:1px solid var(--pr-line); border-radius:12px; background:var(--pr-soft); color:var(--accent); padding:10px 17px; margin-top:19px; font-size:11px; box-shadow:var(--ui-control-shadow); }
.pr-loading-spinner { display:block; width:27px; height:27px; border:2px solid var(--pr-line); border-top-color:var(--accent); border-radius:50%; animation:pr-spin 1s linear infinite; margin-bottom:13px; }
.pr-skeleton-row { width:100%; height:39px; margin-top:15px; border-radius:11px; background:var(--pr-soft); animation:pr-soft-pulse 1.7s ease-in-out infinite; }
.pr-skeleton-row:nth-last-child(2) { animation-delay:.12s; }
.pr-skeleton-row:last-child { animation-delay:.24s; }
.profit-ranking-page button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
:root[data-theme=light] .profit-ranking-page { --pr-profit:var(--positive,#128064); --pr-gold:#b8883e; --pr-silver:#95afc7; --pr-bronze:#b68769; }
:root[data-theme=light] .pr-medal-1 { color:#edcd8b; }
:root[data-theme=light] .pr-medal-2 { color:#c2d5e6; }
:root[data-theme=light] .pr-medal-3 { color:#d6b197; }
:root[data-theme=light] .pr-place-1 .pr-podium-step { background:linear-gradient(180deg,#f2dcad22,var(--pr-soft)); }
@keyframes pr-spin { to{transform:rotate(360deg);} }
@keyframes pr-soft-pulse { 50%{opacity:.5;} }
@media(min-width:700px) { .profit-ranking-page { margin-top:27px; }.pr-heading h1{font-size:32px;}.pr-board-meta{padding:19px 25px 0;}.pr-podium{padding-inline:35px;gap:20px;}.pr-podium-entry h2{font-size:14px;}.pr-podium-entry .pr-profit{font-size:19px;}.pr-place-1 .pr-profit{font-size:23px;}.pr-podium-step{min-height:42px;}.pr-place-1 .pr-podium-step{min-height:65px;}.pr-place-3 .pr-podium-step{min-height:32px;}.pr-list{padding-inline:26px;}.pr-list-head{padding-inline:26px;}.pr-list>li{min-height:72px;}.pr-list-user>b{font-size:13px;}.pr-list>li>.pr-profit{font-size:16px;} }
@media(max-width:350px) { .pr-podium{padding-inline:8px;gap:4px;}.pr-podium-entry h2{font-size:11px;}.pr-user-id{font-size:8px;}.pr-board-meta{padding-inline:13px;}.pr-list-head,.pr-list>li{grid-template-columns:22px minmax(0,1fr) auto;gap:8px;}.pr-list{padding-inline:13px;}.pr-list-head{padding-inline:13px;}.pr-list>li>.pr-profit{font-size:11px;max-width:125px;} }
@media(prefers-reduced-motion:reduce) { .pr-refresh.is-loading svg,.pr-loading-spinner,.pr-skeleton-row{animation:none;} }
