/* Inline branch controls — centered modal panel, not bottom-right aggregate */

.proto-branch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px dashed #ffe58f;
  border-radius: 8px;
  background: rgba(255, 251, 230, 0.06);
}

.proto-inline-branch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.proto-inline-branch__label {
  font-size: 12px;
  color: #876800;
  font-weight: 600;
  white-space: nowrap;
}

/* 深色交易页：提高黄分支 icon/标签可见度 */
.trade-pane-right-box .proto-inline-branch__label,
.account-info-box .proto-inline-branch__label {
  color: #faad14;
}

.trade-pane-right-box .proto-inline-branch__trigger,
.account-info-box .proto-inline-branch__trigger {
  filter: drop-shadow(0 0 1px rgba(250, 173, 20, 0.85));
}

.proto-inline-branch__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  line-height: 0;
}

.proto-inline-branch__trigger:hover {
  background: rgba(250, 173, 20, 0.15);
}

.proto-inline-branch__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2099;
}

.proto-inline-branch__panel {
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 24px);
}

.proto-inline-branch__panel--centered {
  animation: proto-inline-branch-panel-in 0.24s ease-out;
}

@keyframes proto-inline-branch-panel-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.proto-inline-branch__panel-inner {
  padding: 10px 12px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(250, 173, 20, 0.18);
}

.proto-inline-branch__panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

.proto-inline-branch__panel-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}

.proto-inline-branch__option {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  background: #fff;
  color: #614700;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.proto-inline-branch__option.is-active {
  background: #ffd905;
  border-color: #d4b004;
  font-weight: 600;
}

.proto-inline-branch__option.is-danger {
  border-color: #ffccc7;
  color: #cf1322;
}

.proto-inline-branch__option.is-danger.is-active {
  background: #fff1f0;
  border-color: #ffa39e;
}

.proto-branch-bar--chain-submit {
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
}
