/* /Components/Layout/LanguageSelector.razor.rz.scp.css */
/* Sits in the coloured header band, so it uses the header foreground rather than
   the page ink or the green link colour. */
.lang[b-c29o955pnd] {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.lang-option[b-c29o955pnd] {
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    letter-spacing: 0.04em;
    text-decoration: none;
}

/* The inactive language is a link: underlined so it reads as one, since colour
   alone would not distinguish it from the current language on the band. */
a.lang-option[b-c29o955pnd] {
    color: var(--header-fg-soft);
    text-decoration: underline;
}

a.lang-option:hover[b-c29o955pnd], a.lang-option:focus[b-c29o955pnd] {
    color: var(--header-fg);
    background-color: rgba(255, 255, 255, 0.16);
}

.lang-current[b-c29o955pnd] {
    color: var(--header-fg);
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.16);
}
/* /Components/Layout/LoginDisplay.razor.rz.scp.css */
/* Sits inside the coloured header band, so it uses the header foreground rather
   than the page ink or the green link colour. */
.app-user[b-rcwqi06h1d] {
    color: var(--header-fg-soft);
    /* Capped so a long address cannot dominate the band, but never wider than the
       space available — on a phone that cap alone would overflow the viewport. */
    max-width: min(16rem, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-auth-link[b-rcwqi06h1d] {
    color: var(--header-fg);
    text-decoration: underline;
    white-space: nowrap;
}

.app-auth-link:hover[b-rcwqi06h1d] {
    color: var(--header-fg);
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-ahi79kym9l] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Slim top header with a coloured band from the theme palette. */
.app-header[b-ahi79kym9l] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
    padding: 0.9rem 1.5rem;
    background-image: linear-gradient(90deg, var(--header-from) 0%, var(--header-via) 70%, var(--header-to) 100%);
    color: var(--header-fg);
    box-shadow: var(--shadow);
}

.app-brand[b-ahi79kym9l] {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--header-fg);
    text-decoration: none;
}

.app-brand:hover[b-ahi79kym9l] {
    color: var(--header-fg);
    text-decoration: none;
}

.app-subtitle[b-ahi79kym9l] {
    font-size: 0.9rem;
    color: var(--header-fg-soft);
}

/* Sign-in state pushed to the right of the header band. Its children set
   white-space: nowrap, so without min-width: 0 and its own wrap the block cannot
   shrink below their combined width and pushes the whole page into horizontal
   scroll on a narrow phone. */
.app-auth[b-ahi79kym9l] {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    font-size: 0.9rem;
    min-width: 0;
}

/* .app-user and .app-auth-link live in LoginDisplay.razor.css: they belong to a
   child component, which this component's scoped styles cannot reach. */

.app-main[b-ahi79kym9l] {
    flex: 1;
    display: flex;
    justify-content: center;
}

.content[b-ahi79kym9l] {
    width: 100%;
    max-width: 900px;
    padding: 1.5rem;
}

/* Sits below .app-main in the flex column, so on a short page (few readings) it
   still lands at the bottom of the viewport rather than right under the table. */
.app-footer[b-ahi79kym9l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
}

.app-footer p[b-ahi79kym9l] {
    max-width: 900px;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.5;
}

.app-footer-copyright[b-ahi79kym9l] {
    padding-top: 0.5rem;
    border-top: none;
    font-size: 0.75rem;
}

/* Phone layout: the header stacks rather than competing for one line, and the
   content gutters give back the ~16px per side that matters at 320-390px. */
@media (max-width: 640px) {
    .app-header[b-ahi79kym9l] {
        padding: 0.75rem 1rem;
    }

    .app-auth[b-ahi79kym9l] {
        margin-left: 0;
        width: 100%;
    }

    .content[b-ahi79kym9l] {
        padding: 1rem;
    }

    .app-footer[b-ahi79kym9l] {
        padding: 0 1rem 1rem;
    }
}

#blazor-error-ui[b-ahi79kym9l] {
    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-ahi79kym9l] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-lb5em8406k],
.components-reconnect-repeated-attempt-visible[b-lb5em8406k],
.components-reconnect-failed-visible[b-lb5em8406k],
.components-pause-visible[b-lb5em8406k],
.components-resume-failed-visible[b-lb5em8406k],
.components-rejoining-animation[b-lb5em8406k] {
    display: none;
}

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


#components-reconnect-modal[b-lb5em8406k] {
    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-lb5em8406k 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

#components-reconnect-modal button[b-lb5em8406k] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-lb5em8406k] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-lb5em8406k] {
        background-color: #6b9ed2;
    }

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

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

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

@keyframes components-rejoining-animation-b-lb5em8406k {
    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/Home.razor.rz.scp.css */
.toolbar[b-gettvwcxx2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.view-toggle[b-gettvwcxx2] {
    margin-left: auto;
}

.stats[b-gettvwcxx2] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin-bottom: 1.25rem;
}

.stat[b-gettvwcxx2] {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.stat-label[b-gettvwcxx2] {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
}

.stat strong[b-gettvwcxx2] {
    font-size: 1.25rem;
}

.graph-filter[b-gettvwcxx2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.year-select .form-select[b-gettvwcxx2] {
    width: auto;
    min-width: 10rem;
}

/* Stands in for ApexCharts' built-in title, matching its weight and size. Unlike
   the SVG original it wraps, so the compare-years title stays clear of the
   toolbar icons on a narrow screen. */
/* An h2 by markup, but functionally a chart label: it sits directly above
   ApexCharts' own axis text, so it stays on the interface face rather than
   picking up the display serif from the global heading rule. */
.chart-title[b-gettvwcxx2] {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.5rem;
}

/* ============================================================================
   Phone layout for the readings table.

   The table is ~500px wide — inside .table-responsive that means the Edit link
   and the By column sit past the right edge of a phone screen, reachable only by
   a horizontal swipe most people never discover. Below 640px the same rows are
   re-flowed into one card each, with the date and temperature on the top line and
   the edit link as a full-height target on the bottom right.
   ============================================================================ */
@media (max-width: 640px) {
    .readings thead[b-gettvwcxx2] {
        display: none;
    }

    .readings[b-gettvwcxx2], .readings tbody[b-gettvwcxx2] {
        display: block;
    }

    .readings tr[b-gettvwcxx2] {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: baseline;
        gap: 0.2rem 0.75rem;
        padding: 0.7rem 0.1rem;
        border-bottom: 1px solid var(--line);
    }

    .readings td[b-gettvwcxx2] {
        display: block;
        border: 0;
        padding: 0;
    }

    /* Note and By are often empty; collapsed they would still take a grid row. */
    .readings td:empty[b-gettvwcxx2] {
        display: none;
    }

    .readings .cell-date[b-gettvwcxx2] {
        font-weight: 600;
    }

    .readings .cell-temp[b-gettvwcxx2] {
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* The unit lives in the hidden header row, so the cards have to carry it. */
    .readings .cell-temp[b-gettvwcxx2]::after {
        content: " °C";
        font-size: 0.8rem;
        font-weight: 400;
        color: var(--ink-soft);
    }

    /* Full-width own line under the date/temperature pair. */
    .readings .cell-note[b-gettvwcxx2] {
        grid-column: 1 / -1;
        color: var(--ink-soft);
    }

    .readings .cell-by[b-gettvwcxx2] {
        grid-column: 1;
    }

    .readings .cell-edit[b-gettvwcxx2] {
        grid-column: 2;
    }

    /* 44px tap target without a 44px-tall table row: the padding grows the link,
       and the negative margin keeps it from growing the card. */
    .readings .cell-edit a[b-gettvwcxx2] {
        display: inline-block;
        padding: 0.6rem 0.25rem;
        margin: -0.6rem -0.25rem;
    }
}
