/* app/Layout/MainLayout.razor.rz.scp.css */
.page[b-ycw5yxu1ge] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    isolation: isolate;
}

main[b-ycw5yxu1ge] {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
}

.sidebar[b-ycw5yxu1ge] {
    background:
        radial-gradient(circle at 12% 2%, rgba(223, 194, 124, 0.2), transparent 22rem),
        linear-gradient(180deg, #1e162b 0%, #27172f 52%, #15101f 100%);
    border-right: 1px solid rgba(215, 184, 116, 0.22);
}

.app-content[b-ycw5yxu1ge] {
    width: 100%;
    max-width: 1480px;
    margin-inline: auto;
    padding: 1.25rem 1rem calc(6.25rem + env(safe-area-inset-bottom));
}

.skip-link[b-ycw5yxu1ge] {
    position: fixed;
    z-index: 3000;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.55rem;
    background: #fffaf1;
    color: #21182d;
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus[b-ycw5yxu1ge] {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .sidebar[b-ycw5yxu1ge] {
        position: sticky;
        z-index: 90;
        top: 0;
    }
}

@media (min-width: 768px) {
    .page[b-ycw5yxu1ge] {
        flex-direction: row;
    }

    .sidebar[b-ycw5yxu1ge] {
        z-index: 30;
        flex: 0 0 92px;
        width: 92px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .app-content[b-ycw5yxu1ge] {
        padding: clamp(1.75rem, 3.2vw, 2.5rem);
    }
}

@media (min-width: 1180px) {
    .sidebar[b-ycw5yxu1ge] {
        flex-basis: 264px;
        width: 264px;
    }

    .app-content[b-ycw5yxu1ge] {
        padding-inline: clamp(2rem, 4vw, 4rem);
        padding-bottom: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skip-link[b-ycw5yxu1ge] {
        transition: none;
    }
}
/* app/Layout/NavMenu.razor.rz.scp.css */
.app-header[b-fisxq42yhi] {
    display: flex;
    min-height: 4rem;
    padding: 0.65rem 1rem;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 15, 30, 0.78);
    border-bottom: 1px solid rgba(215, 184, 116, 0.2);
    backdrop-filter: blur(18px);
}

.app-brand[b-fisxq42yhi] {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
    color: #fff8e6;
    text-decoration: none;
}

.app-brand:hover[b-fisxq42yhi],
.app-brand:focus-visible[b-fisxq42yhi] {
    color: #fff8e6;
}

.brand-mark[b-fisxq42yhi] {
    display: grid;
    flex: 0 0 2.15rem;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(221, 190, 117, 0.54);
    border-radius: 50%;
    background: rgba(197, 164, 96, 0.1);
    color: #e0c47f;
    font-size: 0.9rem;
    place-items: center;
    box-shadow: inset 0 0 0 4px rgba(197, 164, 96, 0.06);
}

.brand-copy[b-fisxq42yhi] {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong[b-fisxq42yhi] {
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-copy small[b-fisxq42yhi] {
    display: none;
    margin-top: 0.28rem;
    color: rgba(247, 232, 189, 0.55);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.19em;
}

.mobile-header-actions[b-fisxq42yhi] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-icon-button[b-fisxq42yhi] {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border: 1px solid rgba(215, 184, 116, 0.24);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: #f7e8bd;
    font-size: 1.05rem;
    text-decoration: none;
    place-items: center;
}

.mobile-header-actions[b-fisxq42yhi]  a.mobile-icon-button {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border: 1px solid rgba(215, 184, 116, 0.24);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: #f7e8bd;
    font-size: 1.05rem;
    text-decoration: none;
    place-items: center;
}

.mobile-icon-button:disabled[b-fisxq42yhi] {
    opacity: 0.55;
}

.nav-scrollable[b-fisxq42yhi] {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(215, 184, 116, 0.3);
    background: rgba(25, 18, 36, 0.96);
    box-shadow: 0 -10px 30px rgba(18, 12, 28, 0.18);
    backdrop-filter: blur(20px);
}

.nav-scrollable.setup-only[b-fisxq42yhi] {
    display: none;
}

.app-navigation[b-fisxq42yhi] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 4.25rem;
}

.nav-item[b-fisxq42yhi] {
    min-width: 0;
}

.nav-item[b-fisxq42yhi]  .nav-link,
.nav-item .sync-nav-action[b-fisxq42yhi] {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 4.25rem;
    padding: 0.45rem 0.15rem 0.35rem;
    border: 0;
    border-radius: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    background: transparent;
    color: rgba(255, 248, 230, 0.68);
    font: inherit;
    text-align: center;
    text-decoration: none;
}

.nav-icon[b-fisxq42yhi] {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: 1.2rem;
    line-height: 1;
    place-items: center;
}

.reading-nav-icon[b-fisxq42yhi] {
    color: #e0c47f;
}

.nav-label[b-fisxq42yhi] {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.62rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item[b-fisxq42yhi]  .nav-link.active {
    color: #fff4d7;
}

.nav-item[b-fisxq42yhi]  .nav-link.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1.75rem;
    height: 2px;
    border-radius: 999px;
    background: #d9b966;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(217, 185, 102, 0.55);
}

.nav-item[b-fisxq42yhi]  .nav-link:focus-visible,
.nav-item .sync-nav-action:focus-visible[b-fisxq42yhi],
.mobile-icon-button:focus-visible[b-fisxq42yhi],
.mobile-header-actions[b-fisxq42yhi]  a.mobile-icon-button:focus-visible,
.app-brand:focus-visible[b-fisxq42yhi] {
    outline: 2px solid #e0c47f;
    outline-offset: -2px;
}

.utility-nav-item[b-fisxq42yhi],
.nav-separator[b-fisxq42yhi],
.nav-footer[b-fisxq42yhi] {
    display: none;
}

@media (min-width: 768px) {
    .app-header[b-fisxq42yhi] {
        min-height: 5.35rem;
        padding: 1rem 0.7rem;
        justify-content: center;
        background: rgba(18, 13, 27, 0.32);
    }

    .brand-copy[b-fisxq42yhi],
    .mobile-header-actions[b-fisxq42yhi] {
        display: none;
    }

    .brand-mark[b-fisxq42yhi] {
        width: 2.6rem;
        height: 2.6rem;
        flex-basis: 2.6rem;
    }

    .nav-scrollable[b-fisxq42yhi],
    .nav-scrollable.setup-only[b-fisxq42yhi] {
        position: static;
        display: block;
        height: calc(100vh - 5.35rem);
        padding: 0.65rem 0.55rem 1rem;
        overflow-y: auto;
        border-top: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .app-navigation[b-fisxq42yhi] {
        display: flex;
        min-height: 100%;
        flex-direction: column;
        gap: 0.35rem;
    }

    .nav-item[b-fisxq42yhi]  .nav-link,
    .nav-item .sync-nav-action[b-fisxq42yhi] {
        min-height: 4.2rem;
        padding: 0.5rem 0.2rem;
        border: 1px solid transparent;
        border-radius: 0.85rem;
        gap: 0.25rem;
    }

    .nav-label[b-fisxq42yhi] {
        font-size: 0.63rem;
    }

    .nav-item[b-fisxq42yhi]  .nav-link:hover,
    .nav-item .sync-nav-action:hover:not(:disabled)[b-fisxq42yhi] {
        background: rgba(255, 255, 255, 0.065);
        color: #fff8e6;
    }

    .nav-item[b-fisxq42yhi]  .nav-link.active {
        border-color: rgba(215, 184, 116, 0.34);
        background: linear-gradient(135deg, rgba(197, 164, 96, 0.2), rgba(255, 255, 255, 0.07));
    }

    .nav-item[b-fisxq42yhi]  .nav-link.active::before {
        top: 50%;
        left: -0.58rem;
        width: 3px;
        height: 1.7rem;
        transform: translateY(-50%);
    }

    .utility-nav-item[b-fisxq42yhi] {
        display: block;
    }

    .nav-separator[b-fisxq42yhi] {
        display: block;
        height: 1px;
        margin: 0.45rem 0.4rem;
        background: rgba(255, 255, 255, 0.09);
    }

    .sync-nav-action:disabled[b-fisxq42yhi] {
        cursor: wait;
        opacity: 0.6;
    }
}

@media (min-width: 1180px) {
    .app-header[b-fisxq42yhi] {
        min-height: 6.5rem;
        padding: 1.35rem 1.4rem;
        justify-content: flex-start;
    }

    .app-brand[b-fisxq42yhi] {
        gap: 0.85rem;
    }

    .brand-copy[b-fisxq42yhi] {
        display: flex;
    }

    .brand-copy small[b-fisxq42yhi] {
        display: block;
    }

    .nav-scrollable[b-fisxq42yhi],
    .nav-scrollable.setup-only[b-fisxq42yhi] {
        height: calc(100vh - 6.5rem);
        padding: 1rem 0.9rem 1.2rem;
    }

    .app-navigation[b-fisxq42yhi] {
        gap: 0.3rem;
    }

    .nav-item[b-fisxq42yhi]  .nav-link,
    .nav-item .sync-nav-action[b-fisxq42yhi] {
        min-height: 3.25rem;
        padding: 0.6rem 0.85rem;
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        text-align: left;
    }

    .nav-icon[b-fisxq42yhi] {
        flex: 0 0 1.6rem;
    }

    .nav-label[b-fisxq42yhi] {
        font-size: 0.87rem;
        letter-spacing: 0.015em;
    }

    .nav-footer[b-fisxq42yhi] {
        display: flex;
        margin-top: auto;
        padding: 1.2rem 0.85rem 0.25rem;
        align-items: center;
        gap: 0.65rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(255, 248, 230, 0.42);
        font-size: 0.68rem;
        line-height: 1.65;
        letter-spacing: 0.06em;
    }

    .nav-footer-star[b-fisxq42yhi] {
        color: rgba(224, 196, 127, 0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-item[b-fisxq42yhi]  .nav-link,
    .mobile-icon-button[b-fisxq42yhi] {
        transition: none;
    }
}
/* app/Layout/SyncStatusPanel.razor.rz.scp.css */
.sync-status[b-vc3lk8fw6s] {
    margin: 1rem 1.5rem 0;
    padding: .8rem 1rem;
    color: #f7f1ff;
    background: linear-gradient(120deg, #34244e, #241b3b);
    border: 1px solid rgba(215, 184, 116, .35);
    border-radius: .7rem;
    box-shadow: 0 .35rem 1.1rem rgba(20, 12, 32, .16);
}

.sync-status.has-conflict[b-vc3lk8fw6s] {
    border-color: #efbf67;
}

.sync-status.needs-authentication[b-vc3lk8fw6s] {
    border-color: #ef9b67;
    background: linear-gradient(120deg, #4b2c3f, #291d37);
}

.sync-status.has-error[b-vc3lk8fw6s] {
    border-color: #ef7d67;
    background: linear-gradient(120deg, #4a2636, #291d37);
}

.sync-status-main[b-vc3lk8fw6s],
.sync-conflict[b-vc3lk8fw6s],
.sync-conflict-actions[b-vc3lk8fw6s] {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.sync-status-main[b-vc3lk8fw6s] {
    justify-content: space-between;
}

.sync-conflict-actions[b-vc3lk8fw6s] {
    flex-wrap: wrap;
}

.reconnect-button[b-vc3lk8fw6s] {
    flex: 0 0 auto;
    border-color: #f5cf84;
    color: #241b3b;
    background: #f5cf84;
    font-weight: 700;
}

.reconnect-button:hover[b-vc3lk8fw6s],
.reconnect-button:focus-visible[b-vc3lk8fw6s] {
    border-color: #ffe5aa;
    color: #241b3b;
    background: #ffe5aa;
}

.reconnect-spinner[b-vc3lk8fw6s] {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid rgba(245, 207, 132, .28);
    border-top-color: #f5cf84;
    border-radius: 50%;
    animation: reconnect-spin-b-vc3lk8fw6s .75s linear infinite;
}

.reconnect-error[b-vc3lk8fw6s] {
    margin: .65rem 0 0;
    color: #ffd2cb;
}

.sync-conflict[b-vc3lk8fw6s] {
    justify-content: space-between;
}

.sync-conflict-bulk-actions[b-vc3lk8fw6s] {
    display: flex;
    margin-bottom: .45rem;
    padding: .7rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid rgba(245, 207, 132, .35);
    border-radius: .55rem;
    background: rgba(245, 207, 132, .08);
}

.sync-conflict-bulk-actions small[b-vc3lk8fw6s] {
    display: block;
    margin-top: .15rem;
    color: rgba(247, 241, 255, .78);
}

.sync-conflict-progress[b-vc3lk8fw6s] {
    margin: .55rem 0;
    color: #f5cf84;
}

.sync-status-main span[b-vc3lk8fw6s],
.sync-conflict small[b-vc3lk8fw6s] {
    display: block;
    margin-top: .15rem;
    color: rgba(247, 241, 255, .78);
}

.sync-status progress[b-vc3lk8fw6s] {
    width: calc(100% - 4rem);
    height: .45rem;
    margin-top: .65rem;
    accent-color: #d7b874;
}

.sync-status > small[b-vc3lk8fw6s] {
    margin-left: .5rem;
}

.sync-conflicts[b-vc3lk8fw6s] {
    margin-top: .8rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.sync-conflict[b-vc3lk8fw6s] {
    padding: .55rem 0;
}

.sync-conflicts code[b-vc3lk8fw6s] {
    color: #f5cf84;
}

@keyframes reconnect-spin-b-vc3lk8fw6s {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .sync-status[b-vc3lk8fw6s] {
        margin: .75rem .75rem 0;
    }

    .sync-status-main[b-vc3lk8fw6s],
    .sync-conflict[b-vc3lk8fw6s],
    .sync-conflict-bulk-actions[b-vc3lk8fw6s] {
        align-items: stretch;
        flex-direction: column;
    }

    .reconnect-button[b-vc3lk8fw6s] {
        width: 100%;
    }

    .reconnect-spinner[b-vc3lk8fw6s] {
        align-self: center;
    }

    .sync-conflict-actions button[b-vc3lk8fw6s] {
        flex: 1;
    }

}

@media (prefers-reduced-motion: reduce) {
    .reconnect-spinner[b-vc3lk8fw6s] {
        animation-duration: 1.5s;
    }
}
/* app/Layout/TitleLayout.razor.rz.scp.css */
.title-main[b-1qjbokvcms] {
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.title-content[b-1qjbokvcms] {
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    min-height: 100dvh;
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 3rem) clamp(1rem, 4vw, 4rem);
}

.skip-link[b-1qjbokvcms] {
    position: fixed;
    z-index: 3000;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.55rem;
    background: #fffaf1;
    color: #21182d;
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus[b-1qjbokvcms] {
    transform: translateY(0);
}

@media (max-width: 760px) {
    .title-content[b-1qjbokvcms] {
        padding: 0.85rem 1rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skip-link[b-1qjbokvcms] {
        transition: none;
    }
}
/* app/Pages/AiPromptSettings.razor.rz.scp.css */
.prompt-editor-page[b-fb7s5wz2st] {
    --prompt-ink: #352a3d;
    --prompt-muted: #756b7b;
    --prompt-gold: #9b722b;
    --prompt-line: rgba(87, 63, 100, 0.17);
    width: min(860px, 100%);
    margin: 0 auto;
    color: var(--prompt-ink);
}

.prompt-editor-breadcrumb[b-fb7s5wz2st] {
    display: flex;
    margin-bottom: 0.8rem;
    align-items: center;
    gap: 0.45rem;
    color: var(--prompt-muted);
    font-size: 0.75rem;
}

.prompt-editor-breadcrumb a[b-fb7s5wz2st] {
    color: #76531d;
    text-underline-offset: 0.18rem;
}

.prompt-editor-header[b-fb7s5wz2st] {
    margin-bottom: 1.1rem;
    padding: clamp(1.35rem, 3.5vw, 2rem);
    border: 1px solid rgba(197, 164, 96, 0.28);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 95% 0%, rgba(197, 164, 96, 0.17), transparent 16rem),
        rgba(255, 250, 241, 0.78);
    box-shadow: 0 12px 35px rgba(33, 24, 45, 0.06);
}

.prompt-editor-kicker[b-fb7s5wz2st] {
    margin: 0 0 0.3rem;
    color: var(--prompt-gold);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.prompt-editor-header h1[b-fb7s5wz2st] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
}

.prompt-editor-header > p:last-child[b-fb7s5wz2st] {
    margin: 0.55rem 0 0;
    color: var(--prompt-muted);
    line-height: 1.75;
}

.prompt-editor-status[b-fb7s5wz2st] {
    margin: 0 0 1rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(67, 126, 80, 0.24);
    border-radius: 0.55rem;
    background: rgba(230, 244, 231, 0.72);
    color: #35633e;
    font-size: 0.82rem;
}

.prompt-editor-status.error[b-fb7s5wz2st] {
    border-color: rgba(167, 49, 70, 0.25);
    background: rgba(250, 232, 235, 0.75);
    color: #9e3044;
}

.prompt-editor-flow[b-fb7s5wz2st] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prompt-editor-card[b-fb7s5wz2st],
.prompt-fixed-content[b-fb7s5wz2st] {
    border: 1px solid var(--prompt-line);
    border-radius: 0.85rem;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 0.65rem 1.8rem rgba(45, 32, 54, 0.055);
}

.prompt-editor-card[b-fb7s5wz2st] {
    padding: clamp(1rem, 2.5vw, 1.3rem);
}

.prompt-editor-card-heading[b-fb7s5wz2st],
.prompt-fixed-content[b-fb7s5wz2st] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.prompt-editor-card-heading[b-fb7s5wz2st] {
    margin-bottom: 0.75rem;
}

.prompt-part-number[b-fb7s5wz2st] {
    display: grid;
    flex: 0 0 auto;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid rgba(157, 123, 53, 0.32);
    border-radius: 50%;
    background: rgba(197, 164, 96, 0.1);
    color: #76531d;
    font-family: Georgia, serif;
    font-size: 0.78rem;
    font-weight: 800;
    place-items: center;
}

.prompt-editor-card-heading label[b-fb7s5wz2st],
.prompt-fixed-content strong[b-fb7s5wz2st] {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
}

.prompt-editor-card-heading p[b-fb7s5wz2st],
.prompt-fixed-content p[b-fb7s5wz2st] {
    margin: 0.15rem 0 0;
    color: var(--prompt-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.prompt-textarea[b-fb7s5wz2st] {
    min-height: 9rem;
    padding: 0.8rem;
    border-color: rgba(87, 63, 100, 0.22);
    background: #fffefa;
    color: var(--prompt-ink);
    line-height: 1.75;
    resize: vertical;
}

.prompt-textarea:focus[b-fb7s5wz2st] {
    border-color: rgba(155, 114, 43, 0.72);
    box-shadow: 0 0 0 0.2rem rgba(197, 164, 96, 0.13);
}

.prompt-fixed-content[b-fb7s5wz2st] {
    position: relative;
    padding: 0.9rem 1.3rem;
    border-style: dashed;
    background: rgba(241, 236, 225, 0.72);
}

.prompt-fixed-content > div[b-fb7s5wz2st] {
    min-width: 0;
    flex: 1;
}

.prompt-fixed-badge[b-fb7s5wz2st] {
    flex: 0 0 auto;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(94, 75, 105, 0.08);
    color: var(--prompt-muted);
    font-size: 0.65rem;
    font-weight: 750;
}

.prompt-editor-actions[b-fb7s5wz2st] {
    position: sticky;
    z-index: 5;
    bottom: 0;
    display: flex;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--prompt-line);
    border-radius: 0.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 252, 246, 0.94);
    box-shadow: 0 10px 34px rgba(33, 24, 45, 0.1);
    backdrop-filter: blur(14px);
}

.prompt-editor-actions > div[b-fb7s5wz2st] {
    display: flex;
    gap: 0.55rem;
}

.prompt-reset-button[b-fb7s5wz2st],
.prompt-cancel-button[b-fb7s5wz2st] {
    border: 1px solid rgba(100, 77, 111, 0.25);
    background: #fffdf8;
    color: #5f5366;
    font-weight: 750;
}

.prompt-save-button[b-fb7s5wz2st] {
    min-width: 9rem;
    border: 1px solid #9c702b;
    background: linear-gradient(135deg, #b58a40, #98702f);
    color: #fffdf8;
    font-weight: 800;
}

.prompt-save-button:hover:not(:disabled)[b-fb7s5wz2st] {
    color: #fff;
    filter: brightness(0.97);
}

@media (max-width: 600px) {
    .prompt-fixed-content[b-fb7s5wz2st] {
        align-items: flex-start;
    }

    .prompt-fixed-badge[b-fb7s5wz2st] {
        display: none;
    }

    .prompt-editor-actions[b-fb7s5wz2st] {
        bottom: calc(4.6rem + env(safe-area-inset-bottom));
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .prompt-editor-actions > div[b-fb7s5wz2st] {
        display: grid;
        grid-template-columns: 0.7fr 1.3fr;
    }

    .prompt-reset-button[b-fb7s5wz2st],
    .prompt-editor-actions > div .btn[b-fb7s5wz2st] {
        width: 100%;
    }
}
/* app/Pages/DeckEditor.razor.rz.scp.css */
.deck-editor[b-07c2j601os] {
    display: flex;
    width: min(100%, 1180px);
    margin: 0 auto;
    flex-direction: column;
    gap: 1rem;
    color: #21182d;
}

.deck-editor-header[b-07c2j601os] {
    display: flex;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(197, 164, 96, 0.34);
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.deck-editor-header h1[b-07c2j601os] {
    margin: 0;
}

.deck-editor-header p[b-07c2j601os] {
    max-width: 40rem;
    margin: 0.45rem 0 0;
    color: #756b79;
    line-height: 1.7;
}

.header-actions[b-07c2j601os] {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.header-actions[b-07c2j601os]  .mud-button-root {
    min-height: 2.75rem;
    border-radius: 0.65rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
}

.read-only-notice[b-07c2j601os] {
    display: flex;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(181, 140, 63, 0.38);
    border-radius: 0.7rem;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fff7df;
    color: #5d4d1f;
    font-size: 0.82rem;
    line-height: 1.65;
}

.read-only .form-control:disabled[b-07c2j601os],
.read-only .form-control:read-only[b-07c2j601os],
.read-only .form-select:disabled[b-07c2j601os] {
    background-color: #f5f2eb;
    color: #403b34;
    opacity: 1;
}

.read-only textarea.form-control:read-only[b-07c2j601os] {
    cursor: text;
}

.deck-tabs[b-07c2j601os] {
    display: flex;
    margin: 0;
    padding: 0.3rem;
    border: 1px solid rgba(74, 53, 88, 0.14);
    border-radius: 0.75rem;
    flex-wrap: nowrap;
    gap: 0.25rem;
    background: rgba(255, 252, 246, 0.7);
    overflow-x: auto;
}

.deck-tabs .nav-item[b-07c2j601os] {
    flex: 1 0 7rem;
}

.deck-tabs .nav-link[b-07c2j601os] {
    width: 100%;
    min-height: 2.7rem;
    border: 0;
    border-radius: 0.55rem;
    color: #756b79;
    font-weight: 700;
}

.deck-tabs .nav-link.active[b-07c2j601os] {
    background: #2a1b34;
    color: #fff8e6;
    box-shadow: 0 5px 14px rgba(33, 24, 45, 0.14);
}

.deck-panel[b-07c2j601os] {
    padding-top: 0.2rem;
}

.deck-form-grid[b-07c2j601os] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.deck-panel > .deck-form-grid[b-07c2j601os],
.editor-detail[b-07c2j601os] {
    padding: clamp(1rem, 2.5vw, 1.35rem);
    border: 1px solid rgba(74, 53, 88, 0.15);
    border-radius: 0.9rem;
    background: rgba(255, 252, 246, 0.88);
    box-shadow: 0 8px 26px rgba(33, 24, 45, 0.04);
}

.deck-wide[b-07c2j601os] {
    grid-column: 1 / -1;
}

.deck-check[b-07c2j601os] {
    align-self: end;
    padding: 0.7rem 0 0.45rem 0.2rem;
}

.form-field[b-07c2j601os] {
    min-width: 0;
}

.editor-split[b-07c2j601os] {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.editor-list[b-07c2j601os] {
    position: sticky;
    top: 1rem;
    display: flex;
    max-height: calc(100vh - 2rem);
    padding: 0.65rem;
    border: 1px solid rgba(74, 53, 88, 0.15);
    border-radius: 0.85rem;
    flex-direction: column;
    gap: 0.45rem;
    background: rgba(255, 252, 246, 0.82);
    overflow: auto;
    scrollbar-width: thin;
}

.editor-list-add[b-07c2j601os] {
    position: sticky;
    z-index: 5;
    top: -0.65rem;
    display: block;
    width: 100%;
    padding: 0.65rem 0 0.5rem;
    background: rgba(255, 252, 246, 0.96);
}

.editor-list-add-button[b-07c2j601os] {
    min-height: 2.6rem;
}

.image-upload[b-07c2j601os],
.image-upload[b-07c2j601os]  .mud-file-upload,
[b-07c2j601os] .image-upload {
    display: inline-flex;
    width: auto;
    max-width: max-content;
}

.image-upload-button[b-07c2j601os],
[b-07c2j601os] .image-upload-button {
    width: auto;
    min-width: 9rem;
    min-height: 2.65rem;
    max-width: max-content;
    border-radius: 0.6rem;
    text-transform: none;
}

.editor-list-item[b-07c2j601os] {
    display: flex;
    width: 100%;
    padding: 0.35rem;
    border: 1px solid rgba(74, 53, 88, 0.14);
    border-radius: 0.6rem;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.35rem;
    background: #fffdf8;
    color: #2d2235;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.editor-list-item.active[b-07c2j601os] {
    border-color: rgba(181, 140, 63, 0.62);
    background: #fff6dc;
    box-shadow: inset 3px 0 0 #b58c3f;
}

.editor-list-item small[b-07c2j601os] {
    color: #867b89;
}

.editor-list-select[b-07c2j601os] {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 2.7rem;
    padding: 0.35rem 0.45rem;
    border: 0;
    flex-direction: column;
    gap: 0.1rem;
    background: transparent;
    color: inherit;
    text-align: left;
}

.editor-list-select span[b-07c2j601os],
.editor-list-select small[b-07c2j601os] {
    overflow-wrap: anywhere;
}

.order-buttons[b-07c2j601os] {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.2rem;
}

.order-buttons .btn[b-07c2j601os] {
    min-width: 2.3rem;
    padding-inline: 0.4rem;
}

.editor-detail[b-07c2j601os] {
    min-width: 0;
}

.detail-toolbar[b-07c2j601os] {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(74, 53, 88, 0.11);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.detail-toolbar h2[b-07c2j601os] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.35rem;
}

.card-index-panel[b-07c2j601os] {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(74, 53, 88, 0.15);
    border-radius: 0.9rem;
    background: rgba(255, 252, 246, 0.88);
    box-shadow: 0 8px 26px rgba(33, 24, 45, 0.04);
}

.card-index-header[b-07c2j601os] {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(74, 53, 88, 0.11);
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.card-index-header p[b-07c2j601os],
.card-edit-heading p[b-07c2j601os] {
    margin: 0 0 0.25rem;
    color: #9a7532;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.card-index-header h2[b-07c2j601os],
.card-edit-heading h2[b-07c2j601os] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-weight: 500;
}

.card-index-header h2[b-07c2j601os] {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.card-index-header span[b-07c2j601os] {
    display: block;
    margin-top: 0.35rem;
    color: #756b79;
    font-size: 0.83rem;
}

.card-index-header > strong[b-07c2j601os] {
    display: inline-flex;
    min-width: 4.25rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(181, 140, 63, 0.35);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #fff8e7;
    color: #765723;
    font-size: 0.8rem;
}

.card-index-list[b-07c2j601os] {
    display: flex;
    max-height: min(72vh, 52rem);
    padding-right: 0.25rem;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.card-index-list .editor-list-item[b-07c2j601os] {
    padding: 0.4rem;
    border-radius: 0.75rem;
}

.card-index-select[b-07c2j601os] {
    display: grid;
    min-width: 0;
    min-height: 3.6rem;
    padding: 0.45rem 0.6rem;
    border: 0;
    flex: 1;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    background: transparent;
    color: inherit;
    text-align: left;
}

.card-index-select:hover .card-index-copy > strong[b-07c2j601os],
.card-index-select:focus-visible .card-index-copy > strong[b-07c2j601os] {
    color: #765723;
}

.card-index-select:focus-visible[b-07c2j601os] {
    border-radius: 0.5rem;
    outline: 2px solid rgba(181, 140, 63, 0.55);
    outline-offset: 1px;
}

.card-index-order[b-07c2j601os] {
    display: grid;
    width: 2rem;
    aspect-ratio: 1;
    border: 1px solid rgba(181, 140, 63, 0.35);
    border-radius: 999px;
    place-items: center;
    background: #fff8e7;
    color: #765723;
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.card-index-copy[b-07c2j601os] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
}

.card-index-copy > strong[b-07c2j601os],
.card-index-copy > small[b-07c2j601os] {
    overflow-wrap: anywhere;
}

.card-index-copy > strong[b-07c2j601os] {
    font-size: 0.92rem;
    transition: color 140ms ease;
}

.card-index-copy > small[b-07c2j601os] {
    color: #867b89;
    font-size: 0.72rem;
}

.card-index-open[b-07c2j601os] {
    color: #b58c3f;
    font-family: Georgia, serif;
    font-size: 1.5rem;
}

.card-index-empty[b-07c2j601os] {
    margin: 0;
    padding: 2.5rem 1rem;
    border: 1px dashed rgba(74, 53, 88, 0.2);
    border-radius: 0.75rem;
    color: #756b79;
    text-align: center;
}

.card-index-add[b-07c2j601os] {
    display: flex;
    min-height: 4.2rem;
    padding: 0.65rem 1rem;
    border: 1px dashed rgba(181, 140, 63, 0.62);
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 248, 231, 0.7);
    color: #765723;
}

.card-index-add:hover[b-07c2j601os],
.card-index-add:focus-visible[b-07c2j601os] {
    border-style: solid;
    outline: none;
    background: #fff3d5;
}

.card-index-add > span:first-child[b-07c2j601os] {
    display: grid;
    width: 2rem;
    aspect-ratio: 1;
    border-radius: 999px;
    place-items: center;
    background: #b58c3f;
    color: #fffdf8;
    font-size: 1.15rem;
}

.card-index-add > span:last-child[b-07c2j601os] {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-index-add small[b-07c2j601os] {
    color: #86724f;
    font-size: 0.7rem;
}

.card-edit-stage[b-07c2j601os] {
    min-height: min(760px, calc(100vh - 11rem));
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(197, 164, 96, 0.25);
    border-radius: 1rem;
    scroll-margin-top: 5.5rem;
    background:
        radial-gradient(circle at 50% 18rem, rgba(197, 164, 96, 0.17), transparent 22rem),
        linear-gradient(160deg, #1a1428 0%, #27182f 55%, #15101f 100%);
    color: #f8f0df;
}

.card-edit-toolbar[b-07c2j601os] {
    display: grid;
    width: min(1000px, 100%);
    margin: 0 auto 1rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
}

.card-edit-back[b-07c2j601os],
.card-edit-nav-button[b-07c2j601os] {
    display: inline-flex;
    min-height: 2.3rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(213, 182, 110, 0.36);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 240, 223, 0.88);
    font-size: 0.77rem;
    font-weight: 750;
    white-space: nowrap;
}

.card-edit-back[b-07c2j601os] {
    justify-self: start;
}

.card-edit-back:hover[b-07c2j601os],
.card-edit-back:focus-visible[b-07c2j601os],
.card-edit-nav-button:hover:not(:disabled)[b-07c2j601os],
.card-edit-nav-button:focus-visible[b-07c2j601os] {
    border-color: #d5b66e;
    outline: none;
    background: rgba(213, 182, 110, 0.14);
    color: #fff7e4;
}

.card-edit-kicker[b-07c2j601os] {
    justify-self: center;
    color: #d5b66e;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.card-edit-navigation[b-07c2j601os] {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0.4rem;
}

.card-edit-nav-button:disabled[b-07c2j601os] {
    cursor: default;
    opacity: 0.38;
}

.card-edit-nav-button > span[aria-hidden="true"][b-07c2j601os] {
    color: #d5b66e;
    font-size: 1.15rem;
    line-height: 0;
}

.card-edit-nav-count[b-07c2j601os] {
    min-width: 2.9rem;
    color: rgba(248, 240, 223, 0.7);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

.card-edit-image-area[b-07c2j601os] {
    display: flex;
    width: min(600px, 100%);
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.card-edit-image-frame[b-07c2j601os] {
    position: relative;
    display: grid;
    width: min(540px, 100%);
    min-height: 18rem;
    padding: clamp(0.8rem, 2.5vw, 1.3rem);
    border: 1px solid rgba(213, 182, 110, 0.42);
    border-radius: 1rem;
    place-items: center;
    background: rgba(8, 6, 14, 0.36);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.card-edit-image-frame-button[b-07c2j601os] {
    cursor: zoom-in;
}

.card-edit-image-frame-button:hover[b-07c2j601os],
.card-edit-image-frame-button:focus-visible[b-07c2j601os] {
    border-color: rgba(238, 213, 154, 0.9);
    outline: none;
    box-shadow: 0 0 0 4px rgba(213, 182, 110, 0.1), 0 24px 65px rgba(0, 0, 0, 0.34);
}

.card-edit-image-frame .card-image-preview[b-07c2j601os] {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(58vh, 650px);
    margin: 0;
    border: 0;
    border-radius: 0.65rem;
    object-fit: contain;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.card-edit-image-missing[b-07c2j601os] {
    display: grid;
    width: min(14rem, 75%);
    aspect-ratio: 0.68;
    border: 1px solid rgba(213, 182, 110, 0.46);
    border-radius: 0.7rem;
    place-items: center;
    background:
        repeating-linear-gradient(45deg, transparent 0 10px, rgba(213, 182, 110, 0.05) 10px 11px),
        #251833;
    color: #d5b66e;
    font-size: 2.2rem;
}

.card-edit-image-expand-hint[b-07c2j601os] {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    display: inline-flex;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    align-items: center;
    gap: 0.35rem;
    background: rgba(13, 9, 20, 0.78);
    color: #f8f0df;
    font-size: 0.7rem;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.card-edit-image-lightbox[b-07c2j601os] {
    position: fixed;
    z-index: 2400;
    inset: 0;
    display: grid;
    padding: clamp(1rem, 3vw, 2.5rem);
    place-items: center;
    background: rgba(8, 6, 13, 0.96);
    backdrop-filter: blur(14px);
    overflow: auto;
}

.card-edit-lightbox-image[b-07c2j601os] {
    display: block;
    width: auto;
    max-width: calc(100vw - 2rem);
    height: auto;
    max-height: calc(100vh - 7rem);
    border-radius: 0.7rem;
    object-fit: contain;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    user-select: none;
}

.card-edit-lightbox-image.reversed[b-07c2j601os] {
    transform: rotate(180deg);
}

.card-edit-lightbox-close[b-07c2j601os] {
    position: fixed;
    z-index: 1;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
}

.card-edit-lightbox-close:hover[b-07c2j601os],
.card-edit-lightbox-close:focus-visible[b-07c2j601os] {
    border-color: #f5cf84;
    outline: none;
    background: rgba(245, 207, 132, 0.18);
}

.card-edit-lightbox-caption[b-07c2j601os] {
    position: fixed;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    left: 50%;
    display: flex;
    max-width: calc(100vw - 2rem);
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    align-items: center;
    gap: 0.7rem;
    background: rgba(17, 12, 25, 0.78);
    color: #f8f0df;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.card-edit-lightbox-caption span[b-07c2j601os] {
    color: #d5b66e;
    font-size: 0.76rem;
    font-weight: 800;
}

.card-edit-image-upload[b-07c2j601os],
.card-edit-image-upload[b-07c2j601os]  .mud-file-upload,
[b-07c2j601os] .card-edit-image-upload {
    display: flex;
    justify-content: center;
}

.card-edit-image-button[b-07c2j601os],
[b-07c2j601os] .card-edit-image-button {
    border-color: rgba(213, 182, 110, 0.5) !important;
    color: #f8f0df !important;
}

.card-edit-image-button:hover[b-07c2j601os],
[b-07c2j601os] .card-edit-image-button:hover {
    background: rgba(213, 182, 110, 0.14) !important;
}

.card-edit-image-progress[b-07c2j601os] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(248, 240, 223, 0.78);
    font-size: 0.78rem;
}

.card-edit-form[b-07c2j601os] {
    width: min(880px, 100%);
    margin: 1.25rem auto 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(213, 182, 110, 0.2);
    border-radius: 1rem;
    background: rgba(255, 252, 245, 0.97);
    color: #21182d;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.card-edit-heading[b-07c2j601os] {
    display: flex;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(74, 53, 88, 0.12);
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.card-edit-heading h2[b-07c2j601os] {
    font-size: clamp(1.55rem, 4vw, 2.3rem);
}

.card-edit-heading > div > span[b-07c2j601os] {
    display: block;
    margin-top: 0.2rem;
    color: #756b79;
    font-family: Georgia, serif;
    font-size: 0.86rem;
    font-style: italic;
}

.card-common-panel[b-07c2j601os] {
    padding: 1rem;
    border: 1px solid rgba(74, 53, 88, 0.14);
    border-radius: 0.75rem;
    background: #fffdf8;
}

.card-common-panel > h3[b-07c2j601os] {
    margin: 0 0 0.9rem;
    color: #5d465f;
    font-size: 1rem;
}

.card-edit-form[b-07c2j601os]  textarea.card-auto-textarea {
    min-height: 7.5rem;
    field-sizing: content;
    resize: vertical;
}

.card-edit-form[b-07c2j601os]  textarea.card-auto-textarea-large {
    min-height: 13rem;
}

.card-note-field[b-07c2j601os] {
    padding: 1rem;
    border: 1px solid rgba(74, 53, 88, 0.14);
    border-radius: 0.75rem;
    background: #fffdf8;
}

.meaning-panel[b-07c2j601os] {
    margin: 1.1rem 0;
    padding: 1rem;
    border: 1px solid rgba(197, 164, 96, 0.34);
    border-left-width: 0.3rem;
    border-radius: 0.75rem;
    background: #fff8e7;
}

.meaning-tabs[b-07c2j601os] {
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.meaning-tab-panel h3[b-07c2j601os] {
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
}

.meaning-editor[b-07c2j601os] {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.meaning-topic-grid[b-07c2j601os] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.progress-message[b-07c2j601os] {
    display: flex;
    margin-top: 0.5rem;
    align-items: center;
    gap: 0.5rem;
    color: #756b79;
}

.unsaved-dialog-backdrop[b-07c2j601os] {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: flex;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    background: rgba(18, 15, 28, 0.62);
    backdrop-filter: blur(4px);
}

.unsaved-dialog[b-07c2j601os] {
    width: min(520px, 100%);
    padding: 1.35rem;
    border: 1px solid rgba(215, 184, 116, 0.45);
    border-radius: 0.85rem;
    background: #fffdf8;
    box-shadow: 0 1rem 2.5rem rgba(18, 15, 28, 0.28);
}

.unsaved-dialog h2[b-07c2j601os] {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.unsaved-dialog p[b-07c2j601os] {
    margin: 0 0 1rem;
    color: #5d5666;
}

.unsaved-dialog-actions[b-07c2j601os] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.progress-dot[b-07c2j601os] {
    width: 0.65rem;
    height: 0.65rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #b58c3f;
    animation: progress-pulse-b-07c2j601os 0.9s ease-in-out infinite;
}

@keyframes progress-pulse-b-07c2j601os {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

.card-image-preview[b-07c2j601os],
.deck-back-image-preview[b-07c2j601os] {
    display: block;
    margin-top: 0.75rem;
    border: 1px solid rgba(74, 53, 88, 0.2);
    border-radius: 0.55rem;
    box-shadow: 0 8px 22px rgba(33, 24, 45, 0.1);
}

.card-image-preview[b-07c2j601os] {
    width: min(180px, 100%);
    transition: transform 0.15s ease;
}

.deck-back-image-preview[b-07c2j601os] {
    width: min(160px, 100%);
}

.card-image-preview.reversed[b-07c2j601os] {
    transform: rotate(180deg);
}

@media (max-width: 760px) {
    .deck-editor-header[b-07c2j601os] {
        align-items: stretch;
        flex-direction: column;
    }

    .header-actions[b-07c2j601os] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-actions[b-07c2j601os]  .mud-button-root {
        width: 100%;
    }

    .editor-split[b-07c2j601os] {
        grid-template-columns: 1fr;
    }

    .editor-list[b-07c2j601os] {
        position: static;
        max-height: 17rem;
    }

    .editor-detail[b-07c2j601os] {
        padding: 1rem;
    }

    .card-edit-stage[b-07c2j601os] {
        min-height: calc(100vh - 9rem);
        padding: 0.8rem;
    }

    .card-edit-form[b-07c2j601os] {
        padding: 1.1rem;
    }
}

@media (max-width: 640px) {
    .deck-form-grid[b-07c2j601os],
    .meaning-topic-grid[b-07c2j601os] {
        grid-template-columns: 1fr;
    }

    .deck-check[b-07c2j601os] {
        padding-bottom: 0;
    }

    .deck-wide[b-07c2j601os] {
        grid-column: auto;
    }

    .detail-toolbar[b-07c2j601os] {
        align-items: flex-start;
    }

    .card-index-header[b-07c2j601os] {
        align-items: flex-start;
    }

    .card-index-list[b-07c2j601os] {
        max-height: 68vh;
    }

    .card-index-list .editor-list-item[b-07c2j601os] {
        align-items: center;
    }

    .card-index-select[b-07c2j601os] {
        padding-inline: 0.35rem;
        grid-template-columns: 1.8rem minmax(0, 1fr) auto;
        gap: 0.5rem;
    }

    .card-index-order[b-07c2j601os] {
        width: 1.8rem;
    }

    .card-index-list .order-buttons[b-07c2j601os] {
        flex-direction: column;
    }

    .card-index-list .order-buttons .btn[b-07c2j601os] {
        min-width: 2rem;
        padding: 0.15rem 0.3rem;
        font-size: 0.68rem;
    }

    .card-edit-toolbar[b-07c2j601os] {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

    .card-edit-kicker[b-07c2j601os] {
        justify-self: end;
    }

    .card-edit-navigation[b-07c2j601os] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .card-edit-nav-button[b-07c2j601os] {
        flex: 1;
    }

    .card-edit-image-frame[b-07c2j601os] {
        min-height: 15rem;
    }

    .card-edit-heading[b-07c2j601os] {
        align-items: flex-start;
    }

    .unsaved-dialog-actions[b-07c2j601os] {
        flex-direction: column;
    }

    .unsaved-dialog-actions[b-07c2j601os]  .mud-button-root {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .progress-dot[b-07c2j601os] {
        animation: none;
    }
}
/* app/Pages/DeckList.razor.rz.scp.css */
.deck-list-page[b-2f0h8cxn9j] {
    display: flex;
    width: min(100%, 1040px);
    margin: 0 auto;
    flex-direction: column;
    gap: 1.15rem;
}

.deck-list-header[b-2f0h8cxn9j] {
    display: flex;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(197, 164, 96, 0.32);
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.deck-list-eyebrow[b-2f0h8cxn9j] {
    margin: 0 0 0.35rem !important;
    color: #97722d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.19em;
}

.deck-list-header h1[b-2f0h8cxn9j] {
    margin: 0;
}

.deck-list-header p:not(.deck-list-eyebrow)[b-2f0h8cxn9j] {
    max-width: 38rem;
    margin: 0.45rem 0 0;
    color: #756b79;
    line-height: 1.7;
}

.deck-create-button[b-2f0h8cxn9j] {
    flex: 0 0 auto;
    min-width: 8.5rem;
}

.deck-list[b-2f0h8cxn9j] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deck-list-item[b-2f0h8cxn9j] {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(74, 53, 88, 0.16);
    border-radius: 0.9rem;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 252, 246, 0.9);
    box-shadow: 0 7px 24px rgba(33, 24, 45, 0.045);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.deck-list-item:hover[b-2f0h8cxn9j] {
    border-color: rgba(157, 123, 53, 0.48);
    box-shadow: 0 13px 34px rgba(33, 24, 45, 0.085);
    transform: translateY(-1px);
}

.deck-details[b-2f0h8cxn9j] {
    min-width: 0;
}

.deck-thumbnail[b-2f0h8cxn9j] {
    position: relative;
    display: flex;
    width: 68px;
    height: 98px;
    border: 1px solid rgba(215, 184, 116, 0.58);
    border-radius: 0.55rem;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 36%, rgba(197, 164, 96, 0.33), transparent 26%),
        linear-gradient(180deg, #2a1838, #171229);
    color: #dfc47e;
    font-family: Georgia, serif;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(33, 24, 45, 0.16);
}

.deck-thumbnail[b-2f0h8cxn9j]::after {
    content: "";
    position: absolute;
    inset: 0.42rem;
    border: 1px solid rgba(215, 184, 116, 0.42);
    border-radius: 0.32rem;
    pointer-events: none;
}

.deck-thumbnail img[b-2f0h8cxn9j] {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-title-line[b-2f0h8cxn9j] {
    display: flex;
    margin-bottom: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.deck-list-item h2[b-2f0h8cxn9j] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.15rem;
}

.read-only-badge[b-2f0h8cxn9j] {
    display: inline-flex;
    padding: 0.17rem 0.5rem;
    border: 1px solid rgba(157, 123, 53, 0.36);
    border-radius: 999px;
    background: #fff5d8;
    color: #6f5520;
    font-size: 0.66rem;
    font-weight: 700;
}

.deck-meta[b-2f0h8cxn9j] {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: #685d6d;
    font-size: 0.8rem;
}

.deck-meta span + span[b-2f0h8cxn9j]::before {
    content: "·";
    margin-right: 0.4rem;
    color: #b18d43;
}

.deck-path[b-2f0h8cxn9j] {
    display: block;
    margin-top: 0.25rem;
    color: #938996;
    font-size: 0.7rem;
}

.deck-list-actions[b-2f0h8cxn9j] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.empty-decks[b-2f0h8cxn9j] {
    display: flex;
    min-height: 16rem;
    padding: 2rem;
    border: 1px dashed rgba(74, 53, 88, 0.22);
    border-radius: 0.9rem;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 250, 241, 0.55);
    text-align: center;
}

@media (max-width: 700px) {
    .deck-list-header[b-2f0h8cxn9j] {
        align-items: stretch;
        flex-direction: column;
    }

    .deck-create-button[b-2f0h8cxn9j] {
        width: 100%;
    }

    .deck-list-item[b-2f0h8cxn9j] {
        grid-template-columns: 68px minmax(0, 1fr);
        align-items: start;
        gap: 0.85rem;
    }

    .deck-thumbnail[b-2f0h8cxn9j] {
        width: 62px;
        height: 90px;
    }

    .deck-list-actions[b-2f0h8cxn9j] {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(74, 53, 88, 0.1);
    }

    .deck-list-actions .btn:first-child:last-child[b-2f0h8cxn9j] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 380px) {
    .deck-list-item[b-2f0h8cxn9j] {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 0.85rem;
    }

    .deck-thumbnail[b-2f0h8cxn9j] {
        width: 52px;
        height: 76px;
    }
}
/* app/Pages/Home.razor.rz.scp.css */
.home-page[b-jukhb7eow4] {
    display: flex;
    width: min(100%, 1220px);
    margin: 0 auto;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.home-hero[b-jukhb7eow4] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.75rem) clamp(3.5rem, 6vw, 4.25rem);
    border: 1px solid rgba(215, 184, 116, 0.3);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 92% 3%, rgba(214, 179, 100, 0.22), transparent 19rem),
        linear-gradient(135deg, #21172e 0%, #3b213e 72%, #2b1934 100%);
    color: #fff8e6;
    box-shadow: 0 22px 55px rgba(33, 24, 45, 0.17);
    overflow: hidden;
}

.home-hero[b-jukhb7eow4]::after {
    content: "";
    position: absolute;
    right: -7rem;
    bottom: -10rem;
    width: 23rem;
    height: 23rem;
    border: 1px solid rgba(226, 201, 135, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-copy[b-jukhb7eow4] {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

.home-kicker[b-jukhb7eow4] {
    display: flex;
    margin: 0 0 0.8rem;
    align-items: center;
    gap: 0.5rem;
    color: #d9bf7d;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.home-kicker span[b-jukhb7eow4] {
    font-size: 0.58rem;
}

.home-hero h1[b-jukhb7eow4] {
    max-width: 12em;
    margin: 0 0 0.8rem;
    color: #fff8e6;
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1.14;
    letter-spacing: 0.035em;
}

.home-hero-copy > p:last-child[b-jukhb7eow4] {
    max-width: 42rem;
    margin: 0;
    color: rgba(255, 248, 230, 0.76);
    font-size: 0.94rem;
    line-height: 1.85;
}

.home-storage[b-jukhb7eow4] {
    position: absolute;
    right: clamp(0.85rem, 2vw, 1.25rem);
    bottom: clamp(0.75rem, 1.8vw, 1.05rem);
    z-index: 1;
    margin: 0;
    color: rgba(255, 248, 230, 0.5);
    font-size: 0.67rem;
    letter-spacing: 0.02em;
}

.home-storage strong[b-jukhb7eow4] {
    color: rgba(255, 248, 230, 0.68);
    font-size: inherit;
    font-weight: 600;
}

.home-section-heading[b-jukhb7eow4] {
    display: flex;
    margin-top: 0.25rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.home-section-heading span[b-jukhb7eow4],
.home-table-copy > span[b-jukhb7eow4] {
    color: #97722d;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.home-section-heading h2[b-jukhb7eow4] {
    margin: 0.18rem 0 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.35rem;
}

.home-section-heading p[b-jukhb7eow4] {
    margin: 0;
    color: #756b79;
    font-size: 0.8rem;
}

.home-actions[b-jukhb7eow4] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-action[b-jukhb7eow4] {
    display: flex;
    min-width: 0;
    min-height: 11rem;
    padding: 1.1rem;
    border: 1px solid rgba(74, 53, 88, 0.16);
    border-radius: 0.9rem;
    flex-direction: column;
    gap: 0.65rem;
    background: rgba(255, 252, 246, 0.9);
    color: #21182d;
    text-align: left;
    box-shadow: 0 7px 22px rgba(36, 25, 45, 0.045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-action.primary[b-jukhb7eow4] {
    border-color: rgba(197, 164, 96, 0.58);
    background: linear-gradient(150deg, #fffaf0, #f8edcf);
    box-shadow: 0 12px 30px rgba(83, 55, 24, 0.09);
}

.home-action:hover[b-jukhb7eow4] {
    border-color: rgba(110, 45, 79, 0.42);
    box-shadow: 0 13px 32px rgba(36, 25, 45, 0.09);
    transform: translateY(-2px);
}

.action-top[b-jukhb7eow4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-icon[b-jukhb7eow4] {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(157, 123, 53, 0.3);
    border-radius: 50%;
    background: rgba(197, 164, 96, 0.08);
    color: #8a6827;
    font-family: Georgia, serif;
    place-items: center;
}

.primary .action-icon[b-jukhb7eow4] {
    background: #21182d;
    color: #e0c47f;
}

.action-arrow[b-jukhb7eow4] {
    color: #9b8e9f;
    font-size: 1.1rem;
}

.home-action strong[b-jukhb7eow4] {
    margin-top: 0.1rem;
    font-size: 1.04rem;
}

.home-action small[b-jukhb7eow4] {
    color: #756b79;
    font-size: 0.78rem;
    line-height: 1.65;
}

.home-table[b-jukhb7eow4] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(270px, 1.15fr);
    min-height: 13.5rem;
    border: 1px solid rgba(74, 53, 88, 0.13);
    border-radius: 1rem;
    background:
        linear-gradient(90deg, rgba(197, 164, 96, 0.09) 1px, transparent 1px),
        linear-gradient(180deg, rgba(197, 164, 96, 0.09) 1px, transparent 1px),
        rgba(255, 250, 241, 0.72);
    background-size: 44px 44px;
    overflow: hidden;
}

.home-table-copy[b-jukhb7eow4] {
    position: relative;
    z-index: 2;
    display: flex;
    padding: clamp(1.3rem, 3vw, 2rem);
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(255, 250, 241, 0.94), rgba(255, 250, 241, 0.45));
}

.home-table-copy h2[b-jukhb7eow4] {
    margin: 0.4rem 0 0.6rem;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    line-height: 1.45;
}

.home-table-copy p[b-jukhb7eow4] {
    margin: 0;
    color: #756b79;
    font-size: 0.82rem;
    line-height: 1.75;
}

.home-card-scene[b-jukhb7eow4] {
    position: relative;
    min-height: 13.5rem;
}

.home-card-scene[b-jukhb7eow4]::before {
    content: "";
    position: absolute;
    right: -6rem;
    bottom: -11rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(197, 164, 96, 0.28);
    border-radius: 50%;
}

.table-card[b-jukhb7eow4] {
    position: absolute;
    top: 2rem;
    left: 50%;
    width: 6.4rem;
    aspect-ratio: 0.68;
    border: 1px solid rgba(247, 232, 189, 0.78);
    border-radius: 0.5rem;
    background:
        radial-gradient(circle at 50% 36%, rgba(197, 164, 96, 0.33), transparent 25%),
        linear-gradient(180deg, #2a1838, #171229);
    box-shadow: 0 14px 28px rgba(33, 24, 45, 0.2);
}

.table-card[b-jukhb7eow4]::before {
    content: "";
    position: absolute;
    inset: 0.65rem;
    border: 1px solid rgba(197, 164, 96, 0.5);
    border-radius: 0.3rem;
}

.card-a[b-jukhb7eow4] { transform: translateX(-140%) rotate(-9deg); }
.card-b[b-jukhb7eow4] { top: 1.45rem; z-index: 1; transform: translateX(-50%); }
.card-c[b-jukhb7eow4] { transform: translateX(40%) rotate(9deg); }

@media (max-width: 1100px) {
    .home-actions[b-jukhb7eow4] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-table[b-jukhb7eow4] {
        grid-template-columns: 1fr 0.9fr;
    }
}

@media (max-width: 560px) {
    .home-page[b-jukhb7eow4] {
        gap: 1rem;
    }

    .home-hero[b-jukhb7eow4] {
        padding: 1.25rem 1.25rem 3.25rem;
        border-radius: 0.9rem;
    }

    .home-hero h1[b-jukhb7eow4] {
        font-size: clamp(1.85rem, 9.3vw, 2.35rem);
    }

    .home-section-heading p[b-jukhb7eow4] {
        display: none;
    }

    .home-actions[b-jukhb7eow4] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .home-action[b-jukhb7eow4] {
        min-height: 8.2rem;
        padding: 0.9rem;
    }

    .home-action.primary[b-jukhb7eow4],
    .home-action:last-child[b-jukhb7eow4] {
        grid-column: 1 / -1;
        min-height: 9rem;
    }

    .home-action:nth-child(2) small[b-jukhb7eow4],
    .home-action:nth-child(3) small[b-jukhb7eow4] {
        display: none;
    }

    .home-table[b-jukhb7eow4] {
        grid-template-columns: 1fr;
    }

    .home-card-scene[b-jukhb7eow4] {
        min-height: 11rem;
    }

    .home-table-copy[b-jukhb7eow4] {
        padding-bottom: 0;
        background: rgba(255, 250, 241, 0.9);
    }

    .table-card[b-jukhb7eow4] {
        top: 1.25rem;
        width: 5rem;
    }

    .card-b[b-jukhb7eow4] {
        top: 0.8rem;
    }
}

@media (max-width: 350px) {
    .home-actions[b-jukhb7eow4] {
        grid-template-columns: 1fr;
    }

    .home-action[b-jukhb7eow4],
    .home-action.primary[b-jukhb7eow4],
    .home-action:last-child[b-jukhb7eow4] {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-action[b-jukhb7eow4] {
        transition: none;
    }
}
/* app/Pages/Reading.razor.rz.scp.css */
.reading-page[b-9dkj31lzfe] {
    --reading-accent: #b88d3d;
    --reading-accent-light: #f4e6bd;
    --reading-ink: #21182d;
    --reading-muted: #756c78;
    --reading-panel: rgba(255, 252, 245, 0.92);
    width: min(1120px, 100%);
    margin: 0 auto;
    color: var(--reading-ink);
}

.reading-header[b-9dkj31lzfe] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.reading-header h1[b-9dkj31lzfe] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    letter-spacing: 0.04em;
}

.reading-eyebrow[b-9dkj31lzfe],
.section-kicker[b-9dkj31lzfe],
.shuffle-kicker[b-9dkj31lzfe] {
    margin: 0 0 0.25rem;
    color: #8d6a2d;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.reading-count[b-9dkj31lzfe],
.position-count[b-9dkj31lzfe] {
    color: var(--reading-muted);
    font-size: 0.82rem;
}

.reading-tabs[b-9dkj31lzfe] {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    margin: 0 -0.1rem 1rem;
    padding: 0.1rem 0.1rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.reading-tab[b-9dkj31lzfe],
.add-reading-tab[b-9dkj31lzfe] {
    border: 1px solid rgba(74, 53, 88, 0.2);
    background: rgba(255, 250, 241, 0.64);
    color: var(--reading-muted);
}

.reading-tab[b-9dkj31lzfe] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 164px;
    max-width: 260px;
    padding: 0.72rem 0.9rem;
    border-radius: 0.65rem 0.65rem 0.2rem 0.2rem;
    text-align: left;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.reading-tab:hover:not(:disabled)[b-9dkj31lzfe] {
    border-color: rgba(184, 141, 61, 0.55);
    color: var(--reading-ink);
    transform: translateY(-1px);
}

.reading-tab.active[b-9dkj31lzfe] {
    border-color: var(--reading-accent);
    background: #fffaf0;
    color: var(--reading-ink);
    box-shadow: inset 0 -3px 0 var(--reading-accent);
}

.tab-number[b-9dkj31lzfe] {
    display: grid;
    place-items: center;
    flex: 0 0 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 0.76rem;
}

.tab-label[b-9dkj31lzfe] {
    flex: 1;
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-complete[b-9dkj31lzfe] {
    color: var(--reading-accent);
    font-size: 0.55rem;
}

.add-reading-tab[b-9dkj31lzfe] {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    min-height: 46px;
    border-style: dashed;
    border-radius: 0.65rem;
    font-size: 1.4rem;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.add-reading-tab:hover:not(:disabled)[b-9dkj31lzfe] {
    border-color: var(--reading-accent);
    background: var(--reading-accent-light);
    color: #5f4518;
}

.reading-workspace[b-9dkj31lzfe] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reading-panel[b-9dkj31lzfe] {
    border: 1px solid rgba(74, 53, 88, 0.16);
    border-radius: 0.85rem;
    background: var(--reading-panel);
    box-shadow: 0 10px 30px rgba(45, 32, 57, 0.045);
}

.reading-basics[b-9dkj31lzfe],
.memo-panel[b-9dkj31lzfe] {
    padding: clamp(1rem, 3vw, 1.4rem);
}

.field-label[b-9dkj31lzfe] {
    display: block;
    margin-bottom: 0.45rem;
    color: #4b3d52;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.question-input[b-9dkj31lzfe] {
    min-height: 3.2rem;
    padding-inline: 1rem;
    border-color: rgba(184, 141, 61, 0.38);
    font-size: 1.02rem;
}

.selection-grid[b-9dkj31lzfe] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.15rem;
}

.form-select:disabled[b-9dkj31lzfe] {
    color: #6b626f;
    background-color: #f2eee7;
    opacity: 0.82;
}

.spread-panel[b-9dkj31lzfe] {
    padding: clamp(1rem, 3vw, 1.4rem) 0 1rem;
    overflow: hidden;
}

.section-heading[b-9dkj31lzfe] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 3vw, 1.4rem) 0.9rem;
}

.section-heading h2[b-9dkj31lzfe] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.25rem;
}

.position-count[b-9dkj31lzfe] {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #f1eadb;
}

.spread-table-wrap[b-9dkj31lzfe] {
    overflow-x: auto;
    border-block: 1px solid rgba(74, 53, 88, 0.12);
}

.spread-table[b-9dkj31lzfe] {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.spread-table th[b-9dkj31lzfe] {
    padding: 0.6rem 0.9rem;
    background: rgba(49, 36, 59, 0.04);
    color: var(--reading-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
}

.spread-table td[b-9dkj31lzfe] {
    height: 4rem;
    padding: 0.55rem 0.9rem;
    border-top: 1px solid rgba(74, 53, 88, 0.1);
    vertical-align: middle;
}

.spread-table tbody tr:first-child td[b-9dkj31lzfe] {
    border-top: 0;
}

.spread-table tr.has-card[b-9dkj31lzfe] {
    background: linear-gradient(90deg, rgba(244, 230, 189, 0.1), rgba(255, 255, 255, 0));
}

.order-column[b-9dkj31lzfe] {
    width: 76px;
}

.position-column[b-9dkj31lzfe] {
    width: 36%;
}

.order-cell span[b-9dkj31lzfe] {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(184, 141, 61, 0.48);
    border-radius: 50%;
    color: #70521e;
    font-family: Georgia, serif;
}

.position-name-input[b-9dkj31lzfe] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--reading-ink);
    font-weight: 650;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.position-name-input:hover[b-9dkj31lzfe],
.position-name-input:focus[b-9dkj31lzfe] {
    border-color: rgba(184, 141, 61, 0.42);
    outline: none;
    background: #fffdf8;
}

.position-name-input:focus[b-9dkj31lzfe] {
    box-shadow: 0 0 0 0.18rem rgba(197, 164, 96, 0.18);
}

.not-drawn[b-9dkj31lzfe] {
    color: #9b929d;
    font-size: 0.82rem;
}

.drawn-card-result[b-9dkj31lzfe] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    animation: reveal-result-b-9dkj31lzfe 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card-result-button[b-9dkj31lzfe] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.card-result-button:hover:not(:disabled)[b-9dkj31lzfe],
.card-result-button:focus-visible[b-9dkj31lzfe] {
    border-color: rgba(184, 141, 61, 0.42);
    outline: none;
    background: rgba(244, 230, 189, 0.28);
    box-shadow: 0 0 0 0.18rem rgba(197, 164, 96, 0.12);
}

.card-result-button:disabled[b-9dkj31lzfe] {
    cursor: progress;
    opacity: 0.62;
}

.result-open-icon[b-9dkj31lzfe] {
    margin-left: auto;
    color: #9a793e;
    font-size: 1.35rem;
    line-height: 1;
}

.result-spark[b-9dkj31lzfe] {
    color: var(--reading-accent);
}

.result-name[b-9dkj31lzfe] {
    font-weight: 800;
}

.orientation[b-9dkj31lzfe] {
    display: inline-flex;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.orientation.upright[b-9dkj31lzfe] {
    background: #e9f2e8;
    color: #38603a;
}

.orientation.reversed[b-9dkj31lzfe] {
    background: #f3e8ee;
    color: #7b3657;
}

.add-position-button[b-9dkj31lzfe] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.85rem clamp(1rem, 3vw, 1.4rem) 0;
    padding: 0.45rem 0.7rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #765728;
    font-size: 0.82rem;
    font-weight: 800;
}

.add-position-button:hover:not(:disabled)[b-9dkj31lzfe] {
    background: var(--reading-accent-light);
}

.spread-save-prompt[b-9dkj31lzfe] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.85rem clamp(1rem, 3vw, 1.4rem) 1.1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(184, 141, 61, 0.28);
    border-radius: 0.6rem;
    background: rgba(248, 239, 211, 0.48);
}

.spread-save-prompt-copy[b-9dkj31lzfe] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--reading-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.spread-save-prompt-copy strong[b-9dkj31lzfe] {
    color: var(--reading-ink);
    font-size: 0.86rem;
}

.spread-save-prompt-actions[b-9dkj31lzfe] {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

.spread-overwrite-button[b-9dkj31lzfe],
.spread-save-new-button[b-9dkj31lzfe] {
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.spread-overwrite-button[b-9dkj31lzfe] {
    border: 1px solid rgba(109, 83, 40, 0.35);
    background: rgba(255, 253, 248, 0.8);
    color: #674d25;
}

.spread-save-new-button[b-9dkj31lzfe] {
    border: 1px solid #a77c34;
    background: #ad8136;
    color: #fffdf8;
}

.spread-overwrite-button:hover[b-9dkj31lzfe],
.spread-save-new-button:hover[b-9dkj31lzfe] {
    filter: brightness(0.96);
}

.memo-input[b-9dkj31lzfe] {
    min-height: 8rem;
    resize: vertical;
    line-height: 1.75;
}

.ai-prompt-panel[b-9dkj31lzfe] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: clamp(1rem, 3vw, 1.4rem);
    background:
        radial-gradient(circle at 12% 15%, rgba(184, 141, 61, 0.12), transparent 14rem),
        var(--reading-panel);
}

.ai-prompt-copy[b-9dkj31lzfe] {
    min-width: 0;
}

.ai-prompt-copy h2[b-9dkj31lzfe] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.15rem;
}

.ai-prompt-copy > p:last-child[b-9dkj31lzfe] {
    margin: 0.35rem 0 0;
    color: var(--reading-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.ai-prompt-actions[b-9dkj31lzfe] {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-direction: column;
    gap: 0.45rem;
}

.ai-prompt-copy-button[b-9dkj31lzfe] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding: 0.65rem 1rem;
    border-color: rgba(110, 45, 79, 0.38);
    border-radius: 0.55rem;
    background: #fffaf3;
    color: #6e2d4f;
    font-weight: 800;
}

.ai-prompt-copy-button:hover:not(:disabled)[b-9dkj31lzfe] {
    border-color: #6e2d4f;
    background: #f7eaf0;
    color: #58213f;
}

.ai-prompt-copy-button.copied[b-9dkj31lzfe] {
    border-color: rgba(69, 126, 75, 0.45);
    background: #f0f8ee;
    color: #356d3c;
}

.ai-prompt-settings-link[b-9dkj31lzfe] {
    color: #756b79;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration-color: rgba(110, 45, 79, 0.3);
    text-underline-offset: 0.2rem;
}

.ai-prompt-settings-link:hover[b-9dkj31lzfe] {
    color: #6e2d4f;
}

.action-bar-spacer[b-9dkj31lzfe] {
    height: 7rem;
}

.reading-action-bar[b-9dkj31lzfe] {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 264px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0.8rem max(1.5rem, calc((100vw - 264px - 1120px) / 2));
    border-top: 1px solid rgba(74, 53, 88, 0.17);
    background: rgba(255, 252, 245, 0.93);
    box-shadow: 0 -10px 34px rgba(32, 23, 42, 0.08);
    backdrop-filter: blur(15px);
}

.action-status[b-9dkj31lzfe] {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: var(--reading-muted);
    font-size: 0.8rem;
}

.status-dot[b-9dkj31lzfe] {
    flex: 0 0 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #57905c;
}

.status-dot.error[b-9dkj31lzfe] {
    background: #b33d4f;
}

.action-center[b-9dkj31lzfe],
.action-end[b-9dkj31lzfe] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.action-center[b-9dkj31lzfe] {
    grid-column: 2;
    justify-self: center;
    flex-direction: column;
    gap: 0.35rem;
}

.action-end[b-9dkj31lzfe] {
    grid-column: 3;
    justify-self: end;
}

.reading-unsaved-dialog-backdrop[b-9dkj31lzfe] {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(18, 15, 28, 0.62);
    backdrop-filter: blur(4px);
}

.reading-unsaved-dialog[b-9dkj31lzfe] {
    width: min(540px, 100%);
    padding: 1.35rem;
    border: 1px solid rgba(197, 164, 96, 0.48);
    border-radius: 0.75rem;
    background: #fffdf8;
    box-shadow: 0 1.25rem 3rem rgba(18, 15, 28, 0.3);
}

.reading-unsaved-dialog h2[b-9dkj31lzfe] {
    margin: 0 0 0.55rem;
    color: var(--reading-ink);
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.3rem;
}

.reading-unsaved-dialog p[b-9dkj31lzfe] {
    margin: 0 0 1.1rem;
    color: var(--reading-muted);
    line-height: 1.7;
}

.reading-unsaved-dialog-actions[b-9dkj31lzfe] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.reading-unsaved-dialog-actions .primary-action[b-9dkj31lzfe],
.reading-unsaved-dialog-actions .secondary-action[b-9dkj31lzfe] {
    min-width: auto;
}

.spread-save-dialog .form-control[b-9dkj31lzfe] {
    margin: 0.35rem 0 1rem;
}

.spread-save-error[b-9dkj31lzfe] {
    margin: -0.4rem 0 1rem !important;
    color: #a52f43 !important;
    font-size: 0.82rem;
    font-weight: 700;
}

.reshuffle-action[b-9dkj31lzfe] {
    min-height: 1.85rem;
    padding: 0.15rem 0.5rem;
    border: 0;
    background: transparent;
    color: #6d5d42;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(109, 93, 66, 0.35);
    text-underline-offset: 0.2rem;
}

.reshuffle-action:hover:not(:disabled)[b-9dkj31lzfe] {
    color: var(--reading-accent-deep);
    text-decoration-color: currentColor;
}

.reshuffle-action:disabled[b-9dkj31lzfe] {
    opacity: 0.45;
}

.primary-action[b-9dkj31lzfe],
.secondary-action[b-9dkj31lzfe] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding: 0.65rem 1.15rem;
    border-radius: 0.55rem;
    font-weight: 800;
}

.primary-action[b-9dkj31lzfe] {
    min-width: 10.5rem;
    border-color: #b78e43;
    background: linear-gradient(135deg, #d1b16d, #bb9143);
    color: #201729;
    box-shadow: 0 8px 20px rgba(157, 123, 53, 0.22);
}

.primary-action:hover:not(:disabled)[b-9dkj31lzfe] {
    border-color: #c49e55;
    background: linear-gradient(135deg, #dbc080, #c69d50);
    color: #201729;
    transform: translateY(-1px);
}

.secondary-action[b-9dkj31lzfe] {
    border-color: rgba(110, 45, 79, 0.38);
    background: #fffaf3;
    color: #6e2d4f;
}

.secondary-action:hover:not(:disabled)[b-9dkj31lzfe] {
    border-color: #6e2d4f;
    background: #f7eaf0;
    color: #58213f;
}

.card-detail-stage[b-9dkj31lzfe] {
    min-height: min(760px, calc(100vh - 11rem));
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(197, 164, 96, 0.25);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 50% 18rem, rgba(197, 164, 96, 0.17), transparent 22rem),
        linear-gradient(160deg, #1a1428 0%, #27182f 55%, #15101f 100%);
    color: #f8f0df;
}

.card-detail-toolbar[b-9dkj31lzfe] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    width: min(1000px, 100%);
    margin: 0 auto 1rem;
}

.card-detail-back[b-9dkj31lzfe] {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0.45rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(213, 182, 110, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 240, 223, 0.86);
    font-size: 0.8rem;
    font-weight: 750;
}

.card-detail-back:hover[b-9dkj31lzfe],
.card-detail-back:focus-visible[b-9dkj31lzfe] {
    border-color: #d5b66e;
    outline: none;
    background: rgba(213, 182, 110, 0.12);
    color: #fff7e4;
}

.card-detail-kicker[b-9dkj31lzfe] {
    justify-self: center;
    color: #d5b66e;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.card-detail-navigation[b-9dkj31lzfe] {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0.4rem;
}

.card-detail-nav-button[b-9dkj31lzfe] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(213, 182, 110, 0.42);
    border-radius: 999px;
    background: rgba(213, 182, 110, 0.08);
    color: #f8f0df;
    font-size: 0.76rem;
    font-weight: 750;
    white-space: nowrap;
}

.card-detail-nav-button:hover:not(:disabled)[b-9dkj31lzfe],
.card-detail-nav-button:focus-visible[b-9dkj31lzfe] {
    border-color: #d5b66e;
    outline: none;
    background: rgba(213, 182, 110, 0.18);
    color: #fff7e4;
}

.card-detail-nav-button:disabled[b-9dkj31lzfe] {
    cursor: default;
    opacity: 0.38;
}

.card-detail-nav-button > span[aria-hidden="true"][b-9dkj31lzfe] {
    color: #d5b66e;
    font-size: 1.15rem;
    line-height: 0;
}

.card-detail-nav-count[b-9dkj31lzfe] {
    min-width: 2.9rem;
    color: rgba(248, 240, 223, 0.7);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

.card-detail-image-button[b-9dkj31lzfe] {
    position: relative;
    display: grid;
    place-items: center;
    width: min(540px, 100%);
    min-height: 18rem;
    margin: 0 auto;
    padding: clamp(0.8rem, 2.5vw, 1.3rem);
    border: 1px solid rgba(213, 182, 110, 0.42);
    border-radius: 1rem;
    background: rgba(8, 6, 14, 0.36);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    cursor: zoom-in;
}

.card-detail-image-button:hover:not(:disabled)[b-9dkj31lzfe],
.card-detail-image-button:focus-visible[b-9dkj31lzfe] {
    border-color: rgba(238, 213, 154, 0.9);
    outline: none;
    box-shadow: 0 0 0 4px rgba(213, 182, 110, 0.1), 0 24px 65px rgba(0, 0, 0, 0.34);
}

.card-detail-image-button:disabled[b-9dkj31lzfe] {
    cursor: default;
    opacity: 1;
}

.card-detail-image[b-9dkj31lzfe] {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(58vh, 650px);
    border-radius: 0.65rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    object-fit: contain;
    transition: transform 220ms ease;
    user-select: none;
}

.card-detail-image.reversed[b-9dkj31lzfe],
.lightbox-card-image.reversed[b-9dkj31lzfe] {
    transform: rotate(180deg);
}

.image-expand-hint[b-9dkj31lzfe] {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(13, 9, 20, 0.78);
    color: #f8f0df;
    font-size: 0.7rem;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.card-image-missing[b-9dkj31lzfe] {
    display: grid;
    place-items: center;
    width: 11rem;
    aspect-ratio: 0.68;
    border: 1px solid rgba(213, 182, 110, 0.46);
    border-radius: 0.7rem;
    color: #d5b66e;
    background:
        repeating-linear-gradient(45deg, transparent 0 10px, rgba(213, 182, 110, 0.05) 10px 11px),
        #251833;
    font-size: 2.2rem;
}

.card-detail-copy[b-9dkj31lzfe] {
    width: min(820px, 100%);
    margin: 1.2rem auto 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(213, 182, 110, 0.2);
    border-radius: 1rem;
    background: rgba(255, 252, 245, 0.96);
    color: var(--reading-ink);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.card-detail-heading[b-9dkj31lzfe] {
    position: relative;
    padding-right: 6rem;
}

.card-detail-heading p[b-9dkj31lzfe] {
    margin: 0 0 0.3rem;
    color: #8d6a2d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.card-detail-heading h2[b-9dkj31lzfe] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.card-original-name[b-9dkj31lzfe] {
    display: block;
    margin-top: 0.18rem;
    color: var(--reading-muted);
    font-family: Georgia, serif;
    font-size: 0.88rem;
    font-style: italic;
}

.detail-orientation[b-9dkj31lzfe] {
    position: absolute;
    top: 0.25rem;
    right: 0;
    padding: 0.32rem 0.68rem;
    font-size: 0.74rem;
}

.card-meaning-summary[b-9dkj31lzfe] {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    border-left: 3px solid #b88d3d;
    background: #f5eddd;
    color: #4b3a27;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.8;
}

.card-keywords[b-9dkj31lzfe] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.card-keywords span[b-9dkj31lzfe] {
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(184, 141, 61, 0.28);
    border-radius: 999px;
    background: #fffaf0;
    color: #6f5424;
    font-size: 0.74rem;
    font-weight: 750;
}

.card-topic-section[b-9dkj31lzfe] {
    margin-top: 1.5rem;
    padding-top: 1.45rem;
    border-top: 1px solid rgba(74, 53, 88, 0.13);
}

.card-topic-heading[b-9dkj31lzfe] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.card-topic-heading p[b-9dkj31lzfe] {
    margin: 0 0 0.3rem;
    color: #9d7b35;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.card-topic-heading h3[b-9dkj31lzfe] {
    margin: 0;
    color: #56405e;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.08rem;
}

.card-topic-heading > span[b-9dkj31lzfe] {
    color: var(--reading-muted);
    font-size: 0.72rem;
}

.card-topic-list[b-9dkj31lzfe] {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.card-topic-item[b-9dkj31lzfe] {
    border: 1px solid rgba(74, 53, 88, 0.14);
    border-radius: 0.7rem;
    background: #fffaf0;
    overflow: hidden;
}

.card-topic-item summary[b-9dkj31lzfe] {
    display: grid;
    grid-template-columns: 1.8rem minmax(0, 1fr) auto;
    min-height: 3.2rem;
    padding: 0.65rem 0.9rem;
    align-items: center;
    color: #49394f;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.card-topic-item summary[b-9dkj31lzfe]::-webkit-details-marker {
    display: none;
}

.card-topic-item summary:hover[b-9dkj31lzfe] {
    background: rgba(197, 164, 96, 0.1);
}

.card-topic-item summary:focus-visible[b-9dkj31lzfe] {
    outline: 3px solid rgba(197, 164, 96, 0.3);
    outline-offset: -3px;
}

.card-topic-mark[b-9dkj31lzfe] {
    color: #a47d30;
    font-family: Georgia, serif;
    font-size: 1.05rem;
}

.card-topic-toggle[b-9dkj31lzfe] {
    color: #9d7b35;
    font-size: 1.1rem;
    transition: transform 160ms ease;
}

.card-topic-item[open] .card-topic-toggle[b-9dkj31lzfe] {
    transform: rotate(180deg);
}

.card-topic-item > p[b-9dkj31lzfe] {
    margin: 0;
    padding: 0.15rem 1rem 1.1rem 2.7rem;
    border-top: 1px solid rgba(74, 53, 88, 0.09);
    color: #514854;
    line-height: 1.9;
    white-space: pre-line;
}

.card-description-section[b-9dkj31lzfe] {
    margin-top: 1.5rem;
}

.card-description-section + .card-description-section[b-9dkj31lzfe] {
    padding-top: 1.45rem;
    border-top: 1px solid rgba(74, 53, 88, 0.13);
}

.card-topic-section + .card-description-section[b-9dkj31lzfe] {
    padding-top: 1.45rem;
    border-top: 1px solid rgba(74, 53, 88, 0.13);
}

.card-description-section h3[b-9dkj31lzfe] {
    margin: 0 0 0.65rem;
    color: #56405e;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.08rem;
}

.card-description-section p[b-9dkj31lzfe],
.card-description-empty[b-9dkj31lzfe] {
    margin: 0;
    color: #514854;
    line-height: 1.9;
    white-space: pre-line;
}

.card-advice-section h3[b-9dkj31lzfe] {
    color: #7d5f24;
}

.card-advice-section p[b-9dkj31lzfe] {
    padding: 0.9rem 1rem;
    border-left: 3px solid #c5a460;
    background: #faf3e4;
    color: #4b3f2d;
}

.common-description h3[b-9dkj31lzfe] {
    color: #725825;
}

.card-description-empty[b-9dkj31lzfe] {
    margin-top: 1.25rem;
    color: var(--reading-muted);
}

.card-image-lightbox[b-9dkj31lzfe] {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
    background: rgba(8, 6, 13, 0.96);
    backdrop-filter: blur(14px);
    overflow: auto;
}

.lightbox-card-image[b-9dkj31lzfe] {
    display: block;
    width: auto;
    max-width: calc(100vw - 2rem);
    height: auto;
    max-height: calc(100vh - 7rem);
    border-radius: 0.7rem;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    object-fit: contain;
    user-select: none;
}

.lightbox-close[b-9dkj31lzfe] {
    position: fixed;
    z-index: 1;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
}

.lightbox-close:hover[b-9dkj31lzfe],
.lightbox-close:focus-visible[b-9dkj31lzfe] {
    border-color: #f5cf84;
    outline: none;
    background: rgba(245, 207, 132, 0.18);
}

.lightbox-caption[b-9dkj31lzfe] {
    position: fixed;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    left: 50%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: calc(100vw - 2rem);
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(17, 12, 25, 0.78);
    color: #f8f0df;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.lightbox-caption span[b-9dkj31lzfe] {
    color: #d5b66e;
    font-size: 0.76rem;
    font-weight: 800;
}

.card-reveal-stage[b-9dkj31lzfe] {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    min-height: min(760px, calc(100vh - 11rem));
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid rgba(197, 164, 96, 0.28);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 50% 44%, rgba(139, 80, 151, 0.2), transparent 19rem),
        radial-gradient(circle at 50% 85%, rgba(197, 164, 96, 0.12), transparent 24rem),
        linear-gradient(160deg, #151020 0%, #24152e 53%, #100c19 100%);
    color: #f8f0df;
    text-align: center;
    overflow: hidden;
    animation: reveal-stage-enter-b-9dkj31lzfe 420ms ease-out both;
    transition: background 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
}

.card-reveal-stage.major-omen[b-9dkj31lzfe] {
    border-color: rgba(241, 203, 112, 0.62);
    background:
        radial-gradient(circle at 50% 46%, rgba(238, 194, 86, 0.24), transparent 13rem),
        radial-gradient(circle at 50% 46%, rgba(121, 60, 150, 0.3), transparent 25rem),
        linear-gradient(160deg, #181020 0%, #321838 53%, #100b19 100%);
}

.card-reveal-stage.is-major-card.has-revealed-card[b-9dkj31lzfe] {
    border-color: rgba(246, 209, 119, 0.72);
    background:
        radial-gradient(circle at 50% 46%, rgba(238, 194, 86, 0.2), transparent 16rem),
        radial-gradient(circle at 50% 58%, rgba(114, 55, 145, 0.32), transparent 27rem),
        linear-gradient(160deg, #181020 0%, #2d1736 53%, #100b19 100%);
}

.card-reveal-stage.final-omen[b-9dkj31lzfe] {
    border-color: rgba(222, 207, 255, 0.82);
    background:
        radial-gradient(circle at 50% 46%, rgba(232, 222, 255, 0.25), transparent 12rem),
        radial-gradient(circle at 50% 46%, rgba(117, 79, 171, 0.34), transparent 24rem),
        linear-gradient(160deg, #151020 0%, #271a3d 53%, #0e0b18 100%);
    box-shadow: inset 0 0 0 1px rgba(236, 227, 255, 0.12);
}

.card-reveal-stage.final-omen.final-omen-exit[b-9dkj31lzfe] {
    border-color: rgba(197, 164, 96, 0.28);
    background:
        radial-gradient(circle at 50% 44%, rgba(139, 80, 151, 0.2), transparent 19rem),
        radial-gradient(circle at 50% 85%, rgba(197, 164, 96, 0.12), transparent 24rem),
        linear-gradient(160deg, #151020 0%, #24152e 53%, #100c19 100%);
    box-shadow: inset 0 0 0 1px rgba(236, 227, 255, 0);
}

.card-reveal-stage.final-omen.final-omen-exit.is-major-card.has-revealed-card[b-9dkj31lzfe] {
    border-color: rgba(246, 209, 119, 0.72);
    background:
        radial-gradient(circle at 50% 46%, rgba(238, 194, 86, 0.2), transparent 16rem),
        radial-gradient(circle at 50% 58%, rgba(114, 55, 145, 0.32), transparent 27rem),
        linear-gradient(160deg, #181020 0%, #2d1736 53%, #100b19 100%);
}

.card-reveal-ambient[b-9dkj31lzfe] {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.reveal-orbit[b-9dkj31lzfe],
.reveal-ray-field[b-9dkj31lzfe],
.omen-star[b-9dkj31lzfe],
.final-reveal-burst[b-9dkj31lzfe] {
    position: absolute;
    opacity: 0;
    transition: opacity 500ms ease;
}

.reveal-orbit[b-9dkj31lzfe] {
    top: 51%;
    left: 50%;
    border: 1px solid rgba(244, 209, 126, 0.56);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one[b-9dkj31lzfe] {
    width: min(34rem, 70vw);
    aspect-ratio: 1;
}

.orbit-two[b-9dkj31lzfe] {
    width: min(25rem, 54vw);
    aspect-ratio: 1;
    border-style: dashed;
}

.reveal-ray-field[b-9dkj31lzfe] {
    top: 51%;
    left: 50%;
    width: min(42rem, 88vw);
    aspect-ratio: 1;
    background: repeating-conic-gradient(
        from 7deg,
        rgba(247, 211, 126, 0.11) 0deg 1deg,
        transparent 1deg 15deg);
    mask-image: radial-gradient(circle, transparent 0 26%, #000 46%, transparent 72%);
    transform: translate(-50%, -50%);
}

.major-omen .reveal-orbit[b-9dkj31lzfe],
.major-omen .reveal-ray-field[b-9dkj31lzfe],
.major-omen .omen-star[b-9dkj31lzfe],
.is-major-card.has-revealed-card .reveal-orbit[b-9dkj31lzfe],
.is-major-card.has-revealed-card .reveal-ray-field[b-9dkj31lzfe],
.is-major-card.has-revealed-card .omen-star[b-9dkj31lzfe] {
    opacity: 1;
}

.major-omen .orbit-one[b-9dkj31lzfe],
.is-major-card.has-revealed-card .orbit-one[b-9dkj31lzfe] {
    animation: omen-orbit-b-9dkj31lzfe 16s linear infinite;
}

.major-omen .orbit-two[b-9dkj31lzfe],
.is-major-card.has-revealed-card .orbit-two[b-9dkj31lzfe] {
    animation: omen-orbit-reverse-b-9dkj31lzfe 11s linear infinite;
}

.major-omen .reveal-ray-field[b-9dkj31lzfe],
.is-major-card.has-revealed-card .reveal-ray-field[b-9dkj31lzfe] {
    animation: omen-rays-b-9dkj31lzfe 8s linear infinite;
}

.major-omen .omen-star[b-9dkj31lzfe],
.is-major-card.has-revealed-card .omen-star[b-9dkj31lzfe] {
    animation: omen-star-b-9dkj31lzfe 2.4s ease-in-out infinite;
}

.major-omen .star-two[b-9dkj31lzfe],
.is-major-card.has-revealed-card .star-two[b-9dkj31lzfe] { animation-delay: 300ms; }
.major-omen .star-three[b-9dkj31lzfe],
.is-major-card.has-revealed-card .star-three[b-9dkj31lzfe] { animation-delay: 650ms; }
.major-omen .star-four[b-9dkj31lzfe],
.is-major-card.has-revealed-card .star-four[b-9dkj31lzfe] { animation-delay: 900ms; }
.major-omen .star-five[b-9dkj31lzfe],
.is-major-card.has-revealed-card .star-five[b-9dkj31lzfe] { animation-delay: 1.1s; }
.major-omen .star-six[b-9dkj31lzfe],
.is-major-card.has-revealed-card .star-six[b-9dkj31lzfe] { animation-delay: 1.35s; }

.omen-star[b-9dkj31lzfe] {
    color: #f5cf77;
    filter: drop-shadow(0 0 8px rgba(248, 211, 124, 0.88));
    font-size: clamp(0.72rem, 2vw, 1.15rem);
}

.star-one[b-9dkj31lzfe] { top: 24%; left: 19%; }
.star-two[b-9dkj31lzfe] { top: 36%; right: 18%; }
.star-three[b-9dkj31lzfe] { top: 64%; left: 16%; }
.star-four[b-9dkj31lzfe] { right: 20%; bottom: 24%; }
.star-five[b-9dkj31lzfe] { top: 17%; right: 33%; }
.star-six[b-9dkj31lzfe] { bottom: 17%; left: 34%; }

.final-reveal-burst[b-9dkj31lzfe] {
    top: 51%;
    left: 50%;
    width: min(48rem, 100vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 4deg, rgba(232, 220, 255, 0.2) 0deg 1.5deg, transparent 1.5deg 14deg),
        radial-gradient(circle, rgba(222, 205, 255, 0.28), transparent 54%);
    mask-image: radial-gradient(circle, transparent 0 30%, #000 48%, transparent 72%);
    transform: translate(-50%, -50%) scale(1.2);
}

.final-omen .final-reveal-burst[b-9dkj31lzfe] {
    animation: final-omen-focus-b-9dkj31lzfe 800ms cubic-bezier(0.25, 0.72, 0.2, 1) both;
}

.final-omen .reveal-orbit[b-9dkj31lzfe] {
    border-color: rgba(229, 218, 255, 0.8);
    opacity: 1;
}

.final-omen .orbit-one[b-9dkj31lzfe] {
    animation: final-orbit-focus-b-9dkj31lzfe 800ms cubic-bezier(0.25, 0.72, 0.2, 1) both;
}

.final-omen .orbit-two[b-9dkj31lzfe] {
    animation: final-orbit-focus-b-9dkj31lzfe 800ms 90ms cubic-bezier(0.25, 0.72, 0.2, 1) both;
}

.final-omen-exit .final-reveal-burst[b-9dkj31lzfe] {
    animation: final-omen-dismiss-b-9dkj31lzfe 520ms cubic-bezier(0.4, 0, 0.7, 0.2) both;
}

.final-omen-exit:not(.is-major-card) .orbit-one[b-9dkj31lzfe],
.final-omen-exit:not(.is-major-card) .orbit-two[b-9dkj31lzfe] {
    animation: final-orbit-dismiss-b-9dkj31lzfe 520ms cubic-bezier(0.4, 0, 0.7, 0.2) both;
}

.final-omen-exit.is-major-card .reveal-orbit[b-9dkj31lzfe] {
    border-color: rgba(244, 209, 126, 0.56);
}

.final-omen-exit.is-major-card .orbit-one[b-9dkj31lzfe] {
    animation: omen-orbit-b-9dkj31lzfe 16s linear infinite;
}

.final-omen-exit.is-major-card .orbit-two[b-9dkj31lzfe] {
    animation: omen-orbit-reverse-b-9dkj31lzfe 11s linear infinite;
}

.card-reveal-header[b-9dkj31lzfe],
.card-reveal-scene[b-9dkj31lzfe],
.card-reveal-copy[b-9dkj31lzfe] {
    position: relative;
    z-index: 1;
    transition: opacity 480ms ease, transform 620ms cubic-bezier(0.55, 0.02, 0.72, 0.34), filter 480ms ease;
}

.card-reveal-header[b-9dkj31lzfe] {
    width: min(620px, 100%);
}

.card-reveal-progress-copy[b-9dkj31lzfe] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(248, 240, 223, 0.68);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.card-reveal-progress-copy strong[b-9dkj31lzfe] {
    color: #e4c579;
    font-family: Georgia, serif;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.card-reveal-progress[b-9dkj31lzfe] {
    height: 2px;
    margin: 0.55rem 0 1rem;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.card-reveal-progress span[b-9dkj31lzfe] {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #a878ca, #efd080);
    box-shadow: 0 0 12px rgba(239, 208, 128, 0.72);
    transition: width 350ms ease;
}

.card-reveal-position-kicker[b-9dkj31lzfe] {
    margin: 0;
    color: rgba(213, 182, 110, 0.76);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.card-reveal-header h2[b-9dkj31lzfe] {
    margin: 0.28rem 0 0;
    color: #f8f0df;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(1.45rem, 3.5vw, 2.1rem);
    font-weight: 500;
    letter-spacing: 0.07em;
}

.card-reveal-position-description[b-9dkj31lzfe] {
    margin: 0.4rem 0 0;
    color: rgba(248, 240, 223, 0.62);
    font-size: 0.8rem;
    line-height: 1.6;
}

.card-reveal-scene[b-9dkj31lzfe] {
    display: grid;
    place-items: center;
    align-self: center;
    width: clamp(190px, 28vw, 260px);
    margin: 0.8rem 0;
    aspect-ratio: 0.62;
    perspective: 1500px;
    animation: card-deal-in-b-9dkj31lzfe 560ms cubic-bezier(0.18, 0.78, 0.2, 1);
}

.card-reveal-aura[b-9dkj31lzfe] {
    position: absolute;
    z-index: -1;
    width: 130%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(162, 103, 189, 0.25), rgba(105, 54, 132, 0.08) 48%, transparent 70%);
    filter: blur(2px);
    transition: background 500ms ease, filter 500ms ease, transform 500ms ease;
}

.major-omen .card-reveal-aura[b-9dkj31lzfe] {
    width: 165%;
    background: radial-gradient(circle, rgba(255, 224, 145, 0.38), rgba(197, 128, 55, 0.14) 43%, transparent 70%);
    filter: blur(1px) drop-shadow(0 0 24px rgba(244, 197, 90, 0.35));
    animation: major-aura-pulse-b-9dkj31lzfe 2.2s ease-in-out infinite;
}

.has-revealed-card .card-reveal-aura[b-9dkj31lzfe] {
    width: 150%;
    background: radial-gradient(circle, rgba(190, 133, 217, 0.42), rgba(116, 66, 145, 0.14) 45%, transparent 70%);
    filter: blur(1px) drop-shadow(0 0 18px rgba(177, 107, 211, 0.3));
    animation: revealed-aura-pulse-b-9dkj31lzfe 2.1s ease-in-out infinite;
}

.is-major-card.has-revealed-card .card-reveal-aura[b-9dkj31lzfe] {
    width: 184%;
    background: radial-gradient(circle, rgba(255, 226, 151, 0.54), rgba(205, 141, 57, 0.2) 43%, transparent 70%);
    filter: blur(1px) drop-shadow(0 0 34px rgba(247, 202, 99, 0.52));
    animation: major-revealed-aura-pulse-b-9dkj31lzfe 1.8s ease-in-out infinite;
}

.card-reveal-button[b-9dkj31lzfe] {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0.9rem;
    background: transparent;
    color: inherit;
    perspective: inherit;
    opacity: 1;
    -webkit-tap-highlight-color: transparent;
}

.card-reveal-inner[b-9dkj31lzfe] {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 850ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

.major-omen .card-reveal-button:not(.is-flipped)[b-9dkj31lzfe] {
    animation: major-card-presence-b-9dkj31lzfe 2.2s ease-in-out infinite;
}

.has-revealed-card .card-reveal-button.is-flipped[b-9dkj31lzfe] {
    animation: revealed-card-breathe-b-9dkj31lzfe 2.4s 850ms ease-in-out infinite;
}

.is-major-card.has-revealed-card .card-reveal-button.is-flipped[b-9dkj31lzfe] {
    animation: major-revealed-card-breathe-b-9dkj31lzfe 1.9s 850ms ease-in-out infinite;
}

.card-reveal-button.is-flipped .card-reveal-inner[b-9dkj31lzfe] {
    transform: rotateY(180deg);
}

.card-reveal-face[b-9dkj31lzfe] {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid rgba(238, 213, 154, 0.82);
    border-radius: 0.9rem;
    background: #17101f;
    box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.48);
    backface-visibility: hidden;
    overflow: hidden;
}

.major-omen .card-reveal-back[b-9dkj31lzfe] {
    border-color: rgba(255, 224, 145, 0.95);
    box-shadow:
        0 1.6rem 4rem rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(232, 190, 92, 0.12),
        0 0 2.2rem rgba(245, 200, 95, 0.38);
}

.card-reveal-back > img[b-9dkj31lzfe],
.reveal-card-image[b-9dkj31lzfe] {
    width: 100%;
    height: 100%;
    border-radius: 0.62rem;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.reveal-back-fallback[b-9dkj31lzfe] {
    border-radius: 0.62rem;
}

.reveal-back-glint[b-9dkj31lzfe] {
    position: absolute;
    inset: -40% -80%;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 232, 173, 0.28) 50%, transparent 62%);
    transform: translateX(-38%) rotate(4deg);
    opacity: 0;
    pointer-events: none;
}

.major-omen .reveal-back-glint[b-9dkj31lzfe] {
    opacity: 1;
    animation: omen-glint-b-9dkj31lzfe 2.4s ease-in-out infinite;
}

.card-reveal-front[b-9dkj31lzfe] {
    padding: 4px;
    background: #0d0912;
    transform: rotateY(180deg);
}

.has-revealed-card .card-reveal-front[b-9dkj31lzfe] {
    border-color: rgba(216, 172, 238, 0.78);
    box-shadow:
        0 1.6rem 4rem rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(171, 105, 203, 0.12),
        0 0 2rem rgba(171, 105, 203, 0.38);
}

.is-major-card.has-revealed-card .card-reveal-front[b-9dkj31lzfe] {
    border-color: rgba(255, 225, 151, 0.96);
    box-shadow:
        0 1.6rem 4rem rgba(0, 0, 0, 0.52),
        0 0 0 4px rgba(235, 190, 86, 0.16),
        0 0 2.8rem rgba(247, 202, 99, 0.56);
}

.reveal-card-image[b-9dkj31lzfe] {
    border-radius: 0.68rem;
    object-fit: contain;
}

.reveal-card-image.reversed[b-9dkj31lzfe] {
    transform: rotate(180deg);
}

.reveal-card-image-missing[b-9dkj31lzfe] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(213, 182, 110, 0.48);
    border-radius: 0.62rem;
    background:
        radial-gradient(circle at center, rgba(213, 182, 110, 0.15), transparent 48%),
        #21152b;
    color: #eed494;
}

.reveal-card-image-missing > span[b-9dkj31lzfe] {
    font-size: 2.25rem;
}

.reveal-card-image-missing strong[b-9dkj31lzfe] {
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.15rem;
    font-weight: 500;
}

.card-reveal-copy[b-9dkj31lzfe] {
    display: grid;
    justify-items: center;
    align-content: end;
    min-height: 7.2rem;
}

.revealed-card-title[b-9dkj31lzfe] {
    position: relative;
    padding-inline: 4.8rem;
    animation: reveal-copy-enter-b-9dkj31lzfe 500ms 420ms ease-out both;
}

.revealed-card-title p[b-9dkj31lzfe] {
    margin: 0 0 0.2rem;
    color: #d8b966;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.revealed-card-title h3[b-9dkj31lzfe] {
    margin: 0;
    color: #f8f0df;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(1.45rem, 3.6vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.06em;
}

.revealed-card-original-name[b-9dkj31lzfe] {
    display: block;
    margin-top: 0.12rem;
    color: rgba(248, 240, 223, 0.58);
    font-family: Georgia, serif;
    font-size: 0.76rem;
}

.reveal-orientation[b-9dkj31lzfe] {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.reveal-auto-status[b-9dkj31lzfe] {
    margin: 0.65rem 0 0;
    color: rgba(248, 240, 223, 0.56);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    animation: reveal-copy-enter-b-9dkj31lzfe 450ms 720ms ease-out both;
}

.card-reveal-stage.is-advancing .card-reveal-header[b-9dkj31lzfe],
.card-reveal-stage.is-advancing .card-reveal-copy[b-9dkj31lzfe] {
    opacity: 0;
    transform: translateY(-8px);
}

.card-reveal-stage.is-advancing.slide-left .card-reveal-scene[b-9dkj31lzfe] {
    opacity: 0;
    filter: blur(3px);
    transform: translateX(-115vw) rotate(-11deg) scale(0.92);
}

.card-reveal-stage.is-advancing.slide-right .card-reveal-scene[b-9dkj31lzfe] {
    opacity: 0;
    filter: blur(3px);
    transform: translateX(115vw) rotate(11deg) scale(0.92);
}

@keyframes reveal-stage-enter-b-9dkj31lzfe {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reveal-copy-enter-b-9dkj31lzfe {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes card-deal-in-b-9dkj31lzfe {
    from { opacity: 0; filter: blur(3px); transform: translateY(30px) scale(0.88); }
    to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes major-card-presence-b-9dkj31lzfe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.012); }
}

@keyframes major-aura-pulse-b-9dkj31lzfe {
    0%, 100% { opacity: 0.66; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes revealed-aura-pulse-b-9dkj31lzfe {
    0%, 100% { opacity: 0.66; transform: scale(0.94); }
    50% { opacity: 0.94; transform: scale(1.04); }
}

@keyframes major-revealed-aura-pulse-b-9dkj31lzfe {
    0%, 100% { opacity: 0.74; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes revealed-card-breathe-b-9dkj31lzfe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes major-revealed-card-breathe-b-9dkj31lzfe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.012); }
}

@keyframes final-omen-focus-b-9dkj31lzfe {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.2) rotate(-4deg); }
    42% { opacity: 0.9; }
    100% { opacity: 0.62; transform: translate(-50%, -50%) scale(0.7) rotate(3deg); }
}

@keyframes final-orbit-focus-b-9dkj31lzfe {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); }
    48% { opacity: 1; }
    100% { opacity: 0.76; transform: translate(-50%, -50%) scale(0.8); }
}

@keyframes final-omen-dismiss-b-9dkj31lzfe {
    from { opacity: 0.62; transform: translate(-50%, -50%) scale(0.7) rotate(3deg); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.32) rotate(6deg); }
}

@keyframes final-orbit-dismiss-b-9dkj31lzfe {
    from { opacity: 0.76; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.48); }
}

@keyframes omen-orbit-b-9dkj31lzfe {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes omen-orbit-reverse-b-9dkj31lzfe {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes omen-rays-b-9dkj31lzfe {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes omen-star-b-9dkj31lzfe {
    0%, 100% { opacity: 0.28; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.18) rotate(24deg); }
}

@keyframes omen-glint-b-9dkj31lzfe {
    0%, 30% { transform: translateX(-38%) rotate(4deg); opacity: 0; }
    48% { opacity: 0.85; }
    70%, 100% { transform: translateX(38%) rotate(4deg); opacity: 0; }
}

.shuffle-stage[b-9dkj31lzfe] {
    display: grid;
    justify-items: center;
    min-height: min(690px, calc(100vh - 12rem));
    padding: clamp(1.5rem, 4vw, 3rem) 1rem;
    border: 1px solid rgba(197, 164, 96, 0.25);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 50% 37%, rgba(197, 164, 96, 0.2), transparent 15rem),
        radial-gradient(circle at 50% 60%, rgba(110, 45, 79, 0.18), transparent 24rem),
        linear-gradient(160deg, #1a1428 0%, #27182f 55%, #15101f 100%);
    color: #f8f0df;
    text-align: center;
    overflow: hidden;
}

.shuffle-copy[b-9dkj31lzfe] {
    max-width: 660px;
}

.shuffle-copy h2[b-9dkj31lzfe] {
    margin: 0 0 0.75rem;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.shuffle-copy p:last-child[b-9dkj31lzfe] {
    margin: 0;
    color: rgba(248, 240, 223, 0.72);
    line-height: 1.8;
}

.shuffle-kicker[b-9dkj31lzfe] {
    color: #d5b66e;
}

.shuffle-card-shell[b-9dkj31lzfe] {
    position: relative;
    width: clamp(132px, 20vw, 178px);
    margin: 1.35rem 0;
    aspect-ratio: 0.68;
}

.shuffle-card-shadow[b-9dkj31lzfe],
.shuffle-card-back[b-9dkj31lzfe] {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
}

.shuffle-card-shadow[b-9dkj31lzfe] {
    transform: translate(12px, 13px) rotate(5deg);
    border: 1px solid rgba(213, 182, 110, 0.28);
    background: #352540;
}

.shuffle-card-back[b-9dkj31lzfe] {
    z-index: 1;
    padding: 5px;
    border: 1px solid rgba(238, 213, 154, 0.8);
    background: #1d1527;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    user-select: none;
}

.shuffle-card-back img[b-9dkj31lzfe] {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
    pointer-events: none;
}

.card-back-fallback[b-9dkj31lzfe] {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(213, 182, 110, 0.55);
    border-radius: 0.5rem;
    background:
        repeating-linear-gradient(45deg, transparent 0 10px, rgba(213, 182, 110, 0.06) 10px 11px),
        #251833;
    color: #d5b66e;
    font-size: 2.4rem;
}

.card-back-orbit[b-9dkj31lzfe] {
    position: absolute;
    width: 68%;
    aspect-ratio: 1;
    border: 1px solid rgba(213, 182, 110, 0.5);
    border-radius: 50%;
}

.shuffle-card-shell.is-shuffling .shuffle-card-back[b-9dkj31lzfe] {
    animation: card-shuffle-b-9dkj31lzfe 260ms ease-in-out infinite alternate;
}

.shuffle-card-shell.is-shuffling .shuffle-card-shadow[b-9dkj31lzfe] {
    animation: card-shadow-shuffle-b-9dkj31lzfe 260ms ease-in-out infinite alternate-reverse;
}

.shuffle-controls[b-9dkj31lzfe] {
    align-self: end;
}

.shuffle-button[b-9dkj31lzfe] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: min(310px, 82vw);
    padding: 0.9rem 1.3rem;
    border: 1px solid #d5b66e;
    border-radius: 999px;
    background: rgba(213, 182, 110, 0.12);
    color: #f7e8c1;
    font-weight: 800;
    touch-action: none;
    user-select: none;
    transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.shuffle-button:hover[b-9dkj31lzfe],
.shuffle-button.pressed[b-9dkj31lzfe] {
    background: rgba(213, 182, 110, 0.25);
    box-shadow: 0 0 0 6px rgba(213, 182, 110, 0.08), 0 10px 30px rgba(0, 0, 0, 0.22);
}

.shuffle-button.pressed[b-9dkj31lzfe] {
    transform: scale(0.97);
}

.shuffle-button-icon[b-9dkj31lzfe] {
    font-size: 1.35rem;
}

.shuffle-button.pressed .shuffle-button-icon[b-9dkj31lzfe] {
    animation: spin-b-9dkj31lzfe 480ms linear infinite;
}

.shuffle-controls p[b-9dkj31lzfe] {
    margin: 0.65rem 0 0;
    color: rgba(248, 240, 223, 0.58);
    font-size: 0.76rem;
}

.reading-loading[b-9dkj31lzfe],
.reading-empty-state[b-9dkj31lzfe] {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 55vh;
    text-align: center;
}

.reading-loading p[b-9dkj31lzfe],
.reading-empty-state p[b-9dkj31lzfe] {
    color: var(--reading-muted);
}

.reading-spinner[b-9dkj31lzfe] {
    width: 2.4rem;
    height: 2.4rem;
    border: 3px solid rgba(184, 141, 61, 0.2);
    border-top-color: var(--reading-accent);
    border-radius: 50%;
    animation: spin-b-9dkj31lzfe 750ms linear infinite;
}

.reading-empty-state h1[b-9dkj31lzfe] {
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
}

.empty-state-mark[b-9dkj31lzfe] {
    color: var(--reading-accent);
    font-size: 2.4rem;
}

@keyframes reveal-result-b-9dkj31lzfe {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes card-shuffle-b-9dkj31lzfe {
    from { transform: translateX(-8px) rotate(-2deg); }
    to { transform: translateX(8px) rotate(2deg); }
}

@keyframes card-shadow-shuffle-b-9dkj31lzfe {
    from { transform: translate(16px, 10px) rotate(7deg); }
    to { transform: translate(8px, 15px) rotate(3deg); }
}

@keyframes spin-b-9dkj31lzfe {
    to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
    .card-reveal-stage[b-9dkj31lzfe] {
        min-height: calc(100dvh - 9rem);
        padding: 1rem 0.85rem 1.2rem;
        border-radius: 0.8rem;
    }

    .card-reveal-progress-copy[b-9dkj31lzfe],
    .card-reveal-progress[b-9dkj31lzfe] {
        margin-inline: 0.2rem;
    }

    .card-reveal-header h2[b-9dkj31lzfe] {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
    }

    .card-reveal-position-description[b-9dkj31lzfe] {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .card-reveal-scene[b-9dkj31lzfe] {
        width: clamp(178px, 54vw, 232px);
        margin-block: 0.6rem;
    }

    .orbit-one[b-9dkj31lzfe] {
        width: 34rem;
    }

    .orbit-two[b-9dkj31lzfe] {
        width: 25rem;
    }

    .revealed-card-title[b-9dkj31lzfe] {
        padding-inline: 0;
    }

    .reveal-orientation[b-9dkj31lzfe] {
        position: static;
        margin-top: 0.45rem;
        transform: none;
    }

    .reading-header[b-9dkj31lzfe] {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .selection-grid[b-9dkj31lzfe] {
        grid-template-columns: 1fr;
    }

    .ai-prompt-panel[b-9dkj31lzfe] {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-prompt-copy-button[b-9dkj31lzfe] {
        width: 100%;
    }

    .ai-prompt-actions[b-9dkj31lzfe] {
        width: 100%;
    }

    .spread-save-prompt[b-9dkj31lzfe] {
        align-items: stretch;
        flex-direction: column;
    }

    .spread-save-prompt-actions[b-9dkj31lzfe] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spread-save-prompt-actions .btn:only-child[b-9dkj31lzfe] {
        grid-column: 1 / -1;
    }

    .reading-action-bar[b-9dkj31lzfe] {
        left: 0;
        bottom: calc(4.25rem + env(safe-area-inset-bottom));
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom));
    }

    .action-status[b-9dkj31lzfe] {
        display: none;
    }

    .action-center[b-9dkj31lzfe] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .reading-action-bar.has-save .action-center[b-9dkj31lzfe] {
        grid-column: 1;
    }

    .action-end[b-9dkj31lzfe] {
        grid-column: 2;
        justify-self: stretch;
    }

    .action-center .btn[b-9dkj31lzfe],
    .action-end .btn[b-9dkj31lzfe] {
        width: 100%;
        min-width: 0;
    }

    .action-bar-spacer[b-9dkj31lzfe] {
        height: 11rem;
    }

    .card-detail-stage[b-9dkj31lzfe] {
        min-height: calc(100vh - 9rem);
        padding: 0.8rem;
    }

    .card-detail-image-button[b-9dkj31lzfe] {
        min-height: 15rem;
    }

    .card-detail-copy[b-9dkj31lzfe] {
        padding: 1.1rem;
    }

    .card-topic-item > p[b-9dkj31lzfe] {
        padding-left: 1rem;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .reading-action-bar[b-9dkj31lzfe] {
        left: 92px;
        padding-inline: 1.5rem;
    }
}

@media (max-width: 640px) {
    .reading-tab[b-9dkj31lzfe] {
        min-width: 145px;
    }

    .spread-panel[b-9dkj31lzfe] {
        margin-inline: 0;
    }

    .card-result-button[b-9dkj31lzfe] {
        min-width: 0;
    }

    .card-detail-toolbar[b-9dkj31lzfe] {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

    .card-detail-kicker[b-9dkj31lzfe] {
        justify-self: end;
    }

    .card-detail-navigation[b-9dkj31lzfe] {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .card-detail-nav-button[b-9dkj31lzfe] {
        flex: 1;
    }

    .card-detail-heading[b-9dkj31lzfe] {
        padding-right: 0;
    }

    .detail-orientation[b-9dkj31lzfe] {
        position: static;
        margin-top: 0.7rem;
    }

    .image-expand-hint[b-9dkj31lzfe] {
        right: 0.55rem;
        bottom: 0.55rem;
    }
}

@media (min-width: 1101px) and (max-width: 1179px) {
    .reading-action-bar[b-9dkj31lzfe] {
        left: 92px;
        padding-inline: max(1.5rem, calc((100vw - 92px - 1120px) / 2));
    }
}

@media (max-width: 640px) {
    .spread-table-wrap[b-9dkj31lzfe] {
        padding: 0.75rem;
        overflow: visible;
        border-bottom: 0;
    }

    .spread-table[b-9dkj31lzfe] {
        display: block;
        min-width: 0;
    }

    .spread-table thead[b-9dkj31lzfe] {
        display: none;
    }

    .spread-table tbody[b-9dkj31lzfe] {
        display: grid;
        gap: 0.65rem;
    }

    .spread-table tr[b-9dkj31lzfe] {
        display: grid;
        grid-template-columns: 2.45rem minmax(0, 1fr);
        padding: 0.7rem;
        border: 1px solid rgba(74, 53, 88, 0.13);
        border-radius: 0.65rem;
        background: rgba(255, 253, 248, 0.78);
    }

    .spread-table td[b-9dkj31lzfe] {
        display: block;
        height: auto;
        padding: 0.12rem 0.3rem;
        border: 0;
    }

    .spread-table .order-cell[b-9dkj31lzfe] {
        grid-row: 1 / span 2;
        padding-top: 0.22rem;
    }

    .order-cell span[b-9dkj31lzfe] {
        width: 1.8rem;
        height: 1.8rem;
    }

    .position-name-input[b-9dkj31lzfe] {
        min-height: 2.6rem;
        padding: 0.45rem 0.6rem;
        border-color: rgba(74, 53, 88, 0.12);
        background: #fffdf8;
    }

    .card-result-cell[b-9dkj31lzfe] {
        grid-column: 2;
        min-width: 0;
    }

    .not-drawn[b-9dkj31lzfe] {
        display: inline-flex;
        min-height: 2rem;
        align-items: center;
        padding-inline: 0.6rem;
    }

    .drawn-card-result[b-9dkj31lzfe],
    .card-result-button[b-9dkj31lzfe] {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drawn-card-result[b-9dkj31lzfe],
    .shuffle-card-shell.is-shuffling .shuffle-card-back[b-9dkj31lzfe],
    .shuffle-card-shell.is-shuffling .shuffle-card-shadow[b-9dkj31lzfe],
    .shuffle-button.pressed .shuffle-button-icon[b-9dkj31lzfe],
    .reading-spinner[b-9dkj31lzfe],
    .card-detail-image[b-9dkj31lzfe],
    .card-reveal-stage[b-9dkj31lzfe],
    .card-reveal-inner[b-9dkj31lzfe],
    .major-omen .card-reveal-button[b-9dkj31lzfe],
    .major-omen .card-reveal-aura[b-9dkj31lzfe],
    .major-omen .reveal-orbit[b-9dkj31lzfe],
    .major-omen .reveal-ray-field[b-9dkj31lzfe],
    .major-omen .omen-star[b-9dkj31lzfe],
    .major-omen .reveal-back-glint[b-9dkj31lzfe],
    .final-omen .reveal-orbit[b-9dkj31lzfe],
    .final-omen .final-reveal-burst[b-9dkj31lzfe],
    .revealed-card-title[b-9dkj31lzfe],
    .reveal-auto-status[b-9dkj31lzfe],
    .has-revealed-card .card-reveal-button[b-9dkj31lzfe],
    .has-revealed-card .card-reveal-aura[b-9dkj31lzfe] {
        animation-duration: 1ms;
        animation-iteration-count: 1;
        transition-duration: 1ms;
    }
}
/* app/Pages/ReadingHistory.razor.rz.scp.css */
.history-page[b-rkif0tet14] {
    --history-ink: #21182d;
    --history-muted: #716777;
    --history-line: rgba(74, 53, 88, 0.17);
    --history-panel: #fffaf1;
    width: min(100%, 1040px);
    margin: 0 auto;
    color: var(--history-ink);
}

.history-header[b-rkif0tet14] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(197, 164, 96, 0.36);
}

.history-eyebrow[b-rkif0tet14] {
    margin: 0 0 0.45rem;
    color: #9d7b35;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.history-header h1[b-rkif0tet14] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.04em;
}

.history-intro[b-rkif0tet14] {
    max-width: 38rem;
    margin: 0.65rem 0 0;
    color: var(--history-muted);
    line-height: 1.75;
}

.history-operation-status[b-rkif0tet14] {
    margin: -0.7rem 0 1.2rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(93, 117, 67, 0.25);
    border-radius: 0.6rem;
    background: rgba(233, 242, 220, 0.72);
    color: #496132;
    font-size: 0.86rem;
}

.history-new-button[b-rkif0tet14] {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding-inline: 1rem;
    border: 1px solid #c5a460;
    border-radius: 999px;
    background: #21182d;
    color: #fff8e6;
    font-weight: 700;
    text-decoration: none;
}

.history-new-button:hover[b-rkif0tet14],
.history-new-button:focus[b-rkif0tet14] {
    border-color: #d9bf7d;
    background: #34233f;
    color: #fff8e6;
}

.history-toolbar[b-rkif0tet14] {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.history-search[b-rkif0tet14] {
    display: flex;
    flex: 1;
    align-items: center;
    min-height: 3.15rem;
    padding: 0 0.9rem;
    border: 1px solid var(--history-line);
    border-radius: 0.7rem;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 10px 28px rgba(33, 24, 45, 0.05);
}

.history-search:focus-within[b-rkif0tet14] {
    border-color: #c5a460;
    box-shadow: 0 0 0 0.18rem rgba(197, 164, 96, 0.2);
}

.search-icon[b-rkif0tet14] {
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.75rem;
    border: 2px solid #8a7e8e;
    border-radius: 50%;
    position: relative;
}

.search-icon[b-rkif0tet14]::after {
    content: "";
    position: absolute;
    right: -0.38rem;
    bottom: -0.25rem;
    width: 0.45rem;
    height: 2px;
    background: #8a7e8e;
    transform: rotate(45deg);
}

.history-search input[b-rkif0tet14] {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--history-ink);
}

.history-search input[b-rkif0tet14]::placeholder {
    color: #938997;
}

.history-search button[b-rkif0tet14] {
    display: grid;
    width: 2rem;
    height: 2rem;
    margin-left: 0.5rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #756a7a;
    font-size: 1.2rem;
    place-items: center;
}

.history-search button:hover[b-rkif0tet14] {
    background: rgba(74, 53, 88, 0.08);
}

.history-result-count[b-rkif0tet14] {
    flex: 0 0 auto;
    color: var(--history-muted);
    font-size: 0.84rem;
}

.history-groups[b-rkif0tet14] {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.month-heading[b-rkif0tet14] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.month-heading h2[b-rkif0tet14] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
}

.month-heading span[b-rkif0tet14] {
    color: var(--history-muted);
    font-size: 0.78rem;
}

.history-list[b-rkif0tet14] {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.history-card[b-rkif0tet14] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border: 1px solid var(--history-line);
    border-radius: 0.75rem;
    background: var(--history-panel);
    color: var(--history-ink);
    box-shadow: 0 8px 24px rgba(33, 24, 45, 0.045);
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.history-card:hover[b-rkif0tet14],
.history-card:focus-within[b-rkif0tet14] {
    border-color: rgba(157, 123, 53, 0.6);
    color: var(--history-ink);
    box-shadow: 0 14px 34px rgba(52, 35, 63, 0.1);
    transform: translateY(-2px);
}

.history-card:focus-within[b-rkif0tet14] {
    outline: 3px solid rgba(197, 164, 96, 0.28);
    outline-offset: 2px;
}

.history-card-link[b-rkif0tet14] {
    display: grid;
    min-width: 0;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    color: var(--history-ink);
    text-decoration: none;
}

.history-card-link:hover[b-rkif0tet14],
.history-card-link:focus-visible[b-rkif0tet14] {
    color: var(--history-ink);
}

.history-card-link:focus-visible[b-rkif0tet14],
.history-delete-button:focus-visible[b-rkif0tet14],
.delete-dialog button:focus-visible[b-rkif0tet14] {
    outline: 3px solid rgba(197, 164, 96, 0.42);
    outline-offset: -3px;
}

.history-date[b-rkif0tet14] {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0.65rem;
    border-right: 1px solid rgba(197, 164, 96, 0.28);
    background:
        radial-gradient(circle at 50% 10%, rgba(197, 164, 96, 0.17), transparent 4.5rem),
        #f7f0e3;
}

.history-date strong[b-rkif0tet14] {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}

.history-date span[b-rkif0tet14] {
    margin-top: 0.2rem;
    color: #8a6a29;
    font-size: 0.72rem;
    font-weight: 800;
}

.history-date small[b-rkif0tet14] {
    margin-top: 0.5rem;
    color: var(--history-muted);
    font-size: 0.72rem;
}

.history-card-content[b-rkif0tet14] {
    min-width: 0;
    padding: 1rem 1.15rem 1.05rem;
}

.history-card-heading[b-rkif0tet14] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-content: space-between;
}

.history-card-heading h3[b-rkif0tet14] {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    line-height: 1.45;
}

.history-open[b-rkif0tet14] {
    flex: 0 0 auto;
    color: #9d7b35;
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.history-card:hover .history-open[b-rkif0tet14] {
    transform: translateX(0.2rem);
}

.history-card-actions[b-rkif0tet14] {
    display: flex;
    align-items: center;
    padding: 0.7rem;
    border-left: 1px solid rgba(74, 53, 88, 0.11);
    background: rgba(255, 253, 248, 0.6);
}

.history-delete-button[b-rkif0tet14] {
    min-height: 2.4rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(143, 29, 50, 0.3);
    border-radius: 999px;
    background: transparent;
    color: #8f1d32;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.history-delete-button:hover[b-rkif0tet14] {
    border-color: #8f1d32;
    background: #8f1d32;
    color: #fff;
}

.history-meta[b-rkif0tet14] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    margin-top: 0.6rem;
    color: var(--history-muted);
    font-size: 0.77rem;
}

.history-meta > span:not(.deck-chip)[b-rkif0tet14]::before {
    content: "·";
    margin-right: 0.35rem;
    color: #c5a460;
}

.history-meta .deck-chip[b-rkif0tet14] {
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(157, 123, 53, 0.28);
    border-radius: 999px;
    background: rgba(197, 164, 96, 0.08);
    color: #765a21;
}

.history-questions[b-rkif0tet14] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0.75rem 0 0;
    padding: 0;
    color: #625668;
    font-size: 0.83rem;
    list-style: none;
}

.history-questions li[b-rkif0tet14]::before {
    content: "◇";
    margin-right: 0.35rem;
    color: #b18d43;
}

.history-memo[b-rkif0tet14] {
    display: -webkit-box;
    margin: 0.75rem 0 0;
    overflow: hidden;
    color: #625668;
    font-size: 0.83rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.history-state[b-rkif0tet14] {
    display: flex;
    min-height: 18rem;
    padding: 2rem;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--history-line);
    border-radius: 0.75rem;
    background: rgba(255, 250, 241, 0.72);
    text-align: center;
}

.history-state h2[b-rkif0tet14] {
    margin: 0.7rem 0 0.35rem;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.3rem;
}

.history-state p[b-rkif0tet14] {
    max-width: 34rem;
    margin: 0 0 1.1rem;
    color: var(--history-muted);
    line-height: 1.7;
}

.no-results-state[b-rkif0tet14] {
    min-height: 14rem;
}

.state-mark[b-rkif0tet14] {
    display: grid;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(197, 164, 96, 0.48);
    border-radius: 50%;
    color: #9d7b35;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    place-items: center;
}

.error-state .state-mark[b-rkif0tet14] {
    border-color: rgba(143, 29, 50, 0.35);
    color: #8f1d32;
}

.history-spinner[b-rkif0tet14] {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    border: 3px solid rgba(74, 53, 88, 0.14);
    border-top-color: #c5a460;
    border-radius: 50%;
    animation: history-spin-b-rkif0tet14 800ms linear infinite;
}

.delete-dialog-backdrop[b-rkif0tet14] {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    padding: 1.25rem;
    background: rgba(25, 17, 32, 0.62);
    backdrop-filter: blur(3px);
    place-items: center;
}

.delete-dialog[b-rkif0tet14] {
    width: min(100%, 30rem);
    padding: 1.5rem;
    border: 1px solid rgba(197, 164, 96, 0.5);
    border-radius: 0.85rem;
    background: #fffaf1;
    color: var(--history-ink, #21182d);
    box-shadow: 0 24px 70px rgba(17, 10, 24, 0.35);
}

.delete-dialog-eyebrow[b-rkif0tet14] {
    margin: 0 0 0.4rem;
    color: #8f1d32;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.delete-dialog h2[b-rkif0tet14] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.35rem;
}

.delete-dialog > p:not(.delete-dialog-eyebrow):not(.delete-dialog-error)[b-rkif0tet14] {
    margin: 0.75rem 0 0;
    color: #716777;
    line-height: 1.7;
}

.delete-dialog > p strong[b-rkif0tet14] {
    color: #21182d;
}

.delete-dialog-error[b-rkif0tet14] {
    margin: 0.9rem 0 0;
    padding: 0.7rem 0.8rem;
    border-radius: 0.55rem;
    background: rgba(143, 29, 50, 0.09);
    color: #8f1d32;
    font-size: 0.84rem;
}

.delete-dialog-actions[b-rkif0tet14] {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.delete-dialog-actions button[b-rkif0tet14] {
    min-height: 2.65rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
}

.delete-cancel-button[b-rkif0tet14] {
    border: 1px solid rgba(74, 53, 88, 0.23);
    background: transparent;
    color: #625668;
}

.delete-confirm-button[b-rkif0tet14] {
    border: 1px solid #8f1d32;
    background: #8f1d32;
    color: #fff;
}

.delete-dialog-actions button:disabled[b-rkif0tet14] {
    cursor: wait;
    opacity: 0.6;
}

@keyframes history-spin-b-rkif0tet14 {
    to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
    .history-header[b-rkif0tet14] {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-toolbar[b-rkif0tet14] {
        align-items: stretch;
        flex-direction: column;
        gap: 0.55rem;
    }

    .history-result-count[b-rkif0tet14] {
        align-self: flex-end;
    }

    .history-card[b-rkif0tet14] {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .history-card-link[b-rkif0tet14] {
        grid-template-columns: 4.2rem minmax(0, 1fr);
    }

    .history-date strong[b-rkif0tet14] {
        font-size: 1.55rem;
    }

    .history-card-content[b-rkif0tet14] {
        padding: 0.9rem;
    }

    .history-meta[b-rkif0tet14] {
        gap: 0.35rem 0.6rem;
    }

    .history-card-actions[b-rkif0tet14] {
        padding: 0.45rem;
    }

    .history-delete-button[b-rkif0tet14] {
        padding-inline: 0.55rem;
    }
}
/* app/Pages/Setup.razor.rz.scp.css */
.settings-page[b-is5v4ai6bl] {
    width: min(100%, 860px);
    margin: 0 auto;
    color: #21182d;
}

.settings-header[b-is5v4ai6bl] {
    position: relative;
    margin-bottom: 1.35rem;
    padding: clamp(1.35rem, 3.5vw, 2rem);
    border: 1px solid rgba(197, 164, 96, 0.28);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 95% 0%, rgba(197, 164, 96, 0.17), transparent 16rem),
        rgba(255, 250, 241, 0.78);
    box-shadow: 0 12px 35px rgba(33, 24, 45, 0.06);
}

.settings-kicker[b-is5v4ai6bl],
.settings-card legend span[b-is5v4ai6bl] {
    display: block;
    margin: 0 0 0.3rem;
    color: #96702a;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.settings-header h1[b-is5v4ai6bl] {
    margin: 0;
}

.settings-header > p:not(.settings-kicker)[b-is5v4ai6bl] {
    max-width: 38rem;
    margin: 0.55rem 0 0;
    color: #756b79;
    line-height: 1.75;
}

.current-storage-badge[b-is5v4ai6bl] {
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.38rem 0.7rem;
    border: 1px solid rgba(86, 118, 69, 0.22);
    border-radius: 999px;
    align-items: center;
    gap: 0.45rem;
    background: rgba(235, 243, 226, 0.75);
    color: #4e673e;
    font-size: 0.75rem;
    font-weight: 700;
}

.current-storage-badge span[b-is5v4ai6bl] {
    color: #7d9a68;
    font-size: 0.5rem;
}

.connected-account[b-is5v4ai6bl] {
    display: flex;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(74, 53, 88, 0.14);
    border-radius: 0.75rem;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 252, 246, 0.72);
}

.connected-account-icon[b-is5v4ai6bl] {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e9f1df;
    color: #50713f;
    place-items: center;
}

.connected-account > div[b-is5v4ai6bl] {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.connected-account strong[b-is5v4ai6bl] {
    font-size: 0.78rem;
}

.connected-account div span[b-is5v4ai6bl] {
    color: #756b79;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.settings-form[b-is5v4ai6bl] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-card[b-is5v4ai6bl],
.cloud-detail-card[b-is5v4ai6bl] {
    margin: 0;
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 1px solid rgba(74, 53, 88, 0.16);
    border-radius: 0.9rem;
    background: rgba(255, 252, 246, 0.88);
    box-shadow: 0 8px 26px rgba(33, 24, 45, 0.045);
}

.settings-card legend[b-is5v4ai6bl] {
    float: none;
    width: auto;
    margin: 0;
    color: #21182d;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.settings-card-intro[b-is5v4ai6bl] {
    margin: 0.4rem 0 1rem;
    color: #756b79;
    font-size: 0.8rem;
}

.storage-settings-card[b-is5v4ai6bl] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.storage-settings-card legend[b-is5v4ai6bl],
.settings-card-intro[b-is5v4ai6bl] {
    grid-column: 1 / -1;
}

.storage-option[b-is5v4ai6bl] {
    position: relative;
    min-height: 8rem;
    margin: 0;
    padding: 0;
}

.storage-option .form-check-input[b-is5v4ai6bl] {
    position: absolute;
    z-index: 2;
    top: 0.8rem;
    right: 0.8rem;
    margin: 0;
}

.storage-option .form-check-label[b-is5v4ai6bl] {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 8rem;
    padding: 1rem;
    border: 1px solid rgba(74, 53, 88, 0.16);
    border-radius: 0.75rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    background: #fffdf8;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.storage-option .form-check-input:checked + .form-check-label[b-is5v4ai6bl] {
    border-color: #b58c3f;
    background: #fff8e6;
    box-shadow: inset 0 0 0 1px rgba(181, 140, 63, 0.16), 0 7px 20px rgba(83, 55, 24, 0.08);
}

.storage-option-icon[b-is5v4ai6bl] {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(157, 123, 53, 0.3);
    border-radius: 0.65rem;
    background: rgba(197, 164, 96, 0.08);
    color: #886724;
    font-family: Georgia, serif;
    place-items: center;
}

.storage-option label > span:last-child[b-is5v4ai6bl] {
    display: flex;
    flex-direction: column;
}

.storage-option strong[b-is5v4ai6bl] {
    color: #2d2136;
    font-size: 0.9rem;
}

.storage-option small[b-is5v4ai6bl] {
    margin-top: 0.18rem;
    color: #807583;
    font-size: 0.7rem;
    line-height: 1.5;
}

.cloud-detail-card p[b-is5v4ai6bl] {
    margin-top: 0;
    line-height: 1.7;
}

.settings-status[b-is5v4ai6bl] {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(74, 53, 88, 0.15);
    border-radius: 0.65rem;
    background: rgba(255, 252, 246, 0.75);
    font-size: 0.82rem;
}

.settings-actions[b-is5v4ai6bl] {
    position: sticky;
    z-index: 5;
    bottom: 0;
    display: flex;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(74, 53, 88, 0.16);
    border-radius: 0.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 252, 246, 0.92);
    box-shadow: 0 10px 34px rgba(33, 24, 45, 0.1);
    backdrop-filter: blur(14px);
}

.settings-actions span[b-is5v4ai6bl] {
    color: #756b79;
    font-size: 0.76rem;
}

.settings-save-button[b-is5v4ai6bl] {
    min-width: 10rem;
}

.prompt-settings-card[b-is5v4ai6bl] {
    display: flex;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(74, 53, 88, 0.16);
    border-radius: 0.85rem;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255, 252, 246, 0.9);
    color: #2d2136;
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(36, 25, 45, 0.045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.prompt-settings-card:hover[b-is5v4ai6bl] {
    border-color: rgba(110, 45, 79, 0.4);
    color: #2d2136;
    box-shadow: 0 12px 28px rgba(36, 25, 45, 0.08);
    transform: translateY(-1px);
}

.prompt-settings-icon[b-is5v4ai6bl] {
    display: grid;
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(157, 123, 53, 0.3);
    border-radius: 50%;
    background: rgba(197, 164, 96, 0.1);
    color: #8a6827;
    place-items: center;
}

.prompt-settings-copy[b-is5v4ai6bl] {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.prompt-settings-copy small[b-is5v4ai6bl] {
    color: #96702a;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.prompt-settings-copy strong[b-is5v4ai6bl] {
    margin-top: 0.12rem;
}

.prompt-settings-copy > span[b-is5v4ai6bl] {
    margin-top: 0.18rem;
    color: #756b79;
    font-size: 0.76rem;
}

.prompt-settings-arrow[b-is5v4ai6bl] {
    color: #96702a;
    font-size: 1.35rem;
}

.settings-legal-links[b-is5v4ai6bl] {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(74, 53, 88, 0.14);
    color: #756b79;
    font-size: 0.72rem;
    text-align: center;
}

.settings-legal-links p[b-is5v4ai6bl] {
    margin: 0;
}

.settings-legal-links div[b-is5v4ai6bl] {
    display: flex;
    margin-top: 0.55rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
}

.settings-legal-links a[b-is5v4ai6bl] {
    color: #69304d;
    text-underline-offset: 0.2em;
}

@media (max-width: 700px) {
    .storage-settings-card[b-is5v4ai6bl] {
        grid-template-columns: 1fr;
    }

    .storage-option[b-is5v4ai6bl],
    .storage-option .form-check-label[b-is5v4ai6bl] {
        min-height: auto;
    }

    .storage-option .form-check-label[b-is5v4ai6bl] {
        padding-right: 3rem;
        align-items: center;
        flex-direction: row;
    }

    .settings-actions[b-is5v4ai6bl] {
        bottom: calc(4.6rem + env(safe-area-inset-bottom));
        align-items: stretch;
        flex-direction: column;
        gap: 0.55rem;
    }

    .settings-save-button[b-is5v4ai6bl] {
        width: 100%;
    }

    .cloud-detail-card .btn[b-is5v4ai6bl] {
        width: 100%;
        margin: 0 0 0.55rem !important;
    }

}

@media (max-width: 420px) {
    .settings-header[b-is5v4ai6bl] {
        padding: 1.15rem;
    }
}
/* app/Pages/SpreadEditor.razor.rz.scp.css */
.spread-editor-page[b-gf4e9kcp65] {
    --spread-ink: #352a3d;
    --spread-muted: #756b7b;
    --spread-gold: #a97d35;
    --spread-gold-dark: #76531d;
    --spread-line: rgba(87, 63, 100, 0.17);
    width: min(1180px, 100%);
    margin: 0 auto;
    color: var(--spread-ink);
}

.spread-editor-header[b-gf4e9kcp65] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.spread-editor-kicker[b-gf4e9kcp65],
.spread-editor-mode[b-gf4e9kcp65],
.spread-position-heading > div > span[b-gf4e9kcp65] {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--spread-gold-dark);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.spread-editor-header h1[b-gf4e9kcp65] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.spread-editor-header p:not(.spread-editor-kicker)[b-gf4e9kcp65] {
    margin: 0.45rem 0 0;
    color: var(--spread-muted);
}

.spread-primary-button[b-gf4e9kcp65] {
    min-height: 2.7rem;
    padding: 0.6rem 1rem;
    border: 1px solid #9c702b;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #b58a40, #98702f);
    color: #fffdf8;
    font-weight: 800;
    box-shadow: 0 0.35rem 1rem rgba(104, 75, 31, 0.16);
}

.spread-primary-button:hover:not(:disabled)[b-gf4e9kcp65] {
    color: #fff;
    filter: brightness(0.97);
}

.spread-secondary-button[b-gf4e9kcp65] {
    border: 1px solid rgba(100, 77, 111, 0.3);
    background: #fffdf8;
    color: var(--spread-ink);
    font-weight: 750;
}

.spread-editor-status[b-gf4e9kcp65] {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(67, 126, 80, 0.24);
    border-radius: 0.5rem;
    background: rgba(230, 244, 231, 0.72);
    color: #35633e;
    font-size: 0.84rem;
}

.spread-editor-status.error[b-gf4e9kcp65] {
    border-color: rgba(167, 49, 70, 0.25);
    background: rgba(250, 232, 235, 0.75);
    color: #9e3044;
}

.spread-editor-loading[b-gf4e9kcp65] {
    padding: 3rem 1rem;
    color: var(--spread-muted);
    text-align: center;
}

.spread-editor-layout[b-gf4e9kcp65] {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.spread-library[b-gf4e9kcp65],
.spread-editor-card[b-gf4e9kcp65] {
    border: 1px solid var(--spread-line);
    border-radius: 0.75rem;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 0.8rem 2.2rem rgba(45, 32, 54, 0.07);
}

.spread-library[b-gf4e9kcp65] {
    position: sticky;
    top: 1rem;
    overflow: hidden;
}

.spread-library-heading[b-gf4e9kcp65] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--spread-line);
}

.spread-library-heading span[b-gf4e9kcp65] {
    color: var(--spread-muted);
    font-size: 0.75rem;
}

.spread-library-list[b-gf4e9kcp65] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: min(55vh, 520px);
    padding: 0.65rem;
    overflow-y: auto;
}

.spread-library-item[b-gf4e9kcp65] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--spread-ink);
    text-align: left;
}

.spread-library-item:hover[b-gf4e9kcp65],
.spread-library-item.active[b-gf4e9kcp65] {
    border-color: rgba(169, 125, 53, 0.3);
    background: rgba(244, 230, 189, 0.42);
}

.spread-library-item.candidate-hidden:not(.active)[b-gf4e9kcp65] {
    opacity: 0.58;
}

.spread-library-item strong[b-gf4e9kcp65] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spread-library-item span[b-gf4e9kcp65],
.spread-library-empty[b-gf4e9kcp65],
.spread-free-note span[b-gf4e9kcp65] {
    color: var(--spread-muted);
    font-size: 0.72rem;
}

.spread-library-empty[b-gf4e9kcp65] {
    margin: 0;
    padding: 1.2rem 1rem;
}

.spread-free-note[b-gf4e9kcp65] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--spread-line);
    background: rgba(244, 240, 231, 0.58);
}

.spread-free-note strong[b-gf4e9kcp65] {
    font-size: 0.78rem;
}

.spread-editor-card[b-gf4e9kcp65] {
    overflow: hidden;
}

.spread-editor-card-header[b-gf4e9kcp65] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    border-bottom: 1px solid var(--spread-line);
}

.spread-editor-card-header h2[b-gf4e9kcp65] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.4rem;
}

.spread-candidate-setting[b-gf4e9kcp65] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.3rem;
    border-bottom: 1px solid var(--spread-line);
    background: rgba(244, 240, 231, 0.45);
}

.spread-candidate-setting > div[b-gf4e9kcp65] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spread-candidate-setting strong[b-gf4e9kcp65] {
    font-size: 0.84rem;
}

.spread-candidate-setting > div > span[b-gf4e9kcp65] {
    color: var(--spread-muted);
    font-size: 0.74rem;
}

.spread-candidate-toggle[b-gf4e9kcp65] {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    color: var(--spread-gold-dark);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.spread-candidate-toggle input[b-gf4e9kcp65] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #98702f;
}

.spread-candidate-toggle:has(input:disabled)[b-gf4e9kcp65] {
    cursor: wait;
    opacity: 0.65;
}

.spread-delete-button[b-gf4e9kcp65] {
    border: 1px solid rgba(164, 56, 74, 0.32);
    background: transparent;
    color: #a13b4d;
    font-size: 0.78rem;
    font-weight: 750;
}

.spread-editor-basics[b-gf4e9kcp65] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.34fr);
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    border-bottom: 1px solid var(--spread-line);
}

.spread-name-field[b-gf4e9kcp65],
.spread-description-field[b-gf4e9kcp65],
.spread-checkbox-field[b-gf4e9kcp65] {
    grid-column: 1 / -1;
}

.spread-field[b-gf4e9kcp65] {
    min-width: 0;
}

.spread-field label[b-gf4e9kcp65],
.spread-checkbox-field[b-gf4e9kcp65],
.spread-position-reversed[b-gf4e9kcp65] {
    color: #5f5366;
    font-size: 0.75rem;
    font-weight: 750;
}

.spread-field label[b-gf4e9kcp65] {
    display: block;
    margin-bottom: 0.3rem;
}

.spread-checkbox-field[b-gf4e9kcp65],
.spread-position-reversed[b-gf4e9kcp65] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.spread-position-editor[b-gf4e9kcp65] {
    padding: 1.2rem 1.3rem 1.35rem;
}

.spread-position-heading[b-gf4e9kcp65] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.spread-position-heading h3[b-gf4e9kcp65] {
    margin: 0;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.2rem;
}

.spread-position-count[b-gf4e9kcp65] {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f1ead8;
    color: var(--spread-gold-dark);
    font-size: 0.72rem;
    font-weight: 800;
}

.spread-position-list[b-gf4e9kcp65] {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.spread-position-row[b-gf4e9kcp65] {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr) 2.1rem;
    align-items: start;
    gap: 0.7rem;
    padding: 0.85rem;
    border: 1px solid rgba(87, 63, 100, 0.14);
    border-radius: 0.6rem;
    background: rgba(250, 247, 240, 0.7);
}

.spread-position-order[b-gf4e9kcp65] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ede3c8;
    color: #70521e;
    font-family: Georgia, serif;
    font-weight: 800;
}

.spread-position-fields[b-gf4e9kcp65] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0.7rem;
}

.spread-position-reversed[b-gf4e9kcp65] {
    grid-column: 1 / -1;
}

.spread-position-delete[b-gf4e9kcp65] {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(164, 56, 74, 0.25);
    border-radius: 50%;
    background: transparent;
    color: #9e384a;
    font-size: 1.1rem;
    line-height: 1;
}

.spread-position-delete:hover[b-gf4e9kcp65] {
    background: #f9e7ea;
}

.spread-position-empty[b-gf4e9kcp65] {
    padding: 1.1rem;
    border: 1px dashed rgba(87, 63, 100, 0.23);
    border-radius: 0.55rem;
    color: var(--spread-muted);
    font-size: 0.8rem;
    text-align: center;
}

.spread-add-position[b-gf4e9kcp65] {
    margin-top: 0.75rem;
    border: 1px solid rgba(169, 125, 53, 0.34);
    background: rgba(248, 239, 211, 0.52);
    color: var(--spread-gold-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.spread-editor-actions[b-gf4e9kcp65] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.9rem 1.3rem;
    border-top: 1px solid var(--spread-line);
    background: rgba(248, 245, 237, 0.72);
}

.spread-editor-actions span[b-gf4e9kcp65] {
    margin-right: auto;
    color: var(--spread-muted);
    font-size: 0.76rem;
}

.spread-dialog-backdrop[b-gf4e9kcp65] {
    position: fixed;
    z-index: 2200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(18, 15, 28, 0.64);
    backdrop-filter: blur(4px);
}

.spread-dialog[b-gf4e9kcp65] {
    width: min(530px, 100%);
    padding: 1.35rem;
    border: 1px solid rgba(169, 125, 53, 0.42);
    border-radius: 0.75rem;
    background: #fffdf8;
    box-shadow: 0 1.2rem 3rem rgba(18, 15, 28, 0.3);
}

.spread-dialog h2[b-gf4e9kcp65] {
    margin: 0 0 0.55rem;
    font-family: Georgia, "Yu Mincho", "YuMincho", serif;
    font-size: 1.3rem;
}

.spread-dialog p[b-gf4e9kcp65] {
    color: var(--spread-muted);
    line-height: 1.65;
}

.spread-dialog-error[b-gf4e9kcp65] {
    color: #a02f43 !important;
    font-size: 0.82rem;
    font-weight: 750;
}

.spread-dialog-actions[b-gf4e9kcp65] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1rem;
}

@media (max-width: 820px) {
    .spread-editor-layout[b-gf4e9kcp65] {
        grid-template-columns: 1fr;
    }

    .spread-library[b-gf4e9kcp65] {
        position: static;
    }

    .spread-library-list[b-gf4e9kcp65] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
    }
}

@media (max-width: 620px) {
    .spread-editor-header[b-gf4e9kcp65],
    .spread-editor-card-header[b-gf4e9kcp65],
    .spread-candidate-setting[b-gf4e9kcp65],
    .spread-editor-actions[b-gf4e9kcp65] {
        align-items: stretch;
        flex-direction: column;
    }

    .spread-editor-header .spread-primary-button[b-gf4e9kcp65],
    .spread-editor-actions .spread-primary-button[b-gf4e9kcp65] {
        width: 100%;
    }

    .spread-library-list[b-gf4e9kcp65],
    .spread-editor-basics[b-gf4e9kcp65],
    .spread-position-fields[b-gf4e9kcp65] {
        grid-template-columns: 1fr;
    }

    .spread-name-field[b-gf4e9kcp65],
    .spread-description-field[b-gf4e9kcp65],
    .spread-checkbox-field[b-gf4e9kcp65],
    .spread-position-reversed[b-gf4e9kcp65] {
        grid-column: 1;
    }

    .spread-position-row[b-gf4e9kcp65] {
        grid-template-columns: 2.1rem minmax(0, 1fr) 2.1rem;
    }

    .spread-editor-actions span[b-gf4e9kcp65] {
        margin-right: 0;
    }
}
/* app/Pages/Title.razor.rz.scp.css */
.title-screen[b-9no0a0n4dx] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 420px) minmax(0, 1fr);
    min-height: calc(100vh - 5rem);
    min-height: calc(100dvh - 5rem);
    padding: clamp(1rem, 3vw, 3rem) 0;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    overflow: hidden;
}

.title-screen[b-9no0a0n4dx]::before,
.title-screen[b-9no0a0n4dx]::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.title-screen[b-9no0a0n4dx]::before {
    top: 6%;
    right: 2%;
    width: min(38rem, 54vw);
    aspect-ratio: 1;
    border: 1px solid rgba(197, 164, 96, 0.22);
}

.title-screen[b-9no0a0n4dx]::after {
    right: 14%;
    bottom: 4%;
    width: 22rem;
    aspect-ratio: 1;
    background: rgba(197, 164, 96, 0.1);
    filter: blur(90px);
}

.title-copy[b-9no0a0n4dx] {
    position: relative;
    z-index: 2;
    grid-column: 1;
    max-width: 680px;
    transition: opacity 480ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.title-kicker[b-9no0a0n4dx] {
    margin: 0 0 0.9rem;
    color: #8a6a29;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
}

.title-copy h1[b-9no0a0n4dx] {
    max-width: 12em;
    margin: 0 0 1.2rem;
    color: #21182d;
    font-size: clamp(2rem, 2.4vw, 3.15rem);
    line-height: 1.13;
    letter-spacing: 0.035em;
    text-align: center;
}

.title-copy h1 span[b-9no0a0n4dx] {
    display: block;
    white-space: nowrap;
}

.title-lead[b-9no0a0n4dx] {
    max-width: 39rem;
    margin: 0;
    color: #5f5465;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 2;
    text-align: center;
}

.title-ritual[b-9no0a0n4dx] {
    display: flex;
    margin: 1.65rem 0 0;
    align-items: center;
    gap: 0.85rem;
    color: #92743d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.title-ritual span[b-9no0a0n4dx] {
    width: 2.6rem;
    height: 1px;
    background: linear-gradient(90deg, #a98643, rgba(169, 134, 67, 0.15));
}

.title-portal[b-9no0a0n4dx] {
    position: relative;
    z-index: 1;
    display: flex;
    grid-column: 2;
    width: 100%;
    min-width: 0;
    align-items: center;
    flex-direction: column;
}

.title-door[b-9no0a0n4dx] {
    position: relative;
    display: block;
    width: min(100%, 26.25rem);
    padding: 0;
    border: 0;
    border-radius: 48% 48% 1rem 1rem;
    background: transparent;
    color: inherit;
    filter: drop-shadow(0 1.5rem 1.6rem rgba(37, 21, 39, 0.2));
    isolation: isolate;
}

.title-door:not(:disabled):hover .title-door-scene[b-9no0a0n4dx] {
    transform: translateY(-0.25rem) scale(1.008);
}

.title-door:not(:disabled):hover .title-door-light[b-9no0a0n4dx] {
    filter: brightness(1.08) saturate(1.06);
}

.title-door:focus-visible[b-9no0a0n4dx] {
    outline: 2px solid #c5a460;
    outline-offset: 0.45rem;
    box-shadow: 0 0 0 0.45rem rgba(197, 164, 96, 0.2);
}

.title-door:disabled[b-9no0a0n4dx] {
    cursor: wait;
    opacity: 1;
}

.title-door-scene[b-9no0a0n4dx] {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    perspective: 1100px;
    transform-style: preserve-3d;
    opacity: 1;
    transition: transform 260ms ease, filter 500ms ease, opacity 600ms ease;
    will-change: transform, filter, opacity;
}

.title-door-scene img[b-9no0a0n4dx],
.title-door-radiance[b-9no0a0n4dx] {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

.title-door-scene img[b-9no0a0n4dx] {
    object-fit: contain;
}

.title-door-light[b-9no0a0n4dx] {
    z-index: 0;
    transition: filter 900ms ease, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.title-door-radiance[b-9no0a0n4dx] {
    z-index: 1;
    background: radial-gradient(ellipse at 50% 49%, rgba(255, 251, 207, 0.9) 0%, rgba(255, 218, 119, 0.34) 18%, transparent 45%);
    opacity: 0.24;
    mix-blend-mode: screen;
    animation: doorway-breathe-b-9no0a0n4dx 3.2s ease-in-out infinite;
    transition: opacity 900ms ease, transform 1100ms ease;
}

.title-door-panel[b-9no0a0n4dx] {
    z-index: 2;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 1050ms cubic-bezier(0.65, 0, 0.2, 1), filter 900ms ease;
    will-change: transform;
}

.title-door-panel-left[b-9no0a0n4dx] {
    transform-origin: 18.5% 56%;
}

.title-door-panel-right[b-9no0a0n4dx] {
    transform-origin: 81.5% 56%;
}

.title-door-frame[b-9no0a0n4dx] {
    z-index: 3;
}

.title-door.is-opening .title-door-panel-left[b-9no0a0n4dx] {
    transform: rotateY(-82deg);
    filter: brightness(0.72);
}

.title-door.is-opening .title-door-panel-right[b-9no0a0n4dx] {
    transform: rotateY(82deg);
    filter: brightness(0.72);
}

.title-door.is-opening .title-door-light[b-9no0a0n4dx] {
    filter: brightness(1.25) saturate(1.08);
    transform: scale(1.035);
}

.title-door.is-opening .title-door-radiance[b-9no0a0n4dx] {
    opacity: 0.82;
    transform: scale(1.18);
}

.title-door-guidance[b-9no0a0n4dx] {
    display: grid;
    min-height: 2.5rem;
    margin-top: clamp(0.55rem, 1.5vw, 0.95rem);
    place-items: center;
    text-align: center;
    transition: opacity 350ms ease, transform 500ms ease;
}

.title-door-prompt[b-9no0a0n4dx] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #74582c;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    animation: prompt-breathe-b-9no0a0n4dx 2.7s ease-in-out infinite;
}

.title-door-prompt span[b-9no0a0n4dx] {
    color: #b48b3c;
    font-size: 0.62rem;
}

.title-door-progress[b-9no0a0n4dx] {
    color: #74582c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.title-status[b-9no0a0n4dx] {
    display: inline-flex;
    max-width: min(100%, 30rem);
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(197, 164, 96, 0.35);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.86);
    color: #5d4520;
    font-size: 0.82rem;
    box-shadow: 0 8px 24px rgba(83, 55, 24, 0.08);
}

.title-transition-veil[b-9no0a0n4dx] {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    background:
        radial-gradient(circle at 50% 48%, #fff 0%, #fff9db 30%, #f7e7b7 100%);
    opacity: 0;
    place-items: center;
    pointer-events: none;
    transition: opacity 760ms ease-in 120ms;
}

.title-transition-veil span[b-9no0a0n4dx] {
    color: #c39a44;
    font-size: 1.2rem;
    opacity: 0;
    text-shadow: 0 0 2rem rgba(195, 154, 68, 0.9);
    transform: scale(0.5);
    transition: opacity 520ms ease 430ms, transform 720ms ease-out 300ms;
}

.title-screen.is-entering[b-9no0a0n4dx] {
    overflow: hidden;
}

.title-screen.is-entering .title-copy[b-9no0a0n4dx] {
    opacity: 0;
    transform: translateX(-1rem) scale(0.97);
}

.title-screen.is-entering .title-portal[b-9no0a0n4dx] {
    z-index: 5;
}

.title-screen.is-entering .title-door-scene[b-9no0a0n4dx] {
    filter: blur(1.5px) brightness(1.4);
    opacity: 0.28;
    transform: scale(2.15);
    transition:
        transform 900ms cubic-bezier(0.4, 0, 0.2, 1),
        filter 800ms ease-in,
        opacity 760ms ease-in 100ms;
}

.title-screen.is-entering .title-door-guidance[b-9no0a0n4dx] {
    opacity: 0;
    transform: translateY(0.5rem);
}

.title-screen.is-entering .title-transition-veil[b-9no0a0n4dx] {
    opacity: 1;
}

.title-screen.is-entering .title-transition-veil span[b-9no0a0n4dx] {
    opacity: 0.85;
    transform: scale(2.4);
}

@keyframes doorway-breathe-b-9no0a0n4dx {
    0%, 100% {
        opacity: 0.18;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.36;
        transform: scale(1.025);
    }
}

@keyframes prompt-breathe-b-9no0a0n4dx {
    0%, 100% {
        opacity: 0.68;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-0.12rem);
    }
}

@media (max-width: 980px) {
    .title-screen[b-9no0a0n4dx] {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 380px) minmax(0, 1fr);
        gap: clamp(0.65rem, 1.5vw, 1.25rem);
    }

    .title-copy h1[b-9no0a0n4dx] {
        font-size: clamp(1.85rem, 3.3vw, 2.4rem);
    }
}

@media (max-width: 760px) {
    .title-screen[b-9no0a0n4dx] {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.5rem 0 2rem;
        gap: 1.5rem;
        overflow: visible;
    }

    .title-copy[b-9no0a0n4dx] {
        grid-column: 1;
        max-width: 36rem;
        margin-inline: auto;
        text-align: center;
    }

    .title-copy h1[b-9no0a0n4dx] {
        max-width: 12em;
        margin-inline: auto;
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .title-lead[b-9no0a0n4dx] {
        line-height: 1.85;
    }

    .title-ritual[b-9no0a0n4dx] {
        justify-content: center;
    }

    .title-door[b-9no0a0n4dx] {
        width: min(100%, 27rem);
    }

    .title-portal[b-9no0a0n4dx] {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .title-screen[b-9no0a0n4dx] {
        padding-top: 0.85rem;
        gap: 0.75rem;
    }

    .title-copy h1[b-9no0a0n4dx] {
        margin-bottom: 0.75rem;
        font-size: clamp(1.85rem, 9.5vw, 2.55rem);
    }

    .title-lead[b-9no0a0n4dx] {
        font-size: 0.88rem;
        line-height: 1.75;
    }

    .title-ritual[b-9no0a0n4dx] {
        display: none;
    }

    .title-door[b-9no0a0n4dx] {
        width: min(82vw, 21.5rem);
    }

    .title-door-guidance[b-9no0a0n4dx] {
        order: -1;
        min-height: 2rem;
        margin: 0 0 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .title-door-radiance[b-9no0a0n4dx],
    .title-door-prompt[b-9no0a0n4dx] {
        animation: none;
    }

    .title-door-panel[b-9no0a0n4dx],
    .title-door-light[b-9no0a0n4dx],
    .title-door-radiance[b-9no0a0n4dx],
    .title-door-scene[b-9no0a0n4dx] {
        transition-duration: 1ms;
    }

    .title-copy[b-9no0a0n4dx],
    .title-door-guidance[b-9no0a0n4dx],
    .title-transition-veil[b-9no0a0n4dx],
    .title-transition-veil span[b-9no0a0n4dx] {
        transition-duration: 1ms;
    }
}
