.rank-col {
    width: 62px;
    text-align: left;
    color: var(--muted);
}

.flight-row-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: inherit;
    text-decoration: none;
    vertical-align: middle;
}

.flight-row-avatar:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 3px;
    border-radius: 50%;
}

.flight-row-avatar-image {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--avatar-border);
    border-radius: 50%;
    background: var(--avatar-placeholder-bg);
    color: var(--avatar-placeholder-text);
    font-size: var(--font-sm);
    font-weight: 800;
}

.flight-row-avatar-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.flight-row-rank {
    opacity: 0.7;
    position: absolute;
    right: -7px;
    bottom: -3px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid var(--rank-border);
    border-radius: 999px;
    background: var(--rank-bg);
    color: var(--rank-text);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(25, 55, 82, 0.14);
}

.score-col {
    width: 124px;
    min-width: 118px;
    text-align: right;
    white-space: nowrap;
}

.score-col .sort-link {
    justify-content: flex-end;
    width: 100%;
}

.score-value {
    color: var(--muted);
    font-size: var(--font-sm);
}

.score-stack {
    display: grid;
    grid-template-columns: max-content 28px;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: end;
    column-gap: 10px;
    width: 100%;
}
.score-stack strong {
    font-weight:600;
}
.score-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    width: 23px;
    height: 23px;
    margin-top: 0;
    padding: 0;
    border: 1px solid #f0d0a0;
    border-radius:4px;
    background: var(--control-bg);
    opacity: 0.92;
    filter: saturate(0.9);
    object-fit: contain;
    transition: filter 140ms ease, opacity 140ms ease;
}

.flight-table tbody tr:hover .score-icon,
.flight-table tbody tr.is-selected .score-icon {
    opacity: 1;
    filter: saturate(1);
}

.score-distance,
.score-value {
    grid-column: 1;
    text-align: right;
}

.meta-col {
    width: 48px;
    text-align: right;
    color: var(--muted);
    white-space: nowrap;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.private-flight-badge {
    position: absolute;
    bottom: -1px;
    left: -4px;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--status-badge-bg);
    color: var(--status-badge-text);
    pointer-events: none;
}

.private-flight-badge::before {
    content: "";
    width: 15px;
    height: 15px;
    background: currentColor;
    mask-image: url("/icons/ui/lock.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("/icons/ui/lock.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.external-flight-badge {
    position: absolute;
    bottom: -4px;
    left: -4px;
    min-width: 25px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid #9b5b22;
    border-radius: 3px;
    background: #fff3e7;
    color: #7d4517;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0;
    pointer-events: none;
}

/* Flight lists use one composed, predictable status surface. */
.flight-status-cluster {
    box-sizing: border-box;
    width: 36px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    vertical-align: middle;
}

.flight-status-hint {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 34px;
    height: 32px;
    display: block;
    border-radius: 7px;
    cursor: help;
}

.flight-status-hint:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 1px;
}

.flight-status-comment {
    position: absolute;
    top: 9px;
    left: 4px;
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
}

.flight-status-comment::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    color: var(--muted);
    background: var(--muted);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.flight-status-comment.comment-flight-badge--comments::before {
    mask-image: url("/icons/ui/message-circle-more.svg");
    -webkit-mask-image: url("/icons/ui/message-circle-more.svg");
}

.flight-status-comment.comment-flight-badge--pilot-note::before {
    mask-image: url("/icons/ui/message-circle-pen.svg");
    -webkit-mask-image: url("/icons/ui/message-circle-pen.svg");
}

.flight-status-comment.comment-flight-badge--pilot-note-and-comments::before {
    mask-image: url("/icons/ui/message-circle-more-pen.svg");
    -webkit-mask-image: url("/icons/ui/message-circle-more-pen.svg");
}

.flight-status-achievements {
    position: absolute;
    top: 10px;
    right: 0;
    z-index: 2;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

.flight-status-achievement {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: color-mix(in srgb, var(--winner-color) 9%, var(--panel));
    color: color-mix(in srgb, var(--winner-color) 91%, #9b3f0c);
    box-shadow:
        0 0 0 1.5px var(--panel),
        inset 0 0 0 1px color-mix(in srgb, var(--winner-color) 22%, transparent);
}

.flight-status-achievement + .flight-status-achievement {
    margin-left: -3px;
}

.flight-status-achievement:nth-child(1) {
    z-index: 3;
}

.flight-status-achievement:nth-child(2) {
    z-index: 2;
}

.flight-status-achievement:nth-child(3) {
    z-index: 1;
}

.flight-status-achievement::before {
    content: "";
    width: 9px;
    height: 9px;
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.flight-status-achievement--score::before {
    mask-image: url("/icons/ui/trophy.svg");
    -webkit-mask-image: url("/icons/ui/trophy.svg");
}

.flight-status-achievement--likes::before {
    mask-image: url("/icons/ui/thumbs-up.svg");
    -webkit-mask-image: url("/icons/ui/thumbs-up.svg");
}

.flight-status-achievement--comments::before {
    mask-image: url("/icons/ui/message-circle.svg");
    -webkit-mask-image: url("/icons/ui/message-circle.svg");
}

.flight-status-hint .flight-status-utility-badge.private-flight-badge {
    top: -1px;
    right: auto;
    bottom: auto;
    left: -1px;
    width: 12px;
    height: 12px;
    outline: 2px solid var(--panel);
}

.flight-status-hint .flight-status-utility-badge.private-flight-badge::before {
    width: 10px;
    height: 10px;
}

.flight-status-hint .flight-status-utility-badge.external-flight-badge {
    right: auto;
    bottom: -1px;
    left: -1px;
    min-width: 21px;
    height: 10px;
    padding: 0 3px;
    outline: 2px solid var(--panel);
    font-size: 6px;
}

.flight-status-hint[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: calc(100% + 9px);
    z-index: 20;
    box-sizing: border-box;
    width: max-content;
    max-width: min(280px, calc(100vw - 64px));
    padding: 7px 9px;
    border: 1px solid var(--tooltip-border);
    border-radius: 8px;
    background: var(--tooltip-surface);
    color: var(--tooltip-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: var(--tooltip-shadow);
    opacity: 0;
    transform: translateY(-50%) translateX(3px);
    transition: opacity 120ms ease, transform 120ms ease;
    pointer-events: none;
}

.flight-status-hint[data-tooltip]::before {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(100% + 5px);
    z-index: 21;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--tooltip-border);
    border-right: 1px solid var(--tooltip-border);
    background: var(--tooltip-surface);
    opacity: 0;
    transform: translateY(-50%) translateX(3px) rotate(45deg);
    transition: opacity 120ms ease, transform 120ms ease;
    pointer-events: none;
}

.flight-status-hint[data-tooltip]:is(:hover, :focus-visible) {
    z-index: 12;
}

.flight-status-hint[data-tooltip]:is(:hover, :focus-visible)::after {
    opacity: 1;
    transform: translateY(-50%);
}

.flight-status-hint[data-tooltip]:is(:hover, :focus-visible)::before {
    opacity: 1;
    transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 680px) {
    .flight-status-hint[data-tooltip]::after {
        top: auto;
        right: 0;
        bottom: calc(100% + 9px);
        max-width: min(240px, calc(100vw - 32px));
        text-align: center;
        transform: translateY(3px);
    }

    .flight-status-hint[data-tooltip]::before {
        top: auto;
        right: 14px;
        bottom: calc(100% + 5px);
        transform: translateY(3px) rotate(135deg);
    }

    .flight-status-hint[data-tooltip]:is(:hover, :focus-visible)::after {
        transform: translateY(0);
    }

    .flight-status-hint[data-tooltip]:is(:hover, :focus-visible)::before {
        transform: translateY(0) rotate(135deg);
    }
}

.pilot-cell {
    min-width: 0;
    vertical-align: middle;
}

.pilot-cell-inner {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pilot-mobile-site {
    display: none;
}

.pilot-name-wrap {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.pilot-link {
    min-width: 0;
}

.pilot-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    font-weight: 600;
    color: var(--text);
}

.pilot-meta-wrap {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    white-space: nowrap;
    vertical-align: bottom;
}

.pilot-achievement-details-empty,
.pilot-achievement-details-limited {
    margin-top: 8px;
    color: var(--muted);
    font-size: var(--font-sm);
}

.pilot-achievement-details-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.pilot-achievement-details-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    padding: 8px 10px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--panel-border) 24%, transparent);
    color: inherit;
    text-decoration: none;
}

.pilot-achievement-details-row[href]:hover,
.pilot-achievement-details-row[href]:focus-visible {
    background: color-mix(in srgb, var(--link) 9%, var(--panel));
}

.pilot-achievement-details-row__main {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.pilot-achievement-details-row__primary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: var(--font-md);
    font-weight: 700;
}

.pilot-achievement-details-row__inline-link {
    color: var(--link);
    text-decoration: none;
}

.pilot-achievement-details-row__inline-link:hover,
.pilot-achievement-details-row__inline-link:focus-visible {
    text-decoration: underline;
}

.pilot-achievement-details-row__secondary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: var(--font-sm);
}

.pilot-achievement-details-row__metric {
    display: grid;
    gap:8px;
    justify-items: end;
    color: var(--muted);
    font-size: var(--font-md);
    text-transform: uppercase;
}

.pilot-achievement-details-row__metric strong {
    color: var(--text);
    text-transform: none;
}

.country {
    min-height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 0 3px;
    border-radius: 4px;
    border: 1px solid var(--badge-border);
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: var(--font-sm);
    font-weight: 600;
    opacity:0.6;
}

.empty-state {
    padding: 34px 12px;
    border: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
}

.admin-panel {
    overflow: hidden;
}

.admin-body {
    padding: 16px 18px 18px;
}

.admin-status {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(49, 151, 100, 0.34);
    border-radius: var(--radius-sm);
    background: #f1fbf5;
    color: #1f6d45;
}

.admin-status span {
    color: #365f4a;
    font-size: var(--font-md);
}

.admin-action-list {
    display: grid;
    gap: 10px;
}

.admin-action-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    background: var(--content-subtle-bg);
}

.admin-action-row h2 {
    margin: 0;
    color: var(--text);
    font-size: var(--font-md);
    line-height: 1.2;
}

.admin-action-row p {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-action-submit {
    min-width: 140px;
    justify-content: center;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.admin-metric-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
}

.admin-metric-group h2 {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: var(--font-md);
    font-weight: 700;
}

.admin-metric-table {
    display: grid;
}

.admin-metric-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.admin-metric-row:last-child {
    border-bottom: 0;
}

.admin-metric-row span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: var(--font-sm);
}

.admin-metric-row strong {
    font-size: var(--font-sm);
}

.admin-metric-row small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: var(--font-sm);
}

.flight-detail-host:empty {
    display: none;
}

.flight-detail-sidebar,
.flight-detail-dialog {
    display: none;
}

.flight-detail-sidebar,
.flight-detail-dialog-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
}

.flight-detail-sidebar {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-panel);
    transition: top 120ms ease-out, bottom 120ms ease-out;
}

.flight-detail-host.is-open.flight-detail-mode-split .flight-detail-sidebar {
    border-inline-start: 3px solid var(--context-accent);
}

.flight-detail-header {
    min-height: var(--flight-detail-header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title actions"
        "meta meta";
    gap: 2px 10px;
    align-items: center;
    padding: 5px 14px;
    border-bottom: 1px solid var(--border-strong);
    background: var(--detail-header-bg);
}

.flight-detail-title {
    grid-area: title;
    min-width: 0;
}

.flight-detail-title h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 720;
    line-height: 1.18;
}

.flight-detail-heading {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
}

.flight-detail-pilot-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-detail-date {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: var(--font-sm);
    font-weight: 400;
}

.flight-detail-subtitle {
    grid-area: meta;
    margin: 0;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-sm);
    line-height: 1.2;
    white-space: nowrap;
}

.flight-detail-meta-item {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.flight-detail-meta-item + .flight-detail-meta-item::before {
    content: "";
    width: 3px;
    height: 3px;
    flex: 0 0 3px;
    margin-inline-end: 1px;
    border-radius: 50%;
    background: var(--border-strong);
}

.flight-detail-site,
.flight-detail-glider {
    flex: 0 1 auto;
}

.flight-detail-meta-text {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-detail-distance,
.flight-detail-date--compact {
    flex: 0 0 auto;
}

.flight-detail-date--compact {
    display: none;
}

.flight-detail-score-type-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    object-fit: contain;
    border: 1px solid #ffaa11;
    border-radius: var(--radius-sm);
}

.flight-detail-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flight-detail-action-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.flight-detail-navigation {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.flight-detail-navigation[hidden] {
    display: none;
}

.flight-detail-mode-toggle {
    flex: 0 0 auto;
}

.flight-detail-mode-toggle::before {
    content: "";
    width: 18px;
    height: 14px;
    border: 2px solid currentColor;
    border-left-width: 7px;
    border-radius: 3px;
}

.flight-detail-navigation-button::before,
.flight-detail-edit::before,
.flight-detail-close::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    mask-image: url("/icons/ui/x.svg");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 18px 18px;
    -webkit-mask-image: url("/icons/ui/x.svg");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
}

.flight-detail-navigation-button--previous::before {
    mask-image: url("/icons/ui/chevron-left.svg");
    -webkit-mask-image: url("/icons/ui/chevron-left.svg");
}

.flight-detail-navigation-button--next::before {
    mask-image: url("/icons/ui/chevron-right.svg");
    -webkit-mask-image: url("/icons/ui/chevron-right.svg");
}

.flight-detail-edit::before {
    mask-image: url("/icons/ui/pencil.svg");
    -webkit-mask-image: url("/icons/ui/pencil.svg");
}

.flight-detail-close::before {
    mask-image: url("/icons/ui/x.svg");
    -webkit-mask-image: url("/icons/ui/x.svg");
}

@media (max-width: 470px) {
    .flight-detail-header {
        gap: 2px 8px;
        padding-inline: 10px;
    }

    .flight-detail-heading > .flight-detail-date {
        display: none;
    }

    .flight-detail-subtitle {
        display: grid;
        grid-template-columns: minmax(0, max-content) auto minmax(0, max-content) minmax(0, 1fr) auto;
        grid-template-areas: "site date glider . distance";
        gap: 6px;
    }

    .flight-detail-site {
        grid-area: site;
    }

    .flight-detail-distance {
        grid-area: distance;
        justify-self: end;
    }

    .flight-detail-distance::before {
        display: none;
    }

    .flight-detail-glider {
        grid-area: glider;
        max-width: min(120px, 27vw);
    }

    .flight-detail-date--compact {
        grid-area: date;
        display: inline-flex;
    }
}

@media (max-width: 620px) {
    .flight-detail-actions > .icon-action,
    .flight-detail-actions .flight-detail-navigation-button,
    .flight-detail-actions .flight-detail-action-toolbar > .icon-action {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

.flight-detail-body {
    height: calc(100% - var(--flight-detail-header-height));
    overflow: auto;
    display: grid;
    grid-template-rows: 230px 88px 1fr;
}

.flight-detail-placeholder--map {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(41, 142, 98, 0.18), transparent 38%),
        linear-gradient(45deg, #e5eee4, #c6ddec);
}

.flight-detail-placeholder--map::before,
.flight-detail-placeholder--map::after {
    content: "";
    position: absolute;
    inset: auto 20px 45px 24px;
    height: 4px;
    border-radius: 999px;
    background: rgba(214, 181, 35, 0.72);
    transform: rotate(-18deg);
}

.flight-detail-placeholder--map::after {
    inset: 84px 70px auto 90px;
    background: rgba(186, 67, 161, 0.72);
    transform: rotate(24deg);
}

.flight-detail-placeholder--chart {
    border-bottom: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, transparent 70%, rgba(246, 189, 69, 0.24) 0),
        repeating-linear-gradient(90deg, transparent 0 38px, rgba(30, 70, 100, 0.08) 39px 40px),
        #fff;
}

.flight-detail-placeholder-content {
    padding: 14px 16px 18px;
}

.flight-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.flight-detail-metrics div {
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--detail-header-bg);
}

.flight-detail-metrics span {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-detail-metrics strong {
    display: block;
    margin-top: 4px;
}

.flight-detail-empty-copy {
    min-height: 96px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    color: var(--muted);
    background: var(--content-subtle-bg);
}

.flight-detail-dialog {
    position: fixed;
    inset: 0;
    z-index: var(--z-flight-detail);
    pointer-events: auto;
}

.flight-detail-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 20, 28, 0.54);
}

.flight-detail-dialog-panel {
    position: absolute;
    inset: var(--viewport-page-shell-margin-block) var(--page-shell-gutter);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.flight-detail-dialog-panel .flight-detail-body {
    max-height: calc(100vh - var(--flight-detail-header-height) - (2 * var(--viewport-page-shell-margin-block)));
}

.app-modal.flight-detail-modal {
    --app-modal-edge-gap: 8px;
    --app-modal-vertical-gap: 16px;
    --app-modal-width: 1400px;
}

.app-modal.flight-detail-modal .flight-detail-modal__panel {
    height: calc(100dvh - var(--app-modal-vertical-gap));
    max-height: none;
}

.flight-detail-modal__panel .flight-detail-body {
    min-height: 0;
    flex: 1 1 auto;
    height: auto;
}

@media (max-width: 620px) {
    .app-modal.flight-detail-modal {
        --app-modal-edge-gap: 0px;
        --app-modal-vertical-gap: 0px;
    }

    .app-modal.flight-detail-modal .flight-detail-modal__panel {
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }
}

@media (max-width: 900px) {
    :root {
        --page-shell-margin-block-start: calc(var(--space) / 2);
        --page-shell-margin-block-end: calc(var(--space) / 2);
        --viewport-page-shell-margin-block: calc(var(--space) / 2);
        --page-shell-gutter: calc(var(--space) / 2);
        --page-shell-padding-block: calc(var(--space) / 2);
    }

    .flight-table {
        min-width: 0;
        table-layout: fixed;
    }

    .flight-table .model-col,
    .flight-table .team-col {
        display: none;
    }

    .site-cell {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pilot-cell {
        min-width: 0;
    }

    .pilot-cell-inner {
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .pilot-name-wrap {
        min-width: 0;
        overflow: hidden;
    }

    .score-col {
        width: 118px;
        min-width: 112px;
    }

    .meta-col {
        width: 42px;
    }
}

@media (min-width: 1024px) {
    .flights-page:has(.flight-detail-host.is-open.flight-detail-mode-split) {
        max-width: var(--page-max-width);
        padding-right: calc(var(--flight-detail-width) + var(--flight-detail-right) + var(--flight-detail-gap));
    }

    .flights-layout:has(.flight-detail-host.is-open.flight-detail-mode-split) {
        min-width: 0;
    }

    .flights-layout:has(.flight-detail-host.is-open.flight-detail-mode-split) .page-panel {
        min-width: 0;
    }

    .flights-layout:has(.flight-detail-host.is-open.flight-detail-mode-split) .flight-table {
        min-width: 0;
        table-layout: fixed;
    }

    .flights-layout:has(.flight-detail-host.is-open.flight-detail-mode-split) .flight-table .model-col,
    .flights-layout:has(.flight-detail-host.is-open.flight-detail-mode-split) .flight-table .team-col {
        display: none;
    }

    .flights-layout:has(.flight-detail-host.is-open.flight-detail-mode-split) .site-cell {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flights-layout:has(.flight-detail-host.is-open.flight-detail-mode-split) .pilot-cell {
        min-width: 0;
    }

    .flights-layout:has(.flight-detail-host.is-open.flight-detail-mode-split) .pilot-cell-inner {
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .flight-detail-host.is-open.flight-detail-mode-split .flight-detail-sidebar {
        display: block;
        position: fixed;
        z-index: var(--z-page-overlay);
        top: var(--flight-detail-top);
        right: max(var(--flight-detail-right), calc((100% - var(--page-max-width)) / 2 + var(--flight-detail-right)));
        bottom: var(--flight-detail-bottom);
        width: var(--flight-detail-width);
        min-height: 0;
    }

    body.is-page-scrolled .flight-detail-host.is-open.flight-detail-mode-split .flight-detail-sidebar {
        top: var(--flight-detail-scrolled-top);
        bottom: var(--flight-detail-scrolled-bottom);
    }

    body:has(> .topbar--sticky).is-page-scrolled .flight-detail-host.is-open.flight-detail-mode-split .flight-detail-sidebar {
        top: var(--flight-detail-top);
    }

    .flight-detail-host.is-open.flight-detail-mode-split .flight-detail-dialog {
        display: none;
    }
}

@media (max-width: 1023px) {
    .flight-detail-host.is-open .flight-detail-dialog {
        display: block;
    }

    .flight-detail-mode-toggle {
        display: none;
    }
}

.flight-detail-host.is-open.flight-detail-mode-dialog .flight-detail-dialog {
    display: block;
}

@media (max-width: 760px) {
    .flights-page {
        --flight-list-inset: 10px;
    }

    .topbar-inner {
        gap: 8px;
        padding: 0 10px;
    }

    .user-nav--login {
        display: none;
    }

    .topbar-more-menu {
        padding: 12px;
    }

    .main-nav :is(a, button) {
        padding-left: 8px;
        padding-right: 8px;
    }

    .page-heading,
    .active-filter-bar,
    .flight-list-panel {
        padding-left: 10px;
        padding-right: 10px;
    }

    .flight-list-panel {
        padding-left: 0;
        padding-right: 0;
    }

    .active-filter-bar {
        gap: 8px;
    }

    .flights-page .flight-filter-trigger {
        width: auto;
        min-width: 40px;
        min-height: 40px;
        padding-inline: 11px;
    }

    .flights-page .flight-filter-trigger span {
        display: inline;
    }

    .flights-page .flight-filter-trigger.page-action--active {
        width: 40px;
        padding-inline: 0;
    }

    .flights-page .flight-filter-trigger.page-action--active span {
        display: none;
    }

    .active-filter-strip {
        gap: 7px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .filter-chip {
        max-width: min(58vw, 220px);
    }

    .filter-open {
        min-width: 42px;
        padding: 0 11px;
    }

    .filter-open:not(.app-busy-button) span,
    .claim-open:not(.app-busy-button) span {
        display: none;
    }

    .page-action:not(.app-busy-button) {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
    }

    .page-action:not(.app-busy-button) span {
        display: none;
    }

    .flight-upload-trigger {
        max-width: min(52vw, 190px);
    }

    .admin-action-submit span {
        display: inline;
    }

    .flight-table {
        min-width: 0;
    }

    .model-col,
    .team-col {
        display: none;
    }

    .flight-table th,
    .flight-table td {
        padding: 6px 5px 6px 3px;
    }

    .score-col {
        width: 118px;
        min-width: 112px;
    }
}

@media (min-width: 380px) and (max-width: 760px) {
    .flight-upload-trigger {
        width: auto;
        padding: 0 12px;
    }

    .flight-upload-trigger span {
        min-width: 0;
        display: inline;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 519px) {
    .topbar-more > button {
        gap: 8px;
        padding: 0 10px;
    }

    .topbar-more-trigger__icon,
    .topbar-more-trigger__icon::before,
    .topbar-more-trigger__icon::after {
        width: 16px;
        height: 2px;
        border-radius: 999px;
    }

    .topbar-more-trigger__icon {
        display: block;
    }

    .topbar-more-trigger__icon::before {
        top: -5px;
        left: 0;
    }

    .topbar-more-trigger__icon::after {
        top: 5px;
        left: 0;
    }

    .topbar-more-trigger__label--desktop,
    .topbar-more-trigger__chevron {
        display: none;
    }

    .topbar-more-trigger__label--mobile {
        display: inline;
    }
}

@container sites-profile (max-width: 760px) {
    .site-flight-table {
        --pilot-flight-meta-width: clamp(30px, 7cqw, 42px);
        --pilot-flight-grid: 76px minmax(0, 1fr) minmax(92px, 104px) var(--pilot-flight-meta-width);
    }

    .site-flight-table tr {
        grid-template-columns: var(--pilot-flight-grid);
        column-gap: clamp(5px, 1.6cqw, 8px);
    }

    .site-flight-table tbody tr {
        grid-template-rows: auto auto;
        row-gap: 3px;
    }

    .site-flight-table .track-cell .row-actions {
        width: var(--pilot-flight-meta-width);
    }

    .site-flight-table tbody .pilot-flight-date-col {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .site-flight-table tbody .site-pilot-cell {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 1.2;
    }

    .site-flight-table tbody .model-col {
        grid-column: 2;
        grid-row: 2;
        display: block;
        align-self: start;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        color: var(--muted);
        font-size: var(--font-sm);
        line-height: 1.15;
    }

    .site-flight-table tbody .score-col {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .site-flight-table tbody .meta-col,
    .site-flight-table tbody .track-cell {
        grid-column: 4;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .site-flight-table thead .model-col {
        display: none;
    }

    .site-flight-table .pilot-flight-score-heading {
        width: 100%;
        padding-right: 0;
        text-align: right;
    }

    .site-flight-table .pilot-flight-score-heading-full {
        display: none;
    }

    .site-flight-table .pilot-flight-score-heading-compact {
        display: flex;
    }

    .site-flight-table .pilot-flight-score {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .site-flight-table .pilot-flight-score__main {
        justify-content: flex-end;
        gap: 5px;
    }

    .site-flight-table .pilot-flight-score__distance {
        flex: 0 0 auto;
    }

    .site-flight-table .pilot-flight-score__value {
        display: none;
    }

    .site-flight-table .pilot-flight-score__icon.score-icon {
        box-sizing: border-box;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        margin-right: 0;
    }

    .site-flight-table .glider-icon-stack {
        display: none;
    }

    .sites-nearest-table .nearest-icon-col {
        width: 28px;
    }

    .sites-nearest-table .nearest-country-col {
        display: none;
    }

    .sites-nearest-table .nearest-elevation-col {
        width: 72px;
    }

    .sites-nearest-table .nearest-flights-col {
        width: 76px;
    }

    .sites-nearest-table .nearest-distance-col {
        width: 78px;
    }
}

@container sites-profile (max-width: 520px) {
    .site-flight-table tbody tr {
        align-items: start;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .site-flight-table tbody .pilot-flight-date-col,
    .site-flight-table tbody .score-col,
    .site-flight-table tbody .meta-col,
    .site-flight-table tbody .track-cell {
        align-self: start;
        padding-top: 0;
    }

    .site-flight-table tbody .site-pilot-cell {
        align-self: start;
    }

    .site-flight-table .pilot-flight-score__main {
        align-items: start;
    }

    .site-flight-table .track-cell .row-actions {
        align-items: flex-start;
    }


    .sites-nearest-table .nearest-elevation-col {
        display: none;
    }

    .sites-nearest-table .nearest-flights-col {
        width: 64px;
    }

    .sites-nearest-table .nearest-distance-col {
        width: 72px;
    }
}

@container sites-profile (max-width: 360px) {
    .sites-correction-card {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 3px;
        padding-block: 7px;
    }

    .sites-correction-card h2 {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .sites-correction-card__button {
        justify-self: end;
        min-height: 26px;
        padding-right: 6px;
    }
}

@container glider-profile (max-width: 520px) {
    .sites-correction-card {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 3px;
        padding-block: 7px;
    }

    .sites-correction-card h2 {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .sites-correction-card__button {
        min-height: 26px;
        padding-right: 6px;
    }

    .glider-correction-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 620px) {
    :root {
        --page-shell-margin-block-start: 0px;
        --page-shell-margin-block-end: 0px;
        --viewport-page-shell-margin-block: 0px;
        --page-shell-gutter: 0px;
        --page-shell-padding-block: 0px;
    }

    .page-panel {
        border-radius: 0;
    }

    .flight-detail-dialog-panel,
    .sites-map-shell,
    .live-map-shell,
    .live-altitude-panel {
        border-radius: 0;
    }

    .page-heading {
        padding: 13px 10px 8px;
    }

    .active-filter-bar {
        gap: 8px;
        padding: 13px 10px 10px;
    }

    .filter-open {
        min-width: 42px;
        padding: 0 11px;
    }

    .filter-open:not(.app-busy-button) span,
    .claim-open:not(.app-busy-button) span {
        display: none;
    }

    .admin-body {
        padding: 12px 10px;
    }

    .admin-action-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .admin-action-submit {
        width: 100%;
    }

    .admin-action-submit span {
        display: inline;
    }

    .admin-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .flight-list-panel {
        padding: 0 10px 12px;
    }

    .date-row {
        margin-right: -10px;
        margin-left: -10px;
    }

    .date-row__content {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        padding: 5px var(--flight-list-inset);
    }

    .date-row h2 {
        min-width: 0;
        font-size: var(--font-lg);
        overflow-wrap: anywhere;
    }

    .flight-table-wrap {
        margin-right: -10px;
        margin-left: -10px;
        padding: 0;
        overflow-x: visible;
    }

    .flight-table {
        display: block;
        min-width: 0;
        border-collapse: separate;
    }

    .flight-table thead,
    .flight-table tbody {
        display: block;
    }

    .flight-table thead tr {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) 92px 36px;
        grid-template-areas: "rank pilot score info";
        column-gap: 8px;
        padding: 0 7px;
        background: color-mix(in srgb, var(--header-bg) 88%, var(--panel));
        box-shadow: none;
    }

    .flight-table tbody tr {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) 92px 36px;
        grid-template-areas: "rank pilot score info";
        column-gap: 8px;
        row-gap: 0;
        align-items: center;
        padding: 6px 7px;
        border-bottom: 1px solid var(--line-soft);
        background: transparent;
    }

    .flight-table th,
    .flight-table td {
        padding: 0;
        border-bottom: 0;
    }

    .flight-table thead th {
        min-height: 30px;
        display: flex;
        align-items: center;
        background: transparent;
    }

    .flight-table tbody tr:hover {
        background: var(--row-hover);
    }

    .flight-table tbody tr.is-selected {
        background: var(--row-selected);
    }

    .flight-table tbody tr.followed-pilot-row {
        background: var(--followed-pilot-row-bg, #fff8e6);
    }

    .flight-table tbody tr.followed-pilot-row:hover {
        background: var(--followed-pilot-row-hover-bg, #fff1cc);
    }

    .flight-table tbody tr.followed-pilot-row.is-selected {
        background: var(--row-selected);
    }

    .flight-table thead th:nth-child(2) {
        grid-area: pilot;
    }

    .flight-table thead th:nth-child(4) {
        display: none;
    }

    .rank-col {
        grid-area: rank;
        align-self: center;
        width: auto;
    }

    .flight-table thead .rank-col {
        justify-content: center;
    }

    .flight-row-avatar {
        width: 40px;
        height: 40px;
    }

    .flight-row-avatar-image {
        width: 40px;
        height: 40px;
    }

    .flight-row-rank {
        right: -7px;
        bottom: -4px;
        min-width: 17px;
        height: 17px;
        font-size: 0.68rem;
    }

    .pilot-cell {
        grid-area: pilot;
        align-self: center;
        min-width: 0;
        line-height: 1.18;
    }

    .pilot-cell-inner {
        align-items: center;
    }

    .pilot-mobile-site {
        display: block;
        min-width: 0;
        margin-top: 2px;
        overflow: hidden;
        color: #34495d;
        line-height: 1.18;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .score-col {
        grid-area: score;
        align-self: center;
        width: 92px;
        min-width: 0;
    }

    .flight-list-panel .flight-table tbody .site-cell {
        display: none;
    }

    .score-stack {
        row-gap: 0;
    }

    .track-cell {
        grid-area: info;
        align-self: center;
        width: auto;
    }

    .flight-table thead .meta-col {
        grid-area: info;
        width: auto;
    }

    .track-cell .row-actions {
        width: 36px;
        min-height: 0;
        align-items: center;
        justify-content: center;
    }

    .score-icon {
        margin-top: 0;
    }

    :is(.flight-table, .profile-flight-list-wrap .pilot-flight-table) tbody tr :is(.score-col, .track-cell) {
        align-self: start;
    }

    .flight-table tbody .track-cell {
        /* Preserve the row footprint when the status loses its centered baseline. */
        min-height: 40px;
    }

    .profile-flight-list-wrap .pilot-flight-table .pilot-flight-score__main {
        align-items: start;
    }

    .profile-flight-list-wrap .pilot-flight-table .track-cell .row-actions {
        /* Keep the previous inline-flex footprint while top-aligning the status. */
        min-height: 40px;
        align-items: flex-start;
    }

    :is(.flight-table, .profile-flight-list-wrap .pilot-flight-table) .score-icon {
        align-self: start;
    }

    :is(.flight-table, .profile-flight-list-wrap .pilot-flight-table) .flight-status-cluster {
        align-items: flex-start;
    }

    :is(.flight-table, .profile-flight-list-wrap .pilot-flight-table) .flight-status-comment {
        top: 0;
    }

    :is(.flight-table, .profile-flight-list-wrap .pilot-flight-table) .flight-status-hint--achievements-only .flight-status-achievements {
        top: 4px;
        height: auto;
    }

    .private-flight-badge {
        top: -4px;
        right: -5px;
        width: 14px;
        height: 14px;
    }

    .private-flight-badge::before {
        width: 12px;
        height: 12px;
    }

    .model-col,
    .team-col {
        display: none;
    }

    .score-col .sort-link > span:first-child {
        display: none;
    }

    .score-heading-compact {
        display: inline;
    }

    .flight-table .score-unit,
    .glider-flight-table .score-unit {
        display: none;
    }

}

@media (max-width: 520px) {
    .flight-table thead tr {
        grid-template-columns: 46px minmax(0, 1fr) 86px 30px;
        column-gap: 5px;
        padding: 0 4px;
    }

    .flight-table tbody tr {
        grid-template-columns: 46px minmax(0, 1fr) 86px 30px;
        column-gap: 5px;
        padding: 6px 4px;
    }

    .flight-table .country {
        min-height: 16px;
        margin-left: 4px;
        padding-right: 4px;
        padding-left: 4px;
        font-size: 0.62rem;
    }

    .flight-row-avatar,
    .flight-row-avatar-image {
        width: 36px;
        height: 36px;
    }

    .flight-row-rank {
        right: -6px;
        bottom: -4px;
    }

    .track-cell .row-actions {
        width: 30px;
    }

    .flight-status-cluster,
    .flight-status-hint {
        width: 30px;
    }

    .flight-status-comment {
        top: 10px;
        width: 20px;
        height: 20px;
    }

    .flight-status-comment::before {
        width: 18px;
        height: 18px;
    }

    .flight-status-achievement {
        flex-basis: 11px;
        width: 11px;
        height: 11px;
        border-radius: 4px;
    }

    .flight-status-achievement + .flight-status-achievement {
        margin-left: -2px;
    }

    .flight-status-achievement::before {
        width: 8px;
        height: 8px;
    }

}

@media (max-width: 420px) {
    .flight-table thead tr,
    .flight-table tbody tr {
        grid-template-columns: 46px minmax(0, 1fr) 86px 30px;
    }

    .track-cell .row-actions,
    .flight-status-cluster,
    .flight-status-hint {
        width: 30px;
    }
}

@media (max-width: 760px) {
    .pilot-profile-shell .pilot-flight-table--mobile-model {
        --pilot-flight-grid: 76px minmax(0, 1fr) minmax(150px, 158px) 40px;
    }

    .pilot-profile-shell .pilot-flight-table--duration.pilot-flight-table--mobile-model {
        --pilot-flight-grid: 76px minmax(0, 1fr) minmax(150px, 158px) minmax(70px, 84px) 40px;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model tbody tr {
        grid-template-rows: auto auto;
        row-gap: 3px;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model tbody .pilot-flight-date-col {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model tbody .site-cell {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 1.2;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model tbody .model-col {
        grid-column: 2;
        grid-row: 2;
        display: block;
        align-self: start;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        color: var(--muted);
        font-size: var(--font-sm);
        line-height: 1.15;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model tbody .score-col {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .pilot-profile-shell .pilot-flight-table--duration.pilot-flight-table--mobile-model tbody .duration-col {
        grid-column: 4;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .pilot-profile-shell .pilot-flight-table--duration.pilot-flight-table--mobile-model tbody .meta-col,
    .pilot-profile-shell .pilot-flight-table--duration.pilot-flight-table--mobile-model tbody .track-cell {
        grid-column: 5;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model tbody .meta-col,
    .pilot-profile-shell .pilot-flight-table--mobile-model tbody .track-cell {
        grid-column: 4;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model tbody .glider-icon-stack {
        display: none;
    }
}

@media (max-width: 620px) {
    .pilot-flight-table {
        --pilot-flight-grid: 76px minmax(0, 1fr) minmax(150px, 158px) 34px;
    }

    .pilot-profile-shell .pilot-flight-table {
        --pilot-flight-meta-width: clamp(30px, 7vw, 42px);
        --pilot-flight-grid: 76px minmax(0, 1fr) clamp(82px, 24vw, 92px) var(--pilot-flight-meta-width);
    }

    .pilot-profile-shell .pilot-flight-table tr {
        column-gap: clamp(5px, 1.5vw, 8px);
    }

    .pilot-profile-shell .pilot-flight-table .track-cell .row-actions {
        width: var(--pilot-flight-meta-width);
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model .track-cell .row-actions {
        justify-content: flex-start;
    }

    .pilot-profile-shell .pilot-flight-score-heading {
        width: 100%;
        padding-right: 0;
        text-align: right;
    }

    .pilot-profile-shell .pilot-flight-score {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .pilot-profile-shell .pilot-flight-score__value {
        display: none;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model {
        --pilot-flight-grid: 76px minmax(0, 1fr) minmax(72px, 78px) var(--pilot-flight-meta-width);
    }

    .pilot-profile-shell .pilot-flight-table--duration.pilot-flight-table--mobile-model {
        --pilot-flight-grid: 76px minmax(0, 1fr) minmax(72px, 78px) minmax(54px, 64px) var(--pilot-flight-meta-width);
    }


    .pilot-profile-shell .pilot-flight-table--mobile-model .pilot-flight-score-heading-full {
        display: none;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model .pilot-flight-score-heading-compact {
        display: flex;
    }


    .pilot-profile-shell .pilot-flight-table--duration .duration-col {
        text-align: center;
    }

    .pilot-profile-shell .pilot-flight-table--duration .pilot-flight-duration-heading-full {
        display: none;
    }

    .pilot-profile-shell .pilot-flight-table--duration .pilot-flight-duration-heading-compact {
        display: block;
    }
    .pilot-profile-shell .pilot-flight-table--mobile-model .pilot-flight-score__main {
        justify-content: flex-end;
        gap: 5px;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model .pilot-flight-score__distance {
        flex: 0 0 auto;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model .pilot-flight-score__distance .score-unit {
        display: none;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model .pilot-flight-score__icon.score-icon {
        box-sizing: border-box;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        margin-right: 0;
    }

    .pilot-flight-table tr {
        grid-template-columns: var(--pilot-flight-grid);
        grid-template-areas: none;
        align-items: center;
        column-gap: 0;
        min-height: 0;
        padding: 0 0;
    }

    .pilot-flight-table th,
    .pilot-flight-table td {
        display: block;
        min-width: 0;
        padding-right: 0;
        padding-left: 0;
        border-bottom: 0;
    }

    .pilot-flight-table .pilot-flight-date-col {
        grid-column: 1;
        grid-area: auto;
        align-self: center;
        width: auto;
    }

    .pilot-flight-table .site-cell {
        grid-column: 2;
        grid-area: auto;
        align-self: center;
    }

    .pilot-flight-table .score-col {
        grid-column: 3;
        grid-area: auto;
        align-self: center;
        width: auto;
        min-width: 0;
    }

    .pilot-flight-table .meta-col,
    .pilot-flight-table .track-cell {
        grid-column: 4;
        grid-area: auto;
        align-self: center;
        width: auto;
        min-width: 0;
    }

    .pilot-flight-table .model-col {
        display: none;
    }

    .pilot-flight-table .track-cell .row-actions {
        width: 34px;
        min-height: 0;
        align-items: center;
        justify-content: flex-end;
    }

    .pilot-flight-table .score-icon {
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .pilot-profile-shell .pilot-flight-table--mobile-model {
        --pilot-flight-meta-width: 40px;
    }

    .pilot-profile-shell .pilot-flight-table--duration.pilot-flight-table--mobile-model {
        --pilot-flight-grid: 76px minmax(0, 1fr) minmax(72px, 78px) var(--pilot-flight-meta-width);
    }

    .pilot-profile-shell .pilot-flight-table--duration .duration-col {
        display: none;
    }

    .pilot-profile-shell .pilot-flight-table--duration.pilot-flight-table--mobile-model tbody .meta-col,
    .pilot-profile-shell .pilot-flight-table--duration.pilot-flight-table--mobile-model tbody .track-cell {
        grid-column: 4;
    }

    .pilot-profile-shell .pilot-flight-table--mobile-model .track-cell .row-actions {
        justify-content: flex-start;
        padding-right: 0;
    }

    .pilot-flight-table {
        --pilot-flight-grid: 76px minmax(0, 1fr) 92px 34px;
    }

    .pilot-flight-score-heading {
        width: auto;
        padding-right: 0;
        text-align: left;
    }

    .pilot-flight-score {
        grid-template-columns: minmax(0, 1fr);
        width: auto;
    }

    .pilot-flight-score__main {
        justify-content: flex-start;
    }

    .pilot-flight-score__value {
        display: none;
    }
}

