/* ==========================================================================
   YSC Live Demo Showcase Dock (nur aktiv bei DEMO_PULT=an ausserhalb Telegrams)
   Editorial Obsidian × Meyer Gold — kompakt, reaktionsschnell, kollabierbar.
   ========================================================================== */

body[data-ysc-demo="open"] {
  padding-top: 94px !important;
}
body[data-ysc-demo="open"] .topbar {
  top: 88px !important;
}

@media (max-width: 760px) {
  body[data-ysc-demo="open"] {
    padding-top: 126px !important;
  }
  body[data-ysc-demo="open"] .topbar {
    top: 120px !important;
  }
}

#yscDemoBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: #eef2f8;
  background: rgba(8, 12, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 169, 89, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  user-select: none;
}

#yscDemoBar * {
  box-sizing: border-box;
}

.ydb-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ydb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ydb-left,
.ydb-nav,
.ydb-right,
.ydb-scenarios {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ydb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(212, 169, 89, 0.14);
  border: 1px solid rgba(212, 169, 89, 0.38);
  color: #f3d28b;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ydb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.85);
}

.ydb-broker-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 2px 7px;
}

.ydb-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ydb-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 16px 3px 2px;
  cursor: pointer;
  outline: none;
  background-image: linear-gradient(45deg, transparent 50%, #d4a959 50%), linear-gradient(135deg, #d4a959 50%, transparent 50%);
  background-position: calc(100% - 8px) 52%, calc(100% - 4px) 52%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.ydb-select option {
  background: #0d1322;
  color: #f8fafc;
}

.ydb-btn,
.ydb-tab,
.ydb-pill {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: #dbe4f0;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.ydb-btn:hover,
.ydb-tab:hover,
.ydb-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.ydb-tab[data-active="1"] {
  background: rgba(212, 169, 89, 0.18);
  border-color: rgba(212, 169, 89, 0.55);
  color: #fbe2a8;
}

.ydb-pill[data-tone="ok"] {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.09);
  color: #a7f3d0;
}
.ydb-pill[data-tone="ok"]:hover,
.ydb-pill[data-tone="ok"][data-active="1"] {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.65);
  color: #ecfdf5;
}

.ydb-pill[data-tone="warn"] {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.09);
  color: #fde68a;
}
.ydb-pill[data-tone="warn"]:hover,
.ydb-pill[data-tone="warn"][data-active="1"] {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.65);
  color: #fffbeb;
}

.ydb-pill[data-tone="bad"] {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.09);
  color: #fecaca;
}
.ydb-pill[data-tone="bad"]:hover,
.ydb-pill[data-tone="bad"][data-active="1"] {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fef2f2;
}

.ydb-pill[data-tone="info"] {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.09);
  color: #bae6fd;
}
.ydb-pill[data-tone="info"]:hover,
.ydb-pill[data-tone="info"][data-active="1"] {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.65);
  color: #f0f9ff;
}

.ydb-note {
  font-size: 11px;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ydb-note b {
  color: #a7f3d0;
  font-weight: 700;
}

.ydb-lang {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  overflow: hidden;
}

.ydb-lang button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 7px;
  cursor: pointer;
}

.ydb-lang button[data-active="1"] {
  background: rgba(212, 169, 89, 0.24);
  color: #fbe2a8;
}

#yscDemoFab {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 99999;
  border: 1px solid rgba(212, 169, 89, 0.45);
  background: rgba(8, 12, 22, 0.92);
  color: #f3d28b;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  gap: 6px;
}

body[data-ysc-demo="closed"] #yscDemoBar {
  display: none !important;
}
body[data-ysc-demo="closed"] #yscDemoFab {
  display: inline-flex !important;
}
body[data-ysc-demo="clean"] #yscDemoBar,
body[data-ysc-demo="clean"] #yscDemoFab {
  display: none !important;
}
