/* /Components/Layout/AssistantLauncher.razor.rz.scp.css */
.pyr-fab[b-r2ptpybv6k] {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px 4px 4px;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pyr-fab:hover[b-r2ptpybv6k] { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pyr-fab:focus-visible[b-r2ptpybv6k] { outline: none; box-shadow: var(--ring), var(--shadow-md); }
.pyr-fab-label[b-r2ptpybv6k] { font-size: 14px; }

.pyr-scrim[b-r2ptpybv6k] {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(20, 16, 10, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.pyr-scrim.is-open[b-r2ptpybv6k] { opacity: 1; pointer-events: auto; }

.pyr-drawer[b-r2ptpybv6k] {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    z-index: 71;
    width: min(460px, 100vw);
    background: var(--surface);
    border-inline-start: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 0s linear 220ms;
}

html[dir="rtl"] .pyr-drawer[b-r2ptpybv6k] { transform: translateX(-105%); }
html[dir="rtl"] .pyr-drawer.is-open[b-r2ptpybv6k] { transform: translateX(0); }

.pyr-drawer.is-open[b-r2ptpybv6k] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 220ms ease, visibility 0s;
}

/* Phones: sit above the bottom bar; the drawer takes the whole screen. */
@media (max-width: 760px) {
    .pyr-fab[b-r2ptpybv6k] {
        bottom: 78px;
        inset-inline-end: 12px;
        padding: 3px;
    }

    .pyr-fab-label[b-r2ptpybv6k] { display: none; }
    .pyr-drawer[b-r2ptpybv6k] { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
    .pyr-drawer[b-r2ptpybv6k], .pyr-scrim[b-r2ptpybv6k], .pyr-fab[b-r2ptpybv6k] { transition: none; }
}

@media print {
    .pyr-fab[b-r2ptpybv6k], .pyr-drawer[b-r2ptpybv6k], .pyr-scrim[b-r2ptpybv6k] { display: none; }
}
/* /Components/Layout/FarmSwitcher.razor.rz.scp.css */
.farm-switcher[b-cqa648u7yb] {
    position: relative;
}

.switcher-button[b-cqa648u7yb] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), background var(--transition);
}

.switcher-button:hover[b-cqa648u7yb] {
    border-color: var(--primary);
}

.switcher-label[b-cqa648u7yb] {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.farm-icon[b-cqa648u7yb] {
    font-size: 14px;
    line-height: 1;
}

.chevron[b-cqa648u7yb] {
    font-size: 11px;
    color: var(--muted);
}

.backdrop[b-cqa648u7yb] {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.farm-menu[b-cqa648u7yb] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 71;
    width: 290px;
    max-width: calc(100vw - 32px);
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.farm-menu-title[b-cqa648u7yb] {
    margin: 4px 8px 6px;
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.farm-menu-item[b-cqa648u7yb] {
    appearance: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}

.farm-menu-item:hover[b-cqa648u7yb] {
    background: var(--primary-soft);
}

.farm-menu-item.active[b-cqa648u7yb] {
    background: var(--primary-soft);
}

.farm-menu-item .farm-icon[b-cqa648u7yb] {
    flex: 0 0 20px;
    text-align: center;
    font-size: 16px;
    padding-top: 1px;
}

.item-text[b-cqa648u7yb] {
    display: grid;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.item-name[b-cqa648u7yb] {
    font-size: var(--fs-body);
    font-weight: 600;
}

.item-desc[b-cqa648u7yb] {
    font-size: var(--fs-micro);
    color: var(--muted-2);
    line-height: 1.35;
}

.farm-menu-link[b-cqa648u7yb] {
    display: block;
    margin-top: 4px;
    padding: 8px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-size: var(--fs-small);
    font-weight: 600;
    text-decoration: none;
}

.farm-menu-link:hover[b-cqa648u7yb] {
    text-decoration: underline;
}

a.switcher-button[b-cqa648u7yb] {
    text-decoration: none;
}

.check[b-cqa648u7yb] {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 420px) {
    .switcher-label[b-cqa648u7yb] {
        display: none;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.site-header[b-t3xmhwafn5] {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.site-nav[b-t3xmhwafn5] {
    position: relative;
    max-width: 1600px; /* Wider than the page so the links, farm switcher and user menu fit on one line. */
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-group[b-t3xmhwafn5] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand[b-t3xmhwafn5] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand-mark[b-t3xmhwafn5] {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 7px;
    background: url("/favicon.svg") center / cover no-repeat;
    box-shadow: var(--shadow-sm);
}

.brand-text[b-t3xmhwafn5] {
    font-size: 0.98rem;
    white-space: nowrap;
}

.links[b-t3xmhwafn5] {
    display: flex;
    align-items: center;
}

.link-list[b-t3xmhwafn5] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.link-list[b-t3xmhwafn5]  .nav-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.6rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.link-list[b-t3xmhwafn5]  .nav-link:hover {
    background: var(--primary-soft);
    color: var(--text);
}

.link-list[b-t3xmhwafn5]  .nav-link.active {
    color: var(--text);
    background: var(--primary-soft);
}

/* Herd, Feed and Business: dropdowns on desktop. */
.nav-group[b-t3xmhwafn5] {
    position: relative;
}

.nav-group[b-t3xmhwafn5]  .nav-caret {
    color: var(--muted-2);
    transition: transform var(--transition);
}

.nav-group[data-open="true"][b-t3xmhwafn5]  .nav-caret {
    transform: rotate(180deg);
}

.nav-sub[b-t3xmhwafn5] {
    list-style: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    z-index: 51;
    display: none;
    min-width: 190px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.nav-group[data-open="true"] .nav-sub[b-t3xmhwafn5] {
    display: grid;
    gap: 1px;
}

.nav-sub[b-t3xmhwafn5]  .nav-link {
    width: 100%;
    padding: 0.5rem 0.65rem;
}

.nav-scrim[b-t3xmhwafn5] {
    position: fixed;
    inset: 0;
    z-index: 49;
}

.actions[b-t3xmhwafn5] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[b-t3xmhwafn5] .theme-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

[b-t3xmhwafn5] .theme-toggle:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--primary-soft);
}

[b-t3xmhwafn5] .theme-icon {
    font-size: 14px;
    line-height: 1;
}

.menu-button[b-t3xmhwafn5] {
    appearance: none;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    line-height: 0;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), background var(--transition);
}

.menu-button:hover[b-t3xmhwafn5] {
    border-color: var(--border-strong);
    background: var(--primary-soft);
}

.hamburger[b-t3xmhwafn5] {
    width: 1.4rem;
    height: 1.1rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar[b-t3xmhwafn5] {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 999px;
}

.page[b-t3xmhwafn5] {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 20px 16px 64px;
}

/* Theme toggle shows its icon only until there's room for the label. */
@media (max-width: 1440px) {
    [b-t3xmhwafn5] .theme-label {
        display: none;
    }
}

/* Narrower desktops: the links sit tighter (Breeding, Dairy and Poultry together make ten). */
@media (min-width: 1200px) and (max-width: 1440px) {
    .link-list[b-t3xmhwafn5] {
        gap: 0.1rem;
    }

    .link-list[b-t3xmhwafn5]  .nav-link {
        padding: 0.35rem 0.45rem;
    }

    .links[data-many="true"] .link-list[b-t3xmhwafn5]  .nav-link {
        padding: 0.35rem 0.36rem;
        font-size: 0.8rem;
    }

    .brand-group[b-t3xmhwafn5]  .switcher-label {
        max-width: 120px;
    }
}

/* Folded menu (tablets and small laptops): the hamburger opens a panel under the header where the groups show as
   headed lists in columns. */
@media (max-width: 1199.98px) {
    .menu-button[b-t3xmhwafn5] {
        display: inline-flex;
    }

    .links[b-t3xmhwafn5] {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 60;
        display: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 0.75rem 1rem 1rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .links[data-open="true"][b-t3xmhwafn5] {
        display: block;
    }

    .link-list[b-t3xmhwafn5] {
        display: block;
        columns: 4 170px;
        column-gap: 1.5rem;
    }

    .link-list > li[b-t3xmhwafn5] {
        break-inside: avoid;
        margin-bottom: 2px;
    }

    .link-list[b-t3xmhwafn5]  .nav-link {
        width: 100%;
        padding: 0.55rem 0.6rem;
    }

    .nav-group[b-t3xmhwafn5] {
        padding-top: 0.4rem;
    }

    /* A plain link after a group (Health after Feed) gets a rule, so it doesn't read as one of the group's. */
    .link-list > .nav-group + li:not(.nav-group)[b-t3xmhwafn5] {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
    }

    .link-list .nav-group-btn[b-t3xmhwafn5] {
        cursor: default;
        padding: 0.2rem 0.6rem;
        background: none;
        color: var(--muted-2);
        font-size: var(--fs-micro);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .nav-group[b-t3xmhwafn5]  .nav-caret {
        display: none;
    }

    .nav-sub[b-t3xmhwafn5],
    .nav-group[data-open="true"] .nav-sub[b-t3xmhwafn5] {
        position: static;
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: none;
    }
}

/* Phones: a bottom bar (Home, Animals, Record, Health, More) instead of the hamburger. More opens the same menu
   as a sheet just above the bar. */
.bottom-bar[b-t3xmhwafn5] {
    display: none;
}

@media (max-width: 760px) {
    .site-header[b-t3xmhwafn5] {
        background: var(--surface);
        backdrop-filter: none; /* Else the menu sheet (position: fixed) would be placed inside the header. */
    }

    .menu-button[b-t3xmhwafn5] {
        display: none;
    }

    .page[b-t3xmhwafn5] {
        padding-bottom: calc(var(--bottom-bar-h, 64px) + 32px);
    }

    .links[b-t3xmhwafn5] {
        position: fixed;
        top: auto;
        bottom: var(--bottom-bar-h, 64px);
        max-height: calc(100dvh - var(--bottom-bar-h, 64px) - 72px);
        padding: 1rem 0.9rem 1.1rem;
        border: 1px solid var(--border);
        border-bottom: 0;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -10px 30px rgba(20, 16, 10, 0.18);
    }

    .link-list[b-t3xmhwafn5] {
        columns: 2 140px;
        column-gap: 1rem;
    }

    .link-list[b-t3xmhwafn5]  .nav-link {
        min-height: 44px;
        font-size: 0.95rem;
    }

    .nav-scrim[b-t3xmhwafn5] {
        background: rgba(20, 16, 10, 0.38);
    }

    .bottom-bar[b-t3xmhwafn5] {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: var(--bottom-bar-h, 64px);
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--surface);
        border-top: 1px solid var(--border-strong);
        box-shadow: 0 -2px 10px rgba(20, 16, 10, 0.06);
    }
}

.bottom-bar[b-t3xmhwafn5]  .bb-item {
    appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 6px 2px 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bottom-bar[b-t3xmhwafn5]  .bb-item > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-bar[b-t3xmhwafn5]  .bb-item.active {
    color: var(--primary);
}

.bottom-bar[b-t3xmhwafn5]  .bb-item.active::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28%;
    right: 28%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--primary);
}

.bottom-bar[b-t3xmhwafn5]  .bb-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -4px;
}

.bottom-bar .bb-record.active[b-t3xmhwafn5]::before {
    display: none;
}

.bb-plus[b-t3xmhwafn5] {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-top: -22px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-ink);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.bb-record.active .bb-plus[b-t3xmhwafn5] {
    transform: rotate(45deg);
}

.bb-icon[b-t3xmhwafn5] {
    position: relative;
    display: inline-flex;
}

.bb-badge[b-t3xmhwafn5] {
    position: absolute;
    top: -5px;
    inset-inline-start: 14px;
    min-width: 17px;
    padding: 0 4px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
}

/* Record: a sheet of the daily entries (Feed, Treatment, Weigh; Milk when Dairy is on; the poultry entries when
   Poultry is on). */
.record-scrim[b-t3xmhwafn5] {
    position: fixed;
    inset: 0;
    z-index: 64;
    background: rgba(20, 16, 10, 0.38);
    animation: fade-in 140ms ease-out;
}

.record-sheet[b-t3xmhwafn5] {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 65;
    max-height: 80dvh;
    overflow-y: auto;
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--surface);
    box-shadow: 0 -10px 30px rgba(20, 16, 10, 0.2);
}

.record-head[b-t3xmhwafn5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.record-title[b-t3xmhwafn5] {
    margin: 0;
    font-size: 17px;
}

.record-grid[b-t3xmhwafn5] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.record-item[b-t3xmhwafn5] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.record-item:hover[b-t3xmhwafn5],
.record-item:focus-visible[b-t3xmhwafn5] {
    border-color: var(--primary-line);
    background: var(--primary-soft);
    outline: none;
}

.record-item[b-t3xmhwafn5]  .icon {
    flex: none;
    color: var(--primary);
}

/* If the window is widened while the sheet is open: a centred card rather than a full-width strip. */
@media (min-width: 761px) {
    .record-sheet[b-t3xmhwafn5] {
        left: 50%;
        bottom: 24px;
        width: min(460px, calc(100% - 32px));
        border-bottom: 1px solid var(--border);
        border-radius: 18px;
        transform: translateX(-50%);
    }
}

/* Phones: the brand mark alone (it still links home), and tighter spacing, so the farm switcher and the four
   buttons fit a 360px screen without the page scrolling sideways. */
@media (max-width: 420px) {
    [b-t3xmhwafn5] .theme-label {
        display: none;
    }

    .site-nav[b-t3xmhwafn5] {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .brand-group[b-t3xmhwafn5] {
        gap: 0.5rem;
        min-width: 0;
    }

    .brand-text[b-t3xmhwafn5] {
        display: none;
    }

    .brand-mark[b-t3xmhwafn5] {
        width: 1.6rem;
        height: 1.6rem;
    }

    .actions[b-t3xmhwafn5] {
        gap: 0.3rem;
    }
}

#blazor-error-ui[b-t3xmhwafn5] {
    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-t3xmhwafn5] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.nav-badge[b-t3xmhwafn5] {
    display: inline-block;
    min-width: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: var(--surface);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ==========================================================================
   Menu position (Settings › Appearance): html[data-nav] is "top" (the header above), "left" or "right" (this
   sidebar, with the header slimmed to farm switcher and account). Left and right are the sides of the screen, in
   Arabic too. Desktop: full sidebar or an icon rail (html[data-nav-rail]); below 1200px a drawer from its side.
   ========================================================================== */

.sidebar[b-t3xmhwafn5] {
    display: none;
}

html[data-nav-side] .app-shell[b-t3xmhwafn5] {
    display: flex;
    min-height: 100vh;
}

html[dir="rtl"][data-nav="left"] .app-shell[b-t3xmhwafn5],
html:not([dir="rtl"])[data-nav="right"] .app-shell[b-t3xmhwafn5] {
    flex-direction: row-reverse;
}

html[data-nav-side] .app-main[b-t3xmhwafn5] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* A flex item with auto margins would shrink to its content (and wide tables would push it past the screen). */
html[data-nav-side] .page[b-t3xmhwafn5] {
    width: 100%;
}

/* The sidebar already takes the side space, so the page fills the rest instead of floating in the middle. */
html[data-nav-side] .page[b-t3xmhwafn5] {
    max-width: none;
    margin: 0;
    padding-inline: 24px;
}

/* The header keeps the farm switcher and account; the links and the brand live in the sidebar. */
html[data-nav-side] .links[b-t3xmhwafn5] {
    display: none !important;
}

html[data-nav-side] .brand-group > .brand[b-t3xmhwafn5] {
    display: none;
}

html[data-nav-side] .site-nav[b-t3xmhwafn5] {
    max-width: none;
    min-height: var(--sidebar-head-h);
}

html[data-nav-side] .sidebar[b-t3xmhwafn5] {
    position: sticky;
    top: 0;
    z-index: 40;
    flex: none;
    width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
}

html[data-nav="left"] .sidebar[b-t3xmhwafn5] {
    border-right: 1px solid var(--sidebar-line);
}

html[data-nav="right"] .sidebar[b-t3xmhwafn5] {
    border-left: 1px solid var(--sidebar-line);
}

.sb-head[b-t3xmhwafn5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: var(--sidebar-head-h);
    padding-inline: 16px 12px;
    border-bottom: 1px solid var(--sidebar-line);
}

.sidebar .brand[b-t3xmhwafn5] {
    min-width: 0;
    color: var(--sidebar-strong);
}

.sidebar .brand-mark[b-t3xmhwafn5] {
    width: 1.75rem;
    height: 1.75rem;
}

.sidebar .brand-text[b-t3xmhwafn5] {
    font-size: 1.05rem;
}

.sb-close[b-t3xmhwafn5] {
    appearance: none;
    display: none;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--sidebar-ink);
    cursor: pointer;
}

.sb-close:hover[b-t3xmhwafn5] {
    background: var(--sidebar-hover);
}

.sb-nav[b-t3xmhwafn5] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 10px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-line) transparent;
}

.sb-list[b-t3xmhwafn5],
.sb-list ul[b-t3xmhwafn5] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sb-section + .sb-section[b-t3xmhwafn5] {
    margin-top: 8px;
}

/* Section headings fold their section (nav.js); the caret turns when folded. */
.sb-heading[b-t3xmhwafn5] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 1px;
    padding: 5px 10px 3px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--sidebar-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: start;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.sb-heading:hover[b-t3xmhwafn5] {
    background: var(--sidebar-hover);
    color: var(--sidebar-strong);
}

.sb-heading:focus-visible[b-t3xmhwafn5] {
    outline: 2px solid var(--tag-bg);
    outline-offset: -2px;
}

.sb-heading[b-t3xmhwafn5]  .sb-caret {
    flex: none;
    margin-inline-start: auto;
    opacity: 0.8;
    transition: transform var(--transition);
}

.sb-heading[aria-expanded="false"][b-t3xmhwafn5]  .sb-caret {
    transform: rotate(-90deg);
}

[dir="rtl"] .sb-heading[aria-expanded="false"][b-t3xmhwafn5]  .sb-caret {
    transform: rotate(90deg);
}

/* A folded section keeps only the link to the current page. Not in the icon rail, which always shows every icon. */
html:not([data-nav-rail])[data-nav-closed~="overview"] .sb-section[data-group="overview"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
html:not([data-nav-rail])[data-nav-closed~="herd"] .sb-section[data-group="herd"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
html:not([data-nav-rail])[data-nav-closed~="feed"] .sb-section[data-group="feed"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
html:not([data-nav-rail])[data-nav-closed~="poultry"] .sb-section[data-group="poultry"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
html:not([data-nav-rail])[data-nav-closed~="care"] .sb-section[data-group="care"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
html:not([data-nav-rail])[data-nav-closed~="business"] .sb-section[data-group="business"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
html:not([data-nav-rail])[data-nav-closed~="admin"] .sb-section[data-group="admin"] > ul > li:not(:has(> .active))[b-t3xmhwafn5] {
    display: none;
}

/* Below 1200px there is no rail (the drawer always shows names), so folding applies there whatever was saved. */
@media (max-width: 1199.98px) {
    html[data-nav-closed~="overview"] .sb-section[data-group="overview"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
    html[data-nav-closed~="herd"] .sb-section[data-group="herd"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
    html[data-nav-closed~="feed"] .sb-section[data-group="feed"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
    html[data-nav-closed~="poultry"] .sb-section[data-group="poultry"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
    html[data-nav-closed~="care"] .sb-section[data-group="care"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
    html[data-nav-closed~="business"] .sb-section[data-group="business"] > ul > li:not(:has(> .active))[b-t3xmhwafn5],
    html[data-nav-closed~="admin"] .sb-section[data-group="admin"] > ul > li:not(:has(> .active))[b-t3xmhwafn5] {
        display: none;
    }
}

.sidebar[b-t3xmhwafn5]  .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 34px;
    margin-bottom: 1px;
    padding: 5px 10px;
    border-radius: var(--radius-md);
    color: var(--sidebar-ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.sidebar[b-t3xmhwafn5]  .nav-link .icon {
    flex: none;
    color: var(--sidebar-muted);
}

.sidebar[b-t3xmhwafn5]  .nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-strong);
}

.sidebar[b-t3xmhwafn5]  .nav-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-strong);
}

.sidebar[b-t3xmhwafn5]  .nav-link.active .icon {
    color: var(--tag-bg);
}

/* Ear-tag yellow marker on the current page, at the outer edge of the sidebar. */
.sidebar[b-t3xmhwafn5]  .nav-link.active::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: var(--tag-bg);
}

html[data-nav="left"] .sidebar[b-t3xmhwafn5]  .nav-link.active::before {
    left: -10px;
}

html[data-nav="right"] .sidebar[b-t3xmhwafn5]  .nav-link.active::before {
    right: -10px;
}

.sidebar[b-t3xmhwafn5]  .nav-link:focus-visible,
.sb-collapse:focus-visible[b-t3xmhwafn5],
.sb-close:focus-visible[b-t3xmhwafn5] {
    outline: 2px solid var(--tag-bg);
    outline-offset: -2px;
    box-shadow: none;
}

/* Labels wrap rather than clip, so nothing in the menu is cut off. */
.sidebar[b-t3xmhwafn5]  .nav-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sidebar .nav-badge[b-t3xmhwafn5] {
    flex: none;
    margin-left: 0;
    margin-inline-start: auto;
    color: #fff;
}

.sb-foot[b-t3xmhwafn5] {
    padding: 8px 10px;
    border-top: 1px solid var(--sidebar-line);
}

.sb-collapse[b-t3xmhwafn5] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--sidebar-muted);
    font: inherit;
    font-size: 0.86rem;
    text-align: start;
    cursor: pointer;
}

.sb-collapse:hover[b-t3xmhwafn5] {
    background: var(--sidebar-hover);
    color: var(--sidebar-strong);
}

/* The chevrons point the way the sidebar folds: towards its own edge. */
.sb-collapse[b-t3xmhwafn5]  .sb-collapse-icon {
    flex: none;
    transition: transform var(--transition);
}

html[data-nav="right"] .sb-collapse[b-t3xmhwafn5]  .sb-collapse-icon {
    transform: scaleX(-1);
}

/* Icon rail (desktop): icons only, names as tooltips, headings become thin rules. */
@media (min-width: 1200px) {
    html[data-nav-side][data-nav-rail] .sidebar[b-t3xmhwafn5] {
        width: var(--sidebar-rail);
    }

    html[data-nav-rail] .sb-head[b-t3xmhwafn5] {
        justify-content: center;
        padding-inline: 0;
    }

    html[data-nav-rail] .sidebar[b-t3xmhwafn5]  .nav-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    html[data-nav-rail] .sb-heading[b-t3xmhwafn5] {
        height: 1px;
        margin: 6px 10px;
        padding: 0;
        overflow: hidden;
        background: var(--sidebar-line);
        color: transparent;
        pointer-events: none;
    }

    html[data-nav-rail] .sb-section:first-child .sb-heading[b-t3xmhwafn5] {
        display: none;
    }

    html[data-nav-rail] .sb-nav[b-t3xmhwafn5] {
        padding-inline: 8px;
    }

    html[data-nav-rail] .sidebar[b-t3xmhwafn5]  .nav-link,
    html[data-nav-rail] .sb-collapse[b-t3xmhwafn5] {
        justify-content: center;
        padding-inline: 0;
    }

    html[data-nav="left"][data-nav-rail] .sidebar[b-t3xmhwafn5]  .nav-link.active::before {
        left: -8px;
    }

    html[data-nav="right"][data-nav-rail] .sidebar[b-t3xmhwafn5]  .nav-link.active::before {
        right: -8px;
    }

    /* The count sits on the corner of the icon. */
    html[data-nav-rail] .sidebar .nav-badge[b-t3xmhwafn5] {
        position: absolute;
        top: 1px;
        inset-inline-end: 4px;
        min-width: 16px;
        margin: 0;
        padding: 0 4px;
        font-size: 10px;
        line-height: 16px;
        box-shadow: 0 0 0 2px var(--sidebar-bg);
    }

    html[data-nav="left"][data-nav-rail] .sb-collapse[b-t3xmhwafn5]  .sb-collapse-icon {
        transform: rotate(180deg);
    }

    html[data-nav="right"][data-nav-rail] .sb-collapse[b-t3xmhwafn5]  .sb-collapse-icon {
        transform: none;
    }
}

/* Tablets and phones: the sidebar is a drawer from its side; the header gets the brand back and (tablets) the menu
   button opens it. On phones More in the bottom bar opens it. */
@media (max-width: 1199.98px) {
    html[data-nav-side] .sidebar[b-t3xmhwafn5] {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 60;
        width: min(300px, 86vw);
        height: 100%;
        box-shadow: var(--shadow-lg);
        visibility: hidden;
        transition: transform 180ms ease, visibility 0s linear 180ms;
    }

    html[data-nav="left"] .sidebar[b-t3xmhwafn5] {
        left: 0;
        transform: translateX(-100%);
    }

    html[data-nav="right"] .sidebar[b-t3xmhwafn5] {
        right: 0;
        transform: translateX(100%);
    }

    html[data-nav-side] .sidebar[data-open="true"][b-t3xmhwafn5] {
        transform: none;
        visibility: visible;
        transition: transform 180ms ease;
    }

    .sb-close[b-t3xmhwafn5] {
        display: grid;
    }

    /* The rail is a desktop choice; the drawer always shows names. */
    .sb-foot[b-t3xmhwafn5] {
        display: none;
    }

    html[data-nav-side] .brand-group > .brand[b-t3xmhwafn5] {
        display: inline-flex;
    }

    html[data-nav-side] .nav-scrim[b-t3xmhwafn5] {
        z-index: 55;
        background: var(--sidebar-scrim);
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-nav-side] .sidebar[b-t3xmhwafn5],
    html[data-nav-side] .sidebar[data-open="true"][b-t3xmhwafn5] {
        transition: none;
    }
}

/* Small phones hide the brand name in the header; the drawer has room for it. */
@media (max-width: 420px) {
    .sidebar .brand-text[b-t3xmhwafn5] {
        display: inline;
    }
}
/* /Components/Layout/OnboardingLayout.razor.rz.scp.css */
/* Same brand, theme toggle and error banner as MainLayout (its styles are scoped to it). */
.brand[b-nz3hmstkcp] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand-mark[b-nz3hmstkcp] {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 7px;
    background: url("/favicon.svg") center / cover no-repeat;
    box-shadow: var(--shadow-sm);
}

.brand-text[b-nz3hmstkcp] {
    font-size: 0.98rem;
    white-space: nowrap;
}

[b-nz3hmstkcp] .theme-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

[b-nz3hmstkcp] .theme-toggle:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--primary-soft);
}

[b-nz3hmstkcp] .theme-icon {
    font-size: 14px;
    line-height: 1;
}

#blazor-error-ui[b-nz3hmstkcp] {
    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-nz3hmstkcp] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-rt1175j3fn],
.components-reconnect-repeated-attempt-visible[b-rt1175j3fn],
.components-reconnect-failed-visible[b-rt1175j3fn],
.components-pause-visible[b-rt1175j3fn],
.components-resume-failed-visible[b-rt1175j3fn],
.components-rejoining-animation[b-rt1175j3fn] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-rt1175j3fn],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-rt1175j3fn],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-rt1175j3fn],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-rt1175j3fn],
#components-reconnect-modal.components-reconnect-retrying[b-rt1175j3fn],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-rt1175j3fn],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-rt1175j3fn],
#components-reconnect-modal.components-reconnect-failed[b-rt1175j3fn],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-rt1175j3fn] {
    display: block;
}


#components-reconnect-modal[b-rt1175j3fn] {
    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-rt1175j3fn 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-rt1175j3fn 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-rt1175j3fn 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-rt1175j3fn]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-rt1175j3fn 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-rt1175j3fn {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-rt1175j3fn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-rt1175j3fn {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-rt1175j3fn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-rt1175j3fn] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-rt1175j3fn] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-rt1175j3fn] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-rt1175j3fn] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-rt1175j3fn] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-rt1175j3fn] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-rt1175j3fn 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-rt1175j3fn] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-rt1175j3fn {
    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/Pages/AppearanceSettings.razor.rz.scp.css */
/* Menu position: three cards, each with a small drawing of the layout. */
.nav-choices[b-ntzng8u6rq] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.nav-choice[b-ntzng8u6rq] {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-choice:hover[b-ntzng8u6rq] {
    border-color: var(--primary-line);
}

.nav-choice:focus-visible[b-ntzng8u6rq] {
    outline: none;
    box-shadow: var(--ring);
}

.nav-choice[aria-checked="true"][b-ntzng8u6rq] {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary);
}

/* The drawing: a dark green menu strip and a page with a few lines. Previews stay physical (left is left). */
.nav-preview[b-ntzng8u6rq] {
    direction: ltr;
    display: flex;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.nav-preview-top[b-ntzng8u6rq] {
    flex-direction: column;
}

.nav-preview-right[b-ntzng8u6rq] {
    flex-direction: row-reverse;
}

.np-bar[b-ntzng8u6rq] {
    flex: none;
    width: 28%;
    background: var(--sidebar-bg);
    background-image: linear-gradient(var(--tag-bg), var(--tag-bg));
    background-repeat: no-repeat;
    background-size: 3px 10px;
    background-position: 0 22px;
}

.nav-preview-right .np-bar[b-ntzng8u6rq] {
    background-position: 100% 22px;
}

.nav-preview-top .np-bar[b-ntzng8u6rq] {
    width: auto;
    height: 18px;
    background-size: 18px 3px;
    background-position: 22px 100%;
}

.np-body[b-ntzng8u6rq] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.np-line[b-ntzng8u6rq] {
    height: 6px;
    width: 70%;
    border-radius: 3px;
    background: var(--border-strong);
}

.np-short[b-ntzng8u6rq] {
    width: 45%;
}

.np-block[b-ntzng8u6rq] {
    flex: 1 1 auto;
    border-radius: 4px;
    background: var(--border);
}

.nav-choice-text[b-ntzng8u6rq] {
    display: grid;
    gap: 2px;
}

.nav-choice-label[b-ntzng8u6rq] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.nav-choice-dot[b-ntzng8u6rq] {
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
}

.nav-choice[aria-checked="true"] .nav-choice-dot[b-ntzng8u6rq] {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 3px var(--surface);
    background: var(--primary);
}

.nav-choice-hint[b-ntzng8u6rq] {
    padding-inline-start: 24px;
    color: var(--muted);
    font-size: var(--fs-small);
}

.appearance-stack[b-ntzng8u6rq] {
    display: grid;
    gap: 16px;
    max-width: 880px;
}
/* /Components/Pages/AssistantSettings.razor.rz.scp.css */
.assistant-credit-big[b-ges066lzoq] { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.assistant-credit-big strong[b-ges066lzoq] { font-size: 26px; color: var(--primary); margin-inline-end: 4px; }

.assistant-meter[b-ges066lzoq] {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-sunken);
    overflow: hidden;
    margin-bottom: 12px;
}

.assistant-meter span[b-ges066lzoq] { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
/* /Components/Pages/DropdownListSettings.razor.rz.scp.css */
.dl-grid[b-sb51w1u6w6] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; }
.dl-values[b-sb51w1u6w6] { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dl-value[b-sb51w1u6w6] { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 2px 4px 2px 10px; border-radius: var(--radius-sm); }
.dl-value:hover[b-sb51w1u6w6] { background: var(--surface-sunken); }
.dl-name[b-sb51w1u6w6] { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dl-value.is-removed .dl-name[b-sb51w1u6w6] { color: var(--muted); text-decoration: line-through; }
.dl-act[b-sb51w1u6w6] { flex: none; }
.dl-sub[b-sb51w1u6w6] { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.dl-add[b-sb51w1u6w6] { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.dl-add .input[b-sb51w1u6w6] { flex: 1; min-width: 0; }
@media (max-width: 760px) { .dl-value[b-sb51w1u6w6] { min-height: 44px; } }
/* /Components/Pages/ImportData.razor.rz.scp.css */
.imp-kinds[b-droqphlx85] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.imp-kind[b-droqphlx85] {
    display: grid; gap: 4px; justify-items: start; text-align: start; padding: 14px; cursor: pointer;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: inherit; font: inherit;
}
.imp-kind:hover[b-droqphlx85] { border-color: var(--primary-line); }
.imp-kind.is-on[b-droqphlx85] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.imp-kind[b-droqphlx85]  .icon { color: var(--primary); }
.imp-kind-title[b-droqphlx85] { font-weight: 700; }
.imp-kind-hint[b-droqphlx85] { color: var(--muted); font-size: var(--fs-small); }
.imp-fields[b-droqphlx85] { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-field[b-droqphlx85] { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-sunken); font-size: var(--fs-small); }
.imp-field.is-req[b-droqphlx85] { border-color: var(--primary-line); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.imp-drop[b-droqphlx85] {
    display: grid; justify-items: center; gap: 6px; padding: 26px 16px; cursor: pointer; text-align: center;
    border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-sunken);
}
.imp-drop:hover[b-droqphlx85], .imp-drop:focus-within[b-droqphlx85] { border-color: var(--primary); }
.imp-drop.is-busy[b-droqphlx85] { opacity: 0.7; cursor: progress; }
.imp-drop-title[b-droqphlx85] { font-weight: 600; overflow-wrap: anywhere; }
.imp-counts[b-droqphlx85] { display: flex; gap: 6px; flex-wrap: wrap; }
.imp-ready[b-droqphlx85] { border-color: var(--primary-line); background: var(--primary-soft); color: var(--primary); }
.imp-filter[b-droqphlx85] { justify-self: start; }
.imp-table[b-droqphlx85] { max-height: 460px; overflow: auto; }
.imp-table td[b-droqphlx85] { white-space: nowrap; }
.imp-table tr.imp-bad > td[b-droqphlx85] { background: var(--danger-soft); }
.imp-err[b-droqphlx85] { color: var(--danger); white-space: normal; min-width: 220px; display: inline-block; }
.imp-ok[b-droqphlx85] { color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.imp-done[b-droqphlx85] { border-color: var(--primary-line); }
/* /Components/Shared/AssistantChat.razor.rz.scp.css */
.ac[b-ncxi6e40we] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--surface);
    color: var(--text);
}

.ac-full[b-ncxi6e40we] {
    height: calc(100vh - 150px);
    min-height: 480px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Header */
.ac-head[b-ncxi6e40we] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--primary-soft), transparent);
}

.ac-head-text[b-ncxi6e40we] { flex: 1; min-width: 0; }
.ac-name[b-ncxi6e40we] { margin: 0; font-weight: 700; font-size: 15px; }
.ac-sub[b-ncxi6e40we] { margin: 0; font-size: var(--fs-micro); color: var(--muted); }

.ac-head-actions[b-ncxi6e40we] { display: flex; gap: 2px; }

.ac-icon-btn[b-ncxi6e40we] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.ac-icon-btn:hover[b-ncxi6e40we],
.ac-icon-btn.is-on[b-ncxi6e40we] { background: var(--primary-soft); color: var(--primary); }
.ac-icon-btn:disabled[b-ncxi6e40we] { opacity: .45; cursor: default; }

/* Body: history + chat */
.ac-body[b-ncxi6e40we] { flex: 1; display: flex; min-height: 0; position: relative; }

.ac-history[b-ncxi6e40we] {
    width: 230px;
    flex-shrink: 0;
    border-inline-end: 1px solid var(--border);
    padding: 10px 8px;
    overflow-y: auto;
    background: var(--surface-sunken);
}

.ac-drawer .ac-history[b-ncxi6e40we] {
    position: absolute;
    inset: 0;
    width: auto;
    z-index: 2;
    border: 0;
}

.ac-history-title[b-ncxi6e40we] {
    margin: 0 4px 8px;
    font-size: var(--fs-micro);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 600;
}

.ac-chat-row[b-ncxi6e40we] { display: flex; align-items: center; border-radius: var(--radius-sm); }
.ac-chat-row:hover[b-ncxi6e40we], .ac-chat-row.is-on[b-ncxi6e40we] { background: var(--primary-soft); }

.ac-chat-link[b-ncxi6e40we] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 8px;
    border: 0;
    background: none;
    text-align: start;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.ac-chat-title[b-ncxi6e40we] { font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-chat-date[b-ncxi6e40we] { font-size: var(--fs-micro); color: var(--muted); }

.ac-chat-delete[b-ncxi6e40we] {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 4px 8px;
    cursor: pointer;
    opacity: 0;
}

.ac-chat-row:hover .ac-chat-delete[b-ncxi6e40we],
.ac-chat-delete:focus-visible[b-ncxi6e40we] { opacity: 1; }
.ac-chat-delete:hover[b-ncxi6e40we] { color: var(--danger); }

.ac-main[b-ncxi6e40we] { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }

.ac-messages[b-ncxi6e40we] {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

/* Welcome */
.ac-welcome[b-ncxi6e40we] {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 8px;
}

.ac-welcome-title[b-ncxi6e40we] { margin: 4px 0 0; font-weight: 700; font-size: 16px; }
.ac-muted[b-ncxi6e40we] { margin: 0; color: var(--muted); font-size: var(--fs-small); }

.ac-suggestions[b-ncxi6e40we] { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 520px; margin-top: 6px; }
.ac-full .ac-suggestions[b-ncxi6e40we] { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 760px; }

.ac-chip[b-ncxi6e40we] {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: var(--fs-small);
    text-align: start;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.ac-chip:hover:not(:disabled)[b-ncxi6e40we] { border-color: var(--primary-line); background: var(--primary-soft); }
.ac-chip:disabled[b-ncxi6e40we] { opacity: .5; cursor: default; }

/* Messages */
.ac-msg[b-ncxi6e40we] { display: flex; gap: 8px; align-items: flex-start; }
.ac-msg.from-user[b-ncxi6e40we] { justify-content: flex-end; }
.ac-msg-avatar[b-ncxi6e40we] { flex-shrink: 0; margin-top: 2px; }

.ac-bubble[b-ncxi6e40we] {
    max-width: min(860px, 92%);
    padding: 9px 12px;
    border-radius: 14px;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    overflow-x: auto;
    font-size: var(--fs-body);
    line-height: 1.5;
}

.from-dog .ac-bubble[b-ncxi6e40we] { border-start-start-radius: 4px; }

.from-user .ac-bubble[b-ncxi6e40we] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-ink);
    border-start-end-radius: 4px;
    white-space: pre-wrap;
}

.from-user .ac-bubble p[b-ncxi6e40we] { margin: 0; }
.ac-bubble.is-failed[b-ncxi6e40we] { border-color: var(--danger); background: var(--danger-soft); }
.ac-bubble.is-report[b-ncxi6e40we] { background: var(--surface); box-shadow: var(--shadow-sm); }

.ac-md[b-ncxi6e40we]  p { margin: 0 0 8px; }
.ac-md[b-ncxi6e40we]  p:last-child { margin-bottom: 0; }
.ac-md[b-ncxi6e40we]  ul, .ac-md[b-ncxi6e40we]  ol { margin: 0 0 8px; padding-inline-start: 20px; }
.ac-md[b-ncxi6e40we]  li { margin: 2px 0; }
.ac-md[b-ncxi6e40we]  h1 { font-size: 17px; margin: 2px 0 10px; }
.ac-md[b-ncxi6e40we]  h2 { font-size: 15px; margin: 14px 0 6px; color: var(--primary); }
.ac-md[b-ncxi6e40we]  h3 { font-size: 14px; margin: 12px 0 4px; }
.ac-md[b-ncxi6e40we]  code { font-family: var(--font-num); font-size: 13px; }
.ac-md[b-ncxi6e40we]  a { color: var(--primary); }

.ac-md[b-ncxi6e40we]  table {
    border-collapse: collapse;
    margin: 6px 0 10px;
    font-size: var(--fs-small);
    background: var(--surface);
    font-variant-numeric: tabular-nums;
}

.ac-md[b-ncxi6e40we]  th,
.ac-md[b-ncxi6e40we]  td {
    border: 1px solid var(--border);
    padding: 4px 8px;
    text-align: start;
    vertical-align: top;
}

.ac-md[b-ncxi6e40we]  th { background: var(--primary-soft); font-weight: 600; }
.ac-md[b-ncxi6e40we]  tr:nth-child(even) td { background: var(--row-alt); }

.ac-msg-foot[b-ncxi6e40we] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.ac-checked[b-ncxi6e40we] { font-size: var(--fs-micro); color: var(--muted); }
.ac-msg-actions[b-ncxi6e40we] { display: inline-flex; gap: 2px; margin-inline-start: auto; }

.ac-act[b-ncxi6e40we] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: var(--fs-micro);
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
}

.ac-act:hover[b-ncxi6e40we] { background: var(--primary-soft); color: var(--primary); }

.ac-working[b-ncxi6e40we] { margin: 6px 0 0; font-size: var(--fs-small); color: var(--muted); }
.ac-paws[b-ncxi6e40we] { display: inline-block; animation: ac-walk-b-ncxi6e40we 1.2s ease-in-out infinite; }

@keyframes ac-walk-b-ncxi6e40we {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(4px); opacity: .55; }
}

/* Input */
.ac-error[b-ncxi6e40we] { margin: 0 14px 8px; color: var(--danger); font-size: var(--fs-small); }

.ac-input[b-ncxi6e40we] {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.ac-input textarea[b-ncxi6e40we] { flex: 1; resize: none; min-height: 42px; }
.ac-input-actions[b-ncxi6e40we] { display: flex; flex-direction: column; gap: 6px; }
.ac-input-actions .button[b-ncxi6e40we] { white-space: nowrap; }

.ac-note[b-ncxi6e40we] { margin: 0; padding: 0 12px 8px; font-size: var(--fs-micro); color: var(--muted); }

.ac-mobile-only[b-ncxi6e40we] { display: none; }

@media (max-width: 760px) {
    .ac-full[b-ncxi6e40we] { height: calc(100vh - 190px); }
    .ac-mobile-only[b-ncxi6e40we] { display: inline-flex; }
    .ac-full .ac-history:not(.is-open)[b-ncxi6e40we] { display: none; }
    .ac-full .ac-history.is-open[b-ncxi6e40we] { position: absolute; inset: 0; width: auto; z-index: 2; border: 0; }
    .ac-bubble[b-ncxi6e40we] { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ac-paws[b-ncxi6e40we] { animation: none; }
    .ac-messages[b-ncxi6e40we] { scroll-behavior: auto; }
}

.ac-stop[b-ncxi6e40we] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--danger); border-color: var(--danger); }
.ac-stop:hover:not(:disabled)[b-ncxi6e40we] { background: var(--danger-soft); }
.ac-stop-square[b-ncxi6e40we] { width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
/* /Components/Shared/MenuPositionPicker.razor.rz.scp.css */
/* Menu position (Shared/MenuPositionPicker): three cards, each with a small drawing of the layout. */
.nav-choices[b-zk8d32a8xq] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.nav-choice[b-zk8d32a8xq] {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-choice:hover[b-zk8d32a8xq] {
    border-color: var(--primary-line);
}

.nav-choice:focus-visible[b-zk8d32a8xq] {
    outline: none;
    box-shadow: var(--ring);
}

.nav-choice[aria-checked="true"][b-zk8d32a8xq] {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary);
}

/* The drawing: a dark green menu strip and a page with a few lines. Previews stay physical (left is left). */
.nav-preview[b-zk8d32a8xq] {
    direction: ltr;
    display: flex;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.nav-preview-top[b-zk8d32a8xq] {
    flex-direction: column;
}

.nav-preview-right[b-zk8d32a8xq] {
    flex-direction: row-reverse;
}

.np-bar[b-zk8d32a8xq] {
    flex: none;
    width: 28%;
    background: var(--sidebar-bg);
    background-image: linear-gradient(var(--tag-bg), var(--tag-bg));
    background-repeat: no-repeat;
    background-size: 3px 10px;
    background-position: 0 22px;
}

.nav-preview-right .np-bar[b-zk8d32a8xq] {
    background-position: 100% 22px;
}

.nav-preview-top .np-bar[b-zk8d32a8xq] {
    width: auto;
    height: 18px;
    background-size: 18px 3px;
    background-position: 22px 100%;
}

.np-body[b-zk8d32a8xq] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.np-line[b-zk8d32a8xq] {
    height: 6px;
    width: 70%;
    border-radius: 3px;
    background: var(--border-strong);
}

.np-short[b-zk8d32a8xq] {
    width: 45%;
}

.np-block[b-zk8d32a8xq] {
    flex: 1 1 auto;
    border-radius: 4px;
    background: var(--border);
}

.nav-choice-text[b-zk8d32a8xq] {
    display: grid;
    gap: 2px;
}

.nav-choice-label[b-zk8d32a8xq] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.nav-choice-dot[b-zk8d32a8xq] {
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
}

.nav-choice[aria-checked="true"] .nav-choice-dot[b-zk8d32a8xq] {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 3px var(--surface);
    background: var(--primary);
}

.nav-choice-hint[b-zk8d32a8xq] {
    padding-inline-start: 24px;
    color: var(--muted);
    font-size: var(--fs-small);
}
