/* /Components/Chat/ChatInput.razor.rz.scp.css */
.chat-input-bar[b-5w5pu78uhx] {
    padding: 8px 16px 14px;
    /* Transparent so the page background shows through — only the pill is a white
       (surface) sheet, making it float in the foreground instead of sitting on a
       same-colour bar. */
    background: transparent;
    flex-shrink: 0;
}

/* Center the composer in the same max-width column as the messages so it is not
   full-width on large screens (matches the reference). */
.chat-input-column[b-5w5pu78uhx] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: var(--chat-max-width, 768px);
    margin-inline: auto;
}

.chat-input-pill[b-5w5pu78uhx] {
    display: flex;
    align-items: center;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: 26px;
    padding: 4px 6px;
    /* Compact at rest — hugs the 40px send button; grows only when the textarea
       gains real lines (AutoGrow), not from idle padding. */
    min-height: 48px;
    gap: 4px;
    /* Stronger, softer shadow so the white pill clearly floats above the page bg. */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.chat-input-pill:focus-within[b-5w5pu78uhx] {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 2px rgba(var(--mud-palette-primary-rgb), 0.15);
}

/* Strip MudTextField's own outline since the pill handles it */
.chat-input-pill[b-5w5pu78uhx]  .mud-input-outlined .mud-notched-outline {
    border: none !important;
}

.chat-input-pill[b-5w5pu78uhx]  .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-width: 0 !important;
}

.chat-input-pill[b-5w5pu78uhx]  .mud-input-outlined {
    padding: 4px 0 !important;
}

/* Remove extra height from textarea — let it grow from a single line */
.chat-input-pill[b-5w5pu78uhx]  textarea {
    min-height: 0 !important;
    padding: 0 !important;
    line-height: 1.5;
    resize: none;
}

.pill-icon-btn[b-5w5pu78uhx] {
    flex-shrink: 0;
}

.pill-send-btn[b-5w5pu78uhx] {
    flex-shrink: 0;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.char-counter[b-5w5pu78uhx] {
    font-size: 11px;
    text-align: right;
}

/* EU AI Act Art. 50(1) disclosure — subtle, centered, always visible under the pill. */
.ai-disclosure[b-5w5pu78uhx] {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    color: var(--mud-palette-text-secondary);
}
/* /Components/Chat/ChatInterface.razor.rz.scp.css */
.chat-interface[b-9fzph3r0w1] {
    position: fixed;
    top: var(--mud-appbar-height, 48px);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
    background: var(--mud-palette-background);
    z-index: 5;
    /* Shared readable column width for the conversation + composer. Inherited by the
       MessageList and ChatInput scoped styles (CSS custom properties cross isolation). */
    --chat-max-width: 768px;
}

/* On desktop (≥ Md) MainLayout's nav drawer is permanently docked and offsets the
   main content. A position:fixed layer ignores that offset, so without this it would
   slide UNDER the drawer and hide the history panel. Fixed elements still inherit
   DOM-ancestor custom properties, so we reuse MudBlazor's own drawer-width variable
   (240px fallback = MudBlazor default) to start the chat just right of the nav menu. */
@media (min-width: 960px) {
    .chat-interface[b-9fzph3r0w1] {
        left: var(--mud-drawer-width, var(--mud-drawer-width-left, 240px));
    }
}

/* ── Main chat area ───────────────────────────── */
.chat-main[b-9fzph3r0w1] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.message-area[b-9fzph3r0w1] {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.discovery-panel[b-9fzph3r0w1] {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-background);
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms ease, visibility 300ms ease;
    overflow-y: auto;
    padding: 24px;
}

.chat-main.is-chat .discovery-panel[b-9fzph3r0w1] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.chat-topbar[b-9fzph3r0w1] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    /* No white strip / divider — the title and history button float directly over the
       page background. Separation from the messages comes from the layout (the message
       area scrolls in its own region below), not from a heavy bar. */
    background: transparent;
    height: 52px;
    flex-shrink: 0;
}

/* ── History dropdown (inside MudMenu ChildContent) ── */
.chat-history-dropdown[b-9fzph3r0w1] {
    width: 300px;
    max-height: 70vh;
    overflow-y: auto;
}
/* /Components/Chat/ConversationSidebar.razor.rz.scp.css */
.sidebar-inner[b-bdbdabg971] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid var(--mud-palette-divider);
}

.sidebar-brand[b-bdbdabg971] {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--mud-palette-divider);
    flex-shrink: 0;
}

.sidebar-search[b-bdbdabg971] {
    padding: 8px 12px;
    flex-shrink: 0;
}

.sidebar-list[b-bdbdabg971] {
    flex: 1;
    overflow-y: auto;
}

.sidebar-group-label[b-bdbdabg971] {
    font-size: 11px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary) !important;
    padding: 12px 16px 4px !important;
}

.sidebar-item[b-bdbdabg971] {
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 150ms ease;
}

.sidebar-item--active[b-bdbdabg971] {
    border-left-color: var(--mud-palette-primary) !important;
    background: rgba(var(--mud-palette-primary-rgb), 0.08) !important;
}
/* /Components/Chat/EmptyChat.razor.rz.scp.css */
.empty-chat[b-34zn91cv57] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.discovery-heading[b-34zn91cv57] {
    /* Primary blue -> accent cyan, matching the brand's primary/accent pairing
       (previously an unrelated purple that clashed with the navy palette). */
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
}

.suggestion-grid[b-34zn91cv57] {
    margin-top: 2rem;
    width: 100%;
}

.suggestion-chip[b-34zn91cv57] {
    display: flex;
    align-items: flex-start;
    /* Gap lives on the flex container (this scoped div), so spacing is reliable
       regardless of child-component CSS isolation, and is RTL-safe (unlike margin). */
    gap: 12px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 16px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
    text-align: start;
    background: transparent;
    width: 100%;
    /* Fill the grid cell so chips in the same row match the tallest one,
       even when one label wraps to multiple lines in a longer language. */
    height: 100%;
    box-sizing: border-box;
}

.suggestion-chip:hover[b-34zn91cv57] {
    border-color: var(--mud-palette-primary);
    background: var(--mud-palette-action-hover);
}

.suggestion-chip:focus-visible[b-34zn91cv57] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* ::deep pierces Blazor CSS isolation to reach the MudIcon's rendered <svg>,
   which otherwise never receives this component's scope attribute. */
.suggestion-chip[b-34zn91cv57]  .suggestion-chip-icon {
    color: var(--mud-palette-primary);
    flex-shrink: 0;
    /* Optically align the icon with the cap height of the first text line. */
    margin-top: 2px;
}

/* Allow the label to shrink and wrap inside the flex row instead of overflowing
   on long words (e.g. German compounds) or long strings in any language. */
.suggestion-chip[b-34zn91cv57]  .suggestion-chip-text {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

/* Loading placeholders occupy the same 2×2 grid cells as the chips so swapping
   skeleton → tips causes no layout shift. ::deep reaches the MudSkeleton root. */
.suggestion-grid[b-34zn91cv57]  .suggestion-skeleton {
    width: 100%;
    border-radius: 16px;
    transform: none;
}
/* /Components/Chat/MarkdownRenderer.razor.rz.scp.css */
.markdown-body[b-3ilx7ye9h4]  a {
    color: var(--mud-palette-primary);
    text-decoration: underline;
    cursor: pointer;
}

.markdown-body[b-3ilx7ye9h4]  a:hover {
    opacity: 0.8;
}
/* /Components/Chat/MessageBubble.razor.rz.scp.css */
.bubble-row[b-kgw21vt2b4] {
    display: flex;
    gap: 10px;
    max-width: 85%;
    margin-bottom: 4px;
}

.bubble-row--user[b-kgw21vt2b4] {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 70%;
}

.bubble-row--ai[b-kgw21vt2b4] {
    align-self: flex-start;
}

.ai-avatar[b-kgw21vt2b4] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.bubble--user[b-kgw21vt2b4] {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: 20px;
    padding: 10px 16px;
    word-break: break-word;
    line-height: 1.6;
}

.bubble--ai[b-kgw21vt2b4] {
    background: transparent;
    padding: 2px 0;
    word-break: break-word;
    line-height: 1.7;
    flex: 1;
    min-width: 0;
}

.bubble-wrapper[b-kgw21vt2b4] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.bubble-footer[b-kgw21vt2b4] {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.bubble-footer--user[b-kgw21vt2b4] {
    justify-content: flex-end;
}

.bubble-time[b-kgw21vt2b4] {
    font-size: 11px;
    opacity: 0.45;
}

.bubble-actions[b-kgw21vt2b4] {
    opacity: 0;
    transition: opacity 150ms ease;
}

.bubble-row:hover .bubble-actions[b-kgw21vt2b4] {
    opacity: 1;
}
/* /Components/Chat/MessageList.razor.rz.scp.css */
.message-list-container[b-xg19ljydnx] {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.message-list[b-xg19ljydnx] {
    flex: 1;
    overflow-y: auto;
    /* Center the conversation in a readable, max-width column (Gemini-style) instead of
       letting bubbles span the whole screen. The scrollbar stays at the screen edge;
       only the content is inset. Falls back to a 16px gutter on narrow screens. */
    padding: 24px max(16px, calc(50% - var(--chat-max-width, 768px) / 2));
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-list[b-xg19ljydnx]::-webkit-scrollbar {
    width: 4px;
}

.message-list[b-xg19ljydnx]::-webkit-scrollbar-thumb {
    background: var(--mud-palette-divider);
    border-radius: 4px;
}

.scroll-to-bottom-fab[b-xg19ljydnx] {
    position: absolute;
    bottom: 16px;
    right: 24px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* /Components/Chat/TypingIndicator.razor.rz.scp.css */
.thinking-row[b-qxeqvam0bi] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.thinking-avatar[b-qxeqvam0bi] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.thinking-dots[b-qxeqvam0bi] {
    display: flex;
    gap: 5px;
    align-items: center;
}

.dot[b-qxeqvam0bi] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mud-palette-text-secondary);
    animation: thinking-b-qxeqvam0bi 1.4s infinite ease-in-out;
}

.dot-1[b-qxeqvam0bi] { animation-delay: 0s; }
.dot-2[b-qxeqvam0bi] { animation-delay: 0.2s; }
.dot-3[b-qxeqvam0bi] { animation-delay: 0.4s; }

@keyframes thinking-b-qxeqvam0bi {
    0%, 60%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dot[b-qxeqvam0bi] {
        animation: none;
        opacity: 0.6;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-852g2hn1y7] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-852g2hn1y7] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-pryedu720l],
.components-reconnect-repeated-attempt-visible[b-pryedu720l],
.components-reconnect-failed-visible[b-pryedu720l],
.components-pause-visible[b-pryedu720l],
.components-resume-failed-visible[b-pryedu720l],
.components-rejoining-animation[b-pryedu720l] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-pryedu720l],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-pryedu720l],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-pryedu720l],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-pryedu720l],
#components-reconnect-modal.components-reconnect-retrying[b-pryedu720l],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-pryedu720l],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-pryedu720l],
#components-reconnect-modal.components-reconnect-failed[b-pryedu720l],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-pryedu720l] {
    display: block;
}


#components-reconnect-modal[b-pryedu720l] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-pryedu720l 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-pryedu720l 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-pryedu720l 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-pryedu720l]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-pryedu720l 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-pryedu720l {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-pryedu720l {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-pryedu720l {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-pryedu720l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-pryedu720l] {
    margin: 0;
    text-align: center;
}

/* Colors aligned to the brand primary blue (framework default was an unrelated
   stock blue). Hover darkens (blue-500 -> blue-600), matching the framework's
   original darken-on-hover relationship so white button text stays legible. */
#components-reconnect-modal button[b-pryedu720l] {
    border: 0;
    background-color: #3B82F6;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-pryedu720l] {
        background-color: #2563EB;
    }

    #components-reconnect-modal button:active[b-pryedu720l] {
        background-color: #3B82F6;
    }

.components-rejoining-animation[b-pryedu720l] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-pryedu720l] {
        position: absolute;
        border: 3px solid #3B82F6;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-pryedu720l 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-pryedu720l] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-pryedu720l {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Locations/LocationFab.razor.rz.scp.css */
/* ── Floating action button — mobile only (hidden ≥ sm = 600px) ─────────── */

.swa-fab[b-jwz6odmv7g] {
    /* Hidden on sm and up; the NodeToolbar Add button serves that role. */
    display: none;
}

@media (max-width: 599.98px) {
    .swa-fab[b-jwz6odmv7g] {
        display: flex;
        align-items: center;
        justify-content: center;

        /* Fixed position: bottom-right, lifted clear of the page footer (the slim legal
           strip) so it never overlaps it when scrolled to the bottom, plus safe-area. */
        position: fixed;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: 20px;
        z-index: 100;

        /* Size: well above the 44px WCAG touch-target minimum */
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: none;

        /* Brand blue — use the fixed brand token so the button stays accessible
           on any background in both light and dark themes. Text (#fff) gives ~6.7:1. */
        background: var(--swa-accent-fixed);
        color: #ffffff;

        /* Elevation via box-shadow */
        box-shadow: 0 4px 12px rgba(28, 25, 23, 0.22), 0 1px 4px rgba(28, 25, 23, 0.14);

        cursor: pointer;
        transition: box-shadow 0.15s ease, transform 0.12s ease;
    }

    .swa-fab:hover:not(:disabled)[b-jwz6odmv7g] {
        box-shadow: 0 6px 20px rgba(28, 25, 23, 0.28), 0 2px 6px rgba(28, 25, 23, 0.18);
        transform: scale(1.06);
    }

    .swa-fab:active:not(:disabled)[b-jwz6odmv7g] {
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(28, 25, 23, 0.20);
    }

    .swa-fab:focus-visible[b-jwz6odmv7g] {
        outline: 3px solid var(--swa-accent-ring);
        outline-offset: 3px;
    }

    .swa-fab:disabled[b-jwz6odmv7g] {
        opacity: 0.4;
        cursor: not-allowed;
    }

    @media (prefers-reduced-motion: reduce) {
        .swa-fab[b-jwz6odmv7g],
        .swa-fab:hover:not(:disabled)[b-jwz6odmv7g],
        .swa-fab:active:not(:disabled)[b-jwz6odmv7g] {
            transition: none;
            transform: none;
        }
    }

    .swa-fab__icon[b-jwz6odmv7g] {
        /* Flex-centred by the button; the SVG is centre-symmetric so no nudge needed. */
        display: block;
        width: 24px;
        height: 24px;
    }
}
/* /Components/Locations/LocationNodeCard.razor.rz.scp.css */
/* ── Card host (scoped positioning context) ───────────────────────────────── */
/*
 * .swa-node-card-host is authored in THIS component's markup, so Blazor stamps
 * it with the b-xxxx scope attribute.  It is the nearest positioned ancestor for
 * the stretched-link ::after overlay.
 *
 * MudCard (a child component) does NOT receive the scope attribute, so any
 * rule targeting `.swa-node-card[b-xxxx]` would never match its rendered root
 * div — which is the root cause of the "last card wins" click bug.  All
 * cosmetic rules that previously targeted .swa-node-card are now either placed
 * on the host or reached via ::deep from the host.
 */

.swa-node-card-host[b-eatlmdrfza] {
    position: relative;   /* positioned ancestor for .swa-node-card__link::after */
    height: 100%;
}

.swa-node-card-host--compact[b-eatlmdrfza] {
    height: auto;
}

/* Hover / focus-within on the host (the link is inside the host, so
   :focus-within fires here correctly even though the link is deep in MudCard). */
.swa-node-card-host:hover[b-eatlmdrfza]  .swa-node-card,
.swa-node-card-host:focus-within[b-eatlmdrfza]  .swa-node-card {
    box-shadow: var(--swa-shadow-card-hover) !important;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .swa-node-card-host:hover[b-eatlmdrfza]  .swa-node-card,
    .swa-node-card-host:focus-within[b-eatlmdrfza]  .swa-node-card {
        transform: none;
    }
}

.swa-node-card-host:focus-within[b-eatlmdrfza] {
    outline: 2px solid var(--swa-accent-ring);
    outline-offset: 2px;
    border-radius: var(--swa-radius-card);
}

/* ── MudCard cosmetics reached via ::deep ─────────────────────────────────── */

.swa-node-card-host[b-eatlmdrfza]  .swa-node-card {
    border-radius: var(--swa-radius-card) !important;
    box-shadow: var(--swa-shadow-card) !important;
    background-color: var(--swa-surface);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .swa-node-card-host[b-eatlmdrfza]  .swa-node-card {
        transition: none;
    }
}

.swa-node-card-host--compact[b-eatlmdrfza]  .swa-node-card {
    height: auto;
}

/* ── Stretched link: the name anchor covers the whole host ────────────────── */

.swa-node-card__link[b-eatlmdrfza] {
    color: inherit;
    text-decoration: none;
    outline: none; /* focus is shown on the host via :focus-within */
}

.swa-node-card__link:hover[b-eatlmdrfza] {
    text-decoration: underline;
}

.swa-node-card__link[b-eatlmdrfza]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* ── Grid mode: icon-fallback gradient cover area ─────────────────────────── */

.swa-node-card__gradient[b-eatlmdrfza] {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--swa-radius-card) var(--swa-radius-card) 0 0;
}

/* ── List mode (compact) ─────────────────────────────────────────────────── */

.swa-node-card__thumb-wrap[b-eatlmdrfza] {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--swa-radius-card) 0 0 var(--swa-radius-card);
    overflow: hidden;
}

.swa-node-card__thumb-img[b-eatlmdrfza] {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
}

.swa-node-card__list-content[b-eatlmdrfza] {
    overflow: hidden;
}

/* ── Gradient palette — picks one of 4 by stable hash of node id ─────────── */

.swa-node-grad-0[b-eatlmdrfza] {
    background: var(--swa-grad-1);
}

.swa-node-grad-1[b-eatlmdrfza] {
    background: var(--swa-grad-2);
}

.swa-node-grad-2[b-eatlmdrfza] {
    background: var(--swa-grad-3);
}

.swa-node-grad-3[b-eatlmdrfza] {
    background: var(--swa-grad-4);
}
/* /Components/Locations/LocationSummaryCard.razor.rz.scp.css */
/* ── Summary card container ──────────────────────────────────────────────── */

.swa-summary-card[b-7fq33gu59a] {
    border-radius: var(--swa-radius-card) !important;
    box-shadow: var(--swa-shadow-card) !important;
    background-color: var(--swa-surface);
}

/* ── Cover thumbnail ─────────────────────────────────────────────────────── */

.swa-summary-card__thumb[b-7fq33gu59a] {
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    width: 72px;
    height: 72px;
}

/* ── Icon fallback box ───────────────────────────────────────────────────── */

.swa-summary-card__icon-box[b-7fq33gu59a] {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: var(--swa-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Responsive location name ─────────────────────────────────────────────── */

.swa-summary-card__name[b-7fq33gu59a] {
    font-size: clamp(1.25rem, 4.5vw, 2rem);
    line-height: 1.2;
}

/* ── Action buttons: ensure ≥ 44px touch target (WCAG 2.5.5) ────────────── */

.swa-summary-card .mud-button-root[b-7fq33gu59a] {
    min-height: 44px;
}

/* The kebab menu icon button needs an explicit min tap size. */
.swa-summary-card .mud-icon-button[b-7fq33gu59a] {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 599.98px) {
    .swa-summary-card[b-7fq33gu59a] { padding: 12px !important; margin-bottom: 10px !important; }
    .swa-summary-card__icon-box[b-7fq33gu59a],
    .swa-summary-card__thumb[b-7fq33gu59a] { width: 52px; height: 52px; }
}
/* /Components/Locations/LocationTabs.razor.rz.scp.css */
/* Tab-strip rules (.swa-tab-strip, .swa-tab, .swa-tab--active, .swa-tab__badge, etc.)
   have been promoted to wwwroot/app.css so they are shared by LocationTabs and ItemTabs.
   This file is intentionally empty. */
/* /Components/Locations/NodesTabPanel.razor.rz.scp.css */
/* ── Grid layout: responsive columns ─────────────────────────────────────── */

.swa-nodes--grid[b-hqlw6vgwjf] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--swa-gap);
}

@media (max-width: 959.98px) {
    .swa-nodes--grid[b-hqlw6vgwjf] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra-small (≤ 374px): single column avoids cards that are too narrow */
@media (max-width: 374px) {
    .swa-nodes--grid[b-hqlw6vgwjf] {
        grid-template-columns: 1fr;
    }
}

/* ── List layout: vertical stack of compact cards ────────────────────────── */

.swa-nodes--list[b-hqlw6vgwjf] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 599.98px) {
    .location-view-items-row[b-hqlw6vgwjf] { margin-top: 10px !important; }
}
/* /Components/Locations/NodeToolbar.razor.rz.scp.css */
/* ── Toolbar row ──────────────────────────────────────────────────────────── */

.swa-node-toolbar[b-7wk8n982mc] {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--swa-gap);
}

/* ── Filter field: grows to fill available space ──────────────────────────── */

.swa-node-toolbar__filter[b-7wk8n982mc] {
    flex: 1 1 180px;
    min-width: 140px;
}

/* ── Actions: toggle buttons + Add — fixed width, no shrink ──────────────── */

.swa-node-toolbar__actions[b-7wk8n982mc] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-height: 44px; /* WCAG 2.5.5 touch target */
}

/* ── Ensure MudIconButton touch targets are 44px ─────────────────────────── */

.swa-node-toolbar__actions .mud-icon-button[b-7wk8n982mc] {
    min-width: 44px;
    min-height: 44px;
}

/* ── Collapse filter to full-width row on phones ─────────────────────────── */

@media (max-width: 599.98px) {
    .swa-node-toolbar[b-7wk8n982mc] { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 10px; }
    .swa-node-toolbar__actions[b-7wk8n982mc] { justify-content: flex-end; }
}
/* /Components/Locations/OverviewTabPanel.razor.rz.scp.css */
/* ── Overview tab panel card ──────────────────────────────────────────────── */

.swa-overview-card[b-cfy08xwwkm] {
    border-radius: var(--swa-radius-card) !important;
    box-shadow: var(--swa-shadow-card) !important;
    border: 1px solid var(--swa-border);
    background-color: var(--swa-surface);
    transition: box-shadow 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .swa-overview-card[b-cfy08xwwkm] {
        transition: none;
    }
}

/* ── Section overlines ────────────────────────────────────────────────────── */

.swa-overview-overline[b-cfy08xwwkm] {
    color: var(--swa-muted);
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* ── Map container: rounded corners, clip child iframe/canvas ─────────────── */

.swa-overview-map-wrap[b-cfy08xwwkm] {
    overflow: hidden;
    border-radius: var(--swa-radius-card);
}
/* /Components/Locations/PhotosTabPanel.razor.rz.scp.css */
/* Photo grid CSS promoted to wwwroot/app.css so it is shared with ItemPhotosTabPanel.
   No scoped rules remain in this file. */
