:root {
  color-scheme: dark;
  --bg: #0b1115;
  --panel: #121b21;
  --panel-deep: #10181d;
  --border: #25333a;
  --text: #edf4f1;
  --muted: #9aaea8;
  --subtle: #6f8580;
  --green: #9be4bb;
  --green-deep: #1b3d2e;
  --red: #f0a19d;
  --yellow: #e8c48a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button, input, select, textarea, a, summary, [tabindex] { outline: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
button { transition: background .16s ease, color .16s ease, border-color .16s ease; }
a { color: inherit; text-decoration: none; }
button svg { width: 18px; height: 18px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.9px; font-weight: 650; }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.35px; font-weight: 620; }
.numeric { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.skip-link { position: absolute; z-index: 20; left: 16px; top: -70px; padding: 10px 20px; border-radius: 8px; background: var(--green); color: #0d2015; }
.skip-link:focus { top: 16px; }
.app-shell { max-width: 1144px; margin: auto; padding: 0 36px; }
.topbar { height: 89px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 18px; letter-spacing: -.5px; }
.brand strong { font-weight: 650; }
.brand-divider { margin: 0 8px; color: var(--subtle); font-weight: 300; }
.brand-mark { width: 32px; height: 32px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px 6px; border: 1px solid #335241; border-radius: 9px; background: #16271e; }
.brand-mark i { width: 4px; border-radius: 2px; background: var(--green); transform: skewY(-10deg); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 16px; }
.private-label { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 12px; }
.lock-icon { position: relative; width: 10px; height: 9px; border: 1px solid currentColor; border-radius: 2px; margin-top: 5px; }
.lock-icon:before { content: ""; position: absolute; left: 1px; top: -6px; width: 4px; height: 5px; border: 1px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 34px 0 24px; }
.eyebrow { color: var(--subtle); text-transform: uppercase; letter-spacing: 1.65px; font-size: 9px; font-weight: 650; margin-bottom: 8px; }
.account-switch { display: flex; gap: 10px; align-items: center; }
.account-switch label { color: var(--subtle); font-size: 12px; }
.account-switch select { max-width: 210px; padding: 9px 35px 9px 12px; color: var(--text); border: 1px solid var(--border); background-color: var(--panel); border-radius: 9px; font-weight: 600; }
.account-switch select:disabled { opacity: 1; appearance: none; padding-right: 12px; }
.period-section { margin-bottom: 20px; }
.period-tabs, .chart-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 10px; gap: 3px; background: #0f171c; }
.period-tabs button, .chart-tabs button { border: 0; border-radius: 6px; background: transparent; color: var(--muted); padding: 8px 15px; font-size: 12px; white-space: nowrap; }
.period-tabs button:hover, .chart-tabs button:hover { color: var(--text); background: #1a282e; }
.period-tabs button[aria-pressed="true"], .chart-tabs button[aria-pressed="true"] { background: #24352e; color: var(--green); font-weight: 600; }
.period-tabs button span { margin-left: 5px; }
.report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; color: var(--muted); margin: 14px 0 0; font-size: 11px; }
#zone-label { color: var(--subtle); padding-left: 15px; border-left: 1px solid var(--border); }
.refresh-button { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 0; background: transparent; padding: 4px 0 4px 8px; color: var(--muted); font-size: 11px; }
.refresh-button:hover { color: var(--green); }
.refresh-button svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.is-loading .refresh-button svg { animation: turn 1.2s linear infinite; }
.custom-period { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px; margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.period-actions { display: flex; gap: 7px; margin-left: auto; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: 12px; }
input, textarea { width: 100%; color: var(--text); background: #0d151a; border: 1px solid #32423f; border-radius: 8px; padding: 11px 12px; }
input::placeholder, textarea::placeholder { color: #657b75; }
input:focus, textarea:focus { border-color: var(--green); }
input[type="date"], input[type="datetime-local"] { min-height: 43px; }
textarea { resize: vertical; min-height: 78px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 10px 15px; min-height: 40px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.button-primary { background: var(--green); color: #10291b; }
.button-primary:hover { background: #b7efce; }
.button-quiet { background: #19252b; color: #c1d0ca; border-color: var(--border); }
.button-quiet:hover { background: #26363b; color: var(--text); }
.notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid; padding: 15px 17px; margin-bottom: 17px; border-radius: 11px; font-size: 12px; }
.notice strong { font-weight: 600; }
.notice p { margin-top: 4px; color: #bfb9aa; }
.notice-warning { background: #221e15; border-color: #48402b; color: var(--yellow); }
.notice-error { background: #291c1e; border-color: #503035; color: var(--red); }
.notice-error p { color: #d3b5b4; }
.notice-error .button { margin-left: auto; }
.notice-symbol { display: inline-flex; justify-content: center; align-items: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; font-weight: 700; }
.overview-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.card { border: 1px solid var(--border); border-radius: 15px; background: var(--panel); }
.profit-card { padding: 22px 24px 19px; background: radial-gradient(ellipse at 2% 20%, #193026 0, #14221e 47%, #141e20 100%); border-color: #355144; display: flex; flex-direction: column; min-height: 215px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.metric-caption { font-size: 12px; color: var(--muted); }
.currency-chip { display: inline-block; font-size: 9px; font-weight: 600; line-height: 1.4; letter-spacing: .3px; color: #9cb4a8; border: 1px solid #35473f; padding: 3px 6px; border-radius: 5px; vertical-align: 1px; white-space: nowrap; }
.metric-caption .currency-chip { margin-left: 5px; }
.info-popover { position: relative; }
.info-popover summary { list-style: none; display: grid; place-items: center; color: #83a391; width: 17px; height: 17px; border: 1px solid #52735f; border-radius: 50%; cursor: pointer; font-size: 10px; }
.info-popover summary::-webkit-details-marker { display: none; }
.info-popover p { position: absolute; right: 0; top: 27px; width: 260px; color: var(--muted); font-size: 12px; background: #15231d; border: 1px solid #405b4a; padding: 14px; border-radius: 10px; box-shadow: 0 8px 28px #0005; z-index: 5; }
.profit-value { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.15; font-weight: 600; margin-top: 20px; letter-spacing: -1.6px; color: var(--green); overflow-wrap: anywhere; }
.profit-value.unknown { color: #8daba0; }
.profit-caption { color: #9eafa5; font-size: 11px; margin-top: 8px; }
.profit-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; padding-top: 18px; margin-top: auto; }
.quality-badge { display: inline-flex; align-items: center; gap: 6px; color: #b7d2c2; }
.quality-badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #95c7a6; }
.quality-badge.partial { color: var(--yellow); }
.quality-badge.partial:before { background: var(--yellow); }
.trade-summary { padding: 21px 20px 17px; display: flex; flex-direction: column; }
.summary-heading { display: flex; align-items: center; gap: 9px; }
.summary-heading h2 { font-size: 13px; letter-spacing: 0; font-weight: 550; }
.direction-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; font-size: 17px; }
.direction-buy { color: #a4c7df; background: #20313d; }
.direction-sell { color: var(--green); background: #20392c; }
.count-chip { margin-left: auto; font-size: 10px; color: var(--subtle); background: #1c282e; padding: 2px 6px; border-radius: 4px; }
.summary-amount { font-size: 25px; line-height: 1.2; font-weight: 550; margin-top: 24px; overflow-wrap: anywhere; }
.summary-secondary { color: var(--muted); font-size: 12px; margin-top: 7px; }
.summary-rate { display: flex; justify-content: space-between; gap: 5px; font-size: 10px; border-top: 1px solid var(--border); margin: auto 0 0; padding-top: 13px; }
.summary-rate dt { color: var(--subtle); }
dd { margin: 0; }
.summary-rate dd { color: #bdcdc6; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.chart-card { padding: 23px 24px 15px; margin-bottom: 20px; }
.chart-heading { margin-bottom: 15px; }
.chart-tabs { padding: 3px; }
.chart-tabs button { padding: 7px 12px; font-size: 10px; }
.profit-chart { position: relative; min-height: 235px; border-radius: 8px; }
.profit-chart svg { width: 100%; display: block; overflow: visible; }
.chart-grid line { stroke: #25333a; stroke-width: 1; stroke-dasharray: 3 6; }
.chart-grid .chart-zero { stroke: #3a4a4b; stroke-dasharray: none; }
.chart-grid text { fill: #789087; font-size: 10px; font-family: inherit; }
.chart-line { stroke: var(--green); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-point, .chart-cursor circle { fill: var(--green); stroke: var(--panel); stroke-width: 3; }
.chart-bar-positive { fill: #75b991; }
.chart-bar-negative { fill: #d98a85; }
.chart-partial { opacity: .5; }
.chart-cursor line { stroke: #80ae91; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-tooltip { position: absolute; top: 5px; z-index: 2; width: 202px; padding: 11px 13px; background: #203029; border: 1px solid #435d4c; border-radius: 9px; box-shadow: 0 6px 22px #0003; pointer-events: none; }
.chart-tooltip span { display: block; font-size: 10px; color: #a6bcb0; }
.chart-tooltip strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; }
.chart-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 9px 0 0; font-size: 10px; color: var(--subtle); }
.chart-footnote>span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chart-empty { min-height: 235px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 9px; color: var(--muted); padding: 20px; }
.chart-empty strong { font-size: 13px; font-weight: 550; }
.chart-empty span { max-width: 320px; font-size: 11px; color: var(--subtle); }
.details-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 20px; }
.inventory-card, .fees-card { padding: 22px 24px; }
.inventory-columns { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 18px; }
.inventory-column { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.inventory-column>strong { font-size: 23px; font-weight: 550; overflow-wrap: anywhere; }
.inventory-column>span:last-child { color: var(--subtle); font-size: 10px; }
.inventory-column b { color: var(--muted); font-weight: 500; display: block; font-size: 12px; margin-top: 2px; }
.inventory-arrow { color: #557366; font-size: 23px; }
.average-cost { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 5px 15px; justify-content: space-between; margin: 0; font-size: 11px; }
.average-cost dt { color: var(--muted); }
.average-cost dd { color: #cad7d0; }
.card-note { color: var(--subtle); font-size: 10px; line-height: 1.6; margin-top: 12px; }
.wallet-snapshot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); margin-top: 15px; padding-top: 12px; font-size: 10px; color: var(--muted); }
.wallet-snapshot strong { color: var(--text); font-size: 12px; }
.text-button { color: var(--green); border: 0; padding: 6px 0; background: transparent; font-size: 11px; text-align: left; }
.text-button:hover { color: #c8f6db; }
#open-anchor { margin-top: 12px; }
.fees-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 12px; min-height: 32px; align-items: center; }
.fee-chip { display: inline-flex; align-items: center; padding: 8px 11px; border-radius: 8px; border: 1px solid #304038; background: #17241d; color: #c4d6ca; font-variant-numeric: tabular-nums; font-size: 13px; }
.method-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--border); }
.small-check { width: 20px; height: 20px; display: grid; place-items: center; color: #9ec7aa; background: #1e3527; border-radius: 50%; font-size: 11px; }
.method-note strong { font-size: 11px; font-weight: 550; }
.method-note p { color: var(--subtle); font-size: 10px; margin-top: 3px; }
.trades-card { margin-bottom: 16px; overflow: hidden; }
.trades-heading { padding: 22px 24px; }
.trades-heading .button { min-height: 33px; padding: 7px 11px; font-size: 10px; }
.heading-count { font-size: 11px; color: var(--subtle); font-weight: 400; vertical-align: 2px; margin-left: 5px; }
.table-scroll { overflow-x: auto; scrollbar-color: #354a40 transparent; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 10px; color: var(--subtle); font-weight: 500; background: #10191e; white-space: nowrap; }
td { padding: 16px 24px; border-bottom: 1px solid #223039; font-size: 12px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #17232a; }
.align-right { text-align: right; }
.trade-primary { display: flex; align-items: center; gap: 8px; }
.trade-side { font-size: 10px; font-weight: 600; border-radius: 4px; padding: 2px 5px; }
.trade-side.buy { color: #b3d1e6; background: #20313d; }
.trade-side.sell { color: var(--green); background: #20392c; }
.trade-secondary { color: var(--subtle); font-size: 10px; margin-top: 5px; }
.trade-money { font-variant-numeric: tabular-nums; font-weight: 550; }
.trade-quality { color: var(--yellow); font-size: 10px; }
.table-empty { padding: 43px 20px; text-align: center; color: var(--muted); }
.table-empty strong { font-size: 13px; font-weight: 550; }
.table-empty p { font-size: 11px; color: var(--subtle); margin-top: 7px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.pagination>div { display: flex; gap: 6px; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 30px; padding: 0; border: 1px solid var(--border); background: #18262b; color: var(--muted); border-radius: 6px; font-size: 16px; }
.icon-button:hover:not(:disabled) { color: var(--green); border-color: #506d59; }
.data-details { background: transparent; }
.data-details summary { display: flex; justify-content: space-between; list-style: none; cursor: pointer; padding: 17px 24px; color: var(--muted); font-size: 11px; }
.data-details summary::-webkit-details-marker { display: none; }
.data-details[open] summary { border-bottom: 1px solid var(--border); }
.data-details[open] summary>span:last-child { transform: rotate(45deg); }
.data-details-content { padding: 0 24px 18px; color: var(--subtle); font-size: 11px; }
.data-details-content dl>div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 20px; margin: 10px 0; }
.data-details-content dd { color: var(--muted); }
.data-details-content p { border-top: 1px solid var(--border); padding-top: 13px; margin-top: 13px; }
.page-footer { display: flex; justify-content: space-between; gap: 14px; font-size: 10px; color: #506860; padding: 30px 0 35px; }
.page-footer>span:first-child { font-weight: 600; color: #70877c; }
.access-screen { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; padding: 28px; text-align: center; }
.brand-mark-large { width: 48px; height: 48px; padding: 12px 9px; gap: 4px; border-radius: 14px; margin-bottom: 5px; }
.brand-mark-large i { width: 5px; }
.brand-mark-large i:nth-child(1) { height: 10px; }
.brand-mark-large i:nth-child(2) { height: 17px; }
.brand-mark-large i:nth-child(3) { height: 24px; }
.access-screen .eyebrow { margin-bottom: 0; }
.access-screen h1 { font-size: 25px; max-width: 340px; }
.access-screen p { color: var(--muted); font-size: 13px; max-width: 340px; }
.access-screen .button { margin-top: 8px; }
.spinner { width: 22px; height: 22px; border: 2px solid #2e4639; border-top-color: var(--green); border-radius: 50%; animation: turn .9s linear infinite; margin-top: 6px; }
@keyframes turn { to { transform: rotate(360deg); } }
.anchor-dialog { border: 1px solid #3a5144; background: #111d20; color: var(--text); padding: 26px; border-radius: 17px; width: min(540px, calc(100% - 28px)); max-height: calc(100svh - 36px); overflow-y: auto; box-shadow: 0 18px 90px #0008; }
.anchor-dialog::backdrop { background: #040a0dcc; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-copy { margin: 16px 0 22px; color: var(--muted); font-size: 12px; }
.anchor-dialog .field { margin-bottom: 16px; }
.anchor-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.confirm-check { display: flex; align-items: flex-start; gap: 10px; color: #b8c8bf; font-size: 11px; line-height: 1.6; margin: 4px 0 16px; }
.confirm-check input { width: 16px; height: 16px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--green); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.dialog-actions .button-primary { flex: 1; }
.form-error { width: 100%; color: var(--red); font-size: 12px; margin-top: 3px; }
.toast { position: fixed; z-index: 20; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); padding: 13px 20px; max-width: calc(100% - 30px); width: max-content; color: #d5efdc; background: #243e2d; border: 1px solid #47664e; border-radius: 10px; box-shadow: 0 6px 20px #0004; font-size: 12px; }
.is-loading .profit-value, .is-loading .summary-amount { opacity: .45; }
@media (min-width: 1300px) { .app-shell { padding: 0; } }
@media (max-width: 900px) {
  .app-shell { padding: 0 24px; }
  .overview-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
  .profit-card { padding: 20px; }
  .trade-summary { padding: 20px 15px 16px; }
  .summary-amount { font-size: 22px; }
  .inventory-card, .fees-card { padding: 20px; }
  td, th { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 680px) {
  .app-shell { padding: 0 17px; }
  .topbar { height: 68px; }
  .brand { font-size: 16px; gap: 9px; }
  .private-label { font-size: 10px; }
  .page-heading { margin: 24px 0 19px; align-items: flex-start; }
  h1 { font-size: 25px; letter-spacing: -.7px; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.35px; }
  .account-switch { display: grid; gap: 4px; justify-items: end; }
  .account-switch label { font-size: 9px; }
  .account-switch select { max-width: 145px; font-size: 11px; padding: 7px 24px 7px 9px; border-radius: 7px; }
  .period-tabs { display: flex; width: 100%; padding: 3px; gap: 1px; }
  .period-tabs button { flex: 1; padding: 8px 5px; font-size: 10px; }
  .period-tabs button span { margin-left: 1px; }
  .report-meta { gap: 9px; font-size: 9px; }
  #zone-label { padding-left: 9px; }
  .refresh-button { font-size: 9px; gap: 4px; }
  .refresh-button svg { width: 13px; height: 13px; }
  .overview-grid { grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 15px; }
  .profit-card { grid-column: 1 / -1; min-height: 198px; padding: 21px; }
  .profit-value { font-size: 42px; margin-top: 20px; }
  .profit-caption { font-size: 10px; }
  .trade-summary { min-height: 180px; padding: 16px; }
  .summary-heading { gap: 7px; }
  .summary-heading h2 { font-size: 12px; }
  .direction-icon { width: 23px; height: 23px; font-size: 15px; }
  .summary-amount { font-size: clamp(19px, 5vw, 25px); margin-top: 19px; }
  .summary-secondary { font-size: 10px; }
  .summary-rate { font-size: 9px; flex-wrap: wrap; padding-top: 10px; }
  .chart-card { padding: 19px 14px 13px; margin-bottom: 15px; }
  .chart-heading { padding: 0 3px; gap: 8px; }
  .chart-heading h2 { font-size: 16px; }
  .chart-heading .eyebrow { font-size: 7px; letter-spacing: 1.1px; }
  .chart-tabs { border-radius: 8px; }
  .chart-tabs button { font-size: 9px; padding: 7px; }
  .chart-footnote { font-size: 8px; padding: 0 4px; }
  .details-grid { grid-template-columns: 1fr; gap: 13px; margin-bottom: 15px; }
  .inventory-card, .fees-card { padding: 20px; }
  .inventory-columns { margin-top: 22px; }
  .inventory-column>strong { font-size: 22px; }
  .fees-list { margin-top: 19px; }
  .method-note { margin-top: 17px; }
  .trades-heading { padding: 20px 18px 17px; }
  .trades-heading h2 { font-size: 17px; }
  .trades-heading .eyebrow { font-size: 8px; }
  th { padding: 11px 15px; font-size: 9px; }
  td { padding: 14px 15px; font-size: 11px; }
  .trades-card .table-scroll { overflow: visible; }
  .trades-card table, .trades-card tbody { display: block; }
  .trades-card thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .trades-card tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .9fr); gap: 12px 10px; padding: 17px; border-top: 1px solid var(--border); }
  .trades-card td { display: block; padding: 0; border: 0; white-space: normal; }
  .trades-card td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .trades-card td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .trades-card td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .trades-card td:nth-child(4) { grid-column: 1; grid-row: 3; text-align: left; font-size: 11px; }
  .trades-card td:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
  .trades-card td[data-label]::before { content: attr(data-label); display: block; color: var(--subtle); font-size: 9px; font-weight: 400; margin-bottom: 5px; }
  .trades-card td:nth-child(5) .trade-money { font-size: 19px; }
  .trades-card .trade-primary { flex-wrap: wrap; gap: 5px; }
  .pagination { padding: 12px 17px; }
  .data-details summary { padding: 16px 18px; }
  .data-details-content { padding-left: 18px; padding-right: 18px; font-size: 10px; }
  .page-footer { font-size: 8px; padding: 24px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
  .custom-period { padding: 13px; gap: 10px; }
  .custom-period>.field { min-width: 0; flex: 1; }
  .custom-period input { padding: 10px 8px; font-size: 12px; }
  .period-actions { width: 100%; }
  .period-actions .button-primary { flex: 1; }
  .anchor-dialog { padding: 22px; }
  .anchor-dialog h2 { font-size: 20px; }
  .anchor-amounts { grid-template-columns: 1fr; gap: 0; }
  .notice { padding: 13px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
