/* /Components/Account/BillingPanel.razor.rz.scp.css */
.billing-header[b-k9uxkdtasp] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.balance-pill[b-k9uxkdtasp] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 14px 20px;
    min-width: 200px;
}

.balance-figure[b-k9uxkdtasp] { font-size: 1.6rem; font-weight: 800; color: var(--brand-primary); }
.balance-figure small[b-k9uxkdtasp] { font-size: .8rem; color: var(--text-muted); font-weight: 600; }

section.card-surface[b-k9uxkdtasp] { margin-bottom: 18px; }

.offering-grid[b-k9uxkdtasp] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 14px;
}

.offering[b-k9uxkdtasp] {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.offering.popular[b-k9uxkdtasp] { border-color: var(--brand-primary); box-shadow: 0 0 0 2px var(--brand-primary-50); }

.popular-badge[b-k9uxkdtasp] {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--brand-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.offering-name[b-k9uxkdtasp] { font-size: 1.1rem; font-weight: 700; margin: 0; }
.offering-credits[b-k9uxkdtasp] { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); }
.offering-credits span[b-k9uxkdtasp] { font-size: .85rem; color: var(--text-muted); font-weight: 600; margin-left: 4px; }
.offering-desc[b-k9uxkdtasp] { color: var(--text-muted); font-size: .85rem; flex: 1; }
.offering-price[b-k9uxkdtasp] { font-size: 1.3rem; font-weight: 800; color: var(--brand-primary); }

.page-estimate-note[b-k9uxkdtasp] { margin: 14px 0 0; }

.balance-breakdown[b-k9uxkdtasp] {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 10px 18px;
    margin: 12px 0;
}

.balance-breakdown span[b-k9uxkdtasp] { display: flex; flex-direction: column; color: var(--text-muted); font-size: .82rem; }
.balance-breakdown strong[b-k9uxkdtasp] { color: var(--text-primary); font-size: 1.05rem; }

.billing-lower[b-k9uxkdtasp] {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;
}

.entity[b-k9uxkdtasp] { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 12px 0; }
.entity dt[b-k9uxkdtasp] { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); margin-top: 8px; }
.entity dd[b-k9uxkdtasp] { margin: 0; font-weight: 600; }

.card-head[b-k9uxkdtasp] { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.ms-table[b-k9uxkdtasp] { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ms-table th[b-k9uxkdtasp] { text-align: left; font-weight: 600; color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: .78rem; text-transform: uppercase; }
.ms-table td[b-k9uxkdtasp] { padding: 10px; border-bottom: 1px solid var(--border); }
.credit-pos[b-k9uxkdtasp] { color: var(--status-drafting); font-weight: 700; }
.credit-neg[b-k9uxkdtasp] { color: #ef4444; font-weight: 700; }

.pager[b-k9uxkdtasp] { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: .85rem; }

@media (max-width: 767.98px) {
    .billing-header[b-k9uxkdtasp] { flex-direction: column; align-items: stretch; }
    .balance-pill[b-k9uxkdtasp] { align-items: flex-start; min-width: 0; }
}

@media (max-width: 1000px) {
    .offering-grid[b-k9uxkdtasp] { grid-template-columns: 1fr; }
    .billing-lower[b-k9uxkdtasp] { grid-template-columns: 1fr; }
    .balance-breakdown[b-k9uxkdtasp] { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .ms-table[b-k9uxkdtasp] { display: block; overflow-x: auto; }
}
/* /Components/Dashboard/ActiveManuscriptsTable.razor.rz.scp.css */
.card-head[b-upkolr0wpz] { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.view-all[b-upkolr0wpz] { font-size: .85rem; color: var(--brand-primary); text-decoration: none; }

.ms-table[b-upkolr0wpz] { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ms-table th[b-upkolr0wpz] {
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.ms-table td[b-upkolr0wpz] { padding: 12px 10px; border-bottom: 1px solid var(--border); }
.ms-table tr:last-child td[b-upkolr0wpz] { border-bottom: none; }
.title-cell[b-upkolr0wpz] { font-weight: 600; color: var(--text-primary); }
/* /Components/Dashboard/AiInsightsPanel.razor.rz.scp.css */
.card-head[b-ucwjvklyai] { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.insight-count[b-ucwjvklyai] { font-size: .8rem; color: var(--text-muted); }

.insight-list[b-ucwjvklyai] { display: flex; flex-direction: column; gap: 10px; }

.insight[b-ucwjvklyai] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    position: relative;
}

.insight.warn[b-ucwjvklyai] { background: #fff7ed; border-color: #fed7aa; }
.insight.info[b-ucwjvklyai] { background: var(--brand-primary-50); border-color: #ddd6fe; }

.insight-icon[b-ucwjvklyai] { font-size: 1.1rem; margin-top: 2px; }
.insight.warn .insight-icon[b-ucwjvklyai] { color: var(--status-review); }
.insight.info .insight-icon[b-ucwjvklyai] { color: var(--brand-primary); }

.insight-body[b-ucwjvklyai] { flex: 1; }
.insight-title[b-ucwjvklyai] { font-weight: 600; font-size: .9rem; }
.insight-text[b-ucwjvklyai] { font-size: .85rem; color: var(--text-muted); }

.dismiss[b-ucwjvklyai] { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; }
/* /Components/Dashboard/CreditBalanceWidget.razor.rz.scp.css */
.balance-widget[b-8s5t5nf44b] { display: flex; flex-direction: column; gap: 6px; }
.balance-number[b-8s5t5nf44b] { font-size: 2.4rem; font-weight: 800; color: var(--brand-primary); line-height: 1.1; }
.balance-sub[b-8s5t5nf44b] { color: var(--text-muted); font-size: .85rem; }
.pending[b-8s5t5nf44b] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-muted);
    background: var(--surface-muted);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 0;
}
/* /Components/Dashboard/NarrativeTimeline.razor.rz.scp.css */
.card-head[b-9qxh0tn8z2] { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.timeline[b-9qxh0tn8z2] { display: flex; flex-direction: column; gap: 8px; }

.timeline-head[b-9qxh0tn8z2], .timeline-row[b-9qxh0tn8z2] {
    display: grid;
    grid-template-columns: 140px repeat(3, 1fr);
    align-items: center;
    gap: 8px;
}

.timeline-head .act-col[b-9qxh0tn8z2] {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    text-align: center;
}

.track-label[b-9qxh0tn8z2] { font-size: .85rem; font-weight: 600; color: var(--text-primary); }

.act-cell[b-9qxh0tn8z2] { height: 22px; display: flex; align-items: center; }

.bar[b-9qxh0tn8z2] { height: 10px; width: 100%; border-radius: 999px; }
.bar-primary[b-9qxh0tn8z2] { background: var(--brand-primary); }
.bar-green[b-9qxh0tn8z2] { background: var(--status-drafting); }
.bar-amber[b-9qxh0tn8z2] { background: var(--status-review); }
.bar-blue[b-9qxh0tn8z2] { background: #3b82f6; }
/* /Components/Dashboard/QuickImportCard.razor.rz.scp.css */
.quick-import[b-x02xyp752x] { display: flex; flex-direction: column; gap: 10px; }

.dropzone[b-x02xyp752x] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color .15s, background .15s;
}

.dropzone:hover[b-x02xyp752x] { border-color: var(--brand-primary); background: var(--brand-primary-50); }

.dropzone-input[b-x02xyp752x] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone-icon[b-x02xyp752x] { font-size: 1.8rem; color: var(--brand-primary); }
.dropzone-text[b-x02xyp752x] { font-weight: 600; color: var(--text-primary); }
.dropzone-hint[b-x02xyp752x] { font-size: .8rem; color: var(--text-muted); }

.quick-actions[b-x02xyp752x] { display: flex; gap: 8px; margin-top: 4px; }
/* /Components/EditStory/ProposalDiffView.razor.rz.scp.css */
.proposal-card[b-mnsk617kp3] {
    --diff-ins-bg: #dcfce7;
    --diff-ins-fg: #14532d;
    --diff-del-bg: #fee2e2;
    --diff-del-fg: #7f1d1d;

    border: 1px solid var(--border);
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    background: var(--surface);
    padding: 10px 12px;
    margin-top: 10px;
    color: var(--text-primary);
}

[data-theme="dark"] .proposal-card[b-mnsk617kp3] {
    --diff-ins-bg: rgba(34, 197, 94, .22);
    --diff-ins-fg: #bbf7d0;
    --diff-del-bg: rgba(239, 68, 68, .22);
    --diff-del-fg: #fecaca;
}

.proposal-card.is-accepted[b-mnsk617kp3] { border-left-color: #16a34a; }
.proposal-card.is-rejected[b-mnsk617kp3] { border-left-color: #9ca3af; opacity: .75; }

.proposal-card__head[b-mnsk617kp3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.proposal-card__where[b-mnsk617kp3] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
    text-align: left;
}

.proposal-card__where:hover[b-mnsk617kp3] { text-decoration: underline; }

.proposal-card__status[b-mnsk617kp3] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.is-accepted .proposal-card__status[b-mnsk617kp3] { color: #16a34a; }

.proposal-diff[b-mnsk617kp3] {
    margin: 0;
    font-family: Georgia, serif;
    font-size: .95rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.diff-ins[b-mnsk617kp3] {
    background: var(--diff-ins-bg);
    color: var(--diff-ins-fg);
    text-decoration: underline;
    text-decoration-color: #16a34a;
    text-underline-offset: 3px;
    border-radius: 3px;
    padding: 0 1px;
}

.diff-del[b-mnsk617kp3] {
    background: var(--diff-del-bg);
    color: var(--diff-del-fg);
    text-decoration: line-through;
    text-decoration-color: #dc2626;
    border-radius: 3px;
    padding: 0 1px;
}

.diff-collapsed[b-mnsk617kp3] {
    border: 1px dashed var(--border);
    border-radius: 4px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font: inherit;
    padding: 0 4px;
    cursor: pointer;
}

.proposal-side[b-mnsk617kp3] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.proposal-side__label[b-mnsk617kp3] {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.proposal-legend[b-mnsk617kp3] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 0;
    font-size: .72rem;
    color: var(--text-muted);
}

.proposal-adjusted[b-mnsk617kp3] { font-weight: 700; color: var(--brand-primary); }

.proposal-card__collapsed[b-mnsk617kp3] {
    margin: 0;
    font-size: .85rem;
    color: var(--text-muted);
}

.proposal-card__actions[b-mnsk617kp3] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.proposal-card__actions .btn[b-mnsk617kp3] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .proposal-side[b-mnsk617kp3] { grid-template-columns: 1fr; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Breakpoints (Feature 35, WI-A1): desktop >= 1200px full sidebar; tablet 768-1199.98px
   76px icon rail; phone < 768px off-canvas drawer (see SidebarNav.razor.css). */
.app-shell[b-x52at0dc7d] {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.app-shell--no-nav[b-x52at0dc7d] {
    grid-template-columns: 1fr;
}

.app-main[b-x52at0dc7d] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-content[b-x52at0dc7d] {
    padding: 24px;
    background: var(--surface-muted);
    flex: 1;
    min-width: 0;
}

.app-backdrop[b-x52at0dc7d] {
    display: none;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .app-shell[b-x52at0dc7d] { grid-template-columns: 76px minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
    .app-shell[b-x52at0dc7d] { grid-template-columns: minmax(0, 1fr); }
    .app-content[b-x52at0dc7d] { padding: 16px; }

    .app-backdrop[b-x52at0dc7d] {
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(15, 23, 42, .5);
    }

    body.nav-open .app-backdrop[b-x52at0dc7d] { display: block; }
}
/* /Components/Layout/ProjectContextBar.razor.rz.scp.css */
.project-bar[b-ocdoye8kqd] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 10px 14px;
    margin-bottom: 18px;
}

.project-bar__label[b-ocdoye8kqd] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-primary);
}

.project-bar__label .bi[b-ocdoye8kqd] { color: var(--brand-primary); font-size: 1.05rem; }

.project-bar__select[b-ocdoye8kqd] {
    flex: 1 1 260px;
    max-width: 480px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: .92rem;
    background: var(--surface);
    color: var(--text-primary);
}

.project-bar__pill[b-ocdoye8kqd] {
    background: var(--brand-primary-50);
    color: var(--brand-primary);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
}

[data-theme="dark"] .project-bar__pill[b-ocdoye8kqd] {
    background: rgba(167, 139, 250, .18);
    color: #c4b5fd;
}

.project-bar__status[b-ocdoye8kqd],
.project-bar__error[b-ocdoye8kqd],
.project-bar__empty[b-ocdoye8kqd] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-muted);
}

.project-bar__error[b-ocdoye8kqd] { color: #dc2626; }

.project-bar__spinner[b-ocdoye8kqd] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--brand-primary);
    animation: project-bar-spin-b-ocdoye8kqd .8s linear infinite;
}

@keyframes project-bar-spin-b-ocdoye8kqd {
    to { transform: rotate(360deg); }
}

.project-bar__manage[b-ocdoye8kqd] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    white-space: nowrap;
}

.project-bar__manage:hover[b-ocdoye8kqd] { text-decoration: underline; }

@media (max-width: 767.98px) {
    .project-bar[b-ocdoye8kqd] { padding: 10px 12px; }
    .project-bar__select[b-ocdoye8kqd] { flex-basis: 100%; max-width: none; }
    .project-bar__manage[b-ocdoye8kqd] { margin-left: 0; }
}
/* /Components/Layout/SidebarNav.razor.rz.scp.css */
/* Breakpoints (Feature 35, WI-A1), shared with MainLayout.razor.css and TopBar.razor.css:
   desktop >= 1200px full sidebar; tablet 768-1199.98px icon rail; phone < 768px drawer. */

.sidebar-nav[b-cn35bg1sx3] {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    height: 100dvh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    overflow-y: auto;
}

.brand[b-cn35bg1sx3] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 18px 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.brand-logo[b-cn35bg1sx3] {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.brand-pro[b-cn35bg1sx3] {
    color: var(--brand-primary);
}

.sidebar-close[b-cn35bg1sx3] {
    display: none;
    margin-left: auto;
    border: none;
    background: transparent;
    color: var(--sidebar-text);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

.sidebar-close:hover[b-cn35bg1sx3] { background: rgba(255, 255, 255, .08); color: #fff; }

.nav-section[b-cn35bg1sx3] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-section--admin[b-cn35bg1sx3] {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.nav-heading[b-cn35bg1sx3] {
    padding: 4px 12px 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
}

.build-number[b-cn35bg1sx3] {
    position: sticky;
    bottom: -18px;
    flex-shrink: 0;
    margin: auto -14px -18px;
    padding: 10px 14px 12px;
    background: var(--sidebar-bg);
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--sidebar-text);
    font-size: .72rem;
    text-align: center;
    opacity: .72;
}

[b-cn35bg1sx3] .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: .92rem;
    transition: background .15s, color .15s;
}

[b-cn35bg1sx3] .nav-item .bi {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

[b-cn35bg1sx3] .nav-item:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--sidebar-text-active);
}

[b-cn35bg1sx3] .nav-item.active {
    background: var(--brand-primary);
    color: #fff;
}

/* Tablet: icon-only rail; the link titles provide tooltips. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .sidebar-nav[b-cn35bg1sx3] { padding: 18px 10px; }
    .brand[b-cn35bg1sx3] { justify-content: center; padding: 8px 0 18px; }
    .brand-text[b-cn35bg1sx3], .nav-heading[b-cn35bg1sx3] { display: none; }
    [b-cn35bg1sx3] .nav-item { justify-content: center; padding: 12px 0; }
    [b-cn35bg1sx3] .nav-item .nav-label { display: none; }
    .build-number[b-cn35bg1sx3] { font-size: .6rem; margin: auto -10px -18px; padding: 8px 4px; }
}

/* Phone: off-canvas drawer, opened by the top-bar hamburger (body.nav-open). */
@media (max-width: 767.98px) {
    .sidebar-nav[b-cn35bg1sx3] {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 86vw);
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: none;
        visibility: hidden;
    }

    body.nav-open .sidebar-nav[b-cn35bg1sx3] {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, .35);
        visibility: visible;
    }

    .sidebar-close[b-cn35bg1sx3] { display: inline-flex; align-items: center; justify-content: center; }

    [b-cn35bg1sx3] .nav-item { padding: 12px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-nav[b-cn35bg1sx3] { transition: none; }
}
/* /Components/Layout/TopBar.razor.rz.scp.css */
.top-bar[b-odyt01extp] {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.top-left[b-odyt01extp] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.top-right[b-odyt01extp] {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.icon-btn[b-odyt01extp] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.icon-btn:hover[b-odyt01extp] { background: var(--surface-muted); color: var(--text-primary); }

.nav-toggle[b-odyt01extp],
.topbar-brand[b-odyt01extp] {
    display: none;
}

.topbar-brand[b-odyt01extp] {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.topbar-brand span[b-odyt01extp] { color: var(--brand-primary); }

.signin-btn[b-odyt01extp] {
    background: var(--brand-primary);
    color: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
}

.user-menu[b-odyt01extp] {
    position: relative;
}

.avatar[b-odyt01extp] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.avatar:focus-visible[b-odyt01extp] { outline: 3px solid var(--brand-primary-50); outline-offset: 2px; }

.user-dropdown[b-odyt01extp] {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    z-index: 1050;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    min-width: 230px;
    padding: 6px;
    flex-direction: column;
    gap: 2px;
}

/* Opened by click or tap (app-shell.js), never by hover alone, so it works on phones. */
.user-menu.open .user-dropdown[b-odyt01extp] {
    display: flex;
}

.user-dropdown__name[b-odyt01extp] {
    padding: 8px 10px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown form[b-odyt01extp] { margin: 0; }

.user-dropdown a[b-odyt01extp],
.user-dropdown button[b-odyt01extp],
.user-dropdown__help[b-odyt01extp]  a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    text-align: left;
    background: transparent;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

.user-dropdown a:hover[b-odyt01extp],
.user-dropdown button:hover[b-odyt01extp],
.user-dropdown__help[b-odyt01extp]  a:hover {
    background: var(--surface-muted);
    color: var(--text-primary);
}

.user-dropdown .bi[b-odyt01extp],
.user-dropdown__help[b-odyt01extp]  .bi {
    width: 18px;
    text-align: center;
    color: var(--brand-primary);
}

/* The theme item only appears on phones, where the top-bar toggle is hidden. */
.user-dropdown .user-dropdown__theme[b-odyt01extp] { display: none; }

@media (min-width: 768px) and (max-width: 1199.98px) {
    .top-bar[b-odyt01extp] { padding: 0 16px; }
}

@media (max-width: 767.98px) {
    .top-bar[b-odyt01extp] { padding: 0 8px 0 4px; height: 56px; gap: 6px; }
    .top-right[b-odyt01extp] { gap: 6px; }
    .nav-toggle[b-odyt01extp] { display: inline-flex; font-size: 1.5rem; color: var(--text-primary); }
    .topbar-brand[b-odyt01extp] { display: inline; }
    .topbar-help[b-odyt01extp],
    .theme-toggle[b-odyt01extp] { display: none; }
    .user-dropdown .user-dropdown__theme[b-odyt01extp] { display: flex; }
    .user-dropdown[b-odyt01extp] { position: fixed; top: 60px; right: 8px; max-width: calc(100vw - 16px); }
}

@media (max-width: 380px) {
    .topbar-brand[b-odyt01extp] { font-size: .9rem; }
}
/* /Components/Pages/Account.razor.rz.scp.css */
.account-header[b-e3jb294yy2] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.account-title[b-e3jb294yy2] {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.account-tabs[b-e3jb294yy2] {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.account-tabs[b-e3jb294yy2]::-webkit-scrollbar { display: none; }

.account-tab[b-e3jb294yy2] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    white-space: nowrap;
}

.account-tab:hover[b-e3jb294yy2] { color: var(--text-primary); }

.account-tab.active[b-e3jb294yy2] {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}
/* /Components/Pages/Admin/AdminFileProcesses.razor.rz.scp.css */
.file-processes-toolbar[b-tsxwii3sh9] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.import-summary-strip[b-tsxwii3sh9] {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #f8f9fb;
}

.import-summary-strip__item[b-tsxwii3sh9] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.import-summary-strip__label[b-tsxwii3sh9] {
    color: var(--asb-muted, #6b7280);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.import-summary-strip__value[b-tsxwii3sh9] {
    font-size: 1.05rem;
}

.import-summary-strip__value.is-warning[b-tsxwii3sh9] {
    color: #b45309;
}

.file-processes-toolbar__hint[b-tsxwii3sh9] {
    margin-left: auto;
    color: var(--asb-muted, #6b7280);
    font-size: 0.8rem;
}

.file-processes-grid[b-tsxwii3sh9] {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fff;
}

.file-processes-grid:focus-visible[b-tsxwii3sh9] {
    outline: 2px solid #6046ff;
    outline-offset: 2px;
}

[b-tsxwii3sh9] .rz-data-grid {
    border: 0;
}

[b-tsxwii3sh9] .rz-grid-table thead th {
    color: #273043;
    font-weight: 700;
}

[b-tsxwii3sh9] .rz-grid-table tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

[b-tsxwii3sh9] .rz-grid-table tbody tr:hover td {
    background-color: #eef2ff;
}

.file-name[b-tsxwii3sh9] {
    display: block;
    overflow: hidden;
    color: #1f2937;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-status[b-tsxwii3sh9] {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 0.18rem 0.5rem;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-state[b-tsxwii3sh9] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #28734b;
    font-weight: 700;
}

.error-state--yes[b-tsxwii3sh9] {
    color: #b42318;
}

.not-recorded[b-tsxwii3sh9] {
    color: #6b7280;
    font-style: italic;
}

.blob-download[b-tsxwii3sh9] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    color: #2546a8;
    font-weight: 600;
    text-decoration: none;
}

.blob-download:hover[b-tsxwii3sh9],
.blob-download:focus-visible[b-tsxwii3sh9] {
    color: #173487;
    text-decoration: underline;
}

.blob-download__name[b-tsxwii3sh9] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .file-processes-toolbar[b-tsxwii3sh9] {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .file-processes-toolbar__hint[b-tsxwii3sh9] {
        flex-basis: 100%;
        margin-left: 0;
    }
}
/* /Components/Pages/Dashboard.razor.rz.scp.css */
.dash-header[b-wgmn5oj9wk] { margin-bottom: 18px; }
.dash-title[b-wgmn5oj9wk] { font-size: 1.6rem; font-weight: 800; margin: 0; }

.dash-grid[b-wgmn5oj9wk] {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    align-items: start;
}

.col-main[b-wgmn5oj9wk], .col-side[b-wgmn5oj9wk] { display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 1100px) {
    .dash-grid[b-wgmn5oj9wk] { grid-template-columns: 1fr; }
}
/* /Components/Pages/Dialogs/ImportWizardDialog.razor.rz.scp.css */
/* ── Import wizard: shared ─────────────────────────────── */

.import-wizard[b-29n3vloqcf] {
    min-width: 340px;
}

.import-tiles[b-29n3vloqcf] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.import-tile[b-29n3vloqcf] {
    border: 1px solid var(--border-color, #e3e6ea);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--surface-2, #fafbfc);
}

.import-tile .tile-icon[b-29n3vloqcf] {
    font-size: 1.6rem;
    color: var(--brand-primary, #6f42c1);
    line-height: 1;
}

.tile-label[b-29n3vloqcf] {
    font-size: .8rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.tile-badge[b-29n3vloqcf] {
    font-size: .68rem;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.tile-badge.free[b-29n3vloqcf] {
    background: #e6f6ec;
    color: #1a7f4b;
}

.tile-badge.paid[b-29n3vloqcf] {
    background: #f1ecfb;
    color: #6f42c1;
}

/* ── Estimate phase ────────────────────────────────────── */

.iw-estimate-head[b-29n3vloqcf] {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.iw-file-badge[b-29n3vloqcf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    font-size: 1.4rem;
    color: var(--brand-primary, #6f42c1);
    background: linear-gradient(135deg, #f1ecfb, #e6e0f8);
}

.iw-file-badge.done[b-29n3vloqcf] {
    color: #1a7f4b;
    background: linear-gradient(135deg, #e6f6ec, #d4efdf);
}

.iw-file-badge.error[b-29n3vloqcf] {
    color: #b02a37;
    background: linear-gradient(135deg, #fbebec, #f6d5d8);
}

.iw-title[b-29n3vloqcf] {
    margin: 0;
    font-weight: 700;
}

.iw-subtitle[b-29n3vloqcf] {
    font-size: .85rem;
    color: #8a8f98;
    overflow-wrap: anywhere;
}

.iw-stat-grid[b-29n3vloqcf] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.iw-stat[b-29n3vloqcf] {
    border: 1px solid var(--border-color, #e3e6ea);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--surface-2, #fafbfc);
}

.iw-stat-after[b-29n3vloqcf] {
    border-color: var(--brand-primary, #6f42c1);
    background: #f7f4fd;
}

.iw-stat-wide[b-29n3vloqcf] {
    grid-column: 1 / -1;
}

.iw-stat-label[b-29n3vloqcf] {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a8f98;
    display: flex;
    align-items: center;
    gap: 6px;
}

.iw-stat-value[b-29n3vloqcf] {
    font-size: 1.15rem;
    font-weight: 700;
}

.iw-stat-value small[b-29n3vloqcf] {
    font-size: .75rem;
    font-weight: 500;
    color: #8a8f98;
}

.iw-rubric[b-29n3vloqcf] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border-color, #e3e6ea);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--surface-2, #fafbfc);
}

.iw-actions[b-29n3vloqcf] {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.iw-cta[b-29n3vloqcf] {
    padding-inline: 22px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(111, 66, 193, .25);
}

/* ── Tracking phase ────────────────────────────────────── */

.iw-stages[b-29n3vloqcf] {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 4px 0 14px;
    gap: 0;
}

.iw-stage[b-29n3vloqcf] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.iw-stage:not(:first-child)[b-29n3vloqcf]::before {
    content: "";
    position: absolute;
    top: 9px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color, #e3e6ea);
    z-index: 0;
}

.iw-stage.done:not(:first-child)[b-29n3vloqcf]::before,
.iw-stage.active:not(:first-child)[b-29n3vloqcf]::before {
    background: var(--brand-primary, #6f42c1);
}

.iw-stage-dot[b-29n3vloqcf] {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #e3e6ea);
    background: #fff;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: #fff;
}

.iw-stage.done .iw-stage-dot[b-29n3vloqcf] {
    background: var(--brand-primary, #6f42c1);
    border-color: var(--brand-primary, #6f42c1);
}

.iw-stage.active .iw-stage-dot[b-29n3vloqcf] {
    border-color: var(--brand-primary, #6f42c1);
    box-shadow: 0 0 0 4px rgba(111, 66, 193, .18);
    animation: iw-pulse-b-29n3vloqcf 1.4s ease-in-out infinite;
}

.iw-stage.error .iw-stage-dot[b-29n3vloqcf] {
    border-color: #b02a37;
    background: #b02a37;
}

.iw-stage-label[b-29n3vloqcf] {
    font-size: .7rem;
    color: #8a8f98;
    text-align: center;
}

.iw-stage.active .iw-stage-label[b-29n3vloqcf],
.iw-stage.done .iw-stage-label[b-29n3vloqcf] {
    color: var(--brand-primary, #6f42c1);
    font-weight: 600;
}

@keyframes iw-pulse-b-29n3vloqcf {
    0%, 100% { box-shadow: 0 0 0 3px rgba(111, 66, 193, .12); }
    50% { box-shadow: 0 0 0 7px rgba(111, 66, 193, .22); }
}

/* ── Feature 35, WI-E3: image statement and estimate breakdown ── */
.iw-image-policy[b-29n3vloqcf] {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    font-size: .88rem;
}

.iw-image-policy > .bi[b-29n3vloqcf] {
    font-size: 1.2rem;
    color: var(--brand-primary);
}

.iw-breakdown[b-29n3vloqcf] {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    background: var(--surface);
    font-size: .86rem;
}

.iw-breakdown summary[b-29n3vloqcf] {
    cursor: pointer;
    font-weight: 700;
    color: var(--brand-primary);
}

.iw-breakdown__list[b-29n3vloqcf] {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    color: var(--text-primary);
}

.iw-breakdown__list li + li[b-29n3vloqcf] { margin-top: 4px; }
/* /Components/Pages/Disclaimer.razor.rz.scp.css */
/* Page-local palette. Every text colour is paired with the surface it sits on, in both
   themes, so the disclaimer never renders light text on a light card (tester feedback F2). */
.disclaimer-wrap[b-xv66emfo84] {
    --dc-page: #F4F1FB;
    --dc-card: #FFFFFF;
    --dc-point: #F4F1FB;
    --dc-text: #1F2233;
    --dc-muted: #4E5366;
    --dc-border: #D9D4EE;
    --dc-accent: #5B4BE1;
    --dc-shadow: 0 12px 32px rgba(91, 75, 225, .16);

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dc-page);
    color: var(--dc-text);
    padding: 24px 16px;
}

[data-theme="dark"] .disclaimer-wrap[b-xv66emfo84] {
    --dc-page: #14122A;
    --dc-card: #201D3A;
    --dc-point: #2A2650;
    --dc-text: #F2F2F7;
    --dc-muted: #C3C5D8;
    --dc-border: #423D6E;
    --dc-accent: #A99BFF;
    --dc-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

.disclaimer-card[b-xv66emfo84] {
    background: var(--dc-card);
    color: var(--dc-text);
    border-radius: 16px;
    box-shadow: var(--dc-shadow);
    max-width: 720px;
    width: 100%;
    padding: 40px;
}

.disclaimer-brand[b-xv66emfo84] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dc-text);
}

.disclaimer-brand .bi[b-xv66emfo84] { color: var(--dc-accent); font-size: 24px; }
.disclaimer-brand-pro[b-xv66emfo84] { color: var(--dc-accent); }

.disclaimer-title[b-xv66emfo84] {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--dc-text);
}

.disclaimer-lead[b-xv66emfo84] { color: var(--dc-muted); margin: 0 0 24px; }

.disclaimer-body[b-xv66emfo84] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.disclaimer-point[b-xv66emfo84] {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--dc-point);
    border: 1px solid var(--dc-border);
    border-left: 4px solid var(--dc-accent);
    border-radius: 12px;
    line-height: 1.5;
    color: var(--dc-text);
}

.disclaimer-point .bi[b-xv66emfo84] { color: var(--dc-accent); font-size: 20px; margin-top: 2px; }

.disclaimer-subhead-row[b-xv66emfo84] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.disclaimer-subhead[b-xv66emfo84] {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--dc-text);
}

.disclaimer-scroll-hint[b-xv66emfo84] { font-size: 13px; color: var(--dc-muted); }

.disclaimer-scrollbox[b-xv66emfo84] {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--dc-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: var(--dc-card);
    color: var(--dc-text);
    line-height: 1.6;
    font-size: 14px;
}

.disclaimer-scrollbox:focus-visible[b-xv66emfo84] { outline: 2px solid var(--dc-accent); outline-offset: 2px; }

.disclaimer-scrollbox[b-xv66emfo84]  h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 16px 0 6px;
    color: var(--dc-text);
}

.disclaimer-scrollbox[b-xv66emfo84]  h3:first-child { margin-top: 0; }
.disclaimer-scrollbox[b-xv66emfo84]  p { color: var(--dc-text); margin: 0 0 10px; }
.disclaimer-scrollbox[b-xv66emfo84]  a { color: var(--dc-accent); }

.disclaimer-ack[b-xv66emfo84] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-weight: 600;
    color: var(--dc-text);
    cursor: pointer;
}

.disclaimer-ack input[b-xv66emfo84] { width: 18px; height: 18px; accent-color: var(--dc-accent); }

.disclaimer-actions[b-xv66emfo84] {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.disclaimer-btn[b-xv66emfo84] {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    cursor: pointer;
}

.disclaimer-btn-primary[b-xv66emfo84] { background: #5B4BE1; color: #fff; }
.disclaimer-btn-primary:hover[b-xv66emfo84] { background: #4A3BD0; }

.disclaimer-btn-outline[b-xv66emfo84] {
    background: transparent;
    border: 1px solid var(--dc-border);
    color: var(--dc-text);
}

.disclaimer-version[b-xv66emfo84] {
    text-align: right;
    color: var(--dc-muted);
    font-size: 12px;
    margin: 18px 0 0;
}

@media (max-width: 600px) {
    .disclaimer-card[b-xv66emfo84] { padding: 24px 18px; }
    .disclaimer-title[b-xv66emfo84] { font-size: 22px; }
    .disclaimer-actions[b-xv66emfo84] { flex-direction: column-reverse; }
    .disclaimer-actions form[b-xv66emfo84], .disclaimer-btn[b-xv66emfo84] { width: 100%; }
}
/* /Components/Pages/EditStory.razor.rz.scp.css */
/* Edit Story. Colours come from the app theme tokens (app.css) so the page works in dark mode;
   the accent bars give each panel its own colour (Feature 35, WI-G3). */
.edit-story-root[b-3cit3v4fnb] {
    --edit-story-accent: #5b3df5;
    --edit-chat-accent: #0d9488;
    --edit-recent: #bbf7d0;
    --edit-recent-border: #16a34a;
    --edit-active-bg: #f5f3ff;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
    height: calc(100vh - 190px);
    min-height: 480px;
    margin-top: 0.75rem;
}

[data-theme="dark"] .edit-story-root[b-3cit3v4fnb] {
    --edit-recent: rgba(34, 197, 94, .3);
    --edit-active-bg: rgba(124, 58, 237, .16);
}

@media (max-width: 991.98px) {
    .edit-story-root[b-3cit3v4fnb] {
        grid-template-columns: 1fr;
        height: auto;
    }

    /* Phones and small tablets: one panel at a time, switched by the tabs above. */
    .edit-story-root.show-story .edit-panel--chat[b-3cit3v4fnb],
    .edit-story-root.show-chat .edit-panel--story[b-3cit3v4fnb] {
        display: none;
    }

    .edit-panel[b-3cit3v4fnb] { max-height: none; }
    .edit-story-text[b-3cit3v4fnb] { max-height: 70vh; }
}

.edit-pane-switch[b-3cit3v4fnb] {
    display: none;
}

@media (max-width: 991.98px) {
    .edit-pane-switch[b-3cit3v4fnb] {
        display: flex;
        gap: 4px;
        padding: 4px;
        margin-top: 0.5rem;
        border-radius: 12px;
        background: var(--surface);
        border: 1px solid var(--border);
    }
}

.edit-pane-tab[b-3cit3v4fnb] {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .9rem;
}

.edit-pane-tab.is-active[b-3cit3v4fnb] {
    background: var(--brand-primary);
    color: #fff;
}

.edit-pane-count[b-3cit3v4fnb] {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    font-size: .72rem;
}

.edit-pane-tab:not(.is-active) .edit-pane-count[b-3cit3v4fnb] { background: var(--surface-muted); color: var(--text-primary); }
.edit-pane-count.is-alert[b-3cit3v4fnb] { background: #f59e0b !important; color: #111 !important; }

.edit-panel[b-3cit3v4fnb] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-top: 4px solid var(--edit-story-accent);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-card);
}

.edit-panel--chat[b-3cit3v4fnb] {
    border-top-color: var(--edit-chat-accent);
}

.edit-panel-header[b-3cit3v4fnb] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.edit-eyebrow[b-3cit3v4fnb] {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--edit-story-accent);
    font-weight: 700;
}

.edit-panel--chat .edit-eyebrow[b-3cit3v4fnb] { color: var(--edit-chat-accent); }

[data-theme="dark"] .edit-eyebrow[b-3cit3v4fnb] { color: #a99bff; }
[data-theme="dark"] .edit-panel--chat .edit-eyebrow[b-3cit3v4fnb] { color: #5eead4; }

.edit-action-bar[b-3cit3v4fnb] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
}

.edit-action-bar .btn[b-3cit3v4fnb] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

.edit-dirty-pill[b-3cit3v4fnb] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    cursor: help;
}

/* Toolbar dropdowns (Recent changes, Export). */
.edit-menu[b-3cit3v4fnb] {
    position: relative;
}

.edit-menu--end[b-3cit3v4fnb] { margin-left: auto; }

.edit-recent-chip[b-3cit3v4fnb] {
    border: 1px solid var(--edit-recent-border);
    background: var(--edit-recent);
    color: var(--text-primary);
}

.edit-menu__list[b-3cit3v4fnb] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
}

.edit-menu__list--end[b-3cit3v4fnb] { left: auto; right: 0; }

.edit-menu__list button[b-3cit3v4fnb] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-size: .88rem;
    text-align: left;
}

.edit-menu__list button:hover[b-3cit3v4fnb] { background: var(--surface-muted); }
.edit-menu__list .bi[b-3cit3v4fnb] { color: var(--brand-primary); }
.edit-menu__secondary[b-3cit3v4fnb] { border-top: 1px solid var(--border) !important; border-radius: 0 0 8px 8px !important; }

.edit-menu__note[b-3cit3v4fnb] {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* First-visit guide and the sample's example-fix offer. */
.edit-guide[b-3cit3v4fnb],
.edit-example[b-3cit3v4fnb] {
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.75rem;
    font-size: .86rem;
}

.edit-guide[b-3cit3v4fnb] {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #1e1b4b;
}

[data-theme="dark"] .edit-guide[b-3cit3v4fnb] {
    border-color: #3730a3;
    background: rgba(79, 70, 229, .18);
    color: var(--text-primary);
}

.edit-guide__head[b-3cit3v4fnb] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.edit-guide__steps[b-3cit3v4fnb] {
    margin: 0;
    padding-left: 1.2rem;
}

.edit-guide__steps li + li[b-3cit3v4fnb] { margin-top: 2px; }

.edit-example[b-3cit3v4fnb] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #451a03;
}

[data-theme="dark"] .edit-example[b-3cit3v4fnb] {
    border-color: #92400e;
    background: rgba(245, 158, 11, .14);
    color: var(--text-primary);
}

.edit-example > .bi[b-3cit3v4fnb] { font-size: 1.2rem; color: #d97706; }

.edit-example__text[b-3cit3v4fnb] {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.edit-story-text[b-3cit3v4fnb] {
    flex: 1 1 auto;
    min-height: 240px;
    width: 100%;
    resize: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface-muted);
    overflow-y: auto;
    white-space: pre-wrap;
}

.edit-story-text:focus-visible[b-3cit3v4fnb] {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.edit-chapter-title[b-3cit3v4fnb] {
    margin: 1rem 0 0.5rem;
    font-family: system-ui, sans-serif;
    font-weight: 600;
}

.edit-paragraph[b-3cit3v4fnb] {
    margin: 0 0 0.75rem;
    padding: 0.15rem 0.4rem;
    border-left: 3px solid transparent;
    scroll-margin-top: 1rem;
}

.edit-paragraph.is-active[b-3cit3v4fnb] {
    border-left-color: #7c3aed;
    background: var(--edit-active-bg);
}

/* Mirrored in asb-theme.css for the public demo (.pm-demo-story), which scoped CSS cannot reach. */
.edit-paragraph mark[b-3cit3v4fnb] {
    background: #fde68a;
    color: #1f2937;
    padding: 0 0.1rem;
}

/* An accepted change (WI-G2): soft green words plus a green bar, not colour alone. */
.edit-paragraph.is-recent-edit[b-3cit3v4fnb] {
    border-left-color: var(--edit-recent-border);
}

.edit-paragraph .edit-recent-mark[b-3cit3v4fnb] {
    background: var(--edit-recent);
    text-decoration: underline;
    text-decoration-color: var(--edit-recent-border);
    text-underline-offset: 3px;
}

.edit-scope-banner[b-3cit3v4fnb] {
    border: 1px solid #ddd6fe;
    background: var(--edit-active-bg);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .edit-scope-banner[b-3cit3v4fnb] { border-color: #4c1d95; }

.edit-scope-banner .btn[b-3cit3v4fnb] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

.edit-source-badges[b-3cit3v4fnb] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.edit-scope-actions[b-3cit3v4fnb] {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.edit-scope-nav[b-3cit3v4fnb] {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
}

.edit-scope-nav .btn[b-3cit3v4fnb] { padding-left: 0; padding-right: 0; }

.edit-occurrence-count[b-3cit3v4fnb] {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 0 0.25rem;
}

.edit-badge[b-3cit3v4fnb] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #4c1d95;
    background: #ede9fe;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
}

.edit-proposal[b-3cit3v4fnb] {
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    max-height: 50vh;
    overflow-y: auto;
    background: var(--surface-muted);
}

.edit-proposal__head[b-3cit3v4fnb] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edit-proposal__head .bi[b-3cit3v4fnb] { color: #d97706; }

.edit-recommendations[b-3cit3v4fnb] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-bottom: 0.75rem;
}

.edit-chat-messages[b-3cit3v4fnb] {
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-bottom: 0.75rem;
}

.edit-bubble--user[b-3cit3v4fnb] {
    background: var(--brand-primary);
    color: #fff;
}

.edit-bubble--ai[b-3cit3v4fnb] {
    background: var(--surface-muted);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.edit-chat-input textarea[b-3cit3v4fnb] {
    resize: none;
}

.min-w-0[b-3cit3v4fnb] { min-width: 0; }

.edit-proposal[b-3cit3v4fnb] { flex-shrink: 0; }

[data-theme="dark"] .edit-guide .btn-close[b-3cit3v4fnb],
[data-theme="dark"] .edit-example .btn-close[b-3cit3v4fnb] {
    filter: invert(1) grayscale(100%) brightness(200%);
}
/* /Components/Pages/Landing.razor.rz.scp.css */
.home[b-jkx2gxq7uk] {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-hero[b-jkx2gxq7uk] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, var(--brand-primary-50) 0%, var(--surface) 70%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .home-hero[b-jkx2gxq7uk] {
    background: linear-gradient(135deg, #2a2456 0%, var(--surface) 70%);
}

.home-eyebrow[b-jkx2gxq7uk] {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

[data-theme="dark"] .home-eyebrow[b-jkx2gxq7uk] { color: #a99bff; }

.home-title[b-jkx2gxq7uk] {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.home-lead[b-jkx2gxq7uk] {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 18px;
}

.home-ctas[b-jkx2gxq7uk] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-ctas .btn[b-jkx2gxq7uk] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-outline-brand[b-jkx2gxq7uk] {
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    background: var(--surface);
}

.btn-outline-brand:hover[b-jkx2gxq7uk] {
    color: #fff;
    background: var(--brand-primary);
}

[data-theme="dark"] .btn-outline-brand[b-jkx2gxq7uk] { color: #c4b5fd; border-color: #8b7cf6; }
[data-theme="dark"] .btn-outline-brand:hover[b-jkx2gxq7uk] { color: #fff; background: var(--brand-primary); }

.home-credits[b-jkx2gxq7uk] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 150px;
    padding: 14px 18px;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
}

.home-credits:hover[b-jkx2gxq7uk] { border-color: var(--brand-primary); }
.home-credits .bi[b-jkx2gxq7uk] { font-size: 1.3rem; color: var(--brand-primary); }
.home-credits__value[b-jkx2gxq7uk] { font-size: 1.5rem; font-weight: 800; }
.home-credits__label[b-jkx2gxq7uk] { font-size: .78rem; color: var(--text-muted); }

.home-grid[b-jkx2gxq7uk] {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 18px;
    align-items: start;
}

.home-card[b-jkx2gxq7uk] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 20px;
}

.home-card__head[b-jkx2gxq7uk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-card__title[b-jkx2gxq7uk] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.home-card__title .bi[b-jkx2gxq7uk] { color: var(--brand-primary); }

.home-muted[b-jkx2gxq7uk] { color: var(--text-muted); }

.home-checklist__count[b-jkx2gxq7uk] {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.home-progress[b-jkx2gxq7uk] {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-muted);
    overflow: hidden;
    margin-bottom: 14px;
}

.home-progress__bar[b-jkx2gxq7uk] {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-primary), #22c55e);
    transition: width .3s ease;
}

.home-steps[b-jkx2gxq7uk] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-step[b-jkx2gxq7uk] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.home-step.is-next[b-jkx2gxq7uk] {
    border-color: var(--brand-primary);
    background: var(--brand-primary-50);
}

[data-theme="dark"] .home-step.is-next[b-jkx2gxq7uk] { background: rgba(167, 139, 250, .10); }

.home-step__check[b-jkx2gxq7uk] {
    font-size: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.home-step.is-done .home-step__check[b-jkx2gxq7uk] { color: #16a34a; }

.home-step__body[b-jkx2gxq7uk] { flex: 1; min-width: 0; }

.home-step__title[b-jkx2gxq7uk] {
    font-weight: 600;
    color: var(--text-primary);
}

.home-step.is-done .home-step__title[b-jkx2gxq7uk] {
    color: var(--text-muted);
    text-decoration: line-through;
}

.home-step__desc[b-jkx2gxq7uk] {
    font-size: .85rem;
    color: var(--text-muted);
}

.home-step__action[b-jkx2gxq7uk] { flex-shrink: 0; white-space: nowrap; }

.home-hide[b-jkx2gxq7uk] {
    margin-top: 8px;
    padding-left: 0;
    color: var(--text-muted);
}

.home-continue__name[b-jkx2gxq7uk] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    word-break: break-word;
}

.home-pill[b-jkx2gxq7uk] {
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: .72rem;
    font-weight: 700;
}

.home-continue__actions[b-jkx2gxq7uk] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.home-continue__actions .btn[b-jkx2gxq7uk] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-link[b-jkx2gxq7uk] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--brand-primary);
    text-decoration: none;
}

.home-how__steps[b-jkx2gxq7uk] {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-how__steps h3[b-jkx2gxq7uk] {
    font-size: 1rem;
    font-weight: 700;
    margin: 10px 0 4px;
    color: var(--text-primary);
}

.home-how__steps p[b-jkx2gxq7uk] {
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.home-how__steps a[b-jkx2gxq7uk] { color: var(--brand-primary); }

.home-how__icon[b-jkx2gxq7uk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #fff;
}

.home-how__icon--upload[b-jkx2gxq7uk] { background: #5b3df5; }
.home-how__icon--review[b-jkx2gxq7uk] { background: #0d9488; }
.home-how__icon--fix[b-jkx2gxq7uk] { background: #d97706; }

@media (max-width: 991.98px) {
    .home-grid[b-jkx2gxq7uk] { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
    .home-hero[b-jkx2gxq7uk] { flex-direction: column; padding: 20px; }
    .home-credits[b-jkx2gxq7uk] { flex-direction: row; min-width: 0; align-self: stretch; justify-content: center; gap: 8px; }
    .home-ctas .btn[b-jkx2gxq7uk] { flex: 1 1 100%; justify-content: center; }
    .home-how__steps[b-jkx2gxq7uk] { grid-template-columns: minmax(0, 1fr); }
    .home-step[b-jkx2gxq7uk] { flex-wrap: wrap; }
    .home-step__action[b-jkx2gxq7uk] { margin-left: 32px; }
}
/* /Components/Pages/Login.razor.rz.scp.css */
.login-wrap[b-7inlpgd9s5] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.login-card[b-7inlpgd9s5] {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
}

.login-brand[b-7inlpgd9s5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-logo[b-7inlpgd9s5] { width: 72px; height: auto; }

.login-title[b-7inlpgd9s5] {
    margin: 0;
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
}

.login-error[b-7inlpgd9s5] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.login-error__close[b-7inlpgd9s5] {
    color: inherit;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
}

.provider-list[b-7inlpgd9s5] { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.provider-btn[b-7inlpgd9s5] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color .15s, box-shadow .15s;
}

.provider-btn:focus-visible[b-7inlpgd9s5] {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.provider-btn img[b-7inlpgd9s5] { flex-shrink: 0; }

.provider-btn--google[b-7inlpgd9s5] {
    background: #FFFFFF;
    border-color: #747775;
    color: #1F1F1F;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.provider-btn--google:hover[b-7inlpgd9s5] { background: #F8F9FA; box-shadow: 0 1px 2px rgba(60, 64, 67, .3); }

.provider-btn--microsoft[b-7inlpgd9s5] {
    background: #FFFFFF;
    border-color: #8C8C8C;
    color: #5E5E5E;
    font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: 15px;
}

.provider-btn--microsoft:hover[b-7inlpgd9s5] { background: #F3F3F3; }

[data-theme="dark"] .provider-btn--google[b-7inlpgd9s5] {
    background: #131314;
    border-color: #8E918F;
    color: #E3E3E3;
}

[data-theme="dark"] .provider-btn--google:hover[b-7inlpgd9s5] { background: #1F1F20; }

[data-theme="dark"] .provider-btn--microsoft[b-7inlpgd9s5] {
    background: #2F2F2F;
    border-color: #2F2F2F;
    color: #FFFFFF;
}

[data-theme="dark"] .provider-btn--microsoft:hover[b-7inlpgd9s5] { background: #3A3A3A; }

.login-legal[b-7inlpgd9s5] {
    margin: 8px 0 0;
    font-size: .8rem;
    text-align: center;
    color: var(--text-muted, inherit);
}
/* /Components/Pages/Manuscripts.razor.rz.scp.css */
.ms-upload[b-3wuq6glulc] {
    padding: 0;
}

.ms-dropzone[b-3wuq6glulc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 36px 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-card);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}

.ms-dropzone:hover[b-3wuq6glulc] {
    border-color: var(--brand-primary);
    background: var(--brand-primary-50);
}

.ms-dropzone.disabled[b-3wuq6glulc] {
    opacity: .6;
    pointer-events: none;
}

.ms-dropzone[b-3wuq6glulc]  input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.ms-dz-icon[b-3wuq6glulc] {
    font-size: 2rem;
    color: var(--brand-primary);
}

.ms-dz-title[b-3wuq6glulc] {
    font-weight: 600;
    color: var(--text-primary);
}

.ms-upload-note[b-3wuq6glulc] {
    margin: 12px 16px 14px;
    line-height: 1.5;
}

.ms-error[b-3wuq6glulc] {
    margin: 0 16px 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fdecec;
    color: #b42318;
    font-size: .9rem;
}

.ms-notice[b-3wuq6glulc] {
    margin: 0 16px 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #eaf7ee;
    color: #1a7f37;
    font-size: .9rem;
}

.ms-table[b-3wuq6glulc] {
    width: 100%;
    border-collapse: collapse;
}

.ms-table th[b-3wuq6glulc],
.ms-table td[b-3wuq6glulc] {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
}

.ms-table th[b-3wuq6glulc] {
    color: var(--text-muted);
    font-weight: 600;
}

.ms-table .title-cell[b-3wuq6glulc] {
    font-weight: 600;
    color: var(--text-primary);
}

/* Size, status, and date are short values; keep each on one line. */
.ms-table td.ms-meta[b-3wuq6glulc] {
    white-space: nowrap;
}

.ms-file-icon[b-3wuq6glulc] {
    margin-right: 8px;
    color: var(--brand-primary);
}

.ms-actions-col[b-3wuq6glulc] {
    width: 190px;
}

.ms-actions[b-3wuq6glulc] {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.ms-open[b-3wuq6glulc] {
    min-width: 64px;
    font-weight: 600;
}

.ms-active-row > td[b-3wuq6glulc] {
    background: var(--brand-primary-50);
}

[data-theme="dark"] .ms-active-row > td[b-3wuq6glulc] {
    background: rgba(167, 139, 250, .10);
}

.ms-badge[b-3wuq6glulc] {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    vertical-align: middle;
}

.ms-badge--sample[b-3wuq6glulc] {
    background: #fef3c7;
    color: #92400e;
}

.ms-badge--active[b-3wuq6glulc] {
    background: var(--brand-primary);
    color: #fff;
}

/* Phones: each project is a compact card. The name (with its badges) gets the first line,
   size · status · date share one muted line, and the actions sit on the last line. */
@media (max-width: 767.98px) {
    .ms-table thead[b-3wuq6glulc] { display: none; }
    .ms-table[b-3wuq6glulc], .ms-table tbody[b-3wuq6glulc] { display: block; width: 100%; }

    .ms-table tr[b-3wuq6glulc] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 0;
        row-gap: 6px;
        padding: 10px 8px;
        border-bottom: 1px solid var(--border);
    }

    .ms-table td[b-3wuq6glulc] {
        display: block;
        border-bottom: none;
        padding: 0;
    }

    .ms-table td.title-cell[b-3wuq6glulc] {
        flex: 0 0 100%;
        word-break: break-word;
    }

    .ms-table td.ms-meta[b-3wuq6glulc] {
        font-size: .82rem;
        color: var(--text-muted);
        white-space: nowrap;
    }

    .ms-table td.ms-meta + td.ms-meta[b-3wuq6glulc]::before {
        content: "·";
        margin: 0 8px;
        color: var(--text-muted);
    }

    .ms-table td.ms-actions[b-3wuq6glulc] {
        flex: 0 0 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ms-actions .ms-link[b-3wuq6glulc] { padding: 8px; font-size: 1.15rem; }

    .ms-share-row > td[b-3wuq6glulc] { flex: 0 0 100%; padding: 0; }

    /* The row, not each cell, carries the active tint, so the card has no gaps. */
    .ms-table tr.ms-active-row[b-3wuq6glulc] { background: var(--brand-primary-50); border-radius: 10px; }
    [data-theme="dark"] .ms-table tr.ms-active-row[b-3wuq6glulc] { background: rgba(167, 139, 250, .10); }
    .ms-table tr.ms-active-row > td[b-3wuq6glulc] { background: transparent; }
}

.ms-link[b-3wuq6glulc] {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.05rem;
    padding: 4px;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1;
}

.ms-link:hover[b-3wuq6glulc] {
    color: var(--brand-primary);
    background: var(--surface-muted);
}

.ms-link.danger:hover[b-3wuq6glulc] {
    color: #b42318;
}

/* ── Share link popover (Feature 13) ───────────────────── */

.ms-share-row > td[b-3wuq6glulc] {
    padding: 0 12px 12px;
}

.ms-share-popover[b-3wuq6glulc] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.ms-share-url[b-3wuq6glulc] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 260px;
    min-width: 220px;
    color: var(--text-muted);
}

.ms-share-url input[b-3wuq6glulc] {
    flex: 1;
    border: 1px solid var(--border-subtle, #d0d5dd);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: .85rem;
    background: var(--surface-muted, #f8f9fb);
    color: var(--text-strong, #101828);
}

.ms-share-actions[b-3wuq6glulc] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}


/* ── In-progress import rows ───────────────────────────── */

.ms-processing-row[b-3wuq6glulc] {
    opacity: .85;
}

.ms-processing[b-3wuq6glulc] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-primary);
    font-weight: 600;
    font-style: italic;
}

.ms-processing-spinner[b-3wuq6glulc] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--brand-primary);
    border-top-color: transparent;
    animation: ms-spin-b-3wuq6glulc .8s linear infinite;
}

.ms-awaiting[b-3wuq6glulc] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b45309;
    font-weight: 600;
}

@keyframes ms-spin-b-3wuq6glulc {
    to { transform: rotate(360deg); }
}
/* /Components/Shared/AnimatedStepIndicator/AnimatedStepIndicator.razor.rz.scp.css */
/* Modal backdrop covering the whole viewport */
.step-indicator-backdrop[b-z80s50hux7] {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    animation: backdrop-fade-b-z80s50hux7 0.25s ease-out;
}

@keyframes backdrop-fade-b-z80s50hux7 {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal dialog box */
/* Feature 35, WI-E2: the dialog follows the app theme; only the step artwork keeps its dark stage. */
.step-indicator-modal[b-z80s50hux7] {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 1.25rem 1.5rem 1.5rem;
    max-width: 560px;
    width: calc(100% - 2rem);
    animation: modal-pop-b-z80s50hux7 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop-b-z80s50hux7 {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Title bar */
.step-indicator-title[b-z80s50hux7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.step-indicator-title-text[b-z80s50hux7] {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-indicator-counter[b-z80s50hux7] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.step-progress[b-z80s50hux7] {
    height: 6px;
    border-radius: 999px;
    background: var(--surface-muted);
    overflow: hidden;
    margin: 0.25rem 0 0.5rem;
}

.step-progress__bar[b-z80s50hux7] {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-primary), #22c55e);
    transition: width .5s ease;
}

.step-status[b-z80s50hux7] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.step-still-working[b-z80s50hux7] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #78350f;
    font-size: 0.8rem;
}

[data-theme="dark"] .step-still-working[b-z80s50hux7] {
    background: rgba(245, 158, 11, .14);
    border-color: #92400e;
    color: var(--text-primary);
}

.step-indicator-container[b-z80s50hux7] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 0.25rem 0.25rem;
    min-height: 160px;
    overflow: hidden;
    position: relative;
    background: #1e293b;
    border-radius: 12px;
}

/* Scrolling log area inside the modal.
   The container itself does not scroll; each page supplies its own
   scroll region so we never create nested double scrollbars. */
.step-indicator-log[b-z80s50hux7] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-primary);
}

/* The detailed log is collapsed by default; the headline lines above it stay visible. */
.step-indicator-log.is-collapsed[b-z80s50hux7]  .dev-log-box,
.step-indicator-log.is-collapsed[b-z80s50hux7]  .step-log-scroll {
    display: none;
}

.step-indicator-log[b-z80s50hux7]  .dev-log-box {
    background: var(--surface-muted);
    border-color: var(--border);
    max-height: 220px;
}

.step-indicator-log[b-z80s50hux7]  .dev-log-row {
    color: var(--text-primary);
    border-bottom-color: var(--border);
}

.step-indicator-log[b-z80s50hux7]  .dev-log-row .ts,
.step-indicator-log[b-z80s50hux7]  .dev-log-row .detail { color: var(--text-muted); }

.step-indicator-log[b-z80s50hux7]  .step-log-headline {
    font-weight: 700;
    font-size: 0.88rem;
    word-break: break-all;
    color: var(--text-primary);
}

.step-indicator-log[b-z80s50hux7]  .step-log-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.step-log-toggle[b-z80s50hux7] {
    display: flex;
    justify-content: center;
}

.step-log-toggle .btn[b-z80s50hux7] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.step-indicator-log[b-z80s50hux7]  .step-log-scroll {
    max-height: 220px;
    overflow-y: auto;
}

.step-indicator-log[b-z80s50hux7]  .step-log-scroll::-webkit-scrollbar {
    width: 8px;
}

.step-indicator-log[b-z80s50hux7]  .step-log-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}

.step-indicator-log[b-z80s50hux7]  .step-log-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.step-slot[b-z80s50hux7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s ease,
                width 0.6s ease,
                height 0.6s ease;
}

.step-slot.previous[b-z80s50hux7] {
    transform: scale(0.6);
    opacity: 0.4;
    width: 120px;
}

.step-slot.current[b-z80s50hux7] {
    transform: scale(1.0);
    opacity: 1.0;
    width: 200px;
}

.step-slot.next[b-z80s50hux7] {
    transform: scale(0.6);
    opacity: 0.4;
    width: 120px;
}

.step-art-canvas[b-z80s50hux7] {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.art-frame[b-z80s50hux7] {
    width: 100%;
    height: 100%;
    animation: art-fade-b-z80s50hux7 0.8s ease-in-out;
}

@keyframes art-fade-b-z80s50hux7 {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.art-frame[b-z80s50hux7]  svg {
    width: 100%;
    height: 100%;
}

.step-slot.current .step-art-canvas[b-z80s50hux7] {
    filter: drop-shadow(0 0 8px var(--step-glow-color, #64b5f6));
}

/* Pulse glow on active animating step */
@keyframes pulse-glow-b-z80s50hux7 {
    0%, 100% { filter: drop-shadow(0 0 6px var(--step-glow-color, #64b5f6)); }
    50% { filter: drop-shadow(0 0 14px var(--step-glow-color, #64b5f6)); }
}

.step-slot.current.animating .step-art-canvas[b-z80s50hux7] {
    animation: pulse-glow-b-z80s50hux7 2s ease-in-out infinite;
}

.step-label[b-z80s50hux7] {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.step-slot.previous .step-label[b-z80s50hux7],
.step-slot.next .step-label[b-z80s50hux7] {
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Progress dot indicator */
.step-progress-dot[b-z80s50hux7] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--step-glow-color, #64b5f6);
    animation: dot-pulse-b-z80s50hux7 1.5s ease-in-out infinite;
}

@keyframes dot-pulse-b-z80s50hux7 {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* When stopped, no glow or pulse */
.step-indicator-modal.stopped .step-slot.current .step-art-canvas[b-z80s50hux7] {
    filter: none;
    animation: none;
}

.step-indicator-modal.stopped .step-progress-dot[b-z80s50hux7] {
    display: none;
}

/* Responsive: stack on small screens */
@media (max-width: 500px) {
    .step-slot.previous[b-z80s50hux7],
    .step-slot.next[b-z80s50hux7] {
        display: none;
    }
    .step-slot.current[b-z80s50hux7] {
        width: 140px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .art-frame[b-z80s50hux7] {
        animation: none;
    }
    .step-slot[b-z80s50hux7] {
        transition: none;
    }
    .step-slot.current.animating .step-art-canvas[b-z80s50hux7] {
        animation: none;
    }
    .step-progress-dot[b-z80s50hux7] {
        animation: none;
    }
}
/* /Components/Shared/CreditChip.razor.rz.scp.css */
.credit-chip[b-x1k1a0o3ja] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-primary-50);
    color: var(--brand-primary);
    border: 1px solid rgba(91, 61, 245, .22);
    border-radius: 999px;
    padding: 6px 6px 6px 14px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.credit-chip:hover[b-x1k1a0o3ja] {
    color: var(--brand-primary);
}

.add-credits[b-x1k1a0o3ja] {
    background: var(--brand-primary);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .8rem;
    line-height: 1;
}
.add-credits__icon[b-x1k1a0o3ja] { display: none; }

/* Phones: the chip shrinks to the number plus a "+" so the top bar keeps one line. */
@media (max-width: 767.98px) {
    .credit-chip[b-x1k1a0o3ja] { gap: 6px; padding: 4px 4px 4px 10px; white-space: nowrap; }
    .credit-chip__unit[b-x1k1a0o3ja],
    .add-credits__label[b-x1k1a0o3ja] { display: none; }
    .add-credits__icon[b-x1k1a0o3ja] { display: inline; }
    .add-credits[b-x1k1a0o3ja] { padding: 6px 8px; }
}
/* /Components/Shared/FileDropZone.razor.rz.scp.css */
.file-drop[b-137b3cbewx] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}

/* The native input fills the zone so drops and clicks anywhere reach it. */
.file-drop[b-137b3cbewx]  .file-drop__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-drop:hover[b-137b3cbewx],
.file-drop.is-dragover[b-137b3cbewx] {
    border-color: var(--brand-primary);
    background: var(--brand-primary-50);
}

[data-theme="dark"] .file-drop:hover[b-137b3cbewx],
[data-theme="dark"] .file-drop.is-dragover[b-137b3cbewx] {
    background: rgba(167, 139, 250, .12);
}

.file-drop:focus-within[b-137b3cbewx] {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}

.file-drop.is-disabled[b-137b3cbewx] {
    opacity: .6;
}

.file-drop.is-disabled[b-137b3cbewx]  .file-drop__input { cursor: not-allowed; }

.file-drop__icon[b-137b3cbewx] {
    font-size: 2rem;
    color: var(--brand-primary);
}

.file-drop__title[b-137b3cbewx] {
    font-weight: 600;
    color: var(--text-primary);
}

.file-drop__hint[b-137b3cbewx] {
    font-size: .8rem;
    color: var(--text-muted);
}

.file-drop__over[b-137b3cbewx] {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-primary);
    background: var(--brand-primary-50);
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .file-drop__over[b-137b3cbewx] { background: #2a2650; color: #c4b5fd; }

.file-drop.is-dragover .file-drop__over[b-137b3cbewx] { display: flex; }
/* /Components/Shared/Recommendations/RecommendationGroupList.razor.rz.scp.css */
.rec-list[b-f0ofmiszql] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rec-empty[b-f0ofmiszql] {
    color: #6b7280;
    font-size: 0.9rem;
}

.rec-card[b-f0ofmiszql] {
    border: 1px solid var(--border-token, #e5e7eb);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #fff;
    /* A self-contained light card: its own ink, so the dark theme never puts light text on it. */
    color: #1f2937;
}

.rec-quote[b-f0ofmiszql] { color: #1f2937; }

.rec-card.is-active[b-f0ofmiszql] {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px #ede9fe;
}

.rec-card-head[b-f0ofmiszql] {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.rec-title[b-f0ofmiszql] {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.rec-badges[b-f0ofmiszql] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.rec-badge[b-f0ofmiszql] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #4c1d95;
    background: #ede9fe;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
}

.rec-count[b-f0ofmiszql] {
    color: #1e3a8a;
    background: #dbeafe;
}

.rec-status[b-f0ofmiszql] {
    color: #065f46;
    background: #d1fae5;
}

.rec-summary[b-f0ofmiszql] {
    margin: 0.6rem 0 0.4rem;
    font-size: 0.92rem;
    color: #374151;
    white-space: pre-wrap;
}

.rec-evidence[b-f0ofmiszql] {
    list-style: none;
    margin: 0.25rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rec-quote[b-f0ofmiszql] {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    background: #f9fafb;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
}

.rec-quote:hover[b-f0ofmiszql] {
    border-color: #ddd6fe;
    background: #f5f3ff;
}

.rec-where[b-f0ofmiszql] {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.rec-actions[b-f0ofmiszql] {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.rec-unlocated[b-f0ofmiszql] {
    margin: 0.5rem 0 0;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.8rem;
}
