.mbdm-monitor {
  --mbdm-bg: linear-gradient(135deg, #032334 0%, #000a1c 100%);
  --mbdm-panel: rgba(255,255,255,0.06);
  --mbdm-panel-border: rgba(255,255,255,0.12);
  --mbdm-text: #f8fafc;
  --mbdm-muted: #a5b4c9;
  --mbdm-blue: #004b93;
  --mbdm-blue-2: #0b63c7;
  --mbdm-yellow: #ffcc00;
  --mbdm-cream: #efe5b4;
  color: var(--mbdm-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mbdm-shell {
  background: var(--mbdm-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 70px rgba(2,6,23,.2);
  overflow: hidden;
}

.mbdm-mode-kiosk .mbdm-shell { min-height: 70vh; padding: 34px; }
.mbdm-mode-compact .mbdm-shell { min-height: 0; }

.mbdm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mbdm-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mbdm-title {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(26px, 2.3vw, 44px);
  font-weight: 800;
}

.mbdm-clock {
  font-size: clamp(28px, 3vw, 54px);
  font-weight: 800;
  white-space: nowrap;
}

.mbdm-halo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 6px solid var(--mbdm-yellow);
  color: var(--mbdm-yellow);
  font-weight: 900;
  font-size: 32px;
}

.mbdm-table-wrap {
  background: var(--mbdm-panel);
  border: 1px solid var(--mbdm-panel-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.mbdm-table {
  width: 100%;
  border-collapse: collapse;
}

.mbdm-table thead th {
  text-align: left;
  padding: 16px 40px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mbdm-muted);
}

.mbdm-table tbody td {
  padding: 18px 40px;
  border-top: 1px solid var(--mbdm-panel-border);
  font-size: 16px;
  vertical-align: middle;
}

.mbdm-col-line, .mbdm-col-platform, .mbdm-col-status, .mbdm-col-time { white-space: nowrap; }
.mbdm-col-line {
  width: 7.2rem;
  text-align: center;
}
.mbdm-col-platform { width: 1%; text-align: center; }
.mbdm-col-status { width: 1%; text-align: center; }
.mbdm-col-time { text-align: right; width: 10.5rem; min-width: 10.5rem; height: 75px; }
.mbdm-line-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.3ch;
  max-width: none;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--mbdm-blue);
  color: #fff;
  font-weight: 800;
  margin-inline: auto;
  text-align: center;
}

.mbdm-line-pill-standard { background: #0b63c7; color: #fff; }
.mbdm-line-pill-3digit { background: #16a34a; color: #fff; }
.mbdm-line-pill-train { background: #ffcc00; color: #111827; }

.mbdm-destination,
.mbdm-time { font-weight: 800; }

.mbdm-subtime {
  margin-top: 4px;
  color: var(--mbdm-muted);
  font-size: 12px;
}

.mbdm-platform {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--mbdm-panel-border);
  font-weight: 800;
}

.mbdm-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5ch;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--mbdm-panel-border);
  background: rgba(255,255,255,.06);
  font-weight: 800;
  font-size: .95em;
}

.mbdm-status-delay { background: rgba(220, 38, 38, .18); }
.mbdm-status-early { background: rgba(14, 165, 233, .18); }
.mbdm-status-live { background: rgba(34, 197, 94, .16); }
.mbdm-time-now { animation: mbdmFadePulse 1.2s ease-in-out infinite; }

@keyframes mbdmFadePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.mbdm-empty-state {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: var(--mbdm-panel);
  border: 1px solid var(--mbdm-panel-border);
}

.mbdm-empty-icon { font-size: 28px; }
.mbdm-error-list { margin: 10px 0 0 18px; }

/* Variants */
.mbdm-variant-aurora-glass {
  --mbdm-bg: linear-gradient(135deg, #08111c 0%, #11203f 45%, #042a2b 100%);
  --mbdm-panel: rgba(255,255,255,0.08);
}

.mbdm-variant-metro-blue {
  --mbdm-bg: linear-gradient(135deg, #061226 0%, #0a2248 100%);
  --mbdm-panel: rgba(255,255,255,0.06);
}

.mbdm-variant-panorama-cards {
  --mbdm-bg: linear-gradient(135deg, #0d1324 0%, #1f2937 100%);
  --mbdm-panel: rgba(15,23,42,0.55);
}
.mbdm-variant-panorama-cards .mbdm-table-wrap { background: transparent; border: 0; backdrop-filter: none; }
.mbdm-variant-panorama-cards .mbdm-table tbody tr { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 14px; margin: 10px; padding: 16px; background: rgba(255,255,255,.06); border-radius: 16px; }
.mbdm-variant-panorama-cards .mbdm-table tbody td { border-top: 0; padding: 0; display: flex; align-items: center; }
.mbdm-variant-panorama-cards .mbdm-table thead { display: none; }

.mbdm-variant-stagewall-xl .mbdm-shell { border-radius: 28px; padding: 34px; }
.mbdm-variant-stagewall-xl .mbdm-title { font-size: clamp(36px, 3vw, 66px); }
.mbdm-variant-stagewall-xl .mbdm-clock { font-size: clamp(42px, 4vw, 82px); }
.mbdm-variant-stagewall-xl .mbdm-table thead th { font-size: 18px; }
.mbdm-variant-stagewall-xl .mbdm-table tbody td { font-size: 30px; padding: 24px 24px; }
.mbdm-variant-stagewall-xl .mbdm-line-pill { min-width: 3.3ch; padding: 14px 10px; font-size: 28px; }
.mbdm-variant-stagewall-xl .mbdm-subtime { font-size: 18px; }
.mbdm-variant-stagewall-xl .mbdm-platform { min-width: 2.8ch; font-size: 24px; }
.mbdm-variant-stagewall-xl .mbdm-status-badge { font-size: 22px; min-width: 5ch; }

.mbdm-variant-stagewall-xxl .mbdm-shell { border-radius: 22px; padding: 24px 24px 22px; }
.mbdm-variant-stagewall-xxl .mbdm-header { margin-bottom: 12px; }
.mbdm-variant-stagewall-xxl .mbdm-title { font-size: clamp(52px, 4vw, 88px); }
.mbdm-variant-stagewall-xxl .mbdm-clock { font-size: clamp(54px, 4.8vw, 96px); }
.mbdm-variant-stagewall-xxl .mbdm-table thead th { font-size: 20px; padding: 12px 14px; }
.mbdm-variant-stagewall-xxl .mbdm-table tbody td { font-size: 40px; padding: 18px 14px; }
.mbdm-variant-stagewall-xxl .mbdm-line-pill { min-width: 3.2ch; padding: 10px 8px; border-radius: 10px; font-size: 40px; }
.mbdm-variant-stagewall-xxl .mbdm-platform { min-width: 2.6ch; padding: 8px 8px; font-size: 30px; }
.mbdm-variant-stagewall-xxl .mbdm-status-badge { min-width: 5ch; padding: 8px 10px; font-size: 28px; }
.mbdm-variant-stagewall-xxl .mbdm-time { font-size: 40px; }
.mbdm-variant-stagewall-xxl .mbdm-subtime { margin-top: 2px; font-size: 18px; }
.mbdm-variant-stagewall-xxl .mbdm-table-wrap { border-radius: 16px; }
.mbdm-variant-stagewall-xxl .mbdm-col-line { width: 7ch; }

.mbdm-variant-dresden {
  --mbdm-bg: #000;
  --mbdm-panel: rgba(255,255,255,.16);
  --mbdm-panel-border: rgba(0,0,0,.95);
  --mbdm-text: #fff;
  --mbdm-muted: #fff;
}
.mbdm-variant-dresden .mbdm-shell { border-radius: 0; box-shadow: none; padding: 24px 28px 0; }
.mbdm-variant-dresden .mbdm-title { font-size: clamp(42px, 3vw, 74px); font-weight: 500; }
.mbdm-variant-dresden .mbdm-clock { background: var(--mbdm-yellow); color: #000; padding: 10px 18px; border-radius: 0; font-size: clamp(28px, 2.8vw, 54px); }
.mbdm-variant-dresden .mbdm-table-wrap { border-radius: 0; background: transparent; border: 0; }
.mbdm-variant-dresden .mbdm-table thead th { color: #fff; font-size: 18px; text-transform: none; letter-spacing: 0; padding: 14px 20px; }
.mbdm-variant-dresden .mbdm-table tbody td { font-size: 28px; color: var(--mbdm-cream); border-top: 6px solid #000; background: rgba(36,36,36,.96); padding: 18px 20px; }
.mbdm-variant-dresden .mbdm-line-pill { min-width: 3.2ch; border-radius: 0; font-size: 30px; padding-left: 8px; padding-right: 8px; }
.mbdm-variant-dresden .mbdm-platform { border-radius: 0; background: #1f1f1f; }
.mbdm-variant-dresden .mbdm-subtime { color: #d5cfa6; font-size: 16px; }
.mbdm-variant-dresden .mbdm-time { font-size: 30px; }

/* New 2.0 variants */
.mbdm-variant-aurora-glass-2-0 {
  --mbdm-bg: radial-gradient(circle at top left, #123866 0%, #09111f 45%, #071d27 100%);
  --mbdm-panel: rgba(255,255,255,0.08);
  --mbdm-panel-border: rgba(147,197,253,.18);
}
.mbdm-variant-aurora-glass-2-0 .mbdm-shell { box-shadow: 0 24px 80px rgba(3, 8, 25, .32); }
.mbdm-variant-aurora-glass-2-0 .mbdm-table tbody tr:hover td { background: rgba(255,255,255,.03); }

.mbdm-variant-metro-blue-2-0 {
  --mbdm-bg: linear-gradient(180deg, #06142f 0%, #082450 52%, #0c1731 100%);
  --mbdm-panel: rgba(6, 23, 51, .7);
  --mbdm-panel-border: rgba(103, 160, 255, .18);
}
.mbdm-variant-metro-blue-2-0 .mbdm-shell { border: 1px solid rgba(255,255,255,.06); }
.mbdm-variant-metro-blue-2-0 .mbdm-table tbody td { background: rgba(255,255,255,.015); }

.mbdm-variant-panorama-cards-2-0 {
  --mbdm-bg: linear-gradient(135deg, #0f172a 0%, #111827 52%, #172554 100%);
  --mbdm-panel: rgba(255,255,255,.04);
}
.mbdm-variant-panorama-cards-2-0 .mbdm-table-wrap { background: transparent; border: 0; backdrop-filter: none; }
.mbdm-variant-panorama-cards-2-0 .mbdm-table thead { display: none; }
.mbdm-variant-panorama-cards-2-0 .mbdm-table tbody { display: grid; gap: 12px; padding: 8px; }
.mbdm-variant-panorama-cards-2-0 .mbdm-table tbody tr { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 16px; align-items: center; padding: 18px 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; }
.mbdm-variant-panorama-cards-2-0 .mbdm-table tbody td { border-top: 0; padding: 0; display: flex; align-items: center; background: transparent; }

.mbdm-variant-clear-grid-2-0 {
  --mbdm-bg: linear-gradient(180deg, #050b17 0%, #0b1220 100%);
  --mbdm-panel: rgba(255,255,255,.035);
  --mbdm-panel-border: rgba(255,255,255,.10);
}
.mbdm-variant-clear-grid-2-0 .mbdm-table-wrap { background: rgba(255,255,255,.02); }
.mbdm-variant-clear-grid-2-0 .mbdm-table { border-collapse: separate; border-spacing: 0; }
.mbdm-variant-clear-grid-2-0 .mbdm-table thead th,
.mbdm-variant-clear-grid-2-0 .mbdm-table tbody td { border-right: 1px solid rgba(255,255,255,.08); }
.mbdm-variant-clear-grid-2-0 .mbdm-table thead th:last-child,
.mbdm-variant-clear-grid-2-0 .mbdm-table tbody td:last-child { border-right: 0; }
.mbdm-variant-clear-grid-2-0 .mbdm-table tbody td { border-top-color: rgba(255,255,255,.07); }

.mbdm-variant-signal-white-2-0 {
  --mbdm-bg: linear-gradient(180deg, #f5f8ff 0%, #e8eefc 100%);
  --mbdm-panel: rgba(255,255,255,.85);
  --mbdm-panel-border: rgba(15, 23, 42, .10);
  --mbdm-text: #0f172a;
  --mbdm-muted: #475569;
}
.mbdm-variant-signal-white-2-0 .mbdm-shell { box-shadow: 0 16px 45px rgba(15,23,42,.08); }
.mbdm-variant-signal-white-2-0 .mbdm-table tbody td { background: rgba(255,255,255,.62); }
.mbdm-variant-signal-white-2-0 .mbdm-platform,
.mbdm-variant-signal-white-2-0 .mbdm-status-badge { background: rgba(15,23,42,.04); }

.mbdm-variant-neon-platform-2-0 {
  --mbdm-bg: radial-gradient(circle at top right, #102449 0%, #070c18 58%, #02040a 100%);
  --mbdm-panel: rgba(7,12,24,.72);
  --mbdm-panel-border: rgba(14,165,233,.18);
}
.mbdm-variant-neon-platform-2-0 .mbdm-title,
.mbdm-variant-neon-platform-2-0 .mbdm-clock { text-shadow: 0 0 18px rgba(56,189,248,.16); }
.mbdm-variant-neon-platform-2-0 .mbdm-line-pill { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 20px rgba(11,99,199,.18); }
.mbdm-variant-neon-platform-2-0 .mbdm-table tbody td { background: rgba(255,255,255,.012); }




/* Additional 2.0 variants */
.mbdm-variant-led-board-2-0 {
  --mbdm-bg: linear-gradient(180deg, #040507 0%, #090d12 100%);
  --mbdm-panel: rgba(14, 18, 24, .96);
  --mbdm-panel-border: rgba(90, 255, 160, .10);
  --mbdm-text: #b6ff9e;
  --mbdm-muted: #7ee58a;
  --mbdm-blue: #004b93;
}
.mbdm-variant-led-board-2-0 .mbdm-shell { box-shadow: 0 0 0 1px rgba(73, 255, 156, .08), 0 20px 60px rgba(0,0,0,.45); }
.mbdm-variant-led-board-2-0 .mbdm-title,
.mbdm-variant-led-board-2-0 .mbdm-clock,
.mbdm-variant-led-board-2-0 .mbdm-destination,
.mbdm-variant-led-board-2-0 .mbdm-time { letter-spacing: .02em; text-shadow: 0 0 10px rgba(95,255,145,.18); }
.mbdm-variant-led-board-2-0 .mbdm-table tbody td { background: rgba(8, 12, 16, .88); }
.mbdm-variant-led-board-2-0 .mbdm-line-pill { box-shadow: 0 0 0 1px rgba(255,255,255,.04), inset 0 0 10px rgba(255,255,255,.05); }

.mbdm-variant-split-flap-2-0 {
  --mbdm-bg: linear-gradient(180deg, #111317 0%, #1a1d22 100%);
  --mbdm-panel: rgba(30, 32, 38, .94);
  --mbdm-panel-border: rgba(255,255,255,.08);
  --mbdm-text: #f6efe0;
  --mbdm-muted: #cbbd9e;
  --mbdm-blue: #004b93;
}
.mbdm-variant-split-flap-2-0 .mbdm-title,
.mbdm-variant-split-flap-2-0 .mbdm-clock,
.mbdm-variant-split-flap-2-0 .mbdm-destination,
.mbdm-variant-split-flap-2-0 .mbdm-time,
.mbdm-variant-split-flap-2-0 .mbdm-line-pill { font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace; letter-spacing: .03em; }
.mbdm-variant-split-flap-2-0 .mbdm-table-wrap { border-radius: 14px; }
.mbdm-variant-split-flap-2-0 .mbdm-table thead th { color: #ded3b7; }
.mbdm-variant-split-flap-2-0 .mbdm-table tbody td { background: linear-gradient(180deg, rgba(255,255,255,.03) 0 49%, rgba(0,0,0,.12) 50% 51%, rgba(255,255,255,.02) 52% 100%); }
.mbdm-variant-split-flap-2-0 .mbdm-line-pill { border-radius: 8px; }

.mbdm-variant-db-dfi-2-0 {
  --mbdm-bg: linear-gradient(180deg, #050505 0%, #131313 100%);
  --mbdm-panel: rgba(24, 24, 24, .96);
  --mbdm-panel-border: rgba(255, 184, 28, .14);
  --mbdm-text: #ffd24a;
  --mbdm-muted: #ffcf48;
  --mbdm-blue: #004b93;
}
.mbdm-variant-db-dfi-2-0 .mbdm-shell { box-shadow: none; border: 1px solid rgba(255, 184, 28, .12); }
.mbdm-variant-db-dfi-2-0 .mbdm-title,
.mbdm-variant-db-dfi-2-0 .mbdm-clock,
.mbdm-variant-db-dfi-2-0 .mbdm-destination,
.mbdm-variant-db-dfi-2-0 .mbdm-time { font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace; }
.mbdm-variant-db-dfi-2-0 .mbdm-table thead th { color: #ffe082; }
.mbdm-variant-db-dfi-2-0 .mbdm-table tbody td { background: rgba(255, 193, 7, .02); }
.mbdm-variant-db-dfi-2-0 .mbdm-platform,
.mbdm-variant-db-dfi-2-0 .mbdm-status-badge { background: rgba(255, 184, 28, .08); border-color: rgba(255, 184, 28, .12); color: #ffe082; }

.mbdm-variant-twin-board-2-0 {
  --mbdm-bg: #000;
  --mbdm-panel: rgba(255,255,255,.16);
  --mbdm-panel-border: rgba(0,0,0,.95);
  --mbdm-text: #fff;
  --mbdm-muted: #fff;
}
.mbdm-variant-twin-board-2-0 .mbdm-shell { border-radius: 0; box-shadow: none; padding: 22px 22px 0; }
.mbdm-board-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mbdm-board-column { min-width: 0; }
.mbdm-variant-twin-board-2-0 .mbdm-table-wrap { border-radius: 0; background: transparent; border: 0; }
.mbdm-variant-twin-board-2-0 .mbdm-table thead th { color: #fff; font-size: 18px; text-transform: none; letter-spacing: 0; padding: 12px 16px; }
.mbdm-variant-twin-board-2-0 .mbdm-table tbody td { font-size: 28px; color: var(--mbdm-cream); border-top: 6px solid #000; background: rgba(36,36,36,.96); padding: 16px 16px; }
.mbdm-variant-twin-board-2-0 .mbdm-line-pill { min-width: 3ch; border-radius: 0; font-size: 26px; }
.mbdm-variant-twin-board-2-0 .mbdm-time { font-size: 28px; }
.mbdm-variant-twin-board-2-0 .mbdm-clock { background: var(--mbdm-yellow); color: #000; padding: 10px 18px; border-radius: 0; }

/* Column / spacing refinements */
.mbdm-col-line,
.mbdm-table thead .mbdm-col-line,
.mbdm-table tbody .mbdm-col-line { text-align: left; }
.mbdm-table thead th:first-child,
.mbdm-table tbody td:first-child { padding-left: 26px; padding-right: 26px; }
.mbdm-table-wrap { overflow-x: auto; }
.mbdm-table { min-width: 820px; }
.mbdm-variant-panorama-cards .mbdm-table,
.mbdm-variant-panorama-cards-2-0 .mbdm-table,
.mbdm-variant-twin-board-2-0 .mbdm-table { min-width: 0; }



.mbdm-variant-twin-board-azure-2-0 {
  --mbdm-bg: linear-gradient(180deg, #08111f 0%, #0d1d36 52%, #0a1630 100%);
  --mbdm-panel: rgba(255,255,255,.06);
  --mbdm-panel-border: rgba(65, 128, 255, .16);
  --mbdm-text: #ffffff;
  --mbdm-muted: #d6e3ff;
  --mbdm-cream: #ffffff;
}
.mbdm-variant-twin-board-azure-2-0 .mbdm-shell { border-radius: 0; box-shadow: none; padding: 22px 22px 0; }
.mbdm-variant-twin-board-azure-2-0 .mbdm-table-wrap { border-radius: 0; background: transparent; border: 0; }
.mbdm-variant-twin-board-azure-2-0 .mbdm-table thead th { color: #ffffff; font-size: 28px; text-transform: none; letter-spacing: 0; padding: 0px 16px; }
.mbdm-variant-twin-board-azure-2-0 .mbdm-table tbody td { font-size: 32px; color: #ffffff; border-top: 6px solid rgba(7, 16, 30, .88); background: rgba(17, 34, 63, .92); padding: 16px 16px; }
.mbdm-variant-twin-board-azure-2-0 .mbdm-line-pill { min-width: 3ch; border-radius: 0; font-size: 26px; }
.mbdm-variant-twin-board-azure-2-0 .mbdm-time { font-size: 32px; }
.mbdm-variant-twin-board-azure-2-0 .mbdm-clock { background: transparent; color: #ffffff; padding: 0; border-radius: 0; }



.mbdm-variant-vpe-green-2-0 {
  --mbdm-bg: linear-gradient(180deg, #f6fff8 0%, #eefbf2 100%);
  --mbdm-panel: rgba(255,255,255,.9);
  --mbdm-panel-border: rgba(7, 124, 65, .16);
  --mbdm-text: #0e3b21;
  --mbdm-muted: #2f6b49;
}
.mbdm-variant-vpe-green-2-0 .mbdm-shell { box-shadow: 0 18px 48px rgba(10, 83, 45, .10); }
.mbdm-variant-vpe-green-2-0 .mbdm-table tbody td { background: rgba(255,255,255,.82); }
.mbdm-variant-vpe-green-2-0 .mbdm-platform,
.mbdm-variant-vpe-green-2-0 .mbdm-status-badge { background: rgba(7, 124, 65, .06); border-color: rgba(7, 124, 65, .12); color: #0e3b21; }

.mbdm-variant-kvv-red-2-0 {
  --mbdm-bg: linear-gradient(180deg, #53151c 0%, #6b1c25 52%, #3f0f15 100%);
  --mbdm-panel: rgba(116, 28, 39, .74);
  --mbdm-panel-border: rgba(255,255,255,.12);
  --mbdm-text: #ffffff;
  --mbdm-muted: #ffe7ea;
  --mbdm-cream: #ffffff;
}
.mbdm-variant-kvv-red-2-0 .mbdm-shell { box-shadow: 0 24px 64px rgba(43, 8, 12, .28); }
.mbdm-variant-kvv-red-2-0 .mbdm-table tbody td { background: rgba(255,255,255,.05); }
.mbdm-variant-kvv-red-2-0 .mbdm-platform,
.mbdm-variant-kvv-red-2-0 .mbdm-status-badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #ffffff; }

.mbdm-variant-twin-board-azure-2-0 .mbdm-table,
.mbdm-variant-vpe-green-2-0 .mbdm-table,
.mbdm-variant-kvv-red-2-0 .mbdm-table { min-width: 820px; }

.mbdm-board-columns .mbdm-table { min-width: 0; }

/* Header / logo / font-size controls */
.mbdm-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: nowrap;
}

.mbdm-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.mbdm-logo {
  display: block;
  max-height: 54px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mbdm-line-pill {
  border-radius: 14px !important;
}

.mbdm-monitor.mbdm-font-size-larger .mbdm-table tbody td,
.mbdm-monitor.mbdm-font-size-larger .mbdm-board-row .mbdm-board-cell {
  font-size: 1.12em;
}

.mbdm-monitor.mbdm-font-size-larger .mbdm-line-pill,
.mbdm-monitor.mbdm-font-size-larger .mbdm-platform,
.mbdm-monitor.mbdm-font-size-larger .mbdm-status-badge,
.mbdm-monitor.mbdm-font-size-larger .mbdm-subtime {
  font-size: 1.06em;
}

.mbdm-monitor.mbdm-font-size-very-large .mbdm-table tbody td,
.mbdm-monitor.mbdm-font-size-very-large .mbdm-board-row .mbdm-board-cell {
  font-size: 1.26em;
}

.mbdm-monitor.mbdm-font-size-very-large .mbdm-line-pill,
.mbdm-monitor.mbdm-font-size-very-large .mbdm-platform,
.mbdm-monitor.mbdm-font-size-very-large .mbdm-status-badge,
.mbdm-monitor.mbdm-font-size-very-large .mbdm-subtime {
  font-size: 1.16em;
}

/* Generic two-column board */
.mbdm-board-wrap {
  background: var(--mbdm-panel);
  border: 1px solid var(--mbdm-panel-border);
  border-radius: 20px;
  overflow: hidden;
}

.mbdm-board-grid {
  display: grid;
  grid-template-columns: 112px minmax(0,1fr) 160px 112px minmax(0,1fr) 160px;
  gap: 0;
}

.mbdm-board-wrap.has-platform .mbdm-board-grid {
  grid-template-columns: 112px minmax(0,1fr) 92px 160px 112px minmax(0,1fr) 92px 160px;
}

.mbdm-board-wrap.has-status .mbdm-board-grid {
  grid-template-columns: 112px minmax(0,1fr) 120px 160px 112px minmax(0,1fr) 120px 160px;
}

.mbdm-board-wrap.has-platform.has-status .mbdm-board-grid {
  grid-template-columns: 112px minmax(0,1fr) 92px 120px 160px 112px minmax(0,1fr) 92px 120px 160px;
}

.mbdm-board-grid-head {
  background: transparent;
}

.mbdm-board-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 18px 24px;
}

.mbdm-board-grid-head .mbdm-board-cell {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mbdm-muted);
  font-weight: 700;
  background: rgba(255,255,255,.02);
}

.mbdm-board-row .mbdm-board-cell {
  border-top: 1px solid var(--mbdm-panel-border);
  background: rgba(255,255,255,.02);
}

.mbdm-board-cell-line,
.mbdm-board-cell-platform,
.mbdm-board-cell-status,
.mbdm-board-cell-time {
  justify-content: center;
  text-align: center;
}

.mbdm-board-cell-time {
  justify-content: flex-end;
  text-align: right;
  min-width: 12rem;
}

.mbdm-board-row .mbdm-board-cell-time {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.mbdm-board-row .mbdm-board-cell-time .mbdm-time,
.mbdm-board-row .mbdm-board-cell-time .mbdm-subtime {
  white-space: nowrap;
}

.mbdm-board-cell.is-empty {
  opacity: 0;
}

.mbdm-board-wrap .mbdm-board-row .mbdm-board-cell-destination .mbdm-destination,
.mbdm-board-wrap .mbdm-board-row .mbdm-board-cell-time .mbdm-time {
  font-weight: 800;
}

.mbdm-board-wrap .mbdm-board-body .mbdm-board-row:last-child .mbdm-board-cell {
  border-bottom: 0;
}

/* Twin board styling on unified grid */
.mbdm-variant-twin-board-2-0 .mbdm-board-wrap,

.mbdm-variant-twin-board-2-0 .mbdm-board-grid,

.mbdm-variant-twin-board-2-0 .mbdm-board-grid-head .mbdm-board-cell,

.mbdm-variant-twin-board-2-0 .mbdm-board-row .mbdm-board-cell {
  background: rgba(36,36,36,.96);
  border-top: 6px solid #000;
  color: var(--mbdm-cream);
  padding: 18px 18px;
}


.mbdm-variant-twin-board-2-0 .mbdm-board-cell-line,

.mbdm-variant-twin-board-2-0 .mbdm-board-cell .mbdm-line-pill,

.mbdm-variant-twin-board-azure-2-0 .mbdm-clock {
  background: transparent;
  color: #ffffff;
  padding: 0;
  border-radius: 0;
}

.mbdm-variant-twin-board-azure-2-0 .mbdm-title,
.mbdm-variant-twin-board-azure-2-0 .mbdm-destination,
.mbdm-variant-twin-board-azure-2-0 .mbdm-time,
.mbdm-variant-twin-board-azure-2-0 .mbdm-subtime,
.mbdm-variant-twin-board-azure-2-0 .mbdm-platform,
.mbdm-variant-twin-board-azure-2-0 .mbdm-status-badge {
  color: #fff;
}

.mbdm-variant-twin-board-azure-2-0 .mbdm-platform,
.mbdm-variant-twin-board-azure-2-0 .mbdm-status-badge,
.mbdm-variant-twin-board-2-0 .mbdm-platform,
.mbdm-variant-twin-board-2-0 .mbdm-status-badge {
  background: rgba(255,255,255,.06);
}


.mbdm-table thead tr th:first-child { border-top-left-radius: 16px; }
.mbdm-table thead tr th:last-child { border-top-right-radius: 16px; }
.mbdm-table tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.mbdm-table tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }

.mbdm-board-grid-head .mbdm-board-cell:first-child,
.mbdm-board-row .mbdm-board-cell:first-child { border-top-left-radius: 18px; border-bottom-left-radius: 18px; }
.mbdm-board-grid-head .mbdm-board-cell:last-child,
.mbdm-board-row .mbdm-board-cell:last-child { border-top-right-radius: 18px; border-bottom-right-radius: 18px; }

.mbdm-variant-twin-board-2-0 .mbdm-board-grid-head,

.mbdm-variant-twin-board-2-0 .mbdm-board-row,

.mbdm-variant-twin-board-2-0 .mbdm-board-row,


.mbdm-variant-twin-board-2-0 .mbdm-board-row .mbdm-board-cell-time .mbdm-time {
  line-height: 1.05;
}


.mbdm-variant-twin-board-2-0 .mbdm-board-row .mbdm-board-cell-time .mbdm-subtime {
  margin-top: 0;
  font-size: 0.72em;
  opacity: .9;
}


.mbdm-variant-twin-board-2-0 .mbdm-board-cell-time,

.mbdm-variant-twin-board-2-0 .mbdm-col-time {
  min-width: 12.75rem;
  width: 12.75rem;
}


.mbdm-variant-twin-board-2-0 .mbdm-board-cell-line,

.mbdm-variant-twin-board-2-0 .mbdm-col-line {
  min-width: 8.5rem;
  width: 8.5rem;
}


.mbdm-variant-twin-board-2-0 .mbdm-board-cell .mbdm-subtime {
  white-space: nowrap;
}

.mbdm-variant-stagewall-xl .mbdm-logo,
.mbdm-variant-stagewall-xxl .mbdm-logo {
  max-height: 72px;
  max-width: 240px;
}

.mbdm-time { white-space: nowrap; }


.mbdm-variant-kompakt {
  --mbdm-bg: radial-gradient(circle at top center, rgb(13 49 105 / 92%) 0%, rgba(9, 21, 50, 1) 32%, rgba(5, 14, 36, 1) 100%);
  --mbdm-panel: linear-gradient(90deg, rgba(27,34,54,.90) 0%, rgba(35,43,66,.88) 50%, rgba(24,32,50,.92) 100%);
  --mbdm-panel-border: rgba(255,255,255,.04);
  --mbdm-text: #ffffff;
  --mbdm-muted: #9ca3af;
  --mbdm-yellow: #f6c83f;
}
.mbdm-variant-kompakt .mbdm-shell {
  border-radius: 0;
  box-shadow: none;
  padding: 24px 28px 26px;
}
.mbdm-variant-kompakt .mbdm-header {
  margin-bottom: 18px;
}
.mbdm-variant-kompakt .mbdm-title {
  font-size: clamp(46px, 4.6vw, 92px);
  font-weight: 900;
  letter-spacing: -.03em;
  text-shadow: 0 6px 16px rgba(0,0,0,.24);
}
.mbdm-variant-kompakt .mbdm-clock {
  font-size: clamp(44px, 4.4vw, 88px);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.mbdm-variant-kompakt .mbdm-table-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  overflow: visible;
}
.mbdm-variant-kompakt .mbdm-table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.mbdm-variant-kompakt .mbdm-table thead {
  display: none;
}
.mbdm-variant-kompakt .mbdm-table tbody {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mbdm-variant-kompakt .mbdm-table tbody tr {
  display: flex;
  align-items: center;
  gap: 4%;
  padding: 14px 18px;
  background: var(--mbdm-panel);
  border: 1px solid var(--mbdm-panel-border);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 24px rgba(0,0,0,.12);
}
.mbdm-variant-kompakt .mbdm-table tbody td {
  padding: 0 !important;
  border-top: 0;
  background: transparent !important;
}
.mbdm-variant-kompakt .mbdm-table tbody td:first-child {
  flex: 0 0 138px;
  min-width: 138px;
  padding-right: 6px !important;
}
.mbdm-variant-kompakt .mbdm-table tbody td:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}
.mbdm-variant-kompakt .mbdm-table tbody td:last-child {
  flex: 0 0 230px;
  min-width: 230px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}
.mbdm-variant-kompakt .mbdm-col-platform,
.mbdm-variant-kompakt .mbdm-col-status {
  width: auto;
}
.mbdm-variant-kompakt .mbdm-table tbody .mbdm-col-platform,
.mbdm-variant-kompakt .mbdm-table tbody .mbdm-col-status {
  flex: 0 0 auto;
}
.mbdm-variant-kompakt .mbdm-line-pill {
  min-width: 86px;
  padding: 18px 20px;
  border-radius: 22px !important;
  font-size: clamp(30px, 2.5vw, 52px);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 18px rgba(0,0,0,.18);
}
.mbdm-variant-kompakt .mbdm-destination {
  font-size: clamp(30px, 2.8vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-shadow: 0 4px 12px rgba(0,0,0,.22);
}
.mbdm-variant-kompakt .mbdm-platform {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 18px;
  background: rgba(255,255,255,.06);
  color: #ffffff;
}
.mbdm-variant-kompakt .mbdm-status-badge {
  min-width: 6ch;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 18px;
}
.mbdm-variant-kompakt .mbdm-time {
  font-size: clamp(34px, 3vw, 72px);
  line-height: 1;
  font-weight: 900;
  color: var(--mbdm-yellow);
  white-space: nowrap;
  text-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.mbdm-variant-kompakt .mbdm-subtime {
  margin-top: 4px;
  font-size: clamp(22px, 1.8vw, 44px);
  line-height: 1.02;
  color: var(--mbdm-yellow);
  white-space: nowrap;
}
.mbdm-variant-kompakt .mbdm-empty-state {
  background: rgba(255,255,255,.06);
  border-radius: 24px;
}
.mbdm-variant-kompakt.mbdm-font-size-larger .mbdm-destination { font-size: clamp(34px, 3vw, 72px); }
.mbdm-variant-kompakt.mbdm-font-size-larger .mbdm-time { font-size: clamp(38px, 3.3vw, 76px); }
.mbdm-variant-kompakt.mbdm-font-size-very-large .mbdm-destination { font-size: clamp(38px, 3.4vw, 78px); }
.mbdm-variant-kompakt.mbdm-font-size-very-large .mbdm-time { font-size: clamp(42px, 3.6vw, 82px); }
