#infoLiveMonitorHost {
  padding: 0;
  overflow: visible;
  background: transparent;
  margin: 0;
}

.live-monitor-boot {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: var(--muted);
  font-weight: 700;
}

.live-monitor-root {
  max-width: none;
  margin: 0 auto;
}

.live-monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: none;
}

.live-monitor-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-monitor-title-main {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--text);
}

.live-monitor-title-sub {
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.live-monitor-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.live-view-switch {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2px;
}

.live-view-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.live-view-btn.active {
  background: color-mix(in srgb, var(--primary) 18%, var(--card));
  color: var(--text);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 5px 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
}

.live-chip strong {
  color: var(--text);
  font-weight: 900;
}

.live-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.live-chip.online .live-chip-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}

.live-monitor-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.live-profile-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.live-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 78%, transparent);
}

.live-profile-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 900;
}

.live-profile-sub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.live-badge {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  background: var(--card);
}

.live-badge.online {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.26);
  background: rgba(16, 185, 129, 0.12);
}

.live-badge.recheck {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

.live-positions {
  display: grid;
  gap: 0;
}

.live-position {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 90px;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px dashed color-mix(in srgb, var(--border) 80%, transparent);
}

.live-position:first-child {
  border-top: 0;
}

.live-position-left {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.live-position-left strong {
  display: block;
  font-size: 12px;
  color: var(--text);
  font-weight: 900;
}

.live-position-main {
  min-width: 0;
}

.live-position-sku {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.live-position-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-position-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.live-expire {
  font-size: 11px;
  color: #92400e;
  font-weight: 800;
}

.live-expire.safe {
  color: #065f46;
}

.live-qty {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.live-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.live-monitor-empty {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-weight: 700;
}

.live-screen-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}

.live-screen-profile {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.live-screen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.live-screen-title-wrap {
  min-width: 0;
}

.live-screen-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.live-screen-sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.live-screen-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.live-screen-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
}

.live-screen-state.online {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.26);
  background: rgba(16, 185, 129, 0.12);
}

.live-screen-page {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.live-screen-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.live-mobile-card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: none;
  padding: 12px;
}

.live-mobile-main {
  display: flex;
  gap: 12px;
}

.live-mobile-photo-wrap {
  width: 132px;
  min-width: 132px;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-mobile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-mobile-photo-empty {
  font-size: 28px;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.live-mobile-info {
  min-width: 0;
  flex: 1;
}

.live-mobile-sku {
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.06;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.01em;
}

.live-mobile-name {
  margin-top: 4px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.22;
  font-weight: 800;
  color: var(--text);
}

.live-mobile-status {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.live-mobile-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.live-mobile-place-row {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.live-mobile-place-row::-webkit-scrollbar {
  display: none;
}

.live-mobile-place-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  padding: 4px 10px;
  min-height: 28px;
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 80%, transparent);
  white-space: nowrap;
}

.live-mobile-place-pill.no-scan {
  color: var(--muted);
}

.live-mobile-place-name {
  font-weight: 700;
}

.live-mobile-place-sep {
  color: color-mix(in srgb, var(--muted) 90%, transparent);
  margin: 0 4px;
  font-weight: 500;
}

.live-mobile-place-count {
  font-weight: 600;
}

.live-mobile-kpi {
  margin-top: 12px;
  display: flex;
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.live-mobile-kpi-item {
  flex: 1;
  padding: 7px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  position: relative;
}

.live-mobile-kpi-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 16%;
  width: 1px;
  height: 68%;
  background: color-mix(in srgb, var(--border) 88%, transparent);
}

.live-mobile-kpi-item:last-child::after {
  display: none;
}

.live-mobile-kpi-item b {
  font-size: 30px;
  line-height: 1;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.live-mobile-kpi-item span {
  margin-top: 1px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.live-screen-empty {
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--card);
  color: var(--muted);
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
}

.live-screen-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.live-screen-foot b {
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 1400px) {
  .live-monitor-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .live-screen-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }
}

@media (max-width: 1100px) {
  .live-screen-grid {
    grid-template-columns: 1fr;
  }
}

body.dark .live-monitor-header,
body.dark .live-monitor-empty,
body.dark .live-screen-profile,
body.dark .live-mobile-card {
  background: #111827;
  border-color: #1f2937;
}

body.dark .live-monitor-title-sub {
  color: #94a3b8;
}
