:root {
    --bg: #f4f7f6;
    --surface: #ffffff;
    --text: #1c2528;
    --muted: #647277;
    --line: #d9e4e1;
    --primary: #0f6c78;
    --primary-strong: #0a4654;
    --accent: #3f8550;
    --danger: #b33d3d;
    --shadow: 0 16px 42px rgba(24, 35, 38, 0.08);
    --topbar-height: 82px;
    --announcement-gap: 12px;
}

/* Desktop notice/news panel: shares the mobile home content and news reader. */
@media (min-width: 1367px), (min-width: 1025px) and (pointer: fine) {
    .desktop-home-panel {
        position: relative;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        background: #edf3f2;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .desktop-home-panel .mobile-home-switcher {
        position: relative;
        z-index: 3;
        display: block;
        min-height: 55px;
        padding: 8px;
        background: rgba(255, 255, 255, .98);
        border-bottom: 1px solid #dbe5e2;
        box-shadow: 0 4px 12px rgba(36, 62, 56, .05);
    }

    .desktop-home-panel .mobile-home-switcher > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 3px;
        background: #eef3f1;
        border-radius: 10px;
    }

    .desktop-home-panel .mobile-home-switcher button {
        min-height: 32px;
        margin: 0;
        padding: 6px 8px;
        color: #667773;
        background: transparent;
        border: 0;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 900;
    }

    .desktop-home-panel .mobile-home-switcher button:hover {
        color: #057a4b;
        background: #f8fbfa;
    }

    .desktop-home-panel .mobile-home-switcher button.is-active {
        color: #fff;
        background: linear-gradient(135deg, #087b5c, #06a765);
        box-shadow: 0 3px 9px rgba(30, 68, 58, .16);
    }

    .desktop-home-panel .mobile-home-switcher > small {
        display: none;
    }

    .desktop-home-panel .mobile-home-pager {
        display: flex;
        width: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .desktop-home-panel .mobile-home-pager::-webkit-scrollbar {
        display: none;
    }

    .desktop-home-panel .mobile-home-slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        height: 100%;
        padding: 13px 10px 20px;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-align: start;
        scrollbar-color: #b8cbc5 transparent;
        scrollbar-width: thin;
    }

    .desktop-home-panel .mobile-home-section-heading {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        margin-bottom: 11px;
    }

    .desktop-home-panel .mobile-home-section-heading > div {
        min-width: 0;
    }

    .desktop-home-panel .mobile-home-section-heading small {
        display: block;
        overflow: hidden;
        color: #71827e;
        font-size: 8px;
        font-weight: 950;
        letter-spacing: .07em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .desktop-home-panel .mobile-home-section-heading h2 {
        margin: 1px 0 0;
        color: #183a34;
        font-size: 17px;
        line-height: 1.2;
    }

    .desktop-home-panel .mobile-home-section-heading > em {
        padding: 4px 7px;
        color: #08794d;
        background: #e5f7ed;
        border-radius: 999px;
        font-size: 10px;
        font-style: normal;
        font-weight: 900;
    }

    .desktop-home-panel .mobile-home-section-icon {
        display: inline-grid;
        width: 36px;
        height: 36px;
        place-items: center;
        color: #fff;
        border-radius: 11px;
        box-shadow: 0 6px 14px rgba(37, 77, 67, .14);
    }

    .desktop-home-panel .mobile-home-section-icon.announcement {
        background: linear-gradient(135deg, #06a765, #06c755);
    }

    .desktop-home-panel .mobile-home-section-icon.news {
        background: linear-gradient(135deg, #176b87, #2995a7);
    }

    .desktop-home-panel .mobile-home-section-icon svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.9;
    }

    .desktop-home-panel .mobile-announcement-list,
    .desktop-home-panel .mobile-news-list {
        display: grid;
        gap: 8px;
    }

    .desktop-home-panel .mobile-announcement-item {
        position: relative;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 11px 11px 12px 13px;
        overflow: hidden;
        color: inherit;
        background: #fff;
        border: 1px solid #dbe5e2;
        border-radius: 11px;
        box-shadow: 0 5px 14px rgba(38, 65, 59, .05);
        font: inherit;
        text-align: left;
    }

    .desktop-home-panel .mobile-announcement-item:hover {
        background: #f5fbf8;
        border-color: #afd8c7;
    }

    .desktop-home-panel .mobile-announcement-item:focus-visible {
        outline: 3px solid rgba(6, 167, 101, .28);
        outline-offset: -3px;
    }

    .desktop-home-panel .mobile-announcement-item::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        content: "";
        background: #98aaa5;
    }

    .desktop-home-panel .mobile-announcement-item.is-new::before {
        background: #06c755;
    }

    .desktop-home-panel .mobile-announcement-item.is-important::before {
        background: #ef8c2f;
    }

    .desktop-home-panel .mobile-announcement-item header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-bottom: 5px;
    }

    .desktop-home-panel .mobile-announcement-item header span {
        color: #07804f;
        font-size: 10px;
        font-weight: 950;
    }

    .desktop-home-panel .mobile-announcement-item header time {
        color: #899793;
        font-size: 9px;
        font-weight: 750;
    }

    .desktop-home-panel .mobile-announcement-item h3 {
        display: -webkit-box;
        margin: 0 0 4px;
        overflow: hidden;
        color: #243f39;
        font-size: 14px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .desktop-home-panel .mobile-announcement-item p {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: #63746f;
        font-size: 11px;
        font-weight: 650;
        line-height: 1.55;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .desktop-home-panel .mobile-announcement-more {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        margin-top: 7px;
        color: #08794d;
        font-size: 10px;
        font-weight: 900;
    }

    .desktop-home-panel .mobile-announcement-more svg {
        width: 13px;
        height: 13px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .desktop-home-panel .mobile-home-section-heading > button {
        display: inline-grid;
        width: 32px;
        min-width: 32px;
        min-height: 32px;
        margin: 0;
        padding: 0;
        place-items: center;
        color: #176b87;
        background: #e6f3f6;
        border: 1px solid #c2dde3;
        border-radius: 9px;
    }

    .desktop-home-panel .mobile-home-section-heading > button:hover {
        color: #fff;
        background: #176b87;
    }

    .desktop-home-panel .mobile-home-section-heading > button svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .desktop-home-panel .mobile-home-section-heading > button.is-loading svg,
    .desktop-home-panel .mobile-news-loading > span,
    .desktop-home-panel .mobile-news-load-more.is-loading > span {
        animation: mobile-news-spin .8s linear infinite;
    }

    .desktop-home-panel .mobile-news-loading,
    .desktop-home-panel .mobile-news-error {
        display: grid;
        gap: 7px;
        padding: 15px;
        background: #fff;
        border: 1px solid #dbe5e2;
        border-radius: 11px;
    }

    .desktop-home-panel .mobile-news-loading {
        grid-template-columns: 30px minmax(0, 1fr);
        align-items: center;
    }

    .desktop-home-panel .mobile-news-loading > span {
        width: 25px;
        height: 25px;
        border: 3px solid #d6e7e2;
        border-top-color: #06a765;
        border-radius: 50%;
    }

    .desktop-home-panel .mobile-news-loading strong,
    .desktop-home-panel .mobile-news-loading small {
        display: block;
    }

    .desktop-home-panel .mobile-news-loading strong {
        color: #27453e;
        font-size: 13px;
    }

    .desktop-home-panel .mobile-news-loading small {
        margin-top: 2px;
        color: #75847f;
        font-size: 10px;
    }

    .desktop-home-panel .mobile-news-item {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) 14px;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 78px;
        margin: 0;
        padding: 8px;
        color: inherit;
        background: #fff;
        border: 1px solid #dbe5e2;
        border-radius: 11px;
        box-shadow: 0 5px 14px rgba(38, 65, 59, .05);
        font: inherit;
        text-align: left;
    }

    .desktop-home-panel .mobile-news-item:hover {
        background: #f2faf6;
        border-color: #afd8c7;
    }

    .desktop-home-panel .mobile-news-image {
        display: grid;
        width: 64px;
        height: 58px;
        place-items: center;
        overflow: hidden;
        color: #fff;
        background: linear-gradient(135deg, #176b87, #2995a7);
        border-radius: 8px;
    }

    .desktop-home-panel .mobile-news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .desktop-home-panel .mobile-news-image.is-placeholder svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .desktop-home-panel .mobile-news-copy {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .desktop-home-panel .mobile-news-copy > small {
        overflow: hidden;
        color: #16805b;
        font-size: 9px;
        font-weight: 850;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .desktop-home-panel .mobile-news-copy > strong {
        display: -webkit-box;
        overflow: hidden;
        color: #243f39;
        font-size: 12px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .desktop-home-panel .mobile-news-copy > span {
        display: -webkit-box;
        overflow: hidden;
        color: #6b7a76;
        font-size: 10px;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .desktop-home-panel .mobile-news-arrow {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: #93a39f;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .desktop-home-panel .mobile-news-footer {
        display: grid;
        gap: 6px;
        justify-items: center;
        padding: 13px 4px 2px;
        text-align: center;
    }

    .desktop-home-panel .mobile-news-load-more {
        display: inline-flex;
        min-height: 28px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 5px 9px;
        color: #08794d;
        background: #e7f6ed;
        border-radius: 999px;
    }

    .desktop-home-panel .mobile-news-load-more > span {
        width: 7px;
        height: 7px;
        flex: 0 0 auto;
        background: #14a46b;
        border-radius: 50%;
    }

    .desktop-home-panel .mobile-news-load-more > strong {
        font-size: 10px;
        font-weight: 900;
    }

    .desktop-home-panel .mobile-news-load-more.is-loading > span {
        width: 15px;
        height: 15px;
        background: transparent;
        border: 2px solid #b7ded0;
        border-top-color: #08794d;
    }

    .desktop-home-panel .mobile-news-load-more.is-complete {
        color: #71817d;
        background: #e5ecea;
    }

    .desktop-home-panel .mobile-news-footer small,
    .desktop-home-panel .mobile-news-error span {
        color: #788783;
        font-size: 9px;
    }

    .desktop-home-panel .mobile-news-footer small[data-kind="error"] {
        color: #b33d3d;
    }

    .desktop-home-panel .mobile-news-reader {
        position: absolute;
        inset: 0;
        z-index: 20;
        display: grid;
        grid-template-rows: 52px minmax(0, 1fr);
        min-width: 0;
        min-height: 0;
        background: #edf3f2;
    }

    .desktop-home-panel .mobile-news-reader[hidden],
    .desktop-home-panel .mobile-news-reader figure[hidden] {
        display: none !important;
    }

    .desktop-home-panel .mobile-news-reader > header {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        align-items: center;
        gap: 7px;
        min-height: 52px;
        padding: 6px 8px;
        color: #fff;
        background: linear-gradient(135deg, #075f4a, #0b8d6a);
        box-shadow: 0 4px 14px rgba(22, 64, 54, .18);
    }

    .desktop-home-panel .mobile-news-reader > header > button {
        display: inline-grid;
        width: 36px;
        min-width: 36px;
        min-height: 36px;
        margin: 0;
        padding: 0;
        place-items: center;
        color: #fff;
        background: rgba(255, 255, 255, .13);
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 10px;
    }

    .desktop-home-panel .mobile-news-reader > header > button:hover {
        background: rgba(255, 255, 255, .23);
    }

    .desktop-home-panel .mobile-news-reader > header > button svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2.2;
    }

    .desktop-home-panel .mobile-news-reader > header > strong {
        grid-column: 2;
        overflow: hidden;
        font-size: 14px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .desktop-home-panel .mobile-news-reader-scroll {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .desktop-home-panel .mobile-news-reader figure {
        display: grid;
        min-height: 145px;
        margin: 0;
        place-items: center;
        overflow: hidden;
        background: #dbe8e5;
        border-bottom: 1px solid #cadbd6;
    }

    .desktop-home-panel .mobile-news-reader figure img {
        display: block;
        width: 100%;
        max-height: 240px;
        object-fit: contain;
    }

    .desktop-home-panel .mobile-news-reader article {
        padding: 16px 14px 26px;
        background: #fff;
    }

    .desktop-home-panel .mobile-news-reader article > p {
        margin: 0 0 7px;
        color: #16805b;
        font-size: 10px;
        font-weight: 850;
    }

    .desktop-home-panel .mobile-news-reader article > h2 {
        margin: 0 0 14px;
        color: #183a34;
        font-size: 18px;
        line-height: 1.4;
    }

    .desktop-home-panel .mobile-news-reader article > div {
        color: #425b55;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.8;
        overflow-wrap: anywhere;
        white-space: pre-line;
    }

    .desktop-home-panel .mobile-news-reader.is-announcement article > div {
        font-size: 14px;
    }
}

.mobile-news-reader article > div a.announcement-external-link {
    color: #08795c;
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.mobile-news-reader article > div a.announcement-external-link:hover,
.mobile-news-reader article > div a.announcement-external-link:focus-visible {
    color: #055b46;
}

.mail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-height: calc(100vh - var(--topbar-height) - 58px);
}

.mail-list-panel,
.mail-reader-panel {
    min-height: calc(100vh - var(--topbar-height) - 58px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mail-list-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.mail-list-panel > .mail-panel-head {
    grid-row: 1;
}

.mail-list-panel > .mail-status {
    grid-row: 2;
}

.mail-list-panel > .mail-items {
    grid-row: 3;
}

.mail-list-panel > .mail-pagination {
    grid-row: 4;
}

.mail-panel-head,
.mail-reader-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.mail-panel-head h1,
.mail-reader-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.mail-panel-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    flex: 1 1 auto;
}

.mail-panel-title {
    flex: 0 0 auto;
}

.mail-compose-link,
.mail-reader-head a {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.mail-compose-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 5px 13px rgba(8, 124, 127, .2);
}

.mail-compose-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mail-reader-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.mail-reader-back {
    display: none;
}

.mail-reader-actions form {
    display: flex;
    margin: 0;
}

.mail-reader-actions .mail-reader-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    margin: 0;
    padding: 8px 13px;
    color: #31565b;
    background: linear-gradient(180deg, #fff, #f4f9f9);
    border: 1px solid #cbdcdd;
    border-radius: 11px;
    box-shadow: 0 3px 10px rgba(24, 68, 72, .08);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.mail-reader-actions .mail-reader-back {
    display: none;
}

.mail-reader-actions .mail-reader-action svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mail-reader-actions .mail-reader-action:hover {
    color: #1f4e53;
    background: #fff;
    border-color: #8eb9ba;
    box-shadow: 0 6px 15px rgba(24, 68, 72, .14);
    text-decoration: none;
    transform: translateY(-1px);
}

.mail-reader-actions .mail-reader-share {
    color: #fff;
    background: linear-gradient(135deg, #087c7f, #13a0a2);
    border-color: #087c7f;
    box-shadow: 0 5px 14px rgba(8, 124, 127, .22);
}

.mail-reader-actions .mail-reader-share:hover {
    color: #fff;
    background: var(--primary-strong);
    border-color: var(--primary-strong);
}

.mail-reader-actions .mail-reader-reply {
    color: #285da8;
    background: #f2f7ff;
    border-color: #c4d6ee;
}

.mail-reader-actions .mail-reader-reply:hover {
    color: #174d99;
    background: #fff;
    border-color: #87aadb;
}

.mail-reader-actions .mail-reader-delete {
    color: #b4232b;
    background: #fff6f6;
    border-color: #edc5c8;
    box-shadow: 0 3px 10px rgba(180, 35, 43, .08);
}

.mail-reader-actions .mail-reader-delete:hover {
    color: #fff;
    background: #b4232b;
    border-color: #b4232b;
    box-shadow: 0 6px 15px rgba(180, 35, 43, .2);
}

.mail-reader-actions .mail-reader-action:active {
    box-shadow: none;
    transform: translateY(0);
}

.mail-reader-actions .mail-reader-action:focus-visible {
    outline: 3px solid rgba(15, 139, 141, .24);
    outline-offset: 2px;
}

.mail-compose-link:hover,
.mail-reader-head > a:hover {
    background: var(--primary-strong);
}

.mail-page-share-status {
    display: none;
    margin: 0;
    padding: 9px 18px;
    color: var(--muted);
    background: #f7fbfb;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 850;
}

.mail-page-share-status:not(:empty) {
    display: block;
}

.mail-page-share-status[data-kind="ok"] {
    color: #147563;
}

.mail-page-share-status[data-kind="error"] {
    color: var(--danger);
}

.mail-account {
    display: grid;
    gap: 3px;
    padding: 14px 18px;
    background: #f7fbfb;
    border-bottom: 1px solid var(--line);
}

.mail-panel-head .mail-account {
    flex: 1 1 auto;
    min-width: 0;
    gap: 1px;
    padding: 0 0 0 13px;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
}

.mail-panel-head .mail-account strong {
    font-size: 13px;
    line-height: 1.2;
}

.mail-panel-head .mail-account span,
.mail-panel-head .mail-account small {
    font-size: 11px;
    line-height: 1.25;
}

.mail-account strong,
.mail-account span,
.mail-account small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-account span,
.mail-account small {
    color: var(--muted);
    font-size: 13px;
}

.mail-status {
    margin: 0;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 750;
}

.mail-status.error {
    color: #8d2525;
    background: #fff0ed;
}

.mail-items {
    min-height: 0;
    overflow: auto;
}

.mail-item {
    display: grid;
    gap: 3px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.mail-item:hover,
.mail-item.active {
    background: #eef7f8;
}

.mail-item.active {
    border-left: 4px solid var(--primary);
    padding-left: 14px;
}

.mail-item.unread strong::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: var(--danger);
    border-radius: 50%;
    vertical-align: 1px;
}

.mail-item strong,
.mail-item span,
.mail-item small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-item span,
.mail-item small {
    color: var(--muted);
    font-size: 13px;
}

.mail-pagination {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f7fbfb;
    border-top: 1px solid var(--line);
    text-align: center;
}

.mail-pagination a,
.mail-pagination span {
    display: inline-grid;
    min-height: 34px;
    padding: 6px 10px;
    place-items: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.mail-pagination a {
    color: #fff;
    background: var(--primary);
}

.mail-pagination span {
    color: #9aa8a5;
    background: #e9efee;
}

.mail-pagination strong {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.mail-empty,
.mail-empty-state {
    padding: 22px;
    color: var(--muted);
}

.mail-reader-panel {
    overflow: hidden;
}

.mail-message,
.mail-compose {
    min-height: 100%;
}

.mail-meta {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 16px 18px;
    background: #f7fbfb;
    border-bottom: 1px solid var(--line);
}

.mail-meta div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
}

.mail-meta dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.mail-meta dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.mail-attachments {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.mail-attachments > strong {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.mail-attachments article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    max-width: 640px;
    padding: 10px;
    background: #f7fbfb;
    border: 1px solid #dbe9e7;
    border-radius: 8px;
}

.mail-attachments article > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
}

.mail-attachments article > span::before {
    content: "";
    width: 16px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 3px 6px 3px 3px;
}

.mail-attachments article div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mail-attachments b,
.mail-attachments small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-attachments a {
    color: var(--text);
    text-decoration: none;
}

.mail-attachments a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.mail-attachments small {
    color: var(--muted);
    font-size: 13px;
}

.mail-body {
    max-height: calc(100vh - var(--topbar-height) - 260px);
    padding: 22px;
    overflow: auto;
    color: #263235;
    font-size: 15px;
    line-height: 1.75;
}

.mail-compose form {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.mail-compose label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.mail-compose-field {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.mail-compose input,
.mail-compose textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 8px;
    font: inherit;
}

.mail-compose textarea {
    min-height: 260px;
    resize: vertical;
}

.mail-compose form > button[type="submit"] {
    justify-self: start;
    min-width: 120px;
    margin-top: 2px;
}

.mail-recipient-input-wrap {
    position: relative;
    min-width: 0;
}

.mail-recipient-hint {
    color: #718581;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.mail-recipient-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 65;
    max-height: min(320px, 42vh);
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, .99);
    border: 1px solid #bcd0d0;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(23, 55, 58, .2);
    -webkit-overflow-scrolling: touch;
}

.mail-recipient-autocomplete[hidden] {
    display: none;
}

.mail-recipient-autocomplete button {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 10px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    margin: 0;
    padding: 7px 9px;
    color: #263b3d;
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mail-recipient-autocomplete button + button {
    border-top: 1px solid #edf2f1;
}

.mail-recipient-autocomplete button:hover,
.mail-recipient-autocomplete button.is-active {
    color: #164f51;
    background: #eaf7f5;
}

.mail-recipient-option-avatar {
    grid-row: 1 / 3;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #147c78, #35a575);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 950;
}

.mail-recipient-option-copy {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.mail-recipient-option-copy strong,
.mail-recipient-option-copy small,
.mail-recipient-autocomplete button em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-recipient-option-copy strong {
    color: inherit;
    font-size: 13px;
    font-weight: 950;
}

.mail-recipient-option-copy small {
    color: #70827f;
    font-size: 11px;
    font-weight: 750;
}

.mail-recipient-autocomplete button em {
    grid-column: 2;
    color: #17806f;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.mail-recipient-autocomplete-status {
    margin: 0;
    padding: 13px 12px;
    color: #687b78;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.mail-recipient-autocomplete-status[data-kind="error"] {
    color: #a52828;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .mail-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mail-layout.has-mail-message .mail-list-panel,
    .mail-layout.has-mail-compose .mail-list-panel,
    .mail-layout:not(.has-mail-message):not(.has-mail-compose) .mail-reader-panel {
        display: none;
    }

    .mail-list-panel,
    .mail-reader-panel {
        min-height: 0;
    }

    .mail-reader-actions .mail-reader-back {
        display: inline-flex;
    }

    .mail-items {
        max-height: 48vh;
    }

    .mail-body {
        max-height: none;
    }

    .mail-reader-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .mail-reader-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 7px;
    }

    .mail-reader-actions form {
        width: 100%;
        min-width: 0;
    }

    .mail-reader-actions .mail-reader-action {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 7px 4px;
        border-radius: 12px;
        font-size: 12px;
    }

    .mail-reader-actions .mail-reader-action svg {
        width: 20px;
        height: 20px;
    }
}

/* Personal HTML components: a card-based toolbox kept separate from the shortcut wheel. */
.topbar nav .custom-widget-library-toggle {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #fff5d6;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
}

.topbar nav .custom-widget-library-toggle:hover,
.topbar nav .custom-widget-library-toggle:focus-visible,
.topbar nav .custom-widget-library-toggle[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, .24);
}

.custom-widget-library-toggle svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.mobile-custom-widget-library-toggle {
    display: none;
}

.custom-widget-library-modal {
    position: fixed;
    inset: 0;
    z-index: 1460;
    display: grid;
    padding: 24px;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.custom-widget-library-modal[hidden] {
    display: none;
}

.custom-widget-library-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.custom-widget-library-backdrop,
.custom-widget-library-backdrop:hover,
.custom-widget-library-backdrop:focus,
.custom-widget-library-backdrop:active {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: rgba(7, 28, 33, .62);
    border: 0;
    border-radius: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.custom-widget-library-window {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(860px, calc(100vw - 48px));
    height: min(720px, calc(100dvh - 48px));
    min-height: 420px;
    overflow: hidden;
    background: #f5faf8;
    border: 1px solid rgba(198, 224, 216, .95);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(5, 24, 28, .34);
    transform: translateY(18px) scale(.98);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.custom-widget-library-modal.is-open .custom-widget-library-window {
    transform: none;
}

.custom-widget-library-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 13px 17px 13px 22px;
    color: #fff;
    background: linear-gradient(120deg, #155d69, #2c806f 58%, #aa7b2f);
}

.custom-widget-library-head > div {
    display: grid;
    gap: 3px;
}

.custom-widget-library-head span {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.custom-widget-library-head strong {
    font-size: 21px;
    font-weight: 950;
}

.custom-widget-library-head > button,
.custom-widget-library-head > button:hover,
.custom-widget-library-head > button:focus {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    font-size: 25px;
    line-height: 1;
}

.custom-widget-library-content {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.custom-widget-library-content > section {
    height: 100%;
    min-height: 0;
}

.custom-widget-list-view {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 22px;
}

.custom-widget-list-view[hidden],
.custom-widget-editor-view[hidden],
.custom-widget-preview-view[hidden] {
    display: none;
}

.custom-widget-list-view > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.custom-widget-list-view > header > div {
    display: grid;
    gap: 4px;
}

.custom-widget-list-view > header strong {
    color: #173f43;
    font-size: 19px;
    font-weight: 950;
}

.custom-widget-list-view > header p {
    margin: 0;
    color: #647977;
    font-size: 13px;
    font-weight: 650;
}

.custom-widget-list-view > header > span {
    padding: 6px 10px;
    color: #176c61;
    background: #e2f4ee;
    border: 1px solid #c2e5da;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.custom-widget-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 14px;
    min-height: 0;
    padding: 2px 4px 14px 2px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.custom-widget-create-card,
.custom-widget-card {
    min-width: 0;
    min-height: 166px;
    border-radius: 18px;
}

.custom-widget-create-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    margin: 0;
    padding: 19px;
    color: #17695f;
    background:
        linear-gradient(#f5fbf8, #f5fbf8) padding-box,
        repeating-linear-gradient(135deg, #86cdbb 0 8px, #d9eee8 8px 16px) border-box;
    border: 2px dashed transparent;
    box-shadow: 0 8px 24px rgba(30, 91, 80, .08);
}

.custom-widget-create-card:hover,
.custom-widget-create-card:focus-visible {
    color: #0f554e;
    background:
        linear-gradient(#e9f7f2, #e9f7f2) padding-box,
        repeating-linear-gradient(135deg, #5eb39d 0 8px, #c7e7de 8px 16px) border-box;
    transform: translateY(-2px);
}

.custom-widget-create-card > span,
.custom-widget-card-open > span {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
}

.custom-widget-create-card > span {
    color: #fff;
    background: linear-gradient(145deg, #2e957f, #17665e);
    box-shadow: 0 8px 18px rgba(23, 102, 94, .24);
}

.custom-widget-create-card svg,
.custom-widget-card-open svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.custom-widget-create-card strong,
.custom-widget-card-open strong {
    font-size: 15px;
    font-weight: 950;
    line-height: 1.3;
}

.custom-widget-create-card small,
.custom-widget-card-open small {
    color: #71817f;
    font-size: 11px;
    font-weight: 700;
}

.custom-widget-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d7e5e1;
    box-shadow: 0 8px 26px rgba(24, 60, 57, .08);
}

.custom-widget-card-open,
.custom-widget-card-open:hover,
.custom-widget-card-open:focus-visible {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 8px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 17px;
    color: #214946;
    text-align: left;
    background: linear-gradient(145deg, #fff, #f0f8f5);
    border: 0;
    border-radius: 0;
}

.custom-widget-card-open:hover,
.custom-widget-card-open:focus-visible {
    background: linear-gradient(145deg, #f1faf7, #e5f3ee);
}

.custom-widget-card-open > span {
    color: #2d756a;
    background: #ddf0ea;
}

.custom-widget-card-open strong {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-widget-card > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e3ece9;
}

.custom-widget-card > div button,
.custom-widget-card > div button:hover,
.custom-widget-card > div button:focus {
    min-height: 38px;
    margin: 0;
    padding: 7px 9px;
    color: #45706b;
    background: #fff;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 850;
}

.custom-widget-card > div button + button {
    color: #a24747;
    border-left: 1px solid #e3ece9;
}

.custom-widget-card > div button:hover,
.custom-widget-card > div button:focus {
    background: #edf6f3;
}

.custom-widget-library-status {
    min-height: 20px;
    margin: 0;
    color: #687b79;
    font-size: 12px;
    font-weight: 750;
}

.custom-widget-library-status[data-kind="ok"] {
    color: #087252;
}

.custom-widget-library-status[data-kind="error"] {
    color: #af3737;
}

.custom-widget-editor-view {
    padding: 20px 22px 22px;
    overflow-y: auto;
}

.custom-widget-view-back,
.custom-widget-view-back:hover,
.custom-widget-view-back:focus {
    margin: 0 0 13px;
    padding: 7px 0;
    color: #2c6d66;
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 900;
}

.custom-widget-editor-view form {
    display: grid;
    gap: 14px;
}

.custom-widget-editor-view label {
    display: grid;
    gap: 7px;
    color: #294e4b;
    font-size: 13px;
    font-weight: 900;
}

.custom-widget-editor-view input,
.custom-widget-editor-view textarea {
    width: 100%;
    color: #193c3a;
    background: #fff;
    border: 1px solid #cbdeda;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.custom-widget-editor-view input {
    min-height: 44px;
    padding: 10px 12px;
}

.custom-widget-editor-view textarea {
    min-height: 270px;
    padding: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.55;
    resize: vertical;
    tab-size: 2;
}

.custom-widget-editor-view input:focus,
.custom-widget-editor-view textarea:focus {
    border-color: #4caa94;
    outline: 3px solid rgba(76, 170, 148, .15);
}

.custom-widget-security-note {
    margin: -4px 0 0;
    padding: 10px 12px;
    color: #66572c;
    background: #fff8df;
    border: 1px solid #ebdda2;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.custom-widget-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.custom-widget-editor-actions button {
    min-width: 110px;
}

.custom-widget-preview-view {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
}

.custom-widget-preview-view > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.custom-widget-preview-view > header .custom-widget-view-back {
    margin: 0;
}

.custom-widget-preview-view > header > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.custom-widget-preview-view > header strong {
    max-width: 360px;
    overflow: hidden;
    color: #244b48;
    font-size: 15px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-widget-preview-view > header > div button {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 12px;
}

.custom-widget-preview-view iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
    border: 1px solid #cbdeda;
    border-radius: 14px;
}

body.has-custom-widget-library {
    overflow: hidden;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .desktop-custom-widget-library-toggle {
        display: none !important;
    }

    body.has-mobile-chat-app .mobile-custom-widget-library-toggle {
        display: inline-grid;
        flex: 0 0 50px;
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
        margin: 0;
        padding: 8px;
        place-items: center;
        color: #785b1b;
        background: linear-gradient(145deg, #fff9e7, #f4eacb);
        border: 1px solid #dfca8d;
        border-radius: 15px;
        box-shadow: 0 5px 14px rgba(117, 87, 23, .13);
        -webkit-tap-highlight-color: transparent;
    }

    body.has-mobile-chat-app .mobile-custom-widget-library-toggle[aria-expanded="true"] {
        color: #fff;
        background: linear-gradient(145deg, #a47a27, #785917);
        border-color: rgba(255, 255, 255, .55);
    }

    body.has-mobile-chat-app .mobile-custom-widget-library-toggle svg {
        width: 30px;
        height: 30px;
    }

    .custom-widget-library-modal {
        inset: 0 0 var(--mobile-nav-height, 0px) 0;
        padding: max(8px, var(--mobile-safe-top, 0px)) 8px 8px;
        place-items: stretch;
    }

    .custom-widget-library-window {
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 18px;
    }

    .custom-widget-library-head {
        min-height: 62px;
        padding: 10px 11px 10px 16px;
    }

    .custom-widget-library-head strong {
        font-size: 18px;
    }

    .custom-widget-library-head > button,
    .custom-widget-library-head > button:hover,
    .custom-widget-library-head > button:focus {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .custom-widget-list-view {
        gap: 12px;
        padding: 15px 13px max(16px, env(safe-area-inset-bottom));
    }

    .custom-widget-list-view > header strong {
        font-size: 17px;
    }

    .custom-widget-list-view > header p {
        font-size: 12px;
    }

    .custom-widget-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .custom-widget-create-card,
    .custom-widget-card {
        min-height: 150px;
        border-radius: 15px;
    }

    .custom-widget-create-card {
        padding: 14px;
    }

    .custom-widget-card-open,
    .custom-widget-card-open:hover,
    .custom-widget-card-open:focus-visible {
        padding: 13px;
    }

    .custom-widget-editor-view {
        padding: 13px 14px max(18px, env(safe-area-inset-bottom));
    }

    .custom-widget-editor-view input,
    .custom-widget-editor-view textarea {
        font-size: 16px;
    }

    .custom-widget-editor-view textarea {
        min-height: 230px;
    }

    .custom-widget-preview-view {
        padding: 10px;
    }

    .custom-widget-preview-view > header {
        align-items: flex-start;
    }

    .custom-widget-preview-view > header > div {
        justify-content: flex-end;
    }

    .custom-widget-preview-view > header strong {
        max-width: 130px;
    }
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .mail-recipient-field input[data-mail-recipient-input] {
        font-size: 16px;
    }

    .mail-recipient-autocomplete {
        max-height: min(300px, 40dvh);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.has-mail-attachment-preview {
    overflow: hidden;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2.4vw, 24px);
    min-height: 64px;
    padding: 8px clamp(18px, 4vw, 48px);
    color: #fff;
    background: linear-gradient(135deg, #0b3440 0%, #0f6c78 62%, #3f8550 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 12px 30px rgba(15, 52, 64, .18);
}

.brand {
    display: inline-grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #08323a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-copy strong,
.brand-copy small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy strong {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 950;
    line-height: 1.2;
}

.brand-copy small {
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.topbar-actions {
    display: grid;
    align-self: stretch;
    align-items: center;
    justify-items: end;
    gap: 0;
    flex: 0 0 auto;
    min-width: 0;
    margin-top: 0;
}

.topbar-clock {
    margin-top: 4px;
    padding: 0 1px;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: "Segoe UI", ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .18);
    white-space: nowrap;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.nav-user {
    display: grid;
    gap: 1px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}

.nav-status {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 850;
}

.avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    background: #edf4f4;
    border: 1px solid rgba(100, 114, 119, .22);
    border-radius: 50%;
}

.avatar img,
.avatar-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar img {
    object-fit: cover;
}

.avatar-placeholder {
    background:
        radial-gradient(circle at 50% 35%, #c8d6d7 0 18%, transparent 19%),
        radial-gradient(circle at 50% 88%, #c8d6d7 0 34%, transparent 35%),
        #eef5f4;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .86);
    border-color: rgba(255, 255, 255, .55);
}

.profile-menu {
    position: relative;
}

.mail-menu {
    position: relative;
}

.mail-menu summary {
    position: relative;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}

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

.mail-menu summary:hover,
.mail-menu[open] summary {
    background: rgba(255, 255, 255, .22);
}

.mail-menu.has-unread-mail summary {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .45);
    animation: mail-icon-pulse 1.8s ease-out infinite;
}

.mail-menu summary svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.topbar nav .desktop-shortcut-wheel-toggle {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #dff4ff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
}

.topbar nav .desktop-shortcut-wheel-toggle:hover,
.topbar nav .desktop-shortcut-wheel-toggle:focus-visible,
.topbar nav .desktop-shortcut-wheel-toggle[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, .24);
}

.topbar nav .desktop-shortcut-wheel-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .35);
    outline-offset: 2px;
}

.topbar nav .desktop-shortcut-wheel-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform .32s ease;
}

.topbar nav .desktop-shortcut-wheel-toggle[aria-expanded="true"] svg {
    transform: rotate(72deg);
}

.desktop-shortcut-wheel-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    padding: 24px;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.desktop-shortcut-wheel-modal[hidden] {
    display: none;
}

.desktop-shortcut-wheel-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.desktop-shortcut-wheel-modal .desktop-shortcut-wheel-backdrop,
.desktop-shortcut-wheel-modal .desktop-shortcut-wheel-backdrop:hover,
.desktop-shortcut-wheel-modal .desktop-shortcut-wheel-backdrop:focus,
.desktop-shortcut-wheel-modal .desktop-shortcut-wheel-backdrop:active {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: rgba(11, 31, 38, .58);
    border: 0;
    border-radius: 0;
    outline: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.desktop-shortcut-wheel {
    position: relative;
    z-index: 1;
    width: min(370px, calc(100vw - 48px));
    aspect-ratio: 1;
    color: var(--text);
    background: radial-gradient(circle, rgba(29, 92, 107, .3) 0 33%, rgba(255, 255, 255, .12) 34% 58%, rgba(255, 255, 255, .08) 59% 100%);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    box-shadow: inset 0 0 0 14px rgba(255, 255, 255, .06), 0 28px 80px rgba(5, 25, 31, .4);
    transform: scale(.82) rotate(-8deg);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.desktop-shortcut-wheel::before,
.desktop-shortcut-wheel::after {
    position: absolute;
    inset: 57px;
    content: "";
    pointer-events: none;
    border: 1px dashed rgba(255, 255, 255, .4);
    border-radius: 50%;
}

.desktop-shortcut-wheel::after {
    inset: 91px;
    border-style: solid;
    border-color: rgba(255, 255, 255, .2);
}

.desktop-shortcut-wheel-modal.is-open .desktop-shortcut-wheel {
    transform: scale(1) rotate(0);
}

.desktop-shortcut-wheel-item {
    position: absolute;
    z-index: 2;
    display: grid;
    grid-template-rows: 60px auto;
    justify-items: center;
    gap: 6px;
    width: 100px;
    color: #27648b;
    opacity: 0;
    text-align: center;
    text-decoration: none;
    transform: scale(.4);
    transition: opacity .22s ease, transform .3s cubic-bezier(.2, .85, .25, 1.2);
}

.desktop-shortcut-wheel-modal.is-open .desktop-shortcut-wheel-item {
    opacity: 1;
    transform: scale(1);
}

.desktop-shortcut-wheel-item > span {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    background: #edf7ff;
    border: 1px solid #c7dff0;
    border-radius: 19px;
    box-shadow: 0 10px 24px rgba(7, 31, 38, .26);
    transition: transform .16s ease, filter .16s ease;
}

.desktop-shortcut-wheel-item:hover > span,
.desktop-shortcut-wheel-item:focus-visible > span {
    filter: brightness(1.04);
    transform: translateY(-3px) scale(1.05);
}

.desktop-shortcut-wheel-item strong {
    max-width: 100px;
    padding: 4px 9px;
    overflow: hidden;
    color: #fff;
    background: rgba(10, 37, 45, .78);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
    white-space: nowrap;
}

.desktop-shortcut-wheel-item svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.desktop-shortcut-wheel-item.is-access-audit {
    color: #14744d;
}

.desktop-shortcut-wheel-item.is-access-audit > span {
    background: #ebf9f1;
    border-color: #bfe3ce;
}

.desktop-shortcut-wheel-item.is-security-center {
    color: #a54343;
}

.desktop-shortcut-wheel-item.is-security-center > span {
    background: #fff0f0;
    border-color: #edc6c6;
}

.desktop-shortcut-wheel-item.is-lims-online {
    color: #8a6812;
}

.desktop-shortcut-wheel-item.is-lims-online > span {
    background: #fff8d8;
    border-color: #ebd47e;
}

.desktop-shortcut-wheel-item.is-asset-hub {
    color: #6d43a7;
}

.desktop-shortcut-wheel-item.is-asset-hub > span {
    background: #f5efff;
    border-color: #d8c3f1;
}

.desktop-shortcut-wheel-item.is-asset-map {
    color: #a26019;
}

.desktop-shortcut-wheel-item.is-asset-map > span {
    background: #fff6e9;
    border-color: #efd4ad;
}

.desktop-shortcut-wheel-item.is-ezcat {
    color: #17191c;
}

.desktop-shortcut-wheel-item.is-ezcat > span {
    overflow: hidden;
    background: #f4f5f6;
    border-color: #d4d8dc;
}

.desktop-shortcut-wheel-item.is-ezcat img {
    display: block;
    width: 58px;
    height: 48px;
    object-fit: contain;
}

.desktop-shortcut-wheel-item.is-it-notice {
    color: #176f82;
}

.desktop-shortcut-wheel-item.is-it-notice > span {
    background: #eaf8fb;
    border-color: #b9dfe7;
}

.desktop-shortcut-wheel-item.wheel-slot-1 {
    top: 0;
    left: calc(50% - 50px);
    transition-delay: .02s;
}

.desktop-shortcut-wheel-item.wheel-slot-2 {
    top: 14%;
    right: 8%;
    transition-delay: .06s;
}

.desktop-shortcut-wheel-item.wheel-slot-3 {
    top: 45%;
    right: -1px;
    transition-delay: .1s;
}

.desktop-shortcut-wheel-item.wheel-slot-4 {
    right: 21%;
    bottom: 1%;
    transition-delay: .14s;
}

.desktop-shortcut-wheel-item.wheel-slot-5 {
    bottom: 1%;
    left: 21%;
    transition-delay: .18s;
}

.desktop-shortcut-wheel-item.wheel-slot-6 {
    top: 45%;
    left: -1px;
    transition-delay: .22s;
}

.desktop-shortcut-wheel-item.wheel-slot-7 {
    top: 14%;
    left: 8%;
    transition-delay: .26s;
}

.desktop-shortcut-wheel[data-shortcut-count="3"] .desktop-shortcut-wheel-item:nth-of-type(1) {
    top: 1%;
    right: auto;
    bottom: auto;
    left: calc(50% - 50px);
}

.desktop-shortcut-wheel[data-shortcut-count="3"] .desktop-shortcut-wheel-item:nth-of-type(2) {
    top: auto;
    right: 8%;
    bottom: 8%;
    left: auto;
}

.desktop-shortcut-wheel[data-shortcut-count="3"] .desktop-shortcut-wheel-item:nth-of-type(3) {
    top: auto;
    right: auto;
    bottom: 8%;
    left: 8%;
}

.desktop-shortcut-wheel[data-shortcut-count="4"] .desktop-shortcut-wheel-item:nth-of-type(1) {
    top: 1%;
    right: auto;
    bottom: auto;
    left: calc(50% - 50px);
}

.desktop-shortcut-wheel[data-shortcut-count="4"] .desktop-shortcut-wheel-item:nth-of-type(2) {
    top: calc(50% - 36px);
    right: -1%;
    bottom: auto;
    left: auto;
}

.desktop-shortcut-wheel[data-shortcut-count="4"] .desktop-shortcut-wheel-item:nth-of-type(3) {
    top: auto;
    right: auto;
    bottom: 1%;
    left: calc(50% - 50px);
}

.desktop-shortcut-wheel[data-shortcut-count="4"] .desktop-shortcut-wheel-item:nth-of-type(4) {
    top: calc(50% - 36px);
    right: auto;
    bottom: auto;
    left: -1%;
}

.desktop-shortcut-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    width: 94px;
    min-width: 94px;
    height: 94px;
    min-height: 94px;
    margin: 0;
    padding: 11px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #147e91, #174d75);
    border: 6px solid rgba(255, 255, 255, .84);
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(5, 28, 38, .38);
    transform: translate(-50%, -50%);
}

.desktop-shortcut-wheel-center svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.desktop-shortcut-wheel-center span {
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.desktop-shortcut-wheel-item:focus-visible,
.desktop-shortcut-wheel-center:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .8);
    outline-offset: 4px;
}

body.has-desktop-shortcut-wheel {
    overflow: hidden;
}

.topbar nav .topbar-it-service {
    display: inline-grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
}

.topbar nav .topbar-it-service:hover,
.topbar nav .topbar-it-service:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

.topbar nav .topbar-it-service:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .35);
    outline-offset: 2px;
}

.topbar nav .topbar-it-service svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.desktop-service-menu {
    position: relative;
}

.desktop-service-menu > summary {
    cursor: pointer;
    list-style: none;
}

.desktop-service-menu > summary::-webkit-details-marker {
    display: none;
}

.desktop-service-menu[open] > summary {
    color: #fff;
    background: rgba(255, 255, 255, .24);
}

.desktop-service-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    width: min(340px, calc(100vw - 32px));
    overflow: hidden;
    color: var(--text);
    background: #f5f9f8;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(18, 48, 42, .22);
}

.desktop-service-panel > header {
    display: grid;
    gap: 2px;
    padding: 14px 16px 12px;
    color: #fff;
    background: linear-gradient(135deg, #075f4a, #078e70);
}

.desktop-service-panel > header span {
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
}

.desktop-service-panel > header strong {
    font-size: 15px;
    line-height: 1.3;
}

.desktop-service-panel > div {
    display: grid;
    gap: 9px;
    padding: 12px;
}

.topbar nav .desktop-service-panel a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 19px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 62px;
    margin: 0;
    padding: 10px 11px;
    color: #294a42;
    background: #fff;
    border: 1px solid #dbe8e4;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(20, 57, 48, .06);
    text-decoration: none;
}

.topbar nav .desktop-service-panel a:hover,
.topbar nav .desktop-service-panel a:focus-visible {
    color: #174b3e;
    background: #eef8f3;
    border-color: #9fcfbe;
    text-decoration: none;
}

.topbar nav .desktop-service-panel a:focus-visible {
    outline: 3px solid rgba(6, 167, 101, .22);
    outline-offset: -2px;
}

.desktop-service-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    border-radius: 12px;
}

.desktop-service-icon.it {
    background: linear-gradient(135deg, #087c7f, #12a7a0);
}

.desktop-service-icon.instrument {
    background: linear-gradient(135deg, #e57724, #f2a43e);
}

.desktop-service-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-service-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.desktop-service-copy strong {
    font-size: 14px;
    line-height: 1.25;
}

.desktop-service-copy small {
    overflow: hidden;
    color: #71827d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-service-arrow {
    width: 19px;
    height: 19px;
    fill: none;
    color: #93a7a1;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mail-menu-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    padding: 2px 6px;
    color: #fff;
    background: var(--danger);
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.25;
    text-align: center;
}

.mail-menu-badge.hidden {
    display: none;
}

@keyframes mail-icon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .42);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.mail-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 45;
    width: min(520px, calc(100vw - 32px));
    overflow: hidden;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mail-menu-panel header,
.mail-menu-panel footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}

.mail-menu-panel header {
    border-bottom: 1px solid var(--line);
}

.mail-menu-panel header > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mail-menu-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.mail-menu-panel footer {
    background: #f7fbfb;
    border-top: 1px solid var(--line);
}

.mail-menu-panel footer.mail-menu-actions {
    justify-content: flex-end;
}

.mail-menu[data-mail-view="message"] > .mail-menu-panel > footer.mail-menu-actions,
.mail-menu[data-mail-view="compose"] > .mail-menu-panel > footer.mail-menu-actions {
    display: none;
}

.mail-menu-panel strong {
    font-size: 14px;
    font-weight: 900;
}

.mail-menu-panel header small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.topbar nav .mail-menu-panel a {
    min-height: auto;
    margin: 0;
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.topbar nav .mail-menu-panel a:hover {
    color: var(--primary-strong);
    background: transparent;
    text-decoration: underline;
}

.mail-menu-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.topbar nav .mail-menu-panel .mail-menu-action-button,
.mail-menu-message-detail footer .mail-menu-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    margin: 0;
    padding: 7px 11px;
    color: var(--primary);
    background: #fff;
    border: 1px solid #cbdde0;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.topbar nav .mail-menu-panel .mail-menu-action-button:hover,
.mail-menu-message-detail footer .mail-menu-action-button:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
}

.topbar nav .mail-menu-panel .mail-menu-action-button.danger,
.mail-menu-message-detail footer .mail-menu-action-button.danger {
    color: var(--danger);
    border-color: #e3c4c4;
}

.topbar nav .mail-menu-panel .mail-menu-action-button.danger:hover,
.mail-menu-message-detail footer .mail-menu-action-button.danger:hover {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.mail-menu-action-button svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mail-menu-head-actions button {
    display: grid;
    width: 30px;
    min-height: 30px;
    place-items: center;
    margin: 0;
    padding: 0;
    color: var(--muted);
    background: #eef7f8;
    border: 1px solid #c9dddd;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.mail-menu-head-actions button:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.mail-menu-search {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    background: #f7fbfb;
    border-bottom: 1px solid var(--line);
}

.mail-menu-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.mail-menu-search input {
    width: 100%;
    min-height: 36px;
    padding: 8px 11px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
}

.mail-menu-search input:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(15, 108, 120, .16);
}

.mail-menu-list {
    max-height: min(62vh, 560px);
    overflow: auto;
}

.mail-menu-item,
.mail-menu-empty,
.mail-menu-more {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.mail-menu-loading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.mail-menu-loading-avatar,
.mail-menu-loading-content span,
.mail-menu-loading-date {
    display: block;
    background:
        linear-gradient(90deg, rgba(230, 243, 242, .8) 0%, rgba(246, 251, 250, .95) 45%, rgba(230, 243, 242, .8) 90%);
    background-size: 220% 100%;
    animation: mail-menu-shimmer 1.15s ease-in-out infinite;
}

.mail-menu-loading-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.mail-menu-loading-content {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.mail-menu-loading-content span:first-child {
    width: min(100%, 260px);
    height: 14px;
    border-radius: 999px;
}

.mail-menu-loading-content span:last-child {
    width: min(72%, 190px);
    height: 12px;
    border-radius: 999px;
}

.mail-menu-loading-date {
    justify-self: end;
    width: 64px;
    height: 11px;
    border-radius: 999px;
}

.mail-menu-message-loading {
    display: grid;
    gap: 13px;
    padding: 18px 16px 22px;
}

.mail-menu-message-loading span {
    display: block;
    height: 13px;
    background:
        linear-gradient(90deg, rgba(230, 243, 242, .8) 0%, rgba(246, 251, 250, .95) 45%, rgba(230, 243, 242, .8) 90%);
    background-size: 220% 100%;
    border-radius: 999px;
    animation: mail-menu-shimmer 1.15s ease-in-out infinite;
}

.mail-menu-message-loading span:nth-child(1) {
    width: 84%;
    height: 16px;
}

.mail-menu-message-loading span:nth-child(2) {
    width: 58%;
}

.mail-menu-message-loading span:nth-child(3),
.mail-menu-message-loading span:nth-child(4) {
    width: 96%;
}

.mail-menu-message-detail {
    display: grid;
    max-height: min(62vh, 560px);
    overflow: auto;
}

.mail-menu-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-self: start;
    min-height: 32px;
    margin: 12px 14px 0;
    padding: 6px 9px;
    color: var(--primary);
    background: #eef7f8;
    border: 1px solid #c9dddd;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.mail-menu-back:hover {
    color: #fff;
    background: var(--primary);
}

.mail-menu-back span {
    font-size: 18px;
    line-height: 1;
}

.mail-menu-message-detail > header {
    display: grid;
    gap: 5px;
    padding: 13px 16px 12px;
    border-bottom: 1px solid var(--line);
}

.mail-menu-message-detail > header strong {
    color: #172529;
    font-size: 16px;
    line-height: 1.4;
}

.mail-menu-message-detail > header small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.mail-menu-message-detail dl {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 12px 16px;
    background: #f7fbfb;
    border-bottom: 1px solid var(--line);
}

.mail-menu-message-detail dl div {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 9px;
}

.mail-menu-message-detail dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.mail-menu-message-detail dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
}

.mail-menu-attachments {
    display: grid;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.mail-menu-attachments > strong {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.mail-menu-attachment {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 9px;
    color: inherit;
    background: #f7fbfb;
    border: 1px solid #dbe9e7;
    border-radius: 8px;
    text-decoration: none;
}

.mail-menu-attachment:hover {
    background: #eef7f8;
    border-color: #bfdad8;
}

.mail-menu-attachment > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
}

.mail-menu-attachment > span::before {
    content: "";
    width: 14px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 3px 6px 3px 3px;
}

.mail-menu-attachment div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mail-menu-attachments b,
.mail-menu-attachments small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-menu-attachments b {
    color: var(--text);
    font-size: 13px;
}

.mail-menu-attachments small {
    color: var(--muted);
    font-size: 12px;
}

.mail-attachment-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.mail-attachment-preview-modal.is-open {
    display: block;
}

.mail-attachment-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 28, .58);
}

.mail-attachment-preview-window {
    position: absolute;
    inset: 5vh 5vw;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.mail-attachment-preview-window header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.mail-attachment-preview-window header strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-attachment-preview-window header div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.mail-attachment-preview-window header a,
.mail-attachment-preview-window header button {
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.mail-attachment-preview-window header button {
    width: 32px;
    padding: 0;
}

.mail-attachment-preview-window header .mail-attachment-preview-return {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
}

.mail-attachment-preview-return svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.mail-attachment-preview-body {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: auto;
    background: #243033;
}

.mail-attachment-preview-body img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mail-attachment-preview-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .mail-page-attachment-preview-modal {
        z-index: 1300;
    }

    .mail-page-attachment-preview-modal .mail-attachment-preview-window {
        inset: 0;
        width: auto;
        height: 100%;
        height: 100dvh;
        border-radius: 0;
    }

    .mail-page-attachment-preview-modal .mail-attachment-preview-window header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        min-height: calc(56px + env(safe-area-inset-top, 0px));
        padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px;
        color: #fff;
        background: #172f36;
        border-bottom-color: rgba(255, 255, 255, .16);
    }

    .mail-page-attachment-preview-modal .mail-attachment-preview-window header strong {
        font-size: 12px;
        text-align: center;
    }

    .mail-page-attachment-preview-modal .mail-attachment-preview-window header .mail-attachment-preview-return {
        min-width: 92px;
    }

    .mail-page-attachment-preview-modal .mail-attachment-preview-body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

.mail-menu-notice {
    position: fixed;
    top: calc(var(--topbar-height) + 14px);
    right: 18px;
    z-index: 130;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 14px;
    color: #fff;
    background: #0f6c78;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(12, 24, 28, .28);
    font-size: 14px;
    font-weight: 850;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

.mail-menu-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mail-menu-message-body {
    max-height: 300px;
    padding: 16px;
    overflow: auto;
    color: #263235;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.mail-menu-message-detail footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    background: #f7fbfb;
    border-top: 1px solid var(--line);
}

.mail-menu-share-status {
    min-height: 18px;
    margin: 0;
    padding: 0 16px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.mail-menu-share-status[data-kind="ok"] {
    color: #17623c;
}

.mail-menu-share-status[data-kind="error"] {
    color: #a52828;
}

.mail-menu-compose {
    display: grid;
    max-height: min(62vh, 560px);
    overflow: auto;
}

.mail-menu-compose > header {
    padding: 13px 16px 12px;
    border-bottom: 1px solid var(--line);
}

.mail-menu-compose > header strong {
    color: #172529;
    font-size: 16px;
    line-height: 1.4;
}

.mail-menu-compose form {
    display: grid;
    gap: 12px;
    padding: 14px 16px 16px;
}

.mail-menu-compose label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.mail-menu-compose .mail-compose-field {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.mail-menu-compose .mail-recipient-autocomplete {
    position: static;
    max-height: 220px;
    margin-top: 6px;
}

.mail-menu-compose input,
.mail-menu-compose textarea {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
}

.mail-menu-compose textarea {
    min-height: 150px;
    line-height: 1.55;
    resize: vertical;
}

.mail-menu-compose input:focus,
.mail-menu-compose textarea:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(15, 108, 120, .16);
}

.mail-menu-compose form > button {
    justify-self: start;
    min-width: 104px;
    min-height: 36px;
    margin: 0;
    padding: 8px 14px;
}

.mail-menu-compose form > button:disabled {
    opacity: .65;
    cursor: wait;
}

.mail-menu-compose [data-mail-compose-status] {
    min-height: 18px;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.mail-menu-compose [data-mail-compose-status][data-kind="ok"] {
    color: var(--accent);
}

.mail-menu-compose [data-mail-compose-status][data-kind="error"] {
    color: var(--danger);
}

.mail-menu-compose [data-mail-compose-status][data-kind="loading"] {
    color: var(--muted);
}

@keyframes mail-menu-shimmer {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

.topbar nav .mail-menu-list .mail-menu-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "avatar content"
        "avatar content";
    align-items: center;
    gap: 12px;
    min-height: 76px;
    color: var(--text);
    text-decoration: none;
}

.topbar nav .mail-menu-list .mail-menu-item:hover {
    background: #eef7f8;
    text-decoration: none;
}

.mail-menu-avatar {
    display: grid;
    grid-area: avatar;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #0a4654;
    background: #e6f3f2;
    border: 1px solid #c5dcda;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 950;
}

.mail-menu-item.unread .mail-menu-avatar {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.mail-menu-content {
    display: grid;
    grid-area: content;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "subject date"
        "sender sender";
    gap: 5px 12px;
    min-width: 0;
}

.mail-menu-content strong {
    grid-area: subject;
    color: #172529;
    font-size: 14px;
    line-height: 1.35;
}

.mail-menu-content span {
    grid-area: sender;
    line-height: 1.35;
}

.mail-menu-item small {
    grid-area: date;
    justify-self: end;
    max-width: 128px;
    padding-top: 1px;
    line-height: 1.35;
    text-align: right;
}

.mail-menu-content strong,
.mail-menu-content span,
.mail-menu-item small,
.mail-menu-empty,
.mail-menu-more {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-menu-item.unread strong::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    background: var(--danger);
    border-radius: 50%;
    vertical-align: 1px;
}

.mail-menu-content span,
.mail-menu-item small,
.mail-menu-empty,
.mail-menu-more {
    color: var(--muted);
    font-size: 13px;
}

.mail-menu-more {
    display: grid;
    min-height: 46px;
    place-items: center;
    background: #f7fbfb;
    font-weight: 850;
}

.profile-menu summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    cursor: pointer;
    list-style: none;
}

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

.profile-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(270px, calc(100vw - 32px));
    padding: 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.profile-panel form {
    display: grid;
    gap: 10px;
}

.profile-panel-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.profile-panel .profile-logout-form {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.profile-panel .profile-logout-form .link-button {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 7px 11px;
    color: #9b3535;
    background: #fff4f4;
    border: 1px solid #efcaca;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.profile-panel .profile-logout-form .link-button:hover {
    color: #fff;
    background: #b33d3d;
    border-color: #b33d3d;
}

.profile-panel-button {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 7px 12px;
    color: var(--primary);
    background: #f7fbfb;
    border: 1px solid #cbd8db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
}

.profile-panel-button:hover {
    background: #eef7f8;
}

.profile-panel label {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.profile-panel input[type="file"] {
    width: 100%;
    color: var(--muted);
    font-size: 13px;
}

.profile-status-form {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.profile-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.profile-status-row select {
    min-width: 0;
    min-height: 34px;
    padding: 7px 9px;
    color: var(--text);
    background: #f7fbfb;
    border: 1px solid #cbd8db;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
}

.profile-status-row button {
    min-height: 34px;
    margin: 0;
    padding: 7px 12px;
    font-size: 13px;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

.profile-actions button {
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 7px 12px;
}

.link-button,
.topbar nav a {
    min-height: 34px;
    margin-top: 0;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.link-button:hover,
.topbar nav a:hover {
    background: rgba(255, 255, 255, .22);
}

.announcement-shell {
    position: sticky;
    top: calc(var(--topbar-height) + var(--announcement-gap));
    z-index: 25;
    width: min(1680px, calc(100% - 24px));
    margin: 12px auto 0;
}

.announcement-shell.hidden,
.announcement-marquee.hidden {
    display: none;
}

.announcement-marquee {
    overflow: hidden;
    padding: 10px 0;
    color: #7a2424;
    background: #fff5d9;
    border: 1px solid #efd18b;
    border-radius: 8px;
    white-space: nowrap;
}

.announcement-marquee span {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    font-weight: 900;
    animation: marquee-scroll 36s linear infinite;
}

.announcement-marquee:hover span {
    animation-play-state: paused;
}

.announcement-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.announcement-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.announcement-modal[hidden] {
    display: none;
}

.announcement-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 31, 35, .46);
}

.announcement-modal-window {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(820px, calc(100vw - 32px));
    max-height: min(820px, calc(100dvh - 40px));
    overflow: hidden;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(8px);
    transition: transform .18s ease;
}

.announcement-modal.is-open .announcement-modal-window {
    transform: translateY(0);
}

.shortcut-permission-modal {
    position: fixed;
    inset: 0;
    z-index: 1460;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.shortcut-permission-modal[hidden] {
    display: none;
}

.shortcut-permission-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.shortcut-permission-backdrop,
.shortcut-permission-backdrop:hover,
.shortcut-permission-backdrop:focus,
.shortcut-permission-backdrop:active {
    position: absolute;
    inset: 0;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: rgba(15, 27, 34, .58);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.shortcut-permission-window {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(680px, calc(100vw - 32px));
    max-height: min(720px, calc(100dvh - 40px));
    overflow: hidden;
    color: var(--text);
    background: #fff;
    border: 1px solid #d8e0ed;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(23, 29, 54, .3);
    transform: translateY(10px) scale(.985);
    transition: transform .18s ease;
}

.shortcut-permission-modal.is-open .shortcut-permission-window {
    transform: translateY(0) scale(1);
}

.shortcut-permission-window > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    color: #fff;
    background: linear-gradient(135deg, #5547a9, #3971bd);
}

.shortcut-permission-window > header > div {
    display: grid;
    gap: 2px;
}

.shortcut-permission-window > header span {
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.shortcut-permission-window > header strong {
    font-size: 17px;
    font-weight: 950;
}

.shortcut-permission-window > header button,
.shortcut-permission-window > header button:hover,
.shortcut-permission-window > header button:focus,
.shortcut-permission-window > header button:active {
    display: grid;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    box-shadow: none;
    font-size: 20px;
    line-height: 1;
    transform: none;
}

.shortcut-permission-content {
    display: grid;
    gap: 15px;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.shortcut-permission-content > p {
    margin: 0;
    color: #566075;
    font-size: 13px;
    line-height: 1.65;
}

.shortcut-permission-form input {
    border-color: #cfd5e4;
}

.shortcut-permission-form input:focus {
    border-color: #6659b7;
    box-shadow: 0 0 0 3px rgba(102, 89, 183, .13);
}

.shortcut-permission-form button {
    background: linear-gradient(135deg, #6659b7, #4378c2);
}

.shortcut-permission-options {
    display: grid;
    gap: 9px;
    min-width: 0;
    margin: 4px 0 0;
    padding: 12px;
    background: #f8f8fc;
    border: 1px solid #d9dcec;
    border-radius: 11px;
}

.shortcut-permission-options legend {
    padding: 0 5px;
    color: #41465b;
    font-size: 12px;
    font-weight: 900;
}

.shortcut-permission-options > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.shortcut-permission-form .shortcut-permission-options label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 9px 11px;
    color: #363c51;
    background: #fff;
    border: 1px solid #dde0ec;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.shortcut-permission-form .shortcut-permission-options label:hover {
    border-color: #bbb5df;
    box-shadow: 0 4px 12px rgba(74, 63, 139, .08);
}

.shortcut-permission-form .shortcut-permission-options label:has(input:checked) {
    color: #4e4199;
    background: #f0edff;
    border-color: #aaa1df;
    box-shadow: inset 0 0 0 1px rgba(102, 89, 183, .05);
}

.shortcut-permission-form .shortcut-permission-options input[type="checkbox"] {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #6659b7;
    border-radius: 4px;
    box-shadow: none;
}

.shortcut-permission-form .shortcut-permission-options input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(102, 89, 183, .2);
    outline-offset: 2px;
    box-shadow: none;
}

.shortcut-permission-form .shortcut-permission-options label > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortcut-permission-options > p {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    min-height: 0;
    margin: 0;
}

.shortcut-permission-options > p button,
.shortcut-permission-options > p button:hover {
    min-height: 30px;
    padding: 5px 10px;
    color: #555d72;
    background: #fff;
    border: 1px solid #d1d6e3;
    box-shadow: none;
    font-size: 11px;
    transform: none;
}

.shortcut-permission-list {
    max-height: 310px;
}

.shortcut-permission-list li {
    align-items: start;
}

.shortcut-permission-list li > span:first-child {
    min-width: 0;
}

.shortcut-permission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.shortcut-permission-badges em {
    display: inline-flex;
    padding: 3px 6px;
    color: #51458e;
    background: #eeebfb;
    border: 1px solid #d7d1f1;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
}

.shortcut-permission-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shortcut-permission-row-actions button[data-shortcut-permission-edit] {
    color: #51458e;
    border-color: #cfc8ed;
}

.shortcut-permission-row-actions button[data-shortcut-permission-edit]:hover {
    color: #fff;
    background: #6659b7;
    border-color: #6659b7;
}

body.has-shortcut-permission-modal {
    overflow: hidden;
}

.announcement-modal-window header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f7fbfb;
    border-bottom: 1px solid var(--line);
}

.announcement-modal-window header div {
    display: grid;
    gap: 2px;
}

.announcement-modal-window header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.announcement-modal-window header strong {
    font-size: 16px;
    font-weight: 950;
}

.announcement-modal-window header button {
    display: grid;
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    place-items: center;
    margin: 0;
    padding: 0;
    color: var(--muted);
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 900;
}

.announcement-admin {
    display: grid;
    gap: 12px;
    padding: 0;
}

.announcement-admin label {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.announcement-admin textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    margin: 0;
}

.announcement-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.announcement-admin button {
    margin-top: 0;
}

.announcement-admin-actions button {
    width: auto;
    min-height: 36px;
    padding: 8px 14px;
}

.announcement-admin p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.announcement-admin p[data-kind="ok"] {
    color: var(--accent);
}

.announcement-admin p[data-kind="error"] {
    color: var(--danger);
}

.announcement-management-content {
    display: grid;
    gap: 16px;
    min-height: 0;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f3f7f6;
}

.announcement-emoji-picker {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    gap: 9px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid #cfe0dc;
    border-radius: 12px;
    box-shadow: 0 7px 20px rgba(25, 65, 56, .1);
    backdrop-filter: blur(10px);
}

.announcement-emoji-picker > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.announcement-emoji-picker strong {
    flex: 0 0 auto;
    color: #183a34;
    font-size: 14px;
}

.announcement-emoji-picker small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-align: right;
}

.announcement-emoji-list {
    display: flex;
    gap: 6px;
    padding: 1px 1px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.announcement-emoji-list button {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: var(--text);
    background: #f6faf9;
    border: 1px solid #d8e5e2;
    border-radius: 10px;
    box-shadow: none;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 21px;
    line-height: 1;
}

.announcement-emoji-list button:hover,
.announcement-emoji-list button:focus-visible {
    background: #e7f7ef;
    border-color: #82c5aa;
    transform: translateY(-1px);
}

.announcement-emoji-list button:focus-visible {
    outline: 3px solid rgba(6, 167, 101, .2);
    outline-offset: 1px;
}

.announcement-emoji-list button:active {
    transform: scale(.94);
}

.announcement-management-section {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #d7e3e0;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(29, 57, 51, .05);
}

.announcement-management-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e9e7;
}

.announcement-management-title > div {
    display: grid;
    gap: 2px;
}

.announcement-management-title strong {
    color: #183a34;
    font-size: 16px;
}

.announcement-management-title small {
    color: var(--muted);
    font-size: 12px;
}

.announcement-management-title > span {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: #08794d;
    background: #e5f7ed;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.home-announcement-admin,
.home-announcement-admin-list {
    display: grid;
    gap: 12px;
}

.home-announcement-admin-item {
    display: grid;
    gap: 10px;
    padding: 13px;
    background: #f8fbfa;
    border: 1px solid #dbe6e3;
    border-radius: 10px;
}

.home-announcement-admin-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-announcement-admin-item-head > strong {
    color: #08794d;
    font-size: 13px;
}

.home-announcement-remove {
    width: auto;
    min-height: 30px;
    margin: 0;
    padding: 5px 10px;
    color: #a33a3a;
    background: #fff4f4;
    border: 1px solid #efcaca;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.home-announcement-remove:hover {
    color: #fff;
    background: #b33d3d;
    border-color: #b33d3d;
}

.home-announcement-admin-item label {
    display: grid;
    gap: 5px;
    color: #37534c;
    font-size: 12px;
    font-weight: 850;
}

.home-announcement-admin-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, .7fr) minmax(110px, .6fr);
    gap: 10px;
}

.home-announcement-admin input,
.home-announcement-admin select,
.home-announcement-admin textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd8d5;
    border-radius: 8px;
    font: inherit;
}

.home-announcement-admin textarea {
    min-height: 76px;
    resize: vertical;
}

.home-announcement-admin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.home-announcement-admin-actions button {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 8px 16px;
}

.home-announcement-admin p {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.home-announcement-admin p[data-kind="ok"] {
    color: var(--accent);
}

.home-announcement-admin p[data-kind="error"] {
    color: var(--danger);
}

.announcement-permission-form {
    display: grid;
    gap: 7px;
}

.announcement-permission-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.announcement-permission-form label {
    margin: 0;
    color: #37534c;
    font-size: 12px;
    font-weight: 850;
}

.announcement-permission-form input,
.announcement-permission-form button {
    min-height: 38px;
    margin: 0;
}

.announcement-permission-form input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd8d5;
    border-radius: 8px;
    font: inherit;
}

.announcement-permission-form button {
    width: auto;
    padding: 8px 16px;
}

.announcement-permission-form p {
    min-height: 18px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.announcement-permission-form p[data-kind="ok"] {
    color: var(--accent);
}

.announcement-permission-form p[data-kind="error"] {
    color: var(--danger);
}

.announcement-permission-list {
    display: grid;
    gap: 7px;
    max-height: 190px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.announcement-permission-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: #f7faf9;
    border: 1px solid #dbe6e3;
    border-radius: 9px;
}

.announcement-permission-list li.is-fixed {
    grid-template-columns: 1fr;
}

.announcement-permission-list li strong,
.announcement-permission-list li small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-permission-list li strong {
    color: #24443c;
    font-size: 13px;
}

.announcement-permission-list li small {
    color: var(--muted);
    font-size: 12px;
}

.announcement-permission-list li button {
    width: auto;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    color: var(--danger);
    background: #fff;
    border: 1px solid #efc2c2;
}

.announcement-permission-list li button:hover {
    color: #fff;
    background: var(--danger);
}

.secondary-button {
    color: var(--primary);
    background: #fff;
    border: 1px solid #cbd8db;
}

.secondary-button:hover {
    color: #fff;
    background: var(--primary);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 52px;
}

body.has-chat-layout {
    height: 100vh;
    overflow: hidden;
}

body.has-chat-layout .shell {
    width: calc(100vw - 24px);
    height: calc(100vh - var(--topbar-height) - 28px);
    padding: 12px 0;
    overflow: hidden;
}

.flash {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: min(360px, calc(100vw - 32px));
    margin: 0;
    padding: 12px 14px;
    color: #195734;
    background: #eaf8ef;
    border: 1px solid #b8dfc7;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 850;
    animation: flash-toast-out 5s ease forwards;
}

.flash.error {
    color: #7a2424;
    background: #fff0f0;
    border-color: #efc2c2;
    animation-duration: 7s;
}

@keyframes flash-toast-out {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    10%,
    78% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        visibility: hidden;
    }
}

.panel {
    padding: clamp(20px, 3vw, 30px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel.login {
    position: relative;
    max-width: 500px;
    margin: clamp(28px, 7vh, 72px) auto;
    padding: clamp(24px, 4vw, 38px);
    overflow: hidden;
    border-color: #c6ddd8;
    box-shadow: 0 24px 70px rgba(15, 52, 64, .16);
}

.panel.login::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    content: "";
    background: linear-gradient(90deg, #0f6c78, #3f8550);
}

.login-head {
    margin-bottom: 24px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #0f5560;
    background: #e5f4f1;
    border: 1px solid #b9dcd5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
}

.login-head h1 {
    max-width: 10em;
    margin: 14px 0 10px;
    color: #12323a;
    font-size: clamp(26px, 4vw, 36px);
}

.login-head p {
    max-width: 32em;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.login-fields {
    display: grid;
    gap: 8px;
}

.login-fields label {
    margin: 8px 0 0;
    color: #24383d;
    font-size: 14px;
}

.panel.login input {
    min-height: 48px;
    background: #fff;
    border-color: #bdd2d6;
}

.panel.login input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 108, 120, .14);
    outline: none;
}

.login-remember {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 12px;
    color: #29494a;
    background: #f4faf8;
    border: 1px solid #d1e3df;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
}

.panel.login .login-remember input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #138476;
    background: #fff;
    border-radius: 5px;
    box-shadow: none;
}

.login-remember span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.login-remember strong {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.login-remember small {
    color: #6b7d7b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.panel.login .login-remember + button[type="submit"] {
    margin-top: 16px;
}

.panel.login button[type="submit"] {
    width: 100%;
    min-height: 48px;
    margin-top: 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 28px rgba(15, 108, 120, .22);
}

.panel.login button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-strong), #2f7444);
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
}

h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.eyebrow {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--text);
    background: #fbfdfd;
    border: 1px solid #cbd8db;
    border-radius: 8px;
    font: inherit;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

select[multiple] {
    min-height: 176px;
}

button {
    min-height: 44px;
    margin-top: 18px;
    padding: 10px 16px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: var(--primary-strong);
}

.chat-layout {
    display: grid;
    grid-template-columns:
        var(--users-panel-width, minmax(260px, 340px))
        minmax(0, 1fr)
        var(--calendar-panel-width, minmax(320px, 370px));
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

body.is-panel-users-collapsed .chat-layout {
    --users-panel-width: 72px;
}

body.is-panel-calendar-collapsed .chat-layout {
    --calendar-panel-width: 72px;
}

body.has-chat-layout .chat-layout {
    height: 100%;
    min-height: 0;
}

.user-list,
.nas-panel,
.conversation,
.calendar-board {
    height: 100%;
    min-height: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.environment-board {
    min-height: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

[data-collapsible-panel] {
    position: relative;
}

.user-list {
    position: sticky;
    top: 88px;
    overflow: hidden;
}

.environment-board {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    height: 34px;
    min-height: 0;
    overflow: hidden;
}

body.has-chat-layout .environment-board,
body.has-chat-layout .nas-panel,
body.has-chat-layout .user-list,
body.has-chat-layout .calendar-board {
    position: static;
}

.nas-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    align-content: start;
    overflow: hidden;
    background: #f7fbfb;
}

.nas-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nas-panel-head div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.nas-panel-head strong,
.nas-panel-head small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nas-panel-head strong {
    font-size: 14px;
    font-weight: 950;
}

.nas-panel-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.nas-panel-head .panel-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.nas-panel-head button {
    flex: 0 0 auto;
    min-height: 28px;
    margin: 0;
    padding: 5px 9px;
    color: var(--primary);
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
}

.nas-panel-head button:hover {
    color: #fff;
    background: var(--primary);
}

.nas-panel-head button:disabled {
    color: var(--muted);
    background: #eef3f4;
    cursor: wait;
}

.nas-share-list {
    display: grid;
    align-content: start;
    gap: 6px;
    max-height: none;
    min-height: 0;
    overflow: auto;
}

.nas-share-item {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 11px;
    color: inherit;
    text-align: left;
    background: #fff;
    border: 1px solid #dbe9e7;
    border-radius: 8px;
    font: inherit;
    text-decoration: none;
}

.nas-folder-item {
    cursor: pointer;
}

.nas-folder-item:hover {
    background: #eef7f8;
    border-color: #bedadd;
}

.nas-folder-item span {
    display: none;
}

.nas-folder-item strong::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 9px;
    margin-right: 7px;
    background: #d8a63b;
    border-radius: 2px 2px 1px 1px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, .28);
}

.nas-file-item strong::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 12px;
    margin-right: 8px;
    background: #8ea3aa;
    border-radius: 2px;
    vertical-align: -1px;
}

.nas-share-item strong,
.nas-share-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nas-share-item strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.nas-share-item span,
.nas-panel-status {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.nas-file-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    align-content: center;
    column-gap: 8px;
    min-height: 86px;
}

.nas-file-open-button {
    display: grid;
    gap: 5px;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.nas-file-open-button strong {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nas-file-open-button:hover {
    background: transparent;
}

.nas-file-share-button {
    align-self: start;
    min-height: 30px;
    margin: 0;
    padding: 6px 9px;
    color: var(--primary);
    background: #f7fbfb;
    border: 1px solid #c8dcde;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.nas-file-share-button:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.nas-share-item.is-error {
    background: #fff0ed;
    border-color: #f0c2ba;
}

.nas-share-item.is-error strong,
.nas-panel-status[data-kind="error"] {
    color: var(--danger);
}

.nas-panel-status {
    min-height: 15px;
    margin: 0;
}

.nas-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 2px 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.nas-breadcrumb button,
.nas-up-item {
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
}

.nas-breadcrumb button:hover,
.nas-up-item:hover {
    color: var(--primary-strong);
    background: transparent;
    text-decoration: underline;
}

.nas-up-item {
    justify-self: start;
    padding: 2px 0;
}

.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.list-head h1 {
    margin-bottom: 0;
    font-size: 18px;
}

.list-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.user-list-search {
    position: relative;
    display: block;
    flex: 1 1 auto;
    width: auto;
    max-width: 240px;
    min-width: 120px;
    margin: 0;
}

.user-list-search svg {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #71827e;
    stroke-linecap: round;
    stroke-width: 2;
    transform: translateY(-50%);
    pointer-events: none;
}

.user-list-search input {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 6px 9px 6px 32px;
    color: #28453e;
    background: #f4f8f7;
    border: 1px solid #cadbd7;
    border-radius: 999px;
    font-size: 12px;
}

.user-list-search input:focus {
    background: #fff;
    border-color: #3aa77b;
    box-shadow: 0 0 0 3px rgba(6, 199, 85, .12);
    outline: none;
}

.list-head .user-online-count {
    flex: 0 0 auto;
    color: #08794d;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.desktop-list-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    background: #eef4f3;
    border-bottom: 1px solid var(--line);
}

.desktop-list-switcher button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 7px 10px;
    color: #526d66;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 900;
}

.desktop-list-switcher button span {
    display: inline-grid;
    min-width: 20px;
    min-height: 20px;
    padding: 2px 6px;
    place-items: center;
    color: #6b7d78;
    background: rgba(255, 255, 255, .72);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
}

.desktop-list-switcher button.is-active {
    color: #08794d;
    background: #fff;
    border-color: #d4e3df;
    box-shadow: 0 3px 10px rgba(29, 65, 55, .1);
}

.desktop-list-switcher button.is-active span {
    color: #fff;
    background: #06a765;
}

.desktop-list-switcher button span.has-unread,
.desktop-list-switcher button.is-active span.has-unread {
    color: #fff;
    background: #ef4444;
    box-shadow: 0 2px 7px rgba(239, 68, 68, .24);
}

.desktop-list-switcher button span.hidden {
    display: none;
}

@media (min-width: 1367px), (min-width: 1025px) and (pointer: fine) {
    .user-list:has(.desktop-list-switcher) {
        display: flex;
        flex-direction: column;
    }

    .user-list [data-desktop-list-panel][hidden] {
        display: none !important;
    }

    .user-list:has(.desktop-list-switcher) > [data-desktop-list-panel] {
        flex: 0 0 auto;
    }

    .user-list[data-desktop-list-view="users"] .user-items,
    .user-list[data-desktop-list-view="groups"] .room-items {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }

    .user-list[data-desktop-list-view="groups"]:has(.room-create[open]:not([hidden])) .room-items {
        max-height: 120px;
        flex-basis: 120px;
    }

    .user-list [data-room-section-toggle] {
        display: none;
    }

    .user-list .room-section-head {
        display: none !important;
    }

    .user-list .mobile-group-switcher {
        display: block;
        flex: 0 0 auto;
        padding: 7px 8px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .user-list .mobile-group-switcher > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 3px;
        background: #eef3f2;
        border-radius: 10px;
    }

    .user-list .mobile-group-switcher button {
        min-width: 0;
        min-height: 32px;
        margin: 0;
        padding: 5px 8px;
        color: #526d66;
        background: transparent;
        border: 0;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 900;
    }

    .user-list .mobile-group-switcher button.is-active {
        color: #087f4f;
        background: #fff;
        box-shadow: 0 1px 4px rgba(24, 67, 55, .12);
    }

    .user-list .mobile-group-switcher small {
        display: none;
    }

    .user-list[data-desktop-list-view="groups"][data-desktop-group-view="members"] .room-create {
        position: relative;
        display: block;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        padding: 0;
        overflow: hidden;
    }

    .user-list[data-desktop-group-view="members"] .room-create > summary {
        display: none;
    }

    .user-list[data-desktop-group-view="members"] .room-create form {
        position: absolute;
        inset: 12px 16px 16px;
        height: auto;
        min-height: 0;
        margin-top: 0;
        overflow: hidden;
    }

    .user-list[data-desktop-group-view="members"] .room-create .room-name-field,
    .user-list[data-desktop-group-view="members"] .room-create .member-picker-label {
        display: none;
    }

    .user-list[data-desktop-group-view="members"] .room-create .member-picker {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .user-list[data-desktop-group-view="members"] .room-create .member-picker-search {
        flex: 0 0 auto;
        width: calc(100% - 108px);
        margin-top: 0;
    }

    .user-list[data-desktop-group-view="members"] .room-create .room-create-submit {
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        min-height: 38px;
        margin: 0;
    }

    .user-list .mobile-group-name-modal {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: grid;
        place-items: center;
        padding: 24px;
    }

    .user-list .mobile-group-name-modal[hidden] {
        display: none;
    }

    .user-list .mobile-group-name-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        background: rgba(16, 31, 28, .46);
        border: 0;
        border-radius: 0;
    }

    .user-list .mobile-group-name-modal > section {
        position: relative;
        z-index: 1;
        width: min(100%, 380px);
        padding: 22px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(18, 43, 37, .24);
    }

    .user-list .mobile-group-name-modal h2 {
        margin: 0;
        color: #203e36;
        font-size: 20px;
    }

    .user-list .mobile-group-name-modal > section > p {
        margin: 6px 0 16px;
        color: var(--muted);
        font-size: 13px;
    }

    .user-list .mobile-group-name-modal label {
        display: block;
        margin-bottom: 6px;
        color: #38554e;
        font-size: 13px;
        font-weight: 800;
    }

    .user-list .mobile-group-name-modal input {
        width: 100%;
        min-height: 44px;
        padding: 9px 11px;
        font-size: 15px;
        border: 1px solid #b9cbc7;
        border-radius: 9px;
    }

    .user-list .mobile-group-name-modal .mobile-group-name-error {
        min-height: 20px;
        margin: 5px 0;
        color: var(--danger);
        font-size: 12px;
    }

    .user-list .mobile-group-name-modal > section > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .user-list .mobile-group-name-modal > section > div button {
        width: 100%;
        min-height: 40px;
        margin: 0;
    }
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .desktop-list-switcher {
        display: none;
    }
}

.user-item.is-search-hidden {
    display: none !important;
}

.user-search-empty {
    margin: 0;
    padding: 28px 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.room-section-head > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-section-head button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    color: var(--primary);
    font-size: 0;
    font-weight: 900;
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 999px;
}

.panel-collapse-toggle {
    display: inline-grid;
    place-items: center;
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    color: var(--primary);
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 999px;
    font-size: 0;
    font-weight: 950;
}

.panel-collapse-toggle::before {
    content: "−";
    font-size: 18px;
    line-height: 1;
}

.panel-collapse-toggle.is-collapsed::before {
    content: "+";
    font-size: 17px;
}

.panel-collapse-toggle:hover {
    color: #fff;
    background: var(--primary);
}

.panel-collapse-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.room-section-head button:hover {
    color: #fff;
    background: var(--primary);
}

.room-section-head button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.room-section-head button::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateY(3px) rotate(45deg);
}

.room-section-head button.is-collapsed::before {
    transform: translateY(-3px) rotate(225deg);
}

.room-items {
    max-height: 190px;
    overflow: auto;
    border-bottom: 1px solid var(--line);
}

.room-item-row {
    position: relative;
}

.room-item-row .room-item {
    width: 100%;
}

.room-item-row.has-delete .room-item {
    padding-right: 76px;
}

.room-list-delete {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 1;
    transform: translateY(-50%);
}

.room-list-delete button {
    min-height: 32px;
    width: auto;
    margin: 0;
    padding: 5px 10px;
    color: #a13232;
    background: #fff;
    border: 1px solid #dca5a5;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.room-list-delete button:hover {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.user-list:has(.room-create[open]) .room-items {
    max-height: 96px;
}

.user-items {
    max-height: calc(100vh - 520px);
    overflow: auto;
}

body.is-room-section-collapsed .user-items {
    max-height: calc(min(780px, calc(100vh - 190px)) - 78px);
}

body.has-chat-layout .user-items {
    max-height: calc(100% - 330px);
}

body.has-chat-layout.is-room-section-collapsed .user-items {
    max-height: calc(100% - 78px);
}

.user-item,
.room-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.user-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
}

.user-item:hover,
.user-item.active,
.room-item:hover,
.room-item.active {
    background: #eef7f8;
}

.room-item.is-closed {
    background: #fbf4f2;
    border-left: 4px solid #d78b82;
    padding-left: 12px;
}

.room-item.is-closed:hover,
.room-item.is-closed.active {
    background: #f7e7e4;
}

.user-item.active,
.room-item.active {
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.user-item strong,
.user-item span,
.room-item strong,
.room-item span {
    display: block;
}

.user-item strong,
.room-item strong {
    grid-column: 1;
    overflow: hidden;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-item strong {
    grid-column: 2;
}

.user-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
}

.user-item .avatar,
.user-item .avatar-placeholder {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
}

.user-item .user-name-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.user-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-item .user-extension {
    flex: 0 0 auto;
    padding: 1px 7px;
    color: #0b6973;
    background: #e8f5f6;
    border: 1px solid #b9dde0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.room-item span {
    grid-column: 1 / -1;
}

.user-item span {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-item .user-avatar {
    display: inline-grid;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.user-item .avatar-placeholder {
    grid-column: auto;
    grid-row: auto;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
}

.user-item .user-meta {
    display: inline-flex;
    grid-column: 2 / 4;
    grid-row: 2;
    align-items: center;
    gap: 7px;
}

.user-meta-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-item {
    text-decoration: none;
}

.room-item.is-closed strong {
    color: #6e3b36;
}

.room-item.is-closed span {
    color: #9b625c;
}

.unread-badge {
    grid-column: 2;
    justify-self: end;
    align-self: start;
    min-width: 22px;
    padding: 3px 7px;
    color: #fff;
    background: var(--danger);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.unread-badge.hidden {
    display: none;
}

.user-item .unread-badge {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    justify-self: auto;
    flex: 0 0 auto;
}

.room-item .unread-badge {
    grid-row: 1;
}

.room-create {
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--line);
}

.room-create summary {
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

.room-create form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 12px;
    overflow: hidden;
}

.room-name-field {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
}

.room-name-field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.room-name-field input {
    min-height: 34px;
    padding: 7px 9px;
}

.room-create button {
    flex: 0 0 auto;
    min-height: 36px;
    margin-top: 6px;
    width: 100%;
}

.room-create .member-picker {
    display: block;
    flex: 0 0 auto;
    height: clamp(150px, calc(100vh - 560px), 260px);
    min-height: 150px;
    max-height: 260px;
    gap: 0;
    padding: 6px;
}

.room-create .member-picker-label {
    margin-top: 7px;
}

.room-create .member-option {
    display: grid;
    grid-template-columns: auto 24px minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 0;
    margin: 0;
    padding: 5px 6px;
    border-bottom-color: #dde9eb;
    border-radius: 0;
}

.room-create .member-option:first-child {
    border-radius: 6px 6px 0 0;
}

.room-create .member-option:last-child {
    border-bottom-color: transparent;
    border-radius: 0 0 6px 6px;
}

.room-create .member-option input {
    width: 15px;
    height: 15px;
}

.room-create .member-avatar {
    width: 24px;
    height: 24px;
}

.room-create .member-option span {
    gap: 0;
}

.room-create .member-option strong {
    font-size: 12px;
    line-height: 1.25;
}

.room-create .member-option small,
.room-create .member-option em {
    font-size: 11px;
    line-height: 1.25;
}

.room-create .member-option em {
    padding: 2px 6px;
}

.room-create .member-picker-status {
    min-height: 16px;
    margin-top: 4px;
}

.mobile-group-create-heading,
.mobile-group-list-heading,
.mobile-group-name-modal,
.mobile-group-switcher,
.mobile-group-pager {
    display: none;
}

.member-picker-label {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.member-picker-search {
    position: relative;
    display: block;
    width: 100%;
    margin: 7px 0 0;
}

.member-picker-search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #71827e;
    stroke-linecap: round;
    stroke-width: 2;
    transform: translateY(-50%);
    pointer-events: none;
}

.member-picker-search input {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 7px 12px 7px 38px;
    color: #28453e;
    background: #f4f8f7;
    border: 1px solid #cadbd7;
    border-radius: 999px;
    font-size: 13px;
}

.member-picker-search input:focus {
    background: #fff;
    border-color: #3aa77b;
    box-shadow: 0 0 0 3px rgba(6, 199, 85, .12);
    outline: none;
}

.member-search-empty {
    margin: 7px 4px 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.member-search-empty[hidden],
.member-option.is-member-search-hidden {
    display: none !important;
}

.member-picker {
    display: grid;
    align-content: start;
    gap: 6px;
    max-height: 280px;
    margin-top: 6px;
    padding: 8px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 8px;
}

.member-picker.compact {
    max-height: 240px;
}

.member-option {
    display: grid;
    grid-template-columns: auto 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f7fbfb;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
}

.member-avatar {
    width: 30px;
    height: 30px;
}

.member-option:hover,
.member-option:has(input:checked) {
    background: #eef8f7;
    border-color: #badbd7;
}

.member-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.member-option span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.member-option .member-avatar {
    display: inline-grid;
    min-width: 0;
    gap: 0;
}

.member-option .avatar-placeholder {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
}

.member-option strong,
.member-option small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-option strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.member-option small {
    color: var(--muted);
    font-size: 12px;
}

.member-option em {
    padding: 3px 7px;
    color: var(--muted);
    background: #eef4f5;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.member-option.online em {
    color: #fff;
    background: var(--accent);
}

.member-option.online em.status-busy,
.user-item.online .presence-badge.status-busy {
    color: #fff;
    background: #b42323;
}

.member-option.online em.status-away,
.user-item.online .presence-badge.status-away {
    color: #fff;
    background: #9a5c12;
}

.member-option.online em.status-meeting,
.user-item.online .presence-badge.status-meeting {
    color: #fff;
    background: #315a7b;
}

.member-option.online em.status-available,
.user-item.online .presence-badge.status-available {
    color: #fff;
    background: var(--accent);
}

.member-option.online strong::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    background: var(--accent);
    border-radius: 50%;
    vertical-align: 1px;
}

.member-picker-status {
    min-height: 18px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.member-picker-status[data-kind="error"] {
    color: var(--danger);
}

.environment-board {
    padding: 2px 6px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(247, 251, 251, .92)),
        linear-gradient(90deg, rgba(15, 108, 120, .08), rgba(63, 133, 80, .08));
}

.environment-board-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.environment-board-head strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.environment-board-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.environment-board-head button {
    display: grid;
    min-width: 20px;
    min-height: 20px;
    place-items: center;
    margin: 0;
    padding: 2px 5px;
    color: var(--primary);
    font-size: 11px;
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 6px;
}

.environment-board-head button:disabled {
    color: var(--muted);
    background: #eef3f4;
    cursor: wait;
}

.environment-card-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 0;
    scroll-padding-block: 0;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.environment-card-track::-webkit-scrollbar {
    display: none;
}

.environment-card {
    position: relative;
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: max-content max-content max-content minmax(0, 1fr);
    grid-template-rows: auto;
    align-content: center;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 26px;
    padding: 3px 10px;
    color: var(--env-text);
    scroll-snap-align: start;
    --env-text: #203338;
    --env-label: rgba(32, 51, 56, .66);
    --env-strong: #17323a;
    --env-muted: rgba(32, 51, 56, .72);
    --env-body: rgba(32, 51, 56, .82);
    --pulse-color: 255, 255, 255;
    --pulse-start: .08;
    --pulse-end: .22;
    --pulse-shadow-start: .16;
    --pulse-shadow-end: .28;
    --pulse-duration: 3.8s;
    background: linear-gradient(135deg, #eef5f6 0%, #dbe8eb 100%);
    border: 1px solid rgba(71, 102, 108, .22);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(24, 35, 38, .10);
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.environment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 86% 14%, rgba(255, 255, 255, .42) 0, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 12% 92%, rgba(var(--pulse-color), var(--pulse-end)) 0, rgba(var(--pulse-color), 0) 48%),
        linear-gradient(110deg, rgba(var(--pulse-color), var(--pulse-start)) 0 4px, transparent 4px 100%);
    box-shadow:
        inset 0 0 0 1px rgba(var(--pulse-color), var(--pulse-start)),
        inset 0 0 24px rgba(var(--pulse-color), var(--pulse-shadow-start)),
        0 0 18px rgba(var(--pulse-color), var(--pulse-shadow-start));
    opacity: .72;
    animation: environmentPulse var(--pulse-duration) ease-in-out infinite;
    pointer-events: none;
}

.environment-card > * {
    position: relative;
    z-index: 1;
}

@keyframes environmentPulse {
    0%, 100% {
        opacity: .50;
        filter: saturate(.94) brightness(.98);
    }

    50% {
        opacity: 1;
        filter: saturate(1.22) brightness(1.1);
        box-shadow:
            inset 0 0 0 1px rgba(var(--pulse-color), var(--pulse-end)),
            inset 0 0 34px rgba(var(--pulse-color), var(--pulse-shadow-end)),
            0 0 28px rgba(var(--pulse-color), var(--pulse-shadow-end));
    }
}

.environment-card.level-info {
    --pulse-color: 144, 190, 202;
    --pulse-start: .06;
    --pulse-end: .18;
    --pulse-shadow-start: .11;
    --pulse-shadow-end: .20;
    --pulse-duration: 4.8s;
}

.environment-card.level-good {
    --pulse-color: 52, 196, 170;
    --pulse-start: .09;
    --pulse-end: .24;
    --pulse-shadow-start: .16;
    --pulse-shadow-end: .28;
    --pulse-duration: 4.2s;
}

.environment-card.level-moderate {
    --pulse-color: 230, 174, 54;
    --pulse-start: .11;
    --pulse-end: .31;
    --pulse-shadow-start: .20;
    --pulse-shadow-end: .35;
    --pulse-duration: 3.7s;
}

.environment-card.level-warn {
    --pulse-color: 235, 126, 48;
    --pulse-start: .14;
    --pulse-end: .38;
    --pulse-shadow-start: .24;
    --pulse-shadow-end: .45;
    --pulse-duration: 3.2s;
}

.environment-card.level-danger {
    --pulse-color: 255, 92, 111;
    --pulse-start: .20;
    --pulse-end: .50;
    --pulse-shadow-start: .34;
    --pulse-shadow-end: .58;
    --pulse-duration: 2.7s;
}

@media (prefers-reduced-motion: reduce) {
    .environment-card::before {
        animation: none;
        opacity: .78;
    }
}

.environment-card:hover,
.environment-card:focus {
    border-color: rgba(var(--pulse-color), .62);
    box-shadow: 0 10px 22px rgba(24, 35, 38, .14), 0 0 20px rgba(var(--pulse-color), .20);
    outline: none;
    transform: translateY(-1px);
}

.environment-card.level-info {
    background: linear-gradient(135deg, #f7fbfc 0%, #e8f1f4 48%, #d8e8ed 100%);
    border-color: rgba(92, 126, 134, .22);
}

.environment-card.level-good {
    --env-text: #123d3a;
    --env-label: rgba(18, 61, 58, .62);
    --env-strong: #075c52;
    --env-muted: rgba(18, 61, 58, .68);
    --env-body: rgba(18, 61, 58, .78);
    background: linear-gradient(135deg, #f1fffb 0%, #d7f7ef 47%, #aee8d9 100%);
    border-color: rgba(42, 157, 143, .30);
}

.environment-card.level-moderate {
    --env-text: #4a3414;
    --env-label: rgba(74, 52, 20, .62);
    --env-strong: #7a4b03;
    --env-muted: rgba(74, 52, 20, .70);
    --env-body: rgba(74, 52, 20, .80);
    background: linear-gradient(135deg, #fff9e8 0%, #ffe8aa 47%, #efc15a 100%);
    border-color: rgba(187, 126, 20, .34);
}

.environment-card.level-warn {
    --env-text: #51301f;
    --env-label: rgba(81, 48, 31, .64);
    --env-strong: #793a10;
    --env-muted: rgba(81, 48, 31, .72);
    --env-body: rgba(81, 48, 31, .82);
    background: linear-gradient(135deg, #fff5ea 0%, #ffd5aa 45%, #e98d3c 100%);
    border-color: rgba(192, 95, 28, .40);
}

.environment-card.level-danger {
    --env-text: #fff7f7;
    --env-label: rgba(255, 255, 255, .78);
    --env-strong: #fff;
    --env-muted: rgba(255, 255, 255, .78);
    --env-body: rgba(255, 255, 255, .9);
    background: linear-gradient(135deg, #d95151 0%, #9a3141 48%, #4c2234 100%);
    border-color: rgba(255, 210, 210, .36);
}

.environment-card > span {
    grid-column: 1;
    color: var(--env-label);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.environment-card strong {
    grid-column: 2;
    color: var(--env-strong);
    font-size: 14px;
    line-height: 1;
}

.environment-card em {
    grid-column: 3;
    max-width: 140px;
    min-width: 0;
    overflow: hidden;
    color: var(--env-text);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.environment-card small,
.environment-card time {
    grid-column: 4;
    min-width: 0;
    overflow: hidden;
    color: var(--env-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.environment-card p {
    display: none;
}

.environment-board > p {
    display: none;
}

.environment-board > p[data-kind="error"] {
    color: var(--danger);
}

.environment-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    min-height: 8px;
    margin: 0;
}

.environment-carousel-dots[hidden] {
    display: none;
}

.environment-carousel-dots button {
    width: 7px;
    min-width: 7px;
    min-height: 7px;
    margin: 0;
    padding: 0;
    background: #cbd8db;
    border: 0;
    border-radius: 999px;
}

.environment-carousel-dots button.is-active {
    width: 18px;
    background: var(--primary);
}

.calendar-board {
    display: grid;
    grid-auto-rows: auto;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    background: linear-gradient(135deg, #315a7b, #3f8550);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.calendar-head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.calendar-head strong,
.calendar-head span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-head strong {
    font-size: 15px;
    font-weight: 950;
}

.calendar-head span {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 800;
}

.calendar-head button {
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .34);
}

.calendar-head button:hover {
    background: rgba(255, 255, 255, .25);
}

.environment-board-head .panel-collapse-toggle {
    width: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 6px;
}

.environment-board-head .panel-collapse-toggle::before {
    font-size: 14px;
}

.nas-panel.is-collapsed,
.user-list.is-collapsed,
.calendar-board.is-collapsed {
    overflow: hidden;
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 250, 251, .98));
    border-color: #d7e4e7;
    box-shadow: 0 8px 20px rgba(32, 57, 68, .08);
}

.nas-panel.is-collapsed {
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 6px;
}

.nas-panel.is-collapsed > :not(.nas-panel-head),
.user-list.is-collapsed > :not(.room-section-head),
.calendar-board.is-collapsed > :not(.calendar-head) {
    display: none;
}

.nas-panel.is-collapsed .nas-panel-head,
.user-list.is-collapsed .room-section-head,
.calendar-board.is-collapsed .calendar-head {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: 12px;
    height: 100%;
    min-height: 0;
    padding: 10px 6px;
    color: #315a7b;
    background: rgba(238, 247, 248, .78);
    border: 1px solid rgba(203, 216, 219, .88);
    border-radius: 8px;
}

.nas-panel.is-collapsed .nas-panel-head > div:not(.panel-head-actions),
.user-list.is-collapsed .room-section-head > h1,
.user-list.is-collapsed .room-section-head > div > span,
.user-list.is-collapsed .room-section-head [data-room-section-toggle],
.calendar-board.is-collapsed .calendar-head > div {
    display: none;
}

.nas-panel.is-collapsed::after,
.user-list.is-collapsed::after,
.calendar-board.is-collapsed::after {
    content: attr(data-panel-title);
    position: absolute;
    top: 58px;
    left: 50%;
    max-height: calc(100% - 104px);
    padding: 10px 5px;
    color: #315a7b;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    line-height: 1.35;
    white-space: nowrap;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(203, 216, 219, .64);
    border-radius: 999px;
    transform: translateX(-50%);
    writing-mode: vertical-rl;
}

.nas-panel.is-collapsed .nas-panel-head .panel-head-actions,
.user-list.is-collapsed .room-section-head > div,
.calendar-board.is-collapsed .calendar-head {
    display: grid;
    justify-items: center;
}

.nas-panel.is-collapsed .panel-head-actions [data-nas-refresh] {
    display: none;
}

.calendar-board.is-collapsed .calendar-head .panel-collapse-toggle {
    border-color: rgba(255, 255, 255, .46);
}

.nas-panel.is-collapsed .panel-collapse-toggle,
.user-list.is-collapsed .panel-collapse-toggle,
.calendar-board.is-collapsed .panel-collapse-toggle {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    color: #315a7b;
    background: #fff;
    border-color: #b9ced3;
    box-shadow: 0 6px 14px rgba(49, 90, 123, .12);
}

.nas-panel.is-collapsed .panel-collapse-toggle:hover,
.user-list.is-collapsed .panel-collapse-toggle:hover,
.calendar-board.is-collapsed .panel-collapse-toggle:hover {
    color: #fff;
    background: #315a7b;
}

.calendar-toolbar {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px auto;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fbfcfd;
    border-bottom: 1px solid var(--line);
}

.calendar-dispatch-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 7px 12px;
    color: #526d66;
    background: #f7faf9;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    text-align: left;
}

.calendar-dispatch-toggle:hover {
    color: #36564e;
    background: #eef6f3;
}

.calendar-toggle-switch {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    background: #b8c7c3;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(55, 78, 72, .08);
    transition: background .18s ease;
}

.calendar-toggle-switch i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(28, 50, 44, .22);
    transition: transform .18s ease;
}

.calendar-dispatch-toggle.is-active .calendar-toggle-switch {
    background: #20a86b;
}

.calendar-dispatch-toggle.is-active .calendar-toggle-switch i {
    transform: translateX(16px);
}

.calendar-toggle-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.calendar-toggle-copy strong {
    overflow: hidden;
    color: #294b42;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-toggle-copy small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.calendar-dispatch-toggle em {
    padding: 3px 7px;
    color: #47655d;
    background: #e5efec;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.calendar-dispatch-toggle.is-active em {
    color: #08794d;
    background: #dcf6e8;
}

.calendar-toolbar button {
    display: inline-grid;
    place-items: center;
    min-height: 32px;
    margin: 0;
    padding: 5px 8px;
    color: #32535f;
    background: #fff;
    border: 1px solid #d8e3e6;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 950;
}

.calendar-month-picker {
    position: relative;
    min-width: 0;
}

.calendar-month-picker > button {
    width: 100%;
    color: var(--text);
    background: transparent;
    border-color: transparent;
    border-radius: 8px;
    font-size: 15px;
}

.calendar-month-picker > button:hover,
.calendar-month-picker > button[aria-expanded="true"] {
    color: #315a7b;
    background: #eef7f8;
    border-color: #cbd8db;
}

.calendar-month-picker > button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-month-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    z-index: 20;
    display: grid;
    width: min(230px, 82vw);
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}

.calendar-month-popover[hidden] {
    display: none;
}

.calendar-month-popover select {
    min-width: 72px;
    height: 32px;
    margin: 0;
    padding: 4px 8px;
    color: #32535f;
    background: #fff;
    border: 1px solid #d8e3e6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.calendar-month-popover select:focus {
    border-color: #315a7b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(49, 90, 123, .15);
}

.calendar-month-popover div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.calendar-month-popover div button {
    min-height: 30px;
    padding: 4px;
    color: #32535f;
    background: #f6fafb;
    border-radius: 7px;
    font-size: 12px;
}

.calendar-month-popover div button:hover,
.calendar-month-popover div button.is-active {
    color: #fff;
    background: #315a7b;
    border-color: #315a7b;
}

.calendar-toolbar button:hover {
    color: #fff;
    background: #315a7b;
    border-color: #315a7b;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 7px 12px 5px;
    background: #fff;
}

.calendar-weekdays span {
    color: #6b7b82;
    font-size: 11px;
    font-weight: 950;
    text-align: center;
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 0 12px 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.calendar-day {
    display: grid;
    align-content: start;
    gap: 3px;
    min-height: 50px;
    margin: 0;
    padding: 5px;
    color: var(--text);
    text-align: left;
    background: #fbfdfe;
    border: 1px solid #dfe8eb;
    border-radius: 8px;
    box-shadow: none;
}

.calendar-day:hover {
    color: var(--text);
    background: #eef7f8;
    border-color: #95bec7;
}

.calendar-day.is-outside {
    color: #9aa8ad;
    background: #f6f8f9;
}

.calendar-day.is-holiday:not(.is-selected) {
    color: #a52323;
    background: #fff7f7;
    border-color: #efc4c4;
}

.calendar-day.is-holiday:not(.is-selected) .calendar-day-number {
    color: #b42323;
}

.calendar-day.is-workday:not(.is-selected):not(.is-holiday) {
    background: #f8fbff;
    border-color: #bdd4e9;
}

.calendar-day.is-today {
    border-color: #2c7be5;
    box-shadow: inset 0 0 0 1px #2c7be5;
}

.calendar-day.is-selected {
    color: #fff;
    background: linear-gradient(135deg, #2c7be5, #26a269);
    border-color: transparent;
}

.calendar-day-number {
    display: inline-grid;
    place-items: center;
    justify-self: start;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.calendar-day.is-today .calendar-day-number {
    color: #fff;
    background: #2c7be5;
}

.calendar-day.is-selected .calendar-day-number {
    color: #2c5b64;
    background: #fff;
}

.calendar-day-events {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.calendar-day-events small,
.calendar-day-events em {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-day-events small {
    padding: 2px 6px;
    background: var(--calendar-event-color, #26a269);
    border-radius: 999px;
}

.calendar-day-events small.calendar-holiday-label {
    color: #fff;
    background: #c0392b;
}

.calendar-day-events small.is-range {
    margin-right: -7px;
    margin-left: -7px;
    border-radius: 0;
}

.calendar-day-events small.is-start {
    margin-left: 0;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.calendar-day-events small.is-end {
    margin-right: 0;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.calendar-day-events small.is-single {
    margin: 0;
}

.calendar-day-events em {
    color: #60747b;
}

.calendar-day.is-selected .calendar-day-events small {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.calendar-day.is-selected .calendar-day-events small.calendar-holiday-label {
    background: rgba(255, 255, 255, .96);
    color: #a52323;
}

.calendar-day.is-selected .calendar-day-events em {
    color: rgba(255, 255, 255, .92);
}

.calendar-board-status {
    display: none;
    margin: 0;
    padding: 8px 14px;
    color: var(--muted);
    background: #f7fbfb;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 800;
}

.calendar-board-status:not(:empty) {
    display: block;
}

.calendar-board-status[data-kind="error"] {
    color: var(--danger);
}

.calendar-board-status[data-kind="ok"] {
    color: var(--accent);
}

.calendar-event-modal {
    position: fixed;
    inset: 0;
    z-index: 1220;
    display: none;
    place-items: center;
    padding: 18px;
}

.calendar-event-modal.is-open {
    display: grid;
}

.calendar-event-modal[hidden] {
    display: none;
}

.calendar-event-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 51, .42);
    backdrop-filter: blur(3px);
}

.calendar-event-modal-window {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(480px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe5e8;
    border-radius: 10px;
    box-shadow: 0 22px 60px rgba(15, 31, 51, .24);
}

.calendar-event-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    color: #fff;
    background: linear-gradient(135deg, #315a7b, #3f8550);
}

.calendar-event-modal-head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.calendar-event-modal-head span {
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 800;
}

.calendar-event-modal-head strong {
    overflow: hidden;
    font-size: 16px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-modal-head button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 8px;
    font-size: 21px;
    line-height: 1;
}

.calendar-event-modal-head button:hover {
    background: rgba(255, 255, 255, .25);
}

.calendar-form {
    display: grid;
    gap: 7px;
    padding: 10px 14px;
    background: #f7fbfb;
    border-bottom: 1px solid var(--line);
}

.calendar-event-modal .calendar-form {
    overflow-y: auto;
    padding: 16px;
    background: #fff;
    border-bottom: 0;
}

.calendar-form label {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.calendar-form input,
.calendar-form textarea {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
}

.calendar-form textarea {
    min-height: 44px;
    resize: vertical;
}

.calendar-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.calendar-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.calendar-form-actions button {
    min-height: 34px;
    margin: 0;
    padding: 7px 10px;
}

.calendar-form-actions button[type="button"] {
    color: #32535f;
    background: #fff;
    border: 1px solid #cbd8db;
}

.calendar-form-actions button[type="button"]:hover {
    color: #fff;
    background: #315a7b;
}

.calendar-form p {
    min-height: 18px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.calendar-form p[data-kind="error"] {
    color: var(--danger);
}

.calendar-form p[data-kind="ok"] {
    color: var(--accent);
}

.calendar-day-panel {
    display: grid;
    grid-template-rows: auto auto;
    min-height: 0;
    overflow: visible;
}

.calendar-day-panel h3 {
    margin: 0;
    padding: 11px 14px 0;
    color: var(--primary-strong);
    font-size: 14px;
    font-weight: 950;
}

.calendar-events {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px;
    overflow-y: visible;
}

.calendar-event,
.calendar-holiday,
.calendar-empty {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.calendar-holiday {
    display: grid;
    gap: 2px;
    background: #fff7f7;
    border-color: #efc4c4;
}

.calendar-holiday.is-workday {
    background: #f8fbff;
    border-color: #bdd4e9;
}

.calendar-holiday strong {
    color: #a52323;
    font-size: 14px;
    line-height: 1.3;
}

.calendar-holiday.is-workday strong {
    color: #285f8f;
}

.calendar-holiday span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.calendar-event {
    position: relative;
    display: grid;
    gap: 7px;
    padding-right: 112px;
}

.calendar-event div {
    display: grid;
    gap: 2px;
}

.calendar-event strong,
.calendar-event span,
.calendar-event p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.calendar-event strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.3;
}

.calendar-event span,
.calendar-empty {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.calendar-event p,
.calendar-event-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.calendar-event-note,
.shared-calendar-note {
    display: grid;
    justify-items: start;
    gap: 4px;
}

.calendar-event-note span,
.shared-calendar-note span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.calendar-lims-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #315a7b;
    background: #eef7f8;
    border: 1px solid #cbd8db;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
    text-decoration: none;
}

.calendar-lims-link:hover {
    color: #fff;
    background: #315a7b;
    border-color: #315a7b;
}

.calendar-event-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.calendar-event-actions button {
    display: inline-grid;
    place-items: center;
    width: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    color: #32535f;
    background: #f3f8f9;
    border: 1px solid #cbd8db;
    border-radius: 7px;
}

.calendar-event-actions button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.calendar-event-actions button:hover {
    color: #fff;
    background: #315a7b;
}

.calendar-event-actions button[data-calendar-share] {
    color: #245f54;
    background: #eef9f5;
    border-color: #b9ddd1;
}

.calendar-event-actions button[data-calendar-share]:hover {
    color: #fff;
    background: #23745f;
}

.calendar-event-actions button[data-calendar-delete] {
    color: #8a2d2d;
    background: #fff3f3;
    border: 1px solid #efc2c2;
}

.calendar-event-actions button[data-calendar-delete]:hover {
    color: #fff;
    background: var(--danger);
}

@media (max-width: 1360px) {
    .chat-layout {
        grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    }

    .calendar-board {
        grid-column: 1 / -1;
        min-height: 360px;
    }

    .calendar-event {
        padding-right: 104px;
    }

    .calendar-event-actions button {
        width: 26px;
        min-height: 26px;
    }
}

.calendar-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1230;
    display: none;
    place-items: center;
    padding: 18px;
}

.calendar-confirm-modal.is-open {
    display: grid;
}

.calendar-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 51, .42);
    backdrop-filter: blur(3px);
}

.calendar-confirm-window {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    width: min(360px, 100%);
    padding: 16px;
    background: #fff;
    border: 1px solid #dbe5e8;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(15, 31, 51, .24);
}

.calendar-confirm-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #9b2f2f;
    background: #fff1f1;
    border: 1px solid #efc2c2;
    border-radius: 8px;
}

.calendar-confirm-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.calendar-confirm-window strong {
    display: block;
    margin: 0 0 4px;
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
}

.calendar-confirm-window p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.calendar-confirm-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.calendar-confirm-actions button {
    min-height: 32px;
    margin: 0;
    padding: 6px 12px;
    color: #32535f;
    background: #fff;
    border: 1px solid #cbd8db;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
}

.calendar-confirm-actions button[data-calendar-confirm-ok] {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.lims-access-denied-modal .calendar-confirm-window {
    width: min(430px, 100%);
}

.lims-access-denied-modal .calendar-confirm-icon {
    color: #a15d13;
    background: #fff7e8;
    border-color: #efd39d;
}

.lims-access-denied-modal .calendar-confirm-actions button {
    min-width: 92px;
    color: #fff;
    background: #087f8c;
    border-color: #087f8c;
}

.mail-delete-confirm-modal .calendar-confirm-window {
    width: min(440px, 100%);
}

.mail-delete-confirm-modal p {
    overflow-wrap: anywhere;
}

.calendar-confirm-actions button[data-mail-delete-ok] {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.calendar-confirm-actions button:hover {
    color: #fff;
    background: #315a7b;
    border-color: #315a7b;
}

.calendar-confirm-actions button[data-calendar-confirm-ok]:hover,
.calendar-confirm-actions button[data-mail-delete-ok]:hover {
    background: #8f2f2f;
    border-color: #8f2f2f;
}

.environment-modal {
    position: fixed;
    inset: 0;
    z-index: 1220;
    display: none;
}

.environment-modal.is-open {
    display: block;
}

.environment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
}

.environment-modal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(560px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 32px));
    overflow: hidden;
    background: #fff;
    border: 1px solid #93a8af;
    border-radius: 8px;
    box-shadow: 0 24px 84px rgba(15, 23, 42, .36);
    transform: translate(-50%, -50%);
}

.environment-modal-window header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #fff;
    background: #172033;
}

.environment-modal-window header div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.environment-modal-window header span {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 900;
}

.environment-modal-window header strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.environment-modal-window header button {
    width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 6px;
}

.environment-modal-body {
    display: grid;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 16px;
    overflow: auto;
}

.environment-modal-body > strong {
    color: var(--primary);
    font-size: 30px;
    line-height: 1;
}

.environment-modal-body small,
.environment-modal-body time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.environment-modal-body p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.65;
}

.list-head.secondary {
    border-top: 0;
}

.presence-badge {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    padding: 3px 8px;
    color: var(--muted);
    background: #eef4f5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.user-item.online .presence-badge {
    color: #fff;
    background: var(--accent);
}

.user-item.online strong,
.user-item.online .user-name-text {
    color: var(--text);
}

.user-item.online strong::before {
    content: none;
}

.user-item span,
.room-item span,
.conversation-head p,
.empty-state p {
    color: var(--muted);
    font-size: 13px;
}

.conversation {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.conversation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    background: #f3f8f7;
    border-bottom: 1px solid var(--line);
}

.conversation-head > div {
    min-width: 0;
}

.conversation-head.room-head {
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px;
    background: #eef7f8;
}

.conversation-head.room-head > div:first-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 8px 10px;
}

.conversation-head.room-head .eyebrow {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}

.conversation-head.room-head h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-head.room-head p:last-child {
    grid-column: 1 / -1;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-head.direct-head {
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 46px;
    padding: 8px 14px;
    background: #f4f8fb;
}

.conversation-avatar {
    width: 34px;
    height: 34px;
}

.conversation-head.direct-head > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.conversation-head.direct-head h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-head.direct-head .eyebrow {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.conversation-head.direct-head p:last-child {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
    border-radius: 999px;
}

.status-pill.system {
    color: #09665d;
    background: #e4f7f1;
    border: 1px solid #a7ddd0;
}

.status-pill.closed {
    color: #7a2424;
    background: #fff0f0;
    border: 1px solid #efc2c2;
}

.room-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    width: auto;
}

.room-close button,
.room-delete button {
    min-height: 32px;
    width: auto;
    margin: 0;
    padding: 6px 10px;
    color: #fff;
    background: var(--danger);
}

.room-close button:hover,
.room-delete button:hover {
    background: #8f2f2f;
}

.member-add {
    position: relative;
    padding: 0;
    background: #f7fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.member-add summary {
    min-height: 32px;
    padding: 6px 10px;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

.member-add form {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5;
    width: min(280px, 70vw);
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.member-add button {
    width: 100%;
}

.member-remove summary {
    color: var(--danger);
}

.member-remove button {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.member-remove button:hover {
    background: #8f2f2f;
}

.member-add p {
    margin: 10px 0 0;
}

.closed-note {
    margin: 0;
    padding: 10px 12px;
    color: var(--muted);
    background: #f7fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background-color: #f6f1e5;
    background-image:
        linear-gradient(rgba(255, 253, 247, .3), rgba(248, 246, 238, .3)),
        url("mid-autumn-chat-background.webp");
    background-position: center, center;
    background-size: auto, 100% 100%;
    background-repeat: no-repeat;
    overflow-y: auto;
}

.chat-new-message-button {
    position: absolute;
    bottom: calc(var(--chat-composer-height, 62px) + 12px);
    left: 50%;
    z-index: 14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(135deg, #087b5c, #06a765);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(13, 91, 69, .28);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transform: translate(-50%, 9px) scale(.96);
    transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease;
}

.chat-new-message-button[hidden] {
    display: none;
}

.chat-new-message-button.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.chat-new-message-button:hover,
.chat-new-message-button:focus-visible {
    color: #fff;
    box-shadow: 0 10px 26px rgba(13, 91, 69, .36);
}

.chat-new-message-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.message-row.mine {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.message-system {
    align-self: center;
    max-width: min(440px, 88%);
    padding: 7px 12px;
    color: #466064;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(91, 126, 132, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.message-avatar {
    width: 34px;
    height: 34px;
    margin-bottom: 2px;
}

.bubble {
    --message-bubble-surface: rgba(255, 253, 247, .76);
    position: relative;
    width: min(660px, calc(92% - 44px));
    padding: 13px 15px;
    color: #243235;
    background: var(--message-bubble-surface);
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 18px 18px 18px 8px;
    box-shadow: 0 8px 20px rgba(38, 61, 55, .1);
    -webkit-backdrop-filter: blur(7px) saturate(120%);
    backdrop-filter: blur(7px) saturate(120%);
}

.message-row.mine .bubble {
    --message-bubble-surface: rgba(207, 240, 219, .78);
    color: #164536;
    background: var(--message-bubble-surface);
    border-color: rgba(73, 146, 100, .38);
    border-radius: 18px 18px 8px 18px;
    box-shadow: 0 8px 20px rgba(42, 101, 66, .12);
}

.message-row .bubble::after {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 24px;
    content: '';
    background: var(--message-bubble-surface);
    filter: drop-shadow(0 2px 1px rgba(41, 69, 61, .09));
    -webkit-backdrop-filter: blur(7px) saturate(120%);
    backdrop-filter: blur(7px) saturate(120%);
}

.message-row.theirs .bubble::after {
    left: -16px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    clip-path: path('M 20 0 C 19 8 16 14 11 18 C 8 20 4 21 0 21 C 8 24 15 23 20 18 Z');
}

.message-row.mine .bubble::after {
    right: -16px;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    clip-path: path('M 0 0 C 1 8 4 14 9 18 C 12 20 16 21 20 21 C 12 24 5 23 0 18 Z');
}

.bubble-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.bubble-meta time {
    opacity: 0.78;
}

.bubble p {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.bubble p a.message-external-link {
    color: #076b83;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.message-row.mine .bubble p a.message-external-link {
    color: #075e54;
}

.bubble p a.message-external-link:hover,
.bubble p a.message-external-link:focus-visible {
    color: #034d61;
}

.message-row.mine .bubble p a.message-external-link:hover,
.message-row.mine .bubble p a.message-external-link:focus-visible {
    color: #034b43;
}

.mention-chip {
    display: inline-block;
    padding: 1px 5px;
    color: #075985;
    background: #dff3f7;
    border: 1px solid rgba(7, 89, 133, .16);
    border-radius: 6px;
    font-weight: 900;
}

.message-row.mine .mention-chip {
    color: #075985;
    background: rgba(223, 243, 247, .72);
    border-color: rgba(7, 89, 133, .18);
}

.attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.attachments a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 9px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(24, 35, 38, 0.15);
    border-radius: 8px;
    text-decoration: none;
}

.attachments strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.attachments span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.attachments a.image-attachment {
    display: grid;
    align-items: stretch;
    gap: 6px;
    width: min(280px, 100%);
    padding: 6px;
}

.image-attachment img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    background: #eef4f5;
    border-radius: 6px;
}

.shared-assistant-card,
.shared-mail-card,
.shared-nas-card,
.shared-calendar-card {
    display: grid;
    gap: 7px;
    min-width: min(260px, 100%);
    padding: 12px;
    color: var(--text);
    background: #f7fbfa;
    border: 1px solid #bfd7d4;
    border-radius: 8px;
}

.shared-mail-card {
    background: #fff9f1;
    border-color: #ead0a5;
}

.shared-nas-card {
    background: #f6fbff;
    border-color: #bdd9e4;
}

.shared-calendar-card {
    background: #f4fbf7;
    border-color: #b8d8c6;
}

.repair-ticket-card {
    display: grid;
    gap: 10px;
    min-width: min(340px, 100%);
    padding: 14px;
    color: var(--text);
    background: #fffdf9;
    border: 1px solid #e3c9ae;
    border-left: 4px solid #b45309;
    border-radius: 8px;
}

.repair-ticket-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.repair-ticket-card header div {
    display: grid;
    gap: 2px;
}

.repair-ticket-card header span {
    color: #9a3412;
    font-size: 11px;
    font-weight: 950;
}

.repair-ticket-card header strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.repair-ticket-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}

.repair-ticket-card > small {
    color: #6b5b50;
    font-size: 12px;
}

.repair-urgency {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.repair-urgency.is-normal {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.repair-urgency.is-urgent {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fed7aa;
}

.repair-urgency.is-critical {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.repair-ticket-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin: 0;
}

.repair-ticket-card dl div {
    min-width: 0;
}

.repair-ticket-card dt {
    color: #7c6f64;
    font-size: 11px;
    font-weight: 850;
}

.repair-ticket-card dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 800;
}

.repair-ticket-card > p {
    padding: 9px 10px;
    color: #342b25;
    background: #f8efe5;
    border-radius: 6px;
    line-height: 1.55;
}

.repair-ticket-card > footer {
    color: #7c2d12;
    font-size: 12px;
    font-weight: 900;
}

.shared-assistant-card span,
.shared-mail-card span,
.shared-nas-card span,
.shared-calendar-card span {
    color: #0f6c78;
    font-size: 12px;
    font-weight: 950;
}

.shared-mail-card span {
    color: #8a4b07;
}

.shared-calendar-card span {
    color: #23745f;
}

.shared-assistant-card strong,
.shared-mail-card strong,
.shared-nas-card strong,
.shared-calendar-card strong {
    font-size: 15px;
    line-height: 1.3;
}

.shared-assistant-card small,
.shared-mail-card small,
.shared-nas-card small,
.shared-calendar-card small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shared-calendar-card p,
.shared-calendar-note {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.shared-calendar-card .shared-calendar-note span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.shared-assistant-card button,
.shared-mail-card button {
    justify-self: start;
    min-height: 34px;
    margin-top: 4px;
    padding: 7px 10px;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 13px;
}

.shared-mail-card button {
    background: #9a5c12;
}

.shared-nas-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.shared-nas-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.shared-nas-card a:hover {
    background: var(--primary-strong);
}

.assistant-shared-preview-modal,
.mail-shared-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: none;
}

.assistant-shared-preview-modal.is-open,
.mail-shared-preview-modal.is-open {
    display: block;
}

.assistant-shared-preview-backdrop,
.mail-shared-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
}

.assistant-shared-preview-window,
.mail-shared-preview-window {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(760px, calc(100vw - 32px));
    height: min(720px, calc(100vh - 32px));
    overflow: hidden;
    background: #fff;
    border: 1px solid #93a8af;
    border-radius: 8px;
    box-shadow: 0 24px 84px rgba(15, 23, 42, .36);
    transform: translate(-50%, -50%);
}

.assistant-shared-preview-window header,
.mail-shared-preview-window header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #fff;
    background: #172033;
}

.assistant-shared-preview-window header strong,
.mail-shared-preview-window header strong {
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assistant-shared-preview-window header button,
.mail-shared-preview-window header button {
    width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 6px;
}

.assistant-shared-preview-body,
.mail-shared-preview-body {
    min-width: 0;
    min-height: 0;
    padding: 14px;
    overflow: auto;
    background: #f7fafb;
}

.assistant-shared-preview-body > .assistant-message {
    max-width: none;
}

.shared-mail-preview {
    display: grid;
    overflow: hidden;
    color: var(--text);
    background: #fff;
    border: 1px solid #dbe9e7;
    border-radius: 8px;
}

.shared-mail-preview header {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    background: #fff4e3;
    border-bottom: 1px solid #e1be85;
}

.shared-mail-preview header strong {
    color: #2f1b05;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.35;
}

.shared-mail-preview header small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.shared-mail-preview dl {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 12px 16px;
    background: #f8fbfb;
    border-bottom: 1px solid var(--line);
}

.shared-mail-preview dl div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
}

.shared-mail-preview dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.shared-mail-preview dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.shared-mail-attachments {
    display: grid;
    gap: 8px;
    padding: 12px 16px;
    background: #fffdf8;
    border-bottom: 1px solid var(--line);
}

.shared-mail-attachments > strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5f3a0a;
    font-size: 12px;
    font-weight: 950;
}

.shared-mail-attachments > strong em {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 6px;
    color: #fff;
    background: #9a5c12;
    border-radius: 999px;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
}

.shared-mail-attachment {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f7fbfb;
    border: 1px solid #dbe9e7;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.shared-mail-attachment.is-actionable {
    cursor: pointer;
}

.shared-mail-attachment.is-actionable:hover {
    background: #eef7f8;
    border-color: #bfdad8;
}

.shared-mail-attachment > span {
    display: grid;
    min-height: 34px;
    place-items: center;
    color: #7a4308;
    background: #fff2d9;
    border: 1px solid #e6c892;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 950;
}

.shared-mail-attachment div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.shared-mail-attachment b,
.shared-mail-attachment small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shared-mail-attachment b {
    color: #1f2d32;
    font-size: 13px;
    font-weight: 900;
}

.shared-mail-attachment small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.shared-mail-preview-body {
    max-height: 56vh;
    padding: 16px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.mail-share-attachment-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1220;
    display: none;
}

.mail-share-attachment-preview-modal.is-open {
    display: block;
}

.mail-share-attachment-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 28, .58);
}

.mail-share-attachment-preview-window {
    position: absolute;
    inset: 5vh 5vw;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.mail-share-attachment-preview-window header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.mail-share-attachment-preview-window header strong {
    min-width: 0;
    overflow: hidden;
    color: #172529;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-share-attachment-preview-window header div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.mail-share-attachment-preview-window header a,
.mail-share-attachment-preview-window header button {
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.mail-share-attachment-preview-window header button {
    width: 32px;
    padding: 0;
}

.mail-share-attachment-preview-body {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: auto;
    background: #243033;
}

.mail-share-attachment-preview-body img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mail-share-attachment-preview-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.attachment-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.attachment-preview-modal.is-open {
    display: block;
}

.attachment-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
}

.attachment-preview-window {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1120px, calc(100vw - 32px));
    height: min(760px, calc(100vh - 32px));
    overflow: hidden;
    background: #fff;
    border: 1px solid #93a8af;
    border-radius: 8px;
    box-shadow: 0 24px 84px rgba(15, 23, 42, .36);
    transform: translate(-50%, -50%);
}

.attachment-preview-window header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    color: #fff;
    background: #172033;
}

.attachment-preview-window header strong {
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-preview-window header div {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.attachment-preview-window header a,
.attachment-preview-window header button {
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.attachment-preview-window header button {
    width: 34px;
    padding: 0;
    font-size: 18px;
}

.attachment-preview-body {
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    background: #eef4f6;
}

.attachment-preview-body img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
}

.attachment-preview-body iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    background: #fff;
    border: 0;
}

.composer {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.composer textarea {
    grid-column: 1 / -1;
    min-height: 78px;
}

.composer:has(> .composer-attachment-list:not([hidden])) > textarea {
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

.composer-attachment-list {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    margin-top: -10px;
    padding: 9px;
    background: #f5f8f8;
    border: 1px solid #c6d5d7;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.composer-attachment-list[hidden] {
    display: none;
}

.composer-attachment-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    align-self: flex-start;
    flex: 0 1 280px;
    gap: 8px;
    min-width: 180px;
    max-width: 100%;
    padding: 7px 7px 7px 9px;
    background: #fff;
    border: 1px solid #d5dfe1;
    border-radius: 9px;
    box-shadow: 0 2px 7px rgba(34, 62, 66, .05);
}

.composer-attachment-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #187b83;
    background: #e8f5f5;
    border-radius: 7px;
}

.composer-attachment-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.composer-attachment-meta {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.composer-attachment-meta strong,
.composer-attachment-meta small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composer-attachment-meta strong {
    color: #2b3e42;
    font-size: 12px;
    font-weight: 900;
}

.composer-attachment-meta small {
    color: #738388;
    font-size: 10px;
    font-weight: 750;
}

.composer .composer-attachment-remove,
.composer .composer-attachment-remove:hover,
.composer .composer-attachment-remove:focus,
.composer .composer-attachment-remove:active {
    display: grid;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #7b898d;
    background: transparent;
    border: 0;
    border-radius: 7px;
    box-shadow: none;
    transform: none;
}

.composer .composer-attachment-remove:hover,
.composer .composer-attachment-remove:focus-visible {
    color: #c33f4a;
    background: #fff0f1;
    outline: none;
}

.composer-attachment-remove svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.mention-picker {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px;
    max-height: 180px;
    padding: 8px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #b8cbd0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(24, 35, 38, .12);
}

.mention-picker.hidden {
    display: none;
}

.emoji-picker {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 6px;
    max-height: 146px;
    padding: 8px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #b8cbd0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(24, 35, 38, .12);
}

.emoji-picker.hidden {
    display: none;
}

.emoji-picker button {
    display: grid;
    min-height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: var(--text);
    background: #f7fbfc;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 22px;
    line-height: 1;
}

.emoji-picker button:hover,
.emoji-picker button:focus-visible {
    background: #e8f5f5;
    border-color: #badbd7;
    outline: none;
}

.mention-picker button {
    display: grid;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 7px 9px;
    color: var(--text);
    background: #f7fbfc;
    border: 1px solid transparent;
    border-radius: 7px;
    text-align: left;
}

.mention-picker button:hover,
.mention-picker button.is-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.mention-picker strong,
.mention-picker span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mention-picker span {
    color: var(--muted);
    font-size: 12px;
}

.mention-picker button:hover span,
.mention-picker button.is-active span {
    color: rgba(255, 255, 255, .76);
}

.composer-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-button,
.emoji-button,
.repair-button {
    display: inline-grid;
    width: 38px;
    min-height: 36px;
    margin-top: 0;
    padding: 0;
    place-items: center;
    color: var(--primary);
    background: #fff;
    border: 1px solid #cbd8db;
}

.icon-tool-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.icon-tool-button svg circle[cy="10"] {
    fill: currentColor;
    stroke: none;
}

.attachment-button:hover,
.emoji-button:hover,
.emoji-button[aria-expanded="true"],
.repair-button:hover {
    color: #fff;
    background: var(--primary);
}

.repair-button {
    color: #b45309;
}

.repair-menu {
    position: relative;
}

.repair-menu > summary {
    position: relative;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}

.repair-menu > summary::-webkit-details-marker {
    display: none;
}

.repair-menu > summary:hover,
.repair-menu[open] > summary {
    background: rgba(255, 255, 255, .22);
}

.repair-menu > summary svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.repair-menu-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    padding: 2px 6px;
    color: #fff;
    background: #c2410c;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.25;
    text-align: center;
}

.repair-menu-badge.hidden {
    display: none;
}

.repair-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 48;
    width: min(600px, calc(100vw - 32px));
    overflow: hidden;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.repair-menu-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.repair-menu-panel > header div {
    display: grid;
    gap: 2px;
}

.repair-menu-panel > header strong {
    font-size: 14px;
    font-weight: 950;
}

.repair-menu-panel > header small {
    color: var(--muted);
    font-size: 12px;
}

.repair-menu-panel > header button {
    display: grid;
    width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: var(--muted);
    background: #f3f6f7;
    border: 1px solid #d1dee0;
    border-radius: 8px;
}

.repair-menu-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 9px;
    padding: 11px 14px;
    background: #f7f9fa;
    border-bottom: 1px solid var(--line);
}

.repair-menu-filters input,
.repair-menu-filters select {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    padding: 7px 10px;
    color: var(--text);
    background: #fff;
    border: 1px solid #c4d2d5;
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
}

.repair-menu-list {
    max-height: min(70vh, 650px);
    overflow: auto;
}

.repair-menu-empty {
    padding: 24px 16px;
    color: var(--muted);
    text-align: center;
}

.repair-menu-empty.is-error {
    color: var(--danger);
}

.repair-menu-item {
    display: grid;
    gap: 8px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
}

.repair-menu-item:last-child {
    border-bottom: 0;
}

.repair-menu-item > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.repair-menu-item > header div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.repair-menu-item > header span {
    color: #9a3412;
    font-size: 11px;
    font-weight: 950;
}

.repair-menu-item > header strong {
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.35;
}

.repair-menu-item > header em {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.repair-menu-item > header em.status-submitted,
.repair-menu-item > header em.status-received {
    color: #92400e;
    background: #fef3c7;
}

.repair-menu-item > header em.status-processing {
    color: #075985;
    background: #e0f2fe;
}

.repair-menu-item > header em.status-waiting {
    color: #7e22ce;
    background: #f3e8ff;
}

.repair-menu-item > header em.status-resolved,
.repair-menu-item > header em.status-closed {
    color: #166534;
    background: #dcfce7;
}

.repair-menu-item > small {
    color: var(--muted);
    font-size: 12px;
}

.repair-menu-item > dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin: 0;
}

.repair-menu-item dt {
    color: #78888c;
    font-size: 10px;
    font-weight: 850;
}

.repair-menu-item dd {
    margin: 1px 0 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 750;
}

.repair-current-progress {
    margin: 0;
    padding: 8px 9px;
    color: #334b50;
    background: #eef6f6;
    border-left: 3px solid #0f766e;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.repair-progress-history {
    border-top: 1px dashed #d4dfe1;
}

.repair-progress-history > summary {
    padding-top: 7px;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.repair-progress-history ol {
    display: grid;
    gap: 8px;
    margin: 9px 0 0;
    padding: 0 0 0 18px;
}

.repair-progress-history li {
    padding-left: 3px;
}

.repair-progress-history li div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.repair-progress-history li strong,
.repair-progress-history li time,
.repair-progress-history li small {
    font-size: 11px;
}

.repair-progress-history li time,
.repair-progress-history li small {
    color: var(--muted);
}

.repair-progress-history li p {
    margin: 3px 0;
    font-size: 12px;
}

.repair-menu-item > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.repair-menu-item > footer > time {
    color: var(--muted);
    font-size: 10px;
}

.repair-menu-item > footer div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar nav .repair-menu-item > footer a,
.repair-menu-item > footer button {
    min-height: auto;
    margin: 0;
    padding: 6px 8px;
    color: var(--primary);
    background: #fff;
    border: 1px solid #c7d9dc;
    border-radius: 6px;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.repair-menu-item > footer button {
    color: #fff;
    background: #a6480a;
    border-color: #a6480a;
}

.repair-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 1320;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.repair-progress-modal.is-open {
    display: flex;
}

.repair-progress-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 30, .58);
}

.repair-progress-window {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    color: var(--text);
    background: #fff;
    border: 1px solid #d4dee0;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(18, 28, 30, .28);
}

.repair-progress-window > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.repair-progress-window > header div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.repair-progress-window > header span {
    color: #b45309;
    font-size: 11px;
    font-weight: 950;
}

.repair-progress-window > header h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 18px;
}

.repair-progress-window > header button {
    display: grid;
    width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: var(--muted);
    background: #f1f5f6;
    border: 1px solid #d3dfe1;
    border-radius: 50%;
}

.repair-progress-window form {
    display: grid;
    gap: 14px;
    padding: 17px 18px 18px;
}

.repair-progress-window label {
    display: grid;
    gap: 6px;
}

.repair-progress-window label span {
    color: #43575b;
    font-size: 12px;
    font-weight: 900;
}

.repair-progress-window select,
.repair-progress-window textarea {
    width: 100%;
    margin: 0;
    color: var(--text);
    background: #fff;
    border: 1px solid #b8cbd0;
    border-radius: 6px;
}

.repair-progress-window textarea {
    min-height: 120px;
    resize: vertical;
}

.repair-progress-window form > p {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.repair-progress-window form > p[data-kind="error"] {
    color: var(--danger);
}

.repair-progress-window form > footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.repair-progress-window form > footer button {
    margin: 0;
}

.repair-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.repair-modal.is-open {
    display: flex;
}

.repair-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 30, 0.58);
}

.repair-modal-window {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(760px, 100%);
    max-height: min(90vh, 860px);
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--text);
    background: #fff;
    border: 1px solid #d4dee0;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(18, 28, 30, 0.28);
}

.repair-modal-window > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid #dbe5e7;
}

.repair-modal-window > header div {
    display: grid;
    gap: 3px;
}

.repair-modal-window > header span {
    color: #b45309;
    font-size: 11px;
    font-weight: 950;
}

.repair-modal-window > header h2 {
    margin: 0;
    font-size: 21px;
}

.repair-modal-close {
    display: grid;
    width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #52666b;
    background: #f2f6f7;
    border: 1px solid #d4e0e2;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.repair-form {
    display: grid;
    gap: 16px;
    padding: 18px 20px 20px;
}

.repair-reporter,
.repair-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.repair-reporter {
    padding: 12px;
    background: #edf7f7;
    border-left: 3px solid #0f766e;
}

.repair-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.repair-form label > span {
    color: #43575b;
    font-size: 12px;
    font-weight: 900;
}

.repair-form input,
.repair-form select,
.repair-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--text);
    background: #fff;
    border: 1px solid #b8cbd0;
    border-radius: 6px;
}

.repair-form input[readonly] {
    color: #38545a;
    background: #f7fbfb;
}

.repair-form textarea {
    min-height: 116px;
    resize: vertical;
}

.repair-form-wide {
    grid-column: 1 / -1;
}

.repair-upload {
    padding: 11px 12px;
    background: #f7f9fa;
    border: 1px dashed #aebfc3;
    border-radius: 7px;
}

.repair-upload input {
    padding: 7px;
    background: #fff;
}

.repair-upload small {
    color: var(--muted);
    font-size: 12px;
}

.repair-form-status {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.repair-form-status[data-kind="error"] {
    color: var(--danger);
}

.repair-form > footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.repair-form > footer button {
    margin: 0;
}

.repair-cancel-button {
    color: #42585d;
    background: #eef3f4;
    border-color: #d2dee0;
}

.repair-submit-button {
    background: #a6480a;
    border-color: #a6480a;
}

@media (max-width: 640px) {
    .repair-menu-panel {
        position: fixed;
        top: calc(var(--topbar-height) + 8px);
        right: 8px;
        left: 8px;
        width: auto;
    }

    .repair-menu-filters,
    .repair-menu-item > dl {
        grid-template-columns: 1fr;
    }

    .repair-menu-list {
        max-height: calc(100vh - var(--topbar-height) - 150px);
    }

    .repair-menu-item > footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .repair-progress-modal {
        align-items: flex-end;
        padding: 0;
    }

    .repair-progress-window {
        width: 100%;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 8px 8px 0 0;
    }

    .repair-modal {
        align-items: flex-end;
        padding: 0;
    }

    .repair-modal-window {
        width: 100%;
        max-height: 94vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 8px 8px 0 0;
    }

    .repair-reporter,
    .repair-form-grid,
    .repair-ticket-card dl {
        grid-template-columns: 1fr;
    }

    .repair-form-wide {
        grid-column: auto;
    }
}

.file-input {
    display: none;
}

.composer-tools span {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.composer p {
    align-self: center;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.composer p[data-kind="error"] {
    color: var(--danger);
}

.composer p[data-kind="ok"] {
    color: var(--accent);
}

.composer button {
    margin-top: 0;
}

.closed-composer {
    display: block;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.empty-state {
    display: grid;
    align-content: center;
    min-height: 420px;
    padding: 30px;
    text-align: center;
}

.assistant-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
}

body.has-chat-layout .assistant-widget {
    right: 22px;
    bottom: 22px;
    left: auto;
}

.assistant-toggle {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 58px;
    height: 58px;
    margin-top: 0;
    padding: 0;
    place-items: center;
    background: #e8fbf7;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(24, 35, 38, 0.24);
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.assistant-widget.is-dragging .assistant-toggle,
.assistant-widget.is-dragging .assistant-toggle:hover {
    cursor: grabbing;
    transform: none;
    transition: none;
}

.assistant-toggle::before,
.assistant-toggle::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .18s ease;
}

.assistant-toggle::before {
    inset: -.5px;
    z-index: -2;
    background: conic-gradient(from 0deg, #0f6c78, #3f8550, #f0c15a, #4aa7b8, #0f6c78);
    filter: saturate(1.1);
}

.assistant-toggle::after {
    inset: -2px;
    z-index: -3;
    background: radial-gradient(circle, rgba(63, 133, 80, .34), rgba(15, 108, 120, .18) 46%, transparent 72%);
    filter: blur(3px);
}

.assistant-widget.is-open .assistant-toggle::before {
    opacity: 1;
    animation: assistant-ring-spin 5s linear infinite;
}

.assistant-widget.is-open .assistant-toggle::after {
    opacity: 1;
    animation: assistant-ring-pulse 2.4s ease-in-out infinite;
}

.assistant-toggle:hover {
    box-shadow: 0 18px 38px rgba(24, 35, 38, 0.28);
}

.assistant-toggle img {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: block;
}

.assistant-widget:not(.is-open):not(.is-dragging) .assistant-toggle {
    animation: assistant-idle-bob 2.8s ease-in-out infinite;
}

@keyframes assistant-ring-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes assistant-idle-bob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes assistant-ring-pulse {
    0%,
    100% {
        transform: scale(.92);
        opacity: .65;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .assistant-widget:not(.is-open):not(.is-dragging) .assistant-toggle,
    .assistant-widget.is-open .assistant-toggle::before,
    .assistant-widget.is-open .assistant-toggle::after {
        animation: none;
    }
}

.assistant-panel {
    position: fixed;
    right: 22px;
    bottom: 96px;
    display: none;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    width: min(380px, calc(100vw - 28px));
    height: min(560px, calc(100vh - 120px));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(24, 35, 38, 0.18);
}

.assistant-widget.is-open .assistant-panel {
    display: grid;
}

.assistant-widget.is-limited .assistant-panel {
    grid-template-rows: auto minmax(0, 1fr);
    height: min(320px, calc(100vh - 120px));
}

.assistant-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    color: #fff;
    background: #176b87;
}

.assistant-panel header strong,
.assistant-panel header span {
    display: block;
}

.assistant-panel header span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.assistant-panel header button {
    width: 34px;
    min-height: 34px;
    margin-top: 0;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 14px;
    overflow: auto;
    background: #f7fafb;
}

.assistant-message {
    max-width: 92%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.assistant-message.user {
    align-self: flex-end;
    color: #fff;
    background: #2f8f5b;
    border-color: #2f8f5b;
}

.assistant-message.error {
    color: #7a2424;
    background: #fff0f0;
    border-color: #efc2c2;
}

.assistant-dashboard {
    display: grid;
    gap: 10px;
    max-width: none;
    color: #24383d;
    background: #f2fbfa;
    border-color: #b9deda;
}

.assistant-dashboard > strong {
    color: #0f6c78;
    font-size: 15px;
}

.assistant-dashboard > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.assistant-dashboard span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px 8px;
    background: #fff;
    border: 1px solid #c7e5e2;
    border-radius: 8px;
}

.assistant-dashboard em {
    color: var(--primary);
    font-size: 24px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
}

.assistant-dashboard small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.assistant-dashboard-error {
    color: #7a2424;
    background: #fff7f7;
    border-color: #efc2c2;
}

.assistant-dashboard-notice {
    display: grid;
    gap: 5px;
    color: #195734;
    background: #eefaf1;
    border-color: #b8dfc7;
}

.assistant-dashboard-notice strong,
.assistant-dashboard-notice span {
    display: block;
}

.assistant-access-notice {
    display: grid;
    gap: 8px;
    max-width: none;
    padding: 14px;
    color: #24383d;
    background: #fffdf4;
    border-color: #e8d79b;
}

.assistant-access-notice strong,
.assistant-access-notice span,
.assistant-access-notice small {
    display: block;
}

.assistant-access-notice strong {
    color: #7a5a13;
    font-size: 15px;
}

.assistant-access-notice span {
    color: var(--text);
}

.assistant-access-notice small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.assistant-admin {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.assistant-admin summary {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.assistant-admin form {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.assistant-admin form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.assistant-admin label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.assistant-admin input,
.assistant-admin button {
    min-height: 34px;
    margin-top: 0;
}

.assistant-admin button {
    padding: 7px 10px;
    font-size: 13px;
}

.assistant-admin p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.assistant-admin p[data-kind="ok"] {
    color: var(--accent);
}

.assistant-admin p[data-kind="error"] {
    color: var(--danger);
}

.assistant-admin ul {
    display: grid;
    gap: 6px;
    max-height: 120px;
    margin: 10px 0 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.assistant-admin li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.assistant-admin li.is-fixed {
    grid-template-columns: 1fr;
}

.assistant-admin li strong,
.assistant-admin li small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assistant-admin li strong {
    font-size: 13px;
}

.assistant-admin li small {
    color: var(--muted);
    font-size: 12px;
}

.assistant-admin li button {
    color: var(--danger);
    background: #fff;
    border: 1px solid #efc2c2;
}

.assistant-admin li button:hover {
    color: #fff;
    background: var(--danger);
}

.assistant-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.assistant-quick-menu {
    display: flex;
    gap: 7px;
    min-width: 0;
    padding: 10px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    background: #fff;
    border-top: 1px solid var(--line);
    scrollbar-width: thin;
}

.assistant-quick-menu button {
    flex: 0 0 auto;
    min-width: 76px;
}

.assistant-menu button {
    min-height: 38px;
    margin-top: 0;
    padding: 8px 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    background: #fff;
    border: 1px solid #cbd8db;
}

.assistant-menu button:hover,
.assistant-menu button.is-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.assistant-case {
    margin-top: 10px;
    color: var(--text);
}

.assistant-case-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.assistant-case-head strong,
.assistant-case-head span {
    display: block;
}

.assistant-case-head span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.assistant-case-head em {
    flex: 0 0 auto;
    padding: 3px 8px;
    color: #195734;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    background: #eaf8ef;
    border: 1px solid #b8dfc7;
    border-radius: 999px;
}

.assistant-case dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 10px 0;
}

.assistant-case dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.assistant-case dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.assistant-case ol {
    display: grid;
    gap: 8px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.assistant-case li {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
}

.assistant-case li > span {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    background: #c6d3d6;
    border-radius: 50%;
}

.assistant-case li.is-on > span {
    background: #2f8f5b;
}

.assistant-case li strong,
.assistant-case li small {
    display: block;
}

.assistant-case li small {
    color: var(--muted);
}

.assistant-case a,
.assistant-case .assistant-preview-button,
.assistant-matches a {
    display: block;
    margin-top: 8px;
    color: var(--primary);
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.assistant-share-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.assistant-share-actions button {
    min-height: 34px;
    margin-top: 0;
    padding: 7px 10px;
    color: var(--primary);
    background: #fff;
    border: 1px solid #bfd3d8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.assistant-share-actions button:hover {
    color: #fff;
    background: var(--primary);
}

.assistant-mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
}

.assistant-mini-metrics span {
    padding: 7px 6px;
    color: #195734;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    background: #eaf8ef;
    border: 1px solid #b8dfc7;
    border-radius: 8px;
}

.assistant-case section {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.assistant-case section h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.assistant-case section p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.assistant-case section ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.assistant-case section li {
    display: block;
    min-width: 0;
    padding: 8px;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.assistant-case-management section li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.assistant-case-management section li > span {
    width: auto;
    height: auto;
    margin-top: 0;
    background: transparent;
    border-radius: 0;
}

.assistant-case section li strong,
.assistant-case section li span,
.assistant-case section li small {
    display: block;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.assistant-case section li span,
.assistant-case section li small {
    color: var(--muted);
    font-size: 12px;
}

.assistant-sample-item {
    padding: 10px;
}

.assistant-sample-item strong {
    color: var(--text);
    font-size: 14px;
}

.assistant-sample-item span,
.assistant-sample-item small {
    white-space: normal;
}

.assistant-matches {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.assistant-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    pointer-events: none;
}

.assistant-preview-modal.is-open {
    display: block;
}

.assistant-preview-window {
    position: fixed;
    top: 12px;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1180px, calc(100vw - 24px));
    height: calc(100vh - 24px);
    overflow: hidden;
    pointer-events: auto;
    background: #fff;
    border: 1px solid #9fb2ba;
    border-radius: 8px;
    box-shadow: 0 22px 80px rgba(15, 23, 42, .35);
    transform: translateX(-50%);
}

.assistant-preview-window header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #fff;
    background: #172033;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.assistant-preview-window.is-dragging {
    box-shadow: 0 28px 90px rgba(15, 23, 42, .45);
}

.assistant-preview-window.is-resizing {
    box-shadow: 0 28px 90px rgba(15, 23, 42, .45);
}

.assistant-preview-window header strong {
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assistant-preview-window header button {
    width: 34px;
    height: 34px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 6px;
    cursor: pointer;
}

.assistant-preview-window iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.assistant-preview-content {
    min-width: 0;
    min-height: 0;
    padding: 16px;
    overflow: auto;
    background: #eef4f6;
}

.assistant-preview-card {
    max-width: 980px;
    margin: 0 auto;
}

.assistant-customer-preview {
    display: grid;
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
    color: var(--text);
}

.assistant-customer-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #c9dce2;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(16, 47, 60, .08);
}

.assistant-customer-hero strong,
.assistant-customer-hero span {
    display: block;
}

.assistant-customer-hero strong {
    font-size: 20px;
    line-height: 1.35;
}

.assistant-customer-hero > div:first-child span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.assistant-customer-hero > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.assistant-customer-hero > div:last-child span {
    padding: 5px 8px;
    color: #0f5565;
    font-size: 12px;
    font-weight: 900;
    background: #e3f3f6;
    border: 1px solid #b7d7df;
    border-radius: 999px;
}

.assistant-customer-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.assistant-customer-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 12px;
    color: var(--muted);
    font-size: 12px;
    background: #fff;
    border: 1px solid #c9dce2;
    border-radius: 8px;
}

.assistant-customer-metrics b {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 17px;
    line-height: 1.2;
}

.assistant-customer-section .assistant-customer-metrics {
    margin: 0;
}

.assistant-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.assistant-customer-section {
    min-width: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid #c9dce2;
    border-radius: 8px;
}

.assistant-customer-section h4 {
    margin: 0 0 10px;
    color: #0f5565;
    font-size: 14px;
}

.assistant-customer-section dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
}

.assistant-customer-section dt,
.assistant-customer-section dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.assistant-customer-section dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.assistant-customer-section dd {
    margin-top: 2px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.assistant-customer-section p {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.assistant-customer-section ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.assistant-customer-section li {
    padding: 10px;
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.assistant-customer-section li strong,
.assistant-customer-section li span,
.assistant-customer-section li small {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.assistant-customer-section li span,
.assistant-customer-section li small {
    color: var(--muted);
    font-size: 12px;
}

.assistant-customer-wide {
    grid-column: 1 / -1;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .assistant-customer-hero,
    .assistant-customer-grid,
    .assistant-customer-metrics,
    .assistant-customer-section dl {
        grid-template-columns: 1fr;
    }

    .assistant-customer-hero {
        display: grid;
    }

    .assistant-customer-hero > div:last-child {
        justify-content: flex-start;
    }
}

.assistant-preview-window.is-dragging iframe,
.assistant-preview-window.is-resizing iframe {
    pointer-events: none;
}

.assistant-preview-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
}

.assistant-preview-resize::before {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 9px;
    height: 9px;
    content: "";
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
}

.assistant-matches a {
    padding: 9px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.assistant-matches strong,
.assistant-matches span,
.assistant-matches small {
    display: block;
}

.assistant-matches span,
.assistant-matches small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.assistant-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.assistant-panel form input,
.assistant-panel form button {
    margin-top: 0;
}

.assistant-panel form input:disabled {
    color: var(--muted);
    background: #eef3f4;
    cursor: not-allowed;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .chat-layout,
    .composer {
        grid-template-columns: 1fr;
    }

    .environment-board,
    .nas-panel,
    .user-list,
    .calendar-board {
        position: static;
    }

    .environment-board,
    .nas-panel,
    .user-list,
    .conversation,
    .calendar-board {
        min-height: auto;
    }

    .nas-share-list {
        max-height: 220px;
    }

    .environment-card-track {
        max-height: none;
    }

    .environment-card {
        flex-basis: 100%;
        grid-template-columns: max-content max-content minmax(0, 1fr);
        max-width: 100%;
        min-height: 26px;
    }

    .environment-card em {
        display: none;
    }

    .environment-card small,
    .environment-card time {
        grid-column: 3;
    }

    .environment-board {
        grid-template-columns: minmax(0, 1fr);
    height: 34px;
    }

    .environment-board-head {
        display: none;
    }

    .environment-card-track {
        grid-column: 1;
    }

    .environment-carousel-dots,
    .environment-board > p {
        display: none;
    }

    .environment-board > p {
        display: none;
    }

    .conversation-head {
        display: block;
    }

    .room-actions {
        width: 100%;
        margin-top: 12px;
    }

    .user-items {
        max-height: 360px;
    }

    .room-items {
        max-height: 260px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        min-height: 92px;
        padding: 9px 16px;
    }

    .brand {
        grid-template-columns: 38px minmax(0, 1fr);
        width: 100%;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .brand-copy small {
        font-size: 12px;
    }

    .topbar-actions {
        width: 100%;
        justify-items: stretch;
        gap: 8px;
    }

    .topbar-clock {
        justify-self: stretch;
        padding: 0;
        color: rgba(255, 255, 255, .74);
        font-size: 12px;
        text-align: right;
    }

    .topbar nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .nav-user {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.is-authenticated) {
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        background:
            radial-gradient(circle at 8% 8%, rgba(15, 108, 120, .16), transparent 34%),
            radial-gradient(circle at 92% 92%, rgba(63, 133, 80, .14), transparent 36%),
            linear-gradient(155deg, #edf7f5 0%, #f9fbfa 52%, #edf4f2 100%);
    }

    body:not(.is-authenticated)::before,
    body:not(.is-authenticated)::after {
        position: fixed;
        z-index: 0;
        width: 190px;
        height: 190px;
        content: "";
        pointer-events: none;
        border: 1px solid rgba(15, 108, 120, .1);
        border-radius: 54px;
        transform: rotate(24deg);
    }

    body:not(.is-authenticated)::before {
        top: -112px;
        right: -92px;
        background: rgba(255, 255, 255, .32);
    }

    body:not(.is-authenticated)::after {
        bottom: -128px;
        left: -96px;
        background: rgba(63, 133, 80, .04);
    }

    body:not(.is-authenticated) .topbar {
        display: none;
    }

    body:not(.is-authenticated) .shell {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        padding: calc(24px + constant(safe-area-inset-top)) 16px calc(24px + constant(safe-area-inset-bottom));
        padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    body:not(.is-authenticated) .panel.login {
        width: 100%;
        min-width: 0;
        max-width: 420px;
        margin: 0;
        padding: 30px 22px 24px;
        background: rgba(255, 255, 255, .94);
        border: 1px solid rgba(173, 207, 200, .8);
        border-radius: 22px;
        box-shadow: 0 24px 64px rgba(13, 72, 74, .15), 0 6px 18px rgba(13, 72, 74, .07);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body:not(.is-authenticated) .panel.login::before {
        height: 5px;
        background: linear-gradient(90deg, #0f6c78 0%, #14937d 52%, #4b9860 100%);
    }

    body:not(.is-authenticated) .login-head {
        margin-bottom: 22px;
        text-align: center;
    }

    body:not(.is-authenticated) .login-badge {
        min-height: 28px;
        padding: 4px 11px;
        color: #0d675e;
        background: #e8f6f2;
        border-color: #bce0d7;
        box-shadow: 0 4px 12px rgba(15, 108, 120, .08);
    }

    body:not(.is-authenticated) .login-head h1 {
        max-width: none;
        margin: 14px 0 8px;
        color: #153b3d;
        font-size: clamp(23px, 6.4vw, 27px);
        letter-spacing: -.02em;
        line-height: 1.25;
    }

    body:not(.is-authenticated) .login-head p {
        max-width: 28em;
        margin: 0 auto;
        overflow-wrap: anywhere;
        color: #6a7b7c;
        font-size: 13px;
        line-height: 1.65;
    }

    body:not(.is-authenticated) .login-fields {
        min-width: 0;
        gap: 7px;
    }

    body:not(.is-authenticated) .login-fields label {
        margin-top: 9px;
        color: #29494a;
        font-size: 13px;
        font-weight: 900;
    }

    body:not(.is-authenticated) .panel.login input {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 0 14px;
        color: #193738;
        background: #f8fbfa;
        border: 1px solid #c5d9d6;
        border-radius: 13px;
        font-size: 16px;
        box-shadow: inset 0 1px 2px rgba(25, 66, 67, .03);
    }

    body:not(.is-authenticated) .panel.login input::placeholder {
        color: #8b9a99;
    }

    body:not(.is-authenticated) .panel.login input:focus {
        background: #fff;
        border-color: #138476;
        box-shadow: 0 0 0 4px rgba(19, 132, 118, .12);
    }

    body:not(.is-authenticated) .login-remember {
        padding: 10px 11px;
        border-radius: 13px;
    }

    body:not(.is-authenticated) .panel.login .login-remember + button[type="submit"] {
        margin-top: 16px;
    }

    body:not(.is-authenticated) .panel.login button[type="submit"] {
        min-height: 52px;
        margin-top: 22px;
        border-radius: 13px;
        font-size: 16px;
        letter-spacing: .06em;
        box-shadow: 0 12px 24px rgba(15, 108, 120, .22);
    }

    .announcement-modal {
        align-items: end;
        padding: 12px;
    }

    .announcement-modal-window {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 16px 16px 10px 10px;
    }

    .shortcut-permission-modal {
        align-items: end;
        padding: 12px;
    }

    .shortcut-permission-window {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 18px 18px 10px 10px;
    }

    .shortcut-permission-content {
        padding: 14px;
    }

    .shortcut-permission-options > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shortcut-permission-list li {
        grid-template-columns: minmax(0, 1fr);
    }

    .shortcut-permission-row-actions {
        justify-content: flex-end;
    }

    .announcement-management-content {
        padding: 10px;
    }

    .announcement-emoji-picker {
        padding: 10px;
    }

    .announcement-emoji-picker > div:first-child {
        display: grid;
        gap: 2px;
    }

    .announcement-emoji-picker small {
        text-align: left;
    }

    .announcement-management-section {
        padding: 13px;
    }

    .announcement-management-title {
        align-items: flex-start;
    }

    .home-announcement-admin-meta {
        grid-template-columns: 1fr;
    }

    .assistant-widget {
        right: 14px;
        left: auto;
        bottom: 14px;
    }

    body.has-chat-layout .assistant-widget {
        right: 14px;
        bottom: 14px;
        left: auto;
    }

    .assistant-panel {
        right: 14px;
        bottom: 86px;
        width: min(380px, calc(100vw - 28px));
        height: min(520px, calc(100vh - 96px));
    }

    .assistant-case dl {
        grid-template-columns: 1fr;
    }

    .assistant-dashboard > div {
        grid-template-columns: 1fr;
    }

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

/* Mobile app navigation and LINE-style chat layout */
.mobile-bottom-nav {
    display: none;
}

.mobile-home-account {
    display: none;
}

.mobile-home-assistant {
    display: none;
}

.mobile-home-shortcut {
    display: none;
}

.mobile-home-shortcut-list {
    display: none;
}

.mobile-home-shortcut-wheel-toggle,
.mobile-shortcut-wheel-modal {
    display: none;
}

.mobile-home-content {
    display: none;
}

.desktop-home-panel {
    display: none;
}

.mobile-nav-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
}

.mobile-nav-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    display: inline-grid;
    min-width: 18px;
    min-height: 18px;
    padding: 1px 5px;
    place-items: center;
    color: #fff;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
}

.mobile-nav-badge.hidden {
    display: none;
}

.mobile-service-modal {
    display: none;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    body.is-authenticated {
        --topbar-height: 0px;
    }

    body.is-authenticated .topbar {
        display: none;
    }

    body.has-mobile-nav {
        --topbar-height: 0px;
        --mobile-safe-top: constant(safe-area-inset-top);
        --mobile-safe-top: env(safe-area-inset-top, 0px);
        --mobile-safe-bottom: constant(safe-area-inset-bottom);
        --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
        --mobile-nav-height: calc(66px + var(--mobile-safe-bottom, 0px));
        --mobile-announcement-height: 38px;
        padding-bottom: var(--mobile-nav-height);
    }

    body.has-mobile-nav .announcement-shell {
        position: fixed;
        top: var(--mobile-safe-top, 0px);
        right: env(safe-area-inset-right, 0px);
        left: env(safe-area-inset-left, 0px);
        z-index: 98;
        width: auto;
        height: var(--mobile-announcement-height);
        margin: 0;
    }

    body.has-mobile-nav .announcement-marquee {
        height: 100%;
        padding: 8px 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        font-size: 13px;
        line-height: 20px;
    }

    body.has-mobile-nav .topbar {
        display: none;
        position: sticky;
        top: 0;
        z-index: 90;
        align-items: center;
        flex-direction: row;
        gap: 8px;
        min-height: 56px;
        padding: 7px 12px;
        background: linear-gradient(135deg, #075f4a, #06a765);
        box-shadow: 0 3px 12px rgba(7, 95, 74, .2);
    }

    body.has-mobile-nav .brand {
        grid-template-columns: 36px minmax(0, 1fr);
        width: auto;
        flex: 1 1 auto;
        gap: 8px;
    }

    body.has-mobile-nav .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 13px;
        border-radius: 11px;
        box-shadow: none;
    }

    body.has-mobile-nav .brand-copy strong {
        max-width: calc(100vw - 72px);
        overflow: hidden;
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.has-mobile-nav .brand-copy small,
    body.has-mobile-nav .topbar-clock,
    body.has-mobile-nav .mail-menu {
        display: none;
    }

    body.has-mobile-nav .topbar-actions {
        display: none;
    }

    body.has-mobile-nav .topbar nav {
        width: auto;
        justify-content: flex-end;
        gap: 8px;
    }

    body.has-mobile-nav .profile-menu summary {
        min-height: 38px;
    }

    body.has-mobile-nav .nav-user {
        max-width: 84px;
        font-size: 12px;
    }

    body.has-mobile-nav .link-button {
        min-height: 36px;
        margin: 0;
        padding: 6px 8px;
        font-size: 12px;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: start;
        min-height: var(--mobile-nav-height);
        padding: 5px 3px var(--mobile-safe-bottom, 0px);
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid #dfe7e5;
        box-shadow: 0 -8px 24px rgba(31, 52, 49, .1);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        position: relative;
        display: grid;
        grid-template-rows: 30px auto;
        align-items: center;
        justify-items: center;
        gap: 1px;
        min-width: 0;
        min-height: 55px;
        margin: 0;
        padding: 3px 1px 2px;
        color: #6d7875;
        background: transparent;
        border: 0;
        border-radius: 10px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav a::before,
    .mobile-bottom-nav button::before {
        position: absolute;
        top: 0;
        width: 34px;
        height: 3px;
        content: "";
        background: transparent;
        border-radius: 0 0 999px 999px;
    }

    .mobile-bottom-nav svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.9;
    }

    .mobile-bottom-nav span:last-child {
        max-width: 100%;
        overflow: hidden;
        font-size: 10px;
        font-weight: 850;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-nav a.is-active,
    .mobile-bottom-nav button.is-active {
        color: #06a765;
        background: #f1fbf5;
    }

    .mobile-bottom-nav a.is-active::before,
    .mobile-bottom-nav button.is-active::before {
        background: #06c755;
    }

    .mobile-bottom-nav a:focus-visible,
    .mobile-bottom-nav button:focus-visible {
        outline: 3px solid rgba(6, 199, 85, .28);
        outline-offset: -3px;
    }

    body.has-mobile-service-modal {
        overflow: hidden;
    }

    .mobile-service-modal {
        position: fixed;
        inset: 0;
        z-index: 1350;
        display: grid;
        align-items: end;
        justify-items: center;
        padding: 18px 14px max(18px, env(safe-area-inset-bottom));
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    .mobile-service-modal[hidden] {
        display: none;
    }

    .mobile-service-modal.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-service-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        background: rgba(12, 31, 27, .52);
        border: 0;
        border-radius: 0;
        backdrop-filter: blur(3px);
    }

    .mobile-service-window {
        position: relative;
        z-index: 1;
        width: min(100%, 520px);
        overflow: hidden;
        background: #fff;
        border: 1px solid rgba(205, 221, 217, .9);
        border-radius: 22px;
        box-shadow: 0 24px 65px rgba(13, 43, 36, .3);
        transform: translateY(24px) scale(.985);
        transition: transform .2s ease;
    }

    .mobile-service-modal.is-open .mobile-service-window {
        transform: translateY(0) scale(1);
    }

    .mobile-service-window > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 17px 18px 14px;
        background: linear-gradient(135deg, #075f4a, #078e70);
    }

    .mobile-service-window > header > div {
        display: grid;
        gap: 1px;
    }

    .mobile-service-window > header span {
        color: rgba(255, 255, 255, .74);
        font-size: 10px;
        font-weight: 850;
        letter-spacing: .1em;
    }

    .mobile-service-window > header strong {
        color: #fff;
        font-size: 18px;
        line-height: 1.25;
    }

    .mobile-service-window > header > button {
        display: inline-grid;
        width: 38px;
        min-height: 38px;
        margin: 0;
        padding: 0;
        place-items: center;
        color: #fff;
        background: rgba(255, 255, 255, .14);
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 12px;
    }

    .mobile-service-window > header > button svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

    .mobile-service-options {
        display: grid;
        gap: 11px;
        padding: 16px;
        background: #f5f9f8;
    }

    .mobile-service-options > a {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 22px;
        align-items: center;
        gap: 12px;
        min-width: 0;
        padding: 14px;
        color: #25453d;
        background: #fff;
        border: 1px solid #dbe8e4;
        border-radius: 16px;
        box-shadow: 0 5px 14px rgba(20, 57, 48, .07);
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-service-options > a:active {
        background: #eef8f3;
        border-color: #9fcfbe;
        transform: scale(.99);
    }

    .mobile-service-option-icon {
        display: inline-grid;
        width: 48px;
        height: 48px;
        place-items: center;
        color: #fff;
        border-radius: 15px;
    }

    .mobile-service-option-icon.it {
        background: linear-gradient(135deg, #087c7f, #12a7a0);
        box-shadow: 0 7px 16px rgba(8, 124, 127, .2);
    }

    .mobile-service-option-icon.instrument {
        background: linear-gradient(135deg, #e57724, #f2a43e);
        box-shadow: 0 7px 16px rgba(226, 115, 30, .22);
    }

    .mobile-service-option-icon svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-service-option-copy {
        display: grid;
        min-width: 0;
        gap: 3px;
    }

    .mobile-service-option-copy strong {
        font-size: 16px;
        line-height: 1.25;
    }

    .mobile-service-option-copy small {
        overflow: hidden;
        color: #71827d;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-service-option-arrow {
        width: 21px;
        height: 21px;
        fill: none;
        color: #93a7a1;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-mail-loading-screen {
        position: fixed;
        inset: 0 0 var(--mobile-nav-height) 0;
        z-index: 99;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        padding-top: var(--mobile-safe-top, 0px);
        color: #173b34;
        background: #fff;
    }

    .mobile-mail-loading-screen > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 72px;
        padding: 12px 16px;
        border-bottom: 1px solid #dfe7e5;
        box-shadow: 0 4px 12px rgba(33, 65, 58, .06);
    }

    .mobile-mail-loading-screen > header div {
        display: grid;
        gap: 2px;
    }

    .mobile-mail-loading-screen > header span {
        color: #71817d;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .mobile-mail-loading-screen > header strong {
        font-size: 20px;
    }

    .mobile-mail-loading-screen > header em {
        padding: 7px 10px;
        color: #087f68;
        background: #eaf8f3;
        border-radius: 999px;
        font-size: 12px;
        font-style: normal;
        font-weight: 900;
    }

    .mobile-mail-loading-content,
    .mobile-calendar-loading-content {
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 10px;
        min-height: 0;
        padding: 24px;
        color: #5e716c;
        text-align: center;
    }

    .mobile-mail-loading-content i,
    .mobile-calendar-loading-content i {
        width: 42px;
        height: 42px;
        margin-bottom: 4px;
        border: 4px solid #d7ece5;
        border-top-color: #06a765;
        border-radius: 50%;
        animation: mobile-mail-loading-spin .8s linear infinite;
    }

    .mobile-mail-loading-content strong,
    .mobile-calendar-loading-content strong {
        color: #244b42;
        font-size: 16px;
    }

    .mobile-mail-loading-content span,
    .mobile-calendar-loading-content span {
        font-size: 12px;
        font-weight: 700;
    }

    body.has-mobile-chat-app .calendar-board.is-mobile-calendar-loading {
        position: relative;
        overflow: hidden;
    }

    .mobile-calendar-loading-screen {
        position: absolute;
        inset: 0;
        z-index: 30;
        display: grid;
        min-height: 100%;
        color: #173b34;
        background: #fff;
    }

    @keyframes mobile-mail-loading-spin {
        to {
            transform: rotate(360deg);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .mobile-mail-loading-content i,
        .mobile-calendar-loading-content i {
            animation-duration: 1.8s;
        }
    }

    body.has-mobile-chat-app {
        height: 100vh;
        height: 100dvh;
        padding-bottom: 0;
        overflow: hidden;
        background: #dbe9ed;
    }

    body.has-mobile-chat-app .shell,
    body.has-mobile-chat-app.has-chat-layout .shell {
        position: fixed;
        inset: 0 0 var(--mobile-nav-height) 0;
        width: 100%;
        height: auto;
        margin: 0;
        padding: var(--mobile-safe-top, 0px) 0 0;
        overflow: hidden;
        background: #fff;
    }

    body.has-mobile-chat-app .chat-layout {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    body.has-mobile-chat-app .environment-board,
    body.has-mobile-chat-app .user-list,
    body.has-mobile-chat-app .conversation,
    body.has-mobile-chat-app .calendar-board {
        display: none;
        width: 100%;
        height: 100%;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.has-mobile-chat-app[data-mobile-view="chat"] .conversation {
        display: grid;
        height: 100%;
    }

    body.has-mobile-chat-app[data-mobile-view="home"] .mobile-home-account {
        position: relative;
        z-index: 12;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        height: 76px;
        padding: 9px 12px;
        color: #173b34;
        background: #fff;
        border-bottom: 1px solid #d7e3e0;
        box-shadow: 0 4px 12px rgba(33, 65, 58, .06);
    }

    body.has-mobile-chat-app[data-mobile-view="home"] .mobile-home-content {
        position: relative;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        height: calc(100% - 76px);
        min-height: 0;
        overflow: hidden;
        background: #edf3f2;
    }

    .mobile-home-switcher {
        position: relative;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 52px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, .98);
        border-bottom: 1px solid #dbe5e2;
        box-shadow: 0 4px 12px rgba(36, 62, 56, .05);
    }

    .mobile-home-switcher > div {
        display: inline-grid;
        grid-template-columns: repeat(2, minmax(88px, 1fr));
        gap: 3px;
        padding: 3px;
        background: #eef3f1;
        border-radius: 12px;
    }

    .mobile-home-switcher button {
        min-height: 32px;
        margin: 0;
        padding: 6px 12px;
        color: #667773;
        background: transparent;
        border: 0;
        border-radius: 9px;
        font-size: 13px;
        font-weight: 900;
    }

    .mobile-home-switcher button.is-active {
        color: #057a4b;
        background: #fff;
        box-shadow: 0 3px 9px rgba(30, 68, 58, .11);
    }

    .mobile-home-switcher > small {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        color: #71827e;
        font-size: 10px;
        font-weight: 850;
        white-space: nowrap;
    }

    .mobile-home-switcher > small svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: #06a765;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .mobile-home-pager {
        display: flex;
        width: 100%;
        min-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }

    .mobile-home-pager::-webkit-scrollbar {
        display: none;
    }

    .mobile-home-pager:focus-visible {
        outline: 3px solid rgba(6, 199, 85, .28);
        outline-offset: -3px;
    }

    .mobile-home-slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        height: 100%;
        padding: 14px 12px 24px;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .mobile-home-section-heading {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .mobile-home-section-heading > div {
        min-width: 0;
    }

    .mobile-home-section-heading small {
        display: block;
        color: #71827e;
        font-size: 9px;
        font-weight: 950;
        letter-spacing: .1em;
    }

    .mobile-home-section-heading h2 {
        margin: 1px 0 0;
        color: #183a34;
        font-size: 20px;
        line-height: 1.2;
    }

    .mobile-home-section-heading > em {
        padding: 5px 9px;
        color: #08794d;
        background: #e5f7ed;
        border-radius: 999px;
        font-size: 11px;
        font-style: normal;
        font-weight: 900;
    }

    .mobile-home-section-icon {
        display: inline-grid;
        width: 42px;
        height: 42px;
        place-items: center;
        color: #fff;
        border-radius: 13px;
        box-shadow: 0 7px 16px rgba(37, 77, 67, .14);
    }

    .mobile-home-section-icon.announcement {
        background: linear-gradient(135deg, #06a765, #06c755);
    }

    .mobile-home-section-icon.news {
        background: linear-gradient(135deg, #176b87, #2995a7);
    }

    .mobile-home-section-icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.9;
    }

    .mobile-announcement-list,
    .mobile-news-list {
        display: grid;
        gap: 10px;
    }

    .mobile-announcement-item {
        position: relative;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 13px 14px 14px;
        overflow: hidden;
        color: inherit;
        background: #fff;
        border: 1px solid #dbe5e2;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(38, 65, 59, .06);
        font: inherit;
        text-align: left;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-announcement-item:hover,
    .mobile-announcement-item:active {
        background: #f5fbf8;
    }

    .mobile-announcement-item:focus-visible {
        outline: 3px solid rgba(6, 167, 101, .28);
        outline-offset: -3px;
    }

    .mobile-announcement-item::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        content: "";
        background: #98aaa5;
    }

    .mobile-announcement-item.is-new::before {
        background: #06c755;
    }

    .mobile-announcement-item.is-important::before {
        background: #ef8c2f;
    }

    .mobile-announcement-item header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 6px;
    }

    .mobile-announcement-item header span {
        color: #07804f;
        font-size: 11px;
        font-weight: 950;
    }

    .mobile-announcement-item header time {
        color: #899793;
        font-size: 10px;
        font-weight: 750;
    }

    .mobile-announcement-item h3 {
        display: -webkit-box;
        margin: 0 0 5px;
        overflow: hidden;
        color: #243f39;
        font-size: 15px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .mobile-announcement-item p {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: #63746f;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.6;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .mobile-announcement-more {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        margin-top: 8px;
        color: #08794d;
        font-size: 11px;
        font-weight: 900;
    }

    .mobile-announcement-more svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .mobile-home-section-heading > button {
        display: inline-grid;
        width: 34px;
        min-width: 34px;
        min-height: 34px;
        margin: 0;
        padding: 0;
        place-items: center;
        color: #176b87;
        background: #e6f3f6;
        border: 1px solid #c2dde3;
        border-radius: 10px;
    }

    .mobile-home-section-heading > button svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .mobile-home-section-heading > button.is-loading svg {
        animation: mobile-news-spin .8s linear infinite;
    }

    @keyframes mobile-news-spin {
        to {
            transform: rotate(360deg);
        }
    }

    .mobile-news-loading,
    .mobile-news-error {
        display: grid;
        gap: 8px;
        padding: 18px;
        background: #fff;
        border: 1px solid #dbe5e2;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(38, 65, 59, .06);
    }

    .mobile-news-loading {
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
    }

    .mobile-news-loading > span {
        width: 28px;
        height: 28px;
        border: 3px solid #d6e7e2;
        border-top-color: #06a765;
        border-radius: 50%;
        animation: mobile-news-spin .8s linear infinite;
    }

    .mobile-news-loading strong,
    .mobile-news-loading small {
        display: block;
    }

    .mobile-news-loading strong {
        color: #27453e;
        font-size: 14px;
    }

    .mobile-news-loading small {
        margin-top: 2px;
        color: #75847f;
        font-size: 11px;
    }

    .mobile-news-item {
        position: relative;
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr) 16px;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 94px;
        margin: 0;
        padding: 9px 10px;
        color: inherit;
        background: #fff;
        border: 1px solid #dbe5e2;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(38, 65, 59, .06);
        font: inherit;
        text-align: left;
        text-decoration: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-news-item:active {
        background: #f2faf6;
        transform: scale(.995);
    }

    .mobile-news-image {
        display: grid;
        width: 86px;
        height: 70px;
        place-items: center;
        overflow: hidden;
        color: #fff;
        background: linear-gradient(135deg, #176b87, #2995a7);
        border-radius: 10px;
    }

    .mobile-news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-news-image.is-placeholder svg {
        width: 29px;
        height: 29px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .mobile-news-copy {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .mobile-news-copy > small {
        overflow: hidden;
        color: #16805b;
        font-size: 10px;
        font-weight: 850;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-news-copy > strong {
        display: -webkit-box;
        overflow: hidden;
        color: #243f39;
        font-size: 14px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .mobile-news-copy > span {
        display: -webkit-box;
        overflow: hidden;
        color: #6b7a76;
        font-size: 11px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .mobile-news-arrow {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: #93a39f;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .mobile-news-footer {
        display: grid;
        gap: 7px;
        justify-items: center;
        padding: 15px 6px 4px;
        text-align: center;
    }

    .mobile-news-load-more {
        display: inline-flex;
        min-height: 30px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 6px 11px;
        color: #08794d;
        background: #e7f6ed;
        border-radius: 999px;
    }

    .mobile-news-load-more > span {
        width: 7px;
        height: 7px;
        flex: 0 0 auto;
        background: #14a46b;
        border-radius: 50%;
    }

    .mobile-news-load-more > strong {
        font-size: 11px;
        font-weight: 900;
    }

    .mobile-news-load-more.is-loading > span {
        width: 16px;
        height: 16px;
        background: transparent;
        border: 2px solid #b7ded0;
        border-top-color: #08794d;
        animation: mobile-news-spin .8s linear infinite;
    }

    .mobile-news-load-more.is-complete {
        color: #71817d;
        background: #e5ecea;
    }

    .mobile-news-load-more.is-complete > span {
        background: #8ba09a;
    }

    .mobile-news-footer small,
    .mobile-news-error span {
        color: #788783;
        font-size: 10px;
    }

    .mobile-news-footer small[data-kind="error"] {
        color: #b33d3d;
    }

    .mobile-news-reader {
        position: absolute;
        inset: 0;
        z-index: 20;
        display: grid;
        grid-template-rows: 56px minmax(0, 1fr);
        min-width: 0;
        min-height: 0;
        background: #edf3f2;
    }

    .mobile-news-reader[hidden],
    .mobile-news-reader figure[hidden] {
        display: none !important;
    }

    .mobile-news-reader > header {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        align-items: center;
        gap: 8px;
        min-height: 56px;
        padding: 7px 10px;
        color: #fff;
        background: linear-gradient(135deg, #075f4a, #0b8d6a);
        box-shadow: 0 4px 14px rgba(22, 64, 54, .18);
    }

    .mobile-news-reader > header > button {
        display: inline-grid;
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        margin: 0;
        padding: 0;
        place-items: center;
        color: #fff;
        background: rgba(255, 255, 255, .13);
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 12px;
    }

    .mobile-news-reader > header > button svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2.2;
    }

    .mobile-news-reader > header > strong {
        grid-column: 2;
        overflow: hidden;
        font-size: 16px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-news-reader-scroll {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-news-reader figure {
        display: grid;
        min-height: 190px;
        margin: 0;
        place-items: center;
        overflow: hidden;
        background: #dbe8e5;
        border-bottom: 1px solid #cadbd6;
    }

    .mobile-news-reader figure img {
        display: block;
        width: 100%;
        max-height: 320px;
        object-fit: contain;
    }

    .mobile-news-reader article {
        padding: 20px 18px 34px;
        background: #fff;
    }

    .mobile-news-reader article > p {
        margin: 0 0 8px;
        color: #16805b;
        font-size: 11px;
        font-weight: 850;
    }

    .mobile-news-reader article > h2 {
        margin: 0 0 18px;
        color: #183a34;
        font-size: 21px;
        line-height: 1.45;
    }

    .mobile-news-reader article > div {
        color: #425b55;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.9;
        overflow-wrap: anywhere;
        white-space: pre-line;
    }

    .mobile-news-reader.is-announcement article > div {
        font-size: 16px;
    }

    body.has-mobile-chat-app .mobile-home-account-label {
        display: grid;
        flex: 0 0 auto;
        gap: 1px;
    }

    body.has-mobile-chat-app .mobile-home-account-label small {
        color: #06a765;
        font-size: 10px;
        font-weight: 950;
        letter-spacing: .08em;
    }

    body.has-mobile-chat-app .mobile-home-account-label strong {
        font-size: 14px;
        white-space: nowrap;
    }

    body.has-mobile-chat-app .mobile-home-account-actions {
        display: flex;
        flex: 1 1 96px;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        min-width: 0;
    }

    body.has-mobile-chat-app .mobile-home-shortcut-wheel-toggle {
        display: inline-grid;
        flex: 0 0 50px;
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
        margin: 0;
        padding: 8px;
        place-items: center;
        color: #24628a;
        background: linear-gradient(145deg, #eff8ff, #e4f1fb);
        border: 1px solid #bfd9eb;
        border-radius: 15px;
        box-shadow: 0 5px 14px rgba(31, 88, 126, .13);
        -webkit-tap-highlight-color: transparent;
    }

    body.has-mobile-chat-app .mobile-home-shortcut-wheel-toggle svg {
        width: 31px;
        height: 31px;
        overflow: visible;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
        transition: transform .32s ease;
    }

    body.has-mobile-chat-app .mobile-home-shortcut-wheel-toggle[aria-expanded="true"] {
        color: #fff;
        background: linear-gradient(145deg, #1b7794, #235c88);
        border-color: rgba(255, 255, 255, .55);
    }

    body.has-mobile-chat-app .mobile-home-shortcut-wheel-toggle[aria-expanded="true"] svg {
        transform: rotate(72deg);
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-modal {
        position: fixed;
        inset: 0 0 var(--mobile-nav-height) 0;
        z-index: 1400;
        display: grid;
        padding:
            max(16px, var(--mobile-safe-top, 0px))
            12px
            16px;
        place-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-modal[hidden] {
        display: none;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-modal.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        background: rgba(11, 31, 38, .58);
        border: 0;
        border-radius: 0;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel {
        position: relative;
        z-index: 1;
        width: min(318px, calc(100vw - 24px));
        aspect-ratio: 1;
        border: 1px solid rgba(255, 255, 255, .4);
        border-radius: 50%;
        box-shadow:
            inset 0 0 0 12px rgba(255, 255, 255, .06),
            0 26px 70px rgba(5, 25, 31, .38);
        transform: scale(.82) rotate(-8deg);
        transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel::before,
    body.has-mobile-chat-app .mobile-shortcut-wheel::after {
        position: absolute;
        inset: 47px;
        content: "";
        pointer-events: none;
        border: 1px dashed rgba(255, 255, 255, .34);
        border-radius: 50%;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel::after {
        inset: 77px;
        border-style: solid;
        border-color: rgba(255, 255, 255, .16);
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-modal.is-open .mobile-shortcut-wheel {
        transform: scale(1) rotate(0);
    }

    body.has-mobile-chat-app .mobile-home-shortcut {
        position: absolute;
        z-index: 2;
        display: grid;
        grid-template-rows: 52px auto;
        justify-items: center;
        gap: 4px;
        width: 84px;
        margin: 0;
        padding: 0;
        color: #27648b;
        background: transparent;
        border: 0;
        border-radius: 16px;
        opacity: 0;
        text-align: center;
        text-decoration: none;
        transform: scale(.4);
        transition:
            opacity .22s ease,
            transform .3s cubic-bezier(.2, .85, .25, 1.2);
        -webkit-tap-highlight-color: transparent;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-modal.is-open .mobile-home-shortcut {
        opacity: 1;
        transform: scale(1);
    }

    body.has-mobile-chat-app .mobile-home-shortcut > span {
        display: grid;
        width: 52px;
        height: 52px;
        place-items: center;
        background: #edf7ff;
        border: 1px solid #c7dff0;
        border-radius: 17px;
        box-shadow: 0 8px 20px rgba(7, 31, 38, .24);
    }

    body.has-mobile-chat-app .mobile-home-shortcut strong {
        max-width: 84px;
        padding: 3px 7px;
        overflow: hidden;
        color: #fff;
        background: rgba(10, 37, 45, .7);
        border-radius: 999px;
        font-size: 10px;
        font-weight: 900;
        line-height: 1.25;
        text-overflow: ellipsis;
        text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
        white-space: nowrap;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-access-audit {
        color: #14744d;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-access-audit > span {
        background: #ebf9f1;
        border-color: #bfe3ce;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-security-center {
        color: #a54343;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-security-center > span {
        background: #fff0f0;
        border-color: #edc6c6;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-lims-online {
        color: #8a6812;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-lims-online > span {
        background: #fff8d8;
        border-color: #ebd47e;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-asset-hub {
        color: #6d43a7;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-asset-hub > span {
        background: #f5efff;
        border-color: #d8c3f1;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-asset-map {
        color: #a26019;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-asset-map > span {
        background: #fff6e9;
        border-color: #efd4ad;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-ezcat {
        color: #17191c;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-ezcat > span {
        overflow: hidden;
        background: #f4f5f6;
        border-color: #d4d8dc;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-ezcat img {
        display: block;
        width: 50px;
        height: 42px;
        object-fit: contain;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-it-notice {
        color: #176f82;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.is-it-notice > span {
        background: #eaf8fb;
        border-color: #b9dfe7;
    }

    body.has-mobile-chat-app .mobile-home-shortcut svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.wheel-slot-1 {
        top: 0;
        left: calc(50% - 42px);
        transition-delay: .02s;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.wheel-slot-2 {
        top: 13%;
        right: 5%;
        transition-delay: .06s;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.wheel-slot-3 {
        top: 43%;
        right: -2%;
        transition-delay: .1s;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.wheel-slot-4 {
        right: 19%;
        bottom: 1%;
        transition-delay: .14s;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.wheel-slot-5 {
        bottom: 1%;
        left: 19%;
        transition-delay: .18s;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.wheel-slot-6 {
        top: 43%;
        left: -2%;
        transition-delay: .22s;
    }

    body.has-mobile-chat-app .mobile-home-shortcut.wheel-slot-7 {
        top: 13%;
        left: 5%;
        transition-delay: .26s;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel[data-shortcut-count="3"] .mobile-home-shortcut:nth-of-type(1) {
        top: 1%;
        right: auto;
        bottom: auto;
        left: calc(50% - 42px);
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel[data-shortcut-count="3"] .mobile-home-shortcut:nth-of-type(2) {
        top: auto;
        right: 6%;
        bottom: 7%;
        left: auto;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel[data-shortcut-count="3"] .mobile-home-shortcut:nth-of-type(3) {
        top: auto;
        right: auto;
        bottom: 7%;
        left: 6%;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel[data-shortcut-count="4"] .mobile-home-shortcut:nth-of-type(1) {
        top: 1%;
        right: auto;
        bottom: auto;
        left: calc(50% - 42px);
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel[data-shortcut-count="4"] .mobile-home-shortcut:nth-of-type(2) {
        top: calc(50% - 33px);
        right: -2%;
        bottom: auto;
        left: auto;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel[data-shortcut-count="4"] .mobile-home-shortcut:nth-of-type(3) {
        top: auto;
        right: auto;
        bottom: 1%;
        left: calc(50% - 42px);
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel[data-shortcut-count="4"] .mobile-home-shortcut:nth-of-type(4) {
        top: calc(50% - 33px);
        right: auto;
        bottom: auto;
        left: -2%;
    }

    body.has-mobile-chat-app .mobile-home-shortcut:active {
        filter: brightness(.94);
    }

    body.has-mobile-chat-app .mobile-home-shortcut:focus-visible,
    body.has-mobile-chat-app .mobile-home-shortcut-wheel-toggle:focus-visible,
    body.has-mobile-chat-app .mobile-shortcut-wheel-center:focus-visible {
        outline: 3px solid rgba(255, 255, 255, .75);
        outline-offset: 3px;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-center {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 3;
        display: grid;
        width: 82px;
        min-width: 82px;
        height: 82px;
        min-height: 82px;
        margin: 0;
        padding: 10px;
        place-items: center;
        color: #fff;
        background: linear-gradient(145deg, #147e91, #174d75);
        border: 5px solid rgba(255, 255, 255, .82);
        border-radius: 50%;
        box-shadow: 0 12px 30px rgba(5, 28, 38, .35);
        transform: translate(-50%, -50%);
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-center svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 2;
    }

    body.has-mobile-chat-app .mobile-shortcut-wheel-center span {
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
    }

    body.has-mobile-shortcut-wheel {
        overflow: hidden;
    }

    body.has-mobile-chat-app .mobile-home-assistant {
        display: inline-grid;
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
        margin: 0;
        padding: 4px;
        place-items: center;
        color: #08794d;
        background: #eefaf3;
        border: 1px solid #cce7d8;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(20, 92, 64, .1);
        -webkit-tap-highlight-color: transparent;
    }

    body.has-mobile-chat-app .mobile-home-assistant img {
        display: block;
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    body.has-mobile-chat-app .mobile-home-assistant:active {
        background: #dcf5e6;
        transform: scale(.97);
    }

    @media (max-width: 360px) {
        body.has-mobile-chat-app .mobile-home-account-actions {
            flex: 0 0 56px;
        }

        body.has-mobile-chat-app .mobile-home-account-actions .nav-user {
            display: none;
        }

        body.has-mobile-chat-app .mobile-home-assistant {
            width: 46px;
            min-width: 46px;
            height: 46px;
            min-height: 46px;
        }

        body.has-mobile-chat-app .mobile-home-assistant img {
            width: 37px;
            height: 37px;
        }
    }

    body.has-mobile-chat-app .mobile-home-account-actions .profile-menu {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    body.has-mobile-chat-app .mobile-home-account-actions .profile-menu summary {
        min-height: 50px;
        padding: 3px 6px;
        border-radius: 12px;
    }

    body.has-mobile-chat-app .mobile-home-account-actions .profile-menu summary:hover {
        background: #f0faf4;
    }

    body.has-mobile-chat-app .mobile-home-account-actions .nav-avatar {
        width: 44px;
        height: 44px;
        background: #edf5f3;
        border-color: #cbded9;
    }

    body.has-mobile-chat-app .mobile-home-account-actions .nav-user {
        display: grid;
        max-width: 112px;
        color: #25423d;
        font-size: 13px;
    }

    body.has-mobile-chat-app .mobile-home-account-actions .nav-status {
        color: #67807a;
        font-size: 10px;
    }

    body.has-mobile-chat-app .mobile-home-account-actions .profile-panel {
        top: calc(100% + 6px);
        right: auto;
        left: 0;
        width: min(300px, calc(100vw - 24px));
        border-radius: 14px;
        box-shadow: 0 18px 46px rgba(29, 57, 51, .2);
    }

    body.has-mobile-chat-app .mobile-home-account-actions [data-mobile-account-logout] {
        display: block;
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e1e8e6;
    }

    body.has-mobile-chat-app .mobile-home-account-actions .link-button {
        width: 100%;
        min-height: 38px;
        margin: 0;
        padding: 7px 11px;
        color: #9b3535;
        background: #fff4f4;
        border: 1px solid #efcaca;
        border-radius: 11px;
        font-size: 12px;
    }

    body.has-mobile-chat-app .mobile-home-account-actions .link-button:hover {
        color: #fff;
        background: #b33d3d;
        border-color: #b33d3d;
    }

    body.has-mobile-chat-app[data-mobile-view="users"] .user-list,
    body.has-mobile-chat-app[data-mobile-view="groups"] .user-list {
        display: block;
    }

    body.has-mobile-chat-app[data-mobile-view="calendar"] .calendar-board {
        display: grid;
    }

    body.has-mobile-chat-app .user-list {
        position: static;
        overflow-x: hidden;
        overflow-y: auto;
        background: #f5f7f7;
    }

    body.has-mobile-chat-app .user-list.is-collapsed::after,
    body.has-mobile-chat-app .calendar-board.is-collapsed::after,
    body.has-mobile-chat-app .panel-collapse-toggle {
        display: none;
    }

    body.has-mobile-chat-app .user-list.is-collapsed > *,
    body.has-mobile-chat-app .calendar-board.is-collapsed > * {
        display: revert;
    }

    body.has-mobile-chat-app[data-mobile-view="users"] .room-section-head,
    body.has-mobile-chat-app[data-mobile-view="users"] [data-room-section-body] {
        display: none !important;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .list-head.secondary,
    body.has-mobile-chat-app[data-mobile-view="groups"] .user-items {
        display: none !important;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .user-list {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-section-head {
        flex: 0 0 auto;
        order: 0;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] [data-room-section-toggle] {
        display: none !important;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .mobile-group-switcher {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        order: 1;
        min-height: 48px;
        padding: 7px 12px;
        background: #fff;
        border-bottom: 1px solid #dce5e3;
    }

    body.has-mobile-chat-app .mobile-group-switcher > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        flex: 1 1 auto;
        min-width: 0;
        padding: 3px;
        background: #eef3f2;
        border-radius: 10px;
    }

    body.has-mobile-chat-app .mobile-group-switcher button {
        min-height: 32px;
        padding: 5px 10px;
        color: #526d66;
        background: transparent;
        border: 0;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 800;
    }

    body.has-mobile-chat-app .mobile-group-switcher button.is-active {
        color: #087f4f;
        background: #fff;
        box-shadow: 0 1px 4px rgba(24, 67, 55, .12);
    }

    body.has-mobile-chat-app .mobile-group-switcher small {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 3px;
        color: var(--muted);
        font-size: 0;
        white-space: nowrap;
    }

    body.has-mobile-chat-app .mobile-group-switcher svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .mobile-group-pager {
        display: flex;
        flex: 1 1 auto;
        order: 2;
        width: 100%;
        min-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
        background: #f5f7f7;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    body.has-mobile-chat-app .mobile-group-pager::-webkit-scrollbar {
        display: none;
    }

    body.has-mobile-chat-app .mobile-group-slide {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.has-mobile-chat-app .list-head {
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 54px;
        padding: 13px 16px;
        background: #fff;
    }

    body.has-mobile-chat-app .list-head h1 {
        font-size: 19px;
    }

    body.has-mobile-chat-app .user-list-search input {
        font-size: 16px;
    }

    body.has-mobile-chat-app .room-items,
    body.has-mobile-chat-app .user-items,
    body.has-mobile-chat-app.is-room-section-collapsed .user-items {
        max-height: none;
        overflow: visible;
    }

    body.has-mobile-chat-app .room-item,
    body.has-mobile-chat-app .user-item {
        min-height: 68px;
        padding: 11px 16px;
        background: #fff;
    }

    body.has-mobile-chat-app .room-item.active,
    body.has-mobile-chat-app .user-item.active {
        background: #eaf9f0;
        box-shadow: inset 4px 0 #06c755;
    }

    body.has-mobile-chat-app .room-create {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        min-width: 0;
        margin: 10px 12px 18px;
        padding: 0;
        overflow: visible;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(30, 61, 55, .08);
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create > summary {
        display: none;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        overflow: visible;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .mobile-group-create-heading {
        position: sticky;
        top: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 64px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px 12px;
        background: rgba(255, 255, 255, .97);
        border-bottom: 1px solid #e1e9e7;
        border-radius: 12px 12px 0 0;
    }

    body.has-mobile-chat-app .mobile-group-create-heading > span {
        display: grid;
        min-width: 0;
    }

    body.has-mobile-chat-app .mobile-group-create-heading strong {
        color: #243d37;
        font-size: 15px;
    }

    body.has-mobile-chat-app .mobile-group-create-heading small {
        margin-top: 2px;
        color: var(--muted);
        font-size: 12px;
    }

    body.has-mobile-chat-app .mobile-group-create-heading button {
        width: auto;
        min-width: 72px;
        min-height: 38px;
        margin: 0;
        padding: 7px 16px;
        background: #06c755;
        border-radius: 999px;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .room-name-field,
    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-picker-label,
    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .room-create-submit {
        display: none;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-picker-search {
        position: sticky;
        top: 64px;
        z-index: 2;
        margin: 0;
        padding: 8px 10px;
        background: rgba(255, 255, 255, .97);
        border-bottom: 1px solid #e7eeec;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-picker-search input {
        min-height: 42px;
        font-size: 16px;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-search-empty {
        margin: 0;
        padding: 9px 12px;
        background: #fff;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-picker {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 0;
        padding: 0 10px;
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-option {
        grid-template-columns: 24px 38px minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 62px;
        padding: 9px 4px;
        background: #fff;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-option > span {
        min-width: 0;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-option strong,
    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-option small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-option input {
        width: 20px;
        height: 20px;
        margin: 0;
        accent-color: #06c755;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-avatar {
        width: 38px;
        height: 38px;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-option strong {
        font-size: 14px;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-option small,
    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-option em {
        font-size: 11px;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .room-create .member-picker-status {
        min-height: 24px;
        margin: 0;
        padding: 4px 14px 7px;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .mobile-group-list-heading {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 10px 16px;
        color: #38554e;
        background: #edf2f1;
        border-top: 1px solid #dce5e3;
        border-bottom: 1px solid #dce5e3;
        font-size: 13px;
    }

    body.has-mobile-chat-app[data-mobile-view="groups"] .mobile-group-list-heading span {
        color: var(--muted);
        font-size: 12px;
    }

    body.has-mobile-chat-app .mobile-group-name-modal {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: grid;
        place-items: center;
        padding:
            max(18px, env(safe-area-inset-top))
            18px
            max(18px, env(safe-area-inset-bottom));
    }

    body.has-mobile-chat-app .mobile-group-name-modal[hidden] {
        display: none;
    }

    body.has-mobile-chat-app .mobile-group-name-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        background: rgba(16, 31, 28, .46);
        border: 0;
        border-radius: 0;
    }

    body.has-mobile-chat-app .mobile-group-name-modal > section {
        position: relative;
        z-index: 1;
        width: min(100%, 360px);
        padding: 20px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(18, 43, 37, .22);
    }

    body.has-mobile-chat-app .mobile-group-name-modal h2 {
        margin: 0;
        color: #203e36;
        font-size: 20px;
    }

    body.has-mobile-chat-app .mobile-group-name-modal > section > p {
        margin: 6px 0 16px;
        color: var(--muted);
        font-size: 13px;
    }

    body.has-mobile-chat-app .mobile-group-name-modal label {
        display: block;
        margin-bottom: 6px;
        color: #38554e;
        font-size: 13px;
        font-weight: 800;
    }

    body.has-mobile-chat-app .mobile-group-name-modal input {
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        font-size: 16px;
        border: 1px solid #b9cbc7;
        border-radius: 10px;
    }

    body.has-mobile-chat-app .mobile-group-name-modal .mobile-group-name-error {
        min-height: 20px;
        margin: 5px 0;
        color: var(--danger);
        font-size: 12px;
    }

    body.has-mobile-chat-app .mobile-group-name-modal > section > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body.has-mobile-chat-app .mobile-group-name-modal > section > div button {
        width: 100%;
        min-height: 42px;
        margin: 0;
    }

    body.has-mobile-chat-app .room-delete {
        flex: 0 0 auto;
    }

    body.has-mobile-chat-app .conversation {
        grid-template-rows: auto minmax(0, 1fr) auto;
        background: #dbe9ed;
    }

    body.has-mobile-chat-app .conversation-head {
        min-height: 52px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, .96);
        border-bottom-color: #d6e1df;
    }

    body.has-mobile-chat-app .conversation-head.direct-head {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 9px;
        min-height: 50px;
        padding: 7px 12px;
    }

    body.has-mobile-chat-app .conversation-head.direct-head .conversation-avatar {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }

    body.has-mobile-chat-app .conversation-head.direct-head > div {
        display: flex;
        flex: 1 1 auto;
        align-items: baseline;
        gap: 7px;
        min-width: 0;
        overflow: hidden;
    }

    body.has-mobile-chat-app .conversation-head.direct-head > div > p:last-child {
        min-width: 0;
        overflow: hidden;
        color: var(--muted);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.has-mobile-chat-app .conversation-head h2,
    body.has-mobile-chat-app .conversation-head.direct-head h2,
    body.has-mobile-chat-app .conversation-head.room-head h2 {
        font-size: 17px;
    }

    body.has-mobile-chat-app .messages {
        gap: 10px;
        padding: 14px 11px 18px;
        background-color: #f6f1e5;
        background-image:
            linear-gradient(rgba(255, 253, 247, .32), rgba(248, 246, 238, .32)),
            url("mid-autumn-chat-background.webp");
        background-position: center, center;
        background-size: auto, 100% 100%;
        background-repeat: no-repeat;
    }

    body.has-mobile-chat-app .message-row {
        gap: 7px;
    }

    body.has-mobile-chat-app .message-avatar {
        width: 32px;
        height: 32px;
    }

    body.has-mobile-chat-app .message-row .bubble {
        max-width: min(78vw, 540px);
        border-radius: 18px 18px 18px 8px;
        box-shadow: 0 1px 2px rgba(40, 61, 57, .1);
    }

    body.has-mobile-chat-app .message-row.mine .bubble {
        --message-bubble-surface: rgba(207, 240, 219, .8);
        background: var(--message-bubble-surface);
        border-color: rgba(73, 146, 100, .4);
        border-radius: 18px 18px 8px 18px;
    }

    body.has-mobile-chat-app .message-row.theirs .bubble {
        --message-bubble-surface: rgba(255, 253, 247, .8);
        background: var(--message-bubble-surface);
        border-color: rgba(255, 255, 255, .86);
    }

    body.has-mobile-chat-app .composer {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 5px;
        padding: 6px 7px;
        background: rgba(255, 255, 255, .98);
        border-top-color: #d8e2e0;
    }

    body.has-mobile-chat-app .composer textarea {
        grid-column: 2;
        grid-row: 1;
        height: 38px;
        min-height: 38px;
        max-height: 82px;
        padding: 7px 11px;
        overflow-y: auto;
        font-size: 16px;
        line-height: 22px;
        resize: none;
        background: #f3f5f5;
        border-color: #d8dfde;
        border-radius: 16px;
    }

    body.has-mobile-chat-app .composer-tools {
        position: relative;
        grid-column: 1;
        grid-row: 1;
        gap: 2px;
        align-self: center;
    }

    body.has-mobile-chat-app .composer-tools .icon-tool-button {
        width: 30px;
        min-width: 30px;
        min-height: 36px;
        padding: 5px;
        color: #65716e;
        background: transparent;
        border: 0;
    }

    body.has-mobile-chat-app .composer-tools [data-attachment-count]:empty {
        display: none;
    }

    body.has-mobile-chat-app .composer-tools [data-attachment-count]:not(:empty) {
        position: absolute;
        top: -3px;
        right: -4px;
        z-index: 1;
        display: inline-grid;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        place-items: center;
        color: #fff;
        background: #ef4444;
        border: 2px solid #fff;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 950;
        line-height: 1;
        pointer-events: none;
    }

    body.has-mobile-chat-app .composer:has(> .composer-attachment-list:not([hidden])) > textarea {
        border-radius: 16px;
    }

    body.has-mobile-chat-app .composer-attachment-list {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 0;
        padding: 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        background: #f1f5f4;
        border: 1px solid #d8e2e0;
        border-radius: 11px;
    }

    body.has-mobile-chat-app .composer-attachment-list::-webkit-scrollbar {
        display: none;
    }

    body.has-mobile-chat-app .composer-attachment-item {
        flex: 0 0 min(250px, calc(100vw - 28px));
        min-width: 0;
        padding: 6px;
    }

    body.has-mobile-chat-app .composer-attachment-icon {
        width: 26px;
        height: 26px;
    }

    body.has-mobile-chat-app .composer > p {
        grid-column: 1 / -1;
        grid-row: 3;
        min-height: 0;
        font-size: 11px;
    }

    body.has-mobile-chat-app .composer > p:empty {
        display: none;
    }

    body.has-mobile-chat-app .composer > p[data-kind="ok"] {
        display: none;
    }

    body.has-mobile-chat-app .composer > button[type="submit"] {
        grid-column: 3;
        grid-row: 1;
        min-width: 44px;
        min-height: 38px;
        margin: 0;
        padding: 6px 9px;
        background: #06c755;
        border-radius: 14px;
        font-size: 12px;
    }

    body.has-mobile-chat-app .composer > .emoji-picker,
    body.has-mobile-chat-app .composer > .mention-picker {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    body.has-mobile-chat-app .empty-state {
        min-height: 100%;
        padding: 28px;
        background: #dbe9ed;
    }

    body.has-mobile-chat-app .empty-state h2 {
        margin-bottom: 8px;
        color: #35535a;
        font-size: 20px;
    }

    body.has-mobile-chat-app .calendar-board {
        position: static;
        overflow-y: auto;
        background: #fff;
    }

    body.has-mobile-chat-app .calendar-head {
        display: none;
        position: sticky;
        top: 0;
        z-index: 4;
        min-height: 50px;
        padding: 10px 14px;
        background: linear-gradient(135deg, #075f4a, #06a765);
    }

    body.has-mobile-chat-app .calendar-head strong {
        font-size: 17px;
    }

    body.has-mobile-nav .assistant-toggle {
        display: none;
    }

    body.has-mobile-nav .assistant-panel {
        z-index: 120;
        width: calc(100vw - 20px);
        height: calc(100dvh - var(--topbar-height) - var(--mobile-nav-height) - 20px);
        max-height: 620px;
        border-radius: 16px;
        box-shadow: 0 22px 60px rgba(20, 42, 37, .24);
    }

    body.has-mobile-nav .assistant-widget.is-limited .assistant-panel {
        height: min(360px, calc(100dvh - var(--topbar-height) - var(--mobile-nav-height) - 20px));
    }

    body.has-mobile-nav .assistant-panel header {
        background: linear-gradient(135deg, #075f4a, #06a765);
    }

    body.has-mobile-nav .mail-layout {
        margin-bottom: 8px;
    }

    body.is-mail-page.has-mobile-nav {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding-bottom: 0;
        overflow: hidden;
        background: #fff;
    }

    body.is-mail-page.has-mobile-nav:not(.has-mobile-chat-app) .shell {
        width: 100%;
        height: calc(100vh - var(--mobile-nav-height));
        height: calc(100dvh - var(--mobile-nav-height));
        min-height: 0;
        margin: 0;
        padding: var(--mobile-safe-top, 0px) 0 0;
        overflow: hidden;
    }

    body.is-mail-page.has-mobile-nav .mail-layout {
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        overflow: hidden;
    }

    body.is-mail-page.has-mobile-nav .mail-list-panel,
    body.is-mail-page.has-mobile-nav .mail-reader-panel {
        width: 100%;
        height: 100%;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.is-mail-page.has-mobile-nav .mail-items {
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.is-mail-page.has-mobile-nav .mail-reader-panel {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.has-mobile-nav:not(.has-mobile-chat-app) .shell {
        padding-bottom: 18px;
    }

    body.is-mail-page.has-mobile-nav:not(.has-mobile-chat-app) .shell {
        padding-bottom: 0;
    }

    body.has-mobile-nav .announcement-shell:not(.hidden) ~ .shell {
        padding-top: calc(var(--mobile-safe-top, 0px) + var(--mobile-announcement-height));
    }
}

@media (min-width: 1367px), (min-width: 1025px) and (pointer: fine) {
    .desktop-home-panel {
        display: grid;
    }
}

@media (min-width: 1601px) {
    .chat-layout {
        grid-template-columns:
            minmax(260px, 300px)
            var(--users-panel-width, minmax(260px, 340px))
            minmax(0, 1fr)
            var(--calendar-panel-width, minmax(320px, 370px));
    }
}

@media (min-width: 1301px) and (max-width: 1600px) {
    .chat-layout {
        grid-template-columns:
            minmax(230px, 270px)
            var(--users-panel-width, minmax(260px, 300px))
            minmax(0, 1fr)
            var(--calendar-panel-width, minmax(320px, 370px));
    }
}

@media (min-width: 1025px) and (max-width: 1360px) {
    .chat-layout {
        grid-template-columns:
            minmax(220px, 290px)
            var(--users-panel-width, minmax(250px, 330px))
            minmax(0, 1fr);
        grid-template-rows: auto minmax(280px, 1fr) minmax(280px, 1fr);
    }

    .desktop-home-panel {
        grid-column: 1;
        grid-row: 2 / 4;
    }

    .user-list {
        grid-column: 2;
        grid-row: 2 / 4;
    }

    .conversation {
        grid-column: 3;
        grid-row: 2;
    }

    .calendar-board {
        grid-column: 3;
        grid-row: 3;
        width: 100%;
        min-width: 0;
        min-height: 0;
        justify-self: stretch;
    }

    body.is-panel-calendar-collapsed .calendar-board {
        width: 72px;
        min-width: 72px;
    }
}

/* Match a browser-level 80% zoom on common laptop viewports. */
@media (min-width: 1025px) and (max-width: 1300px) and (pointer: fine) {
    html.is-chat-home-document {
        zoom: .8;
    }

    html.is-chat-home-document body.has-chat-layout .shell {
        width: calc(125vw - 24px);
        height: calc(125vh - var(--topbar-height) - 28px);
    }
}

/* Tablets now use the same single-view navigation as phones. */
@media not all {
    .chat-layout {
        grid-template-rows: auto minmax(280px, 1fr) minmax(280px, 1fr);
    }

    .calendar-board {
        width: 50%;
        min-width: 360px;
        justify-self: end;
    }

    body.is-panel-calendar-collapsed .calendar-board {
        width: 72px;
        min-width: 72px;
    }
}

body.has-calendar-share-modal {
    overflow: hidden;
}

.calendar-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1240;
    display: none;
    place-items: center;
    padding: 18px;
}

.calendar-share-modal.is-open {
    display: grid;
}

.calendar-share-modal[hidden] {
    display: none;
}

.calendar-share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 51, .5);
    backdrop-filter: blur(4px);
}

.calendar-share-window {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(560px, 100%);
    height: var(--calendar-share-height, auto);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    background: #fff;
    border: 1px solid #d6e2e5;
    border-radius: 18px;
    box-shadow: 0 26px 72px rgba(15, 31, 51, .28);
}

.calendar-share-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 17px;
    color: #fff;
    background: linear-gradient(135deg, #176b77, #268b63);
}

.calendar-share-head > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.calendar-share-head span {
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}

.calendar-share-head strong {
    font-size: 18px;
    font-weight: 950;
}

.calendar-share-head button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 10px;
    font-size: 23px;
    line-height: 1;
}

.calendar-share-head button:hover {
    background: rgba(255, 255, 255, .25);
}

.calendar-share-event-preview {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 13px 17px;
    background: #f3f9f8;
    border-bottom: 1px solid #dce9e7;
}

.calendar-share-event-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #167467;
    background: #def1eb;
    border-radius: 13px;
}

.calendar-share-event-icon svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.calendar-share-event-preview > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.calendar-share-event-preview strong,
.calendar-share-event-preview small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-share-event-preview strong {
    color: #173a3b;
    font-size: 15px;
    font-weight: 950;
}

.calendar-share-event-preview small {
    color: #658083;
    font-size: 12px;
    font-weight: 750;
}

.calendar-share-form {
    display: grid;
    grid-template-rows: auto auto minmax(110px, 1fr) auto auto;
    min-height: 0;
    margin: 0;
    background: #fff;
}

.calendar-share-search {
    position: relative;
    display: block;
    margin: 14px 16px 8px;
}

.calendar-share-search svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 19px;
    pointer-events: none;
    fill: none;
    stroke: #70898c;
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
}

.calendar-share-search input {
    width: 100%;
    min-height: 43px;
    margin: 0;
    padding: 9px 13px 9px 41px;
    background: #f7fafb;
    border: 1px solid #cbdcdf;
    border-radius: 12px;
    font-size: 16px;
}

.calendar-share-search input:focus {
    background: #fff;
    border-color: #24917a;
    box-shadow: 0 0 0 3px rgba(36, 145, 122, .13);
    outline: 0;
}

.calendar-share-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 17px 8px;
}

.calendar-share-toolbar > strong {
    color: #47676b;
    font-size: 12px;
    font-weight: 900;
}

.calendar-share-toolbar > div {
    display: flex;
    gap: 5px;
}

.calendar-share-toolbar button {
    min-height: 29px;
    margin: 0;
    padding: 5px 8px;
    color: #157162;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.calendar-share-toolbar button:hover {
    background: #e8f5f1;
}

.calendar-share-list {
    grid-row: 3;
    min-height: 110px;
    margin: 0 10px;
    padding: 0 6px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.calendar-share-user {
    display: grid;
    grid-template-columns: auto 42px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    margin: 2px 0;
    padding: 7px 10px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 13px;
    transition: background .15s ease, border-color .15s ease;
}

.calendar-share-user:hover {
    background: #f5faf9;
}

.calendar-share-user.is-selected {
    background: #eaf7f2;
    border-color: #b8dfd1;
}

.calendar-share-user > input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #19866e;
}

.calendar-share-avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    color: #176e61;
    background: linear-gradient(145deg, #d9f0ea, #c8e7e0);
    border: 1px solid #c0ded7;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 950;
}

.calendar-share-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calendar-share-user-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.calendar-share-user-copy strong,
.calendar-share-user-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-share-user-copy strong {
    color: #183e40;
    font-size: 14px;
    font-weight: 900;
}

.calendar-share-user-copy small {
    color: #73898c;
    font-size: 11px;
    font-weight: 700;
}

.calendar-share-check {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #fff;
    background: #1c8b72;
    border-radius: 50%;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.calendar-share-user.is-selected .calendar-share-check {
    opacity: 1;
    transform: scale(1);
}

.calendar-share-check svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.calendar-share-empty {
    z-index: 1;
    grid-row: 3;
    align-self: center;
    justify-self: center;
    margin: 14px 20px;
    color: #71888b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.calendar-share-empty[hidden] {
    display: none;
}

.calendar-share-status {
    grid-row: 4;
    min-height: 18px;
    margin: 0;
    padding: 2px 17px 7px;
    color: #547276;
    font-size: 12px;
    font-weight: 800;
}

.calendar-share-status[data-kind="error"] {
    color: #b4232b;
}

.calendar-share-status:empty {
    min-height: 0;
    padding: 0;
}

.calendar-share-actions {
    grid-row: 5;
    display: grid;
    grid-template-columns: minmax(90px, .55fr) minmax(150px, 1fr);
    gap: 9px;
    padding: 11px 16px 14px;
    background: #f7faf9;
    border-top: 1px solid #e0e9e8;
}

.calendar-share-actions button {
    min-height: 41px;
    margin: 0;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 900;
}

.calendar-share-actions button[type="submit"] {
    background: linear-gradient(135deg, #147563, #269a72);
}

.calendar-share-actions button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .calendar-share-modal {
        inset: auto 0 auto;
        top: var(--calendar-share-viewport-top, 0px);
        width: 100vw;
        height: var(--calendar-share-viewport-height, 100dvh);
        min-height: 0;
        place-items: end center;
        padding: max(8px, env(safe-area-inset-top)) 0 0;
    }

    .calendar-share-window {
        min-width: 0;
        width: 100%;
        max-height: calc(100% - max(8px, env(safe-area-inset-top)));
        border-width: 1px 0 0;
        border-radius: 20px 20px 0 0;
    }

    .calendar-share-form {
        grid-template-rows: auto auto minmax(0, 1fr) auto auto;
        min-width: 0;
    }

    .calendar-share-list {
        min-width: 0;
        min-height: 0;
        margin-inline: 5px;
        padding-inline: 5px;
    }

    .calendar-share-user {
        grid-template-columns: auto 40px minmax(0, 1fr) 24px;
        gap: 9px;
        padding-inline: 8px;
    }

    .calendar-share-avatar {
        width: 40px;
        height: 40px;
    }

    .calendar-share-actions {
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }

    .calendar-share-modal.is-compact-viewport {
        padding-top: 0;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-window {
        max-height: 100%;
        border-radius: 0;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-head {
        padding: 7px 12px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-head span {
        display: none;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-head strong {
        font-size: 16px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-head button {
        width: 30px;
        min-height: 30px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-event-preview {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 11px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-event-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-search {
        margin: 6px 10px 4px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-search input {
        min-height: 38px;
        padding-block: 6px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-toolbar {
        padding: 0 11px 3px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-user {
        min-height: 48px;
        padding-block: 3px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-avatar {
        width: 36px;
        height: 36px;
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-actions {
        padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    }

    .calendar-share-modal.is-compact-viewport .calendar-share-actions button {
        min-height: 36px;
    }
}

@media (max-width: 420px) {
    .calendar-share-search {
        margin-inline: 10px;
    }

    .calendar-share-toolbar {
        gap: 4px;
        padding-inline: 11px;
    }

    .calendar-share-toolbar button {
        padding-inline: 5px;
    }

    .calendar-share-actions {
        padding-inline: 10px;
    }
}

/* Keep chat-shared mail inside the phone's actually visible viewport. */
@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    body.has-mail-shared-preview {
        overflow: hidden;
    }

    .mail-shared-preview-modal {
        inset: auto 0 auto;
        top: var(--mail-preview-viewport-top, 0px);
        width: 100vw;
        max-width: 100%;
        height: var(--mail-preview-viewport-height, 100dvh);
        min-height: 0;
    }

    .mail-shared-preview-window {
        inset: 0;
        width: 100%;
        height: 100%;
        min-width: 0;
        border: 0;
        border-radius: 0;
        transform: none;
    }

    .mail-shared-preview-window > header {
        min-width: 0;
        min-height: 52px;
        padding: max(9px, env(safe-area-inset-top)) 11px 9px;
    }

    .mail-shared-preview-window > header button {
        flex: 0 0 36px;
        width: 36px;
        min-height: 36px;
    }

    .mail-shared-preview-body {
        min-width: 0;
        min-height: 0;
        padding: 10px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .mail-shared-preview-body > .shared-mail-preview {
        min-width: 0;
        overflow: visible;
        border-radius: 7px;
    }

    .shared-mail-preview header {
        padding: 12px;
    }

    .shared-mail-preview dl {
        padding: 11px 12px;
    }

    .shared-mail-preview dl div {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 7px;
    }

    .shared-mail-attachments {
        min-width: 0;
        padding: 11px 12px;
    }

    .shared-mail-attachment {
        min-width: 0;
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 8px;
    }

    .shared-mail-preview-body {
        max-height: none;
        padding: 13px 12px max(18px, env(safe-area-inset-bottom));
        overflow: visible;
    }

    .mail-shared-preview-modal.is-compact-viewport .mail-shared-preview-window > header {
        min-height: 44px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .mail-shared-preview-modal.is-compact-viewport .mail-shared-preview-window > header button {
        width: 32px;
        min-height: 32px;
        flex-basis: 32px;
    }
}

/* Prevent iOS Safari and embedded mobile browsers from zooming mail fields on focus. */
@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .mail-compose,
    .mail-menu-compose {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .mail-compose input:not([type="hidden"]),
    .mail-compose textarea,
    .mail-menu-compose input:not([type="hidden"]),
    .mail-menu-compose textarea {
        font-size: 16px;
        line-height: 1.45;
    }
}

/* Dynamic department extension directory, positioned directly beside the user avatar. */
.topbar nav .desktop-extension-directory-link {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #e4fff7;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    text-decoration: none;
}

.topbar nav .desktop-extension-directory-link:hover,
.topbar nav .desktop-extension-directory-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .24);
    text-decoration: none;
}

.extension-directory-link svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.mobile-extension-directory-link {
    display: none;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .desktop-extension-directory-link {
        display: none !important;
    }

    body.has-mobile-chat-app .mobile-extension-directory-link {
        display: inline-grid;
        flex: 0 0 50px;
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
        margin: 0;
        padding: 8px;
        place-items: center;
        color: #11685d;
        background: linear-gradient(145deg, #effaf6, #ddf0e9);
        border: 1px solid #b9dcd0;
        border-radius: 15px;
        box-shadow: 0 5px 14px rgba(20, 97, 82, .13);
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    body.has-mobile-chat-app .mobile-extension-directory-link:active {
        color: #fff;
        background: linear-gradient(145deg, #278b78, #12675e);
        transform: scale(.97);
    }

    body.has-mobile-chat-app .mobile-extension-directory-link svg {
        width: 31px;
        height: 31px;
    }
}

@media (max-width: 360px) {
    body.has-mobile-chat-app .mobile-extension-directory-link {
        flex-basis: 46px;
        width: 46px;
        min-width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 7px;
    }
}

/* In-page extension directory preview. The card intentionally keeps visible space around it. */
body.has-extension-directory-modal {
    overflow: hidden;
}

.extension-directory-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    padding: max(22px, env(safe-area-inset-top, 0px)) 22px max(22px, env(safe-area-inset-bottom, 0px));
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.extension-directory-modal[hidden] {
    display: none;
}

.extension-directory-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.extension-directory-modal .extension-directory-modal-backdrop,
.extension-directory-modal .extension-directory-modal-backdrop:hover,
.extension-directory-modal .extension-directory-modal-backdrop:focus,
.extension-directory-modal .extension-directory-modal-backdrop:focus-visible,
.extension-directory-modal .extension-directory-modal-backdrop:active {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(10, 31, 36, .58);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
    transform: none;
    backdrop-filter: blur(4px);
}

.extension-directory-modal-window {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1320px, 92vw);
    height: min(860px, 88dvh);
    min-height: 380px;
    overflow: hidden;
    background: #f5faf9;
    border: 1px solid rgba(176, 213, 205, .9);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(4, 30, 34, .34);
    transform: translateY(10px) scale(.985);
    transition: transform .18s ease;
}

.extension-directory-modal.is-open .extension-directory-modal-window {
    transform: translateY(0) scale(1);
}

.extension-directory-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 10px 14px 10px 18px;
    color: #fff;
    background: linear-gradient(135deg, #0d6972, #2f8769);
}

.extension-directory-modal-title {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}

.extension-directory-modal-head strong {
    font-size: 18px;
    font-weight: 900;
}

.extension-directory-modal-head small {
    overflow: hidden;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.extension-directory-modal-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.extension-directory-download {
    display: inline-flex;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 11px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.extension-directory-download:hover,
.extension-directory-download:focus-visible {
    color: #0b5c58;
    background: #f0fffa;
    border-color: #f0fffa;
    text-decoration: none;
}

.extension-directory-download svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.extension-directory-modal-head button {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 11px;
    font-size: 25px;
    line-height: 1;
}

.extension-directory-modal-head button:hover,
.extension-directory-modal-head button:focus-visible {
    background: rgba(255, 255, 255, .27);
}

.extension-directory-modal-body {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #e8f1ef;
}

.extension-directory-modal-body iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 0;
    opacity: 0;
    transition: opacity .18s ease;
}

.extension-directory-modal.is-loaded .extension-directory-modal-body iframe {
    opacity: 1;
}

.extension-directory-loading {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    color: #35675e;
}

.extension-directory-loading span {
    width: 34px;
    height: 34px;
    border: 4px solid #c9dfd9;
    border-top-color: #14816c;
    border-radius: 50%;
    animation: mobile-news-spin .8s linear infinite;
}

.extension-directory-loading strong {
    font-size: 13px;
}

.extension-directory-modal.is-loaded .extension-directory-loading {
    display: none;
}

@media (max-width: 1024px), (max-width: 1366px) and (any-pointer: coarse) {
    .extension-directory-modal {
        padding: max(10px, env(safe-area-inset-top, 0px)) 8px max(12px, env(safe-area-inset-bottom, 0px));
    }

    .extension-directory-modal-window {
        width: min(980px, calc(100vw - 16px));
        height: min(760px, 84dvh);
        min-height: 360px;
        border-radius: 15px;
    }

    .extension-directory-modal-head {
        min-height: 54px;
        padding: 8px 9px 8px 14px;
    }

    .extension-directory-modal-head strong {
        font-size: 15px;
    }

    .extension-directory-modal-head button {
        flex-basis: 36px;
        width: 36px;
        min-height: 36px;
    }

    .extension-directory-download {
        min-height: 36px;
        padding: 0 10px;
    }
}

@media (max-width: 350px) {
    .extension-directory-download {
        width: 36px;
        padding: 0;
    }

    .extension-directory-download span {
        display: none;
    }
}

@media (max-width: 430px) {
    .extension-directory-modal-window {
        height: min(680px, 82dvh);
        min-height: 340px;
    }
}
