:root {
    --dt-sidebar: #153D3A;
    --dt-primary: #1D9E75;
    --dt-primary-hover: #178A64;
    --dt-primary-light: #E1F5EE;
    --dt-accent: #9FE1CB;
    --dt-amber: #EF9F27;
    --dt-amber-hover: #D98D1A;
    --dt-amber-light: #FAEEDA;
    --dt-amber-text: #633806;
    --dt-coral: #D85A30;
    --dt-coral-light: #FAECE7;
    --dt-coral-text: #712B13;
    --dt-bg: #F9F7F2;
    --dt-surface: #FFFFFF;
    --dt-border: #E0DACE;
    --dt-border-strong: #C8C4BC;
    --dt-text: #1C2B29;
    --dt-text-muted: #6B7A78;
    --dt-text-hint: #A0A8A7;
    --dt-font: "DM Sans", system-ui, sans-serif;
}

html, body {
    min-height: 100%;
    font-family: var(--dt-font);
    background: #EDEAE3;
    color: var(--dt-text);
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
}

a, .btn-link {
    color: #0f6075;
}

.btn-primary {
    color: #fff;
    background-color: #0f6075;
    border-color: #0f6075;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(15, 96, 117, 0.28);
}

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: #8a2f31;
    padding: 1rem 1rem 1rem 1.25rem;
    color: white;
}

.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;
}

.hero-card,
.page-card,
.status-panel {
    border-radius: 1.6rem;
    border: 1px solid rgba(16, 44, 58, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 40px rgba(16, 44, 58, 0.06);
}

.hero-card {
    padding: 1.5rem;
    display: grid;
    gap: 1.4rem;
    margin-bottom: 1.5rem;
}

.hero-card__eyebrow,
.section-heading__eyebrow,
.status-panel__eyebrow {
    margin: 0 0 0.4rem;
    color: rgba(16, 44, 58, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.hero-card__title,
.section-heading__title,
.status-panel__title {
    margin: 0;
}

.hero-card__copy,
.page-card__intro,
.status-panel__text,
.inline-alert {
    margin: 0.75rem 0 0;
    color: rgba(16, 44, 58, 0.78);
    line-height: 1.6;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.9rem;
}

.metric-card {
    padding: 1rem;
    border-radius: 1.1rem;
    background: #102c3a;
    color: white;
    display: grid;
    gap: 0.35rem;
}

.metric-card__value {
    font-size: 2rem;
    font-weight: 700;
}

.metric-card__label {
    color: rgba(255, 255, 255, 0.72);
}

.section-grid,
.split-grid {
    display: grid;
    gap: 1rem;
}

.page-card {
    padding: 1.35rem;
}

.page-card--nested {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.stack-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.stack-list__item,
.table-shell__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(16, 44, 58, 0.08);
}

.stack-list__item p,
.table-shell__row p {
    margin: 0.25rem 0 0;
    color: rgba(16, 44, 58, 0.68);
}

.stack-list__note {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(240, 182, 90, 0.12);
}

.table-shell {
    margin-top: 1rem;
}

.table-shell__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(16, 44, 58, 0.72);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.pill--success {
    background: rgba(70, 134, 96, 0.14);
    color: #2e6a45;
}

.pill--neutral {
    background: rgba(16, 44, 58, 0.08);
    color: #102c3a;
}

.status-panel {
    padding: 1.5rem;
    display: grid;
    gap: 0.4rem;
}

.status-panel--error,
.inline-alert--error {
    border-color: rgba(164, 52, 56, 0.18);
    color: #7d2428;
}

.inline-alert--warning {
    background: rgba(240, 182, 90, 0.16);
    color: #7f5610;
}

.inline-alert {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(16, 44, 58, 0.06);
}

.field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stack-list--buttons {
    margin-top: 1rem;
}

.stack-button {
    text-align: left;
    border: 1px solid rgba(16, 44, 58, 0.08);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    background: white;
    display: grid;
    gap: 0.2rem;
}

.stack-button strong {
    font-size: 1rem;
}

.stack-button small {
    color: rgba(16, 44, 58, 0.68);
}

.stack-button--selected {
    border-color: rgba(240, 182, 90, 0.5);
    box-shadow: 0 0 0 3px rgba(240, 182, 90, 0.16);
}

.action-bar {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 900px) {
    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-grid {
        grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    }
}
