/* _content/NetworkNodesApp/Components/NetworkGraph.razor.rz.scp.css */
.network-graph-wrapper[b-1fxe8pl79k] {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    margin: 0;
    background: transparent;
    overflow: hidden;
    touch-action: none;
}

/* ---- Family Tree view: light, printed-chart look instead of the dark network canvas ---- */
.network-graph-wrapper.family-tree-active[b-1fxe8pl79k] {
    background: #fbfaf7;
}

.family-tree-banner[b-1fxe8pl79k] {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
}

.family-tree-banner-ribbon[b-1fxe8pl79k] {
    position: relative;
    display: inline-block;
    background: #8fd9c4;
    color: #1b3a34;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 10px 30px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.family-tree-banner-ribbon[b-1fxe8pl79k]::before,
.family-tree-banner-ribbon[b-1fxe8pl79k]::after {
    content: "";
    position: absolute;
    top: 4px;
    width: 0;
    height: 0;
    border-style: solid;
}

.family-tree-banner-ribbon[b-1fxe8pl79k]::before {
    left: -13px;
    border-width: 13px 13px 13px 0;
    border-color: transparent #6fc4ac transparent transparent;
}

.family-tree-banner-ribbon[b-1fxe8pl79k]::after {
    right: -13px;
    border-width: 13px 0 13px 13px;
    border-color: transparent transparent transparent #6fc4ac;
}

.family-tree-active .node-label[b-1fxe8pl79k] {
    color: #263238;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.family-tree-active .edge-line[b-1fxe8pl79k] {
    stroke: #7fcdbb !important;
    stroke-width: 3;
    opacity: 1;
}

.family-tree-edge[b-1fxe8pl79k] {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.family-tree-active .node-pulse-ring[b-1fxe8pl79k] {
    display: none;
}

.family-tree-active .node-avatar[b-1fxe8pl79k] {
    animation: none;
}

.family-tree-active .node-ring[b-1fxe8pl79k] {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.family-tree-active .node-circle[b-1fxe8pl79k] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ---- Edges (SVG overlay behind the node layer) ---- */
.network-graph-lines[b-1fxe8pl79k] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.edge-line[b-1fxe8pl79k] {
    stroke-width: 2;
    opacity: 0.7;
}

.edge-hit-area[b-1fxe8pl79k] {
    stroke: transparent;
    stroke-width: 14;
    cursor: pointer;
    fill: none;
}

.edge-hit-area:hover ~ .edge-line[b-1fxe8pl79k] {
    opacity: 1;
}

.edge-label[b-1fxe8pl79k] {
    font-size: 6px;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-weight: 600;
    pointer-events: none;
}

.edge-tooltip[b-1fxe8pl79k] {
    position: fixed;
    z-index: 30;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    pointer-events: none;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

.edge-tooltip-names[b-1fxe8pl79k] {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
}

.edge-tooltip-rels[b-1fxe8pl79k] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.edge-tooltip-tag[b-1fxe8pl79k] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1.5px solid;
    font-size: 11px;
    font-weight: 600;
}

.edge-tooltip-dot[b-1fxe8pl79k] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.edge-tooltip-side + .edge-tooltip-side[b-1fxe8pl79k] {
    margin-top: 6px;
}

.edge-tooltip-side-label[b-1fxe8pl79k] {
    display: block;
    font-size: 10.5px;
    color: #777;
    margin-bottom: 3px;
    white-space: normal;
}
/* ---- Nodes (plain HTML, positioned by percentage) ---- */
.nodes-layer[b-1fxe8pl79k] {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.15s ease-out;
}

.node[b-1fxe8pl79k] {
    position: absolute;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    cursor: pointer;
    /* Long-pressing a node on touch devices would otherwise trigger the
       browser's text-selection / "copy" callout instead of the tap
       interaction this graph relies on. */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.node-circle[b-1fxe8pl79k] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.node-avatar[b-1fxe8pl79k] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    animation: avatar-breathe-b-1fxe8pl79k 3s ease-in-out infinite;
}

@keyframes avatar-breathe-b-1fxe8pl79k {
    0%, 100% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.04) rotate(1.5deg); }
    60% { transform: scale(1.02) rotate(-1deg); }
}

.node-face-avatar[b-1fxe8pl79k] {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.face-eye[b-1fxe8pl79k] {
    animation: blink-b-1fxe8pl79k 4s infinite;
    transform-origin: center;
}

.eye-right[b-1fxe8pl79k] {
    animation-delay: 0.05s; /* tiny offset so both eyes don't blink in perfect unison */
}

.face-mouth[b-1fxe8pl79k] {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

@keyframes blink-b-1fxe8pl79k {
    0%, 92%, 100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

.node-pulse-ring[b-1fxe8pl79k] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.7;
    animation: pulse-b-1fxe8pl79k 2.4s ease-out infinite;
}

@keyframes pulse-b-1fxe8pl79k {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

.node-ring[b-1fxe8pl79k] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid;
    pointer-events: none;
}

.node.selected .node-ring[b-1fxe8pl79k] {
    border-width: 5px;
    filter: drop-shadow(0 0 6px currentColor);
}

.node.drop-highlight .node-ring[b-1fxe8pl79k] {
    border-width: 5px;
    border-color: #4fc3f7 !important;
    filter: drop-shadow(0 0 12px #4fc3f7);
    animation: drop-pulse-b-1fxe8pl79k 0.6s ease-in-out infinite alternate;
}

@keyframes drop-pulse-b-1fxe8pl79k {
    from { filter: drop-shadow(0 0 8px #4fc3f7); }
    to { filter: drop-shadow(0 0 18px #4fc3f7cc); }
}

.node-label[b-1fxe8pl79k] {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    white-space: nowrap;
    /* Nodes are laid out and sized as a percentage of the canvas, so on a
       narrow phone screen the same relative spacing between nodes shrinks
       to far fewer actual pixels than on a desktop window — but this label
       text doesn't shrink on its own, so names that fit fine on desktop can
       run into a neighboring node's label on a phone. Capping the width and
       truncating with an ellipsis keeps any one label from sprawling into
       the next node's space; the mobile override below tightens this
       further where crowding is worst. */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    color: #e6ecff;
    font-size: 12px;
    font-family: "Segoe UI", system-ui, sans-serif;
}

@media (max-width: 640px) {
    .node-label[b-1fxe8pl79k] {
        font-size: 9px;
        max-width: 60px;
        margin-top: 5px;
    }
}

.node-details[b-1fxe8pl79k] {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 22, 40, 0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 14px;
    color: #e6ecff;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Dimmed, click-to-close backdrop behind an opened node info card — the
   "my node" panel (.context-menu, always modal) and another node's card
   once it's been clicked/tapped open (.node-tooltip-open). A card that's
   merely being hovered has no backdrop, since that's a transient preview,
   not a modal. Fixed to the viewport (not the graph canvas) so it covers
   the whole screen — including the sign-out bar — and blocks interaction
   with everything underneath until the card is dismissed. */
/* Home.razor's .logout-bar (the fixed sign-out/QR bar at the top of the
   screen) is z-index: 1000 so it always floats above the graph canvas.
   A real modal has to outrank that too — otherwise, as reported, someone
   can click the QR button right through an "open" node card — so the
   backdrop and the cards it sits behind (.context-menu, .node-tooltip-open)
   are pushed above 1000. .modal-overlay (Village Request / Edit
   Relationship, opened from within these cards) is bumped correspondingly
   higher so it still layers above the card it was opened from. */
.node-modal-backdrop[b-1fxe8pl79k] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1499;
}

.context-menu[b-1fxe8pl79k] {
    position: fixed;
    z-index: 1500;
    /* Center the "my node" info card on the browser viewport rather than
       anchoring it to the click point, so it's never clipped by the
       right/bottom edge of the window. */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    width: clamp(340px, 30vw, 640px);
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    color: #333;
    font-size: 13px;
    font-family: "Segoe UI", system-ui, sans-serif;
    pointer-events: auto;
    /* The graph canvas behind this panel sets touch-action:none so one-finger
       drags and pinches pan/zoom it. Without an explicit override here that
       restriction carries over to this panel too (touch-action is resolved
       against the whole ancestor chain, not just the element itself), which
       would make this panel's own scrolling unusable with touch. */
    touch-action: auto;
}

/* On mobile / narrow browser windows, the info card expands to fill the
   entire browser window instead of floating as a centered dialog. It's
   offset below the fixed, horizontally-centered sign-out bar (Home.razor's
   .logout-bar, ~56px tall including its own top offset) rather than
   starting at the very top of the viewport, so the two never overlap. */
@media (max-width: 640px) {
    .context-menu[b-1fxe8pl79k] {
        left: 0;
        top: calc(56px + env(safe-area-inset-top, 0px));
        transform: none;
        width: 100vw;
        /* 100vh is the *largest* viewport in mobile Safari (browser chrome
           hidden), not what's actually visible — with the address bar/
           bottom toolbar showing, a height built from 100vh runs past the
           visible area and the card's bottom (buttons, content) ends up
           underneath Safari's own UI. 100dvh tracks the real, currently-
           visible viewport and shrinks/grows as the toolbar shows/hides.
           The 100vh line stays first as a fallback for browsers that don't
           support dvh; it's simply overridden by the line below wherever
           dvh is supported. */
        height: calc(100vh - 56px - env(safe-area-inset-top, 0px));
        height: calc(100dvh - 56px - env(safe-area-inset-top, 0px));
        max-width: none;
        max-height: none;
        border-radius: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* Shared close (✕) button for both node info cards — the "my node" panel
   (.context-menu) and the other-node info card (.node-tooltip) — always
   pinned to the upper-left corner of whichever card it's placed in. */
.info-card-close[b-1fxe8pl79k] {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.info-card-close:hover[b-1fxe8pl79k] {
    background: rgba(0, 0, 0, 0.55);
}

.context-actions[b-1fxe8pl79k] {
    display: flex;
    border-top: 1px solid #e0e0e0;
}

.context-action-btn[b-1fxe8pl79k] {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid #e0e0e0;
    color: #1a73e8;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.context-action-btn:last-child[b-1fxe8pl79k] {
    border-right: none;
}

.context-action-btn:hover[b-1fxe8pl79k] {
    background: rgba(26, 115, 232, 0.08);
}

.family-tree-toggle-btn.active[b-1fxe8pl79k] {
    background: #e74c3c;
    color: #fff;
}

.family-tree-toggle-btn.active:hover[b-1fxe8pl79k] {
    background: #d33e2e;
}

.search-section[b-1fxe8pl79k] {
    border-top: 1px solid #e0e0e0;
}

.search-mode-toggle[b-1fxe8pl79k] {
    display: flex;
    gap: 12px;
    padding: 2px 12px 4px;
}

.search-mode-option[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82em;
    color: #ccc;
    cursor: pointer;
}

.search-mode-option input[type="radio"][b-1fxe8pl79k] {
    accent-color: #4f8cff;
    margin: 0;
    cursor: pointer;
}

.search-input-wrap[b-1fxe8pl79k] {
    position: relative;
    padding: 4px 12px 8px;
}

.search-input[b-1fxe8pl79k] {
    width: 100%;
    padding: 7px 28px 7px 10px;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    font-size: 13px;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.search-input:focus[b-1fxe8pl79k] {
    border-color: #1a73e8;
}

.search-input[b-1fxe8pl79k]::placeholder {
    color: #bbb;
}

.search-clear[b-1fxe8pl79k] {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
}

.search-clear:hover[b-1fxe8pl79k] {
    color: #333;
}

.search-results[b-1fxe8pl79k] {
    max-height: 160px;
    overflow-y: auto;
    border-top: 1px solid #f0f0f0;
}

.search-result-item[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #333;
}

.search-result-item:last-child[b-1fxe8pl79k] {
    border-bottom: none;
}

.search-result-item:hover[b-1fxe8pl79k] {
    background: rgba(26, 115, 232, 0.06);
}

.search-result-main[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}

.village-request-btn[b-1fxe8pl79k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #f0f4ff;
    color: #1a73e8;
    border: 1.5px solid #1a73e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.village-request-btn:hover[b-1fxe8pl79k] {
    background: #1a73e8;
    color: #fff;
}

.village-request-btn.pending[b-1fxe8pl79k] {
    background: #fff8e1;
    color: #f5a623;
    border-color: #f5a623;
}

.village-request-btn.pending:hover[b-1fxe8pl79k] {
    background: #f5a623;
    color: #fff;
}

.village-requests-section[b-1fxe8pl79k] {
    border-top: 1px solid #e0e0e0;
    padding: 6px 0;
}

.village-request-item[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.village-request-info[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.village-request-kind[b-1fxe8pl79k] {
    font-size: 10px;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.village-request-types[b-1fxe8pl79k] {
    font-size: 11px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.village-request-actions[b-1fxe8pl79k] {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.village-accept-btn[b-1fxe8pl79k],
.village-decline-btn[b-1fxe8pl79k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1.5px solid;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    transition: all 0.15s ease;
}

.village-accept-btn[b-1fxe8pl79k] {
    background: #f0fff4;
    color: #2ecc71;
    border-color: #2ecc71;
}

.village-accept-btn:hover[b-1fxe8pl79k] {
    background: #2ecc71;
    color: #fff;
}

.village-decline-btn[b-1fxe8pl79k] {
    background: #fff0f0;
    color: #e53935;
    border-color: #e53935;
}

.village-decline-btn:hover[b-1fxe8pl79k] {
    background: #e53935;
    color: #fff;
}

.search-result-avatar[b-1fxe8pl79k] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-result-name[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.search-result-title[b-1fxe8pl79k] {
    font-size: 11px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-village[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #2ecc71;
}

.search-no-results[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 10px 12px;
    font-size: 12px;
    color: #aaa;
}

.invite-btn[b-1fxe8pl79k] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f0f4ff;
    color: #1a73e8;
    border: 1.5px solid #1a73e8;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    font-family: "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
}

.invite-btn:hover[b-1fxe8pl79k] {
    background: #1a73e8;
    color: #fff;
}

.invite-btn:disabled[b-1fxe8pl79k] {
    opacity: 0.6;
    cursor: default;
}

.invite-status[b-1fxe8pl79k] {
    text-align: center;
    padding: 0 12px 10px;
    font-size: 11px;
    color: #2e7d32;
}

.invite-status-error[b-1fxe8pl79k] {
    color: #e53935;
}

.invite-prompt[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px 10px;
}

.invite-email-input[b-1fxe8pl79k] {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    font-size: 12px;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.invite-email-input:focus[b-1fxe8pl79k] {
    border-color: #1a73e8;
}

.invite-send-btn[b-1fxe8pl79k],
.invite-cancel-btn[b-1fxe8pl79k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #f0f4ff;
    color: #1a73e8;
    border: 1.5px solid #1a73e8;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.invite-send-btn:hover[b-1fxe8pl79k] {
    background: #1a73e8;
    color: #fff;
}

.invite-cancel-btn[b-1fxe8pl79k] {
    background: transparent;
    color: #999;
    border-color: #d0d0d0;
}

.invite-cancel-btn:hover[b-1fxe8pl79k] {
    background: #f5f5f5;
    color: #333;
}

.invite-send-btn:disabled[b-1fxe8pl79k],
.invite-cancel-btn:disabled[b-1fxe8pl79k] {
    opacity: 0.6;
    cursor: default;
}

.qr-hint[b-1fxe8pl79k] {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-top: 2px;
}

.tooltip-vcf[b-1fxe8pl79k] {
    display: flex;
    justify-content: center;
    padding: 10px 12px;
    border-top: 1px solid #e0e0e0;
}

.vcf-download-btn[b-1fxe8pl79k] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    margin-top: 10px;
    margin-bottom: 12px;
    background: #f0f4ff;
    color: #1a73e8;
    border: 1.5px solid #1a73e8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vcf-download-btn:hover[b-1fxe8pl79k] {
    background: #1a73e8;
    color: #fff;
}

.context-filters[b-1fxe8pl79k] {
    border-top: 1px solid #e0e0e0;
}

.context-filters-header[b-1fxe8pl79k] {
    color: #888;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 4px;
}

.link-level-bar[b-1fxe8pl79k] {
    display: flex;
    padding: 4px 12px 8px;
    gap: 6px;
}

.link-level-btn[b-1fxe8pl79k] {
    flex: 1;
    background: transparent;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    color: #888;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Segoe UI", system-ui, sans-serif;
    transition: all 0.15s ease;
}

.link-level-btn:hover[b-1fxe8pl79k] {
    border-color: #1a73e8;
    color: #1a73e8;
}

.link-level-btn.active[b-1fxe8pl79k] {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

.context-filters-list[b-1fxe8pl79k] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
}

.context-filters-actions[b-1fxe8pl79k] {
    display: flex;
    border-top: 1px solid #e0e0e0;
}

.filter-item[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    font-size: 11px;
    opacity: 0.4;
    background: transparent;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    color: #333;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.filter-item:nth-child(2n)[b-1fxe8pl79k] {
    border-right: none;
}

.filter-item:hover[b-1fxe8pl79k] {
    background: rgba(0, 0, 0, 0.06);
}

.filter-item.active[b-1fxe8pl79k] {
    opacity: 1;
}

.filter-check[b-1fxe8pl79k] {
    width: 14px;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
}

.filter-dot[b-1fxe8pl79k] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.connections-list[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.connection-item[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.connection-dots[b-1fxe8pl79k] {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.connection-dot[b-1fxe8pl79k] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.properties-list[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.property-item[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.property-icon[b-1fxe8pl79k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.property-icon svg[b-1fxe8pl79k] {
    width: 14px;
    height: 14px;
}

.property-label[b-1fxe8pl79k] {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    font-size: 13px;
    min-width: 70px;
}

.property-key[b-1fxe8pl79k] {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.property-link[b-1fxe8pl79k] {
    color: #4fc3f7;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.property-link:hover[b-1fxe8pl79k] {
    text-decoration: underline;
}

.property-value[b-1fxe8pl79k] {
    color: #e6ecff;
}

.modal-overlay[b-1fxe8pl79k] {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Opened from within .context-menu/.node-tooltip-open (z-index: 1500),
       and those already outrank Home.razor's .logout-bar (z-index: 1000) —
       this has to stay above both. */
    z-index: 1600;
    /* See the matching comment on .context-menu: the graph canvas underneath
       sets touch-action:none for panning/pinch-zoom, which would otherwise
       carry over and block touch scrolling inside these dialogs. */
    touch-action: auto;
    padding: 16px;
    box-sizing: border-box;
}

/* Shifted 25% left of center (instead of dead-center) so it sits closer to
   the "my node" panel it was opened from, leaving the rest of a wide window
   free instead of centering across the whole viewport. Only makes sense
   once there's enough width for the panel plus that 25% margin, so it's
   restricted to wider windows below; see the mobile override further down. */
@media (min-width: 641px) {
    .village-request-overlay[b-1fxe8pl79k] {
        justify-content: flex-start;
    }

    .village-request-overlay .modal-panel[b-1fxe8pl79k] {
        margin-left: 25%;
        transform: translateX(-50%);
    }
}

.modal-panel[b-1fxe8pl79k] {
    background: rgba(20, 25, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0;
    width: 380px;
    min-width: 380px;
    max-width: 480px;
    /* Same mobile-Safari caveat as the node card rules above: 100vh doesn't
       account for the on-screen toolbar, so 100dvh is preferred where
       supported and 100vh stays as the fallback. */
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #e6ecff;
}

/* On mobile / narrow browser windows, dialogs (Edit My Properties, the
   drop-confirm prompt, village requests, edit relationship) size to the
   available width instead of forcing a fixed 380px that would overflow the
   screen and clip or force horizontal scrolling. */
@media (max-width: 640px) {
    .modal-panel[b-1fxe8pl79k] {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
}

.modal-header[b-1fxe8pl79k] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.modal-close[b-1fxe8pl79k] {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.modal-close:hover[b-1fxe8pl79k] {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body[b-1fxe8pl79k] {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

/* Let the body use whatever space is left inside the full-height mobile
   dialog (see the .modal-panel mobile override above) instead of the
   desktop's fixed 300px cap, so there's more room to read/edit on a phone
   screen while the header and footer stay pinned in place. */
@media (max-width: 640px) {
    .modal-body[b-1fxe8pl79k] {
        max-height: none;
        flex: 1 1 auto;
    }
}

.drop-confirm-content[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.drop-confirm-icon[b-1fxe8pl79k] {
    transform: scale(2);
    margin: 8px 0;
}

.drop-confirm-type[b-1fxe8pl79k] {
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
}

.drop-confirm-url[b-1fxe8pl79k] {
    font-size: 0.85em;
    color: #aaa;
    word-break: break-all;
    text-align: center;
    max-width: 100%;
}

.property-row[b-1fxe8pl79k] {
    display: flex;
    gap: 6px;
    align-items: center;
}

.property-input[b-1fxe8pl79k] {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #e6ecff;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.property-input:focus[b-1fxe8pl79k] {
    border-color: rgba(79, 140, 255, 0.6);
}

.key-input[b-1fxe8pl79k] {
    width: 100px;
    flex-shrink: 0;
}

select.property-input option[b-1fxe8pl79k] {
    background: #1a1a2e;
    color: #e6ecff;
}

.value-input[b-1fxe8pl79k] {
    flex: 1;
    min-width: 0;
}

.property-remove[b-1fxe8pl79k],
.property-add[b-1fxe8pl79k] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e6ecff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-remove:hover[b-1fxe8pl79k] {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    color: #e74c3c;
}

.property-add:hover:not(:disabled)[b-1fxe8pl79k] {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
    color: #2ecc71;
}

.property-add:disabled[b-1fxe8pl79k] {
    opacity: 0.3;
    cursor: not-allowed;
}

.property-row-group[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.property-visibility-row[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 28px;
}

.visibility-label[b-1fxe8pl79k] {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 2px;
    white-space: nowrap;
}

.visibility-checkbox[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.visibility-checkbox input[type="checkbox"][b-1fxe8pl79k] {
    accent-color: var(--cat-color);
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
}

.visibility-checkbox-label[b-1fxe8pl79k] {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.search-visibility-group[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-visibility-toggle input[type="checkbox"][b-1fxe8pl79k] {
    accent-color: #4f8cff;
    width: 15px;
    height: 15px;
}

.search-visibility-toggle .visibility-checkbox-label[b-1fxe8pl79k] {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.search-visibility-hint[b-1fxe8pl79k] {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    padding-left: 23px;
}

.village-request-hint[b-1fxe8pl79k] {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.relationship-type-grid[b-1fxe8pl79k] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 4px 0 2px;
}

.add-row[b-1fxe8pl79k] {
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer[b-1fxe8pl79k] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn[b-1fxe8pl79k] {
    padding: 7px 18px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.modal-btn:disabled[b-1fxe8pl79k] {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-btn.cancel[b-1fxe8pl79k] {
    background: rgba(255, 255, 255, 0.08);
    color: #e6ecff;
}

.modal-btn.cancel:hover:not(:disabled)[b-1fxe8pl79k] {
    background: rgba(255, 255, 255, 0.14);
}

.modal-btn.save[b-1fxe8pl79k] {
    background: #4f8cff;
    color: #fff;
}

.modal-btn.save:hover:not(:disabled)[b-1fxe8pl79k] {
    background: #3a7ae8;
}

.modal-btn.save:disabled[b-1fxe8pl79k] {
    background: #6b7a99;
}

.node-tooltip[b-1fxe8pl79k] {
    position: fixed;
    z-index: 20;
    background: #ffffff;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    color: #333;
    font-size: 13px;
    font-family: "Segoe UI", system-ui, sans-serif;
    pointer-events: auto;
    overflow: hidden;
    /* See the matching comment on .context-menu: without this, the graph
       canvas's touch-action:none carries over and blocks touch scrolling
       inside this card once it's opened full-screen on mobile. */
    touch-action: auto;
}

/* Node info card — opened state (click/tap, or "go to node" from search).
   Instead of anchoring next to the click point (which can run off the
   right/bottom edge of the window), the card is centered on the browser
   viewport so it's always fully visible. */
.node-tooltip-open[b-1fxe8pl79k] {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
    /* Only the opened/modal state needs to outrank Home.razor's .logout-bar
       (z-index: 1000) — the passive hover preview stays at the base
       .node-tooltip z-index below the graph's other overlays. */
    z-index: 1500;
}

/* On mobile / narrow browser windows, an opened node info card expands to
   fill the entire browser window instead of floating as a small centered
   card, so its content is comfortably readable at touch scale. It's offset
   below the fixed, horizontally-centered sign-out bar (Home.razor's
   .logout-bar, ~56px tall including its own top offset) rather than
   starting at the very top of the viewport, so the two never overlap. */
@media (max-width: 640px) {
    .node-tooltip-open[b-1fxe8pl79k] {
        left: 0 !important;
        top: calc(56px + env(safe-area-inset-top, 0px)) !important;
        transform: none;
        width: 100vw;
        /* See the matching comment on the mobile .context-menu rule above:
           100vh doesn't shrink for Safari's on-screen toolbar, so it can
           run the card's bottom edge under the browser's own UI. 100dvh
           tracks the visible viewport instead; the 100vh line is kept as a
           fallback for browsers without dvh support. */
        height: calc(100vh - 56px - env(safe-area-inset-top, 0px));
        height: calc(100dvh - 56px - env(safe-area-inset-top, 0px));
        max-height: none;
        max-width: none;
        border-radius: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

.tooltip-header[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 16px;
    color: #333;
}

.tooltip-header.my-tooltip-header[b-1fxe8pl79k] {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 14px;
}

.header-identity[b-1fxe8pl79k] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.header-identity-text[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-identity-text .tooltip-name[b-1fxe8pl79k] {
    text-align: left;
}

.header-identity-text .tooltip-title[b-1fxe8pl79k] {
    text-align: left;
}

.header-qr[b-1fxe8pl79k] {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

.header-qr[b-1fxe8pl79k]  svg {
    width: 80px;
    height: 80px;
    border-radius: 6px;
}

.tooltip-avatar[b-1fxe8pl79k] {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.tooltip-name[b-1fxe8pl79k] {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tooltip-title[b-1fxe8pl79k] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 4px;
}

.tooltip-grid[b-1fxe8pl79k] {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tooltip-tile[b-1fxe8pl79k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    min-width: 0;
    border-top: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
}

.tooltip-tile:nth-child(2n)[b-1fxe8pl79k] {
    border-right: none;
}

.tooltip-tile-label[b-1fxe8pl79k] {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
}

.tooltip-tile-value[b-1fxe8pl79k] {
    font-size: 11px;
    color: #555;
    word-break: break-all;
}

.tooltip-tile-link[b-1fxe8pl79k] {
    font-size: 11px;
    color: #555;
    text-decoration: none;
    word-break: break-all;
}

.tooltip-tile-link:hover[b-1fxe8pl79k] {
    text-decoration: underline;
    color: #1a73e8;
}

.tooltip-connection-bar[b-1fxe8pl79k] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 11px;
    color: #555;
    background: rgba(0, 0, 0, 0.06);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ---- Touch target sizing ----
   Several small icon buttons are comfortable to click with a mouse pointer
   but fall well under the ~40px minimum that's reliable to hit with a
   fingertip. On narrow / touch-scale windows, size them up so they're easy
   to tap without enlarging them unnecessarily on desktop. */
@media (max-width: 640px) {
    .info-card-close[b-1fxe8pl79k],
    .village-accept-btn[b-1fxe8pl79k],
    .village-decline-btn[b-1fxe8pl79k],
    .village-request-btn[b-1fxe8pl79k],
    .invite-send-btn[b-1fxe8pl79k],
    .invite-cancel-btn[b-1fxe8pl79k],
    .property-remove[b-1fxe8pl79k],
    .property-add[b-1fxe8pl79k] {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .modal-close[b-1fxe8pl79k] {
        padding: 8px 12px;
        font-size: 16px;
    }

    .search-clear[b-1fxe8pl79k] {
        padding: 8px 10px;
        font-size: 13px;
    }

    .context-action-btn[b-1fxe8pl79k],
    .link-level-btn[b-1fxe8pl79k] {
        padding: 12px 8px;
        font-size: 13px;
    }

    .filter-item[b-1fxe8pl79k] {
        padding: 12px 10px;
        font-size: 12px;
    }
}

/* _content/NetworkNodesApp/Components/Pages/Error.razor.rz.scp.css */
.error-page[b-kp6gl0sq9z] {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: #05070d;
    color: #e6ecff;
    font-family: "Segoe UI", system-ui, sans-serif;
    padding: 16px;
    box-sizing: border-box;
}

.error-card[b-kp6gl0sq9z] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
}

.error-card h2[b-kp6gl0sq9z] {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
}

.error-card p[b-kp6gl0sq9z] {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
}

.error-request-id[b-kp6gl0sq9z] {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.error-request-id code[b-kp6gl0sq9z] {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.error-home-link[b-kp6gl0sq9z] {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 24px;
    background: #4f8cff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.error-home-link:hover[b-kp6gl0sq9z] {
    background: #3a7ae8;
}
/* _content/NetworkNodesApp/Components/Pages/Home.razor.rz.scp.css */
.login-page[b-ai40b0ha8w] {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
}

.login-card[b-ai40b0ha8w] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 380px;
    width: 100%;
}

.login-card h2[b-ai40b0ha8w] {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.login-card p[b-ai40b0ha8w] {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.login-buttons[b-ai40b0ha8w] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[b-ai40b0ha8w] .login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
}

[b-ai40b0ha8w] .login-btn:hover {
    opacity: 0.9;
}

[b-ai40b0ha8w] .google-btn {
    background: #fff;
    color: #333;
}

[b-ai40b0ha8w] .microsoft-btn {
    background: #2f2f2f;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logout-bar[b-ai40b0ha8w] {
    position: fixed;
    /* env(safe-area-inset-top) keeps this clear of the notch / status bar
       on phones like the iPhone instead of sitting underneath it. */
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5c518;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

[b-ai40b0ha8w] .logout-bar .user-name {
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

@media (max-width: 640px) {
    [b-ai40b0ha8w] .logout-bar .user-name {
        max-width: 40vw;
    }
}

[b-ai40b0ha8w] .logout-bar a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

[b-ai40b0ha8w] .logout-bar a:hover {
    text-decoration: underline;
}

[b-ai40b0ha8w] .logout-bar .recenter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    cursor: pointer;
}

[b-ai40b0ha8w] .logout-bar .recenter-btn:hover,
[b-ai40b0ha8w] .logout-bar .recenter-btn:focus,
[b-ai40b0ha8w] .logout-bar .recenter-btn:focus-visible {
    background: rgba(0, 0, 0, 0.22);
    outline: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    [b-ai40b0ha8w] .logout-bar .recenter-btn {
        width: 30px;
        height: 30px;
    }
}

/* App icon badge — a solid circular tile, matching the other round buttons
   in the logout-bar, with no square corners/edges. Background matches the
   logout-bar itself (#f5c518) so the icon reads as part of the bar rather
   than a separate colored tile sitting on top of it. */
[b-ai40b0ha8w] .logout-bar .app-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    /* A focus outline follows the element's rectangular bounding box, not
       its border-radius, in most browsers — so a plain "border: none" alone
       still left a square outline visible around this circular button
       whenever it held focus (e.g. right after being clicked/tapped). */
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    background: #f5c518;
    cursor: pointer;
}

[b-ai40b0ha8w] .logout-bar .app-icon-btn:hover,
[b-ai40b0ha8w] .logout-bar .app-icon-btn:focus,
[b-ai40b0ha8w] .logout-bar .app-icon-btn:focus-visible {
    background: #e0b30f;
    outline: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    [b-ai40b0ha8w] .logout-bar .app-icon-btn {
        width: 30px;
        height: 30px;
    }
}

.qr-modal-overlay[b-ai40b0ha8w] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.qr-modal-panel[b-ai40b0ha8w] {
    background: rgba(20, 25, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    width: 320px;
    max-width: calc(100vw - 32px);
    color: #e6ecff;
}

.qr-modal-header[b-ai40b0ha8w] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.qr-modal-close[b-ai40b0ha8w] {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.qr-modal-close:hover[b-ai40b0ha8w] {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.qr-modal-body[b-ai40b0ha8w] {
    padding: 20px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

[b-ai40b0ha8w] .qr-modal-body svg {
    width: 220px;
    height: 220px;
    border-radius: 8px;
}

.qr-modal-url[b-ai40b0ha8w] {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    word-break: break-all;
    text-align: center;
}
/* _content/NetworkNodesApp/Components/Pages/Profile.razor.rz.scp.css */
.profile-page[b-n7trrca4p1] {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: #f0f2f5;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.profile-card[b-n7trrca4p1] {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header[b-n7trrca4p1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 24px;
    color: #fff;
}

.profile-avatar[b-n7trrca4p1] {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}

.profile-name[b-n7trrca4p1] {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.profile-title[b-n7trrca4p1] {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 6px;
}

.profile-company[b-n7trrca4p1] {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 2px;
}

.profile-links[b-n7trrca4p1] {
    display: flex;
    flex-direction: column;
}

.profile-link-item[b-n7trrca4p1] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.15s ease;
}

.profile-link-item:last-child[b-n7trrca4p1] {
    border-bottom: none;
}

.profile-link-item:hover[b-n7trrca4p1] {
    background: #f8f9fa;
}

.profile-link-icon[b-n7trrca4p1] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.profile-link-icon[b-n7trrca4p1]  svg {
    width: 28px;
    height: 28px;
}

.profile-link-label[b-n7trrca4p1] {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    min-width: 80px;
}

.profile-link-value[b-n7trrca4p1] {
    font-size: 14px;
    color: #1a73e8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-vcf[b-n7trrca4p1] {
    display: flex;
    justify-content: center;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.profile-vcf-btn[b-n7trrca4p1] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #f0f4ff;
    color: #1a73e8;
    border: 1.5px solid #1a73e8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-vcf-btn:hover[b-n7trrca4p1] {
    background: #1a73e8;
    color: #fff;
}

.profile-footer[b-n7trrca4p1] {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: #bbb;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
}
