/* /Components/Application/HlDocContent.razor.rz.scp.css */
/*
    Documentation rendering styles.

    Every selector uses ::deep because the content is injected as a MarkupString and therefore
    carries no Blazor scope attribute — plain scoped selectors would silently match nothing.

    Colours are theme tokens only (docs/guides/UI_STYLING.md): no Tailwind palette classes and no
    hardcoded hex, so the rendered manual follows light/dark theme like the rest of the app.

    Heading and paragraph margins are set explicitly here because theme.css resets h1-h6/p margins
    unlayered; a class+element selector like `.hl-doc ::deep h2` outranks that bare element reset.
*/

.hl-doc[b-rtpeqyz6nb] {
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 68rem;
}

/* ---------- Headings ---------- */

.hl-doc[b-rtpeqyz6nb]  h1,
.hl-doc[b-rtpeqyz6nb]  h2,
.hl-doc[b-rtpeqyz6nb]  h3,
.hl-doc[b-rtpeqyz6nb]  h4 {
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.3;
    scroll-margin-top: 5rem; /* so anchor jumps clear the sticky app header */
}

.hl-doc[b-rtpeqyz6nb]  h1 {
    font-size: 1.75rem;
    margin: 0 0 1rem;
}

.hl-doc[b-rtpeqyz6nb]  h2 {
    border-top: 1px solid var(--color-border-subtle);
    font-size: 1.35rem;
    margin: 2.25rem 0 0.875rem;
    padding-top: 1.5rem;
}

/* The first h2 in a chapter should not carry a divider above it — the page header already
   separates it from the chrome.

   :first-of-type, not :first-child. A chapter's rendered HTML opens with an h1 and usually a
   paragraph before the first h2, so :first-child matches nothing and the divider survives. Among
   siblings, :first-of-type selects the first h2 regardless of what precedes it, and it still holds
   in the compact (single-section) variant where the h2 genuinely is first. */
.hl-doc[b-rtpeqyz6nb]  h2:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.hl-doc[b-rtpeqyz6nb]  h3 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.625rem;
}

.hl-doc[b-rtpeqyz6nb]  h4 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
}

/* ---------- Text ---------- */

.hl-doc[b-rtpeqyz6nb]  p {
    margin: 0 0 1rem;
}

.hl-doc[b-rtpeqyz6nb]  strong {
    color: var(--color-text);
    font-weight: 600;
}

.hl-doc[b-rtpeqyz6nb]  a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hl-doc[b-rtpeqyz6nb]  a:hover {
    color: var(--color-primary-strong);
}

.hl-doc[b-rtpeqyz6nb]  hr {
    border: 0;
    border-top: 1px solid var(--color-border-subtle);
    margin: 2rem 0;
}

/* ---------- Lists ---------- */

.hl-doc[b-rtpeqyz6nb]  ul,
.hl-doc[b-rtpeqyz6nb]  ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.hl-doc[b-rtpeqyz6nb]  ul {
    list-style: disc;
}

.hl-doc[b-rtpeqyz6nb]  ol {
    list-style: decimal;
}

.hl-doc[b-rtpeqyz6nb]  li {
    margin-bottom: 0.375rem;
}

.hl-doc[b-rtpeqyz6nb]  li > ul,
.hl-doc[b-rtpeqyz6nb]  li > ol {
    margin-top: 0.375rem;
}

/* Task-list checkboxes in the demo guide's pre-demo checklist. */
.hl-doc[b-rtpeqyz6nb]  li input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* ---------- Tables ----------
   The manual is table-heavy and several tables (the role and tier matrices) are wider than a
   narrow viewport. `display: block` + `overflow-x: auto` makes the table itself scroll rather
   than forcing the whole page to scroll sideways. */

.hl-doc[b-rtpeqyz6nb]  table {
    border-collapse: collapse;
    display: block;
    margin: 0 0 1.25rem;
    max-width: 100%;
    overflow-x: auto;
    width: max-content;
}

.hl-doc[b-rtpeqyz6nb]  th,
.hl-doc[b-rtpeqyz6nb]  td {
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.hl-doc[b-rtpeqyz6nb]  th {
    background-color: var(--color-surface-strong);
    color: var(--color-text);
    font-weight: 600;
    white-space: nowrap;
}

.hl-doc[b-rtpeqyz6nb]  tbody tr:nth-child(even) {
    background-color: var(--color-surface-hover);
}

/* ---------- Code ---------- */

.hl-doc[b-rtpeqyz6nb]  code {
    background-color: var(--color-surface-strong);
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    padding: 0.125rem 0.375rem;
}

.hl-doc[b-rtpeqyz6nb]  pre {
    background-color: var(--color-surface-strong);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    margin: 0 0 1.25rem;
    overflow-x: auto;
    padding: 0.875rem 1rem;
}

.hl-doc[b-rtpeqyz6nb]  pre code {
    background-color: transparent;
    padding: 0;
}

/* ---------- Callouts ----------
   The manual uses blockquotes for its "read this first" and warning callouts. */

.hl-doc[b-rtpeqyz6nb]  blockquote {
    background-color: var(--color-surface-hover);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-text);
    margin: 0 0 1.25rem;
    padding: 0.875rem 1rem;
}

.hl-doc[b-rtpeqyz6nb]  blockquote p:last-child {
    margin-bottom: 0;
}

/* ---------- Compact variant ----------
   Used inside the contextual help modal, where a section is shown in a constrained panel. */

.hl-doc.compact[b-rtpeqyz6nb] {
    font-size: 0.875rem;
    max-width: none;
}

.hl-doc.compact[b-rtpeqyz6nb]  h2 {
    border-top: 0;
    font-size: 1.1rem;
    margin-top: 0;
    padding-top: 0;
}

.hl-doc.compact[b-rtpeqyz6nb]  h3 {
    font-size: 1rem;
    margin-top: 1.25rem;
}

.hl-doc.compact[b-rtpeqyz6nb]  table {
    font-size: 0.8125rem;
}
/* /Components/Application/LegalDocument.razor.rz.scp.css */
/*
    Prose typography for the legal documents.

    The documents are long-form text, so their body is written as plain semantic markup and styled
    here once rather than each page repeating a dozen utility classes per heading. Every rule goes
    through ::deep because the body arrives as ChildContent — it carries the calling PAGE's scope
    attribute, not this component's, so only a descendant selector rooted at this component's own
    element can reach it.
*/

.legal-prose[b-c35c9dxxr3]  h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
    scroll-margin-top: 1.5rem; /* so #anchor deep links are not flush against the viewport edge */
}

.legal-prose[b-c35c9dxxr3]  h2:first-child {
    margin-top: 0;
}

.legal-prose[b-c35c9dxxr3]  h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    scroll-margin-top: 1.5rem;
}

.legal-prose[b-c35c9dxxr3]  p,
.legal-prose[b-c35c9dxxr3]  li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.legal-prose[b-c35c9dxxr3]  p {
    margin-bottom: 1rem;
}

.legal-prose[b-c35c9dxxr3]  ul,
.legal-prose[b-c35c9dxxr3]  ol {
    margin: 0 0 1rem 1.25rem;
    list-style: disc;
}

.legal-prose[b-c35c9dxxr3]  ol {
    list-style: decimal;
}

.legal-prose[b-c35c9dxxr3]  li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.legal-prose[b-c35c9dxxr3]  strong {
    font-weight: 600;
    color: var(--color-text);
}

.legal-prose[b-c35c9dxxr3]  a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-prose[b-c35c9dxxr3]  a:hover {
    opacity: 0.8;
}

/* Definition-style rows used for the data-inventory and sub-processor tables. */
.legal-prose[b-c35c9dxxr3]  .legal-table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.legal-prose[b-c35c9dxxr3]  .legal-table th,
.legal-prose[b-c35c9dxxr3]  .legal-table td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text-muted);
}

.legal-prose[b-c35c9dxxr3]  .legal-table th {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-table-head-bg);
}

/* Wide tables must scroll inside their own container, never the page. */
.legal-prose[b-c35c9dxxr3]  .legal-table-scroll {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
/* /Components/Application/NewsletterSignup.razor.rz.scp.css */
/*
    Container styling for the HubSpot embed.

    HubSpot's v4 embed mounts the form in a cross-origin iframe, so the fields themselves cannot
    be styled from here — their appearance is owned by the form's style settings in HubSpot. All
    this file does is make that iframe behave like a block element inside the card.

    Every rule goes through ::deep: the iframe is injected by HubSpot's script after Blazor
    renders, so a plain scoped selector (which is rewritten with the scope attribute ON the
    element) would never match it, while ::deep compiles to "<scoped ancestor> <selector>" and
    does.
*/

.hl-newsletter-form[b-8to3cy7l64]  iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}
/* /Components/Layout/HlNavigation.razor.rz.scp.css */
/* ==========================================
   HlNavigation — design system v2 light sidebar
   Brand at top, uppercase micro-label groups, tint-active items.
   ========================================== */

.hl-navigation[b-cmo2xjr82t] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-sidebar-bg);
    border-right: 1px solid var(--color-border-subtle);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hl-navigation.expanded[b-cmo2xjr82t] {
    width: 240px;
}

.hl-navigation.collapsed[b-cmo2xjr82t] {
    width: 64px;
}

/* Brand block (v2) */
.sidebar-brand[b-cmo2xjr82t] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0.9rem 0.8rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.sidebar-brand:hover[b-cmo2xjr82t] {
    text-decoration: none;
    color: inherit;
}

.sidebar-brand:focus[b-cmo2xjr82t] {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
}

.sidebar-brand-glyph[b-cmo2xjr82t] {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand-text[b-cmo2xjr82t] {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.sidebar-brand-name[b-cmo2xjr82t] {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--color-text);
    white-space: nowrap;
}

.sidebar-brand-tenant[b-cmo2xjr82t] {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hl-navigation.collapsed .sidebar-brand[b-cmo2xjr82t] {
    justify-content: center;
    padding: 0.9rem 0 0.7rem;
}

.hl-navigation.collapsed .sidebar-brand-text[b-cmo2xjr82t] {
    display: none;
}

/* Navigation Footer - Toggle Button Container */
.nav-footer[b-cmo2xjr82t] {
    flex-shrink: 0;
    padding: 0.55rem;
    border-top: 1px solid var(--color-border-subtle);
    background: var(--color-sidebar-bg);
}

/* Toggle Button — quiet v2 ghost */
.nav-toggle-btn[b-cmo2xjr82t] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.nav-toggle-btn:hover[b-cmo2xjr82t] {
    background: var(--color-surface-strong);
    color: var(--color-text);
}

.nav-toggle-btn:focus[b-cmo2xjr82t] {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-overlay-dark-15);
}

.nav-toggle-btn:active[b-cmo2xjr82t] {
    transform: scale(0.98);
}

.nav-toggle-btn svg[b-cmo2xjr82t] {
    flex-shrink: 0;
}

.nav-toggle-label[b-cmo2xjr82t] {
    flex: 1;
    text-align: left;
    transition: opacity 0.2s ease, width 0.2s ease;
}

/* Collapsed state: center icon, hide label */
.hl-navigation.collapsed .nav-toggle-btn[b-cmo2xjr82t] {
    justify-content: center;
    padding: 0.65rem;
}

.hl-navigation.collapsed .nav-toggle-label[b-cmo2xjr82t] {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Navigation Content */
.nav-content[b-cmo2xjr82t] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0.55rem 1.25rem;
}

/* Hide scrollbar but keep functionality */
.nav-content[b-cmo2xjr82t]::-webkit-scrollbar {
    width: 4px;
}

.nav-content[b-cmo2xjr82t]::-webkit-scrollbar-track {
    background: transparent;
}

.nav-content[b-cmo2xjr82t]::-webkit-scrollbar-thumb {
    background: var(--color-border-subtle);
    border-radius: 2px;
}

/* Navigation Group */
.nav-group[b-cmo2xjr82t] {
    margin-bottom: 0.55rem;
}

.nav-group:last-child[b-cmo2xjr82t] {
    margin-bottom: 0.55rem;
}

/* Group Header (collapsible) — v2 uppercase micro-label divider */
.nav-group-header[b-cmo2xjr82t] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.55rem 0.3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
    border-radius: var(--radius-sm);
    position: relative;
    color: var(--color-text-muted);
}

/* Center group headers when collapsed */
.hl-navigation.collapsed .nav-group-header[b-cmo2xjr82t] {
    justify-content: center;
    padding: 0.7rem;
    color: var(--color-text-muted);
}

.hl-navigation.collapsed .nav-group-header-content[b-cmo2xjr82t] {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.nav-group-header:hover[b-cmo2xjr82t] {
    color: var(--color-text);
}

.nav-group-header:focus[b-cmo2xjr82t] {
    outline: none;
    background: var(--color-surface-strong);
    box-shadow: 0 0 0 2px var(--color-overlay-dark-15);
}

.nav-group-header-content[b-cmo2xjr82t] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}

/* v2: group icons only surface in the collapsed rail; expanded groups read as
   plain uppercase text dividers. (::deep — the svg is rendered by HlIcon.) */
.hl-navigation.expanded .nav-group-header-content[b-cmo2xjr82t]  svg {
    display: none;
}

.nav-group-label[b-cmo2xjr82t] {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: inherit;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.hl-navigation.collapsed .nav-group-label[b-cmo2xjr82t] {
    opacity: 0;
    width: 0;
}

/* Chevron icon (::deep — rendered by HlIcon) */
.nav-group-header[b-cmo2xjr82t]  .chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-group-header[b-cmo2xjr82t]  .chevron.expanded {
    transform: rotate(0deg);
}

.nav-group-header[b-cmo2xjr82t]  .chevron.collapsed {
    transform: rotate(-90deg);
}

.hl-navigation.collapsed .nav-group-header[b-cmo2xjr82t]  .chevron {
    opacity: 0;
    width: 0;
    display: none;
}

/* Group Items Container — v2 drops the deep indent; labels align with items */
.nav-group-items[b-cmo2xjr82t] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 0.15rem;
    padding-left: 0;
    animation: slideDown-b-cmo2xjr82t 0.2s ease;
}

.hl-navigation.collapsed .nav-group-items[b-cmo2xjr82t] {
    padding-left: 0;
}

@keyframes slideDown-b-cmo2xjr82t {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Items - use ::deep because NavLink renders the anchor */
[b-cmo2xjr82t] .nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.42rem 0.55rem;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--fs-body);
    text-decoration: none;
    transition: background 0.13s ease, color 0.13s ease;
    position: relative;
    white-space: nowrap;
}

[b-cmo2xjr82t] .nav-item > svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: color 0.13s ease;
}

/* Center-align icons when collapsed */
.hl-navigation.collapsed[b-cmo2xjr82t]  .nav-item {
    justify-content: center;
    padding: 0.65rem;
}

[b-cmo2xjr82t] .nav-item:hover {
    background: var(--color-surface-strong);
    color: var(--color-text);
    text-decoration: none;
}

[b-cmo2xjr82t] .nav-item.active,
[b-cmo2xjr82t] .nav-item:global(.active) {
    background: var(--color-overlay-dark-08);
    color: var(--color-primary);
    font-weight: 600;
}

[b-cmo2xjr82t] .nav-item.active > svg,
[b-cmo2xjr82t] .nav-item:global(.active) > svg {
    color: var(--color-primary);
}

[b-cmo2xjr82t] .nav-item:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-overlay-dark-15);
}

[b-cmo2xjr82t] .nav-item-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.hl-navigation.collapsed[b-cmo2xjr82t]  .nav-item-label {
    opacity: 0;
    width: 0;
    display: none;
}

/* Standalone items (no group) */
[b-cmo2xjr82t] .nav-item.standalone {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Tooltips for collapsed mode */
.nav-tooltip[b-cmo2xjr82t] {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.75rem;
    padding: 0.35rem 0.6rem;
    background: var(--color-text);
    color: var(--color-surface);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: var(--shadow-pop);
}

.nav-tooltip[b-cmo2xjr82t]::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--color-text);
}

.hl-navigation.collapsed[b-cmo2xjr82t]  .nav-item:hover .nav-tooltip,
.hl-navigation.collapsed[b-cmo2xjr82t]  .nav-item:focus .nav-tooltip,
.hl-navigation.collapsed .nav-group-header:hover .nav-tooltip[b-cmo2xjr82t],
.hl-navigation.collapsed .nav-group-header:focus .nav-tooltip[b-cmo2xjr82t] {
    opacity: 1;
}

/* Hide tooltips in expanded mode */
.hl-navigation.expanded[b-cmo2xjr82t]  .nav-tooltip {
    display: none;
}

/* Icon sizing consistency */
[b-cmo2xjr82t] .nav-item svg,
.nav-group-header svg[b-cmo2xjr82t] {
    flex-shrink: 0;
}

/* Responsive behavior */
@media (max-width: 900px) {
    .hl-navigation[b-cmo2xjr82t] {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px !important;
        box-shadow: var(--shadow-pop);
    }

    .hl-navigation.expanded[b-cmo2xjr82t] {
        transform: translateX(0);
    }

    .hl-navigation.collapsed[b-cmo2xjr82t] {
        transform: translateX(-100%);
    }

    /* Hide toggle footer on mobile - use header hamburger instead */
    .nav-footer[b-cmo2xjr82t] {
        display: none;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-icvdgdj72i] {
    height: 100vh;
    display: flex;
    overflow: hidden;
    /* Design system v2 comfortable density for app surfaces; marketing pages
       (EmptyLayout) keep the 1rem body. */
    font-size: var(--fs-body);
}

/* Default: Top dock */
.app-shell[data-dock="top"][b-icvdgdj72i] {
    flex-direction: column;
}

/* Bottom dock */
.app-shell[data-dock="bottom"][b-icvdgdj72i] {
    flex-direction: column-reverse;
}

/* Left dock */
.app-shell[data-dock="left"][b-icvdgdj72i] {
    flex-direction: row;
}

/* Right dock */
.app-shell[data-dock="right"][b-icvdgdj72i] {
    flex-direction: row-reverse;
}

.app-body[b-icvdgdj72i] {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sidebar[b-icvdgdj72i] {
    display: flex;
    flex-direction: column;
    background: var(--color-sidebar-bg);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-backdrop[b-icvdgdj72i] {
    display: none;
    border: 0;
    background: var(--color-overlay-dark-60);
    padding: 0;
}

.main-panel[b-icvdgdj72i] {
    flex: 1;
    padding: 1.35rem 1.5rem 2rem;
    overflow-y: auto;
    min-width: 0;
}

/* Design system v2: page content centers at a readable maximum width. */
.main-panel > .content[b-icvdgdj72i] {
    max-width: 1440px;
    margin-inline: auto;
}

#blazor-error-ui[b-icvdgdj72i] {
    background: var(--color-error-bg);
    bottom: 0;
    box-shadow: 0 -1px 2px var(--color-overlay-dark-20);
    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-icvdgdj72i] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 900px) {
    /* Offset matches the v2 topbar height (52px + mobile padding). */
    .app-shell[data-dock="top"][b-icvdgdj72i]  .hl-navigation {
        top: 56px;
        height: calc(100dvh - 56px);
    }

    .sidebar-backdrop[b-icvdgdj72i] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 90;
    }

    .app-shell[data-dock="top"] .sidebar-backdrop[b-icvdgdj72i] {
        top: 56px;
    }
}
/* /Components/Ui/HlHeader.razor.rz.scp.css */
/* HlHeader — design system v2 white topbar.
   Scoped-CSS note: elements rendered by child components (HlButton, HlIcon,
   HlNotificationBell) don't carry this component's scope attribute, so rules
   targeting them go through ::deep under a scoped ancestor. */

.hl-header[b-elsj6sleli] {
    position: sticky;
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    padding: 0.35rem 1.1rem;
    background: var(--color-surface);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-subtle);
}

.hl-header-leading[b-elsj6sleli] {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
}

/* Top Dock Position (Default) */
.hl-header[data-dock="top"][b-elsj6sleli] {
    top: 0;
    flex-direction: row;
}

/* Bottom Dock Position */
.hl-header[data-dock="bottom"][b-elsj6sleli] {
    bottom: 0;
    flex-direction: row;
    border-bottom: none;
    border-top: 1px solid var(--color-border-subtle);
}

/* Left / Right Dock Positions — vertical rail */
.hl-header[data-dock="left"][b-elsj6sleli],
.hl-header[data-dock="right"][b-elsj6sleli] {
    top: 0;
    bottom: 0;
    flex-direction: column;
    width: 64px;
    min-height: 0;
    padding: 1rem 0.5rem;
    overflow-y: auto;
    overflow-x: visible;
    border-bottom: none;
}

.hl-header[data-dock="left"][b-elsj6sleli] {
    left: 0;
    border-right: 1px solid var(--color-border-subtle);
}

.hl-header[data-dock="right"][b-elsj6sleli] {
    right: 0;
    border-left: 1px solid var(--color-border-subtle);
}

/* Vertical rails hide the text affordances but keep the avatar. The label /
   caret spans are authored in this component (scoped), so no ::deep needed. */
.hl-header[data-dock="left"] .hl-header-crumbs[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-crumbs[b-elsj6sleli],
.hl-header[data-dock="left"] .hl-header-user-label[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-user-label[b-elsj6sleli],
.hl-header[data-dock="left"] .hl-header-user-caret[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-user-caret[b-elsj6sleli],
.hl-header[data-dock="left"] .hl-header-support-label[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-support-label[b-elsj6sleli],
.hl-header[data-dock="left"] .hl-header-ghost-button[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-ghost-button[b-elsj6sleli],
.hl-header[data-dock="left"] .hl-header-brand-copy[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-brand-copy[b-elsj6sleli] {
    display: none;
}

.hl-header[data-dock="left"] .hl-header-leading[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-leading[b-elsj6sleli] {
    flex-direction: column;
    flex: 0 0 auto;
}

.hl-header[data-dock="left"] .hl-header-brand[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-brand[b-elsj6sleli] {
    display: flex;
}

.hl-header[data-dock="left"] .hl-header-brand-mark[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-brand-mark[b-elsj6sleli] {
    display: grid;
    width: 44px;
    height: 44px;
}

.hl-header[data-dock="left"] .hl-header-actions[b-elsj6sleli],
.hl-header[data-dock="right"] .hl-header-actions[b-elsj6sleli] {
    flex-direction: column;
    gap: 1rem;
}

/* Menu Toggle Button (mobile) */
.hl-header-menu-toggle[b-elsj6sleli] {
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    height: 40px;
    width: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hl-header-menu-toggle:hover[b-elsj6sleli] {
    background: var(--color-surface-strong);
}

.hl-header-menu-toggle:focus[b-elsj6sleli] {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.hl-header-icon-lines[b-elsj6sleli],
.hl-header-icon-lines[b-elsj6sleli]::before,
.hl-header-icon-lines[b-elsj6sleli]::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.hl-header-icon-lines[b-elsj6sleli]::before,
.hl-header-icon-lines[b-elsj6sleli]::after {
    content: "";
    position: absolute;
    left: 0;
}

.hl-header-icon-lines[b-elsj6sleli]::before {
    top: -6px;
}

.hl-header-icon-lines[b-elsj6sleli]::after {
    top: 6px;
}

/* Brand — mobile shows the wordmark; desktop top/bottom docks show only the
   compact glyph tile (the sidebar carries the full brand, and a nightly
   regression test clicks the header brand at desktop viewport, so it must
   stay clickable rather than display:none). */
.hl-header-brand[b-elsj6sleli] {
    display: flex;
    align-items: center;
    min-width: 0;
}

@media (min-width: 900px) {
    .hl-header[data-dock="top"] .hl-header-brand-copy[b-elsj6sleli],
    .hl-header[data-dock="bottom"] .hl-header-brand-copy[b-elsj6sleli] {
        display: none;
    }

    .hl-header[data-dock="top"] .hl-header-brand-mark[b-elsj6sleli],
    .hl-header[data-dock="bottom"] .hl-header-brand-mark[b-elsj6sleli] {
        display: grid;
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .hl-header[data-dock="top"] .hl-header-brand-mark .hl-header-brand-image[b-elsj6sleli],
    .hl-header[data-dock="bottom"] .hl-header-brand-mark .hl-header-brand-image[b-elsj6sleli] {
        height: 1.15rem;
    }
}

.hl-header-brand-link[b-elsj6sleli] {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    padding: 0.2rem 0.25rem 0.2rem 0;
}

.hl-header-brand-link:hover[b-elsj6sleli] {
    opacity: 0.85;
    text-decoration: none;
}

.hl-header-brand-link:focus[b-elsj6sleli] {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.hl-header-brand-mark[b-elsj6sleli] {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-surface-strong);
    border: 1px solid var(--color-border-subtle);
    place-items: center;
}

.hl-header-brand-image[b-elsj6sleli] {
    display: block;
    width: auto;
    height: 1.6rem;
}

.hl-header-brand-copy[b-elsj6sleli] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hl-header-brand-wordmark-image[b-elsj6sleli] {
    display: block;
    width: auto;
    max-width: min(200px, 34vw);
    height: 1.4rem;
}

/* Breadcrumbs */
.hl-header-crumbs[b-elsj6sleli] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-size: var(--fs-body);
}

.hl-header-crumb-root[b-elsj6sleli] {
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hl-header-crumb-page[b-elsj6sleli] {
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.hl-header-crumbs[b-elsj6sleli]  .hl-header-crumb-sep {
    color: var(--color-text-muted);
    opacity: 0.55;
    flex-shrink: 0;
}

/* Actions Section */
.hl-header-actions[b-elsj6sleli] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-end;
    min-width: 0;
}

.hl-header-utility-actions[b-elsj6sleli] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.hl-header-ghost-button[b-elsj6sleli] {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
}

.hl-header-ghost-button:hover[b-elsj6sleli] {
    background: var(--color-surface-strong);
    text-decoration: none;
}

.hl-header-ghost-button:focus[b-elsj6sleli] {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Support + user chip render via HlButton (header variant) — quiet v2
   overrides need ::deep because the elements are authored in HlButton. */
.hl-header[b-elsj6sleli]  .hl-header-support-button {
    background: transparent;
    border-color: transparent;
    color: var(--color-text-muted);
    box-shadow: none;
    padding: 0.4rem 0.6rem;
}

.hl-header[b-elsj6sleli]  .hl-header-support-button:hover {
    background: var(--color-surface-strong);
    color: var(--color-text);
    transform: none;
    box-shadow: none;
}

.hl-header[b-elsj6sleli]  .hl-header-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.55rem 0.25rem 0.3rem;
    background: transparent;
    border-radius: 999px;
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background 0.15s ease;
    font-family: inherit;
    font-size: var(--fs-body);
}

.hl-header[b-elsj6sleli]  .hl-header-user-chip:hover {
    background: var(--color-surface-strong);
    transform: none;
    box-shadow: none;
}

.hl-header[b-elsj6sleli]  .hl-header-user-chip:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.hl-header-user-label[b-elsj6sleli] {
    white-space: nowrap;
}

.hl-header-user-caret[b-elsj6sleli] {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
}

.hl-header-support-label[b-elsj6sleli] {
    white-space: nowrap;
}

.hl-header-avatar[b-elsj6sleli] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-on-primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.hl-header-logout-form[b-elsj6sleli] {
    margin: 0;
    display: inline;
}

/* User Menu Dropdown */
.user-menu-container[b-elsj6sleli] {
    position: relative;
}

.user-menu-dropdown[b-elsj6sleli] {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 240px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    z-index: 1000;
    padding: 0.35rem;
}

.user-menu-head[b-elsj6sleli] {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.6rem 0.6rem;
    border-bottom: 1px solid var(--color-border-subtle);
    margin-bottom: 0.3rem;
}

.user-menu-head strong[b-elsj6sleli] {
    font-size: var(--fs-body);
    color: var(--color-text);
}

.user-menu-head span[b-elsj6sleli] {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

/* Bottom Dock - Dropdown appears above */
.hl-header[data-dock="bottom"] .user-menu-dropdown[b-elsj6sleli] {
    top: auto;
    bottom: calc(100% + 0.5rem);
}

/* Left Dock - Dropdown appears to the right */
.hl-header[data-dock="left"] .user-menu-container[b-elsj6sleli] {
    position: static;
}

.hl-header[data-dock="left"] .user-menu-dropdown[b-elsj6sleli] {
    position: fixed;
    top: 100%;
    transform: translateY(-100%);
    right: auto;
    left: 74px;
}

/* Right Dock - Dropdown appears to the left */
.hl-header[data-dock="right"] .user-menu-container[b-elsj6sleli] {
    position: static;
}

.hl-header[data-dock="right"] .user-menu-dropdown[b-elsj6sleli] {
    position: fixed;
    top: 100%;
    transform: translateY(-100%);
    right: 74px;
    left: auto;
}

.user-menu-item[b-elsj6sleli] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: var(--fs-body);
    width: 100%;
    text-align: left;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.user-menu-item:hover[b-elsj6sleli] {
    background: var(--color-surface-strong);
    text-decoration: none;
    color: var(--color-text);
}

.user-menu-item:focus[b-elsj6sleli] {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    background: var(--color-surface-strong);
}

.user-menu-divider[b-elsj6sleli] {
    height: 1px;
    background: var(--color-border-subtle);
    margin: 0.3rem 0;
}

.user-menu-logout-form[b-elsj6sleli] {
    margin: 0;
    padding: 0;
    display: block;
}

.user-menu-logout[b-elsj6sleli] {
    color: var(--color-danger);
}

.user-menu-logout:hover[b-elsj6sleli] {
    background: color-mix(in srgb, var(--color-danger) 10%, transparent);
    color: var(--color-danger);
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .hl-header[b-elsj6sleli] {
        padding: 0.35rem 0.75rem;
        gap: 0.75rem;
    }

    .hl-header-crumbs[b-elsj6sleli],
    .hl-header-user-label[b-elsj6sleli],
    .hl-header-user-caret[b-elsj6sleli],
    .hl-header-support-label[b-elsj6sleli] {
        display: none;
    }

    .hl-header-actions[b-elsj6sleli] {
        gap: 0.5rem;
    }

    .hl-header-brand-link[b-elsj6sleli] {
        padding-right: 0;
    }

    .hl-header-brand-wordmark-image[b-elsj6sleli] {
        height: 1.3rem;
        max-width: 170px;
    }

    .hl-header-ghost-button[b-elsj6sleli] {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
    }

    .hl-header[b-elsj6sleli]  .hl-header-support-button,
    .hl-header[b-elsj6sleli]  .hl-header-user-chip {
        justify-content: center;
        padding-inline: 0;
        width: 44px;
    }

    .user-menu-dropdown[b-elsj6sleli] {
        width: calc(100vw - 2rem);
        max-width: 300px;
        right: -0.5rem;
    }
}

@media (min-width: 900px) {
    .hl-header-menu-toggle[b-elsj6sleli] {
        display: none;
    }
}

/* Touch Target Sizes for Mobile */
@media (max-width: 768px) {
    .hl-header-menu-toggle[b-elsj6sleli],
    .hl-header-ghost-button[b-elsj6sleli] {
        min-height: 44px;
        min-width: 44px;
    }

    .hl-header[b-elsj6sleli]  .hl-header-support-button,
    .hl-header[b-elsj6sleli]  .hl-header-user-chip {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 374px) {
    .hl-header[b-elsj6sleli] {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand brand"
            "toggle actions";
        align-items: center;
        row-gap: 0.625rem;
        column-gap: 0.75rem;
    }

    .hl-header-leading[b-elsj6sleli] {
        display: contents;
    }

    .hl-header-brand[b-elsj6sleli] {
        grid-area: brand;
        min-width: 0;
    }

    .hl-header-menu-toggle[b-elsj6sleli] {
        grid-area: toggle;
    }

    .hl-header-actions[b-elsj6sleli] {
        grid-area: actions;
        justify-self: end;
        min-width: 0;
    }
}

@media (min-width: 375px) and (max-width: 420px) {
    .hl-header[b-elsj6sleli] {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .hl-header-leading[b-elsj6sleli] {
        display: flex;
        gap: 0.5rem;
        min-width: 0;
        flex: 1;
    }

    .hl-header-actions[b-elsj6sleli] {
        min-width: max-content;
        flex-shrink: 0;
        gap: 0.375rem;
    }

    .hl-header-utility-actions[b-elsj6sleli] {
        gap: 0.375rem;
    }

    .hl-header-brand-wordmark-image[b-elsj6sleli] {
        max-width: 128px;
    }
}

@media (max-width: 420px) {
    .hl-header-brand-wordmark-image[b-elsj6sleli] {
        height: 1.15rem;
        max-width: 140px;
    }
}
