
/* _content/MeshWeaver.Blazor.Graph/MeshNodeCardView.razor.rz.scp.css */
.mesh-node-card[b-avpk9gzw2f] {
    /* NOTE: <fluent-card> is a CHILD-component host, so this component's CSS-isolation (b-*)
       attribute is NOT applied to it — the width/display rules below would NOT land here.
       The card's "fill the grid cell" sizing therefore lives as a GLOBAL rule in
       standard-page-layout.css (`.mesh-search-area-grid .mesh-node-card`). Keep cursor here;
       it's harmless even if it doesn't reach the host. */
    cursor: pointer;
}

.mesh-node-card:hover[b-avpk9gzw2f] {
    box-shadow: var(--elevation-shadow-card-active);
}

.mesh-node-card-content[b-avpk9gzw2f] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px;
    min-height: 60px;
    height: 76px;
}

.mesh-node-card-image[b-avpk9gzw2f] {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Inline-SVG icon. Node icons authored as a raw <svg> with a viewBox but NO
   width/height are injected via MarkupString, so they carry no CSS-isolation
   scope attribute — a scoped rule can't reach them — and with no intrinsic
   size they render at the browser default (~300×150) and collapse/overflow,
   i.e. a blank tile. Constrain any inline SVG to fill the icon box (same fix
   as MeshSearchView / MeshNodePickerView). */
[b-avpk9gzw2f] .mesh-node-card-image svg {
    width: 100%;
    height: 100%;
    display: block;
}


.mesh-node-card-placeholder[b-avpk9gzw2f] {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 8px;
    background: var(--accent-fill-rest, #0078d4);
    color: var(--foreground-on-accent-rest, white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.mesh-node-card-text[b-avpk9gzw2f] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mesh-node-card-title[b-avpk9gzw2f] {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mesh-node-card-description[b-avpk9gzw2f] {
    font-size: 12px;
    color: var(--neutral-foreground-hint, #666);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
/* _content/MeshWeaver.Blazor.Graph/MeshNodeCollectionView.razor.rz.scp.css */
.mesh-node-collection[b-e6hhtpg12x] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mesh-node-collection-item[b-e6hhtpg12x] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.mesh-node-collection-item:hover[b-e6hhtpg12x] {
    background: var(--neutral-fill-secondary-hover);
}

.mesh-node-collection-avatar[b-e6hhtpg12x] {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    flex-shrink: 0;
}

[b-e6hhtpg12x] .mesh-node-collection-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Inline-SVG icon. A viewBox-only <svg> injected via MarkupString has no
   intrinsic size and no CSS-isolation scope attribute, so without this rule
   it renders at the browser default size and the avatar shows blank. Same
   fix as MeshSearchView / MeshNodePickerView. */
[b-e6hhtpg12x] .mesh-node-collection-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

[b-e6hhtpg12x] .mesh-node-collection-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
}

.mesh-node-collection-info[b-e6hhtpg12x] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mesh-node-collection-name[b-e6hhtpg12x] {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mesh-node-collection-type[b-e6hhtpg12x] {
    font-size: 0.78rem;
    color: var(--neutral-foreground-hint);
}

.mesh-node-collection-chips[b-e6hhtpg12x] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.mesh-node-collection-chip[b-e6hhtpg12x] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 8px;
    border-radius: 12px;
    background: var(--neutral-fill-secondary-rest);
    font-size: 0.75rem;
    line-height: 1.4;
}

.mesh-node-collection-chip.denied[b-e6hhtpg12x] {
    text-decoration: line-through;
    opacity: 0.6;
}

.mesh-node-collection-chip-x[b-e6hhtpg12x] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 1px;
    font-size: 0.8rem;
    line-height: 1;
    color: var(--neutral-foreground-hint);
    display: inline-flex;
    align-items: center;
}

.mesh-node-collection-chip-x:hover[b-e6hhtpg12x] {
    color: var(--error-foreground);
}

.mesh-node-collection-delete[b-e6hhtpg12x] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: var(--neutral-foreground-hint);
    display: flex;
    align-items: center;
}

.mesh-node-collection-delete:hover[b-e6hhtpg12x] {
    background: var(--neutral-fill-stealth-hover);
    color: var(--error-foreground);
}

/* Two-step confirm pair (check / dismiss) — visible while armed. */
.mesh-node-collection-delete-confirm[b-e6hhtpg12x] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mesh-node-collection-delete-confirm button[b-e6hhtpg12x] {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    background: var(--neutral-layer-1, #fff);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mesh-node-collection-delete-yes[b-e6hhtpg12x] {
    color: var(--error, #d32f2f);
    border-color: var(--error, #d32f2f) !important;
}

.mesh-node-collection-delete-no[b-e6hhtpg12x] {
    color: var(--neutral-foreground-hint, #666);
}

.mesh-node-collection-add[b-e6hhtpg12x] {
    background: none;
    border: 1px dashed var(--neutral-stroke-rest);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: var(--accent-foreground-rest);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    transition: background 0.15s, border-color 0.15s;
}

.mesh-node-collection-add:hover[b-e6hhtpg12x] {
    background: var(--accent-fill-hover);
    color: var(--foreground-on-accent-rest);
    border-color: var(--accent-fill-hover);
}
/* _content/MeshWeaver.Blazor.Graph/MeshNodePickerView.razor.rz.scp.css */
.mesh-node-picker[b-1k0k5zy8ue] {
    position: relative;
    width: 100%;
}

/* Selected value display */
.mesh-node-picker-selected[b-1k0k5zy8ue] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    background: var(--neutral-layer-1);
    min-height: 40px;
}

.mesh-node-picker-selected:hover[b-1k0k5zy8ue] {
    border-color: var(--accent-fill-rest, #0078d4);
}

.mesh-node-picker-selected-card[b-1k0k5zy8ue] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.mesh-node-picker-avatar[b-1k0k5zy8ue] {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--accent-fill-rest, #0078d4);
    color: var(--foreground-on-accent-rest, white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

[b-1k0k5zy8ue] .mesh-node-picker-avatar-img {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

[b-1k0k5zy8ue] .mesh-node-picker-avatar-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--neutral-layer-3, #f0f0f0) var(--icon-url) no-repeat center / 18px;
}

/* Inline-SVG avatar. Harnesses (Claude Code, GitHub Copilot) embed their logo as a raw <svg> with
   a viewBox but NO width/height, injected via MarkupString. That <svg> carries no CSS-isolation
   scope attribute, so a scoped rule can't reach it — and with no intrinsic size it renders at the
   browser default (~300×150) and overflows / collapses, so the icon looked blank or generic.
   Constrain any inline avatar SVG to fill the avatar box. */
[b-1k0k5zy8ue] .mesh-node-picker-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mesh-node-picker-info[b-1k0k5zy8ue] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mesh-node-picker-name[b-1k0k5zy8ue] {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mesh-node-picker-type[b-1k0k5zy8ue] {
    font-size: 11px;
    color: var(--neutral-foreground-hint, #666);
}

/* Path shown small + muted beneath the name (the "nice mesh node display"). Truncates with
   an ellipsis so a long space-scoped path (AgenticPension/Agent/Datenextraktion) never blows
   out the picker width; the full path is available on hover via the title attribute. */
.mesh-node-picker-path[b-1k0k5zy8ue],
.mesh-node-picker-item-path[b-1k0k5zy8ue] {
    font-size: 11px;
    color: var(--neutral-foreground-hint, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category/group chip, right-aligned in the row. */
.mesh-node-picker-category[b-1k0k5zy8ue],
.mesh-node-picker-item-category[b-1k0k5zy8ue] {
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
    font-size: 10px;
    line-height: 1;
    color: var(--neutral-foreground-hint, #666);
    background: var(--neutral-layer-3, #f0f0f0);
    border-radius: 8px;
    padding: 3px 8px;
}

.mesh-node-picker-clear[b-1k0k5zy8ue] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    color: var(--neutral-foreground-hint, #666);
}

.mesh-node-picker-clear:hover[b-1k0k5zy8ue] {
    background: var(--neutral-layer-2);
    color: var(--neutral-foreground-rest);
}

/* Search input */
.mesh-node-picker-input[b-1k0k5zy8ue] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    border-radius: 4px;
    padding: 8px 12px;
    background: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    font-size: 14px;
    font-family: inherit;
    min-height: 40px;
    outline: none;
}

.mesh-node-picker-input:focus[b-1k0k5zy8ue] {
    border-color: var(--accent-fill-rest, #0078d4);
    box-shadow: 0 0 0 1px var(--accent-fill-rest, #0078d4);
}

.mesh-node-picker-input[b-1k0k5zy8ue]::placeholder {
    color: var(--neutral-foreground-hint, #999);
}

/* Dropdown */
.mesh-node-picker-overlay[b-1k0k5zy8ue] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Floating tier (above app chrome). The picker lives inside the chat composer, inside the side
       panel whose header is z-index:10 (and the portal menu bar at z-index:1100). At the old
       z-index:9/10 the upward-opening dropdown painted UNDER the side-panel top bar (close button
       etc.) — the reported overlap. Lift the overlay + dropdown to the same floating tier the
       slash-command palette uses so they render ABOVE all chrome. */
    z-index: 9999;
    background: transparent;
}

.mesh-node-picker-dropdown[b-1k0k5zy8ue] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--neutral-layer-floating, white);
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    border-radius: 4px;
    box-shadow: var(--elevation-shadow-flyout);
    z-index: 10000;
    padding: 4px;
    margin-top: 2px;
}

.mesh-node-picker-empty[b-1k0k5zy8ue] {
    padding: 12px;
    text-align: center;
    color: var(--neutral-foreground-hint, #999);
    font-size: 13px;
}

/* List items */
.mesh-node-picker-item[b-1k0k5zy8ue] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.mesh-node-picker-item:hover[b-1k0k5zy8ue] {
    background: var(--neutral-layer-2);
}

/* Keyboard-highlighted row (↑/↓). A clear accent box so the Enter target is obvious — stronger than
   hover, distinct from the persisted selection tint. */
.mesh-node-picker-item-highlighted[b-1k0k5zy8ue] {
    background: var(--accent-fill-subtle-rest, rgba(0, 120, 212, 0.12));
    box-shadow: inset 0 0 0 1px var(--accent-fill-rest, #0078d4);
}

.mesh-node-picker-item-selected[b-1k0k5zy8ue] {
    background: var(--accent-fill-subtle-rest, rgba(0, 120, 212, 0.08));
}

.mesh-node-picker-item-info[b-1k0k5zy8ue] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mesh-node-picker-item-name[b-1k0k5zy8ue] {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mesh-node-picker-item-type[b-1k0k5zy8ue] {
    font-size: 11px;
    color: var(--neutral-foreground-hint, #666);
}

/* The address beside a contact's name — "First Last <a@b.com>". Subordinate to the name (lighter,
   regular weight) so the row still scans by name, but present so two similarly-named people can be
   told apart and the sender can see exactly where the mail is going. */
.mesh-node-picker-email[b-1k0k5zy8ue] {
    font-weight: 400;
    color: var(--neutral-foreground-hint, #666);
    margin-left: 4px;
}

/* Open-upward dropdown — for bottom-anchored fields (e.g. the chat composer). Bound the height to
   the space available ABOVE the field so it doesn't grow up over the panel header (the chat-composer
   overlap). Whichever is smaller wins: the 300px cap or ~half the viewport. */
.mesh-node-picker-dropdown--top[b-1k0k5zy8ue] {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 2px;
    max-height: min(300px, 45vh);
}

/* Thin / compact variant — small icon, name only, minimal vertical footprint. */
.mesh-node-picker--thin .mesh-node-picker-selected[b-1k0k5zy8ue] {
    min-height: 28px;
    padding: 2px 6px;
}

.mesh-node-picker--thin .mesh-node-picker-input[b-1k0k5zy8ue] {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 13px;
}

.mesh-node-picker--thin .mesh-node-picker-avatar[b-1k0k5zy8ue] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 10px;
}

.mesh-node-picker--thin[b-1k0k5zy8ue]  .mesh-node-picker-avatar-img,
.mesh-node-picker--thin[b-1k0k5zy8ue]  .mesh-node-picker-avatar-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.mesh-node-picker--thin .mesh-node-picker-selected-card[b-1k0k5zy8ue] {
    gap: 6px;
}

.mesh-node-picker--thin .mesh-node-picker-name[b-1k0k5zy8ue] {
    font-size: 12px;
}

/* Hide the secondary node-type line to save vertical space. */
.mesh-node-picker--thin .mesh-node-picker-type[b-1k0k5zy8ue] {
    display: none;
}

.mesh-node-picker--thin .mesh-node-picker-clear[b-1k0k5zy8ue] {
    padding: 2px;
}
