.modes-page {
    --mode-accent: #4f8df6;
    --mode-accent-deep: #3475e6;
    --mode-soft: #edf4ff;
}

.modes-shell {
    gap: clamp(18px, 3vw, 28px);
}

.mode-detail-hero,
.modes-closing,
.mode-detail-card,
.mode-detail-cta,
.custom-mode-studio {
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow);
}

.mode-detail-hero::before,
.modes-closing::before,
.mode-detail-cta::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -80px;
    bottom: -120px;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.mode-detail-hero > *,
.modes-closing > *,
.mode-detail-cta > * {
    position: relative;
    z-index: 1;
}

.mode-journey {
    border-radius: 28px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 3px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 15px 34px rgba(78, 117, 28, 0.11);
}

.mode-journey ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mode-journey li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 68px;
    padding: 11px 14px;
    border-radius: 19px;
    color: var(--ink-soft);
}

.mode-journey li + li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 10px;
    height: 2px;
    background: rgba(79, 141, 246, 0.22);
}

.mode-journey li.is-current {
    color: var(--ink);
    background: var(--sky-soft);
}

.mode-journey__number {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: rgba(79, 141, 246, 0.1);
    color: var(--sky-deep);
    font-size: 0.85rem;
    font-weight: 900;
}

.mode-journey .is-current .mode-journey__number {
    color: #ffffff;
    background: linear-gradient(180deg, var(--sky), var(--sky-deep));
}

.mode-journey li > span:last-child,
.mode-journey li a {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.mode-journey strong,
.mode-journey small {
    overflow-wrap: anywhere;
}

.mode-journey strong {
    font-size: 0.92rem;
}

.mode-journey small {
    color: var(--ink-soft);
    font-size: 0.72rem;
    line-height: 1.35;
}

.mode-journey a:focus-visible {
    border-radius: 6px;
    outline: 3px solid var(--sky-deep);
    outline-offset: 4px;
}

.modes-catalog {
    display: grid;
    gap: 18px;
}

.modes-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 8px 4px 0;
}

.modes-section-heading .page-kicker,
.mode-detail-card .page-kicker,
.mode-detail-cta .page-kicker,
.custom-mode-studio .page-kicker {
    margin-bottom: 12px;
}

.modes-section-heading h1,
.modes-closing h2,
.mode-detail-card h2,
.mode-detail-cta h2,
.custom-mode-studio h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.modes-section-heading > p,
.modes-closing p,
.mode-detail-cta p,
.custom-mode-studio__heading > p {
    max-width: 42ch;
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mode-grid > li {
    min-width: 0;
}

.mode-card,
.mode-detail-hero--classic { --mode-accent: #4f8df6; --mode-accent-deep: #3475e6; --mode-soft: #edf4ff; }
.mode-card--rush,
.mode-detail-hero--rush { --mode-accent: #ff705f; --mode-accent-deep: #d94d42; --mode-soft: #fff0ed; }
.mode-card--zen,
.mode-detail-hero--zen { --mode-accent: #54b8a6; --mode-accent-deep: #287f73; --mode-soft: #e7f8f3; }
.mode-card--daily,
.mode-detail-hero--daily { --mode-accent: #9a6bf2; --mode-accent-deep: #6941c6; --mode-soft: #f1ebff; }
.mode-card--gauntlet,
.mode-detail-hero--gauntlet { --mode-accent: #e6a52a; --mode-accent-deep: #ad7111; --mode-soft: #fff5d9; }
.mode-card--custom,
.mode-detail-hero--custom { --mode-accent: #e65ca8; --mode-accent-deep: #b23c7d; --mode-soft: #ffedf7; }

.mode-card {
    display: grid;
    grid-template-rows: 190px 1fr auto;
    height: 100%;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    border: 4px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.mode-card__art {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--mode-soft) 88%, white), var(--mode-soft));
}

.mode-card__art::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: scale(1.2) rotate(-4deg);
}

.mode-card__emblem {
    position: absolute;
    z-index: 1;
    top: 20px;
    left: 22px;
    color: color-mix(in srgb, var(--mode-accent-deep) 22%, transparent);
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.12em;
}

.mode-card__coil,
.mode-card__apple {
    position: absolute;
    z-index: 2;
    width: 42px;
    height: 42px;
}

.mode-card__coil {
    right: 122px;
    bottom: 28px;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--mode-accent), var(--mode-accent-deep));
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.13), 0 10px 20px color-mix(in srgb, var(--mode-accent) 24%, transparent);
}

.mode-card__coil--one { transform: translateX(-44px); opacity: 0.78; }
.mode-card__coil--two { opacity: 0.9; }
.mode-card__coil--head {
    transform: translateY(-44px);
    border-radius: 17px 17px 12px 12px;
}

.mode-card__coil--head::before,
.mode-card__coil--head::after {
    content: "";
    position: absolute;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.mode-card__coil--head::before { left: 10px; }
.mode-card__coil--head::after { right: 10px; }

.mode-card__apple {
    right: 34px;
    top: 29px;
    border-radius: 52% 48% 46% 50%;
    background: #ff5e55;
    box-shadow: inset 0 -5px 0 rgba(132, 25, 22, 0.16);
}

.mode-card__apple::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 22px;
    width: 14px;
    height: 8px;
    border-radius: 100% 0;
    background: #4a8d2c;
    transform: rotate(-25deg);
}

.mode-card__body {
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 24px 25px 18px;
}

.mode-card__eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--mode-accent-deep);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mode-card__rank {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--mode-accent-deep);
    background: var(--mode-soft);
    letter-spacing: 0.02em;
    text-transform: none;
}

.mode-card h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.mode-card__body > p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.62;
}

.mode-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 5px 0 0;
}

.mode-card__facts div {
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
    background: var(--mode-soft);
}

.mode-card__facts dt,
.mode-detail-facts dt {
    color: var(--ink-soft);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mode-card__facts dd,
.mode-detail-facts dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.mode-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 25px 25px;
}

.mode-card__look-link {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 6px 10px;
    color: var(--mode-accent-deep);
    font-size: 0.82rem;
    font-weight: 850;
    text-underline-offset: 4px;
}

.mode-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 11px 17px;
    border: 2px solid transparent;
    border-radius: 16px;
    font: inherit;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 130ms ease, box-shadow 130ms ease;
}

.mode-button:hover {
    transform: translateY(-2px);
}

.mode-button:focus-visible,
.mode-card__look-link:focus-visible,
.mode-detail-cta__back:focus-visible,
.mode-breadcrumb a:focus-visible {
    outline: 3px solid var(--mode-accent-deep, var(--sky-deep));
    outline-offset: 3px;
}

.mode-button--primary {
    color: #ffffff;
    background: linear-gradient(180deg, var(--mode-accent), var(--mode-accent-deep));
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.mode-button--secondary {
    color: var(--mode-accent-deep);
    background: #ffffff;
    border-color: color-mix(in srgb, var(--mode-accent) 24%, transparent);
}

.modes-closing,
.mode-detail-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(25px, 4vw, 38px);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 247, 215, 0.94));
}

.modes-closing p,
.mode-detail-cta p {
    margin-top: 10px;
}

.modes-closing .mode-button,
.mode-detail-cta .mode-button {
    flex: 0 0 auto;
}

.mode-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 5px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.mode-breadcrumb a {
    color: var(--sky-deep);
    text-underline-offset: 4px;
}

.mode-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
    gap: clamp(24px, 5vw, 52px);
    align-items: center;
    min-height: 460px;
    padding: clamp(29px, 5vw, 54px);
    border-radius: 38px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.95), transparent 33%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), var(--mode-soft));
}

.mode-detail-hero .page-kicker,
.mode-detail-card .page-kicker,
.mode-detail-cta .page-kicker,
.custom-mode-studio .page-kicker {
    color: var(--mode-accent-deep);
    background: color-mix(in srgb, var(--mode-accent) 13%, white);
}

.mode-detail-hero__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.mode-detail-hero__title-row > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--mode-accent-deep);
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--mode-accent) 20%, transparent);
    font-size: 0.75rem;
    font-weight: 900;
}

.mode-detail-hero__summary {
    max-width: 48ch;
    margin: 23px 0 0;
    color: var(--ink);
    font-size: clamp(1.15rem, 2.2vw, 1.42rem);
    font-weight: 850;
    line-height: 1.4;
}

.mode-detail-hero__feel {
    max-width: 58ch;
    margin: 13px 0 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.mode-detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 25px;
}

.mode-detail-hero__panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.76);
    border: 2px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 48px color-mix(in srgb, var(--mode-accent) 17%, transparent);
}

.mode-detail-visual {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1.22;
    border-radius: 22px;
    background-color: var(--mode-soft);
    background-image: linear-gradient(rgba(255, 255, 255, 0.88) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.88) 1px, transparent 1px);
    background-size: 38px 38px;
}

.mode-detail-visual__emblem {
    position: absolute;
    top: 18px;
    left: 18px;
    color: color-mix(in srgb, var(--mode-accent-deep) 20%, transparent);
    font-size: 4.3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.12em;
}

.mode-detail-visual__snake,
.mode-detail-visual__apple {
    position: absolute;
    width: 46px;
    height: 46px;
}

.mode-detail-visual__snake {
    bottom: 27px;
    right: 112px;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--mode-accent), var(--mode-accent-deep));
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12);
}

.mode-detail-visual__snake--one { transform: translateX(-48px); opacity: 0.74; }
.mode-detail-visual__snake--two { opacity: 0.88; }
.mode-detail-visual__snake--three { transform: translateY(-48px); }
.mode-detail-visual__snake--head {
    transform: translate(-48px, -48px);
    border-radius: 17px 17px 13px 13px;
}

.mode-detail-visual__snake--head::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: -16px 0 #ffffff;
}

.mode-detail-visual__apple {
    top: 31px;
    right: 28px;
    border-radius: 50%;
    background: #ff655b;
    box-shadow: inset 0 -5px 0 rgba(126, 21, 18, 0.14);
}

.mode-detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.mode-detail-facts div {
    min-width: 0;
    padding: 11px;
    border-radius: 14px;
    background: #ffffff;
}

.mode-detail-facts dd {
    font-size: 0.78rem;
}

.mode-journey--detail .is-current {
    background: var(--mode-soft);
}

.mode-journey--detail .is-current .mode-journey__number {
    background: linear-gradient(180deg, var(--mode-accent), var(--mode-accent-deep));
}

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

.mode-detail-card {
    padding: clamp(25px, 4vw, 36px);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
}

.mode-rule-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.mode-rule-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--ink-soft);
    line-height: 1.58;
}

.mode-rule-list li span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--mode-accent-deep);
    font-size: 0.75rem;
    font-weight: 900;
}

.mode-detail-card--audience > p:not(.page-kicker) {
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.75;
}

.mode-audience-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 22px;
    padding: 16px;
    border-radius: 18px;
    background: var(--mode-soft);
}

.mode-audience-note > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: var(--mode-accent-deep);
}

.mode-audience-note p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

.mode-audience-note strong {
    color: var(--ink);
}

.mode-detail-cta {
    --mode-accent: var(--sky);
    --mode-accent-deep: var(--sky-deep);
}

.mode-detail-cta__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mode-detail-cta__back {
    padding: 8px 7px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 850;
    text-underline-offset: 4px;
}

.custom-mode-studio {
    padding: clamp(25px, 4vw, 40px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 94% 8%, var(--mode-soft), transparent 30%),
        rgba(255, 255, 255, 0.96);
}

.custom-mode-studio__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

#customModeConfigurator {
    display: grid;
    gap: 19px;
    margin-top: 27px;
}

.custom-choice-group {
    min-width: 0;
    padding: 19px;
    margin: 0;
    border: 2px solid color-mix(in srgb, var(--mode-accent) 17%, transparent);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.8);
}

.custom-choice-group legend {
    padding: 0 7px;
    color: var(--ink);
    font-size: 1.06rem;
    font-weight: 900;
}

.custom-choice-group > p {
    margin: 0 0 13px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.custom-choice-grid {
    display: grid;
    gap: 10px;
}

.custom-choice-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-choice-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.custom-choice-grid--seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.custom-choice {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.custom-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-choice__surface {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 12px;
    border: 2px solid rgba(45, 69, 24, 0.1);
    border-radius: 16px;
    color: var(--ink);
    background: #ffffff;
    text-align: center;
    transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.custom-choice__surface strong {
    font-size: 0.88rem;
    line-height: 1.2;
}

.custom-choice__surface small {
    color: var(--ink-soft);
    font-size: 0.68rem;
    line-height: 1.3;
}

.custom-choice:hover .custom-choice__surface {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--mode-accent) 45%, transparent);
}

.custom-choice input:checked + .custom-choice__surface {
    color: var(--mode-accent-deep);
    border-color: var(--mode-accent);
    background: var(--mode-soft);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.custom-choice input:focus-visible + .custom-choice__surface {
    outline: 3px solid var(--mode-accent-deep);
    outline-offset: 3px;
}

.custom-mode-studio__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    border-radius: 22px;
    color: var(--ink);
    background: var(--mode-soft);
}

.custom-mode-studio__footer > div:first-child {
    min-width: 0;
}

.custom-mode-studio__footer strong {
    display: block;
    overflow-wrap: anywhere;
}

.custom-mode-studio__footer p {
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.custom-mode-studio__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.custom-mode-studio__skip {
    padding: 9px 7px;
    color: var(--mode-accent-deep);
    font-size: 0.8rem;
    font-weight: 850;
    text-underline-offset: 4px;
}

.custom-mode-studio__skip:focus-visible {
    outline: 3px solid var(--mode-accent-deep);
    outline-offset: 3px;
}

@media (max-width: 920px) {
    .mode-detail-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .mode-detail-hero__panel {
        width: min(100%, 520px);
        justify-self: center;
    }

    .custom-choice-grid--seven {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .modes-closing,
    .mode-detail-cta,
    .custom-mode-studio__heading,
    .custom-mode-studio__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .mode-detail-cta__actions,
    .custom-mode-studio__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .mode-grid,
    .mode-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mode-journey ol {
        grid-template-columns: minmax(0, 1fr);
    }

    .mode-journey li + li::before {
        left: 32px;
        top: -10px;
        width: 2px;
        height: 10px;
    }

    .modes-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .custom-choice-grid--four,
    .custom-choice-grid--seven {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .mode-detail-hero {
        padding: 24px 20px;
        border-radius: 28px;
    }

    .mode-detail-hero__title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mode-card {
        grid-template-rows: 166px 1fr auto;
        border-radius: 26px;
    }

    .mode-card__body {
        padding: 21px 19px 16px;
    }

    .mode-card__actions {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 19px 21px;
    }

    .mode-card__look-link {
        grid-column: auto;
    }

    .mode-card__facts,
    .mode-detail-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .mode-card__facts div,
    .mode-detail-facts div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

    .mode-card__facts dd,
    .mode-detail-facts dd {
        margin: 0;
        text-align: right;
    }

    .mode-detail-hero__actions,
    .mode-detail-cta__actions,
    .custom-mode-studio__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .custom-choice-grid--two,
    .custom-choice-grid--four,
    .custom-choice-grid--seven {
        grid-template-columns: minmax(0, 1fr);
    }

    .custom-choice__surface {
        min-height: 64px;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .mode-detail-hero {
        min-height: 0;
    }

    .mode-detail-visual {
        max-height: 260px;
    }
}

@media (pointer: coarse) {
    .mode-button,
    .mode-card__look-link,
    .mode-journey a,
    .mode-breadcrumb a,
    .custom-choice__surface {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mode-button,
    .custom-choice__surface {
        transition: none;
    }

    .mode-button:hover,
    .custom-choice:hover .custom-choice__surface {
        transform: none;
    }
}

@media (forced-colors: active) {
    .mode-detail-hero,
    .mode-card,
    .mode-journey,
    .modes-closing,
    .mode-detail-card,
    .mode-detail-cta,
    .custom-mode-studio,
    .custom-choice-group,
    .custom-choice__surface {
        border-color: CanvasText;
        background: Canvas;
    }

    .mode-button--primary,
    .mode-rule-list li span,
    .mode-audience-note > span,
    .mode-journey .is-current .mode-journey__number {
        color: HighlightText;
        background: Highlight;
        forced-color-adjust: none;
    }

    .custom-choice input:checked + .custom-choice__surface {
        color: HighlightText;
        background: Highlight;
        border-color: Highlight;
        forced-color-adjust: none;
    }

    .mode-button:focus-visible,
    .mode-card__look-link:focus-visible,
    .mode-detail-cta__back:focus-visible,
    .mode-breadcrumb a:focus-visible,
    .custom-choice input:focus-visible + .custom-choice__surface {
        outline-color: Highlight;
    }
}
