

#workshop-live-monitor-host {
  display: contents;
}

#workshop-live-monitor.workshop-live-monitor-fragment-visible {
  display: block;
}

body:has(#workshop-live-monitor.workshop-live-monitor-fragment-visible) {
  background: #08111f;
  overflow: auto;
}

body:has(#workshop-live-monitor.workshop-live-monitor-fragment-visible) .topbar {
  display: none;
}

body:has(#workshop-live-monitor.workshop-live-monitor-fragment-visible) .dashboard {
  display: none;
}

body:has(#workshop-live-monitor:target) {
  background: #08111f;
  overflow: auto;
}
body:has(#workshop-live-monitor:target) .topbar {
  display: none;
}
#workshop-live-monitor {
  background: #08111f;
  color: #f5f7fb;
  min-height: 100vh;
  padding: 18px 22px 58px;
  box-sizing: border-box;
  overflow: auto;
}
.wlm-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 1.8fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.wlm-brand {
  color: #77d4ff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}
.wlm-header h1 {
  margin: 2px 0 0;
  font-size: 46px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0;
}
.wlm-header-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.wlm-header-meta div,
.wlm-stat,
.wlm-panel {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.wlm-header-meta div {
  padding: 10px 12px;
  border-radius: 8px;
}
.wlm-header-meta span,
.wlm-capacity-grid span,
.wlm-stat span {
  display: block;
  color: #c7d1df;
  font-size: 17px;
  font-weight: 700;
}
.wlm-header-meta strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}
.wlm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.wlm-actions .small-button {
  min-height: 42px;
  font-size: 16px;
  white-space: nowrap;
}
.wlm-warning {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #7a2118;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.wlm-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.wlm-today,
.wlm-wide,
.wlm-running {
  grid-column: span 4;
}
.wlm-panel:not(.wlm-wide):not(.wlm-running) {
  grid-column: span 2;
}
.wlm-section-title {
  margin: 0 0 9px;
  color: #f7fbff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.wlm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.wlm-stat {
  min-height: 112px;
  padding: 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wlm-stat strong {
  color: #fff;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}
.wlm-panel {
  border-radius: 8px;
  padding: 13px 14px;
  min-height: 156px;
  overflow: hidden;
}
.wlm-running {
  min-height: 330px;
}
.wlm-wide {
  min-height: 260px;
}
.wlm-table-wrap {
  width: 100%;
  overflow: auto;
}
.wlm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 7px;
  font-size: 20px;
}
.wlm-table th {
  padding: 0 9px 4px;
  color: #9fb0c7;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}
.wlm-table td {
  padding: 9px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  vertical-align: middle;
}
.wlm-table tr td:first-child {
  border-radius: 8px 0 0 8px;
}
.wlm-table tr td:last-child {
  border-radius: 0 8px 8px 0;
}
.wlm-table .wlm-main-col {
  min-width: 150px;
}
.wlm-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wlm-cell-green {
  color: #78f0a0 !important;
}
.wlm-cell-blue {
  color: #77d4ff !important;
}
.wlm-cell-yellow {
  color: #ffe083 !important;
}
.wlm-cell-red {
  color: #ff8e8e !important;
}
.wlm-cell-na {
  color: #d3dbe7 !important;
}
.wlm-green { background-color: rgba(38, 166, 91, 0.24); color: #78f0a0; }
.wlm-blue { background-color: rgba(41, 128, 255, 0.24); color: #77d4ff; }
.wlm-yellow { background-color: rgba(245, 196, 66, 0.26); color: #ffe083; }
.wlm-orange { background-color: rgba(255, 132, 51, 0.26); color: #ffb07b; }
.wlm-red { background-color: rgba(232, 64, 64, 0.28); color: #ff8e8e; }
.wlm-na { background-color: rgba(148, 163, 184, 0.18); color: #d3dbe7; }
.wlm-summary-list,
.wlm-ranking,
.wlm-queue,
.wlm-late,
.wlm-bars {
  display: grid;
  gap: 7px;
}
.wlm-summary-row,
.wlm-rank-row,
.wlm-queue-row,
.wlm-late-row,
.wlm-bar-row {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  font-size: 18px;
  min-width: 0;
}
.wlm-summary-row { grid-template-columns: 1.1fr 0.85fr 0.95fr auto; }
.wlm-rank-row { grid-template-columns: 48px 1fr 90px auto; }
.wlm-queue-row { grid-template-columns: 1fr 70px; }
.wlm-late-row { grid-template-columns: 0.7fr 1fr 0.9fr 1fr 75px; }
.wlm-bar-row { grid-template-columns: 96px 1fr 58px; }
.wlm-summary-row strong,
.wlm-rank-row strong,
.wlm-late-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wlm-chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 68px;
  min-height: 32px;
  padding: 3px 9px;
  border-radius: 8px;
  color: #fff;
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
}
.wlm-capacity-grid,
.wlm-quality {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.wlm-capacity-grid div,
.wlm-quality div {
  padding: 13px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}
.wlm-capacity-grid strong,
.wlm-quality strong {
  display: block;
  color: #fff;
  font-size: 34px;
  line-height: 1.05;
  margin-top: 5px;
}
.wlm-progress,
.wlm-bar {
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
  margin-top: 14px;
}
.wlm-progress span,
.wlm-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ecc71, #77d4ff);
}
.wlm-bar { height: 18px; margin-top: 0; }
.wlm-empty {
  padding: 12px;
  color: #d3dbe7;
  font-size: 20px;
}
.wlm-announcement {
  min-height: 112px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
}
.wlm-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 0;
  height: 46px;
  background: #020617;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  overflow: hidden;
  z-index: 20;
}
.wlm-ticker > span {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1d4ed8;
  font-size: 18px;
  font-weight: 900;
}
.wlm-ticker div {
  overflow: hidden;
  white-space: nowrap;
}
.wlm-ticker p {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  font-size: 22px;
  font-weight: 800;
  animation: wlmTicker 95s linear infinite;
}
@keyframes wlmTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 1300px) {
  .wlm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wlm-running,
  .wlm-wide,
  .wlm-panel:not(.wlm-wide):not(.wlm-running) { grid-column: span 2; }
  .wlm-header { grid-template-columns: 1fr; }
  .wlm-header-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wlm-actions { justify-content: flex-start; }
  .wlm-hide-md { display: none; }
}
@media (max-width: 760px) {
  body:has(#workshop-live-monitor:target) { overflow: auto; }
  #workshop-live-monitor { overflow: visible; padding: 14px 12px 58px; }
  .wlm-board,
  .wlm-card-grid,
  .wlm-capacity-grid,
  .wlm-quality { grid-template-columns: 1fr; }
  .wlm-today,
  .wlm-wide,
  .wlm-running,
  .wlm-panel:not(.wlm-wide):not(.wlm-running) { grid-column: span 1; }
  .wlm-header h1 { font-size: 34px; }
  .wlm-table { font-size: 18px; }
  .wlm-hide-sm { display: none; }
  .wlm-summary-row,
  .wlm-rank-row,
  .wlm-late-row,
  .wlm-bar-row { grid-template-columns: 1fr; }
}
