/* /Components/CharacterSheet.razor.rz.scp.css */
.sheet-form[b-wlxjswd5by] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Compact summary header ────────────────────────────────── */

.sheet-header[b-wlxjswd5by] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(226 232 240);
    background-color: white;
    padding: 0.75rem 1rem;
}

.sheet-header__label[b-wlxjswd5by] {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(100 116 139);
    margin-bottom: 0.125rem;
}

.sheet-header__value[b-wlxjswd5by] {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(15 23 42);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Horizontally scrollable tab strip ─────────────────────── */

.sheet-tabs[b-wlxjswd5by] {
    display: flex;
    gap: 0.375rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.125rem;
    scrollbar-width: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.sheet-tabs[b-wlxjswd5by]::-webkit-scrollbar {
    display: none;
}

.sheet-tab[b-wlxjswd5by] {
    flex: 0 0 auto;
    scroll-snap-align: start;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background-color: rgb(241 245 249);
    color: rgb(71 85 105);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.sheet-tab:hover[b-wlxjswd5by] {
    background-color: white;
    border-color: rgb(199 210 254);
    color: rgb(55 48 163);
}

.sheet-tab:focus-visible[b-wlxjswd5by] {
    outline: 2px solid rgb(79 70 229);
    outline-offset: 2px;
}

.sheet-tab--active[b-wlxjswd5by] {
    background-color: white;
    border-color: rgb(99 102 241);
    color: rgb(55 48 163);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

/* ── Tab content ────────────────────────────────────────────── */

.sheet-content[b-wlxjswd5by] {
    min-height: 0;
}

/* ── Sticky action bar ──────────────────────────────────────── */

.sheet-actions[b-wlxjswd5by] {
    position: sticky;
    bottom: 5rem; /* clear the fixed bottom nav */
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    background-color: rgb(255 255 255 / 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    border: 1px solid rgb(226 232 240);
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 16px rgb(0 0 0 / 0.06);
    z-index: 10;
}

.sheet-actions__delete[b-wlxjswd5by] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(254 202 202);
    background-color: transparent;
    color: rgb(220 38 38);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.sheet-actions__delete:hover:not(:disabled)[b-wlxjswd5by] {
    background-color: rgb(254 242 242);
    border-color: rgb(252 165 165);
}

.sheet-actions__delete:disabled[b-wlxjswd5by] {
    cursor: not-allowed;
    opacity: 0.5;
}

.sheet-actions__save[b-wlxjswd5by] {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    border: none;
    background-color: rgb(79 70 229);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
    transition: background-color 150ms ease;
}

.sheet-actions__save:hover:not(:disabled)[b-wlxjswd5by] {
    background-color: rgb(67 56 202);
}

.sheet-actions__save:disabled[b-wlxjswd5by] {
    cursor: not-allowed;
    background-color: rgb(165 180 252);
}

/* ── Dark mode ──────────────────────────────────────────────── */

:global(.dark) .sheet-header[b-wlxjswd5by] {
    background-color: rgb(15 23 42 / 0.7);
    border-color: rgb(51 65 85);
}

:global(.dark) .sheet-header__label[b-wlxjswd5by] {
    color: rgb(148 163 184);
}

:global(.dark) .sheet-header__value[b-wlxjswd5by] {
    color: rgb(241 245 249);
}

:global(.dark) .sheet-tab[b-wlxjswd5by] {
    background-color: rgb(30 41 59 / 0.7);
    color: rgb(148 163 184);
}

:global(.dark) .sheet-tab:hover[b-wlxjswd5by] {
    background-color: rgb(51 65 85 / 0.8);
    border-color: rgb(99 102 241 / 0.5);
    color: rgb(224 231 255);
}

:global(.dark) .sheet-tab--active[b-wlxjswd5by] {
    background-color: rgb(15 23 42);
    border-color: rgb(129 140 248);
    color: rgb(224 231 255);
}

:global(.dark) .sheet-actions[b-wlxjswd5by] {
    background-color: rgb(15 23 42 / 0.95);
    border-color: rgb(51 65 85);
}
/* /Pages/Character.razor.rz.scp.css */
.char-page[b-dssd0m7bgv] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.char-top-bar[b-dssd0m7bgv] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.char-select[b-dssd0m7bgv] {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(203 213 225);
    background-color: white;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: rgb(51 65 85);
}

.char-select:focus-visible[b-dssd0m7bgv] {
    outline: 2px solid rgb(79 70 229);
    outline-offset: 2px;
}

.char-new-btn[b-dssd0m7bgv] {
    flex: 0 0 auto;
    height: 2.75rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(165 180 252);
    background-color: white;
    color: rgb(79 70 229);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.char-new-btn:hover[b-dssd0m7bgv] {
    background-color: rgb(238 242 255);
    border-color: rgb(99 102 241);
}

.char-new-btn:focus-visible[b-dssd0m7bgv] {
    outline: 2px solid rgb(79 70 229);
    outline-offset: 2px;
}

.char-empty[b-dssd0m7bgv] {
    border-radius: 0.5rem;
    border: 1px solid rgb(226 232 240);
    background-color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgb(100 116 139);
}
/* /Pages/Cities.razor.rz.scp.css */
.cities-page-grid[b-646fbekw5q] {
    display: grid;
    gap: 1.5rem;
}

.cities-selector[b-646fbekw5q] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cities-select[b-646fbekw5q],
.cities-pill[b-646fbekw5q] {
    min-height: 2.75rem;
}

.cities-list[b-646fbekw5q] {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
}

.cities-pill[b-646fbekw5q] {
    flex: 0 0 auto;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(51 65 85);
    background-color: rgb(255 255 255);
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    scroll-snap-align: start;
}

.cities-pill:hover[b-646fbekw5q] {
    border-color: rgb(129 140 248);
    color: rgb(67 56 202);
    background-color: rgb(238 242 255);
}

.cities-pill:focus-visible[b-646fbekw5q],
.cities-select:focus-visible[b-646fbekw5q] {
    outline: 2px solid rgb(79 70 229);
    outline-offset: 2px;
}

.cities-pill--active[b-646fbekw5q] {
    border-color: rgb(99 102 241);
    background-color: rgb(224 231 255);
    color: rgb(49 46 129);
}

@media (min-width: 768px) {
    .cities-page-grid[b-646fbekw5q] {
        grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    }

    .cities-list[b-646fbekw5q] {
        flex-direction: column;
        overflow: visible;
        max-height: 18rem;
    }

    .cities-pill[b-646fbekw5q] {
        width: 100%;
        text-align: left;
    }
}
/* /Pages/Crafting.razor.rz.scp.css */
.crafting-page-grid[b-vmbw0ah24g] {
    display: grid;
    gap: 1.5rem;
}

.crafting-selector[b-vmbw0ah24g] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crafting-select[b-vmbw0ah24g],
.crafting-pill[b-vmbw0ah24g] {
    min-height: 2.75rem;
}

.crafting-list[b-vmbw0ah24g] {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
}

.crafting-pill[b-vmbw0ah24g] {
    flex: 0 0 auto;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(51 65 85);
    background-color: rgb(255 255 255);
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    scroll-snap-align: start;
}

.crafting-pill:hover[b-vmbw0ah24g] {
    border-color: rgb(129 140 248);
    color: rgb(67 56 202);
    background-color: rgb(238 242 255);
}

.crafting-pill:focus-visible[b-vmbw0ah24g],
.crafting-select:focus-visible[b-vmbw0ah24g] {
    outline: 2px solid rgb(79 70 229);
    outline-offset: 2px;
}

.crafting-pill--active[b-vmbw0ah24g] {
    border-color: rgb(99 102 241);
    background-color: rgb(224 231 255);
    color: rgb(49 46 129);
}

@media (min-width: 768px) {
    .crafting-page-grid[b-vmbw0ah24g] {
        grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    }

    .crafting-list[b-vmbw0ah24g] {
        flex-direction: column;
        overflow: visible;
        max-height: 18rem;
    }

    .crafting-pill[b-vmbw0ah24g] {
        width: 100%;
        text-align: left;
    }
}
/* /Pages/Index.razor.rz.scp.css */
.home-page[b-6ljga184q2] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 2rem 0;
}

.home-hero[b-6ljga184q2] {
    text-align: center;
    max-width: 28rem;
}

.home-hero__title[b-6ljga184q2] {
    margin: 0;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
    line-height: 1.1;
}

.home-hero__desc[b-6ljga184q2] {
    margin: 1rem 0 0;
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}
/* /Shared/AppErrorBoundary.razor.rz.scp.css */
.app-error-boundary[b-dhgz9zpop7] {
    margin: 0;
    padding: 1rem;
    border: 1px solid #ef4444;
    border-radius: 0.75rem;
    background: #fef2f2;
    color: #7f1d1d;
    display: grid;
    gap: 0.75rem;
}

.app-error-boundary__title[b-dhgz9zpop7] {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.app-error-boundary__message[b-dhgz9zpop7] {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.app-error-boundary__retry[b-dhgz9zpop7] {
    min-height: 2.75rem;
    width: 100%;
    border: 1px solid #b91c1c;
    border-radius: 0.5rem;
    background: #b91c1c;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.app-error-boundary__retry:focus-visible[b-dhgz9zpop7] {
    outline: 3px solid #fca5a5;
    outline-offset: 2px;
}

@media (min-width: 640px) {
    .app-error-boundary[b-dhgz9zpop7] {
        padding: 1.25rem;
    }

    .app-error-boundary__retry[b-dhgz9zpop7] {
        width: auto;
        min-width: 10rem;
        justify-self: start;
        padding: 0 1rem;
    }
}

:global(html.dark) .app-error-boundary[b-dhgz9zpop7] {
    background: #450a0a;
    color: #fecaca;
    border-color: #dc2626;
}

:global(html.dark) .app-error-boundary__retry[b-dhgz9zpop7] {
    background: #ef4444;
    border-color: #ef4444;
    color: #0b1220;
}
/* /Shared/MobileNav.razor.rz.scp.css */
/* ── Gradient blur zone (fades from nothing → full blur towards the pill) ── */
.mobile-nav-blur-zone[b-ebzwihzx8d] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    pointer-events: none;
    z-index: 99;
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
}

/* ── Floating pill container ── */
.mobile-nav[b-ebzwihzx8d] {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 2rem);
    max-width: 480px;
    background-color: rgb(255 255 255 / 0.75);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-radius: 1.25rem;
    border: 1px solid rgb(255 255 255 / 0.4);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12), 0 1px 4px rgba(15, 23, 42, 0.06);
    padding: 0.5rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

@media (min-width: 640px) {
    .mobile-nav[b-ebzwihzx8d] {
        max-width: 600px;
        bottom: 1.5rem;
    }
}

html.dark .mobile-nav[b-ebzwihzx8d] {
    background-color: rgb(15 23 42 / 0.75);
    border-color: rgb(255 255 255 / 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ── List ── */
.mobile-nav__list[b-ebzwihzx8d] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.25rem;
}

.mobile-nav__item[b-ebzwihzx8d] {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ── Each tab ── */
.mobile-nav__link[b-ebzwihzx8d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 52px;
    padding: 0.4rem 0.25rem;
    border-radius: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    gap: 0.2rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.mobile-nav__link:hover[b-ebzwihzx8d] {
    color: var(--color-text-secondary);
    text-decoration: none;
}

/* ── Icon wrapper ── */
.mobile-nav__icon-wrap[b-ebzwihzx8d] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Labels always visible ── */
.mobile-nav__label[b-ebzwihzx8d] {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
}

/* ── Active state: blue pill ── */
.mobile-nav__link--active[b-ebzwihzx8d] {
    background-color: #2563eb;
    color: #ffffff;
}

.mobile-nav__link--active .mobile-nav__icon-wrap[b-ebzwihzx8d] {
    color: #ffffff;
}

.mobile-nav__link--active .mobile-nav__label[b-ebzwihzx8d] {
    font-weight: 600;
    color: #ffffff;
}

html.dark .mobile-nav__link--active[b-ebzwihzx8d] {
    background-color: #2563eb;
    color: #ffffff;
}

/* ── Focus ring ── */
.mobile-nav__link:focus-visible[b-ebzwihzx8d] {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav__link[b-ebzwihzx8d],
    .mobile-nav__icon-wrap[b-ebzwihzx8d] {
        transition: none;
    }
}
