.theme-prompt-lock {
    overflow: hidden !important;
}
.theme-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483603;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: radial-gradient(circle at 50% 0%, rgba(88, 122, 255, 0.20), transparent 34%), rgba(7, 9, 15, 0.78);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}
.theme-prompt-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.theme-prompt-shell {
    width: min(680px, 100%);
    max-height: min(640px, calc(100vh - 32px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(18, 21, 32, 0.97), rgba(8, 10, 16, 0.96));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateY(16px) scale(0.975);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.theme-prompt-overlay.is-visible .theme-prompt-shell {
    transform: translateY(0) scale(1);
}
.theme-prompt-inner {
    padding: clamp(22px, 4vw, 34px);
}
.theme-prompt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #aeb8cc;
    background: rgba(255, 255, 255, 0.055);
    font: 700 11px/1.1 Inter, Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.theme-prompt-title {
    margin: 0;
    color: #f7f9ff;
    font: 800 clamp(25px, 5vw, 40px)/1.05 Inter, Arial, sans-serif;
    letter-spacing: -0.045em;
}
.theme-prompt-text {
    max-width: 620px;
    margin: 10px 0 0;
    color: #aeb8cc;
    font: 500 clamp(14px, 2.4vw, 16px)/1.5 Inter, Arial, sans-serif;
}
.theme-prompt-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.theme-prompt-choice {
    position: relative;
    display: flex;
    min-height: 142px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    color: #f5f7fb;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    cursor: pointer;
    text-align: left;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation: themeChoiceFloat 6200ms ease-in-out infinite;
}
.theme-prompt-choice:nth-child(2) {
    animation-delay: -2600ms;
}
.theme-prompt-choice::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 220ms ease;
    animation: themeChoiceAura 6200ms ease-in-out infinite;
}
.theme-prompt-choice:nth-child(2)::before {
    animation-delay: -2600ms;
}
.theme-prompt-choice > span {
    position: relative;
    z-index: 1;
}
.theme-prompt-choice:hover,
.theme-prompt-choice:focus-visible {
    animation: none;
    transform: translate3d(0, -4px, 0) scale(1.018);
    border-color: rgba(135, 160, 230, 0.48);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.30), 0 0 0 4px rgba(91, 140, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    outline: none;
}
.theme-prompt-choice:hover::before,
.theme-prompt-choice:focus-visible::before {
    animation: none;
    opacity: 0.78;
}
.theme-prompt-choice.is-magnetic {
    animation: none;
}
.theme-prompt-choice:active {
    transform: translate3d(0, -1px, 0) scale(0.992);
}
.theme-prompt-choice.is-saving {
    pointer-events: none;
    opacity: 0.72;
}
.theme-prompt-preview {
    display: block;
    height: 6px;
    margin-bottom: 22px;
}
.theme-prompt-preview span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
}
.theme-prompt-choice[data-theme-value="green"] {
    border-color: rgba(82, 161, 94, 0.26);
    color: #14301a;
    background: linear-gradient(145deg, #fbfff7, #e8f8e9 54%, #d8f2dc);
    box-shadow: 0 18px 38px rgba(34, 95, 48, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.theme-prompt-choice[data-theme-value="green"]::before {
    background: radial-gradient(circle at 18% 8%, rgba(95, 190, 105, 0.22), transparent 38%), linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 48%);
}
.theme-prompt-choice[data-theme-value="green"]:hover,
.theme-prompt-choice[data-theme-value="green"]:focus-visible {
    border-color: rgba(68, 154, 82, 0.48);
    background: linear-gradient(145deg, #ffffff, #eefbed 52%, #dcf4df);
    box-shadow: 0 22px 46px rgba(34, 95, 48, 0.16), 0 0 0 4px rgba(77, 171, 91, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.theme-prompt-choice[data-theme-value="green"] .theme-prompt-preview span:nth-child(1) {
    background: linear-gradient(90deg, #67c56f, #3da451);
    box-shadow: 0 0 22px rgba(73, 184, 91, 0.20);
}
.theme-prompt-choice[data-theme-value="green"] .theme-prompt-name {
    color: #132719;
}
.theme-prompt-choice[data-theme-value="green"] .theme-prompt-desc {
    color: #4d6b55;
}
.theme-prompt-choice[data-theme-value="modern"] {
    border-color: rgba(105, 133, 205, 0.22);
    background: linear-gradient(145deg, rgba(28, 33, 48, 0.74), rgba(5, 7, 13, 0.82));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.theme-prompt-choice[data-theme-value="modern"]::before {
    background: radial-gradient(circle at 20% 8%, rgba(91, 140, 255, 0.20), transparent 40%), linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 52%);
}
.theme-prompt-choice[data-theme-value="modern"]:hover,
.theme-prompt-choice[data-theme-value="modern"]:focus-visible {
    border-color: rgba(111, 155, 255, 0.46);
    background: linear-gradient(145deg, rgba(32, 38, 56, 0.82), rgba(5, 7, 13, 0.9));
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34), 0 0 0 4px rgba(91, 140, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.theme-prompt-choice[data-theme-value="modern"] .theme-prompt-preview span:nth-child(1) {
    background: linear-gradient(90deg, #5b8cff, #2563eb);
    box-shadow: 0 0 24px rgba(91, 140, 255, 0.26);
}
.theme-prompt-name {
    display: block;
    color: #ffffff;
    font: 800 18px/1.2 Inter, Arial, sans-serif;
    letter-spacing: -0.02em;
}
.theme-prompt-desc {
    display: block;
    margin-top: 6px;
    color: #b7c0d3;
    font: 500 13px/1.45 Inter, Arial, sans-serif;
}
.theme-prompt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    color: #8590a3;
    font: 500 12.5px/1.45 Inter, Arial, sans-serif;
}
.theme-prompt-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #cad2e2;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}
@media (max-width: 767px) {
    .theme-prompt-overlay {
        align-items: flex-end;
        padding: 12px;
    }
    .theme-prompt-shell {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 24px;
    }
    .theme-prompt-inner {
        padding: 22px 18px 18px;
    }
    .theme-prompt-options {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 22px;
    }
    .theme-prompt-choice {
        min-height: 112px;
        padding: 16px;
        border-radius: 19px;
        animation-duration: 7600ms;
    }
    .theme-prompt-preview {
        height: 5px;
        margin-bottom: 16px;
    }
    .theme-prompt-name {
        font-size: 16px;
    }
    .theme-prompt-footer {
        display: block;
    }
    .theme-prompt-badge {
        margin-top: 10px;
        white-space: normal;
    }
}
@media (max-width: 380px) {
    .theme-prompt-overlay {
        padding: 8px;
    }
    .theme-prompt-inner {
        padding: 18px 14px 14px;
    }
    .theme-prompt-title {
        font-size: 23px;
    }
    .theme-prompt-text {
        font-size: 13px;
    }
    .theme-prompt-choice {
        min-height: 104px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .theme-prompt-overlay,
    .theme-prompt-shell,
    .theme-prompt-choice {
        transition: none;
        animation: none;
    }
    .theme-prompt-choice::before {
        animation: none;
    }
}
@keyframes themeChoiceFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    45% {
        transform: translate3d(0, -3px, 0) scale(1.01) rotate(-0.22deg);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes themeChoiceAura {
    0% {
        opacity: 0.48;
    }
    45% {
        opacity: 0.82;
    }
    100% {
        opacity: 0.48;
    }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .theme-prompt-overlay {
        background: rgba(6, 8, 14, 0.94);
    }
}
