:root {
  color-scheme: dark;
  --bg: #05070c;
  --sidebar: #080b11;
  --surface: #0d1119;
  --surface-raised: #111827;
  --line: #1a2740;
  --line-soft: #111b2c;
  --text: #e4e9ef;
  --muted: #9aa5b1;
  --subtle: #6f7b88;
  --accent: #2d6cff;
  --accent-strong: #2455c7;
  --accent-soft: #101b34;
  --green: #4c7df0;
  --amber: #7895d2;
  --red: #7185b2;
  --font: Inter, "Segoe UI", Arial, sans-serif;
  font-family: var(--font);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 13px/1.5 var(--font); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.control-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 18px 12px 14px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 20px; color: var(--text); text-decoration: none; }
.brand-logo { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border: 1px solid #1e3769; border-radius: 7px; background: #080d18; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.brand-name small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }

.workspace-select { position: relative; display: flex; align-items: center; gap: 9px; margin: 0 2px 20px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.server-avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border: 1px solid #1e3769; border-radius: 6px; background: #111a2d; color: #c0d0f2; font-weight: 700; }
.workspace-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.workspace-copy small { color: var(--subtle); font-size: 9px; }
.workspace-copy select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; font-weight: 600; appearance: none; white-space: nowrap; text-overflow: ellipsis; }
.workspace-copy option { background: var(--surface); }
.select-chevron { position: absolute; top: 24px; right: 9px; color: var(--muted); pointer-events: none; }

.nav-label { padding: 0 11px 7px; color: var(--subtle); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.main-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { position: relative; width: 100%; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); text-align: left; text-decoration: none; cursor: pointer; }
.nav-item:hover { background: #0b1220; color: var(--text); }
.nav-item.active { border-color: #1e3b78; background: var(--accent-soft); color: #c5d5f7; }
.nav-icon { width: 16px; color: #8795aa; text-align: center; font-size: 14px; }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-indicator { position: absolute; right: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.nav-out { margin-left: auto; color: var(--subtle); }
.nav-count { min-width: 21px; margin-left: auto; padding: 2px 5px; border-radius: 4px; background: #101a2e; color: var(--muted); font-size: 9px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.sidebar-bot-card { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.sidebar-bot-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.sidebar-bot-card strong { font-size: 10px; }
.sidebar-bot-card small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.bot-orb { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border: 1px solid #1e3769; border-radius: 50%; background: #101a30; color: #c0d0f2; font-weight: 700; }
.icon-button { width: 27px; height: 27px; margin-left: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--muted); cursor: pointer; }
.icon-button:hover, .top-icon:hover { border-color: var(--accent-strong); color: var(--text); }
.sidebar-version { display: flex; justify-content: space-between; padding: 10px 4px 0; color: var(--subtle); font-size: 8px; letter-spacing: .05em; }

.main-area { min-width: 0; }
.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--sidebar); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--subtle); font-size: 11px; }
.breadcrumbs b { color: #596a88; font-weight: 400; }
.breadcrumbs strong { color: var(--text); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.connection-pill { height: 29px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 9px; }
.status-dot { width: 6px; height: 6px; display: inline-block; flex: none; border-radius: 50%; background: #75839a; }
.status-dot.online { background: var(--green); }
.status-dot.warning { background: var(--amber); }
.status-dot.offline { background: var(--red); }
.top-icon { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); cursor: pointer; }
.profile-button { display: flex; align-items: center; gap: 8px; margin-left: 4px; padding: 3px 7px 3px 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); text-align: left; cursor: pointer; }
.profile-avatar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; background: #121e34; color: #c1d0ec; font-size: 11px; font-weight: 700; }
.profile-button > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.profile-button strong { font-size: 9px; }
.profile-button small { color: var(--muted); font-size: 8px; }
.chevron { margin: 0 2px 0 4px; color: var(--muted); font-size: 12px; }

.content-wrap { width: min(100%, 1500px); margin: 0 auto; padding: 24px 28px 18px; }
.page-view { display: none; }
.page-view.active { display: block; }
.welcome-row, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.eyebrow-line { display: none; }
.welcome-row h1, .page-heading h1 { margin: 6px 0 4px; color: var(--text); font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.title-dot { color: var(--accent); }
.welcome-row p, .page-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.button { min-height: 33px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--text); text-decoration: none; font-size: 10px; white-space: nowrap; cursor: pointer; }
.button:hover { border-color: #2b426e; background: #121c2d; }
.button b { color: var(--muted); font-size: 11px; }
.button-primary { border-color: var(--accent-strong); background: #173b9f; color: #e6edfa; font-weight: 600; }
.button-primary:hover { background: #214fc4; }
.button-primary span { font-size: 14px; }

.hero-strip { min-height: 76px; display: flex; align-items: center; gap: 0; margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.hero-glow, .hero-chevron { display: none; }
.hero-brand { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 190px; }
.hero-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #1e3769; border-radius: 6px; background: #101a30; color: #c4e1e5; font-size: 20px; font-weight: 700; }
.hero-brand > div { display: flex; flex-direction: column; gap: 2px; }
.hero-kicker { color: var(--muted); font-size: 9px; font-weight: 600; }
.hero-brand strong { font-size: 12px; font-weight: 600; }
.hero-brand small { color: var(--muted); font-size: 9px; }
.hero-health { display: flex; align-items: center; gap: 8px; min-width: 135px; padding: 0 15px; border-left: 1px solid var(--line); }
.hero-health > span:last-child, .hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-health small, .hero-stat small { color: var(--muted); font-size: 8px; font-weight: 600; }
.hero-health strong { color: var(--text); font-size: 10px; font-weight: 600; }
.pulse-ring { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #29427b; border-radius: 50%; }
.pulse-ring i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pulse-ring.offline { border-color: #263d70; }
.pulse-ring.offline i { background: var(--red); }
.hero-stat { min-width: 125px; padding: 0 15px; border-left: 1px solid var(--line); }
.hero-stat strong { color: var(--text); font-size: 10px; font-weight: 600; }
.hero-stat em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 400; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat-card { min-height: 102px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.stat-top, .stat-bottom { display: flex; align-items: center; justify-content: space-between; }
.stat-top > span:first-child { color: var(--muted); font-size: 9px; font-weight: 600; }
.stat-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; background: #101a2e; color: #a9b8d1; font-size: 13px; }
.stat-icon.cyan, .module-icon.cyan { background: #111a2d; color: #8facff; }
.stat-icon.purple, .module-icon.purple { background: #141c2b; color: #93a7cd; }
.stat-icon.amber, .module-icon.amber { background: #121b2c; color: #a8b8da; }
.stat-icon.green, .module-icon.green { background: #101a2c; color: #a3b7e4; }
.stat-icon.blue, .module-icon.blue { background: #121c2c; color: #a3b5d9; }
.stat-icon.pink, .module-icon.pink { background: #121a2b; color: #a3b3d6; }
.stat-value { margin-top: 7px; color: var(--text); font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.stat-bottom { margin-top: 2px; color: var(--muted); font-size: 8px; }
.stat-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.trend { color: var(--muted); font-size: 8px; }
.trend.positive { color: var(--green); }
.inline-link, .text-link { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 9px; cursor: pointer; }
.inline-link b, .text-link b { margin-left: 3px; }
.stat-spark { display: none; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 11px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.activity-panel, .system-panel, .feed-panel, .modules-panel { padding: 14px 15px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.panel-kicker { color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .04em; }
.panel-heading h2 { margin: 4px 0 2px; color: var(--text); font-size: 13px; font-weight: 600; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.period-chip, .count-pill { min-height: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--muted); font-size: 8px; }
.period-chip span { color: var(--muted); }

.chart-wrap { height: 145px; display: grid; grid-template-columns: 28px 1fr; gap: 5px; margin-top: 12px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 17px; color: var(--subtle); font-size: 8px; }
.chart { position: relative; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: space-around; padding: 0 4px 19px; }
.chart-lines { position: absolute; inset: 0 0 18px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-lines i { height: 1px; background: var(--line-soft); }
.chart-bar-group { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; gap: 3px; }
.chart-bar { width: 10px; min-height: 2px; border-radius: 2px 2px 0 0; background: #2f6ee9; transition: height .2s; }
.chart-bar.alt { background: #536b9f; }
.chart-day { position: absolute; bottom: -17px; left: 50%; color: var(--muted); font-size: 8px; white-space: nowrap; transform: translateX(-50%); }
.chart-empty { position: absolute; inset: 0 0 17px; display: grid; place-items: center; color: var(--muted); font-size: 9px; pointer-events: none; }
.chart-legend { display: flex; align-items: center; gap: 13px; padding: 3px 0 0 33px; color: var(--muted); font-size: 8px; }
.chart-legend > span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.cyan-bg { background: #2f6ee9; }
.purple-bg { background: #536b9f; }
.chart-legend .chart-footnote { margin-left: auto; color: var(--muted); }

.health-badge { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #1e3b78; border-radius: 5px; background: #0e1931; color: #a8c0f0; font-size: 8px; }
.health-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.health-badge.offline { border-color: #273d70; background: #111827; color: #a8b7d5; }
.health-badge.offline i { background: var(--red); }
.service-list { margin-top: 10px; }
.service-row { min-height: 45px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line-soft); }
.service-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 5px; background: #101a2e; color: #b3c0ca; font-size: 11px; }
.bot-icon { color: #8facff; }
.api-icon { color: #aab9d5; }
.db-icon { color: #9fb3dc; }
.service-name { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.service-name strong { font-size: 9px; font-weight: 600; }
.service-name small { color: var(--muted); font-size: 8px; }
.service-value { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.system-footer { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 8px; }
.system-footer span:first-child { color: #a7badc; }
.shield-icon { margin-right: 4px; color: var(--accent); }

.feed-panel, .modules-panel { min-height: 220px; }
.activity-list { display: flex; flex-direction: column; margin-top: 9px; }
.activity-item { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.event-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--accent); font-size: 10px; }
.event-icon.member_join { color: var(--green); }
.event-icon.member_leave { color: var(--red); }
.event-icon.warning { color: var(--amber); }
.event-icon.order { color: #adbcd5; }
.event-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.event-copy strong { overflow-wrap: anywhere; color: #d2d9e0; font-size: 9px; font-weight: 500; }
.event-copy small { color: var(--muted); font-size: 8px; }
.event-type { margin-left: auto; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.empty-state { min-height: 132px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--muted); text-align: center; }
.empty-icon { width: 30px; height: 30px; margin-bottom: 1px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); color: var(--muted); font-size: 15px; }
.empty-state strong { color: #c3cbd3; font-size: 10px; font-weight: 600; }
.empty-state small { max-width: 250px; color: var(--muted); font-size: 8px; }
.quick-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.quick-module { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 5px; background: #141b23; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.quick-module:hover { border-color: #233655; background: var(--surface-raised); }
.module-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 5px; background: #101a2e; color: #b3c0ca; font-size: 13px; }
.quick-module > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.quick-module strong { overflow: hidden; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.quick-module small { color: var(--muted); font-size: 7px; }
.quick-module > b { color: var(--muted); font-size: 10px; }
.product-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 9px; border: 1px solid var(--line-soft); border-radius: 5px; background: #141b23; color: var(--muted); font-size: 8px; }
.product-note > span:first-child, .note-spark { display: none; }
.product-note strong { color: #d4deee; font-weight: 600; }

.page-heading { align-items: center; margin-bottom: 18px; }
.page-heading .count-pill { font-size: 9px; }
.table-panel, .logs-panel { padding: 14px 15px; }
.table-scroll { width: 100%; overflow-x: auto; margin-top: 11px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #141b23; }
th { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 600; white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line-soft); color: #c7d2e5; font-size: 9px; }
.table-empty { padding: 26px 10px; color: var(--muted); text-align: center; }
.order-code { color: var(--accent); font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-raised); color: var(--muted); font-size: 8px; white-space: nowrap; }
.status-pill.pending { border-color: #18233b; background: #101725; color: #afc0e2; }
.status-pill.closed { border-color: #1e3b78; background: #0e1931; color: #a8c0f0; }

.log-toolbar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.log-live { display: flex; align-items: center; gap: 6px; margin-right: auto; color: var(--muted); font-size: 8px; }
.log-live > span { margin-left: 5px; color: var(--muted); }
.log-search { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--muted); }
.log-search input { width: 180px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 9px; }
.log-search input::placeholder { color: var(--muted); }
.log-toolbar select { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--muted); font-size: 9px; }
.log-list { min-height: 250px; max-height: 560px; overflow: auto; padding: 7px 0; font-family: Consolas, "SFMono-Regular", monospace; }
.log-line { display: grid; grid-template-columns: 140px 70px 130px minmax(0, 1fr); gap: 10px; padding: 6px 8px; border-bottom: 1px solid #0c1320; font-size: 9px; }
.log-time, .log-source { color: var(--muted); }
.log-level { color: #aebbd1; }
.log-level.ERROR, .log-level.CRITICAL { color: var(--red); }
.log-level.WARNING { color: var(--amber); }
.log-level.INFO { color: var(--accent); }
.log-message { overflow-wrap: anywhere; color: #d3deee; }
.log-empty { display: grid; min-height: 220px; place-items: center; color: var(--muted); font: 10px var(--font); }
.security-note { display: flex; align-items: center; gap: 7px; margin: 10px 2px; color: var(--muted); font-size: 9px; }
.security-note span { color: var(--accent); }

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.module-card { position: relative; min-height: 175px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.module-card .module-icon { margin-bottom: 11px; }
.module-tag { position: absolute; top: 15px; right: 14px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 8px; }
.active-tag { border-color: #1e3b78; background: #0e1931; color: #a8c0f0; }
.planned-tag { background: var(--surface-raised); }
.module-card h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; }
.module-card p { min-height: 40px; margin: 0 0 12px; color: var(--muted); font-size: 9px; }
.module-card a, .module-card button { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 9px; text-decoration: none; cursor: pointer; }
.module-card a b, .module-card button b { margin-left: 4px; }
.muted-card { background: #090d14; }
.module-coming { color: var(--muted); font-size: 9px; }

.page-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding: 11px 2px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 8px; }
.page-footer span:last-child { display: flex; align-items: center; gap: 6px; }
.page-footer i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 22px; max-width: min(380px, calc(100vw - 32px)); padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px; background: #0d1420; color: var(--text); opacity: 0; pointer-events: none; transform: translateY(5px); transition: opacity .15s, transform .15s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .control-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .content-wrap { padding-right: 20px; padding-left: 20px; }
  .topbar { padding: 0 20px; }
  .hero-stat { min-width: 105px; padding-right: 10px; padding-left: 10px; }
  .stats-grid { gap: 8px; }
  .overview-grid { grid-template-columns: minmax(0, 1.2fr) minmax(250px, 1fr); }
}

@media (max-width: 850px) {
  .control-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 10px 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 4px 9px; }
  .workspace-select { max-width: 360px; margin: 0 0 8px; }
  .main-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 3px; }
  .nav-label, .sidebar-bottom { display: none; }
  .nav-item { width: auto; min-width: max-content; height: 32px; padding: 0 9px; }
  .nav-indicator { display: none; }
  .topbar { height: 51px; }
  .hero-strip { flex-wrap: wrap; row-gap: 12px; }
  .hero-brand { flex-basis: 100%; }
  .hero-health { border-left: 0; padding-left: 0; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topbar { padding: 0 12px; }
  .breadcrumbs { gap: 6px; }
  .breadcrumbs span { display: none; }
  .connection-pill { padding: 0 7px; }
  .profile-button > span:nth-child(2), .profile-button .chevron { display: none; }
  .content-wrap { padding: 17px 12px; }
  .welcome-row, .page-heading { align-items: flex-start; flex-direction: column; }
  .welcome-row h1, .page-heading h1 { font-size: 21px; }
  .hero-strip { padding: 11px; }
  .hero-health, .hero-stat { min-width: 0; padding: 0 9px; }
  .hero-stat:last-of-type { display: none; }
  .stats-grid { gap: 7px; }
  .stat-card { min-height: 93px; padding: 10px; }
  .stat-value { font-size: 20px; }
  .stat-bottom { gap: 5px; }
  .quick-modules, .module-grid { grid-template-columns: minmax(0, 1fr); }
  .log-toolbar { align-items: stretch; flex-wrap: wrap; }
  .log-live { flex-basis: 100%; }
  .log-search { flex: 1; }
  .log-search input { width: 100%; }
  .log-line { grid-template-columns: 98px 58px minmax(0, 1fr); gap: 6px; }
  .log-source { display: none; }
  .page-footer { flex-direction: column; }
}
