:root {
    --font-display: "Instrument Serif", Georgia, serif;
    --font-ui: "Manrope", "Segoe UI", sans-serif;
    --canvas: #f3efe6;
    --canvas-elevated: #f8f4ed;
    --surface: #fcfbf7;
    --surface-strong: #fffefa;
    --surface-muted: #f1ebe1;
    --ink-900: #172127;
    --ink-800: #263238;
    --ink-700: #5d676d;
    --ink-600: #6c7479;
    --ink-500: #7d8589;
    --text-muted: var(--ink-500);
    --primary-700: #1f5b52;
    --primary-600: #2c6d63;
    --primary-500: #5f8f86;
    --accent-clay: #b86a43;
    --accent-brass: #c49b48;
    --accent-rose: #a76a63;
    --success: #3e765d;
    --warning: #9a6a2f;
    --danger: #9f4a39;
    --info: #2f6070;
    --border-soft: rgba(217, 208, 194, 0.82);
    --border-strong: rgba(88, 109, 98, 0.18);
    --shadow-soft: 0 1px 2px rgba(23, 33, 39, 0.035), 0 16px 34px rgba(23, 33, 39, 0.06);
    --shadow-raised: 0 2px 5px rgba(23, 33, 39, 0.045), 0 22px 48px rgba(23, 33, 39, 0.085);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --text-caption: 0.8125rem;
    --text-body: 1rem;
    --text-h6: 1.125rem;
    --text-h5: 1.25rem;
    --text-h4: 1.5rem;
    --text-h3: clamp(1.75rem, 2.4vw, 2rem);
    --text-h2: 2.5rem;
    --text-h1: clamp(3.375rem, 6vw, 4.375rem);
    --page-max: 1460px;
    --bs-body-font-family: var(--font-ui);
    --bs-body-color: var(--ink-900);
    --bs-body-bg: transparent;
    --bs-primary: var(--primary-700);
    --bs-primary-rgb: 31, 91, 82;
    --bs-secondary: #6c757b;
    --bs-secondary-rgb: 108, 117, 123;
    --bs-danger: var(--danger);
    --bs-danger-rgb: 159, 74, 57;
    --bs-warning: var(--warning);
    --bs-warning-rgb: 154, 106, 47;
    --bs-success: var(--success);
    --bs-success-rgb: 62, 118, 93;
    --bs-border-color: var(--border-soft);
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-lg: var(--radius-md);
    --bs-border-radius-xl: var(--radius-lg);
    --bs-link-color: var(--primary-700);
    --bs-link-hover-color: var(--primary-600);
}

html,
body {
    min-height: 100%;
    font-family: var(--font-ui);
    color: var(--ink-900);
    background: linear-gradient(180deg, #f8f5ef 0%, #f3eee6 100%);
}

body {
    min-height: 100vh;
    margin: 0;
    position: relative;
    color: var(--ink-900);
}

body::before,
body::after {
    display: none;
}

body::before {
    content: none;
}

body::after {
    content: none;
}

#app,
.app-layout {
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

h1,
.display-4,
.display-5,
.display-6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink-900);
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-ui);
    font-weight: 800;
    letter-spacing: 0;
    color: var(--ink-900);
}

h1 {
    font-size: var(--text-h1);
    line-height: 0.96;
}

h2 {
    font-size: var(--text-h2);
    line-height: 1.02;
}

h3 {
    font-size: var(--text-h3);
    line-height: 1.15;
}

h4 {
    font-size: var(--text-h4);
    line-height: 1.12;
}

h5 {
    font-size: var(--text-h5);
    line-height: 1.2;
}

h6 {
    font-size: var(--text-h6);
    line-height: 1.3;
}

h1:focus {
    outline: none;
}

p,
li,
label,
.btn,
.form-control,
.form-select,
.table,
.list-group-item,
.nav-link,
.form-text,
.badge,
small {
    letter-spacing: 0;
}

a,
.btn-link {
    color: var(--primary-700);
    text-decoration-color: rgba(37, 95, 97, 0.25);
}

a:hover,
.btn-link:hover {
    color: #183d3e;
}

.bi {
    display: inline-block;
    width: 1em;
    min-width: 1em;
    line-height: 1;
    text-align: center;
}

::selection {
    background: rgba(75, 138, 143, 0.22);
}

*:focus-visible {
    outline: 3px solid rgba(75, 138, 143, 0.5);
    outline-offset: 3px;
}

.page-shell {
    width: min(100%, var(--page-max));
    margin-inline: auto;
    padding-inline: clamp(1rem, 2vw, 1.5rem);
}

.page-shell--wide {
    width: min(100%, calc(var(--page-max) + var(--space-5)));
}

.content-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.page-hero {
    position: relative;
    display: grid;
    gap: 0.95rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(250, 246, 238, 0.94));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    animation: fade-up 420ms ease both;
}

.page-hero::after {
    display: none;
}

.page-hero__eyebrow {
    margin: 0 0 var(--space-1);
    font-size: var(--text-caption);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-clay);
}

.page-hero__header {
    display: grid;
    gap: var(--space-2);
}

.page-hero__intro {
    min-width: 0;
}

.page-hero__title {
    margin: 0;
    font-size: clamp(2.25rem, 3.8vw, 3.2rem);
    line-height: 1.04;
}

.page-hero__description {
    max-width: 40rem;
    margin: 0.45rem 0 0;
    color: var(--ink-700);
    font-size: 0.97rem;
    line-height: 1.55;
}

.page-hero__support {
    display: grid;
    gap: var(--space-2);
}

.page-hero__actions,
.page-toolbar,
.section-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.page-hero__actions {
    align-self: end;
}

.page-hero.page-hero--compact {
    gap: 0.7rem;
    padding-block: 0.9rem 0.75rem;
}

.page-hero.page-hero--compact .page-hero__title {
    max-width: 18ch;
    font-size: clamp(2.25rem, 3.8vw, 3.5rem);
    line-height: 0.98;
}

.page-hero.page-hero--compact .page-hero__description {
    max-width: 40rem;
    margin-top: 0.55rem;
    line-height: 1.55;
}

.page-hero.page-hero--compact .page-hero__support {
    gap: 0.65rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--space-2);
}

.metric-chip {
    display: grid;
    gap: 0.375rem;
    padding: var(--space-2);
    border: 1px solid rgba(88, 109, 98, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 253, 249, 0.92);
}

.metric-chip__label {
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-500);
}

.metric-chip__value {
    font-size: var(--text-h6);
    font-weight: 800;
    color: var(--ink-900);
}

.surface-card,
.card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.surface-card {
    padding: 1.15rem;
}

.surface-card .surface-card {
    background: rgba(250, 247, 240, 0.72);
    border-color: rgba(217, 208, 194, 0.66);
    box-shadow: none;
}

.surface-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.surface-card__title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.surface-card__subtitle {
    margin: var(--space-1) 0 0;
    color: var(--ink-700);
}

.card {
    overflow: hidden;
}

.card-header,
.card-footer {
    background: transparent;
    border-color: var(--border-soft);
}

.card-header {
    padding: 1.1rem 1.2rem 0;
}

.card-body {
    padding: 1.1rem;
}

.card-footer {
    padding: 0.8rem 1.1rem 1rem;
}

.btn {
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    border-width: 1px;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn-sm {
    min-height: 2.25rem;
    padding: 0.5rem 0.875rem;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:focus-visible,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.22rem rgba(75, 138, 143, 0.25);
}

.btn-primary {
    color: #fff8f2;
    background: var(--primary-700);
    border-color: transparent;
    box-shadow: 0 5px 14px rgba(88, 109, 98, 0.14);
}

.btn-primary:hover {
    color: #fff;
    background: #485c52;
    border-color: #485c52;
}

.btn-check:active + .btn-primary,
.btn-check:checked + .btn-primary,
.btn-primary.active,
.btn-primary:active,
.show > .btn-primary.dropdown-toggle {
    color: #fff8f2;
    background: #184a43;
    border-color: #184a43;
}

.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-check:active + .btn-primary:focus,
.btn-check:checked + .btn-primary:focus,
.btn-primary.active:focus,
.btn-primary:active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    color: #fff;
    background: #485c52;
    border-color: #485c52;
    box-shadow: 0 0 0 0.22rem rgba(31, 91, 82, 0.3);
}

.btn-primary.disabled,
.btn-primary:disabled,
fieldset:disabled .btn-primary {
    color: #637772;
    background: rgba(31, 91, 82, 0.12);
    border-color: rgba(31, 91, 82, 0.18);
    box-shadow: none;
    opacity: 1;
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-warning,
.btn-outline-danger {
    background: rgba(255, 253, 249, 0.92);
}

.btn-outline-secondary {
    color: var(--ink-700);
    border-color: rgba(217, 208, 194, 0.92);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
    color: var(--ink-900);
    border-color: rgba(88, 109, 98, 0.18);
    background: rgba(255, 255, 255, 0.98);
}

.btn-outline-danger {
    color: var(--danger);
    border-color: rgba(155, 75, 68, 0.22);
}

.btn-outline-warning {
    color: var(--warning);
    border-color: rgba(167, 114, 45, 0.22);
}

.btn-link {
    font-weight: 700;
    text-decoration: none;
}

.form-control,
.form-select,
.input-group-text,
.form-control:disabled,
.form-select:disabled {
    border-color: rgba(217, 208, 194, 0.92);
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 249, 0.94);
    color: var(--ink-900);
    min-height: 2.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-control::placeholder {
    color: rgba(112, 128, 124, 0.84);
}

.form-label {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-900);
}

.form-text {
    color: var(--ink-500);
}

textarea.form-control {
    min-height: 8rem;
    resize: vertical;
}

input[type="file"].form-control {
    padding-block: 0.45rem;
}

input[type="file"].form-control::file-selector-button {
    margin-right: 0.85rem;
    padding: 0.5rem 0.85rem;
    border: 0;
    border-radius: 12px;
    background: rgba(88, 109, 98, 0.1);
    color: var(--primary-700);
    font-weight: 700;
}

.input-group > .form-control,
.input-group > .form-select {
    border-radius: 16px 0 0 16px;
}

.input-group > .btn {
    border-radius: 0 16px 16px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--text-caption);
    letter-spacing: 0.02em;
}

.bg-primary-subtle,
.text-bg-primary {
    background-color: rgba(75, 138, 143, 0.15) !important;
    color: var(--primary-700) !important;
}

.text-bg-secondary {
    background-color: rgba(109, 119, 117, 0.14) !important;
    color: var(--ink-700) !important;
}

.text-bg-light {
    background-color: var(--surface-muted) !important;
    color: var(--ink-800) !important;
}

.text-bg-warning {
    background-color: rgba(200, 159, 87, 0.18) !important;
    color: #7d5420 !important;
}

.text-bg-danger {
    background-color: rgba(155, 75, 68, 0.14) !important;
    color: var(--danger) !important;
}

.text-bg-success {
    background-color: rgba(71, 121, 94, 0.14) !important;
    color: var(--success) !important;
}

.app-toast-container {
    top: calc(var(--app-header-bottom, 0px) + 0.75rem);
    z-index: 1080;
    transition: top 160ms ease;
}

.list-group {
    gap: 0.45rem;
}

.list-group-item {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md) !important;
    background: rgba(255, 252, 247, 0.88);
    box-shadow: 0 5px 14px rgba(23, 33, 39, 0.035);
}

.list-group-item:hover,
.list-group-item:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(75, 138, 143, 0.22);
}

.list-group-item.active {
    color: #fff;
    background: var(--primary-700);
    border-color: transparent;
}

.nav-pills,
.segmented-tabs {
    gap: 0.45rem;
}

.nav-pills .nav-link,
.segmented-tabs .nav-link {
    border-radius: var(--radius-sm);
    padding: 0.56rem 0.9rem;
    color: var(--ink-700);
    background: rgba(243, 239, 230, 0.9);
    border: 1px solid rgba(217, 208, 194, 0.92);
    font-weight: 700;
}

.nav-pills .nav-link.active,
.segmented-tabs .nav-link.active {
    color: #fff;
    background: var(--primary-700);
    border-color: transparent;
    box-shadow: 0 5px 14px rgba(88, 109, 98, 0.14);
}

.alert,
.status-panel {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 0.9rem 1rem;
    background: rgba(255, 252, 247, 0.86);
    color: var(--ink-900);
}

.alert-danger,
.status-panel--danger,
.status-panel--error {
    border-color: rgba(155, 75, 68, 0.18);
    background: rgba(155, 75, 68, 0.08);
    color: #6b332d;
}

.alert-warning,
.status-panel--warning {
    border-color: rgba(200, 159, 87, 0.22);
    background: rgba(200, 159, 87, 0.12);
    color: #6d4f22;
}

.alert-info,
.status-panel--info,
.alert-light {
    border-color: rgba(75, 138, 143, 0.18);
    background: rgba(75, 138, 143, 0.08);
    color: #23464c;
}

.alert-success,
.status-panel--success {
    border-color: rgba(71, 121, 94, 0.18);
    background: rgba(71, 121, 94, 0.1);
    color: #2f5842;
}

.status-panel__icon,
.empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.status-panel__title,
.empty-state__title {
    font-weight: 800;
}

.status-panel__text,
.empty-state__text {
    color: inherit;
}

.empty-state {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    padding: 2.25rem;
    border: 1px dashed rgba(217, 208, 194, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 247, 0.72);
}

.empty-state--compact {
    padding: 1.2rem;
}

.pagination {
    gap: 0.6rem;
}

.page-link {
    border: 1px solid rgba(77, 91, 89, 0.12);
    border-radius: 999px !important;
    min-width: 2.8rem;
    text-align: center;
    color: var(--ink-700);
    background: rgba(255, 255, 255, 0.66);
}

.page-item.active .page-link {
    color: #fff;
    background: var(--primary-700);
    border-color: transparent;
}

.table-responsive {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: rgba(255, 252, 247, 0.85);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    color: var(--ink-900);
}

.table > :not(caption) > * > * {
    padding: 1rem 1.1rem;
    border-bottom-color: rgba(77, 91, 89, 0.12);
    background: transparent;
}

.table thead th {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-500);
    background: rgba(239, 230, 217, 0.55);
}

.accordion-item {
    border: 1px solid var(--border-soft);
    border-radius: 18px !important;
    overflow: hidden;
    background: rgba(255, 252, 247, 0.82);
    box-shadow: var(--shadow-soft);
}

.accordion-button {
    font-weight: 700;
    background: rgba(255, 252, 247, 0.9);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-700);
    background: rgba(75, 138, 143, 0.08);
    box-shadow: none;
}

.offcanvas {
    background: rgba(251, 247, 241, 0.98);
    backdrop-filter: blur(16px);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid rgba(71, 121, 94, 0.7);
}

.invalid {
    outline: 1px solid rgba(155, 75, 68, 0.7);
}

.validation-message {
    color: var(--danger);
}

#blazor-error-ui {
    background: rgba(53, 36, 30, 0.95);
    bottom: 1rem;
    box-shadow: var(--shadow-raised);
    color: #fff;
    display: none;
    inset: auto 1rem 1rem 1rem;
    padding: 0.85rem 1rem 0.95rem 1rem;
    position: fixed;
    border-radius: 18px;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    position: absolute;
    right: 0.9rem;
    top: 0.7rem;
}

.blazor-error-boundary {
    border-radius: 18px;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    background:
        url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem,
        rgba(155, 75, 68, 0.95);
}

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

.loading-progress-shell {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100vh;
    margin: 0;
}

.boot-shell {
    padding: clamp(1rem, 3vw, 2.25rem);
}

.boot-shell__page {
    width: min(var(--page-max), 100%);
    margin: 0 auto;
    display: grid;
    gap: var(--space-5);
}

.boot-shell__hero {
    display: grid;
    gap: var(--space-3);
    min-height: clamp(16rem, 30vw, 24rem);
    align-content: center;
    padding: clamp(1.25rem, 4vw, 3rem) 0;
}

.boot-shell__surface {
    display: grid;
    gap: var(--space-3);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: rgba(253, 251, 247, 0.88);
}

.boot-shell__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.boot-shell__card {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgba(217, 208, 194, 0.72);
    border-radius: var(--radius-md);
    background: rgba(255, 252, 247, 0.94);
}

.boot-shell__eyebrow,
.boot-shell__title,
.boot-shell__copy,
.boot-shell__actions span,
.boot-shell__section-kicker,
.boot-shell__section-title,
.boot-shell__section-copy,
.boot-shell__media,
.boot-shell__line {
    border-radius: 0.5rem;
    background: rgba(217, 208, 194, 0.7);
}

.boot-shell__eyebrow {
    width: 8rem;
    height: 0.8rem;
}

.boot-shell__title {
    width: min(28rem, 76vw);
    height: clamp(3rem, 7vw, 4.5rem);
}

.boot-shell__copy {
    width: min(38rem, 82vw);
    height: 1rem;
}

.boot-shell__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.boot-shell__actions span {
    width: 9rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
}

.boot-shell__section-kicker {
    width: 6rem;
    height: 0.75rem;
}

.boot-shell__section-title {
    width: min(20rem, 70vw);
    height: 1.7rem;
}

.boot-shell__section-copy {
    width: min(32rem, 78vw);
    height: 0.95rem;
}

.boot-shell__media {
    aspect-ratio: 16 / 10;
    width: 100%;
}

.boot-shell__line {
    width: 100%;
    height: 0.85rem;
}

.boot-shell__line--strong {
    width: 72%;
    height: 1.05rem;
}

.boot-shell__line--short {
    width: 46%;
}

@media (max-width: 767.98px) {
    .boot-shell__grid {
        grid-template-columns: 1fr;
    }

    .boot-shell__card:nth-child(2) {
        display: none;
    }
}

code {
    color: var(--accent-rose);
}

.section-label {
    margin: 0 0 var(--space-1);
    font-size: var(--text-caption);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-clay);
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: 0.95rem;
}

.section-heading--auth {
    margin-bottom: 0;
}

.section-heading__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.section-heading__title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.section-heading__subtitle {
    margin: var(--space-1) 0 0;
    color: var(--ink-700);
    line-height: 1.55;
}

.split-grid {
    display: grid;
    gap: 1.5rem;
}

.entity-list {
    display: grid;
    gap: var(--space-2);
}

.entity-row {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: rgba(255, 252, 247, 0.88);
    box-shadow: 0 6px 16px rgba(23, 33, 39, 0.035);
}

button.entity-row {
    text-align: left;
}

.entity-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.entity-row__actions .btn {
    min-height: 2.2rem;
    padding: 0.42rem 0.68rem;
}

.entity-row__content {
    min-width: 0;
    flex: 1;
}

.entity-row__title {
    margin: 0;
    font-weight: 800;
    color: var(--ink-900);
}

.entity-row__meta,
.entity-row__summary {
    margin: 0.2rem 0 0;
    color: var(--ink-500);
    line-height: 1.45;
}

.results-grid,
.post-feed-grid {
    display: grid;
    gap: 1rem;
}

.post-feed-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    align-items: stretch;
}

.post-feed-grid__item {
    min-width: 0;
}

.paginator-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.mini-stat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.mini-stat {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.44rem 0.68rem;
    border-radius: var(--radius-sm);
    background: rgba(247, 242, 232, 0.94);
    border: 1px solid rgba(217, 208, 194, 0.92);
    color: var(--ink-700);
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.2;
}

.auth-shell {
    display: grid;
    place-items: start center;
    padding: var(--space-4) 0;
}

.auth-shell--split {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: var(--space-4);
}

.auth-shell--split > * {
    min-width: 0;
}

.auth-shell--split > form {
    width: 100%;
}

.auth-card {
    width: min(100%, 32rem);
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
}

.auth-shell--split .auth-card {
    width: 100%;
    max-width: none;
    margin-inline: 0 !important;
}

.auth-shell__intro {
    display: grid;
    gap: var(--space-3);
    align-content: start;
}

.auth-shell__headline {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1;
}

.auth-shell__copy {
    margin: 0;
    max-width: 30rem;
    color: var(--ink-700);
    line-height: 1.7;
}

.auth-shell__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

.auth-shell__note {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(88, 109, 98, 0.12);
    background: rgba(248, 243, 234, 0.92);
}

.auth-shell__note-icon {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(88, 109, 98, 0.1);
    color: var(--primary-700);
    flex-shrink: 0;
}

.auth-shell__note-title {
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.auth-card__eyebrow {
    margin: 0 0 var(--space-1);
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: var(--accent-clay);
}

.auth-card__title {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3rem);
}

.auth-card__subtitle {
    margin: var(--space-1) 0 0;
    color: var(--ink-700);
    line-height: 1.65;
}

.auth-card__footer {
    margin-top: var(--space-1);
    color: var(--ink-500);
    text-align: center;
}

.form-grid {
    display: grid;
    gap: var(--space-3);
}

.admin-grid {
    display: grid;
    gap: 1rem;
}

.admin-tools-page {
    --admin-border: #d7dee8;
    --admin-muted: #637083;
    --admin-surface: #fff;
    --admin-soft: #f6f8fb;
    --admin-ink: #1f2937;
}

.admin-tools-hero {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: #fff;
}

.admin-tools-page .page-hero__title {
    font-family: var(--font-ui);
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 850;
    line-height: 1.12;
}

.admin-tools-page .page-hero__description {
    max-width: 48rem;
    font-size: 0.92rem;
}

.admin-tools-page .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.admin-tools-page .metric-chip {
    padding: 0.62rem 0.72rem;
    border-radius: 8px;
    background: var(--admin-soft);
}

.admin-tools-page .metric-chip__label {
    font-size: 0.68rem;
}

.admin-tools-page .metric-chip__value {
    font-size: 0.96rem;
}

.admin-filter-strip,
.admin-table-panel,
.admin-inspector,
.admin-dashboard-panel {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
}

.admin-filter-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 0.8fr)) minmax(220px, 1.4fr) auto;
    gap: 0.75rem;
    align-items: end;
    position: sticky;
    top: 0.75rem;
    z-index: 5;
    padding: 0.75rem;
    box-shadow: 0 0.5rem 1.2rem rgba(31, 41, 55, 0.06);
}

.admin-filter-strip__search {
    min-width: 0;
}

.admin-filter-strip__actions {
    display: flex;
    align-items: end;
}

.admin-inbox-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(300px, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.admin-table-panel {
    min-width: 0;
    padding: 0.62rem;
}

.admin-inbox-table {
    margin-bottom: 0;
    font-size: 0.84rem;
    table-layout: fixed;
}

.admin-inbox-table th {
    color: var(--admin-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-inbox-table th:first-child,
.admin-inbox-table td:first-child {
    width: 7.4rem;
}

.admin-inbox-table th:nth-child(2),
.admin-inbox-table td:nth-child(2) {
    width: 6.6rem;
}

.admin-inbox-table th:nth-child(4),
.admin-inbox-table td:nth-child(4) {
    width: 5.8rem;
}

.admin-inbox-table th:last-child,
.admin-inbox-table td:last-child {
    width: 7.8rem;
}

.admin-inbox-row--selected td {
    background: #eef6ff;
}

.admin-cell-main {
    color: var(--admin-ink);
    font-weight: 700;
}

.admin-cell-muted {
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-type-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    color: #344054;
    background: var(--admin-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-link-button {
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #145da0;
    font: inherit;
    font-weight: 700;
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
}

.admin-link-button:hover,
.admin-link-button:focus {
    color: #0f477c;
    text-decoration: underline;
}

.admin-content-title {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    min-width: 0;
}

.admin-content-title .admin-link-button {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-signal-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-inspector {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.75rem;
    padding: 0.82rem;
}

.admin-inspector__empty {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-height: 12rem;
    color: var(--admin-muted);
}

.admin-inspector__empty i {
    font-size: 1.6rem;
}

.admin-inspector__header,
.admin-dashboard-panel__header,
.admin-suspend-panel__header {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    justify-content: space-between;
}

.admin-inspector__title,
.admin-dashboard-panel__title {
    margin: 0;
    color: var(--admin-ink);
    font-size: 1.1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-inspector__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-inspector__meta span,
.admin-note,
.admin-suspend-panel {
    padding: 0.6rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-soft);
}

.admin-preview {
    max-height: 15rem;
    overflow: auto;
    padding: 0.75rem;
    border-left: 3px solid #3b82f6;
    background: #f9fbfd;
    color: var(--admin-ink);
    overflow-wrap: anywhere;
}

.admin-preview p,
.admin-note p,
.admin-report-row p,
.admin-health-row p {
    margin: 0;
}

.admin-inspector__actions {
    gap: 0.4rem;
}

.admin-suspend-panel {
    display: grid;
    gap: 0.4rem;
}

.admin-suspend-panel__header span {
    color: var(--admin-muted);
    font-size: 0.8rem;
}

.admin-report-list {
    display: grid;
    gap: 0.5rem;
}

.admin-report-list__heading {
    color: var(--admin-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-report-row {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.admin-report-row > div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.admin-report-row > span {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.admin-controls-table {
    margin-bottom: 0;
}

.admin-control-switch {
    min-width: 9rem;
}

.admin-dashboard-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: end;
    max-width: 14rem;
}

.admin-dashboard-live {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 0.15rem 0.5rem;
    align-items: center;
    min-width: 11rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-dashboard-live span:last-child {
    grid-column: 1 / -1;
}

.admin-live-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: #16a34a;
}

.admin-live-dot--loading {
    background: #f59e0b;
}

.admin-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-dashboard-metric {
    display: grid;
    gap: 0.35rem;
    min-height: 5rem;
    padding: 0.72rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
}

.admin-dashboard-metric__label {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-dashboard-metric__value {
    display: flex;
    gap: 0.2rem;
    align-items: baseline;
    color: var(--admin-ink);
    font-size: 1.32rem;
    line-height: 1;
}

.admin-dashboard-metric__value span {
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-dashboard-metric__status {
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-dashboard-metric__status--watch {
    color: #9a3412;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1rem;
}

.admin-dashboard-panel {
    min-width: 0;
    padding: 1rem;
}

.admin-activity-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12px, 1fr));
    align-items: end;
    gap: 0.35rem;
    min-height: 8rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-soft);
}

.admin-activity-empty {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-soft);
    color: var(--admin-muted);
    text-align: left;
}

.admin-activity-empty i {
    color: #64748b;
    font-size: 1.5rem;
}

.admin-activity-empty strong {
    display: block;
    color: var(--admin-ink);
}

.admin-activity-empty p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
}

.admin-activity-point {
    position: relative;
    display: flex;
    gap: 2px;
    align-items: end;
    justify-content: center;
    height: 6.8rem;
}

.admin-activity-bar,
.admin-activity-error {
    display: block;
    min-height: 3%;
    border-radius: 999px 999px 0 0;
}

.admin-activity-bar {
    width: 0.42rem;
}

.admin-activity-bar--views {
    background: #2563eb;
}

.admin-activity-bar--api {
    background: #059669;
}

.admin-activity-error {
    width: 0.28rem;
    background: #dc2626;
}

.admin-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-chart-legend span {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.admin-legend {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
}

.admin-legend--views {
    background: #2563eb;
}

.admin-legend--api {
    background: #059669;
}

.admin-legend--errors {
    background: #dc2626;
}

.admin-health-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.admin-health-row {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.admin-health-row p {
    color: var(--admin-muted);
    font-size: 0.85rem;
}

.carousel-stage {
    overflow: hidden;
    border: 1px solid rgba(217, 208, 194, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 247, 0.94);
    box-shadow: var(--shadow-soft);
}

.carousel-stage .carousel-item {
    background: linear-gradient(180deg, rgba(247, 242, 232, 0.8), rgba(255, 252, 247, 0.92));
}

.carousel-stage .carousel-caption {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(23, 33, 39, 0.08), rgba(23, 33, 39, 0.74));
}

.carousel-stage .carousel-caption h5 {
    margin: 0;
    color: #fff7ef;
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2vw, 2rem);
    line-height: 1.2;
}

.carousel-stage .carousel-indicators {
    margin-bottom: var(--space-2);
}

.carousel-stage .carousel-indicators [data-bs-target] {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    border: 0;
    background-color: rgba(255, 247, 239, 0.48);
}

.carousel-stage .carousel-indicators .active {
    background-color: rgba(255, 247, 239, 0.96);
}

.filter-card {
    padding: var(--space-3);
}

.report-queue-item__body {
    gap: 1rem;
}

.report-queue-item__resolution {
    padding: 1rem 1.1rem;
    background: rgba(248, 243, 234, 0.9);
}

.table-shell {
    display: grid;
    gap: 1rem;
}

.inline-note {
    color: var(--ink-500);
    font-size: 0.9rem;
}

.tag-badge {
    border-color: rgba(88, 109, 98, 0.14);
    background: rgba(88, 109, 98, 0.08);
    color: var(--primary-700);
    border-radius: var(--radius-sm) !important;
}

.tag-badge:hover,
.tag-badge:focus-visible {
    color: #fff;
    background: var(--primary-700);
    border-color: transparent;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .page-shell {
        padding-inline: var(--space-2);
    }

    .page-hero {
        padding: 1.2rem;
    }

    .auth-shell {
        min-height: auto;
    }

    .surface-card,
    .card-body,
    .card-header,
    .card-footer {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }

    .admin-filter-strip,
    .admin-inbox-layout,
    .admin-dashboard-grid,
    .admin-dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .admin-inspector {
        position: static;
    }

    .admin-inspector__meta {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-live,
    .admin-dashboard-toolbar {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .auth-shell {
        padding: 0.65rem 0;
    }

    .auth-shell__intro {
        gap: 0.85rem;
    }

    .auth-shell__metrics {
        grid-template-columns: 1fr;
    }

    .auth-shell__headline {
        font-size: clamp(2rem, 12vw, 2.45rem);
    }

    .auth-shell__copy,
    .auth-shell__note {
        line-height: 1.48;
    }

    .auth-card {
        padding: 1rem;
    }

    .auth-card__title {
        font-size: clamp(1.85rem, 10vw, 2.35rem);
    }

    .metric-chip {
        padding: 0.66rem 0.75rem;
    }

    .metric-chip__value {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .entity-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .entity-row__actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero,
    .btn,
    .loading-progress circle:last-child {
        animation: none !important;
        transition: none !important;
    }
}

@media (min-width: 992px) {
    .auth-shell--split {
        grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
        align-items: center;
    }

    .page-hero__header--with-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: var(--space-3);
    }

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

    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
