#history-stats th:first-child { padding-left: .75rem; }
#history-stats tr[aria-current="true"] > * { background: #e6f3ff; }
#history-stats tr[aria-current="true"] > th { box-shadow: inset 3px 0 #0868b0; }
#history-stats .history-symbol { padding: 0; border: 0; background: transparent; color: #0868b0; font-weight: inherit; text-decoration: underline; }
#history-stats .history-symbol:hover { color: #064c80; }
.track-form .symbol-field { display: flex; flex-direction: column; gap: 4px; width: clamp(165px, 26vw, 280px); min-width: 0; }
.related-accounts { display: flex; flex-wrap: wrap; align-items: end; gap: 4px 10px; margin-bottom: 12px; }
.related-account-field { display: flex; flex-direction: column; gap: 4px; width: min(100%, 320px); }
#related-accounts-status { padding-bottom: 5px; }
#related-accounts-status:empty { display: none; }
.track-form select, .related-accounts select { width: 100%; min-width: 0; padding: 5px 8px; border: 1px solid #dce1e6; border-radius: 4px; color: #333; background: #fff; font: inherit; }
.track-form select:disabled, .related-accounts select:disabled { color: #888; }
.track-form select:focus-visible, .related-accounts select:focus-visible { outline: 2px solid #0868b0; outline-offset: 3px; }
.history-select { position: relative; min-width: 0; width: 100%; }
.history-select-trigger { display: flex; align-items: center; gap: 12px; width: 100%; padding: 5px 10px; color: #333; text-align: left; }
.history-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-select-trigger::after { content: ''; width: 6px; height: 6px; margin: -3px 2px 0 auto; flex-shrink: 0; border-right: 1.5px solid #888; border-bottom: 1.5px solid #888; transform: rotate(45deg); }
.history-select-trigger[aria-expanded="true"] { border-color: #a7b9c9; }
.history-select-trigger[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
.history-select-trigger:disabled { color: #888; opacity: 1; background: #f8f9fa; }
.history-select-menu { position: absolute; left: 0; right: 0; z-index: 1100; overflow-y: auto; padding: 4px; border: 1px solid #dce1e6; border-radius: 6px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); overscroll-behavior: contain; }
.history-select-menu::-webkit-scrollbar { width: 8px; }
.history-select-menu::-webkit-scrollbar-thumb { background: #eee; border: 2px solid #fff; }
.history-select-option { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 8px; border-radius: 3px; cursor: pointer; }
.history-select-option > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-select-option[aria-selected="true"] { color: #0868b0; background: #e6f3ff; }
.history-select-option[data-active="true"], .history-select-option:hover { background: #f0f3f6; }
.history-select-check { margin-left: auto; flex-shrink: 0; color: #0868b0; }
@media (max-width: 600px) {
    .track-form .symbol-field { width: auto; min-width: min(100%, 155px); }
}
