/* Premium Tennis Travel Planner visual layer. Loaded after page-specific CSS. */
:root {
    color-scheme: light;
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eef3f9;
    --ink: #111827;
    --muted: #667085;
    --line: #dbe3ee;
    --accent: #255fbb;
    --accent-2: #0f2a47;
    --accent-soft: #edf4ff;
    --tennis: #e7bd2f;
    --clay: #d97930;
    --warn: #b86b00;
    --danger: #b42318;
    --nav: #07111f;
    --nav-2: #0b1c31;
    --nav-line: rgba(255, 255, 255, .16);
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, .08);
    --shadow-pop: 0 20px 60px rgba(15, 23, 42, .14);
    --radius: 14px;
    --radius-sm: 10px;
}

html {
    background: var(--bg);
}

body {
    background:
        linear-gradient(180deg, #f8fafc 0, var(--bg) 260px),
        var(--bg);
    color: var(--ink);
    font-family: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.topbar,
.site-header {
    border-bottom: 1px solid var(--nav-line);
    background: linear-gradient(180deg, #0b1626 0%, var(--nav) 100%);
    color: #f8fafc;
    box-shadow: 0 18px 44px rgba(7, 17, 31, .18);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.topbar {
    backdrop-filter: blur(16px);
}

.topbar-inner,
.header-inner,
.workbar-inner,
.content,
.wrap {
    width: min(1280px, calc(100vw - 32px));
}

.topbar-inner,
.header-inner {
    min-height: 70px;
    padding-block: 12px;
}

.brand {
    color: inherit;
}

.brand strong,
.brand h1 {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand .subtle,
.brand-tagline,
.site-header .brand span span,
.topbar .subtle {
    color: rgba(226, 232, 240, .84);
}

.mark {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(231, 189, 47, .92));
    color: var(--nav);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 24px rgba(0, 0, 0, .18);
    font-size: 12px;
    letter-spacing: 0;
}

.nav {
    gap: 10px;
}

.topbar .nav-link,
.topbar .nav-button,
.topbar .locale-form select,
.topbar .player-switch select,
.site-header .button,
.site-header .language-form select,
.site-header .nav a:not(.primary) {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #f8fafc;
    font-weight: 650;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.topbar .nav-link:hover,
.topbar .nav-link:focus,
.topbar .nav-button:hover,
.topbar .nav-button:focus,
.site-header .button:hover,
.site-header .button:focus {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .14);
    outline: 0;
}

.topbar .current-player a,
.topbar .current-player,
.topbar .current-account {
    color: #f8fafc;
    font-weight: 650;
}

.topbar .current-player a:hover {
    color: #ffffff;
}

.workbar {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    backdrop-filter: blur(14px);
}

.workbar-inner {
    padding-block: 12px;
}

.content {
    padding-block: 24px 44px;
}

.button,
.nav-link,
.nav-button,
button,
input,
select,
textarea,
.schedule-shortcut,
.row-schedule-menu summary,
.route-edit-button,
.privacy-close-button,
.footer-policy-button {
    border-radius: var(--radius-sm);
}

input,
select,
textarea {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, .03);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #94b7ea;
    box-shadow: 0 0 0 3px rgba(37, 95, 187, .12);
    outline: 0;
}

button,
.button.primary,
.schedule-shortcut.is-active {
    border-color: #164889;
    background: linear-gradient(180deg, #255fbb 0%, #164889 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 95, 187, .18);
}

button:hover,
button:focus,
.button.primary:hover,
.button.primary:focus,
.schedule-shortcut.is-active:hover,
.schedule-shortcut.is-active:focus {
    border-color: #0f376f;
    background: linear-gradient(180deg, #2e6ccc 0%, #123f79 100%);
    outline: 0;
}

button.secondary,
button.add-to-schedule,
button.danger-link,
.button,
.nav-link,
.nav-button,
.schedule-shortcut,
.row-schedule-menu summary,
.row-schedule-choice,
.route-edit-button,
.privacy-close-button {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

button.secondary:hover,
button.secondary:focus,
button.add-to-schedule:hover,
button.add-to-schedule:focus,
.button:hover,
.button:focus,
.nav-link:hover,
.nav-link:focus,
.nav-button:hover,
.nav-button:focus,
.schedule-shortcut:hover,
.schedule-shortcut:focus,
.row-schedule-menu summary:hover,
.row-schedule-menu summary:focus,
.row-schedule-choice:hover,
.row-schedule-choice:focus,
.route-edit-button:hover,
.route-edit-button:focus {
    border-color: #b9c7d8;
    background: var(--surface-2);
    color: var(--ink);
    outline: 0;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus,
.topbar .nav-button:hover,
.topbar .nav-button:focus {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .14);
    color: #f8fafc;
    outline: 0;
}

button.danger,
.button.danger,
.nav-button.danger {
    border-color: var(--danger);
    background: linear-gradient(180deg, #c0362c 0%, #9f241b 100%);
    color: #fff;
}

.panel,
.auth-card,
.auth-switch,
.filters,
.table-shell,
.detail,
.route-shell,
.wada-qr-card,
.wada-photo,
.wada-form,
.wada-upload-panel,
.admin-head,
.admin-tabs,
.admin-filters,
.landing-link-card,
.feature-card,
.role-panel,
.ranking-board,
.preview-shell,
.summary-item,
.panel-note {
    border-color: var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-soft);
}

.panel-head,
.schedule-dialog-head,
th,
.route-grid-header,
.preview-head,
.ranking-board-header {
    background: linear-gradient(180deg, #f9fbfd, #f2f6fb);
    color: #475467;
}

.premium-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.premium-page-heading,
.premium-route-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-soft);
}

.premium-page-heading {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 24px 28px;
}

.premium-kicker {
    width: max-content;
    max-width: 100%;
    border: 1px solid #c7d7ed;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #164889;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
}

.premium-page-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: 0;
}

.premium-page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.premium-route-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.premium-route-metric,
.premium-route-active {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 112px;
    padding: 18px;
    border-left: 1px solid var(--line);
}

.premium-route-metric:first-child {
    border-left: 0;
}

.premium-route-metric strong,
.premium-route-active strong {
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
}

.premium-route-metric span,
.premium-route-active span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.25;
}

.premium-route-active {
    grid-column: 1 / -1;
    min-height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
    background: linear-gradient(90deg, #f8fbff, #fff);
}

.filter-toolbar {
    margin-bottom: 12px;
}

.filters {
    grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(150px, .85fr));
    gap: 12px;
    padding: 16px;
}

.filters label,
.admin-filters label,
.auth-form label,
label {
    color: #5d6676;
    font-weight: 760;
}

.checkbox-filter {
    border-radius: var(--radius-sm);
}

.checkbox-filter.is-active {
    border-color: #c6d7ed;
    background: var(--accent-soft);
    color: #164889;
}

.checkbox-filter input {
    accent-color: var(--accent);
}

.schedule-shortcuts {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    gap: 0;
}

.schedule-shortcut {
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
}

.schedule-shortcut:first-child {
    border-left: 0;
}

.table-shell,
.route-shell {
    border-radius: 16px;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    border-bottom-color: #e7edf5;
}

th {
    color: #475467;
    font-size: 11px;
    letter-spacing: .01em;
    text-transform: uppercase;
}

td {
    color: #1f2937;
}

tr:hover td,
.route-row:hover {
    background: #f9fbff;
}

tr.is-selected td {
    background: #edf5ff;
}

tr.is-basketed td {
    background: #fff6f3;
}

tr.is-selected.is-basketed td {
    background: #fff1ec;
}

.pill,
.badge {
    border-color: #cbd8ea;
    background: #f8fbff;
    color: #24508c;
}

.pill.source-atf,
.badge.good {
    border-color: #c8ded5;
    background: #f1faf6;
    color: #146146;
}

.pill.source-tennis_europe {
    border-color: #cbd8ea;
    background: #eef5ff;
    color: #2458a4;
}

.badge.wait {
    border-color: #ecd79e;
    background: #fff8e7;
    color: #865600;
}

.row-note {
    color: #146146;
}

.empty {
    color: var(--muted);
    background: #fff;
}

.schedule-dialog {
    border-radius: 18px;
    box-shadow: var(--shadow-pop);
}

.schedule-dialog::backdrop,
.detail-backdrop,
.privacy-backdrop {
    background: rgba(7, 17, 31, .46);
    backdrop-filter: blur(3px);
}

.detail-head {
    background: linear-gradient(180deg, #f9fbfd, #f2f6fb);
}

.route-row {
    background: #fff;
}

.route-row.is-break {
    background: #eef5ff;
}

.route-row.is-week-conflict {
    background: #fff9e8;
}

.route-row.is-week-conflict-peach {
    background: #fff4ec;
}

.route-row.is-service {
    background: #fff6f3;
}

.route-handle {
    background: #f4f7fb;
    color: #667085;
}

.hero-stage {
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.hero-stage::before,
.hero-stage::after,
.hero-copy::before {
    display: none;
}

.hero-content {
    align-items: center;
}

.hero-copy {
    color: var(--ink);
}

.eyebrow {
    color: #164889;
}

.hero-copy h1 {
    color: var(--ink);
    letter-spacing: 0;
}

.hero-text,
.hero-seo-summary,
.feature-card p,
.role-panel p,
.landing-link-card span,
.preview-row span {
    color: var(--muted);
}

.hero-flow span,
.pill {
    background: #fff;
}

.preview-bar,
.preview-body,
.ranking-board-header {
    border-color: var(--line);
}

.preview-row.is-picked {
    background: #fff6f3;
}

.preview-row.is-break {
    background: #eef5ff;
}

.auth-shell,
.auth-shell-compact {
    background: transparent;
}

.auth-copy {
    border-radius: 22px;
    border: 1px solid #d8e4f2;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94) 0%, rgba(247, 251, 255, .94) 52%, rgba(237, 245, 255, .96) 100%);
    color: #0f172a;
    box-shadow: 0 22px 54px rgba(15, 42, 71, .12);
}

.auth-copy h1 {
    color: #0f172a;
}

.auth-copy p,
.auth-feature-list {
    color: #475467;
}

.auth-feature-list span {
    border-color: #c9dbf3;
    background: rgba(255, 255, 255, .78);
    color: #164889;
}

.auth-feature-list span:nth-child(2) {
    border-color: #b9e4cb;
    background: rgba(241, 252, 246, .82);
    color: #157348;
}

.auth-feature-list span:nth-child(3) {
    border-color: #f1d89b;
    background: rgba(255, 249, 232, .84);
    color: #8a5a00;
}

.auth-switch a.is-active {
    border-color: #c7d7ed;
    background: var(--accent-soft);
    color: #164889;
}

.admin-tabs a,
.admin-tabs button {
    border-radius: var(--radius-sm);
}

.admin-tabs .is-active,
.admin-tabs a[aria-current="page"] {
    border-color: #164889;
    background: #164889;
    color: #fff;
}

.wada-summary,
.wada-qr-layout,
.wada-workspace {
    gap: 18px;
}

.wada-ocr-note.is-ready,
.status {
    border-color: #c8ded5;
    background: #f1faf6;
    color: #146146;
}

.errors,
.wada-ocr-error {
    border-color: #f1b8b4;
    background: #fff4f3;
    color: var(--danger);
}

.access-alert {
    border-color: #f1b8b4;
    background: #fff4f3;
    color: #8f2118;
}

.site-footer,
.landing-footer {
    border-top-color: var(--line);
    background: #fff;
}

.privacy-modal {
    border-radius: 18px;
}

.screen {
    background: var(--nav);
}

.screen header {
    background: transparent;
    color: #f8fafc;
}

.screen .primary {
    background: linear-gradient(180deg, #255fbb 0%, #164889 100%);
}

.screen .file-label {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    color: #f8fafc;
}

@media (max-width: 980px) {
    .premium-page-hero {
        grid-template-columns: 1fr;
    }

    .premium-route-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .topbar-inner,
    .header-inner,
    .workbar-inner,
    .content,
    .wrap {
        width: min(100% - 24px, 1280px);
    }

    .topbar-inner,
    .header-inner {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 10px;
        min-height: 0;
        padding-block: 8px;
    }

    .topbar .brand,
    .site-header .brand,
    .premium-research-app .topbar .brand {
        flex: 1 1 190px;
        min-width: 0;
        gap: 8px;
    }

    .topbar .brand > span,
    .site-header .brand > span,
    .premium-research-app .topbar .brand > span {
        min-width: 0;
    }

    .topbar .brand strong,
    .site-header .brand strong,
    .premium-research-app .topbar .brand strong {
        font-size: 12px;
        line-height: 1.08;
        white-space: normal;
    }

    .topbar .brand-tagline,
    .site-header .brand > span > span,
    .premium-research-app .topbar .brand-tagline {
        font-size: 11px;
        line-height: 1.12;
    }

    .topbar .nav,
    .site-header .nav,
    .premium-research-app .topbar .nav {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 6px;
        margin-left: auto;
    }

    .topbar .nav-link,
    .topbar .nav-button,
    .site-header .button {
        min-height: 34px;
        padding: 6px 9px;
    }

    .topbar .current-player,
    .topbar .current-account {
        max-width: 150px;
        min-width: 0;
    }

    .topbar .current-player a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar .locale-picker,
    .site-header .language-form select {
        min-width: 126px;
    }

    .premium-route-card {
        grid-template-columns: 1fr;
    }

    .premium-route-metric,
    .premium-route-active {
        min-height: auto;
        border-top: 1px solid var(--line);
        border-left: 0;
        padding: 14px;
    }

    .premium-route-metric:first-child {
        border-top: 0;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .schedule-shortcuts {
        width: 100%;
    }

    .schedule-shortcut {
        flex: 1 1 auto;
    }
}

/* Research catalog shell: closer to the accepted Premium Tennis Travel Planner reference. */
.premium-research-app {
    --sidebar-width: 176px;
    --topbar-height: 52px;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #ffffff 0, #f5f7fb 360px),
        #f5f7fb;
}

.premium-research-app .premium-sidebar {
    position: fixed;
    inset: var(--topbar-height) auto 0 0;
    z-index: 40;
    display: flex;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    flex-direction: column;
    gap: 18px;
    padding: 12px 14px 16px;
    background:
        linear-gradient(180deg, #07111f 0%, #0a1a2d 52%, #07111f 100%);
    color: #f8fafc;
    box-shadow: 18px 0 42px rgba(7, 17, 31, .24);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.premium-research-app .premium-sidebar-brand {
    display: none;
}

.premium-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    color: inherit;
    text-decoration: none;
}

.premium-sidebar-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 57px;
    padding-top: 1px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0;
    line-height: .9;
    text-shadow: none;
}

.premium-sidebar-mark::after {
    content: "";
    width: 12px;
    height: 12px;
    margin-left: 3px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 32%, #fff9b0 0 20%, transparent 21%),
        linear-gradient(135deg, #f8e34f 0%, #e1b81d 100%);
    box-shadow: inset 0 0 0 1px rgba(7, 17, 31, .16), 0 4px 10px rgba(0, 0, 0, .28);
}

.premium-sidebar-brand strong,
.premium-sidebar-brand small {
    display: block;
}

.premium-sidebar-brand strong {
    color: #f8fafc;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: 0;
    text-transform: uppercase;
}

.premium-sidebar-brand small {
    margin-top: 4px;
    color: rgba(226, 232, 240, .84);
    font-size: 9px;
    line-height: 1.28;
}

.premium-sidebar-nav {
    display: grid;
    gap: 6px;
}

.premium-sidebar-menu {
    display: grid;
    gap: 6px;
}

.premium-sidebar-menu summary {
    cursor: pointer;
    list-style: none;
}

.premium-sidebar-menu summary::-webkit-details-marker {
    display: none;
}

.premium-sidebar-link {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(241, 245, 249, .92);
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 620;
    line-height: 1.2;
    text-decoration: none;
}

.premium-sidebar-link:hover,
.premium-sidebar-link:focus {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #f8fafc;
    outline: 0;
}

.premium-sidebar-link.is-active {
    border-color: rgba(120, 166, 237, .48);
    background: linear-gradient(180deg, #2567c7 0%, #164889 100%);
    color: #f8fafc;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37, 95, 187, .32);
}

.premium-sidebar-chevron {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .72;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .18s ease;
}

.premium-sidebar-menu[open] .premium-sidebar-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.premium-sidebar-subnav {
    display: grid;
    gap: 4px;
    padding-left: 10px;
}

.premium-sidebar-sub-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    align-items: center;
    min-height: 32px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(226, 232, 240, .9);
    font-size: 11.5px;
    font-weight: 620;
    line-height: 1.25;
    text-decoration: none;
}

.premium-sidebar-sub-link:hover,
.premium-sidebar-sub-link:focus {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    color: #f8fafc;
    outline: 0;
}

.premium-sidebar-sub-link.is-active {
    border-color: rgba(253, 224, 71, .34);
    background: rgba(253, 224, 71, .12);
    color: #ffffff;
    font-weight: 700;
}

.premium-sidebar-sub-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-sidebar-count {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(226, 232, 240, .9);
    font-size: 10px;
    text-align: center;
}

.premium-sidebar-sub-link small {
    grid-column: 1 / -1;
    overflow: hidden;
    color: rgba(226, 232, 240, .76);
    font-size: 10px;
    font-weight: 580;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-sidebar-player {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    padding: 12px 10px 14px;
    text-align: center;
}

.premium-sidebar-player-photo {
    width: 70px;
    height: 70px;
    margin: 4px 0 6px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

.premium-sidebar-player span,
.premium-sidebar-player small,
.premium-sidebar-foot span {
    color: rgba(226, 232, 240, .84);
    font-size: 10px;
    font-weight: 620;
    line-height: 1.25;
    text-transform: uppercase;
}

.premium-sidebar-player > span {
    justify-self: start;
    text-align: left;
}

.premium-sidebar-player strong {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.premium-sidebar-player a {
    width: max-content;
    color: #b4d1ff;
    font-size: 11px;
    font-weight: 620;
    text-decoration: none;
}

.premium-sidebar-player a:hover,
.premium-sidebar-player a:focus {
    color: #ffffff;
    text-decoration: underline;
    outline: 0;
}

.premium-sidebar-foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    color: rgba(248, 250, 252, .72);
    font-size: 11px;
}

.premium-sidebar-foot strong {
    color: rgba(248, 250, 252, .88);
    font-weight: 650;
}

.premium-research-app .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    margin-left: 0;
    border-bottom: 0;
    background: linear-gradient(180deg, #0b1626 0%, #07111f 100%);
    box-shadow: 0 12px 34px rgba(7, 17, 31, .18);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.premium-research-app .topbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--topbar-height);
    padding: 6px 18px;
}

.premium-research-app .topbar .brand {
    display: flex;
    align-items: center;
    flex: 0 0 292px;
    gap: 8px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.premium-research-app .topbar .brand .mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    min-width: 66px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font-size: 28px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0;
    line-height: .9;
    text-shadow: none;
}

.premium-research-app .topbar .brand .mark::after {
    content: "";
    width: 12px;
    height: 12px;
    margin-left: 3px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 32%, #fff9b0 0 20%, transparent 21%),
        linear-gradient(135deg, #f8e34f 0%, #e1b81d 100%);
    box-shadow: inset 0 0 0 1px rgba(7, 17, 31, .16), 0 4px 10px rgba(0, 0, 0, .28);
}

.premium-research-app .topbar .brand > div:last-child,
.premium-research-app .topbar .brand > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.premium-research-app .topbar .brand h1,
.premium-research-app .topbar .brand strong {
    margin: 0;
    color: #f8fafc;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.12;
    text-transform: uppercase;
    white-space: nowrap;
}

.premium-research-app .topbar .brand .subtle,
.premium-research-app .topbar .brand-tagline {
    color: rgba(226, 232, 240, .82);
    font-size: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.premium-research-app .topbar .brand .subtle::before,
.premium-research-app .topbar .brand-tagline::before {
    content: "Plan. Compete. Grow.";
    font-size: 10px;
}

.premium-research-app .top-actions {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
    gap: 10px;
}

.premium-research-app .topbar .nav {
    margin-left: auto;
}

.premium-research-app .topbar .current-player,
.premium-research-app .topbar .current-player a,
.premium-research-app .topbar .current-account {
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 650;
}

.premium-research-app .premium-locale-form {
    margin: 0;
}

.locale-form {
    position: relative;
    margin: 0;
}

.locale-picker {
    position: relative;
    min-width: 138px;
    color-scheme: light;
}

.locale-picker[open] {
    z-index: 220;
}

.locale-picker summary {
    list-style: none;
}

.locale-picker summary::-webkit-details-marker {
    display: none;
}

.locale-picker-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    background: rgba(255, 255, 255, .94);
    color: #111827;
    cursor: pointer;
    font-size: 12px;
    font-weight: 780;
    box-shadow: 0 10px 24px rgba(7, 17, 31, .16);
}

.locale-picker-trigger:focus-visible {
    outline: 2px solid rgba(66, 133, 244, .7);
    outline-offset: 2px;
}

.locale-picker-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: .65;
    transform: translateY(-2px) rotate(45deg);
}

.locale-picker[open] .locale-picker-chevron {
    transform: translateY(2px) rotate(225deg);
}

.locale-picker-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 220;
    display: grid;
    width: 210px;
    max-height: min(460px, calc(100vh - 96px));
    padding: 6px;
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 22px 56px rgba(7, 17, 31, .22);
}

.locale-picker-option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111827;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.locale-picker-option:hover,
.locale-picker-option:focus {
    background: #eef4ff;
    outline: 0;
}

.locale-picker-option.is-active {
    background: #1f5fbf;
    color: #ffffff;
}

.locale-picker-flag {
    width: 18px;
    height: 18px;
}

.premium-research-app .premium-locale-form select,
.premium-research-app .locale-form select,
.premium-research-app .player-switch select {
    min-height: 34px;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .92);
    color: #111827;
    color-scheme: light;
    font-size: 12px;
    font-weight: 760;
}

.premium-research-app .premium-locale-form select option,
.premium-research-app .locale-form select option,
.premium-research-app .player-switch select option {
    background: #ffffff;
    color: #111827;
}

.premium-research-app .content {
    width: calc(100% - var(--sidebar-width));
    max-width: none;
    margin: 0 0 0 var(--sidebar-width);
    padding: 20px 24px 44px;
}

.premium-research-app .premium-page-hero {
    display: block;
    margin: 0 0 10px;
}

.premium-research-app .premium-page-heading {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.premium-research-app .premium-page-heading h2 {
    color: #111827;
    font-size: 28px;
    line-height: 1.15;
}

.premium-research-app .premium-page-heading p {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 620;
}

.premium-route-overview {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(210px, .28fr) minmax(220px, .32fr);
    gap: 0;
    min-height: 112px;
    margin: 12px 0 16px;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.premium-route-plan {
    display: grid;
    align-content: center;
    gap: 14px;
    min-width: 0;
    padding: 18px 20px;
}

.premium-route-label {
    color: #344054;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.premium-route-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.premium-route-step {
    position: relative;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding-left: 16px;
}

.premium-route-step::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2567c7;
    box-shadow: 0 0 0 4px #e8f1ff;
}

.premium-route-step::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 28px;
    right: -14px;
    border-top: 2px dotted #98a8bd;
}

.premium-route-step:last-child::after {
    display: none;
}

.premium-route-step strong {
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 880;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-visual {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
}

.country-visual > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 5px 12px rgba(15, 23, 42, .12);
}

.flag-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flag-icon-fallback {
    color: #111827;
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
}

.country-flag {
    width: 20px;
    height: 20px;
}

.surface-visual {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #111827;
    font-weight: 720;
}

.surface-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #8b98aa;
    box-shadow: 0 0 0 3px rgba(139, 152, 170, .14);
}

.surface-hard .surface-dot {
    background: #2567c7;
    box-shadow: 0 0 0 3px rgba(37, 103, 199, .14);
}

.surface-clay .surface-dot {
    background: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .14);
}

.surface-grass .surface-dot {
    background: #22a06b;
    box-shadow: 0 0 0 3px rgba(34, 160, 107, .14);
}

.surface-carpet .surface-dot {
    background: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .14);
}

.premium-route-step > span,
.premium-route-empty {
    color: #667085;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

.premium-route-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid #dbe3ee;
}

.premium-route-stats div {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    padding: 16px 14px;
    border-left: 1px solid #dbe3ee;
}

.premium-route-stats div:first-child {
    border-left: 0;
}

.premium-route-stats strong {
    color: #111827;
    font-size: 22px;
    line-height: 1;
}

.premium-route-stats span {
    color: #667085;
    font-size: 10px;
    font-weight: 760;
    line-height: 1.2;
}

.premium-route-map-card {
    display: grid;
    align-content: center;
    gap: 5px;
    border-left: 1px solid #dbe3ee;
    background:
        linear-gradient(135deg, rgba(37, 95, 187, .12), rgba(255, 255, 255, .72)),
        linear-gradient(90deg, rgba(219, 227, 238, .55) 1px, transparent 1px),
        linear-gradient(180deg, rgba(219, 227, 238, .55) 1px, transparent 1px),
        #f7fafd;
    background-size: auto, 26px 26px, 26px 26px, auto;
    padding: 18px;
}

.premium-route-map-card span {
    color: #667085;
    font-size: 10px;
    font-weight: 820;
    text-transform: uppercase;
}

.premium-route-map-card strong {
    color: #164889;
    font-size: 13px;
    line-height: 1.25;
}

.premium-research-app .content > .workbar {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    margin: 0 0 12px;
}

.premium-research-app .content > .workbar .workbar-inner {
    width: 100%;
    max-width: none;
    padding: 0;
}

.premium-research-app .workbar-title {
    color: #111827;
    font-size: 18px;
}

.premium-research-app .workbar-player {
    min-height: 34px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px 10px;
    color: #667085;
    font-size: 12px;
    font-weight: 760;
}

.premium-research-app .workbar-player a {
    color: #164889;
    text-decoration: none;
}

.premium-research-app .schedule-shortcuts {
    height: 38px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.premium-research-app .schedule-shortcut {
    min-height: 36px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 820;
}

.premium-research-app .schedule-switch select {
    min-height: 38px;
    min-width: 250px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 760;
}

.premium-research-app .filters {
    width: 100%;
    margin: 0 0 14px;
    grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(150px, .85fr));
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.premium-research-app .main-grid {
    display: block;
}

.premium-research-app .table-shell,
.premium-research-app .route-shell {
    width: 100%;
    max-width: none;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.premium-research-app .table-wrap {
    width: 100%;
    overflow-x: auto;
}

.premium-research-app table {
    width: 100%;
    min-width: 1120px;
}

.premium-research-app th {
    height: 40px;
    background: #f7f9fc;
    color: #344054;
    font-size: 10px;
    font-weight: 900;
}

.premium-research-app td {
    padding-top: 12px;
    padding-bottom: 12px;
    color: #101828;
    font-size: 13px;
}

.premium-research-app .name-link {
    color: #0f172a;
    font-weight: 880;
}

.premium-research-app .subtle,
.premium-research-app .muted {
    color: #667085;
}

.premium-research-app .pill {
    border-radius: 8px;
    font-size: 11px;
}

.premium-research-app .category-pill {
    border-color: #d1d9e6;
    background: #f8fafc;
    color: #344054;
    font-weight: 700;
    box-shadow: none;
}

.premium-research-app .category-tone-one {
    border-color: #b7d0ff;
    background: #eef5ff;
    color: #1f5fbf;
}

.premium-research-app .category-tone-two {
    border-color: #a9dfbd;
    background: #edf9f1;
    color: #157348;
}

.premium-research-app .category-tone-three {
    border-color: #dac7ff;
    background: #f6f0ff;
    color: #6d35b2;
}

.premium-research-app .category-tone-a,
.premium-research-app .category-tone-b,
.premium-research-app .category-tone-weekend {
    border-color: #f6c37d;
    background: #fff6e8;
    color: #9a5a00;
}

.premium-research-app .category-tone-team {
    border-color: #f4b8c4;
    background: #fff1f4;
    color: #a33a50;
}

.premium-research-app .date-cell {
    min-width: 96px;
    line-height: 1.35;
}

.premium-research-app .date-line {
    color: #102033;
    font-weight: 680;
}

.premium-research-app .date-line.subtle,
.premium-research-app .subtle.date-line {
    color: #5d6b82;
    font-size: 11px;
    font-weight: 650;
}

.age-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 22px;
    border: 1px solid #cbd8ea;
    border-radius: 8px;
    background: #f8fbff;
    padding: 2px 8px;
    color: #24508c;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.age-u12 {
    border-color: #dac7ff;
    background: #f6f0ff;
    color: #6d35b2;
}

.age-u14 {
    border-color: #a9dfbd;
    background: #edf9f1;
    color: #157348;
}

.age-u16 {
    border-color: #b7d0ff;
    background: #eef5ff;
    color: #1f5fbf;
}

.age-u18 {
    border-color: #f6c37d;
    background: #fff6e8;
    color: #9a5a00;
}

.premium-research-app tr.is-basketed td {
    background: #fff4f2;
}

.premium-research-app tr.is-basketed:hover td {
    background: #ffebe8;
}

/* Unified TTP brand mark: one shape across headers, auth screens, sidebar, and favicon family. */
.brand-mark,
.brand .brand-mark,
.mark.brand-mark,
.premium-sidebar-mark.brand-mark,
.auth-brand-mark.brand-mark {
    --brand-mark-size: 30px;
    --brand-mark-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    line-height: 1;
    text-decoration: none;
}

.brand-mark.brand-mark-light {
    --brand-mark-color: #07111f;
}

.brand-mark.brand-mark-dark {
    --brand-mark-color: #ffffff;
}

.brand-mark .brand-mark-text {
    display: inline-block;
    margin: 0;
    color: var(--brand-mark-color);
    font-family: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: var(--brand-mark-size);
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0;
    line-height: .82;
    text-transform: uppercase;
}

.site-header .brand .brand-mark .brand-mark-text,
.topbar .brand .brand-mark .brand-mark-text {
    color: var(--brand-mark-color);
}

.brand-mark .brand-mark-ball {
    display: inline-block;
    width: calc(var(--brand-mark-size) * .36);
    height: calc(var(--brand-mark-size) * .36);
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 32%, #fff9b0 0 20%, transparent 21%),
        linear-gradient(135deg, #f8e34f 0%, #e1b81d 100%);
    box-shadow: inset 0 0 0 1px rgba(7, 17, 31, .16), 0 4px 10px rgba(0, 0, 0, .24);
}

.brand-mark::after,
.premium-sidebar-mark.brand-mark::after,
.premium-research-app .topbar .brand .mark.brand-mark::after {
    display: none;
    content: none;
}

.topbar .brand .brand-mark,
.site-header .brand .brand-mark {
    --brand-mark-size: 32px;
}

.premium-research-app .topbar .brand .brand-mark {
    --brand-mark-size: 30px;
    flex: 0 0 auto;
}

.premium-sidebar-brand .brand-mark {
    --brand-mark-size: 28px;
    flex: 0 0 auto;
}

.auth-copy-brand .brand-mark {
    --brand-mark-size: 42px;
}

@media (max-width: 1180px) {
    .premium-route-overview {
        grid-template-columns: 1fr;
    }

    .premium-route-stats,
    .premium-route-map-card {
        border-top: 1px solid #dbe3ee;
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .premium-research-app {
        --sidebar-width: 0px;
        display: flex;
        flex-direction: column;
    }

    .premium-research-app .topbar {
        order: 1;
        z-index: 130;
    }

    .premium-research-app .premium-sidebar {
        position: relative;
        inset: auto;
        order: 2;
        z-index: 120;
        width: 100%;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .premium-research-app .premium-sidebar::-webkit-scrollbar {
        display: none;
    }

    .premium-research-app .premium-sidebar:has(.premium-sidebar-menu[open]),
    .premium-sidebar-nav:has(.premium-sidebar-menu[open]) {
        overflow: visible;
    }

    .premium-sidebar-brand {
        min-width: 170px;
    }

    .premium-sidebar-nav {
        display: flex;
        flex: 1 0 auto;
        gap: 6px;
    }

    .premium-sidebar-menu {
        position: relative;
        flex: 0 0 auto;
    }

    .premium-sidebar-menu[open] {
        z-index: 120;
    }

    .premium-sidebar-subnav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        z-index: 120;
        width: min(280px, calc(100vw - 24px));
        max-height: min(360px, calc(100vh - 150px));
        margin-top: 0;
        padding: 8px;
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 12px;
        background: linear-gradient(180deg, #0d1a2b 0%, #07111f 100%);
        box-shadow: 0 22px 56px rgba(0, 0, 0, .34);
    }

    .premium-sidebar-sub-link {
        min-width: 0;
    }

    .premium-sidebar-link {
        flex: 0 0 auto;
    }

    .premium-sidebar-player,
    .premium-sidebar-foot {
        display: none;
    }

    .premium-research-app .topbar,
    .premium-research-app .content {
        width: 100%;
        margin-left: 0;
    }

    .premium-research-app .content {
        order: 3;
    }

    .premium-research-app .topbar .brand {
        display: flex;
    }

    .premium-research-app .content {
        padding: 18px 14px 36px;
    }

    .premium-route-steps {
        grid-template-columns: 1fr;
    }

    .premium-route-step::after {
        display: none;
    }

    .premium-research-app .content > .workbar .workbar-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .premium-research-app .workbar-context {
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .premium-research-app .topbar-inner {
        padding: 10px 14px;
    }

    .premium-research-app .top-actions {
        justify-content: flex-start;
    }

    .premium-research-app .premium-page-heading h2 {
        font-size: 24px;
    }

    .premium-route-stats {
        grid-template-columns: 1fr;
    }

    .premium-route-stats div {
        min-height: 62px;
        border-top: 1px solid #dbe3ee;
        border-left: 0;
    }

    .premium-route-stats div:first-child {
        border-top: 0;
    }

    .premium-research-app .filters {
        grid-template-columns: 1fr;
    }

    .premium-research-app .schedule-switch,
    .premium-research-app .schedule-switch label,
    .premium-research-app .schedule-switch select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .topbar-inner,
    .header-inner,
    .premium-research-app .topbar-inner {
        gap: 10px 7px;
        padding-block: 8px;
    }

    .topbar .brand,
    .site-header .brand,
    .premium-research-app .topbar .brand {
        flex-basis: 100%;
    }

    .topbar .brand-tagline,
    .site-header .brand > span > span,
    .premium-research-app .topbar .brand-tagline {
        display: none;
    }

    .topbar .nav,
    .site-header .nav,
    .premium-research-app .topbar .nav {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .topbar .nav:has(.locale-picker[open]),
    .site-header .nav:has(.locale-picker[open]),
    .premium-research-app .topbar .nav:has(.locale-picker[open]) {
        overflow: visible;
    }

    .topbar .nav > *,
    .site-header .nav > *,
    .premium-research-app .topbar .nav > * {
        flex: 0 0 auto;
    }

    .topbar .current-player,
    .topbar .current-account {
        max-width: 98px;
    }

    .topbar .locale-picker {
        min-width: 116px;
    }

    .topbar .locale-picker-menu,
    .site-header .locale-picker-menu,
    .premium-research-app .topbar .locale-picker-menu {
        right: auto;
        left: 0;
        width: min(230px, calc(100vw - 24px));
        max-height: min(420px, calc(100vh - 120px));
    }

    .locale-picker-trigger {
        min-height: 32px;
        padding: 6px 8px;
    }
}
