/* MERAKLY Admin — modernist: flush-left, 2px rules, 0 radius, red only for primary actions. */
:root {
    --m-bg: #F3F2F2;
    --m-surface: #EAE9E9;
    --m-ink: #201E1D;
    --m-accent: #EC3013;
}

html, body { font-family: Archivo, Helvetica, Arial, sans-serif; background: var(--m-bg); color: var(--m-ink); }
h1:focus { outline: none; }

.wordmark { font-weight: 800; letter-spacing: .04em; font-size: 20px; margin-left: 8px; }
.wordmark-sub { font-size: 10px; letter-spacing: .2em; margin-left: 10px; opacity: .7; }
.appbar-user { font-size: 12px; margin-right: 8px; opacity: .8; }
.nav-section { display: block; padding: 18px 16px 4px; font-size: 10px !important; letter-spacing: .18em !important; color: #5C5857; }

.page-header { display: flex; align-items: flex-end; gap: 16px; border-bottom: 2px solid var(--m-ink); padding-bottom: 12px; margin-bottom: 20px; }
.page-header h1 { font-size: 28px; font-weight: 800; line-height: 1.05; margin: 0; }
.page-header .kicker { font-size: 10px; letter-spacing: .18em; color: #5C5857; margin-bottom: 4px; }
.page-header .actions { margin-left: auto; display: flex; gap: 8px; }

.section-title { font-size: 12px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; border-bottom: 2px solid var(--m-ink); padding-bottom: 6px; margin: 24px 0 12px; }

.stat-tile { border-top: 2px solid var(--m-ink); padding: 12px 0; }
.stat-tile .value { font-size: 34px; font-weight: 800; line-height: 1; }
.stat-tile .label { font-size: 10px; letter-spacing: .16em; color: #5C5857; margin-top: 6px; }

.cat-chip { display: inline-block; font-size: 10px; letter-spacing: .12em; font-weight: 700; padding: 2px 6px; color: #fff; }
.muted { color: #5C5857; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.mud-table-row:hover .row-actions { visibility: visible; }

/* Login (static page, plain HTML) */
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-poster { background: var(--m-accent); color: var(--m-ink); padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; }
.login-kicker { font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.login-wordmark { font-size: 88px; font-weight: 800; line-height: .95; letter-spacing: -.01em; }
.login-sub { font-size: 18px; margin-top: 12px; }
.login-panel { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 440px; }
.login-panel h1 { font-size: 32px; font-weight: 800; margin: 0 0 24px; }
.login-panel label { display: block; font-size: 10px; letter-spacing: .18em; font-weight: 700; margin: 16px 0 6px; }
.login-panel input { width: 100%; border: 0; border-bottom: 2px solid var(--m-ink); background: var(--m-surface); padding: 12px; font: inherit; font-size: 16px; }
.login-panel input:focus { outline: none; border-bottom-color: var(--m-accent); }
.login-panel button { margin-top: 28px; width: 100%; height: 52px; border: 0; background: var(--m-accent); color: #fff; font: inherit; font-weight: 700; letter-spacing: .12em; cursor: pointer; }
.login-error { border-left: 2px solid var(--m-accent); padding: 8px 12px; color: #B3240E; background: #fff; margin-bottom: 8px; }
.validation-message { color: #B3240E; font-size: 12px; margin-top: 4px; }
@media (max-width: 800px) { .login-shell { grid-template-columns: 1fr; } .login-poster { min-height: 200px; } }

#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
