/* Vista general: composition aligned with the supplied dashboard reference. */
body.dashboard-view{--bb-bg:#11171b;background:#11171b!important}
.dashboard-view #app{grid-template-columns:222px minmax(0,1fr);background:#11171b}
.dashboard-view main{padding:14px 16px 12px 12px!important}
.dashboard-view main::before{background:#11171b;inset:0 0 0 222px}.dashboard-view main::after{display:none}
.dashboard-view aside{background:#101519;border-right:1px solid #29333b}
.dashboard-view aside>.brand.brand--vertical{padding:18px 14px 14px}
.dashboard-view aside>.brand.brand--vertical .sidebar-brand-image{width:104px}
.dashboard-view .server-label{margin:13px auto 14px;padding:7px 10px;border-radius:10px}
.dashboard-view #nav{gap:4px;padding:0 12px 14px}
.dashboard-view #nav button{min-height:39px;font-size:13px;padding:0 12px;border-radius:6px}
.dashboard-view .nav-section-label{margin:12px 6px 3px;font-size:10px}
.dashboard-view main>header{margin:0 0 10px;min-height:48px}
.dashboard-view main>header>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px}
.dashboard-view main>header .eyebrow{flex-basis:100%;font-size:10px;letter-spacing:1.3px;line-height:1.2;margin:0}
.dashboard-view main>header h1{font-size:24px;line-height:1.1;margin:0}
.dashboard-view #connection{font-size:12px;padding:8px 12px;border:1px solid #294458;border-radius:25px;background:#121d25}
.stats-last-update{display:flex;align-items:center;gap:9px;font-size:12px;color:#aac8df;font-weight:400}
.stats-last-update::before{content:'';width:9px;height:9px;background:#279af6;border-radius:50%;box-shadow:0 0 10px #249cf522}
.dashboard-view .bb-dashboard{gap:12px}
.stats-overview{margin:0;min-width:0}
.stats-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #293e4c;border-radius:10px;background:#141e25;overflow:hidden}
.stat-card{position:relative;display:flex;align-items:flex-start;gap:14px;min-width:0;min-height:96px;margin:0;padding:11px 15px;border:1px solid transparent;border-radius:9px;background:transparent;text-align:left;color:#edf4fb;box-shadow:none}
.stat-card:not(:last-child)::after{content:'';position:absolute;right:-1px;top:18px;bottom:18px;width:1px;background:#293e4c}
.stat-card:hover,.stat-card:focus-visible{background:#1b2c3c;border-color:#2b77b0;outline:none;box-shadow:inset 0 0 14px #16384b33}
.stat-icon{display:grid;place-items:center;flex:0 0 54px;height:54px;border-radius:12px;background:#203b4e;color:#76c2ff}
.stat-icon svg{width:31px;height:31px}
.stat-card[data-metric="alerts"] .stat-icon,.stat-card[data-metric="tickets"] .stat-icon{background:#442532;color:#fa547a}
.stat-content{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.stat-label{font-size:13px;line-height:1.25;font-weight:400;color:#d0e4f4}
.stat-value{font-size:26px;font-weight:750;line-height:1.12;font-variant-numeric:tabular-nums;letter-spacing:-.4px}
.stat-comparison{font-size:11px;line-height:1.35;color:#a9bed0;font-weight:400}
.stat-comparison.positive{color:#98d880}.stat-comparison.attention{color:#ff6177}
.stat-message{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.25;color:#d2bb92;font-weight:400}
.stat-message:empty{display:none}
.stat-updated{font-size:9px;line-height:1.25;color:#95aabb;font-weight:400}
.stats-analytics{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr);gap:13px;margin-top:12px;align-items:stretch}
.stats-graph,.stats-side{min-width:0;background:#141e25;border:1px solid #293e4c;border-radius:10px;padding:16px 16px 11px}
.stats-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin:0 0 8px}
.stats-title-group{display:flex;align-items:center;gap:12px;min-width:0}
.stats-title-group svg,.stats-security-title>svg{width:24px;height:24px;flex-shrink:0;color:#69b8f6}
.stats-section-head h2,.stats-security-title h2{font-size:15px;line-height:1.3;margin:0;color:#f0f5fa;font-weight:700}
.stats-section-head select{width:auto;max-width:160px;margin:0;padding:8px 26px 8px 13px;min-height:0;border:1px solid #27577d;border-radius:22px;background-color:#182735;color:#d9eaf8;font-size:12px;box-shadow:inset 0 0 0 2px #1a3449}
.activity-chart{width:100%;min-height:220px}
.activity-chart svg{display:block;width:100%;height:220px;overflow:visible}
.activity-axis{font-size:10px;fill:#b8cfe0}
.activity-grid-line{stroke:#2a3c49;stroke-width:1;opacity:.7}
.activity-line{stroke:#399ef1;stroke-width:2;fill:none;stroke-linejoin:round}
.activity-point{fill:#42a7f5;stroke:#8fcaf6;stroke-width:1;outline:none}
.activity-point.partial{fill:#17232d;stroke:#56b6ff;stroke-width:2;stroke-dasharray:2 1}
.activity-point:focus-visible{stroke:#fff;stroke-width:3}
.activity-empty{font-size:13px;fill:#a9bbc8}
.activity-loading{display:grid;place-items:center;height:220px;color:#a9bbc8;font-size:13px;margin:0}
.activity-note{margin:5px 0 0;font-size:10px;line-height:1.4;color:#a8c0d4}
.activity-data{margin-top:4px;font-size:10px;color:#99b9ce}.activity-data summary{cursor:pointer}
.activity-data .table-wrap{max-height:220px;overflow:auto;margin-top:8px}.activity-data table{font-size:11px}
.stats-side{display:flex;flex-direction:column}
.stats-security-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.stats-security-title p{margin:2px 0 0;font-size:12px;color:#b0cce1;line-height:1.4}
.security-row{display:grid;grid-template-columns:22px minmax(120px,1.02fr) minmax(40px,1.2fr) 28px;align-items:center;gap:10px;padding:5px 0;border:0;background:transparent;color:#cce3f4;text-align:left;font-size:12px;box-shadow:none}
.security-row:hover{background:#1a2b36}.security-row:focus-visible{outline:1px solid #70b9f1;outline-offset:2px}
.security-row svg{width:21px;height:21px;color:#98c9ed}
.security-row meter{width:100%;height:13px;border:0;background:#243b4b;border-radius:4px;appearance:none}
.security-row meter::-webkit-meter-bar{height:13px;background:#243b4b;border:0;border-radius:4px}
.security-row meter::-webkit-meter-optimum-value{background:#399ff5;border-radius:4px}
.security-row meter::-moz-meter-bar{background:#399ff5;border-radius:4px}
.security-value{text-align:right;font-size:17px;color:#eef7ff;font-weight:400}
.security-warning{font-size:10px;color:#d6b486;margin:6px 0}
.stats-recent{margin-top:11px;padding-top:10px;border-top:1px solid #2b3c49}
.stats-recent .stats-title-group{gap:11px}.stats-recent h2{font-size:13px}.stats-recent .stats-title-group svg{width:20px;height:20px}
.stats-text-link{font-size:11px;border:0;background:transparent;padding:2px 0;color:#b5d5ed;box-shadow:none}.stats-text-link:hover{color:#fff}
.stats-event{display:grid;grid-template-columns:23px minmax(0,1fr) auto 8px;align-items:center;gap:8px;min-width:0;width:100%;padding:4px 0;border:0;background:transparent;text-align:left;font-size:12px;font-weight:400;color:#d6e9f6;box-shadow:none}
.stats-event:hover{background:#1c2c37}.stats-event:focus-visible{outline:1px solid #70b9f1}
.event-icon{display:grid;place-items:center;width:21px;height:22px;background:#392351;border-radius:5px;color:#bd83f5}
.event-icon svg{width:16px;height:16px}.event-icon.join{background:#203f2e;color:#8bd889}.event-icon.words{background:#4c3b20;color:#e3b361}.event-icon.account_age{background:#3d2c36;color:#ef94a2}
.event-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stats-event time{font-size:10px;color:#a9c6db;white-space:nowrap}
.recent-empty{font-size:12px;color:#9eb5c7;margin:10px 0}
.stats-footnote{font-size:10px;color:#8fa7ba;margin:5px 0 0}
.stats-error,.stats-detail-warning{color:#efc387;font-size:12px;margin:8px 0}
.dashboard-view .bb-module-section{gap:7px}
.dashboard-view .bb-module-section>h2{font-size:15px;margin:0}
.dashboard-view .bb-module-list.panel{border-color:#29343c!important;border-radius:10px!important;background:#1b2024!important}
.dashboard-view .module-row{grid-template-columns:46px minmax(0,1fr) auto auto;gap:12px;min-height:48px;padding:5px 16px;border-bottom-color:#30393e}
.dashboard-view .module-icon{display:grid;width:36px;height:36px;border-radius:8px;font-size:18px;background:#263d4f}
.dashboard-view .module-meta h3{font-size:13px;line-height:1.3;margin:0 0 3px}
.dashboard-view .module-meta p{font-size:12px;line-height:1.3;color:#b5c6d4}
.dashboard-view .module-actions{grid-column:auto;justify-content:flex-end}
.dashboard-view .module-configure-link{font-size:13px!important}
.dashboard-view .bb-row-switch{grid-column:auto;grid-row:auto}
.dashboard-view .bald-switch{min-height:36px;padding:2px 0}
.dashboard-view .bald-switch-state{font-size:11px;min-width:74px}
.dashboard-view .dashboard-note{font-size:10px;line-height:1.3;margin:1px 0 0}
.stats-dialog{max-width:900px;width:calc(100% - 32px);max-height:85vh;box-sizing:border-box;background:#19232c;color:#eef2f7;border:1px solid #4f6275;border-radius:14px;padding:24px}
.stats-dialog::backdrop{background:rgb(0 0 0 / .7)}
.stats-dialog h2{margin:0}.stats-detail-heading,.stats-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.stats-pages{margin-top:20px;margin-bottom:0}
.stats-dialog table{font-size:13px}.stats-dialog .table-wrap{overflow-x:auto}.stats-dialog td,.stats-dialog pre{overflow-wrap:anywhere;white-space:pre-wrap}
.stats-pending-filter{display:flex;align-items:center;gap:9px;margin:10px 0;color:#d7e4f0}.stats-pending-filter input{width:auto}
@media(max-width:1400px){.stat-card{gap:9px;padding:10px 10px}.stat-icon{flex-basis:40px;height:43px}.stat-icon svg{width:26px;height:26px}.stat-value{font-size:24px}.stat-label{font-size:12px}.stat-comparison{font-size:10px}.security-row{grid-template-columns:20px minmax(106px,1fr) minmax(30px,1fr) 24px;gap:7px;font-size:11px}.stats-graph,.stats-side{padding:13px 12px 10px}.stats-section-head h2{font-size:13px}.stats-security-title p{font-size:11px}}
@media(max-width:1050px){.stats-analytics{grid-template-columns:1fr}.stats-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card{border-bottom:1px solid #293e4c}.stat-card:nth-child(3)::after{display:none}.stats-side{padding:16px}.security-row{grid-template-columns:22px 160px 1fr 30px;font-size:12px}.stats-event{font-size:12px}}
@media(max-width:760px){.dashboard-view #app{grid-template-columns:1fr}.dashboard-view main{padding:14px!important}.dashboard-view main::before{inset:0}.dashboard-view aside>.brand.brand--vertical{padding:12px}.dashboard-view aside>.brand.brand--vertical .sidebar-brand-image{width:70px}.dashboard-view main>header{gap:10px;flex-wrap:wrap}.dashboard-view main>header h1{font-size:22px}.stats-last-update{font-size:10px}.stats-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card:nth-child(2n)::after{display:none}.stat-card:nth-child(3)::after{display:block}.stat-card:last-child{grid-column:1/-1}.stats-section-head{align-items:center}.stats-title-group{gap:6px}.stats-section-head select{max-width:128px;padding:7px 20px 7px 9px;font-size:11px}.stats-section-head h2{font-size:12px}.stats-title-group svg{width:18px}.security-row{grid-template-columns:20px 120px minmax(30px,1fr) 25px;gap:6px;font-size:11px}.stats-event{font-size:11px}.dashboard-view .module-row{grid-template-columns:36px minmax(0,1fr);gap:8px;padding:10px}.dashboard-view .module-meta h3{font-size:13px}.dashboard-view .module-meta p{font-size:11px}.dashboard-view .module-actions{grid-column:2;justify-content:flex-start}.dashboard-view .bb-row-switch{grid-column:2}.stats-footnote{line-height:1.5}}
@media(prefers-reduced-motion:reduce){.stat-card{transition:none}}
/* Override shared form rules only inside the overview. */
body.dashboard-view main>header{margin-bottom:10px!important}
body.dashboard-view main>header .eyebrow{margin:0!important}
body.dashboard-view main>header h1{margin:0!important;line-height:1.1!important;font-size:24px!important}
body.dashboard-view main>header #page-description{display:none}
body.dashboard-view #content .stats-overview h2{margin:0;font-size:15px;line-height:1.3}
body.dashboard-view #content .stats-recent h2{font-size:13px}
body.dashboard-view #content .security-row{min-height:32px;line-height:1.3}
body.dashboard-view #content .stats-event{min-height:28px;line-height:1.3;padding:3px 0}
body.dashboard-view #content .stats-text-link{min-height:0;line-height:1.3}
body.dashboard-view #content .stat-card{line-height:1.3;min-height:96px}
body.dashboard-view #content .stats-section-head select{border-radius:22px;min-height:34px}
body.dashboard-view #content .stats-security-title{margin-bottom:10px}
body.dashboard-view #content .module-row{min-height:48px}
body.dashboard-view #content .module-configure-link{min-height:0;padding-top:3px;padding-bottom:3px}
body.dashboard-view #content .stat-card[data-state="unavailable"] .stat-comparison{display:none}
body.dashboard-view #content .bb-module-section>h2{margin:0;line-height:1.3}
body.dashboard-view #nav button{height:36px;min-height:36px;padding-top:0;padding-bottom:0}
