/* /Layout/MainLayout.razor.rz.scp.css */
.page-shell[b-t5vv1a7x32] {
    min-height: 100vh;
}

.page-main[b-t5vv1a7x32] {
    min-height: 100vh;
}

.content-shell[b-t5vv1a7x32] {
    min-height: 100vh;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-4412x7j26h] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-4412x7j26h] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-4412x7j26h] {
    font-size: 1.1rem;
}

.bi[b-4412x7j26h] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-4412x7j26h] {
    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-4412x7j26h] {
    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-4412x7j26h] {
    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-4412x7j26h] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-4412x7j26h] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-4412x7j26h] {
        padding-bottom: 1rem;
    }

    .nav-item[b-4412x7j26h]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-4412x7j26h]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-4412x7j26h]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-4412x7j26h] {
        display: none;
    }

    .collapse[b-4412x7j26h] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-4412x7j26h] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════
   Layout raiz
   ═══════════════════════════════════════════════════ */
.oraculo-layout[b-2ozl3ysvr1] {
    --oq-sidebar-width: 300px;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 20%, rgba(210, 165, 88, 0.14), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(128, 165, 228, 0.10), transparent 24%),
        linear-gradient(145deg, rgba(6, 10, 18, 0.97), rgba(10, 18, 30, 0.95));
    background-size: cover;
    background-position: center;
}

.oraculo-main-row[b-2ozl3ysvr1] {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   Navbar mobile
   ═══════════════════════════════════════════════════ */
.oq-mobile-nav[b-2ozl3ysvr1] {
    background: rgba(6, 12, 22, 0.94);
    border-bottom: 1px solid rgba(210, 165, 88, 0.12);
    min-height: 3.25rem;
}

.oq-kicker[b-2ozl3ysvr1] {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.65rem;
    color: var(--oq-gold);
    margin-bottom: 0.1rem;
}

.oq-brand-title[b-2ozl3ysvr1],
.oq-sidebar-title[b-2ozl3ysvr1] {
    font-weight: 600;
    color: var(--oq-ink);
}

.oq-sidebar-title[b-2ozl3ysvr1] {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.oq-muted[b-2ozl3ysvr1] {
    color: var(--oq-muted);
}

/* ═══════════════════════════════════════════════════
   Sidebar — Bootstrap offcanvas-md override
   ═══════════════════════════════════════════════════ */
.oq-sidebar[b-2ozl3ysvr1] {
    width: var(--oq-sidebar-width) !important;
    max-width: 100vw;
    background-color: rgba(7, 15, 26, 0.98) !important;
    border-right: 1px solid rgba(210, 165, 88, 0.12) !important;
    flex-shrink: 0;
}

/* Mobile offcanvas header */
.oq-sidebar .offcanvas-header[b-2ozl3ysvr1] {
    background: rgba(6, 12, 22, 0.97);
    border-bottom: 1px solid rgba(210, 165, 88, 0.12);
    padding: 0.9rem 1rem;
}

.oq-sidebar .offcanvas-title[b-2ozl3ysvr1] {
    color: var(--oq-ink);
    font-size: 1rem;
    font-weight: 600;
}

/* Body always scrolls */
.oq-sidebar .offcanvas-body[b-2ozl3ysvr1] {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 165, 88, 0.2) transparent;
}

.oq-sidebar .accordion-body[b-2ozl3ysvr1],
.oq-sidebar .sidebar-card[b-2ozl3ysvr1],
.oq-sidebar .sheet-quest p[b-2ozl3ysvr1],
.oq-sidebar .inventory-tags span[b-2ozl3ysvr1],
.oq-sidebar .muted-copy[b-2ozl3ysvr1],
.oq-sidebar .campaign-meta[b-2ozl3ysvr1] {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.oq-sidebar-brand[b-2ozl3ysvr1] {
    border-bottom: 1px solid rgba(210, 165, 88, 0.1);
    padding-bottom: 0.85rem !important;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   Accordion Bootstrap override — tema escuro
   ═══════════════════════════════════════════════════ */
.oq-accordion .accordion-item[b-2ozl3ysvr1],
.oq-accordion-item[b-2ozl3ysvr1] {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(210, 165, 88, 0.1);
}

.oq-accordion .accordion-button[b-2ozl3ysvr1] {
    background: transparent;
    color: var(--oq-ink);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.85rem 1rem;
    gap: 0.5rem;
    box-shadow: none !important;
}

.oq-accordion .accordion-button:not(.collapsed)[b-2ozl3ysvr1] {
    background: rgba(210, 165, 88, 0.05);
    color: var(--oq-gold);
    box-shadow: none;
}

.oq-accordion .accordion-button[b-2ozl3ysvr1]::after {
    filter: invert(85%) sepia(20%) saturate(400%) hue-rotate(10deg);
    flex-shrink: 0;
}

.oq-accordion .accordion-button:focus[b-2ozl3ysvr1] {
    box-shadow: none;
    outline: none;
}

.oq-accordion .accordion-body[b-2ozl3ysvr1] {
    background: rgba(4, 10, 18, 0.5);
    padding: 0.85rem 1rem 1rem;
}

.oq-acc-label[b-2ozl3ysvr1] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--oq-gold);
}

.oq-chip-inline[b-2ozl3ysvr1] {
    font-size: 0.72rem;
    color: var(--oq-muted);
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   Formulários dentro do accordion
   ═══════════════════════════════════════════════════ */
.oq-accordion .form-control[b-2ozl3ysvr1],
.oq-accordion .form-select[b-2ozl3ysvr1] {
    background: rgba(10, 22, 36, 0.8);
    border-color: rgba(210, 165, 88, 0.18);
    color: var(--oq-ink);
}

.oq-accordion .form-control:focus[b-2ozl3ysvr1],
.oq-accordion .form-select:focus[b-2ozl3ysvr1] {
    background: rgba(10, 22, 36, 0.9);
    border-color: rgba(210, 165, 88, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(210, 165, 88, 0.1);
    color: var(--oq-ink);
}

.oq-accordion .form-label[b-2ozl3ysvr1] {
    font-size: 0.8rem;
    color: var(--oq-muted);
    margin-bottom: 0.3rem;
}

/* ═══════════════════════════════════════════════════
   Campanhas
   ═══════════════════════════════════════════════════ */
.campaign-list[b-2ozl3ysvr1] {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: 22rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 165, 88, 0.15) transparent;
}

.campaign-tile[b-2ozl3ysvr1] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(210, 165, 88, 0.1);
    background: rgba(10, 22, 36, 0.65);
}

.campaign-tile.is-archived[b-2ozl3ysvr1] {
    opacity: 0.65;
}

.campaign-title[b-2ozl3ysvr1] {
    font-size: 0.88rem;
    font-weight: 500;
}

.campaign-meta[b-2ozl3ysvr1] {
    font-size: 0.76rem;
    color: var(--oq-muted);
}

.campaign-actions[b-2ozl3ysvr1] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   Alertas dentro da sidebar
   ═══════════════════════════════════════════════════ */
.oq-alert[b-2ozl3ysvr1] {
    border-radius: 0.7rem;
    font-size: 0.82rem;
}

.oq-alert.alert-info[b-2ozl3ysvr1] {
    background: rgba(82, 121, 196, 0.14);
    border-color: rgba(82, 121, 196, 0.22);
    color: #c8d8f5;
}

.oq-alert.alert-danger[b-2ozl3ysvr1] {
    background: rgba(180, 65, 50, 0.14);
    border-color: rgba(255, 141, 124, 0.2);
    color: #ffd1c7;
}

/* ═══════════════════════════════════════════════════
   Área principal de chat
   ═══════════════════════════════════════════════════ */
.oracle-chat-shell[b-2ozl3ysvr1] {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    border-left: 1px solid rgba(210, 165, 88, 0.08);
    background: linear-gradient(180deg, rgba(4, 11, 18, 0.88), rgba(7, 15, 24, 0.9));
    overflow: hidden;
}

.chat-topbar[b-2ozl3ysvr1] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(180deg, rgba(4, 10, 18, 0.96), rgba(4, 10, 18, 0.76));
    border-bottom: 1px solid rgba(210, 165, 88, 0.1);
}

.sidebar-hero-kicker[b-2ozl3ysvr1] {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--oq-gold);
    margin: 0 0 0.2rem;
}

.chat-topbar h2[b-2ozl3ysvr1] {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.chat-state-cluster[b-2ozl3ysvr1] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.state-chip[b-2ozl3ysvr1] {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(210, 165, 88, 0.08);
    color: var(--oq-gold-soft);
    border: 1px solid rgba(210, 165, 88, 0.14);
    font-size: 0.78rem;
    white-space: nowrap;
}

.state-chip.live[b-2ozl3ysvr1] {
    background: rgba(104, 151, 236, 0.16);
    color: #d9e7ff;
    border-color: rgba(104, 151, 236, 0.2);
}

.state-chip.danger[b-2ozl3ysvr1] {
    background: rgba(177, 68, 68, 0.18);
    color: #ffd8d0;
    border-color: rgba(177, 68, 68, 0.25);
}

.capture-banner[b-2ozl3ysvr1] {
    padding: 0.75rem 1.35rem;
    background: rgba(177, 106, 55, 0.2);
    border-bottom: 1px solid rgba(210, 165, 88, 0.1);
    color: var(--oq-muted);
    font-size: 0.9rem;
}

.chat-history[b-2ozl3ysvr1] {
    min-height: 0;
    overflow-y: auto;
    padding: 1.35rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 165, 88, 0.15) transparent;
}

.quest-panel[b-2ozl3ysvr1] {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(210, 165, 88, 0.1);
    background: rgba(13, 27, 45, 0.7);
}

.quest-panel span[b-2ozl3ysvr1] {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--oq-gold);
}

.quest-panel strong[b-2ozl3ysvr1],
.quest-panel p[b-2ozl3ysvr1] {
    display: block;
    margin-top: 0.3rem;
}

.chat-message[b-2ozl3ysvr1] {
    max-width: min(86%, 52rem);
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(210, 165, 88, 0.1);
}

.chat-message header[b-2ozl3ysvr1] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--oq-muted);
}

.chat-message p[b-2ozl3ysvr1] {
    margin: 0;
    line-height: 1.7;
    white-space: pre-wrap;
}

.player-message[b-2ozl3ysvr1] {
    align-self: flex-end;
    background: linear-gradient(180deg, rgba(17, 49, 88, 0.95), rgba(14, 34, 60, 0.95));
}

.oracle-message[b-2ozl3ysvr1] {
    align-self: flex-start;
    background: linear-gradient(180deg, rgba(28, 22, 60, 0.96), rgba(16, 18, 43, 0.96));
}

.intro-message[b-2ozl3ysvr1] {
    border-color: rgba(210, 165, 88, 0.18);
}

.chapter-ending-message[b-2ozl3ysvr1] {
    align-self: stretch;
    background: linear-gradient(180deg, rgba(40, 32, 18, 0.92), rgba(22, 18, 12, 0.92));
}

.oracle-consequence[b-2ozl3ysvr1] {
    margin-top: 0.8rem !important;
    color: var(--oq-gold-soft);
}

.empty-state-block[b-2ozl3ysvr1] {
    max-width: 36rem;
    padding: 1.35rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(210, 165, 88, 0.14);
    background: rgba(10, 22, 36, 0.75);
}

.empty-state-block.dramatic[b-2ozl3ysvr1] {
    margin: auto;
}

.empty-state-title[b-2ozl3ysvr1] {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.empty-state-copy[b-2ozl3ysvr1],
.muted-copy[b-2ozl3ysvr1] {
    margin: 0;
    color: var(--oq-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   Composer
   ═══════════════════════════════════════════════════ */
.chat-composer[b-2ozl3ysvr1] {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 1rem 1.35rem;
    background: linear-gradient(180deg, rgba(4, 10, 18, 0.76), rgba(4, 10, 18, 0.96));
    border-top: 1px solid rgba(210, 165, 88, 0.1);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.composer-header[b-2ozl3ysvr1] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.composer-header h3[b-2ozl3ysvr1] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.composer-header p[b-2ozl3ysvr1] {
    margin: 0.25rem 0 0;
    color: var(--oq-muted);
    font-size: 0.82rem;
}

.typing-indicator[b-2ozl3ysvr1] {
    color: var(--oq-gold-soft);
    font-size: 0.85rem;
    white-space: nowrap;
}

.quick-choice-row[b-2ozl3ysvr1] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.quick-choice-button[b-2ozl3ysvr1] {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(210, 165, 88, 0.18);
    background: rgba(210, 165, 88, 0.07);
    color: var(--oq-gold-soft);
    font-size: 0.85rem;
}

.quick-choice-button:hover:not(:disabled)[b-2ozl3ysvr1] {
    background: rgba(210, 165, 88, 0.14);
}

.composer-row[b-2ozl3ysvr1] {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.composer-input[b-2ozl3ysvr1] {
    min-height: 5.5rem;
    resize: vertical;
}

.composer-submit[b-2ozl3ysvr1] {
    min-width: 7rem;
    align-self: flex-end;
}

/* ═══════════════════════════════════════════════════
   Death overlay
   ═══════════════════════════════════════════════════ */
.death-overlay[b-2ozl3ysvr1] {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(3, 5, 9, 0.82);
    backdrop-filter: blur(10px);
    z-index: 60;
}

.death-card[b-2ozl3ysvr1] {
    width: min(30rem, calc(100vw - 2rem));
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 141, 124, 0.24);
    background: linear-gradient(180deg, rgba(28, 12, 12, 0.96), rgba(12, 8, 8, 0.92));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.death-card h2[b-2ozl3ysvr1],
.death-card p[b-2ozl3ysvr1] {
    margin: 0 0 0.75rem;
}

/* ═══════════════════════════════════════════════════
   Responsivo mobile
   ═══════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .oracle-chat-shell[b-2ozl3ysvr1] {
        grid-template-rows: auto auto minmax(0, 1fr) auto;
    }

    .chat-topbar[b-2ozl3ysvr1] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .chat-state-cluster[b-2ozl3ysvr1] {
        justify-content: flex-start;
    }

    .composer-header[b-2ozl3ysvr1] {
        flex-direction: column;
    }

    .composer-row[b-2ozl3ysvr1] {
        flex-direction: column;
        align-items: stretch;
    }

    .composer-submit[b-2ozl3ysvr1] {
        width: 100%;
    }

    .chat-message[b-2ozl3ysvr1] {
        max-width: 100%;
    }

    .campaign-actions[b-2ozl3ysvr1] {
        flex-direction: row;
    }
}

.oq-sidebar[b-2ozl3ysvr1] {
    position: relative;
    z-index: 30;
}

.oq-sidebar.is-open[b-2ozl3ysvr1] {
    width: var(--oq-sidebar-width);
}

.oq-sidebar.is-closed[b-2ozl3ysvr1] {
    width: 0;
}

.sidebar-toggle[b-2ozl3ysvr1] {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 3;
    border: 1px solid rgba(210, 165, 88, 0.25);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    color: var(--oq-ink);
    background: rgba(6, 14, 24, 0.84);
    backdrop-filter: blur(14px);
}

.sidebar-panel[b-2ozl3ysvr1] {
    position: relative;
    width: var(--oq-sidebar-width);
    max-width: 100%;
    min-height: calc(100vh - 2.5rem);
    padding: 4rem 1.15rem 1.15rem;
    border: 1px solid rgba(210, 165, 88, 0.16);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(8, 17, 28, 0.96), rgba(8, 18, 30, 0.88));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    overflow-y: auto;
}

.sidebar-header[b-2ozl3ysvr1] {
    margin-bottom: 1rem;
}

.sidebar-content[b-2ozl3ysvr1] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-backdrop[b-2ozl3ysvr1] {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, 0.46);
    border: 0;
}

.sidebar-hero-kicker[b-2ozl3ysvr1],
.sidebar-label[b-2ozl3ysvr1],
.sheet-kicker[b-2ozl3ysvr1] {
    display: inline-block;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--oq-gold);
}

.sidebar-header h1[b-2ozl3ysvr1],
.sidebar-card h2[b-2ozl3ysvr1],
.chat-topbar h2[b-2ozl3ysvr1],
.composer-header h3[b-2ozl3ysvr1],
.death-card h2[b-2ozl3ysvr1] {
    margin: 0;
    font-weight: 600;
}

.sidebar-hero-copy[b-2ozl3ysvr1],
.muted-copy[b-2ozl3ysvr1],
.empty-state-copy[b-2ozl3ysvr1],
.capture-banner[b-2ozl3ysvr1],
.sheet-quest p[b-2ozl3ysvr1],
.death-card p[b-2ozl3ysvr1] {
    margin: 0;
    color: var(--oq-muted);
    line-height: 1.6;
}

.sidebar-card[b-2ozl3ysvr1] {
    padding: 1.1rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(210, 165, 88, 0.12);
    background: rgba(10, 22, 36, 0.78);
}

.sidebar-card-header[b-2ozl3ysvr1] {
    margin-bottom: 0.9rem;
}

.sidebar-actions[b-2ozl3ysvr1],
.auth-register-row[b-2ozl3ysvr1],
.filter-row[b-2ozl3ysvr1],
.campaign-actions[b-2ozl3ysvr1],
.chat-state-cluster[b-2ozl3ysvr1],
.character-grid[b-2ozl3ysvr1],
.sheet-stats[b-2ozl3ysvr1],
.status-grid[b-2ozl3ysvr1],
.composer-row[b-2ozl3ysvr1],
.quick-choice-row[b-2ozl3ysvr1],
.name-row[b-2ozl3ysvr1] {
    display: flex;
    gap: 0.75rem;
}

.sidebar-actions .btn[b-2ozl3ysvr1] {
    flex: 1;
}

.auth-register-row .btn[b-2ozl3ysvr1] {
    width: 100%;
}

.google-signin-button-slot[b-2ozl3ysvr1] {
    flex: 1;
    min-height: 40px;
}

.google-signin-button-slot > div[b-2ozl3ysvr1] {
    width: 100% !important;
}

.google-signin-button-slot iframe[b-2ozl3ysvr1] {
    width: 100% !important;
}

.character-grid[b-2ozl3ysvr1] {
    flex-wrap: wrap;
}

.character-grid > div[b-2ozl3ysvr1],
.sheet-stats article[b-2ozl3ysvr1],
.status-grid article[b-2ozl3ysvr1] {
    flex: 1 1 10rem;
}

.name-refresh[b-2ozl3ysvr1] {
    min-width: 7.25rem;
}

.sheet-stats article[b-2ozl3ysvr1],
.status-grid article[b-2ozl3ysvr1],
.quest-panel[b-2ozl3ysvr1],
.chat-message[b-2ozl3ysvr1],
.campaign-tile[b-2ozl3ysvr1] {
    border-radius: 1.1rem;
    border: 1px solid rgba(210, 165, 88, 0.1);
    background: rgba(13, 27, 45, 0.7);
}

.sheet-stats article[b-2ozl3ysvr1],
.status-grid article[b-2ozl3ysvr1] {
    padding: 0.85rem;
}

.sheet-inventory[b-2ozl3ysvr1] {
    margin-top: 1rem;
}

.inventory-tags[b-2ozl3ysvr1] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.inventory-tags span[b-2ozl3ysvr1],
.state-chip[b-2ozl3ysvr1],
.quick-choice-button[b-2ozl3ysvr1] {
    border-radius: 999px;
}

.inventory-tags span[b-2ozl3ysvr1],
.quick-choice-button[b-2ozl3ysvr1] {
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(210, 165, 88, 0.12);
    background: rgba(210, 165, 88, 0.08);
    color: var(--oq-gold-soft);
}

.filter-row[b-2ozl3ysvr1] {
    align-items: center;
    justify-content: space-between;
}

.filter-check[b-2ozl3ysvr1] {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.campaign-list[b-2ozl3ysvr1] {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 20rem;
    overflow-y: auto;
}

.campaign-tile[b-2ozl3ysvr1] {
    padding: 0.85rem;
}

.campaign-tile.is-archived[b-2ozl3ysvr1] {
    opacity: 0.72;
}

.campaign-title[b-2ozl3ysvr1] {
    margin: 0;
    font-size: 1rem;
}

.campaign-meta[b-2ozl3ysvr1] {
    margin: 0.2rem 0 0;
    color: var(--oq-muted);
    font-size: 0.82rem;
}

.feedback-banner[b-2ozl3ysvr1] {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
}

.feedback-banner.info[b-2ozl3ysvr1] {
    background: rgba(82, 121, 196, 0.18);
    border: 1px solid rgba(82, 121, 196, 0.22);
}

.feedback-banner.error[b-2ozl3ysvr1] {
    background: rgba(180, 65, 50, 0.16);
    border: 1px solid rgba(255, 141, 124, 0.22);
    color: #ffd1c7;
}

.oracle-chat-shell[b-2ozl3ysvr1] {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    border-radius: 2rem;
    border: 1px solid rgba(210, 165, 88, 0.12);
    background: linear-gradient(180deg, rgba(4, 11, 18, 0.86), rgba(7, 15, 24, 0.88));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.chat-topbar[b-2ozl3ysvr1],
.chat-composer[b-2ozl3ysvr1] {
    padding: 1.15rem 1.35rem;
    background: linear-gradient(180deg, rgba(4, 10, 18, 0.96), rgba(4, 10, 18, 0.76));
}

.chat-topbar[b-2ozl3ysvr1] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(210, 165, 88, 0.1);
}

.menu-peek[b-2ozl3ysvr1] {
    border: 1px solid rgba(210, 165, 88, 0.22);
    border-radius: 999px;
    padding: 0.6rem 0.85rem;
    color: var(--oq-gold-soft);
    background: rgba(210, 165, 88, 0.08);
}

.state-chip[b-2ozl3ysvr1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    background: rgba(210, 165, 88, 0.08);
    color: var(--oq-gold-soft);
    border: 1px solid rgba(210, 165, 88, 0.14);
    font-size: 0.8rem;
}

.state-chip.live[b-2ozl3ysvr1] {
    background: rgba(104, 151, 236, 0.16);
    color: #d9e7ff;
}

.state-chip.danger[b-2ozl3ysvr1] {
    background: rgba(177, 68, 68, 0.18);
    color: #ffd8d0;
}

.capture-banner[b-2ozl3ysvr1] {
    padding: 0.85rem 1.35rem;
    background: rgba(177, 106, 55, 0.2);
    border-bottom: 1px solid rgba(210, 165, 88, 0.1);
}

.chat-history[b-2ozl3ysvr1] {
    min-height: 0;
    overflow-y: auto;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quest-panel[b-2ozl3ysvr1] {
    padding: 0.95rem 1rem;
}

.quest-panel span[b-2ozl3ysvr1] {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--oq-gold);
}

.quest-panel strong[b-2ozl3ysvr1],
.quest-panel p[b-2ozl3ysvr1] {
    display: block;
    margin-top: 0.35rem;
}

.chat-message[b-2ozl3ysvr1] {
    max-width: min(86%, 52rem);
    padding: 1rem 1.1rem;
}

.chat-message header[b-2ozl3ysvr1] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--oq-muted);
}

.chat-message p[b-2ozl3ysvr1] {
    margin: 0;
    line-height: 1.7;
    white-space: pre-wrap;
}

.player-message[b-2ozl3ysvr1] {
    align-self: flex-end;
    background: linear-gradient(180deg, rgba(17, 49, 88, 0.95), rgba(14, 34, 60, 0.95));
}

.oracle-message[b-2ozl3ysvr1] {
    align-self: flex-start;
    background: linear-gradient(180deg, rgba(28, 22, 60, 0.96), rgba(16, 18, 43, 0.96));
}

.intro-message[b-2ozl3ysvr1] {
    border-color: rgba(210, 165, 88, 0.18);
}

.chapter-ending-message[b-2ozl3ysvr1] {
    align-self: stretch;
    background: linear-gradient(180deg, rgba(40, 32, 18, 0.92), rgba(22, 18, 12, 0.92));
}

.oracle-consequence[b-2ozl3ysvr1] {
    margin-top: 0.85rem !important;
    color: var(--oq-gold-soft);
}

.empty-state-block[b-2ozl3ysvr1] {
    max-width: 36rem;
    padding: 1.35rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(210, 165, 88, 0.14);
    background: rgba(10, 22, 36, 0.75);
}

.empty-state-block.dramatic[b-2ozl3ysvr1] {
    margin: auto;
}

.empty-state-title[b-2ozl3ysvr1] {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
}

.composer-header[b-2ozl3ysvr1] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.composer-header p[b-2ozl3ysvr1] {
    margin: 0.35rem 0 0;
    color: var(--oq-muted);
}

.typing-indicator[b-2ozl3ysvr1] {
    color: var(--oq-gold-soft);
    font-size: 0.88rem;
}

.quick-choice-row[b-2ozl3ysvr1] {
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.quick-choice-button[b-2ozl3ysvr1] {
    border: 1px solid rgba(210, 165, 88, 0.18);
}

.composer-input[b-2ozl3ysvr1] {
    min-height: 6rem;
    resize: vertical;
}

.composer-submit[b-2ozl3ysvr1] {
    min-width: 8rem;
}

.death-overlay[b-2ozl3ysvr1] {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(3, 5, 9, 0.82);
    backdrop-filter: blur(10px);
    z-index: 60;
}

.death-card[b-2ozl3ysvr1] {
    width: min(30rem, calc(100vw - 2rem));
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 141, 124, 0.24);
    background: linear-gradient(180deg, rgba(28, 12, 12, 0.96), rgba(12, 8, 8, 0.92));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

@media (max-width: 960px) {
    .oraculo-stage[b-2ozl3ysvr1] {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .oq-sidebar[b-2ozl3ysvr1] {
        position: static;
    }

    .sidebar-panel[b-2ozl3ysvr1] {
        position: fixed;
        inset: 1rem auto 1rem 1rem;
        width: min(26rem, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
    }

    .oracle-chat-shell[b-2ozl3ysvr1] {
        min-height: calc(100vh - 2rem);
    }

    .chat-topbar[b-2ozl3ysvr1],
    .composer-header[b-2ozl3ysvr1],
    .composer-row[b-2ozl3ysvr1] {
        flex-direction: column;
    }

    .chat-message[b-2ozl3ysvr1] {
        max-width: 100%;
    }
}

/* Final override: keep composer visible and isolate scroll to history panel. */
.oraculo-layout[b-2ozl3ysvr1] {
    height: 100dvh;
    min-height: 100dvh;
}

.oracle-chat-shell[b-2ozl3ysvr1] {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
}

.chat-history[b-2ozl3ysvr1] {
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-bottom: 1rem !important;
}

.chat-composer[b-2ozl3ysvr1] {
    position: relative !important;
    bottom: auto !important;
    z-index: 20;
    flex-shrink: 0;
}
