.swr-mn-app {
    --swr-mn-orange: #d17b13;
    --swr-mn-orange-light: #ff9f2f;
    --swr-mn-surface: #0c1016;
    --swr-mn-surface-2: #11161d;
    --swr-mn-border: rgba(255, 255, 255, .12);
    --swr-mn-muted: rgba(255, 255, 255, .65);
    position: relative;
    width: 100%;
    color: #fff;
    font-family: inherit;
}

.swr-mn-app,
.swr-mn-app * {
    box-sizing: border-box;
}

.swr-mn-heading {
    max-width: 900px;
    margin: 0 auto clamp(28px, 4vw, 48px);
    text-align: center;
}

.swr-mn-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--swr-mn-orange-light);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .15em;
    line-height: 1;
    text-transform: uppercase;
}

.swr-mn-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .98;
}

.swr-mn-heading h2::after {
    content: '';
    display: block;
    width: min(220px, 42vw);
    height: 2px;
    margin: 22px auto 0;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--swr-mn-orange-light) 0 3px, transparent 4px),
        linear-gradient(90deg, transparent, rgba(255, 159, 47, .85), transparent);
    box-shadow: 0 0 18px rgba(209, 123, 19, .12);
}

.swr-mn-heading p {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--swr-mn-muted);
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.65;
}

.swr-mn-overview {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
    margin-bottom: 28px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--swr-mn-border);
    border-radius: 26px;
    background:
        radial-gradient(circle at 8% 0%, rgba(209, 123, 19, .13), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.swr-mn-overview-ring {
    position: relative;
    width: 124px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--swr-mn-orange-light) var(--swr-mn-progress), rgba(209, 123, 19, .22) 0);
    filter: drop-shadow(0 0 22px rgba(209, 123, 19, .15));
}

.swr-mn-overview-ring::before {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: inherit;
    background: #0b0f14;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, .55);
}

.swr-mn-overview-ring span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.swr-mn-overview-body > strong {
    display: block;
    margin-bottom: 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 850;
}

.swr-mn-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 17px;
}

.swr-mn-overview-stats > div {
    min-width: 0;
    padding: 0 clamp(15px, 3vw, 40px);
    border-left: 1px solid rgba(255, 255, 255, .10);
}

.swr-mn-overview-stats > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.swr-mn-overview-stats b,
.swr-mn-overview-stats span {
    display: block;
}

.swr-mn-overview-stats b {
    color: var(--swr-mn-orange-light);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
}

.swr-mn-overview-stats span {
    margin-top: 5px;
    color: var(--swr-mn-muted);
    font-size: 12px;
}

.swr-mn-overview-bar,
.swr-mn-category-progress {
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .11);
}

.swr-mn-overview-bar {
    width: 100%;
    height: 9px;
}

.swr-mn-overview-bar span,
.swr-mn-category-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--swr-mn-orange), var(--swr-mn-orange-light));
    box-shadow: 0 0 24px rgba(255, 159, 47, .32);
    transition: width .3s ease;
}

.swr-mn-overview-body > p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .56);
    font-size: 12px;
}

.swr-mn-categories {
    display: grid;
    gap: 10px;
}

.swr-mn-category {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background:
        radial-gradient(circle at 0% 0%, rgba(209, 123, 19, .08), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, .043), rgba(255, 255, 255, .014));
    box-shadow: 0 20px 58px rgba(0, 0, 0, .24);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.swr-mn-category:hover,
.swr-mn-category.is-open {
    border-color: rgba(209, 123, 19, .35);
}

.swr-mn-category.is-open {
    box-shadow: 0 28px 80px rgba(0, 0, 0, .32), 0 0 0 1px rgba(209, 123, 19, .07) inset;
}

.swr-mn-category-toggle {
    width: 100%;
    min-height: 96px;
    display: grid;
    grid-template-columns: 64px minmax(220px, 1.3fr) auto minmax(180px, .8fr) minmax(130px, .65fr) auto;
    gap: clamp(14px, 2vw, 28px);
    align-items: center;
    padding: 16px 20px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.swr-mn-category-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(209, 123, 19, .65);
    border-radius: 50%;
    color: var(--swr-mn-orange-light);
    background: rgba(209, 123, 19, .07);
    font-size: 21px;
    box-shadow: inset 0 0 18px rgba(209, 123, 19, .06);
}

.swr-mn-category-copy,
.swr-mn-category-copy strong,
.swr-mn-category-copy small {
    display: block;
    min-width: 0;
}

.swr-mn-category-copy strong {
    color: #fff;
    font-size: clamp(20px, 2.3vw, 28px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.swr-mn-category-copy small {
    overflow: hidden;
    margin-top: 5px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swr-mn-card-count {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.swr-mn-card-count b {
    margin-right: 4px;
    color: #fff;
}

.swr-mn-category-progress-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: rgba(255, 255, 255, .60);
    font-size: 12px;
    white-space: nowrap;
}

.swr-mn-category-progress-copy b {
    color: var(--swr-mn-orange-light);
    font-size: 18px;
}

.swr-mn-category-progress {
    width: 100%;
    height: 7px;
}

.swr-mn-toggle-label {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid rgba(209, 123, 19, .50);
    border-radius: 10px;
    color: var(--swr-mn-orange-light);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.swr-mn-toggle-label i {
    transition: transform .24s ease;
}

.swr-mn-category.is-open .swr-mn-toggle-label i {
    transform: rotate(180deg);
}

.swr-mn-category-panel {
    padding: 0 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.swr-mn-category-panel[hidden] {
    display: none !important;
}

.swr-mn-carousel-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.swr-mn-carousel-head > span {
    color: var(--swr-mn-orange-light);
    font-size: 12px;
    font-weight: 850;
}

.swr-mn-carousel-actions {
    display: flex;
    gap: 8px;
}

.swr-mn-carousel-actions button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(0, 0, 0, .30);
    color: var(--swr-mn-orange-light);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.swr-mn-carousel-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(209, 123, 19, .58);
    background: rgba(209, 123, 19, .10);
}

.swr-mn-carousel-actions button:disabled {
    opacity: .30;
    cursor: default;
}

.swr-mn-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, calc((100% - 32px) / 3));
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 1px 1px 8px;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(209, 123, 19, .55) rgba(255, 255, 255, .05);
}

.swr-mn-track::-webkit-scrollbar {
    height: 6px;
}

.swr-mn-track::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(209, 123, 19, .55);
}

.swr-mn-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    background: #0a0d12;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.swr-mn-card:hover {
    transform: translateY(-3px);
    border-color: rgba(209, 123, 19, .38);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .42), 0 0 28px rgba(209, 123, 19, .08);
}

.swr-mn-card.is-learned {
    border-color: rgba(209, 123, 19, .68);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .42), 0 0 32px rgba(209, 123, 19, .13);
}

.swr-mn-card-media {
    position: relative;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #11161c;
}

.swr-mn-card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .38));
    pointer-events: none;
}

.swr-mn-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.swr-mn-card:hover .swr-mn-card-media img {
    transform: scale(1.025);
}

.swr-mn-card-media.has-no-image {
    display: grid;
    place-items: center;
    color: rgba(209, 123, 19, .58);
    background:
        linear-gradient(135deg, rgba(209, 123, 19, .11), transparent 58%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px),
        #10141a;
    font-size: 52px;
}

.swr-mn-card-content {
    flex: 1;
    min-height: 142px;
    padding: 16px;
    background: linear-gradient(135deg, #d17b13, #bd6810);
}

.swr-mn-number {
    width: fit-content;
    max-width: 100%;
    display: block;
    overflow: hidden;
    margin-bottom: 9px;
    padding: 4px 9px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .06em;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.swr-mn-card-content h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.swr-mn-card-content p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    line-height: 1.4;
}

.swr-mn-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: #090c10;
}

.swr-mn-status-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
    color: rgba(255, 255, 255, .78);
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.swr-mn-status-button:hover {
    transform: translateY(-1px);
    border-color: rgba(209, 123, 19, .55);
    color: #fff;
}

.swr-mn-status-button[aria-pressed='true'] {
    border-color: rgba(209, 123, 19, .62);
    background: rgba(209, 123, 19, .14);
    color: var(--swr-mn-orange-light);
}

.swr-mn-status-button[data-swr-mn-status='learned'][aria-pressed='true'] {
    border-color: var(--swr-mn-orange);
    background: linear-gradient(135deg, var(--swr-mn-orange), #b9650e);
    color: #fff;
    box-shadow: 0 8px 24px rgba(209, 123, 19, .22);
}

.swr-mn-status-button.is-saving {
    opacity: .55;
    pointer-events: none;
}

.swr-mn-steps {
    display: block;
    padding: 0 12px 10px;
    background: #090c10;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    text-align: center;
}

.swr-mn-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: var(--swr-mn-muted);
    text-align: center;
}

.swr-mn-empty i {
    margin-bottom: 6px;
    color: var(--swr-mn-orange-light);
    font-size: 30px;
}

.swr-mn-empty strong {
    color: #fff;
    font-size: 17px;
}

.swr-mn-empty span {
    max-width: 640px;
    font-size: 12px;
    line-height: 1.5;
}

.swr-mn-empty.is-category-empty {
    min-height: 150px;
    margin-top: 20px;
}

.swr-mn-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10000;
    max-width: min(360px, calc(100vw - 44px));
    padding: 13px 16px;
    border: 1px solid rgba(209, 123, 19, .45);
    border-radius: 12px;
    background: rgba(8, 11, 15, .96);
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

.swr-mn-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.swr-mn-category-toggle:focus-visible,
.swr-mn-status-button:focus-visible,
.swr-mn-carousel-actions button:focus-visible,
.swr-mn-track:focus-visible {
    outline: 2px solid var(--swr-mn-orange-light);
    outline-offset: 3px;
}

@media (max-width: 1120px) {
    .swr-mn-category-toggle {
        grid-template-columns: 60px minmax(210px, 1fr) auto minmax(160px, .8fr) auto;
    }

    .swr-mn-category-progress {
        display: none;
    }

    .swr-mn-track {
        grid-auto-columns: minmax(270px, calc((100% - 16px) / 2));
    }
}

@media (max-width: 860px) {
    .swr-mn-overview {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 22px;
    }

    .swr-mn-overview-ring {
        width: 104px;
    }

    .swr-mn-overview-ring span {
        font-size: 25px;
    }

    .swr-mn-category-toggle {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 12px 16px;
    }

    .swr-mn-card-count {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .swr-mn-category-progress-copy {
        grid-column: 2;
        grid-row: 3;
    }

    .swr-mn-toggle-label {
        grid-column: 3;
        grid-row: 1 / span 3;
    }
}

@media (max-width: 640px) {
    .swr-mn-heading {
        text-align: left;
    }

    .swr-mn-heading h2 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .swr-mn-heading h2::after {
        margin-left: 0;
        margin-right: auto;
    }

    .swr-mn-overview {
        grid-template-columns: 1fr;
        justify-items: stretch;
        border-radius: 22px;
    }

    .swr-mn-overview-ring {
        margin-left: 0;
    }

    .swr-mn-overview-stats > div {
        padding: 0 12px;
    }

    .swr-mn-overview-stats b {
        font-size: 27px;
    }

    .swr-mn-category {
        border-radius: 16px;
    }

    .swr-mn-category-toggle {
        min-height: 0;
        grid-template-columns: 50px minmax(0, 1fr) 40px;
        padding: 15px;
    }

    .swr-mn-category-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .swr-mn-category-copy strong {
        font-size: 20px;
    }

    .swr-mn-category-copy small {
        white-space: normal;
    }

    .swr-mn-card-count,
    .swr-mn-category-progress-copy {
        grid-column: 2 / span 2;
    }

    .swr-mn-toggle-label {
        width: 40px;
        min-height: 40px;
        grid-column: 3;
        grid-row: 1;
        padding: 0;
        border-radius: 50%;
    }

    .swr-mn-toggle-label span {
        display: none;
    }

    .swr-mn-category-panel {
        padding: 0 14px 14px;
    }

    .swr-mn-track {
        grid-auto-columns: minmax(250px, 86%);
        gap: 12px;
    }

    .swr-mn-card-content {
        min-height: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .swr-mn-app *,
    .swr-mn-app *::before,
    .swr-mn-app *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
