/* Оболочка сайта: шапка, сайдбар, таб-бар и шторки телефона, меню аккаунта (docs/mockups/main-layout-grouped-sidebar.html).

   Здесь только то, до чего изолированный CSS компонентов не достаёт: токены цветов (их читают и компоненты
   оболочки, и поповеры), общие метки нескольких компонентов и содержимое меню, подсказок и шторки «Ещё»,
   которое MudBlazor рисует в провайдерах поповеров и диалогов вне дерева лейаута. Всё с префиксом shell-. */

/* Угол бегущего градиента по рамке кнопки «Премиум». @property нужен, чтобы угол анимировался плавно. */
@property --shell-premium-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes shell-premium-spin {
    to {
        --shell-premium-angle: 360deg;
    }
}

:root {
    --shell-primary-l: #02b3ed;
    --shell-text: #eeeeee;
    --shell-text-2: rgba(238, 238, 238, .7);
    --shell-text-3: rgba(238, 238, 238, .48);
    --shell-warning: #f2bc67;
    --shell-success: #8ecda6;
    --shell-heart: #f4645a;
    --shell-admin: #f58b83;
    --shell-line: rgba(255, 255, 255, .08);
    --shell-line-2: rgba(255, 255, 255, .14);
    --shell-hover: rgba(255, 255, 255, .06);
    --shell-sel: rgba(2, 179, 237, .14);
    --shell-tip: #111317;

    /* Цвета логотипа: «маркеры.» в названии, кнопка «Премиум», свечение шара. */
    --shell-logo-red: #ef4444;
    --shell-logo-red-l: #f87171;
    --shell-logo-red-pale: #ffb4b4;
    --shell-logo-red-dark: #510e0e;
    --shell-logo-glow: rgba(239, 68, 68, .25);

    /* Цвета групп меню: корешок вдоль пунктов и плашки под иконками в сайдбаре и шторке «Ещё». Контраст
       с сайдбаром, шторкой и контентом не ниже 4.5:1. Красный бренда занят логотипом и кнопкой «Премиум». */
    --shell-g-neutral: #b0b6bd;
    --shell-g-players: #5cc8f8;
    --shell-g-tournaments: #9ccc65;
    --shell-g-media: #ff9b78;
    --shell-g-fun: #d6a2e0;
    --shell-g-paid: #f7a1c0;
    --shell-g-reports: #5ccabe;
    --shell-g-admin: #ffcf4a;
    --shell-plate-ink: #15161a;
}

/* Цвет группы по NavSection.Color: атрибут data-nav-group у группы сайдбара и у секции шторки «Ещё».
   У пункта атрибут задаёт цвет его плашки (NavigationCatalog.GetItemColor): у пунктов «Основного» — цвет тематической группы. */
[data-nav-group="Neutral"] {
    --shell-gc: var(--shell-g-neutral);
}

[data-nav-group="Players"] {
    --shell-gc: var(--shell-g-players);
}

[data-nav-group="Tournaments"] {
    --shell-gc: var(--shell-g-tournaments);
}

[data-nav-group="Media"] {
    --shell-gc: var(--shell-g-media);
}

[data-nav-group="Fun"] {
    --shell-gc: var(--shell-g-fun);
}

[data-nav-group="Paid"] {
    --shell-gc: var(--shell-g-paid);
}

[data-nav-group="Reports"] {
    --shell-gc: var(--shell-g-reports);
}

[data-nav-group="Admin"] {
    --shell-gc: var(--shell-g-admin);
}

/* Высота таб-бара телефона (оболочка телефона — уже Md, 960 px). Переменная глобальная: от таб-бара отступают
   и элементы вне оболочки — баннер cookies и уведомления MudBlazor. */
@media (max-width: 959.98px) {
    :root {
        --shell-tabbar-height: 74px;
    }

    .mud-snackbar-location-bottom-center {
        bottom: calc(var(--shell-tabbar-height) + 18px);
    }
}

/* Метка сборки в шапке десктопа и телефона (ShellEnvironmentBadge). */
.shell-env {
    flex: none;
    color: var(--shell-warning);
    font-size: 12px;
    white-space: nowrap;
}

/* Метки Live у фэнтези и «Новое» у нового раздела: в сайдбаре и на плитке шторки «Ещё». */
.shell-badge-live,
.shell-badge-new {
    flex: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--shell-warning);
    color: #24180a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.shell-badge-new {
    padding: 1px 5px;
    background: var(--shell-primary-l);
    color: #001c25;
    font-size: 8.5px;
}

/* Пульс «фэнтези-лига идёт сейчас»: на иконке фэнтези в шапке и на вкладке «Ещё». Место пульса задаёт компонент. */
.shell-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--shell-warning);
    box-shadow: 0 0 0 2px var(--mud-palette-appbar-background);
}

.shell-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--shell-warning);
    animation: shell-pulse 1.8s ease-out infinite;
}

@keyframes shell-pulse {
    from {
        transform: scale(1);
        opacity: .7;
    }

    to {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Подсказки свёрнутого сайдбара и шапки. */
.mud-tooltip.shell-tip {
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--shell-tip);
    color: var(--shell-text);
    font-size: 12.5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

/* Меню аккаунта и его подменю «Сбросить кеш». */
.shell-account-popover {
    width: 300px;
    padding: 6px;
    border: 1px solid var(--shell-line-2);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.shell-account-popover .mud-menu-list {
    padding: 0;
}

.shell-account-popover .mud-menu-item {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13.5px;
}

.shell-account-popover .mud-menu-item:hover {
    background: var(--shell-hover);
}

.shell-account-popover .mud-menu-item .mud-menu-item-icon {
    margin-inline-end: 12px;
    color: var(--shell-text-2);
    font-size: 20px;
}

.shell-account-popover .mud-menu-item .mud-menu-item-text {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    font-size: inherit;
    line-height: 1.35;
}

.shell-account-popover .shell-mi__label {
    flex: 1;
    min-width: 0;
}

.shell-account-popover .shell-mi__end {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--shell-text-3);
    font-size: 12px;
}

.shell-account-popover .shell-mi__end--ok {
    color: var(--shell-success);
}

.shell-account-popover .shell-mi__end--action {
    color: var(--shell-primary-l);
    font-weight: 500;
}

.shell-account-popover .shell-mi__end-icon {
    font-size: 16px;
}

.shell-account-popover .shell-menu-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 12px;
}

.shell-account-popover .shell-menu-profile__text {
    min-width: 0;
}

.shell-account-popover .shell-menu-profile__name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.shell-account-popover .shell-menu-profile__email {
    display: block;
    color: var(--shell-text-3);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.shell-account-popover .shell-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: 2px;
}

.shell-account-popover .shell-tag--admin {
    background: rgba(242, 28, 13, .16);
    color: var(--shell-admin);
}

.shell-account-popover .shell-sub-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--shell-warning);
    font-size: 12px;
}

.shell-account-popover .shell-sub-line__icon {
    font-size: 14px;
    color: var(--shell-heart);
}

.shell-account-popover .shell-sub-line--none {
    color: var(--shell-text-3);
}

.shell-account-popover .shell-link-btn {
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--shell-primary-l);
    font: inherit;
    cursor: pointer;
}

.shell-account-popover .shell-link-btn:hover {
    text-decoration: underline;
}

.shell-account-popover .shell-menu-group {
    padding: 6px 0;
    border-top: 1px solid var(--shell-line);
}

.shell-account-popover .shell-menu-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: var(--shell-text-3);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.shell-account-popover .shell-menu-group--admin .shell-menu-label {
    color: var(--shell-admin);
}

.shell-account-popover .shell-menu-label__icon {
    font-size: 16px;
}

.shell-account-popover .shell-menu-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 2px;
    color: var(--shell-text-3);
    font: 11.5px/1.3 ui-monospace, Consolas, monospace;
}

.shell-account-popover .shell-menu-meta__icon {
    font-size: 16px;
}

/* Шторка «Ещё» на телефоне (ShellMoreSheet): MudDialog у нижнего края экрана на всю ширину. */
.mud-dialog-container:has(.shell-sheet) {
    padding-bottom: 0;
}

/* Свайп вниз двигает шторку и гасит фон из скрипта (shellSheet в shellHotkeys.js) в каждом кадре. Без отдельных слоёв Chrome
   на телефоне перерисовывал шторку с тенью и фон во весь экран на каждое движение пальца, и шторка шла за пальцем рывками. */
.mud-dialog-container:has(.shell-sheet) > .mud-overlay {
    will-change: opacity;
}

.mud-dialog.shell-sheet {
    will-change: transform;
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    margin: 0;
    border-top: 1px solid var(--shell-line-2);
    border-radius: 20px 20px 0 0;
    background: var(--mud-palette-background-gray);
    color: var(--shell-text);
    animation: shell-sheet-up .22s ease-out;
}

@keyframes shell-sheet-up {
    from {
        transform: translateY(40px);
        opacity: .4;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/* Пока шторка открыта (класс ставит shellSheet.watch в shellHotkeys.js), премиум-рамки под фоном стоят на паузе. Их анимации
   (background-position, --border-angle) не идут на композиторе и каждый кадр требуют основного потока и перерисовки, а на
   телефоне он нужен шторке, которую тянут пальцем: она теряла кадры. Классы перечислены явно: селектор [class*=…]
   заставил бы браузер пересчитывать стили всех элементов с атрибутом class при каждой смене класса на <html>. */
.shell-sheet-open .premium-border-1::before, .shell-sheet-open .premium-border-1::after,
.shell-sheet-open .premium-border-2::before, .shell-sheet-open .premium-border-2::after,
.shell-sheet-open .premium-border-3::before, .shell-sheet-open .premium-border-3::after,
.shell-sheet-open .premium-border-4::before, .shell-sheet-open .premium-border-4::after,
.shell-sheet-open .premium-border-5::before, .shell-sheet-open .premium-border-5::after,
.shell-sheet-open .premium-border-6::before, .shell-sheet-open .premium-border-6::after,
.shell-sheet-open .premium-border-7::before, .shell-sheet-open .premium-border-7::after,
.shell-sheet-open .premium-border-8::before, .shell-sheet-open .premium-border-8::after,
.shell-sheet-open .premium-border-9::before, .shell-sheet-open .premium-border-9::after,
.shell-sheet-open .premium-border-10::before, .shell-sheet-open .premium-border-10::after {
    animation-play-state: paused;
}

/* Прокручивается только тело шторки: ручка и заголовок остаются на месте. */
.mud-dialog.shell-sheet .shell-sheet__content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

/* За ручку и шапку шторку тянут вниз (shellSheet в shellHotkeys.js): своей прокрутки у браузера там нет. */
.shell-sheet__grip,
.shell-sheet__head {
    touch-action: none;
}

.shell-sheet__grip {
    flex: none;
    width: 40px;
    height: 4px;
    margin: 8px auto 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .2);
}

.shell-sheet__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px 6px 18px;
}

.shell-sheet__title {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
}

.shell-sheet__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--shell-text-2);
    cursor: pointer;
}

.shell-sheet__close:hover {
    background: var(--shell-hover);
    color: var(--shell-text);
}

/* Прокрутка тела не уходит в страницу под шторкой и не включает обновление страницы жестом. */
.shell-sheet__body {
    min-height: 0;
    padding: 4px 14px 22px;
    overflow: auto;
    overscroll-behavior: contain;
}

.shell-sheet-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 2px 0 6px;
}

.shell-sheet .shell-sheet-chips .shell-sheet-chip,
.shell-sheet .shell-sheet-chips .shell-sheet-chip:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--shell-line);
    border-radius: 17px;
    background: rgba(255, 255, 255, .06);
    color: var(--shell-text-2);
    font-size: 12.5px;
    text-decoration: none;
}

.shell-sheet .shell-sheet-chips .shell-sheet-chip:hover {
    color: var(--shell-text);
}

.shell-sheet-sec {
    margin-top: 14px;
}

/* Корешок тематической группы — полоса слева от секции. У «Основного» его нет. */
.shell-sheet-sec[data-nav-group]:not([data-nav-group="Neutral"]) {
    margin-left: -8px;
    padding-left: 6px;
    border-left: 2px solid var(--shell-gc);
}

.shell-sheet-sec__title {
    margin: 0 4px 8px;
    color: var(--shell-text-3);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Заголовок-аккордеон группы «Отчёты»: подпись как у заголовков секций, счётчик цвета группы и шеврон.
   Строка выше подписи, чтобы в неё было легко попасть пальцем; отрицательные поля сохраняют отступы заголовка. */
.shell-sheet .shell-sheet-acc {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    margin: -8px 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-transform: inherit;
    cursor: pointer;
}

.shell-sheet-acc__count {
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 9px;
    background: var(--shell-gc);
    color: var(--shell-plate-ink);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}

.shell-sheet .shell-sheet-acc__chev {
    margin-left: auto;
    font-size: 20px;
    transform: rotate(-90deg);
    transition: transform .15s;
}

.shell-sheet .shell-sheet-acc[aria-expanded="true"] .shell-sheet-acc__chev {
    transform: none;
}

.shell-sheet-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.shell-sheet .shell-sheet-tile,
.shell-sheet .shell-sheet-tile:hover {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: var(--shell-text-2);
    font-size: 11.5px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.shell-sheet .shell-sheet-tile:hover {
    background: var(--shell-hover);
}

.shell-sheet .shell-sheet-tile__icon {
    font-size: 22px;
    color: var(--shell-text);
}

.shell-sheet .shell-sheet-tile--active,
.shell-sheet .shell-sheet-tile--active:hover {
    background: var(--shell-sel);
    color: var(--shell-primary-l);
}

.shell-sheet .shell-sheet-tile--active .shell-sheet-tile__icon {
    color: var(--shell-primary-l);
}

/* Иконка плитки на плашке цвета группы, и у активной плитки тоже. */
.shell-sheet .shell-sheet-sec[data-nav-group] .shell-sheet-tile__icon {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 8px;
    background: var(--shell-gc);
    color: var(--shell-plate-ink);
}

.shell-sheet .shell-sheet-tile__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 1px 4px;
    font-size: 8.5px;
}

.shell-sheet .shell-sheet-tile__badge.shell-badge-new {
    font-size: 7.5px;
}

.shell-sheet-tile__paid {
    position: absolute;
    top: 5px;
    right: 6px;
    display: inline-grid;
    color: var(--shell-text-3);
}

.shell-sheet-tile__paid--on {
    color: var(--shell-warning);
}

.shell-sheet .shell-sheet-tile__paid-icon {
    font-size: 13px;
}

/* Подзаголовок «Избранные · N», ряд избранных и строки отчётов рисуют ShellFavoritePlayers и ShellReportsList
   в режиме IsSheet. */
.shell-sheet-sub {
    margin: 12px 4px 8px;
    color: var(--shell-text-2);
    font-size: 12px;
    font-weight: 500;
}

.shell-sheet-favs {
    display: flex;
    gap: 10px;
    padding: 2px 2px 6px;
    overflow-x: auto;
}

.shell-sheet .shell-sheet-fav,
.shell-sheet .shell-sheet-fav:hover {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 54px;
    border-radius: 8px;
    color: var(--shell-text-2);
    font-size: 11px;
    text-decoration: none;
}

.shell-sheet-fav__name {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shell-sheet-empty {
    margin: 0;
    padding: 2px 8px;
    color: var(--shell-text-3);
    font-size: 12px;
}

.shell-sheet-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
}

.shell-sheet .shell-sheet-li,
.shell-sheet .shell-sheet-li:hover {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--shell-text-2);
    font-size: 13px;
    text-align: left;
    text-decoration: none;
}

.shell-sheet .shell-sheet-li:hover {
    background: var(--shell-hover);
}

.shell-sheet .shell-sheet-li__icon {
    font-size: 18px;
}

.shell-sheet .shell-sheet-sec[data-nav-group] .shell-sheet-li__icon {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 6px;
    background: var(--shell-gc);
    color: var(--shell-plate-ink);
}

/* Имена файлов отчётов без пробелов переносятся, а не растягивают строку за край шторки. */
.shell-sheet-li__label {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.shell-sheet .shell-sheet-li__lock {
    font-size: 15px;
    color: var(--shell-warning);
}

/* Шторка поиска на телефоне (ShellSearchSheet): та же шторка, что «Ещё», но постоянной высоты. Поле прибито к верху панели,
   под ним чипы-счётчики по типам, ниже прокручиваемое тело: клавиатура и смена содержимого не сдвигают поле. */
.mud-dialog.shell-sheet.shell-search {
    height: 88vh;
    height: 88dvh;
    font-size: 14px;
    line-height: 1.45;
}

.mud-dialog.shell-search .shell-sheet__content {
    flex: 1 1 auto;
}

/* За поле и чипы шторку тоже тянут вниз: своей прокрутки у браузера там нет. */
.shell-search__top,
.shell-search__sub {
    touch-action: none;
}

.shell-search__top {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 10px 14px;
}

.shell-search__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 44px;
    padding: 0 6px 0 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: var(--shell-text-2);
    cursor: text;
    transition: background .15s, border-color .15s;
}

.shell-search__field:hover {
    background: rgba(255, 255, 255, .1);
}

.shell-search__field:focus-within {
    border-color: var(--shell-primary-l);
    background: #0b2a35;
}

.shell-search .shell-search__field-icon {
    font-size: 20px;
}

.shell-search__input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 16px;
}

.shell-search__input::placeholder {
    color: var(--shell-text-3);
}

.shell-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.shell-search__clear {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--shell-text-3);
    cursor: pointer;
}

.shell-search__clear:hover {
    background: var(--shell-hover);
    color: var(--shell-text);
}

.shell-search .shell-search__clear .mud-icon-root {
    font-size: 20px;
}

.shell-search .shell-search__progress {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    width: auto;
}

.shell-search__sub {
    flex: none;
    padding: 0 14px 10px;
    border-bottom: 1px solid var(--shell-line);
}

.shell-search__body {
    flex: 1;
    padding-bottom: 24px;
}

.shell-search__mark {
    padding: 0 1px;
    border-radius: 3px;
    background: rgba(2, 179, 237, .24);
    color: var(--shell-text);
}

.shell-search__n {
    color: var(--shell-text-3);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.shell-search__tip {
    margin: 12px 4px 0;
    color: var(--shell-text-3);
    font-size: 12.5px;
}

.shell-search__link {
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--shell-primary-l);
    font: inherit;
    font-size: 12.5px;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.shell-search__link:hover {
    text-decoration: underline;
}

/* Группы выдачи, списки и строки */
.shell-search__sec {
    margin-top: 16px;
}

.shell-search__h {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin: 0 4px 6px;
    color: var(--shell-text-3);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.shell-search__h-t {
    flex: 1;
    min-width: 0;
}

.shell-search__h .shell-search__link {
    font-weight: 400;
}

.shell-search__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
}

.shell-search__ribbon {
    display: flex;
    gap: 10px;
    padding: 2px 6px 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.shell-search__row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 7px 8px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.shell-search__row:hover {
    background: var(--shell-hover);
}

.shell-search__row-t {
    flex: 1;
    min-width: 0;
}

.shell-search__row-title {
    display: block;
    overflow: hidden;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shell-search__row-meta {
    display: block;
    overflow: hidden;
    color: var(--shell-text-3);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shell-search .shell-search__go {
    flex: none;
    font-size: 16px;
    color: var(--shell-text-3);
}

.shell-search .shell-search__star {
    margin-left: 4px;
    font-size: 15px;
    color: var(--shell-warning);
    vertical-align: -2px;
}

/* Плашка даты турнира. У идущего турнира — тёплая, с рамкой */
.shell-search__date {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    line-height: 1;
}

.shell-search__date b {
    font-size: 14px;
    font-weight: 500;
}

.shell-search__date small {
    margin-top: 2px;
    color: var(--shell-text-3);
    font-size: 9.5px;
    text-transform: uppercase;
}

.shell-search__date--live {
    background: rgba(242, 188, 103, .14);
    color: var(--shell-warning);
    box-shadow: inset 0 0 0 1px rgba(242, 188, 103, .45);
}

.shell-search__date--live small {
    color: inherit;
}

/* Прошедший турнир: серая плашка и светлая подпись, перед первой прошедшей строкой подзаголовок «Прошедшие» */
.shell-search__date--past {
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px var(--shell-line);
    color: var(--shell-text-2);
}

.shell-search__date--past small {
    color: var(--shell-text-2);
}

.shell-search__row--past .shell-search__row-meta {
    color: var(--shell-text-2);
}

.shell-search__past-h {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 34px;
    margin-top: 6px;
    padding: 0 8px;
    border: 0;
    border-top: 1px solid var(--shell-line);
    background: none;
    color: var(--shell-text-2);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.shell-search .shell-search__past-icon {
    font-size: 16px;
}

.shell-search__past-h--closed .shell-search__chev {
    transform: rotate(-90deg);
}

.shell-search__elo {
    flex: none;
    line-height: 1.25;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.shell-search__elo b {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
}

.shell-search__elo small {
    color: var(--shell-text-3);
    font-size: 11px;
}

.shell-search__org {
    flex: none;
    padding: 1px 6px;
    border: 1px solid var(--shell-line-2);
    border-radius: 4px;
    color: var(--shell-text-2);
    font-size: 10.5px;
    font-weight: 500;
}

.shell-search__when {
    flex: none;
    color: var(--shell-text-3);
    font-size: 11.5px;
    white-space: nowrap;
}

/* Идущий турнир: полоска прогресса по дням */
.shell-search__bar {
    display: block;
    height: 4px;
    margin: 5px 0 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, .07);
}

.shell-search__bar i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--shell-warning);
}

/* Чипы: недавние запросы и счётчики по типам */
.shell-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shell-search__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--shell-line);
    border-radius: 17px;
    background: rgba(255, 255, 255, .06);
    color: var(--shell-text-2);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
}

.shell-search__chip:hover {
    color: var(--shell-text);
}

.shell-search__chip[aria-pressed="true"] {
    border-color: rgba(2, 179, 237, .5);
    background: var(--shell-sel);
    color: var(--shell-primary-l);
}

.shell-search__chip[aria-pressed="true"] .shell-search__n {
    color: inherit;
}

.shell-search .shell-search__chip-icon {
    font-size: 16px;
}

/* Сворачиваемые секции пустого состояния */
.shell-search__fold {
    margin-top: 10px;
    border: 1px solid var(--shell-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
}

.shell-search__fold-h {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.shell-search .shell-search__fold-icon {
    font-size: 20px;
    color: var(--shell-primary-l);
}

.shell-search .shell-search__chev {
    margin-left: auto;
    font-size: 20px;
    color: var(--shell-text-3);
    transition: transform .15s;
}

.shell-search__fold--closed .shell-search__chev {
    transform: rotate(-90deg);
}

.shell-search__fold-b {
    padding: 0 6px 8px;
}

.shell-search__fold-b > .shell-search__chips {
    padding: 0 6px 8px;
}

.shell-search__more {
    display: block;
    margin: 6px 8px 0 auto;
}

/* Пустой результат и ошибка поиска */
.shell-search__none {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 12px 8px;
    color: var(--shell-text-2);
    font-size: 13px;
    text-align: center;
}

.shell-search__none b {
    color: var(--shell-text);
    font-size: 15px;
    font-weight: 500;
}

.shell-search__none p {
    margin: 0;
}

.shell-search__none .shell-search__chips {
    justify-content: center;
}

.shell-search__none .shell-search__tip {
    margin: 4px 0 0;
}

.shell-search__none-ic {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
}

.shell-search .shell-search__none-ic .mud-icon-root {
    font-size: 28px;
    color: var(--shell-primary-l);
}

@media (prefers-reduced-motion: reduce) {
    .shell-account-popover *,
    .shell-sheet,
    .shell-sheet *,
    .shell-pulse::after {
        animation: none !important;
        transition: none !important;
    }
}
