/* RESCON panel - consolidated stylesheet.
   Merged from dashboard/creatoros/muted/horizon/terminal/mobile (load-order cascade preserved).
   Single source of truth: one variable set, one mobile layer, no stacked themes. */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

/* ---- base components ---- */
* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.nav-item b {
  font-size: 11px;
  min-width: 23px;
  padding: 2px 6px;
  text-align: center;
}

.sidebar-foot a {
  grid-column: 2;
  text-decoration: none;
}

.workspace-head h1 {
  font-size: 25px;
  margin: 2px 0;
}

.view {
  display: none;
}

.view.active {
  animation: view-in .18s ease-out;
  display: block;
}

.ghost {
  background: transparent;
}

.wide {
  width: 100%;
}

/* ---- metrics ---- */
.metric-grid {
  display: grid;
}

.metric strong i {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  margin-left: 2px;
}

.section-toolbar.compact {
  margin-bottom: 14px;
}

.section-toolbar h2 {
  margin: 0 0 3px;
}

.legend {
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 13px;
}

.dot {
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  margin-right: 5px;
  width: 6px;
}

.dot.online {
  background: var(--green);
}

.dot.offline {
  background: var(--red);
}

.mode-control button[data-mode="standalone"].active {
  background: #25272a;
  color: #81a6bb;
}

.worker-actions .action-spacer {
  flex: 1;
}

.gpu-row:first-of-type {
  border-top: 0;
}

.gpu-id b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-grid.miners-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px,390px) minmax(0,1fr);
}

/* ---- panels & cards ---- */
.panel {
  border: 1px solid #222427;
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

label {
  color: #b0aaa5;
  display: block;
  font-size: 11px;
  margin-top: 13px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #7ea4ba;
  box-shadow: 0 0 0 3px #81a6bb1f;
}

.form-grid {
  display: grid;
  gap: 0 12px;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.form-grid.five {
  grid-template-columns: repeat(5,1fr);
}

.span-two {
  grid-column: span 2;
}

.form-actions,
dialog footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

fieldset {
  border: 0;
  margin: 16px 0 5px;
  padding: 0;
}

legend {
  color: #b0aaa5;
  font-size: 11px;
  margin-bottom: 7px;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.check-list label {
  background: #100f0f;
  border: 1px solid #333538;
  border-radius: 7px;
  margin: 0;
  padding: 6px 9px;
}

.check-list input,
.check input {
  display: inline;
  margin: 0 6px 0 0;
  width: auto;
}

.check {
  align-items: flex-start;
  display: flex;
  gap: 3px;
}

.check span {
  line-height: 1.4;
}

.inline-check {
  align-self: end;
  margin-bottom: 10px;
}

/* ---- catalogs (miners / flights / drivers / vless) ---- */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.miner-card-head {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.miner-card h3 {
  font-size: 14px;
  margin: 0;
}

.miner-meta b {
  color: #d7d4d1;
  display: block;
  margin-top: 3px;
}

.installed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.miner-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 13px;
}

.flight-catalog {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill,minmax(330px,1fr));
}

.flight-card-head {
  display: flex;
  justify-content: space-between;
}

.flight-card h3 {
  font-size: 14px;
  margin: 0;
}

.flight-route {
  align-items: center;
  color: #c7c3c0;
  display: flex;
  font-size: 11px;
  gap: 7px;
  padding: 15px 0;
}

.flight-route i {
  color: #6a96af;
  font-style: normal;
}

.flight-oc {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 13px;
}

.flight-actions select {
  margin: 0;
  padding: 7px;
}

.activity-row:first-child {
  border-top: 0;
}

.modal > header,
.modal form > header {
  align-items: flex-start;
  border-bottom: 1px solid #212326;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.modal header h2 {
  font-size: 17px;
  margin: 3px 0;
}

.modal header button {
  background: transparent;
  border: 0;
  color: #6a95af;
  font-size: 24px;
  padding: 0 4px;
}

.modal form {
  padding: 0;
}

.modal form > div:not(.form-grid),
.small-modal .form-grid,
.flight-modal .form-grid {
  margin-inline: 20px;
}

.modal form > footer,
.modal > footer {
  padding: 0 20px 18px;
}

.small-modal {
  width: min(560px,94vw);
}

.console-modal {
  height: min(760px,92vh);
  width: min(1100px,96vw);
}

.console-modal pre {
  background: #070706;
  color: #81a6bb;
  font: 12px/1.5 ui-monospace,Consolas,monospace;
  height: calc(100% - 76px);
  margin: 0;
  overflow: auto;
  padding: 16px;
}

.live-status {
  color: var(--green);
  font-size: 10px;
}

.editor-modal {
  width: min(900px,95vw);
}

.editor-modal > textarea {
  font: 12px/1.5 ui-monospace,Consolas,monospace;
  height: 55vh;
  margin: 15px 20px;
  width: calc(100% - 40px);
}

.notice {
  background: #181a1d;
  border-left: 3px solid var(--amber);
  color: #d5bd8b;
  font-size: 11px;
  margin: 15px 20px 0;
  padding: 10px;
}

.flight-modal {
  max-height: 94vh;
  overflow: auto;
}

.flight-modal h3 {
  font-size: 12px;
  margin-inline: 20px;
  margin-top: 18px;
}

.json-import {
  background: #0d0c0b;
  border: 1px solid #333538;
  border-radius: 9px;
  font-size: 11px;
  margin: 15px 20px;
  padding: 10px 12px;
}

.json-import textarea {
  min-height: 150px;
}

.json-import button {
  margin-top: 8px;
}

/* ---- toolbar messages (replaces corner toasts) ---- */
.toolbar-right {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.toolbar-messages {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(520px, 48vw);
  min-width: 0;
}

.toolbar-msg {
  background: #15181c;
  border: 1px solid #2a3d4a;
  border-radius: 7px;
  color: #c5d4de;
  font-size: 11px;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-msg.error {
  border-color: #653645;
  color: #fba0a9;
}

.form-error {
  background: #1b1d20;
  border: 1px solid #61323f;
  border-radius: 8px;
  color: #fb9ea9;
  font-size: 12px;
  padding: 9px;
}

.login-card h1 {
  font-size: 24px;
  margin: 3px 0 0;
}

.login-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 22px;
}

.login-card button {
  margin-top: 20px;
  padding: 11px;
}

code {
  background: #0d0c0b;
  border-radius: 4px;
  color: #81a6bb;
  font: 10px ui-monospace,monospace;
  padding: 2px 4px;
}

@media (max-width: 1100px) {.mode-control {
    justify-self: start;
  }.gpu-head span:nth-child(7),
  .gpu-head span:nth-child(8),
  .gpu-row span:nth-child(7),
  .gpu-row span:nth-child(8) {
    display: none;
  }.page-grid.miners-layout {
    grid-template-columns: 1fr;
  }.repo-editor {
    max-width: none;
  }}

.flight-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto auto auto;
}

@media (max-width: 760px) {.worker-actions {
    overflow: auto;
  }.activity-row > *:nth-child(3),
  .activity-row > *:nth-child(5) {
    display: none;
  }}

.agent-pulse {
  background: var(--green);
  border-radius: 50%;
  box-shadow: none;
  height: 7px;
  width: 7px;
}

.global-search span {
  font-size: 16px;
  padding-left: 11px;
}

.global-search input:focus {
  box-shadow: none;
}

.head-actions #updated {
  font-size: 9px;
}

.section-toolbar {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  margin-bottom: 12px;
  padding-left: 10px;
}

.section-toolbar h2 {
  font-size: 15px;
}

.panel h2 {
  font-size: 15px;
  margin: 0 0 3px;
}

.muted {
  font-size: 10px;
  margin: 0;
}

.worker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-control button[data-mode=rig_control].active {
  background: #6f99b2;
  color: #ffffff;
}

.empty-block {
  background: #0f0e0d;
  border: 1px dashed #35373a;
  border-color: #333538;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  padding: 28px;
  text-align: center;
}

.repo-editor {
  background: var(--panel);
}

input,
select {
  background: #0c0c0b;
  border: 1px solid #37393c;
  border-color: #222427;
  border-radius: 6px;
  color: var(--text);
  display: block;
  font: inherit;
  margin-top: 6px;
  outline: 0;
  padding: 10px 11px;
  width: 100%;
}

textarea {
  background: #0c0c0b;
  border: 1px solid #37393c;
  border-color: #222427;
  border-radius: 6px;
  color: var(--text);
  display: block;
  font: inherit;
  margin-top: 6px;
  outline: 0;
  padding: 10px 11px;
  resize: vertical;
  width: 100%;
}

.activity-row {
  align-items: center;
  border-color: #202225;
  border-top: 1px solid #1c1e21;
  display: grid;
  font-size: 11px;
  gap: 12px;
  grid-template-columns: 100px minmax(140px,1fr) minmax(120px,.7fr) 100px 90px;
  padding: 11px 15px;
}

.modal::backdrop {
  backdrop-filter: blur(3px);
  background: #000000cc;
}

.driver-rig-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  margin-bottom: 20px;
}

.driver-rig-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.driver-rig-head h3 {
  font-size: 13px;
  margin: 0;
}

.driver-installed {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-top: 23px;
}

.driver-installed span {
  color: var(--muted);
  font-size: 9px;
}

.driver-installed strong {
  color: #ffffff;
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.driver-installed i {
  color: #6b6662;
  font-size: 9px;
  font-style: normal;
}

.driver-panel {
  padding: 18px;
}

.driver-panel .panel-head {
  align-items: flex-start;
}

.driver-panel .panel-head > a {
  font-size: 9px;
  text-decoration: none;
}

.driver-catalog {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2,minmax(260px,1fr));
  margin-top: 15px;
}

.driver-row {
  align-items: center;
  background: #0b0b0a;
  border: 1px solid #1c1e21;
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: 31px 1fr auto;
  padding: 10px 11px;
}

.driver-row:hover {
  border-color: #3a3c3f;
}

.driver-row b {
  font-size: 12px;
}

.driver-row button {
  padding: 6px 9px;
}

.driver-confirm-body {
  padding: 18px 20px;
}

.driver-version-hero {
  background: #0b0b0a;
  border: 1px solid #242629;
  border-radius: 8px;
  padding: 14px;
}

.driver-version-hero small {
  display: block;
}

.driver-version-hero strong {
  display: block;
  font-size: 25px;
  margin-top: 5px;
}

.bulk-select-all {
  align-items: center;
  color: #cbc8c5;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 12px 0 6px;
  white-space: nowrap;
}

.bulk-select-all input {
  margin: 0;
  width: auto;
}

.bulk-select-btn {
  align-items: center;
  background: #202225;
  border: 1px solid #3a4a54;
  border-radius: 5px;
  color: #e0dedd;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 650;
  height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.bulk-select-btn:hover,
.bulk-select-btn.is-active {
  background: #343639;
  border-color: #6a95af88;
}

.bulk-divider {
  background: #323437;
  flex: none;
  height: 23px;
  margin: 0 3px;
  width: 1px;
}

.bulk-toolbar button {
  white-space: nowrap;
}

.rig-select {
  align-items: center;
  display: flex;
  margin: 0;
  position: relative;
  z-index: 2;
}

.rig-select input {
  appearance: none;
  -webkit-appearance: none;
  background: #0a0909;
  border: 1px solid #4b4f55;
  border-radius: 2px;
  cursor: pointer;
  flex: none;
  height: 15px;
  margin: 0;
  position: relative;
  width: 15px;
  z-index: 2;
}

.login-divider {
  align-items: center;
  color: #68635f;
  display: flex;
  font-size: 9px;
  gap: 10px;
  margin: 18px 0 0;
}

.login-divider:before,
.login-divider:after {
  background: #333538;
  content: "";
  flex: 1;
  height: 1px;
}

.telegram-login-state {
  color: var(--muted);
  font-size: 9px !important;
  line-height: 1.5;
  margin: 9px 0 0 !important;
  min-height: 18px;
}

.telegram-login-state.success {
  color: var(--green);
}

.telegram-login-state.error {
  color: var(--red);
}

@media (max-width: 1000px) {.metric-grid {
    grid-template-columns: repeat(3,1fr);
  }.driver-catalog {
    grid-template-columns: 1fr;
  }}

.metric > div {
  align-self: end;
  grid-column: 1/-1;
  margin: 0;
}

.settings-card {
  padding: 20px;
}

.settings-card form {
  margin-top: 18px;
}

.vless-bulk-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.vless-bulk-actions small {
  color: var(--muted);
}

.vless-card {
  align-items: center;
  border: 1px solid #202225;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr auto;
  padding: 14px;
}

.vless-order {
  display: grid;
  gap: 4px;
  place-items: center;
}

.vless-order input {
  width: auto;
}

.vless-card h3 {
  margin: 0 0 4px;
}

.vless-card-actions {
  display: flex;
  gap: 6px;
}

.batch-row {
  background: #171615;
  border-color: #416479;
}

@media (max-width: 900px) {.vless-card {
    grid-template-columns: 32px 1fr;
  }.vless-card-actions {
    grid-column: 2;
  }}

.release-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
}

.version-pair {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  margin: 24px 0;
}

.version-pair div {
  background: #0e0d0d;
  border: 1px solid #212326;
  border-radius: 9px;
  padding: 16px;
}

.version-pair small {
  color: var(--muted);
  display: block;
  font-size: 10px;
}

.version-pair strong {
  display: block;
  font-size: 24px;
  margin-top: 5px;
}

.version-pair > span {
  color: var(--muted);
  padding-bottom: 18px;
}

.release-card textarea {
  font: 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;
  margin-top: 12px;
  width: 100%;
}

.agent-release-row {
  align-items: center;
  background: #0f0e0d;
  border: 1px solid #202225;
  border-radius: 9px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px,1fr) minmax(150px,.7fr) 110px auto;
  padding: 14px;
}

.version-inline {
  align-items: center;
  display: flex;
  gap: 9px;
}

.version-inline i {
  color: var(--muted);
}

@media (max-width: 900px) {.release-grid {
    grid-template-columns: 1fr;
  }.agent-release-row {
    grid-template-columns: 1fr 1fr;
  }.agent-release-row button {
    justify-self: end;
  }}

.link-button {
  align-items: center;
  background: #181716;
  border: 1px solid #323437;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
  padding: 8px 11px;
  text-decoration: none;
}

.link-button.disabled {
  background: #131211;
  color: #666666;
  pointer-events: none;
}

.token-tools {
  align-items: center;
  display: flex;
  gap: 7px;
}

.token-tools input {
  flex: 1;
  margin: 0;
}

.telegram-result {
  font-size: 10px;
  margin-top: 9px;
}

.telegram-result.error,
.telegram-discovery-note.error {
  color: var(--red);
}

.telegram-chat-results {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.telegram-chat {
  align-items: center;
  background: #080807;
  border: 1px solid #202225;
  border-radius: 7px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
}

@media (max-width: 760px) {.token-tools {
    align-items: stretch;
    flex-direction: column;
  }}

.brand-mark img {
  display: block;
  height: 76%;
  object-fit: contain;
  width: 76%;
}

.login-logo img {
  display: block;
  height: 72%;
  object-fit: contain;
  width: 72%;
}

.brand.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 0;
  height: auto;
  min-height: 58px;
  padding: 10px 12px;
}

.brand.brand-wordmark .brand-logo {
  display: block;
  width: 100%;
  max-width: 198px;
  height: auto;
  object-fit: contain;
}

.login-logo.login-logo-wordmark {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 18px;
  place-items: stretch;
  overflow: visible;
}

.login-logo.login-logo-wordmark img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.login-product-label {
  color: #b9b4b1;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  margin-top: 3px;
  text-transform: uppercase;
}

.app-body {
  background: #0a0c0e;
  background-color: #0a0c0e;
  min-height: 100vh;
}

.workspace {
  background: #080707;
  background-position: 0 0,43px 25px;
  background-size: 86px 50px;
  min-width: 0;
  position: relative;
}

.workspace > * {
  position: relative;
  z-index: 1;
}

.login-card .telegram-login-button {
  background: #1b1d20;
  border-color: #426478;
  color: #a29b96;
  margin-top: 12px;
}

.login-card .telegram-login-button:hover {
  background: #222427;
}

.login-card .demo-login-button {
  background: #191b1e;
  border: 1px solid #645e59;
  color: #c0bbb7;
  margin-top: 12px;
}

.login-card .demo-login-button:hover {
  background: #212326;
  border-color: #707b75;
}

.demo-login-note {
  color: #757c78;
  font-size: 9px;
  line-height: 1.5;
  margin-top: 8px;
  text-align: center;
}

.demo-session-banner {
  align-items: center;
  background: #121417;
  border: 1px solid #57524e;
  border-radius: 8px;
  color: #b4afab;
  display: flex;
  gap: 12px;
  margin: 16px 0 0;
  padding: 10px 13px;
}

.demo-session-banner > span {
  background: #212326;
  border-radius: 5px;
  color: #c7c2bf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 4px 7px;
}

.demo-session-banner > b {
  font-size: 11px;
}

.demo-session-banner > small {
  color: #818884;
  font-size: 10px;
  margin-left: auto;
}

.demo-session-banner strong {
  color: #d0ccc9;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {.demo-session-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }.demo-session-banner > small {
    margin-left: 0;
    width: 100%;
  }}

.danger-notice {
  background: #15171a;
  border-left: 3px solid var(--amber);
  border-left-color: #90754d;
  color: #c2ad84;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 15px;
  padding: 11px;
}

.danger-notice b {
  color: #cbb47f;
}

.danger {
  background: #161514;
  border-color: #3c3e41;
  color: #ba767e;
}

.telegram-discovery-note.warning {
  background: #191817;
  color: #b49b6b;
}

.panel-head a {
  color: #b4afab;
}

.driver-rank {
  background: #1e2023;
  border-radius: 6px;
  color: #bcb7b4;
  display: grid;
  font-size: 9px;
  height: 27px;
  place-items: center;
  width: 27px;
}

.driver-row.latest .driver-rank {
  background: #1c1b1a;
  color: #b3aeaa;
}

.vless-order b {
  color: #81a6bb;
}

.telegram-result.success {
  color: #b3aeaa;
}

.install-chip.outdated,
.status-badge.dispatched,
.pool-ping.warn {
  background: #1a1c1f;
  border-color: #46484b;
  color: #d0b47f;
}

.mode-control button {
  background: transparent;
  border: 0;
  color: #b8b3af;
}

.head-actions {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 9px;
}

.section-toolbar p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}

.muted {
  color: var(--muted);
}

.miner-card a {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
  text-decoration: none;
}

.command-output {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-row small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.driver-version-hero small {
  color: var(--muted);
  font-size: 10px;
}

.flight-driver {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin: -7px 0 11px;
}

.vless-card span,
.vless-card small {
  color: var(--muted);
  display: block;
  font-size: 10px;
}

.field-note {
  align-self: end;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

button:disabled {
  cursor: progress;
  opacity: .68;
}

.auth-tabs {
  background: #0f0e0e;
  border: 1px solid #393b3e;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 15px;
  padding: 4px;
}

.auth-tabs a {
  border-radius: 5px;
  color: #b2ada9;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 9px;
  text-align: center;
  text-decoration: none;
}

.auth-tabs a.active {
  background: #3f5562;
  color: #f5f4f4;
}

.user-pill > span {
  display: grid;
  line-height: 1.15;
}

.user-pill b {
  font-size: 10px;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill small {
  color: #b2ada9;
  font-size: 8px;
  margin-top: 2px;
}

.telegram-channel-link {
  align-items: center;
  background: #161514;
  border: 1px solid #394850;
  border-radius: 8px;
  color: #d2cfcd;
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding: 10px 11px;
  text-decoration: none;
  transition: .18s;
}

.telegram-channel-link > span:first-child {
  background: #36383b;
  border-radius: 7px;
  color: #b7b1ad;
  display: grid;
  flex: 0 0 28px;
  font-size: 13px;
  height: 28px;
  place-items: center;
  width: 28px;
}

.telegram-channel-link > span:nth-child(2) {
  display: grid;
  gap: 2px;
  text-align: left;
}

.telegram-channel-link b {
  font-size: 10px;
}

.telegram-channel-link small {
  color: #a29c97;
  font-size: 8px;
}

.telegram-channel-link > i {
  color: #7f8a98;
  font-style: normal;
  margin-left: auto;
}

.telegram-channel-link:hover {
  background: #1a1c1f;
  border-color: #526976;
  color: #f2f1f1;
}

.telegram-channel-link.compact {
  margin: 13px 0 2px;
  padding: 8px 10px;
}

.telegram-channel-link.compact > span:first-child {
  flex-basis: 24px;
  height: 24px;
  width: 24px;
}

.sidebar-foot .sidebar-telegram-link {
  align-items: center;
  background: #141312;
  border: 1px solid #393b3e;
  border-radius: 7px;
  color: #d2cfcd;
  display: grid;
  gap: 8px;
  grid-column: 1;
  grid-template-columns: 25px minmax(0,1fr) auto;
  padding: 9px;
  text-decoration: none;
}

.sidebar-telegram-link > span:first-child {
  background: #343639;
  border-radius: 6px;
  color: #b7b1ad;
  display: grid;
  font-size: 12px;
  height: 25px;
  place-items: center;
  width: 25px;
}

.sidebar-telegram-link > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-telegram-link b {
  font-size: 9px;
}

.sidebar-telegram-link small {
  color: #a09893;
  font-size: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-telegram-link i {
  color: #758190;
  font-size: 9px;
  font-style: normal;
}

.sidebar-telegram-link:hover {
  background: #191b1e;
  border-color: #4d616d;
  color: #f3f2f2;
}

.sidebar-version {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 0 5px;
}

.sidebar-version #panel-version-foot {
  font-size: 9px;
}

.ver-outdated {
  color: #e0a840 !important;
  font-weight: 600;
}

/* ---- rig mode: right edge glow + slider ---- */
.worker.mode-rescon {
  border-right: 2px solid var(--green) !important;
  box-shadow: inset -14px 0 18px -12px rgba(98, 201, 137, 0.6) !important;
}

.worker.mode-hive {
  border-right: 2px solid var(--amber) !important;
  box-shadow: inset -14px 0 18px -12px rgba(224, 191, 90, 0.6) !important;
}

.mode-slider {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  user-select: none;
}

.mode-slider .ms-label {
  color: #8f8883;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mode-slider.is-hive .ms-label:first-child {
  color: var(--amber);
}

.mode-slider.is-rescon .ms-label:last-child {
  color: var(--green);
}

.mode-slider .ms-track {
  background: #26282c;
  border: 1px solid #3b3d40;
  border-radius: 999px;
  display: inline-block;
  height: 16px;
  position: relative;
  width: 34px;
}

.mode-slider .ms-knob {
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(224, 191, 90, 0.8);
  height: 10px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: left 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  width: 10px;
}

.mode-slider.is-rescon .ms-knob {
  background: var(--green);
  box-shadow: 0 0 6px rgba(98, 201, 137, 0.8);
  left: 20px;
}

.mode-slider.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.worker-mode-row {
  justify-content: flex-end;
}

/* single command line: slider left, text commands after it */
.worker-cmd-row {
  gap: 10px 18px;
  justify-content: flex-start;
}

.cmd-links {
  align-items: center;
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 3px 11px;
}

.cmd-group {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px 11px;
}

.cmd-group-right {
  margin-left: auto;
}

/* right command group collapses into one menu on mobile */
.cmd-menu-mobile {
  display: none;
  margin-left: auto;
  position: relative;
}

.cmd-menu-mobile .cmd-mobile-list {
  left: auto;
  min-width: 190px;
  right: 0;
}

.cmd-menu-mobile .cmd-mobile-list .cmd-link {
  display: block;
  padding: 6px 8px !important;
  text-align: left;
  width: 100%;
}

@media (max-width: 760px) {
  .cmd-group-right {
    display: none !important;
  }

  .cmd-menu-mobile {
    display: inline-block !important;
  }

  .worker-actions.worker-cmd-row {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    grid-template-columns: none !important;
  }

  .worker-cmd-row .cmd-links {
    width: 100%;
  }

  .cmd-menu-mobile {
    align-self: flex-end;
  }

  .cmd-menu-mobile .cmd-mobile-list {
    bottom: calc(100% + 6px);
    max-height: min(60vh, 320px);
    overflow-y: auto;
    top: auto;
  }
}

.cmd-link {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #96aec5 !important;
  cursor: pointer;
  font-size: 10px !important;
  font-weight: 500 !important;
  padding: 2px 0 !important;
  white-space: nowrap;
}

.cmd-link:hover {
  color: #e8eaed !important;
  text-decoration: underline;
}

.cmd-link.danger {
  color: #d98a8a !important;
}

.cmd-link.danger:hover {
  color: #ff9d9d !important;
}

.cmd-link.coolbox-detected {
  color: var(--green) !important;
}

.cmd-sep {
  border-left: 1px solid #3b3d40;
  height: 12px;
}

.hive-import {
  background: none !important;
  border: 0 !important;
  color: #8fb8d8 !important;
  cursor: pointer;
  font-size: 9px !important;
  margin-left: 8px;
  padding: 1px 0 !important;
}

.hive-import:hover {
  color: #d8ecff !important;
  text-decoration: underline;
}

.oc-delta {
  color: var(--amber);
  display: block;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

/* miner management */
.miner-card.is-disabled {
  opacity: 0.55;
}

.miner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-top: 8px;
}

.miner-meta span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.miner-meta b {
  color: #cac6c3;
  display: block;
  font-size: 10px;
  text-transform: none;
}

.miner-history {
  color: #b8b2ae;
  font-size: 9px;
  margin-top: 8px;
}

.miner-history summary {
  cursor: pointer;
}

.miner-history-row {
  display: flex;
  gap: 9px;
  padding: 3px 0;
}

.miner-history-row small {
  color: var(--muted);
  min-width: 42px;
}

.miner-history-row span:first-of-type {
  color: var(--green);
  font-weight: 700;
  min-width: 90px;
}

.repo-url-row {
  display: flex;
  gap: 8px;
}

.repo-url-row input {
  flex: 1 1 auto;
}

.repo-probe-hint {
  background: #111010;
  border: 1px solid #3c3e41;
  border-radius: 6px;
  color: #b8b2ae;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 8px;
  padding: 9px 11px;
}

.repo-probe-hint b {
  color: var(--green);
}

/* admin tabs */
.admin-tabs {
  display: flex;
  gap: 6px;
  margin: -10px 0 18px;
}

.admin-tab {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 7px;
  padding: 8px 14px;
}

.admin-tab b {
  background: var(--amber);
  border-radius: 8px;
  color: #16181c;
  font-size: 9px;
  padding: 1px 6px;
}

.admin-tab.active {
  background: #2c3a2e;
  color: var(--green);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

/* compact tester cards */
.settings-card {
  max-width: 760px;
}

.tester-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tester-item {
  background: #1c1e21;
  border: 1px solid #26282b;
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
}

.tester-item-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.tester-item-head > div {
  min-width: 0;
}

.tester-item-head b {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tester-item-head small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.tester-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tester-banner {
  background: #1f2d24;
  border: 1px solid #2c4a37;
  border-radius: 6px;
  color: #9fd8b4;
  font-size: 10px;
  margin: -8px 0 16px;
  padding: 9px 12px;
}

.tester-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 12px;
}

.tester-questions {
  margin: 10px 0;
  max-height: 40vh;
  overflow-y: auto;
}

.tester-question {
  border: 1px solid #2a2c2f;
  border-radius: 6px;
  margin: 0 0 10px;
  padding: 8px 10px;
}

.tester-question legend {
  color: #cac6c3;
  font-size: 10px;
  padding: 0 4px;
}

.tester-question .check {
  margin-top: 6px;
}

.form-notice {
  background: #1f2d24;
  border: 1px solid #2c4a37;
  border-radius: 6px;
  color: #9fd8b4;
  font-size: 11px;
  margin: 8px 0;
  padding: 9px 12px;
}

.tester-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.tester-item {
  background: #1c1e21;
  border: 1px solid #26282b;
  border-radius: 8px;
  padding: 12px;
}

.tester-item-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tester-item-head b {
  font-size: 12px;
}

.tester-item-head small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 2px;
}

.tester-answers {
  border-top: 1px solid #26282b;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
}

.tester-answers small {
  color: var(--muted);
  display: block;
  font-size: 9px;
}

.tester-answers b {
  color: #cac6c3;
  font-size: 10px;
  font-weight: 600;
}

.tester-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.tester-create {
  border-top: 1px solid #26282b;
  margin-top: 14px;
  padding-top: 10px;
}

.tester-create h3 {
  font-size: 11px;
  margin: 0 0 6px;
}

.tq-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tq-row input.tq-text {
  flex: 2 1 220px;
}

.tq-row input.tq-options {
  flex: 1 1 180px;
}

.tq-row .check {
  margin-top: 0;
}

.tq-order {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tq-order button {
  font-size: 8px;
  line-height: 1;
  padding: 3px 5px;
}

/* wallets */
.wallet-address-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wallet-address-row code {
  background: #111010;
  border: 1px solid #3c3e41;
  border-radius: 6px;
  color: var(--green);
  flex: 1 1 auto;
  font-size: 11px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.wallet-pick-row {
  display: flex;
  gap: 8px;
}

.wallet-pick-row select {
  flex: 0 0 230px;
}

.wallet-pick-row input {
  flex: 1 1 auto;
}

/* compact density for secondary views — карточки в стиле главной (как .worker) */
#view-miners .panel,
#view-drivers .panel,
#view-flights .panel,
#view-activity .panel,
#view-vless .panel,
#view-bots .panel,
#view-feedback .panel,
#view-updates .panel,
#view-wallets .panel,
#view-admin .panel {
  border-radius: 5px;
  padding: 12px 14px;
}

#view-miners .miner-card,
#view-wallets .miner-card,
#view-flights .flight-card,
#view-drivers .driver-rig-card,
#view-vless .vless-card,
#view-bots .telegram-connect-card,
#view-bots .telegram-control-card,
#view-bots .bots-section,
#view-updates .release-card,
#view-admin .settings-card,
#view-admin .tester-item {
  border: 1px solid #3b3d40;
  border-radius: 5px;
  padding: 10px 12px;
}

#view-miners h2,
#view-drivers h2,
#view-flights h2,
#view-vless h2,
#view-bots h2,
#view-feedback h2,
#view-updates h2,
#view-wallets h2,
#view-admin h2 {
  font-size: 13px;
}

#view-miners .miner-card-head h3,
#view-wallets .miner-card-head h3,
#view-flights .flight-card-head h3 {
  font-size: 12px;
}

#view-activity .activity-row {
  border-radius: 6px;
  font-size: 10px;
  padding: 6px 10px;
}

#view-miners label,
#view-wallets label,
#view-admin label,
#view-bots label,
#view-updates label,
#view-flights label,
#view-drivers label {
  font-size: 10px;
  margin-top: 9px;
}

#view-updates .release-card textarea {
  border-radius: 6px;
  font-size: 10px;
}

.tester-question-toggles {
  align-items: center;
  display: flex;
  gap: 16px;
}

.tester-logs-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: 180px 1fr;
  max-height: 60vh;
}

.tester-logs-files {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}

.tester-logs-files button.is-active {
  border-color: var(--green);
}

.tester-logs-content {
  background: #111010;
  border: 1px solid #26282b;
  border-radius: 6px;
  font-size: 10px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 8px;
}

.tlog-row {
  border-bottom: 1px solid #1d1f22;
  display: grid;
  gap: 4px;
  grid-template-columns: 110px 130px 1fr;
  padding: 4px 2px;
}

.tlog-row small {
  color: var(--muted);
  font-size: 8px;
}

.tlog-row b {
  color: var(--green);
  font-size: 9px;
}

.tlog-row span {
  color: #b8b2ae;
  overflow-wrap: anywhere;
}

/* short install command */
.short-install {
  border-top: 1px solid #26282b;
  margin-top: 14px;
  padding-top: 10px;
}

.short-install h3 {
  font-size: 12px;
  margin: 2px 0 6px;
}

.short-install-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.short-install-row code {
  background: #111010;
  border: 1px solid #3c3e41;
  border-radius: 6px;
  color: var(--green);
  flex: 1 1 260px;
  font-size: 12px;
  padding: 9px 12px;
  user-select: all;
  word-break: break-all;
}

.mode-slider.is-neutral .ms-knob {
  background: #8f8883;
  box-shadow: none;
  left: 11px;
}

.mode-slider .ms-label[data-bulk-action] {
  cursor: pointer;
}

.mode-slider .ms-label[data-bulk-action]:hover {
  color: #cac6c3;
}

@media (max-width: 760px) {.user-pill > i,
  .user-pill b {
    display: none;
  }.user-pill small {
    font-size: 8px;
  }}

.settings-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr);
}

.owner-settings-card {
  padding: 20px;
}

.owner-settings-card > p {
  margin: 4px 0 18px;
}

.owner-setting-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 17px 0;
}

.owner-setting-row b {
  color: var(--text);
  display: block;
  font-size: 12px;
}

.owner-setting-row small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 5px;
  max-width: 560px;
}

.switch {
  flex: 0 0 42px;
  height: 24px;
  position: relative;
  width: 42px;
}

.switch input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.switch span {
  background: #1c1e21;
  border: 1px solid #4e5258;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 100%;
  transition: .18s;
  width: 100%;
}

.switch span:after {
  background: #9f9893;
  border-radius: 50%;
  content: "";
  display: block;
  height: 16px;
  margin: 3px;
  transition: .18s;
  width: 16px;
}

.switch input:checked + span {
  background: #355263;
  border-color: #6a95af;
}

.switch input:checked + span:after {
  background: #e0dedc;
  transform: translateX(18px);
}

.switch input:focus-visible + span {
  outline: 2px solid #9a938e;
  outline-offset: 2px;
}

.owner-setting-fields {
  margin-top: 18px;
}

.future-settings-card {
  min-height: 250px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.future-settings-card h2 {
  margin: 7px 0 10px;
}

.future-settings-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  max-width: 370px;
}

.future-settings-mark {
  bottom: 22px;
  display: flex;
  gap: 10px;
  opacity: .55;
  position: absolute;
  right: 22px;
}

.future-settings-mark i {
  border: 1px solid #6a95af;
  box-shadow: inset 0 0 0 5px #1d1f22;
  height: 24px;
  transform: rotate(45deg);
  width: 24px;
}

.future-settings-mark i:nth-child(2) {
  border-color: #9b8765;
  box-shadow: inset 0 0 0 5px #191b1e;
}

@media (max-width: 900px) {.settings-layout {
    grid-template-columns: 1fr;
  }}

@media (max-width: 560px) {.owner-setting-row {
    align-items: flex-start;
  }.owner-settings-card,
  .future-settings-card {
    padding: 15px;
  }}

.bots-page,
.tasks-page {
  display: grid;
  gap: 10px;
}

.bots-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid #323437;
  padding-bottom: 0;
}

.bots-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  color: #9a9692;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  padding: 7px 12px;
  position: relative;
  top: 1px;
}

.bots-tab:hover {
  background: #1a1b1d;
  color: #d4d0cc;
}

.bots-tab.active {
  background: #1c1d1f;
  border-color: #3b3d40;
  color: #e8e4e0;
}

.bots-tab.active::after {
  background: #6a95af;
  bottom: 0;
  content: '';
  height: 2px;
  left: 8px;
  position: absolute;
  right: 8px;
}

.bots-pane[hidden] {
  display: none !important;
}

.bots-layout {
  display: grid;
  gap: 10px;
}

.bots-form-flow {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bots-wide,
.bots-form-footer {
  grid-column: 1 / -1;
}

.bots-connect {
  display: grid;
  gap: 8px;
  padding: 10px 12px !important;
}

.bots-connect-head,
.bots-card-head-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.bots-connect-head h2,
.bots-card-head h2,
.bots-card h2 {
  font-size: 12px;
  margin: 0;
}

.bots-section-sub {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  margin: 2px 0 0;
}

.bots-connect-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
}

.bots-connect-row input {
  margin: 0;
  min-width: 0;
}

.bots-connect-row > a.link-button,
.bots-connect-row > button {
  white-space: nowrap;
}

#view-feedback .bots-connect-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
}

.bots-connect .telegram-result {
  margin: 0;
  min-height: 0;
  padding: 4px 0;
}

#feedback-sources-card .telegram-chat-results,
.bots-connect .telegram-chat-results {
  max-height: 180px;
  overflow: auto;
  margin: 6px 0 10px;
}

#feedback-sources-card .telegram-help-compact,
.bots-connect .telegram-help-compact {
  border-top: 1px solid #323437;
  margin-top: 8px;
  padding-top: 6px;
}

.feedback-discover-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 4px;
}

.feedback-discover-bar > button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.feedback-discover-hint {
  font-size: 12px;
  line-height: 1.35;
}

.feedback-chat-ref-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 8px;
}

.feedback-chat-ref-field {
  display: grid;
  gap: 4px;
  font-size: 12px;
  min-width: 0;
}

.feedback-chat-ref-field input {
  width: 100%;
}

.feedback-chat-ref-row > button {
  white-space: nowrap;
}

.bots-help-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.bots-help-list {
  margin: 6px 0 0;
  padding-left: 16px;
}

.bots-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px !important;
}

.feedback-self-test-results {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.feedback-self-test-summary {
  margin: 0;
}

.feedback-self-test-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.feedback-self-test-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 6px 8px;
  align-items: start;
  padding: 6px 8px;
  border: 1px solid rgba(120, 130, 150, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
}

.feedback-self-test-list li.is-ok {
  border-color: rgba(46, 160, 67, 0.35);
}

.feedback-self-test-list li.is-fail {
  border-color: rgba(220, 60, 60, 0.4);
}

.feedback-self-test-list li.is-skip {
  opacity: 0.75;
}

.feedback-self-test-mark {
  font-weight: 700;
  line-height: 1.4;
}

.feedback-self-test-list li b {
  display: block;
  font-size: 0.92rem;
}

.feedback-self-test-list li small {
  display: block;
  color: inherit;
  opacity: 0.8;
  margin-top: 2px;
}

.feedback-self-test-list li code {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0.85;
}

.bots-card-head {
  margin: 0;
}

.bots-field-grid {
  display: grid;
  gap: 6px 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bots-field-grid > label,
.bots-field-block,
.bots-label-tight {
  display: grid;
  gap: 3px;
  margin: 0 !important;
}

.bots-field-grid input,
.bots-field-grid select,
.bots-field-block select,
.bots-label-tight input {
  margin: 0;
  width: 100%;
}

.bots-span-2 {
  grid-column: 1 / -1;
}

.bots-switch-compact {
  gap: 5px !important;
}

.bots-switch-compact > label {
  padding: 6px 8px !important;
}

.bots-threshold-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bots-threshold-grid > label {
  align-items: stretch;
  background: #111010;
  border: 1px solid #35373a;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  padding: 6px 8px;
}

.bots-threshold-grid input[type="number"] {
  margin: 0;
  width: 100%;
}

.bots-llm-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bots-switch-one {
  align-items: center;
  background: #111010;
  border: 1px solid #35373a;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0 !important;
  padding: 6px 8px;
}

.bots-inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bots-alerts-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
}

.bots-quiet-inline {
  border: 0 !important;
  gap: 6px !important;
  grid-template-columns: auto 72px 72px !important;
  padding: 0 !important;
}

.bots-form-footer {
  border-top: 1px solid #323437;
  padding-top: 2px;
}

.bots-actions-stack {
  justify-content: flex-start !important;
}

.bots-sections {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bots-section {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.bots-section-wide {
  grid-column: 1 / -1;
}

.telegram-compact-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr);
}

.telegram-connect-card,
.telegram-control-card {
  padding: 18px;
}

.telegram-connect-card .panel-head,
.telegram-control-card .panel-head {
  margin-bottom: 14px;
}

.telegram-quick-start {
  align-items: center;
  background: #111010;
  border: 1px solid #35373a;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px;
}

.telegram-quick-start > div:first-child {
  align-items: center;
  display: flex;
  gap: 10px;
}

.telegram-quick-start > div:first-child > b {
  background: #333538;
  border-radius: 6px;
  color: #bdb8b4;
  display: grid;
  flex: 0 0 24px;
  font-size: 10px;
  height: 24px;
  place-items: center;
  width: 24px;
}

.telegram-quick-start strong,
.telegram-token-field > b,
.telegram-time-row b {
  display: block;
  font-size: 11px;
}

.telegram-quick-start small,
.telegram-token-field small,
.telegram-chat-field small,
.telegram-time-row small,
.telegram-switch-grid small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  line-height: 1.4;
  margin-top: 2px;
}

.telegram-inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.telegram-inline-actions .link-button,
.telegram-inline-actions button,
.telegram-connect-actions .link-button,
.telegram-connect-actions button {
  padding: 7px 9px;
  white-space: nowrap;
}

.telegram-token-field {
  display: block;
  margin-top: 12px;
}

.telegram-token-field > span {
  display: block;
  margin-bottom: 6px;
}

.telegram-token-field .token-tools {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0,1fr) auto auto;
}

.telegram-token-field .token-tools button {
  padding-left: 10px;
  padding-right: 10px;
}

.telegram-connect-card .telegram-result {
  margin: 6px 0 9px;
  min-height: 16px;
}

.telegram-connect-actions {
  align-items: center;
  border-top: 1px solid #323437;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 9px;
}

.telegram-connect-actions > * {
  flex: 1;
}

.telegram-help-compact {
  border-top: 1px solid #323437;
  color: var(--muted);
  font-size: 9px;
  margin-top: 11px;
}

.telegram-help-compact summary {
  color: #bcb7b3;
  cursor: pointer;
  font-weight: 650;
  padding-top: 10px;
}

.telegram-help-compact p {
  line-height: 1.55;
  margin: 8px 0;
}

.telegram-help-compact > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.telegram-help-compact a {
  color: #b4afab;
  text-decoration: none;
}

.telegram-control-card form {
  display: grid;
  gap: 12px;
}

.telegram-chat-field {
  display: block;
}

.telegram-chat-field input {
  margin-bottom: 0;
}

.telegram-time-row {
  align-items: end;
  border-bottom: 1px solid #323437;
  border-top: 1px solid #323437;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0,1fr) 100px 100px;
  padding: 10px 0;
}

.telegram-time-row label {
  font-size: 8px;
}

.telegram-time-row input {
  margin: 3px 0 0;
}

.telegram-option-group h3 {
  color: #c5c1be;
  font-size: 9px;
  letter-spacing: .08em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.telegram-switch-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.telegram-switch-grid > label {
  align-items: center;
  background: #111010;
  border: 1px solid #35373a;
  border-radius: 7px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

.telegram-switch-grid input {
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  width: 16px;
}

.telegram-notify-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.telegram-notify-grid label {
  align-items: center;
  background: #111010;
  border: 1px solid #35373a;
  border-radius: 7px;
  color: #c2bebb;
  display: flex;
  font-size: 9px;
  gap: 6px;
  padding: 7px 9px;
}

.telegram-notify-grid input {
  height: 14px;
  margin: 0;
  width: 14px;
}

.telegram-form-actions {
  border-top: 1px solid #323437;
  margin-top: 1px;
  padding-top: 11px;
}

.telegram-form-actions button {
  flex: 1;
}

.telegram-compact-grid .telegram-chat-results {
  max-height: 150px;
  overflow: auto;
}

.telegram-compact-grid .telegram-chat {
  padding: 8px;
}

.telegram-compact-grid .telegram-discovery-note {
  font-size: 9px;
  padding: 7px;
}

@media (max-width: 1050px) {
  .bots-form-flow,
  .bots-sections,
  .bots-field-grid,
  .bots-threshold-grid,
  .telegram-compact-grid {
    grid-template-columns: 1fr;
  }
  .bots-connect-row,
  #view-feedback .bots-connect-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .bots-connect-row > a.link-button,
  .bots-connect-row > button:nth-child(n+4) {
    grid-column: auto;
  }
  .telegram-connect-card,
  .telegram-control-card,
  .bots-section,
  .bots-card,
  .bots-connect {
    padding: 10px 12px !important;
  }
}

@media (max-width: 620px) {
  .bots-connect-row,
  #view-feedback .bots-connect-row {
    grid-template-columns: 1fr 1fr;
  }
  .bots-connect-row > input {
    grid-column: 1 / -1;
  }
  .bots-alerts-row {
    align-items: stretch;
    flex-direction: column;
  }
  .bots-quiet-inline {
    grid-template-columns: minmax(0, 1fr) 1fr 1fr !important;
  }
  .bots-threshold-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {.telegram-quick-start {
    align-items: flex-start;
    flex-direction: column;
  }.telegram-token-field .token-tools {
    grid-template-columns: 1fr 1fr;
  }.telegram-token-field .token-tools input {
    grid-column: 1/-1;
  }.telegram-time-row {
    grid-template-columns: 1fr 1fr;
  }.telegram-time-row > span {
    grid-column: 1/-1;
  }.telegram-switch-grid {
    grid-template-columns: 1fr;
  }.telegram-connect-actions > * {
    flex: 1 1 100%;
  }}

/* ---- external fan controllers ---- */
.coolbox-modal {
  max-width: 670px;
}

#coolbox-dialog [hidden] {
  display: none !important;
}

.coolbox-empty p {
  color: #cac6c3;
  font-size: 11px;
  line-height: 1.55;
  margin: 0 0 6px;
}

.coolbox-modal fieldset {
  border-top: 1px solid #2a2c2f;
  margin: 14px 0 4px;
  padding-top: 2px;
}

.coolbox-modal legend {
  color: #8f8883;
  font-size: 9px;
  letter-spacing: 0.12em;
  padding-right: 8px;
  text-transform: uppercase;
}

.coolbox-status {
  background: #111010;
  border: 1px solid #3c3e41;
  border-radius: 8px;
  color: #cac6c3;
  margin: 0 0 14px;
  padding: 12px;
}

.coolbox-status-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.coolbox-status-head b {
  font-size: 11px;
}

.coolbox-status-head span {
  color: #a39d98;
  font-size: 9px;
  text-transform: uppercase;
}

.coolbox-status small {
  color: #a39d98;
  display: block;
  font-size: 9px;
  margin-top: 9px;
}

.coolbox-fans {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-top: 9px;
}

.coolbox-fans span {
  background: #191817;
  border: 1px solid #37393c;
  border-radius: 5px;
  color: #beb9b5;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  padding: 5px 6px;
}

.coolbox-fans b {
  color: #a19b96;
}

.coolbox-detected {
  border-color: #47494c !important;
  color: #bdb8b4 !important;
}

@media (max-width: 560px) {.coolbox-fans {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }}

/* ---- design tokens + theme variants ---- */
:root {
  --accent: #8a8680;
  --accent-2: #b0aaa3;
  --accent-soft: #36383b;
  --amber: #e0bf5a;
  --bg: #0a0c0e;
  --blue: #8a9098;
  --cyan: #8a969e;
  --green: #62c989;
  --lime: #56c07f;
  --line: #2e3238;
  --muted: #9aa1ab;
  --panel: #1a1c20;
  --panel-2: #16181c;
  --radius: 12px;
  --radius-sm: 8px;
  --red: #a51515;
  --sidebar: #0f1114;
  --text: #e8eaed;
  --violet: #9aa0a8;
  color-scheme: dark;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-weight: 400;
}

/* ---- app shell / layout ---- */
html,
body {
  -webkit-font-smoothing: auto;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-weight: 400;
  margin: 0;
  min-height: 100%;
  text-rendering: optimizeLegibility;
}

body.app-body {
  background: #0a0c0e;
}

.app-shell {
  background: #16181c;
  border: 1px solid #2a2d33;
  border-radius: 5px;
  box-shadow: 0 18px 60px #00000066;
  display: grid;
  grid-template-columns: 224px minmax(0,1fr);
  margin: 16px auto;
  max-width: 1280px;
  min-height: calc(100vh - 32px);
  overflow: hidden;
}

.sidebar {
  background: #1a1c1f;
  border-right: 1px solid #36383b;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 32px);
  padding: 0;
  position: sticky;
  top: 16px;
}

.brand {
  align-items: center;
  border-bottom: 1px solid #323437;
  display: flex;
  gap: 11px;
  height: 58px;
  margin: 0;
  padding: 0 14px;
}

.brand-mark {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  border-radius: 5px;
  box-shadow: 0 6px 18px #6a95af44;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  overflow: hidden;
  place-items: center;
  width: 30px;
}

.login-logo {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  border-radius: 5px;
  box-shadow: 0 6px 18px #6a95af44;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  margin-bottom: 24px;
  overflow: hidden;
  place-items: center;
  width: 30px;
}

.brand strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand small {
  color: #7d8696;
  display: block;
  font-size: 8px;
  letter-spacing: 0.12em;
  margin-top: 1px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #aba5a1;
  cursor: pointer;
  display: grid;
  font-size: 11px;
  font-weight: 500;
  grid-template-columns: 23px 1fr auto;
  padding: 9px 10px;
  text-align: left;
}

.nav-item span {
  color: #6f7888;
  font-size: 14px;
}

.nav-item:hover {
  background: #222427;
  color: #efedec;
}

.nav-item.active {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px #6a95af55;
  color: #ffffff;
}

.nav-item.active span {
  color: var(--accent-2);
}

.sidebar-foot {
  align-items: center;
  border-top: 1px solid #323437;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  gap: 9px;
  grid-template-columns: 1fr;
  margin: 0 10px 12px;
  padding: 15px;
  padding-top: 12px;
}

.workspace {
  background-color: #181a1d;
  background-image: none;
  padding: 0 22px 36px;
}

.workspace-head {
  align-items: center;
  background: #181a1d;
  border-bottom: 1px solid #323437;
  display: flex;
  height: 64px;
  justify-content: space-between;
  margin: 0 -22px;
  padding: 0 22px;
  position: relative;
  z-index: 70;
}

.global-search {
  align-items: center;
  background: #1f2124;
  border: 1px solid #3d3f42;
  border-radius: 5px;
  color: #7a8393;
  display: flex;
  height: 34px;
  margin: 0;
  width: min(480px, 54vw);
}

.global-search input {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 11px;
  height: 32px;
  margin: 0;
  padding: 7px 10px;
}

.icon-button {
  background: #1f2124;
  border-color: #3d3f42;
  border-radius: 5px;
  font-size: 21px;
  height: 44px;
  padding: 0;
  width: 44px;
}

.user-menu {
  position: relative;
  z-index: 80;
}

.user-pill {
  align-items: center;
  background: #1f2124;
  border: 1px solid #3a4a54;
  border-radius: 5px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font-size: 10px;
  gap: 10px;
  height: 52px;
  min-height: 38px;
  min-width: 210px;
  padding: 6px 12px 6px 8px;
  text-align: left;
}

.user-pill:hover,
.user-menu.open .user-pill {
  background: #333538;
  border-color: #6a95af88;
}

.user-pill i {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  border-radius: 5px;
  color: #ffffff;
  display: grid;
  flex: 0 0 36px;
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
  height: 36px;
  place-items: center;
  width: 36px;
}

.user-pill-text {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.user-pill-text b {
  font-size: 12px;
  font-weight: 700;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill-text small {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-caret {
  color: #9e9792;
  font-size: 11px;
  font-style: normal;
  margin-left: 2px;
}

.user-menu-dropdown[hidden] {
  display: none;
}

.user-menu-dropdown button,
.user-menu-dropdown a {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #efedec;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.user-menu-dropdown button:hover,
.user-menu-dropdown a:hover {
  background: #343639;
}

.user-menu-logout {
  border-radius: 0 0 5px 5px !important;
  border-top: 1px solid #3d3f42 !important;
  color: #fa8f94 !important;
  margin-top: 4px;
}

.page-heading {
  align-items: stretch;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 0;
  padding: 12px 0 14px;
  position: relative;
  z-index: 1;
}

.page-heading.page-heading-metrics-only {
  display: block;
  padding-left: 0;
  padding-right: 0;
}

.page-heading-main {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.page-heading-titles {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.page-heading h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.page-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
}

.eyebrow {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.page-heading-metrics {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  max-width: none;
  width: 100%;
}

.metric-bar {
  display: flex;
  gap: 2px;
  height: 3px;
  margin-bottom: 6px;
  overflow: hidden;
  width: 100%;
}

.metric-bar i {
  background: #2a3038;
  display: block;
  min-width: 2px;
}

.metric-bar i.ok { background: #3f9d62; }
.metric-bar i.warn { background: #e0a840; }
.metric-bar i.bad { background: #a51515; }
.metric-bar i.empty { flex: 1; background: #2a3038; }

.metric-values .metric-warm { color: #e0a840; }
.metric-values .metric-hash { color: #e8eaed; }
.metric-coin {
  align-items: center;
  background: #2a3038;
  border-radius: 2px;
  color: #c5cad1;
  display: inline-flex;
  font-size: 8px;
  font-weight: 700;
  height: 12px;
  justify-content: center;
  margin-right: 3px;
  width: 12px;
}

.page-heading-metrics .metric {
  align-items: flex-end;
  border-radius: 5px;
  gap: 4px;
  min-height: 0;
  padding: 8px 10px;
  text-align: right;
}

.page-heading-metrics .metric-values {
  justify-content: flex-end;
  width: 100%;
}

.page-heading-metrics .metric-values strong,
.page-heading-metrics .metric strong {
  font-size: 24px;
}

.page-heading-metrics .metric-values .metric-power {
  font-size: 22px;
  justify-content: flex-end;
}

.page-heading-metrics .metric small {
  font-size: 8px;
  text-align: right;
  width: 100%;
}

.theme-choice-grid {
  display: grid;
  gap: 8px;
  margin: 8px 20px 0;
}

.theme-choice {
  align-items: flex-start;
  background: #181a1d;
  border: 1px solid #3d3f42;
  border-radius: 5px;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.theme-choice:has(input:checked) {
  background: #212326;
  border-color: #6a95af;
}

.theme-choice input {
  margin: 3px 0 0;
  width: auto;
}

.theme-choice span {
  display: grid;
  gap: 3px;
}

.theme-choice b {
  font-size: 12px;
}

.theme-choice small {
  color: var(--muted);
  font-size: 10px;
}

html[data-theme="hive"] {
  --bg: #0a0c0e;
  --panel: #1a1c20;
  --panel-2: #16181c;
}

html[data-theme="contrast"] {
  --accent: #9aa0a8;
  --accent-2: #c2c6cc;
  --bg: #0e1013;
  --green: #5fcb8c;
  --muted: #b0b6be;
  --panel: #1a1c20;
  --text: #ffffff;
}

button {
  background: #222427;
  border: 1px solid #3e4043;
  border-color: #3a4850;
  border-radius: var(--radius-sm);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 8px 12px;
  transition: .15s;
}

button:hover {
  background: #3b3d40;
  border-color: #4a5a64;
}

.primary,
.link-button.primary {
  background: linear-gradient(135deg, #6a95af, #6a95af);
  border-color: #6a95af;
  color: #ffffff;
}

.primary:hover,
.link-button.primary:hover {
  background: linear-gradient(135deg, #6a96af, #79a0b7);
  border-color: #79a0b7;
}

.metric-grid {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
}

.metric {
  align-items: stretch;
  background: #1f2124;
  border: 1px solid #3b3d40;
  border-radius: 5px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-template-columns: 1fr auto;
  justify-content: space-between;
  min-height: 0;
  padding: 10px 12px 9px;
}

.metric:hover {
  border-color: #415058;
}

.metric-values {
  align-items: baseline;
  display: flex;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  gap: 8px;
  justify-content: space-between;
  min-height: 0;
}

.metric strong,
.metric-values strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.metric-values .metric-soft {
  color: #d3d0cd;
}

.metric-values .metric-alert {
  color: #a51515;
}

.metric-values .metric-lime {
  color: var(--lime);
}

.metric-values .metric-power {
  align-items: center;
  color: #dedcda;
  display: inline-flex;
  font-size: 17px;
  gap: 6px;
}

.metric-values .metric-power > i {
  color: var(--blue);
  font-size: 13px;
  font-style: normal;
}

.metric-values .metric-power em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.metric small {
  color: #7a8496;
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.activity-list {
  background: var(--panel);
  border: 1px solid #202225;
  border-color: #3b3d40;
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}

.driver-rig-card {
  background: var(--panel);
  border: 1px solid #1f2124;
  border-color: #3b3d40;
  border-radius: var(--radius);
  box-shadow: none;
  min-height: 128px;
  padding: 16px;
}

.vless-card {
  background: var(--panel);
  border-color: #3b3d40;
  border-radius: var(--radius);
  box-shadow: none;
}

.release-card {
  background: var(--panel);
  border-color: #3b3d40;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 20px;
}

/* ---- workers ---- */
.worker {
  background: #1f2124;
  border: 1px solid #202225;
  border-color: #3b3d40;
  border-radius: 5px;
  box-shadow: none;
  overflow: hidden;
}

.mode-control {
  background: #191817;
  border: 1px solid #202225;
  border-color: #3d3f42;
  border-radius: 5px;
  display: flex;
  margin: 0;
  padding: 3px;
}

.mode-control button {
  font-size: 9px;
  padding: 6px 9px;
}

.mode-control button.active {
  background: var(--accent-soft);
  color: #ffffff;
}

.mode-control button[data-mode="rig_control"].active {
  background: #3a4a54;
  color: #d4d1cf;
}

.worker-actions {
  align-items: center;
  background: #1c1e21;
  border-color: #3b3d40;
  border-top: 1px solid #1d1f22;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
}

.worker-actions button {
  border-radius: 5px;
  font-size: 10px;
  padding: 6px 9px;
  white-space: nowrap;
}

/* ---- bulk operations ---- */
.bulk-toolbar {
  align-items: center;
  background: #1c1e21;
  border: 1px solid #202225;
  border-color: #3b3d40;
  border-radius: 5px;
  display: flex;
  gap: 6px;
  margin: -10px 0 22px;
  margin-bottom: 14px;
  overflow: visible;
  padding: 9px 10px;
}

.bulk-toolbar .action-group {
  flex: 0 0 auto;
  position: relative;
}

.bulk-actions-desktop {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
}

.bulk-actions-mobile {
  display: none;
}

.action-menu-toggle {
  align-items: center;
  background: #202225;
  border: 1px solid #3a4a54;
  border-radius: 5px;
  color: #e0dedd;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  height: 34px;
  min-width: 0;
  padding: 0 10px;
}

.action-menu-toggle span {
  font-size: 14px;
  line-height: 1;
}

.action-menu-toggle small {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.action-group.open .action-menu-toggle,
.action-menu-toggle:hover {
  background: #343639;
  border-color: #6a95af88;
}

.action-menu[hidden] {
  display: none;
}

.action-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #efedec;
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.action-menu button i {
  color: #9e9792;
  display: inline-grid;
  font-size: 11px;
  font-style: normal;
  place-items: center;
  width: 18px;
}

.action-menu button:hover {
  background: #343639;
}

.action-menu button.danger,
.action-menu button.danger i {
  color: #fa8f94;
}

.status-ring {
  border: 2px solid var(--green);
  border-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #51ba7d18;
  flex: none;
  height: 10px;
  margin-top: 4px;
  width: 10px;
}

.offline .status-ring {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #f8545418;
}

.worker.offline {
  opacity: 1;
}

.worker.selected {
  border-color: #8a868088;
  box-shadow: 0 0 0 1px #8a868022;
}

.bulk-toolbar.is-active {
  background: #1d1f22;
  border-color: #8a868066;
}

.bulk-toolbar strong {
  color: var(--accent-2);
  font-size: 9px;
  min-width: 70px;
}

.rig-select input:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.gpu-area,
.gpu-area.hive-gpus {
  background: #181a1d;
  border: 0;
  border-top: 1px solid #242629;
}

/* ---- GPU table ---- */
.gpu-head {
  align-items: end;
  background: transparent;
  border-bottom: 1px solid #242629;
  color: #8a929c;
  display: grid;
  font-size: 9px;
  font-weight: 700;
  gap: 8px;
  grid-template-columns: minmax(320px, 1fr) 64px 40px 48px 48px 40px 48px;
  letter-spacing: 0.08em;
  padding: 3px 14px 2px;
  text-transform: uppercase;
}

.gpu-head > span {
  text-align: right;
}

.gpu-row {
  align-items: center;
  background: transparent;
  border-color: #191b1e;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  color: #eeedec;
  cursor: pointer;
  display: grid;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: minmax(320px, 1fr) 64px 40px 48px 48px 40px 48px;
  line-height: 1.15;
  min-height: 28px;
  padding: 3px 14px;
}

.gpu-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.gpu-row:hover {
  background: rgba(90, 130, 150, 0.08);
}

.gpu-row.is-open {
  align-items: start;
  padding-bottom: 5px;
  padding-top: 5px;
}

.gpu-id {
  align-items: center;
  display: grid;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  gap: 6px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: 0;
  text-align: left;
}

.gpu-row.is-open .gpu-id {
  align-items: start;
}

.gpu-index {
  background: transparent;
  border-radius: 0;
  color: #dedcda;
  display: grid;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 400;
  height: 23px;
  place-items: center;
  white-space: nowrap;
  width: auto;
  min-width: 40px;
  justify-items: start;
}

.gpu-meta {
  min-width: 0;
}

.gpu-title {
  align-items: baseline;
  cursor: pointer;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.gpu-title:hover b {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gpu-title b {
  color: #51ba7d;
  font-size: 12px;
  font-weight: 400;
}

.gpu-title b.igpu,
.igpu-row .gpu-title b {
  color: #e0b84a;
}

.gpu-title em {
  color: #9d9691;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gpu-detail,
.gpu-row .gpu-sub {
  display: none;
}

.gpu-row.is-open .gpu-detail {
  color: #8a929c;
  display: block;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpu-row.is-open .gpu-sub {
  display: block;
}

.gpu-row.is-open .gpu-title em.gpu-sub {
  display: inline;
}

.gpu-fan {
  align-items: center;
  display: flex;
  font-variant-numeric: tabular-nums;
  gap: 2px;
  justify-content: flex-end;
  text-align: right;
}

.gpu-icon-btn {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #9d9691;
  cursor: pointer;
  font-size: 12px;
  height: 22px;
  line-height: 1;
  padding: 0;
  width: 22px;
}

.gpu-icon-btn:hover {
  background: #343639;
  color: #e0dedd;
}

.miner-meta {
  background: transparent !important;
  background-color: transparent !important;
  border-block: 1px solid #202225;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--muted);
  display: grid;
  font-size: 10px;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin: 13px 0;
  padding: 10px 0;
  padding-left: 0;
  padding-right: 0;
}

.flight-card .coin {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #3f4144;
  border-color: transparent !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #cac6c4;
  font-size: 10px;
  padding: 4px 7px;
  padding-left: 0;
  padding-right: 0;
}

.telegram-discovery-note {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #3f4144;
  border-color: transparent !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #cac6c4;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 9px;
  padding-left: 0;
  padding-right: 0;
}

.nav-item:not(.active) b,
.install-chip:not(button) {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding-left: 0;
  padding-right: 0;
}

.panel {
  background: #1f2124;
  border-color: #3d3f42;
  border-radius: var(--radius);
  box-shadow: none;
}

.miner-card {
  background: #1f2124;
  border: 1px solid #222427;
  border-color: #3d3f42;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 16px;
}

.flight-card {
  background: #1f2124;
  border: 1px solid #232528;
  border-color: #3d3f42;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 17px;
}

/* ---- login ---- */
.login-body {
  background: radial-gradient(ellipse 70% 45% at 50% 0%, #36383b 0%, transparent 55%), #141619;
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-card {
  background: #1f2124;
  border: 1px solid #37393c;
  border-color: #3d3f42;
  border-radius: 5px;
  box-shadow: 0 24px 70px #00000088;
  padding: 30px;
  width: min(390px,calc(100vw - 30px));
}

.login-card .primary {
  background: linear-gradient(135deg, #6a95af, #6a95af);
  border-color: #6a95af;
}

/* ---- dialogs ---- */
.modal {
  background: #1c1e21;
  border: 1px solid #3b3d40;
  border-color: #3d3f42;
  border-radius: 5px;
  box-shadow: 0 30px 90px #000000bb;
  color: var(--text);
  padding: 0;
}

dialog.modal {
  background: #1c1e21;
  border-color: #3d3f42;
  border-radius: 5px;
}

.user-menu-dropdown {
  background: #1c1e21;
  border: 1px solid #3a4a54;
  border-radius: 5px;
  box-shadow: 0 16px 40px #00000099;
  display: grid;
  min-width: 220px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 90;
}

.action-menu {
  background: #1c1e21;
  border: 1px solid #3a4a54;
  border-radius: 5px;
  bottom: auto;
  box-shadow: 0 14px 36px #000000aa;
  display: grid;
  left: 0;
  min-width: 180px;
  padding: 5px;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 60;
}

[role="menu"] {
  border-radius: 5px;
}

.install-chip.current,
.status-badge.done,
.pool-ping.good {
  background: #16181b;
  border-color: #414346;
  color: #7acb9c;
}

.status-badge.failed,
.driver-state.missing,
.pool-ping.bad {
  background: #181a1d;
  border-color: #5c3237;
  color: #fa8f94;
}

.nav-item b {
  background: #ffffff14;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  color: #f4f3f2;
}

.release-tag {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #3f4144;
  border-color: transparent !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #7acb9c;
  font-size: 9px;
  height: max-content;
  padding: 4px 8px;
  padding-left: 0;
  padding-right: 0;
}

.install-chip {
  background: #181a1d;
  background-color: #1c1e21;
  border: 1px solid #3f4144;
  border-radius: 6px;
  box-shadow: none;
  color: #cac6c4;
  font-size: 9px;
  padding: 4px 7px;
}

.flight-oc span {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #3f4144;
  border-color: transparent !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #cac6c4;
  font-size: 9px;
  padding: 4px 6px;
  padding-left: 0;
  padding-right: 0;
}

.status-badge {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #3f4144;
  border-color: transparent !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #cac6c4;
  font-size: 9px;
  justify-self: start;
  padding: 3px 7px;
  padding-left: 0;
  padding-right: 0;
}

.driver-state {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #3f4144;
  border-color: transparent !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #7acb9c;
  font-size: 9px;
  padding: 3px 7px;
  padding-left: 0;
  padding-right: 0;
}

.demo-badge {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #3f4144;
  border-color: transparent !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #d0b47f;
  display: inline-block;
  font-size: 9px;
  font-style: normal;
  margin-left: 7px;
  padding: 2px 4px;
  padding-left: 0;
  padding-right: 0;
  vertical-align: 1px;
}

.pool-ping {
  background: #121417;
  background-color: #1c1e21;
  border: 1px solid #3f4144;
  border-radius: 6px;
  box-shadow: none;
  color: #cac6c4;
  font-size: 9px;
  padding: 4px 7px;
  white-space: nowrap;
}

.guide-safe {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #3f4144;
  border-color: transparent !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #7acb9c;
  font-size: 9px;
  padding: 5px 9px;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1100px) {.page-heading {
    align-items: stretch;
    flex-direction: column;
  }.page-heading-metrics {
    max-width: none;
  }.metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.gpu-head,
  .gpu-row {
    gap: 8px;
    grid-template-columns: minmax(200px, 1fr) 64px 40px 48px 48px 40px 48px;
  }}

@media (max-width: 1000px) {body.app-body {
    background: #141619;
  }.app-shell {
    border-radius: 0;
    margin: 0;
    min-height: 100vh;
  }.sidebar {
    height: 100vh;
    top: 0;
  }}

@media (max-width: 760px) {.user-pill-text b {
    max-width: 96px;
  }.page-heading-main {
    padding-right: 0;
  }}

/* ---- terminal ---- */
#terminal-dialog {
  height: min(82vh, 820px);
  max-width: none;
  overflow: hidden;
  width: min(1200px, calc(100% - 24px));
}

#terminal-container {
  background: #070606;
  border: 0;
  height: calc(100% - 77px);
  margin: 0;
  overflow: hidden;
  padding: 8px;
}

#terminal-container .xterm {
  height: 100%;
}

@media (max-width: 650px) {#terminal-dialog {
    height: 90vh;
    width: calc(100% - 10px);
  }}

.skadi-options[hidden] {
  display: none !important;
}

.controller-diagnostic {
  color: #b8b2ae;
  font-size: 10px;
  margin-top: 10px;
}

.controller-diagnostic pre {
  background: #090909;
  border-radius: 7px;
  color: #cfcbc8;
  margin: 8px 0 0;
  max-height: 190px;
  overflow: auto;
  padding: 9px;
  white-space: pre-wrap;
}

@media (max-width: 760px) {/* ---- mobile overrides ---- */
  html {
    -webkit-text-size-adjust: 100%;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    scroll-padding-top: 112px;
  }.view {
    max-width: 100%;
  }body {
    height: auto !important;
    max-width: 100%;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto;
    position: relative !important;
    touch-action: pan-y;
  }body.app-body {
    height: auto !important;
    max-width: 100%;
    overflow-y: visible !important;
  }.view.active {
    height: auto !important;
    overflow-y: visible !important;
  }summary {
    touch-action: manipulation;
  }button,
  .link-button {
    min-height: 42px;
    touch-action: manipulation;
  }input,
  select {
    font-size: 16px;
    min-height: 44px;
    padding: 11px 12px;
    touch-action: manipulation;
  }textarea {
    font-size: 16px;
    line-height: 1.45;
    min-height: 44px;
    padding: 11px 12px;
    touch-action: manipulation;
  }.app-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: auto !important;
    margin: 0;
    max-width: 100%;
    min-height: 100dvh;
    overflow-y: visible !important;
    width: 100%;
  }.sidebar {
    backdrop-filter: blur(14px);
    background: #080707fa;
    border: 0;
    border-bottom: 1px solid #1d1f22;
    box-shadow: 0 8px 24px #00000077;
    height: auto;
    padding: max(7px, env(safe-area-inset-top)) 0 7px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
  }.brand {
    border: 0;
    height: 39px;
    margin: 0;
    padding: 0 12px 7px;
  }.brand-mark {
    height: 28px;
    width: 28px;
  }.brand strong {
    font-size: 13px;
    letter-spacing: .04em;
  }.brand small {
    color: #9f9893;
    display: block;
    font-size: 7px;
    letter-spacing: .08em;
  }.main-nav {
    display: flex;
    flex-direction: row;
    gap: 6px;
    grid-template-columns: repeat(5,1fr);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 10px 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
    width: 100%;
  }.main-nav::-webkit-scrollbar,
  .bulk-toolbar::-webkit-scrollbar {
    display: none;
  }.nav-item {
    background: #11100f;
    border: 1px solid #1f2124;
    border-radius: 8px;
    color: #c1bcb9;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 10px;
    gap: 7px;
    justify-content: flex-start;
    line-height: 1;
    min-height: 42px;
    min-width: max-content;
    padding: 9px 11px;
    scroll-snap-align: center;
    touch-action: manipulation;
  }.nav-item span {
    font-size: 14px;
  }.nav-item b {
    display: inline-grid;
    font-size: 8px;
    min-width: 18px;
    padding: 2px 5px;
  }.nav-item.active {
    background: #466c82;
    border-color: #6a96af;
  }.sidebar-foot {
    display: none;
  }.workspace {
    height: auto !important;
    max-width: 100%;
    overflow-y: visible !important;
    padding: 0 10px calc(30px + env(safe-area-inset-bottom));
    width: 100%;
  }.workspace-head {
    background: #0a0a09;
    gap: 8px;
    height: 58px;
    margin: 0 -10px;
    padding: 9px 10px;
    position: relative;
  }.global-search {
    flex: 1 1 auto;
    height: 40px;
    min-width: 0;
    width: auto;
  }.global-search input {
    font-size: 16px;
    height: 38px;
    min-height: 38px;
    padding-left: 8px;
  }.head-actions {
    flex: 0 0 auto;
    gap: 5px;
  }.head-actions #updated {
    display: none;
  }.icon-button {
    height: 42px;
    min-height: 42px;
    width: 42px;
  }.user-menu {
    position: relative;
  }.user-pill {
    align-items: center;
    display: flex;
    height: 44px;
    min-height: 44px;
    min-width: 0;
    padding: 4px 8px 4px 6px;
    width: auto;
  }.user-pill-text {
    display: none;
  }.user-pill i,
  .user-caret {
    display: grid;
  }.user-menu-dropdown {
    left: auto;
    min-width: 200px;
    right: 0;
  }.page-heading {
    display: grid;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 12px 1px 12px;
  }.page-heading h1 {
    font-size: 20px;
    margin: 0;
  }.page-heading p {
    font-size: 10px;
    line-height: 1.4;
    max-width: 100%;
    white-space: normal;
  }.page-heading-metrics {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }.metric-grid {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
  }.metric {
    gap: 4px;
    min-height: 0;
    min-width: 0;
    padding: 9px 10px;
  }.metric-values {
    min-height: 0;
  }.metric-values strong,
  .metric strong {
    font-size: 16px;
  }.metric-values .metric-power {
    font-size: 15px;
  }.metric small {
    font-size: 8px;
    overflow-wrap: anywhere;
  }.bulk-toolbar > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }.bulk-toolbar button {
    min-height: 42px;
  }.bulk-select-all {
    align-items: center;
    min-height: 42px;
    padding: 0 8px;
  }.bulk-select-all input,
  .rig-select input {
    height: 15px;
    width: 15px;
  }.bulk-toolbar strong {
    font-size: 10px;
    min-width: max-content;
    padding: 0 5px;
  }.section-toolbar,
  .section-toolbar.compact {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
  }.section-toolbar > div:last-child:not(:first-child),
  .section-toolbar > button {
    max-width: 100%;
  }.section-toolbar button {
    min-height: 42px;
  }.worker-list {
    gap: 12px;
    height: auto !important;
    overflow-y: visible !important;
  }.worker {
    border-radius: 10px;
    max-width: 100%;
  }.pool-ping {
    min-height: 34px;
    padding: 7px 9px;
  }.mode-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-self: stretch;
    margin-top: 4px;
    width: 100%;
  }.mode-control button {
    font-size: 9px;
    min-height: 42px;
    padding: 8px 6px;
  }.worker-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
  }.worker-actions .action-spacer {
    display: none;
  }.worker-actions button {
    border-radius: 5px;
    min-height: 36px;
    min-width: 0;
    padding: 7px 8px;
    white-space: nowrap;
  }.bulk-toolbar {
    align-items: center;
    border-radius: 9px;
    display: flex;
    gap: 6px;
    margin: 0 -1px 15px;
    overflow: visible;
    padding: 8px;
    position: static;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    top: 4px;
    touch-action: pan-x;
    width: calc(100% + 2px);
    z-index: 8;
  }.bulk-toolbar .action-menu-toggle small {
    display: none;
  }.gpu-area {
    background: #181a1d;
    display: grid;
    gap: 6px;
    overflow: visible;
    padding: 8px;
  }.gpu-head {
    display: none;
    min-width: 680px;
  }.gpu-row {
    background: #151413;
    border: 1px solid #242629 !important;
    border-radius: 5px;
    display: grid;
    gap: 4px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    min-width: 0;
    padding: 8px;
  }.gpu-row > .gpu-id {
    display: grid !important;
    grid-column: 1 / -1;
  }.gpu-row > .gpu-metric:nth-child(3)::before {
    content: "TEMP";
  }.gpu-row > .gpu-fan {
    gap: 6px;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }.gpu-row > .gpu-fan::before {
    color: #968e88;
    content: "FAN / OC";
    display: block;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 2px;
    text-align: left;
    width: 100%;
  }.gpu-title {
    flex-wrap: wrap;
    white-space: normal;
  }.gpu-row.is-open .gpu-detail {
    white-space: normal;
  }.gpu-icon-btn {
    border: 1px solid #3d3f42;
    height: 36px;
    width: 36px;
  }.flight-catalog,
  .driver-rig-grid,
  .driver-catalog,
  .page-grid.miners-layout,
  .release-grid,
  .settings-layout,
  .telegram-compact-grid,
  .bots-form-flow,
  .bots-sections,
  .bots-field-grid,
  .bots-threshold-grid {
    grid-template-columns: minmax(0, 1fr);
  }.panel {
    max-width: 100%;
    padding: 14px;
  }.repo-editor,
  .miner-card,
  .flight-card,
  .release-card,
  .settings-card,
  .telegram-connect-card,
  .telegram-control-card {
    padding: 14px;
  }.panel-head,
  .miner-card-head,
  .flight-card-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }.panel-head > a {
    min-height: 36px;
    padding: 8px 0;
  }.miner-meta {
    grid-template-columns: minmax(0, 1fr);
  }.miner-actions,
  .form-actions,
  .telegram-inline-actions,
  .telegram-connect-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }.vless-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }.miner-actions > *,
  .form-actions > *,
  .vless-card-actions > *,
  .telegram-inline-actions > *,
  .telegram-connect-actions > * {
    width: 100%;
  }.flight-route {
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }.flight-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }.flight-actions select {
    font-size: 16px;
    grid-column: 1 / -1;
    min-height: 44px;
  }.flight-actions button {
    min-width: 0;
  }.driver-rig-card {
    min-height: 116px;
  }.driver-panel {
    padding: 14px;
  }.driver-row {
    gap: 8px;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    padding: 9px;
  }.driver-row button {
    min-height: 40px;
  }.vless-bulk-actions {
    align-items: stretch;
    flex-direction: column;
  }.vless-bulk-actions button {
    width: 100%;
  }.vless-card {
    gap: 10px;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px;
  }.vless-card > div:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
  }.vless-card-actions {
    grid-column: 1 / -1;
  }.version-pair {
    gap: 7px;
    margin: 15px 0;
  }.version-pair div {
    min-width: 0;
    padding: 10px;
  }.version-pair strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }.version-pair > span {
    padding-bottom: 13px;
  }.agent-release-row {
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
  }.agent-release-row .version-inline {
    grid-column: 1 / -1;
    grid-row: 2;
  }.agent-release-row .status-badge {
    grid-column: 2;
    grid-row: 1;
  }.agent-release-row button {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }.activity-list {
    background: transparent;
    border: 0;
    display: grid;
    gap: 8px;
    overflow: visible;
  }.activity-row,
  .activity-row.batch-row {
    background: #131211;
    border: 1px solid #232528;
    border-radius: 8px;
    display: grid;
    gap: 7px 10px;
    grid-template-columns: 1fr auto;
    padding: 12px;
  }.activity-row > * {
    display: block !important;
    min-width: 0;
  }.activity-row > b {
    align-self: center;
    grid-column: 1;
    grid-row: 1;
  }.activity-row > .status-badge {
    grid-column: 2;
    grid-row: 1;
  }.activity-row > span:nth-child(3) {
    color: #b8b2ae;
    font-size: 10px;
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
  }.activity-row > .command-output {
    background: #0d0d0c;
    border-radius: 6px;
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
    padding: 8px;
    white-space: normal;
  }.activity-row > small {
    grid-column: 1 / -1;
  }.form-grid.five,
  .form-grid.two,
  .telegram-switch-grid {
    grid-template-columns: minmax(0, 1fr);
  }.span-two,
  .form-grid .span-two {
    grid-column: auto;
  }label {
    font-size: 12px;
    line-height: 1.35;
  }.check-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }.check-list label,
  .check {
    align-items: center;
    min-height: 44px;
  }.check-list input,
  .check input,
  .telegram-notify-grid input,
  .telegram-switch-grid input {
    flex: 0 0 20px;
    height: 20px;
    width: 20px;
  }.owner-setting-row {
    align-items: flex-start;
    gap: 12px;
  }.switch {
    flex-basis: 48px;
    height: 28px;
    width: 48px;
  }.switch span::after {
    height: 20px;
    width: 20px;
  }.switch input:checked + span::after {
    transform: translateX(20px);
  }.telegram-token-field .token-tools,
  .telegram-time-row {
    grid-template-columns: minmax(0, 1fr);
  }.telegram-token-field .token-tools > *,
  .telegram-time-row > * {
    grid-column: 1;
  }.telegram-notify-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.modal,
  .small-modal,
  .editor-modal,
  .flight-modal {
    border-radius: 13px 13px 8px 8px;
    margin: auto 5px 5px !important;
    max-height: calc(100dvh - 10px) !important;
    max-width: none !important;
    overflow: auto;
    width: calc(100vw - 10px) !important;
  }.modal > header,
  .modal form > header {
    backdrop-filter: blur(12px);
    background: #141312f5;
    padding: 13px 14px;
    position: sticky;
    top: 0;
    z-index: 3;
  }.modal header h2 {
    font-size: 16px;
  }.modal header button {
    margin: -8px -8px 0 0;
    min-height: 44px;
    width: 44px;
  }.modal form > div:not(.form-grid),
  .small-modal .form-grid,
  .flight-modal .form-grid,
  .flight-modal h3 {
    margin-inline: 14px;
  }.notice,
  .json-import {
    margin-inline: 14px;
  }.modal form > footer,
  .modal > footer {
    backdrop-filter: blur(12px);
    background: #141312f5;
    border-top: 1px solid #323437;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    position: sticky;
    z-index: 3;
  }.modal form > footer button,
  .modal > footer button {
    min-height: 44px;
    width: 100%;
  }.editor-modal > textarea,
  #rig-conf-content {
    font-size: 14px;
    height: 52dvh;
    margin: 12px 14px;
    width: calc(100% - 28px);
  }.console-modal,
  #terminal-dialog {
    border-radius: 13px 13px 8px 8px;
    height: calc(100dvh - 10px) !important;
    margin: auto 5px 5px !important;
    max-height: calc(100dvh - 10px) !important;
    max-width: none !important;
    overflow: auto;
    width: calc(100vw - 10px) !important;
  }.console-modal pre {
    font-size: 11px;
    height: calc(100% - 70px);
    padding: 12px;
  }#terminal-container {
    height: calc(100% - 70px);
    padding: 4px;
  }.driver-confirm-body {
    padding: 13px 14px;
  }.coolbox-status-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }.coolbox-fans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.coolbox-modal {
    height: calc(100dvh - 10px) !important;
    overflow: hidden !important;
  }.coolbox-modal #coolbox-form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }.coolbox-modal .modal-scroll-body {
    margin: 0 !important;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 16px;
    touch-action: pan-y;
  }.coolbox-modal .modal-scroll-body > .form-grid {
    margin-inline: 14px;
  }.coolbox-modal .modal-scroll-body > .check {
    margin-inline: 14px;
  }.coolbox-modal .modal-scroll-body > .form-actions {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 14px;
  }.skadi-options[hidden] {
    display: none !important;
  }.coolbox-modal form > footer {
    margin: 0;
    position: relative;
  }.login-shell {
    min-height: 100dvh;
    padding: max(10px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
  }.login-card {
    border-radius: 15px;
    max-width: 420px;
    padding: 22px 17px;
    width: 100%;
  }.login-card h1 {
    margin-top: 13px;
  }.login-card button,
  .telegram-channel-link {
    min-height: 48px;
  }.toolbar-messages {
    max-width: 100%;
  }.toolbar-msg {
    white-space: normal;
  }}

@media (max-width: 390px) {.workspace {
    padding-inline: 8px;
  }.workspace-head {
    margin-inline: -8px;
    padding-inline: 8px;
  }.global-search input::placeholder {
    color: transparent;
  }.worker-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.telegram-notify-grid,
  .miner-actions,
  .form-actions,
  .vless-card-actions,
  .telegram-inline-actions,
  .telegram-connect-actions {
    grid-template-columns: minmax(0, 1fr);
  }.version-pair {
    grid-template-columns: minmax(0, 1fr);
  }.version-pair > span {
    display: none;
  }.driver-row {
    grid-template-columns: 31px minmax(0, 1fr);
  }.driver-row button {
    grid-column: 1 / -1;
    width: 100%;
  }}

@media (hover: none) and (pointer: coarse) {button:hover,
  .nav-item:hover,
  .telegram-channel-link:hover {
    filter: none;
  }button:active,
  .nav-item:active,
  .link-button:active {
    transform: scale(.98);
  }}

@keyframes view-in {
  from{opacity:.3;transform:translateY(3px) }
}

/* ---- RSC skin: horizon reference + hive worker card ---- */

/* buttons */
button {
  background: #27292c;
  border: 1px solid #35373a;
  border-radius: 8px;
  padding: 8px 13px;
}

button:hover {
  background: #303235;
  border-color: #444649;
}

.primary,
.link-button.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.primary:hover,
.link-button.primary:hover {
  background: var(--accent-2);
  border-color: transparent;
}

.danger {
  background: #292b2e;
  border-color: transparent;
  color: #f07b72;
}

.danger:hover {
  background: #333538;
  color: #ff9a92;
}

/* cards */
.panel,
.worker,
.metric,
.miner-card,
.flight-card,
.vless-card,
.release-card,
.driver-rig-card,
.settings-card {
  border-color: #2a2c2f;
}

.modal {
  border-radius: 14px;
}

/* nav */
.nav-item.active,
.nav-item.active span {
  background: var(--accent-soft);
  color: var(--accent-2);
}

/* mode switch */
.mode-control {
  background: #16181b;
  border-radius: 8px;
  gap: 2px;
  padding: 2px;
}

.mode-control button {
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.mode-control button.active {
  background: var(--accent-soft);
  color: var(--accent-2);
}

/* badges & chips */
.status-badge,
.release-tag,
.driver-state,
.demo-badge,
.install-chip,
.guide-safe {
  border: 0;
  border-radius: 999px;
  font-size: 9px;
  padding: 3px 9px;
}

.status-badge {
  background: #27292c;
  color: #b9b4b0;
}

.status-badge.done {
  background: #21382c;
  color: var(--green);
}

.status-badge.failed,
.status-badge.expired {
  background: #2b2d30;
  color: var(--red);
}

.status-badge.queued,
.status-badge.dispatched,
.status-badge.partial {
  background: #2a2c2f;
  color: var(--amber);
}

.install-chip.current {
  background: #21382c;
  color: var(--green);
}

.install-chip.outdated {
  background: #2a2c2f;
  color: var(--amber);
}

.release-tag,
.driver-state,
.demo-badge,
.guide-safe {
  background: #27292c;
  color: #b9b4b0;
}

.pool-ping {
  border-radius: 999px;
}

.pool-ping.good {
  background: #21382c;
  border-color: transparent;
  color: var(--green);
}

.pool-ping.warn {
  background: #2a2c2f;
  border-color: transparent;
  color: var(--amber);
}

.pool-ping.bad {
  background: #2b2d30;
  border-color: transparent;
  color: var(--red);
}

/* inputs */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background: #1c1e21;
  border: 1px solid #2f3134;
  border-radius: 8px;
}

/* VLESS layout: nothing may overflow the card */
.vless-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.vless-card > div {
  min-width: 0;
}

.vless-card h3,
.vless-card span,
.vless-card small {
  overflow-wrap: anywhere;
}

.vless-card-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* hive-style worker rows */
.worker {
  background: #212326;
  border: 1px solid #313336;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.worker + .worker {
  margin-top: 6px;
}

.worker-row {
  align-items: stretch;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: 18px 165px auto minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 8px 12px 4px;
}

.worker-row > .rig-select,
.worker-row > .worker-name,
.worker-row > .rig-state,
.worker-row > .worker-summary {
  align-self: center;
}

.worker-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.worker-summary-line {
  align-items: center;
  color: #c5cad1;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 400;
  gap: 8px;
  line-height: 1.3;
  min-width: 0;
}

.worker-summary-line .ws-title {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-summary-line .ws-shares {
  color: var(--muted);
}

.worker-summary-line .ws-hash {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.worker-summary-line .ws-pool {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-summary-line .pool-ping {
  background: transparent !important;
  border: none !important;
  color: #9ec4e0;
  font-size: 11px;
  font-weight: 400;
  min-height: 0;
  padding: 0;
}

.worker-summary-line .pool-ping.good { color: var(--green); }
.worker-summary-line .pool-ping.warn { color: var(--amber); }
.worker-summary-line .pool-ping.bad { color: var(--red); }

.worker-summary-line .ws-power {
  color: #ffae00;
  margin-left: auto;
  white-space: nowrap;
}

.worker-name {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  max-width: 165px;
  min-height: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 165px;
}

.worker-name:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rig-state {
  border-radius: 3px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  white-space: nowrap;
}

.rig-state.is-on {
  background: #1f3d2c;
  color: #7ee2a5;
}

.rig-state.is-off {
  background: #2f3134;
  color: #ff8f8f;
}

.rig-state-col {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.rig-uptime {
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  padding-left: 2px;
  white-space: nowrap;
}

.ws-miner-start {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.worker-uptime {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.worker-miner-brief {
  align-items: baseline;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.worker-miner-brief b {
  color: #e8e4df;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-miner-brief strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.gpu-squares {
  display: none;
}

.worker-row .gpu-stack-cards {
  align-items: stretch;
  align-self: stretch;
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  justify-content: flex-end;
  max-width: none;
  min-width: 0;
  width: auto;
  background: transparent;
  border: none;
  padding: 0;
}

.worker-row .gpu-mini {
  background: #2a2f36;
  border: none;
  border-radius: 2px;
  box-sizing: border-box;
  display: grid;
  flex: 0 0 34px;
  gap: 1px;
  grid-template-rows: 1fr auto 1fr;
  max-width: 34px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 2px 1px;
  text-align: center;
  width: 34px;
}

.worker-row .gpu-mini b,
.worker-row .gpu-mini em,
.worker-row .gpu-mini span {
  align-items: center;
  display: flex;
  font-size: 9px;
  font-weight: 400;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.worker-row .gpu-mini b,
.worker-row .gpu-mini span {
  color: #e8eaed;
  height: 100%;
}

.worker-row .gpu-mini em {
  border-radius: 3px;
  color: #1a1c1f;
  font-style: normal;
  font-weight: 400;
  min-height: 16px;
  padding: 2px 0;
}

.worker-row .gpu-mini em.f-ok { background: #5aa8d4; color: #1a1c1f; }
.worker-row .gpu-mini em.f-warm { background: #e0a840; color: #1a1c1f; }
.worker-row .gpu-mini em.f-high { background: #d45454; color: #1a1c1f; }
.worker-row .gpu-mini em.f-off { background: #2f343c; color: #8a9098; }

.gpu-squares i {
  background: #3f9d62;
  border-radius: 2px;
  display: block;
  height: 12px;
  width: 12px;
}

.gpu-squares i.warm {
  background: #c9a23a;
}

.gpu-squares i.bad {
  background: #d45454;
}

.gpu-squares i.empty {
  background: transparent;
  border: 1px solid #c98a3a;
  box-sizing: border-box;
}

.worker-kpi {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  white-space: nowrap;
}

.worker-la,
.worker-fan {
  color: var(--muted);
  font-size: 11px;
}

.worker-la b,
.worker-fan b {
  color: var(--text);
  font-weight: 700;
}

.worker-power {
  color: var(--amber);
  font-size: 12px;
}

.worker-power b {
  font-size: 13px;
  font-weight: 700;
}

.worker-hive {
  display: none !important;
}

.worker-hive-main,
.oc-block {
  display: none !important;
}

.worker-meta {
  background: #1e2228;
  border-top: none;
  margin-top: -2px;
  padding: 3px 12px 5px;
}

.worker-gpus {
  padding: 0 0 8px;
}

.oc-block {
  display: grid;
  gap: 4px;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 11px;
}

.oc-line {
  align-items: center;
  display: flex;
  gap: 8px;
}

.oc-line b {
  color: var(--green);
  flex: 0 0 42px;
  font-size: 11px;
  font-weight: 700;
}

.oc-line span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.oc-line i {
  color: #e8e4df;
  font-style: normal;
  min-width: 1.6em;
}

.gpu-stack-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
  justify-content: flex-end;
  align-self: stretch;
  min-height: 100%;
  padding: 10px;
  border: 1px solid #3a4048;
  border-radius: 8px;
  background: #2a2e35;
}

.gpu-mini {
  background: #343941;
  border: 1px solid #4a505a;
  border-radius: 4px;
  display: grid;
  gap: 2px;
  min-width: 56px;
  padding: 4px 6px;
  text-align: center;
}

.gpu-mini b {
  color: var(--text);
  font-size: 12px;
}

.gpu-mini.t-warm b { color: var(--amber); }
.gpu-mini.t-hot b { color: var(--red); }

.gpu-mini em {
  background: #5aa8d4;
  border-radius: 3px;
  color: #1a1c1f;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  padding: 1px 0;
}

.gpu-mini em.f-ok { background: #5aa8d4; color: #1a1c1f; }
.gpu-mini em.f-warm { background: #e0a840; color: #1a1c1f; }
.gpu-mini em.f-high { background: #d45454; color: #1a1c1f; }
.gpu-mini em.f-off { background: #2f343c; color: #8a9098; }

.gpu-mini span {
  color: #d8d3cd;
  font-size: 11px;
  font-weight: 600;
}

.worker-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
}

.worker-line {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 24px;
}

.wl-main {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.wl-main > b {
  font-size: 12px;
}

.wl-fs {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-dim {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.wl-label {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.wl-shares {
  color: var(--muted);
  display: flex;
  font-size: 10px;
  gap: 6px;
  white-space: nowrap;
}

.wl-shares b {
  color: var(--green);
}

.wl-shares i {
  font-style: normal;
}

.pool-ic {
  color: var(--accent-2);
  font-style: normal;
}

.hash-total {
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.gpu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
}

.gpu-chip {
  background: #2f3134;
  border-radius: 4px;
  color: #ece8e3;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  min-width: 34px;
  padding: 3px 5px;
  text-align: center;
}

.gpu-chip.t-ok {
  background: #244a33;
  color: #7ee2a5;
}

.gpu-chip.t-warm {
  background: #3d3f42;
  color: #e8c05a;
}

.gpu-chip.t-hot {
  background: #37393c;
  color: #f47070;
}

.gpu-chip.f-ok {
  background: #24435c;
  color: #79b7e8;
}

.gpu-chip.f-warm {
  background: #3d3f42;
  color: #e8c05a;
}

.gpu-chip.f-high {
  background: #37393c;
  color: #f47070;
}

.gpu-chip.f-off {
  background: #232322;
  color: #5f5d5a;
}

.gpu-chip.hash {
  color: #b9bec3;
}

.worker-meta {
  border-top: none;
  color: #c5cad1;
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 4px 12px;
  margin-top: -2px;
  padding: 3px 12px 5px;
  background: #1e2228;
}

.worker-meta b {
  color: #e8eaed;
  font-weight: 600;
  margin-right: 3px;
}

.worker-meta b.meta-label {
  color: #545c6a;
  font-weight: 400;
}

.worker-meta .meta-alert,
.worker-meta .meta-alert b {
  color: var(--red);
}

.worker-meta .meta-tail {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-left: auto;
}

.worker-meta .meta-os,
.worker-meta .meta-os b {
  color: #7eb8d8;
  font-weight: 400;
}

.worker-meta .meta-agent {
  color: #9aa3b0;
}

.worker-meta .meta-driver {
  color: #e0a840;
}

.worker-meta .meta-gpu,
.worker-meta .meta-gpu b {
  color: #84bf40;
  font-weight: 400;
}

.worker-meta .meta-power {
  align-items: center;
  color: #ffae00;
  display: inline-flex;
  gap: 3px;
  margin-left: 10px;
  white-space: nowrap;
}

.worker-meta .meta-bolt {
  color: #ffae00;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
}

.expand-toggle {
  margin-left: auto;
}

.expand-toggle.open {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-2);
}

.worker-detail {
  background: #191b1e;
  border-top: 1px solid #313336;
  cursor: default;
  margin-top: 0;
  padding: 12px;
}

.worker-detail .worker-actions {
  margin-top: 10px;
}

.worker.is-detail,
.worker.is-expanded {
  cursor: default;
}

.worker.is-detail .worker-row,
.worker.is-expanded .worker-row {
  cursor: pointer;
}

/* gpu table cells (expanded) */
.gpu-head,
.gpu-row {
  grid-template-columns: minmax(220px, 1.5fr) 70px 48px 70px 48px 52px 52px 44px 52px;
  align-items: center;
}

.gpu-head > span {
  text-align: center;
}

.gpu-head > span:first-child {
  text-align: left;
}

.gpu-head > span:last-child {
  text-align: right;
}

.gpu-row > .gpu-hash,
.gpu-row > .gpu-metric,
.gpu-row > .gpu-fanbar,
.gpu-row > .gpu-clock {
  text-align: center;
}

.gpu-hash b {
  color: var(--text);
  font-size: 11px;
}

.gpu-metric b {
  display: block;
  text-align: center;
}

.gpu-metric small,
.gpu-clock small {
  display: none !important;
}

.gpu-fanbar {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.gpu-fanbar i {
  background: linear-gradient(90deg, var(--accent) var(--fan, 0%), #2f3134 var(--fan, 0%));
  border-radius: 2px;
  display: block;
  height: 4px;
  width: 22px;
}

.gpu-fanbar b {
  font-size: 10px;
}

.gpu-clock b {
  display: block;
  font-size: 11px;
  text-align: center;
}

.worker-sys {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-top: 12px;
}

.worker-sys > div {
  background: #1c1e21;
  border: 1px solid #26282b;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.worker-sys b {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.worker-sys small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.worker-extfans {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* single-line sys data instead of big cards */
.worker-sys-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  grid-template-columns: none;
}

.worker-sys-line > span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.worker-sys-line > span b {
  color: #cac6c3;
  display: inline;
  font-size: 10px;
  font-weight: 600;
}

/* external fan / sensor mini-cards */
.xfan-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.xfan-card {
  align-items: center;
  background: #1c1e21;
  border: 1px solid #26282b;
  border-radius: var(--radius-sm);
  display: inline-flex;
  gap: 6px;
  padding: 5px 8px;
}

.xfan-card .xfan-ico {
  color: var(--green);
  font-style: normal;
  font-size: 11px;
}

.xtemp-card .xfan-ico {
  color: var(--amber);
  font-size: 10px;
}

.xfan-card b {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.xfan-card span {
  color: #cac6c3;
  font-size: 10px;
  font-weight: 600;
}

.xfan-card span small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
}

.xfan-card em {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.gpu-tag {
  background: #2c3a2e;
  border-radius: 4px;
  color: var(--green);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 7px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.worker.offline .worker-lines,
.worker.offline .worker-detail,
.worker.offline .worker-meta,
.worker.offline .worker-hive {
  opacity: 1;
}

@media (max-width: 1100px) {
  .gpu-head,
  .gpu-row {
    grid-template-columns: minmax(180px, 1.3fr) 64px 44px 64px 44px 48px 48px 40px 48px;
  }
}

@media (max-width: 900px) {
  .vless-card {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .vless-card-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .vless-card-actions button {
    flex: 1;
  }
}

@media (max-width: 1100px) {
  .worker-row {
    grid-template-columns: 18px 165px auto minmax(0, 1fr) auto;
  }

  .gpu-squares,
  .gpu-stack-cards,
  .worker-kpi {
    grid-column: 2 / -1;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .worker-row {
    grid-template-columns: 18px 165px minmax(0, 1fr);
    gap: 8px;
  }

  .worker-row .gpu-stack-cards {
    grid-column: 1 / -1;
  }

  .worker-summary,
  .gpu-squares,
  .gpu-stack-cards {
    grid-column: 1 / -1;
  }

  .worker-row .gpu-stack-cards {
    flex-wrap: nowrap;
    max-width: none;
  }

  .worker-summary-line .ws-power {
    margin-left: 0;
  }

  .worker-hive-main {
    grid-template-columns: 1fr;
  }

  .worker-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .gpu-stack-cards {
    justify-content: flex-start;
  }

  .gpu-chips {
    justify-content: flex-start;
  }

  .gpu-head {
    display: none;
  }

  .gpu-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }

  .gpu-row > .gpu-id {
    grid-column: 1 / -1;
  }

  .worker-sys {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .worker-sys b {
    font-size: 10px;
  }
}

/* VLESS: actions always on their own row (catalog column is narrow) */
#view-vless .vless-card {
  grid-template-columns: 32px minmax(0, 1fr);
}

#view-vless .vless-card-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

/* Feedback accepted todo tree */
.feedback-todo-summary {
  font-size: 12px;
  margin: 0 0 8px;
}

.feedback-todo-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.feedback-todo-branch {
  background: #121110;
  border: 1px solid #2a2c2f;
  border-radius: 4px;
}

.feedback-todo-branch-head {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 8px 10px;
  user-select: none;
}

.feedback-todo-branch-head::-webkit-details-marker {
  display: none;
}

.feedback-todo-branch-title {
  color: #e8e4e0;
  font-size: 12px;
  font-weight: 600;
}

.feedback-todo-branch-body {
  border-top: 1px solid #242628;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

.feedback-todo-section {
  background: #161514;
  border: 1px solid #2a2c2f;
  border-radius: 3px;
}

.feedback-todo-section-head {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
  padding: 6px 8px;
  user-select: none;
}

.feedback-todo-section-head::-webkit-details-marker {
  display: none;
}

.feedback-todo-section-title {
  color: #c8c4c0;
  font-size: 11px;
  font-weight: 650;
  text-transform: none;
}

.feedback-todo-section-body {
  border-top: 1px solid #242628;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

/* Feedback duplicate match card */
.feedback-match-card {
  background: #1a1816;
  border: 1px solid #3a342c;
  border-left: 3px solid #c4a35a;
  border-radius: 4px;
  margin: 8px 0 10px;
  padding: 8px 10px;
}
.feedback-match-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.feedback-match-head b {
  color: #e8d5a8;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.feedback-match-action,
.feedback-match-score {
  background: #2a261f;
  border-radius: 3px;
  color: #cfc6b4;
  font-size: 11px;
  padding: 1px 6px;
}
.feedback-match-score {
  color: #e8d5a8;
  font-weight: 600;
}
.feedback-match-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.feedback-match-title {
  color: #e8e4e0;
  font-size: 13px;
}
.feedback-match-excerpt {
  color: #b8b2a8;
  font-size: 12px;
  line-height: 1.35;
  margin: 4px 0 0;
  white-space: pre-wrap;
}
.feedback-match-meta {
  color: #8a8580;
  display: block;
  margin-top: 4px;
}
.feedback-match-incoming {
  border-top: 1px dashed #3a342c;
  margin-top: 8px;
  padding-top: 8px;
}
.feedback-match-incoming b {
  color: #d4c4a0;
  font-size: 12px;
}
.feedback-match-more {
  margin-top: 8px;
}
.feedback-match-more summary {
  color: #9a9692;
  cursor: pointer;
  font-size: 12px;
}
.feedback-match-alt {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 0;
}

/* Feedback queue: compact expandable rows */
.feedback-task-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.feedback-task-row {
  background: #141312;
  border: 1px solid #2a2c2f;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.feedback-task-row:hover {
  border-color: #3a3c3f;
}

.feedback-task-summary {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 14px 118px auto minmax(0, 1fr) minmax(140px, 0.7fr);
  min-height: 34px;
  padding: 5px 10px;
}

.feedback-task-chevron {
  border-right: 1.5px solid #9a9692;
  border-bottom: 1.5px solid #9a9692;
  display: inline-block;
  height: 6px;
  justify-self: center;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  width: 6px;
}

.feedback-task-row.is-open .feedback-task-chevron {
  transform: rotate(45deg);
}

.feedback-task-id {
  color: #e8e4e0;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.feedback-task-summary .status-badge {
  font-size: 9px;
  padding: 2px 6px;
}

.feedback-task-title {
  color: #d7d4d1;
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-task-meta {
  color: #8f8b87;
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-task-details {
  border-top: 1px solid #242628;
  display: none;
  gap: 8px;
  padding: 8px 12px 10px 34px;
}

.feedback-task-row.is-open .feedback-task-details {
  display: grid;
}

.feedback-task-text {
  color: #c9c5c1;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feedback-task-details small {
  color: #8f8b87;
  font-size: 10px;
}

.feedback-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feedback-task-actions button,
.feedback-task-actions .link-button {
  font-size: 10px;
  padding: 4px 8px;
}

.feedback-antispam-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
}

.feedback-antispam-block-row {
  background: #141312;
  border: 1px solid #2a2c2f;
  border-radius: 4px;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.feedback-antispam-block-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.feedback-antispam-block-meta {
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.feedback-antispam-block-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.feedback-antispam-block-actions button {
  font-size: 10px;
  padding: 4px 8px;
}

@media (max-width: 980px) {
  .feedback-task-summary {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }

  .feedback-task-id {
    grid-column: 2;
  }

  .feedback-task-summary .status-badge {
    grid-column: 3;
    grid-row: 1;
  }

  .feedback-task-title {
    grid-column: 2 / -1;
  }

  .feedback-task-meta {
    display: none;
  }

  .feedback-task-details {
    padding-left: 12px;
  }
}

.vless-bulk-actions {
  flex-wrap: wrap;
}

.vless-bulk-actions small {
  flex-basis: 100%;
}

.worker-sys small {
  overflow-wrap: anywhere;
}

.gpu-title b.igpu {
  color: var(--muted);
}

@media (max-width: 760px) {
  .worker-kpi {
    flex-basis: 100%;
    width: auto;
  }

  .worker-actions .mode-control {
    flex: 1 1 100%;
  }

  .mode-control button {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
    text-align: center;
  }

  .worker-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ---- anthracite / graphite global surfaces; GPU zone lighter ---- */
:root,
html[data-theme="hive"],
html[data-theme="contrast"] {
  --bg: #0a0c0e;
  --panel: #1a1c20;
  --panel-2: #16181c;
  --sidebar: #0f1114;
  --line: #1a1c20;
  --accent: #8a9098;
  --accent-2: #b0b6be;
  --accent-soft: #1a1c20;
  --blue: #8a9098;
  --cyan: #8a969e;
  --violet: #9aa0a8;
  --muted: #9aa1ab;
  --text: #e8eaed;
}

html, body, body.app-body, body.login-body {
  background: #0a0c0e !important;
  background-image: none !important;
  color: #e8eaed;
  font-family: "Open Sans", "Segoe UI", sans-serif !important;
  font-weight: 400 !important;
  -webkit-font-smoothing: auto !important;
}

button, input, textarea, select, .nav-item, .worker, .metric, .panel,
.gpu-row, .gpu-head, .worker-meta, .metric-values, .gpu-mini,
.worker-summary, .worker-name, .sidebar {
  font-family: "Open Sans", "Segoe UI", sans-serif !important;
  font-weight: 400 !important;
}

.app-shell,
.sidebar,
.workspace,
.workspace-head,
.page-heading,
.login-card,
.panel,
.metric,
.worker,
.worker-hive,
.worker-actions,
.worker-detail,
.bulk-toolbar,
.modal,
.activity-list,
.miner-card,
.flight-card,
.driver-rig-card,
.driver-panel,
.release-card,
.telegram-connect-card,
.telegram-control-card,
.settings-card,
.repo-editor,
.empty-block,
.toast,
.form-error,
.nav-item:hover,
.global-search,
.user-pill,
.gpu-area,
.hive-gpus,
.gpu-head,
.gpu-row,
.worker-main,
.mode-control,
.status-badge,
.install-chip,
.release-tag,
.demo-badge,
.pool-ping,
.rig-ips span,
.chain-mark:before {
  background-color: #16181c !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

button,
.icon-button,
.link-button,
input, textarea, select {
  background-color: #1e2228 !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.sidebar { background: #0f1114 !important; border-right-color: transparent !important; }
.workspace, .workspace-head { background: #0a0c0e !important; border-color: transparent !important; }
.app-shell { background: #16181c !important; border-color: transparent !important; }

.metric, .panel, .miner-card, .flight-card, .driver-rig-card, .release-card,
.worker, .login-card, .modal, .activity-list {
  background: #1a1c20 !important;
  border-color: transparent !important;
}

.worker-hive, .worker-actions, .bulk-toolbar {
  background: #16181c !important;
  border-color: transparent !important;
  border-top-color: transparent !important;
}

.primary, button.primary, .link-button.primary, .nav-item.active {
  background: #3a4554 !important;
  border-color: transparent !important;
  color: #eef1f5 !important;
}

button:hover,
.link-button:hover,
.icon-button:hover,
.nav-item:hover {
  background: #2a3038 !important;
  border-color: transparent !important;
  color: #f2f4f7 !important;
}

.primary:hover,
button.primary:hover,
.link-button.primary:hover,
.nav-item.active:hover {
  background: #4d5b6e !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

button:active,
.link-button:active,
.icon-button:active {
  background: #252a31 !important;
  border-color: transparent !important;
}

/* GPU stack in worker-row: no container fill; cards slightly lighter; normal weight */
.gpu-stack-cards {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.gpu-mini {
  background: #2a2f36 !important;
  border: none !important;
}

.gpu-mini:hover {
  background: #242930 !important;
  border: none !important;
}

.gpu-mini span { color: #e8eaed !important; }

.worker-row .gpu-stack-cards {
  align-items: stretch !important;
  align-self: stretch !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  height: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  width: auto !important;
}

.worker-row .worker-name {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 165px !important;
  min-height: 0 !important;
  padding: 0 !important;
  width: 165px !important;
}

.worker-row .worker-name:hover,
.worker-row .worker-name:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.worker-row {
  grid-template-columns: 18px 165px auto minmax(0, 1fr) auto !important;
}

.rig-state {
  display: inline-flex !important;
}

.worker-row .gpu-mini {
  display: grid !important;
  flex: 0 0 34px !important;
  gap: 1px !important;
  grid-template-rows: 1fr auto 1fr !important;
  max-width: 34px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 2px 1px !important;
  place-content: stretch !important;
  width: 34px !important;
}

.worker-row .gpu-mini b,
.worker-row .gpu-mini em,
.worker-row .gpu-mini span {
  align-items: center !important;
  display: flex !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  justify-content: center !important;
  overflow: hidden !important;
  width: 100% !important;
}

.worker-row .gpu-mini em {
  border-radius: 3px !important;
  font-weight: 400 !important;
  min-height: 16px !important;
  padding: 2px 0 !important;
}

.worker-row .gpu-mini em.f-ok { background: #5aa8d4 !important; color: #1a1c1f !important; }
.worker-row .gpu-mini em.f-warm { background: #e0a840 !important; color: #1a1c1f !important; }
.worker-row .gpu-mini em.f-high { background: #d45454 !important; color: #1a1c1f !important; }
.worker-row .gpu-mini em.f-off { background: #2f343c !important; color: #8a9098 !important; }

@media (max-width: 760px) {
  .worker-row .gpu-stack-cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    grid-column: 1 / -1 !important;
    justify-content: flex-start !important;
    max-width: 100% !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .worker-row .gpu-mini {
    flex: 1 1 0 !important;
    max-width: 34px !important;
    min-width: 0 !important;
    padding: 2px 0 !important;
    width: auto !important;
  }

  .worker-row .gpu-mini b,
  .worker-row .gpu-mini em,
  .worker-row .gpu-mini span {
    font-size: 8px !important;
  }

  .worker-row .gpu-mini em {
    min-height: 14px !important;
    padding: 1px 0 !important;
  }
}

.worker-meta .meta-tail {
  margin-left: auto !important;
}

.worker-meta .meta-os,
.worker-meta .meta-os b {
  color: #7eb8d8 !important;
  font-weight: 400 !important;
}

.worker-meta .meta-driver {
  color: #e0a840 !important;
}

.worker-meta .meta-agent {
  color: #9aa3b0 !important;
}

.worker-meta .meta-gpu,
.worker-meta .meta-gpu b {
  color: #84bf40 !important;
  font-weight: 400 !important;
}

.worker-meta .meta-power {
  color: #ffae00 !important;
}

.gpu-area, .hive-gpus, .gpu-head {
  background: #2a2e35 !important;
  border: none !important;
  border-color: transparent !important;
}

.gpu-row {
  background: #1a1e24 !important;
  border: none !important;
  border-color: transparent !important;
}

.gpu-row:nth-child(odd) {
  background: #171b21 !important;
}

.gpu-row:hover,
.gpu-row.is-open {
  background: #0e1116 !important;
  border: none !important;
}

.oc-block, .worker-lines {
  background: transparent !important;
  border-color: transparent !important;
}

.worker-meta {
  background: #1e2228 !important;
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
  margin-top: -2px !important;
  padding: 3px 12px 5px !important;
}

.worker-row {
  padding-bottom: 4px !important;
}

.rig-select {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
}

.rig-select input[type="checkbox"],
.bulk-select-all input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #0a0c0e !important;
  border: 1px solid #6a717a !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: block !important;
  flex: none !important;
  height: 15px !important;
  margin: 0 !important;
  min-height: 15px !important;
  min-width: 15px !important;
  opacity: 1 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  position: relative !important;
  transform: none !important;
  width: 15px !important;
  z-index: 5 !important;
}

.bulk-select-all {
  gap: 10px !important;
  padding: 0 12px 0 6px !important;
}

.bulk-select-all input[type="checkbox"] {
  margin: 0 2px 0 0 !important;
}

.rig-select input[type="checkbox"]:checked,
.bulk-select-all input[type="checkbox"]:checked {
  background: #5aa8d4 !important;
  border-color: #5aa8d4 !important;
  box-shadow: inset 0 0 0 2px #0a0c0e !important;
}

.rig-select input[type="checkbox"]:checked::after,
.bulk-select-all input[type="checkbox"]:checked::after {
  display: none !important;
}

@media (max-width: 760px) {
  .rig-select input[type="checkbox"],
  .bulk-select-all input[type="checkbox"] {
    height: 15px !important;
    min-height: 15px !important;
    min-width: 15px !important;
    transform: none !important;
    width: 15px !important;
  }

  .bulk-select-all {
    gap: 10px !important;
    padding: 0 12px 0 6px !important;
  }
}

.sidebar .nav-item,
.sidebar .nav-item:hover,
.sidebar .nav-item:active,
.sidebar .nav-item.active,
.sidebar .nav-item.active:hover {
  background: #0a0c0f !important;
  border: none !important;
  box-shadow: none !important;
  color: #c5cad1 !important;
}

.sidebar .nav-item:hover {
  background: #1c222a !important;
  color: #e8eaed !important;
}

.section-toolbar {
  padding-left: 10px !important;
}

.page-heading.page-heading-metrics-only {
  display: block !important;
  width: 100% !important;
}

.page-heading-main {
  display: none !important;
}

.metric-grid.page-heading-metrics {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  max-width: none !important;
  width: 100% !important;
}

.metric-grid.page-heading-metrics .metric {
  align-items: flex-end !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-align: right !important;
}

.metric-grid.page-heading-metrics .metric-values {
  flex-wrap: wrap !important;
  gap: 4px 6px !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  width: 100% !important;
}

.metric-grid.page-heading-metrics .metric strong,
.metric-grid.page-heading-metrics .metric-values strong {
  font-size: 22px !important;
  line-height: 1.1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.metric-grid.page-heading-metrics .metric-power {
  font-size: 20px !important;
  justify-content: flex-end !important;
  max-width: 100% !important;
}

.metric-grid.page-heading-metrics .metric small {
  overflow: hidden !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  width: 100% !important;
}

@media (max-width: 1200px) {
  .metric-grid.page-heading-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .metric-grid.page-heading-metrics .metric strong,
  .metric-grid.page-heading-metrics .metric-values strong {
    font-size: 18px !important;
  }

  .metric-grid.page-heading-metrics .metric-power {
    font-size: 16px !important;
  }
}

@media (max-width: 760px) {
  .page-heading.page-heading-metrics-only {
    padding: 10px 0 8px !important;
  }

  .metric-grid.page-heading-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .metric-grid.page-heading-metrics .metric {
    align-items: flex-start !important;
    min-height: 0 !important;
    padding: 8px 9px !important;
    text-align: left !important;
  }

  .metric-grid.page-heading-metrics .metric-values {
    justify-content: flex-start !important;
  }

  .metric-grid.page-heading-metrics .metric strong,
  .metric-grid.page-heading-metrics .metric-values strong {
    font-size: 15px !important;
  }

  .metric-grid.page-heading-metrics .metric-power {
    font-size: 14px !important;
    justify-content: flex-start !important;
  }

  .metric-grid.page-heading-metrics .metric small {
    font-size: 8px !important;
    text-align: left !important;
  }

  .metric-grid.page-heading-metrics .metric:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 390px) {
  .metric-grid.page-heading-metrics {
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
  }

  .metric-grid.page-heading-metrics .metric strong,
  .metric-grid.page-heading-metrics .metric-values strong {
    font-size: 13px !important;
  }

  .metric-grid.page-heading-metrics .metric-power {
    font-size: 12px !important;
  }

  .metric-grid.page-heading-metrics .metric-power em,
  .metric-grid.page-heading-metrics .metric-power > i {
    font-size: 10px !important;
  }
}

.metric-values .metric-alert,
.metric-grid.page-heading-metrics .metric-alert {
  color: #a51515 !important;
}

.metric-values .metric-warm {
  color: #e0a840 !important;
}

.hive-gpus .gpu-index,
.gpu-area .gpu-index {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  width: auto !important;
}

.hive-gpus .gpu-row,
.hive-gpus .gpu-row b,
.hive-gpus .gpu-row strong,
.hive-gpus .gpu-title b,
.hive-gpus .gpu-hash b,
.hive-gpus .gpu-metric b,
.hive-gpus .gpu-fanbar b,
.hive-gpus .gpu-clock b,
.gpu-area .gpu-row,
.gpu-area .gpu-row b,
.gpu-area .gpu-title b,
.gpu-area .gpu-hash b,
.gpu-area .gpu-metric b,
.gpu-area .gpu-fanbar b,
.gpu-area .gpu-clock b {
  font-weight: 400 !important;
}

.sidebar .nav-item.active,
.sidebar .nav-item.active:hover {
  background: #161a20 !important;
  color: #f2f4f7 !important;
}

.sidebar .nav-item span,
.sidebar .nav-item.active span,
.sidebar .nav-item:hover span,
.sidebar-telegram-link > span:first-child,
.global-search > span,
.metric-icon {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.worker-meta .meta-tail {
  gap: 0 8px !important;
}

.worker-meta .meta-power {
  color: #ffae00 !important;
  margin-left: 10px !important;
}

.worker-meta .meta-bolt {
  color: #ffae00 !important;
}

.worker-meta b.meta-label {
  color: #545c6a !important;
  font-weight: 400 !important;
}

.gpu-head,
.gpu-head > span {
  color: #8a929c !important;
  font-weight: 600 !important;
}

.gpu-title {
  cursor: pointer !important;
}

.gpu-row.is-open .gpu-detail {
  display: block !important;
  color: #8a929c !important;
}

/* Ready logo: logo/forpanel/panel.jpg */
.brand.brand-wordmark {
  align-items: center !important;
  display: flex !important;
  gap: 0 !important;
  height: auto !important;
  min-height: 64px !important;
  padding: 10px 12px !important;
}

.brand.brand-wordmark .brand-logo {
  display: block !important;
  height: auto !important;
  max-width: 198px !important;
  object-fit: contain !important;
  width: 100% !important;
}

.login-logo.login-logo-wordmark {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  margin: 0 auto 18px !important;
  max-width: 280px !important;
  overflow: visible !important;
  place-items: stretch !important;
  width: 100% !important;
}

.login-logo.login-logo-wordmark img {
  display: block !important;
  height: auto !important;
  object-fit: contain !important;
  width: 100% !important;
}

.gpu-index {
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .gpu-area,
  .gpu-area.hive-gpus {
    background: transparent !important;
    display: block !important;
    gap: 0 !important;
    overflow-x: auto !important;
    padding: 2px 0 4px !important;
  }

  /* name | HASH | TEMP | FAN | W | CORE | MEM | PL | cmds */
  .gpu-head,
  .gpu-row {
    grid-template-columns: minmax(72px, 1.2fr) minmax(0, 0.9fr) 28px 30px 26px 30px 30px 24px 36px !important;
    gap: 2px !important;
  }

  .gpu-head {
    align-items: end !important;
    background: transparent !important;
    border-bottom: 1px solid #242629 !important;
    color: #8a929c !important;
    display: grid !important;
    font-size: 7px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    min-width: 0 !important;
    padding: 2px 4px !important;
  }

  .gpu-head > .gpu-fan {
    display: block !important;
    text-align: right !important;
  }

  .gpu-row {
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.035) !important;
    display: grid !important;
    min-height: 24px !important;
    min-width: 0 !important;
    padding: 2px 4px !important;
  }

  .gpu-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.015) !important;
  }

  .gpu-row > .gpu-id {
    align-items: center !important;
    display: grid !important;
    gap: 3px !important;
    grid-column: auto !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    min-width: 0 !important;
  }

  .gpu-row > .gpu-fan {
    align-items: center !important;
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 1px !important;
    grid-column: auto !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .gpu-row > .gpu-fan::before {
    content: none !important;
    display: none !important;
  }

  .gpu-area .gpu-icon-btn,
  .hive-gpus .gpu-icon-btn {
    border: none !important;
    border-radius: 2px !important;
    color: #b0b6be !important;
    font-size: 11px !important;
    height: 18px !important;
    line-height: 18px !important;
    min-height: 18px !important;
    min-width: 16px !important;
    padding: 0 !important;
    width: 16px !important;
  }

  .gpu-detail,
  .gpu-index small,
  .gpu-title em.gpu-sub,
  .gpu-title .demo-badge {
    display: none !important;
  }

  .gpu-meta,
  .gpu-title {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .gpu-title {
    white-space: nowrap !important;
  }

  .gpu-title b {
    display: block !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .gpu-index {
    font-size: 9px !important;
    font-weight: 400 !important;
    height: auto !important;
    justify-items: start !important;
    min-width: 0 !important;
    place-items: start !important;
    white-space: nowrap !important;
    width: auto !important;
  }

  .gpu-hash,
  .gpu-metric,
  .gpu-fanbar,
  .gpu-clock {
    min-width: 0 !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  .gpu-hash b,
  .gpu-metric b,
  .gpu-clock b,
  .gpu-fanbar b {
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .gpu-fanbar {
    gap: 2px !important;
    justify-content: center !important;
  }

  .gpu-fanbar i {
    display: none !important;
  }

  .gpu-row > .gpu-metric:nth-child(3)::before {
    content: none !important;
    display: none !important;
  }

  .bulk-toolbar {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .bulk-actions-desktop {
    display: none !important;
  }

  .bulk-actions-mobile {
    display: block !important;
    margin-left: auto !important;
  }

  .bulk-actions-mobile .action-menu-toggle {
    height: 36px !important;
    min-width: 42px !important;
    padding: 0 12px !important;
  }

  .bulk-actions-mobile .action-menu-toggle small {
    display: inline !important;
    font-size: 11px !important;
  }

  .bulk-actions-mobile .action-menu,
  .bulk-mobile-menu {
    left: auto !important;
    max-height: min(70vh, 420px) !important;
    min-width: 220px !important;
    overflow-y: auto !important;
    right: 0 !important;
    z-index: 80 !important;
  }

  .bulk-divider {
    display: none !important;
  }

  .bulk-select-btn {
    height: 36px !important;
    padding: 0 10px !important;
  }
}

/* 0.12.38: короткий PCI под индексом GPU, offset-значки, кликабельный полётник */
.gpu-bus {
  color: var(--muted, #8b8b8b);
  display: block;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  opacity: .75;
}
.gpu-off {
  color: var(--amber, #f0a020);
  display: block;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
}
.worker-summary-line .ws-title-btn {
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.worker-summary-line .ws-title-btn:hover { color: var(--amber, #f0a020); }

/* ============================================================
   0.12.39 — полная стилистика главной на вторичных страницах
   ============================================================ */
#view-miners, #view-drivers, #view-flights, #view-wallets,
#view-activity, #view-vless, #view-bots, #view-feedback, #view-updates, #view-admin {
  font-size: 11px;
}

/* Кнопки — как .bulk-select-btn на главной */
#view-miners button, #view-drivers button, #view-flights button, #view-wallets button,
#view-activity button, #view-vless button, #view-bots button, #view-feedback button, #view-updates button, #view-admin button {
  background: #202225;
  border: 1px solid #3a4a54;
  border-radius: 5px;
  color: #e0dedd;
  font-size: 10px;
  font-weight: 650;
  padding: 6px 12px;
}
#view-miners button:hover, #view-drivers button:hover, #view-flights button:hover, #view-wallets button:hover,
#view-activity button:hover, #view-vless button:hover, #view-bots button:hover, #view-feedback button:hover, #view-updates button:hover, #view-admin button:hover {
  background: #343639;
  border-color: #6a95af88;
}
#view-miners button.primary, #view-drivers button.primary, #view-flights button.primary, #view-wallets button.primary,
#view-activity button.primary, #view-vless button.primary, #view-bots button.primary, #view-feedback button.primary, #view-updates button.primary, #view-admin button.primary {
  background: #6a95af;
  border-color: #6a95af;
  color: #fff;
}
#view-miners button.primary:hover, #view-drivers button.primary:hover, #view-flights button.primary:hover, #view-wallets button.primary:hover,
#view-activity button.primary:hover, #view-vless button.primary:hover, #view-bots button.primary:hover, #view-feedback button.primary:hover, #view-updates button.primary:hover, #view-admin button.primary:hover {
  background: #79a0b7;
  border-color: #79a0b7;
}
#view-miners button.danger, #view-drivers button.danger, #view-flights button.danger, #view-wallets button.danger,
#view-activity button.danger, #view-vless button.danger, #view-bots button.danger, #view-feedback button.danger, #view-updates button.danger, #view-admin button.danger {
  background: #1a1717;
  border-color: #6e4444;
  color: #ff9d9d;
}
#view-miners button.danger:hover, #view-drivers button.danger:hover, #view-flights button.danger:hover, #view-wallets button.danger:hover,
#view-activity button.danger:hover, #view-vless button.danger:hover, #view-bots button.danger:hover, #view-feedback button.danger:hover, #view-updates button.danger:hover, #view-admin button.danger:hover {
  background: #2a1d1d;
  border-color: #8a5555;
}

/* Инпуты — компактные, квадратные */
#view-miners input, #view-miners select, #view-miners textarea,
#view-drivers input, #view-drivers select, #view-drivers textarea,
#view-flights input, #view-flights select, #view-flights textarea,
#view-wallets input, #view-wallets select, #view-wallets textarea,
#view-activity input, #view-activity select, #view-activity textarea,
#view-vless input, #view-vless select, #view-vless textarea,
#view-bots input, #view-bots select, #view-bots textarea,
#view-feedback input, #view-feedback select, #view-feedback textarea,
#view-updates input, #view-updates select, #view-updates textarea,
#view-admin input, #view-admin select, #view-admin textarea {
  border: 1px solid #3b3d40;
  border-radius: 5px;
  font-size: 11px;
  padding: 7px 10px;
}

/* Лейблы — микро, как на главной */
#view-miners label, #view-drivers label, #view-flights label, #view-wallets label,
#view-vless label, #view-bots label, #view-feedback label, #view-updates label, #view-admin label {
  color: #a9a6a4;
  font-size: 10px;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

/* Заголовки карточек */
#view-vless .vless-card h3,
#view-bots .bots-section h3, #view-bots .telegram-connect-card h3, #view-bots .telegram-control-card h3,
#view-updates .release-card h3, #view-admin .settings-card h3, #view-admin .tester-item h3,
#view-drivers .driver-rig-card h3 {
  font-size: 12px;
}

/* Формы — плотнее */
#view-miners fieldset, #view-wallets fieldset, #view-admin fieldset, #view-vless fieldset {
  border: 1px solid #3b3d40;
  border-radius: 5px;
  margin-top: 10px;
  padding: 8px 10px;
}
#view-miners legend, #view-wallets legend, #view-admin legend, #view-vless legend {
  color: #a9a6a4;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 0 6px;
}
#view-miners .form-actions, #view-wallets .form-actions, #view-vless .form-actions,
#view-bots .form-actions, #view-feedback .form-actions, #view-admin .form-actions, #view-updates .form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Вкладки feedback не должны наследовать «кнопочный» фон вторичных страниц */
#view-feedback .bots-tab {
  background: transparent;
  border-color: transparent;
}
#view-feedback .bots-tab:hover {
  background: #1a1b1d;
  border-color: transparent;
}
#view-feedback .bots-tab.active {
  background: #1c1d1f;
  border-color: #3b3d40;
}
#view-miners .repo-url-row { gap: 8px; }
#view-miners .repo-url-row button { flex: none; }
#view-miners .json-import summary, #view-wallets .json-import summary {
  color: #96aec5;
  cursor: pointer;
  font-size: 10px;
}

/* Статус-пилюли — как .rig-state на главной (глобально) */
.status-badge {
  background: #2f3134 !important;
  border: 0 !important;
  border-radius: 3px !important;
  color: #cac6c4 !important;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 7px !important;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge.done { background: #1f3d2c !important; color: #7ee2a5 !important; }
.status-badge.failed { background: #3d2a2a !important; color: #ff8f8f !important; }
.status-badge.partial, .status-badge.queued, .status-badge.dispatched { background: #3d3320 !important; color: #f0c26b !important; }

/* Строки активности — чуть плотнее */
#view-activity .activity-row { padding: 6px 10px; }

/* agent-release-row: имя и статус рига не склеиваются */
.agent-release-row small { display: block; }

/* 0.12.42: ASIC-карточка (ICERIVER и др.) */
.asic-detail {
  display: grid;
  gap: 2px 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 8px 4px;
}
.asic-detail-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid #242628;
  font-size: 10px;
  padding: 4px 0;
}
.asic-detail-row span { color: #a9a6a4; }
.asic-detail-row b { color: #dedcda; font-weight: 600; text-align: right; }
.asic-kind-badge {
  border: 1px solid #3a4a54;
  border-radius: 3px;
  color: #96aec5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 7px;
}

/* 0.12.44: ASIC-зона — группы по алгоритму, карточки 3 в ряд */
.asic-zone:empty { display: none; }
.asic-group { margin-top: 14px; }
.asic-group-head {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.asic-group-head small { color: #a9a6a4; font-size: 10px; }
.asic-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1400px) { .asic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .asic-grid { grid-template-columns: 1fr; } }
.asic-card { cursor: pointer; padding: 10px 12px; }
.asic-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.asic-lines { display: grid; gap: 2px; font-size: 11px; }
.asic-line {
  align-items: baseline;
  display: flex;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asic-line .ws-title { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.asic-label { color: #a9a6a4; }
.asic-hash {
  color: #7ee2a5;
  font-size: 15px;
  font-weight: 800;
  margin-left: auto;
}
.asic-fans {
  color: #96aec5;
  display: flex;
  gap: 12px;
  font-size: 10px;
  margin-top: 4px;
}

/* ---- activity journal filters + recent messages ---- */
.activity-filters {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(120px, 1fr));
  margin: 0 0 12px;
}

.activity-filters label {
  display: grid;
  font-size: 10px;
  gap: 4px;
  margin: 0;
}

.activity-filters select,
.activity-filters input {
  font-size: 11px;
  margin: 0;
  min-height: 34px;
  padding: 7px 9px;
}

.activity-filter-search {
  position: relative;
}

.activity-filter-search > span {
  color: var(--muted);
  left: 10px;
  pointer-events: none;
  position: absolute;
  top: 28px;
}

.activity-filter-search input {
  padding-left: 28px;
}

.activity-feed {
  background: #101214;
  border: 1px solid #22262b;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 10px;
}

.activity-feed-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activity-feed-item {
  background: #15181c;
  border-left: 2px solid #314a59;
  border-radius: 5px;
  padding: 7px 9px;
}

.activity-feed-item.failed,
.activity-feed-item.expired { border-left-color: #8a3d4a; }
.activity-feed-item.done { border-left-color: #2f6b4a; }
.activity-feed-item.queued,
.activity-feed-item.dispatched,
.activity-feed-item.partial { border-left-color: #8a6a2e; }

.activity-feed-item > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.activity-feed-item b { font-size: 11px; }
.activity-feed-item span { color: var(--muted); font-size: 10px; }
.activity-feed-item small { color: #6a8090; font-size: 10px; margin-left: auto; }
.activity-feed-item p {
  color: #9eb6c6;
  font: 11px/1.4 ui-monospace, Consolas, monospace;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-feed-empty {
  color: var(--muted);
  font-size: 11px;
  padding: 6px 2px;
}

/* ---- driver install progress modal ---- */
.driver-progress-modal {
  height: min(720px, 92vh);
  width: min(920px, 96vw);
}

.driver-progress-meta {
  border-bottom: 1px solid #212326;
  display: grid;
  gap: 8px;
  padding: 12px 20px;
}

.driver-progress-bar-wrap {
  align-items: center;
  display: flex;
  gap: 12px;
}

.driver-progress-bar {
  background: #1a1d21;
  border: 1px solid #2a3036;
  border-radius: 999px;
  flex: 1;
  height: 8px;
  overflow: hidden;
}

.driver-progress-bar > i {
  background: linear-gradient(90deg, #3d6f8a, #6aa8c4);
  display: block;
  height: 100%;
  transition: width .35s ease;
  width: 0;
}

#driver-progress-pct {
  color: #9eb6c6;
  font: 11px ui-monospace, monospace;
  min-width: 3.5ch;
}

.driver-progress-log {
  background: #070706;
  color: #81a6bb;
  flex: 1;
  font: 12px/1.5 ui-monospace, Consolas, monospace;
  height: calc(100% - 170px);
  margin: 0;
  overflow: auto;
  padding: 14px 16px;
  white-space: pre-wrap;
}

.driver-progress-log .ok { color: #7ee2a5; }
.driver-progress-log .err { color: #fba0a9; }
.driver-progress-log .dim { color: #6a8090; }

.driver-progress-modal footer {
  border-top: 1px solid #212326;
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 16px;
}

@media (max-width: 900px) {
  .activity-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .activity-filters {
    grid-template-columns: 1fr;
  }
  .section-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .toolbar-right {
    justify-content: stretch;
  }
  .toolbar-messages {
    max-width: none;
    width: 100%;
  }
}
