/* Fleet 1144 — dark mode must never use white selected/hover rows. */
html[data-theme="dark"] .main table tbody tr,
html[data-theme="dark"] .main table tbody tr > td,
html[data-theme="dark"] .content table tbody tr,
html[data-theme="dark"] .content table tbody tr > td{
  background:#13212c!important;
  color:#eef4f7!important;
  border-color:#30414e!important;
}
html[data-theme="dark"] .main table tbody tr:nth-child(even) > td,
html[data-theme="dark"] .content table tbody tr:nth-child(even) > td{background:#101c26!important}
html[data-theme="dark"] .main table tbody tr:hover > td,
html[data-theme="dark"] .main table tbody tr:focus-within > td,
html[data-theme="dark"] .main table tbody tr.active > td,
html[data-theme="dark"] .main table tbody tr.selected > td,
html[data-theme="dark"] .main table tbody tr.highlighted > td,
html[data-theme="dark"] .main table tbody tr[aria-selected="true"] > td,
html[data-theme="dark"] .content table tbody tr:hover > td,
html[data-theme="dark"] .content table tbody tr:focus-within > td,
html[data-theme="dark"] .content table tbody tr.active > td,
html[data-theme="dark"] .content table tbody tr.selected > td,
html[data-theme="dark"] .content table tbody tr.highlighted > td,
html[data-theme="dark"] .content table tbody tr[aria-selected="true"] > td{
  background:#1d3342!important;
  color:#fff!important;
}
html[data-theme="dark"] .main table tbody tr > td *,
html[data-theme="dark"] .content table tbody tr > td *{color:inherit}
html[data-theme="dark"] .main table thead th,
html[data-theme="dark"] .content table thead th{background:#0f1c26!important;color:#b9c7d1!important;border-color:#30414e!important}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dialog,
html[data-theme="dark"] .drawer,
html[data-theme="dark"] .settings-pane,
html[data-theme="dark"] .preferences-grid{background:#0d1822!important;color:#eef4f7!important;border-color:#30414e!important}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#101c26!important;color:#f5f8fa!important;border-color:#3a4d5b!important}
html[data-theme="dark"] option{background:#101c26;color:#f5f8fa}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#8296a4!important}

/* Sub-labels inside consolidated categories. */
.fleet-nav-mini-title{padding:9px 14px 4px 42px;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:#7f919d;pointer-events:none}
html[data-theme="dark"] .fleet-nav-mini-title{color:#8fa4b2}
html[data-theme="light"] .fleet-nav-mini-title{color:#687a86}


/* Fleet 1186 — theme-invariant login + dark Ops diagnostics. */
html[data-theme="light"] body[data-page="login"],
html[data-theme="dark"] body[data-page="login"]{background:#07131e!important;color:#fff!important}
html[data-theme="light"] body[data-page="login"] .auth,
html[data-theme="dark"] body[data-page="login"] .auth{background:linear-gradient(135deg,#07111a 0%,#0b1a27 48%,#10283a 100%)!important;color:#fff!important}
html[data-theme="light"] body[data-page="login"] .auth-left,
html[data-theme="dark"] body[data-page="login"] .auth-left{color:#fff!important;background:radial-gradient(circle at 58% 78%,rgba(237,27,47,.25),transparent 33%)!important}
html[data-theme="light"] body[data-page="login"] .auth-left h1,
html[data-theme="dark"] body[data-page="login"] .auth-left h1{color:#fff!important}
html[data-theme="light"] body[data-page="login"] .auth-left p,
html[data-theme="dark"] body[data-page="login"] .auth-left p{color:#a9d6ff!important}
html[data-theme="light"] body[data-page="login"] .auth-right,
html[data-theme="dark"] body[data-page="login"] .auth-right{background:transparent!important}
html[data-theme="light"] body[data-page="login"] .auth-card,
html[data-theme="dark"] body[data-page="login"] .auth-card{background:#fff!important;color:#101820!important;border-color:rgba(255,255,255,.55)!important}
html[data-theme="light"] body[data-page="login"] .auth-card h1,
html[data-theme="light"] body[data-page="login"] .auth-card h2,
html[data-theme="light"] body[data-page="login"] .auth-card h3,
html[data-theme="dark"] body[data-page="login"] .auth-card h1,
html[data-theme="dark"] body[data-page="login"] .auth-card h2,
html[data-theme="dark"] body[data-page="login"] .auth-card h3{color:#101820!important}
html[data-theme="light"] body[data-page="login"] .auth-card .muted,
html[data-theme="light"] body[data-page="login"] .auth-card p,
html[data-theme="dark"] body[data-page="login"] .auth-card .muted,
html[data-theme="dark"] body[data-page="login"] .auth-card p{color:#647380!important}
html[data-theme="light"] body[data-page="login"] .auth-card .field label,
html[data-theme="dark"] body[data-page="login"] .auth-card .field label{color:#5d6d79!important}
html[data-theme="light"] body[data-page="login"] .auth-card input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] body[data-page="login"] .auth-card select,
html[data-theme="light"] body[data-page="login"] .auth-card textarea,
html[data-theme="dark"] body[data-page="login"] .auth-card input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body[data-page="login"] .auth-card select,
html[data-theme="dark"] body[data-page="login"] .auth-card textarea{background:#fbfcfd!important;color:#101820!important;border-color:#cbd5dd!important}
html[data-theme="light"] body[data-page="login"] #login-eye,
html[data-theme="dark"] body[data-page="login"] #login-eye{background:#f3f6f8!important;color:#344552!important;border-color:#cbd5dd!important}
html[data-theme="light"] body[data-page="login"] #forgot-password,
html[data-theme="dark"] body[data-page="login"] #forgot-password{background:#fff!important;color:#354652!important;border-color:#d5dde4!important}

#ops-diag-inline{background:#f7fbfd!important;color:#111820!important;border-color:#d8e0e6!important}
html[data-theme="dark"] #ops-diag-inline{background:#101c26!important;color:#eef4f7!important;border-color:#30414e!important}
html[data-theme="dark"] #ops-diag-inline .notice{background:#142431!important;color:#eef4f7!important;border-color:#30414e!important}
html[data-theme="dark"] #ops-diag-inline .muted,
html[data-theme="dark"] #ops-diag-inline small{color:#9fb0bd!important}
html[data-theme="dark"] #ops-diag-inline details,
html[data-theme="dark"] #ops-diag-inline summary{color:#eef4f7!important}
