.identity-gray { --identity-color: #5d6370; }
.identity-green { --identity-color: #207638; }
.identity-cyan { --identity-color: #087586; }
.identity-blue { --identity-color: #315ab6; }
.identity-violet { --identity-color: #8542b4; }
.identity-orange { --identity-color: #a35409; }
.identity-red { --identity-color: #bd3444; }
.identity-admin { --identity-color: #7643be; }
[data-theme="dark"] .identity-gray { --identity-color: #aab1bd; }
[data-theme="dark"] .identity-green { --identity-color: #7ec993; }
[data-theme="dark"] .identity-cyan { --identity-color: #70c7d3; }
[data-theme="dark"] .identity-blue { --identity-color: #91b5ff; }
[data-theme="dark"] .identity-violet { --identity-color: #cc9ded; }
[data-theme="dark"] .identity-orange { --identity-color: #f0b371; }
[data-theme="dark"] .identity-red { --identity-color: #ff94a0; }
[data-theme="dark"] .identity-admin { --identity-color: #c5a2ff; }
.user-identity .user-name { color: var(--identity-color, inherit); overflow-wrap: anywhere; }
.identity-badge { color: var(--identity-color, inherit); border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.public-profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.public-profile-heading h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.public-profile-heading .user-identity { flex-wrap: wrap; }
.contribution-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 24px 0; }
.contribution-summary span { display: block; color: var(--oj-muted); font-size: .9rem; }
.contribution-summary strong { font-size: clamp(1.3rem,4vw,2rem); font-variant-numeric: tabular-nums; }
.contribution-trend { margin:30px 0; position:relative; padding:20px 18px 14px; border:1px solid var(--oj-border); border-radius:14px; background:var(--oj-panel); }
.trend-scroll { overflow-x: auto; max-width: 100%; }
.contribution-trend svg { display:block; width:100%; height:220px; }
.trend-grid { stroke:var(--oj-border); stroke-dasharray:3 5; stroke-width:.7; }
.trend-zero { stroke:var(--oj-muted); stroke-opacity:.3; stroke-width:1; }
.trend-tick,.trend-contest-label { fill:var(--oj-muted); font-size:10px; }
.trend-area { fill:url(#trend-fill); pointer-events:none; }
.trend-hit { fill: transparent; }
.trend-dot { fill: #7970da; stroke: var(--oj-surface, #fff); stroke-width: 2; }
.trend-node-missing .trend-dot { fill: var(--oj-surface, #fff); stroke: #7970da; }
.trend-node:focus { outline: none; }
.trend-node:focus .trend-dot, .trend-node:hover .trend-dot { stroke: var(--oj-text); stroke-width: 3; }
.trend-popover { position:fixed; z-index:1120; width:min(290px,calc(100vw - 24px)); padding:16px; border:1px solid var(--oj-border); border-radius:12px; background:var(--oj-surface); color:var(--oj-text); box-shadow:0 12px 32px #0002; font-size:.85rem; }
.trend-popover-name { display:block; overflow-wrap:anywhere; font-size:.95rem; }
.trend-popover time { display:block; color:var(--oj-muted); margin-top:4px; font-size:.75rem; }
.trend-popover-scores { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:14px 0; }
.trend-popover-scores span { display:block; color:var(--oj-muted); font-size:.75rem; }
.trend-popover-scores b { font-size:1.35rem; font-variant-numeric:tabular-nums; }
.trend-popover [data-delta][data-sign="positive"] { color:var(--oj-success,#258052); }
.trend-popover [data-delta][data-sign="negative"] { color:var(--oj-danger,#c94c64); }
@supports(backdrop-filter:blur(1px)){.trend-popover{background:color-mix(in srgb,var(--oj-surface) 82%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}}
@media(forced-colors:active){.trend-popover{background:Canvas;backdrop-filter:none}.trend-line,.trend-dot{stroke:CanvasText}}
.trend-axis { fill: none; stroke: currentColor; opacity: .25; }
.trend-line { fill:none; stroke:#8277df; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.public-profile-columns { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 36px; margin-top: 32px; }
.public-profile-columns h2, .contribution-trend h2 { font-size: 1.25rem; }
.contribution-match { padding: 20px 0; border-bottom: 1px solid var(--oj-border, #9996); }
.contribution-match summary { cursor: pointer; }
.contribution-match .table { margin-top: 12px; font-size: .9rem; }
@media(max-width: 767px) {
  .contribution-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-profile-columns { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
