.crypto-panel { display:grid; gap:16px; margin-block:20px; min-width:0; }
.crypto-panel .crypto-history-card { background:var(--surface); border-color:var(--line); }
.crypto-history-card p { margin:0; }
.crypto-history-hint { margin:10px 0 14px; font-size:12px; line-height:1.55; color:var(--text-soft); }
.crypto-history-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.crypto-history-tabs .button { min-height:40px; flex:1 1 auto; }
.crypto-history-grid > section { align-self:start; }
.crypto-history-card .button { justify-self:start; max-width:100%; }
.crypto-history-card > strong,.crypto-heading > strong { min-width:0; overflow-wrap:anywhere; }
.crypto-panel .button-row .button { min-height:44px; }
.crypto-panel #crypto-invoice { display:grid; gap:14px; min-width:0; }
.crypto-panel #crypto-invoice > p { margin:0; }
.crypto-invoice-grid > div { display:grid; gap:12px; min-width:0; }
.crypto-invoice-grid p { margin:0; }
.crypto-panel input[readonly] { font-family:ui-monospace,monospace; font-size:13px; }
.crypto-method strong { font-size:14px; line-height:1.45; }
.crypto-method small { line-height:1.5; }
.crypto-method span { flex:1; }
.crypto-history-card details { min-width:0; font-size:12px; color:var(--text-soft); }
.crypto-history-card details summary { cursor:pointer; padding:6px 0; }
.crypto-history-card details code { margin-top:8px; }
.surface.crypto-panel { padding:clamp(18px,2vw,24px); }
.crypto-panel > p { margin:0; }
.crypto-panel h3 { margin-block:0; }
.crypto-panel .crypto-heading h3 { font-size:clamp(1.05rem,2vw,1.25rem); }
.crypto-reserved { color:var(--text-muted); line-height:1.55; }
.crypto-reserved strong { color:var(--navy-900); }
.crypto-finance-actions { justify-content:flex-start; margin:0; }
.crypto-finance-actions .button { width:auto; flex:0 1 auto; }
.crypto-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.crypto-heading span { display:grid; gap:4px; min-width:0; }
.crypto-methods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.crypto-history-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.crypto-history-grid > section { min-width:0; }
.crypto-history-grid > section > h3 { margin:0 0 10px; font-size:clamp(1rem,1.8vw,1.15rem); }
.crypto-method { position:relative; display:flex; align-items:center; gap:12px; border:1px solid #d6e3ff; border-radius:18px; padding:18px; cursor:pointer; }
.crypto-method:has(input:checked) { border-color:#0868f9; background:#f0f6ff; box-shadow:none; }
.crypto-method span { display:grid; gap:4px; min-width:0; }
.crypto-method input { position:absolute; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; clip-path:inset(50%); }
.crypto-method:has(input:focus-visible):not(:has(input:checked)) { border-color:#0868f9; box-shadow:0 6px 18px rgba(8,104,249,.14); }
html[data-input-modality="pointer"] .crypto-method:has(input:focus):not(:has(input:checked)) { border-color:#d6e3ff; box-shadow:none; }
.crypto-method-icon { width:48px; height:48px; flex-shrink:0; }
.crypto-invoice-grid { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:24px; margin-block:20px; }
.crypto-qr { width:190px; max-width:100%; height:auto; image-rendering:pixelated; border:12px solid white; background:#fff; }
.crypto-panel .field { display:grid; gap:8px; min-width:0; }
.crypto-panel input:not([type=checkbox]):not([type=radio]),.crypto-panel textarea,.crypto-panel select { width:100%; min-height:48px; padding:12px; border:1px solid #d6e3ff; border-radius:12px; background:white; color:#0b2246; box-sizing:border-box; }
/* v82: use a selector that wins over the generic crypto input rule so the
   placeholder never sits under the search icon. */
.crypto-panel .admin-search-panel label.search-input input:not([type=checkbox]):not([type=radio]) { padding:12px 14px 12px 46px; }
.crypto-panel .admin-search-panel label.search-input > svg.icon { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.crypto-check { display:flex; align-items:flex-start; gap:12px; line-height:1.55; }
.crypto-check input { width:20px; height:20px; flex-shrink:0; margin-top:3px; }
.crypto-history-card,.crypto-wallet { border:1px solid #d6e3ff; border-radius:16px; padding:18px; display:grid; gap:12px; margin-top:14px; min-width:0; background:white; }
.crypto-panel code,.crypto-panel small,.crypto-panel strong { overflow-wrap:anywhere; }
.crypto-panel code { display:block; font-size:14px; user-select:all; line-height:1.6; }
.crypto-wallet { grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.crypto-wallet span { display:grid; gap:8px; }
/* Shared .notice reserves its first grid column for an icon; payment notices are text-only. */
.notice.crypto-notice { display:block; width:100%; min-width:0; box-sizing:border-box; line-height:1.6; padding:16px; margin:0; white-space:normal; overflow-wrap:break-word; word-break:normal; }
.crypto-notice > span { display:block; min-width:0; }
.crypto-amount-control { position:relative; min-width:0; }
.crypto-panel label[for="crypto-amount"] { color:var(--navy-900); font-size:12px; font-weight:800; }
.crypto-panel .crypto-amount-control input { min-height:60px; padding-inline-end:54px; appearance:textfield; -moz-appearance:textfield; }
.crypto-amount-control input::-webkit-inner-spin-button,.crypto-amount-control input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.crypto-amount-steppers { position:absolute; inset-block:4px; inset-inline-end:4px; display:grid; grid-template-rows:repeat(2,minmax(0,1fr)); gap:3px; width:40px; }
.crypto-amount-steppers button { display:grid; place-items:center; width:100%; height:100%; min-height:0; padding:0; border:1px solid #d6e3ff; border-radius:8px; background:#f0f6ff; color:#0868f9; cursor:pointer; touch-action:manipulation; }
.crypto-amount-steppers button:hover { background:#e1edff; }
.crypto-amount-steppers button:focus-visible { outline:2px solid #0868f9; outline-offset:1px; }
.crypto-amount-steppers svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.crypto-page { display:flex; gap:12px; align-items:center; justify-content:center; margin-top:14px; }
.crypto-page > span { min-width:30px; text-align:center; color:var(--text-muted); font-size:13px; font-weight:800; }
.crypto-panel .button-row { gap:10px; flex-wrap:wrap; }
.crypto-panel a { overflow-wrap:anywhere; }
@media(max-width:900px) {
  .crypto-methods { grid-template-columns:1fr; }
}
@media(max-width:640px) {
  .crypto-method { padding:14px; gap:12px; border-radius:14px; }
  .crypto-panel .button-row .button { flex:1 1 auto; }
  .crypto-heading > .status-pill { margin-inline-start:0; }
  .crypto-panel .crypto-invoice-grid { gap:16px; margin-block:0; }
  .crypto-panel .crypto-qr { width:170px; }
  .crypto-history-tabs { gap:6px; }
  .crypto-history-tabs .button { padding-inline:10px; font-size:12px; }
  .surface.crypto-panel { padding:16px; }
  .crypto-history-grid,.crypto-invoice-grid { grid-template-columns:1fr; }
  .crypto-qr { margin-inline:auto; }
  .crypto-wallet { grid-template-columns:1fr; }
  .crypto-history-card { padding:14px; }
}

.admin-deposit-card code { overflow-wrap:anywhere; word-break:break-word; }
.crypto-panel [data-crypto-new-wallet][hidden],.crypto-panel [data-crypto-wallet-label][hidden] { display:none !important; }
.crypto-panel [data-crypto-new-wallet] { display:grid; gap:12px; }
.crypto-withdraw-wallet-actions { justify-content:flex-start; margin:0; }
.crypto-withdraw-wallet-actions .button { width:auto; }

.crypto-wallet-delete { width:34px; height:34px; min-width:34px; padding:0; border:0; border-radius:10px; background:transparent; color:#7b8798; display:grid; place-items:center; cursor:pointer; transition:background .16s ease,color .16s ease,transform .16s ease; }
.crypto-wallet-delete svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.crypto-wallet-delete:hover { background:#eef4ff; color:#0868f9; }
.crypto-wallet-delete:active { transform:scale(.96); }
.crypto-wallet-delete:focus-visible { outline:2px solid #9fc2ff; outline-offset:2px; }

/* v77 — admin finance empty-state rhythm only; keeps the existing admin navigation unchanged. */
#crypto-admin-history,
#crypto-admin-deposit-history {
  display: grid;
  gap: 12px;
  min-width: 0;
}
#crypto-admin-history > h3,
#crypto-admin-deposit-history > h3 {
  margin: 0;
}
#crypto-admin-history > .crypto-notice,
#crypto-admin-deposit-history > .crypto-notice {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
}
@media (max-width: 640px) {
  #crypto-admin-history,
  #crypto-admin-deposit-history {
    gap: 10px;
  }
  #crypto-admin-history > .crypto-notice,
  #crypto-admin-deposit-history > .crypto-notice {
    min-height: 54px;
    padding: 14px 15px;
  }
}
