.demo-cycle-mobile {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background:
        radial-gradient(420px circle at 50% 0%, rgba(132, 204, 22, .18), transparent 60%),
        #0f172a;
}

.demo-phone-shell {
    position: relative;
    width: min(100vw - 24px, 390px);
    aspect-ratio: 9 / 16;
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--bg);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    overflow: hidden;
}

.demo-phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 24px;
    border-radius: 999px;
    background: #0f172a;
    z-index: 5;
}

.demo-phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 34px 16px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.demo-phone-top .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
}

.demo-phone-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--c-50);
}

.demo-phone-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 8px;
    overflow: hidden;
}

.demo-cycle-mobile .demo-progress {
    height: 6px;
}

.demo-cycle-mobile .demo-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin: 8px 0 10px;
}

.demo-cycle-mobile .demo-steps li {
    padding: 5px 4px;
    font-size: 9px;
}

.demo-cycle-mobile .demo-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.demo-cycle-mobile .demo-panel.is-hidden {
    position: absolute;
    width: calc(100% - 28px);
}

.demo-cycle-mobile .demo-panel h2 {
    font-size: 17px;
    margin-bottom: 8px;
}

.demo-cycle-mobile .demo-form {
    gap: 8px;
    max-width: none;
}

.demo-cycle-mobile .demo-form label {
    font-size: 11px;
}

.demo-cycle-mobile .demo-form input {
    padding: 7px 9px;
    font-size: 12px;
}

.demo-cycle-mobile .demo-form .primary,
.demo-cycle-mobile .demo-form .outline {
    font-size: 13px;
    padding: 10px 12px;
}

.demo-cycle-mobile .demo-trade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-cycle-mobile .demo-trade-card {
    font-size: 11px;
    padding: 10px 8px;
}

.demo-cycle-mobile .demo-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 140px;
}

.demo-cycle-mobile .demo-area-card {
    padding: 8px;
    font-size: 13px;
}

.demo-cycle-mobile .demo-inline-hint {
    font-size: 11px;
}

.demo-cycle-mobile .demo-loader-lead {
    font-size: 12px;
    margin-bottom: 8px;
}

.demo-cycle-mobile .demo-loader-counters {
    gap: 18px;
    margin-top: 14px;
}

.demo-cycle-mobile .demo-loader-counters li {
    min-width: 56px;
    font-size: 9px;
}

.demo-cycle-mobile .demo-loader-counters strong {
    font-size: 28px;
}

.demo-results-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
    scroll-behavior: smooth;
}

.demo-cycle-mobile .demo-panel[data-step="5"] {
    position: relative;
}

.demo-result-card {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    padding: 10px;
    opacity: 0;
    transform: translateY(8px);
}

.demo-result-card.is-visible {
    animation: reveal-row .3s ease forwards;
}

.demo-result-card.is-focused {
    outline: 2px solid var(--a-500);
    outline-offset: -2px;
}

.demo-result-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.demo-result-head strong {
    font-size: 13px;
    line-height: 1.2;
}

.demo-result-meta {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--text-soft);
}

.demo-cycle-mobile .demo-result-card .pill-score {
    min-width: 32px;
    height: 24px;
    font-size: 12px;
}

.demo-cycle-mobile .demo-status {
    width: 100%;
    min-width: 0;
    margin-bottom: 6px;
    font-size: 11px;
}

.demo-cycle-mobile .demo-note {
    width: 100%;
    min-width: 0;
    font-size: 10px;
    min-height: 28px;
}

.demo-phone-cta {
    padding: 10px 16px 16px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), #ecfccb);
}

.demo-phone-cta p {
    margin: 0 0 2px;
    font-size: 11px;
    color: var(--text-soft);
}

.demo-phone-cta strong {
    font-size: 15px;
    letter-spacing: .04em;
    color: #365314;
}

[data-theme="dark"] .demo-cycle-mobile {
    background:
        radial-gradient(420px circle at 50% 0%, rgba(132, 204, 22, .12), transparent 60%),
        #0d0c0b;
}

[data-theme="dark"] .demo-phone-shell {
    border-color: rgba(255, 255, 255, .08);
}

[data-theme="dark"] .demo-phone-notch {
    background: #0d0c0b;
}

[data-theme="dark"] .demo-phone-cta {
    background: linear-gradient(180deg, var(--surface), #1a2e0a);
}

[data-theme="dark"] .demo-phone-cta strong {
    color: #bef264;
}

.demo-cycle-mobile .demo-end-screen {
    border-radius: 28px;
    gap: 8px;
    padding: 24px 20px;
}

.demo-cycle-mobile .demo-end-screen h2 {
    font-size: 26px;
}

.demo-cycle-mobile .demo-end-screen p {
    font-size: 13px;
}

.demo-cycle-mobile .demo-end-url {
    font-size: 15px;
}

@media (min-width: 520px) {
    .demo-phone-shell {
        width: min(390px, calc((100dvh - 24px) * 9 / 16));
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-cycle-mobile *,
    .demo-cycle-mobile *::before,
    .demo-cycle-mobile *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
