@import '_content/Kagaku.UI/Kagaku.UI.3yf0d5c4t2.bundle.scp.css';
@import '_content/Tsumugi.BlazorAdapter/Tsumugi.BlazorAdapter.qqj7t0a19p.bundle.scp.css';

/* /Components/Layout/AppHeader.razor.rz.scp.css */
/* The bar itself is the library's AppBar in the scaffold's header slot (ADR 0009, 0010): its height, surface, border,
   the brand — the mark, the title cut short on a narrow window, the home link's hover — and the brand | nav | actions
   row are the library's. Tsumugi tunes only the root, through a class of its own on it: the
   side padding of the page's own edge, so the brand lines up with the page heading, the story's head and the run
   strip below — the device's safe area kept as the library keeps it, side by physical side. */
.app-header[b-ao6f565lyy]  .app-header__bar {
    padding-left: max(var(--space-5), env(safe-area-inset-left));
    padding-right: max(var(--space-5), env(safe-area-inset-right));
}

.app-header__nav[b-ao6f565lyy] {
    display: flex;
    gap: var(--space-4);
    margin-inline-start: var(--space-4);
}

.app-header__nav a[b-ao6f565lyy] {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
}

.app-header__nav a:hover[b-ao6f565lyy] {
    color: var(--text);
}

/* The sign-out form is only a POST envelope; the menu item inside it is the real row, so the
   form must not generate a box that would break the menu's layout. */
.app-header__sign-out[b-ao6f565lyy] {
    display: contents;
}

/* The MinVer build version (ADR 0001): 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-ao6f565lyy] {
    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 shell's geometry and scrolling are the library's scaffold (ADR 0010); only the framework's banner is Tsumugi's. */

/* The framework's unhandled-error banner, unhidden by blazor.web.js. Styled from tokens like
   everything else; the id and class names are the framework's contract. */
#blazor-error-ui[b-ab0hbpa7hg] {
    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 .reload[b-ab0hbpa7hg] {
    color: var(--accent-text);
    margin-inline-start: var(--space-2);
}

#blazor-error-ui .dismiss[b-ab0hbpa7hg] {
    position: absolute;
    top: var(--space-2);
    right: var(--space-3);
    cursor: pointer;
}
/* /Components/Pages/Gate.razor.rz.scp.css */
.gate[b-3dox673g4i] {
    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-3dox673g4i]  .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-3dox673g4i]  .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-3dox673g4i]  .gate__mark {
    display: inline-flex;
    color: var(--accent);
}

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

/* The framework's InputText keeps the static form's binding (Gate.razor), so it wears Kagaku.UI's input look by its
   published density inputs rather than the library's own class. */
.gate[b-3dox673g4i]  .gate__input {
    min-height: var(--control-height);
    padding-block: var(--control-padding-block, var(--space-1));
    padding-inline: var(--control-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);
}

.gate[b-3dox673g4i]  .gate__input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.gate[b-3dox673g4i]  .gate__input:hover {
    border-color: var(--text-muted);
}

/* The focus outline is Kagaku.UI's, drawn outside the border; the border only takes the accent. */
.gate[b-3dox673g4i]  .gate__input:focus-visible {
    border-color: var(--accent);
}

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

/* Kagaku.UI stills only its own parts' motion; the page's own transition is the page's to still. */
@media (prefers-reduced-motion: reduce) {
    .gate[b-3dox673g4i]  .gate__input {
        transition: none;
    }
}
