/* Eurovision Hub navigation shell — loaded after the legacy bundle on purpose. */
@media (min-width: 761px) {
  :root {
    --hub-rail: 264px;
    --hub-top: 80px;
    --hub-ticker: 0px;
  }

  body.hub-party-design .hub-sidebar {
    width: 264px;
    padding: 18px 12px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #5f526d transparent;
    background: linear-gradient(180deg, #18072a 0, #0d031b 48%, #0a0315 100%);
    border-inline-end: 1px solid rgba(255, 255, 255, .1);
    transition: width .32s cubic-bezier(.22, .8, .22, 1), padding .32s cubic-bezier(.22, .8, .22, 1);
  }

  body.hub-party-design .hub-sidebar::-webkit-scrollbar { width: 6px; }
  body.hub-party-design .hub-sidebar::-webkit-scrollbar-thumb { border-radius: 99px; background: #5f526d; }
  body.hub-party-design .hub-content-shell {
    width: auto !important;
    max-width: none;
    margin-inline-start: 264px;
    transition: margin-inline-start .32s cubic-bezier(.22, .8, .22, 1);
  }

  body.hub-party-design .hub-sidebar-brand {
    display: flex;
    justify-content: flex-start;
    flex: 0 0 auto;
    height: 50px;
    min-height: 50px;
    margin: 0 2px 10px;
    padding: 0 3px;
    opacity: 1;
    transition: opacity .18s ease, transform .3s ease;
  }
  body.hub-party-design .hub-sidebar-brand img {
    display: block;
    width: min(214px, 100%);
    max-width: 214px;
    max-height: 61px;
    object-position: left center;
  }
  [dir="rtl"] body.hub-party-design .hub-sidebar-brand img { object-position: right center; }
  body:not(.hub-sidebar-collapsed).hub-party-design .hub-sidebar-brand span,
  body:not(.hub-sidebar-collapsed).hub-party-design .hub-sidebar-brand b,
  body:not(.hub-sidebar-collapsed).hub-party-design .hub-sidebar-brand i { display: inline; }

  .hub-sidebar-compact-mark {
    display: none;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0 auto 13px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff3a95, #ffcc3b);
    color: #17051c;
    font: 900 18px/1 Archivo, sans-serif;
  }
  .hub-sidebar-season {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0 3px 12px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 211, 45, .45);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(112, 76, 19, .56), rgba(121, 22, 74, .65));
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: normal;
  }
  .hub-sidebar-season i { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #c8a545; }
  .hub-sidebar-season span { max-width: 190px; overflow: hidden; opacity: 1; transition: max-width .25s ease, opacity .16s ease; }

  .hub-side-group { flex: 0 0 auto; }
  .hub-side-group + .hub-side-group { margin-top: 8px; }
  .hub-side-user-group { margin-top: auto !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
  body.hub-party-design .hub-side-section-label {
    display: block;
    margin: 0;
    padding: 9px 11px 6px;
    color: #8870a2;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .2em;
    white-space: nowrap;
    opacity: 1;
    transition: opacity .16s ease;
  }
  body.hub-party-design .hub-side-nav { display: grid; gap: 2px; }
  body.hub-party-design .hub-side-link {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 0 13px;
    gap: 11px;
    border-radius: 13px;
    color: #f0e9f8;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
  }
  body.hub-party-design .hub-side-link > span:not(.hub-side-icon) {
    display: inline;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: max-width .25s ease, opacity .15s ease;
  }
  body.hub-party-design .hub-side-icon { display: grid; place-items: center; flex: 0 0 18px; width: 18px; color: #ff3c9a; font-size: 12px; }
  .hub-side-link-home .hub-side-icon { color: #fff !important; }
  .hub-side-link-quizzes .hub-side-icon { color: #ffd72e !important; }
  .hub-side-link-song-swipe .hub-side-icon { color: #ff3092 !important; }
  .hub-side-link-news .hub-side-icon { color: #fff !important; }
  .hub-side-link-calendar .hub-side-icon,
  .hub-side-link-songs .hub-side-icon { color: #19d7ed !important; }
  .hub-side-link-years .hub-side-icon { color: #ffdc31 !important; }
  .hub-side-link-results .hub-side-icon { color: #ff30a1 !important; }
  .hub-side-link-countries .hub-side-icon { color: #805cff !important; }
  .hub-side-link-artists .hub-side-icon { color: #ff69bd !important; }
  .hub-side-link-odds .hub-side-icon { color: #bfff35 !important; }
  .hub-side-personal .hub-side-icon { color: #c6ff35 !important; }
  body:not(.hub-sidebar-collapsed).hub-party-design .hub-side-link em { display: grid; }
  body.hub-party-design .hub-side-link small { display: block; margin-inline-start: auto; color: #8e76a9; font-size: 9px; font-weight: 700; font-style: normal; }
  body.hub-party-design .hub-side-link-quizzes small {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 18px;
    border-radius: 999px;
    background: #ffdc31;
    color: #17051d !important;
    font-size: 8px !important;
    font-weight: 950 !important;
  }
  .hub-side-user-avatar { overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, #7569ff, #2ed7ea); }
  .hub-side-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .hub-side-logout { color: #a993bd !important; }
  .hub-sidebar-legal { display: flex; gap: 14px; margin-top: 0; padding: 18px 13px 0; color: #8c739f; font-size: 9px; }
  .hub-sidebar-legal a { white-space: nowrap; }

  body.hub-party-design .hub-topbar {
    display: grid;
    grid-template-columns: 46px minmax(260px, 1fr) auto auto;
    align-items: center;
    height: 80px;
    min-height: 80px;
    padding: 14px 25px;
    gap: 14px;
    background: #10051e;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  body.hub-party-design .hub-sidebar-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    background: #1b1327;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: transform .3s ease, background .18s ease;
  }
  body.hub-party-design .hub-sidebar-toggle:hover { background: #241832; }
  body.hub-party-design .hub-sidebar-toggle:focus-visible { outline: 2px solid #ffd42f; outline-offset: 2px; }
  [dir="rtl"] body.hub-party-design .hub-sidebar-toggle { transform: scaleX(-1); }
  body.hub-party-design .hub-global-search { display: block; min-height: 44px; border: 0; background: transparent; }
  body.hub-party-design .hub-global-search > span { left: 17px; font-size: 15px; }
  [dir="rtl"] body.hub-party-design .hub-global-search > span { left: auto; right: 17px; }
  body.hub-party-design .hub-global-search input {
    width: 100%;
    height: 44px;
    padding: 0 43px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: #1b1427;
    font-size: 12px;
    font-weight: 500;
  }
  body.hub-party-design .hub-topbar > .hub-archive-trigger,
  body.hub-party-design .hub-topbar > .hub-season-pill,
  body.hub-party-design .hub-odds-ticker { display: none !important; }
  body.hub-party-design .hub-language-switcher { position: relative; }
  body.hub-party-design .hub-language-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 101px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: #1c1428;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
  }
  .hub-language-current-flag { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; }
  body.hub-party-design .hub-language-trigger i { font-size: 9px; font-style: normal; color: #8f78a5; }
  body.hub-party-design .hub-language-menu { top: 52px; inset-inline-end: 0; }
  body.hub-party-design .hub-party-cta { display: flex; min-width: 142px; height: 42px; min-height: 42px; padding: 0 20px; font-size: 12px; }

  body.hub-sidebar-collapsed .hub-sidebar { width: 76px; padding-inline: 7px; }
  body.hub-sidebar-collapsed .hub-content-shell { margin-inline-start: 76px; }
  body.hub-sidebar-collapsed .hub-sidebar-brand { position: absolute; opacity: 0; pointer-events: none; transform: translateY(-8px); }
  body.hub-sidebar-collapsed .hub-sidebar-compact-mark { display: grid; }
  body.hub-sidebar-collapsed .hub-sidebar-season {
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0 auto 9px;
    padding: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 46, 147, .33), rgba(124, 77, 255, .25));
  }
  body.hub-sidebar-collapsed .hub-sidebar-season i { display: none; }
  body.hub-sidebar-collapsed .hub-sidebar-season::after { content: "◈"; color: #fff; font-size: 14px; }
  body.hub-sidebar-collapsed .hub-sidebar-season span { max-width: 0; opacity: 0; }
  body.hub-sidebar-collapsed .hub-side-section-label {
    height: 12px;
    margin: 9px 20px 6px;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .11);
    color: transparent;
    opacity: 1;
  }
  body.hub-sidebar-collapsed .hub-side-group + .hub-side-group { margin-top: 2px; }
  body.hub-sidebar-collapsed .hub-side-user-group { margin-top: auto !important; padding-top: 2px; border-top: 0; }
  body.hub-sidebar-collapsed .hub-side-link {
    justify-content: center;
    width: 48px;
    height: 44px;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }
  body.hub-sidebar-collapsed .hub-side-link > span:not(.hub-side-icon) { max-width: 0; opacity: 0; }
  body.hub-sidebar-collapsed .hub-side-link small,
  body.hub-sidebar-collapsed .hub-side-link em,
  body.hub-sidebar-collapsed .hub-sidebar-legal { display: none; }
  body.hub-sidebar-collapsed .hub-side-icon { font-size: 14px; }
  body.hub-sidebar-collapsed .hub-sidebar-toggle { transform: rotate(180deg); }
  [dir="rtl"] body.hub-sidebar-collapsed .hub-sidebar-toggle { transform: scaleX(-1) rotate(180deg); }
}

@media (min-width: 761px) {
  body.hub-party-design .hub-topbar.has-messages { grid-template-columns: 46px minmax(260px, 1fr) 42px 42px auto auto; }
  body.hub-party-design .hub-messages-button { display: grid; }
}

.hub-notification-center { position: relative; }
.hub-notification-button,.hub-mobile-notification-button { position:relative;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.14);border-radius:13px;background:#1c1428;color:#fff;font-size:20px;cursor:pointer }
.hub-notification-button:hover,.hub-notification-button[aria-expanded="true"] { border-color:#ff3699;background:#36153f }
.hub-notification-button b,.hub-mobile-notification-button span { position:absolute;inset-block-start:-6px;inset-inline-end:-6px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:2px solid #10051e;border-radius:999px;background:#ff3699;color:#fff;font:900 10px/1 system-ui }
.hub-notification-panel { position:absolute;z-index:1000;inset-block-start:52px;inset-inline-end:0;width:min(390px,calc(100vw - 24px));overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:#150921;box-shadow:0 24px 70px rgba(0,0,0,.62);color:#fff }
.hub-notification-panel>header { padding:18px 19px 14px;border-bottom:1px solid rgba(255,255,255,.1);background:linear-gradient(115deg,rgba(255,47,151,.16),rgba(88,65,255,.1)) }
.hub-notification-panel h2 { margin:0 0 4px;font-size:20px }.hub-notification-panel header small{color:#a993bd;font-size:11px}.hub-notification-panel>div{max-height:min(510px,70vh);overflow:auto}.hub-notification-panel a{display:grid;grid-template-columns:38px 1fr;gap:11px;padding:13px 16px;border-bottom:1px solid rgba(255,255,255,.07);color:#fff;text-decoration:none}.hub-notification-panel a:hover{background:rgba(255,255,255,.055)}.hub-notification-panel a.unread{background:rgba(255,48,157,.08)}.hub-notification-panel a>i{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#783eff,#20d8e5);font-style:normal}.hub-notification-panel a span{min-width:0}.hub-notification-panel a strong,.hub-notification-panel a small,.hub-notification-panel a time{display:block}.hub-notification-panel a strong{font-size:13px}.hub-notification-panel a small{margin-top:3px;color:#c3b0d3;font-size:11px;line-height:1.35}.hub-notification-panel a time{margin-top:5px;color:#816c97;font-size:9px}.hub-notification-panel>div>p{padding:28px 18px;text-align:center;color:#9f89b4}
.content-report-dialog{width:min(480px,calc(100vw - 30px));padding:0;border:1px solid rgba(255,255,255,.18);border-radius:20px;background:#160b23;color:#fff;box-shadow:0 30px 90px #000}.content-report-dialog::backdrop{background:rgba(5,0,12,.76);backdrop-filter:blur(4px)}.content-report-dialog form{padding:20px}.content-report-dialog header,.content-report-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.content-report-dialog h2{margin:0;font-size:22px}.content-report-dialog header button{border:0;background:none;color:#fff;font-size:25px}.content-report-dialog label{display:grid;gap:7px;margin-top:16px;color:#b49cc7;font-size:12px;font-weight:800}.content-report-dialog select,.content-report-dialog textarea{width:100%;padding:12px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:#21152e;color:#fff}.content-report-dialog textarea{min-height:100px;resize:vertical}.content-report-dialog footer{justify-content:flex-end;margin-top:18px}.content-report-dialog footer button{padding:11px 18px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:#25172f;color:#fff;font-weight:800}.content-report-dialog footer .primary{border:0;background:linear-gradient(90deg,#ff2f98,#ffd335);color:#16051d}.message-report-button{align-self:flex-start;border:0;background:none;color:#9f87b4;font-size:10px;cursor:pointer}

@media (max-width: 760px) {
  .hub-notification-center{position:static}.hub-notification-button{display:none}.hub-notification-panel{position:fixed;inset:66px 10px auto 10px;width:auto;max-height:calc(100vh - 78px)}
  body.hub-party-design .hub-mobile-message-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: #1c1428;
    color: #fff;
  }
  body.hub-party-design .hub-topbar.has-messages .hub-mobile-actions { gap: 4px; }
  body.hub-party-design .hub-topbar.has-messages .hub-mobile-actions > * { width: 36px; height: 36px; }
  body.hub-party-design .hub-topbar.has-messages .hub-mobile-brand { max-width: min(190px, calc(100vw - 190px)); }
}

/* Restored odds newswire below the sticky top bar. Full-screen utilities keep
   their purpose-built chrome, while regular desktop and mobile routes show it. */
@media (min-width: 761px) {
  :root { --hub-ticker: 38px; }
}
body.hub-party-design:not(.messages-inbox-page):not(.not-found-page):not(.settings-edit-page):not(.auth-design-page):not(.song-swipe-design) .hub-odds-ticker {
  position: sticky;
  top: var(--hub-top);
  z-index: 590;
  display: grid !important;
  grid-template-columns: 140px minmax(0, 1fr) !important;
  width: 100%;
  height: 38px !important;
  min-height: 38px !important;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
  background: #0b0518 !important;
  box-shadow: none !important;
}
body.hub-party-design .hub-odds-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 18px !important;
  gap: 8px !important;
  border: 0 !important;
  background: linear-gradient(105deg, #ffd43b, #ff9428) !important;
  color: #12091b !important;
  font: 900 12px/1 Archivo, Inter, sans-serif !important;
  letter-spacing: .16em !important;
}
body.hub-party-design .hub-odds-label span { color: #8f7628 !important; font-size: 10px !important; }
body.hub-party-design .hub-odds-viewport { height: 100%; background: #0b0518 !important; }
body.hub-party-design .hub-odds-group { gap: 38px !important; padding-inline: 22px 38px !important; }
body.hub-party-design .hub-odds-item,
body.hub-party-design .hub-odds-item b {
  color: #bcb1d0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
body.hub-party-design .hub-odds-probability {
  margin-inline-start: -4px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
body.hub-party-design .hub-odds-item span { margin-inline-start: -5px !important; font-size: 12px !important; font-weight: 900 !important; }

@media (max-width: 760px) {
  :root { --hub-ticker: 38px; }
  body.hub-party-design:not(.messages-inbox-page):not(.not-found-page):not(.settings-edit-page):not(.auth-design-page):not(.song-swipe-design) .hub-odds-ticker {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }
  body.hub-party-design .hub-odds-label { padding-inline: 10px !important; font-size: 10px !important; letter-spacing: .11em !important; }
  body.hub-party-design .hub-odds-group { gap: 28px !important; padding-inline: 16px 28px !important; }
  body.hub-party-design .hub-odds-item,
  body.hub-party-design .hub-odds-item b,
  body.hub-party-design .hub-odds-probability { font-size: 12px !important; }
  body.hub-party-design .hub-odds-item span { font-size: 12px !important; }
}

@media (max-width: 760px) {
  body.hub-party-design .hub-sidebar-toggle { display: none !important; }
  body.hub-party-design .hub-content-shell { margin-inline-start: 0 !important; }
  body.hub-party-design .hub-mobile-nav-group { padding-block: 11px; }
  body.hub-party-design .hub-mobile-nav-group + .hub-mobile-nav-group { border-top: 1px solid rgba(255, 255, 255, .09); }
  body.hub-party-design .hub-mobile-nav-row > small { color: #927ba7; font-size: 9px; font-weight: 800; }
  body.hub-party-design .hub-mobile-nav-row b { font-size: 16px; }
}

/* Profile settings belong to the same application shell as every other page. */
@media (min-width: 761px) {
  body.settings-edit-page.hub-party-design .hub-sidebar { display: flex !important; }
  body.settings-edit-page.hub-party-design .hub-topbar { display: grid !important; }
  body.settings-edit-page.hub-party-design .hub-content-shell {
    width: auto !important;
    margin-inline-start: 264px !important;
  }
  body.settings-edit-page.hub-sidebar-collapsed .hub-content-shell { margin-inline-start: 76px !important; }
}

body.settings-edit-page .hub-app-shell { display: block; min-height: 100vh; }
body.settings-edit-page .site-footer { display: block !important; }
body.settings-edit-page .site-main {
  width: min(1480px, calc(100% - 48px));
  max-width: 1480px;
  min-height: calc(100vh - 80px);
  margin: 24px auto 72px;
  padding: 0 !important;
}
body.settings-edit-page .profile-settings-page {
  display: block;
  min-height: 0;
  border-radius: 24px;
}
body.settings-edit-page .profile-settings-user-rail { display: none !important; }
body.settings-edit-page .profile-settings-header p { font-size: 13px; }
body.settings-edit-page .profile-settings-section-nav a { font-size: 14px; }
body.settings-edit-page .profile-settings-section-nav { top: 80px; }
body.settings-edit-page .profile-settings-avatar-copy > p { font-size: 14px; }
body.settings-edit-page .profile-settings-fields input,
body.settings-edit-page .profile-settings-fields select,
body.settings-edit-page .profile-settings-fields textarea { font-size: 15px; }
body.settings-edit-page .profile-settings-fields label > span,
body.settings-edit-page .profile-settings-avatar-copy > span { font-size: 11px; }
body.settings-edit-page .profile-settings-panel > p,
body.settings-edit-page .profile-settings-country-grid label,
body.settings-edit-page .profile-settings-password summary b { font-size: 13px; }

.profile-settings-control,
.profile-pronoun-field { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-settings-control-label,
.profile-pronoun-field > legend {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  color: #9c81b9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.profile-pronoun-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-pronoun-options label { position: relative; display: block; cursor: pointer; }
.profile-pronoun-options input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.profile-settings-fields .profile-pronoun-options label > span {
  display: grid;
  place-items: center;
  min-height: 51px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: #1b1327;
  color: #cdbbdb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.profile-settings-fields .profile-pronoun-options label:hover span { border-color: rgba(255, 62, 157, .5); color: #fff; }
.profile-settings-fields .profile-pronoun-options input:checked + span {
  border-color: #ff3b99;
  background: linear-gradient(110deg, rgba(255, 47, 150, .28), rgba(111, 70, 229, .3));
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 47, 150, .1);
}
.profile-settings-fields .profile-pronoun-options input:focus-visible + span { outline: 2px solid #ffd331; outline-offset: 2px; }

body.settings-edit-page .profile-settings-country-grid { gap: 10px; padding: 3px 5px 3px 3px; }
body.settings-edit-page .profile-settings-country-grid label {
  justify-content: flex-start;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 8px 12px;
}
body.settings-edit-page .profile-settings-country-grid input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
}
body.settings-edit-page .profile-settings-country-grid img { flex: 0 0 25px; width: 25px; height: 18px; object-fit: cover; }
body.settings-edit-page .profile-settings-country-grid label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-select { position: relative; }
.profile-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 51px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: #1b1327;
  color: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.profile-select.is-open .profile-select-trigger,
.profile-select-trigger:focus-visible { border-color: #a41c71; background: #20152f; box-shadow: 0 0 0 3px rgba(255, 47, 145, .13); outline: 0; }
.profile-select-trigger > span,
.profile-select-option-main { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: start; }
.profile-select-trigger b,
.profile-select-option-main b { overflow: hidden; color: #fff; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.profile-select-trigger > em { flex: 0 0 auto; color: #a688c3; font-size: 12px; font-style: normal; transition: transform .18s ease; }
.profile-select.is-open .profile-select-trigger > em { transform: rotate(180deg); }
.profile-select-flag { flex: 0 0 27px; width: 27px; height: 19px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .13); }
.profile-select-empty { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 19px; border-radius: 4px; background: #30263d; color: #9b86ae; font-size: 12px; font-style: normal; }
.profile-select-year { display: grid; place-items: center; flex: 0 0 56px; min-width: 56px; height: 27px; border-radius: 8px; background: linear-gradient(110deg, #7839d7, #ff3797); color: #fff; font: 800 11px/1 Archivo, sans-serif; font-style: normal; }
.profile-select-popover {
  position: absolute;
  z-index: 80;
  inset-inline: 0;
  top: calc(100% + 8px);
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 17px;
  background: #160a24;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .52);
}
.profile-select-popover[hidden] { display: none; }
.profile-select-search { position: relative; display: block !important; margin-bottom: 8px; }
.profile-select-search > span { position: absolute; z-index: 2; inset-inline-start: 14px; top: 50%; margin: 0 !important; color: #9f86b8 !important; font-size: 15px !important; transform: translateY(-50%); }
.profile-select-search input {
  height: 42px !important;
  padding-inline: 39px 13px !important;
  border-radius: 12px !important;
  background: #21152e !important;
  font-size: 13px !important;
}
.profile-select-options { display: grid; gap: 3px; max-height: 270px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5f4972 transparent; }
.profile-select-options > button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 7px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.profile-select-options > button[hidden] { display: none; }
.profile-select-options > button:hover,
.profile-select-options > button:focus-visible { background: rgba(255, 255, 255, .07); outline: 0; }
.profile-select-options > button[aria-selected="true"] { background: linear-gradient(90deg, rgba(255, 47, 151, .22), rgba(115, 68, 216, .19)); }
.profile-select-options > button[aria-selected="true"]::after { content: "✓"; margin-inline-start: auto; color: #c8ff37; font-weight: 900; }
.profile-select-option-main { width: 100%; }
.profile-select-option-main small { margin-inline-start: auto; color: #9075a8; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.profile-select-no-results { margin: 8px 4px 4px !important; color: #9c84b2 !important; font-size: 12px !important; text-align: center; }

body.hub-route-rankings .ranking-row { font-size: 15px; line-height: 1.4; }
body.hub-route-rankings .ranking-row strong,
body.hub-route-rankings .ranking-row span { font-size: 16px; }
body.hub-route-rankings .ranking-row select,
body.hub-route-rankings .ranking-row button { font-size: 14px; }
body.hub-route-rankings .ranking-empty { padding: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #171022; color: #a991bd; font-size: 15px; text-align: center; }

/* Width and headline stabilization for the home and quiz directories. */
body.hub-route-home .latest-news-showcase,
body.hub-route-home .archive-showcase { box-sizing: border-box; max-width: 100%; overflow: hidden; }
body.hub-route-home .latest-news-showcase-grid,
body.hub-route-home .archive-showcase-grid { min-width: 0; max-width: 100%; }
body.quiz-directory-design .quiz-directory-page { width: min(1440px, 100%); overflow: hidden; }
body.quiz-directory-design .quiz-directory-copy { min-width: 0; }
body.quiz-directory-design .quiz-directory-copy h1 {
  max-width: none;
  font-size: clamp(48px, 5.2vw, 80px);
  line-height: .98;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

@media (max-width: 760px) {
  body.settings-edit-page.hub-party-design .hub-sidebar { display: none !important; }
  body.settings-edit-page.hub-party-design .hub-topbar { display: grid !important; }
  body.settings-edit-page .hub-mobile-sheet { display: flex !important; }
  body.settings-edit-page.hub-party-design .hub-content-shell {
    width: 100% !important;
    margin-inline-start: 0 !important;
  }
  body.settings-edit-page .site-main {
    width: calc(100% - 24px);
    min-height: calc(100vh - 72px);
    margin: 12px auto 48px;
  }
  body.settings-edit-page .profile-settings-page { border-radius: 20px; }
  body.settings-edit-page .profile-settings-header { padding-inline: 18px; }
  body.settings-edit-page .profile-settings-section-nav { top: 72px; }
  body.hub-party-design .hub-mobile-brand img {
    display: block;
    width: min(190px, 100%);
    max-width: 190px;
    height: 48px;
    object-fit: contain;
    transform: none;
  }
  body.hub-party-design .hub-mobile-brand {
    position: static;
    left: auto;
    justify-self: center;
    width: 100%;
    max-width: 196px;
    height: 52px;
    overflow: hidden;
    transform: none;
  }
  body.quiz-directory-design .quiz-directory-page { padding-inline: 16px; }
  body.quiz-directory-design .quiz-directory-copy h1 {
    margin-top: 5px;
    font-size: clamp(42px, 12vw, 50px);
    line-height: 1;
    letter-spacing: -.015em;
    text-wrap: pretty;
  }
  body.quiz-directory-design .quiz-directory-copy > span { display: block; margin-bottom: 4px; font-size: 12px; }
  body.quiz-directory-design .quiz-directory-numbers { gap: 9px; }
  body.quiz-directory-design .quiz-directory-numbers div { min-width: 0; padding: 15px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  body.hub-party-design .hub-sidebar,
  body.hub-party-design .hub-content-shell,
  .hub-sidebar-toggle,
  .hub-sidebar-brand,
  .hub-sidebar-season span,
  .hub-side-link > span { transition: none !important; }
}

/* Unified search: this file is loaded after the general theme, so these rules are authoritative. */
body.hub-party-design .hub-topbar > .hub-global-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 15px;
  background: #1a1225;
}
body.hub-party-design .hub-topbar > .hub-global-search > span {
  position: absolute;
  inset-inline-start: 16px;
  z-index: 1;
  color: #a58abf;
  pointer-events: none;
}
body.hub-party-design .hub-topbar > .hub-global-search input {
  width: 100%;
  height: 42px;
  padding-inline: 42px 16px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  outline: 0;
}
body.hub-party-design .hub-topbar > .hub-global-search:focus-within {
  border-color: rgba(255, 46, 151, .7);
  box-shadow: 0 0 0 3px rgba(255, 46, 151, .12);
}
body.hub-party-design .live-search-panel,
body.hub-party-design .hub-mobile-sheet-search .live-search-panel {
  z-index: 90;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: #160a25;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .42);
}
body.hub-party-design .live-search-panel a {
  border-radius: 11px;
  color: #fff;
}
body.hub-party-design .live-search-panel a:hover,
body.hub-party-design .live-search-panel a:focus-visible,
body.hub-party-design .live-search-panel a.is-active {
  background: linear-gradient(90deg, rgba(255, 46, 151, .18), rgba(117, 72, 255, .16));
}

@media (max-width: 760px) {
  body.hub-party-design .hub-topbar > .hub-global-search { display: none !important; }
  body.hub-party-design .hub-mobile-sheet-search { position: relative; }
  body.hub-party-design .hub-mobile-sheet-search input {
    width: 100%;
    height: 46px;
    padding-inline: 42px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    outline: 0;
  }
  body.hub-party-design .hub-mobile-sheet-search:focus-within input { border-color: #ff2e97; }
  body.hub-party-design .hub-mobile-sheet-search .live-search-panel {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    max-height: min(58vh, 460px);
    overflow: auto;
  }
}
