/* Adapters for real network controls and the existing chain renderer. */
.network-control select {
  width: auto;
  min-height: 44px;
  max-width: 132px;
  padding-inline: 2px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.chain-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chain-tools .text-button { white-space: nowrap; }
.demo-notice[role="status"] { color: var(--warning); }
.status-message.error {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #b78c3d;
}
.transaction-receipt .status-message.error {
  color: #f4e4bb;
  background: #4a4a32;
  border-color: #d5bd79;
}
.transaction-receipt .status-message a { color: inherit; }
#quoteNote { margin-block-end: 8px; }
#useBalance { min-height: 44px; }
#feeBnb, #baseOutput, #stakeShares { overflow-wrap: anywhere; }
[lang="zh-CN"] .network-control select { max-width: 120px; }

@media (max-width: 600px) {
  .nav-row { flex-wrap: wrap; gap: 0; }
  .chain-tools { width: 100%; justify-content: space-between; }
}
/* Live portfolio bindings for the GPT component. */
#positionsConnected { display: none; }
.positions-surface:has(#positionConnect[hidden]) #positionsConnected { display: block; }
.positions-surface:has(#positionConnect[hidden]) #positionsDisconnected { display: none; }
.positions-tab-bar button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.positions-tab-bar button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 2px; background: var(--ink); }
.positions-tab-bar small:empty { display: none; }
.positions-tab-bar small { color: var(--muted); font-weight: 400; }
#positionConnect::after { content: "→"; }
.positions-table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: left; }
.positions-table th, .positions-table td { padding: 12px 8px 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.positions-table th { color: var(--muted); font-size: 11px; font-weight: 500; }
.positions-table td { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.positions-table th:first-child { width: 14%; }
.positions-table th:nth-child(2), .positions-table th:nth-child(3) { width: 28%; }
.positions-table :is(th, td):last-child { padding-inline-end: 0; text-align: right; }
.positions-table td[colspan="4"] { text-align: left; color: var(--muted); }
.positions-table .button { min-height: 36px; padding: 6px 9px; border-color: #bcc8b6; background: var(--surface); color: var(--ink); font-size: 11px; white-space: normal; }
.position-pagination:not([hidden]) { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.position-pagination .button { min-height: 36px; }
#positionStatus:empty { display: none; }
#positionStatus:not(:empty) { margin: 22px 30px; font-size: 12px; line-height: 1.6; border-left: 3px solid #7c9354; padding: 10px 12px; background: #edf2e5; color: #3f5531; overflow-wrap: anywhere; }
#positionStatus.error { background: var(--warning-bg); color: var(--warning); border-color: #b78c3d; }
@media (max-width: 600px) {
  #positionStatus:not(:empty) { margin-inline: 20px; }
  .positions-table th, .positions-table td { padding-inline-end: 5px; }
  .positions-table .button { min-height: 44px; padding-inline: 5px; }
}

.fee-ribbon span:nth-child(1) { flex: 62; }
.fee-ribbon span:nth-child(2) { flex: 28; }
.fee-ribbon span:nth-child(3) { flex: 7; }
.fee-ribbon span:nth-child(4) { flex: 3; }
.addresses { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-block: 0 16px; }
.addresses a { overflow-wrap: anywhere; }
.pool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
#pendingSplit { padding-block: 10px 14px; }
@media (min-width: 600px) {
  .pool-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-row { flex-wrap: wrap; }
  .chain-tools { width: 100%; justify-content: space-between; }
  .chain-tools .nav-caption { display: block; }
}
