.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 22px 14px 16px; color: #d6e2ed; background: var(--navy-950); }
.sidebar-head { display: flex; align-items: center; min-height: 42px; padding: 0 8px 22px; }
.brand-lockup { display: flex; min-width: 0; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-lockup > span { display: grid; min-width: 0; gap: 1px; }
.brand-lockup strong { color: #f8fbfd; font-size: 15px; font-weight: 720; letter-spacing: -.02em; }
.brand-lockup small { color: #91a8bd; font-size: 10px; letter-spacing: .02em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; flex: none; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; color: #fff; background: linear-gradient(140deg, #e1725f, #b94d42); box-shadow: 0 6px 18px rgba(0,0,0,.2); font-size: 17px; font-weight: 800; letter-spacing: -.1em; }
.owner-chip { display: flex; align-items: center; gap: 8px; margin: 0 2px 22px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); color: #b7c8d8; background: rgba(255,255,255,.055); font-size: 11px; }
.owner-chip .icon { margin-left: auto; color: #8299ad; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: #b9c5cf; box-shadow: 0 0 0 3px rgba(185,197,207,.12); }
.status-dot.active { background: #45c39b; box-shadow: 0 0 0 3px rgba(69,195,155,.14); }
.primary-nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; min-height: 42px; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; color: #9eb2c5; background: transparent; font-size: 12px; font-weight: 600; text-decoration: none; transition: color var(--ease), background var(--ease), border-color var(--ease); }
.nav-item:hover { color: #f4f8fb; background: rgba(255,255,255,.055); }
.nav-item.active { border-color: rgba(111, 202, 174, .18); color: #fff; background: rgba(38, 139, 113, .24); }
.nav-item .icon { color: #8299ad; }
.nav-item.active .icon { color: #71d2b5; }
.nav-count { display: grid; min-width: 19px; height: 19px; place-items: center; margin-left: auto; border-radius: 999px; color: #fff; background: var(--coral); font-size: 10px; }
.sidebar-bottom { display: grid; gap: 14px; margin-top: auto; }
.server-status { display: flex; align-items: flex-start; gap: 9px; margin: 0 4px; padding: 13px 10px 4px; border-top: 1px solid rgba(255,255,255,.09); color: #b7c7d7; }
.server-status strong, .server-status small { display: block; }
.server-status strong { font-size: 11px; font-weight: 650; }
.server-status small { margin-top: 2px; color: #8299ad; font-size: 10px; }
.main-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: var(--topbar-height); align-items: center; justify-content: space-between; gap: 18px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(244,247,250,.93); backdrop-filter: blur(14px); }
.topbar-context { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 11px; }
.topbar-context strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.slash { color: #b3bdc8; }
.topbar-actions, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.secure-note { display: flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 10px; }
.secure-note .icon { color: var(--mint); }
.dispatch-status { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px; border: 1px solid #ecd7a9; border-radius: 999px; color: #8b641e; background: #fff8e9; font-size: 10px; font-weight: 700; white-space: nowrap; }
.dispatch-status.enabled { border-color: #b9e2d4; color: var(--mint-deep); background: var(--mint-soft); }
.page-wrap { width: min(1400px, 100%); margin: 0 auto; padding: 43px 40px 72px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 4px 0 0; color: var(--navy-950); font-size: clamp(28px, 3vw, 40px); font-weight: 760; letter-spacing: -.055em; line-height: 1.02; }
.eyebrow { margin: 0; color: var(--mint); font-size: 10px; font-weight: 750; letter-spacing: .11em; }
.lede { max-width: 650px; margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.58; }
.page-heading-action { flex: none; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; text-decoration: none; transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease); }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .52; }
.button.primary { color: #fff; background: var(--coral); box-shadow: 0 6px 14px rgba(217,95,77,.18); }
.button.primary:hover:not(:disabled) { background: #c85243; box-shadow: 0 8px 18px rgba(217,95,77,.25); }
.button.outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.button.outline:hover:not(:disabled) { border-color: var(--mint); color: var(--mint-deep); background: var(--mint-soft); }
.button.quiet { border-color: transparent; color: var(--ink-soft); background: transparent; }
.button.quiet:hover:not(:disabled) { color: var(--ink); background: #e9eef3; }
.button.danger-ghost { border-color: #efc6c8; color: var(--red); background: var(--red-soft); }
.button.danger-ghost:hover:not(:disabled) { border-color: var(--red); background: #ffe6e8; }
.button.small { min-height: 32px; padding: 0 10px; font-size: 10px; }
.button.full { width: 100%; }
.icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 7px; color: var(--ink-soft); background: transparent; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.icon-button:hover { border-color: var(--line); color: var(--ink); background: var(--surface); }
.danger-icon { color: var(--red); }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--mint-deep); background: transparent; font-size: 11px; font-weight: 700; text-decoration: none; }
.text-button:hover { color: var(--coral); }
.panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 20px 16px; }
.panel-head h2 { margin: 0; color: var(--navy-900); font-size: 14px; font-weight: 730; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: var(--ink-faint); font-size: 11px; line-height: 1.45; }
.global-error { display: flex; align-items: center; gap: 10px; margin: 18px 40px -1px; padding: 12px 15px; border: 1px solid #efc6c8; border-radius: var(--radius-sm); color: #863d45; background: var(--red-soft); font-size: 12px; }
.global-error > .icon { color: var(--red); }
.global-error span { flex: 1; }
.mobile-menu, .mobile-close, .mobile-scrim { display: none; }
.pill { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; }
.pill.good { color: #17745d; background: var(--mint-soft); }
.pill.warn { color: #93661b; background: var(--amber-soft); }
.pill.bad { color: #9d4048; background: var(--red-soft); }
.pill.neutral { color: var(--ink-soft); background: #edf1f5; }
.status-label { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.status-label.good { color: var(--mint-deep); }.status-label.bad { color: var(--red); }.status-label.warn { color: var(--amber); }
.loading-rows { display: grid; gap: 12px; padding: 0 20px 20px; }
.loading-rows span { display: block; height: 10px; border-radius: 4px; background: #edf1f5; animation: pulse 1.3s ease-in-out infinite alternate; }
.loading-rows span:nth-child(1) { width: 74%; }.loading-rows span:nth-child(2) { width: 53%; }.loading-rows span:nth-child(3) { width: 64%; }.loading-rows span:nth-child(4) { width: 38%; }
.loading-card { padding: 24px; color: var(--ink-faint); font-size: 12px; }
@keyframes pulse { to { opacity: .44; } }
