html, body {
    background: #F4F6F9;
    -webkit-tap-highlight-color: transparent;
}

.splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100vh;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    color: #5C6B7A;
}

/* Room for the bottom navigation and the phone's home bar */
.page {
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom));
    max-width: 720px;
    margin: 0 auto;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 6px;
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    text-decoration: none;
}

.bottom-nav a.active {
    color: var(--mud-palette-primary);
    font-weight: 600;
}

.cards {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.cards::-webkit-scrollbar {
    display: none;
}

.stat {
    flex: 0 0 auto;
    min-width: 84px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--mud-palette-surface);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: left;
}

.stat.selected {
    border-color: var(--mud-palette-primary);
}

.stat .count {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
}

.stat .label {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--mud-palette-surface);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    cursor: pointer;
}

.row:first-child {
    border-radius: 12px 12px 0 0;
}

.row:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.row .main {
    flex: 1;
    min-width: 0;
}

.row .name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row .sub {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.tone-Neutral { color: var(--mud-palette-text-secondary); }
.tone-Info { color: var(--mud-palette-info); }
.tone-Success { color: var(--mud-palette-success); }
.tone-Warning { color: var(--mud-palette-warning); }
.tone-Error { color: var(--mud-palette-error); }
.tone-Secondary { color: var(--mud-palette-secondary); }

.photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

#blazor-error-ui {
    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: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
