body {
    margin: 0;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    color: #111111;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body.auth-page--login {
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(9, 15, 30, 0.32) 0%, rgba(6, 10, 22, 0.42) 100%),
        url('/img/background.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 1920px auto;
}

[hidden] {
    display: none !important;
}

.corner-brand {
    position: fixed;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #111111;
    user-select: none;
}

.corner-brand__logo {
    width: 52px;
    height: 52px;
    display: block;
}

a {
    color: inherit;
}

.link {
    font-weight: 700;
    text-decoration: underline;
}

.auth {
    width: min(420px, 100%);
    box-sizing: border-box;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.auth--wide {
    width: min(640px, calc(100% - 32px));
    padding: 34px;
}

.auth--wide .auth__title {
    font-size: 34px;
}

.auth--wide .auth__hint {
    font-size: 15px;
}

.auth__header {
    display: flex;
    align-items: center;
    gap: 18px;
    user-select: none;
    margin-bottom: 16px;
}

.auth__backLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 14px 0;
    font-weight: 700;
    font-size: 14px;
    color: rgba(17, 17, 17, 0.60);
    text-decoration: none;
}

.auth__backLink:hover {
    text-decoration: underline;
}

.auth__backArrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.auth__headerLogo {
    width: 96px;
    height: 96px;
    display: block;
    flex: 0 0 96px;
}

.auth__headerTexts {
    min-width: 0;
}

.auth__headerBrand {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #111111;
}

.auth__title {
    margin: 6px 0 0 0;
    color: #111111;
    font-size: 28px;
    line-height: 1.2;
}

@media (max-width: 420px) {
    .auth__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .auth__headerLogo {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }

    .auth__title {
        text-align: center;
    }
}

.auth__error {
    margin: 0 0 16px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #111111;
}

.auth__error--inline {
    width: 100%;
    margin: 0;
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth__panel--enterRight {
    animation: auth-slide-in-right 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth__panel--enterLeft {
    animation: auth-slide-in-left 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth__link {
    align-self: flex-start;
    margin-top: -2px;
    color: rgba(17, 17, 17, 0.68);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
}

.auth__label {
    color: #111111;
    font-weight: 700;
    font-size: 14px;
}

.auth__input {
    padding: 12px 12px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.22);
    background: #ffffff;
    color: #111111;
    outline: none;
}

body.auth-page--loading {
    padding: 24px;
    justify-content: center;
    align-items: center;
}

body.auth-page--loading .auth {
    width: auto;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

body.auth-page--loading .auth__loading {
    min-height: 0;
    justify-content: center;
}

.auth__input:focus {
    border-color: rgba(0, 0, 0, 0.45);
}

.auth__button {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #3ba55c;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth__button + .auth__button {
    margin-top: 6px;
}

.auth__button:hover {
    filter: brightness(0.95);
}

.auth__button--secondary {
    background: #ebebef;
    border-color: rgba(0, 0, 0, 0.08);
    color: #111111;
}

.auth__button--toggle {
    margin-top: 16px;
    justify-content: center;
}

.auth__button--secondary .auth__buttonArrow {
    filter: none;
}

.auth__buttonArrow {
    width: 18px;
    height: 18px;
    display: block;
}

.auth__buttonArrow--light {
    filter: brightness(0) invert(1);
}

.auth__hint {
    margin: 14px 0 0 0;
    color: rgba(17, 17, 17, 0.72);
    font-size: 13px;
}

.auth__hint--success {
    margin: 0 0 16px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59, 165, 92, 0.08);
    border: 1px solid rgba(59, 165, 92, 0.25);
    color: #111111;
    font-size: 14px;
}

.auth__notice {
    margin: 0 0 16px 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #111111;
}

.auth__notice--success {
    background: rgba(59, 165, 92, 0.08);
    border: 1px solid rgba(59, 165, 92, 0.25);
}

.auth__notice--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.auth__modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.auth__modalBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.auth__modalDialog {
    position: relative;
    width: min(460px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    padding: 18px;
    box-sizing: border-box;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.auth__modalClose {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: rgba(17, 17, 17, 0.72);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.auth__modalIcon {
    width: 28px;
    height: 28px;
    display: block;
    margin-bottom: 8px;
}

.auth__modalTitle {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #111111;
}

.auth__modalText {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: rgba(17, 17, 17, 0.72);
}

.auth__modalAction {
    margin-top: 16px;
    width: 100%;
}

.auth__version {
    margin: 10px 0 0 0;
    color: rgba(17, 17, 17, 0.48);
    font-size: 13px;
    text-align: center;
}

.auth__footerMeta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

body.auth-page--login .auth__footerMeta {
    z-index: 6;
}

body.auth-page--login .auth__footerMeta .auth__version {
    margin: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.76);
}

.auth__legalLink {
    pointer-events: auto;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.auth__legalLink:hover {
    color: #ffffff;
}

@media (max-width: 780px) {
    body.auth-page--login:not(.oobe-page):not(.auth-page--loading) {
        overflow-y: auto;
        overflow-x: hidden;
        justify-content: center;
        align-items: center;
        min-height: 100dvh;
        padding: 14px 12px calc(12px + env(safe-area-inset-bottom));
    }

    body.auth-page--login:not(.oobe-page):not(.auth-page--loading) .auth {
        width: min(420px, 100%);
        max-width: 420px;
        margin: 0 auto;
    }

    body.auth-page--login:not(.oobe-page):not(.auth-page--loading) .auth__footerMeta {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 10px auto 0;
        padding-top: 0;
        width: min(420px, 100%);
        pointer-events: auto;
    }

    body.auth-page--login:not(.oobe-page):not(.auth-page--loading) .auth__legalLink {
        pointer-events: auto;
    }

    body.auth-page--login.oobe-page .auth__footerMeta {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin: auto auto 2px;
        padding-top: 14px;
        width: min(420px, 100%);
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    body.auth-page--login:not(.oobe-page) .auth__headerLogo {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }

    body.auth-page--login:not(.oobe-page) .auth__header {
        gap: 10px;
        margin-bottom: 10px;
    }
}

@media (max-width: 560px) {
    .auth__footerMeta {
        left: 12px;
        right: 12px;
        bottom: 10px;
    }

    body.auth-page--login.oobe-page .auth__footerMeta {
        left: auto;
        right: auto;
        bottom: auto;
    }

    body.auth-page--login:not(.oobe-page):not(.auth-page--loading) .auth__footerMeta {
        left: auto;
        right: auto;
        bottom: auto;
    }

    .auth__legalLink,
    body.auth-page--login .auth__footerMeta .auth__version {
        font-size: 12px;
    }
}

.auth__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.auth__loader {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid rgba(17, 17, 17, 0.12);
    border-top-color: #5F68BE;
    animation: auth-spin 900ms linear infinite;
}

.auth__loadingTitle {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #111111;
}

.auth__loadingText {
    margin: 0;
    color: rgba(17, 17, 17, 0.66);
    font-size: 14px;
    line-height: 1.5;
}

.auth__hint--compact {
    margin-top: 2px;
    text-align: center;
}

.auth__twoFactorHero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 8px;
}

.auth__twoFactorIcon {
    width: 52px;
    height: 52px;
    display: block;
}

.auth__twoFactorTitle {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #111111;
}

.auth__twoFactorText {
    margin: 0;
    color: rgba(17, 17, 17, 0.66);
    font-size: 14px;
    line-height: 1.5;
}

.auth__otp {
    width: 100%;
}

.auth__recovery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth__input--code {
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth__modeBlock--enterLeft {
    animation: auth-slide-in-left 220ms ease;
}

.auth__modeBlock--enterRight {
    animation: auth-slide-in-right 220ms ease;
}

.oobe-page {
    overflow-y: auto;
}

.oobe {
    width: min(620px, 100%);
    padding: 28px;
}

.oobe__hero {
    margin-bottom: 18px;
}

.oobe__heroIcon {
    width: 72px;
    height: 72px;
}

.oobe__subtitle {
    margin-top: 2px;
    max-width: 620px;
    color: rgba(17, 17, 17, 0.62);
}

.oobe__browserHint {
    margin: 0 0 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15, 86, 194, 0.09);
    border: 1px solid rgba(15, 86, 194, 0.25);
    color: #111111;
    font-size: 14px;
    line-height: 1.45;
}

.oobe__steps {
    width: 100%;
}

.oobe__step {
    width: 100%;
}

.oobe__step--enterRight {
    animation: auth-slide-in-right 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oobe__form {
    gap: 12px;
}

.oobe__notifications,
.oobe__passkey {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.oobe__fieldHint {
    margin: -2px 0 0 0;
    color: rgba(17, 17, 17, 0.54);
    font-size: 12px;
    line-height: 1.45;
}

.oobe__hint {
    margin-top: 4px;
}

#oobeNotificationsStep {
    gap: 6px;
}

#oobeNotificationsStep .auth__label {
    margin: 0;
}

#oobeNotificationsStep .oobe__hint {
    margin: 0 0 2px 0;
}

.auth__button--notifications {
    background: #5865F2;
    border-color: #5865F2;
    color: #ffffff;
}

.auth__button--notifications:hover {
    filter: brightness(0.95);
}

.auth__button--notifications .auth__buttonArrow {
    filter: brightness(0) invert(1);
}

#oobePasskeyStep .oobe__passkey {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
}

#oobePasskeyBtn,
#oobeFinishBtn {
    width: 100%;
}

#oobeFinishBtn .auth__buttonArrow {
    filter: brightness(0) saturate(100%);
}

#oobePasskeyBtn {
    margin-top: 6px;
}

#oobePasskeyStep .oobe__actions {
    margin-top: 0;
}

.auth__button--passkey {
    background: #3ba55c;
    border-color: #32914f;
    color: #ffffff;
}

.auth__button--passkey .auth__buttonArrow {
    filter: brightness(0) invert(1);
}

.oobe__actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.oobe__actions .auth__button {
    flex: 1 1 100%;
    margin-top: 0;
}

.auth__button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

@media (max-width: 780px) {
    body.auth-page--login.oobe-page {
        min-height: 100dvh;
        justify-content: center;
        align-items: center;
        padding: 12px;
    }

    body.auth-page--login.oobe-page .auth {
        margin: 0 auto;
    }

    .oobe {
        width: 100%;
        padding: 22px;
    }

    .oobe__heroIcon {
        width: 52px;
        height: 52px;
    }

    .oobe__hero {
        margin-bottom: 10px;
    }

    .oobe__actions {
        flex-direction: column;
    }

    .oobe__actions .auth__button {
        width: 100%;
    }
}

.auth__otpBoxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    max-width: 300px;
    margin: 0 auto;
}

.auth__otpBox {
    width: 100%;
    min-width: 0;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.auth__otpBox:focus {
    border-color: rgba(95, 104, 190, 0.42);
    box-shadow: 0 0 0 4px rgba(95, 104, 190, 0.12);
}

@media (max-width: 420px) {
    .auth__otpBoxes {
        gap: 6px;
        max-width: 270px;
    }

    .auth__otpBox {
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 1280px) {
    body.auth-page--login {
        background-size: cover;
    }
}

@keyframes auth-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes auth-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes auth-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth__panel--enterRight,
    .auth__panel--enterLeft,
    .auth__modeBlock--enterLeft,
    .auth__modeBlock--enterRight {
        animation: none !important;
    }
}

.appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
    min-height: 56px;
    padding: 0 16px;
    background: linear-gradient(180deg, rgba(42, 42, 47, 0.98) 0%, rgba(30, 30, 34, 0.98) 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.appbar__left,
.appbar__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.appbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.appbar__brandLogo {
    width: 28px;
    height: 28px;
    display: block;
}

.appbar__brandName {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.appbar__section {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.appbar__section--home {
    color: #6ed78c;
}

.appbar__section--settings {
    color: #6aa8ff;
}

.appbar__menuWrap {
    position: relative;
}

.appbar__iconBtn,
.appbar__profileBtn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.appbar__profileBtn {
    overflow: hidden;
}

.appbar__iconBtn:hover,
.appbar__profileBtn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.appbar__icon {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(27%) hue-rotate(164deg) brightness(109%) contrast(92%);
}

.appbar__profileAvatar,
.appbar__profileSummaryAvatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    background: linear-gradient(180deg, #ffd38f 0%, #f0b96b 100%);
}

.appbar__profileSummary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
}

.appbar__profileSummaryAvatar {
    width: 44px;
    height: 44px;
}

.appbar__menuPanel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    min-width: 250px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.appbar__menuPanel--apps {
    width: min(420px, calc(100vw - 28px));
    min-width: 320px;
}

.appbar__menuTitle {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.appbar__menuText {
    margin: 6px 0 0 0;
    color: rgba(29, 29, 31, 0.66);
    font-size: 14px;
    line-height: 1.5;
}

.appbar__menuLink,
.appbar__menuAction {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding: 10px 12px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #1d1d1f;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.appbar__profileSummary + .appbar__menuLink,
.appbar__profileSummary + .appbar__menuAction {
    margin-top: 8px;
}

.appbar__menuLink + .appbar__menuLink,
.appbar__menuLink + .appbar__menuAction,
.appbar__menuAction + .appbar__menuLink,
.appbar__menuAction + .appbar__menuAction {
    margin-top: 8px;
}

.appbar__appsGrid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
}

.appbar__appsFooter {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appbar__appsFooterLink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    box-sizing: border-box;
}

.appbar__appsFooterIcon {
    width: 17px;
    height: 17px;
    display: block;
    filter: brightness(0) saturate(100%) invert(8%) sepia(10%) saturate(520%) hue-rotate(201deg) brightness(96%) contrast(91%);
}

.appbar__appsFooterLink:hover,
.appbar__appsFooterLink:focus-visible {
    background: rgba(95, 104, 190, 0.1);
    outline: none;
}

.appbar__appTile {
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1d1d1f;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.appbar__appTile:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.appbar__appTile:focus-visible {
    outline: 2px solid rgba(95, 104, 190, 0.52);
    outline-offset: 2px;
}

.appbar__appTile--blocked {
    opacity: 0.62;
}

.appbar__appTile--blocked .appbar__appTileIconWrap {
    border-style: dashed;
}

.appbar__appTile--blocked .appbar__appTileLabel::after {
    content: ' (indisponible)';
    font-weight: 600;
}

.appbar__appTileIconWrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 242, 255, 0.92) 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.appbar__appTileIcon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(9%) sepia(13%) saturate(588%) hue-rotate(197deg) brightness(95%) contrast(91%);
}

.appbar__appTileLabel {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    max-width: 84px;
}

.appbar__menuLink:hover,
.appbar__menuAction:hover,
.appbar__menuLink:focus-visible,
.appbar__menuAction:focus-visible {
    background: rgba(95, 104, 190, 0.1);
    outline: none;
}

.appbar__menuLinkIcon {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) saturate(100%) invert(8%) sepia(10%) saturate(520%) hue-rotate(201deg) brightness(96%) contrast(91%);
}

.appbar__menuAction--danger {
    color: #ed4245;
}

.appbar__menuAction--danger .appbar__menuLinkIcon {
    filter: brightness(0) saturate(100%) invert(41%) sepia(84%) saturate(2855%) hue-rotate(332deg) brightness(98%) contrast(90%);
    opacity: 0.88;
}

.appbar__srOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.switchModal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: max(14px, calc(env(safe-area-inset-top) + 8px)) 14px max(14px, calc(env(safe-area-inset-bottom) + 8px));
    box-sizing: border-box;
}

.switchModal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 20, 0.5);
    backdrop-filter: blur(4px);
    animation: switchModal-fade-in 180ms ease-out both;
}

.switchModal__dialog {
    position: relative;
    width: min(520px, calc(100% - 28px));
    margin: 0;
    max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
    transform-origin: center center;
    animation: switchModal-pop-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes switchModal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes switchModal-pop-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .switchModal__backdrop,
    .switchModal__dialog {
        animation: none !important;
    }
}

.switchModal__title {
    margin: 0;
    color: #111111;
    font-size: 24px;
    line-height: 1.2;
}

.switchModal__text {
    margin: 10px 0 0 0;
    color: rgba(17, 17, 17, 0.78);
    font-size: 15px;
    line-height: 1.45;
}

.switchModal__actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.switchModal__btn {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.switchModal__btn--secondary {
    color: #111111;
    background: rgba(17, 17, 17, 0.06);
}

.switchModal__btn--primary {
    color: #ffffff;
    background: #ed4245;
    border-color: #ed4245;
}

.switchModal__btn:hover {
    filter: brightness(0.96);
}

.switchModal__btn:focus-visible {
    outline: 2px solid rgba(40, 94, 193, 0.58);
    outline-offset: 2px;
}

.home-page {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    background-image:
        linear-gradient(180deg, rgba(9, 15, 30, 0.32) 0%, rgba(6, 10, 22, 0.42) 100%),
        url('/img/background.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 1920px auto;
    color: #111111;
}

.home-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0 0 26px;
    box-sizing: border-box;
}

.home-dashboard {
    width: min(1120px, 100%);
    min-height: calc(100vh - 56px - 26px);
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 0 16px;
    box-sizing: border-box;
}

.home-row {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 18px;
}

.home-panel {
    border-radius: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 18px 44px rgba(8, 10, 24, 0.2);
    backdrop-filter: blur(5px);
}

.home-panel--profile {
    min-height: 184px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.home-panel--calendar {
    min-height: 252px;
    display: flex;
    flex-direction: column;
}

.home-panel--apps {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.home-panel--apps.home-panel--appsCompact {
    min-height: 236px;
}

.home-panelHeader {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.home-panel--apps .home-panelHeader {
    width: 100%;
    margin-bottom: 20px;
}

.home-panelTitle {
    margin: 0;
    font-size: 23px;
    line-height: 1.2;
    color: #111111;
}

.home-panelIcon {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) saturate(100%) invert(12%) sepia(8%) saturate(490%) hue-rotate(194deg) brightness(94%) contrast(91%);
}

.home-avatarImage {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.home-profileText {
    min-width: 0;
}

.home-welcome {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 36px);
    line-height: 1.05;
    color: #111111;
}

.home-welcome span {
    display: inline-block;
    margin-top: 4px;
}

.home-profileMeta {
    margin-top: 10px;
}

.home-pole {
    margin: 0;
    color: rgba(17, 17, 17, 0.7);
    font-size: 17px;
    font-weight: 700;
}

.home-campus {
    margin: 4px 0 0 0;
    color: rgba(17, 17, 17, 0.7);
    font-size: 15px;
    font-weight: 600;
}

.home-calendarPlaceholder {
    flex: 1;
    border-radius: 18px;
    border: 1px dashed rgba(0, 0, 0, 0.22);
    background: rgba(12, 17, 34, 0.04);
    color: rgba(17, 17, 17, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    padding: 16px;
}

.home-appGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 16px 14px;
    justify-items: center;
    max-width: 980px;
    width: min(980px, 100%);
    margin: 8px auto 0;
}

.home-app {
    appearance: none;
    border: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 0;
    text-align: center;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 14px;
    transition: transform 180ms ease, filter 180ms ease;
}

.home-app__iconWrap {
    width: 74px;
    height: 74px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(228, 236, 255, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.home-app__iconWrap::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 10px;
    right: 10px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.home-app__icon {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(13%) sepia(8%) saturate(479%) hue-rotate(190deg) brightness(97%) contrast(90%);
}

.home-app__label {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #111111;
}

.home-app:hover {
    transform: translateY(-4px) scale(1.03);
    filter: brightness(1.05);
}

.home-app:focus-visible {
    outline: 2px solid rgba(40, 94, 193, 0.58);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .home-appGrid {
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    }
}

@media (max-width: 780px) {
    .appbar {
        flex-wrap: nowrap;
        padding: 10px 14px;
    }

    .appbar__left,
    .appbar__right {
        width: auto;
        justify-content: flex-start;
    }

    .appbar__left {
        min-width: 0;
        flex: 1;
        gap: 8px;
    }

    .appbar__right {
        flex: 0 0 auto;
        gap: 10px;
    }

    .appbar__brand {
        gap: 8px;
        min-width: 0;
    }

    .appbar__brandName,
    .appbar__section {
        font-size: 18px;
    }

    .appbar__section {
        white-space: nowrap;
    }

    .appbar__menuPanel {
        right: 0;
        left: auto;
        max-width: min(280px, calc(100vw - 28px));
    }

    .appbar__menuPanel--apps {
        width: min(360px, calc(100vw - 28px));
        min-width: 0;
        right: -10px;
    }

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

    .home-shell {
        padding: 0 0 18px;
    }

    .home-page {
        background-size: cover;
        background-position: center top;
        background-color: #0f172a;
    }

    .home-dashboard {
        width: 100%;
        margin-top: 18px;
        min-height: 0;
        justify-content: flex-start;
        padding: 0 12px;
    }

    .home-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-panel {
        padding: 18px;
    }

    .home-panel--profile {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        min-height: 0;
    }

    .home-welcome {
        font-size: 30px;
    }

    .home-pole {
        font-size: 16px;
    }

    .home-campus {
        font-size: 14px;
    }

    .home-panel--calendar {
        min-height: 188px;
    }

    .home-appGrid {
        grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
        gap: 12px;
    }

    .home-app__iconWrap {
        width: 68px;
        height: 68px;
        border-radius: 17px;
    }

    .home-app__icon {
        width: 30px;
        height: 30px;
    }

    .home-app__label {
        font-size: 12px;
    }

    .switchModal__dialog {
        width: calc(100% - 28px);
        max-width: 420px;
        padding: 16px;
        border-radius: 16px;
    }

    .switchModal__title {
        font-size: 20px;
    }

    .switchModal__actions {
        flex-direction: column-reverse;
    }

    .switchModal__btn {
        width: 100%;
    }
}

body.theme-dark .appbar {
    background: linear-gradient(180deg, rgba(18, 18, 22, 0.98) 0%, rgba(10, 10, 12, 0.98) 100%);
}

body.theme-dark .appbar__menuPanel {
    background: rgba(24, 24, 28, 0.98);
    color: #f5f8ff;
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .appbar__appTile {
    color: #f5f8ff;
}

body.theme-dark .appbar__appTileIconWrap {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

body.theme-dark .appbar__appTileIcon {
    filter: brightness(0) saturate(100%) invert(96%) sepia(6%) saturate(171%) hue-rotate(184deg) brightness(104%) contrast(96%);
}

body.theme-dark .appbar__appsFooterIcon {
    filter: brightness(0) saturate(100%) invert(96%) sepia(6%) saturate(171%) hue-rotate(184deg) brightness(104%) contrast(96%);
}

body.theme-dark .appbar__appsFooter {
    border-top-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .appbar__appsFooterLink {
    color: #f5f8ff;
}

body.theme-dark .appbar__menuText {
    color: rgba(245, 248, 255, 0.68);
}

body.theme-dark .appbar__profileSummary,
body.theme-dark .appbar__menuLink,
body.theme-dark .appbar__menuAction {
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .appbar__menuLink,
body.theme-dark .appbar__menuAction {
    color: #f5f8ff;
}

body.theme-dark .appbar__menuAction--danger {
    color: #ed4245;
}

body.theme-dark .appbar__menuAction--danger .appbar__menuLinkIcon {
    filter: brightness(0) saturate(100%) invert(41%) sepia(84%) saturate(2855%) hue-rotate(332deg) brightness(98%) contrast(90%);
    opacity: 0.88;
}

body.theme-dark .appbar__menuLink:hover,
body.theme-dark .appbar__menuAction:hover,
body.theme-dark .appbar__menuLink:focus-visible,
body.theme-dark .appbar__menuAction:focus-visible {
    background: rgba(106, 168, 255, 0.12);
}

body.theme-dark .appbar__menuLinkIcon {
    filter: brightness(0) saturate(100%) invert(96%) sepia(6%) saturate(171%) hue-rotate(184deg) brightness(104%) contrast(96%);
}

body.theme-dark .switchModal__dialog {
    background: rgba(24, 24, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .switchModal__title {
    color: #f5f8ff;
}

body.theme-dark .switchModal__text {
    color: rgba(245, 248, 255, 0.78);
}

body.theme-dark .switchModal__btn {
    border-color: rgba(255, 255, 255, 0.14);
}

body.theme-dark .switchModal__btn--secondary {
    color: #f5f8ff;
    background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .auth__modalDialog {
    border-color: rgba(255, 255, 255, 0.12);
    background: #101015;
}

body.theme-dark .auth__modalClose {
    border-color: rgba(255, 255, 255, 0.12);
    background: #0b0b10;
    color: rgba(245, 245, 247, 0.78);
}

body.theme-dark .auth__modalTitle {
    color: #f5f5f7;
}

body.theme-dark .auth__modalText {
    color: rgba(245, 245, 247, 0.74);
}

body.theme-dark.home-page {
    background-image:
        linear-gradient(180deg, rgba(9, 15, 30, 0.32) 0%, rgba(6, 10, 22, 0.42) 100%),
        url('/img/background.jpg');
    color: #f3f6ff;
}

body.theme-dark .home-panel {
    background: rgba(18, 22, 34, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(3, 4, 8, 0.45);
}

body.theme-dark .home-panelTitle,
body.theme-dark .home-welcome,
body.theme-dark .home-app__label {
    color: #f4f7ff;
}

body.theme-dark .home-pole,
body.theme-dark .home-campus {
    color: rgba(244, 247, 255, 0.72);
}

body.theme-dark .home-calendarPlaceholder {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(244, 247, 255, 0.72);
}

body.theme-dark .home-app__iconWrap {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.theme-dark .home-app__iconWrap::before {
    display: none;
}

body.theme-dark .home-app:hover {
    filter: brightness(1.08);
}

body.theme-dark .home-panelIcon,
body.theme-dark .home-app__icon {
    filter: brightness(0) saturate(100%) invert(94%) sepia(8%) saturate(202%) hue-rotate(184deg) brightness(103%) contrast(97%);
}

body.theme-dark .oobe__browserHint {
    background: rgba(107, 159, 255, 0.12);
    border-color: rgba(107, 159, 255, 0.28);
    color: rgba(245, 248, 255, 0.9);
}

.home-page .appbar {
    margin: 0;
    border-radius: 0;
}

.legal-page {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    background: #f3f6fb;
    color: #111111;
}

.legal-shell {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.legal-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 22px;
}

.legal-hero,
.legal-section {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.10);
}

.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) auto;
    gap: 22px;
    align-items: center;
}

.legal-hero__eyebrow {
    margin: 0 0 10px 0;
    color: rgba(17, 17, 17, 0.52);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-hero__title {
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
    color: #111111;
}

.legal-hero__text {
    margin: 16px 0 0 0;
    max-width: 760px;
    color: rgba(17, 17, 17, 0.72);
    font-size: 16px;
    line-height: 1.7;
}

.legal-hero__icon {
    width: 92px;
    height: 92px;
    display: block;
    opacity: 0.96;
}

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

.legal-section--full {
    grid-column: 1 / -1;
}

.legal-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.legal-section__logo {
    width: 28px;
    height: 28px;
    display: block;
    flex: 0 0 28px;
}

.legal-section__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #111111;
}

.legal-section__content {
    color: rgba(17, 17, 17, 0.76);
    font-size: 15px;
    line-height: 1.7;
}

.legal-section__content p,
.legal-section__content ul {
    margin: 0;
}

.legal-section__content p + p,
.legal-section__content p + ul,
.legal-section__content ul + p,
.legal-section__content ul + ul {
    margin-top: 12px;
}

.legal-section__content ul {
    padding-left: 20px;
}

.legal-section__content li + li {
    margin-top: 8px;
}

.legal-section__content a {
    color: #0f56c2;
}

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

    .legal-section--full {
        grid-column: auto;
    }
}

@media (max-width: 780px) {
    .legal-main {
        padding: 18px 14px 0;
        gap: 16px;
    }

    .legal-hero,
    .legal-section {
        padding: 22px;
    }

    .legal-hero {
        grid-template-columns: 1fr;
    }

    .legal-hero__title {
        font-size: 34px;
    }

    .legal-hero__icon {
        width: 72px;
        height: 72px;
    }
}

body.theme-dark.legal-page {
    background: #0f131c;
}

body.theme-dark .legal-hero,
body.theme-dark .legal-section {
    background: rgba(24, 24, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

body.theme-dark .legal-hero__eyebrow {
    color: rgba(245, 248, 255, 0.52);
}

body.theme-dark .legal-hero__title,
body.theme-dark .legal-section__title {
    color: #f5f8ff;
}

body.theme-dark .legal-hero__text,
body.theme-dark .legal-section__content {
    color: rgba(245, 248, 255, 0.76);
}

body.theme-dark .legal-section__content a {
    color: #9bc2ff;
}

.legal-hub-page {
    background: #f3f6fb;
    color: #111111;
}

.legal-hub-shell {
    padding-top: 0;
}

.legal-hub-page .appbar {
    z-index: 40;
}

body.legal-hub-page .settings-layout {
    display: block;
    grid-template-columns: none;
    gap: 0;
    align-items: initial;
    margin-top: 34px;
    padding: 0 28px;
}

@media (min-width: 980px) {
    body.legal-hub-page .settings-layout {
        min-height: calc(100vh - 56px);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        padding: 28px;
        box-sizing: border-box;
    }
}

.legal-hub__headerIcon {
    width: 112px;
    height: 112px;
    display: block;
    flex: 0 0 112px;
    opacity: 0.98;
}


body.legal-hub-page .settings-grid.legal-hub__grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 18px 26px;
    scroll-padding-left: 18px;
    scroll-padding-right: 18px;
    box-sizing: border-box;
}

body.legal-hub-page .legal-hub__tile {
    min-width: 320px;
    max-width: 360px;
    flex: 0 0 auto;
}

body.legal-hub-page .settings-content.legal-hub {
    width: min(1180px, 100%);
    margin: 0 auto;
}

@media (min-width: 980px) {
    body.legal-hub-page .settings-grid.legal-hub__grid {
        overflow-x: visible;
    }
}

.legal-hub__tile {
    min-height: 220px;
    justify-content: center;
}

.legal-hub__tile .settings-tile__status {
    margin-top: 6px;
    background: rgba(95, 104, 190, 0.12);
    color: #5F68BE;
}

body.legal-hub-page .settings-modal__dialog.legal-hub__dialog {
    width: min(1420px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: 94vh;
    overflow: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
}

@media (min-width: 980px) {
    body.legal-hub-page .settings-modal__dialog.legal-hub__dialog {
        width: min(1480px, calc(100vw - 40px)) !important;
        max-height: 82vh;
    }
}

.legal-hub__dialog .settings-modal__icon,
.legal-hub__dialog .settings-modal__title,
.legal-hub__dialog .settings-modal__subtitle {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.legal-hub__dialog .settings-modal__subtitle {
    max-width: 560px;
}

.legal-hub__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
    flex: 0 0 auto;
    overflow: visible;
    padding-bottom: 8px;
}

.legal-hub__contentBlock {
    padding: 18px 4px;
    border: none;
    border-top: 1px solid rgba(29, 29, 31, 0.12);
}

.legal-hub__contentBlock:first-child {
    border-top: none;
    padding-top: 0;
}

.legal-hub__contentBlock h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #111111;
}

.legal-hub__contentBlock p,
.legal-hub__contentBlock ul {
    margin: 0;
    color: rgba(17, 17, 17, 0.76);
    font-size: 15px;
    line-height: 1.7;
}

.legal-hub__contentBlock p + p,
.legal-hub__contentBlock p + ul,
.legal-hub__contentBlock ul + p,
.legal-hub__contentBlock ul + ul {
    margin-top: 10px;
}

.legal-hub__contentBlock ul {
    padding-left: 20px;
}

.legal-hub__contentBlock li + li {
    margin-top: 8px;
}

@media (max-width: 1080px) {
    body.legal-hub-page .settings-grid.legal-hub__grid {
        justify-content: center;
    }
}

@media (max-width: 780px) {
    .legal-hub-shell {
        padding: 0 !important;
    }

    .legal-hub-page .appbar {
        margin: 0;
        border-radius: 0;
    }

    .legal-hub {
        padding-top: 16px;
    }

    .legal-hub__headerIcon {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    body.legal-hub-page .legal-hub__tile {
        min-width: 0;
        width: min(420px, 100%);
        max-width: 100%;
    }

    body.legal-hub-page .settings-grid.legal-hub__grid {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-x: visible;
        padding: 12px 0 24px;
    }

    body.legal-hub-page .settings-modal.legal-hub__modal {
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        padding: calc(12px + env(safe-area-inset-top)) 10px 12px;
    }

    body.legal-hub-page .settings-modal__dialog.legal-hub__dialog {
        width: min(1480px, calc(100vw - 20px)) !important;
        max-height: calc(100dvh - env(safe-area-inset-top) - 24px);
        overflow: auto;
    }
}

body.theme-dark.legal-hub-page {
    background: #1C1C1E;
}

body.theme-dark .legal-hub__headerIcon {
    filter: brightness(0) saturate(100%) invert(94%) sepia(6%) saturate(152%) hue-rotate(195deg) brightness(103%) contrast(98%);
}

body.theme-dark .legal-hub__contentBlock {
    border-top-color: rgba(255, 255, 255, 0.1);
}



body.theme-dark .legal-hub__contentBlock {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .legal-hub__contentBlock h3 {
    color: #f5f5f7;
}

body.theme-dark .legal-hub__contentBlock p,
body.theme-dark .legal-hub__contentBlock ul {
    color: rgba(245, 245, 247, 0.76);
}

body.settings-page:not(.legal-hub-page) {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    background: #f5f5f7;
    color: #1d1d1f;
}

body.theme-dark.settings-page:not(.legal-hub-page) {
    background: #1C1C1E;
    color: #f5f5f7;
}

body.settings-page:not(.legal-hub-page) .settings-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

body.settings-page:not(.legal-hub-page) .settings-tile__status[data-state="inactive"] {
    background: rgba(228, 38, 19, 0.14);
    color: #b9352b;
}

body.settings-page:not(.legal-hub-page) .settings-tile__status[data-state="active"] {
    background: rgba(59, 165, 92, 0.16);
    color: #1f7d3d;
}

body.theme-dark.settings-page:not(.legal-hub-page) .settings-tile__status[data-state="inactive"] {
    background: rgba(255, 108, 93, 0.22);
    color: #ff9f96;
}

body.theme-dark.settings-page:not(.legal-hub-page) .settings-tile__status[data-state="active"] {
    background: rgba(59, 165, 92, 0.24);
    color: #86e5a5;
}

.settings-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.settings-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f5f8ff;
    text-decoration: none;
    font-weight: 700;
}

.settings-back__icon {
    width: 18px;
    height: 18px;
    display: block;
    transform: rotate(180deg);
}

.settings-topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #f5f8ff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.settings-chip--button {
    font: inherit;
    cursor: pointer;
}

.settings-chip__icon {
    width: 18px;
    height: 18px;
    display: block;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
    gap: 22px;
    align-items: start;
}

.settings-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(12, 20, 48, 0.9) 0%, rgba(4, 8, 27, 0.92) 100%);
    border: 1px solid rgba(167, 193, 255, 0.14);
    box-shadow: 0 24px 56px rgba(1, 8, 38, 0.3);
}

.settings-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 160, 255, 0.12), transparent 42%);
    pointer-events: none;
}

.settings-card--profile {
    grid-row: span 2;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 195, 94, 0.14), transparent 18%),
        linear-gradient(180deg, rgba(0, 49, 114, 0.96) 0%, rgba(2, 27, 79, 0.96) 100%);
}

.settings-card--security {
    grid-column: span 2;
}

.settings-eyebrow,
.settings-card__subtitle,
.settings-copy,
.settings-userMeta,
.settings-securityItem__text,
.settings-upload__hint {
    color: rgba(227, 235, 255, 0.7);
}

.settings-eyebrow {
    margin: 0 0 10px 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-title {
    margin: 0;
    font-size: 42px;
    line-height: 1;
}

.settings-copy {
    margin: 18px 0 0 0;
    max-width: 380px;
    font-size: 16px;
    line-height: 1.6;
}

.settings-identity {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 28px;
}

.settings-avatarWrap {
    width: 164px;
    height: 164px;
    border-radius: 42px;
    background: rgba(3, 28, 79, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(139, 191, 255, 0.12);
}

.settings-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(180deg, #ffd38f 0%, #f0b96b 100%);
}

.settings-userName {
    margin: 0;
    font-size: 30px;
}

.settings-userMeta {
    margin: 6px 0 0 0;
    font-size: 15px;
}

.settings-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.settings-badge,
.settings-securityStatus {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fbff;
    font-size: 13px;
}

.settings-badge--muted {
    background: rgba(255, 255, 255, 0.08);
}

.settings-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.settings-card__title {
    margin: 0;
    font-size: 22px;
}

.settings-card__subtitle {
    margin: 6px 0 0 0;
    font-size: 14px;
}

.settings-card__icon {
    width: 26px;
    height: 26px;
    display: block;
}

.settings-form,
.settings-securityGrid {
    position: relative;
    z-index: 1;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-label {
    font-weight: 700;
    font-size: 14px;
}

.settings-input,
.settings-upload {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.settings-input {
    padding: 14px 16px;
    color: #f5f8ff;
    outline: none;
}

.settings-input::placeholder {
    color: rgba(227, 235, 255, 0.44);
}

.settings-input:focus {
    border-color: rgba(142, 189, 255, 0.45);
}

.settings-upload {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    cursor: pointer;
}

.settings-upload__title {
    font-weight: 700;
}

.settings-upload__hint {
    font-size: 13px;
}

.settings-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #55b26c 0%, #2a9148 100%);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.settings-button:disabled {
    cursor: default;
    opacity: 0.65;
}

.settings-button--secondary {
    background: #5865F2;
}

.settings-button--disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 248, 255, 0.76);
}

.settings-feedback {
    position: relative;
    z-index: 1;
    margin: 0 0 14px 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.settings-feedback[data-variant="success"] {
    background: rgba(59, 165, 92, 0.16);
    border: 1px solid rgba(59, 165, 92, 0.24);
}

.settings-feedback[data-variant="error"] {
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(220, 38, 38, 0.24);
}

.settings-securityGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-securityItem {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-securityItem__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.settings-securityItem__title {
    margin: 0;
    font-size: 16px;
}

.settings-securityItem__text {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-card--profile,
    .settings-card--security {
        grid-row: auto;
        grid-column: span 1;
    }

    .settings-securityGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .settings-shell {
        padding: 14px;
    }

    .settings-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-topbar__actions {
        justify-content: flex-end;
    }

    .settings-title {
        font-size: 34px;
    }

    .settings-avatarWrap {
        width: 140px;
        height: 140px;
    }

    .settings-avatar {
        width: 96px;
        height: 96px;
    }

    .settings-securityItem__top {
        flex-direction: column;
    }
}

.notifications-page {
    display: block;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    background: #f5f5f7;
}

.notifications-shell {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notifications-page .appbar {
    width: 100%;
    border-radius: 0;
    margin: 0;
}

.appbar__section--notifications {
    color: #3ba55c;
}


.notifications-stage,
.notifications-create {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.notifications-page .notifications-stage > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 320ms ease, transform 320ms ease;
}

body.notifications-page.notifications-page--ready .notifications-stage > * {
    opacity: 1;
    transform: translateY(0);
}

body.notifications-page.notifications-page--ready .notifications-stage > *:nth-child(1) {
    transition-delay: 30ms;
}

body.notifications-page.notifications-page--ready .notifications-stage > *:nth-child(2) {
    transition-delay: 70ms;
}

body.notifications-page.notifications-page--ready .notifications-stage > *:nth-child(3) {
    transition-delay: 110ms;
}

body.notifications-page.notifications-page--ready .notifications-stage > *:nth-child(4) {
    transition-delay: 150ms;
}

@media (prefers-reduced-motion: reduce) {
    body.notifications-page .notifications-stage > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.notifications-hero,
.notifications-create__header {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.notifications-hero {
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0 2px 0;
}

.notifications-create__header {
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #d7d7dc;
    box-shadow: none;
}

.notifications-hero__icon,
.notifications-create__icon {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
}

.notifications-hero__icon {
    margin-left: auto;
}

.notifications-hero__texts,
.notifications-create__header > div {
    flex: 1;
}

.notifications-hero__title,
.notifications-create__title {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.notifications-hero__subtitle,
.notifications-create__subtitle {
    margin: 10px 0 0 0;
    color: rgba(15, 23, 42, 0.78);
    font-size: 15px;
}

.notifications-refresh,
.notifications-submit {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.notifications-refresh {
    padding: 10px 14px;
    background: #f8fafc;
    color: #0f172a;
}

.notifications-submit {
    margin-top: 8px;
    padding: 12px 16px;
    background: #3ba55c;
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

.notifications-refresh:hover,
.notifications-submit:hover {
    filter: brightness(0.96);
}

.notifications-createLink,
.notifications-create__backLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    background: #f8fafc;
}

.notifications-createLink:hover,
.notifications-create__backLink:hover {
    filter: brightness(0.97);
}

.notifications-actionCard {
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #ffffff;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notifications-actionCard__text {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
}

.notifications-actionCard__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(59, 165, 92, 0.36);
    background: #3ba55c;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    height: 44px;
    line-height: 1;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
}

.notifications-actionCard__buttonIcon {
    width: 16px;
    height: 16px;
    display: block;
}

.notifications-actionCard:hover {
    background: #ffffff;
}

.notifications-actionCard__button:hover {
    filter: brightness(0.96);
}

.notifications-feedback {
    margin: 0;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    font-size: 14px;
}

.notifications-feedback--success,
.notifications-feedback[data-variant="success"] {
    border-color: rgba(59, 165, 92, 0.32);
    background: rgba(59, 165, 92, 0.12);
}

.notifications-feedback--error,
.notifications-feedback[data-variant="error"] {
    border-color: rgba(220, 38, 38, 0.32);
    background: rgba(220, 38, 38, 0.12);
}

.notifications-pushCard {
    margin: 0 0 12px 0;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #ffffff;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notifications-pushCard__text {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
}

.notifications-pushCard__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(95, 104, 190, 0.48);
    background: #5865f2;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
    height: 44px;
    line-height: 1;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
}

.notifications-pushCard__buttonIcon {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

.notifications-pushCard__button:hover {
    filter: brightness(0.96);
}

.notifications-days {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notifications-day {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notifications-day__title {
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: rgba(15, 23, 42, 0.6);
    font-weight: 700;
}

.notifications-day__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notifications-wall {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.notifications-empty {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fbfdff;
    padding: 14px;
}

.notifications-empty__title {
    margin: 0;
    font-size: 17px;
    color: #0f172a;
}

.notifications-empty__text {
    margin: 8px 0 0 0;
    color: rgba(15, 23, 42, 0.82);
    line-height: 1.5;
    white-space: pre-wrap;
}

.notifications-row {
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(160px, 0.85fr) minmax(130px, 0.6fr) minmax(220px, 1.4fr);
    gap: 12px;
    align-items: center;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 14px 18px;
    cursor: pointer;
    transition: background-color 0.14s ease;
}

.notifications-row:hover {
    background: #f8fafc;
}

.notifications-row.is-selected {
    background: #eef8f1;
}

.notifications-rowWrap {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.notifications-row__sender,
.notifications-row__title,
.notifications-row__time {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notifications-row__sender {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.notifications-row__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3b82f6;
    flex: 0 0 8px;
}

.notifications-row__time {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.62);
}

.notifications-row__title {
    font-size: 14px;
    color: rgba(15, 23, 42, 0.86);
}

.notifications-row.is-unread .notifications-row__sender,
.notifications-row.is-unread .notifications-row__time,
.notifications-row.is-unread .notifications-row__title {
    font-weight: 700;
}

.notifications-row:not(.is-unread) .notifications-row__dot {
    display: none;
}

.notifications-rowDetail {
    border-top: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
    background: #f8fafc;
    padding: 10px 14px;
    animation: notifications-detail-in 180ms ease;
}

.notifications-rowDetail.is-closing {
    animation: notifications-detail-out 160ms ease forwards;
}

.notifications-rowDetail__body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(15, 23, 42, 0.88);
    white-space: pre-wrap;
}

@keyframes notifications-detail-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes notifications-detail-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.notifications-viewer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 278px);
    position: sticky;
    top: 90px;
}

.notifications-viewer__kicker {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(15, 23, 42, 0.54);
    font-weight: 700;
}

.notifications-viewer__title {
    margin: 0;
    font-size: clamp(34px, 4vw, 62px);
    line-height: 1.02;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.notifications-viewer__body {
    margin: 16px 0 0 0;
    font-size: clamp(17px, 1.9vw, 22px);
    line-height: 1.56;
    color: rgba(15, 23, 42, 0.92);
    white-space: pre-wrap;
}

.notifications-viewer__meta {
    margin: 18px 0 0 0;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.66);
}

.notifications-viewer--empty .notifications-viewer__title {
    font-size: clamp(28px, 3vw, 42px);
}

.notifications-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notifications-field__label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.86);
}

.notifications-field__input,
.notifications-field__textarea,
.notifications-field__select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
}

.notifications-field__textarea {
    resize: vertical;
    min-height: 120px;
}

.notifications-field__select {
    min-height: 48px;
}

.notifications-field__input:focus,
.notifications-field__textarea:focus,
.notifications-field__select:focus {
    outline: none;
    border-color: rgba(95, 104, 190, 0.65);
    box-shadow: 0 0 0 3px rgba(95, 104, 190, 0.18);
}

.notifications-fieldset {
    margin: 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.13);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notifications-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 14px;
}

.notifications-targetUsers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notifications-targetHint {
    margin: 0;
    color: rgba(15, 23, 42, 0.62);
    font-size: 12px;
}

.notifications-create {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.notifications-create-page .notifications-create__topLink,
body.notifications-create-page .notifications-create__hero,
body.notifications-create-page #notificationsCreateFeedback,
body.notifications-create-page .notifications-create__layout > .notifications-create__card,
body.notifications-create-page .notifications-create__layout > .notifications-create__preview {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 300ms ease, transform 300ms ease;
}

body.notifications-create-page.notifications-create-page--ready .notifications-create__topLink,
body.notifications-create-page.notifications-create-page--ready .notifications-create__hero,
body.notifications-create-page.notifications-create-page--ready #notificationsCreateFeedback,
body.notifications-create-page.notifications-create-page--ready .notifications-create__layout > .notifications-create__card,
body.notifications-create-page.notifications-create-page--ready .notifications-create__layout > .notifications-create__preview {
    opacity: 1;
    transform: translateY(0);
}

body.notifications-create-page.notifications-create-page--ready .notifications-create__layout > .notifications-create__card:nth-child(1) {
    transition-delay: 70ms;
}

body.notifications-create-page.notifications-create-page--ready .notifications-create__layout > .notifications-create__card:nth-child(2) {
    transition-delay: 120ms;
}

body.notifications-create-page.notifications-create-page--ready .notifications-create__layout > .notifications-create__preview {
    transition-delay: 170ms;
}

@media (prefers-reduced-motion: reduce) {
    body.notifications-create-page .notifications-create__topLink,
    body.notifications-create-page .notifications-create__hero,
    body.notifications-create-page #notificationsCreateFeedback,
    body.notifications-create-page .notifications-create__layout > .notifications-create__card,
    body.notifications-create-page .notifications-create__layout > .notifications-create__preview {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.notifications-create__topLink {
    display: inline-block;
    margin: 8px 0 0 0;
    color: rgba(15, 23, 42, 0.74);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.notifications-create__topLink:hover {
    color: #0f172a;
    text-decoration: underline;
}

.notifications-create__hero {
    margin-bottom: 4px;
}

.notifications-create__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    justify-content: stretch;
    align-items: stretch;
}

.notifications-create__form {
    margin: 0;
    display: grid;
}

.notifications-create__card,
.notifications-create__preview {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #0b0b0d;
    box-shadow: none;
    padding: 18px;
    min-height: 0;
    color: #e5e7eb;
    overflow: visible;
}

.notifications-create__preview--wide {
    grid-column: 1 / -1;
    height: 300px;
}

.notifications-create__block--content,
.notifications-create__block--targets {
    height: auto;
    min-height: 300px;
}

.notifications-create__form {
    align-items: stretch;
}

.notifications-create__block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.notifications-create__blockTitle {
    margin: 0;
    color: #f3f4f6;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.notifications-create__blockTitle--withIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notifications-create__fieldLabel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
}

.notifications-create__fieldIcon {
    width: 20px;
    height: 20px;
    display: block;
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(92%) sepia(7%) saturate(344%) hue-rotate(185deg) brightness(104%) contrast(95%);
}

.notifications-create__block--content .notifications-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notifications-create__block--content .notifications-field:last-of-type {
    flex: 1;
    min-height: 0;
}

.notifications-create__targetSwitch {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.13);
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.notifications-create__targetOption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    padding: 10px;
    color: #0f172a;
    font-size: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.notifications-create__targetOption span {
    text-align: center;
}

.notifications-create__block--targets {
    justify-content: flex-start;
}

.notifications-create__block--targets .notifications-create__targetSwitch {
    width: min(100%, 520px);
    margin: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.notifications-create__recipients {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.notifications-create__recipientsTop {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.notifications-create__recipientsTop .notifications-field {
    margin: 0;
}

.notifications-create__recipientsTop .notifications-field__label {
    margin-bottom: 2px;
    color: rgba(226, 232, 240, 0.9);
}

.notifications-create__recipientsActions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.notifications-create__ghostBtn {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(30, 41, 59, 0.92);
    color: #f3f4f6;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}

.notifications-create__ghostBtn:hover {
    filter: brightness(0.97);
}

.notifications-create__recipientsList {
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: none;
    min-height: 120px;
}

.notifications-create__recipientItem {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.72);
    padding: 10px;
}

.notifications-create__recipientIdentity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notifications-create__recipientIdentity strong {
    color: #f3f4f6;
    font-size: 14px;
}

.notifications-create__recipientIdentity small {
    color: rgba(226, 232, 240, 0.72);
    font-size: 12px;
}

.notifications-create__recipientsCount {
    margin: 0;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.72);
}

.notifications-create__empty {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
}

.notifications-create__preview {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.notifications-previewCard {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background:
        radial-gradient(circle at top right, rgba(59, 165, 92, 0.14), transparent 38%),
        radial-gradient(circle at bottom left, rgba(95, 104, 190, 0.14), transparent 40%),
        #f8fbff;
    padding: 18px;
}

.notifications-create__previewSurface {
    flex: 1;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 14, 25, 0.14) 0%, rgba(8, 14, 25, 0.46) 100%),
        url('/img/background.jpg') center/cover no-repeat;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-previewCard--ios {
    width: min(760px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: rgba(242, 242, 247, 0.78);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    box-shadow: 0 22px 48px rgba(2, 8, 20, 0.38);
    padding: 16px 18px;
    height: 100%;
    box-sizing: border-box;
}

.notifications-previewCard__iosLayout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    height: 100%;
    min-height: 0;
}

.notifications-previewCard__headIconWrap {
    align-self: center;
}

.notifications-previewCard__iosContent {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "title"
        "meta"
        "body";
    column-gap: 0;
    row-gap: 6px;
    align-items: start;
    justify-content: center;
}

.notifications-previewCard__headIcon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-sizing: content-box;
}

.notifications-previewCard__title {
    grid-area: title;
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notifications-previewCard__body {
    grid-area: body;
    margin: 6px 0 0 0;
    color: rgba(15, 23, 42, 0.84);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    font-size: 14px;
}

.notifications-previewCard__meta {
    grid-area: meta;
    margin: 8px 0 0 0;
    color: rgba(15, 23, 42, 0.84);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#createNotificationMessage {
    font-size: 14px;
    line-height: 1.45;
    height: 100%;
    min-height: 0;
    max-height: none;
    flex: 1;
    resize: none;
}

.notifications-create__card .notifications-field__input,
.notifications-create__card .notifications-field__textarea,
.notifications-create__card .notifications-field__select,
.notifications-create__card .notifications-create__targetSwitch {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.35);
    color: #f3f4f6;
}

.notifications-create__card .notifications-field__input::placeholder,
.notifications-create__card .notifications-field__textarea::placeholder {
    color: rgba(226, 232, 240, 0.62);
}

.notifications-create__previewSubmit {
    width: 100%;
}

body:not(.theme-dark).notifications-page {
    background: #f3f4f8;
}

body:not(.theme-dark) .notifications-create__card,
body:not(.theme-dark) .notifications-create__preview {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

body:not(.theme-dark) .notifications-create__blockTitle,
body:not(.theme-dark) .notifications-create__fieldLabel {
    color: #0f172a;
}

body:not(.theme-dark) .notifications-create__fieldIcon {
    filter: brightness(0) saturate(100%) invert(12%) sepia(9%) saturate(673%) hue-rotate(190deg) brightness(95%) contrast(92%);
}

body:not(.theme-dark) .notifications-create__card .notifications-field__input,
body:not(.theme-dark) .notifications-create__card .notifications-field__textarea,
body:not(.theme-dark) .notifications-create__card .notifications-field__select,
body:not(.theme-dark) .notifications-create__card .notifications-create__targetSwitch {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
}

body:not(.theme-dark) .notifications-create__targetOption {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

body:not(.theme-dark) .notifications-create__recipients {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.2);
}

body:not(.theme-dark) .notifications-create__recipientItem {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
}

body:not(.theme-dark) .notifications-create__recipientIdentity strong {
    color: #0f172a;
}

body:not(.theme-dark) .notifications-create__recipientIdentity small,
body:not(.theme-dark) .notifications-create__recipientsTop .notifications-field__label,
body:not(.theme-dark) .notifications-create__recipientsCount,
body:not(.theme-dark) .notifications-create__empty,
body:not(.theme-dark) .notifications-targetHint {
    color: rgba(15, 23, 42, 0.72);
}

body:not(.theme-dark) .notifications-create__card .notifications-field__input::placeholder,
body:not(.theme-dark) .notifications-create__card .notifications-field__textarea::placeholder {
    color: rgba(15, 23, 42, 0.42);
}

body:not(.theme-dark) .notifications-create__previewSurface {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(15, 23, 42, 0.16) 100%),
        url('/img/background.jpg') center/cover no-repeat;
}

@media (max-width: 980px) {
    .notifications-create__layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .notifications-create__card,
    .notifications-create__preview {
        height: auto;
    }

    .notifications-create__preview--wide {
        grid-column: 1 / -1;
        height: auto;
        min-height: 220px;
    }

    .notifications-create__block--content,
    .notifications-create__block--targets {
        min-height: 300px;
    }

    .notifications-create__block--content,
    .notifications-create__block--targets {
        height: auto;
    }
}

@media (max-width: 720px) {
    .notifications-page {
        padding: 0;
    }

    .notifications-stage,
    .notifications-create {
        width: calc(100% - 22px);
        margin-bottom: 12px;
    }

    .notifications-hero,
    .notifications-create__card,
    .notifications-create__preview,
    .notifications-viewer {
        padding: 14px;
        border-radius: 18px;
    }

    .notifications-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .notifications-hero__icon {
        margin-left: auto;
        margin-right: auto;
        order: -1;
        width: 108px;
        height: 108px;
    }

    .notifications-hero__texts {
        text-align: center;
        width: 100%;
    }

    .notifications-hero__title,
    .notifications-create__blockTitle {
        font-size: 34px;
    }

    .notifications-hero__actions,
    .notifications-create__layout {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .notifications-refresh,
    .notifications-submit,
    .notifications-createLink,
    .notifications-create__backLink {
        width: 100%;
    }

    .notifications-pushCard {
        flex-direction: column;
        align-items: center;
    }

    .notifications-pushCard__text,
    .notifications-actionCard__text {
        text-align: center;
    }

    .notifications-pushCard__button,
    .notifications-actionCard__button {
        width: auto;
        justify-content: center;
        height: 44px;
        min-width: 0;
        align-self: center;
    }

    .notifications-create__targetSwitch {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .notifications-create__targetOption {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .notifications-listHead,
    .notifications-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .notifications-row {
        padding: 13px 16px;
    }

    .notifications-day__title {
        font-size: 15px;
    }

    .notifications-actionCard {
        flex-direction: column;
        align-items: center;
    }

    .notifications-actionCard__button {
        width: auto;
        text-align: center;
        padding: 0 14px;
        height: 44px;
        font-size: 14px;
    }

    .notifications-create__previewSurface {
        padding: 12px;
        min-height: 180px;
    }

    .notifications-previewCard--ios {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    .notifications-previewCard__iosLayout {
        height: auto;
        align-items: flex-start;
    }

    .notifications-create__previewSubmit {
        margin-top: 8px;
    }

    body:not(.theme-dark) .notifications-create__card,
    body:not(.theme-dark) .notifications-create__preview {
        background: #ffffff;
        border-color: rgba(15, 23, 42, 0.12);
        color: #0f172a;
    }

    body:not(.theme-dark) .notifications-create__blockTitle,
    body:not(.theme-dark) .notifications-create__fieldLabel {
        color: #0f172a;
    }

    body:not(.theme-dark) .notifications-create__fieldIcon {
        filter: brightness(0) saturate(100%) invert(12%) sepia(9%) saturate(673%) hue-rotate(190deg) brightness(95%) contrast(92%);
    }

    body:not(.theme-dark) .notifications-create__card .notifications-field__input,
    body:not(.theme-dark) .notifications-create__card .notifications-field__textarea,
    body:not(.theme-dark) .notifications-create__card .notifications-field__select,
    body:not(.theme-dark) .notifications-create__card .notifications-create__targetSwitch {
        background: #f8fafc;
        border-color: rgba(15, 23, 42, 0.2);
        color: #0f172a;
    }

    body:not(.theme-dark) .notifications-create__targetOption {
        background: rgba(15, 23, 42, 0.08);
        color: #0f172a;
    }

    body:not(.theme-dark) .notifications-create__recipients {
        background: #f8fafc;
        border-color: rgba(15, 23, 42, 0.2);
    }

    body:not(.theme-dark) .notifications-create__recipientsTop .notifications-field__label,
    body:not(.theme-dark) .notifications-create__recipientsCount,
    body:not(.theme-dark) .notifications-create__empty {
        color: rgba(15, 23, 42, 0.74);
    }

    body:not(.theme-dark) .notifications-create__card .notifications-field__input::placeholder,
    body:not(.theme-dark) .notifications-create__card .notifications-field__textarea::placeholder {
        color: rgba(15, 23, 42, 0.42);
    }

    .notifications-create__topLink {
        margin-left: 0;
    }

    .notifications-create__recipientsActions {
        grid-template-columns: 1fr;
    }
}

body.theme-dark.notifications-page {
    background: #1c1c1e;
}

body.theme-dark .notifications-hero,
body.theme-dark .notifications-create__card,
body.theme-dark .notifications-create__composer,
body.theme-dark .notifications-create__preview,
body.theme-dark .notifications-empty,
body.theme-dark .notifications-row,
body.theme-dark .notifications-create__block,
body.theme-dark .notifications-create__recipientItem,
body.theme-dark .notifications-previewCard,
body.theme-dark .notifications-create__targetSwitch,
body.theme-dark .notifications-create__recipients {
    background: rgba(12, 18, 34, 0.88);
    border-color: rgba(148, 163, 184, 0.20);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

body.theme-dark .notifications-hero {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.theme-dark .notifications-hero__icon,
body.theme-dark .notifications-create__icon {
    filter: brightness(0) saturate(100%) invert(95%) sepia(6%) saturate(153%) hue-rotate(187deg) brightness(102%) contrast(93%);
}

body.theme-dark .notifications-row {
    background: #000000;
    border-color: rgba(148, 163, 184, 0.26);
}

body.theme-dark .notifications-hero__title,
body.theme-dark .notifications-create__blockTitle,
body.theme-dark .notifications-empty__title,
body.theme-dark .notifications-day__title,
body.theme-dark .notifications-radio,
body.theme-dark .notifications-viewer__title,
body.theme-dark .notifications-previewCard__title,
body.theme-dark .notifications-create__targetOption,
body.theme-dark .notifications-create__recipientIdentity strong {
    color: #e2e8f0;
}

body.theme-dark .notifications-hero__subtitle,
body.theme-dark .notifications-create__topLink,
body.theme-dark .notifications-targetHint,
body.theme-dark .notifications-field__label,
body.theme-dark .notifications-viewer__kicker,
body.theme-dark .notifications-viewer__meta,
body.theme-dark .notifications-previewCard__meta,
body.theme-dark .notifications-create__recipientsCount,
body.theme-dark .notifications-create__recipientIdentity small,
body.theme-dark .notifications-create__empty {
    color: rgba(226, 232, 240, 0.72);
}

body.theme-dark .notifications-tile__message,
body.theme-dark .notifications-empty__text,
body.theme-dark .notifications-viewer__body,
body.theme-dark .notifications-previewCard__body {
    color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .notifications-previewCard--ios {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(20, 24, 35, 0.9);
}

body.theme-dark .notifications-previewCard__iosTime,
body.theme-dark .notifications-previewCard--ios .notifications-previewCard__meta {
    color: rgba(226, 232, 240, 0.74);
}

body.theme-dark .notifications-previewCard--ios .notifications-previewCard__headIcon {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.4);
}

body.theme-dark .notifications-create__fieldIcon {
    filter: brightness(0) saturate(100%) invert(91%) sepia(13%) saturate(206%) hue-rotate(178deg) brightness(96%) contrast(93%);
}

body.theme-dark .notifications-create__block--content,
body.theme-dark .notifications-create__block--targets {
    background: #000000;
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: none;
}

body.theme-dark .notifications-previewCard--ios .notifications-previewCard__title,
body.theme-dark .notifications-previewCard--ios .notifications-previewCard__body {
    color: #f3f4f6;
}

body.theme-dark .notifications-row__time,
body.theme-dark .notifications-row__title {
    color: rgba(226, 232, 240, 0.72);
}

body.theme-dark .notifications-row__sender {
    color: #e2e8f0;
}

body.theme-dark .notifications-row__dot {
    background: #60a5fa;
}

body.theme-dark .notifications-rowDetail {
    background: #0a0a0a;
    border-color: rgba(148, 163, 184, 0.24);
}

body.theme-dark .notifications-rowDetail__body {
    color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .notifications-pushCard__buttonIcon {
    filter: brightness(0) saturate(100%) invert(87%) sepia(9%) saturate(317%) hue-rotate(183deg) brightness(103%) contrast(94%);
}

body.theme-dark .notifications-refresh,
body.theme-dark .notifications-createLink,
body.theme-dark .notifications-create__backLink,
body.theme-dark .notifications-actionCard,
body.theme-dark .notifications-create__ghostBtn,
body.theme-dark .notifications-field__input,
body.theme-dark .notifications-field__textarea,
body.theme-dark .notifications-field__select {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.34);
    color: #e2e8f0;
}

body.theme-dark .notifications-actionCard,
body.theme-dark .notifications-pushCard {
    background: #000000;
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: none;
}

body.theme-dark .notifications-actionCard__button {
    background: #3ba55c;
    border-color: rgba(59, 165, 92, 0.36);
    color: #ffffff;
}

body.theme-dark .notifications-actionCard__text {
    color: #e2e8f0;
}

body.theme-dark .notifications-feedback {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

body.theme-dark .notifications-pushCard {
    border-color: rgba(148, 163, 184, 0.34);
    background: #000000;
}

body.theme-dark .notifications-pushCard__text {
    color: #e2e8f0;
}

body.theme-dark .notifications-row.is-selected {
    background: rgba(74, 222, 128, 0.14);
}

body.theme-dark .notifications-rowWrap {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(12, 18, 34, 0.88);
    box-shadow: none;
}