.driver-history-dialog{width:min(1120px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid #315169;border-radius:22px;background:#091725;color:#e6f0fa;box-shadow:0 25px 100px #0009}
.driver-history-dialog::backdrop{background:#020810bd;backdrop-filter:blur(5px)}
.driver-history-shell{display:flex;flex-direction:column;height:min(870px,calc(100dvh - 28px))}
.driver-history-shell>header{display:flex;justify-content:space-between;gap:20px;padding:22px 26px 12px}
.driver-history-shell h2{margin:5px 0;font-size:1.65rem}.driver-history-shell header p{margin:0;color:#9cb3c6}
.driver-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:6px 26px 16px}
.driver-history-summary>div{border:1px solid #244057;background:#102437;border-radius:14px;padding:13px 17px;display:grid;gap:4px}
.driver-history-summary span,.driver-history-summary small{color:#9cb3c6;font-size:.83rem}.driver-history-summary strong{font-size:1.65rem;color:#77dcf9}.driver-history-summary>div:last-child strong{color:#58dfac}
.driver-history-shell>nav{display:flex;flex-wrap:wrap;gap:8px;padding:0 26px 14px;border-bottom:1px solid #244057}
.driver-history-shell [aria-pressed=true]{background:#194a63;color:#fff;border-color:#58c9ea}
.driver-history-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 26px 18px;flex:1}
.driver-history-note{font-size:.82rem;line-height:1.55;color:#a8bfd2;margin:16px 0}
.driver-history-entry{border:1px solid #254057;border-radius:15px;background:#0e2030;margin:12px 0;overflow:hidden}
.driver-history-entry-heading{display:flex;align-items:center;gap:13px;padding:15px 18px;background:#12283b}
.driver-history-symbol{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:11px;background:#071624;font-size:1.4rem;font-weight:800}
.driver-history-entry h3{font-size:1rem;margin:0 0 4px}.driver-history-entry time{color:#aac2d6;font-size:.85rem}
.driver-history-impact{margin-left:auto;text-align:right;white-space:nowrap}.driver-history-impact span{display:block;font-size:.82rem;margin-top:3px}
.driver-history-entry .positive{color:#61e4ad}.driver-history-entry .negative{color:#ff8690}.driver-history-entry .neutral{color:#a7bdd0}
.driver-history-entry-body{padding:13px 18px;overflow-wrap:anywhere}.driver-history-entry-body p{margin:0 0 8px;font-weight:400}.driver-history-entry-body>small{display:block;color:#a1b7c9;font-size:.8rem;margin:7px 0}
.driver-history-money{display:flex;flex-wrap:wrap;gap:8px 24px;color:#a9c0d3;border-top:1px solid #244057;padding:11px 0;margin-top:8px;font-size:.88rem}
.driver-history-money b{color:#e6f0fa}.driver-history-entry details{margin:10px 0}.driver-history-entry summary{cursor:pointer;color:#80dafa}
.driver-history-entry ul{padding:0;list-style:none;margin:10px 0}.driver-history-entry li{display:grid;grid-template-columns:1fr auto;gap:5px 15px;padding:10px 0;border-top:1px solid #244057;font-size:.85rem}.driver-history-entry li small{grid-column:1/-1;color:#9bb3c7;line-height:1.5}
.driver-history-shell>footer{padding:12px 26px 17px;border-top:1px solid #244057;background:#091725}
.driver-history-shell footer p{font-size:.77rem;color:#a3bbce;margin:0 0 8px}.driver-history-shell footer>div{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.driver-score-history-button{margin-top:14px}
@media(max-width:650px){.driver-history-shell>header{padding:15px}.driver-history-shell h2{font-size:1.15rem}.driver-history-shell header p{font-size:.8rem}.driver-history-summary{padding:4px 15px 12px;gap:6px}.driver-history-summary>div{padding:9px;gap:5px}.driver-history-summary span,.driver-history-summary small{font-size:.69rem}.driver-history-summary strong{font-size:1.2rem}.driver-history-shell>nav{padding:0 15px 12px;gap:6px}.driver-history-shell>nav .button{font-size:.72rem;padding:8px}.driver-history-scroll{padding:0 12px 12px}.driver-history-entry-heading{gap:8px;padding:12px}.driver-history-entry h3{font-size:.85rem}.driver-history-symbol{width:29px;height:29px}.driver-history-impact{font-size:.78rem}.driver-history-entry time{font-size:.72rem}.driver-history-entry-body{padding:12px}.driver-history-entry li{grid-template-columns:1fr}.driver-history-shell>footer{padding:10px 15px}.driver-history-shell footer>div{gap:7px;font-size:.85rem}}
