/* /Layout/BottomNav.razor.rz.scp.css */
/* Bottom tab bar — mobile only; the desktop sidebar replaces it at md+. */
.bottom-nav[b-ifv0cvnj4s] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    background: var(--brew-topbar-bg);
    border-top: 1px solid var(--brew-topbar-border);
    /* Clear the iOS home indicator in standalone PWA mode. */
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
}

/* NavLink renders its own <a>, so reach the tabs (and the More <button>) with ::deep. */
.bottom-nav[b-ifv0cvnj4s]  .bn-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 3.5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-size: .68rem;
    line-height: 1;
}

.bn-icon[b-ifv0cvnj4s] {
    font-size: 1.25rem;
    line-height: 1;
}

.bn-label[b-ifv0cvnj4s] {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Active tab (NavLink adds .active; the More button toggles .bn-active). */
.bottom-nav[b-ifv0cvnj4s]  .bn-tab.active,
.bottom-nav[b-ifv0cvnj4s]  .bn-tab.bn-active {
    color: var(--brew-accent);
    font-weight: 600;
}

/* --- "More" bottom sheet --- */
.more-backdrop[b-ifv0cvnj4s] {
    position: fixed;
    inset: 0;
    z-index: 1085;
    background: rgba(0, 0, 0, .4);
    animation: mb-fade-b-ifv0cvnj4s .15s ease;
}

.more-sheet[b-ifv0cvnj4s] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1090;
    background: var(--bs-body-bg);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: .5rem 1rem calc(env(safe-area-inset-bottom) + 1rem);
    box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, .25);
    animation: mb-slide-b-ifv0cvnj4s .2s ease;
}

.more-grabber[b-ifv0cvnj4s] {
    width: 2.5rem;
    height: .25rem;
    border-radius: 1rem;
    background: var(--bs-border-color);
    margin: .25rem auto .75rem;
}

.more-grid[b-ifv0cvnj4s] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.more-item[b-ifv0cvnj4s] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .9rem .25rem;
    border: 0;
    border-radius: .75rem;
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: .8rem;
    text-align: center;
}

.more-item:active[b-ifv0cvnj4s] {
    background: var(--bs-tertiary-bg);
}

.more-icon[b-ifv0cvnj4s] {
    font-size: 1.4rem;
    line-height: 1;
}

.more-signout[b-ifv0cvnj4s] {
    color: var(--bs-danger);
}

@keyframes mb-slide-b-ifv0cvnj4s {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@keyframes mb-fade-b-ifv0cvnj4s {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Desktop: the sidebar handles navigation — hide the whole mobile nav. */
@media (min-width: 768px) {
    .bottom-nav[b-ifv0cvnj4s] {
        display: none;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-ihs25myfd0] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-ihs25myfd0] {
    flex: 1;
}

.sidebar[b-ihs25myfd0] {
    display: none;   /* mobile: the bottom tab bar replaces the sidebar */
    background: var(--brew-sidebar-bg);
}

/* --- Mobile app bar (shown below md; the desktop top row + sidebar take over at md+) --- */
.mobile-appbar[b-ihs25myfd0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: calc(env(safe-area-inset-top) + .45rem) 1rem .45rem;
    background: var(--brew-topbar-bg);
    border-bottom: 1px solid var(--brew-topbar-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.appbar-brand[b-ihs25myfd0] {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
    text-decoration: none;
}

.appbar-account[b-ihs25myfd0] {
    font-size: 1.3rem;
    text-decoration: none;
    line-height: 1;
    padding: .25rem;
}

/* Desktop top row — hidden on mobile (the app bar replaces it). */
.top-row[b-ihs25myfd0] {
    display: none;
    background-color: var(--brew-topbar-bg);
    border-bottom: 1px solid var(--brew-topbar-border);
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    height: 3.5rem;
}

    .top-row[b-ihs25myfd0]  a, .top-row[b-ihs25myfd0]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-ihs25myfd0]  a:hover, .top-row[b-ihs25myfd0]  .btn-link:hover {
        text-decoration: underline;
    }

/* Leave room for the fixed bottom tab bar (its own height + the safe-area inset). */
.content[b-ihs25myfd0] {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom) + 1rem);
}

@media (min-width: 768px) {
    .page[b-ihs25myfd0] {
        flex-direction: row;
    }

    .sidebar[b-ihs25myfd0] {
        display: block;
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    /* Desktop uses the sidebar + top row; the mobile chrome disappears. */
    .mobile-appbar[b-ihs25myfd0] {
        display: none;
    }

    .top-row[b-ihs25myfd0] {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-ihs25myfd0]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-ihs25myfd0], article[b-ihs25myfd0] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    /* No bottom bar on desktop — reclaim the space. */
    .content[b-ihs25myfd0] {
        padding-bottom: 0;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-wohjw6smjw] {
    background-color: var(--brew-sidebar-hover-bg);
}

.top-row[b-wohjw6smjw] {
    min-height: 3.5rem;
    background-color: var(--brew-sidebar-brand-bg);
}

.navbar-brand[b-wohjw6smjw] {
    font-size: 1.1rem;
    color: var(--brew-sidebar-color);
}

.nav-logo[b-wohjw6smjw] {
    /* Crisp downscale of the 192px mark; flex-shrink guards narrow sidebars. */
    flex-shrink: 0;
    object-fit: contain;
}

.nav-icon[b-wohjw6smjw] {
    display: inline-block;
    width: 1.5rem;
    margin-right: 0.5rem;
    text-align: center;
    font-size: 1rem;
}

.nav-item[b-wohjw6smjw] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-wohjw6smjw] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-wohjw6smjw] {
        padding-bottom: 1rem;
    }

    .nav-item[b-wohjw6smjw]  a {
        color: var(--brew-sidebar-color);
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-wohjw6smjw]  a.active {
    background-color: var(--brew-accent);
    color: var(--brew-accent-color);
}

.nav-item[b-wohjw6smjw]  a:hover:not(.active) {
    background-color: var(--brew-sidebar-hover-bg);
    color: var(--brew-sidebar-color);
}

@media (min-width: 768px) {
    .navbar-toggler[b-wohjw6smjw] {
        display: none;
    }

    .collapse[b-wohjw6smjw] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-wohjw6smjw] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Shared/CollapsibleRow.razor.rz.scp.css */
/* Rows stack into one bordered group: adjacent rows share a border instead of doubling it. */
.collapsible-row[b-cfen68semq] {
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
    background: var(--bs-body-bg);
}

.collapsible-row + .collapsible-row[b-cfen68semq] {
    margin-top: .5rem;
}

.collapsible-row-head[b-cfen68semq] {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .5rem .75rem;
    border: 0;
    background: transparent;
    color: var(--bs-body-color);
    text-align: left;
    font-weight: 600;
}

.collapsible-row-head:hover[b-cfen68semq] {
    background: var(--bs-tertiary-bg);
}

.collapsible-row-head:focus-visible[b-cfen68semq] {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.cr-chevron[b-cfen68semq] {
    width: .75rem;
    color: var(--bs-secondary-color);
    flex: none;
}

.cr-title[b-cfen68semq] {
    flex: none;
}

/* Pushed right, and allowed to truncate so a long summary never wraps the row onto two lines. */
.cr-summary[b-cfen68semq] {
    margin-left: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    font-size: .875rem;
    color: var(--bs-secondary-color);
}

.collapsible-row-body[b-cfen68semq] {
    padding: .25rem .75rem .75rem;
    border-top: 1px solid var(--bs-border-color);
}

.collapsible-row.is-open .collapsible-row-body[b-cfen68semq] {
    padding-top: .75rem;
}
/* /Shared/GravityChart.razor.rz.scp.css */
/* Scoped to GravityChart. Colours come from the --brew-chart-* tokens in app.css so the chart
   re-steps with the active theme rather than hardcoding a surface. Series 1 is gravity, series 2
   temperature — the two are never distinguished by colour alone: the legend and both axes label
   them, and the tooltip keys each row. */

.gravity-chart[b-skmgv0wqan] {
    margin: 0;
}

.gravity-chart-frame[b-skmgv0wqan] {
    position: relative;
    width: 100%;
}

/* viewBox is 640x210 and scales uniformly (xMidYMid meet), so height follows width rather than
   being pinned — a fixed height would letterbox the plot. */
.gravity-chart-svg[b-skmgv0wqan] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 210;
    max-height: 260px;
    overflow: visible;
    /* Horizontal drags scrub the readout; vertical ones still scroll the page, so the chart
       never becomes a dead zone the reader has to swipe around. */
    touch-action: pan-y;
}

/* --- legend --- */

.gc-legend[b-skmgv0wqan] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .15rem;
}

/* Line key, not a box — at this density a filled swatch is too much ink. */
.gc-key[b-skmgv0wqan] {
    display: inline-block;
    width: .85rem;
    height: 2px;
    margin-right: .35rem;
    vertical-align: middle;
    flex: none;
}

.gc-key-sg[b-skmgv0wqan] {
    background: var(--brew-chart-series-1);
}

.gc-key-temp[b-skmgv0wqan] {
    background: var(--brew-chart-series-2);
}

/* --- marks --- */

.gc-line-sg[b-skmgv0wqan] {
    fill: none;
    stroke: var(--brew-chart-series-1);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* Dashed as well as differently coloured, so the two series stay separable without colour. */
.gc-line-temp[b-skmgv0wqan] {
    fill: none;
    stroke: var(--brew-chart-series-2);
    stroke-width: 1.5;
    stroke-dasharray: 5 3;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* 2px surface ring keeps overlapping points legible where readings cluster. */
.gc-dot-sg[b-skmgv0wqan] {
    fill: var(--brew-chart-series-1);
    stroke: var(--brew-chart-surface);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.gc-dot-temp[b-skmgv0wqan] {
    fill: var(--brew-chart-series-2);
    stroke: var(--brew-chart-surface);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.gc-dot-active[b-skmgv0wqan] {
    stroke-width: 3;
}

/* --- chrome, deliberately recessive --- */

.gc-plot[b-skmgv0wqan] {
    fill: var(--bs-tertiary-bg);
}

.gc-grid[b-skmgv0wqan] {
    stroke: var(--brew-chart-grid);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.gc-grid-major[b-skmgv0wqan] {
    stroke: var(--bs-secondary-color);
    stroke-width: 1;
    opacity: .45;
    vector-effect: non-scaling-stroke;
}

.gc-crosshair[b-skmgv0wqan] {
    stroke: var(--brew-chart-crosshair);
    stroke-width: 1;
    stroke-dasharray: 3 3;
    vector-effect: non-scaling-stroke;
}

/* Axis labels are rendered by the SvgText child component, so they don't carry this component's
   scope attribute — ::deep reaches through to them. */
.gravity-chart-svg[b-skmgv0wqan]  .gc-axis {
    fill: var(--brew-chart-axis-text);
    font-size: 10px;
}

/* Each axis carries its series colour, so the scale a line is read against is obvious without
   tracing it back to the legend. */
.gravity-chart-svg[b-skmgv0wqan]  .gc-axis-y {
    text-anchor: end;
    fill: var(--brew-chart-series-1);
}

.gravity-chart-svg[b-skmgv0wqan]  .gc-axis-x {
    text-anchor: middle;
    font-size: 9px;
}

.gravity-chart-svg[b-skmgv0wqan]  .gc-axis-temp {
    text-anchor: start;
    fill: var(--brew-chart-series-2);
}

/* --- hit layer --- */

.gc-hit[b-skmgv0wqan] {
    fill: transparent;
    cursor: crosshair;
}

.gc-hit:focus-visible[b-skmgv0wqan] {
    outline: 2px solid var(--brew-chart-series-1);
    outline-offset: -2px;
}

/* --- tooltip: time leads, values follow --- */

.gc-tooltip[b-skmgv0wqan] {
    position: absolute;
    top: 0;
    transform: translateX(8px);
    pointer-events: none;
    z-index: 5;
    min-width: 7.5rem;
    padding: .4rem .55rem;
    border-radius: .375rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .18);
    font-size: .75rem;
    line-height: 1.35;
}

/* Flip before the tooltip runs off the right edge. */
.gc-tooltip-left[b-skmgv0wqan] {
    transform: translateX(calc(-100% - 8px));
}

.gc-tip-time[b-skmgv0wqan] {
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: .1rem;
}

.gc-tip-row[b-skmgv0wqan] {
    display: flex;
    align-items: center;
    color: var(--bs-secondary-color);
}

.gc-tip-value[b-skmgv0wqan] {
    font-variant-numeric: tabular-nums;
    color: var(--bs-body-color);
}

.gc-tip-rate[b-skmgv0wqan] {
    margin-top: .2rem;
    padding-top: .2rem;
    border-top: 1px solid var(--bs-border-color, rgba(128, 128, 128, .35));
    color: var(--bs-body-color);
    font-variant-numeric: tabular-nums;
}

.gc-tip-span[b-skmgv0wqan] {
    color: var(--bs-secondary-color);
}

/* The gradient at the hovered reading: same colour as the gravity line, dashed so it reads as
   a construction line rather than data. */
.gc-tangent[b-skmgv0wqan] {
    stroke: var(--brew-chart-tangent);
    stroke-width: 2;
    stroke-dasharray: 5 3;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    /* Fully opaque: it sits directly on the gravity curve, and at 85% it picked up the blue
       underneath and vanished into it. */
}
/* /Shared/PriceHistoryChart.razor.rz.scp.css */
/* Scoped to PriceHistoryChart. Colours come from the --brew-chart-* tokens in app.css
   so the chart re-steps with the active theme rather than hardcoding a surface. */

.price-chart[b-4bznlmklu5] {
    margin: 0;
}

.price-chart-frame[b-4bznlmklu5] {
    position: relative;
    width: 100%;
}

/* viewBox is 640x200 and scales uniformly (xMidYMid meet), so height follows width
   rather than being pinned — a fixed height would letterbox the plot. */
.price-chart-svg[b-4bznlmklu5] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 200;
    max-height: 260px;
    overflow: visible;
}

/* --- marks --- */

.pc-line[b-4bznlmklu5] {
    fill: none;
    stroke: var(--brew-chart-series-1);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* 2px surface ring keeps overlapping points legible where observations cluster. */
.pc-dot[b-4bznlmklu5] {
    fill: var(--brew-chart-series-1);
    stroke: var(--brew-chart-surface);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    transition: r 90ms ease-out;
}

.pc-dot-active[b-4bznlmklu5] {
    stroke: var(--brew-chart-surface);
    stroke-width: 3;
}

/* --- chrome, deliberately recessive --- */

.pc-grid[b-4bznlmklu5] {
    stroke: var(--brew-chart-grid);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.pc-crosshair[b-4bznlmklu5] {
    stroke: var(--brew-chart-crosshair);
    stroke-width: 1;
    stroke-dasharray: 3 3;
    vector-effect: non-scaling-stroke;
}

/* Axis labels are rendered by the SvgText child component, so they don't carry this
   component's scope attribute — ::deep reaches through to them. */
.price-chart-svg[b-4bznlmklu5]  .pc-axis {
    fill: var(--brew-chart-axis-text);
    font-size: 10px;
}

.price-chart-svg[b-4bznlmklu5]  .pc-axis-y {
    text-anchor: end;
}

.price-chart-svg[b-4bznlmklu5]  .pc-axis-end {
    text-anchor: end;
}

/* --- hit layer --- */

.pc-hit[b-4bznlmklu5] {
    fill: transparent;
    cursor: crosshair;
}

.pc-hit:focus-visible[b-4bznlmklu5] {
    outline: 2px solid var(--brew-chart-series-1);
    outline-offset: -2px;
}

/* --- tooltip: value leads, labels follow --- */

.pc-tooltip[b-4bznlmklu5] {
    position: absolute;
    top: 0;
    transform: translateX(8px);
    pointer-events: none;
    z-index: 5;
    min-width: 9rem;
    padding: .4rem .55rem;
    border-radius: .375rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .18);
    font-size: .75rem;
    line-height: 1.35;
}

/* Flip before the tooltip runs off the right edge. */
.pc-tooltip-left[b-4bznlmklu5] {
    transform: translateX(calc(-100% - 8px));
}

.pc-tip-value[b-4bznlmklu5] {
    font-weight: 600;
    color: var(--bs-body-color);
    font-size: .875rem;
}

.pc-tip-unit[b-4bznlmklu5] {
    font-weight: 400;
    color: var(--bs-secondary-color);
}

.pc-tip-meta[b-4bznlmklu5] {
    color: var(--bs-secondary-color);
}

.pc-tip-faint[b-4bznlmklu5] {
    opacity: .75;
}

/* Line key, not a box — at tooltip density a filled swatch is too much ink. */
.pc-tip-key[b-4bznlmklu5] {
    display: inline-block;
    width: .75rem;
    height: 2px;
    margin-right: .35rem;
    vertical-align: middle;
    background: var(--brew-chart-series-1);
}
