/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-ww8222h1xf] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-ww8222h1xf] {
    flex: 1;
}

.sidebar[b-ww8222h1xf] {
    background-color: var(--sv-color-nav);
}

@media (min-width: 641px) {
    .page[b-ww8222h1xf] {
        flex-direction: row;
    }

    .sidebar[b-ww8222h1xf] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    article[b-ww8222h1xf] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-ww8222h1xf] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-ww8222h1xf] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-5wzhm4quyk] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-5wzhm4quyk] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-5wzhm4quyk] {
    min-height: 3.5rem;
    border-bottom: 1px solid rgba(237, 235, 228, 0.18);
}

/* Text wordmark in the display face until we have the logo artwork (docs/DESIGN.md). */
.navbar-brand[b-5wzhm4quyk] {
    font-family: var(--sv-font-display);
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--sv-color-on-primary) !important;
}

.bi[b-5wzhm4quyk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    line-height: 1;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-5wzhm4quyk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-5wzhm4quyk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-5wzhm4quyk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-5wzhm4quyk] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-5wzhm4quyk] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-5wzhm4quyk] {
        padding-bottom: 1rem;
    }

    .nav-item[b-5wzhm4quyk]  .nav-link {
        color: var(--sv-color-nav-text);
        background: none;
        border: none;
        border-radius: var(--sv-radius-sm);
        min-height: 3rem;
        display: flex;
        align-items: center;
        line-height: 1.2;
        width: 100%;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

.admin-chevron[b-5wzhm4quyk] {
    transition: transform 0.2s ease;
}

.admin-toggle[aria-expanded="true"] .admin-chevron[b-5wzhm4quyk] {
    transform: rotate(180deg);
}

.nav-item[b-5wzhm4quyk]  a.active {
    background-color: var(--sv-color-nav-active);
    color: var(--sv-color-on-primary);
}

.nav-item[b-5wzhm4quyk]  .nav-link:hover {
    background-color: rgba(237, 235, 228, 0.1);
    color: var(--sv-color-on-primary);
}

.nav-scrollable[b-5wzhm4quyk] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-5wzhm4quyk] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-5wzhm4quyk] {
        display: none;
    }

    .nav-scrollable[b-5wzhm4quyk] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

.nav-user[b-5wzhm4quyk] {
    color: var(--sv-color-nav-text);
}
/* /Components/Pages/CharacterSwapLab.razor.rz.scp.css */
.lab-pages[b-9v4o63v8je] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
}

.lab-page[b-9v4o63v8je] {
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--sv-radius-sm);
    overflow: hidden;
    background: var(--sv-color-surface-sunken);
    aspect-ratio: 7 / 6;
}

.lab-page img[b-9v4o63v8je] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lab-page span[b-9v4o63v8je] {
    position: absolute;
    left: 4px;
    bottom: 2px;
    font-size: 0.7rem;
    color: var(--sv-color-on-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.lab-page.selected[b-9v4o63v8je] {
    border-color: var(--sv-color-primary);
    box-shadow: 0 0 0 2px var(--sv-color-focus-ring);
}

.lab-compare[b-9v4o63v8je] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.lab-compare figure[b-9v4o63v8je] {
    margin: 0;
}

.lab-compare img[b-9v4o63v8je] {
    width: 100%;
    border-radius: var(--sv-radius-sm);
    display: block;
}

.lab-compare figcaption[b-9v4o63v8je] {
    font-size: 0.75rem;
    color: var(--sv-color-text-muted);
    margin-top: 0.25rem;
}

.lab-prompt[b-9v4o63v8je] {
    white-space: pre-wrap;
    font-size: 0.75rem;
    background: var(--sv-color-surface-sunken);
    padding: 0.5rem;
    border-radius: var(--sv-radius-sm);
    margin: 0.25rem 0 0;
}

.lab-cast-row[b-9v4o63v8je] {
    display: grid;
    grid-template-columns: 7rem 1fr 12rem;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.lab-cast-row .lab-outfit[b-9v4o63v8je] {
    grid-column: 2 / 4;
}

.lab-sheet img[b-9v4o63v8je] {
    height: 48px;
    border-radius: var(--sv-radius-sm);
    border: 1px solid var(--sv-color-border);
}

.lab-empty-thumb[b-9v4o63v8je] {
    height: 3.5rem;
    border-radius: var(--sv-radius-sm);
    border: 1px solid var(--bs-border-color);
}
/* /Components/Pages/Orders.razor.rz.scp.css */
.order-status[b-0vr9fwjifw] {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--sv-color-primary-soft);
    color: var(--sv-color-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.order-status.is-stopped[b-0vr9fwjifw] {
    background: var(--sv-color-warning-soft);
    color: var(--sv-color-warning-text);
}

.order-steps[b-0vr9fwjifw] {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    gap: 0.5rem;
}

.order-steps li[b-0vr9fwjifw] {
    flex: 1;
    padding-top: 0.5rem;
    border-top: 4px solid var(--sv-color-border);
    color: var(--sv-color-text-muted);
    font-size: 0.875rem;
}

.order-steps li.is-done[b-0vr9fwjifw] {
    border-top-color: var(--sv-color-primary);
    color: var(--sv-color-text);
    font-weight: 600;
}
/* /Components/Pages/StoryEditor.razor.rz.scp.css */
.filter-blur[b-r3zra70khv] {
    filter: blur(10px);
}

.inset-0[b-r3zra70khv] {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* A location's spaces, as small photo buttons under its card */
.space-choice[b-r3zra70khv] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    padding: 4px;
    border: 2px solid var(--sv-color-border);
    border-radius: var(--sr-border-radius);
    background-color: var(--sv-color-surface);
    color: var(--sv-color-text-muted);
    font-size: 0.75rem;
    line-height: 1.2;
}

.space-choice img[b-r3zra70khv] {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: calc(var(--sr-border-radius) / 2);
    margin-bottom: 4px;
}

.space-choice span[b-r3zra70khv] {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.space-choice.is-chosen[b-r3zra70khv] {
    border-color: var(--sv-color-primary);
    background-color: var(--sv-color-primary-soft);
    color: var(--sv-color-primary);
}

/* A preview page as it prints (PdfService): text sizes are cqi, % of the page's width. */
.page-print[b-r3zra70khv] {
    container-type: inline-size;
}

.page-print-text[b-r3zra70khv] {
    position: absolute;
    height: auto;
    white-space: pre-wrap;
    pointer-events: none;
}

/* /Components/Pages/StoryMaker.razor.rz.scp.css */


.studio-side-panel[b-72z82hhhmn] {
    width: 280px;
    min-width: 280px;
}

.publish-checks[b-72z82hhhmn] {
    max-width: 560px;
    list-style: none;
    padding: 0;
}

.publish-checks li[b-72z82hhhmn] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--sv-color-border);
}

.check-problem .bi[b-72z82hhhmn] { color: var(--sv-color-danger); }
.check-warning .bi[b-72z82hhhmn] { color: var(--sv-color-warning); }
.check-note .bi[b-72z82hhhmn] { color: var(--sv-color-text-muted); }

/* /Components/Pages/StoryMakerParts/BookCanvas.razor.rz.scp.css */
/* The book: one square page on a phone, a two-page spread otherwise. Pages are square because
   books print at 8.5 x 8.5 (PdfService); text sizes are cqi, % of the page's width, as in the PDF. */
.book-container[b-0nmsvnsmgy] {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 1rem;
    perspective: 2000px;
}

.book-container.is-spread[b-0nmsvnsmgy] {
    aspect-ratio: 2 / 1;
}

.book-container.is-single[b-0nmsvnsmgy] {
    aspect-ratio: 1 / 1;
    max-width: 640px;
}

.book-page[b-0nmsvnsmgy] {
    position: relative;
    width: 50%;
    height: 100%;
    background-color: var(--sv-color-surface);
    box-shadow: var(--sv-shadow-raised);
    container-type: inline-size;
    transform-origin: center center;
}

/* The page the ribbon edits, when there are two to choose from. */
.is-spread .book-page.is-selected[b-0nmsvnsmgy] {
    outline: 3px solid var(--sv-color-primary);
    outline-offset: -3px;
    z-index: 2;
}

.is-single .book-page[b-0nmsvnsmgy] {
    width: 100%;
}

/* A single right-hand page (the last of an odd count) still sits on the right. */
.is-spread .book-page.page-right:only-child[b-0nmsvnsmgy] {
    margin-left: 50%;
}

.is-spread .page-left[b-0nmsvnsmgy] {
    border-right: 1px solid var(--sv-color-border);
}

.page-content[b-0nmsvnsmgy] {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-background[b-0nmsvnsmgy] {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--sv-sage);
}

.page-empty[b-0nmsvnsmgy] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--sv-color-text-muted);
    background-color: var(--sv-color-primary-soft);
    font-size: 0.9rem;
}

.page-empty .bi[b-0nmsvnsmgy] {
    font-size: 2rem;
    opacity: 0.6;
}

.page-number[b-0nmsvnsmgy] {
    position: absolute;
    bottom: 0.4rem;
    right: 0.6rem;
    font-size: 0.75rem;
    color: var(--sv-color-text-muted);
    background-color: var(--sv-color-surface);
    border-radius: var(--sr-border-radius);
    padding: 0 0.4rem;
    opacity: 0.85;
    pointer-events: none;
}

/* Text box: positioned by its top-left corner, like the PDF. */
.page-text-box[b-0nmsvnsmgy] {
    position: absolute;
    z-index: 10;
    border: 1px dashed transparent;
    border-radius: 4px;
}

.page-text-box:hover[b-0nmsvnsmgy],
.page-text-box:focus-within[b-0nmsvnsmgy] {
    border-color: var(--sv-color-primary);
}

.text-box-bar[b-0nmsvnsmgy] {
    position: absolute;
    bottom: 100%;
    left: -1px;
    display: flex;
    gap: 2px;
    padding-bottom: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}

.page-text-box:hover .text-box-bar[b-0nmsvnsmgy],
.page-text-box:focus-within .text-box-bar[b-0nmsvnsmgy] {
    opacity: 1;
}

.text-box-handle[b-0nmsvnsmgy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: var(--sv-color-primary);
    color: var(--sv-color-surface);
    font-size: 0.8rem;
    cursor: grab;
    touch-action: none;
}

.text-box-resize[b-0nmsvnsmgy] {
    position: absolute;
    top: 0;
    right: -5px;
    width: 10px;
    height: 100%;
    cursor: ew-resize;
    touch-action: none;
}

.page-text-box:hover .text-box-resize[b-0nmsvnsmgy]::after,
.page-text-box:focus-within .text-box-resize[b-0nmsvnsmgy]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 4px;
    height: 24px;
    margin-top: -12px;
    border-radius: 2px;
    background-color: var(--sv-color-primary);
}

.page-text[b-0nmsvnsmgy] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    background: transparent;
    text-align: inherit;
    white-space: pre-wrap;
}

.page-text[b-0nmsvnsmgy]::placeholder {
    color: inherit;
    opacity: 0.5;
}

/* Character overlays */
.character-overlay[b-0nmsvnsmgy] {
    position: absolute;
    z-index: 5;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    cursor: move;
    user-select: none;
}

.character-overlay.selected[b-0nmsvnsmgy] {
    outline: 2px solid var(--sv-color-primary);
    outline-offset: 4px;
    z-index: 20;
}

.character-overlay img[b-0nmsvnsmgy] {
    max-height: 100%;
    object-fit: contain;
}

/* What pages with placeholders read as, with the template's role names. */
.studio-navigation[b-0nmsvnsmgy] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.nav-btn[b-0nmsvnsmgy] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sv-color-border);
    background-color: var(--sv-color-surface);
    color: var(--sv-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--sv-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.nav-btn:hover:not(:disabled)[b-0nmsvnsmgy] {
    transform: scale(1.08);
    box-shadow: var(--sv-shadow-raised);
}

.nav-btn:disabled[b-0nmsvnsmgy] {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator[b-0nmsvnsmgy] {
    font-weight: 600;
    color: var(--sv-color-text-muted);
    min-width: 120px;
    text-align: center;
}

.anim-next[b-0nmsvnsmgy] {
    animation: turnPageNext-b-0nmsvnsmgy 0.4s ease-in-out;
}

.anim-prev[b-0nmsvnsmgy] {
    animation: turnPagePrev-b-0nmsvnsmgy 0.4s ease-in-out;
}

@keyframes turnPageNext-b-0nmsvnsmgy {
    0% { transform: rotateY(8deg); opacity: 0.6; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

@keyframes turnPagePrev-b-0nmsvnsmgy {
    0% { transform: rotateY(-8deg); opacity: 0.6; }
    100% { transform: rotateY(0deg); opacity: 1; }
}
/* /Components/Pages/StoryMakerParts/BookStylePanel.razor.rz.scp.css */
.book-style[b-5xuykt5jch] {
    overflow: hidden;
}

.book-style-header[b-5xuykt5jch] {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border: none;
    background-color: var(--sv-color-surface);
    color: var(--sv-color-text);
    text-align: left;
}

.book-style-header .bi-palette[b-5xuykt5jch] {
    color: var(--sv-color-primary);
}

.book-style-thumb[b-5xuykt5jch] {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--sv-color-border);
}

.book-style-body[b-5xuykt5jch] {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--sv-color-border);
    padding-top: 1rem;
}

.hero-grid[b-5xuykt5jch] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.hero-choice[b-5xuykt5jch] {
    position: relative;
    padding: 0;
    border: 3px solid transparent;
    border-radius: var(--sr-border-radius);
    overflow: hidden;
    background-color: var(--sv-color-surface-sunken);
    aspect-ratio: 1 / 1;
}

.hero-choice img[b-5xuykt5jch] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-choice:hover[b-5xuykt5jch] {
    border-color: var(--sv-color-primary-soft);
}

.hero-choice.is-chosen[b-5xuykt5jch] {
    border-color: var(--sv-color-primary);
}

.style-chips[b-5xuykt5jch] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.style-chip[b-5xuykt5jch] {
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--sv-color-border);
    border-radius: 999px;
    background-color: var(--sv-color-surface);
    color: var(--sv-color-text);
    font-size: 0.85rem;
}

.style-chip:hover[b-5xuykt5jch] {
    border-color: var(--sv-color-primary-soft);
}

.style-chip.is-on[b-5xuykt5jch] {
    border-color: var(--sv-color-primary);
    background-color: var(--sv-color-primary);
    color: var(--sv-color-on-primary);
}

.hero-style[b-5xuykt5jch] {
    position: absolute;
    right: 6px;
    top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background-color: var(--sv-color-surface);
    color: var(--sv-color-text);
}

.hero-badge[b-5xuykt5jch] {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background-color: var(--sv-color-primary);
    color: var(--sv-color-on-primary);
}

.sheet-row[b-5xuykt5jch] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sheet-card[b-5xuykt5jch] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 96px;
}

.sheet-card img[b-5xuykt5jch],
.sheet-empty[b-5xuykt5jch] {
    width: 96px;
    height: 128px;
    object-fit: contain;
    border-radius: var(--sr-border-radius);
    border: 1px solid var(--sv-color-border);
    background-color: var(--sv-color-surface);
}

.sheet-empty[b-5xuykt5jch] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--sv-color-text-muted);
    background-color: var(--sv-color-primary-soft);
}

.sheet-card .text-truncate[b-5xuykt5jch] {
    max-width: 96px;
}
/* /Components/Pages/StoryMakerParts/CoverDesigner.razor.rz.scp.css */
.cover-canvas[b-gzut17degi] {
    flex-shrink: 0;
    container-type: inline-size;
}
.bleed-guide[b-gzut17degi] {
    position: absolute;
    border: 1px dashed var(--sv-color-danger);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1000;
}
.back-cover[b-gzut17degi], .front-cover[b-gzut17degi] {
    background-color: transparent;
}
.spine[b-gzut17degi] {
    background-color: var(--sv-color-surface-sunken);
    border-color: var(--sv-color-border) !important;
}
.cover-element[b-gzut17degi] {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: move;
    user-select: none;
    transition: outline 0.1s ease;
    min-width: 20px;
    min-height: 20px;
}
.element-text[b-gzut17degi] {
    white-space: pre-wrap;
}
.cover-element:hover[b-gzut17degi] {
    outline: 2px dashed var(--sv-color-primary);
}
.cover-element.selected[b-gzut17degi] {
    outline: 2px solid var(--sv-color-primary);
    z-index: 1000 !important;
}
.element-image-wrapper[b-gzut17degi] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.element-image[b-gzut17degi] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.placeholder-image[b-gzut17degi] {
    background: var(--sv-color-surface-sunken);
    color: var(--sv-color-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    padding: 20px;
}
.element-controls[b-gzut17degi] {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    margin-top: 10px;
    min-width: 150px;
}
.control-row[b-gzut17degi] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: var(--sv-color-text);
    font-size: 0.8rem;
}
.control-row input[b-gzut17degi] {
    flex-grow: 1;
}
.properties-sidebar[b-gzut17degi] {
    background-color: var(--sv-color-surface);
    color: var(--sv-color-text);
    scrollbar-width: thin;
    scrollbar-color: var(--sv-color-border) var(--sv-color-surface-sunken);
}
.custom-context-menu[b-gzut17degi] {
    background: var(--sv-color-surface);
    border-radius: 6px;
    min-width: 180px;
    overflow: hidden;
}
.custom-context-menu .list-group-item[b-gzut17degi] {
    border: none;
    border-radius: 0;
    cursor: pointer;
}
.custom-context-menu .list-group-item:hover[b-gzut17degi] {
    background-color: var(--sv-color-surface-sunken);
}
.snap-guide[b-gzut17degi] {
    position: absolute;
    background-color: var(--sv-color-primary);
    z-index: 1000;
    pointer-events: none;
}
.snap-guide.vertical[b-gzut17degi] {
    top: 0;
    bottom: 0;
    width: 1px;
}
.snap-guide.horizontal[b-gzut17degi] {
    left: 0;
    right: 0;
    height: 1px;
}
/* /Components/Pages/StoryMakerParts/EasyPages.razor.rz.scp.css */
.easy-pages[b-wj5by5ym0a] {
    max-width: 1100px;
    margin: 0 auto;
}

.easy-pages-bar[b-wj5by5ym0a] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.easy-cost[b-wj5by5ym0a] {
    opacity: 0.8;
    font-size: 0.85em;
    margin-left: 0.35rem;
}

.easy-page-grid[b-wj5by5ym0a] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
}

.easy-page[b-wj5by5ym0a] {
    background: var(--sv-color-surface);
    border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.easy-page-art[b-wj5by5ym0a] {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--sv-radius-sm);
    background: var(--sv-color-surface-sunken);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-color-text-muted);
    overflow: hidden;
}

.easy-page-art img[b-wj5by5ym0a] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.easy-page-number[b-wj5by5ym0a] {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    min-width: 1.6rem;
    padding: 0 0.4rem;
    text-align: center;
    border-radius: var(--sv-radius-pill);
    background: var(--sv-color-surface);
    color: var(--sv-color-text);
    font-size: 0.8rem;
    font-weight: 600;
}

.easy-pages-actions[b-wj5by5ym0a] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.easy-page-text[b-wj5by5ym0a] {
    field-sizing: content;
    min-height: 5.5rem;
}

/* Chosen pages and one-page redraws (once the book has a hero). */
.easy-pages-chosen[b-wj5by5ym0a] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: -0.25rem 0 1rem;
}

.easy-page-pick[b-wj5by5ym0a] {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: flex;
    padding: 0.3rem;
    border-radius: var(--sv-radius-sm);
    background: var(--sv-color-surface);
    cursor: pointer;
}

.easy-page-pick input[b-wj5by5ym0a] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.easy-page-busy[b-wj5by5ym0a] {
    position: absolute;
    left: 0.4rem;
    bottom: 0.4rem;
    padding: 0.15rem 0.6rem;
    border-radius: var(--sv-radius-pill);
    background: var(--sv-color-surface);
    color: var(--sv-color-text);
    font-size: 0.8rem;
}

.easy-redraw[b-wj5by5ym0a] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.easy-redraw-actions[b-wj5by5ym0a] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.easy-redraw-open[b-wj5by5ym0a] {
    font-size: 0.85rem;
    text-decoration: none;
}

/* A page's illustration notes: what the picture shows. */
.easy-notes-label[b-wj5by5ym0a] {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sv-color-text-muted);
    margin-bottom: -0.3rem;
}

.easy-notes[b-wj5by5ym0a] {
    font-size: 0.85rem;
    field-sizing: content;
    min-height: 4rem;
}

.easy-redraw-fresh[b-wj5by5ym0a] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--sv-color-text-muted);
}
/* /Components/Pages/StoryMakerParts/EasySetup.razor.rz.scp.css */
.easy-step[b-tre4ku8gud] {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.easy-card[b-tre4ku8gud] {
    background: var(--sv-color-surface);
    border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow);
    padding: 1.5rem;
}

.easy-heading[b-tre4ku8gud] {
    font-family: var(--sv-font-display);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.easy-subheading[b-tre4ku8gud] {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

.easy-help[b-tre4ku8gud] {
    color: var(--sv-color-text-muted);
    font-size: 0.9rem;
}

.easy-row[b-tre4ku8gud] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.easy-field label[b-tre4ku8gud] {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.easy-field[b-tre4ku8gud] {
    min-width: 7rem;
}

.easy-grow[b-tre4ku8gud] {
    flex: 1 1 18rem;
}

.easy-people[b-tre4ku8gud] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
}

.easy-person[b-tre4ku8gud] {
    background: var(--sv-color-surface-sunken);
    border-radius: var(--sv-radius-sm);
    padding: 0.6rem;
}

.easy-person-name[b-tre4ku8gud] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* The character's name: looks like a heading until it's clicked. */
.easy-name[b-tre4ku8gud] {
    font-weight: 600;
    background: transparent;
    border-color: transparent;
    padding-left: 0.25rem;
}

.easy-name:hover[b-tre4ku8gud],
.easy-name:focus[b-tre4ku8gud] {
    background: var(--sv-color-surface);
    border-color: var(--sv-color-border);
}

.easy-role[b-tre4ku8gud],
.easy-name-error[b-tre4ku8gud] {
    font-size: 0.8rem;
    margin: -0.2rem 0 0.2rem 0.3rem;
    color: var(--sv-color-text-muted);
}

.easy-name-error[b-tre4ku8gud] {
    color: var(--sv-color-danger);
}

.easy-beats[b-tre4ku8gud] {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.easy-beats li[b-tre4ku8gud] {
    margin-bottom: 0.4rem;
}

.easy-beats li > *[b-tre4ku8gud] {
    vertical-align: top;
}

.easy-beats textarea[b-tre4ku8gud] {
    display: inline-block;
    width: calc(100% - 12.5rem);
    field-sizing: content;
}

.easy-beat-place[b-tre4ku8gud] {
    display: inline-block;
    width: 10rem;
    margin-left: 0.25rem;
}

/* A person's or place's grid picture, with Choose/Change. */
.easy-cast[b-tre4ku8gud] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.easy-cast-pic[b-tre4ku8gud] {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
}

.easy-cast-place[b-tre4ku8gud] {
    width: 56px;
}

.easy-cast-face[b-tre4ku8gud] {
    width: 56px;
    height: 56px;
}

.easy-cast-actions[b-tre4ku8gud] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.easy-describe[b-tre4ku8gud] {
    color: var(--sv-color-text-muted);
    text-decoration: none;
}

.easy-cast-empty[b-tre4ku8gud] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sv-color-surface);
    color: var(--sv-color-text-muted);
}

.easy-add-place[b-tre4ku8gud] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 22rem;
    margin-top: 0.6rem;
}

.easy-add-place .btn[b-tre4ku8gud] {
    flex-shrink: 0;
    white-space: nowrap;
}

.easy-actions[b-tre4ku8gud] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}
/* /Components/Pages/StoryMakerParts/OverlayDetailsPanel.razor.rz.scp.css */
.overlay-details-panel[b-r3pyumdj1n] {
    background: var(--sv-color-surface-sunken);
    border-left: 1px solid var(--sv-color-border);
    min-height: 400px;
}
/* /Components/Pages/StoryMakerParts/StoryMakerRibbon.razor.rz.scp.css */
.story-maker-ribbon[b-wd39olkci6] {
    position: sticky;
    top: 0;
    z-index: 100;
}

.ribbon-tab[b-wd39olkci6] {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--sv-color-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.ribbon-tab:hover[b-wd39olkci6] {
    color: var(--sv-color-primary);
    background: var(--sv-color-primary-soft);
}

.ribbon-tab.active[b-wd39olkci6] {
    color: var(--sv-color-primary);
    border-bottom-color: var(--sv-color-primary);
}

.ribbon-content[b-wd39olkci6] {
    min-height: 70px;
    display: flex;
    align-items: center;
}

.ribbon-group[b-wd39olkci6] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ribbon-group-label[b-wd39olkci6] {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sv-color-text-muted);
    font-weight: 600;
}

.ribbon-group-divider[b-wd39olkci6] {
    width: 1px;
    height: 48px;
    background: var(--sv-color-border);
    margin: 0 4px;
    align-self: center;
}

.ribbon-action-btn[b-wd39olkci6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid var(--sv-color-border);
    background: var(--sv-color-surface);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--sv-color-text);
    transition: all 0.15s;
    min-width: 60px;
    gap: 2px;
}

.ribbon-action-btn:hover[b-wd39olkci6] {
    background: var(--sv-color-surface-sunken);
    border-color: var(--sv-color-primary);
    color: var(--sv-color-primary);
}

.ribbon-action-btn.text-info[b-wd39olkci6] {
    color: var(--sv-color-info);
}

.ribbon-action-btn.text-info:hover[b-wd39olkci6] {
    color: var(--sv-color-info);
    border-color: var(--sv-color-info);
}

.font-picker-btn[b-wd39olkci6] {
    font-size: 0.85rem;
    padding: 4px 8px;
    height: 32px;
}
/* /Components/Pages/StoryMakerParts/StudioIdea.razor.rz.scp.css */
.studio-idea[b-7r86ev54x6] {
    background: var(--sv-color-primary-soft);
    border: 1px solid var(--sv-color-border);
    border-radius: var(--sv-radius);
    padding: 1rem;
}

.studio-idea-large[b-7r86ev54x6] {
    padding: 1.5rem;
    background: var(--sv-color-surface);
    box-shadow: var(--sv-shadow);
}

.studio-idea-label[b-7r86ev54x6] {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--sv-color-text);
}

.studio-idea-large .studio-idea-label[b-7r86ev54x6] {
    font-family: var(--sv-font-display);
    font-size: 1.5rem;
}

.studio-idea-help[b-7r86ev54x6] {
    color: var(--sv-color-text-muted);
    margin-bottom: 0.75rem;
}

.studio-idea-examples[b-7r86ev54x6] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.studio-idea-chip[b-7r86ev54x6] {
    border: 1px solid var(--sv-color-border);
    background: var(--sv-color-surface);
    color: var(--sv-color-text-muted);
    border-radius: var(--sv-radius-pill);
    padding: 0.15rem 0.7rem;
    font-size: 0.8rem;
}

.studio-idea-chip:hover:not(:disabled)[b-7r86ev54x6] {
    color: var(--sv-color-text);
    border-color: var(--sv-color-primary);
}

.studio-idea-actions[b-7r86ev54x6] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
/* /Components/Pages/StoryMakerParts/StudioSetup.razor.rz.scp.css */
.grid-select[b-pihs814ssc] {
    width: auto;
}

.cast-name[b-pihs814ssc] {
    width: 80%;
}

/* A role's or place's cast: its grid picture, name and Choose/Change. */
.cast-slot[b-pihs814ssc] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.cast-face[b-pihs814ssc] {
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
}

.cast-empty[b-pihs814ssc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sv-color-surface-sunken);
    color: var(--sv-color-text-muted);
}

.story-beats-flow[b-pihs814ssc] {
    row-gap: 3rem;
    column-gap: 1.5rem;
}
/* /Components/Pages/StoryMakerParts/TypographyToolbar.razor.rz.scp.css */
/* Light, like the cover designer's sidebar it sits in. */
.typography-toolbar[b-zu1l9pk51n] {
    background-color: var(--sv-color-surface-sunken);
    border: 1px solid var(--sv-color-border);
    color: var(--sv-color-text);
}

.form-range[b-zu1l9pk51n] {
    height: 1.5rem;
}

.form-range[b-zu1l9pk51n]::-webkit-slider-runnable-track {
    background-color: var(--sv-color-border);
}

.form-range[b-zu1l9pk51n]::-moz-range-track {
    background-color: var(--sv-color-border);
}

.form-range[b-zu1l9pk51n]::-webkit-slider-thumb {
    background: var(--sv-color-accent);
}

.form-range[b-zu1l9pk51n]::-moz-range-thumb {
    background: var(--sv-color-accent);
}

.form-range[b-zu1l9pk51n]::-ms-thumb {
    background: var(--sv-color-accent);
}

.form-control-color[b-zu1l9pk51n] {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50% !important;
    border: 2px solid var(--sv-color-surface) !important;
}

.form-select-sm[b-zu1l9pk51n] {
    font-size: 0.85rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.sr-label-small[b-zu1l9pk51n] {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--sv-color-nav-text);
}
/* /Components/Pages/StoryWizardParts/CostumesStep.razor.rz.scp.css */
.costume-choice[b-jweiexj78n] {
    border-width: 2px;
}

.costume-choice.is-chosen[b-jweiexj78n] {
    border-color: var(--sv-color-primary);
    background-color: var(--sv-color-primary-soft);
}

.costume-icon[b-jweiexj78n] {
    background-color: var(--sv-color-primary-soft);
    color: var(--sv-color-primary);
}

.costume-choice.is-chosen .costume-icon[b-jweiexj78n] {
    background-color: var(--sv-color-surface);
}

.costume-tick[b-jweiexj78n] {
    color: var(--sv-color-primary);
    visibility: hidden;
}

.costume-choice.is-chosen .costume-tick[b-jweiexj78n] {
    visibility: visible;
}

.costume-face[b-jweiexj78n] {
    width: 56px;
    height: 56px;
    object-fit: cover;
}
/* /Components/Pages/TemplateBrowser.razor.rz.scp.css */
.sr-template-card[b-z90zdgmldt] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: var(--sr-border-radius);
    overflow: hidden;
}

.sr-template-card:hover[b-z90zdgmldt] {
    transform: translateY(-4px);
    box-shadow: var(--sv-shadow-raised) !important;
}
/* /Components/Shared/AccountCharacterPicker.razor.rz.scp.css */
.sr-character-card[b-t0x1ysfche] {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sr-character-card:hover[b-t0x1ysfche] {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.sr-character-card:hover .selection-overlay[b-t0x1ysfche] {
    opacity: 1 !important;
}

.sr-character-card:hover img[b-t0x1ysfche] {
    transform: scale(1.1);
}

.card-img-container[b-t0x1ysfche] {
    overflow: hidden;
}

.selection-overlay[b-t0x1ysfche] {
    transition: opacity 0.2s;
}
/* /Components/Shared/AccountLocationPicker.razor.rz.scp.css */
.sr-location-card[b-16f9ew3h2c] {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sr-location-card:hover[b-16f9ew3h2c] {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.sr-location-card:hover .selection-overlay[b-16f9ew3h2c] {
    opacity: 1 !important;
}

.sr-location-card:hover img[b-16f9ew3h2c] {
    transform: scale(1.1);
}

.card-img-container[b-16f9ew3h2c] {
    overflow: hidden;
}

.selection-overlay[b-16f9ew3h2c] {
    transition: opacity 0.2s;
}
/* /Components/Shared/BookReadyNotice.razor.rz.scp.css */
.book-ready-stack[b-wggsst7k8y] {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(22rem, calc(100vw - 2rem));
}

.book-ready[b-wggsst7k8y] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--sv-color-surface);
    color: var(--sv-color-text);
    border: 1px solid var(--sv-color-success-border);
    border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow-raised);
}

.book-ready-icon[b-wggsst7k8y] {
    font-size: 1.5rem;
    color: var(--sv-color-success);
    line-height: 1;
}

.book-ready-title[b-wggsst7k8y] {
    font-family: var(--sv-font-display);
    font-weight: var(--sv-heading-weight);
    margin-bottom: 0.15rem;
}

.book-ready-text[b-wggsst7k8y] {
    font-size: 0.875rem;
    color: var(--sv-color-text-muted);
    margin-bottom: 0.4rem;
}

.book-ready-link[b-wggsst7k8y] {
    font-weight: 600;
    color: var(--sv-color-primary);
}
/* /Components/Shared/CharacterGridPicker.razor.rz.scp.css */
.character-grid[b-8au4vwaxtc] {
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.face-item[b-8au4vwaxtc] {
    cursor: pointer;
    position: relative;
    padding: 2px;
}

.face-image-container[b-8au4vwaxtc] {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #f8f9fa;
    aspect-ratio: 1 / 1;
}

.face-item:hover .face-image-container[b-8au4vwaxtc] {
    transform: scale(1.05);
    z-index: 10;
    border-color: rgba(13, 110, 253, 0.3);
}

.face-item.selected .face-image-container[b-8au4vwaxtc] {
    border-color: var(--bs-primary);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4) !important;
}

.face-image[b-8au4vwaxtc] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-image-placeholder[b-8au4vwaxtc] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dee2e6;
    font-size: 2rem;
}

.selection-overlay[b-8au4vwaxtc] {
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--bs-primary);
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 2;
}

.hover-overlay[b-8au4vwaxtc] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0);
    transition: background 0.2s;
    pointer-events: none;
}

.face-item:hover .hover-overlay[b-8au4vwaxtc] {
    background: rgba(13, 110, 253, 0.05);
}

/* Picker-local overrides of the theme.css design-system classes.
   Scoped so they no longer leak onto the rest of the page. */
.sr-label-small[b-8au4vwaxtc] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.sr-input-minimal[b-8au4vwaxtc] {
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.sr-input-minimal:focus[b-8au4vwaxtc] {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}
/* /Components/Shared/CoverFront.razor.rz.scp.css */
.cover-front[b-0cmqj6ocr2] {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* The whole spread; cqi in the elements' text is % of its width, as in the designer and the PDF. */
.cover-spread[b-0cmqj6ocr2] {
    position: absolute;
    container-type: inline-size;
}

.cover-front-element[b-0cmqj6ocr2] {
    position: absolute;
}

.cover-front-text[b-0cmqj6ocr2] {
    white-space: pre-wrap;
}

.cover-front-element img[b-0cmqj6ocr2] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* /Components/Shared/LocationGridPicker.razor.rz.scp.css */
.location-grid[b-z55b6320iq] {
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.space-item[b-z55b6320iq] {
    cursor: pointer;
    position: relative;
    padding: 2px;
}

.space-image-container[b-z55b6320iq] {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #f8f9fa;
    aspect-ratio: 1 / 1;
}

.space-item:hover .space-image-container[b-z55b6320iq] {
    transform: scale(1.05);
    z-index: 10;
    border-color: rgba(25, 135, 84, 0.3);
}

.space-item.selected .space-image-container[b-z55b6320iq] {
    border-color: var(--bs-success);
    box-shadow: 0 0 15px rgba(25, 135, 84, 0.4) !important;
}

.space-image[b-z55b6320iq] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space-image-placeholder[b-z55b6320iq] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dee2e6;
    font-size: 2rem;
}

.selection-overlay[b-z55b6320iq] {
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--bs-success);
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 2;
}

.hover-overlay[b-z55b6320iq] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 135, 84, 0);
    transition: background 0.2s;
    pointer-events: none;
}

.space-item:hover .hover-overlay[b-z55b6320iq] {
    background: rgba(25, 135, 84, 0.05);
}

/* Picker-local overrides of the theme.css design-system classes.
   Scoped so they no longer leak onto the rest of the page. */
.sr-label-small[b-z55b6320iq] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.sr-input-minimal[b-z55b6320iq] {
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.sr-input-minimal:focus[b-z55b6320iq] {
    background-color: #fff;
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.1);
}
/* /Components/Shared/SrTooltip.razor.rz.scp.css */
.tooltip-container[b-q2d2pq7mz3] {
    display: inline-block;
    position: relative;
    margin-left: 5px;
    vertical-align: middle;
}

.tooltip-icon[b-q2d2pq7mz3] {
    width: 18px;
    height: 18px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    color: #666;
    transition: background-color 0.2s;
    user-select: none;
}

.tooltip-icon:hover[b-q2d2pq7mz3] {
    background-color: #e0e0e0;
    color: #333;
}

.tooltip-box[b-q2d2pq7mz3] {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

.tooltip-box[b-q2d2pq7mz3]::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

@media (max-width: 768px) {
    .tooltip-box[b-q2d2pq7mz3] {
        width: 150px;
        left: auto;
        right: 0;
        transform: none;
    }
    .tooltip-box[b-q2d2pq7mz3]::after {
        left: auto;
        right: 5px;
    }
}
/* /Components/Shared/StoryBookPreview.razor.rz.scp.css */
.book-container[b-5fh0sojter] {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 1.6 / 1;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.book-viewport[b-5fh0sojter] {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.book-page[b-5fh0sojter] {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: white;
    container-type: inline-size;
}

.page-left[b-5fh0sojter] { left: 0; border-right: 1px solid rgba(0,0,0,0.1); }
.page-right[b-5fh0sojter] { left: 50%; }

.page-content[b-5fh0sojter] {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-background[b-5fh0sojter] {
    position: relative;
    flex-grow: 1;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.page-text-container[b-5fh0sojter] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex;
    align-items: flex-end;
    min-height: 25%;
    z-index: 10;
}

.page-text[b-5fh0sojter] {
    display: block;
    width: 100%;
    padding: 15px 20px 30px 20px;
    color: white;
    text-align: center;
    font-size: 4cqi;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-footer[b-5fh0sojter] {
    height: 35px;
    flex-shrink: 0;
}

.book-nav[b-5fh0sojter] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
}

.book-nav:hover:not(:disabled)[b-5fh0sojter] {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.book-nav:disabled[b-5fh0sojter] { opacity: 0; pointer-events: none; }
.book-nav.prev[b-5fh0sojter] { left: 10px; }
.book-nav.next[b-5fh0sojter] { right: 10px; }

.page-indicator-floating[b-5fh0sojter] {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    z-index: 100;
    backdrop-filter: blur(4px);
}

/* In mobile we show only the active page of the spread. */
@media (max-width: 767px) {
    .book-container[b-5fh0sojter] { aspect-ratio: 0.8 / 1; }
    .book-page[b-5fh0sojter] { width: 100%; left: 0; display: none; }
    .book-page.active[b-5fh0sojter] { display: block; }
}
/* /Components/Shared/TemplateHistoryPanel.razor.rz.scp.css */
.history-backdrop[b-ft3jrbl1gb] {
    background: rgba(0, 0, 0, 0.45);
    z-index: 1060;
}

.history-modal[b-ft3jrbl1gb] {
    background: var(--sv-color-surface);
    border: 0;
    border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow-raised);
}

.history-list[b-ft3jrbl1gb] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-entry[b-ft3jrbl1gb] {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sv-color-border);
}

.history-entry:last-child[b-ft3jrbl1gb] {
    border-bottom: 0;
}

.history-meta[b-ft3jrbl1gb] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.history-when[b-ft3jrbl1gb] {
    font-weight: 600;
    color: var(--sv-color-text);
}

.history-who[b-ft3jrbl1gb] {
    color: var(--sv-color-text-muted);
}

.history-note[b-ft3jrbl1gb] {
    font-size: 0.8rem;
    padding: 0.1rem 0.6rem;
    border-radius: var(--sv-radius-pill);
    background: var(--sv-color-primary-soft);
    color: var(--sv-color-text);
}

.history-changes[b-ft3jrbl1gb] {
    margin: 0.35rem 0 0.25rem;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--sv-color-text);
    overflow-wrap: anywhere;
}

.history-actions[b-ft3jrbl1gb] {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
/* /Components/Shared/ThemeSelectionModal.razor.rz.scp.css */
.theme-card[b-hrx7logb4w] {
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border-radius: var(--sr-border-radius);
    overflow: hidden;
}

.theme-card:hover[b-hrx7logb4w] {
    transform: translateY(-3px);
    box-shadow: var(--sv-shadow-raised) !important;
    border-color: var(--sv-color-primary) !important;
}

.theme-card.active[b-hrx7logb4w] {
    border: 2px solid var(--sv-color-primary) !important;
    background-color: var(--sv-color-primary-soft);
}
