﻿:root {
    --ap-navy: #102044;
    --ap-ink: #26334d;
    --ap-muted: #64748b;
    --ap-line: #dfe5ef;
    --ap-soft-line: #edf1f6;
    --ap-surface: #ffffff;
    --ap-canvas: #f4f7fb;
    --ap-blue: #3957d8;
    --ap-blue-soft: #eef2ff;
    --ap-teal: #087f8c;
    --ap-teal-soft: #e8f7f7;
    --ap-green: #16845b;
    --ap-green-soft: #ebf8f2;
    --ap-amber: #a15c00;
    --ap-amber-soft: #fff5df;
    --ap-shadow: 0 8px 28px rgba(16, 32, 68, .07);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--ap-canvas);
}

body {
    margin: 0;
    background: var(--ap-canvas);
    color: var(--ap-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0;
}

a {
    color: var(--ap-blue);
    text-decoration: none;
}

a:hover {
    color: #233fae;
}

button,
input,
select {
    font: inherit;
    letter-spacing: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    padding: 8px 12px;
    background: var(--ap-navy);
    color: #fff;
}

.skip-link:focus {
    transform: translateY(0);
}

.public-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--ap-line);
}

.header-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    color: var(--ap-navy);
}

.brand:hover {
    color: var(--ap-navy);
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 17px;
}

.brand-copy span {
    margin-top: 3px;
    color: var(--ap-muted);
    font-size: 11px;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.public-nav a {
    padding: 9px 11px;
    border-radius: 6px;
    color: #44506a;
    font-size: 13px;
    font-weight: 600;
}

.public-nav a:hover,
.public-nav a.active {
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
}

.public-nav .login-link {
    margin-left: 8px;
    border: 1px solid #b9c4ef;
    color: var(--ap-blue);
}

.page-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 146px);
    margin: 0 auto;
    padding: 38px 0 64px;
}

.page-shell.wide {
    width: min(1240px, calc(100% - 40px));
}

.results-anchor {
    scroll-margin-top: 32px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 0;
    color: var(--ap-navy);
    font-size: 30px;
    line-height: 1.15;
}

.page-heading p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--ap-muted);
}

.eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--ap-teal);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.result-summary {
    flex: 0 0 auto;
    color: var(--ap-muted);
    font-size: 13px;
}

.search-panel {
    margin-bottom: 24px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px auto;
    align-items: center;
    gap: 10px;
    background: var(--ap-surface);
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    box-shadow: var(--ap-shadow);
}

.search-panel.single {
    grid-template-columns: minmax(0, 1fr) auto;
}

.field {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #cfd7e5;
    border-radius: 6px;
    background: #fff;
    color: var(--ap-ink);
    outline: none;
}

.field:focus {
    border-color: #7690ef;
    box-shadow: 0 0 0 3px rgba(57, 87, 216, .12);
}

.button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--ap-blue);
    border-radius: 6px;
    background: var(--ap-blue);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.button:hover {
    background: #2947c5;
}

.button.secondary {
    background: #fff;
    color: var(--ap-blue);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.researcher-card {
    min-height: 220px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    background: var(--ap-surface);
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(16, 32, 68, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.researcher-card:hover {
    transform: translateY(-2px);
    border-color: #b8c5ef;
    box-shadow: var(--ap-shadow);
}

.researcher-main {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 15px;
    padding: 18px 18px 12px;
}

.researcher-avatar {
    width: 86px;
    height: 108px;
    border-radius: 7px;
    border: 1px solid var(--ap-line);
    object-fit: cover;
    background: var(--ap-canvas);
}

.researcher-card h2 {
    margin: 2px 0 4px;
    font-size: 20px;
    line-height: 1.2;
}

.researcher-title {
    color: var(--ap-teal);
    font-size: 13px;
    font-weight: 700;
}

.researcher-program {
    margin: 10px 0 0;
    color: var(--ap-muted);
    font-size: 13px;
}

.researcher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ap-soft-line);
}

.researcher-stats span {
    padding: 12px 8px;
    text-align: center;
    color: var(--ap-muted);
    font-size: 11px;
}

.researcher-stats span + span {
    border-left: 1px solid var(--ap-soft-line);
}

.researcher-stats strong {
    display: block;
    color: var(--ap-navy);
    font-size: 17px;
}

.empty-state {
    padding: 46px 24px;
    border: 1px dashed #c9d2e2;
    border-radius: 8px;
    background: rgba(255, 255, 255, .55);
    color: var(--ap-muted);
    text-align: center;
}

.pager {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pager a,
.pager span {
    min-width: 42px;
    min-height: 40px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ap-line);
    border-radius: 6px;
    background: #fff;
    color: var(--ap-ink);
    font-size: 13px;
    font-weight: 600;
}

.pager a:hover {
    border-color: #aab8ea;
    color: var(--ap-blue);
}

.pager .current {
    border-color: var(--ap-navy);
    background: var(--ap-navy);
    color: #fff;
}

.area-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.area-item {
    min-height: 76px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    background: var(--ap-surface);
    color: var(--ap-ink);
}

.area-item:hover {
    border-color: #aebced;
    box-shadow: 0 5px 18px rgba(16, 32, 68, .05);
}

.area-item strong {
    display: block;
    font-size: 14px;
}

.area-item small {
    color: var(--ap-muted);
}

.area-arrow {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ap-blue-soft);
    color: var(--ap-blue);
    font-size: 18px;
}

.publication-list {
    display: grid;
    gap: 12px;
}

.publication-card {
    padding: 19px 20px;
    display: block;
    border: 1px solid var(--ap-line);
    border-left: 4px solid var(--ap-teal);
    border-radius: 8px;
    background: var(--ap-surface);
    color: var(--ap-ink);
    box-shadow: 0 4px 14px rgba(16, 32, 68, .035);
}

.publication-card:hover {
    border-color: #b8c5e8;
    border-left-color: var(--ap-blue);
    color: var(--ap-ink);
    box-shadow: var(--ap-shadow);
}

.publication-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.publication-type {
    padding: 4px 8px;
    border-radius: 5px;
    background: var(--ap-teal-soft);
    color: var(--ap-teal);
    font-size: 11px;
    font-weight: 700;
}

.publication-year {
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 700;
}

.publication-card h2 {
    margin: 10px 0 5px;
    color: var(--ap-navy);
    font-size: 19px;
    line-height: 1.3;
}

.publication-authors,
.publication-apa {
    margin: 5px 0 0;
    color: var(--ap-muted);
    font-size: 13px;
}

.publication-owner {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--ap-soft-line);
    color: var(--ap-blue);
    font-size: 12px;
    font-weight: 700;
}

.profile-shell {
    width: min(1240px, calc(100% - 40px));
    min-height: calc(100vh - 146px);
    margin: 0 auto;
    padding: 26px 0 58px;
}

.profile-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 250px;
    gap: 28px;
    padding: 28px;
    border: 1px solid var(--ap-line);
    border-top: 4px solid var(--ap-navy);
    border-radius: 8px;
    background: var(--ap-surface);
    box-shadow: var(--ap-shadow);
}

.profile-avatar {
    width: 168px;
    height: 208px;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    background: var(--ap-canvas);
    object-fit: cover;
}

.profile-name {
    margin: 0 0 6px;
    color: var(--ap-navy);
    font-size: 34px;
    line-height: 1.12;
}

.profile-title {
    color: var(--ap-blue);
    font-size: 15px;
    font-weight: 700;
}

.profile-program {
    margin: 9px 0 0;
    color: var(--ap-muted);
}

.profile-actions {
    margin-top: 21px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-action {
    min-height: 40px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c8d1e4;
    border-radius: 6px;
    background: #fff;
    color: var(--ap-ink);
    font-size: 12px;
    font-weight: 700;
}

.profile-action:hover {
    border-color: #9aabe0;
    color: var(--ap-blue);
}

.profile-action.primary {
    border-color: var(--ap-blue);
    background: var(--ap-blue);
    color: #fff;
}

.updated-at {
    margin: 16px 0 0;
    color: var(--ap-muted);
    font-size: 12px;
}

.profile-stats {
    display: grid;
    align-content: center;
    border-left: 1px solid var(--ap-line);
}

.profile-stat {
    padding: 13px 0 13px 28px;
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 11px;
}

.profile-stat + .profile-stat {
    border-top: 1px solid var(--ap-soft-line);
}

.profile-stat strong {
    color: var(--ap-navy);
    font-size: 26px;
    line-height: 1;
}

.profile-stat span {
    color: var(--ap-muted);
    font-size: 12px;
}

.profile-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 18px;
}

.profile-layout-wide {
    grid-template-columns: minmax(0, 1fr);
}

.profile-layout-wide .profile-side {
    display: none;
}

.profile-main,
.profile-side {
    display: grid;
    gap: 14px;
}

.profile-section {
    padding: 20px 22px;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    background: var(--ap-surface);
}

.profile-section h2 {
    margin: 0 0 14px;
    color: var(--ap-navy);
    font-size: 18px;
}

.profile-section p {
    margin: 0;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.research-tag {
    padding: 6px 9px;
    border: 1px solid #b8c6e9;
    border-radius: 6px;
    background: #f8faff;
    color: #334c9d;
    font-size: 12px;
}

.profile-publication {
    padding: 15px 0;
    border-top: 1px solid var(--ap-soft-line);
}

.profile-publication:first-child {
    padding-top: 0;
    border-top: 0;
}

.profile-publication h3 {
    margin: 0 0 4px;
    color: var(--ap-navy);
    font-size: 15px;
}

.profile-publication p {
    margin-top: 7px;
    color: var(--ap-muted);
    font-size: 12px;
}

.info-row {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--ap-soft-line);
    font-size: 13px;
}

.info-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.info-row span {
    color: var(--ap-muted);
}

.info-row strong {
    color: var(--ap-navy);
    text-align: right;
}

.dashboard-shell {
    display: grid;
    gap: 18px;
}

.dashboard-heading {
    padding-bottom: 4px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-heading h1 {
    margin: 0;
    color: var(--ap-navy);
    font-size: 31px;
    line-height: 1.15;
}

.dashboard-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--ap-muted);
}

.secondary-button {
    min-width: 166px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #b9c4ef;
    background: #fff;
    color: var(--ap-blue);
}

.secondary-button:hover {
    background: var(--ap-blue-soft);
    color: #2947c5;
}

.metric-band {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--ap-line);
    border-top: 3px solid var(--ap-navy);
    border-radius: 8px;
    background: var(--ap-surface);
    box-shadow: var(--ap-shadow);
}

.metric-item {
    min-height: 108px;
    padding: 20px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    border-left: 4px solid var(--ap-blue);
}

.metric-item + .metric-item {
    border-top: 0;
    border-left-width: 1px;
    border-left-color: var(--ap-soft-line);
}

.metric-item::before {
    width: 34px;
    height: 4px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--ap-blue);
    content: "";
}

.metric-publication::before {
    background: var(--ap-teal);
}

.metric-thesis::before {
    background: var(--ap-green);
}

.metric-department::before {
    background: var(--ap-amber);
}

.metric-field::before {
    background: #8b4bad;
}

.metric-item span {
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 600;
}

.metric-item strong {
    margin-bottom: 4px;
    color: var(--ap-navy);
    font-size: 29px;
    line-height: 1;
}

.dashboard-grid {
    display: grid;
    align-items: stretch;
    gap: 18px;
}

.dashboard-grid-primary {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
}

.dashboard-grid-secondary {
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
}

.dashboard-panel {
    min-width: 0;
    padding: 21px;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    background: var(--ap-surface);
    box-shadow: 0 5px 18px rgba(16, 32, 68, .045);
}

.panel-heading {
    min-height: 52px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--ap-soft-line);
}

.panel-heading h2 {
    margin: 2px 0 0;
    color: var(--ap-navy);
    font-size: 19px;
    line-height: 1.25;
}

.panel-kicker {
    display: block;
    color: var(--ap-teal);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-link {
    flex: 0 0 auto;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 700;
}

.filter-tabs,
.section-tabs {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--ap-line);
    border-radius: 7px;
    background: var(--ap-canvas);
}

.filter-tabs a,
.section-tabs a {
    min-height: 32px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--ap-muted);
    font-size: 11px;
    font-weight: 700;
}

.filter-tabs a:hover,
.filter-tabs a.active,
.section-tabs a:hover,
.section-tabs a.active {
    background: #fff;
    color: var(--ap-blue);
    box-shadow: 0 2px 7px rgba(16, 32, 68, .09);
}

.year-chart {
    display: grid;
    gap: 11px;
}

.year-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
}

.year-label {
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 700;
}

.year-row strong {
    color: var(--ap-navy);
    font-size: 12px;
    text-align: right;
}

progress {
    width: 100%;
    height: 11px;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: #e7ecf4;
    color: var(--ap-blue);
}

progress::-webkit-progress-bar {
    border-radius: 5px;
    background: #e7ecf4;
}

progress::-webkit-progress-value {
    border-radius: 5px;
    background: var(--ap-blue);
}

progress::-moz-progress-bar {
    border-radius: 5px;
    background: var(--ap-blue);
}

.program-list {
    display: grid;
    gap: 18px;
}

.program-row {
    display: grid;
    gap: 8px;
}

.program-row div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.program-row span {
    color: var(--ap-ink);
    font-size: 13px;
    font-weight: 600;
}

.program-row strong {
    color: var(--ap-navy);
}

.program-row:nth-child(2) progress {
    color: var(--ap-teal);
}

.program-row:nth-child(2) progress::-webkit-progress-value {
    background: var(--ap-teal);
}

.program-row:nth-child(2) progress::-moz-progress-bar {
    background: var(--ap-teal);
}

.program-row:nth-child(3) progress {
    color: var(--ap-amber);
}

.program-row:nth-child(3) progress::-webkit-progress-value {
    background: var(--ap-amber);
}

.program-row:nth-child(3) progress::-moz-progress-bar {
    background: var(--ap-amber);
}

.area-ranking,
.activity-list {
    display: grid;
}

.area-rank-row {
    min-width: 0;
    min-height: 49px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--ap-soft-line);
    color: var(--ap-ink);
}

.area-rank-row:first-child,
.activity-item:first-child {
    border-top: 0;
}

.area-rank-row:hover .rank-name {
    color: var(--ap-blue);
}

.rank-number {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ap-teal-soft);
    color: var(--ap-teal);
    font-size: 11px;
    font-weight: 800;
}

.rank-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.area-rank-row strong {
    color: var(--ap-muted);
    font-size: 11px;
}

.activity-item {
    min-width: 0;
    min-height: 62px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--ap-soft-line);
    color: var(--ap-ink);
}

.activity-item:hover .activity-copy strong {
    color: var(--ap-blue);
}

.activity-type {
    padding: 5px 7px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--ap-green-soft);
    color: var(--ap-green);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-copy {
    min-width: 0;
    display: grid;
}

.activity-copy strong {
    overflow: hidden;
    color: var(--ap-navy);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-copy small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--ap-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-year {
    color: var(--ap-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.compact-empty {
    padding: 28px 16px;
    border: 1px dashed #c9d2e2;
    border-radius: 7px;
    color: var(--ap-muted);
    font-size: 13px;
    text-align: center;
}

.department-panel {
    padding-bottom: 16px;
}

.department-heading {
    align-items: center;
}

.department-tools {
    width: min(520px, 100%);
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.stats-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 14px 13px;
    border-top: 1px solid var(--ap-soft-line);
    text-align: left;
    vertical-align: middle;
}

.stats-table thead th {
    padding-top: 10px;
    border-top: 0;
    color: var(--ap-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.stats-table tbody th {
    color: var(--ap-ink);
    font-size: 13px;
    font-weight: 650;
}

.stats-table tbody td {
    color: var(--ap-muted);
    font-size: 12px;
}

.stats-table tbody td strong {
    color: var(--ap-navy);
    font-size: 14px;
}

.stats-table tbody tr:hover {
    background: #fafbfe;
}

.thesis-section {
    border-left: 4px solid var(--ap-green);
}

.thesis-section h2 {
    margin-top: 3px;
}

.thesis-title {
    color: var(--ap-navy);
    font-size: 16px;
    font-weight: 700;
}

.thesis-title-en {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--ap-soft-line);
}

.thesis-title-en span {
    display: block;
    margin-bottom: 4px;
    color: var(--ap-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.thesis-title-en p {
    color: var(--ap-muted);
    font-size: 13px;
}

.public-footer {
    min-height: 72px;
    border-top: 1px solid var(--ap-line);
    background: #fff;
}

.footer-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--ap-muted);
    font-size: 12px;
}

@media (max-width: 980px) {
    .profile-grid,
    .area-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-hero {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .profile-avatar {
        width: 140px;
        height: 176px;
    }

    .profile-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid var(--ap-line);
        border-left: 0;
    }

    .profile-stat {
        padding: 18px;
    }

    .profile-stat + .profile-stat {
        border-top: 0;
        border-left: 1px solid var(--ap-soft-line);
    }

    .metric-band {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metric-item + .metric-item {
        border-left: 1px solid var(--ap-soft-line);
    }

    .metric-item:nth-child(4) {
        border-top: 1px solid var(--ap-soft-line);
        border-left: 4px solid var(--ap-amber);
    }

    .metric-item:nth-child(5) {
        border-top: 1px solid var(--ap-soft-line);
    }

    .dashboard-grid-primary,
    .dashboard-grid-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .page-shell,
    .page-shell.wide,
    .profile-shell,
    .footer-inner {
        width: min(100% - 24px, 1240px);
    }

    .header-inner {
        padding: 10px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .public-header {
        position: static;
    }

    .public-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        overflow: visible;
        padding-bottom: 0;
    }

    .public-nav a {
        width: 100%;
        justify-content: center;
        padding-right: 6px;
        padding-left: 6px;
        text-align: center;
        white-space: nowrap;
    }

    .public-nav .login-link {
        margin-left: 0;
    }

    .public-nav .login-link:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .page-shell,
    .profile-shell {
        padding-top: 24px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-item:nth-child(n) {
        border-top: 1px solid var(--ap-soft-line);
        border-left: 1px solid var(--ap-soft-line);
    }

    .metric-item:first-child {
        border-top: 0;
        border-left: 4px solid var(--ap-blue);
    }

    .metric-item:nth-child(2) {
        border-top: 0;
    }

    .metric-item:nth-child(3),
    .metric-item:nth-child(5) {
        border-left-width: 4px;
    }

    .metric-item:nth-child(5) {
        grid-column: 1 / -1;
    }

    .panel-heading,
    .department-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-tabs,
    .section-tabs {
        width: 100%;
    }

    .filter-tabs a,
    .section-tabs a {
        flex: 1 1 0;
    }

    .search-panel,
    .search-panel.single {
        grid-template-columns: 1fr;
    }

    .profile-grid,
    .area-list,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        grid-template-columns: 106px minmax(0, 1fr);
        gap: 17px;
        padding: 18px;
    }

    .profile-avatar {
        width: 106px;
        height: 134px;
    }

    .profile-name {
        font-size: 25px;
    }

    .profile-actions,
    .updated-at {
        grid-column: 1 / -1;
    }

    .profile-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-stat {
        padding: 13px 0;
    }

    .profile-stat + .profile-stat {
        border-top: 1px solid var(--ap-soft-line);
        border-left: 0;
    }

    .footer-inner {
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .brand-copy span {
        display: none;
    }

    .researcher-main {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .researcher-avatar {
        width: 70px;
        height: 88px;
    }

    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 118px;
        height: 148px;
    }

    .dashboard-heading h1 {
        font-size: 27px;
    }

    .metric-band {
        grid-template-columns: 1fr;
    }

    .metric-item:nth-child(n) {
        min-height: 90px;
        border-top: 1px solid var(--ap-soft-line);
        border-left: 4px solid var(--ap-blue);
    }

    .metric-item:first-child {
        border-top: 0;
    }

    .metric-item:nth-child(5) {
        grid-column: auto;
    }

    .activity-item {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .activity-year {
        grid-column: 2;
        text-align: left;
    }

    .department-tools {
        grid-template-columns: 1fr;
    }
}

.analysis-shell {
    padding-top: 32px;
}

.analysis-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.analysis-heading h1 {
    margin: 0 0 7px;
    color: var(--ap-navy);
    font-size: 30px;
}

.analysis-heading p {
    margin: 0;
    color: var(--ap-muted);
    line-height: 1.5;
}

.analysis-heading .analysis-updated {
    flex: 0 0 auto;
    max-width: 310px;
    text-align: right;
    font-size: 13px;
}

.analysis-filter-band {
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid var(--ap-line);
    border-top: 3px solid var(--ap-navy);
    background: var(--ap-white);
}

.analysis-filter-band h2 {
    margin: 0 0 14px;
    color: var(--ap-navy);
    font-size: 17px;
}

.analysis-filter-grid {
    display: grid;
    grid-template-columns: 118px 118px minmax(140px, .8fr) minmax(165px, 1.1fr) minmax(140px, .8fr) 184px 88px 136px;
    align-items: end;
    gap: 12px;
}

.analysis-filter-grid label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 600;
}

.analysis-minimum-label {
    white-space: nowrap;
}

.analysis-filter-grid input,
.analysis-filter-grid select {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--ap-line);
    border-radius: 4px;
    background: var(--ap-white);
    color: var(--ap-navy);
    font: inherit;
    font-size: 13px;
}

.analysis-filter-grid input:focus,
.analysis-filter-grid select:focus {
    border-color: var(--ap-blue);
    outline: 2px solid rgba(52, 88, 221, 0.16);
    outline-offset: 1px;
}

.analysis-filter-button,
.analysis-reset-button {
    min-width: 88px;
    height: 38px;
    justify-content: center;
    white-space: nowrap;
}

.analysis-metrics {
    margin-bottom: 16px;
}

.analysis-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.analysis-bibliometric-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
}

.analysis-theme-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
}

.analysis-shell .dashboard-panel {
    margin: 0;
}

.analysis-shell .panel-heading p {
    margin: 5px 0 0;
    color: var(--ap-muted);
    font-size: 12px;
    line-height: 1.5;
}

.analysis-shell .year-row {
    grid-template-columns: 54px minmax(110px, 1fr) 38px 62px;
}

.change-value {
    color: var(--ap-muted);
    text-align: right;
    font-size: 12px;
}

.publication-type-list {
    display: grid;
    gap: 16px;
}

.publication-type-row {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 7px 12px;
    align-items: center;
}

.publication-type-row div {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ap-navy);
    font-size: 13px;
}

.publication-type-row progress {
    width: 100%;
    height: 8px;
    border: 0;
}

.publication-type-row small {
    color: var(--ap-muted);
    text-align: right;
}

.analysis-network-panel {
    margin-bottom: 16px !important;
}

.analysis-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.35fr) auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 12px;
}

.analysis-toolbar label {
    display: grid;
    gap: 6px;
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 700;
}

.analysis-toolbar input,
.analysis-toolbar select,
.abd-density-toolbar select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--ap-line);
    border-radius: 4px;
    background: var(--ap-white);
    color: var(--ap-navy);
    font: inherit;
}

.analysis-toolbar button {
    min-width: 132px;
    height: 38px;
    justify-content: center;
}

.keyword-network {
    position: relative;
    width: 100%;
    height: 560px;
    border: 1px solid var(--ap-soft-line);
    background: #f8fbff;
}

.network-selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) auto;
    gap: 10px 18px;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid var(--ap-soft-line);
    border-top: 0;
    background: #f8fafc;
    color: var(--ap-muted);
    font-size: 12px;
    line-height: 1.5;
}

.network-selection strong {
    color: var(--ap-navy);
}

.network-selection a {
    color: var(--ap-blue);
    font-weight: 700;
    white-space: nowrap;
}

.analysis-empty {
    min-height: 90px;
    padding: 24px;
    border: 1px dashed #aab7ca;
    background: #f8fafc;
    color: var(--ap-muted);
    line-height: 1.55;
}

.accessible-data-table {
    margin-top: 14px;
    border-top: 1px solid var(--ap-soft-line);
}

.accessible-data-table summary {
    padding: 14px 0 0;
    color: var(--ap-blue);
    cursor: pointer;
    font-weight: 600;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.analysis-shell table {
    width: 100%;
    border-collapse: collapse;
}

.analysis-shell th,
.analysis-shell td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--ap-soft-line);
    color: var(--ap-text);
    text-align: left;
    font-size: 12px;
    vertical-align: middle;
}

.analysis-shell th {
    color: var(--ap-muted);
    font-weight: 700;
}

.analysis-shell td a {
    color: var(--ap-blue);
    font-weight: 600;
}

.thematic-map {
    width: 100%;
    min-height: 420px;
}

.thematic-map svg {
    display: block;
    width: 100%;
    height: auto;
}

.thematic-background {
    fill: #f8fbff;
    stroke: #cfd9e8;
}

.thematic-axis {
    stroke: #9bacbf;
    stroke-dasharray: 5 5;
}

.thematic-bubble {
    fill-opacity: 0.84;
    stroke: #ffffff;
    stroke-width: 2;
}

.thematic-quadrant {
    fill: #53657d;
    font-size: 11px;
    font-weight: 700;
}

.thematic-axis-label {
    fill: #53657d;
    font-size: 12px;
    font-weight: 600;
}

.thematic-axis-label-vertical {
    transform: rotate(-90deg);
    transform-origin: 18px 210px;
}

.thematic-scale-label,
.thematic-median-label {
    fill: #718096;
    font-size: 9px;
    font-weight: 600;
}

.thematic-median-label {
    fill: #52627a;
}

.thematic-reading-guide {
    display: grid;
    gap: 3px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #dce5f1;
    border-radius: 6px;
    background: #f8fbff;
    color: var(--ap-muted);
    font-size: 11px;
}

.thematic-reading-guide strong {
    color: var(--ap-navy);
    font-size: 12px;
}

.thematic-bubble-label {
    fill: #ffffff;
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
    text-anchor: middle;
}

.thematic-table {
    margin-top: 12px;
    max-width: 100%;
    overflow-x: auto;
}

.thematic-table table {
    width: 100%;
    min-width: 660px;
    table-layout: fixed;
}

.thematic-table th:first-child,
.thematic-table td:first-child {
    width: 40%;
}

.thematic-table th:not(:first-child),
.thematic-table td:not(:first-child) {
    width: 12%;
}

.thematic-table th,
.thematic-table td {
    overflow-wrap: anywhere;
}

.theme-name-cell {
    min-width: 0;
}

.theme-swatch {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
}

.compact-analysis-table {
    max-height: 520px;
    overflow-y: auto;
}

.analysis-heatmap-panel {
    margin-bottom: 16px !important;
}

.abd-density-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 260px);
    gap: 7px;
    margin-bottom: 18px;
}

.abd-density-toolbar label {
    color: var(--ap-muted);
    font-size: 12px;
    font-weight: 700;
}

.abd-density-view {
    display: none;
}

.abd-density-view.is-active {
    display: block;
}

.abd-density-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--ap-soft-line);
    border-radius: 5px;
    background: #f8fafc;
    color: var(--ap-muted);
    font-size: 12px;
}

.abd-density-summary strong {
    color: var(--ap-navy);
    font-size: 14px;
}

.abd-density-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    margin-top: 16px;
}

.abd-density-item {
    display: grid;
    gap: 7px;
}

.abd-density-item > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ap-text);
    font-size: 12px;
}

.abd-density-item strong {
    color: var(--ap-navy);
    white-space: nowrap;
}

.abd-density-bar {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.abd-density-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2b6cb0, #0f8a72);
}

.ranking-shell {
    max-width: 1080px;
}

.ranking-heading {
    margin-bottom: 18px;
}

.ranking-heading p {
    margin: 7px 0 0;
    color: var(--ap-muted);
    font-size: 13px;
    font-weight: 700;
}

.ranking-filters {
    display: grid;
    gap: 17px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid var(--ap-line);
    border-radius: 12px;
    background: var(--ap-surface);
    box-shadow: 0 5px 18px rgba(16, 32, 68, .04);
}

.ranking-filter-group {
    display: grid;
    gap: 9px;
}

.ranking-filter-label {
    color: var(--ap-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ranking-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ranking-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 11px 7px 13px;
    border: 1px solid #d8e0ec;
    border-radius: 999px;
    background: #fff;
    color: #516078;
    font-size: 12px;
    font-weight: 750;
    transition: border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.ranking-filter-button:hover {
    border-color: #9fb1c9;
    color: var(--ap-navy);
    box-shadow: 0 5px 14px rgba(24, 47, 84, .08);
    transform: translateY(-1px);
}

.ranking-filter-button.active {
    border-color: var(--ap-navy);
    background: var(--ap-navy);
    color: #fff;
    box-shadow: 0 7px 18px rgba(16, 43, 82, .16);
}

.ranking-filter-button small {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf2f8;
    color: #61718a;
    font-size: 10px;
    font-weight: 800;
}

.ranking-filter-button.active small {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-entry {
    --league-color: #59636c;
    --league-rgb: 89, 99, 108;
    display: grid;
    position: relative;
    grid-template-columns: 58px 54px minmax(0, 1fr) 104px 82px;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    overflow: hidden;
    padding: 15px 18px 15px 16px;
    border: 1px solid var(--ap-line);
    border-left: 4px solid var(--league-color);
    border-radius: 10px;
    background: linear-gradient(100deg, rgba(var(--league-rgb), .12) 0, rgba(var(--league-rgb), .055) 26%, #fff 58%);
    color: var(--ap-ink);
    box-shadow: 0 5px 18px rgba(16, 32, 68, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ranking-entry:hover {
    border-color: rgba(var(--league-rgb), .62);
    border-left-color: var(--league-color);
    color: var(--ap-ink);
    box-shadow: var(--ap-shadow);
    transform: translateY(-1px);
}

.ranking-position {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 48px;
    color: var(--league-color);
}

.ranking-position strong {
    font-size: 16px;
    line-height: 1;
}

.ranking-crown {
    color: #d6ae55;
    font-size: 23px;
    line-height: 1;
    text-shadow: 0 2px 9px rgba(214, 174, 85, .42);
}

.ranking-crown:empty {
    display: none;
}

.ranking-league {
    position: relative;
    justify-self: start;
    min-width: 84px;
    overflow: hidden;
    padding: 8px 12px;
    border: 1px solid rgba(var(--league-rgb), .42);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--league-rgb), .21), rgba(var(--league-rgb), .075));
    color: var(--league-text, #334155);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .035em;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 5px 14px rgba(var(--league-rgb), .11);
}

.league-champion {
    --league-color: #45d6e8;
    --league-rgb: 69, 214, 232;
    --league-text: #075464;
    border-color: rgba(214, 174, 85, .82);
    border-left-color: #45d6e8;
    background: linear-gradient(100deg, rgba(69, 214, 232, .16) 0, rgba(214, 174, 85, .11) 34%, #fff 66%);
    box-shadow: 0 0 0 1px rgba(214, 174, 85, .16), 0 9px 28px rgba(69, 214, 232, .14);
    animation: championAura 3.4s ease-in-out infinite;
}

.league-champion::after {
    position: absolute;
    top: -55%;
    bottom: -55%;
    left: -28%;
    width: 18%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
    content: "";
    pointer-events: none;
    transform: rotate(15deg);
    animation: championSweep 4.8s ease-in-out infinite;
}

.league-champion .ranking-league {
    border-color: #d6ae55;
    background: linear-gradient(120deg, rgba(69, 214, 232, .24), rgba(214, 174, 85, .13));
    color: var(--league-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 18px rgba(69, 214, 232, .16);
}

.league-master {
    --league-color: #9b63d9;
    --league-rgb: 155, 99, 217;
    --league-text: #66339f;
}

.league-diamond {
    --league-color: #63d9ed;
    --league-rgb: 99, 217, 237;
    --league-text: #086a7a;
}

.league-emerald {
    --league-color: #2dbe86;
    --league-rgb: 45, 190, 134;
    --league-text: #08744f;
}

.league-platinum {
    --league-color: #5f9f9b;
    --league-rgb: 95, 159, 155;
    --league-text: #3d6f6c;
}

.league-gold {
    --league-color: #d6a83b;
    --league-rgb: 214, 168, 59;
    --league-text: #795706;
}

.league-silver {
    --league-color: #aab8c5;
    --league-rgb: 170, 184, 197;
    --league-text: #596875;
}

.league-bronze {
    --league-color: #a96f45;
    --league-rgb: 169, 111, 69;
    --league-text: #734827;
}

.league-iron {
    --league-color: #59636c;
    --league-rgb: 89, 99, 108;
    --league-text: #414a52;
}

.ranking-entry.ranking-entry-normal {
    grid-template-columns: 58px 54px minmax(0, 1fr) 82px;
    border: 1px solid var(--ap-line);
    background: #fff;
}

.ranking-entry.ranking-entry-normal:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.ranking-entry.ranking-entry-normal .ranking-position {
    color: var(--ap-muted);
}

.ranking-entry.ranking-entry-normal .ranking-league {
    display: none;
}

.ranking-avatar {
    width: 54px;
    height: 54px;
    border: 1px solid var(--ap-line);
    border-radius: 50%;
    background: #f1f5f9;
    object-fit: cover;
}

.ranking-person {
    display: grid;
    min-width: 0;
}

.ranking-person > strong {
    overflow: hidden;
    color: var(--ap-navy);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-person > span,
.ranking-person small {
    overflow: hidden;
    color: var(--ap-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-person small {
    margin-top: 2px;
    font-size: 11px;
}

.ranking-count {
    display: grid;
    justify-items: end;
}

.ranking-count strong {
    color: var(--ap-navy);
    font-size: 25px;
    line-height: 1;
}

.ranking-count span {
    margin-top: 5px;
    color: var(--ap-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

@keyframes championAura {
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(214, 174, 85, .16), 0 9px 28px rgba(69, 214, 232, .13);
    }

    50% {
        box-shadow: 0 0 0 1px rgba(214, 174, 85, .3), 0 10px 34px rgba(69, 214, 232, .23);
    }
}

@keyframes championSweep {
    0%,
    58% {
        left: -28%;
        opacity: 0;
    }

    66% {
        opacity: .72;
    }

    82%,
    100% {
        left: 112%;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .league-champion,
    .league-champion::after {
        animation: none;
    }
}

@media (max-width: 1180px) {
    .analysis-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .analysis-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .analysis-heading .analysis-updated {
        max-width: none;
        text-align: left;
    }

    .analysis-filter-grid,
    .analysis-bibliometric-grid,
    .analysis-theme-grid,
    .analysis-toolbar,
    .network-selection {
        grid-template-columns: 1fr;
    }

    .analysis-filter-button,
    .analysis-reset-button {
        width: 100%;
    }

    .analysis-toolbar button {
        width: 100%;
    }

    .keyword-network {
        height: 460px;
    }
}

@media (max-width: 560px) {
    .analysis-shell {
        padding-top: 22px;
    }

    .analysis-heading h1 {
        font-size: 25px;
    }

    .analysis-filter-band {
        padding: 15px;
    }

    .analysis-shell .year-row {
        grid-template-columns: 44px minmax(90px, 1fr) 30px;
    }

    .analysis-shell .year-row .change-value {
        grid-column: 2 / -1;
    }

    .keyword-network {
        height: 390px;
    }

    .abd-density-list {
        grid-template-columns: 1fr;
    }

    .abd-density-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-entry {
        grid-template-columns: 40px 46px minmax(0, 1fr) 58px;
        gap: 10px;
        padding: 13px;
    }

    .ranking-entry.ranking-entry-normal {
        grid-template-columns: 40px 46px minmax(0, 1fr) 58px;
    }

    .ranking-filters {
        padding: 15px;
    }

    .ranking-filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: thin;
    }

    .ranking-filter-button {
        flex: 0 0 auto;
    }

    .ranking-avatar {
        width: 46px;
        height: 46px;
    }

    .ranking-league {
        grid-column: 3;
        min-width: 0;
        padding: 6px 9px;
        font-size: 10px;
    }

    .ranking-count {
        grid-column: 4;
        grid-row: 1 / span 2;
    }

    .ranking-count strong {
        font-size: 21px;
    }
}
