/* Familiar system typography, with room for ten readable rows per page. */
:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#172b29;background:#eef0f4;font-synthesis:none;--ink:#172b29;--muted:#636f6a;--line:#e5e9ed;--green:#25684f;--soft:#edf3ff;--blue:var(--brand-action,#0066D6);--status-success:var(--brand-status-success,#267044);--status-warning:var(--brand-status-warning,#D47B06);--status-error:var(--brand-status-error,#BD3C32)}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}a{color:var(--blue)}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}button:disabled{cursor:default;opacity:.4}h1,h2,h3,p{margin:0}
.app{width:min(100%,460px);min-height:100svh;margin:auto;background:#f8f9fb;display:flex;flex-direction:column;padding:12px 18px 20px;position:relative}
.masthead{display:flex;justify-content:space-between;align-items:center;min-height:44px;margin-bottom:16px}.preview{font-size:11px!important;letter-spacing:.02em;color:#697568;font-weight:600}.preview:before{content:'';display:inline-block;width:5px;height:5px;background:#ad883c;border-radius:50%;margin-right:5px}
.title-row{display:flex;justify-content:space-between;align-items:center;gap:10px}h1{font-size:30px;letter-spacing:-1px;line-height:1.15;font-weight:750}.year-button{background:#fff;border:1px solid #d8dde5;padding:10px;border-radius:10px;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px;min-height:44px}.year-button svg{width:12px;height:12px}.subtitle{font-size:15px;margin-top:9px;color:var(--muted);line-height:1.5}.subtitle strong{font-weight:500;color:#344b40}.context-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 14px;font-size:11px;font-weight:600;letter-spacing:.02em;color:#66736c}.tiny-legend{font-size:12px;font-weight:400;letter-spacing:0;color:#896d3a}
.filters{display:flex;background:#e8edf5;border-radius:11px;padding:3px;gap:2px}.filters button{border:0;background:transparent;border-radius:8px;flex:1;min-height:44px;font-size:14px;font-weight:600;white-space:nowrap;color:#586674}.filters button[aria-pressed=true]{background:#fff;color:#1e58b1;box-shadow:0 1px 4px #18324712}.count{font-size:11px;margin-left:4px;font-weight:400}
.rank-pages{display:flex;gap:7px;margin:18px 0 16px;scroll-margin-top:76px}.rank-pages button{border:1px solid #d9dfe7;background:#fff;color:#607081;flex:1;min-height:44px;border-radius:11px;font-size:15px;font-weight:600}.rank-pages button[aria-current]{background:var(--blue);color:#fff;border-color:var(--blue)}.list-caption{display:flex;justify-content:space-between;padding:0 12px 10px;font-size:12px;color:#64716c}.list{background:#fff;border:1px solid #dfe4eb;border-radius:16px;overflow:hidden}.player-row{border:0;border-bottom:1px solid var(--line);background:transparent;width:100%;display:grid;grid-template-columns:26px minmax(0,1fr) 34px 10px;gap:8px;align-items:center;padding:16px 12px;text-align:left;min-height:92px}.player-row:last-child{border-bottom:0}.player-row:hover{background:#f0f5ff}.start-rank{font-size:16px;color:#687b70;font-weight:600;font-variant-numeric:tabular-nums;align-self:start;padding-top:1px}.player-copy{min-width:0}.player-name{display:block;font-size:16px;line-height:1.3;font-weight:650;letter-spacing:-.2px;overflow-wrap:anywhere}.player-nation{font-size:12px;font-weight:400;color:#65736b}.mini-star{color:#95742e;font-size:12px;margin-left:5px}.status-title{display:flex;align-items:center;gap:5px;font-size:14px;line-height:1.4;font-weight:500;margin-top:5px;flex-wrap:wrap}.status-dot{width:6px;height:6px;border-radius:50%;flex:none;background:#778da2}.status-dot.playing{background:var(--status-success)}.status-dot.away{background:#ad803b}.status-dot.injury{background:#b5684f}.status-detail{display:block;font-size:13px;line-height:1.4;color:#66756c;margin-top:2px}.now-rank{text-align:center;font-size:18px;font-weight:600;align-self:start;padding-top:1px;font-variant-numeric:tabular-nums}.rank-change{display:block;font-size:12px;font-weight:400;color:#718176;margin-top:4px}.rank-change.up{color:var(--status-success)}.rank-change.down{color:#936541}.row-chevron svg{width:10px;color:#8a99a4}.page-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0 12px;font-size:13px;color:#596b60}.page-controls button{min-height:44px;border:1px solid #dbe1e9;background:#fff;border-radius:10px;padding:8px 14px;font-size:14px;color:var(--blue);font-weight:600}.overview-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;color:#66756b;padding:6px 0}.text-button{min-height:44px;border:0;background:none;padding:6px 0;font-size:13px;color:var(--blue)}.empty{text-align:center;padding:35px 18px;color:#66756b;line-height:1.7;font-size:15px}.empty strong{display:block;color:#344b40}
.detail-top{display:flex;align-items:center;justify-content:space-between;height:32px;flex:none;margin-bottom:17px}.back{display:flex;align-items:center;gap:6px;border:0;background:none;padding:4px 0;color:#526c5d;font-size:12px}.back svg{width:16px;height:16px}.detail-demo{font-size:9px;letter-spacing:.08em;color:#a28b65}.detail-header{position:relative;flex:none;padding-bottom:16px}.detail-eyebrow{font-size:10px;color:#7c8f80;letter-spacing:.1em;font-weight:600;margin-bottom:6px}.detail-first{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:18px;font-weight:600;color:#7b8b80;line-height:1.3}.detail-name{font-size:35px;letter-spacing:-1.6px;line-height:1.12;padding-right:45px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:800}.follow{position:absolute;right:0;top:24px;border:1px solid #e0e6df;background:#fff;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;color:#819588}.follow svg{width:18px;height:18px}.follow[aria-pressed=true]{color:#9a823e;background:#fff9e8;border-color:#ede2c3}.follow[aria-pressed=true] svg{fill:currentColor}.player-meta{display:flex;align-items:center;gap:7px;margin-top:9px;font-size:11px;color:#7f8d83}.meta-dot{width:3px;height:3px;border-radius:50%;background:#a2b0a5}.rank-strip{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e3e9e4;border-bottom:1px solid #e3e9e4;margin:0 0 17px;padding:11px 0;flex:none}.rank-strip>div+div{border-left:1px solid #e3e9e4;padding-left:19px}.stat-label{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#8b9a8d;font-weight:600}.rank-stat{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:24px;font-weight:750;letter-spacing:-.8px;margin-top:2px;line-height:1.2}.rank-stat small{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:10px;color:#408062;letter-spacing:0;margin-left:5px}.status-card{background:#eaf3ed;border:1px solid #dce9df;border-radius:16px;padding:16px;flex:none;position:relative;overflow:hidden}.status-card:after{content:'';position:absolute;width:130px;height:150px;border:1px solid #2b765318;transform:rotate(30deg);right:-62px;top:-28px;box-shadow:inset 0 0 0 22px #2b765306;pointer-events:none}.status-card.away,.status-card.injury{background:#f5efe6;border-color:#ebe1d4}.status-label{font-size:9px;letter-spacing:.09em;font-weight:700;color:#527d60;display:flex;align-items:center;gap:5px}.status-card.away .status-label,.status-card.injury .status-label{color:#9b784f}.event-name{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:21px;font-weight:750;letter-spacing:-.6px;margin-top:7px}.event-context{font-size:10px;color:#7b9381;margin-top:3px}.fixture{display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding-top:12px;border-top:1px solid #cdded2;gap:8px}.fixture-main{font-size:13px;font-weight:650}.fixture-label{font-size:10px;color:#799080;margin-top:4px}.fixture-time{font-size:11px;font-weight:650;text-align:right}.fixture-time span{display:block;font-size:9px;font-weight:400;color:#78917e;margin-top:3px}.detail-body{min-height:0;display:flex;flex:1;flex-direction:column;justify-content:space-evenly;gap:10px;padding:15px 0 12px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.section-head h2{font-size:12px;letter-spacing:-.1px;font-weight:700}.section-head>span{font-size:9px;color:#8e9b91}.form-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.form-circles{display:flex;flex-wrap:wrap;gap:6px}.record{font-size:11px;color:#89958b}.record strong{color:#3f5948;font-weight:650}.brief{padding:12px 14px;background:#fff;border:1px solid #e5eae5;border-radius:12px}.brief h2{font-size:12px;font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:7px}.brief p{font-size:11px;line-height:1.6;color:#728078}.brief small{display:block;margin-top:7px;font-size:9px;color:#a58b60}.season-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.season-value{font-size:17px;font-weight:700;letter-spacing:-.4px;margin-bottom:2px}.season-key{font-size:8px;color:#8f9a90;letter-spacing:.05em}.detail-links{display:flex;gap:6px;flex:none;margin-bottom:10px}.detail-links a{flex:1;min-width:0;text-decoration:none;text-align:center;border:1px solid #e0e7e0;border-radius:10px;font-size:10px;padding:11px 4px;color:#587360;background:white;font-weight:500}.detail-footer{font-size:9px;color:#9caaa0;display:flex;justify-content:space-between;align-items:center;flex:none}.detail-footer button{font-size:9px}.eyebrow{font-size:9px;color:#8e9b91;font-weight:700;letter-spacing:.1em}.icon-button{border:0;background:#edf2ef;border-radius:50%;width:32px;height:32px;font-size:22px;line-height:1;color:#6e8577}dialog{width:min(440px,calc(100% - 28px));max-height:88svh;border:1px solid #e3e9e4;border-radius:22px;padding:23px;color:var(--ink);background:#fcfdfb;overflow:auto;font-family:inherit}dialog::backdrop{background:#10271e75;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}dialog h2{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:27px;letter-spacing:-1px;line-height:1.15;margin-bottom:16px}dialog h3{font-size:13px;margin-top:22px}dialog p{font-size:12px;color:#748478;line-height:1.7;margin:10px 0}.demo-explanation{padding:12px;background:#f7f0e4;border-radius:10px;color:#967746!important}.source-list{padding:0;list-style:none}.source-list li{border-bottom:1px solid #e6ebe5;padding:14px 0;font-size:12px}.source-list span{display:block;font-size:11px;color:#7d8c80;line-height:1.6;margin-top:5px}.source-list a{font-weight:600}.fine{font-size:10px!important}

/* Details follow the same readable rhythm; scroll rather than compress text. */
.detail{height:auto;max-height:none;overflow:visible}.detail-top{min-height:44px}.back{min-height:44px;font-size:15px}.detail-eyebrow,.stat-label,.season-key{font-size:11px}.detail-first{font-size:19px}.player-meta,.event-context,.fixture-label,.fixture-time span,.section-head>span,.record,.brief small,.detail-footer,.detail-footer button{font-size:13px}.status-label{font-size:12px}.fixture-main,.fixture-time{font-size:15px}.section-head h2,.brief h2{font-size:16px}.brief p{font-size:15px;line-height:1.6}.detail-body{flex:none;gap:22px;padding:22px 0}.detail-links a{font-size:13px;min-height:44px}.rank-strip{margin-bottom:20px}.last-result{font-size:13px;color:#68776e;margin-top:10px}.detail-footer{flex-wrap:wrap;gap:8px}.icon-button{min-height:44px;min-width:44px}dialog p,.source-list li{font-size:15px}dialog .fine{font-size:13px!important}.detail-header{margin-top:8px}
@media(min-width:600px){body{padding:28px 0}.app{border-radius:24px;border:1px solid #dfe4eb;box-shadow:0 15px 70px #15302212}}
@media(max-width:370px){.app{padding-inline:13px}h1{font-size:27px}.filters button{font-size:13px}.context-row{align-items:flex-start;flex-direction:column;gap:5px}.player-row{grid-template-columns:24px minmax(0,1fr) 30px 8px;padding-inline:10px;gap:6px}.player-name{font-size:16px}.detail-links{flex-wrap:wrap}.detail-links a{flex-basis:40%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.status-dot.scheduled{background:#2d9158}.status-dot.cached{background:#b48137}.status-dot.other{background:#8996a4}.data-freshness,.coverage-note{font-size:13px;line-height:1.6;color:#65736d;margin:8px 0}.filters button{font-size:13px}.filters .count{font-size:10px;margin-left:3px}.detail-name{padding-top:8px;font-size:30px}.follow{top:36px}.player-meta{flex-wrap:wrap}.rank-change{overflow-wrap:anywhere}.top15-navigation-page .preview{font-size:10px!important}.data-freshness{margin-top:5px}@media(max-width:370px){.filters button{font-size:12px}.filters .count{font-size:9px}.top15-navigation-page .preview{font-size:9px!important}}

.surface-record{display:flex;justify-content:space-between;gap:12px;font-size:15px;padding:10px 0;border-bottom:1px solid var(--line)}.surface-record strong{font-weight:600}
/* Compact rankings: ten generous tap targets within a standard phone viewport. */
.overview .masthead{margin-bottom:8px}.overview-intro{margin-bottom:14px}.rank-order{display:flex;align-self:flex-end;gap:4px;margin:10px 0 0;padding:3px;border-radius:10px;background:#e8edf5}.rank-order button{min-height:34px;border:0;border-radius:7px;background:none;padding:5px 12px;font-size:13px;color:#607081}.rank-order button[aria-pressed=true]{background:#fff;color:#1e58b1;box-shadow:0 1px 3px #18324715}.overview .rank-pages{margin:10px 0}.ranking-caption,.ranking-row{display:grid;grid-template-columns:minmax(0,1fr) 34px 32px 38px 8px;align-items:center;gap:6px}.ranking-caption{padding:0 10px 7px;font-size:11px;color:#687881;text-align:center}.ranking-row{width:100%;min-height:48px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;padding:7px 10px}.ranking-row:last-child{border-bottom:0}.ranking-row:hover{background:#f0f5ff}.ranking-row .player-name{font-size:15px;line-height:1.2;letter-spacing:-.25px}.player-name .player-nation{font-size:11px;font-weight:450;white-space:nowrap;color:#7b8790;letter-spacing:0}.opening-value,.current-value,.movement{text-align:center;font-variant-numeric:tabular-nums}.opening-value{font-size:15px;color:#6c7a86}.current-value{font-size:17px;font-weight:650;color:var(--blue)}.movement{font-size:11px;color:#77848d}.movement.up{color:#267348}.movement.down{color:#936541}.overview .page-controls{margin:8px 0 0}.overview-footer{justify-content:center;padding:0;margin-top:2px}.overview-footer .text-button{color:#7b8791;font-size:12px;min-height:32px}.status-title{flex-wrap:nowrap;min-width:0}.tournament-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.status-detail{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.diagnostics{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;font-size:13px;line-height:1.5;margin:12px 0}.diagnostics dt{font-weight:650}.diagnostics dd{margin:0;color:#65736d;overflow-wrap:anywhere}
@media(max-width:599px) and (min-height:700px){.compact-rankings{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom));min-height:100svh}.compact-rankings .masthead{margin-bottom:2px}.compact-rankings .overview-intro{margin-bottom:10px}.compact-rankings .rank-pages button{min-height:36px}.compact-rankings .rank-order{margin-top:8px}.compact-rankings .ranking-row{min-height:48px}.compact-rankings .page-controls button{min-height:36px}.compact-rankings h1{font-size:27px}}

/* Familiar score-app hierarchy: identity, rankings, then one focused panel. */
.player-dashboard .detail-top{margin-bottom:10px;padding-right:45px;gap:12px}.player-dashboard .detail-header{padding-bottom:12px;margin-top:0}.player-dashboard .detail-name{font-size:28px;letter-spacing:-.8px;padding:0 46px 0 0;line-height:1.15}.player-dashboard .follow{top:0;width:44px;height:44px}.player-country{font-size:13px;color:#718078;margin-top:7px}.player-dashboard .rank-strip{margin:0 0 12px;padding:10px 0}.player-dashboard .stat-label{font-size:12px;letter-spacing:0;text-transform:none;color:#718078}.player-dashboard .rank-stat{font-size:27px}.profile-tabs{display:flex;gap:4px;background:#e8edf5;padding:3px;border-radius:11px}.profile-tabs button{flex:1;min-height:40px;border:0;background:transparent;border-radius:8px;font-size:14px;font-weight:600;color:#667584}.profile-tabs button[aria-pressed=true]{background:#fff;color:var(--blue);box-shadow:0 1px 3px #18324712}.profile-content{display:flex;flex-direction:column;gap:12px;padding:14px 0}.match-summary{border:1px solid #dfe5ec;border-radius:13px;background:white;padding:12px 14px}.match-summary .section-head{margin-bottom:6px}.match-summary h2,.form-summary h2,.surface-summary h2{font-size:14px;font-weight:600}.match-summary .section-head>span{font-size:12px}.match-event{font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-main{font-size:14px;line-height:1.4;margin-top:5px}.match-sub{font-size:13px;color:#718078;line-height:1.45;margin-top:4px}.form-summary{padding:0 4px}.bio-summary{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:#718078;line-height:1.5}.profile-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:0;font-size:12px}.profile-footer a{text-decoration:none;padding:10px 0;min-height:36px}.profile-footer .text-button{font-size:12px;color:#718078;min-height:36px}.surface-summary{padding:0 4px}.profile-content .empty{padding:20px 8px}.player-dashboard{min-height:100svh;padding-bottom:max(12px,env(safe-area-inset-bottom))}

@media(max-width:599px) and (min-height:700px){.compact-rankings .rank-pages{display:none}.compact-rankings .overview-intro{margin-bottom:0}.compact-rankings .rank-order{margin-top:0;margin-bottom:6px}.compact-rankings .ranking-caption{padding-top:4px}}

@media(max-width:599px) and (min-height:700px){.compact-rankings{padding-top:calc(2px + env(safe-area-inset-top));padding-bottom:max(4px,env(safe-area-inset-bottom))}}

/* Highlight whichever rank the All-tab sorting toggle selects. */
.compact-rankings .opening-value,.compact-rankings .current-value{color:#6c7a86;font-weight:400}
.compact-rankings.rank-order-opening .opening-value,.compact-rankings.rank-order-current .current-value{color:var(--blue);font-weight:650}

/* All tabs share rank sort and rank emphasis, including their detailed rows. */
.overview .start-rank,.overview .now-rank{color:#6c7a86;font-weight:500}
.overview.rank-order-opening .start-rank,.overview.rank-order-current .now-rank{color:var(--blue);font-weight:700}

/* A clearly actionable, restrained external CTA for official ATP player information. */
.profile-footer .atp-profile-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 15px;border:1px solid #c4d5f5;border-radius:12px;background:#eef4ff;color:var(--blue);font-size:13px;font-weight:650;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease}
.profile-footer .atp-profile-link:hover{background:#e1ebff;border-color:#a9c3f4}
.profile-footer .atp-profile-link:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.atp-external-icon{font-size:18px;font-weight:500;line-height:1}
@media(max-width:370px){.profile-footer{gap:8px}.profile-footer .atp-profile-link{padding:10px 11px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.profile-footer .atp-profile-link{transition:none}}

/* Top 30: one consistent right-aligned rank grid across All, Scheduled, Other and Following. */
.overview .ranking-caption,.overview .ranking-row,.overview .player-row{grid-template-columns:minmax(0,1fr) 34px 32px 38px 8px;column-gap:6px}
.overview .detailed-caption{padding-top:9px}
.overview .player-row{min-height:94px;padding:14px 10px;align-items:start;row-gap:0}
.overview .player-row .player-copy{align-self:start;min-width:0}
.overview .player-row .player-name{font-size:15px;line-height:1.25;letter-spacing:-.25px;overflow-wrap:normal;word-break:normal}
.overview .player-row .opening-value,.overview .player-row .current-value,.overview .player-row .movement{padding-top:2px;align-self:start}
.overview .player-row .row-chevron{align-self:start;padding-top:5px}
.overview .player-row .status-title{font-size:13px;line-height:1.35;margin-top:7px}
.overview .player-row .status-detail{font-size:12px;line-height:1.4;margin-top:3px}
.overview .opening-value,.overview .current-value{color:#6c7a86;font-weight:400}
.overview.rank-order-opening .opening-value,.overview.rank-order-current .current-value{color:var(--blue);font-weight:650}
@media(max-width:370px){.overview .ranking-caption,.overview .ranking-row,.overview .player-row{grid-template-columns:minmax(0,1fr) 30px 28px 32px 8px;column-gap:4px}.overview .player-row{padding-inline:8px}}


/* Compact Top 30 controls: tabs on row one, sorting and column keys on row two. */
.overview .ranking-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:44px;margin:5px 0 4px}
.overview .ranking-tools .rank-order{margin:0;flex:0 1 auto;min-width:0;white-space:nowrap}
.overview .ranking-tools .rank-order button{padding:5px 9px;min-height:38px}
.overview .ranking-tools .ranking-caption{display:grid;flex:0 0 auto;grid-template-columns:34px 32px 38px 8px;column-gap:6px;align-items:center;width:max-content;margin:0;padding:0 10px 0 0;font-size:10px;line-height:1.2;text-align:center;color:#687881}
@media(max-width:370px){
 .overview .ranking-tools{gap:3px}
 .overview .ranking-tools .rank-order{gap:2px;padding:2px}
 .overview .ranking-tools .rank-order button{padding:5px 5px;font-size:11px}
 .overview .ranking-tools .ranking-caption{grid-template-columns:30px 28px 32px 8px;column-gap:4px;padding-right:8px;font-size:9px}
}

/* Player match history and verified surface breakdown; mobile-first. */
.match-history{border:1px solid #dfe5ec;border-radius:13px;background:#fff;padding:12px 14px}
.match-history>.section-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:3px}
.match-history>.section-head h2{font-size:14px;font-weight:650}
.match-history>.section-head>span{font-size:12px;color:#718078}
.match-history [data-recent-matches]{margin-block:8px}
.surface-summary .section-head{margin-bottom:8px}
.surface-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;padding:10px 0;border-bottom:1px solid #e6ebf0;font-size:13px}
.surface-total>span:first-child{color:#718078}
.surface-total strong{font-weight:650}
.surface-total>span:last-child{margin-left:auto;color:var(--blue);font-weight:650}
.surface-summary .surface-record{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px}
.surface-summary .surface-record strong{margin-right:auto}
.surface-percent{color:var(--blue);font-size:12px;font-weight:600;white-space:nowrap}
@media(max-width:370px){.match-history{padding:11px 12px}.surface-percent{font-size:11px}}
/* Contextual ranking explanations on the player profile; no change to ranking data. */
.player-dashboard .rank-strip > div{min-width:0;position:relative}
.player-dashboard .stat-label{display:flex;align-items:center;gap:5px;position:relative}
.player-dashboard .rank-help-button{display:inline-grid;place-items:center;flex:none;width:19px;height:19px;padding:0;border:1px solid #a3aea7;border-radius:50%;background:transparent;color:#77877e;font:600 12px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-transform:none;letter-spacing:0;cursor:pointer}
.player-dashboard .rank-help-button:focus-visible{outline:2px solid #2766b7;outline-offset:3px}
.player-dashboard .rank-help-button[aria-expanded="true"]{color:var(--blue);border-color:var(--blue);background:#edf4ff}
.player-dashboard .rank-help-popover{position:absolute;top:calc(100% + 10px);left:0;width:230px;max-width:calc(100vw - 48px);z-index:20;padding:12px 14px;border:1px solid #dbe3ea;border-radius:12px;background:#fff;box-shadow:0 8px 24px #20334920;color:#24372e;font:400 13px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0;text-transform:none}
.player-dashboard .rank-help-popover[hidden]{display:none}
.player-dashboard .rank-strip > div:last-child .rank-help-popover{left:auto;right:0}
@media(hover:hover){.player-dashboard .rank-help-button:hover{color:var(--blue);border-color:var(--blue)}}

/* Shared Top 30 masthead: identical typography and vertical position in every filter tab. */
.overview.compact-rankings .masthead{margin-bottom:2px}
.overview.compact-rankings .overview-intro{margin:0 0 10px}
.overview.compact-rankings .title-row{align-items:center;min-height:36px}
.overview.compact-rankings .title-row h1{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:30px;font-weight:750;line-height:1.15;letter-spacing:-1px;text-wrap:nowrap}
@media(max-width:599px) and (min-height:700px){.overview.compact-rankings .overview-intro{margin-bottom:0}}

/* Desktop uses the homepage frame; keep the established phone layout intact. */
@media(min-width:601px){
 body.top15-navigation-page{padding:0}
 .top15-navigation-page .app{width:min(100%,690px);margin:0 auto;padding:calc(22px + env(safe-area-inset-top)) 22px 24px;border:0;border-radius:0;box-shadow:none}
 .top15-navigation-page .masthead{min-height:44px}
}

/* Verified seasonal metrics stay compact; unsupported values are never rendered. */
.season-summary{padding:0 4px}.season-summary h2{font-size:14px;font-weight:600}.season-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;margin:10px 0}.season-metrics>div{min-width:0}.season-metrics dt{font-size:11px;line-height:1.35;color:#718078;min-height:30px}.season-metrics dd{margin:3px 0 0;font-size:21px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.2;color:var(--blue)}.season-summary .match-sub{font-size:12px}

/* Phone typography shared by all ranking filters and player profile tabs. */
@media (max-width: 600px) {
 .overview.compact-rankings .title-row h1{font-size:28px}
 .overview .ranking-tools .ranking-caption{font-size:11px}
 .player-dashboard .profile-content h2{font-size:16px}
 .match-main{font-size:15px}
}
@media (371px <= width <= 600px) {
 .overview .filters button{font-size:14px}
 .overview .filters .count{font-size:11px}
}

/* M2.1 / M2.3: approved mobile targets; desktop dimensions stay unchanged. */
@media(max-width:599px){
 .player-dashboard .profile-tabs button{min-height:44px}
 .player-dashboard .profile-footer .text-button{min-height:44px}
}

/* Player headlines share the profile card spacing and colours. */
.news-region:empty{display:none}
.player-news{padding:12px 14px;border:1px solid #dfe5ec;border-radius:13px;background:#fff}
.player-news h2{font-size:14px;font-weight:650}
.news-list{margin:0;padding:0;list-style:none}
.news-list li{border-bottom:1px solid #e6ebf0}
.news-list li:last-child{border-bottom:0}
.news-list a{display:block;min-height:44px;padding:9px 0;color:var(--blue);line-height:1.4;overflow-wrap:anywhere;text-decoration:none}
.news-title{font-size:14px;font-weight:600;text-decoration:underline}
.news-meta{display:flex;flex-wrap:wrap;gap:3px 9px;color:#526371;font-size:12px;line-height:1.4}
.news-action{font-size:14px;font-weight:600}
.player-videos{padding:15px 14px 5px;border:1px solid #dfe5ec;border-radius:13px;background:#fff}
.player-videos h2{font-size:17px;font-weight:650}
.player-video-list{margin:10px 0 0;padding:0;list-style:none;counter-reset:player-video}
.player-video-list li{display:grid;grid-template-columns:17px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #e6ebf0;counter-increment:player-video}
.player-video-list li::before{content:counter(player-video);font-size:12px;text-align:center;color:#526371;font-variant-numeric:tabular-nums}
.player-video-title{font-size:14px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}
.player-video-meta{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:#526371}
.player-video-list .match-video-link{justify-self:end}
@media(max-width:370px){.player-videos{padding-inline:10px}.player-video-list li{gap:6px}}

/* Centre the shortcut on the same line as the hamburger, as on the tracker. */
@media(max-width:599px){
  .top15-navigation-page .overview.compact-rankings{
    padding-top:calc(12px + env(safe-area-inset-top));
  }
}
@media(width:600px){
  /* The desktop frame adds 28px above the page and a 1px border. */
  .top15-navigation-page .overview.compact-rankings{padding-top:11px}
}

/* Season results use the profile's existing result card and score layout. */
.season-results{
  --season-gold:#6b4500;
  --season-gold-fill:#fff0c8;
  --season-gold-edge:#b17912;
  --season-quiet:#4b5d67;
  --season-blue:#214f91;
  border-color:var(--line);
}
.season-results h2{scroll-margin-top:12px}
.season-slam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.season-overview{
  display:grid;gap:12px;padding:12px;border-radius:14px;background:#f4f6f8;
}
.form-summary .section-head{flex-wrap:wrap;gap:4px 8px;margin-bottom:7px}
.season-overview .form-streak{font-size:12px;font-weight:650}
.form-item{border-radius:999px;padding:4px 10px;background:#e9edf0;color:#4b5d67;font-size:12px;font-weight:650}
.form-item.win,.form-streak.win{color:#216043}
.form-item.win{background:#e0f1e5}
.form-item.loss,.form-streak.loss{color:#9c302b}
.form-item.loss{background:#fce7e5}
.season-tile{
  display:grid;align-content:start;gap:2px;min-width:0;padding:7px 8px;
  border-inline-start:3px solid #b8c3cb;border-radius:8px;background:#eff2f4;
}
.season-tile>span:first-child{color:var(--season-quiet);font-size:12px}
.season-tile>span:last-child{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:650}
.season-champion{color:var(--season-gold)}
.season-tile-champion{border-color:var(--season-gold-edge);background:var(--season-gold-fill)}
.season-tile-played{border-color:#5485c6;background:#e9f2ff;color:var(--season-blue)}
.season-tile-absent,.season-tile-unavailable{color:var(--season-quiet)}
.season-tile-unavailable{background:#f6f8fa;border-inline-start-style:dashed}
.season-tile svg,.season-title-badge svg,.season-row svg{width:14px;height:14px;flex:none}
.season-results-foot{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 10px;
  margin-top:8px;border-top:1px solid var(--line);
}
.season-results-foot .text-button{min-height:44px;margin-left:auto}
.season-masters-summary{display:flex;align-items:center;flex-wrap:wrap;gap:5px;color:var(--season-quiet);font-size:12px;padding-top:4px}
.season-title-badge{
  display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border-radius:999px;
  background:var(--season-gold-fill);color:var(--season-gold);font-weight:650;
}
@media(max-width:380px){.season-overview{padding:8px}.season-tile{padding-inline:6px}}
.season-results-full{container:season-results / inline-size;padding:16px}
.season-results-full>.section-head{justify-content:flex-start;align-items:center}
.player-dashboard .profile-content .season-results-full h2{font-size:20px;font-weight:700}
.season-results-full .season-year{padding:2px 6px;border-radius:5px;background:#edf2f5;color:var(--season-quiet);font-weight:650}
.season-archive-note{margin:5px 0 0;color:var(--season-quiet);font-size:12px}
.season-results-summary{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;
  margin-top:11px;color:var(--season-quiet);font-size:13px;font-weight:650;
}
.season-result-groups{display:grid;gap:12px;margin-top:14px;align-items:start}
@container season-results (min-width:550px){
  .season-result-groups{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px}
}
.season-result-group{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:9px}
.season-result-group-heading{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;
  padding:9px 10px;background:#edf2f5;
}
.season-result-group-heading h3{margin:0;font-size:14px;font-weight:700}
.season-result-group-heading span{color:var(--season-quiet);font-size:12px}
.season-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto 9px;align-items:center;gap:6px;
  min-height:44px;padding:4px 8px;border-top:1px solid var(--line);
  border-inline-start:3px solid transparent;font-size:13px;
}
.season-row strong{font-weight:600}
.season-row>span{
  display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:6px;
  background:#edf4ff;color:var(--season-blue);font-size:12px;font-weight:650;
}
.season-row-deep>span{background:#dbeaff}
.season-row-champion{background:#fff7e3;border-inline-start-color:var(--season-gold-edge)}
.season-row-champion>span{background:var(--season-gold-fill);color:var(--season-gold)}
.season-row-absent strong,.season-row-unavailable strong{color:var(--season-quiet);font-weight:500}
.season-row-absent>span,.season-row-unavailable>span{background:#eff2f4;color:var(--season-quiet);font-weight:500}
.season-row-unavailable{border-inline-start:3px dashed #b8c3cb}
.season-tournament summary{list-style:none;cursor:pointer}
.season-tournament summary:focus-visible{outline-offset:-3px}
.season-tournament summary::-webkit-details-marker{display:none}
.season-tournament summary::after{content:'›';color:#526371}
.season-tournament[open] summary::after{transform:rotate(90deg)}
.season-tournament .match-card{margin:0 8px 8px}

/* Keep the Season Results Watch action in the match header, as in Tournament Tracker. */
.season-tournament .season-match-card .match-card-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:0 8px}
.season-tournament .season-match-card .match-card-context{grid-column:1;grid-row:1}
.season-tournament .season-match-card .match-card-actions{display:contents}
.season-tournament .season-match-card .match-card-status{grid-column:1;grid-row:2;justify-self:start}
.season-tournament .season-match-card .match-video-watch{grid-column:2;grid-row:1 / span 2;justify-self:end}
