html, body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    margin: 0;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    margin: 1.5rem 0 1rem;
}

h1 {
    font-size: 1.875rem;
    margin-top: 0;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.125rem;
}

p, dl, ul {
    margin-bottom: 1rem;
}

a {
    color: #1d4ed8;
}

:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.user-menu, .form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-navigation {
    padding: 1rem;
}

.app-navigation a {
    color: #e2e8f0;
}

.app-navigation a.active, .app-navigation a:hover {
    background: #1e293b;
    color: #ffffff;
}

.navigation-heading {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

.form-actions {
    margin: 1rem 0;
}

.editor-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    margin-bottom: 1rem;
}

.strategy-editor {
    display: block;
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.validation-message, .error-heading {
    color: #b91c1c;
}

.desktop-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid #cbd5e1;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.desktop-tab-button {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    color: #0f172a;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
}

.desktop-tab-button.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.desktop-tab-panel {
    min-height: 12rem;
}

.tab-loading {
    align-items: center;
    color: #1e293b;
    display: flex;
    font-weight: 600;
    gap: 0.75rem;
    padding: 2rem 0;
}

.tab-loading-spinner {
    animation: tab-loading-spin 0.7s linear infinite;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    border-top-color: #1d4ed8;
    display: inline-block;
    height: 1.25rem;
    width: 1.25rem;
}

@keyframes tab-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.desktop-summary-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    margin-bottom: 1.5rem;
}

.desktop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    color: #000000;
    color-scheme: light;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.desktop-card h1,
.desktop-card h2,
.desktop-card h3,
.desktop-card p,
.desktop-card label,
.desktop-card span,
.desktop-card fieldset,
.desktop-card th,
.desktop-card td {
    color: #000000;
}

.desktop-card input,
.desktop-card select,
.desktop-card textarea,
.desktop-card option {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #000000 !important;
}

.desktop-card input::placeholder,
.desktop-card textarea::placeholder {
    color: #475569 !important;
}

.desktop-card .num-positive,
.desktop-card input.num-positive,
.desktop-card span.num-positive,
.desktop-card td.num-positive,
.desktop-card p.num-positive {
    color: #006400 !important;
    font-weight: 600;
}

.desktop-card .num-negative,
.desktop-card input.num-negative,
.desktop-card span.num-negative,
.desktop-card td.num-negative,
.desktop-card p.num-negative {
    color: #8b0000 !important;
    font-weight: 600;
}

.desktop-card .num-neutral,
.desktop-card input.num-neutral,
.desktop-card span.num-neutral,
.desktop-card td.num-neutral,
.desktop-card p.num-neutral {
    color: #000000 !important;
}

.desktop-card .lock-in-celebration {
    color: #006400 !important;
}

.desktop-card-title {
    color: #000000;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.desktop-pre-line {
    color: #000000;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    white-space: pre-line;
}

.num-positive {
    color: #006400 !important;
    font-weight: 600;
}

.num-negative {
    color: #8b0000 !important;
    font-weight: 600;
}

.num-neutral {
    color: #000000 !important;
}

.strategy-subtabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.strategy-subtab-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    min-width: 16rem;
    max-width: 20rem;
    padding: 0.75rem;
}

.strategy-subtab-card.selected {
    border: 3px solid #1d4ed8;
}

.strategy-subtab-title {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    padding: 0;
    text-align: left;
    width: 100%;
}

.strategy-subtab-title.owned {
    color: #ff8c00;
}

.lock-in-glow {
    border-radius: 0.5rem;
    margin: 0.35rem 0;
    padding: 0.25rem;
}

.lock-in-glow.active {
    animation: lockInPulse 0.9s infinite ease-in-out;
    background: #fff4c2;
    border: 2px solid #ff8c00;
}

@keyframes lockInPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.72;
        transform: scale(1.03);
    }
}

.strategy-card-grid {
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.progress-track {
    background: #e2e8f0;
    border-radius: 0.375rem;
    height: 1.25rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.progress-fill {
    background: #4682b4;
    height: 100%;
    transition: width 0.2s ease;
}

.progress-fill.gold {
    background: #ffd700;
}

.progress-fill.green {
    background: #228b22;
}

.progress-fill.red {
    background: #ff4500;
}

.activation-marker {
    background: #ff8c00;
    bottom: 0;
    position: absolute;
    top: 0;
    width: 3px;
}

.lock-in-celebration {
    color: #228b22;
    font-weight: 700;
    white-space: pre-line;
}

.message-entry-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    white-space: pre-line;
}

.settings-stepper-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.settings-step-button {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    height: 100%;
    padding: 0.75rem;
    text-align: left;
    width: 100%;
}

.settings-step.current .settings-step-button {
    background: #eff6ff;
    border-color: #1d4ed8;
}

.settings-step.complete .settings-step-index {
    background: #1d4ed8;
    color: #ffffff;
}

.settings-step-index {
    align-items: center;
    background: #e2e8f0;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.settings-step-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.settings-step-title {
    font-weight: 700;
}

.settings-step-summary,
.settings-step-position {
    color: #334155;
    font-size: 0.9rem;
}

.settings-step-panel {
    margin-top: 0.5rem;
}

.settings-step-panel fieldset {
    border: 0;
    margin: 0;
    min-inline-size: 0;
    padding: 0;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEz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M3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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