/* /Layout/UnlockLayout.razor.rz.scp.css */
.unlock-layout[b-kn2ky251vy] {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(160deg, #f4f2fb 0%, #fafafa 45%, #eef6f4 100%);
    box-sizing: border-box;
}
/* /Pages/Home.razor.rz.scp.css */
/* Full-viewport workspace using CSS grid (reliable height chain). */

.workspace[b-l0q33co89j] {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #f7f7f8;
    color: #1a1a1a;
}

/* ── Menu bar ── */

.workspace-menubar[b-l0q33co89j] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0 0.5rem 0 0.75rem;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.workspace-brand[b-l0q33co89j] {
    display: flex;
    align-items: center;
    padding-right: 0.5rem;
    border-right: 1px solid #ddd;
    margin-right: 0.25rem;
}

.workspace-brand-text[b-l0q33co89j] {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.workspace-menu[b-l0q33co89j] {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.workspace-menubar-spacer[b-l0q33co89j] {
    flex: 1;
}

.workspace-status[b-l0q33co89j] {
    padding-right: 0.5rem;
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-status--error[b-l0q33co89j] {
    color: #b00020;
}

.workspace-sidebar-msg[b-l0q33co89j] {
    padding: 0.75rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.workspace-sidebar-msg--error[b-l0q33co89j] {
    color: #b00020;
}

.workspace-sidebar-msg code[b-l0q33co89j] {
    font-size: 0.7rem;
    word-break: break-all;
}

/* ── Body: sidebar | editor ── */

.workspace-body[b-l0q33co89j] {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 0;
    overflow: hidden;
}

.workspace-body--no-sidebar[b-l0q33co89j] {
    grid-template-columns: 1fr;
}

.workspace-sidebar[b-l0q33co89j] {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    border-right: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
}

.workspace-sidebar-header[b-l0q33co89j] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid #eee;
    gap: 0.35rem;
}

.workspace-sidebar-actions[b-l0q33co89j] {
    display: flex;
    gap: 0.2rem;
    flex-shrink: 0;
}


.workspace-sidebar-title[b-l0q33co89j] {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
}

.workspace-sidebar-tree[b-l0q33co89j] {
    min-height: 0;
    overflow: auto;
    padding: 0.25rem 0;
}

.workspace-editor[b-l0q33co89j] {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-rows: 1fr;
}

.workspace-empty[b-l0q33co89j] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.workspace-empty-hint[b-l0q33co89j] {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* ── Editor chrome: tabs + meta + textarea ── */

.editor-chrome[b-l0q33co89j] {
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.editor-tabstrip[b-l0q33co89j] {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
    background: #f0f0f2;
    min-height: 2.25rem;
}

.editor-tab[b-l0q33co89j] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 14rem;
    padding: 0.4rem 0.55rem 0.4rem 0.75rem;
    border: none;
    border-right: 1px solid #ddd;
    background: transparent;
    color: #444;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.editor-tab:hover[b-l0q33co89j] {
    background: #e8e8ec;
}

.editor-tab--active[b-l0q33co89j] {
    background: #fff;
    color: #111;
    font-weight: 500;
    box-shadow: inset 0 -2px 0 #512bd4;
}

.editor-tab-title[b-l0q33co89j] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-tab-close[b-l0q33co89j] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 3px;
    font-size: 1rem;
    line-height: 1;
    color: #888;
}

.editor-tab-close:hover[b-l0q33co89j] {
    background: #ddd;
    color: #111;
}

.editor-meta[b-l0q33co89j] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    font-size: 0.75rem;
    color: #666;
}

.editor-title-label[b-l0q33co89j] {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.editor-title-input[b-l0q33co89j] {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 28rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: inherit;
    font-size: 0.85rem;
    color: #222;
    background: #fff;
}

.editor-title-input:focus[b-l0q33co89j] {
    outline: none;
    border-color: #6b5bb8;
    box-shadow: 0 0 0 2px rgba(107, 91, 184, 0.15);
}

.editor-meta-status[b-l0q33co89j] {
    flex: 0 0 auto;
    white-space: nowrap;
}

.editor-meta-actions[b-l0q33co89j] {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
}

.editor-meta-btn[b-l0q33co89j] {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    color: #333;
}

.editor-meta-btn:hover:not(:disabled)[b-l0q33co89j] {
    background: #f0f0f0;
}

.editor-meta-btn:disabled[b-l0q33co89j] {
    opacity: 0.5;
    cursor: default;
}

.editor-meta-btn--primary[b-l0q33co89j] {
    background: #4a3d8f;
    border-color: #4a3d8f;
    color: #fff;
}

.editor-meta-btn--primary:hover:not(:disabled)[b-l0q33co89j] {
    background: #3d3278;
}

.editor-meta-error[b-l0q33co89j] {
    color: #b00020;
}

/* Rename dialog */
.rename-backdrop[b-l0q33co89j] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 16, 40, 0.35);
    padding: 1rem;
}

.rename-dialog[b-l0q33co89j] {
    width: 100%;
    max-width: 22rem;
    padding: 1.25rem 1.15rem 1rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.rename-heading[b-l0q33co89j] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.rename-hint[b-l0q33co89j] {
    margin: 0.35rem 0 0.65rem;
    font-size: 0.8rem;
    color: #666;
}

.rename-input[b-l0q33co89j] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
    font-size: 1rem;
}

.rename-input:focus[b-l0q33co89j] {
    outline: none;
    border-color: #6b5bb8;
    box-shadow: 0 0 0 3px rgba(107, 91, 184, 0.15);
}

.rename-error[b-l0q33co89j] {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #b00020;
}

.rename-actions[b-l0q33co89j] {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 1rem;
}

/* The actual editor — fills remaining grid row */
.editor-textarea[b-l0q33co89j] {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.85rem 1rem;
    border: none;
    outline: none;
    resize: none;
    box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1a1a1a;
    background: #fff;
    overflow: auto;
}

.editor-textarea:focus[b-l0q33co89j] {
    outline: none;
    box-shadow: inset 0 0 0 1px #cfcfe8;
}
/* /Pages/Unlock.razor.rz.scp.css */
.unlock-card[b-4kfv4axgmx] {
    width: 100%;
    max-width: 22rem;
    padding: 1.75rem 1.5rem 1.25rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(40, 30, 80, 0.08), 0 1px 0 rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.unlock-brand[b-4kfv4axgmx] {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #3d2f6b;
}

.unlock-host[b-4kfv4axgmx] {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #666;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}

.unlock-muted[b-4kfv4axgmx] {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: #777;
}

.unlock-preview[b-4kfv4axgmx] {
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}

.unlock-preview code[b-4kfv4axgmx],
.unlock-lead code[b-4kfv4axgmx],
.unlock-footer code[b-4kfv4axgmx] {
    font-size: 0.85em;
}

.unlock-title[b-4kfv4axgmx] {
    margin: 1.25rem 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.unlock-lead[b-4kfv4axgmx],
.unlock-cue-caption[b-4kfv4axgmx] {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #555;
}

.unlock-verify[b-4kfv4axgmx] {
    text-align: center;
    margin: 0 0 1.25rem;
    padding: 1rem 0.75rem;
    border-radius: 10px;
    background: #f7f5fc;
    border: 1px solid #e8e4f4;
}

.unlock-verify-image[b-4kfv4axgmx] {
    margin-bottom: 0.5rem;
}

.unlock-verify-phrase[b-4kfv4axgmx] {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2a2450;
    letter-spacing: 0.02em;
}

.unlock-label[b-4kfv4axgmx] {
    display: block;
    margin: 0.75rem 0 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.unlock-input[b-4kfv4axgmx] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.unlock-input:focus[b-4kfv4axgmx] {
    outline: none;
    border-color: #6b5bb8;
    box-shadow: 0 0 0 3px rgba(107, 91, 184, 0.15);
}

.unlock-gallery[b-4kfv4axgmx] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.unlock-tile[b-4kfv4axgmx] {
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unlock-tile:hover[b-4kfv4axgmx] {
    border-color: #b0a8d8;
}

.unlock-tile--on[b-4kfv4axgmx] {
    border-color: #6b5bb8;
    background: #f0ecfa;
    box-shadow: 0 0 0 1px #6b5bb8;
}

.unlock-emoji[b-4kfv4axgmx] {
    font-size: 1.25rem;
    line-height: 1;
}

.unlock-emoji--lg[b-4kfv4axgmx] {
    font-size: 2.5rem;
}

.unlock-check[b-4kfv4axgmx] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.unlock-btn[b-4kfv4axgmx] {
    display: block;
    width: 100%;
    margin-top: 1.1rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 8px;
    background: #4a3d8f;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.unlock-btn:hover:not(:disabled)[b-4kfv4axgmx] {
    background: #3d3278;
}

.unlock-btn:disabled[b-4kfv4axgmx] {
    opacity: 0.6;
    cursor: default;
}

.unlock-error[b-4kfv4axgmx] {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: #b00020;
}

.unlock-footer[b-4kfv4axgmx] {
    margin: 1.1rem 0 0;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #888;
    text-align: center;
}

.unlock-muted[b-4kfv4axgmx] {
    color: #888;
    font-size: 0.9rem;
}

.unlock-progress[b-4kfv4axgmx] {
    margin-top: 1rem;
    padding: 0.85rem 0.75rem;
    border-radius: 8px;
    background: #f7f5fc;
    border: 1px solid #e8e4f4;
}

.unlock-progress-title[b-4kfv4axgmx] {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2a2450;
}

.unlock-progress-hint[b-4kfv4axgmx] {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #666;
}

.unlock-progress-track[b-4kfv4axgmx] {
    height: 6px;
    border-radius: 999px;
    background: #e0dcf0;
    overflow: hidden;
}

.unlock-progress-bar[b-4kfv4axgmx] {
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6b5bb8, #9b8fd4);
    animation: unlock-progress-slide-b-4kfv4axgmx 1.2s ease-in-out infinite;
}

@keyframes unlock-progress-slide-b-4kfv4axgmx {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .unlock-progress-bar[b-4kfv4axgmx] {
        width: 100%;
        animation: none;
        opacity: 0.7;
    }
}
