/* 通用顶栏 — 左返回 + 居中标题 + 右操作位 */
.bc-navbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  height: 48px;
  padding: 0 4px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(27, 26, 28, 0.96);
  border-bottom: 1px solid rgba(122, 106, 97, 0.28);
  flex-shrink: 0;
}

.bc-navbar--wallet {
  background: #43281c;
  border-bottom-color: rgba(255, 213, 129, 0.12);
}

.bc-navbar__back {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: #fcd68b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.bc-navbar__back svg {
  display: block;
  flex-shrink: 0;
}

.bc-navbar__title {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  line-height: 1.2;
  pointer-events: none;
  max-width: calc(100% - 104px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-navbar__right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
}

.bc-navbar__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fcd68b;
  text-decoration: none;
  line-height: 0;
}

body.bc-app button.bc-navbar__back {
  --pico-background-color: transparent;
  --pico-border-color: transparent;
  --pico-color: #fcd68b;
  --pico-box-shadow: none;
  font-weight: 400;
}
