/* HorizontalTabs */

.horizontal-tabs-tab-header
{
    border-radius: 0 !important;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.horizontal-tabs-tab-buttons
{
    letter-spacing: 0;
    min-width: auto !important;
    padding: 0 20px;
}

    .horizontal-tabs-tab-buttons .mud-badge-wrapper,
    .horizontal-tabs-tab-buttons .mud-badge
    {
        position: static;
    }

.horizontal-tabs-active-tab
{
    font-weight: bold;
}

.horizontal-tabs-tab-panel
{
    padding: 20px;
}

@media (max-width: 599.98px)
{
    .horizontal-tabs-tab-panel
    {
        padding: 12px;
    }
}

/* Profile page */

/* The identity card: a banner in the brand gradient of the auth layout, with the avatar overlapping its lower edge. */
.profile-card
{
    overflow: hidden;
}

.profile-card-banner
{
    height: 112px;
    background: radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--mud-palette-secondary) 55%, transparent) 0%, transparent 45%), linear-gradient(90deg, var(--mud-palette-appbar-background) 0%, var(--mud-palette-primary) 100%);
}

.profile-card-body
{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 20px;
    padding: 0 24px 24px;
}

.mud-avatar.profile-card-avatar
{
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    margin-top: -56px;
    border: 4px solid var(--mud-palette-surface);
    box-shadow: var(--mud-elevation-4);
    font-family: var(--mud-typography-h6-family);
    font-weight: 700;
    font-size: 2.5rem;
}

.profile-card-identity
{
    flex: 1 1 240px;
    min-width: 0;
    padding-top: 12px;
}

.profile-card-name,
.profile-card-username
{
    overflow-wrap: anywhere;
}

.profile-card-username
{
    color: var(--mud-palette-text-secondary);
}

.profile-card-roles
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.profile-card-role
{
    padding: 3px 12px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.profile-card-role-none
{
    background-color: var(--mud-palette-background-gray);
    color: var(--mud-palette-text-secondary);
}

.profile-detail
{
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.profile-detail-icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
}

.profile-detail-text
{
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.profile-detail-label
{
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.profile-detail-value
{
    overflow-wrap: anywhere;
    font-weight: 600;
}

@media (max-width: 599.98px)
{
    .profile-card-banner
    {
        height: 88px;
    }

    /* On a phone the card centers: avatar, names, roles, then full-width actions. */
    .profile-card-body
    {
        flex-direction: column;
        align-items: center;
        padding: 0 16px 20px;
        text-align: center;
    }

    .mud-avatar.profile-card-avatar
    {
        width: 96px;
        height: 96px;
        margin-top: -48px;
        font-size: 2rem;
    }

    .profile-card-identity
    {
        flex: 0 1 auto;
        padding-top: 0;
    }

    .profile-card-roles
    {
        justify-content: center;
    }
}

/* StepperDefault */

/* The step labels sit on the same surface as PaperDefault (Elevation 25); the step content and actions follow. */
.stepper-default-nav
{
    background-color: var(--mud-palette-surface);
    border-radius: var(--mud-default-borderradius);
    box-shadow: var(--mud-elevation-25);
    padding: 12px 16px;
}

/* MudBlazor pads the step content with ".mud-stepper .mud-stepper-content" (0 24px), which outranks a single class;
   the selector repeats that weight so the content lines up with the step labels and keeps a gap below them. */
.mud-stepper .mud-stepper-content.stepper-default-step
{
    padding: 20px 0 0;
}

/* The same for the actions: ".mud-card-actions.mud-card-actions-padding" (8px) outranks a single class. */
.mud-stepper .mud-stepper-actions.stepper-default-actions
{
    padding: 16px 0 0;
}

/* Wizard page layout */

/* The full width of the page, in one column; on wide screens a summary sits beside the wizard, staying in view
   below the app bar while the wizard scrolls. The introduction spans both columns. */
.wizard-layout
{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.summary-list
{
    margin: 0;
}

.summary-list dt
{
    font-size: var(--mud-typography-caption-size);
    color: var(--mud-palette-text-secondary);
}

.summary-list dd
{
    margin: 0 0 12px;
    overflow-wrap: anywhere;
    font-size: var(--mud-typography-body2-size);
}

.summary-list dd:last-child
{
    margin-bottom: 0;
}

@media (min-width: 1280px)
{
    .wizard-layout
    {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
        column-gap: 24px;
        align-items: start;
    }

    .wizard-layout-intro
    {
        grid-column: 1 / -1;
    }

    .wizard-layout-aside
    {
        position: sticky;
        top: calc(var(--mud-appbar-height) + 24px);
    }
}

/* TextFieldSearch */

/* MudTextField puts Class on its root but Style on the inner input, and the root grows by default (flex: 1 1 auto);
   sizing the root keeps a MudSpacer from sharing the free space with it and pushing the box to the middle. */
.text-field-search
{
    flex: 0 1 auto;
    width: 100%;
    max-width: 300px;
}

/* About */

/* A hero page has no breadcrumbs, so the hero keeps a gap below the app bar equal to the side gutter
   (24px, 16px on phones); .page-content already adds 8px. */
.about-hero,
.home-hero
{
    margin-top: 16px;
}

@media (max-width: 599.98px)
{
    .about-hero,
    .home-hero
    {
        margin-top: 8px;
    }
}

.about-hero
{
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 40px;
    border-radius: var(--mud-default-borderradius);
    background: linear-gradient(135deg, var(--mud-palette-appbar-background) 0%, var(--mud-palette-primary) 100%);
    color: #FFFFFF;
}

.about-hero-logomark
{
    height: 96px;
    width: auto;
    flex-shrink: 0;
}

.about-hero-content
{
    min-width: 0;
}

.about-hero-title
{
    margin: 0;
    font-family: var(--mud-typography-h1-family);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
}

.about-hero-tagline
{
    margin: 12px 0 0;
    max-width: 720px;
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.92;
}

.about-hero-chip.mud-chip,
.about-hero-button-outlined.mud-button-root
{
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.6);
}

.about-card
{
    height: 100%;
    padding: 20px;
    border-radius: var(--mud-default-borderradius);
    border: 1px solid var(--mud-palette-lines-default);
    border-top: 4px solid var(--mud-palette-primary);
    background-color: color-mix(in srgb, var(--mud-palette-primary) 4%, transparent);
}

.about-card-icon
{
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.about-result
{
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 16px;
    border-radius: var(--mud-default-borderradius);
    border: 1px solid var(--mud-palette-lines-default);
}

.about-result-icon.mud-icon-root
{
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    color: var(--mud-palette-primary);
    background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}

/* The flow is a vertical timeline on narrow screens and a horizontal track from 1280px, with a line joining the numbers. */
.about-flow
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.about-flow-step
{
    position: relative;
    padding-left: 60px;
}

    .about-flow-step:not(:last-child)::after
    {
        content: "";
        position: absolute;
        left: 21px;
        top: 48px;
        bottom: -16px;
        width: 2px;
        background-color: color-mix(in srgb, var(--mud-palette-primary) 30%, transparent);
    }

.about-flow-number
{
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    font-family: var(--mud-typography-h1-family);
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}

.about-flow-step:last-child .about-flow-number
{
    background-color: var(--mud-palette-secondary);
    color: var(--mud-palette-secondary-text);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--mud-palette-secondary) 18%, transparent);
}

.about-flow-body
{
    padding-top: 10px;
}

.about-flow-loop
{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px dashed var(--mud-palette-secondary);
    border-radius: var(--mud-default-borderradius);
    background-color: color-mix(in srgb, var(--mud-palette-secondary) 6%, transparent);
}

@media (min-width: 1280px)
{
    .about-flow
    {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .about-flow-step
    {
        padding-left: 0;
        padding-top: 60px;
    }

        .about-flow-step:not(:last-child)::after
        {
            left: 56px;
            right: -4px;
            top: 21px;
            bottom: auto;
            width: auto;
            height: 2px;
        }

    .about-flow-body
    {
        padding-top: 0;
    }
}

.about-limits
{
    margin: 0;
    padding-left: 24px;
}

    .about-limits li + li
    {
        margin-top: 8px;
    }

@media (max-width: 599.98px)
{
    .about-hero
    {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .about-hero-logomark
    {
        height: 64px;
    }

    .about-hero-title
    {
        font-size: 2rem;
    }
}

/* Home dashboard. The hero mirrors the About hero; everything else reads the theme through --mud-palette-* variables. */
.home-hero
{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    overflow: hidden;
    border-radius: var(--mud-default-borderradius);
    background: linear-gradient(135deg, var(--mud-palette-appbar-background) 0%, var(--mud-palette-primary) 100%);
    color: #FFFFFF;
}

    /* Two soft orbits behind the content, in the warm brand colors. */
    .home-hero::before,
    .home-hero::after
    {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .home-hero::before
    {
        right: -120px;
        top: -160px;
        width: 420px;
        height: 420px;
        background: radial-gradient(circle, color-mix(in srgb, var(--mud-palette-secondary) 55%, transparent) 0%, transparent 70%);
    }

    .home-hero::after
    {
        right: 180px;
        bottom: -220px;
        width: 380px;
        height: 380px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
    }

.home-hero-content
{
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.home-hero-eyebrow
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.home-hero-title
{
    margin: 10px 0 0;
    font-family: var(--mud-typography-h1-family);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.home-hero-tagline
{
    margin: 12px 0 0;
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.92;
}

.home-hero-button-outlined.mud-button-root
{
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.6);
}

.home-hero-status
{
    position: relative;
    z-index: 1;
    flex: 0 0 340px;
    max-width: 100%;
    padding: 20px;
    border-radius: var(--mud-default-borderradius);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.home-hero-status-title
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--mud-typography-h1-family);
    font-weight: 700;
    font-size: 1.1rem;
}

.home-hero-status-text,
.home-hero-status-note
{
    margin: 6px 0 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.home-hero-flights
{
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-hero-flight
{
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--mud-default-borderradius);
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

    .home-hero-flight:hover,
    .home-hero-flight:focus-visible
    {
        background-color: rgba(255, 255, 255, 0.2);
    }

.home-hero-flight-label
{
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

.home-hero-flight-name
{
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.home-hero-flight-details
{
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
    overflow-wrap: anywhere;
}

.home-pulse
{
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--mud-palette-tertiary);
    animation: home-pulse 1.6s ease-out infinite;
}

@keyframes home-pulse
{
    0%
    {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--mud-palette-tertiary) 70%, transparent);
    }

    100%
    {
        box-shadow: 0 0 0 12px transparent;
    }
}

.home-filters
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* MudToggleGroup is a full-width grid by default; as a filter it takes only the width of its items. */
.home-toggle.mud-toggle-group
{
    display: inline-grid;
    width: auto;
    background-color: var(--mud-palette-surface);
}

    .home-toggle.mud-toggle-group .mud-toggle-item
    {
        padding-inline: 14px;
    }

.home-filters-read
{
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

.home-stat
{
    --home-accent: var(--mud-palette-primary);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    padding: 20px;
    border-radius: var(--mud-default-borderradius);
    border-top: 3px solid var(--home-accent);
    background-color: var(--mud-palette-surface);
    box-shadow: var(--mud-elevation-25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .home-stat:hover
    {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px color-mix(in srgb, var(--home-accent) 16%, transparent);
    }

.home-stat-secondary
{
    --home-accent: var(--mud-palette-secondary);
}

.home-stat-success
{
    --home-accent: var(--mud-palette-success);
}

.home-stat-info
{
    --home-accent: var(--mud-palette-info);
}

.home-stat-head
{
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-stat-icon.mud-icon-root
{
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    color: var(--home-accent);
    background-color: color-mix(in srgb, var(--home-accent) 12%, transparent);
}

.home-stat-label
{
    font-family: var(--mud-typography-h1-family);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mud-palette-text-secondary);
}

.home-stat-value
{
    margin: 14px 0 0;
    font-family: var(--mud-typography-h1-family);
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--mud-palette-text-primary);
}

.home-stat-caption
{
    margin: 6px 0 0;
    min-height: 2.6em;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--mud-palette-text-secondary);
}

.home-stat-visual
{
    margin-top: auto;
    padding-top: 12px;
}

.home-sparkbars
{
    display: block;
    width: 100%;
    height: 32px;
    fill: var(--home-accent);
}

.home-sparkbars-empty
{
    fill: color-mix(in srgb, var(--home-accent) 22%, transparent);
}

.home-streak
{
    display: flex;
    align-items: center;
    gap: 5px;
    height: 32px;
}

.home-streak-dot
{
    flex: 1 1 0;
    max-width: 20px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--mud-palette-lines-inputs);
}

.home-streak-succeeded
{
    background-color: var(--mud-palette-success);
}

.home-streak-failed
{
    background-color: var(--mud-palette-error);
}

.home-panel
{
    min-width: 0;
}

.home-panel-head
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mud-typography.home-panel-caption
{
    margin: 4px 0 12px;
    color: var(--mud-palette-text-secondary);
}

.home-chart-clickable .apexcharts-bar-area,
.home-chart-clickable .apexcharts-marker
{
    cursor: pointer;
}

.home-run-list
{
    margin: 0;
    padding: 0;
    list-style: none;
}

    .home-run-list li + li
    {
        border-top: 1px solid var(--mud-palette-lines-default);
    }

.home-run
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: var(--mud-default-borderradius);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

    .home-run:hover,
    .home-run:focus-visible
    {
        background-color: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
    }

.home-run-icon.mud-icon-root
{
    flex-shrink: 0;
}

.home-run-body
{
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.home-run-title
{
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    overflow-wrap: anywhere;
}

.home-run-details,
.home-run-time
{
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

.home-run-details
{
    overflow-wrap: anywhere;
}

.home-run-time
{
    flex-shrink: 0;
    white-space: nowrap;
}

.home-all-good
{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--mud-default-borderradius);
    background-color: color-mix(in srgb, var(--mud-palette-success) 8%, transparent);
}

.home-launchers
{
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-launcher
{
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-launcher-body
{
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.home-launcher-name
{
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-launcher-details
{
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}

/* A button centers its content by default, so the card states its own alignment. */
.home-pad
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background-color: var(--mud-palette-surface);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .home-pad:hover,
    .home-pad:focus-visible
    {
        border-color: var(--mud-palette-primary);
        box-shadow: 0 8px 20px color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
        transform: translateY(-2px);
    }

.home-pad-selected
{
    border-color: var(--mud-palette-primary);
    background-color: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
    box-shadow: inset 0 0 0 1px var(--mud-palette-primary);
}

.home-pad-head
{
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-pad-icon.mud-icon-root
{
    flex-shrink: 0;
    color: var(--mud-palette-primary);
}

.home-pad-name
{
    font-family: var(--mud-typography-h1-family);
    font-weight: 700;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.home-pad-tag
{
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: var(--mud-palette-background-gray);
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.home-pad-figures
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-pad-figure
{
    display: flex;
    flex-direction: column;
}

.home-pad-number
{
    font-family: var(--mud-typography-h1-family);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.home-pad-label
{
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.home-pad-meter
{
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background-color: color-mix(in srgb, var(--mud-palette-success) 18%, transparent);
}

.home-pad-meter-fill
{
    display: block;
    height: 100%;
    border-radius: 3px;
    background-color: var(--mud-palette-success);
}

.home-pad-note
{
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
    overflow-wrap: anywhere;
}

.home-empty
{
    text-align: center;
}

.home-empty-icon.mud-icon-root
{
    font-size: 3.5rem;
}

@media (max-width: 959.98px)
{
    .home-hero
    {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 28px 24px;
    }

    .home-hero-status
    {
        flex-basis: auto;
    }

    .home-hero-title
    {
        font-size: 2rem;
    }

    .home-filters-read
    {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce)
{
    .home-pulse
    {
        animation: none;
    }

    .home-stat,
    .home-pad
    {
        transition: none;
    }

        .home-stat:hover,
        .home-pad:hover,
        .home-pad:focus-visible
        {
            transform: none;
        }
}
