/* /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: 13px; }

.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: 13px;
    line-height: 1;
}

.chevron[b-cqa648u7yb] {
    font-size: 10px;
    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] {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
    background: linear-gradient(140deg, var(--primary), var(--accent));
    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: 13px;
    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: 11.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: 10px;
    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: 15px;
    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: 0.9rem;
        height: 0.9rem;
    }

    .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;
}
/* /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] {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
    background: linear-gradient(140deg, var(--primary), var(--accent));
    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: 13px;
    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/AssistantSettings.razor.rz.scp.css */
.assistant-credit-big[b-ges066lzoq] { margin: 0 0 8px; font-size: 13px; 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/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: 14px; }
.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: 15px; }
.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: 14px; margin: 14px 0 6px; color: var(--primary); }
.ac-md[b-ncxi6e40we]  h3 { font-size: 13px; margin: 12px 0 4px; }
.ac-md[b-ncxi6e40we]  code { font-family: var(--font-num); font-size: 12px; }
.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; }
}
