#ch12-control-launcher {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 99998;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 12px 17px;
  background: rgba(8,8,16,.92);
  color: #fff;
  font: 700 13px/1 system-ui,-apple-system,sans-serif;
  box-shadow: 0 12px 38px rgba(0,0,0,.38);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

#ch12-control-panel {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(0,0,0,.64);
  backdrop-filter: blur(8px);
}

#ch12-control-panel.open {
  display: block;
}

.ch12-shell {
  position: absolute;
  right: 0;
  top: 0;
  width: min(520px,100%);
  height: 100%;
  overflow: auto;
  padding: 18px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 90% 0%,rgba(195,71,255,.16),transparent 34%),
    #090910;
  color: #f7f7fb;
  font-family: system-ui,-apple-system,sans-serif;
  box-shadow: -18px 0 55px rgba(0,0,0,.48);
}

.ch12-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ch12-title {
  font-size: 21px;
  font-weight: 800;
}

.ch12-subtitle {
  margin-top: 4px;
  color: #aaaaba;
  font-size: 12px;
}

.ch12-icon-button,
.ch12-button {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
}

.ch12-icon-button {
  width: 40px;
  height: 40px;
  font-size: 21px;
}

.ch12-button {
  padding: 9px 12px;
  font-weight: 700;
}

.ch12-button.danger {
  color: #ffbaba;
}

.ch12-button.approve {
  color: #b8ffd4;
}

.ch12-button.reject {
  color: #ffc2c2;
}

.ch12-tabs {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.ch12-tab {
  padding: 10px 5px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  color: #c8c8d2;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.ch12-tab.active {
  background: rgba(164,75,255,.22);
  border-color: rgba(200,130,255,.45);
  color: #fff;
}

.ch12-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}

.ch12-card {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.ch12-metric {
  font-size: 25px;
  font-weight: 850;
}

.ch12-label {
  margin-top: 4px;
  color: #a9a9b6;
  font-size: 12px;
}

.ch12-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ch12-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #ccc;
  font-size: 11px;
}

.ch12-text {
  margin-top: 8px;
  color: #ddddE6;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ch12-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ch12-empty,
.ch12-error {
  padding: 24px 12px;
  text-align: center;
  color: #a8a8b4;
}

.ch12-error {
  color: #ffbaba;
}

.ch12-progress {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.ch12-progress > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,#864cff,#ef60d5);
}

.ch12-footer {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 28px;
}

@media (max-width: 440px) {
  .ch12-shell {
    padding: 14px;
  }

  .ch12-tabs {
    grid-template-columns: repeat(2,1fr);
  }
}
