:root {
    --background-color: #7092be;
    --bs-secondary-bg-subtle: transparent;
    --top-banner-height: 82px; /* высота max-варианта верхнего баннера */
    --top-banner-offset: 4px; /* top:10px у верхнего контейнера */
    --bottom-banner-height: 82px; /* высота max-варианта нижнего баннера */
    --bottom-offset: 80px; /* bottom:80px у нижнего контейнера */
    --search-h: 0px;
    --top-ban-h: 0px;
    --bot-ban-h: 0px;
    --scroll-track: transparent;
    --scroll-width: 8px;
}
html, body {
    background-color: var(--background-color);
    scrollbar-width: thin;
    scrollbar-color: #009fe3 transparent;
    --bs-secondary-bg-subtle: transparent;
}
html, body, * {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge Legacy */
}
    /* Для Chrome, Safari и Opera */
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
        display: none;
    }
/* 1. Корневой контейнер PDF-страниц (по умолчанию Colors.Background = #181818) */
.blazorpdf-pdf {
    background-color: transparent !important; /* белый фон вместо чёрного */
}

    /* 2. Обёртка вокруг canvas (у неё тоже инлайн-style с чёрным) */
    .blazorpdf-pdf > div > div {
        background-color: transparent !important;
    }
/* 1. Верхняя управляющая панель (toolbar) */
.blazorpdf-toolbar { /* сама панель */
    display: none !important;
    height: 0 !important; /* чтобы не осталось пустого места */
    min-height: 0 !important;
}

/* 2. Боковая панель с миниатюрами */
[id$="_thumbs"], /* <div id="..._thumbs"> — одна страница */
.blazorpdf-pdf__thumbnails, /* контейнер */
.blazorpdf-pdf__thumbnails-panel { /* fallback на старые версии */
    display: none !important;
    width: 0 !important;
}

/* 3. Делаем сам PDF на всю ширину после скрытия миниатюр */
.blazorpdf-pdf,
.blazorpdf__scroll { /* режим «много страниц» */
    margin: 0 auto !important;
    width: 100% !important;
}
.full-screen-background {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 1. Скрываем верхнюю панель (toolbar).  
   Проверяйте через DevTools, какие именно классы отвечают за верхнюю панель. */
.bs-secondary-bg-subtle,
.bg-secondary-subtle {
    background-color: transparent !important;
}

.pdf-container .bg-body-tertiary {
    display: none !important;
}

/* Блок, в котором лежит сам pdf, делаем на всю ширину */
.pdf-container .bb-pdfviewer-document-container,
.pdf-container .bb-pdfviewer-container {
    width: 100% !important;
    max-width: 100% !important;
}

.centered-layout {
    display: flex;
    align-items: center;
}


.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.cabinet-button {
    margin: 5px;
    height: 44px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.award-display {
    height: 68px;
    width: 42px;
    border: 1px solid black;
    margin: 6px;
    border-radius: 8px; 
}

.menu-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}


.menu-with-banners {
    margin: 0 auto;
    /* «буфер» сверху и снизу */
    padding-top: calc(var(--top-banner-height) + 10px); /* 10px = зазор между баннером и книгами */
    padding-bottom: calc(var(--bottom-banner-height) + var(--bottom-offset) + 10px);
}

.books-scroll {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 300px;
    top: calc(var(--search-h) + var(--top-ban-h) + 12px);
    bottom: calc(var(--bot-ban-h) + 78px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.orange-header {
    background-color: #ff7f27; 
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 10px 0;
    border-radius: 15px 15px 0 0; 
    color: black;
    font-size: 20px;
    font-weight: bold;
}
.bottom-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 9999; /* Поверх всех элементов */
}
.fixed-header-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
    z-index: 1000;
}
.grey-header {
    background-color: #c3c3c3;
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 10px 0;
    border-radius: 15px 15px 0 0;
    color: black;
    font-size: 20px;
    font-weight: bold;
}

.silverBlue-header {
    background-color: #7092be;
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 10px 0;
    border-radius: 15px 15px 0 0;
    color: black;
    font-size: 20px;
    font-weight: bold;
}

/* Общие стили для навигационных элементов на страницах просмотра глав */
.page-indicators {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 999;
    gap: .4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease-in-out;
}

    .page-indicators.visible {
        opacity: 1;
    }

.circle-page {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.next-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

    .next-button:hover {
        background-color: #0069d9;
    }

    .next-button svg {
        width: 24px;
        height: 24px;
    }

.navigation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    z-index: 99999999;
    gap: 10px;
}

.navigation-container .slider-wrapper {
    flex: 1;
    display: flex;
}

.nav-button {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .nav-button svg {
        width: 24px;
        height: 24px;
        stroke: #333;
        fill: none;
    }

    .nav-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .nav-button:hover:not(:disabled) {
        background-color: #f2f2f2;
    }

.slider-container {
    position: relative;
    width: 100%;
}

.slider-container input[type="range"] {
    width: 100%;
}

.slider-container input[type="range"]::-webkit-slider-thumb,
.slider-container input[type="range"]::-moz-range-thumb,
.slider-container input[type="range"]::-ms-thumb {
    opacity: 1 !important;
    -webkit-appearance: auto;
}

.controls-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: opacity .3s ease, transform .3s ease;
}

.controls-wrapper.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.controls-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.top-control-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.green {
    background: green;
}

.ordinary-center-text {
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 10px 0;
    color: black;
    font-size: 20px;
    font-weight: bold;
}

.ordinary-center-text-yellow {
    width: 100%;
    max-width: 350px;
    text-align: center;
    color: #fdc71e;
    font-size: 20px;
    font-weight: bold;
}

.ordinary-left-text {
    width: 100%;
    max-width: 350px;
    text-align: left;
    padding: 10px 0;
    color: black;
    font-size: 18px;
    font-weight: bold;
}

.stackpanel {
    display: flex;
    flex-direction: column;
}

.stackpanel-horizontal {
    display: flex;
    flex-direction: row;
}

.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh; 
}

.marquee-container {
    height: 30px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* Делаем контейнер шире и включаем движение */
.marquee-inner {
    position: absolute;
    width: 300%;
    white-space: nowrap;
    animation: marquee 6s linear infinite alternate;
    /* notice:"alternate" вместо"infinite"! */
}

/* Текст */
.marquee-text {
    display: inline-block;
    width: 50%;
    box-sizing: border-box;
}

/* Ключевые кадры для анимации */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


.blue-button {
    margin: 5px 0;
    background-color: #00aaff;
    border: 2px solid black;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.book-annotation-page__container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px 0 0;
    height: 100%;
    max-height: calc(100dvh - var(--top-ban-h, 0px) - var(--bot-ban-h, 0px));
    min-height: 0;
    overflow: hidden;
}

.book-annotation-page__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    height: 100%;
    gap: 4px;
    box-sizing: border-box;
    min-height: 0;
}

.book-annotation__summary {
    flex: 1;
    display: flex;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

.book-annotation-page__content .summary-label {
    flex: 1;
    width: 100%;
    min-height: 0;
    max-height: none;
    height: 100%;
}

.book-annotation__layout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 20px;
    flex-shrink: 0;
}

.book-annotation__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 110px;
}

.book-annotation__side > * {
    width: 100%;
}

.book-annotation__side .annotation-icon-button {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    margin: 0;
    border-radius: 20px;
}

.book-annotation__cover {
    display: flex;
    justify-content: center;
    width: 155px;
    height: 215px;
    margin: 0 4px;
}

.annotation-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    min-height: 50px;
    border-radius: 20px;
    box-sizing: border-box;
}

.annotation-icon-button img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .book-annotation__layout {
        flex-direction: column;
    }

    .book-annotation__side {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 2px;
        column-gap: 8px;
        row-gap: 2px;
    }

    .book-annotation__side > * {
        width: auto;
        min-width: 60px;
    }

    .book-annotation__side .annotation-icon-button {
        height: 50px;
    }
}

    .blue-button:hover {
        background-color: #0088cc;
    }

    .blue-button:disabled {
        background-color: gray;
        border-color: #666;
        color: #ccc;
        cursor: not-allowed;
    }

.yellow-button {
    margin: 5px 0;
    background-color: #ffc000;
    border: 2px solid black;
    color: black;
    font-size: 18px; 
    font-weight: bold; 
    padding: 10px; 
    border-radius: 25px; 
    text-align: center; 
    cursor: pointer; 
    transition: background-color 0.3s ease;
    width: 100%;
}

 .yellow-button:hover {
        background-color: #ffb000;
    }

    .yellow-button:disabled {
        background-color: gray;
        border-color: #666;
        color: #ccc;
        cursor: not-allowed;
    }

.yellow-button-selected {
    margin: 5px 0; 
    background-color: #d49302; 
    border: 2px solid black; 
    color: black; 
    font-size: 18px; 
    font-weight: bold; 
    padding: 10px; 
    border-radius: 25px; 
    text-align: center; 
    cursor: pointer; 
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 1); 
    transition: all 0.2s ease; 
}

.gray-button {
    margin: 5px 0;
    background-color: #c3c3c3;
    border: 2px solid black;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
}


.gray-button-for-reader {
    margin: 5px 0;
    background-color: #7f7f7f;
    border: 2px solid black;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
}

.light-gray-button-for-moder {
    margin: 5px 0;
    background-color: #c3c3c3;
    border: 2px solid black;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
}

.hourglass-logo {
    padding-left:2px;
    padding-right:2px;
    width: 100%;
    height: 100%;
    max-width: 26px;
    max-height: 50px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.stackpanel {
    display: flex;
    flex-direction: column; 
}

.stackpanel-horizontal {
    display: flex;
    flex-direction: row;
}

.photo-container {
    display: flex;
    justify-content: space-around;
    cursor: pointer;
}

.fixed-top-container,
.fixed-bottom-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: 300px;
}

.fixed-top-container {
    top: 10px;
}

.fixed-bottom-container {
    bottom: var(--bottom-offset);
}

.photo-placeholder {
    position: relative;
    width: 150px;
    height: 150px;
    background-color: #ffd700;
    border: 2px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .photo-placeholder:hover {
        transform: scale(1.05); 
    }

.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.photo-upload span {
        color: black;
        font-weight: bold;
        margin-top: 10px;
        text-align: center;
    }

.hidden-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 0;
}

.photo-placeholder img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 4px;
}

.photo-placeholder .placeholder-icon {
    width: 75%;
    height: 75%;
    max-width: 75%;
    max-height: 75%;
}

.language-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-right: 10px; 
}

.checkbox-with-button-container {
    display: inline-flex; 
    align-items: center; 
    position: relative; 
}

.checkbox-with-button {
    display: none;
}

.checkbox-with-button-icon {
    width: 52px;
    height: 52px;
    background-color: #ccc;
    border: 2px solid black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease;
    position: absolute; /* вытаскиваем поверх кнопки */
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2; /* выше, чем у кнопки */
}

.checkbox-with-button-badge {
    width: 52px;
    height: 52px;
    background-color: #ccc;
    border: 2px solid black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute; /* вытаскиваем поверх кнопки */
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2; /* выше, чем у кнопки */
    font-size: 200%;
}

    .checkbox-with-button-icon::after {
        content:"";
        position: absolute;
        font-size: 24px;
        font-weight: bold;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

/* При checked появляется галочка ✔ */
.checkbox-with-button:checked + .checkbox-with-button-icon {
    background-color: #a4c6eb;
    border-color: black;
}

    .checkbox-with-button:checked + .checkbox-with-button-icon::after {
        content:"✔";
        color: darkgreen; 
    }

/* При unchecked появляется крестик ✖ */
.checkbox-with-button:not(:checked) + .checkbox-with-button-icon::after {
    content:"✖";
    color: red;
}


.blazorise-textedit-yellow {
    width: 100%;
    background-color: #ffcc00;
    color: black;
    border: none;
    padding: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.banner-mini {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 85px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .banner-mini:hover {
        transform: scale(1.05); 
    }

.banner-max {
    position: relative;
    width: 95svw;
    height: 50vh;
    background-color: #3a4db1;
    border: 2px solid black;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .banner-max:hover {
        transform: scale(1.02);
    }

    .banner-max img,.banner-mini img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
        padding: 0;
        display: block;
    }

.full-screen-banner {
    width: 100vw;
    height: 50vh;
    background-color: #3a4db1;
    border: 2px solid black;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .full-screen-banner:hover {
        transform: scale(1.05);
    }

.banner-max-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2147483647;
}

.banner-max-fullscreen .image-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    padding: 0;
}

.stretched-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.circle-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
    border: 2px solid black;
}

.input-find {
    width: 40%;
    height: 50px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}



.stackpanel-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.book-cover-container {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 155px;
    max-height: 215px;
    overflow: hidden;
    border-radius: 15px;
}

.format-icon {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
}

.format-left { left: 5px; }
.format-right { right: 5px; }

.icon {
    position: absolute;
    width: 40px;
    height: 40px;
}

.icon-circle {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid black;
    box-sizing: border-box;
    background-color: #7f7f7f;
}

.icon-circle--gray {
    background-color: #7f7f7f;
}

.icon-circle--red {
    background-color: #c62828;
}

.icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Позиции по углам */
.icon-top-left {
    top: 5px;
    left: 5px;
}

.icon-top-right {
    top: 5px;
    right: 5px;
}

.icon-bottom-left {
    bottom: 5px;
    left: 5px;
}

.icon-bottom-right {
    bottom: 5px;
    right: 5px;
}

.cover-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
}

.book-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 5px;
    color: #fff;
    box-sizing: border-box;
    font-weight: bold;
    background-color: #00aaff;
}


.book-title__icon {
    width: 36px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid black;
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
}


.book-title__icon--left {
    position: relative;
    left: -7px;
}

.book-title__icon--right {
    position: relative;
    right: -7px;
}

.book-title__text {
    flex: 1;
    text-align: center;
    color: black;
}

.book-title__badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.badge-icon {
    width: 24px;
    height: 24px;
}

.chapter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 52px;
    padding: 5px;
    color: #fff;
    box-sizing: border-box;
    font-weight: bold;
    background-color: #ffc000;
}

.chapter-title--user {
    background-color: #00aaff;
    border: 2px solid black;
    border-radius: 25px;
    color: black;
}

.chapter-title__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid black;
    background-color: #c3c3c3;
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
}

.chapter-title__icon--left {
    position: relative;
    left: -7px;
}

.chapter-title__icon--right {
    position: relative;
    right: -7px;
}

.chapter-title__text {
    flex: 1;
    text-align: center;
    color: black;
}

.search__text {
    flex: 1;
    text-align: center;
    color: black;
    background-color: #c3c3c3;
}



.avatar-menu {
    position: absolute;
    display: flex;
    gap: 10px;
    left: 50px;
    background-color: #00aaff;
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
    margin-bottom: 70px;
}

    .avatar-menu.sent-position {
        right: 50px;
        left: auto;
    }

    .avatar-menu.received-position {
        left: 50px;
        right: auto;
    }

.avatar-admin-user {
    width: 50%;
    height: 50%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.chat-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover; /* картинка обрезается по кругу */
}

.summary-label {
    width: 300px;
    min-height: 300px;
    max-height: 60vh;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    color: black;
    font-family: sans-serif;
    overflow-wrap: break-word;
    overflow-y: auto;
    overflow-x: hidden;
}

body.book-annotation-page-body {
    overflow: hidden;
    height: 100dvh;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 56px;
    margin-top: var(--top-ban-h);
    margin-bottom: 10px;
    border-radius: 10px;
}

.chat-input-find {
    width: 300px;
    height: 40px;
    background-color: #ffffff;
    border: 2px solid black;
    color: black;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 25px;
    text-align: center;
    line-height: 24px;
    cursor: text;
    box-sizing: border-box;
    resize: none;
    overflow: hidden;
}

.fvdf{
    color: #7f7f7f
}

.image-display {
    width: 100%;
    height: auto;
    cursor: pointer;
    object-fit: contain;
    border-radius: 25px;
    padding: 5px;
}
.image-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important; /* или cover */
    background-color: #7092be;
    z-index: 2147483647 !important;
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    transition: opacity 0.3s ease;
}

.pinned-container {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 0.75rem;
}

.pinned-item {
    /* можно задать свой фон/рамку, чтобы отделить от обычных сообщений */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}

.pin-message{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 5px;
    background-color: #c3c3c3;
    color: #fff;
    box-sizing: border-box;
    font-weight: bold;
}


.ban-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 5px;
    box-sizing: border-box;
    font-weight: bold;
    background-color: #c3c3c3;
    border-radius: 25px;
    border: 2px solid black;
}

.ban-title__text {
    flex: 1;
    text-align: center;
    color: black;
}

.ban-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.ban-title--gray {
    background-color: #d9d9d9;
    border: 2px solid black;
    border-radius: 25px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ban-dates-container {
    display: flex;
    width: 100%;
    height: 40px;
    margin-top: 6px;
    background-color: #c3c3c3;
    border-radius: 25px;
    border: 2px solid black;
}

.ban-date-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-weight: bold;
    font-size: 14px;
}

    .ban-date-cell.left {
        border-right: 1px solid black;
        border-radius: 20px 0 0 20px;
    }

    .ban-date-cell.right {
        border-left: 1px solid black;
        border-radius: 0 20px 20px 0;
    }

.ban-title__icon{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid black;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    flex-shrink: 0;
}

    .ban-title__icon.right {
        border-right: 0px solid black;
    }

    .ban-title__icon.left {
        border-left: 0px solid black;
    }

    .small-fotter-button{
        width: 12px;
        height: 12px;
    }

@keyframes flash {
    0% {
        background-color: rgba(255, 223, 100, 0.6); /* тёплый светло-жёлтый */
    }

    50% {
        background-color: rgba(255, 200, 50, 0.4); /* чуть насыщеннее */
    }

    100% {
        background-color: transparent;
    }
}

.flash-highlight {
    animation: flash 1.2s ease-out;
    border-radius: 12px;
    transition: background-color 0.3s ease-in-out;
}

.award-container {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
}

.award-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid black;
}

.award-compact-container {
    width: 42px;
    height: 68px;
    border: 2px solid black;
    border-radius: 8px;
    overflow: hidden;
    margin: 6px;
    position: relative;
}

.award-compact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.award-count-label {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0 4px;
    border-bottom-left-radius: 4px;
    font-size: 0.8rem;
    line-height: 1;
}

.menu-wrapper-awards {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.awards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 300px;
    margin-top: 6px;
}

.menu-wrapper-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.awards-grid-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    max-width: 270px;
}

.award-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.award-compact-image {
    object-fit: contain;
}

.award-button-container {
    margin-top: 5px;
}

.award-action-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #00a2e8;
    border: 2px solid black;
    color: black;
    font-size: 28px;
    font-weight: bold;
    display: inline-flex; /* ✅ гарантирует компактность */
    align-items: center; /* по вертикали */
    justify-content: center; /* по горизонтали */
    padding: 0;
    line-height: 1; /* ✅ чтобы + не был смещён */
    text-align: center;
    cursor: pointer;
}

.confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.confirm-backdrop.confirm-bottom {
    align-items: flex-end;
    padding-bottom: 16px;
}

.confirm-window {
    background: #fff;
    padding: 24px 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

    .confirm-window button {
        margin: 0 10px;
        width: 80px;
        height: 36px;
    }

.yes-btn.disabled {
    background: #aaa;
    color: #fff;
    cursor: not-allowed;
}

.yes-btn.active {
    background: #e74c3c;
    color: #fff;
}

.no-btn {
    background: #7f8c8d;
    color: #fff;
}

.date-info-range {
    display: inline-flex; /* обе половины рядом */
    margin-top: 6px;
}

.action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* под телефон 300-320px самое то */
    display: flex;
    z-index: 9999; /* поверх остального */
}
.age-gate {
    position: fixed; /* чтобы не влиял скролл */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px; /* отступ от иконки до нижней панели (по вкусу) */
}
.age-icon {
    width: 160px; /* под телефоны: 120-160px обычно хватает */
    height: auto;
}
/* общие свойства */
.rounded-info-box {
    flex: 1 1 0; /* делим ширину поровну */
    height: 44px;
    background: #00aaff;
    border: 2px solid #000;
    font: 700 18px/1 'Segoe UI',sans-serif;
    color: #000;
    cursor: pointer;
    padding: 0; /* убираем внутренние отступы */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rounded-info-box.start {
        border-radius: 22px 0 0 22px;
    }

    .rounded-info-box.end {
        border-radius: 0 22px 22px 0;
        max-width: 90px;
    }

/* 4. Иконка «назад» вместо текста во второй половине */
.back-btn {
    background: #00aaff url("/icons/buttons_round/arrow_back.svg") center/38% no-repeat;
    text-indent: -9999px; /* скрываем текст */
}

    .back-btn:hover {
        background-color: #0088cc;
    }

.rounded-info-box.start:hover {
    background: #0088cc;
}

.date-filter-container {
    display: flex;
    flex-direction: column; /* ⬅ главное изменение */
    align-items: center;
    gap: 6px; /* небольшой вертикальный зазор */
}

/* плашка-счётчик: такая же ширина, как MudPaper */
.date-result {
    width: 280px;
    max-width: 280px;
}

.jump-input {
    width: 280px;
    max-width: 280px;
    margin-top: 6px;
}

.search__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid black;
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    background-color: #00a2e8;
}


.search__icon--left {
    position: relative;
    left: -7px;
    background-color: #00a2e8;
}

.search__icon--right {
    position: relative;
    left: -7px;
    background-color: #00a2e8;
}

.search-extras {
    /* располагаем чётко по центру под .search-container */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* горизонтальное выравнивание */
    margin-top: 6px; /* небольшой отступ от поля поиска */
}

/* ▼ внутренняя обёртка для jump-input + подсказка */
.jump-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* расстояние между input и подписью */
}

.date-filter-paper {
    max-width: 320px; /* было 280px – подберите своё значение */
}

/* элементы-«спутники», чтобы остались той же ширины */
.date-result,
.jump-input {
    max-width: 320px;
}



input[type="range"]::-webkit-slider-thumb {
    opacity: 0 !important;
}

input[type="range"]::-moz-range-thumb {
    opacity: 0 !important;
}

input[type="range"]::-ms-thumb {
    opacity: 0 !important;
}

.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px; /* например, если хотим ограничить ширину */
    margin: 0 auto;
    padding: 1rem;
    border-radius: 8px;
}

/* Большая кнопка в центре. Сам кружок + иконки Play/Pause */
.center-button {
    width: 80px;
    height: 80px;
    border: 3px solid #004466;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid #004466;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.pause-icon {
    width: 20px;
    height: 20px;
    background: #004466;
    position: relative;
}

    .pause-icon::before,
    .pause-icon::after {
        content:"";
        position: absolute;
        width: 6px;
        height: 20px;
        background: #fff;
        top: 0;
    }

    .pause-icon::before {
        left: 2px;
    }

    .pause-icon::after {
        right: 2px;
    }

/* Время (текущее / общее) */
.time-labels {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.time-separator {
    opacity: 0.8;
}

/* Блок со слайдером и кнопками перемотки */
.seekbar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

/* Кнопки перемотки (стрелки слева/справа) */
.seek-button {
    background: #004466;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Слайдер + надпись текущего времени на ползунке */
.slider-wrapper {
    position: relative;
    flex-grow: 1;
}

.time-slider {
    width: 100%;
}

/* Надпись поверх самого бегунка (можно настроить позиционирование) */
.slider-current-time {
    position: absolute;
    top: -1.5rem; /* сдвигаем чуть вверх над полосой */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    background-color: rgba(255,255,255,0.5);
    padding: 2px 5px;
    border-radius: 4px;
}


.chat-container {
    width: 100vw;
    height: 80vh;
    max-width: 100%;
    max-height: 80%;
    margin: 0;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 16px;
    margin-bottom: 10px;
    max-width: 75%;
    word-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
    overflow: visible;
    z-index: 0;
    text-align: left;
}

.chat-message::after {
    content:"";
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: inherit;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: -1;
}

.chat-message.received::after {
    left: -10px;
    clip-path: circle(50% at 100% 50%);
}

.chat-message.sent::after {
    right: -10px;
    clip-path: circle(50% at 0 50%);
}

.service-message-row {
    align-items: flex-start;
    gap: 4px;
    align-self: flex-start;
}

.service-message-row.sent {
    align-self: flex-start;
    justify-content: flex-start;
}

.service-message-row.received {
    align-self: flex-end;
    justify-content: flex-end;
}

.service-message-row .avatar-container {
    margin: 0;
}

.service-message__body {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    width: auto;
    max-width: calc(100% - 44px);
}

.service-message__body--sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.service-message__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.service-message__icon img {
    width: 24px;
    height: 24px;
}

.service-message__content {
    pointer-events: none;
    width: 100%;
    max-width: none;
}

.service-message__content-wrapper--sent .service-message__content {
    text-align: left;
}

.service-message__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.service-message__content-wrapper--sent {
    align-items: flex-end;
}

.service-message__header {
    background-color: #e0e0e0;
    color: #555555;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    border: 2px solid #bdbdbd;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    align-self: stretch;
}

.chat-message__incognito-tag {
    background-color: #ffc0cb;
    border-radius: 4px;
    padding: 0 4px;
}

    .chat-message.sent {
        margin-left: auto; /* отталкивает сообщение вправо */
        color: black;
    }

    .chat-message.received strong {
        margin-right: auto; /* опционально – явно выравнивает сообщение влево */
        color: black;
    }

.avatar-container {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    overflow: hidden; /* чтобы изображение не выступало за края */
    border-radius: 50%; /* круг */
    flex-shrink: 0; /* чтобы аватарка не"сжималась" в узких окнах */
}

.avatar-incognito-btn {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #b0b0b0;
    border: 2px solid #000000;
    border-color: #808080;
    color: #666666;
    opacity: 0.8;
    padding: 0;
    cursor: default;
}

.avatar-incognito-btn img {
    width: 24px;
    height: 24px;
}

.message-content {
    display: flex;
    flex-direction: column; /* Имя сверху, текст снизу */
}

.received {
    align-self: flex-start;
}

.sent {
    align-self: flex-end;
}

.background-message-grey {
    background: #c3c3c3;
}

.background-message-withoutbackground {
}

.background-message-red {
    background: #edb6c0;
}

.background-message-yellow {
    background: #fffbae;
}

.background-message-green {
    background: #b8f1c9;
}

.background-message-blue {
    background: #ace7ff;
}

.background-message-white {
    background: #ffffff;
}


.chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    width: 100%;
}

.chat-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    overflow-y: hidden;
    min-height: 44px;
    line-height: 1.4;
    max-height: calc(1.4em * 6);
}

.chat-input-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px 8px;
    background-color: #fff;
}

.chat-input-field--incognito {
    border-color: #ff8ac7;
    box-shadow: 0 0 0 1px #ff8ac7 inset;
}

.chat-input-field .chat-input {
    border: none;
    outline: none;
    padding: 4px 0;
    background: transparent;
    resize: none;
    flex: 1;
    line-height: 1.4;
}

.chat-incognito-chip,
.chat-mention-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 16px;
    color: #6c1d4f;
    font-weight: 600;
    white-space: nowrap;
}

.chat-incognito-chip {
    background-color: #ffc2e8;
}

.chat-mention-chip {
    background-color: transparent;
}

.chat-incognito-chip__text,
.chat-mention-chip__text {
    white-space: nowrap;
}

.chat-incognito-chip__close,
.chat-mention-chip__close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.chat-send-button {
    background: #007aff;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
}

    .chat-send-button:hover {
        background: #005bb5;
    }

.message-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message-reactions {
    position: absolute;
    bottom: -10px;
    display: flex;
    gap: 2px;
    z-index: 10;
}

.message-reactions.left {
    left: -12px;
}

.message-reactions.right {
    right: -12px;
}

.message-reaction {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-menu {
    position: absolute;
    display: flex;
    gap: 10px;
    /* Можете настроить, куда именно сдвигать меню: */
    left: 50px; /* или сместить от левой границы аватарки */
    background-color: #00aaff;
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999; /* чтобы точно было поверх сообщения */
    margin-bottom: 70px;
}

    .avatar-menu.sent-position {
        right: 50px; /* для сообщений отправленных текущим пользователем */
        left: auto;
}

    .avatar-menu.received-position {
        left: 50px; /* для сообщений других пользователей */
        right: auto;
    }

.reaction-picker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.reaction-picker-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    min-width: 260px;
}

.reaction-picker-container h4 {
    margin: 0 0 12px;
    font-size: 18px;
    text-align: center;
}

.reaction-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.reaction-picker-button {
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reaction-picker-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reaction-picker-close {
    display: block;
    margin: 0 auto;
    border: none;
    background: #e0e0e0;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.marquee-wrapper {
    overflow: hidden; /* чтобы текст не «выпадал» из кнопки/лейбла */
}
.delete-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cccccc;
    padding: 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transform: translateY(100%);
    transition: transform .3s ease-out;
    z-index: 3000;
}
.delete-panel.active {
    transform: translateY(0);
}
.delete-panel .yes-btn {
    background: green;
    color: #fff;
}
.delete-panel .no-btn {
    background: red;
    color: #fff;
}
.delete-panel .timer {
    font-weight: bold;
}

.delete-popup {
    background: #fff;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    gap: 20px;
}
.delete-popup .yes-btn {
    background: green;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
}
.delete-popup .yes-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}
.delete-popup .no-btn {
    background: red;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
}
.delete-popup .timer-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Page transition animations */
.page-transition-container {
    position: relative;
    overflow: hidden;
}

.page-transition {
    position: relative;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

.slide-in-right {
    animation: slideInRight 0.4s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.4s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.4s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.4s forwards;
}

.slide-in-down {
    animation: slideInDown 0.4s forwards;
}

.slide-out-up {
    animation: slideOutUp 0.4s forwards;
}

.slide-in-up {
    animation: slideInUp 0.4s forwards;
}

.slide-out-down {
    animation: slideOutDown 0.4s forwards;
}

.add-line-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-line-input {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 4px 8px;
    box-sizing: border-box;
}

.add-line-window {
    width: 300px;
}

.add-line-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 16px;
    background: transparent;
    z-index: 10000;
}

.add-line-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 300px;
}

.add-line-active .footer-buttons,
.add-line-active .overlay-buttons,
.add-line-active .chapter-type-toggle {
    display: none !important;
}
.user-line__icon {
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .menu-with-banners,
    .books-scroll,
    .fixed-header-container,
    .orange-header,
    .grey-header,
    .silverBlue-header,
    .ordinary-center-text,
    .ordinary-center-text-yellow,
    .ordinary-left-text {
        max-width: 100%;
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .books-scroll {
        left: 0;
        transform: none;
        padding: 0 12px;
        bottom: calc(var(--bot-ban-h) + 96px);
    }

    .bottom-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        left: 0;
        transform: none;
    }

    .book-annotation__layout {
        width: 100%;
        gap: 8px;
    }

    .book-annotation__side {
        width: 100%;
    }

    .banner-max,
    .banner-mini,
    .full-screen-banner {
        max-width: 100%;
        width: 100%;
    }

    .annotation-icon-button {
        width: 100%;
        min-height: 48px;
    }
}
