.member-history { --member-line: #465568; --member-muted: #bdc9d8; --member-field: #142335; color: inherit; font-size: 14px; min-width: 0; }
.member-history-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.member-history-controls label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.member-history-controls select, .member-history button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--member-line); border-radius: 7px; background: var(--member-field); color: inherit; font: inherit; cursor: pointer; }
.member-history-controls input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: #d4b575; }
.member-history-controls :is(input[type=search], input[type=date]) { box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--member-line); border-radius: 8px; background: var(--member-field); color: inherit; font: inherit; }
.member-history-controls input[type=search] { width: 180px; }
.member-history-controls input[type=date] { color-scheme: dark; width: 158px; }
.member-record-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.member-record-controls label { display: grid; gap: 6px; min-width: 0; }
.member-record-controls :is(input[type=search], input[type=date], select) { width: 100%; min-width: 0; }
@media(max-width: 720px) { .member-record-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.member-history-controls select, .member-history button { min-height: 44px; }
.member-history-copy a { min-height: 44px; box-sizing: border-box; }
.member-mark-read { margin-left: 14px; font-size: 12px !important; }
.member-record-details { margin-top: 8px; font-size: 12px; }
.member-record-details summary { cursor: pointer; min-height: 44px; display: list-item; align-content: center; }
.member-record-details dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; padding: 12px; border: 1px solid var(--member-line); border-radius: 10px; }
.member-record-details dt { color: var(--member-muted); }
.member-record-details dd { margin: 0; overflow-wrap: anywhere; }
@media(max-width: 480px) { .member-history-controls label { flex-wrap: wrap; } .member-history-row > b { margin-left: auto; } .member-record-details dl { grid-template-columns: 1fr; gap: 4px; } .member-record-details dd { margin-bottom: 8px; } }
.member-history button:disabled { opacity: .55; cursor: default; }
.member-history [hidden] { display: none !important; }
.member-history-status, .member-unread-count { color: var(--member-muted); font-size: 12px; }
.member-history-status.is-error { color: #f59f9f; }
.member-history-list { list-style: none; margin: 0; padding: 0; }
.member-history-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--member-line); }
.member-history-copy { min-width: 0; overflow-wrap: anywhere; }
.member-history-copy strong, .member-history-copy time, .member-history-copy small { display: block; }
.member-history-copy time, .member-history-copy small { margin-top: 6px; font-size: 12px; color: var(--member-muted); }
.member-history-copy p { margin: 8px 0; line-height: 1.65; }
.member-history-copy a { display: inline-block; padding: 5px 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.member-history-row > b { white-space: nowrap; font-size: 13px; }
.member-history-row.is-unread strong::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f8ce77; margin-right: 6px; }
.member-income { color: #84d6b0; } .member-expense { color: #f0c18c; }
.unified-center-view.member-history { --member-line: #ced7d2; --member-muted: #53665c; --member-field: #fff; }
.unified-center-view.member-history .member-history-controls { position: sticky; top: 0; z-index: 1; padding: 8px 0; background: #f7f8f6; }
.unified-center-view .member-history-status.is-error { color: #a62525; }
.unified-center-view.member-history .member-history-copy time, .unified-center-view.member-history .member-history-copy small { color: #53665c; }
.unified-center-view.member-history .member-mark-read { border-color: #7f765f; background: #fffaf0; color: #214e43; font-weight: 700; }
.unified-center-view .member-history-row.is-unread strong::before { background: #b72e2e; }
.member-history-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid #465568; }
.member-history-section h3 { margin: 0 0 10px; }
.member-trade-dialog { box-sizing: border-box; width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #92794e; border-radius: 18px; background: #101f31; color: #f1eee6; box-shadow: 0 24px 80px #0008; overflow: auto; font: 14px/1.5 system-ui, sans-serif; }
.member-trade-dialog::backdrop { background: #020916bd; }
.member-trade-dialog form { display: grid; gap: 12px; margin: 0; }
.member-trade-dialog h2 { margin: 0; font-size: 21px; color: #f1d59a; }
.member-trade-dialog p { margin: 0; }
.member-trade-name { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.member-trade-description { color: #c1ccda; font-size: 12px; }
.member-trade-facts { display: grid; gap: 6px; padding: 12px; background: #ffffff0a; border-radius: 8px; }
.member-trade-dialog label { display: grid; gap: 7px; font: inherit; }
.member-trade-dialog small { color: #c1ccda; }
.member-trade-stepper { display: grid; grid-template-columns: 42px minmax(55px, 1fr) 42px 62px; gap: 6px; }
.member-trade-stepper.is-fixed { grid-template-columns: 1fr; }
.member-trade-dialog [hidden] { display: none !important; }
.member-trade-dialog input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #718198; border-radius: 8px; background: #091524; color: #fff; padding: 8px; font: inherit; }
.member-trade-dialog button { min-height: 44px; padding: 8px 10px; border: 1px solid #718198; border-radius: 8px; color: #f1eee6; background: #253b50; font: inherit; cursor: pointer; }
.member-trade-dialog button:disabled { opacity: .5; cursor: default; }
.member-trade-dialog :focus-visible, .member-history :focus-visible { outline: 3px solid #e8bf68; outline-offset: 3px; }
.member-trade-total { font-size: 18px; font-weight: 650; color: #f2d797; }
.member-trade-error { color: #ffa5a5; font-size: 13px; overflow-wrap: anywhere; }
.member-trade-error:empty { display: none; }
.member-trade-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 8px; }
.member-trade-actions button[type=submit] { background: #e4c383; border-color: #e4c383; color: #1a2430; font-weight: 700; }
@media(max-width: 480px) { .member-trade-dialog { padding: 20px; } .member-history-row { flex-wrap: wrap; } .member-history-controls { gap: 8px; } }

.reward-pending{border:1px solid #d2b572;background:#18283a;border-radius:8px;padding:14px;overflow-wrap:anywhere}.reward-pending[hidden]{display:none}.reward-pending button{margin:6px 8px 0 0;min-height:44px}.reward-item small{overflow-wrap:anywhere}.member-trade-description,.member-trade-facts{overflow-wrap:anywhere}.member-history-row:focus{outline:2px solid #e8bf68;outline-offset:4px}#rewardsMessage button{min-height:44px;margin-top:8px}
.member-export-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: inherit; border: 1px solid currentColor; border-radius: 6px; text-decoration: none; }
