.app-auth-bar {
    position: fixed;
    top: var(--app-page-top, 22px);
    right: 16px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    width: auto;
    max-width: min(560px, calc(100vw - 32px));
    height: 58px;
    color: var(--app-text, #17202a);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

.app-active-band-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 196px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--app-text, #17202a);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-align: right;
    backdrop-filter: none;
}

.app-active-band-badge[hidden] {
    display: none;
}

.app-active-band-badge span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-active-band-badge img {
    display: none;
    width: auto;
    max-width: 186px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.app-active-band-badge.has-logo {
    min-width: 104px;
    min-height: 54px;
    padding: 0;
}

.app-active-band-badge.has-logo img {
    display: block;
}

.app-auth-bar[hidden] {
    display: none;
}

.app-communication-shortcut {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    min-width: 46px;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111318 !important;
    box-shadow: none;
    text-decoration: none;
    transition: color 170ms ease;
}

:root[data-theme="dark"] .app-communication-shortcut {
    color: #ffffff !important;
}

.app-communication-shortcut:hover,
.app-communication-shortcut:focus-visible {
    outline: none;
}

.app-communication-shortcut-icon {
    display: block;
    width: 34px;
    height: 34px;
    background: currentColor;
    -webkit-mask: url('/assets/icons/communication.svg?v=20260711-communication2') center / contain no-repeat;
    mask: url('/assets/icons/communication.svg?v=20260711-communication2') center / contain no-repeat;
}

.app-communication-shortcut-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: #d51f2a;
    box-shadow: 0 0 0 2px var(--app-surface, #ffffff);
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.app-communication-shortcut-dot[hidden] {
    display: none !important;
}

body.has-app-quick-footer {
    padding-bottom: max(58px, env(safe-area-inset-bottom, 0px) + 48px) !important;
}

.app-quick-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: block;
    background: color-mix(in srgb, var(--app-bg, #f4f7fb) 94%, transparent);
    color: var(--app-muted, #536270);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    backdrop-filter: blur(18px);
}

.app-quick-footer-inner {
    display: flex;
    width: var(--app-content-width, min(1180px, calc(100vw - 48px)));
    max-width: var(--app-content-max, 1180px);
    min-height: 42px;
    margin: 0 auto;
    border-top: 1px solid var(--app-line, #d8dee6);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.app-quick-footer-brand,
.app-quick-footer-links {
    display: flex;
    align-items: center;
    min-width: 0;
}

.app-quick-footer-brand {
    min-height: 42px;
    align-items: center;
    gap: 9px;
}

.app-quick-module-menu {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.app-quick-module-menu[hidden],
.app-quick-module-menu.is-disabled {
    display: none !important;
}

.app-quick-module-current {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 5px 13px 5px 10px;
    border-radius: 0;
    background: var(--quick-module-accent, var(--app-muted, #536270));
    color: var(--quick-module-on, #ffffff) !important;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.app-quick-module-current-icon,
.app-quick-module-pill-icon {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
}

.app-quick-module-icon-mask {
    background: currentColor;
    -webkit-mask: var(--quick-icon-url) center / contain no-repeat;
    mask: var(--quick-icon-url) center / contain no-repeat;
}

.app-quick-module-icon-letter {
    border-radius: 8px;
    background: color-mix(in srgb, currentColor 16%, transparent);
    color: inherit;
    font-size: 10px;
    font-weight: 950;
}

.app-quick-module-panel {
    position: fixed;
    bottom: 42px;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    width: 100vw;
    max-width: none;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    border: 0;
    border-top: 1px solid var(--app-line, #d8dee6);
    border-radius: 0;
    background: color-mix(in srgb, var(--app-bg, #f4f7fb) 96%, transparent);
    box-shadow: 0 16px 34px rgba(23, 32, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 150ms ease, transform 150ms ease;
    backdrop-filter: blur(18px);
}

.app-quick-module-menu:hover .app-quick-module-panel,
.app-quick-module-menu:focus-within .app-quick-module-panel,
.app-quick-module-menu.is-open .app-quick-module-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.app-quick-module-list {
    display: flex;
    box-sizing: border-box;
    width: min(100vw, var(--app-content-width, min(1180px, calc(100vw - 48px))));
    max-width: var(--app-content-max, 1180px);
    margin: 0 auto;
    padding: 0 max(10px, env(safe-area-inset-left, 0px)) 0 max(10px, env(safe-area-inset-right, 0px));
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-padding-inline: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--app-muted, #536270) transparent;
}

.app-quick-module-pill {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 4px 11px 4px 7px;
    border: 1px solid color-mix(in srgb, var(--app-muted, #536270) 30%, var(--app-line, #d8dee6));
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-muted, #536270) 7%, var(--app-surface, #ffffff));
    color: var(--app-muted, #536270) !important;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.app-quick-module-pill:hover,
.app-quick-module-pill:focus-visible {
    border-color: var(--quick-module-accent, var(--app-primary, #1f6f8b));
    background: var(--quick-module-accent, var(--app-primary, #1f6f8b));
    color: var(--quick-module-on, #ffffff) !important;
    outline: none;
    transform: translateY(-1px);
}

.app-quick-footer-logo {
    --brand-logo-size: 34px;
    --brand-logo-accent: var(--module-page-accent, var(--app-muted, #9aa5b1));
    flex: 0 0 auto;
}

.app-quick-footer-license-separator {
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: var(--app-muted, #536270);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.app-quick-footer-license {
    display: inline-flex;
    align-items: center;
    align-self: center;
    min-height: 34px;
    color: var(--app-text, #17202a);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.app-quick-footer-links {
    justify-content: flex-end;
    gap: 16px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.app-quick-footer-links a {
    color: var(--app-muted, #536270) !important;
    text-decoration: none;
}

.app-quick-footer-links a:hover,
.app-quick-footer-links a:focus-visible {
    color: var(--app-text, #17202a) !important;
    outline: none;
}

.app-quick-footer-version {
    color: var(--app-muted, #536270);
}

.app-quick-footer-version strong {
    color: var(--app-text, #17202a);
    font-weight: 900;
}

.app-module-home {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid var(--app-line, #d8dee6);
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-surface, #ffffff) 94%, transparent);
    box-shadow: var(--app-shadow-card, 0 8px 22px rgba(23, 32, 42, 0.08));
    color: var(--app-text, #17202a);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    backdrop-filter: blur(14px);
}

.app-module-home::before {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

body[data-auth-required="true"]:not([data-auth-ready="true"]) {
    visibility: hidden;
}

.app-auth-user {
    display: none;
    padding-left: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-profile-avatar {
    position: relative;
    display: grid;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px;
    min-height: 58px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid color-mix(in srgb, var(--app-surface, #ffffff) 90%, transparent);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 36%, #f7f8fa 0 17%, transparent 18%),
        radial-gradient(circle at 50% 78%, #d9dde3 0 34%, transparent 35%),
        linear-gradient(145deg, #f3f4f6, #cfd5dc);
    background-position: center;
    background-size: cover;
    color: #7b8590;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(23, 32, 42, 0.18), 0 0 0 1px var(--app-line, #d8dee6);
    transition: transform 170ms ease, box-shadow 170ms ease;
}

.app-profile-avatar:hover,
.app-profile-avatar:focus-visible,
.app-profile-avatar[aria-expanded="true"] {
    outline: none;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 18px 34px rgba(23, 32, 42, 0.22), 0 0 0 2px var(--app-primary, #1f6f8b);
}

.app-profile-avatar.has-image {
    background-color: #e5e9ef;
}

.app-profile-avatar img {
    display: none;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}

.app-profile-avatar.has-image img {
    display: block;
}

.app-profile-avatar.has-image svg {
    display: none;
}

.app-profile-avatar svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.app-profile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    width: min(330px, 92vw);
    height: min(330px, 92vw);
    overflow: hidden;
    border-radius: 0 0 0 100%;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--app-surface-strong, #ffffff) 94%, transparent) 0 42%, color-mix(in srgb, var(--app-surface, #ffffff) 96%, transparent) 43% 100%);
    box-shadow: -18px 22px 58px rgba(23, 32, 42, 0.18);
    color: var(--app-text, #17202a);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    pointer-events: none;
    transform: scale(0.16);
    transform-origin: 100% 0%;
    opacity: 0;
    transition:
        transform 420ms cubic-bezier(0.2, 1.45, 0.36, 1),
        opacity 180ms ease;
    backdrop-filter: blur(18px);
}

.app-profile-menu[hidden] {
    display: block;
    visibility: hidden;
}

.app-profile-menu.is-open {
    pointer-events: auto;
    transform: scale(1);
    opacity: 1;
}

.app-profile-menu-content {
    position: absolute;
    top: 98px;
    right: 28px;
    display: grid;
    width: min(210px, calc(92vw - 92px));
    gap: 14px;
}

.app-profile-menu-top {
    display: grid;
    align-items: center;
}

.app-profile-menu-name {
    min-width: 0;
    overflow: hidden;
    color: var(--app-text, #17202a);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.15;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-active-band-wrap {
    display: grid;
    gap: 6px;
    color: var(--app-muted, #536270);
    font-size: 12px;
    font-weight: 750;
    justify-items: end;
}

.app-active-band-wrap[hidden] {
    display: none;
}

.app-active-band-wrap select {
    box-sizing: border-box;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--app-line, #c8d1db);
    border-radius: 999px;
    background: var(--app-surface-strong, #ffffff);
    color: var(--app-text, #17202a);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

.app-profile-menu-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.app-profile-icon-action {
    --profile-action-color: #66717d;
    --profile-action-soft: color-mix(in srgb, var(--profile-action-color) 10%, var(--app-surface, #ffffff));
    --profile-action-border: color-mix(in srgb, var(--profile-action-color) 38%, var(--app-line, #d8dee6));
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--profile-action-border) !important;
    border-radius: 14px !important;
    background: var(--profile-action-soft) !important;
    color: var(--profile-action-color) !important;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    transition: none;
}

#appProfileSetupAction {
    --profile-action-color: #66717d;
}

#appProfileLogoutAction {
    --profile-action-color: #8f2630;
}

#appProfileLogoutAction svg {
    transform: translateX(-4px);
}

:root[data-icon-style="filled"] .app-profile-icon-action,
:root[data-icon-style="outline"] .app-profile-icon-action:hover,
:root[data-icon-style="outline"] .app-profile-icon-action:focus-visible {
    border-color: transparent !important;
    background: var(--profile-action-color) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(23, 32, 42, 0.12);
}

:root[data-icon-style="filled"] .app-profile-icon-action:hover,
:root[data-icon-style="filled"] .app-profile-icon-action:focus-visible {
    border-color: var(--profile-action-border) !important;
    background: var(--profile-action-soft) !important;
    color: var(--profile-action-color) !important;
    box-shadow: none;
}

.app-profile-icon-action:hover,
.app-profile-icon-action:focus-visible {
    outline: none;
    transform: none;
    filter: none;
}

.app-profile-icon-action svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-profile-icon-mask {
    display: block;
    width: 26px;
    height: 26px;
    background: currentColor;
}

.app-profile-icon-mask--setup {
    -webkit-mask: url("/assets/icons/equalizer.svg?v=20260615-setupicon1") center / contain no-repeat;
    mask: url("/assets/icons/equalizer.svg?v=20260615-setupicon1") center / contain no-repeat;
}

@media (max-width: 680px) {
    .app-auth-bar {
        top: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
        height: 50px;
        gap: 8px;
    }

    .app-active-band-badge {
        max-width: 132px;
        min-height: 34px;
        padding: 0;
        font-size: 11px;
    }

    .app-active-band-badge img {
        max-width: 126px;
        max-height: 38px;
    }

    .app-active-band-badge.has-logo {
        min-width: 74px;
        min-height: 40px;
    }

    .app-profile-avatar {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px;
        min-height: 50px;
    }

    .app-module-home {
        top: 12px;
        left: 10px;
        min-height: 34px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .app-profile-menu {
        width: min(300px, 94vw);
        height: min(300px, 94vw);
    }

    .app-profile-menu-content {
        top: 84px;
        right: 22px;
        width: min(190px, calc(94vw - 88px));
        gap: 12px;
    }

    .app-profile-menu-name {
        font-size: 16px;
    }

    .app-profile-icon-action {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .app-module-home {
        width: 38px;
        min-width: 38px;
        padding: 0;
        justify-content: center;
        overflow: hidden;
        color: transparent;
    }

    .app-module-home::before {
        margin-right: 0;
        color: var(--app-text, #17202a);
    }
}

.app-setup-shortcut {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--app-line, #d8dee6);
    border-radius: 50%;
    background: var(--app-surface-strong, #ffffff);
    color: var(--app-muted, #536270);
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.app-setup-shortcut:hover,
.app-setup-shortcut:focus-visible {
    border-color: var(--app-primary, #1f6f8b);
    color: var(--app-primary, #1f6f8b);
    outline: none;
}

.app-setup-shortcut svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--app-muted, #536270);
    font-size: 13px;
    font-weight: 600;
}

.app-language-switcher select {
    width: auto;
    min-width: 64px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid var(--app-line, #c8d1db);
    border-radius: 999px;
    background: var(--app-surface-strong, #ffffff);
    color: var(--app-text, #17202a);
    font: inherit;
}

.app-language-floating {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1000;
    padding: 8px 10px;
    border: 1px solid var(--app-line, #d8dee6);
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-surface, #ffffff) 94%, transparent);
    box-shadow: var(--app-shadow-card, 0 8px 22px rgba(23, 32, 42, 0.08));
}

.app-auth-button,
.app-login-card button {
    border: 1px solid var(--app-primary, #1f6f8b);
    border-radius: 999px;
    background: var(--app-primary, #1f6f8b);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.app-auth-button {
    flex: 0 0 auto;
    padding: 8px 13px;
}

.app-auth-bar .app-auth-button {
    display: none;
    width: auto;
    margin: 0;
}

.app-auth-button.secondary {
    border-color: var(--app-line, #c8d1db);
    background: var(--app-surface, #ffffff);
    color: var(--app-text, #17202a);
}

.app-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--app-bg, #f5f7fa);
}

.app-login-overlay[hidden] {
    display: none;
}

.app-login-card {
    width: min(420px, 100%);
    padding: 30px;
    border: 1px solid var(--app-line, #d8dee6);
    border-radius: var(--app-radius-xl, 26px);
    background: var(--app-surface, #ffffff);
    box-shadow: var(--app-shadow-soft, 0 18px 45px rgba(23, 32, 42, 0.10));
}

.app-login-logo {
    display: block;
    width: clamp(70px, 18vw, 96px);
    height: auto;
    margin: 0 0 22px;
}

.app-login-card h1 {
    margin: 0 0 8px;
    color: var(--app-text, #17202a);
    font-size: 28px;
}

.app-login-card p {
    margin: 0 0 22px;
    color: var(--app-muted, #536270);
}

.app-login-card label {
    display: block;
    margin-top: 14px;
    color: var(--app-text, #17202a);
    font-weight: 600;
}

.app-login-card input {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid var(--app-line-strong, #bcc7d3);
    border-radius: 14px;
    background: var(--app-surface-strong, #ffffff);
    color: var(--app-text, #17202a);
    font: inherit;
}

.app-login-card button {
    width: 100%;
    margin-top: 20px;
    padding: 12px 16px;
}

.app-login-card .app-language-switcher {
    justify-content: flex-end;
    width: 100%;
    margin-top: 18px;
}

.app-login-message {
    min-height: 20px;
    margin-top: 14px;
    color: var(--app-coral, #8a4b10);
    font-size: 14px;
}

.app-shell[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .app-quick-footer-inner {
        min-height: 54px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        padding: 6px 0;
    }

    .app-quick-footer-logo {
        --brand-logo-size: 28px;
    }

    .app-quick-footer-links {
        gap: 10px;
        font-size: 11px;
    }

    .app-quick-module-panel {
        bottom: 54px;
        transform: translateY(8px);
    }

    .app-quick-module-menu:hover .app-quick-module-panel,
    .app-quick-module-menu:focus-within .app-quick-module-panel {
        transform: translateY(0);
    }

    .app-auth-bar {
        left: auto;
        top: 12px;
        right: 12px;
        justify-content: flex-end;
    }

    .app-auth-user {
        max-width: 34vw;
    }

    .app-profile-menu-content {
        top: 92px;
        right: 22px;
    }
}
