/* SMeAX: shared controls and black-yellow dark theme. */
.brand-name {font-size: 31px; letter-spacing: -.7px;}
.brand-group {font-size: 8px; font-weight: 750; letter-spacing: 2px; color: #727984; margin-top: 5px;}
.brand-description {font-size: 7px; letter-spacing: .65px; line-height: 1.5;}
.login-brand .brand-name {font-size: 39px;}
.login-brand .brand-group {font-size: 9px; letter-spacing: 2.5px;}
.login-brand .brand-description {font-size: 8px;}
.theme-toggle {border: 1px solid var(--line); border-radius: 5px; padding: 7px 11px; color: #69717e; background: #fff; font-size: 10px; white-space: nowrap;}
.theme-toggle:hover {color: var(--brand); border-color: var(--brand); background: var(--brand-tint);}
.login-theme {position: absolute; right: 25px; top: 22px; z-index: 3;}
.login-card {position: relative;}
.footer-group {font-weight: 650; padding-left: 9px;}
.chart[data-metric="cpu"] path {stroke: var(--blue);}
.chart[data-metric="ram"] path {stroke: var(--cyan);}
.login-visual-title small {line-height: 1.8;}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #111215;
  --panel2: #191a1e;
  --line: #2b2c32;
  --text: #eeeff1;
  --muted: #9a9da7;
  --brand: #f4cc38;
  --brand-dark: #ffe36d;
  --brand-tint: #272411;
  --cyan: #51c99b;
  --blue: #e5c55b;
  --red: #ff7381;
  --yellow: #eac257;
  --purple: #b59ad9;
}
[data-theme="dark"] body {background: #08090b; color: #eeeff1;}
[data-theme="dark"] button {background: #191a1e; color: #d0d2da; border-color: #303137;}
[data-theme="dark"] button:hover {background: #262418; border-color: #81722c;}
[data-theme="dark"] .primary {background: #f4cc38; border-color: #f4cc38; color: #15140e;}
[data-theme="dark"] .primary:hover {background: #ffe36d; border-color: #ffe36d;}
[data-theme="dark"] .sidebar {background: #0e0f12; border-color: #26272d;}
[data-theme="dark"] .brand-name {color: #f4f4f6;}
[data-theme="dark"] .brand-group {color: #a6a5a0;}
[data-theme="dark"] .brand-description {color: #e5c55b;}
[data-theme="dark"] .workspace {background: #16171a; border-color: #2a2b31;}
[data-theme="dark"] .workspace strong {color: #dbdce3;}
[data-theme="dark"] .workspace-icon {color: #a8a69c;}
[data-theme="dark"] .workspace small,
[data-theme="dark"] .collector-status small,
[data-theme="dark"] .profile small {color: #898c96;}
[data-theme="dark"] .nav-label {color: #71747e;}
[data-theme="dark"] nav button {background: transparent; border-color: transparent; color: #a5a8b2;}
[data-theme="dark"] nav button span {color: #8e919b;}
[data-theme="dark"] nav button.active {background: #262311; border-color: #3e3718; color: #f4cc38;}
[data-theme="dark"] nav button.active:before {background: #f4cc38;}
[data-theme="dark"] nav button.active span {color: #f4cc38;}
[data-theme="dark"] nav em {background: #282930; color: #b3b5be;}
[data-theme="dark"] nav button.active em {background: #49401a; color: #f4cc38;}
[data-theme="dark"] .collector-status {background: #151619; border-color: #2b2c32; color: #c7c9d0;}
[data-theme="dark"] .profile {border-color: #2b2c32;}
[data-theme="dark"] .avatar {background: #37301a; color: #f4cc38;}
[data-theme="dark"] .profile button {background: none; color: #c9c8be;}
[data-theme="dark"] .topbar {background: #0e0f12; border-top-color: #f4cc38; border-bottom-color: #28292e;}
[data-theme="dark"] .breadcrumb {color: #8e929d;}
[data-theme="dark"] .breadcrumb strong {color: #d2d4dc;}
[data-theme="dark"] .breadcrumb span {color: #555862;}
[data-theme="dark"] .topbar-right {color: #979ba7;}
[data-theme="dark"] .environment {background: #16171b; border-color: #303137; color: #b7bbc4;}
[data-theme="dark"] .theme-toggle {background: #17181c; color: #ddc867; border-color: #494125;}
[data-theme="dark"] .theme-toggle:hover {background: #2a2616; border-color: #f4cc38;}
[data-theme="dark"] .icon-button {background: none; color: #b7bac4; border-color: transparent;}
[data-theme="dark"] .page-heading {background: #111215; border-color: #2a2b31; border-left-color: #f4cc38;}
[data-theme="dark"] .page-heading:after {border-color: #f4cc3807;}
[data-theme="dark"] h1,
[data-theme="dark"] h2 {color: #eceef2;}
[data-theme="dark"] p,
[data-theme="dark"] .page-heading p {color: #9a9da8;}
[data-theme="dark"] .eyebrow {color: #f4cc38;}
[data-theme="dark"] .live-label {color: #9ca0ab;}
[data-theme="dark"] .stat {background: #111215; border-color: #2b2c32; box-shadow: none;}
[data-theme="dark"] .stat:before {background: #656773;}
[data-theme="dark"] .stat:nth-child(2):before {background: #51c99b;}
[data-theme="dark"] .stat:nth-child(3):before {background: #ff7381;}
[data-theme="dark"] .stat:nth-child(4):before {background: #eac257;}
[data-theme="dark"] .stat-label {color: #b0b2bc;}
[data-theme="dark"] .stat-icon {color: #a6a392;}
[data-theme="dark"] .stat-foot,
[data-theme="dark"] .stat-number small {color: #8b8e99;}
[data-theme="dark"] .panel {background: #111215; border-color: #2b2c32; box-shadow: none;}
[data-theme="dark"] .panel-heading {border-color: #27282e;}
[data-theme="dark"] .panel-heading h2 {color: #dddfe7;}
[data-theme="dark"] .panel-heading small {color: #8f939e;}
[data-theme="dark"] .panel-heading button {background: none; color: #e7c64f;}
[data-theme="dark"] .health-ring svg circle:first-child {stroke: #27292f;}
[data-theme="dark"] .health-ring svg circle:last-child {stroke: #51c99b;}
[data-theme="dark"] .ring-center strong {color: #eeeff3;}
[data-theme="dark"] .ring-center small,
[data-theme="dark"] .health-note {color: #8f939f;}
[data-theme="dark"] .legend-row {color: #a6a9b4;}
[data-theme="dark"] .legend-row strong {color: #e3e5ec;}
[data-theme="dark"] .event {border-color: #292a30;}
[data-theme="dark"] .event strong {color: #e2e4eb;}
[data-theme="dark"] .event p,
[data-theme="dark"] .event time {color: #969ba6;}
[data-theme="dark"] .filter {background: #15161a; border-color: #303239; color: #a5a9b4;}
[data-theme="dark"] .filter.active {background: #f4cc38; border-color: #f4cc38; color: #18170f;}
[data-theme="dark"] .search {background: #111215; border-color: #34363d; color: #e1e3eb;}
[data-theme="dark"] .search::placeholder {color: #858b98;}
[data-theme="dark"] th {background: #17181c; border-bottom-color: #2d2f36; color: #9298a4;}
[data-theme="dark"] td {color: #b5bac6; border-color: #292c33;}
[data-theme="dark"] tr.clickable:hover td {background: #212016;}
[data-theme="dark"] .host-cell strong {color: #e3e6ee;}
[data-theme="dark"] .host-cell small {color: #8e95a4;}
[data-theme="dark"] .os-icon {background: #20252e; border-color: #343c4a; color: #9eb7d4;}
[data-theme="dark"] .os-icon.linux {background: #302a1e; border-color: #49402c; color: #d9bc78;}
[data-theme="dark"] .badge {background: #252831; border-color: #3a3f4a; color: #b6becd;}
[data-theme="dark"] .badge.ok {background: #142c24; border-color: #28513f; color: #78d7ad;}
[data-theme="dark"] .badge.critical {background: #341d24; border-color: #63313e; color: #ff8c98;}
[data-theme="dark"] .badge.warning {background: #322a17; border-color: #5e4e25; color: #e9c164;}
[data-theme="dark"] .badge.maintenance {background: #2a2236; border-color: #4e3c64; color: #c7abe8;}
[data-theme="dark"] .status-dot.ok {background: #51c99b;}
[data-theme="dark"] .status-dot.critical {background: #ff7381;}
[data-theme="dark"] .status-dot.warning {background: #eac257;}
[data-theme="dark"] .status-dot.maintenance {background: #b59ad9;}
[data-theme="dark"] .status-dot.unknown {background: #8993a7;}
[data-theme="dark"] .meter-track {background: #2e323c;}
[data-theme="dark"] .tag {background: #242832; color: #adb7c9;}
[data-theme="dark"] .table-bottom {border-color: #2b3039; color: #8a94a5;}
[data-theme="dark"] .empty-symbol {color: #776b3b;}
[data-theme="dark"] .empty strong {color: #c4cad6;}
[data-theme="dark"] .empty p {color: #8e96a6;}
[data-theme="dark"] .notice {background: #272313; border-color: #494020; color: #d6c17c;}
[data-theme="dark"] .notice.error {background: #311b24; border-color: #61303f; color: #f1a0af;}
[data-theme="dark"] .setting-row {color: #949dac;}
[data-theme="dark"] .setting-row strong {color: #d7deeb;}
[data-theme="dark"] .channel-card {border-color: #2b3039;}
[data-theme="dark"] .channel-card .channel-icon {background: #332e1b; color: #f4cc38;}
[data-theme="dark"] .channel-card h3 {color: #d9deea;}
[data-theme="dark"] .chart line {stroke: #303540;}
[data-theme="dark"] .chart-labels {color: #919baa;}
[data-theme="dark"] footer {border-color: #2b2e36; color: #9199a8;}
[data-theme="dark"] footer .footer-name {color: #f4cc38;}
[data-theme="dark"] dialog {background: #131519; color: #d5dbe7; border-color: #3b414e; box-shadow: 0 30px 100px #000b;}
[data-theme="dark"] dialog::backdrop {background: #000b;}
[data-theme="dark"] .modal-top {background: #131519; border-top-color: #f4cc38; border-bottom-color: #303641;}
[data-theme="dark"] label {color: #aab5c7;}
[data-theme="dark"] label input,
[data-theme="dark"] label select,
[data-theme="dark"] label textarea {background: #0d1016; border-color: #394252; color: #e0e6f2;}
[data-theme="dark"] label small {color: #8d99ad;}
[data-theme="dark"] .form-section {color: #f4cc38; border-color: #303744;}
[data-theme="dark"] .danger {background: #331d26; border-color: #643242; color: #ff8c9b;}
[data-theme="dark"] .form-error {color: #f49caf;}
[data-theme="dark"] #toast {background: #15241f; border-color: #355647; border-left-color: #51c99b; color: #a0e0c3;}
[data-theme="dark"] .login {background: #0c0d10;}
[data-theme="dark"] .login-card h1 {color: #eff0f3;}
[data-theme="dark"] .login-card p {color: #9ca1ad;}
[data-theme="dark"] .login-card small {color: #8e929e;}
[data-theme="dark"] .login-card #login-error {color: #ff97a8;}
[data-theme="dark"] .login-grid {background: linear-gradient(145deg,#0d0e0b,#1d1b10 52%,#393116); border-left: 1px solid #41391c;}
[data-theme="dark"] .login-grid:before {background-image: linear-gradient(35deg,transparent 48.8%,#f4cc3818 49%,#f4cc3818 49.2%,transparent 49.4%),linear-gradient(145deg,transparent 49%,#f4cc3812 49.2%,#f4cc3812 49.4%,transparent 49.6%);}
[data-theme="dark"] .orb {border-color: #f4cc3860; box-shadow: 0 0 140px #f4cc3817,inset 0 0 80px #f4cc380a;}
[data-theme="dark"] .orb:before,
[data-theme="dark"] .orb:after {border-color: #f4cc3845; box-shadow: none;}
[data-theme="dark"] .login-visual-title {color: #f5ecd1;}
[data-theme="dark"] .login-visual-title small {color: #e3c769;}
[data-theme="dark"] .login-visual-caption {color: #b9ad83; border-color: #f4cc3830;}
@media(max-width:850px) {.brand-group {display:none;}.login-brand .brand-group {display:block;}.topbar-right {gap:8px;}.theme-toggle {font-size:9px;padding:7px 8px;}.footer-description {display:none;}}
@media(max-width:500px) {.login-theme {top:16px;right:17px;}.login-card {padding-top:85px;}.breadcrumb {font-size:10px;}.breadcrumb span {padding:0 6px;}.topbar {padding-left:12px;padding-right:10px;}.theme-toggle {font-size:9px;padding:6px 7px;}.topbar-right .icon-button {display:none;}.login-brand .brand-description {font-size:7px;}}
