h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ------------------------------------------------------------------ */
/* DesktopShare                                                        */
/* ------------------------------------------------------------------ */

html, body {
    scroll-behavior: smooth;
}

.ds-appbar {
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.ds-brand-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ds-brand:hover {
    opacity: 0.85;
}

.ds-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ds-footer {
    margin-top: auto;
    padding: 32px 0 40px 0;
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* --- Hero --------------------------------------------------------- */

.ds-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px 0;
}

.ds-hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 620px;
    background: radial-gradient(60% 60% at 20% 30%, rgba(124, 124, 240, 0.28), transparent 70%),
                radial-gradient(50% 50% at 85% 15%, rgba(42, 212, 230, 0.22), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ds-hero > * {
    position: relative;
    z-index: 1;
}

.ds-hero-title {
    font-size: clamp(2.25rem, 5.2vw, 3.75rem);
    line-height: 1.08;
}

.ds-gradient-text {
    background: linear-gradient(100deg, var(--mud-palette-primary) 10%, var(--mud-palette-secondary) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ds-hero-image {
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    border: 1px solid var(--mud-palette-lines-default);
    width: 100%;
    height: auto;
    display: block;
}

.ds-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mud-palette-primary);
}

/* --- Section scaffolding ------------------------------------------ */

.ds-section {
    padding: 64px 0;
}

.ds-section-alt {
    background: var(--mud-palette-background-gray);
}

.ds-feature-card {
    height: 100%;
    border: 1px solid var(--mud-palette-lines-default);
    overflow: hidden; /* keeps the media wash inside the rounded corners */
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.ds-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

/* The feature art is a transparent icon, so it sits on a soft wash of the brand
   gradient rather than bleeding to the card edge. That keeps it legible in both
   the light and the dark palette. */
.ds-feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: radial-gradient(70% 70% at 50% 40%, rgba(124, 124, 240, 0.16), transparent 72%),
                var(--mud-palette-background-gray);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.ds-feature-image {
    width: 148px;
    height: 148px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.ds-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    color: #fff;
    flex: 0 0 auto;
}

/* --- Share stage (host preview and viewer picture) ----------------- */

.ds-stage {
    position: relative;
    width: 100%;
    background: #05060f;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #05060f;
    display: block;
}

.ds-stage-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 24px;
    background: rgba(5, 6, 15, 0.86);
    color: #eceefb;
}

.ds-stage:fullscreen {
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
}

/* The picture is not interactive: no clicks, no drags, no text selection.
   Belt and braces alongside the receive-only peer connection. */
.ds-stage video {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.ds-live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mud-palette-error);
    margin-right: 7px;
    animation: ds-pulse 1.6s ease-in-out infinite;
}

@keyframes ds-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.82); }
}

/* --- "Start sharing" attention cue --------------------------------- */
/* People arrive on the host console and hunt for the button that actually  */
/* starts the capture, so it announces itself until they press it once.     */

.ds-attention {
    position: relative;
    display: inline-flex;
    border-radius: 10px;
    animation: ds-attention-bob 2.4s ease-in-out infinite;
}

/* An expanding ring behind the button. It must never eat the click that it */
/* is advertising, hence pointer-events.                                    */
.ds-attention::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    border: 2px solid var(--mud-palette-success);
    pointer-events: none;
    opacity: 0;
    animation: ds-attention-ring 2.4s ease-out infinite;
}

@keyframes ds-attention-ring {
    0%        { transform: scale(1);    opacity: 0.85; }
    70%, 100% { transform: scale(1.3);  opacity: 0; }
}

@keyframes ds-attention-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

/* The arrow sitting beside the button, nudging towards it. */
.ds-attention-arrow {
    color: var(--mud-palette-success);
    animation: ds-attention-nudge 1.3s ease-in-out infinite;
}

@keyframes ds-attention-nudge {
    0%, 100% { transform: translateX(-7px); opacity: 0.4; }
    50%      { transform: translateX(2px);  opacity: 1; }
}

/* The pointer on the empty preview, aimed back up at the header. */
.ds-attention-up {
    color: var(--mud-palette-success);
    animation: ds-attention-rise 1.8s ease-in-out infinite;
}

@keyframes ds-attention-rise {
    0%, 100% { transform: translateY(5px);  opacity: 0.45; }
    50%      { transform: translateY(-5px); opacity: 1; }
}

/* --- Link box ----------------------------------------------------- */

.ds-link-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {

    html, body {
        scroll-behavior: auto;
    }

    .ds-live-dot {
        animation: none;
    }

    /* The cue still has to read as a cue without moving, so the ring is left */
    /* sitting statically around the button rather than switched off.        */
    .ds-attention,
    .ds-attention-arrow,
    .ds-attention-up {
        animation: none;
    }

    .ds-attention::before {
        animation: none;
        opacity: 0.85;
    }

    .ds-feature-card:hover {
        transform: none;
    }
}
