html, body {
    margin: 0;
    font-family: "Segoe UI", Roboto, -apple-system, Helvetica, Arial, sans-serif;
}

/* big touch targets everywhere; this app is operated one-handed mid-session */
button {
    touch-action: manipulation;
}

#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;
}

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #0E7573;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* Keep the notification badge inside the dense app bar — overlapped badges poke
   above it and get clipped against the top edge / Android status bar. */
.notif-badge .mud-badge.mud-badge-top.right.mud-badge-overlap {
    transform: translate(28%, 20%);
}

/* No screen may push the page into horizontal scrolling — a too-wide row clips
   (and should wrap internally) instead of shoving the whole layout sideways. */
.mud-main-content {
    overflow-x: hidden;
}

/* Dense tab bars (student page): smaller, tighter tabs so several fit per screen and
   the next tab visibly peeks in from the edge instead of hiding behind an arrow. */
.dense-tabs .mud-tab {
    min-width: 0 !important;
    padding: 8px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
