/* Base identity: white, anthracite and blue. */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel2: #f7f8fa;
  --line: #e0e3e8;
  --text: #292c32;
  --muted: #68717e;
  --cyan: #147c62;
  --blue: #486b93;
  --red: #c8202f;
  --yellow: #9c6500;
  --purple: #795b9d;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-tint: #eff6ff;
  font-family: 'Segoe UI', Arial, sans-serif;
}
body {background: var(--bg);}
button {background: #fff; border-radius: 5px; color: #3c4149;}
button:hover {background: #f1f5ff; border-color: #b8c9ec;}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {outline: 3px solid #2563eb80;}
.primary {background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 5px;}
.primary:hover {background: var(--brand-dark); border-color: var(--brand-dark);}
.sidebar {background: #fff; border-right-color: #e2e3e6; padding-top: 28px;}
.brand {padding: 0 9px; gap: 11px; font-size: 36px; letter-spacing: -1.5px;}
.brand-symbol {background: transparent; color: #fff; clip-path: none; width: 44px; height: 44px; flex-shrink: 0;}
.brand-symbol img {width: 100%; height: 100%; display: block;}
.brand-copy {display: flex; flex-direction: column;}
.brand-name {font-family: 'Arial Narrow', 'Aptos Narrow', 'Segoe UI', sans-serif; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.7px; color: #292c32;}
.brand-description {font-size: 8px; line-height: 1.5; font-weight: 650; letter-spacing: 1.1px; text-transform: uppercase; color: var(--brand); margin-top: 5px;}
.workspace {background: #f8f8fa; border-color: #e5e6e9; margin-top: 31px; border-radius: 5px;}
.workspace-icon {color: #777b85;}
.workspace strong {color: #353943;}
.workspace small, .collector-status small, .profile small {color: #777e89;}
.nav-label {color: #8b8e97;}
nav {gap: 4px;}
nav button {color: #676d77; border-radius: 5px; font-weight: 500;}
nav button span {color: #8b9099;}
nav button.active {color: var(--brand); background: #eff6ff; border-color: #dbeafe; position: relative;}
nav button.active:before {content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; background: var(--brand); border-radius: 2px;}
nav button.active span {color: var(--brand);}
nav em {background: #eff0f3; color: #676d77;}
nav button.active em {background: #dbeafe; color: var(--brand-dark);}
.collector-status {background: #fafafa; border-color: #e5e7eb; color: #474d57; border-radius: 5px;}
.profile {border-color: #e6e7eb;}
.avatar {background: #e8f0ff; color: var(--brand); font-weight: 700;}
.profile button {color: #767c87;}
.status-dot.ok {box-shadow: none; background: #198266;}
.status-dot.critical {background: var(--red);}
.status-dot.warning {background: #c18416;}
.status-dot.unknown {background: #8c95a3;}
.topbar {height: 76px; background: #fff; border-bottom-color: #e2e4e9; border-top: 3px solid var(--brand);}
.breadcrumb {color: #777c86;}
.breadcrumb span {color: #b3b7bf;}
.breadcrumb strong {color: #353943;}
.topbar-right {color: #6f7784;}
.environment {color: #646c78; background: #fafafa; border-color: #e5e6e9;}
.icon-button {color: #656c77;}
.page {padding-top: 29px;}
.page-heading {position: relative; min-height: 153px; padding: 26px 28px; margin-bottom: 25px; background: #fff; border: 1px solid #e3e5e9; border-left: 4px solid var(--brand); border-radius: 5px; overflow: hidden;}
.page-heading:after {content: ''; position: absolute; width: 270px; height: 270px; right: -160px; top: -145px; border: 40px solid #2563eb05; border-radius: 50%; pointer-events: none;}
.page-heading > * {position: relative; z-index: 1;}
.eyebrow {color: var(--brand); font-size: 9px; letter-spacing: 1.8px;}
h1 {font-family: 'Arial Narrow', 'Aptos Narrow', 'Segoe UI', sans-serif; color: #30343b; font-size: 29px; font-weight: 650; letter-spacing: -.8px; margin: 9px 0;}
.page-heading p {color: #747b87; font-size: 12px;}
.live-label {color: #79818d;}
.stats {gap: 18px;}
.stat {background: #fff; border: 1px solid #e2e4e8; border-radius: 5px; padding: 21px 22px; box-shadow: 0 2px 5px #202c4003;}
.stat:before {content: ''; position: absolute; width: 3px; left: 0; top: 21px; bottom: 21px; background: #d9dde4;}
.stat:nth-child(2):before {background: #198266;}
.stat:nth-child(3):before {background: var(--brand);}
.stat:nth-child(4):before {background: #c18416;}
.stat-label {color: #69717e; font-size: 11px;}
.stat-icon {color: #727b88;}
.stat-number {font-size: 37px; font-weight: 600; letter-spacing: -1.7px;}
.stat-number small {color: #9299a3;}
.stat-foot {color: #8a919d;}
.panel {border-color: #e0e3e8; border-radius: 5px; box-shadow: 0 2px 5px #202c4003;}
.panel-heading {border-bottom-color: #eceef1; padding: 19px 21px;}
.panel-heading h2 {color: #3b4049; font-weight: 650; font-size: 13px;}
.panel-heading small {color: #8a919d;}
.panel-heading button, .text-button {color: var(--brand); font-weight: 600;}
.health-ring svg circle:first-child {stroke: #edf0f3;}
.health-ring svg circle:last-child {stroke: #198266;}
.ring-center strong {color: #3b414b;}
.ring-center small {color: #858e9c;}
.legend-row {color: #767e8a;}
.legend-row strong {color: #3f4651;}
.health-note {color: #949aa4;}
.event {border-bottom-color: #eceef1;}
.event strong {color: #424954; font-weight: 600;}
.event p {color: #818995;}
.event time {color: #999fa9;}
.filter {background: #fff; color: #7b818c; border-color: #dfe2e8; font-size: 11px; border-radius: 4px;}
.filter.active {background: var(--brand); border-color: var(--brand); color: #fff;}
.search {background: #fff; color: #414955; border-color: #dfe3e9; border-radius: 4px;}
.search::placeholder {color: #9a9fa9;}
th {background: #f8f9fb; color: #838b97; font-weight: 650; border-bottom: 1px solid #e6e8ed;}
td {color: #717985; border-top-color: #eceef1;}
tr.clickable:hover td {background: #f5f8ff;}
.host-cell strong {color: #3b424d;}
.host-cell small {color: #939aa5;}
.os-icon {background: #edf2f8; border-color: #e1e7ef; color: #526f97;}
.os-icon.linux {background: #fbf4e7; color: #9a7a3e; border-color: #eee4ce;}
.badge {color: #79818d; background: #f3f4f6; border-color: #e1e4e9; font-size: 8px;}
.badge.ok {color: #147354; background: #edf7f2; border-color: #d3e9df;}
.badge.critical {color: #b22132; background: #fceff1; border-color: #f0d3d8;}
.badge.warning {color: #956013; background: #fff7e8; border-color: #f1e4c9;}
.badge.maintenance {color: #775594; background: #f5effa; border-color: #e7dbf1;}
.meter-track {background: #e9edf2;}
.tag {background: #f0f2f6; color: #7c8796;}
.table-bottom {border-top-color: #e5e8ee; color: #929ba8;}
.empty-symbol {color: #a4b5d3;}
.empty strong {color: #59616e;}
.empty p {color: #8b929e;}
.notice {background: #fff9ee; border-color: #eddfc4; color: #896a31; border-radius: 5px; font-size: 11px;}
.notice.error {background: #fff1f3; border-color: #edced4; color: #a23342;}
.setting-row {color: #828996;}
.setting-row strong {color: #49515d;}
.channel-card {border-bottom-color: #e6e8ed;}
.channel-card .channel-icon {background: #eff6ff; color: var(--brand); border-radius: 6px;}
.channel-card h3 {color: #4b5360;}
.chart line {stroke: #e2e7ed;}
.chart-labels {color: #929ba7;}
footer {border-top-color: #e0e3e9; color: #979da7; font-size: 9px;}
footer .footer-name {font-weight: 750; font-size: 13px; letter-spacing: .5px; color: var(--brand);}
footer .footer-description {padding-left: 10px;}
dialog {background: #fff; color: #3e4653; border: 1px solid #dde1e7; border-radius: 7px; box-shadow: 0 30px 100px #29334340;}
dialog::backdrop {background: #1c233b75; backdrop-filter: blur(4px);}
.modal-top {background: #fff; border-bottom-color: #e5e8ed; border-top: 3px solid var(--brand);}
h2 {color: #3a424f;}
label {color: #646f7e; font-weight: 500;}
label input, label select, label textarea {background: #fafbfc; border-color: #d9dfe7; color: #424b59; border-radius: 4px;}
label input::placeholder, label textarea::placeholder {color: #a0a7b1;}
label small {color: #9099a6; font-weight: 400;}
.form-section {color: var(--brand); border-top-color: #e3e7ed; font-weight: 650;}
.danger {color: var(--red); border-color: #eccbd1; background: #fcf0f2;}
.form-error {color: #b12e40;}
#toast {background: #fff; color: #27705c; border: 1px solid #b7d5cb; border-left: 4px solid #198266; border-radius: 5px; box-shadow: 0 10px 40px #273b491c;}
.login {background: #fff;}
.login-card {padding-top: 9vh; padding-bottom: 9vh; gap: 22px;}
.login-brand {display: flex; align-items: center; gap: 13px; margin-bottom: 38px;}
.login-brand .brand-symbol {width: 53px; height: 53px;}
.login-brand .brand-name {font-size: 42px;}
.login-brand .brand-description {font-size: 9px;}
.login-card h1 {color: #333840; font-weight: 600; font-size: 43px; line-height: 1.15; letter-spacing: -1.7px;}
.login-card p {color: #828995; font-size: 13px;}
.login-card small {color: #9a9faa;}
.login-card #login-error {color: #b22a3d;}
.login-grid {background: linear-gradient(145deg,#153780,#1d4ed8 52%,#3b82f6); border-left: 0;}
.login-grid:before {background-image: linear-gradient(35deg,transparent 48.8%,#ffffff13 49%,#ffffff13 49.2%,transparent 49.4%), linear-gradient(145deg,transparent 49%,#ffffff12 49.2%,#ffffff12 49.4%,transparent 49.6%); background-size: 165px 125px;}
.orb {border: 1px solid #ffffff48; box-shadow: 0 0 140px #93b4fd33, inset 0 0 80px #fff1; position: relative;}
.orb:before, .orb:after {border-color: #ffffff4a; box-shadow: none;}
.orb:after {box-shadow: 0 0 60px #fff1;}
.login-grid > span {color: #fff; font-size: 10px; font-weight: 500; letter-spacing: 3px;}
.login-visual-title {position: absolute; left: 50px; right: 40px; top: 13%; font-size: 36px; font-weight: 650; letter-spacing: -.8px; line-height: 1.15; color: #fff;}
.login-visual-title small {display: block; font-size: 10px; font-weight: 400; letter-spacing: 3px; margin-bottom: 18px; color: #bfdbfe;}
.login-visual-caption {position: absolute; left: 50px; right: 50px; bottom: 8%; padding-top: 20px; border-top: 1px solid #ffffff36; color: #dbeafe; font-size: 11px; line-height: 1.7;}
@media(min-width:1600px) {.page {padding-top: 29px;}}
@media(max-width:1200px) {.page-heading {padding: 23px;}.page-heading h1 {font-size: 25px;}.brand {padding: 0 3px; gap: 8px;}.brand-description {font-size: 7px; letter-spacing: .5px;}}
@media(max-width:850px) {.sidebar {padding-top: 22px;}.brand-copy {display: none;}.brand {padding: 0;}.brand-symbol {width: 38px; height: 38px;}.page-heading {padding: 20px; min-height: 150px; flex-wrap: wrap; gap: 14px;}.page-heading h1 {font-size: 25px;}.page-actions {width: 100%;}.page-actions .primary {font-size: 11px; padding: 9px 13px;}.page-heading .eyebrow {font-size: 8px;}.page-heading p {font-size: 11px;}.stat {padding: 18px;}.stat-number {font-size: 33px;}.stat-foot {font-size: 9px;}.login-brand .brand-copy {display: flex;}.login-card {padding: 9vh 10vw;}.login-card h1 {font-size: 37px;}.login-brand {margin-bottom: 24px;}footer .footer-description {font-size: 8px;}}
@media(prefers-reduced-motion:reduce) {* {scroll-behavior: auto!important;}}
@media(max-width:500px) {
  .topbar .environment {display: none;}
  .stats {gap: 10px;}
  .stat {padding: 17px 14px;}
  .stat-label {font-size: 10px; gap: 8px; line-height: 1.4; align-items: flex-start;}
  .health-body {flex-direction: column; align-items: center; gap: 22px;}
  .health-ring {width: 145px; height: 145px;}
  .legend {width: 100%;}
  .page-heading h1 {font-size: 23px;}
  .panel-heading {padding: 17px;}
  .panel-heading small {font-size: 9px;}
  .channel-card {flex-wrap: wrap;}
  .channel-card .channel-actions {width: 100%; margin-left: 0;}
  .detail-header {align-items: flex-start; flex-direction: column; gap: 12px;}
}
