:root {
  --ip-primary: #2563eb;
  --ip-primary-hover: #1d4ed8;
  --ip-accent: #3b82f6;
  --ip-bg: #f0f5fb;
  --ip-bg-elevated: #f8fafc;
  --ip-surface: #ffffff;
  --ip-surface-solid: #ffffff;
  --ip-border: rgba(148, 163, 184, 0.22);
  --ip-border-strong: rgba(37, 99, 235, 0.28);
  --ip-text: #0f172a;
  --ip-muted: #64748b;
  --ip-success: #16a34a;
  --ip-warning: #d97706;
  --ip-danger: #dc2626;
  --ip-sidebar: 260px;
  --ip-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --ip-shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.03), 0 12px 32px rgba(37, 99, 235, 0.06);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--ip-bg);
  color: var(--ip-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background-color: var(--ip-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url('/assets/img/iceq-background.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before,
body::after {
  content: none;
  display: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Glass / cards — light iceQ style */
.glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ip-border);
  box-shadow: var(--ip-shadow);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ip-border);
  box-shadow: var(--ip-shadow-lg);
}

.glass-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  box-shadow: var(--ip-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: var(--ip-border-strong);
  box-shadow: var(--ip-shadow-lg);
}

/* Layout shell */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: var(--ip-sidebar);
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 4px 0 32px rgba(15, 23, 42, 0.04);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.15rem 1.25rem 1.05rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  line-height: 0;
  min-height: 4.25rem;
}

.sidebar-brand img {
  width: 100%;
  max-width: 168px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 0;
  vertical-align: top;
  object-fit: contain;
}

.sidebar-close {
  display: none;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ip-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-close:hover {
  background: #f1f5f9;
  color: var(--ip-text);
  border-color: #e2e8f0;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  color: #fff;
}

.brand-mark svg { width: 1.15rem; height: 1.15rem; }

.sidebar-nav {
  padding: 0.85rem 0 1rem;
}

.nav-section-label {
  padding: 0.35rem 1.35rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.85rem;
  margin: 0.12rem 0.7rem;
  border-radius: 0.75rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 999px 999px 0;
  background: var(--ip-primary);
  transform: translateY(-50%);
  transition: height 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}

.nav-icon-wrap {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-chevron {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  opacity: 0;
  color: #94a3b8;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  animation: badgePop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-badge.is-empty {
  display: none;
}

@keyframes badgePop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.nav-link:hover {
  color: var(--ip-primary);
  background: rgba(37, 99, 235, 0.055);
  border-color: rgba(37, 99, 235, 0.06);
  transform: translateX(2px);
}

.nav-link:hover .nav-icon-wrap {
  background: rgba(37, 99, 235, 0.1);
  color: var(--ip-primary);
  transform: scale(1.05);
}

.nav-link:hover .nav-chevron {
  opacity: 0.7;
  transform: translateX(0);
}

.nav-link.active {
  color: var(--ip-primary);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.04) 100%);
  border-color: rgba(37, 99, 235, 0.14);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.nav-link.active::before {
  height: 1.35rem;
  opacity: 1;
}

.nav-link.active .nav-icon-wrap {
  background: rgba(37, 99, 235, 0.14);
  color: var(--ip-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.nav-link.active .nav-chevron {
  opacity: 0.55;
  transform: translateX(0);
  color: var(--ip-primary);
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.sidebar-footer {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.sidebar-status {
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.main-wrap {
  margin-left: var(--ip-sidebar);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.content {
  padding: 1.5rem;
  flex: 1;
}

/* Status */
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-dot.online,
.status-dot.ok,
.status-dot.active,
.status-dot.green { background: var(--ip-success); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
.status-dot.warn,
.status-dot.orange,
.status-dot.warning { background: var(--ip-warning); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18); }
.status-dot.crit,
.status-dot.red,
.status-dot.danger,
.status-dot.offline,
.status-dot.fault { background: var(--ip-danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }

.live-pulse {
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Metric value flash */
.metric-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  color: var(--ip-primary);
}

.metric-value.flash {
  color: var(--ip-accent);
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.25);
}

/* Gauge */
.gauge-track {
  height: 0.375rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.gauge-fill.warn { background: linear-gradient(90deg, #d97706, #f59e0b); }
.gauge-fill.crit { background: linear-gradient(90deg, #dc2626, #ef4444); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-ok { background: rgba(22, 163, 74, 0.1); color: #15803d; border: 1px solid rgba(22, 163, 74, 0.22); }
.badge-warn { background: rgba(217, 119, 6, 0.1); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.22); }
.badge-crit { background: rgba(220, 38, 38, 0.1); color: #b91c1c; border: 1px solid rgba(220, 38, 38, 0.22); }
.badge-info { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; border: 1px solid rgba(37, 99, 235, 0.2); }
.badge-muted { background: rgba(100, 116, 139, 0.1); color: #475569; border: 1px solid rgba(148, 163, 184, 0.25); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ip-primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--ip-primary-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  background: #ffffff;
  color: var(--ip-text);
  border-color: var(--ip-border);
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; border-radius: 0.5rem; }

/* Inputs */
.input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--ip-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input::placeholder { color: #94a3b8; }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ip-muted);
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.12s ease;
}

.data-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.03);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 0.5rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Login special */
.login-bg {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  background: url('/assets/img/iceq-background.png') center / cover no-repeat;
}

.login-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

.login-card {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  padding: 0;
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid pattern overlay */
.grid-overlay {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Avatar */
.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #dbeafe;
}

/* Mobile */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--ip-border);
  color: var(--ip-text);
  border-radius: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 35;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
  animation: backdropIn 0.28s ease;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.sidebar-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    width: min(var(--ip-sidebar), 86vw);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.12);
  }

  .main-wrap { margin-left: 0; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-close { display: inline-flex; }

  .sidebar-brand {
    justify-content: flex-start;
    padding-right: 3rem;
  }

  .sidebar-brand img {
    margin: 0;
    max-width: 140px;
  }
}

/* Chart container */
.chart-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}

.chart-wrap-lg { height: 340px; }

.chart-center-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.chart-center-label .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ip-text);
  line-height: 1;
}

.chart-center-label .label {
  font-size: 0.75rem;
  color: var(--ip-muted);
  margin-top: 0.25rem;
}

/* Process flow */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  border-color: var(--ip-border-strong);
}

.process-step-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.08);
  color: var(--ip-primary);
}

.process-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ip-text);
}

.process-step-status {
  font-size: 0.7rem;
  color: var(--ip-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.process-arrow {
  color: #cbd5e1;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .process-arrow { display: none; }
  .process-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .process-step { min-width: 0; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ip-muted);
}

/* Alert toast strip */
.alert-strip {
  border-left: 3px solid var(--ip-danger);
  background: rgba(220, 38, 38, 0.05);
  animation: fadeUp 0.3s ease;
}

.alert-strip.warn { border-left-color: var(--ip-warning); background: rgba(217, 119, 6, 0.06); }

/* Page section title */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.page-sub {
  font-size: 0.875rem;
  color: var(--ip-muted);
  margin-top: 0.2rem;
}

/* Stat tile icon box */
.icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-box.cyan { background: rgba(37, 99, 235, 0.1); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.12); }
.icon-box.green { background: rgba(22, 163, 74, 0.1); color: #16a34a; border: 1px solid rgba(22, 163, 74, 0.12); }
.icon-box.amber { background: rgba(217, 119, 6, 0.1); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.12); }
.icon-box.red { background: rgba(220, 38, 38, 0.1); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.12); }
.icon-box.purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; border: 1px solid rgba(124, 58, 237, 0.12); }

/* Section labels / chips */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #15803d;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.16);
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.stat-cell {
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  border: 1px solid rgba(241, 245, 249, 0.95);
}

.stat-cell-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.stat-cell-value {
  margin-top: 0.2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* Machine card */
.machine-card {
  position: relative;
  overflow: hidden;
}

.machine-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ip-primary), transparent);
  opacity: 0.55;
}

.machine-card .metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.machine-card .metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--ip-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-value-sm {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ip-text);
}

.sensor-tile {
  position: relative;
}

.sensor-tile:hover .gauge-fill {
  filter: brightness(1.05);
}

/* Live clock */
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Light-theme utility bridges for residual dark-theme classes */
.text-slate-100 { color: #1e293b !important; }
.text-slate-200 { color: #334155 !important; }
.text-slate-300 { color: #475569 !important; }
.border-white\/5 { border-color: rgba(226, 232, 240, 0.95) !important; }
.text-sky-300 { color: #2563eb !important; }
.text-sky-400 { color: #2563eb !important; }
.text-emerald-400 { color: #16a34a !important; }
.text-amber-400 { color: #d97706 !important; }
.text-red-300 { color: #dc2626 !important; }
.text-red-400 { color: #dc2626 !important; }
