@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url('/fonts/shell/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url('/fonts/shell/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url('/fonts/shell/unbounded-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url('/fonts/shell/unbounded-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
:root[data-theme],
:root[data-theme="light"],
:root[data-theme="dark"] {
    --ah-ink: #151833;
    --ah-accent: #4B3BD6;
    --ah-accent-hover: #3D2FB8;
    --ah-accent-soft: rgba(75, 59, 214, 0.08);
    --ah-teal: #37D3C1;
    --ah-bg: #F4F5FA;
    --ah-surface: #FFFFFF;
    --ah-muted: #5E6380;
    --ah-line: #E3E5EF;
    --ah-success: #0B6B60;
    --ah-danger: #A3321F;
    --ah-radius-card: 20px;
    --ah-radius-control: 14px;
    --ah-radius-chip: 999px;
    --ah-shadow: 0 1px 2px rgba(21, 24, 51, 0.04), 0 8px 24px rgba(21, 24, 51, 0.05);
    --ah-deep: #151833;
    --ah-glass: rgba(255, 255, 255, 0.92);
    --ah-glass-strong: rgba(255, 255, 255, 0.96);
    --ah-sunken: #EEF0F6;
    --ah-ink-2: #3A3F5C;
    --ah-line-strong: #C9CCDB;
    --ah-soft: #F6F7FB;
    --ah-tint-1: #F1F0FD;
    --ah-tint-2: #E4E1FB;
    --ah-tint-3: #DCD8F8;
    --ah-danger-soft: #FDEEEE;
    --ah-danger-soft-2: #F6D3D3;
    --ah-font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ah-font-display: 'Unbounded', 'Manrope', -apple-system, sans-serif;
    --ah-header-h: 64px;
    --ah-content-w: 1360px;

    --bg: var(--ah-bg);
    --bg-soft: var(--ah-surface);
    --card: var(--ah-surface);
    --card-strong: var(--ah-surface);
    --muted: var(--ah-muted);
    --text: var(--ah-ink);
    --accent: var(--ah-accent);
    --accent-strong: var(--ah-teal);
    --accent-soft: var(--ah-accent-soft);
    --success: var(--ah-success);
    --danger: var(--ah-danger);
    --border: var(--ah-line);
    color-scheme: light;
}

:root[data-theme] body.ah-shell,
:root[data-theme] body.ah-shell[data-theme],
:root[data-theme] body.ah-shell.music-brand-bg,
:root[data-theme] body.ah-shell.photo-view {
    background: var(--ah-bg);
    background-image: none;
    color: var(--ah-ink);
    font-family: var(--ah-font-ui);
    padding: 0 0 48px;
    -webkit-font-smoothing: antialiased;
}

:root[data-theme] .ah-shell::before,
:root[data-theme] .ah-shell::after {
    content: none;
    display: none;
}

:root[data-theme] .ah-shell .app-shell {
    max-width: var(--ah-content-w);
    padding: 0 24px;
}

:root[data-theme] .ah-shell .app-body {
    gap: 20px;
}

:root[data-theme] .ah-shell [id$="ainSection"]:not(:has(> :not(.hidden))) {
    display: none !important;
}

:root[data-theme] .ah-shell .footer-banner {
    max-width: calc(var(--ah-content-w) - 48px);
    margin-left: auto;
    margin-right: auto;
}

:root[data-theme] .ah-shell .app-boot-overlay {
    display: none !important;
}

:root[data-app-boot] .ah-shell [id$="oginSection"] {
    display: none !important;
}

:root[data-app-boot] .ah-shell .app-body::before {
    content: '';
    grid-column: 1 / -1;
    height: 420px;
    border-radius: var(--ah-radius-card);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%) -200px 0 / 200px 100% no-repeat,
        linear-gradient(var(--ah-line), var(--ah-line)) 24px 28px / 220px 18px no-repeat,
        linear-gradient(var(--ah-line), var(--ah-line)) 24px 64px / 60% 12px no-repeat,
        linear-gradient(var(--ah-line), var(--ah-line)) 24px 88px / 45% 12px no-repeat,
        linear-gradient(var(--ah-sunken), var(--ah-sunken)) 24px 130px / calc(100% - 48px) 260px no-repeat,
        var(--ah-surface);
    border: 1px solid var(--ah-line);
    animation: ah-shimmer 1.4s ease-in-out infinite;
}

@keyframes ah-shimmer {
    to { background-position: calc(100% + 200px) 0, 24px 28px, 24px 64px, 24px 88px, 24px 130px, 0 0; }
}

:root[data-theme] .ah-shell h1,
:root[data-theme] .ah-shell h2,
:root[data-theme] .ah-shell .generator-header h2 {
    font-family: var(--ah-font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ah-ink);
}

:root[data-theme] .ah-shell h3 {
    font-family: var(--ah-font-ui);
    font-weight: 800;
    color: var(--ah-ink);
}

.ah-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--ah-glass);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--ah-line);
    margin-bottom: 20px;
    font-family: var(--ah-font-ui);
}

.ah-header-inner {
    max-width: var(--ah-content-w);
    height: var(--ah-header-h);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.ah-logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ah-font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--ah-ink);
    text-decoration: none;
    white-space: nowrap;
}

.ah-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--ah-deep);
    position: relative;
    flex: none;
}

.ah-logo-mark::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5 21 19.5H3z' fill='none' stroke='%2337D3C1' stroke-width='2.6' stroke-linejoin='round'/%3E%3Cpath d='M12 11 15.2 16.5H8.8z' fill='%2337D3C1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ah-tabs {
    display: inline-flex;
    gap: 2px;
}

.ah-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: var(--ah-radius-chip);
    color: var(--ah-muted);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ah-tab:hover {
    color: var(--ah-ink);
}

.ah-tab.is-active {
    background: var(--ah-deep);
    color: #fff;
}

.ah-tab:focus-visible,
.ah-seg:focus-visible,
.ah-btn:focus-visible,
.ah-avatar-btn:focus-visible,
.ah-menu button:focus-visible {
    outline: 3px solid rgba(75, 59, 214, 0.35);
    outline-offset: 2px;
}

.ah-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

:root[data-theme] .ah-shell .ah-right .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

:root[data-theme] .ah-shell .ah-right .header-actions.hidden,
:root[data-theme] .ah-shell .ah-right .header-public-actions.hidden {
    display: none;
}

:root[data-theme] .ah-shell .ah-right .header-public-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ah-right:has(.header-actions:not(.hidden)) .ah-login {
    display: none;
}

:root[data-theme] .ah-shell .ah-right .coop-header-btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-chip);
    background: var(--ah-surface);
    color: var(--ah-muted);
    font: 700 13px/1 var(--ah-font-ui);
    box-shadow: none;
}

:root[data-theme] .ah-shell .ah-right .coop-header-btn:hover {
    color: var(--ah-ink);
    border-color: var(--ah-ink);
}

.ah-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 14px;
    border-radius: 14px;
    background: var(--ah-sunken);
}

:root[data-theme] .ah-shell .ah-topup {
    border-radius: 10px;
    min-height: 32px;
}

:root[data-theme] .ah-shell :is(.photo-help-feature-icon, .photo-help-contact-icon)[data-ah-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-accent);
}

:root[data-theme] .ah-shell :is(.photo-help-feature-icon, .photo-help-contact-icon)[data-ah-icon] .ah-ico {
    width: 22px;
    height: 22px;
}
:root[data-theme] .ah-shell .ah-balance .balance {
    font-weight: 800;
    font-size: 14px;
    color: var(--ah-ink);
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
    white-space: nowrap;
}

.ah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--ah-radius-chip);
    border: 1px solid transparent;
    font: 700 14px/1 var(--ah-font-ui);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ah-btn--primary {
    background: var(--ah-accent);
    color: #fff;
}

.ah-btn--primary:hover {
    background: var(--ah-accent-hover);
}

.ah-btn--ghost {
    background: var(--ah-surface);
    color: var(--ah-ink);
    border-color: var(--ah-line);
}

.ah-btn--ghost:hover {
    border-color: var(--ah-ink);
}

.ah-btn.ah-lang-btn {
    min-width: 40px;
    padding: 0 10px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.ah-btn--danger {
    background: var(--ah-danger);
    color: #fff;
}

.ah-btn--danger:hover {
    background: #8A2918;
}

.ah-btn--danger-ghost {
    background: var(--ah-surface);
    color: var(--ah-danger);
    border-color: rgba(163, 50, 31, 0.3);
}

.ah-btn--danger-ghost:hover {
    border-color: var(--ah-danger);
}

.ah-confirm {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(21, 24, 51, 0.45);
}

.ah-confirm-box {
    width: min(420px, 100%);
    padding: 24px;
    border-radius: 20px;
    background: var(--ah-surface);
    box-shadow: 0 24px 60px rgba(21, 24, 51, 0.25);
}

.ah-confirm-title {
    font: 600 18px/1.3 var(--ah-font-display);
    color: var(--ah-ink);
}

.ah-confirm-text {
    margin: 10px 0 0;
    color: var(--ah-muted);
    font-size: 14px;
    line-height: 1.5;
}

.ah-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.ah-btn-plus {
    display: none;
}

.ah-avatar-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--ah-line);
    border-radius: 50%;
    background: var(--ah-surface);
    cursor: pointer;
    overflow: hidden;
    flex: none;
}

:root[data-theme] .ah-shell .ah-avatar-btn .avatar {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--ah-deep);
    background-size: cover;
    background-position: center;
    box-shadow: none;
    pointer-events: none;
    display: grid;
    place-items: center;
    color: #fff;
}

:root[data-theme] .ah-shell .ah-avatar-btn .avatar .ah-ico {
    width: 18px;
    height: 18px;
}

.ah-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--ah-line);
    background: var(--ah-surface);
    box-shadow: 0 16px 40px rgba(21, 24, 51, 0.14);
    display: grid;
    gap: 2px;
}

.ah-menu.hidden {
    display: none;
}

.ah-menu-user {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--ah-line);
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--ah-muted);
}

.ah-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ah-ink);
    font: 600 14px/1 var(--ah-font-ui);
    text-align: left;
    cursor: pointer;
}

.ah-menu button:hover {
    background: var(--ah-bg);
}

.ah-menu .ah-menu-danger {
    color: var(--ah-danger);
}

.ah-menu .ah-ico {
    color: var(--ah-muted);
}

.ah-menu .ah-menu-danger .ah-ico {
    color: var(--ah-danger);
}

:root[data-theme] .ah-shell .ah-subnav,
:root[data-theme] .ah-shell .ah-subnav.top-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    position: static;
}

:root[data-theme] .ah-shell .ah-subnav.hidden,
:root[data-theme] .ah-shell .ah-menu-anchor {
    display: none !important;
}

.ah-subbrand {
    display: grid;
    gap: 4px;
}

.ah-subbrand-label {
    font: 700 12px/1 var(--ah-font-ui);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ah-accent);
}

.ah-subbrand-title {
    font: 600 24px/1.2 var(--ah-font-display);
    color: var(--ah-ink);
    margin: 0;
}

.ah-segments {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(116px, auto);
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    background: var(--ah-sunken);
}

.ah-seg {
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ah-muted);
    font: 700 14px/1 var(--ah-font-ui);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ah-seg:hover {
    color: var(--ah-ink);
}

.ah-seg.is-active {
    background: var(--ah-surface);
    color: var(--ah-ink);
    box-shadow: 0 1px 2px rgba(21, 24, 51, 0.08), 0 2px 8px rgba(21, 24, 51, 0.06);
}

.ah-ico {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: none;
    vertical-align: -3px;
}

.ah-ico svg {
    width: 100%;
    height: 100%;
    display: block;
}

:root[data-theme] .ah-shell .sidebar-panel,
:root[data-theme] .ah-shell .settings-card,
:root[data-theme] .ah-shell .login-card,
:root[data-theme] .ah-shell .detail-card,
:root[data-theme] .ah-shell .footer-banner,
:root[data-theme] .ah-shell .generator-main,
:root[data-theme] .ah-shell .photo-generator-card,
:root[data-theme] .ah-shell .payment-card {
    background: var(--ah-surface);
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-card);
    box-shadow: var(--ah-shadow);
    color: var(--ah-ink);
}

:root[data-theme] .ah-shell .panel-header,
:root[data-theme] .ah-shell .panel-header span,
:root[data-theme] .ah-shell .settings-title {
    color: var(--ah-ink);
    font: 800 13px/1.2 var(--ah-font-ui);
    letter-spacing: 0.02em;
    text-transform: none;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: currentColor;
}

:root[data-theme] .ah-shell .song-card {
    background: var(--ah-surface);
    border: 1px solid var(--ah-line);
    border-radius: 16px;
    box-shadow: none;
}

:root[data-theme] .ah-shell .song-card:hover {
    border-color: var(--ah-line-strong);
    transform: none;
}

:root[data-theme] .ah-shell .song-meta,
:root[data-theme] .ah-shell .panel-empty,
:root[data-theme] .ah-shell .empty-tracks-hint {
    color: var(--ah-muted);
}

:root[data-theme] .ah-shell .submit-btn {
    min-height: 48px;
    border: 0;
    border-radius: var(--ah-radius-control);
    background: var(--ah-accent);
    background-image: none;
    color: #fff;
    font: 800 15px/1.2 var(--ah-font-ui);
    box-shadow: none;
    transform: none;
}

:root[data-theme] .ah-shell .submit-btn:hover {
    background: var(--ah-accent-hover);
    box-shadow: none;
    transform: none;
}

:root[data-theme] .ah-shell .submit-btn:disabled {
    background: var(--ah-line-strong);
    color: #fff;
    cursor: not-allowed;
}

:root[data-theme] .ah-shell .ghost-btn,
:root[data-theme] .ah-shell .back-btn,
:root[data-theme] .ah-shell .panel-btn {
    min-height: 44px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-control);
    background: var(--ah-surface);
    color: var(--ah-ink);
    font: 700 14px/1.2 var(--ah-font-ui);
    box-shadow: none;
    transform: none;
}

:root[data-theme] .ah-shell .panel-btn {
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--ah-radius-chip);
    font-size: 13px;
}

:root[data-theme] .ah-shell .ghost-btn:hover,
:root[data-theme] .ah-shell .back-btn:hover,
:root[data-theme] .ah-shell .panel-btn:hover {
    border-color: var(--ah-ink);
    background: var(--ah-surface);
}

:root[data-theme] .ah-shell .danger-btn {
    color: var(--ah-danger);
}

:root[data-theme] .ah-shell .danger-btn:hover {
    border-color: var(--ah-danger);
}

:root[data-theme] .ah-shell .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-chip);
    background: var(--ah-surface);
    color: var(--ah-ink);
    font: 700 13px/1 var(--ah-font-ui);
    box-shadow: none;
    transform: none;
}

:root[data-theme] .ah-shell .icon-btn:hover {
    border-color: var(--ah-ink);
    background: var(--ah-surface);
}

:root[data-theme] .ah-shell .icon-btn.star-btn {
    color: var(--ah-accent);
    border-color: rgba(75, 59, 214, 0.4);
}

:root[data-theme] .ah-shell .option-btn,
:root[data-theme] .ah-shell .photo-chip,
:root[data-theme] .ah-shell .chip {
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-chip);
    background: var(--ah-surface);
    color: var(--ah-ink);
    font: 700 14px/1.2 var(--ah-font-ui);
    box-shadow: none;
    transform: none;
}

:root[data-theme] .ah-shell .option-btn {
    min-height: 48px;
    padding: 12px 20px;
    text-align: left;
}

:root[data-theme] .ah-shell .option-btn:hover,
:root[data-theme] .ah-shell .photo-chip:hover,
:root[data-theme] .ah-shell .chip:hover {
    border-color: var(--ah-accent);
    background: var(--ah-surface);
    box-shadow: none;
    transform: none;
}

:root[data-theme] .ah-shell .option-btn.is-active,
:root[data-theme] .ah-shell .option-btn.selected,
:root[data-theme] .ah-shell .option-btn.active,
:root[data-theme] .ah-shell .photo-chip.is-active,
:root[data-theme] .ah-shell .chip.is-active {
    background: var(--ah-accent);
    border-color: var(--ah-accent);
    color: #fff;
}

:root[data-theme] .ah-shell textarea,
:root[data-theme] .ah-shell select,
:root[data-theme] .ah-shell input[type="text"],
:root[data-theme] .ah-shell input[type="email"],
:root[data-theme] .ah-shell input[type="number"],
:root[data-theme] .ah-shell input[type="search"],
:root[data-theme] .ah-shell input[type="tel"],
:root[data-theme] .ah-shell .settings-input,
:root[data-theme] .ah-shell .settings-select,
:root[data-theme] .ah-shell .composer-input {
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-control);
    background: var(--ah-surface);
    color: var(--ah-ink);
    font-family: var(--ah-font-ui);
    box-shadow: none;
}

:root[data-theme] .ah-shell textarea:focus,
:root[data-theme] .ah-shell select:focus,
:root[data-theme] .ah-shell input:focus,
:root[data-theme] .ah-shell .settings-input:focus,
:root[data-theme] .ah-shell .composer-input:focus {
    outline: none;
    border-color: var(--ah-accent);
    box-shadow: 0 0 0 3px rgba(75, 59, 214, 0.15);
}

:root[data-theme] .ah-shell ::placeholder {
    color: #8A8FA8;
}

:root[data-theme] .ah-shell .settings-footer,
:root[data-theme] .ah-shell .settings-footer span,
:root[data-theme] .ah-shell .settings-footer strong {
    color: var(--ah-ink);
}

:root[data-theme] .ah-shell .settings-footer strong {
    font-weight: 800;
}

:root[data-theme] .ah-shell .brand-badge,
:root[data-theme] .ah-shell .badge-new {
    display: none;
}

:root[data-theme] .ah-shell .photo-model-card {
    border: 1px solid var(--ah-line);
    border-radius: 16px;
    background: var(--ah-surface);
    box-shadow: none;
}

:root[data-theme] .ah-shell .photo-model-card:hover {
    border-color: var(--ah-accent);
    transform: none;
}

:root[data-theme] .ah-shell .model-cover-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(55, 211, 193, 0.35) 0%, rgba(55, 211, 193, 0) 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(75, 59, 214, 0.45) 0%, rgba(75, 59, 214, 0) 60%),
        var(--ah-ink);
}

:root[data-theme] .ah-shell .model-cover-blank span {
    font: 600 34px/1 var(--ah-font-display);
    color: rgba(255, 255, 255, 0.92);
}

:root[data-theme] .ah-shell .cover-fallback,
:root[data-theme] .ah-shell .empty-tracks-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-muted);
    background: var(--ah-bg);
}

:root[data-theme] .ah-shell .cover-fallback .ah-ico,
:root[data-theme] .ah-shell .empty-tracks-icon .ah-ico {
    width: 36px;
    height: 36px;
}

:root[data-theme] .ah-shell .toast {
    font-family: var(--ah-font-ui);
}

.ah-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: var(--ah-radius-chip);
    font: 700 12px/1 var(--ah-font-ui);
    background: var(--ah-bg);
    color: var(--ah-muted);
}

.ah-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.ah-status--queued { color: var(--ah-muted); }
.ah-status--running { color: var(--ah-accent); background: var(--ah-accent-soft); }
.ah-status--done { color: var(--ah-success); background: rgba(11, 107, 96, 0.08); }
.ah-status--error { color: var(--ah-danger); background: rgba(163, 50, 31, 0.08); }
.ah-status--maintenance { color: #8A5A00; background: rgba(178, 106, 0, 0.1); }

.ah-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 28px 16px;
    text-align: center;
    color: var(--ah-muted);
}

.ah-empty .ah-ico {
    width: 32px;
    height: 32px;
    color: var(--ah-muted);
}

.ah-empty-title {
    font: 800 15px/1.3 var(--ah-font-ui);
    color: var(--ah-ink);
}

.ah-bottom-nav {
    display: none;
}

:root[data-theme] .ah-shell .app-body {
    display: block;
}

:root[data-theme] .ah-shell .app-body > aside.sidebar,
:root[data-theme] .ah-shell #mobileMainBlocks,
:root[data-theme] .ah-shell #photoMobileMainBlocks,
:root[data-theme] .ah-shell #videoMobileMainBlocks {
    display: none !important;
}

:root[data-theme] .ah-shell.agents-view .app-body {
    display: grid;
}

:root[data-theme] .ah-shell.agents-view .app-body > aside.sidebar:not(.sidebar-right) {
    display: block !important;
}

:root[data-theme] .ah-shell main.content {
    width: 100%;
    max-width: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

:root[data-theme] .ah-shell main.content > .section > h2:first-child,
:root[data-theme] .ah-shell main.content > .section > .back-btn[onclick*="'main'"] {
    display: none;
}

.ah-card {
    background: var(--ah-surface);
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-card);
    padding: 24px;
}

.ah-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

:root[data-theme] .ah-shell .ah-card-head h3 {
    margin: 0;
    font: 800 16px/1.2 var(--ah-font-ui);
}

.ah-link {
    color: var(--ah-accent);
    font: 700 13px/1 var(--ah-font-ui);
    text-decoration: underline;
    text-underline-offset: 3px;
}

:root[data-theme] .ah-shell main.content > #generateSection,
:root[data-theme] .ah-shell main.content > #photoGenerateSection,
:root[data-theme] .ah-shell main.content > #videoGenerateSection {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.ah-counter {
    white-space: nowrap;
}

:root[data-theme] .ah-shell .auth-modal {
    background: rgba(21, 24, 51, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

:root[data-theme] .ah-shell .auth-modal-card {
    background: var(--ah-surface);
    color: var(--ah-ink);
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-card);
    box-shadow: 0 24px 60px rgba(21, 24, 51, 0.22);
}

:root[data-theme] .ah-shell .auth-modal-title {
    color: var(--ah-ink);
    font: 600 20px/1.25 var(--ah-font-display);
}

:root[data-theme] .ah-shell #commonErrorTitle {
    color: var(--ah-danger);
}

:root[data-theme] .ah-shell .auth-modal-text {
    color: var(--ah-muted);
    font: 500 14px/1.5 var(--ah-font-ui);
}

:root[data-theme] .ah-shell .auth-close {
    color: var(--ah-muted);
    background: transparent;
}

.ah-work-thumb.is-broken {
    background: hsl(var(--thumb-h, 245) 42% 44%);
}

.mc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.mc-left {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.mc-form {
    display: grid;
    gap: 22px;
    margin: 0;
}

.mc-form[hidden],
.mc-song[hidden],
.mc-dialogue[hidden],
.mc-field[hidden] {
    display: none;
}

.mc-song {
    display: grid;
    gap: 22px;
}

.mc-field {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.mc-label {
    font: 700 13px/1.2 var(--ah-font-ui);
    color: var(--ah-ink-2);
}

.mc-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.ah-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

:root[data-theme] .ah-shell .ah-chip {
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-chip);
    background: var(--ah-surface);
    color: var(--ah-ink);
    font: 600 13px/1 var(--ah-font-ui);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

:root[data-theme] .ah-shell .ah-chip:hover {
    border-color: var(--ah-accent);
}

:root[data-theme] .ah-shell .ah-chip.is-active {
    background: var(--ah-accent);
    border-color: var(--ah-accent);
    color: #fff;
}

:root[data-theme] .ah-shell .ah-chip--more {
    color: var(--ah-accent);
    font-weight: 700;
}

:root[data-theme] .ah-shell .ah-chips--sm .ah-chip {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
}

.ah-textarea {
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-control);
    background: var(--ah-surface);
    padding: 12px 14px 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ah-textarea:focus-within {
    border-color: var(--ah-accent);
    box-shadow: 0 0 0 3px rgba(75, 59, 214, 0.15);
}

.ah-textarea.is-invalid {
    border-color: var(--ah-danger);
    box-shadow: 0 0 0 3px rgba(163, 50, 31, 0.12);
}

:root[data-theme] .ah-shell .ah-textarea textarea {
    display: block;
    width: 100%;
    min-height: 64px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    resize: vertical;
    font: 500 14px/1.5 var(--ah-font-ui);
    color: var(--ah-ink);
}

:root[data-theme] .ah-shell .ah-textarea textarea:focus {
    box-shadow: none;
    outline: none;
}

.ah-textarea-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 8px;
}

:root[data-theme] .ah-shell .ah-chip--tool {
    min-height: 30px;
    padding: 0 12px;
    color: var(--ah-accent);
    border-color: rgba(75, 59, 214, 0.25);
    background: var(--ah-accent-soft);
    font-size: 12px;
    font-weight: 700;
}

:root[data-theme] .ah-shell .ah-chip--tool:disabled {
    opacity: 0.6;
    cursor: progress;
}

:root[data-theme] .ah-shell .ah-fav-btn.is-on {
    color: #B7791F;
}

.mc-foot-tools {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.ah-hint,
.ah-counter {
    font: 500 12px/1.3 var(--ah-font-ui);
    color: var(--ah-muted);
}

.ah-hint.is-error {
    color: var(--ah-danger);
    font-weight: 700;
}

.ah-segmented {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    padding: 4px;
    border-radius: var(--ah-radius-control);
    background: var(--ah-sunken);
}

:root[data-theme] .ah-shell .ah-segmented button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ah-muted);
    font: 600 13px/1 var(--ah-font-ui);
    cursor: pointer;
    box-shadow: none;
}

:root[data-theme] .ah-shell .ah-segmented button.is-active {
    background: var(--ah-surface);
    color: var(--ah-ink);
    box-shadow: 0 1px 2px rgba(21, 24, 51, 0.08), 0 2px 8px rgba(21, 24, 51, 0.06);
}

:root[data-theme] .ah-shell .ah-select,
:root[data-theme] .ah-shell .ah-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-control);
    background-color: var(--ah-surface);
    color: var(--ah-ink);
    font: 600 14px/1 var(--ah-font-ui);
}

:root[data-theme] .ah-shell .ah-select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151833' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

.ah-more {
    border-top: 1px solid var(--ah-line);
    padding-top: 18px;
}

.ah-more > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    font: 700 14px/1.3 var(--ah-font-ui);
    color: var(--ah-ink);
}

.ah-more > summary::-webkit-details-marker {
    display: none;
}

.ah-more > summary::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid var(--ah-ink);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.15s ease;
}

.ah-more[open] > summary::before {
    transform: rotate(90deg);
}

.ah-more-body {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

:root[data-theme] .ah-shell .mc-billing {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
}

.ah-submitbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--ah-tint-1);
}

.ah-submitbar-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ah-submitbar-text strong {
    font: 800 15px/1.3 var(--ah-font-ui);
    color: var(--ah-ink);
}

.ah-submitbar-text span {
    font: 500 12px/1.35 var(--ah-font-ui);
    color: var(--ah-muted);
}

:root[data-theme] .ah-shell .ah-btn--lg {
    min-height: 50px;
    padding: 0 22px;
    border-radius: var(--ah-radius-control);
    font: 800 15px/1 var(--ah-font-ui);
    gap: 10px;
    flex: none;
}

.ah-price {
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    font: 800 13px/1 var(--ah-font-ui);
}

.mc-legacy,
.mc-legacy-submit {
    display: none !important;
}

:root[data-theme] .ah-shell .mc-dialogue .step {
    display: grid;
    gap: 12px;
}

:root[data-theme] .ah-shell .mc-dialogue .step.hidden {
    display: none;
}

.mc-side {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.ah-search {
    position: relative;
    display: block;
}

:root[data-theme] .ah-shell .ah-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--ah-line);
    border-radius: 12px;
    background: var(--ah-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6380' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat 14px center / 16px;
    font: 500 14px/1 var(--ah-font-ui);
}

.ah-worklist {
    display: grid;
    gap: 4px;
}

.ah-work {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ah-work:hover,
.ah-work:focus-visible {
    background: var(--ah-soft);
    outline: none;
}

.ah-work.is-busy {
    grid-template-columns: 44px minmax(0, 1fr);
    background: var(--ah-tint-1);
    cursor: default;
}

.ah-work.is-playing {
    background: var(--ah-accent-soft);
}

.ah-work-thumb {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    background: hsl(var(--thumb-h, 245) 42% 44%);
}

.ah-work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ah-work-thumb--busy {
    background: var(--ah-tint-2);
    color: var(--ah-accent);
}

.ah-work-thumb--busy .ah-ico {
    animation: ah-spin 2.4s linear infinite;
}

@keyframes ah-spin {
    to { transform: rotate(360deg); }
}

.ah-work-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ah-work-title {
    font: 700 14px/1.25 var(--ah-font-ui);
    color: var(--ah-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ah-work-meta {
    font: 500 12px/1.3 var(--ah-font-ui);
    color: var(--ah-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ah-progress {
    display: block;
    height: 6px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--ah-tint-3);
    overflow: hidden;
}

.ah-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ah-accent);
    transition: width 0.4s ease;
}

:root[data-theme] .ah-shell .ah-icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ah-line);
    border-radius: 10px;
    background: var(--ah-surface);
    color: var(--ah-ink);
    cursor: pointer;
    box-shadow: none;
}

:root[data-theme] .ah-shell .ah-icon-btn:hover {
    border-color: var(--ah-ink);
}

:root[data-theme] .ah-shell .ah-icon-btn .ah-ico {
    width: 16px;
    height: 16px;
}

:root[data-theme] .ah-shell .ah-list-more {
    margin-top: 6px;
    min-height: 40px;
    border: 1px solid var(--ah-line);
    border-radius: 12px;
    background: var(--ah-surface);
    color: var(--ah-ink);
    font: 700 13px/1 var(--ah-font-ui);
    cursor: pointer;
}

.ah-empty--dashed {
    border: 1.5px dashed var(--ah-line-strong);
    border-radius: 16px;
}

.ah-empty span {
    font: 500 13px/1.4 var(--ah-font-ui);
}

.ah-skeleton-rows {
    display: grid;
    gap: 8px;
}

.ah-skeleton-rows span {
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--ah-sunken) 0%, var(--ah-soft) 50%, var(--ah-sunken) 100%) 0 0 / 200% 100%;
    animation: ah-skeleton 1.3s ease-in-out infinite;
}

@keyframes ah-skeleton {
    to { background-position: -200% 0; }
}

:root[data-theme] .ah-shell .mc-left .progress-section,
:root[data-theme] .ah-shell .mc-left .result-section {
    margin: 0;
    padding: 28px 24px;
    background: var(--ah-surface);
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius-card);
    box-shadow: none;
}

:root[data-theme] .ah-shell .mc-left .progress-section.hidden,
:root[data-theme] .ah-shell .mc-left .result-section.hidden {
    display: none;
}

:root[data-theme] .ah-shell .mc-left .progress-container {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 12px 0;
}

:root[data-theme] .ah-shell .mc-left .progress-container h2 {
    margin: 0;
    font-size: 20px;
}

:root[data-theme] .ah-shell .mc-left .spinner {
    border-color: var(--ah-tint-2);
    border-top-color: var(--ah-accent);
}

:root[data-theme] .ah-shell .mc-left .progress-bar {
    width: 100%;
    max-width: 420px;
    height: 8px;
    border-radius: 999px;
    background: var(--ah-sunken);
}

:root[data-theme] .ah-shell .mc-left .progress-fill {
    border-radius: 999px;
    background: var(--ah-accent);
    box-shadow: none;
}

:root[data-theme] .ah-shell .progress-step {
    border-radius: 999px;
    background: var(--ah-sunken);
    color: var(--ah-muted);
    font: 700 12px/1 var(--ah-font-ui);
    padding: 7px 12px;
    border: 0;
}

:root[data-theme] .ah-shell .progress-step.active {
    background: var(--ah-accent);
    color: #fff;
}

.ah-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: grid;
    grid-template-columns: 44px minmax(120px, 240px) auto auto minmax(0, 1fr) auto auto auto auto;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    padding: 10px max(24px, calc((100vw - var(--ah-content-w)) / 2 + 24px));
    background: var(--ah-deep);
    color: #fff;
    font-family: var(--ah-font-ui);
}

.ah-player[hidden] {
    display: none;
}

body.has-ah-player {
    padding-bottom: 92px !important;
}

html.is-ah-frame-host,
html.is-ah-frame-host body {
    overflow: hidden !important;
}

html.is-ah-frame-host body > :not(.ah-frame):not(.ah-player):not(.ah-nav-progress) {
    display: none !important;
}

.ah-frame {
    position: fixed;
    inset: 0;
    z-index: 900;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--ah-bg, #f4f5fb);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.ah-frame.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ah-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 3px;
    background: var(--ah-accent);
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    pointer-events: none;
}

.ah-nav-progress.is-active {
    opacity: 1;
    transform: scaleX(0.85);
    transition: transform 2.5s cubic-bezier(0.1, 0.7, 0.3, 1), opacity 0.1s;
}

.ah-nav-progress.is-done {
    transform: scaleX(1);
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.25s ease 0.1s;
}

.ah-player-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #B0307F, #6A2BC9);
}

.ah-player-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ah-player-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ah-player-info strong,
.ah-player-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ah-player-info strong {
    font: 700 14px/1.2 var(--ah-font-ui);
}

.ah-player-info span {
    font: 500 12px/1.2 var(--ah-font-ui);
    color: rgba(255, 255, 255, 0.6);
}

.ah-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ah-player .ah-player-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.ah-player .ah-player-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ah-player .ah-player-toggle {
    width: 44px;
    height: 44px;
    background: #fff;
    color: #151833;
}

.ah-player .ah-player-toggle:hover {
    background: #fff;
}

.ah-player-time {
    font: 600 12px/1 var(--ah-font-ui);
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

.ah-player-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    overflow: hidden;
}

.ah-player-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--ah-teal);
    border-radius: inherit;
    pointer-events: none;
}

.ah-player-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ah-player-vol {
    --ah-vol: 100%;
    width: 84px;
    height: 6px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--ah-teal) var(--ah-vol), rgba(255, 255, 255, 0.18) var(--ah-vol));
    border-radius: 999px;
}

.ah-player-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.ah-player-vol::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.ah-player-vol:focus-visible {
    outline: 2px solid var(--ah-teal);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .mc-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .ah-card {
        padding: 18px 16px;
    }

    .mc-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .mc-form .ah-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -16px;
        padding: 0 16px 2px;
        scrollbar-width: none;
    }

    .mc-form .ah-chips::-webkit-scrollbar {
        display: none;
    }

    :root[data-theme] .ah-shell .mc-form .ah-chip {
        min-height: 44px;
        padding: 0 18px;
        font-size: 15px;
        flex: none;
    }

    .ah-submitbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        background: none;
    }

    .ah-submitbar-text span {
        display: none;
    }

    :root[data-theme] .ah-shell .ah-btn--lg {
        width: 100%;
        min-height: 54px;
        font-size: 17px;
    }

    .ah-player {
        left: 8px;
        right: 8px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        grid-template-columns: 44px minmax(0, 1fr) auto auto;
        gap: 12px;
        min-height: 64px;
        padding: 10px 12px 14px;
        border-radius: 16px;
    }

    .ah-player .ah-player-btn[data-p="prev"],
    .ah-player .ah-player-btn[data-p="next"],
    .ah-player .ah-player-btn[data-p="download"],
    .ah-player-volume,
    .ah-player-time {
        display: none;
    }

    .ah-player-track {
        position: absolute;
        left: 70px;
        right: 120px;
        bottom: 10px;
        height: 4px;
    }

    body.has-ah-player {
        padding-bottom: calc(160px + env(safe-area-inset-bottom)) !important;
    }

    .ah-player-thumb,
    .ah-player-info {
        cursor: pointer;
    }

    body.is-ah-player-expanded {
        overflow: hidden;
    }

    .ah-player.is-expanded {
        inset: 0;
        z-index: 1300;
        grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
        grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
        grid-template-areas:
            "collapse . download close"
            "thumb thumb thumb thumb"
            "info info info info"
            "track track track track"
            "cur . . dur"
            "controls controls controls controls";
        gap: 14px 8px;
        padding: calc(12px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
        border-radius: 0;
        background: radial-gradient(120% 70% at 50% 0%, #3A2E8F 0%, var(--ah-deep) 60%);
    }

    .ah-player.is-expanded .ah-player-collapse {
        display: grid;
        grid-area: collapse;
    }

    .ah-player.is-expanded .ah-player-btn[data-p="download"] {
        display: grid;
        grid-area: download;
    }

    .ah-player.is-expanded .ah-player-btn[data-p="close"] {
        grid-area: close;
    }

    .ah-player.is-expanded .ah-player-btn[data-p="collapse"],
    .ah-player.is-expanded .ah-player-btn[data-p="download"],
    .ah-player.is-expanded .ah-player-btn[data-p="close"] {
        width: 44px;
        height: 44px;
    }

    .ah-player.is-expanded .ah-player-thumb {
        grid-area: thumb;
        align-self: center;
        justify-self: center;
        width: min(100%, 340px, 42vh);
        height: auto;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 24px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    }

    .ah-player.is-expanded:focus {
        outline: none;
    }

    .ah-player.is-expanded .ah-player-thumb .ah-ico,
    .ah-player.is-expanded .ah-player-thumb svg {
        width: 64px;
        height: 64px;
    }

    .ah-player.is-expanded .ah-player-info {
        grid-area: info;
        gap: 6px;
        text-align: center;
        cursor: default;
    }

    .ah-player.is-expanded .ah-player-info strong {
        font-size: 22px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ah-player.is-expanded .ah-player-info span {
        font-size: 14px;
    }

    .ah-player.is-expanded .ah-player-track {
        grid-area: track;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        height: 6px;
        margin-top: 8px;
        overflow: visible;
    }

    .ah-player.is-expanded .ah-player-track::before {
        content: "";
        position: absolute;
        inset: -16px 0;
    }

    .ah-player.is-expanded .ah-player-time {
        display: block;
        font-size: 13px;
    }

    .ah-player.is-expanded [data-p-cur] {
        grid-area: cur;
    }

    .ah-player.is-expanded [data-p-dur] {
        grid-area: dur;
        text-align: right;
    }

    .ah-player.is-expanded .ah-player-controls {
        grid-area: controls;
        justify-content: center;
        gap: 28px;
    }

    .ah-player.is-expanded .ah-player-btn[data-p="prev"],
    .ah-player.is-expanded .ah-player-btn[data-p="next"] {
        display: grid;
        width: 52px;
        height: 52px;
    }

    .ah-player.is-expanded .ah-player-btn[data-p="prev"] .ah-ico,
    .ah-player.is-expanded .ah-player-btn[data-p="next"] .ah-ico,
    .ah-player.is-expanded .ah-player-btn[data-p="prev"] svg,
    .ah-player.is-expanded .ah-player-btn[data-p="next"] svg {
        width: 26px;
        height: 26px;
    }

    .ah-player.is-expanded .ah-player-toggle {
        width: 72px;
        height: 72px;
    }

    .ah-player.is-expanded .ah-player-toggle .ah-ico,
    .ah-player.is-expanded .ah-player-toggle svg {
        width: 28px;
        height: 28px;
    }
}

.ah-player-collapse {
    display: none !important;
}

.ah-player.is-expanded .ah-player-collapse {
    display: grid !important;
}

@media (max-width: 900px) {
    .ah-header-inner {
        grid-template-columns: 1fr auto;
        height: 60px;
        padding: 0 16px;
    }

    .ah-header .ah-tabs {
        display: none;
    }

    .ah-logo {
        font-size: 16px;
    }

    :root[data-theme] .ah-shell .ah-right .coop-header-btn {
        display: none;
    }

    .ah-topup-text {
        display: none;
    }

    .ah-btn-plus {
        display: inline;
        font-size: 18px;
        line-height: 1;
    }

    :root[data-theme] .ah-shell .ah-topup {
        flex: none;
        width: 32px;
        min-height: 32px;
        padding: 0;
    }

    :root[data-theme] .ah-shell .app-shell {
        padding: 0 16px;
    }

    .ah-subnav {
        align-items: stretch;
    }

    .ah-segments {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ah-seg {
        flex: 1 0 auto;
        min-height: 44px;
    }

    .ah-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: var(--ah-glass-strong);
        border-top: 1px solid var(--ah-line);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .ah-bottom-nav a {
        display: grid;
        justify-items: center;
        gap: 3px;
        min-height: 48px;
        padding-top: 6px;
        color: var(--ah-muted);
        font: 700 11px/1.1 var(--ah-font-ui);
        text-decoration: none;
    }

    .ah-bottom-nav a.is-active {
        color: var(--ah-accent);
    }

    .ah-bottom-nav .ah-ico {
        width: 22px;
        height: 22px;
    }

    :root[data-theme] body.ah-shell,
    :root[data-theme] body.ah-shell.music-brand-bg,
    :root[data-theme] body.ah-shell.photo-view {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    :root[data-theme] .ah-shell textarea,
    :root[data-theme] .ah-shell select,
    :root[data-theme] .ah-shell input {
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    :root[data-theme] body.ah-shell :is(textarea, select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"])) {
        font-size: 16px !important;
    }

    :root[data-theme] .ah-shell .ah-submitbar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        z-index: 800;
        padding: 8px;
        border: 1px solid var(--ah-line);
        border-radius: 18px;
        background: var(--ah-surface);
        box-shadow: 0 10px 30px rgba(21, 24, 51, 0.16);
    }

    :root[data-theme] .ah-shell .ah-card:has(.ah-submitbar) {
        overflow: clip;
        padding-bottom: 92px;
    }

    :root[data-theme] body.ah-shell:is(.pc-viewer-open, .pc-picker-open) .ah-submitbar {
        display: none;
    }

    :root[data-theme] body.ah-shell.has-ah-player .ah-submitbar {
        bottom: calc(144px + env(safe-area-inset-bottom));
    }

    :root[data-theme] .ah-shell .ah-submitbar .ah-submitbar-text {
        display: none;
    }

    :root[data-theme] .ah-shell :is(.ah-btn, .ah-chip, .ah-seg, .ah-list-more, .photo-option-btn, .pc-ratio, .photo-upload-clear, .vc-pro-toggle) {
        min-height: 44px;
    }

    :root[data-theme] .ah-shell :is(.ah-icon-btn, .ah-avatar-btn) {
        min-width: 44px;
        min-height: 44px;
    }

    :root[data-theme] .ah-shell .ah-topup {
        width: 44px;
        min-height: 44px;
    }

    :root[data-theme] .ah-shell .ah-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 4px;
    }

    :root[data-theme] .ah-shell .photo-upload-clear {
        display: inline-flex;
        align-items: center;
        padding: 0 8px;
    }

    .legal-footer :is(a, button),
    .st-footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    :root[data-theme] .ah-shell :is(.ah-segmented > button, .ah-chips--sm .ah-chip, .photo-option-buttons .photo-option-btn, #photoModelChange, #videoModelChange) {
        min-height: 44px !important;
    }

    :root[data-theme] .ah-shell #stBalance {
        min-height: 44px;
    }
}

@media (max-width: 389px) {
    .ah-header-inner {
        gap: 8px;
        padding: 0 12px;
    }

    .ah-logo {
        gap: 8px;
        font-size: 14px;
    }

    :root[data-theme] .ah-shell .ah-right {
        gap: 6px;
    }
}

:root[data-ah-theme="dark"] {
    color-scheme: dark;
    --ah-ink: #ECEEFA;
    --ah-accent: #7B6BFF;
    --ah-accent-hover: #6A59F5;
    --ah-accent-soft: rgba(123, 107, 255, 0.18);
    --ah-bg: #0D0F22;
    --ah-surface: #161935;
    --ah-muted: #A2A7C6;
    --ah-line: #2A2E52;
    --ah-success: #5ED6BF;
    --ah-danger: #FF8A73;
    --ah-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
    --ah-deep: #23275A;
    --ah-glass: rgba(22, 25, 53, 0.9);
    --ah-glass-strong: rgba(22, 25, 53, 0.96);
    --ah-sunken: #0F1229;
    --ah-ink-2: #C9CCE3;
    --ah-line-strong: #3A3F6B;
    --ah-soft: #1C1F40;
    --ah-tint-1: rgba(123, 107, 255, 0.16);
    --ah-tint-2: rgba(123, 107, 255, 0.26);
    --ah-tint-3: rgba(123, 107, 255, 0.34);
    --ah-danger-soft: rgba(255, 138, 115, 0.14);
    --ah-danger-soft-2: rgba(255, 138, 115, 0.24);
}

:root[data-ah-theme="dark"] .ah-shell input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

:root[data-ah-theme="dark"] .ah-shell input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: var(--ah-line-strong);
}

:root[data-ah-theme="dark"] .ah-shell input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border-radius: 50%;
    background: var(--ah-accent);
}

:root[data-ah-theme="dark"] .ah-shell input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: var(--ah-line-strong);
}

:root[data-ah-theme="dark"] .ah-shell input[type="range"]::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--ah-accent);
}

:root[data-ah-theme="dark"] .ah-shell input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: var(--ah-accent);
}

:root[data-ah-theme="dark"] .ah-shell :is(.ah-seg.is-active, .ah-segmented button.is-active, .pc-form .photo-option-btn.is-active) {
    background: var(--ah-deep);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(123, 107, 255, 0.45);
}

:root[data-ah-theme="dark"] .ah-shell #detailSection {
    border-color: var(--ah-line);
    background: var(--ah-surface);
}

:root[data-ah-theme="dark"] .ah-shell .payment-method-card {
    border-color: var(--ah-line);
    background: var(--ah-soft);
    background-image: none;
    color: var(--ah-ink);
}

:root[data-ah-theme="dark"] .ah-shell .payment-method-card.is-selected {
    border-color: var(--ah-accent);
    background: var(--ah-tint-1);
}

:root[data-ah-theme="dark"] .ah-shell .account-links-badges > * {
    border-color: var(--ah-line);
    background: var(--ah-soft);
    color: var(--ah-muted);
}

:root[data-ah-theme="dark"] .ah-shell .ah-confirm {
    background: rgba(4, 5, 14, 0.7);
}

:root[data-ah-theme="dark"] .ah-shell .ah-confirm-box {
    border: 1px solid var(--ah-line);
    background: var(--ah-surface);
}

:root[data-ah-theme="dark"] .ah-shell .ah-btn--danger {
    background: #B83A26;
    color: #fff;
}

.ah-bell {
    position: relative;
    flex: none;
}

.ah-bell[hidden] {
    display: none;
}

.ah-bell-btn {
    position: relative;
}

.ah-bell-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ah-danger);
    color: #fff;
    font: 700 10px/16px var(--ah-font-ui);
    text-align: center;
}

.ah-bell-dot[hidden] {
    display: none;
}

.ah-bell-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 950;
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 24px));
    max-height: min(480px, calc(100vh - 100px));
    border: 1px solid var(--ah-line);
    border-radius: 16px;
    background: var(--ah-surface);
    box-shadow: 0 16px 40px rgba(21, 24, 51, 0.14);
    overflow: hidden;
}

.ah-bell-menu.hidden {
    display: none;
}

.ah-bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ah-line);
    font-size: 15px;
}

.ah-bell-list {
    overflow-y: auto;
    padding: 6px;
}

.ah-bell-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    color: var(--ah-ink);
    text-decoration: none;
}

.ah-bell-item:hover {
    background: var(--ah-soft);
}

.ah-bell-item.is-new {
    background: var(--ah-tint-1);
}

.ah-bell-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ah-accent-soft);
    color: var(--ah-accent);
}

.ah-bell-item.is-failed .ah-bell-ico {
    background: var(--ah-danger-soft);
    color: var(--ah-danger);
}

.ah-bell-text {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-size: 13px;
}

.ah-bell-text strong {
    font-size: 14px;
}

.ah-bell-text span {
    overflow: hidden;
    color: var(--ah-ink-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ah-bell-text time {
    color: var(--ah-muted);
    font-size: 12px;
}

.ah-bell-empty {
    padding: 24px 16px;
    color: var(--ah-muted);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 760px) {
    .ah-bell-menu {
        position: fixed;
        top: 64px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

:root[data-theme] .ah-shell .ah-bell-head [data-bell-push] {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--ah-accent);
    font: 700 13px/1.2 var(--ah-font-ui);
    cursor: pointer;
}

@media (max-width: 480px) {
    .ah-header-inner:has(.ah-bell:not([hidden])) .ah-logo {
        gap: 0;
        font-size: 0;
    }

    :root[data-theme] .ah-shell .ah-bell-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

@media (max-width: 760px) {
    body.ah-shell :is(.ah-logo, .ah-bell-btn, .ah-lang-btn, .ah-card-head .ah-link, button.ah-badge, .agents-conversation-delete, .agents-camera, .ag-drawer-close) {
        position: relative;
    }

    body.ah-shell :is(.ah-logo, .ah-bell-btn, .ah-lang-btn, .ah-card-head .ah-link, button.ah-badge, .agents-conversation-delete, .agents-camera, .ag-drawer-close)::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: max(100%, 44px);
        height: max(100%, 44px);
        transform: translate(-50%, -50%);
    }

    body.ah-shell .ah-more summary {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    :root[data-theme] body.ah-shell :is(input:is([type="text"], [type="search"], [type="email"], [type="url"], [type="number"], :not([type])), select, .agents-search-toggle, .agents-message-file, .back-btn) {
        min-height: 44px;
    }

    :root[data-theme] body.ah-shell .ag-jump-btn {
        width: 44px;
        height: 44px;
    }
}
