.robot-wallet-history-page { min-width: 0; }
.robot-wallet-history-page .wh-hero > .muted { margin: 0 0 22px; }
.robot-wallet-history-page .wh-search-form { display: grid; gap: 8px; }
.robot-wallet-history-page .wh-search-form > label { font-size: 13px; font-weight: 650; color: #cbd5e1; }
.robot-wallet-history-page .wh-search-controls { display: flex; gap: 10px; align-items: stretch; }
.robot-wallet-history-page .wh-search-controls input { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 10px; background: #0b1220; color: #e5e7eb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.robot-wallet-history-page .wh-search-controls input::placeholder { font-family: inherit; color: #7f8da3; }
.robot-wallet-history-page .wh-search-controls input:focus { outline: 2px solid #38bdf8; outline-offset: 2px; }
.robot-wallet-history-page .wh-search-controls input[aria-invalid="true"] { border-color: #fb7185; }
.robot-wallet-history-page .wh-search-controls button { white-space: nowrap; }
.robot-wallet-history-page .wh-search-form > p { margin: 0; }
.robot-wallet-history-page .wh-input-error { color: #fda4af; font-size: 13px; }
.robot-wallet-history-page .wh-input-error:empty { display: none; }
.robot-wallet-history-page .wh-result-heading { align-items: flex-start; flex-wrap: wrap; }
.robot-wallet-history-page .wh-result-heading h3 { margin: 0 0 6px; }
.robot-wallet-history-page .wh-result-heading > .muted { white-space: normal; }
.robot-wallet-history-page .wh-address { margin: 0; color: #cbd5e1; font-size: 14px; }
.robot-wallet-history-page .mono-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; word-break: break-word; }
.robot-wallet-history-page .wh-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.robot-wallet-history-page .metric-card { min-width: 0; }
.robot-wallet-history-page .metric-card strong { font-size: clamp(17px, 1.65vw, 23px); overflow-wrap: anywhere; }
.robot-wallet-history-page .metric-card small { color: #94a3b8; line-height: 1.6; }
.robot-wallet-history-page .wh-note, .robot-wallet-history-page .wh-section-note { font-size: 13px; color: #94a3b8; line-height: 1.65; }
.robot-wallet-history-page .wh-note { margin: 14px 0 0; }
.robot-wallet-history-page .wh-section-note { margin: 18px 0; }
.robot-wallet-history-page .wh-empty-state { text-align: center; padding: 32px 20px; }
.robot-wallet-history-page .wh-empty-state > strong { font-size: 17px; color: #e2e8f0; }
.robot-wallet-history-page .wh-empty-state p { margin: 8px 0 0; font-size: 14px; }
.robot-wallet-history-page .wh-error, .robot-wallet-history-page .wh-warning { border-radius: 12px; padding: 16px 18px; border: 1px solid rgba(245, 158, 11, .36); background: rgba(120, 53, 15, .15); color: #fcd34d; }
.robot-wallet-history-page .wh-error { border-color: rgba(244, 63, 94, .4); background: rgba(136, 19, 55, .15); color: #fda4af; }
.robot-wallet-history-page .wh-error p, .robot-wallet-history-page .wh-warning p { margin: 6px 0; font-size: 13px; overflow-wrap: anywhere; }
.robot-wallet-history-page .wh-record .wh-warning { margin-top: 14px; }
.robot-wallet-history-page .wh-warning-text { color: #fcd34d; }
.robot-wallet-history-page .wh-negative { color: #fda4af !important; }
.robot-wallet-history-page .wh-positive { color: #6ee7b7 !important; }
.robot-wallet-history-page .wh-highlight { color: #7dd3fc !important; }
.robot-wallet-history-page .wh-tabs { display: flex; gap: 6px; border-bottom: 1px solid rgba(148, 163, 184, .18); }
.robot-wallet-history-page .wh-tabs button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 14px; color: #94a3b8; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font-weight: 650; }
.robot-wallet-history-page .wh-tabs button[aria-selected="true"] { color: #7dd3fc; border-bottom-color: #38bdf8; }
.robot-wallet-history-page .wh-tabs button > span { padding: 1px 7px; border-radius: 7px; background: rgba(148, 163, 184, .13); font-size: 12px; }
.robot-wallet-history-page .wh-tabs button:focus-visible, .robot-wallet-history-page summary:focus-visible, .robot-wallet-history-page a:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.robot-wallet-history-page .wh-record-list { display: grid; gap: 16px; }
.robot-wallet-history-page .wh-record { padding: 18px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 14px; background: rgba(15, 23, 42, .5); min-width: 0; }
.robot-wallet-history-page .wh-record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.robot-wallet-history-page .wh-record-head > div:first-child { min-width: 0; }
.robot-wallet-history-page .wh-record-head p { margin: 5px 0 0; }
.robot-wallet-history-page .wh-issue-link { color: #e2e8f0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.robot-wallet-history-page .wh-issue-link:hover, .robot-wallet-history-page .wh-text-link { color: #7dd3fc; }
.robot-wallet-history-page .wh-tag-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: flex-end; }
.robot-wallet-history-page .wh-tag-row .ghost-btn { padding: 5px 10px; font-size: 12px; }
.robot-wallet-history-page .wh-metrics { display: grid; gap: 12px; }
.robot-wallet-history-page .wh-metrics-four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.robot-wallet-history-page .wh-metrics > div { min-width: 0; display: grid; gap: 4px; align-content: start; }
.robot-wallet-history-page .wh-metrics span, .robot-wallet-history-page .wh-metrics small { color: #94a3b8; font-size: 12px; }
.robot-wallet-history-page .wh-metrics strong { color: #e2e8f0; font-size: 15px; overflow-wrap: anywhere; }
.robot-wallet-history-page .wh-metrics small { font-size: 11px; line-height: 1.6; }
.robot-wallet-history-page .wh-record-meta { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-top: 16px; color: #94a3b8; font-size: 12px; }
.robot-wallet-history-page .wh-aha-ledger { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 16px; background: rgba(15, 23, 42, .7); border: 1px solid rgba(148, 163, 184, .14); border-radius: 12px; margin-bottom: 18px; }
.robot-wallet-history-page .wh-details { border-top: 1px solid rgba(148, 163, 184, .16); margin-top: 16px; }
.robot-wallet-history-page .wh-details > summary { padding-top: 12px; font-size: 13px; color: #93c5fd; cursor: pointer; }
.robot-wallet-history-page .wh-details > summary > span { color: #7f8da3; font-size: 12px; margin-left: 12px; }
.robot-wallet-history-page .wh-detail-content { padding-top: 12px; }
.robot-wallet-history-page .wh-table-scroll { overflow-x: auto; margin-top: 12px; }
.robot-wallet-history-page .wh-position-table { min-width: 820px; }
.robot-wallet-history-page .wh-transaction-table { min-width: 680px; }
.robot-wallet-history-page .data-table { font-size: 13px; }
.robot-wallet-history-page .data-table td p { margin: 4px 0 0; }
.robot-wallet-history-page .data-table td { max-width: 310px; overflow-wrap: anywhere; }
.robot-wallet-history-page .wh-table-caption { text-align: left; font-weight: 650; color: #cbd5e1; padding: 8px 10px; background: rgba(30, 41, 59, .5); }
.robot-wallet-history-page .wh-audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.robot-wallet-history-page .wh-audit-grid h4 { margin: 4px 0 12px; font-size: 14px; }
.robot-wallet-history-page dl { display: grid; gap: 8px; margin: 0; font-size: 12px; }
.robot-wallet-history-page dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
.robot-wallet-history-page dt { color: #94a3b8; }
.robot-wallet-history-page dd { margin: 0; color: #cbd5e1; overflow-wrap: anywhere; }
.robot-wallet-history-page .wh-submission { border-top: 1px solid rgba(148, 163, 184, .12); margin-top: 8px; padding-top: 4px; }
.robot-wallet-history-page .wh-raw-details { margin-top: 18px; }
.robot-wallet-history-page .wh-raw-details summary { cursor: pointer; color: #93c5fd; font-size: 13px; }
.robot-wallet-history-page .wh-raw-details dl { margin-top: 12px; }
.robot-wallet-history-page .pagination-bar { margin-top: 20px; }
@media (max-width: 1200px) {
  .robot-wallet-history-page .wh-metrics-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .robot-wallet-history-page .wh-aha-ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .robot-wallet-history-page .wh-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .robot-wallet-history-page .wh-record-head { display: grid; }
  .robot-wallet-history-page .wh-tag-row { justify-content: flex-start; }
  .robot-wallet-history-page .wh-audit-grid { grid-template-columns: minmax(0, 1fr); }
  .robot-wallet-history-page .wh-search-controls { flex-wrap: wrap; }
  .robot-wallet-history-page .wh-search-controls input { flex-basis: 100%; }
  .robot-wallet-history-page .wh-details > summary > span { display: block; margin: 5px 0 0 14px; }
  .robot-wallet-history-page .wh-record { padding: 14px; }
}
@media (max-width: 420px) {
  .robot-wallet-history-page .wh-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .robot-wallet-history-page .wh-tabs button { padding-left: 8px; padding-right: 8px; font-size: 13px; }
  .robot-wallet-history-page .wh-aha-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
