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+PHBhdGggZD0iTTI26My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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-drawer {
    border-right: 1px solid rgba(128, 128, 128, 0.15);
}

.mud-drawer .mud-navmenu {
    padding: 0.75rem 0.5rem;
}

.mud-drawer .mud-nav-link {
    min-height: 42px;
    margin: 0.15rem 0;
    padding-inline: 0.85rem;
    border-radius: 8px;
    color: var(--mud-palette-drawer-text);
}

.mud-drawer .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.mud-drawer .mud-nav-link.active {
    background-color: rgba(107, 142, 35, 0.18);
    color: var(--mud-palette-drawer-text) !important;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: inset 3px 0 0 var(--mud-palette-primary);
}

.mud-drawer .mud-nav-link.active .mud-nav-link-text {
    color: var(--mud-palette-drawer-text) !important;
}

.mud-drawer .mud-nav-group > .mud-nav-link {
    font-weight: 600;
}

.save-button-container {
    position: fixed;
    top: calc(64px + 1rem);
    right: 1.5rem;
    display: flex;
    justify-content: flex-end;
    z-index: 1100;
}

@media (max-width: 959.98px) {
    .save-button-container {
        top: calc(64px + 0.75rem);
        right: 1rem;
        left: 1rem;
    }

    .save-button-container .mud-button-root {
        width: 100%;
    }
}

.incident-details-action-bar {
    position: sticky;
    top: calc(64px + 1rem);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
}

.incident-details-action-bar-buttons {
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 959.98px) {
    .incident-details-action-bar {
        top: calc(64px + 0.75rem);
    }

    .incident-details-action-bar .mud-stack {
        width: 100%;
    }

    .incident-details-action-bar-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .incident-details-action-bar-buttons .mud-button-root {
        flex: 1 1 100%;
    }
}

.main-content-shell {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.app-brand-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.app-brand-link:hover {
    color: inherit;
    text-decoration: none;
}

.landing-page {
    max-width: 1100px;
    margin: 0 auto;
}

.landing-hero {
    padding: 2rem;
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(183, 243, 77, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(107, 142, 35, 0.08), transparent 38%),
        linear-gradient(135deg, rgba(107, 142, 35, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.05);
}

.landing-hero-title {
    margin-top: 1rem;
    max-width: 14ch;
    line-height: 1.05;
}

.landing-hero-copy {
    max-width: 60ch;
    margin-top: 1rem;
    font-size: 1.05rem;
}

.landing-founder-note {
    max-width: 58ch;
    margin-top: 0.85rem;
    color: var(--mud-palette-text-secondary);
    font-style: italic;
}

.landing-badge-row {
    margin-top: 1rem;
}

.landing-alert {
    margin-top: 1.25rem;
}

.landing-preview {
    padding: 1rem;
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}

.landing-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.landing-preview-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: rgba(107, 142, 35, 0.5);
}

.landing-preview-label {
    margin-left: auto;
}

.landing-preview-summary {
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.16), rgba(183, 243, 77, 0.08));
}

.landing-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.5);
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.landing-cta-row-centered {
    justify-content: center;
}

.landing-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 999px;
    background-color: transparent;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.landing-link-button:hover {
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.08);
    color: inherit;
    text-decoration: none;
}

.landing-link-button-primary {
    background-color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text, #17210A);
}

.landing-link-button-primary:hover {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text, #17210A);
}

.landing-link-button-secondary {
    border-color: rgba(107, 142, 35, 0.45);
    background-color: rgba(107, 142, 35, 0.08);
}

.landing-feature-grid {
    margin-top: 0.25rem;
}

.landing-feature-card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(107, 142, 35, 0.03));
}

.landing-story-card {
    padding: 2rem;
    border: 1px solid rgba(128, 128, 128, 0.16);
    border-radius: 20px;
    background:
        radial-gradient(circle at bottom left, rgba(107, 142, 35, 0.07), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(107, 142, 35, 0.04));
}

.landing-section-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
}

.landing-section-heading {
    margin-top: 0.5rem;
    max-width: 15ch;
}

.landing-story-copy {
    margin-top: 1rem;
    max-width: 58ch;
}

.landing-proof-grid {
    height: 100%;
}

.landing-proof-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.62);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-cta-panel {
    padding: 2rem;
    border: 1px solid rgba(128, 128, 128, 0.18);
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.08), rgba(183, 243, 77, 0.05));
}

.landing-cta-copy {
    max-width: 60ch;
    margin: 1rem auto 0;
    text-align: center;
}

.landing-template-badge-row {
    margin-top: 0.5rem;
}

.feature-preview-banner {
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(183, 243, 77, 0.12), transparent 35%),
        linear-gradient(135deg, rgba(107, 142, 35, 0.10), rgba(255, 255, 255, 0.03));
}

.home-dashboard-card {
    height: 100%;
}

.home-dashboard-panel {
    height: 100%;
}

.home-dashboard-resume-card {
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.12), rgba(183, 243, 77, 0.06));
}

.home-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-dashboard-list-item {
    border-radius: 14px;
}

.incidents-saved-view-input {
    min-width: min(100%, 280px);
}

html.theme-dark .landing-hero {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(183, 243, 77, 0.14), transparent 32%),
        radial-gradient(circle at bottom left, rgba(183, 243, 77, 0.06), transparent 38%),
        linear-gradient(135deg, rgba(183, 243, 77, 0.06), rgba(255, 255, 255, 0.02));
}

html.theme-dark .home-dashboard-resume-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(183, 243, 77, 0.14), rgba(255, 255, 255, 0.03));
}

html.theme-dark .landing-preview {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(17, 24, 39, 0.76);
}

html.theme-dark .landing-preview-summary {
    background: linear-gradient(135deg, rgba(183, 243, 77, 0.14), rgba(255, 255, 255, 0.03));
}

html.theme-dark .landing-preview-item {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
}

html.theme-dark .landing-link-button:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .landing-link-button-secondary {
    border-color: rgba(183, 243, 77, 0.35);
    background-color: rgba(183, 243, 77, 0.08);
}

html.theme-dark .landing-feature-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(183, 243, 77, 0.04));
}

html.theme-dark .landing-story-card {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at bottom left, rgba(183, 243, 77, 0.1), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(183, 243, 77, 0.06));
}

html.theme-dark .landing-proof-card {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.03);
}

html.theme-dark .landing-cta-panel {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(183, 243, 77, 0.12), rgba(255, 255, 255, 0.02));
}

@media (max-width: 959.98px) {
    .landing-hero {
        padding: 1.5rem;
    }

    .landing-hero-title {
        max-width: none;
    }

    .landing-section-heading {
        max-width: none;
    }

    .landing-cta-row {
        flex-direction: column;
    }

    .landing-link-button {
        width: 100%;
    }

    .landing-preview-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

.top-user-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.top-user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.24);
    color: inherit;
    text-decoration: none;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .top-user-link:hover {
        background-color: rgba(255, 255, 255, 0.36);
        color: inherit;
        text-decoration: none;
    }

.top-user-logout-form {
    margin: 0;
}

.top-user-link-button {
    appearance: none;
    -webkit-appearance: none;
}

html.theme-dark .top-user-link {
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.08);
}

    html.theme-dark .top-user-link:hover {
        background-color: rgba(255, 255, 255, 0.16);
    }

.theme-toggle {
    margin-left: 0.25rem;
    flex: 0 0 auto;
}

.theme-toggle-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.theme-toggle-static:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.theme-toggle-static .mud-icon-root {
    font-size: 1.5rem;
}

.account-manage-shell {
    padding-bottom: 1rem;
}

.account-manage-nav-panel {
    position: sticky;
    top: 1rem;
}

.account-manage-nav-title {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-manage-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.account-manage-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: inherit;
    text-decoration: none;
}

.account-manage-nav-link.active {
    background-color: rgba(107, 142, 35, 0.18);
    color: var(--mud-palette-text-primary);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--mud-palette-primary);
}

.account-manage-content,
.account-manage-page {
    min-width: 0;
}

.account-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-input-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.account-text-input {
    width: 100%;
    min-height: 56px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.04);
    color: inherit;
}

select.account-text-input {
    appearance: auto;
}

.account-text-input option {
    background-color: #1f1f1f;
    color: #f5f5f5;
}

.account-text-input:focus {
    outline: none;
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

.knowledge-editor-shell {
    min-height: 20rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 8px;
    background-color: var(--mud-palette-surface);
    position: relative;
}

.knowledge-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.knowledge-editor-toolbar-button,
.knowledge-editor-toolbar-select {
    min-height: 2.25rem;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 8px;
    background-color: var(--mud-palette-surface);
    color: inherit;
}

.knowledge-editor-toolbar-button,
.knowledge-editor-toolbar-select {
    padding: 0.4rem 0.8rem;
}

.knowledge-editor-toolbar-button {
    cursor: pointer;
}

.knowledge-editor-toolbar-button:hover,
.knowledge-editor-toolbar-select:hover {
    border-color: var(--mud-palette-primary);
}

.knowledge-editor-toolbar-button:focus,
.knowledge-editor-toolbar-select:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

.knowledge-editor {
    min-height: 18rem;
    outline: none;
    white-space: normal;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.knowledge-editor:empty::before {
    content: "Type article content here. Paste or drag screenshots into this editor.";
    color: var(--mud-palette-text-secondary);
}

.knowledge-editor.knowledge-editor-dragover {
    background-color: rgba(89, 74, 226, 0.08);
    box-shadow: inset 0 0 0 1px rgba(89, 74, 226, 0.35);
}

.knowledge-editor img,
.knowledge-article-rendered-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.75rem 0;
    border-radius: 8px;
}

.knowledge-editor img.knowledge-editor-image-draggable {
    cursor: grab;
}

.knowledge-editor img.knowledge-editor-image-draggable:active {
    cursor: grabbing;
}

.knowledge-editor img.knowledge-editor-image-selected {
    box-shadow: 0 0 0 2px rgba(89, 74, 226, 0.65);
}

.knowledge-editor-image-resize-overlay {
    position: absolute;
    border: 2px solid rgba(89, 74, 226, 0.65);
    border-radius: 8px;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 2;
}

.knowledge-editor-image-resize-handle {
    position: absolute;
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid var(--mud-palette-primary);
    border-radius: 50%;
    background-color: var(--mud-palette-surface);
    pointer-events: auto;
    padding: 0;
}

.knowledge-editor-image-resize-handle-nw {
    top: -0.45rem;
    left: -0.45rem;
    cursor: nwse-resize;
}

.knowledge-editor-image-resize-handle-ne {
    top: -0.45rem;
    right: -0.45rem;
    cursor: nesw-resize;
}

.knowledge-editor-image-resize-handle-sw {
    bottom: -0.45rem;
    left: -0.45rem;
    cursor: nesw-resize;
}

.knowledge-editor-image-resize-handle-se {
    bottom: -0.45rem;
    right: -0.45rem;
    cursor: nwse-resize;
}

.knowledge-editor-image-dragging {
    opacity: 0.45;
}

.knowledge-editor-drop-marker {
    display: block;
    height: 0;
    margin: 0.35rem 0;
    border-top: 2px solid var(--mud-palette-primary);
}

.knowledge-editor-image-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.knowledge-editor-image-toolbar-label {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

.knowledge-editor-image-toolbar button {
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    background-color: transparent;
    color: inherit;
    cursor: pointer;
}

.knowledge-editor-image-toolbar button:hover {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.knowledge-article-rendered-content {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 8px;
    background-color: var(--mud-palette-surface);
}

.knowledge-article-rendered-content p:last-child {
    margin-bottom: 0;
}

.account-text-input:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.account-submit-button {
    width: 100%;
}

.account-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-security-actions {
    flex-wrap: wrap;
}

html.theme-light .account-text-input {
    border-color: rgba(0, 0, 0, 0.14);
    background-color: rgba(0, 0, 0, 0.02);
}

html.theme-light .account-text-input option {
    background-color: #ffffff;
    color: #1f1f1f;
}

html.theme-light .account-manage-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

@media (max-width: 959.98px) {
    .account-manage-nav-panel {
        position: static;
    }
}

.account-status-alert {
    margin-bottom: 0;
}

.account-auth-page {
    min-width: 0;
}

.account-step-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-step-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
}

.account-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    font-weight: 700;
}

.account-auth-key {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
    word-break: break-word;
}

.account-qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.account-qr-placeholder > div {
    min-width: 160px;
    min-height: 160px;
}

.account-auth-qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-auth-qr-code svg {
    width: min(100%, 220px);
    height: auto;
    padding: 0.75rem;
    border-radius: 12px;
    background-color: #ffffff;
}

.account-recovery-code {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    word-break: break-word;
}

html.theme-light .account-auth-key,
html.theme-light .account-qr-placeholder,
html.theme-light .account-recovery-code {
    border-color: rgba(0, 0, 0, 0.12);
}

html.theme-light .account-auth-key,
html.theme-light .account-qr-placeholder {
    background-color: rgba(0, 0, 0, 0.02);
}

html.theme-light .account-recovery-code {
    background-color: rgba(0, 0, 0, 0.03);
}

.auth-page-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
}

.auth-page-shell-narrow {
    max-width: 640px;
}

.auth-page-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
    gap: 1.5rem;
    align-items: stretch;
}

.auth-page-brand-panel,
.auth-page-form-panel {
    border-radius: 24px;
    padding: 2rem;
}

.auth-page-brand-panel {
    border: 1px solid rgba(107, 142, 35, 0.18);
    background:
        radial-gradient(circle at top right, rgba(183, 243, 77, 0.18), transparent 36%),
        linear-gradient(160deg, rgba(107, 142, 35, 0.12), rgba(143, 174, 60, 0.05));
}

.auth-page-form-panel {
    background-color: var(--mud-palette-surface);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(128, 128, 128, 0.14);
}

.auth-page-confirmation-panel {
    text-align: left;
}

.auth-page-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background-color: rgba(107, 142, 35, 0.18);
    color: var(--mud-palette-text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-page-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
}

.auth-page-subtitle {
    margin: 0;
    color: var(--mud-palette-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-page-form-header {
    margin-bottom: 1.5rem;
}

.auth-page-form-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
}

.auth-page-form-header p {
    margin: 0;
    color: var(--mud-palette-text-secondary);
}

.auth-page-support {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.75rem;
}

.auth-page-support-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.auth-page-support-item strong {
    display: block;
    margin-bottom: 0.2rem;
}

.auth-page-support-item p {
    margin: 0;
    color: var(--mud-palette-text-secondary);
    line-height: 1.5;
}

.auth-page-support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-page-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-page-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-page-input {
    width: 100%;
    min-height: 56px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(128, 128, 128, 0.28);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-page-input:focus {
    outline: none;
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
}

.auth-page-button {
    width: 100%;
    min-height: 52px;
    margin-top: 0.5rem;
    border: none;
    border-radius: 12px;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.auth-page-button:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.auth-page-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.35);
}

.auth-page-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.auth-page-links a {
    color: var(--mud-palette-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-page-links a:hover {
    text-decoration: underline;
}

html.theme-light .auth-page-form-panel {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

html.theme-light .auth-page-input {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.14);
}

@media (max-width: 959.98px) {
    .auth-page-grid {
        grid-template-columns: 1fr;
    }

    .auth-page-brand-panel,
    .auth-page-form-panel {
        padding: 1.5rem;
    }

    .auth-page-shell {
        padding-top: 0.75rem;
    }
}

.service-calendar-day-card,
.service-calendar-block {
    border-left: 4px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-calendar-day-card {
    min-height: 120px;
}

.service-calendar-block {
    background-color: rgba(255, 255, 255, 0.03);
}

.service-calendar-day-card-empty {
    border-left-color: rgba(148, 163, 184, 0.8);
    background-color: rgba(148, 163, 184, 0.10);
}

.service-calendar-block-default {
    border-left-color: rgba(148, 163, 184, 0.8);
    background-color: rgba(148, 163, 184, 0.10);
}

.service-calendar-block-info {
    border-left-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.12);
}

.service-calendar-block-primary {
    border-left-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.12);
}

.service-calendar-block-warning {
    border-left-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.14);
}

.service-calendar-block-success {
    border-left-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.12);
}

.service-calendar-block-secondary {
    border-left-color: #94a3b8;
    background-color: rgba(148, 163, 184, 0.14);
}

html.theme-light .service-calendar-block,
html.theme-light .service-calendar-day-card {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}