:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #08131c;
  --bg-deep: #061018;
  --card: #0e1c27;
  --card-hi: #122531;
  --text: #f2f6f7;
  --muted: #91a2ae;
  --muted-2: #637985;
  --line: rgba(255, 255, 255, .095);
  --line-hi: rgba(255, 255, 255, .16);
  --lime: #c7f36b;
  --lime-soft: #defca4;
  --amber: #ffc16c;
  --red: #ff8d83;
  --shadow: 0 22px 70px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 84% -8%, rgba(199, 243, 107, .09), transparent 29%),
    radial-gradient(circle at 8% 47%, rgba(57, 153, 210, .045), transparent 24%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(199, 243, 107, .021) 50%, transparent calc(50% + 1px)),
    var(--bg);
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid rgba(199, 243, 107, .55); outline-offset: 2px; }
::selection { color: #0a151d; background: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: rgba(6, 16, 24, .91); backdrop-filter: blur(18px); }
.topbar-inner { width: min(100% - 40px, 1480px); min-height: 66px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(199, 243, 107, .42); border-radius: 50%; background: rgba(199, 243, 107, .075); box-shadow: inset 0 0 24px rgba(199, 243, 107, .045); }
.brand-mark span { width: 15px; height: 15px; border: 2px solid var(--lime); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--bg-deep); }
.brand > span:last-child { min-width: 0; display: block; }
.brand small, .brand strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand small, .eyebrow { color: var(--lime); font-size: 11px; line-height: 1.25; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.brand strong { margin-top: 2px; font-size: 18px; letter-spacing: -.025em; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.source-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .18s ease; }
.source-link:hover { color: white; }
.sync-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.sync-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 193, 108, .09); animation: pulse 1.6s ease-in-out infinite; }
.sync-state.ready i { background: var(--lime); box-shadow: 0 0 0 4px rgba(199, 243, 107, .09); animation: none; }
.sync-state.error { color: var(--red); }
.sync-state.error i { background: var(--red); animation: none; }

.shell { width: min(100% - 40px, 1480px); margin: 0 auto; padding: 30px 0 58px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 530px); align-items: end; gap: 28px; margin-bottom: 22px; }
.statusline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.badge { min-height: 24px; padding: 3px 10px; display: inline-flex; align-items: center; border: 1px solid rgba(199, 243, 107, .3); border-radius: 999px; color: var(--lime-soft); background: rgba(199, 243, 107, .075); font-size: 12px; font-weight: 750; }
.intro h1 { margin: 13px 0 0; color: white; font-size: clamp(29px, 3vw, 43px); line-height: 1.02; letter-spacing: -.047em; }
.intro > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: right; }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(14, 28, 39, .92); box-shadow: var(--shadow); }
.filters label { min-width: 0; display: grid; gap: 8px; }
.filters label > span, .control-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.filters select { width: 100%; height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--card-hi); transition: border-color .18s ease, background .18s ease; }
.filters select:hover:not(:disabled) { border-color: var(--line-hi); background: #152a37; }
.filters select:disabled { color: var(--muted-2); cursor: not-allowed; opacity: .68; }

.scope-controls { margin: 14px 0; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.control-group { display: grid; gap: 8px; }
.align-end { justify-items: end; }
.tabs, .segmented { padding: 4px; display: inline-flex; border: 1px solid rgba(255,255,255,.04); border-radius: 11px; background: rgba(0, 0, 0, .21); }
.tabs button, .segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; transition: background .18s ease, color .18s ease, opacity .18s ease; }
.tabs button:hover:not(:disabled), .segmented button:hover { color: white; background: rgba(255,255,255,.05); }
.tabs button.active, .segmented button.active { color: #0a151d; background: var(--lime); box-shadow: 0 4px 20px rgba(199, 243, 107, .12); font-weight: 800; }
.tabs button:disabled { opacity: .28; cursor: not-allowed; }
.segmented button.active { color: var(--text); background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--line-hi); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 15px 0; }
.metrics article { position: relative; overflow: hidden; min-height: 128px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.metrics article::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; opacity: .73; background: linear-gradient(90deg, var(--lime), transparent 76%); }
.metrics article > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.metrics i { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-style: normal; }
.metrics strong { display: block; margin-top: 20px; overflow: hidden; color: white; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 25px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.metrics small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.record-section { margin: 16px 0; }
.record-section-head { margin-bottom: 10px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.record-section-head h2 { margin: 6px 0 0; font-size: 18px; letter-spacing: -.025em; }
.record-section-head > span { color: var(--muted-2); font-size: 11px; text-align: right; }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.record-card { position: relative; min-width: 0; min-height: 178px; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(255,255,255,.026), transparent 62%), var(--card); }
.record-card::after { content: ""; position: absolute; inset: auto -15% -48px; height: 90px; border-radius: 50%; background: var(--record-glow, rgba(199,243,107,.09)); filter: blur(28px); pointer-events: none; }
.record-card > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.record-card i { width: 30px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--record-accent, var(--lime)); background: rgba(255,255,255,.025); font-family: ui-monospace, monospace; font-size: 10px; font-style: normal; }
.record-card strong { position: relative; z-index: 1; display: block; margin-top: 20px; color: var(--record-accent, var(--lime)); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 29px; letter-spacing: -.045em; }
.record-card p { position: relative; z-index: 1; margin: 3px 0 0; overflow: hidden; color: white; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.record-card small { position: relative; z-index: 1; display: block; margin-top: 4px; overflow: hidden; color: var(--muted-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.record-card a { position: relative; z-index: 1; display: inline-block; margin-top: 11px; color: var(--record-accent, var(--lime)); font-size: 11px; text-decoration: none; }
.record-card a:hover { text-decoration: underline; }
.away-record { --record-accent: #9dd9ff; --record-glow: rgba(95,177,228,.11); }
.team-home-record { --record-accent: var(--amber); --record-glow: rgba(255,193,108,.1); }
.team-away-record { --record-accent: #d1b7ff; --record-glow: rgba(177,134,255,.11); }
.team-record { --record-accent: #ff9f73; --record-glow: rgba(255,159,115,.1); }

.trend-panel { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.trend-head { min-height: 90px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.trend-head p { margin: 0; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.trend-head h2 { margin: 5px 0 3px; font-size: 19px; letter-spacing: -.025em; }
.trend-head > div > span { color: var(--muted-2); font-size: 11px; }
.trend-controls { display: flex; align-items: end; gap: 10px; }
.trend-select { min-width: 178px; display: grid; gap: 7px; }
.trend-select > span { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.trend-select select { width: 100%; height: 39px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--card-hi); }
.chart-shell { position: relative; min-height: 325px; padding: 14px 16px 2px; overflow: hidden; }
.chart-shell:focus-visible { outline: 3px solid rgba(199,243,107,.55); outline-offset: -3px; }
.record-card a[hidden], .trend-empty[hidden] { display: none !important; }
.trend-chart { width: 100%; min-width: 0; height: auto; display: block; }
.trend-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.trend-axis-label { fill: var(--muted-2); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 10px; }
.trend-year-label { fill: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-anchor: middle; }
.trend-year-label.active { fill: var(--lime); font-weight: 800; }
.trend-current-line { stroke: rgba(199,243,107,.18); stroke-width: 1; stroke-dasharray: 3 5; }
.trend-missing { stroke: rgba(255,255,255,.13); stroke-width: 2; stroke-linecap: round; }
.trend-line { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 9px rgba(199,243,107,.15)); }
.trend-area { fill: url(#trendFill); opacity: .42; }
.trend-dot { fill: var(--bg-deep); stroke: var(--lime); stroke-width: 2.5; }
.trend-dot.active { fill: var(--lime); stroke: white; stroke-width: 2; }
.trend-dot:focus { outline: none; stroke: white; stroke-width: 4; }
.trend-empty { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.trend-summary { padding: 0 20px 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.trend-summary > span { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.trend-summary b, .trend-summary strong, .trend-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-summary b { color: var(--muted-2); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.trend-summary strong { margin-top: 4px; color: white; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 17px; }
.trend-summary small { margin-top: 2px; color: var(--muted-2); font-size: 10px; }

@media (max-width: 760px) {
  .record-section-head, .trend-head { align-items: flex-start; flex-direction: column; }
  .record-section-head > span { text-align: left; }
  .record-grid { grid-template-columns: 1fr; }
  .record-card { min-height: 164px; }
  .trend-controls { width: 100%; flex-direction: column; align-items: stretch; }
  .trend-select { width: 100%; }
  .trend-summary { grid-template-columns: 1fr; }
}


.guest-panel { margin: 16px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.guest-head { min-height: 88px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.guest-head p { margin: 0; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.guest-head h2 { margin: 5px 0 3px; font-size: 19px; letter-spacing: -.025em; }
.guest-head > div > span { color: var(--muted-2); font-size: 12px; }
.guest-period { min-width: 185px; display: grid; gap: 7px; }
.guest-period > span { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.guest-period select { width: 100%; height: 39px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--card-hi); }
.guest-period select:disabled { opacity: .48; cursor: not-allowed; }
.guest-layout { display: grid; grid-template-columns: minmax(245px, .42fr) minmax(0, 1.58fr); min-width: 0; }
.guest-best { position: relative; min-width: 0; padding: 22px; overflow: hidden; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(199,243,107,.055), transparent 64%); }
.guest-best::after { content: ""; position: absolute; right: -45px; bottom: -50px; width: 150px; height: 110px; border-radius: 50%; background: rgba(199,243,107,.1); filter: blur(35px); pointer-events: none; }
.guest-best > span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.guest-best strong { position: relative; z-index: 1; display: block; margin-top: 25px; color: var(--lime); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 31px; letter-spacing: -.045em; }
.guest-best h3 { position: relative; z-index: 1; margin: 7px 0 0; overflow-wrap: anywhere; color: white; font-size: 17px; }
.guest-best p { position: relative; z-index: 1; margin: 6px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.55; }
.guest-best a { position: relative; z-index: 1; display: inline-block; margin-top: 18px; color: var(--lime); font-size: 12px; text-decoration: none; }
.guest-best a:hover { text-decoration: underline; }
.guest-best a[hidden] { display: none !important; }
.guest-table-wrap { min-width: 0; }
.guest-table th:first-child, .guest-table td:first-child { width: 54px; }
.guest-table th:nth-child(2), .guest-table td:nth-child(2) { min-width: 190px; text-align: left; }
.guest-table th:nth-child(3), .guest-table td:nth-child(3), .guest-table th:nth-child(4), .guest-table td:nth-child(4), .guest-table th:nth-child(5), .guest-table td:nth-child(5) { text-align: right; }
.guest-table td:nth-child(3) { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 750; }
.guest-table td:nth-child(4), .guest-table td:nth-child(5) { color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.guest-table th:nth-child(6), .guest-table td:nth-child(6) { min-width: 155px; color: var(--text); text-align: left; font-family: inherit; font-weight: 400; }
.guest-table th:last-child, .guest-table td:last-child { width: 78px; text-align: right; }
.guest-table td:last-child a { color: var(--lime); font-size: 11px; text-decoration: none; }
.guest-table td:last-child a:hover { text-decoration: underline; }
.guest-table tbody tr:first-child { background: rgba(199,243,107,.035); box-shadow: inset 2px 0 var(--lime); }

@media (max-width: 920px) {
  .guest-layout { grid-template-columns: 1fr; }
  .guest-best { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .guest-head { align-items: flex-start; flex-direction: column; }
  .guest-period { width: 100%; }
}

.guest-player-block { border-top: 1px solid var(--line); }
.guest-subhead { min-height: 74px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.guest-subhead p { margin: 0; color: var(--amber); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.guest-subhead h3 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.02em; }
.guest-subhead span { display: block; margin-top: 5px; color: var(--muted-2); font-size: 12px; }
.guest-player-best { background: linear-gradient(145deg, rgba(255,193,108,.065), rgba(255,255,255,.012)); }
.guest-player-best > span { color: var(--amber); }
.guest-player-best strong { color: var(--amber); }
.guest-player-best a { color: var(--amber); }
.guest-player-table th:nth-child(2), .guest-player-table td:nth-child(2) { min-width: 250px; text-align: left; font-family: inherit; }
.guest-player-table td:nth-child(2) b { display: block; color: var(--text); }
.guest-player-table td:nth-child(2) small { max-width: 245px; }
.guest-player-table th:nth-child(3), .guest-player-table td:nth-child(3),
.guest-player-table th:nth-child(4), .guest-player-table td:nth-child(4),
.guest-player-table th:nth-child(5), .guest-player-table td:nth-child(5),
.guest-player-table th:nth-child(6), .guest-player-table td:nth-child(6) { min-width: 0; color: var(--text); text-align: right; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 400; }
.guest-player-table td:nth-child(3) { color: var(--amber); font-weight: 750; }
.guest-player-table td:nth-child(4) { color: var(--lime); font-weight: 700; }
.guest-player-table th:nth-child(7), .guest-player-table td:nth-child(7) { min-width: 155px; color: var(--text); text-align: left; font-family: inherit; font-weight: 400; }
.guest-player-table th:nth-child(8), .guest-player-table td:nth-child(8) { width: 78px; min-width: 0; text-align: right; }
.guest-player-table tbody tr:first-child { background: rgba(255,193,108,.035); box-shadow: inset 2px 0 var(--amber); }

@media (max-width: 760px) {
  .guest-subhead { align-items: flex-start; }
}

.guest-player-table th:nth-child(7), .guest-player-table td:nth-child(7) { min-width: 0; color: var(--text); text-align: right; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 400; }
.guest-player-table th:nth-child(8), .guest-player-table td:nth-child(8) { width: auto; min-width: 155px; color: var(--text); text-align: left; font-family: inherit; font-weight: 400; }
.guest-player-table th:nth-child(9), .guest-player-table td:nth-child(9) { width: 78px; min-width: 0; text-align: right; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .65fr); gap: 16px; }
.ranking-panel, .profile-panel, .recent-panel, .method-panel, .coverage { border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.ranking-panel { min-width: 0; overflow: hidden; }
.panel-head, .section-head { min-height: 78px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-head p, .section-head p { margin: 0; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.panel-head h2, .section-head h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.02em; }
.ranking-meta { max-width: 330px; display: grid; justify-items: end; gap: 4px; text-align: right; }
.ranking-meta span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; }
.ranking-meta small { color: var(--muted-2); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { min-height: 50px; padding: 11px 13px; border-bottom: 1px solid rgba(255, 255, 255, .067); text-align: right; white-space: nowrap; }
th { height: 44px; color: var(--muted-2); font-size: 12px; font-weight: 650; }
th:first-child, td:first-child { width: 58px; padding-left: 20px; color: var(--muted-2); text-align: left; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
th:nth-child(2), td:nth-child(2) { min-width: 220px; text-align: left; }
td:nth-child(n + 3) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
td:nth-child(5), td:nth-child(6) { color: white; font-weight: 700; }
td:nth-child(6) { color: var(--lime); }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: rgba(255, 255, 255, .026); }
tbody tr.selected-row { background: rgba(199, 243, 107, .045); box-shadow: inset 2px 0 var(--lime); }
td small { display: block; margin-top: 3px; max-width: 340px; overflow: hidden; color: var(--muted-2); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 12px; text-overflow: ellipsis; }
.player-link { padding: 0; border: 0; color: var(--text); background: none; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.player-link:hover { color: var(--lime); }
.quality-tag { display: inline-flex; padding: 4px 8px; border: 1px solid rgba(255,193,108,.18); border-radius: 999px; color: var(--amber); background: rgba(255,193,108,.055); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 10px; }
.quality-tag.good { border-color: rgba(199,243,107,.16); color: var(--lime-soft); background: rgba(199,243,107,.05); }
.loading-row td { height: 162px; color: var(--muted); text-align: center !important; font-family: Inter, ui-sans-serif, system-ui, sans-serif !important; }
.loader { width: 17px; height: 17px; margin-right: 9px; display: inline-block; vertical-align: -4px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
.error-copy td { color: var(--red); }
.panel-foot { min-height: 60px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: 12px; }
.panel-foot p { max-width: 760px; margin: 0; line-height: 1.55; }
.panel-foot button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: rgba(255,255,255,.03); cursor: pointer; }

.profile-panel { min-width: 0; padding: 20px; }
.profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.amber { color: var(--amber); }
.profile-panel h2 { margin: 9px 0 0; overflow-wrap: anywhere; font-size: 22px; letter-spacing: -.03em; }
.muted { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.profile-rank { min-width: 48px; min-height: 36px; padding: 7px 9px; border: 1px solid rgba(199,243,107,.2); border-radius: 10px; color: var(--lime); background: rgba(199,243,107,.06); font-family: ui-monospace, monospace; text-align: center; }
.profile-metrics { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); gap: 1px; }
.profile-metrics div { min-width: 0; padding: 14px; background: var(--card-hi); }
.profile-metrics span { color: var(--muted-2); font-size: 12px; }
.profile-metrics strong { display: block; margin-top: 5px; overflow: hidden; color: white; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 23px; text-overflow: ellipsis; white-space: nowrap; }
.profile-metrics div:first-child strong { color: var(--lime); }
.split-title { margin-bottom: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.split-title > span { font-size: 14px; font-weight: 700; }
.split-title small { color: var(--muted-2); font-size: 11px; }
.bars { display: grid; gap: 17px; }
.bars p { margin: 0 0 7px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.bars b { color: var(--text); font-family: ui-monospace, monospace; font-weight: 600; }
.bars i { height: 7px; display: block; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .075); }
.bars i span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #90d12f, var(--lime)); }
.bars small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 10px; }
.empty-copy { margin: 0; color: var(--muted-2); font-size: 12px; line-height: 1.55; }
.profile-note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; line-height: 1.55; }

.detail-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .7fr); gap: 16px; }
.recent-panel { min-width: 0; overflow: hidden; }
.section-head > span { color: var(--muted); font-size: 12px; }
.recent-table th:first-child, .recent-table td:first-child { width: auto; color: var(--muted); font-family: inherit; }
.recent-table th:nth-child(2), .recent-table td:nth-child(2) { min-width: 260px; }
.recent-table td:nth-child(4), .recent-table td:nth-child(5) { color: white; font-family: ui-monospace, monospace; font-weight: 700; }
.recent-table td:last-child a { color: var(--lime); font-size: 12px; text-decoration: none; }
.recent-table td:last-child a:hover { text-decoration: underline; }
.venue-pill { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.venue-pill.heim { border-color: rgba(199,243,107,.17); color: var(--lime-soft); }
.venue-pill.auswarts { border-color: rgba(95,177,228,.2); color: #9dd9ff; }
.venue-pill.neutral { border-color: rgba(255,193,108,.2); color: var(--amber); }
.method-panel { padding: 20px; }
.method-panel h2 { margin: 9px 0 20px; font-size: 20px; letter-spacing: -.025em; }
.method-panel ul { margin: 0; padding: 0; display: grid; gap: 17px; list-style: none; }
.method-panel li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.method-panel li > span { color: var(--lime); font-family: ui-monospace, monospace; font-size: 11px; }
.method-panel li p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.method-panel li b { margin-bottom: 2px; display: block; color: var(--text); font-size: 13px; }
.method-links { margin-top: 21px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--line); }
.method-links a { color: var(--lime); font-size: 12px; text-decoration: none; }
.method-links a:hover { text-decoration: underline; }

.coverage { margin-top: 16px; padding: 22px; display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); gap: 32px; }
.coverage h2 { margin: 9px 0 8px; font-size: 20px; }
.coverage > div:first-child > p:last-child { max-width: 450px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.coverage-list { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.coverage-item { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: inherit; background: rgba(255,255,255,.02); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.coverage-item:hover { border-color: var(--line-hi); background: rgba(255,255,255,.04); }
.coverage-item.active { border-color: rgba(199,243,107,.28); background: rgba(199,243,107,.045); }
.coverage-item b, .coverage-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverage-item b { font-size: 12px; }
.coverage-item small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.coverage-item > i { height: 3px; margin-top: 8px; display: block; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.coverage-item > i span { height: 100%; display: block; border-radius: inherit; background: var(--lime); opacity: .72; }

footer { border-top: 1px solid var(--line); background: rgba(6,16,24,.6); }
footer > div { width: min(100% - 40px, 1480px); min-height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: 11px; }
footer p { margin: 0; }
.toast { position: fixed; z-index: 50; right: 18px; bottom: 18px; max-width: min(360px, calc(100% - 36px)); padding: 10px 13px; border: 1px solid var(--line-hi); border-radius: 10px; color: var(--text); background: rgba(14,28,39,.96); box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; } }

@media (max-width: 1120px) {
  .filters, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace, .detail-grid { grid-template-columns: 1fr; }
  .profile-panel { display: grid; grid-template-columns: minmax(250px,.7fr) minmax(300px,1fr); column-gap: 26px; }
  .profile-heading, .profile-metrics { grid-column: 1; }
  .split-title, .bars, .profile-note { grid-column: 2; }
  .split-title { align-self: end; margin-top: 6px; }
  .profile-note { align-self: start; }
  .coverage { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar-inner, .shell, footer > div { width: min(100% - 28px, 1480px); }
  .source-link { display: none; }
  .header-actions { gap: 0; }
  .intro { grid-template-columns: 1fr; gap: 12px; }
  .intro > p { text-align: left; }
  .filters, .metrics { grid-template-columns: 1fr; }
  .scope-controls { align-items: stretch; flex-direction: column; }
  .align-end { justify-items: start; }
  .tabs, .segmented { width: 100%; overflow-x: auto; }
  .tabs button, .segmented button { flex: 1 0 auto; }
  .panel-head, .section-head { align-items: flex-start; flex-direction: column; }
  .ranking-meta { max-width: none; justify-items: start; text-align: left; }
  .panel-foot { align-items: flex-start; flex-direction: column; }
  .profile-panel { display: block; }
  .split-title { margin-top: 0; }
  .coverage-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  footer > div { padding: 18px 0; align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 460px) {
  .sync-state { display: none; }
  .brand strong { font-size: 16px; }
  .shell { padding-top: 24px; }
  .intro h1 { font-size: 29px; }
  .filters { padding: 13px; }
  .profile-metrics { grid-template-columns: 1fr 1fr; }
  th, td { padding-inline: 10px; }
  th:first-child, td:first-child { padding-left: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
