html, body {
    background-color: #f2f2f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.ios-shell {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f2f2f7;
}

.ios-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1c1c1e;
    color: #fff;
    text-align: center;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px 16px;
    font-size: 1.05rem;
}

.ios-content {
    flex: 1;
    padding: 12px 12px calc(82px + env(safe-area-inset-bottom)) 12px;
}

.ios-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #d1d1d6;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 calc(8px + env(safe-area-inset-bottom)) 0;
    z-index: 100;
}

.ios-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8e8e93;
    font-size: 1.2rem;
    line-height: 1.1;
}

    .ios-tab small {
        font-size: 0.72rem;
        margin-top: 2px;
    }

    .ios-tab.active {
        color: #007aff;
        font-weight: 600;
    }

.kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.kpi-value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
}

.kpi-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ios-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
