/* TRX 能量子站 — 布局对齐参考稿 */
.app.app--energy {
  padding: 0;
  max-width: 100%;
  min-height: 100dvh;
  background: linear-gradient(180deg, #d4e4f7 0%, #e6edf6 42%, #eef2f7 100%);
}

.view--energy.active {
  animation: none;
}

.energy-app {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px calc(70px + env(safe-area-inset-bottom, 0));
}

.energy-panel {
  display: none;
}

.energy-panel.active {
  display: block;
}

.energy-panel[hidden] {
  display: none !important;
}

/* —— 顶栏 —— */
.en-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.en-chip img {
  border-radius: 8px;
  object-fit: cover;
}

.en-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.en-chip-brand-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.en-chip--brand strong {
  font-size: 0.84rem;
  font-weight: 800;
}

.en-chip--brand small {
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.72rem;
}

.en-chip--price {
  flex-shrink: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.72rem;
  color: #1e40af;
  white-space: nowrap;
}

.en-market-line {
  margin: 6px 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
}

.en-market-line.is-error {
  color: #94a3b8;
}

/* —— Hero —— */
.en-hero {
  position: relative;
  margin: 0 -4px 10px;
  padding: 4px 0 8px;
  overflow: hidden;
}

.en-hero-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(0.5px);
  pointer-events: none;
}

.en-hero-cloud--a {
  width: 56px;
  height: 22px;
  left: 8%;
  top: 2px;
  box-shadow: 22px 0 0 -4px rgba(255, 255, 255, 0.5);
}

.en-hero-cloud--b {
  width: 40px;
  height: 16px;
  left: 22%;
  top: 0;
}

.en-hero-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  min-height: 132px;
}

.en-hero-copy {
  flex: 1;
  min-width: 0;
  max-width: 58%;
  padding-bottom: 4px;
  z-index: 1;
}

.en-hello {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}

.en-headline {
  margin: 0;
  font-size: 1.62rem;
  font-weight: 900;
  line-height: 1.22;
  color: #0f2744;
  letter-spacing: 0.01em;
}

.en-headline-sub {
  color: #0f2744;
}

.en-slogan {
  display: inline-block;
  margin: 10px 0 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(186, 214, 255, 0.45);
  font-size: 0.74rem;
  font-weight: 600;
  color: #2563eb;
}

.en-mascot {
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-right: -8px;
  margin-bottom: -6px;
  z-index: 1;
}

.en-mascot img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 28px;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
}

/* —— 白卡片 —— */
.en-surface {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
}

.en-wallet {
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}

/* —— 充值 / 账变 —— */
.energy-panel--overlay {
  padding: 4px 2px 16px;
}

.en-recharge-head {
  margin-bottom: 10px;
}

.en-recharge-back {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 0 8px;
  cursor: pointer;
}

.en-recharge-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.en-recharge-bal-line {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.en-recharge-bal-line strong {
  color: #2563eb;
  font-size: 0.95rem;
}

.en-recharge-deposit {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #86efac;
  text-align: center;
}

.en-recharge-deposit .en-recharge-section-k {
  text-align: left;
}

.en-recharge-deposit .en-recharge-hint {
  text-align: left;
}

.en-recharge-deposit .en-recharge-hint strong {
  color: #0d9488;
  font-weight: 800;
}

.en-recharge-qr-frame {
  display: inline-block;
  margin: 4px auto 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.en-recharge-section-k {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.en-recharge-bar {
  color: #2563eb;
  margin-right: 6px;
  font-weight: 900;
}

.en-recharge-hint {
  margin: 0 0 12px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #475569;
}

.en-recharge-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.en-recharge-qr,
#en-recharge-qr-canvas {
  display: block;
  border-radius: 8px;
  background: #fff;
  width: 240px;
  height: 240px;
}

.en-recharge-addr {
  margin: 0 0 12px;
  padding: 0 4px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  word-break: break-all;
  color: #0d9488;
  font-weight: 700;
}

.en-recharge-copy {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #86efac;
  background: #f8fafc;
  font-size: 0.85rem;
  font-weight: 800;
  color: #166534;
  cursor: pointer;
}

.en-recharge-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.en-recharge-topup {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #86efac;
}

.en-recharge-topup-hint {
  margin-bottom: 10px;
}

.en-recharge-topup-hint strong {
  color: #0d9488;
}

.en-recharge-amount-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #334155;
}

.en-recharge-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.en-recharge-preset {
  min-width: 3.25rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #86efac;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  color: #166534;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.en-recharge-preset:active {
  transform: scale(0.97);
  background: #dcfce7;
}

.en-recharge-topup-row {
  display: grid;
  grid-template-columns: 1fr minmax(6.5rem, auto);
  gap: 10px;
  align-items: stretch;
}

.en-recharge-amount {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #86efac;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.en-recharge-amount::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.en-recharge-amount:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.en-recharge-prepare {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 12px;
}

.en-recharge-pay-box {
  margin-top: 14px;
  padding: 14px 12px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #93c5fd;
}

.en-recharge-pay-k {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

.en-recharge-pay-line {
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.en-recharge-pay-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #2563eb;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.en-recharge-pay-unit {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1d4ed8;
}

.en-recharge-pay-sub {
  margin: 0 0 12px;
  font-size: 0.72rem;
  color: #64748b;
}

.en-recharge-pay-sub strong {
  color: #0f172a;
}

.en-recharge-pay-exp {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: #b45309;
}

.en-recharge-copy-pay {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  border: 2px solid #93c5fd;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1d4ed8;
  cursor: pointer;
}

.en-recharge-pay-amt {
  display: none;
}

.en-recharge-resume {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #93c5fd;
  background: #eff6ff;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1d4ed8;
  cursor: pointer;
  text-align: left;
}

.en-recharge-pay-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0));
  background: rgba(15, 23, 42, 0.45);
}

.en-recharge-pay-sheet[hidden] {
  display: none !important;
}

.en-pay-sheet-panel {
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 18px 16px 20px;
  border-radius: 18px 18px 16px 16px;
  background: #fff;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.en-pay-sheet-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
}

.en-pay-field {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.en-pay-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.en-pay-field-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
}

.en-pay-copy {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.en-pay-field-val {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.en-pay-field-addr {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
  color: #475569;
}

.en-pay-field-warn {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: #dc2626;
  font-weight: 700;
}

.en-pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.en-pay-qr {
  display: block;
  border-radius: 8px;
}

.en-pay-countdown {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}

.en-pay-credit {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.en-pay-rules {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #64748b;
}

.en-pay-rules-warn {
  color: #dc2626;
}

.en-pay-clipboard-warn {
  margin: 0 0 14px;
  font-size: 0.65rem;
  line-height: 1.5;
  color: #94a3b8;
}

.en-pay-ok {
  display: block;
  margin-left: auto;
  min-width: 88px;
  padding: 10px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #34d399, #10b981);
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.en-recharge-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.en-recharge-unconfigured {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: #b45309;
  line-height: 1.45;
}

.en-recharge-records {
  padding: 14px;
  border-radius: 16px;
  border: 2px solid #93c5fd;
}

.en-recharge-records-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.en-recharge-records-desc {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.en-recharge-open {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  cursor: pointer;
}

.en-ledger-panel {
  min-height: calc(100dvh - 160px);
  display: flex;
  flex-direction: column;
}

.en-ledger-back {
  margin-bottom: 4px;
}

.en-ledger-head {
  margin-bottom: 8px;
}

.en-ledger-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.en-ledger-meta {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.en-ledger-meta strong {
  color: #0f172a;
  font-weight: 800;
}

.en-ledger-dot {
  color: #cbd5e1;
}

.en-ledger-orders {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
}

.en-ledger-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.en-ledger-body:has(.en-ledger-list:not([hidden])) {
  justify-content: flex-start;
  min-height: 0;
}

.en-ledger-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  width: 100%;
}

.en-ledger-list li {
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  font-size: 0.76rem;
  line-height: 1.45;
}

.en-ledger-row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.en-ledger-list time {
  font-size: 0.68rem;
  color: #94a3b8;
}

.en-ledger-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0;
  padding: 32px 16px;
}

.en-ticker {
  padding: 9px 14px;
  font-size: 0.7rem;
  color: #64748b;
  background: #f4f7fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.en-ticker::before {
  content: '📢 ';
}

.en-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 16px;
}

.en-wallet-main {
  min-width: 0;
  flex: 1;
}

.en-label {
  font-size: 0.76rem;
  color: #94a3b8;
}

.en-balance {
  margin: 2px 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0f172a;
}

.en-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
}

.en-meta {
  margin: 0;
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.en-wallet-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.en-btn {
  border: none;
  border-radius: 11px;
  min-width: 76px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.en-btn.primary {
  background: linear-gradient(135deg, #4bb8ff, #2f7cf6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 124, 246, 0.35);
}

.en-btn.ghost {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

/* —— 下单双卡 —— */
.en-rent-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.en-rent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  border: none;
  border-radius: 16px;
  padding: 11px 10px 11px 12px;
  min-height: 0;
  background: linear-gradient(160deg, #ffffff 0%, #edf4ff 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.en-rent-body {
  flex: 1;
  min-width: 0;
}

.en-rent-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.en-en {
  margin: 2px 0 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #a1afc2;
}

.en-desc {
  margin: 5px 0 0;
  font-size: 0.64rem;
  color: #64748b;
  line-height: 1.35;
}

.en-rent-icon {
  flex-shrink: 0;
  font-size: 1.55rem;
  line-height: 1;
  align-self: center;
  margin-right: 2px;
}

/* —— 四宫格 —— */
.en-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.en-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-height: 86px;
  padding: 10px 4px 8px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #e9f1fd 100%);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.en-quick-ico {
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 2px;
}

.en-quick-t {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.2;
}

.en-quick-s {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #a8b5c9;
}

/* —— 最近订单 —— */
.en-orders-block {
  margin-bottom: 8px;
}

.en-orders-block > .en-orders-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.en-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.en-orders-head strong {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 800;
}

.en-link {
  border: none;
  background: none;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.en-orders {
  padding: 0;
  min-height: 0;
}

.en-order-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.en-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
}

.en-order-item:first-child {
  border-top: none;
}

.en-empty {
  text-align: center;
  padding: 22px 16px;
  color: #b6c2d1;
  font-size: 0.84rem;
}

.en-sub-placeholder {
  margin-top: 24px;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 18px;
}

/* —— 底栏 —— */
.en-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(4px + env(safe-area-inset-bottom, 0));
  width: min(448px, calc(100% - 24px));
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
  z-index: 30;
}

.en-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 5px 2px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.en-tab span {
  font-size: 0.56rem;
  font-weight: 600;
  white-space: nowrap;
}

.en-tab.active {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

/* —— 订单页 —— */
.en-page-head {
  margin: 6px 2px 14px;
}

.en-page-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f2744;
  letter-spacing: 0.02em;
}

.en-page-ico {
  font-size: 1.2rem;
  line-height: 1;
}

.en-page-meta {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.en-sep {
  margin: 0 6px;
  color: #cbd5e1;
}

.en-inline-link {
  border: none;
  padding: 0;
  background: none;
  font: inherit;
  color: #64748b;
  cursor: pointer;
}

.en-inline-link:active {
  color: #2563eb;
}

.en-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.en-filter {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 999px;
  padding: 10px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}

.en-filter.active {
  background: linear-gradient(135deg, #4bb8ff, #2f7cf6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 124, 246, 0.35);
}

.en-orders-page {
  min-height: 200px;
}

.en-orders-full-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.en-orders-full-list:not(:empty) + .en-orders-empty {
  display: none;
}

.en-orders-full-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
}

.en-orders-full-item main {
  min-width: 0;
  flex: 1;
}

.en-orders-full-item .en-ord-id {
  font-weight: 800;
  color: #0f172a;
}

.en-orders-full-item .en-ord-sub {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.72rem;
}

.en-orders-empty {
  margin: 48px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #b6c2d1;
}

.en-orders-full-list:empty {
  display: none;
}

/* —— 手动下单 —— */
.en-manual {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0));
}

.en-manual-head {
  margin: 4px 0 16px;
}

.en-manual-title {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 900;
  color: #0f2744;
}

.en-manual-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.en-manual-chip {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
}

.en-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

.en-form-label--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.en-form-block {
  margin-bottom: 18px;
}

.en-field {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 0.85rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  margin-bottom: 4px;
}

.en-field::placeholder {
  color: #b0bcc9;
}

.en-field:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
}

.en-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.en-stepper-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  font-size: 1.25rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.en-stepper-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.en-stepper-input::-webkit-outer-spin-button,
.en-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.en-pill-row {
  display: flex;
  gap: 10px;
}

.en-pill-row--bw .en-pill {
  flex: 1;
  padding-left: 6px;
  padding-right: 6px;
}

.en-pill {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.en-pill.active {
  background: linear-gradient(135deg, #4bb8ff, #2f7cf6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 124, 246, 0.35);
}

.en-hint {
  margin: 10px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #94a3b8;
}

.en-duration-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.en-duration {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  border: none;
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  color: #64748b;
}

.en-duration.active {
  background: linear-gradient(145deg, #3b9dff, #2f7cf6);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 124, 246, 0.38);
}

.en-duration-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.en-duration-main {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.en-duration-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.en-duration:not(.active) .en-duration-badge {
  background: #fecaca;
  color: #dc2626;
}

.en-duration-price {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.95;
}

.en-checkout {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(52px + env(safe-area-inset-bottom, 0));
  z-index: 25;
  width: min(448px, calc(100% - 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.15);
}

.energy-panel[data-energy-panel='manual']:not(.active) .en-checkout,
.energy-panel[data-energy-panel='batch']:not(.active) .en-checkout {
  display: none;
}

.en-bw-custom {
  margin-top: 8px;
}

.en-field--compact {
  margin-bottom: 0;
  padding: 12px 14px;
}

/* —— 批量下单 —— */
.en-batch {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0));
}

.en-batch-card {
  padding: 4px 0 8px;
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.en-batch-section {
  padding: 14px 14px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.en-batch-section--last {
  border-bottom: none;
}

.en-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.en-section-bar {
  width: 3px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #4bb8ff, #2f7cf6);
  flex-shrink: 0;
}

.en-section-title {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 800;
  color: #1e293b;
}

.en-valid-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.en-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
}

.en-textarea::placeholder {
  color: #b0bcc9;
}

.en-textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.3);
  background: #fff;
}

.en-batch-tip {
  margin: 14px 4px 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #64748b;
}

.en-checkout-total {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.en-checkout-total strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.en-checkout-sub {
  margin: 4px 0 0;
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.3;
}

.en-checkout-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  max-width: 46%;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4bb8ff, #2f7cf6);
  box-shadow: 0 6px 16px rgba(47, 124, 246, 0.35);
  cursor: pointer;
}

.en-checkout-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

/* —— 智能笔数 —— */
.en-smart-head {
  margin-bottom: 10px;
}

.en-smart-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.en-smart-meta {
  margin: 6px 2px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.en-smart-sub-card {
  padding: 16px 18px;
  margin-bottom: 12px;
  border-radius: 16px;
  text-align: center;
}

.en-smart-sub-title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.en-smart-running {
  margin: 0;
  line-height: 1.1;
}

.en-smart-running strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: -0.02em;
}

.en-smart-running-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.en-smart-sub-meta {
  margin: 8px 0 4px;
  font-size: 0.74rem;
  color: #94a3b8;
}

.en-smart-sub-links {
  margin: 0;
  font-size: 0.76rem;
}

.en-smart-form {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 10px;
}

.en-smart-custom {
  margin-top: 8px;
}

.en-smart-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.en-smart-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.en-smart-toggle-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.en-smart-toggle-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.35;
}

.en-smart-switch {
  width: 46px;
  height: 28px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.en-smart-fee-bar {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.en-smart-fee-head {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e40af;
}

.en-smart-fee-labels {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.en-smart-fee-values {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.en-checkout--smart {
  margin-bottom: 8px;
}

.en-smart-submit-hint {
  font-size: 0.76rem;
  color: #475569;
}

.en-smart-foot-tip {
  margin: 0 4px 12px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #94a3b8;
  text-align: center;
}

/* —— 工具箱 —— */
.tools-page {
  display: none;
}

.tools-page.active {
  display: block;
}

.tools-page--scroll {
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  padding-bottom: 12px;
}

.tools-head,
.tools-subhead {
  margin-bottom: 12px;
}

.tools-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.tools-sub {
  margin: 4px 2px 0;
  font-size: 0.78rem;
  color: #64748b;
}

.tools-section-title {
  margin: 14px 2px 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

.tools-chain {
  padding: 12px 14px;
  border-radius: 14px;
}

.tools-chain-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #64748b;
}

.tools-chain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.tools-chain-grid strong {
  display: block;
  font-size: 1.35rem;
  color: #0f172a;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tools-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  text-align: left;
  cursor: pointer;
}

.tools-row-body strong {
  display: block;
  font-size: 0.84rem;
}

.tools-row-body small {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: #94a3b8;
}

.tools-row-go {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}

.tools-cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 2px 8px;
}

.tools-section-title--tight {
  margin: 0;
}

.tools-cmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.tools-cmd-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf5;
}

.tools-cmd-card strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}

.tools-cmd-card small {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  color: #64748b;
}

.tools-mon-recent {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8edf5;
}

.tools-mon-recent-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.74rem;
  color: #64748b;
}

.tools-cmd-fold {
  margin: 14px 2px;
  font-size: 0.74rem;
  color: #475569;
}

.tools-cmd-list {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.tools-back {
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 6px;
  cursor: pointer;
}

.tools-tip {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: #eff6ff;
}

.tools-tip-k {
  margin: 0 0 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.06em;
}

.tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tools-chips span {
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
}

.tools-form-card {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.tools-ab-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.tools-ab-letter {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-weight: 800;
  text-align: center;
}

.tools-primary-btn {
  width: 100%;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4bb8ff, #2f7cf6);
  cursor: pointer;
}

.tools-primary-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
}

.tools-ab-list,
.tools-mon-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tools-ab-item,
.tools-mon-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
}

.tools-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 10px;
  text-align: center;
}

.tools-stat strong {
  display: block;
  font-size: 1.2rem;
  color: #2563eb;
}

.tools-rate {
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.tools-rate-big {
  margin: 8px 0 0;
  font-size: 1.5rem;
  font-weight: 900;
}

.tools-usdt-calc {
  padding: 14px;
  border-radius: 14px;
}

.tools-usdt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tools-usdt-input {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 800;
  border: none;
  background: transparent;
}

.tools-usdt-out {
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
}

.tools-warn {
  color: #b45309;
}

/* 工具箱子页统一白卡片（对齐奶龙间距） */
.tools-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 12px 14px;
}

.tools-yield-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tools-page--yield {
  padding: 0 2px;
}

.tools-subhead--page h2 {
  margin: 6px 0 2px;
  font-size: 1.02rem;
  font-weight: 900;
  color: #0f172a;
}

.tools-subhead-desc {
  margin: 0;
  font-size: 0.74rem;
  color: #64748b;
}

.tools-yield-refresh {
  border: none;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
}

.tools-yield-sync {
  font-size: 0.72rem;
  color: #64748b;
}

.tools-yield-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tools-yield-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}

.tools-yield-out {
  padding: 14px;
  font-size: 0.78rem;
  background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.tools-tg-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tools-tg-btn {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.tools-doc h3 {
  margin: 12px 0 6px;
  font-size: 0.88rem;
}

.tools-doc {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.tools-section-title--flush {
  margin-bottom: 6px;
}

.tools-biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.tools-biz-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  text-align: left;
  cursor: pointer;
}

.tools-biz-card strong {
  font-size: 0.82rem;
}

.tools-biz-card small {
  font-size: 0.66rem;
  color: #94a3b8;
}

.tools-ico-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1rem;
}

.tools-ico-box--bolt { background: #fef9c3; }
.tools-ico-box--smart { background: #e0e7ff; }
.tools-ico-box--battery { background: #dcfce7; }
.tools-ico-box--esim { background: #dbeafe; }
.tools-ico-box--stars { background: #fef3c7; }
.tools-ico-box--pin { background: #fee2e2; }
.tools-ico-box--eye { background: #e0f2fe; }
.tools-ico-box--book { background: #ede9fe; }
.tools-ico-box--packet { background: #fecaca; }
.tools-ico-box--usdt { background: #dcfce7; }
.tools-ico-box--yield { background: #ffedd5; }
.tools-ico-box--id { background: #e0e7ff; }

.tools-primary-btn--bind {
  background: linear-gradient(90deg, #38bdf8, #60a5fa 40%, #fb923c);
}

.tools-primary-btn--green {
  background: linear-gradient(180deg, #86efac, #4ade80);
  color: #14532d;
}

.tools-stat--blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: none;
  box-shadow: none;
}

.tools-stat--blue strong {
  color: #1d4ed8;
}

.tools-form-card--flat {
  background: #f1f5f9;
}

.tools-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tools-form-head h3 {
  margin: 0;
  font-size: 0.88rem;
}

.tools-form-cap {
  font-size: 0.68rem;
  color: #94a3b8;
}

.tools-notify-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.tools-notify-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
}

.tools-ab-letter {
  color: #2563eb;
  font-size: 1.1rem;
}

.tools-manual-hero {
  padding: 16px 14px;
  border-radius: 18px;
  margin-bottom: 12px;
  background: linear-gradient(160deg, #dbeafe 0%, #e0f2fe 45%, #f0f9ff 100%);
  border: 1px solid rgba(147, 197, 253, 0.45);
}

.tools-manual-lead {
  margin: 6px 0 8px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.tools-manual-intro {
  margin: 0;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.5;
}

.tools-manual-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tools-manual-chips span {
  font-size: 0.65rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
}

.tools-manual-chips em {
  display: block;
  font-style: normal;
  font-weight: 800;
  color: #2563eb;
  font-size: 0.62rem;
}

.tools-manual-feat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.tools-manual-feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px !important;
}

.tools-manual-feat-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  border-radius: 12px;
}

.tools-manual-feat-body {
  flex: 1;
  min-width: 0;
}

.tools-manual-feat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tools-manual-feat-head strong {
  font-size: 0.82rem;
}

.tools-manual-feat p {
  margin: 0;
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.45;
}

.tools-manual-feat code {
  font-size: 0.68rem;
}

.tools-section-title--muted {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
}

.tools-doc-cmd {
  padding: 4px 14px;
  margin-bottom: 10px;
}

.tools-doc-cmd-block {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.tools-doc-cmd-block:last-child {
  border-bottom: none;
}

.tools-doc-cmd-block strong {
  display: block;
  font-size: 0.78rem;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.tools-doc-cmd-block p {
  margin: 0;
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.45;
}

.tools-feature-card,
.tools-flow-card,
.tools-doc-list {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.tools-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tools-feature-card p {
  margin: 4px 0 6px;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

.tools-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.tools-flow-card {
  font-size: 0.7rem;
  line-height: 1.45;
}

.tools-flow-card b {
  color: #2563eb;
  margin-right: 4px;
}

.tools-flow-card strong {
  display: block;
  font-size: 0.74rem;
  margin: 2px 0 4px;
  color: #0f172a;
}

.tools-flow-card p {
  margin: 0;
  color: #64748b;
}

.tools-flow-grid--steps .tools-flow-card {
  min-height: 88px;
}

.tools-doc-list {
  list-style: disc;
  margin: 0 0 10px;
  padding: 14px 14px 14px 28px;
  font-size: 0.72rem;
  line-height: 1.55;
}

.tools-doc-list--notes li {
  margin-bottom: 8px;
  color: #475569;
}

.tools-doc-list--notes li::marker {
  color: #2563eb;
}

.tools-manual-foot {
  margin-top: 8px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

.tools-usdt-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 2px 10px;
  text-align: center;
}

.tools-usdt-meta strong {
  font-size: 0.78rem;
}

.tools-usdt-meta small {
  display: block;
  color: #94a3b8;
  font-size: 0.65rem;
}

.tools-usdt-flow-hint {
  margin: 0 2px 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.tools-usdt-prepare {
  width: 100%;
  margin-top: 12px;
}

.tools-usdt-pay-sheet .en-pay-sheet-panel {
  max-height: min(90vh, 720px);
  overflow-y: auto;
}

.tools-usdt-qr-wrap {
  margin: 10px auto 12px;
}

.tools-usdt-unconfigured {
  padding: 12px;
  margin-bottom: 10px;
  color: #b45309;
  font-size: 0.78rem;
  line-height: 1.45;
}

.tools-usdt-addr {
  display: block;
  word-break: break-all;
  font-size: 0.72rem;
  margin: 8px 0;
}

.tools-tip--warn {
  background: #eff6ff;
  border: 1px dashed #93c5fd;
}

.tools-stake-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.tools-stake-promo-k {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.tools-stake-promo-sub {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #475569;
}

.tools-stake-go {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  cursor: pointer;
}

.tools-yield-chain {
  padding: 12px 14px;
}

.tools-yield-metric {
  background: #ecfdf5;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.tools-yield-chain-grid.tools-chain-grid strong {
  color: #15803d;
  font-size: 1.08rem;
  font-weight: 900;
}

.tools-yield-metric small {
  color: #64748b;
  font-size: 0.62rem;
}

.tools-yield-target-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-right: 64px;
}

.tools-yield-apr-caption {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}

.tools-yield-apr-input {
  flex: 1;
  max-width: 140px;
  margin-left: auto;
  text-align: right;
  font-size: 1.5rem;
  font-weight: 900;
  border: none;
  background: transparent;
  color: #0f172a;
  padding: 0;
}

.tools-yield-sun-line {
  font-size: 0.74rem;
  color: #64748b;
}

.tools-yield-sun-line strong {
  color: #0f172a;
  font-weight: 800;
}

.tools-yield-apply {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.tools-yield-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  color: #0f172a;
}

.tools-yield-rate {
  margin: 4px 0 10px;
  font-size: 0.72rem;
  color: #64748b;
}

.tools-yield-stats {
  margin: 0;
  display: grid;
  gap: 6px;
}

.tools-yield-stats div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  padding: 5px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.tools-yield-stats div:first-child {
  border-top: none;
  padding-top: 0;
}

.tools-yield-stats dt {
  margin: 0;
  color: #64748b;
  font-weight: 600;
}

.tools-yield-stats dd {
  margin: 0;
  font-weight: 800;
  color: #0f172a;
}

.tools-chain-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tools-yield-target {
  position: relative;
}

.tools-yield-tag {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.tools-yield-target-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.76rem;
}

.tools-yield-head {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.tools-yield-head strong {
  font-size: 1.05rem;
  color: #2563eb;
  font-weight: 900;
}

.tools-packet-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
}

.tools-packet-equiv {
  font-size: 0.65rem;
  text-align: right;
  opacity: 0.95;
}

.tools-packet-num {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 900;
}

.tools-packet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.tools-packet-act {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}

.tools-packet-record {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: left;
}

.pkt-head-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.pkt-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pkt-mode-btn {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 8px;
  background: #fff;
  text-align: left;
  font-weight: 800;
  line-height: 1.25;
}

.pkt-mode-btn small {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 4px;
}

.pkt-mode-btn.active {
  border-color: #fb923c;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.pkt-label,
.pkt-msg-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin: 10px 0 6px;
}

.pkt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pkt-chip {
  min-width: 36px;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  font-weight: 800;
  color: #334155;
}

.pkt-chip.active {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
}

.pkt-chip:disabled {
  opacity: 0.35;
}

.pkt-num {
  width: 52px;
  padding: 8px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
}

.pkt-summary-hint {
  font-size: 0.72rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0369a1;
  margin: 10px 0;
}

.pkt-msg {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.85rem;
}

.pkt-lock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  margin: 12px 0;
  font-size: 0.78rem;
}

.pkt-lock-desc {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.4;
}

.pkt-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}

.pkt-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pkt-switch span {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
}

.pkt-switch span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.pkt-switch input:checked + span {
  background: #ef4444;
}

.pkt-switch input:checked + span::after {
  transform: translateX(18px);
}

.pkt-checkout {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
  margin: 10px 0;
  font-size: 0.78rem;
}

.pkt-checkout-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pkt-checkout-row--pay strong {
  font-size: 1.05rem;
  color: #1d4ed8;
}

.pkt-bad {
  color: #dc2626 !important;
}

.pkt-warn-bar,
.pkt-info-bar {
  font-size: 0.7rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 10px;
}

.pkt-form-surface {
  padding: 14px;
  border-radius: 16px;
  background: #e0f2fe;
  margin-bottom: 12px;
}

.pkt-text {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: none;
  border-radius: 12px;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.pkt-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pkt-step,
.pkt-step-all {
  border: none;
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  padding: 10px 14px;
}

.pkt-step-val {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  border: none;
  background: transparent;
  min-width: 48px;
}

.pkt-transfer-preview {
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.pkt-transfer-top,
.pkt-transfer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pkt-transfer-top strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.pkt-transfer-bottom {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.pkt-rec-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pkt-rec-tab {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  font-size: 0.82rem;
}

.pkt-rec-tab.active {
  background: linear-gradient(135deg, #fde047, #fb923c);
}

.pkt-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pkt-rec-item {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  font-size: 0.78rem;
}

.pkt-rec-item strong {
  color: #1d4ed8;
}

.pkt-rec-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 32px 0;
}

.tools-primary-btn:disabled {
  opacity: 0.55;
  filter: grayscale(0.2);
}

.tools-divider {
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 8px 0;
}

.tools-tg-foot {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

#tools-root {
  padding-bottom: 8px;
}