/* /Components/About.razor.rz.scp.css */
.dialog-backdrop[b-7kkb6qmfh5] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.35);
}

.dialog[b-7kkb6qmfh5] {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1001;
    width: min(36rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--surface);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    transform: translate(-50%, -50%);
}

    .dialog:focus[b-7kkb6qmfh5] {
        outline: none;
    }

.dialog-header[b-7kkb6qmfh5] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 0.75rem 0.4rem 1.25rem;
}

    .dialog-header[b-7kkb6qmfh5]  .dialog-icon {
        color: var(--accent);
    }

    .dialog-header h2[b-7kkb6qmfh5] {
        flex: 1 1 auto;
        margin: 0;
        font-size: 1.1rem;
        font-weight: bold;
    }

.dialog-body[b-7kkb6qmfh5] {
    padding: 0.25rem 1.25rem 1.25rem 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

    .dialog-body p[b-7kkb6qmfh5] {
        margin: 0 0 0.75rem 0;
    }

.dialog-footnote[b-7kkb6qmfh5] {
    margin-bottom: 0 !important;
    padding-top: 0.75rem;
    border-top: 1px solid var(--divider);
    color: var(--text-muted);
    font-size: 0.8rem;
}
/* /Components/DetailsPanel.razor.rz.scp.css */
.details[b-d68z9qlj4q] {
    flex: 0 0 22rem;
    max-width: 45%;
    overflow-y: auto;
    padding: 0.75rem 1rem 1.5rem 1rem;
    border-left: 1px solid var(--border);
    background-color: var(--surface);
    font-size: 0.85rem;
}

.details-header[b-d68z9qlj4q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.details-title[b-d68z9qlj4q] {
    margin: 0.4rem 0 0.15rem 0;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: bold;
    word-break: break-word;
}

.details-meta[b-d68z9qlj4q] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.source-link[b-d68z9qlj4q] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.action-button[b-d68z9qlj4q] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.details-actions[b-d68z9qlj4q] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0 0.25rem 0;
}

section[b-d68z9qlj4q] {
    margin-top: 1rem;
}

h3[b-d68z9qlj4q] {
    display: inline-block;
    margin: 0 0 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.count[b-d68z9qlj4q] {
    margin-left: 0.25rem;
    font-weight: normal;
}

summary[b-d68z9qlj4q] {
    cursor: pointer;
}

.kind-badge[b-d68z9qlj4q] {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border: 1.5px solid var(--c);
    border-radius: var(--radius-pill);
    background-color: var(--cf);
    color: var(--c);
    font-size: 0.72rem;
    font-weight: bold;
}

.kind-dot[b-d68z9qlj4q] {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.7rem;
    height: 0.7rem;
    border: 1.5px solid var(--c);
    border-radius: var(--radius-sm);
    background-color: var(--cf);
}

.member-list[b-d68z9qlj4q],
.relation-list[b-d68z9qlj4q],
.call-list[b-d68z9qlj4q] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-list li[b-d68z9qlj4q],
.call-list li[b-d68z9qlj4q] {
    padding: 0.1rem 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    word-break: break-word;
}

/* A member looks like the rest of the list until pointed at: it opens its declaration in the editor. */
.member-link[b-d68z9qlj4q] {
    display: block;
    width: 100%;
    padding: 0.05rem 0.25rem;
    margin: 0 -0.25rem;
    border: 0;
    border-radius: 4px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.member-link:hover[b-d68z9qlj4q],
.member-link:focus-visible[b-d68z9qlj4q] {
    background: var(--primary-soft);
    color: var(--primary);
}

.file-path[b-d68z9qlj4q] {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    word-break: break-all;
}

.relation-list li[b-d68z9qlj4q] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--divider);
}

.relation-kind[b-d68z9qlj4q] {
    flex: 0 0 6.5rem;
    color: var(--c);
    font-size: 0.75rem;
    font-weight: 600;
}

.type-link[b-d68z9qlj4q] {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: left;
    word-break: break-word;
}

.call-details[b-d68z9qlj4q] {
    flex: 1 0 100%;
    padding-left: 6.9rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.call-list[b-d68z9qlj4q] {
    padding-left: 0.5rem;
}

@media (max-width: 900px) {
    .details[b-d68z9qlj4q] {
        flex: 0 0 auto;
        max-width: none;
        max-height: 50vh;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}
/* /Components/DropdownSelect.razor.rz.scp.css */
.dropdown-select[b-pagra6ybhp] {
    position: relative;
    display: inline-flex;
}

/* Looks like the other toolbar buttons; the list itself uses the shared .menu styles in app.css. */
.dropdown-button[b-pagra6ybhp] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 2rem;
    padding: 0 0.5rem 0 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    white-space: nowrap;
}

    .dropdown-button:hover[b-pagra6ybhp],
    .dropdown-button.open[b-pagra6ybhp] {
        background-color: var(--hover-strong);
    }

    .dropdown-button[b-pagra6ybhp]  .dropdown-icon,
    .dropdown-button[b-pagra6ybhp]  .dropdown-chevron {
        color: var(--text-muted);
    }

    .dropdown-button[b-pagra6ybhp]  .dropdown-chevron {
        margin-left: 0.1rem;
    }

/* Opens under the button, lined up with its left edge. */
.dropdown-select .menu[b-pagra6ybhp] {
    left: 0;
    right: auto;
    min-width: max(100%, 16rem);
}
/* /Components/FileTreePanel.razor.rz.scp.css */
.file-panel[b-m84jb401og] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.file-panel-header[b-m84jb401og] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.75rem;
    padding: 0 0.5rem 0 0.75rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--surface-muted);
    font-size: 0.85rem;
}

    .file-panel-header[b-m84jb401og]  .file-panel-icon {
        color: var(--text-muted);
    }

.file-panel-title[b-m84jb401og] {
    font-weight: 600;
}

.file-panel-count[b-m84jb401og] {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.file-panel-header .icon-button[b-m84jb401og] {
    margin-left: auto;
}

.file-panel-count + .icon-button[b-m84jb401og] {
    margin-left: 0;
}

.file-panel-actions[b-m84jb401og] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
}

    .file-panel-actions span[b-m84jb401og] {
        margin-right: auto;
    }

    .file-panel-actions .btn-link[b-m84jb401og] {
        font-size: 0.78rem;
    }

/* ---------- TREE ---------- */
.file-tree[b-m84jb401og] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.35rem 0.25rem 1rem 0.25rem;
    font-size: 0.8rem;
}

.tree-children[b-m84jb401og] {
    padding-left: 0.9rem;
}

.tree-row[b-m84jb401og] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    height: 1.6rem;
    padding: 0 0.25rem;
    border-radius: var(--radius);
    white-space: nowrap;
}

    .tree-row:hover[b-m84jb401og] {
        background-color: var(--hover);
    }

    .tree-row .form-check-input[b-m84jb401og] {
        flex: 0 0 auto;
        margin: 0;
    }

        /* Some, but not all, files in the folder are selected. */
        .tree-row .form-check-input.partial[b-m84jb401og] {
            background-color: var(--primary-border);
            border-color: var(--primary);
        }

.tree-toggle[b-m84jb401og],
.tree-toggle-spacer[b-m84jb401og] {
    flex: 0 0 1rem;
    width: 1rem;
}

.tree-toggle[b-m84jb401og] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-muted);
}

.tree-name[b-m84jb401og] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
}

    .tree-name > span[b-m84jb401og] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tree-name[b-m84jb401og]  .folder-icon {
        color: var(--icon-folder);
    }

    .tree-name[b-m84jb401og]  .file-icon {
        color: var(--icon-file);
    }

.folder-name[b-m84jb401og] {
    font-weight: 600;
}

.file-name:hover > span[b-m84jb401og] {
    color: var(--primary);
    text-decoration: underline;
}

.file-name.unselected[b-m84jb401og] {
    color: var(--text-muted);
    cursor: default;
}

    .file-name.unselected:hover > span[b-m84jb401og] {
        color: inherit;
        text-decoration: none;
    }

    .file-name.unselected[b-m84jb401og]  .file-icon {
        opacity: 0.5;
    }

/* ---------- DROP AREAS ---------- */
/* Every drop area has an invisible file input stretched over it, which takes both drops and clicks. */
[b-m84jb401og] .drop-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

    [b-m84jb401og] .drop-input:disabled {
        cursor: progress;
    }

/* No project yet: the panel is one big drop zone. */
.drop-zone[b-m84jb401og] {
    position: relative;
    /* Only as tall as its content, right below the other ways in; the panel's free space stays below it. */
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.75rem 0.75rem 0 0.75rem;
    padding: 1.5rem 1rem;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background-color: var(--surface);
    color: var(--text-muted);
    text-align: center;
    transition: border-color 0.15s, background-color 0.15s;
}

    .drop-zone:hover[b-m84jb401og] {
        border-color: var(--primary-border);
        background-color: var(--primary-faint);
    }

    .drop-zone.dragging[b-m84jb401og] {
        border-color: var(--primary);
        border-style: solid;
        background-color: var(--primary-soft);
    }

    .drop-zone.busy[b-m84jb401og] {
        border-style: solid;
    }

/* Styled like a switched-on toolbar toggle, only bigger. */
.drop-zone-icon[b-m84jb401og] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    background-color: var(--primary-soft);
    color: var(--primary);
    transition: transform 0.15s;
}

.drop-zone.dragging .drop-zone-icon[b-m84jb401og] {
    transform: translateY(-3px) scale(1.06);
}

.drop-zone-title[b-m84jb401og] {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.drop-zone-hint[b-m84jb401og] {
    font-size: 0.82rem;
}

    .drop-zone-hint u[b-m84jb401og] {
        color: var(--primary);
        text-decoration-color: var(--primary-border);
        text-underline-offset: 2px;
    }

/* The supported archive types, as small tags. */
.drop-zone-formats[b-m84jb401og] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

    .drop-zone-formats span[b-m84jb401og] {
        padding: 0.05rem 0.45rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        background-color: var(--surface-muted);
        color: var(--text-muted);
        font-family: var(--font-mono);
        font-size: 0.72rem;
    }

.drop-zone-note[b-m84jb401og] {
    max-width: 13rem;
    margin-top: 1rem;
    font-size: 0.72rem;
    line-height: 1.4;
}

.file-panel-note[b-m84jb401og] {
    margin: 0.6rem 0 0.9rem 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

/* A project is loaded: a slim drop zone and the GitHub address below the tree, to load a different one. */
.replace-project[b-m84jb401og] {
    flex: 0 0 auto;
    padding-bottom: 0.65rem;
    border-top: 1px solid var(--border);
    background-color: var(--surface-muted);
}

.drop-strip[b-m84jb401og] {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.6rem 0.75rem 0.1rem 0.75rem;
    padding: 0.55rem 0.6rem;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background-color: var(--surface);
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

    .drop-strip:hover[b-m84jb401og] {
        border-color: var(--primary-border);
        background-color: var(--primary-faint);
        color: var(--primary);
    }

    .drop-strip u[b-m84jb401og] {
        text-underline-offset: 2px;
    }

/* While a file is dragged over a loaded project, the whole panel becomes the drop target. */
.drop-overlay[b-m84jb401og] {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: rgba(253, 238, 227, 0.92); /* --primary-soft, see-through */
}

.drop-overlay-message[b-m84jb401og] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Loading a GitHub repository by its address: the address and its Load button joined into one control. */
.github-form[b-m84jb401og] {
    flex: 0 0 auto;
    display: flex;
    margin: 0.5rem 0.75rem 0.1rem 0.75rem;
}

    .github-form input[b-m84jb401og] {
        flex: 1 1 auto;
        min-width: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .github-form button[b-m84jb401og] {
        display: inline-flex;
        align-items: center;
        padding: 0 0.6rem;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

.file-panel-note + .github-form[b-m84jb401og] {
    margin-top: 0;
}

/* The quickest way in: pasting code. */
.paste-note[b-m84jb401og] {
    margin-top: 0.9rem;
    margin-bottom: 1.1rem;
}

    .paste-note .accent[b-m84jb401og] {
        color: var(--primary);
    }

.github-form + .file-panel-note[b-m84jb401og] {
    margin: 0.9rem 0 0 0;
}

.file-panel-note:has(+ .github-form)[b-m84jb401og] {
    margin: 0 0 0.35rem 0;
}
/* /Layout/Main.razor.rz.scp.css */
/* Clipped, so nothing in the panes can give the page a scrollbar even for a moment (html, body and .page
   scroll vertically, see app.css): a scrollbar narrows the panes, and a toolbar on the edge of wrapping
   could then wrap and unwrap over and over. The narrow layout below stacks the panes and scrolls. */
.workspace[b-131z9z1uqn] {
    flex: 1 1 auto;
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background-color: var(--surface);
}

/* Shown when both the source and the diagram are hidden. */
.workspace-empty[b-131z9z1uqn] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
    text-align: center;
}

/* ---------- ACTIVITY BAR (panel switches) ---------- */
.activity-bar[b-131z9z1uqn] {
    flex: 0 0 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 0.35rem;
    border-right: 1px solid var(--border);
    background-color: var(--surface-sunken);
}

.activity-button[b-131z9z1uqn] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0 0.4rem 0;
    border: none;
    border-radius: var(--radius);
    background: none;
    color: var(--text-subtle);
    font-size: 0.66rem;
    line-height: 1;
}

    .activity-button:hover[b-131z9z1uqn] {
        background-color: var(--hover-strong);
        color: var(--text);
    }

    .activity-button.active[b-131z9z1uqn] {
        background-color: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow-sm);
    }

        /* The red marker on the left of an open panel's switch. */
        .activity-button.active[b-131z9z1uqn]::before {
            content: "";
            position: absolute;
            top: 0.45rem;
            bottom: 0.45rem;
            left: -0.35rem;
            width: 3px;
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            background-color: var(--accent);
        }

/* ---------- PANES ---------- */
.pane[b-131z9z1uqn] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.pane-files[b-131z9z1uqn] {
    flex: 0 0 15rem;
    border-right: 1px solid var(--border);
    background-color: var(--surface);
}

/* The splitter (wwwroot/js/Workspace.js) changes flex-basis when dragged. When the Files pane opens or the
   window narrows, the editor gives way (down to its minimum) before the diagram does. */
.pane-source[b-131z9z1uqn] {
    flex: 0 1 28%;
    min-width: 200px;
}

    /* With the diagram hidden, the editor takes all the room (over the splitter's width). */
    .pane-source.fill[b-131z9z1uqn] {
        flex: 1 1 auto !important;
    }

.pane-header[b-131z9z1uqn] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.75rem;
    padding: 0 0.5rem 0 0.75rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--surface-muted);
    font-size: 0.85rem;
}

    .pane-header[b-131z9z1uqn]  .pane-icon {
        color: var(--text-muted);
    }

.pane-title[b-131z9z1uqn] {
    font-weight: 600;
}

.pane-close[b-131z9z1uqn] {
    margin-left: auto;
}

.pane-body[b-131z9z1uqn] {
    flex: 1 1 auto;
    min-height: 0;
}

/* A 1px line with a wider area to grab. */
.splitter[b-131z9z1uqn] {
    flex: 0 0 5px;
    margin: 0 -2px;
    z-index: 2;
    background: linear-gradient(var(--border), var(--border)) center / 1px 100% no-repeat;
    cursor: col-resize;
    touch-action: none;
}

    .splitter:hover[b-131z9z1uqn],
    .splitter.dragging[b-131z9z1uqn] {
        background: var(--accent);
    }

/* The room the other panes leave (no basis of its own, which would take room from the editor). */
.pane-diagram[b-131z9z1uqn] {
    flex: 1 1 0;
    min-width: 320px;
}

/* ---------- TOOLBAR ---------- */
.diagram-toolbar[b-131z9z1uqn] {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--surface-muted);
}

.toolbar-row[b-131z9z1uqn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.toolbar-separator[b-131z9z1uqn] {
    align-self: stretch;
    width: 1px;
    margin: 0 0.2rem;
    background-color: var(--border);
}

.tool-button[b-131z9z1uqn] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2rem;
    white-space: nowrap;
}

/* Set apart from the view controls after it. */
.generate-button[b-131z9z1uqn] {
    margin-right: 0.6rem;
}

/* An input with an icon inside on the left. */
.field-with-icon[b-131z9z1uqn] {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

    .field-with-icon[b-131z9z1uqn]  .icon {
        position: absolute;
        left: 0.6rem;
        z-index: 1;
        color: var(--text-muted);
        pointer-events: none;
    }

    .field-with-icon .form-control[b-131z9z1uqn] {
        height: 2rem;
        padding-left: 2rem;
        border-color: var(--border);
    }

.search-field .form-control[b-131z9z1uqn] {
    width: 13rem;
    padding-right: 2.1rem; /* room for the match-case button */
}

/* The match-case toggle inside the search box, like Visual Studio Code's. */
.match-case[b-131z9z1uqn] {
    position: absolute;
    right: 0.3rem;
    z-index: 1;
    height: 1.4rem;
    padding: 0 0.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

    .match-case:hover[b-131z9z1uqn] {
        background-color: var(--hover);
    }

    .match-case.on[b-131z9z1uqn] {
        border-color: var(--primary-border);
        background-color: var(--primary-soft);
        color: var(--primary);
    }

    .match-case:focus-visible[b-131z9z1uqn] {
        outline: none;
        box-shadow: var(--focus-ring);
    }

.search-count[b-131z9z1uqn] {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Saving: one button over the diagram's bottom right corner that opens the format menu upwards.
   Above the zoom controls: the open menu's backdrop, which closes it on a click elsewhere, has to cover them. */
.download-menu[b-131z9z1uqn] {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 5;
    display: inline-flex;
}

    .download-menu .menu[b-131z9z1uqn] {
        top: auto;
        bottom: calc(100% + 0.35rem);
    }

.menu-button[b-131z9z1uqn] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 2.1rem;
    padding: 0 0.45rem 0 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--surface);
    box-shadow: var(--shadow-md);
    color: var(--text-muted);
}

    .menu-button:hover:not(:disabled)[b-131z9z1uqn],
    .menu-button.active[b-131z9z1uqn] {
        color: var(--text);
    }

    .menu-button:hover:not(:disabled)[b-131z9z1uqn],
    .menu-button.active[b-131z9z1uqn] {
        background-color: var(--hover-strong);
    }

    .menu-button:disabled[b-131z9z1uqn] {
        color: var(--text-subtle);
        opacity: 0.5;
    }


/* ---------- FILTERS & OPTIONS ROW ---------- */
.toolbar-filters[b-131z9z1uqn] {
    font-size: 0.78rem;
}

/* Filter chips double as the legend. */
.chip[b-131z9z1uqn] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 1.65rem;
    padding: 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background-color: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    white-space: nowrap;
}

    .chip:hover[b-131z9z1uqn] {
        border-color: var(--border-strong);
    }

    .chip.off[b-131z9z1uqn] {
        background-color: transparent;
        color: var(--text-muted);
        opacity: 0.55;
    }

.swatch-line[b-131z9z1uqn] {
    display: inline-block;
    width: 1.2rem;
    border-top: 2px solid var(--c);
}

    .swatch-line.implements[b-131z9z1uqn] {
        border-top-style: dashed;
    }

    .swatch-line.calls[b-131z9z1uqn] {
        border-top-width: 3px;
    }

    .swatch-line.renders[b-131z9z1uqn] {
        border-top-width: 3px;
    }

.swatch-box[b-131z9z1uqn] {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border: 1.5px solid var(--c);
    border-radius: var(--radius-sm);
    background-color: var(--cf);
}

    .swatch-box.interface[b-131z9z1uqn] {
        border-style: dashed;
    }

/* Options: joined buttons that each switch on and off by themselves; orange when on, grayed out when off. */
.toggle-group[b-131z9z1uqn] {
    display: inline-flex;
    height: 1.65rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
}

.toggle[b-131z9z1uqn] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.6rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

    .toggle + .toggle[b-131z9z1uqn] {
        border-left: 1px solid var(--border);
    }

    .toggle[b-131z9z1uqn]  .icon {
        opacity: 0.6;
    }

    .toggle:hover[b-131z9z1uqn] {
        background-color: var(--hover);
        color: var(--text);
    }

    .toggle.on[b-131z9z1uqn] {
        background-color: var(--primary-soft);
        color: var(--primary);
        font-weight: 600;
    }

        .toggle.on[b-131z9z1uqn]  .icon {
            opacity: 1;
        }

    /* The group clips the usual outer focus ring, so draw it inside. */
    .toggle:focus-visible[b-131z9z1uqn] {
        box-shadow: inset 0 0 0 2px var(--primary-border);
    }

/* ---------- DIAGRAM ---------- */
.diagram-body[b-131z9z1uqn] {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

/* Clipped: when the toolbar wraps onto another row, the diagram canvases keep their old height until
   they're resized, and would stick out below the pane for a moment. */
.graph-area[b-131z9z1uqn] {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.graph-container[b-131z9z1uqn] {
    position: absolute;
    inset: 0;
}

/* The Graphviz layout: an SVG drawn by NpmJS/src/CodeGraphView.js, panned and zoomed with a CSS transform.
   The gv-* classes copy the Cytoscape highlighting (selection, focus, search) onto it. */
.graphviz-container[b-131z9z1uqn] {
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.graphviz-container.panning[b-131z9z1uqn] {
    cursor: grabbing;
}

.graphviz-container[b-131z9z1uqn]  .gv-canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
}

.graphviz-container[b-131z9z1uqn]  g.node,
.graphviz-container[b-131z9z1uqn]  g.cluster {
    cursor: pointer;
}

.graphviz-container[b-131z9z1uqn]  .gv-faded {
    opacity: 0.12;
}

.graphviz-container[b-131z9z1uqn]  g.cluster.gv-faded {
    opacity: 0.35;
}

.graphviz-container[b-131z9z1uqn]  g.gv-selected :is(path, polygon) {
    stroke: var(--accent);
    stroke-width: 3;
}

.graphviz-container[b-131z9z1uqn]  g.node.gv-selected {
    filter: drop-shadow(0 0 5px rgba(242, 89, 88, 0.45));
}

/* A type holding functions is drawn as a cluster (a box around them). */
.graphviz-container[b-131z9z1uqn]  g.node.gv-match,
.graphviz-container[b-131z9z1uqn]  g.cluster.gv-match {
    filter: drop-shadow(0 0 3px #ffcc33) drop-shadow(0 0 3px #ffcc33);
}

.graphviz-container[b-131z9z1uqn]  .gv-error {
    margin: 2rem;
    max-width: 32rem;
    color: var(--text-muted);
}

.status-banner[b-131z9z1uqn] {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.4rem 0.35rem 0.9rem;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    background-color: var(--primary-soft);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    white-space: nowrap;
}

    .status-banner .tool-button[b-131z9z1uqn] {
        height: 1.75rem;
        gap: 0.25rem;
    }

.error-banner[b-131z9z1uqn] {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-right: 0.4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
}

.error-text[b-131z9z1uqn] {
    flex: 1 1 auto;
}

/* With the diagram hidden, its error banner shows at the top of the window instead. */
.floating-error[b-131z9z1uqn] {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    z-index: 30;
    width: min(40rem, calc(100vw - 2rem));
    transform: translateX(-50%);
}

    .floating-error .error-banner[b-131z9z1uqn] {
        position: static;
        margin: 0;
    }

.empty-state[b-131z9z1uqn] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
    text-align: center;
    pointer-events: none;
}

/* Zoom in the top right corner, side by side; saving the diagram in the bottom right corner. */
.zoom-controls[b-131z9z1uqn] {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--surface);
    box-shadow: var(--shadow-md);
}

    .zoom-controls button[b-131z9z1uqn] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.1rem;
        height: 2.1rem;
        padding: 0;
        border: none;
        background: none;
        color: var(--text-muted);
    }

        .zoom-controls button + button[b-131z9z1uqn] {
            border-left: 1px solid var(--border);
        }

        .zoom-controls button:hover[b-131z9z1uqn] {
            background-color: var(--hover);
            color: var(--text);
        }

.graph-stats[b-131z9z1uqn] {
    position: absolute;
    left: 0.6rem;
    bottom: 0.4rem;
    padding: 0 0.4rem;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--text-muted);
    font-size: 0.75rem;
}

    .graph-stats .btn-link[b-131z9z1uqn] {
        font-size: 0.75rem;
    }

/* Narrow screens: the activity bar runs along the top, and files, source and diagram stack. */
@media (max-width: 900px) {
    .workspace[b-131z9z1uqn] {
        flex-direction: column;
        overflow: visible;
    }

    .activity-bar[b-131z9z1uqn] {
        flex: 0 0 auto;
        flex-direction: row;
        padding: 0.35rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .activity-button[b-131z9z1uqn] {
        flex-direction: row;
        gap: 0.4rem;
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

        /* The marker sits along the bottom edge of the button here. */
        .activity-button.active[b-131z9z1uqn]::before {
            top: auto;
            right: 0.6rem;
            bottom: 0;
            left: 0.6rem;
            width: auto;
            height: 3px;
            border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        }

    .pane-files[b-131z9z1uqn] {
        flex: 0 0 auto;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .pane-source[b-131z9z1uqn] {
        flex: 0 0 45vh !important;
    }

    .splitter[b-131z9z1uqn] {
        display: none;
    }

    .pane-diagram[b-131z9z1uqn] {
        flex: 0 0 auto;
        min-width: 0;
    }

    .diagram-body[b-131z9z1uqn] {
        flex-direction: column;
    }

    .graph-area[b-131z9z1uqn] {
        flex: 0 0 75vh;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-twxl85rl88] {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.app-header[b-twxl85rl88] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3rem;
    padding: 0 1.25rem;
    background-color: var(--accent);
    color: white;
}

    .app-header h1[b-twxl85rl88] {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0;
        font-size: 1.3rem;
        font-weight: bold;
    }

.about-button[b-twxl85rl88] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    background: none;
    color: white;
    font-weight: bold;
}

    .about-button:hover[b-twxl85rl88] {
        background-color: rgba(255, 255, 255, 0.15);
    }

.app-main[b-twxl85rl88] {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

/* Narrow screens: panes stack and the page scrolls. */
@media (max-width: 900px) {
    .page[b-twxl85rl88] {
        height: auto;
        min-height: 100vh;
    }

    .app-header h1[b-twxl85rl88] {
        font-size: 1.05rem;
    }
}
