@import '_content/Kagaku.UI/Kagaku.UI.r2p3abpicg.bundle.scp.css';
@import '_content/Kagura.BlazorAdapter/Kagura.BlazorAdapter.klll4qp5kv.bundle.scp.css';

/* /Components/Layout/AppHeader.razor.rz.scp.css */
/* A fixed-height flex child of the non-scrolling shell (ADR 0025) — structurally pinned, so it
   needs no sticky positioning and claims no stacking layer. flex-shrink 0 is load-bearing: as a
   child of the column shell, the header's default shrink of 1 lets a flex deficit pull it below
   its declared height the moment the content region overflows — the header visibly shrank from
   52px to ~37px when a page's scrollbar appeared. Pinning shrink to 0 keeps fixed chrome fixed. */
.app-header[b-cflgu7cakx] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: var(--app-header-height);
    padding-inline: var(--space-5);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.app-header__brand[b-cflgu7cakx] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.app-header__brand:hover[b-cflgu7cakx] {
    text-decoration: none;
    color: var(--accent);
}

/* The sign-out form is only a POST envelope; the menu item inside it is the real row. */
.app-header form[b-cflgu7cakx] {
    display: contents;
}

/* The MinVer build version (ADR 0015): quiet chrome, not a claim — muted, small, monospace so a
   commit id reads evenly. No copy affordances; the tooltip already says what it is. */
.app-header__version[b-cflgu7cakx] {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    white-space: nowrap;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* The application-shell scrolling model (ADR 0025): exactly one viewport tall and never scrolling
   itself. Three fixed regions stack — header, content, status-bar slot — and the content region is
   the sole scroll container, so its scrollbar can never shift centered content (issue #22). */
.app-shell[b-zjehcvyn3d] {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;

    /* Lift a corner-pinned FloatingActionButton (the AI assistant) clear of the bottom status-bar
       slot, which occupies both bottom corners. Inherits down to the fixed-position button. */
    --kg-fab-bottom: calc(var(--space-4) + 2.25rem);
}

.app-shell__main[b-zjehcvyn3d] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;

    /* The gutter is reserved even while the modal scroll-lock hides the overflow — otherwise every
       modal open/close would replay the sideways jump this model exists to kill. */
    scrollbar-gutter: stable;

    /* Anchor jumps and the quicklink scroll-spy (which reads this declaration) land content this
       far below the region's top edge. Breathing room only: the header sits outside the scroll
       container now, so there is no chrome overlap left to clear. */
    scroll-padding-top: var(--space-4);
}

/* The generation status bar's slot (ADR 0010, Phase 2) — zero-height while empty. */
.app-shell__statusbar[b-zjehcvyn3d] {
    flex: 0 0 auto;
}

/* The framework's unhandled-error banner, unhidden by blazor.web.js. Styled from tokens like
   everything else (ADR 0023); the id and class names are the framework's contract. */
#blazor-error-ui[b-zjehcvyn3d] {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-toast);
    padding: var(--space-3) var(--space-5);
    background: var(--warning-subtle);
    color: var(--text);
    border-top: 1px solid var(--warning);
    box-shadow: var(--shadow-2);
}

#blazor-error-ui .dismiss[b-zjehcvyn3d] {
    position: absolute;
    top: var(--space-2);
    right: var(--space-3);
    cursor: pointer;
}
/* /Components/Pages/Error.razor.rz.scp.css */
.error-id[b-syxkvab3ar] {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-subtle);
}
/* /Components/Pages/Gate.razor.rz.scp.css */
.gate[b-lve3w67qou] {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: var(--space-5);
    background: var(--bg);
}

/* The card, input, and their children are rendered by child components (EditForm, InputText,
   Icon), so they don't carry this page's scope attribute. ::deep reaches descendants across the
   component boundary — without it these rules would silently not match. */

.gate[b-lve3w67qou]  .gate__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
    max-width: 22rem;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
}

.gate[b-lve3w67qou]  .gate__brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

/* currentColor cascades into the child <Icon> regardless of scoping. */
.gate[b-lve3w67qou]  .gate__mark {
    display: inline-flex;
    color: var(--accent);
}

.gate[b-lve3w67qou]  .gate__hint {
    margin-top: calc(-1 * var(--space-2));
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.gate[b-lve3w67qou]  .gate__input {
    height: var(--control-height);
    padding-inline: var(--space-3);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.gate[b-lve3w67qou]  .gate__input::placeholder {
    color: var(--text-subtle);
}

.gate[b-lve3w67qou]  .gate__input:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
    outline: none;
}

.gate[b-lve3w67qou]  .gate__error {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--danger);
    font-size: var(--text-sm);
}
