:root {
  --bg: #0e141c;
  --ink: #f3f0ea;
  --muted: #a8b0bc;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(14, 20, 28, 0.78);
  --ok: #34d399;
  --bad: #f87171;
  --font-display: "Oswald", "Cairo", sans-serif;
  --font-body: "Cairo", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.login-body { min-height: 100vh; }
.login-hero {
  min-height: 100vh;
  background:
    linear-gradient(
      90deg,
      rgba(8, 12, 18, 0.12) 0%,
      rgba(8, 12, 18, 0.18) 38%,
      rgba(8, 12, 18, 0.55) 68%,
      rgba(8, 12, 18, 0.82) 100%
    ),
    var(--truck) left center / cover no-repeat;
  display: grid;
  align-items: stretch;
}
.login-scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 45%, rgba(8, 12, 18, 0.35), transparent 42%);
}
.login-frame {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 48px 28px 56px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
}
.login-side {
  width: min(400px, 100%);
  display: grid;
  gap: 22px;
}
.login-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}
.tagline {
  max-width: 22rem;
  color: #d7dde6;
  font-size: 1.02rem;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.login-card {
  background: rgba(10, 14, 20, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 28px 24px 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.login-card h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.login-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}
.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}
.login-card button, .btn, .admin-form button, .inline button {
  border: 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1a1208;
  font-weight: 800;
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font-body);
}
.login-card button:hover, .btn:hover { filter: brightness(1.05); }
.hint { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }
.error {
  margin: 0;
  padding: 10px 12px;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.app-body { min-height: 100vh; background:
  radial-gradient(ellipse at top left, rgba(217, 119, 6, 0.12), transparent 40%),
  linear-gradient(180deg, #121925, #0b1017 55%, #090d13);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1.35rem;
}
.brand-sub { color: var(--muted); margin-right: 10px; font-size: 0.85rem; }
.topbar nav { display: flex; gap: 18px; }
.wrap { width: min(1100px, 100%); margin: 0 auto; padding: 28px 20px 60px; }
.tool-page .wrap.tool-wrap { padding: 14px 16px 28px; width: min(1280px, 100%); }
.welcome h1 { margin: 0 0 8px; font-size: 2rem; }
.status { margin: 0; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
.programs { margin-top: 34px; }
.programs h2, .panel h2 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.program, .panel {
  border: 1px solid var(--line);
  background: rgba(18, 24, 34, 0.75);
  padding: 22px;
}
.program-badge {
  display: inline-block;
  color: #1a1208;
  background: var(--accent-2);
  font-weight: 800;
  padding: 4px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.program h3 { margin: 12px 0 4px; font-size: 1.5rem; }
.program-sub { color: var(--muted); margin: 0 0 10px; }
.btn {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none !important;
}
.btn.disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
}

/* —— Dashboard (home) —— */
.dash-body {
  position: relative;
  overflow-x: hidden;
  background: #070a0f;
}
.dash-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.28) 0%, rgba(7, 10, 15, 0.45) 45%, rgba(7, 10, 15, 0.78) 100%),
    linear-gradient(90deg, rgba(7, 10, 15, 0.55) 0%, rgba(7, 10, 15, 0.2) 48%, rgba(7, 10, 15, 0.5) 100%),
    radial-gradient(ellipse 55% 40% at 82% 12%, rgba(245, 158, 11, 0.18), transparent 58%),
    url("/static/img/md1-bg-sway-tway.jpg") center 38% / cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.06) brightness(0.95);
}
.dash-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}
.dash-topbar {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(9, 13, 19, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  animation: dash-fade-down 0.55s ease both;
}
.dash-nav .nav-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.dash-nav .nav-link:hover { opacity: 1; color: var(--accent-2); text-decoration: none; }
.dash-nav .nav-link-muted { color: var(--muted); font-weight: 600; }
.dash-wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  padding-top: 36px;
  padding-bottom: 72px;
}
.dash-hero {
  max-width: 36rem;
  animation: dash-fade-up 0.65s ease 0.05s both;
}
.dash-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  letter-spacing: 0.05em;
  line-height: 0.92;
  text-transform: uppercase;
}
.dash-welcome {
  margin: 14px 0 0;
  color: #e8edf4;
  font-size: 1.15rem;
  font-weight: 700;
}
.dash-status {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(8px);
  max-width: 28rem;
}
.dash-status strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.98rem;
}
.dash-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.dash-status-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 12px currentColor;
}
.dash-status.is-ok { border-color: rgba(52, 211, 153, 0.28); }
.dash-status.is-ok .dash-status-dot { background: var(--ok); color: var(--ok); }
.dash-status.is-ok strong { color: #a7f3d0; }
.dash-status.is-warn { border-color: rgba(251, 191, 36, 0.38); }
.dash-status.is-warn .dash-status-dot { background: #fbbf24; color: #fbbf24; }
.dash-status.is-warn strong { color: #fde68a; }
.dash-status.is-bad { border-color: rgba(248, 113, 113, 0.32); }
.dash-status.is-bad .dash-status-dot { background: var(--bad); color: var(--bad); }
.dash-status.is-bad strong { color: #fecaca; }

.dash-tools {
  margin-top: 40px;
  animation: dash-fade-up 0.7s ease 0.16s both;
}
.dash-tools + .dash-tools {
  margin-top: 32px;
}
.dash-tools-head {
  margin-bottom: 14px;
  max-width: 34rem;
}
.dash-tools-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--accent-2);
  font-weight: 600;
}
.dash-tools-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.dash-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dash-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(245, 158, 11, 0.07), transparent 42%),
    rgba(14, 20, 28, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  overflow: hidden;
}
.dash-tool.is-locked {
  opacity: 0.78;
}
.dash-tool.has-visual {
  display: grid;
  /* RTL: first col (copy) on the right, second (image) fills the empty left */
  grid-template-columns: minmax(0, 1.15fr) minmax(170px, 0.95fr);
  gap: 8px 18px;
  align-items: stretch;
  min-height: 236px;
  padding: 0;
}
.dash-tool-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
  margin: 0;
  padding: 18px 12px;
  background:
    radial-gradient(ellipse at 45% 55%, rgba(245, 158, 11, 0.22), transparent 58%),
    linear-gradient(160deg, rgba(28, 36, 48, 0.55), rgba(8, 12, 18, 0.9));
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
}
.dash-tool-visual img {
  max-height: 190px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.25s ease;
}
.dash-tool.is-wide-visual {
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 1.35fr);
  min-height: 260px;
}
.dash-tool.is-wide-visual .dash-tool-visual {
  min-height: 240px;
  padding: 10px 8px;
}
.dash-tool.is-wide-visual .dash-tool-visual img {
  max-height: 235px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}
.dash-tool-copy {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  min-width: 0;
}
.dash-tool.has-visual .dash-tool-top {
  margin-bottom: 12px;
}
.dash-tool.has-visual .dash-tool-btn {
  margin-top: auto;
}
.dash-tool:hover .dash-tool-visual img {
  transform: translateY(-4px) scale(1.04);
}
.dash-tool:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  background:
    linear-gradient(165deg, rgba(245, 158, 11, 0.12), transparent 48%),
    rgba(16, 22, 32, 0.88);
}
.dash-tool.is-locked:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 700px) {
  .dash-tool.has-visual {
    grid-template-columns: 1fr;
  }
  .dash-tool.is-wide-visual {
    grid-template-columns: 1fr;
  }
  .dash-tool-visual {
    min-height: 160px;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .dash-tool.is-wide-visual .dash-tool-visual {
    min-height: 200px;
  }
  .dash-tool.is-wide-visual .dash-tool-visual img {
    max-height: 190px;
  }
  .dash-tool-visual img { max-height: 140px; }
}
.dash-tool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dash-tool-badge {
  display: inline-block;
  color: #1a1208;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  font-weight: 800;
  padding: 5px 11px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.dash-tool-lock {
  font-family: var(--font-display);
  color: #fecaca;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 4px 8px;
}
.dash-tool h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}
.dash-tool-sub {
  margin: 8px 0 0;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 700;
}
.dash-tool-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
  flex: 1;
}
.dash-tool-btn {
  margin-top: 18px;
  align-self: flex-start;
  min-width: 9.5rem;
  text-align: center;
}

@keyframes dash-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dash-fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .dash-tool-grid { grid-template-columns: 1fr; }
  .dash-wrap { padding-top: 28px; }
  .dash-brand { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .dash-tool { min-height: 0; }
}

.flash {
  padding: 12px 14px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.admin-form label { display: grid; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.admin-form input, .inline input {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.inline { display: flex; gap: 6px; align-items: center; }
.inline input { width: 64px; }

.tool-wrap { width: min(1280px, 100%); }
.tool-page .tool-welcome {
  margin-bottom: 0;
  padding-bottom: 0;
}
.tool-page .tool-welcome h1 {
  margin: 0 0 4px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.tool-page .tool-welcome .hint {
  margin: 0;
  font-size: 0.9rem;
}
.tool-panel { margin-top: 12px; display: grid; gap: 12px; }
.upload-box {
  border: 1px dashed var(--line);
  background: rgba(18, 24, 34, 0.65);
  padding: 22px 18px;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, max-height .2s ease, padding .2s ease, opacity .2s ease;
}
.upload-box.drag {
  border-color: var(--accent-2);
  background: rgba(217, 119, 6, 0.12);
}
.upload-box.is-collapsed {
  display: none;
}
.upload-title { margin: 0 0 12px; font-size: 1.08rem; font-weight: 700; }
.workspace {
  border: 1px solid var(--line);
  background: rgba(18, 24, 34, 0.75);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 12, 18, 0.45);
  border-radius: 12px;
  position: sticky;
  top: 8px;
  z-index: 5;
  backdrop-filter: blur(8px);
}
.workspace-toolbar .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  flex: 1 1 auto;
  min-width: 0;
}
.workspace-toolbar .meta-row > div {
  min-width: 0;
}
.workspace-toolbar .actions {
  margin: 0;
  flex: 0 0 auto;
}
.workspace-toolbar .actions .btn,
.workspace-toolbar .actions .btn-ghost {
  padding: 10px 14px;
  font-size: 0.92rem;
}
.meta-k {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.gauge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.gauge-grid.dual {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.temp-gauges-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.temp-note {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  border-radius: 8px;
}
.temp-gauges-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
.gauge-grid.dual .temp-gauges-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gauge-badge.temp-on { background: #22c55e; color: #052e16; }
.gauge-badge.temp-off { background: #38bdf8; color: #082f49; }
.gauge-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px 12px 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.10), transparent 48%),
    linear-gradient(180deg, rgba(24, 32, 44, 0.92), rgba(8, 12, 18, 0.88));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.gauge-card:not(.disabled):hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(56, 189, 248, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gauge-card.disabled { opacity: 0.55; }
.gauge-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  min-height: 28px;
  flex: 0 0 auto;
}
.gauge-badge {
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
  color: #082f49;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
}
.gauge-badge.temp { background: linear-gradient(180deg, #6ee7b7, #22c55e); color: #052e16; }
.gauge-badge.temp-on { background: linear-gradient(180deg, #6ee7b7, #22c55e); color: #052e16; }
.gauge-badge.temp-off { background: linear-gradient(180deg, #7dd3fc, #38bdf8); color: #082f49; }
.gauge-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.08rem;
  font-weight: 600;
}
.gauge-stage {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 300 / 225;
  height: auto;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.gauge-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.gauge-canvas:active { cursor: grabbing; }
.gauge-card.disabled .gauge-canvas { cursor: not-allowed; }
.gauge-readout {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.95rem;
  letter-spacing: 0.04em;
  min-height: 38px;
  line-height: 38px;
  flex: 0 0 auto;
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}
.gauge-readout span { color: var(--muted); font-size: 0.88rem; letter-spacing: 0.08em; }
.gauge-current {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  min-height: 22px;
  flex: 0 0 auto;
}
.gauge-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  flex: 0 0 auto;
}
.gauge-controls input[type="number"] {
  width: 88px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(8, 12, 18, 0.75);
  color: var(--ink);
  padding: 8px 6px;
}
.gauge-step {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(36, 48, 64, 0.95), rgba(15, 20, 28, 0.95));
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.gauge-step:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  transform: translateY(-1px);
}
.gauge-step:disabled { opacity: 0.4; cursor: not-allowed; }
.gauge-card .hint {
  display: none;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-ghost {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}

/* Breaker switches — compact row above gauges */
.breaker-row {
  margin-top: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .breaker-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .breaker-row {
    grid-template-columns: 1fr;
  }
}
.scr-breaker-wrap {
  margin-top: 12px;
}
.scr-breaker-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent 55%),
    rgba(14, 20, 28, 0.72);
}
.scr-breaker-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.scr-breaker-copy h3 {
  margin: 0;
  font-size: 0.98rem;
}
.scr-file-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.scr-breaker {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: grab;
  flex: 0 0 auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.scr-breaker:active,
.scr-breaker.is-dragging {
  cursor: grabbing;
}
.scr-breaker:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.scr-breaker-card.is-unavailable {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(14, 20, 28, 0.45);
}
.md1-fault-card {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  align-items: start;
}
.md1-fault-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  min-width: 0;
}
.md1-fault-table-wrap {
  max-height: 360px;
}
.md1-fault-table-wrap td,
.md1-fault-table-wrap th {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}
.md1-fault-table-wrap th.md1-fault-desc,
.md1-fault-table-wrap td.md1-fault-desc {
  font-family: inherit;
  white-space: normal;
  min-width: 160px;
  max-width: 320px;
}
.md1-fault-table-wrap td.md1-fault-desc.is-empty {
  color: var(--muted);
  font-style: italic;
}
.breaker-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.brk-housing {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 62px;
  padding: 6px 5px 8px;
  border-radius: 10px;
  border: 2px solid #4a5563;
  background:
    linear-gradient(180deg, #2a3340 0%, #151b24 55%, #0c1016 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.35);
}
.brk-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.4;
  transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
.brk-label.on { color: #86efac; }
.brk-label.off { color: #fda4af; }
.scr-breaker.is-on .brk-label.on {
  opacity: 1;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
}
.scr-breaker.is-off .brk-label.off {
  opacity: 1;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.45);
}
.brk-well {
  position: relative;
  width: 42px;
  height: 64px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background:
    radial-gradient(ellipse at 50% 40%, #3a4554 0%, #1a222c 70%, #0d1218 100%);
  box-shadow:
    inset 0 8px 14px rgba(0, 0, 0, 0.55),
    inset 0 -4px 8px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.brk-paddle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 52px;
  margin-top: -26px;
  transform: translateX(-50%) rotate(-28deg);
  transform-origin: 50% 100%;
  border-radius: 6px 6px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, #f1f5f9 0%, #cbd5e1 38%, #64748b 100%);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 4px rgba(15, 23, 42, 0.25);
  will-change: transform;
}
.brk-grip {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 14%;
  height: 42%;
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.18) 0 3px,
      rgba(255, 255, 255, 0.22) 3px 6px
    );
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.scr-breaker.is-on .brk-paddle {
  transform: translateX(-50%) rotate(-28deg);
  background:
    linear-gradient(180deg, #d1fae5 0%, #6ee7b7 40%, #059669 100%);
}
.scr-breaker.is-off .brk-paddle {
  transform: translateX(-50%) rotate(28deg);
  background:
    linear-gradient(180deg, #fecdd3 0%, #fb7185 40%, #e11d48 100%);
}
.scr-breaker.is-on .brk-housing {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(52, 211, 153, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.35);
}
.scr-breaker.is-off .brk-housing {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(248, 113, 113, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.35);
}
.scr-breaker.is-mixed .brk-housing {
  outline: 1px dashed rgba(251, 191, 36, 0.55);
}
.scr-breaker.is-mixed .brk-paddle {
  transform: translateX(-50%) rotate(0deg);
  background:
    linear-gradient(180deg, #fde68a 0%, #fbbf24 40%, #d97706 100%);
}
.scr-breaker.is-dragging .brk-paddle {
  filter: brightness(1.08);
}

@media (max-width: 900px) {
  .scr-breaker-card {
    text-align: start;
  }
}
.tool-alert {
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.tool-alert.ok {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}
.tool-alert.bad {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
}
.search-bar {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr auto;
  gap: 12px;
  align-items: end;
}
.search-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.search-field.narrow { max-width: 180px; }
.search-field input,
.search-field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  padding: 6px 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.dtc-table-wrap { max-height: 480px; overflow: auto; border: 1px solid var(--line); }
.dtc-table-wrap tr.off td { color: #94a3b8; }
.dtc-table-wrap td.dtc-desc {
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.dtc-table-wrap td.dtc-desc.is-empty { opacity: 0.55; }
.dtc-table-wrap tr.off .md1-row-slider {
  background: #475569;
}
.mini {
  border: 0;
  background: var(--accent);
  color: #1a1208;
  font-weight: 800;
  padding: 6px 10px;
  cursor: pointer;
}
.md1-row-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  vertical-align: middle;
  cursor: pointer;
}
.md1-feat-switch {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 40px;
  flex: 0 0 auto;
  cursor: pointer;
}
.md1-row-switch input,
.md1-feat-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.md1-row-slider {
  position: absolute;
  inset: 0;
  background: #64748b;
  border-radius: 999px;
  transition: background 0.18s ease;
}
.md1-row-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.md1-feat-switch .md1-row-slider::before {
  width: 32px;
  height: 32px;
  left: 4px;
  top: 4px;
}
.md1-row-switch input:checked + .md1-row-slider,
.md1-feat-switch input:checked + .md1-row-slider,
.md1-feat-switch.is-on .md1-row-slider {
  background: #22c55e;
}
.md1-row-switch input:checked + .md1-row-slider::before {
  transform: translateX(18px);
}
.md1-feat-switch input:checked + .md1-row-slider::before,
.md1-feat-switch.is-on .md1-row-slider::before {
  transform: translateX(32px);
}
.md1-feat-switch.is-off .md1-row-slider {
  background: #64748b;
}
.md1-feat-switch.is-mixed .md1-row-slider {
  background: #f59e0b;
}
.md1-feat-switch.is-mixed .md1-row-slider::before {
  transform: translateX(16px);
}
.md1-row-switch input:disabled + .md1-row-slider,
.md1-feat-switch input:disabled + .md1-row-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.md1-fault-table-wrap tr.off .md1-row-slider {
  background: #475569;
}
.scr-breaker-card.is-mixed {
  border-color: rgba(245, 158, 11, 0.45);
}

/* Center orange circular loader */
.set-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 18, 0.62);
  backdrop-filter: blur(3px);
}
.set-loader[hidden] { display: none !important; }
body.set-loading { overflow: hidden; }
.set-loader-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.set-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(245, 158, 11, 0.22);
  border-top-color: #f59e0b;
  border-right-color: #d97706;
  animation: set-spin 0.75s linear infinite;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.2);
}
.set-loader-msg {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
}
@keyframes set-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .login-hero {
    background:
      linear-gradient(180deg, rgba(8, 12, 18, 0.35) 0%, rgba(8, 12, 18, 0.78) 55%, rgba(8, 12, 18, 0.92) 100%),
      var(--truck) 20% center / cover no-repeat;
  }
  .login-frame {
    align-items: end;
    padding-top: 36px;
  }
  .login-side { width: 100%; }
  .program-grid { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .gauge-grid, .gauge-grid.dual, .gauge-grid.dual .temp-gauges-row, .meta-row, .search-bar { grid-template-columns: 1fr; }
  .search-field.narrow { max-width: none; }
}

/* —— MD1 portal stage (S-Way / T-Way) —— */
.md1-portal {
  position: relative;
  isolation: isolate;
  background: #070a0f;
}
.md1-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.md1-stage-photo {
  position: absolute;
  inset: 0;
  background:
    url("/static/img/md1-bg-sway-tway.jpg") center 32% / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.12) contrast(1.12) brightness(1.08);
  animation: md1-stage-drift 28s ease-in-out infinite alternate;
}
.md1-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.35), transparent 70%);
  opacity: 0.18;
}
.md1-stage-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.22) 0%, rgba(7, 10, 15, 0.38) 48%, rgba(7, 10, 15, 0.62) 100%),
    radial-gradient(ellipse at 78% 18%, rgba(217, 119, 6, 0.14), transparent 46%),
    linear-gradient(90deg, rgba(7, 10, 15, 0.35) 0%, rgba(7, 10, 15, 0.12) 50%, rgba(7, 10, 15, 0.32) 100%);
  transition: opacity 0.9s ease, background 0.9s ease;
}
.md1-intro-banner {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: end center;
  padding: 0 24px 12vh;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}
.md1-intro-kicker {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}
.md1-intro-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}
.md1-intro-sub {
  margin: 10px 0 0;
  color: rgba(243, 240, 234, 0.85);
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

/* Intro: full clear background showcase */
.md1-portal.md1-intro .md1-stage-scrim {
  opacity: 0.18;
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.08) 0%, rgba(7, 10, 15, 0.12) 55%, rgba(7, 10, 15, 0.42) 100%);
}
.md1-portal.md1-intro .md1-stage-grid {
  opacity: 0;
}
.md1-portal.md1-intro .md1-stage-photo {
  filter: saturate(1.18) contrast(1.14) brightness(1.12);
}
.md1-portal.md1-intro .md1-intro-banner {
  opacity: 1;
  animation: md1-intro-in 0.9s ease both;
}
.md1-portal.md1-intro > .topbar,
.md1-portal.md1-intro > .wrap {
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
}
.md1-portal.md1-ready .md1-intro-banner {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.md1-portal.md1-ready > .topbar,
.md1-portal.md1-ready > .wrap {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.md1-portal.md1-ready .tool-panel,
.md1-portal.md1-ready .md1-feat-card,
.md1-portal.md1-ready .md1-fault-card,
.md1-portal.md1-ready .upload-box {
  animation: md1-card-rise 0.85s ease both;
}
.md1-portal.md1-ready .md1-feat-card:nth-child(1) { animation-delay: 0.08s; }
.md1-portal.md1-ready .md1-feat-card:nth-child(2) { animation-delay: 0.18s; }
.md1-portal.md1-ready .md1-feat-card:nth-child(3) { animation-delay: 0.28s; }
.md1-portal.md1-ready .md1-fault-card { animation-delay: 0.38s; }
@keyframes md1-intro-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes md1-card-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes md1-stage-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}
.md1-portal > .topbar,
.md1-portal > .wrap {
  position: relative;
  z-index: 1;
}
.md1-portal .topbar {
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(245, 158, 11, 0.18);
}
.md1-hero {
  padding: 18px 4px 8px;
}
.md1-eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.md1-portal .tool-welcome h1 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 0, 0, 0.45);
}
.md1-portal .tool-welcome .hint,
.md1-eyebrow {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.md1-portal .tool-panel,
.md1-portal .upload-box,
.md1-portal .workspace {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  border-color: rgba(245, 158, 11, 0.24);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.md1-feat-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 220px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: #0a0e14;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.md1-feat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}
.md1-feat-media {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background:
    var(--feat) center / cover no-repeat;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}
.md1-feat-card:hover .md1-feat-media {
  transform: scale(1.07);
}
.md1-feat-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 56px 16px 14px;
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0) 0%, rgba(7, 10, 15, 0.55) 38%, rgba(7, 10, 15, 0.92) 100%);
}
.md1-feat-card .scr-breaker-copy {
  z-index: 1;
  gap: 4px;
}
.md1-feat-card .scr-breaker-copy h3 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.md1-feat-card .scr-file-state,
.md1-feat-card .hint {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.md1-feat-card .md1-feat-switch {
  z-index: 1;
  margin-bottom: 2px;
}
.md1-feat-card.is-mixed {
  border-color: rgba(245, 158, 11, 0.6);
}
@media (max-width: 1100px) {
  .md1-feat-card {
    min-height: 200px;
  }
}
@media (max-width: 720px) {
  .md1-feat-card {
    min-height: 190px;
    grid-template-columns: unset;
  }
  .md1-feat-media {
    width: auto;
    height: auto;
  }
  .md1-feat-card .md1-feat-switch {
    grid-column: auto;
    justify-self: auto;
  }
  .md1-stage-photo {
    background-position: 62% center;
  }
}
.md1-portal .md1-fault-card {
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.78), rgba(10, 14, 20, 0.88));
  border-color: rgba(245, 158, 11, 0.28);
}
.md1-portal .md1-fault-table-wrap {
  background: rgba(6, 9, 14, 0.55);
  border-radius: 10px;
}

/* —— VCM portal stage (IVECO T-Way) —— */
.vcm-portal {
  position: relative;
  isolation: isolate;
  background: #070a0f;
}
.vcm-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.vcm-stage-photo {
  position: absolute;
  inset: 0;
  background:
    url("/static/img/vcm-bg-tway.jpg") center 42% / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.08) brightness(1.02);
}
.vcm-stage-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.28) 0%, rgba(7, 10, 15, 0.42) 48%, rgba(7, 10, 15, 0.72) 100%),
    radial-gradient(ellipse at 78% 18%, rgba(217, 119, 6, 0.14), transparent 46%),
    linear-gradient(90deg, rgba(7, 10, 15, 0.42) 0%, rgba(7, 10, 15, 0.14) 50%, rgba(7, 10, 15, 0.4) 100%);
}
.vcm-portal > .topbar,
.vcm-portal > .wrap {
  position: relative;
  z-index: 1;
}
.vcm-portal .topbar {
  background: rgba(9, 13, 19, 0.55);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(245, 158, 11, 0.2);
}
.vcm-portal .tool-welcome h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}
.vcm-portal .tool-welcome .hint {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.vcm-portal .tool-panel,
.vcm-portal .upload-box,
.vcm-portal .workspace {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  border-color: rgba(245, 158, 11, 0.24);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/* —— VCM toggle switches —— */
.vcm-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  direction: ltr;
}
.vcm-toggle-cap {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.55);
  min-width: 2.6rem;
  text-align: center;
  transition: color 0.18s ease;
}
.vcm-toggle-wrap.is-on .vcm-toggle-cap.on,
.vcm-toggle-wrap.is-off .vcm-toggle-cap.off {
  color: #f8fafc;
}
.vcm-portal .scr-breaker-card {
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(12px);
}
.vcm-portal .scr-breaker-card .breaker-hint {
  grid-column: 1 / -1;
}
