#historyDialog{max-width:850px;max-height:calc(100dvh - 26px);padding:22px;background:#fcfaf3;box-sizing:border-box}#historyDialog [hidden]{display:none!important}.history-heading{display:flex;justify-content:space-between;gap:12px;align-items:start}.history-heading h2{margin:0;font-size:27px}.history-heading p{font-size:12px;margin:7px 0 16px}.history-heading button{min-width:36px;min-height:36px;padding:5px;font-size:18px;background:transparent;border:0;box-shadow:none}.history-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.history-filters label{margin:0;font-size:11px}.history-filters select{padding:8px;font-size:12px}.history-tabs{display:flex;gap:4px;margin:16px 0}.history-tabs button{flex:1;min-height:38px;padding:8px 5px;font-size:12px;border-radius:7px}.history-tabs [aria-selected=true]{background:#176884;color:white;border-color:#176884}.history-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.history-metrics>div{padding:13px 10px;background:#e6f0ef;border-radius:8px}.history-metrics strong{display:block;font-size:26px;color:#176884}.history-metrics span{display:block;font-size:10px;margin-top:4px}.history-table-wrap{overflow-x:auto}.history-table-wrap table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.4}.history-table-wrap th,.history-table-wrap td{padding:9px 7px;text-align:right;border-bottom:1px solid #dce4df;white-space:nowrap}.history-table-wrap th:first-child{white-space:normal;text-align:left}.history-table-wrap th[scope=row]{text-align:left;font-weight:600;white-space:normal}.history-table-wrap thead{color:#5e7882;font-size:10px}.history-table-wrap small,.history-regatta small{display:block;font-size:10px;color:#667e87;margin-top:3px;font-weight:400}.history-note{font-size:11px!important;line-height:1.5;margin:11px 0 18px!important}#historyDialog h3{font-size:15px;margin:17px 0 7px}.history-regatta{border:1px solid #d2dedc;border-radius:8px;padding:12px;margin:9px 0}.history-regatta summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-size:12px;list-style:none}.history-regatta summary::-webkit-details-marker{display:none}.history-regatta summary>b{text-align:right;color:#176884;white-space:nowrap}.history-regatta summary:after{content:'⌄';color:#657d85}.history-regatta[open] summary:after{content:'⌃'}.history-regatta>p{font-size:11px}.history-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #dce4df;padding-top:12px;margin-top:20px}.history-footer p{font-size:10px;line-height:1.5;max-width:350px;margin:0}.history-footer button{font-size:11px;padding:8px;white-space:nowrap}#historyEmpty{padding:15px 0}#historyEmpty p{font-size:13px;line-height:1.6}#historySaveStatus{background:#fff0cc;color:#845b1d;border-radius:6px;padding:9px;font-size:12px;line-height:1.5}
@media(max-width:700px){#historyDialog{width:calc(100% - 16px);max-height:calc(var(--phone-height,100dvh) - 16px);padding:14px;border-radius:12px}.history-heading h2{font-size:23px}.history-heading p{font-size:11px;line-height:1.4}.history-filters{gap:8px}.history-filters select{font-size:11px;min-width:0;padding:7px}.history-tabs{margin:12px 0}.history-tabs button{font-size:11px}.history-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.history-metrics>div{padding:10px}.history-metrics strong{font-size:23px}.history-table-wrap table{font-size:11px}.history-table-wrap th,.history-table-wrap td{padding:8px 4px}.history-footer{align-items:stretch;flex-direction:column;gap:10px}.history-footer button{min-height:36px}.history-regatta{padding:10px}.history-regatta summary{font-size:11px}}
.history-table-wrap thead th{white-space:normal;vertical-align:bottom;line-height:1.4}
@media(max-width:700px){.history-table-wrap thead th{font-size:9px;max-width:72px}.history-table-wrap th[scope=row]{min-width:82px}}
