/* ============================================================================
   NiceFindz design system
   A token layer over Bootstrap 5.3. New app-shell / card / chart classes are
   prefixed (nf-, app-) or reuse existing names (.panel/.kpi-card/.score-*) so
   they never collide with Bootstrap's own .card/.nav/.badge. Dark mode is
   token-driven; Bootstrap widgets follow via data-bs-theme (set together).
   ========================================================================== */

:root {
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;

    --ground: #eef1f8;
    --surface: #ffffff;
    --surface-2: #f7f9fd;
    --border: #e3e7f1;
    --ink: #191d30;
    --muted: #6a7089;
    --faint: #9aa0b8;
    --accent: #4658d8;
    --accent-2: #6d7cf0;
    --accent-soft: #eaecfd;
    --good: #12a150;
    --good-soft: #e6f5ec;
    --warn: #bd7400;
    --warn-soft: #f9f0dd;
    --bad: #d6455b;
    --bad-soft: #fbe9ec;
    --shadow: 0 1px 2px rgba(20,26,54,.04), 0 8px 24px -12px rgba(20,26,54,.18);
    --shadow-lift: 0 1px 2px rgba(20,26,54,.05), 0 18px 34px -16px rgba(20,26,54,.35);
    --radius: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ground: #0b0f1c; --surface: #141a2c; --surface-2: #1a2136; --border: #262d43;
        --ink: #e9edf9; --muted: #969dbb; --faint: #6b7290; --accent: #7381f2; --accent-2: #97a2f6;
        --accent-soft: #202748; --good: #33c877; --good-soft: #12321f; --warn: #e0952b; --warn-soft: #33270f;
        --bad: #f0687e; --bad-soft: #351720;
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
        --shadow-lift: 0 1px 2px rgba(0,0,0,.35), 0 20px 40px -16px rgba(0,0,0,.7);
    }
}

:root[data-theme="light"] {
    --ground: #eef1f8; --surface: #fff; --surface-2: #f7f9fd; --border: #e3e7f1;
    --ink: #191d30; --muted: #6a7089; --faint: #9aa0b8; --accent: #4658d8; --accent-2: #6d7cf0;
    --accent-soft: #eaecfd; --good: #12a150; --good-soft: #e6f5ec; --warn: #bd7400; --warn-soft: #f9f0dd;
    --bad: #d6455b; --bad-soft: #fbe9ec;
    --shadow: 0 1px 2px rgba(20,26,54,.04), 0 8px 24px -12px rgba(20,26,54,.18);
    --shadow-lift: 0 1px 2px rgba(20,26,54,.05), 0 18px 34px -16px rgba(20,26,54,.35);
}

:root[data-theme="dark"] {
    --ground: #0b0f1c; --surface: #141a2c; --surface-2: #1a2136; --border: #262d43;
    --ink: #e9edf9; --muted: #969dbb; --faint: #6b7290; --accent: #7381f2; --accent-2: #97a2f6;
    --accent-soft: #202748; --good: #33c877; --good-soft: #12321f; --warn: #e0952b; --warn-soft: #33270f;
    --bad: #f0687e; --bad-soft: #351720;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lift: 0 1px 2px rgba(0,0,0,.35), 0 20px 40px -16px rgba(0,0,0,.7);
}

/* Nudge Bootstrap's own tokens toward ours so its components blend in both themes. */
:root {
    --bs-body-bg: var(--ground);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-primary: var(--accent);
    --bs-link-color: var(--accent);
    --bs-link-hover-color: var(--accent-2);
    --bs-emphasis-color: var(--ink);
}

html, body {
    font-family: var(--font-sans);
    background: var(--ground);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* Smooth-scroll anchor jumps (e.g. the marketing nav), unless the user prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

h1:focus { outline: none; }

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-good { color: var(--good) !important; }
.text-bad { color: var(--bad) !important; }

a, .btn-link { color: var(--accent); }

.btn-primary {
    color: #fff;
    background-color: var(--accent);
    border-color: var(--accent);
}
.btn-primary:hover { background-color: var(--accent-2); border-color: var(--accent-2); }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 30%, transparent);
    border-color: var(--accent);
}

.form-control, .form-select {
    background: var(--surface);
    border-color: var(--border);
    color: var(--ink);
}
.form-control::placeholder { color: var(--faint); }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--good); }
.invalid { outline: 1px solid var(--bad); }
.validation-message { color: var(--bad); }
code { color: #c02d76; }

/* ============================ App shell ================================== */
.app-shell {
    display: grid;
    grid-template-columns: 244px 1fr;
    min-height: 100vh;
}

.app-side {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 18px;
    text-decoration: none;
    color: var(--ink);
}
.app-brand .mark {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    background: linear-gradient(150deg, var(--accent), var(--accent-2));
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
    box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--accent) 55%, transparent);
}
.app-brand b { font-size: 16px; letter-spacing: -.01em; line-height: 1; }
.app-brand span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }

.app-nav { display: flex; flex-direction: column; gap: 3px; }
.app-nav .nav-link, .app-nav a.nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 11px; border-radius: 10px;
    color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.app-nav .nav-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }
.app-nav .nav-link:hover { background: var(--surface-2); color: var(--ink); }
.app-nav .nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.app-nav .badge-soft {
    margin-left: auto; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; font-weight: 700;
    color: var(--warn); background: var(--warn-soft);
}

.app-grouplabel {
    font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint);
    font-weight: 600; padding: 16px 11px 6px;
}

.app-side .side-foot { margin-top: auto; padding-top: 14px; }

.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.side-user .avatar { width: 34px; height: 34px; }
.side-user .who { min-width: 0; }
.side-user .who .nm { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who .role { font-size: 11px; color: var(--muted); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 26px; border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 20;
}
.app-content { padding: 22px 26px 48px; }

.iconbtn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.iconbtn:hover { color: var(--ink); border-color: var(--muted); }
.iconbtn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.avatar {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(150deg, #f0983a, #e0662f); color: #fff; font-weight: 700; font-size: 13px; flex: none;
}

.hamburger { display: none; }

/* ============================ Cards / panels ============================= */
.panel, .kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel { padding: 18px 20px; margin-bottom: 20px; }
.panel-title { font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; margin-bottom: 14px; color: var(--ink); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head .panel-title { margin-bottom: 0; }

.eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Section switcher on /account/{section}. Own classes rather than Bootstrap's
   .nav-pills so the active state uses our accent tokens in both themes. */
.settings-nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.settings-nav-link {
    padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted);
    text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
}
.settings-nav-link:hover { color: var(--ink); }
.settings-nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

.stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row span { color: var(--muted); }
.stat-row strong { font-weight: 600; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.kpi-card { padding: 17px 18px; transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.kpi-ic.good { background: var(--good-soft); color: var(--good); }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.kpi-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 12px 0 2px; }
.kpi-value small { font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi-delta { font-size: 12px; margin-top: 2px; }
.kpi-spark { width: 100%; height: 34px; display: block; margin-top: 10px; }

.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.chip.up { color: var(--good); background: var(--good-soft); }
.chip.down { color: var(--bad); background: var(--bad-soft); }

/* ============================ Charts ==================================== */
.area-chart { width: 100%; height: 232px; display: block; overflow: visible; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.legend .dot { width: 9px; height: 9px; border-radius: 3px; }

.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; flex: none; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 140px; }
.donut-legend .r { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.donut-legend .r .nm { color: var(--muted); flex: 1; }
.donut-legend .r .n { font-family: var(--font-mono); font-weight: 600; }

.cat-bars { display: flex; flex-direction: column; gap: 14px; }
.cat-bars .r .l { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.cat-bars .r .l .n { font-family: var(--font-mono); font-weight: 600; }
.cat-bars .track { height: 8px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.cat-bars .track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Legacy inline bar chart (kept for any un-migrated use) */
.trend-chart { width: 100%; height: auto; }
.trend-chart .bar-pos { fill: var(--good); }
.trend-chart .bar-neg { fill: var(--bad); }
.trend-chart .bar-label { font-size: 10px; fill: var(--muted); }

/* ============================ Tables ==================================== */
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); color: var(--ink); }
.table > :not(caption) > * > * { border-bottom-color: var(--border); }
.table thead th {
    font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
    color: var(--muted); font-weight: 600; border-bottom-color: var(--border);
}
.table-hover > tbody > tr:hover > * { background: var(--surface-2); }

/* ============================ Badges / pills ============================ */
.pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill-neutral { color: var(--muted); background: var(--surface-2); }
.pill-ready { color: var(--warn); background: var(--warn-soft); }
.pill-listed { color: var(--accent); background: var(--accent-soft); }
.pill-sold { color: var(--good); background: var(--good-soft); }
.pill-bad { color: var(--bad); background: var(--bad-soft); }

/* ============================ Inventory cards =========================== */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.item-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* Bulk-select mode: the ticked card needs to read as chosen at a glance across a grid. */
.item-card.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.item-card .photo .card-check {
    position: absolute; top: 10px; left: 10px; z-index: 3; width: 17px; height: 17px; cursor: pointer;
}
/* grid-template-rows is load-bearing, not decoration: without it the single row is auto-sized, so any
   percentage height on the photo below is circular (row sizes from the item, item sizes from the row)
   and the browser drops it — the img then renders at its natural height and overflow clips it to a
   top slice. minmax(0, 1fr) makes the row definite at the container's height so percentages resolve. */
.item-card .photo { height: 132px; position: relative; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; overflow: hidden; font-size: 38px; background: var(--surface-2); }
/* Bounded by the box, sized to the photo: max-* caps it at the row (definite, per above) and auto
   width/height keep its true aspect ratio, so the element box hugs the visible photo and nothing is
   clipped. Whole photo on purpose — cover cropped portrait and square product shots, which is most of
   them, hiding the parts of the item you scan the grid to recognise; the letterboxing against
   --surface-2 is the deliberate trade. object-fit is a no-op while width/height are auto; it's kept as
   a guard so this degrades to letterboxing rather than clipping if either is ever forced back to 100%. */
.item-card .photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.item-card .photo .pill { position: absolute; top: 10px; right: 10px; }
.item-card .photo .age {
    position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    color: #fff; background: rgba(15,20,40,.55); padding: 2px 8px; border-radius: 99px;
}
.item-card .body { padding: 13px 15px 15px; }
.item-card .body h4 { margin: 0 0 2px; font-size: 13.5px; letter-spacing: -.01em; }
.item-card .body .meta { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.item-card .body .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ============================ Item-detail gallery ====================== */
.gallery-hero {
    /* grid-template-rows for the same reason as .item-card .photo above — an auto row makes the img's
       percentage sizing circular, and it silently renders at natural height and gets clipped. */
    height: 300px; border-radius: 12px; display: grid; grid-template-rows: minmax(0, 1fr);
    place-items: center; background: var(--surface-2); overflow: hidden; margin-bottom: 12px;
}
/* Same rule and caveats as .item-card .photo img above. contain so the whole item is visible at its
   true aspect ratio — product photos are often square/portrait. The strip below stays cover for a
   uniform row of thumbnails. */
.gallery-hero img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery-hero img.zoomable { cursor: zoom-in; }

/* Full-resolution photo viewer. z-index clears the mobile nav (40) but stays under #blazor-error-ui
   (1000). grid-template rows AND columns are minmax(0, 1fr) for the same reason as the hero above —
   auto tracks make the photo's percentage max-* circular and it renders at natural size instead. */
.photo-viewer {
    position: fixed; inset: 0; z-index: 60; background: rgba(9, 12, 24, .86);
    display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
    place-items: center; padding: 26px; cursor: zoom-out;
}
.photo-viewer:focus { outline: none; }
.photo-viewer img {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    border-radius: 8px; cursor: default; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.photo-viewer-x {
    position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border-radius: 99px;
    border: 0; padding: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 15px;
    line-height: 1; display: grid; place-items: center; cursor: pointer;
}
.photo-viewer-x:hover { background: rgba(255, 255, 255, .3); }

.gallery-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-strip .t {
    width: 62px; height: 62px; border-radius: 9px; overflow: hidden; background: var(--surface-2);
    display: grid; place-items: center; cursor: pointer; border: 2px solid transparent;
    font-size: 11px; color: var(--muted); position: relative;
}
.thumb-x {
    position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 99px;
    border: 0; padding: 0; background: rgba(15,20,40,.65); color: #fff; font-size: 11px;
    line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.thumb-x:hover { background: var(--bad); }
.thumb-wrap { position: relative; display: inline-block; }
.gallery-strip .t.sel { border-color: var(--accent); }
/* Armed for removal — outlined in the danger colour so the confirm prompt below names a visible photo.
   Listed after .sel so it wins on the selected tile, which is the common case. */
.gallery-strip .t.arm { border-color: var(--bad); }
img.arm { outline: 2px solid var(--bad); outline-offset: 1px; }
.gallery-strip .t img { width: 100%; height: 100%; object-fit: cover; }

.keychip {
    display: inline-block; font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--border);
    color: var(--muted); padding: 3px 9px; border-radius: 8px; margin: 0 5px 5px 0;
}
.preview-box {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px;
    padding: 9px 11px; font-size: 12.5px; color: var(--ink);
}

.breakdown { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin: 4px 0 12px; }
.breakdown div {
    display: grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 700;
    font-family: var(--font-mono); min-width: 0; overflow: hidden;
}

/* ============================ Score circle ============================== */
.score-circle {
    width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700; color: #fff; flex-shrink: 0; font-family: var(--font-mono);
}
.score-buy { background: var(--good); }
.score-maybe { background: var(--warn); }
.score-pass { background: var(--bad); }
.badge.score-buy, .badge.score-maybe, .badge.score-pass { color: #fff; }

/* ============================ Research verdict ========================= */
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
.metric-grid .m span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.metric-grid .m b { display: block; font-family: var(--font-mono); font-size: 18px; font-weight: 600; margin-top: 3px; letter-spacing: -.01em; }
.score-bars .r { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.score-bars .track { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-bottom: 10px; }
.score-bars .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ============================ Auth screen ============================== */
.login-layout {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--ground); padding: 1.5rem;
}
.login-card {
    width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow); padding: 2rem;
}
.login-brand { font-size: 1.6rem; font-weight: 700; color: var(--accent); margin-bottom: .25rem; }

/* ============================ Responsive =============================== */
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-side {
        position: fixed; z-index: 40; width: 244px; left: 0; top: 0;
        transform: translateX(-100%); transition: transform .2s ease;
    }
    .app-shell.nav-open .app-side { transform: translateX(0); }
    .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
    .hamburger { display: grid; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ============================ Framework (do not restyle) =============== */
#blazor-error-ui {
    color-scheme: light only; background: lightyellow; bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2); box-sizing: border-box; display: none;
    left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem; color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

.loading-progress {
    position: absolute; display: block; width: 8rem; height: 8rem;
    inset: 20vh 0 auto 0; margin: 0 auto 0 auto;
}
.loading-progress circle {
    fill: none; stroke: #e0e0e0; stroke-width: .6rem; transform-origin: 50% 50%; transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray .05s ease-in-out;
}
.loading-progress-text {
    position: absolute; text-align: center; font-weight: bold; inset: calc(20vh + 3.25rem) 0 auto .2rem;
}
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }
