.oj-profile {
  --oj-ink: #182b47;
  --oj-muted: #536985;
  --oj-line: #dce7f6;
  --oj-accent: #2458cd;
}
.page--user_detail #panel > .main { padding-block-start: 22px; }
.oj-profile .profile-header.oj-profile-hero {
  background: linear-gradient(128deg, #fff 38%, #edf4ff 100%);
  color: var(--oj-ink);
  min-height: 0;
  padding-bottom: 0;
}
.oj-profile .profile-header.oj-profile-hero .profile-header__content {
  position: static;
  padding: 26px 24px 22px;
  background: none;
  color: inherit;
}
.oj-profile .oj-profile-hero .media { display: flex; align-items: center; gap: 20px; }
.oj-profile .oj-profile-hero .media__left { flex: 0 0 auto; padding: 0; }
.oj-profile .oj-profile-hero .media__body { min-width: 0; }
.oj-profile .oj-profile-hero .user-profile-avatar {
  width: 84px; height: 84px; border: 2px solid #fff; border-radius: 19px;
  box-shadow: 0 0 0 1px var(--oj-line); object-fit: cover;
}
.oj-profile .oj-profile-hero h1 {
  margin: 0 0 6px; font-size: clamp(24px, 4vw, 33px); line-height: 1.24; color: var(--oj-ink);
  overflow-wrap: anywhere;
}
.oj-profile .oj-profile-hero h1 small { color: var(--oj-muted); font-size: 14px; }
.oj-profile .oj-profile-hero p { color: var(--oj-muted); font-size: 12px; line-height: 1.75; }
.oj-profile .oj-profile-hero .profile-header__contact-bar {
  position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; text-align: left;
}
.oj-profile .oj-profile-hero .profile-header__contact-item { margin: 0; }
.oj-profile .oj-profile-hero a.profile-header__contact-item {
  padding: 4px 8px; border: 1px solid var(--oj-line); border-radius: 7px;
  color: var(--oj-accent); background: #f7faff; font-size: 12px; font-weight: 650;
}
.oj-profile .oj-profile-hero a.profile-header__contact-item:hover { background: #eaf2ff; }
.oj-profile .oj-tier-label { margin-bottom: 4px; font-size: 12px; font-weight: 750; }
.oj-profile .oj-handle { display: inline-block; }
.oj-profile .oj-tier-newbie { color: #5b6572; }
.oj-profile .oj-tier-pupil { color: #187331; }
.oj-profile .oj-tier-specialist { color: #007480; }
.oj-profile .oj-tier-expert { color: #224bce; }
.oj-profile .oj-tier-candidate { color: #8a2bac; }
.oj-profile .oj-tier-master { color: #a74a00; }
.oj-profile .oj-tier-gm { color: #d02135; }
.oj-profile .oj-tier-international-gm { color: #a00d28; }
.oj-profile .oj-tier-legend { color: #c9162b; }
.oj-profile .oj-handle.oj-tier-legend::first-letter { color: #111; }
.oj-profile .oj-profile-card {
  margin: 0 0 18px; padding: 20px 21px; min-width: 0;
  border: 1px solid var(--oj-line); border-radius: 15px; color: var(--oj-ink); background: #fff;
}
.oj-card-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
.oj-card-heading h2 { margin: 0; color: var(--oj-ink); font-size: 17px; font-weight: 750; }
.oj-card-heading > span, .oj-activity-numbers span, .oj-rating-summary span, .oj-topic-summary span {
  color: var(--oj-muted); font-size: 12px;
}
.oj-rating-summary { display: flex; gap: 26px; margin: 13px 0; }
.oj-rating-summary span, .oj-rating-summary strong, .oj-activity-numbers span, .oj-activity-numbers strong { display: block; }
.oj-rating-summary strong, .oj-activity-numbers strong, .oj-topic-summary strong {
  color: var(--oj-ink); font-size: 22px; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.oj-rating-scroll, .oj-heat-scroll { max-width: 100%; overflow-x: auto; }
.oj-rating-chart { width: 100%; min-width: 340px; height: auto; display: block; border-radius: 9px; background: #f7faff; }
.oj-rating-chart text { fill: var(--oj-muted); font-size: 12px; }
.oj-chart-grid { stroke: #dbe6f6; stroke-width: 1; }
.oj-chart-path { fill: none; stroke: #3569df; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.oj-chart-point { fill: #2a5dd1; stroke: #fff; stroke-width: 1.5; }
.oj-rating-values { margin-top: 11px; color: var(--oj-muted); font-size: 12px; }
.oj-rating-values summary { cursor: pointer; color: var(--oj-accent); }
.oj-rating-values ul { list-style: none; margin: 0; }
.oj-rating-values li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--oj-line); }
.oj-insights-empty { margin: 12px 0 0; color: var(--oj-muted); font-size: 13px; }
.oj-heatmap {
  display: grid; grid-template-rows: repeat(7, 10px); grid-auto-columns: 10px;
  grid-auto-flow: column; gap: 3px; width: max-content; margin: 13px 0 7px;
}
.oj-heatmap span { border-radius: 2px; }
.oj-heat-0 { background: #e9eef6; }
.oj-heat-1 { background: #b5d9c7; }
.oj-heat-2 { background: #77bf9b; }
.oj-heat-3 { background: #379769; }
.oj-heat-4 { background: #136645; }
.oj-activity-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.oj-topic-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.oj-topic-card h3 { margin: 10px 0 6px; color: var(--oj-ink); font-size: 13px; font-weight: 700; }
.oj-topic-list { list-style: none; margin: 0; padding: 0; }
.oj-topic-list li {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 6px;
  margin-bottom: 8px; color: var(--oj-muted); font-size: 12px; overflow-wrap: anywhere;
}
.oj-topic-list meter { grid-column: 1 / -1; width: 100%; height: 8px; }
.oj-topic-list meter::-webkit-meter-bar { border: 0; background: #eaf0fa; }
.oj-topic-list meter::-webkit-meter-optimum-value { background: #5990f0; }
@media (max-width: 600px) {
  .oj-profile .profile-header.oj-profile-hero .profile-header__content { padding: 15px; }
  .oj-profile .oj-profile-hero .media { align-items: flex-start; gap: 11px; }
  .oj-profile .oj-profile-hero .user-profile-avatar { width: 58px; height: 58px; border-radius: 12px; }
  .oj-profile .oj-profile-card { padding: 15px; }
  .oj-activity-numbers { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
