.pilot-card-page .pilot-card-masthead { grid-template-columns: 94px minmax(0,1fr) minmax(118px,auto); align-items: center; gap: 24px; padding: 26px; }
.pilot-card-page .pilot-card-photo { width: 94px; }
.pilot-card-page .pilot-card-photo .pilot-portrait { width: 94px; height: 94px; border-radius: 9px; font-size: 32px; }
.pilot-card-page .pilot-card-name { min-width: 0; }
.pilot-card-page .pilot-card-name h1 { font-size: 32px; font-weight: 700; line-height: 1.16; overflow-wrap: anywhere; }
.pilot-card-page .pilot-card-context { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #d4e0ee; font-size: 13px; margin-top: 9px; }
.pilot-card-page .pilot-card-context strong { color: #fff; }
.pilot-card-page .pilot-card-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pilot-card-page .pilot-card-profile-actions .button { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.pilot-card-page .pilot-card-profile-actions .button.secondary { background: transparent; color: #f5f8fc; border-color: #7a8a9d; }
.pilot-card-page .pilot-card-profile-actions .button.secondary:hover { background: #344558; border-color: #bac9d9; }
.pilot-card-page .pilot-card-profile-actions [data-profile-export] { margin: 0; }
.pilot-card-page .pilot-card-tf { display: grid; align-self: center; gap: 14px; min-width: 118px; margin: 0; padding-left: 24px; }
.pilot-card-page .pilot-card-tf dd { margin: 3px 0 0; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pilot-card-page .pilot-card-license { display: flex; align-items: baseline; gap: 12px; }
.pilot-card-page .pilot-card-license dd { margin: 0; font-size: 17px; font-weight: 650; }
.profile-record { margin: 0 0 24px; padding: 18px 0; border-bottom: 1px solid var(--border,#dbe1e8); }
.profile-record dl { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 0; }
.profile-record dt { font-size: 13px; color: #526276; }
.profile-record dd { font-size: 23px; font-weight: 650; margin: 5px 0 0; font-variant-numeric: tabular-nums; }
.profile-record p { color: #526276; font-size: 12px; margin: 12px 0 0; }
.profile-next,.profile-activity { margin-bottom: 24px; }
.profile-next ul,.profile-race-list { list-style: none; padding: 0; margin: 0; }
.profile-next li { display: flex; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid #e2e7ed; }
.profile-next li:last-child,.profile-race-list li:last-child { border-bottom: 0; }
.profile-next time { display: flex; flex-direction: column; min-width: 102px; font-weight: 650; }
.profile-next time span { font-size: 13px; color: #526276; font-weight: 400; }
.profile-next li>div { flex: 1; min-width: 0; }
.profile-next p { margin: 4px 0; }
.profile-next small { color: #526276; }
.profile-activity .pilot-section-heading>span { font-size: 13px; color: #526276; }
.profile-activity .pilot-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.profile-activity .pilot-section-heading h2 { margin: 0; }
.profile-calendar { min-width: 0; }
.profile-calendar>summary { cursor: pointer; padding: 10px 0; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink,#18212d); }
.profile-calendar>summary small { display: inline-block; margin-left: 12px; color: #526276; font-size: 12px; font-weight: 400; }
.profile-calendar-content { padding: 4px 0 0; }
.profile-calendar-content>.pilot-profile-help { margin: 0 0 12px; }
.profile-recent-block { min-width: 0; }
.profile-activity-layout:not(.has-calendar) .profile-calendar { border-bottom: 1px solid #e2e7ed; margin-bottom: 16px; padding-bottom: 5px; }
.profile-activity-scroll { overflow-x: auto; padding: 8px 2px; }
.profile-activity-grid { display: grid; grid-template-rows: repeat(7,20px); grid-auto-flow: column; grid-auto-columns: 20px; width: max-content; gap: 5px; }
.profile-day { min-width: 0; min-height: 0; width: 20px; height: 20px; padding: 0; border: 1px solid #d4dde7; background: #eef2f6; border-radius: 3px; }
.profile-day:disabled { opacity: 1; cursor: default; }
.profile-day.has-races { background: #23699c; border-color: #23699c; cursor: pointer; }
.profile-day.has-races:hover { background: #134f7a; }
.profile-day[aria-pressed=true] { outline: 2px solid #b72d2f; outline-offset: 2px; }
.profile-activity-legend { display: flex; align-items: center; gap: 7px; color: #526276; font-size: 12px; }
.profile-activity-legend>span { width: 11px; height: 11px; border: 1px solid #d4dde7; border-radius: 2px; background: #eef2f6; margin-left: 9px; }
.profile-activity-legend>span.has-races { background: #23699c; border-color: #23699c; }
.profile-recent-heading { margin-top: 24px; }
.profile-recent-heading h3 { font-size: 16px; margin: 0; }
.profile-race-list li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid #e2e7ed; }
.profile-race-list li:first-child { padding-top: 8px; }
.profile-race-list li>div:first-child { flex: 1; min-width: 0; }
.profile-race-date { color: #526276; font-size: 12px; }
.profile-race-list h3 { font-size: 16px; margin: 3px 0; overflow-wrap: anywhere; }
.profile-race-list p { margin: 0; color: #526276; font-size: 13px; }
.profile-race-finish { display: flex; flex-direction: column; text-align: right; font-size: 12px; }
.profile-race-finish strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.profile-race-finish small { color: #526276; }
.profile-setup { margin: 24px 0; padding: 20px 0; border-top: 1px solid #dbe1e8; }
.profile-setup h2 { font-size: 19px; margin: 0 0 8px; }
.profile-setup p { color: #526276; margin: 0 0 14px; }
.profile-history-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.profile-history-controls label { font-size: 13px; }
.profile-history-controls select { width: auto; max-width: 100%; min-height: 40px; }
.profile-history-chart { height: 280px; width: 100%; min-width: 0; }
.profile-chart-fallback svg { width: 100%; height: 100%; }
.profile-share-wrap { overflow-x: auto; }
.profile-share-card { width: 580px; max-width: 100%; box-sizing: border-box; background: #182330; color: #f5f7fa; padding: 28px; border-radius: 12px; }
.profile-share-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 18px; line-height: 1.3; font-style: italic; font-weight: 750; }
.profile-share-symbol { display: block; position: relative; flex: 0 0 48px; width: 48px; height: 26px; overflow: hidden; mix-blend-mode: lighten; }
.profile-share-symbol img { position: absolute; width: 60px; height: 60px; max-width: none; left: -7.2px; top: -12px; }
.profile-share-brand .factor { color: #ff5b61; }
.profile-share-brand .engine { color: #41c9ff; }
.profile-share-identity { display: flex; align-items: center; gap: 18px; }
.profile-share-identity>div:last-child { flex: 1; min-width: 0; }
.profile-share-portrait { width: 88px; height: 88px; flex-shrink: 0; display: grid; place-items: center; background: #344357; border-radius: 9px; overflow: hidden; font-size: 29px; font-weight: 650; }
.profile-share-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-share-card h2 { color: #f5f7fa; font-size: 27px; line-height: 1.25; margin: 0 0 5px; overflow-wrap: anywhere; }
.profile-share-card p { color: #c4d1df; margin: 3px 0; font-size: 13px; line-height: 1.5; }
.profile-share-card dl { display: flex; gap: 30px; padding-top: 24px; margin: 24px 0 0; border-top: 1px solid #485a70; flex-wrap: wrap; }
.profile-share-card dl>div { min-width: 116px; }
.profile-share-card dt { font-size: 12px; line-height: 1.5; color: #c4d1df; }
.profile-share-card dd { margin: 4px 0 0; font-size: 24px; line-height: 1.25; font-weight: 650; }
.profile-share-card .profile-share-footer { margin-top: 24px; font-size: 11px; }
[data-profile-export] { margin-bottom: 20px; }
.profile-drag-crop { margin: 20px 0; }
.profile-drag-crop summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.profile-crop-stage { height: 300px; max-width: 520px; background: #e6ebf1; overflow: hidden; }
.profile-crop-stage cropper-canvas { height: 100%; width: 100%; }
.profile-crop-stage>img { display: none; }
@media(min-width:1100px) {
 .profile-activity-layout.has-calendar { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 30px; align-items: start; }
 .profile-activity-layout.has-calendar .profile-recent-heading { margin-top: 10px; }
}
@media(max-width:850px) {
 .pilot-card-page .pilot-card-masthead { grid-template-columns: 76px minmax(0,1fr); gap: 20px; padding: 24px; }
 .pilot-card-page .pilot-card-photo, .pilot-card-page .pilot-card-photo .pilot-portrait { width: 76px; }
 .pilot-card-page .pilot-card-photo .pilot-portrait { height: 76px; font-size: 28px; }
 .pilot-card-page .pilot-card-name h1 { font-size: 28px; }
 .pilot-card-page .pilot-card-tf { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 24px; padding: 18px 0 0; border-left: 0; border-top: 1px solid #526278; }
 .pilot-card-page .pilot-card-rating { display: flex; align-items: baseline; gap: 12px; }
 .pilot-card-page .pilot-card-rating dd { margin: 0; }
}
@media(max-width:640px) {
 .pilot-card-page .pilot-card-masthead { grid-template-columns: 64px minmax(0,1fr); gap: 16px; padding: 22px 18px; }
 .pilot-card-page .pilot-card-photo, .pilot-card-page .pilot-card-photo .pilot-portrait { width: 64px; }
 .pilot-card-page .pilot-card-photo .pilot-portrait { height: 64px; font-size: 24px; }
 .pilot-card-page .pilot-card-name h1 { font-size: 26px; }
 .pilot-card-page .pilot-card-profile-actions .button { min-height: 44px; }
 .pilot-card-page .pilot-card-tf { gap: 18px 24px; }
 .profile-calendar>summary small { margin-left: 8px; }
 .profile-record dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
 .profile-record dt { font-size: 12px; }
 .profile-next li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
 .profile-next time { grid-column: 1/-1; flex-direction: row; align-items: baseline; gap: 8px; font-size: 13px; }
 .profile-next li>.button { margin-left: 0; }
 .profile-race-list li { flex-wrap: wrap; gap: 10px; }
 .profile-race-list li>.button { width: 100%; }
 .profile-race-finish { max-width: 110px; }
 .profile-share-card { padding: 20px; }
 .profile-share-identity { align-items: flex-start; gap: 12px; }
 .profile-share-portrait { width: 60px; height: 60px; }
 .profile-share-card h2 { font-size: 21px; }
 .profile-share-card dl { gap: 18px; }
 .profile-activity .pilot-section-heading { flex-wrap: wrap; }
 .profile-history-chart { height: 250px; }
}
