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;
}
.mud-appbar-dense ~ .mud-main-content {
    padding-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 4 + 16px);
}

html,
body {
    overflow-x: clip;
}

.mud-main-content .mud-typography:not(.mud-table-cell *),
.mud-main-content .mud-link:not(.mud-table-cell *),
.mud-main-content .mud-expand-panel-text,
.mud-main-content .mud-alert-message {
    overflow-wrap: anywhere;
}

.mud-main-content .mud-switch .mud-typography {
    overflow-wrap: normal;
}

.mud-main-content .mud-chip {
    max-width: 100%;
}

.mud-main-content .mud-chip .mud-chip-content {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .mud-xs-table .mud-table-root {
        table-layout: fixed;
    }

    .mud-xs-table .mud-table-cell {
        overflow-wrap: anywhere;
    }

    .mud-xs-table .mud-table-cell.cell-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .mud-xs-table .mud-table-cell-hide {
        display: none;
    }
}

@media (max-width: 960px) {
    .mud-sm-table .mud-table-root {
        table-layout: fixed;
    }

    .mud-sm-table .mud-table-cell {
        overflow-wrap: anywhere;
    }

    .mud-sm-table .mud-table-cell.cell-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .mud-sm-table .mud-table-cell-hide {
        display: none;
    }
}

@media (max-width: 1280px) {
    .mud-md-table .mud-table-root {
        table-layout: fixed;
    }

    .mud-md-table .mud-table-cell {
        overflow-wrap: anywhere;
    }

    .mud-md-table .mud-table-cell.cell-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .mud-md-table .mud-table-cell-hide {
        display: none;
    }
}

.mud-nav-link,
.mud-input-helper-text {
    font-weight: 500;
}

.mud-input-label-shrink,
:is(.mud-shrink, .mud-input:focus-within, .mud-input:has(:-webkit-autofill)) ~ label.mud-input-label.mud-input-label-inputcontrol {
    transform: translate(0, 1.5px) scale(.85);
    max-width: calc(100% / .85);
}

:is(.mud-shrink, .mud-input:focus-within, .mud-input:has(:-webkit-autofill)) ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(14px, -7px) scale(.85);
    max-width: calc((100% - 14px) / .85);
}

.mud-input.mud-input-outlined > .mud-input-outlined-border legend {
    font-size: calc(var(--mud-typography-subtitle1-size) * .85);
}

.mud-input-helper-text,
.mud-tooltip,
.mud-picker-calendar .mud-day,
.mud-button-text-size-small,
.mud-button-outlined-size-small,
.mud-button-filled-size-small {
    font-size: 1rem;
}

.mud-chip.mud-chip-size-small {
    font-size: 1rem;
    height: 28px;
    border-radius: 14px;
}

.mud-chip.mud-chip-size-medium {
    font-size: var(--mud-typography-body2-size);
}

.mud-table-pagination,
.mud-table-pagination-select .mud-input .mud-input-root {
    font-size: var(--mud-typography-body2-size);
}

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    width: min(22rem, calc(100vw - 2rem));
    margin: 20vh auto;
    padding: 2rem 1.5rem;
    border: 1px solid var(--mud-palette-lines-default, var(--portal-line));
    border-radius: 0;
    outline: none;
    background: var(--mud-palette-surface, var(--portal-sheet));
    color: var(--mud-palette-text-primary, var(--portal-ink));
    font-family: "Blender Pro", system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    box-shadow: 0 0 0 1px var(--portal-line);
}

#components-reconnect-modal::backdrop {
    background: var(--portal-backdrop);
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    border-radius: 0;
    padding: 0.4rem 1.5rem;
    background: var(--mud-palette-primary, var(--portal-red));
    color: var(--mud-palette-primary-text, var(--portal-red-text));
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

#components-reconnect-modal button:hover {
    background: var(--mud-palette-primary-darken, var(--portal-red-deep));
}

#components-reconnect-modal button:focus-visible {
    outline: 2px solid var(--mud-palette-text-primary, var(--portal-ink));
    outline-offset: 2px;
}

.components-rejoining-animation {
    position: relative;
    width: 64px;
    height: 64px;
}

.components-rejoining-animation div {
    position: absolute;
    border: 2px solid var(--mud-palette-primary, var(--portal-red));
    border-radius: 50%;
    animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation {
    0%, 4.9% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    5% { top: 32px; left: 32px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 64px; height: 64px; opacity: 0; }
}

#portal-fresh {
    position: fixed;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 0.6rem 0.75rem 0.6rem 1.25rem;
    border: 1px solid var(--mud-palette-lines-default, var(--portal-line));
    background: var(--mud-palette-surface, var(--portal-sheet));
    color: var(--mud-palette-text-primary, var(--portal-ink));
    font-family: "Blender Pro", system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    box-shadow: 0 0 0 1px var(--portal-line);
}

#portal-fresh button {
    border: 0;
    border-radius: 0;
    padding: 0.4rem 1.25rem;
    background: var(--mud-palette-primary, var(--portal-red));
    color: var(--mud-palette-primary-text, var(--portal-red-text));
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

#portal-fresh button:hover {
    background: var(--mud-palette-primary-darken, var(--portal-red-deep));
}

#portal-fresh button:focus-visible {
    outline: 2px solid var(--mud-palette-text-primary, var(--portal-ink));
    outline-offset: 2px;
}

.post-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.post-text {
    overflow-wrap: anywhere;
}

.post-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 6.5rem;
}

.mud-simple-table.report-table table * tr > th,
.mud-simple-table.report-table table * tr > td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.domain-watch .mud-table-cell::before {
    white-space: nowrap;
    padding-right: 12px;
}

html[data-theme=letterhead] {
    color-scheme: light;
    --portal-ground: #f9f5f0;
    --portal-sheet: #fdfbf9;
    --portal-ink: #26201c;
    --portal-line: #d6d0c9;
    --portal-red: #933332;
    --portal-red-deep: #7c2526;
    --portal-red-text: #fcfaf6;
    --portal-backdrop: rgba(38, 32, 28, 0.4);
    background: var(--portal-ground);
}

html[data-theme=arasaka] {
    color-scheme: dark;
    --portal-ground: #3d2a3c;
    --portal-sheet: #1c111e;
    --portal-ink: #f2eee7;
    --portal-line: rgba(255, 255, 255, 0.18);
    --portal-red: #cf2d37;
    --portal-red-deep: #b3222b;
    --portal-red-text: #fcf8f1;
    --portal-backdrop: rgba(28, 17, 30, 0.72);
    --portal-coral: #f69b98;
    --portal-coral-hover: #fec8c5;
    background: var(--portal-ground);
}

:root {
    --corpo-ease: cubic-bezier(0.2, 0, 0, 1);
}

h1, h2, h3, h4, h5, h6,
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6 {
    font-synthesis-weight: none;
}

code, pre, kbd, samp, .mono {
    font-family: Fira Code, ui-monospace, monospace;
    font-weight: 400;
    font-synthesis-weight: none;
    letter-spacing: normal;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.portal-logo {
    display: block;
    height: 26px;
    width: auto;
}

.mud-tab {
    text-transform: none;
}

.mud-tab:has(.mud-badge) {
    padding-inline-end: 32px;
}

.portal-lockup-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1.75rem;
}

.portal-lockup {
    display: block;
    width: min(18rem, 70vw);
    height: auto;
}

html[data-theme=letterhead] .portal-logo,
html[data-theme=letterhead] .portal-lockup {
    filter: brightness(0);
    opacity: 0.86;
}

html[data-theme=letterhead] .portal-bar {
    border-bottom: 1px solid var(--portal-line);
}

:is(.mud-main-content, .portal-signin) .mud-paper:not(.mud-elevation-0):not(.mud-paper-outlined),
.mud-popover-open,
.mud-dialog {
    box-shadow: 0 0 0 1px var(--portal-line);
}

html .mud-button-filled,
html .mud-button-filled:hover,
html .mud-button-filled:active,
html .mud-button-filled:focus-visible {
    box-shadow: none;
}

.mud-button-filled-primary {
    position: relative;
    overflow: hidden;
}

.mud-button-filled-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / 0.22) 50%, transparent 65%);
    transform: translate3d(-110%, 0, 0);
    transition: transform 620ms var(--corpo-ease);
}

.mud-button-filled-primary:hover::before {
    transform: translate3d(110%, 0, 0);
}

html[data-theme=arasaka] :is(.mud-primary-text, .mud-button-text-primary, .mud-button-outlined-primary, .mud-tab.mud-tab-active, .mud-nav-link.active, .mud-chip-text.mud-chip-color-primary, .mud-chip-outlined.mud-chip-color-primary) {
    --mud-palette-primary: var(--portal-coral);
    color: var(--portal-coral);
}

html[data-theme=arasaka] .mud-tab .mud-badge {
    --mud-palette-primary: var(--portal-red);
}

html[data-theme=arasaka] :is(.mud-button-text-primary, a.mud-primary-text, .mud-link.mud-primary-text):hover {
    --mud-palette-primary: var(--portal-coral-hover);
    color: var(--portal-coral-hover);
}

html[data-theme=arasaka] .mud-main-content {
    background-image:
        repeating-linear-gradient(to right, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 96px),
        repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 96px);
}

@media (max-width: 40rem) {
    html[data-theme=arasaka] .mud-main-content {
        background-image:
            repeating-linear-gradient(to right, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 48px),
            repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 48px);
    }
}

html[data-theme=arasaka] .portal-bar {
    overflow: visible;
}

html[data-theme=arasaka] .portal-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    height: 25px;
    pointer-events: none;
    background: url(brand/seam-glow.svg) repeat-x top, url(brand/seam-bar.svg) repeat-x top;
}

@media (max-width: 1023px) {
    html[data-theme=arasaka] .portal-bar::after {
        background: url(brand/seam-glow-m.svg) repeat-x top, url(brand/seam-bar-m.svg) repeat-x top;
    }
}

html[data-theme=arasaka] .mud-appbar-dense ~ .mud-main-content {
    padding-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 4 + 28px);
}

html[data-theme=arasaka] .mud-button-filled {
    --cut: 9px;
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

html[data-theme=arasaka] :is(.mud-main-content, .portal-signin) .mud-paper:not(.mud-elevation-0):not(.mud-paper-outlined):not(.mud-table):not(.mud-data-grid):not(.mud-alert) {
    --cut: 12px;
    position: relative;
    isolation: isolate;
    box-shadow: none;
    background-color: var(--portal-line);
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

html[data-theme=arasaka] :is(.mud-main-content, .portal-signin) .mud-paper:not(.mud-elevation-0):not(.mud-paper-outlined):not(.mud-table):not(.mud-data-grid):not(.mud-alert)::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    pointer-events: none;
    background-color: var(--mud-palette-surface);
    clip-path: inherit;
}

html[data-theme=arasaka] :is(.mud-main-content, .portal-signin) .mud-paper:not(.mud-elevation-0):not(.mud-paper-outlined):not(.mud-table):not(.mud-data-grid):not(.mud-alert)::after {
    content: "";
    position: absolute;
    top: 13px;
    right: 13px;
    width: 10px;
    height: 10px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    opacity: 0.22;
    pointer-events: none;
}

@media (max-width: 600px) {
    html[data-theme=arasaka] :is(.mud-main-content, .portal-signin) .mud-paper:not(.mud-elevation-0):not(.mud-paper-outlined):not(.mud-table):not(.mud-data-grid):not(.mud-alert)::after {
        top: 12px;
        right: 12px;
        width: 8px;
        height: 8px;
    }
}

.striped-suggestions .mud-list-item:nth-child(even of .mud-list-item):not(:hover, :focus, :active, .mud-selected-item) {
    background-color: var(--mud-palette-table-striped);
}
