:root { font-family: Inter, "Segoe UI", sans-serif; color: #172033; }
html, body { margin: 0; background: #f4f6fa; }
a { color: inherit; }
.top-appbar { background: linear-gradient(105deg, #111827 0%, #202c46 100%) !important; border-bottom: 1px solid rgba(255,255,255,.08); }
.appbar-title { display: flex; flex-direction: column; line-height: 1.05; margin-left: 10px; }
.appbar-title .mud-typography-caption { color: #aab4c8; }
.main-drawer { border-right: 1px solid #e7eaf0 !important; }
.brand-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 136px; padding: 14px 18px 12px; box-sizing: border-box; overflow: hidden; border-bottom: 1px solid #eef0f4; text-align: center; }
.brand-logo { display: block; width: 170px; max-width: 100%; height: auto; margin: 0 auto; object-fit: contain; object-position: center; }
.brand-subtitle { width: 100%; margin: 0; color: #667085; letter-spacing: .02em; text-align: center; }
.nav-menu { padding: 18px 12px; }
.nav-section { color: #98a2b3; padding: 0 12px 8px; letter-spacing: .12em; }
.mud-nav-link { border-radius: 10px; margin: 3px 0; color: #475467; }
.mud-nav-link.active { background: #eeedff !important; color: #4338ca !important; font-weight: 650; }
.drawer-footer { position: absolute; bottom: 18px; left: 22px; right: 22px; display: flex; gap: 8px; align-items: center; color: #98a2b3; font-size: 12px; }
.page-container { padding: 34px 38px 48px !important; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-kicker { color: #4f46e5; font-weight: 700; letter-spacing: .08em; }
.muted { color: #667085; }
.metric-card { height: 100%; border: 1px solid #e8ebf1; border-radius: 16px !important; box-shadow: 0 5px 18px rgba(15,23,42,.035) !important; }
.metric-card .metric-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.metric-purple { background: #eeedff; color: #4f46e5; }
.metric-green { background: #e8f8f3; color: #09866e; }
.metric-blue { background: #e9f2ff; color: #2770d6; }
.metric-orange { background: #fff3e5; color: #dc781f; }
.metric-red { background: #fff0f0; color: #d74848; }
.section-card { border: 1px solid #e8ebf1; border-radius: 16px !important; box-shadow: 0 5px 18px rgba(15,23,42,.035) !important; }
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 18px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.online { background: #12b76a; box-shadow: 0 0 0 3px #dff7eb; }
.offline { background: #98a2b3; }
.version-value { font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; background: #f2f4f7; padding: 4px 8px; border-radius: 7px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; }
.upload-zone { border: 1.5px dashed #c6cbd5; border-radius: 14px; padding: 22px; background: #fafbfc; }
.rules-code { background: #111827; color: #d7e1f4; border-radius: 14px; padding: 18px 20px; font-family: "Cascadia Code", Consolas, monospace; line-height: 1.8; }
.empty-state { text-align: center; padding: 42px; color: #667085; }
#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 4px rgba(0,0,0,.2); display: none; left: 0; padding: .8rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
@media (max-width: 900px) { .page-container { padding: 24px 18px 38px !important; } .page-heading { flex-direction: column; } }
