.history-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:52px 0 30px}.history-heading h1{font-size:clamp(34px,4vw,51px);font-weight:500;line-height:1.15;letter-spacing:-1.8px;margin:10px 0 14px}.history-heading>div>p:last-child{color:var(--muted);font-size:14px;margin:0}.history-live{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px;color:var(--muted);padding-bottom:5px}.history-live>span{width:6px;height:6px;background:var(--green);border-radius:50%}
.history-filter-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px 26px 0;box-shadow:0 5px 24px #172e2904}.history-filter-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:23px;border-bottom:1px solid var(--line)}.history-label{font-size:9px;letter-spacing:1.6px;font-weight:700;color:var(--muted);margin:0 0 10px}.history-categories{display:flex;gap:5px;background:#f3f5f0;padding:5px;border-radius:12px}.history-category{display:flex;align-items:center;justify-content:space-between;gap:12px;white-space:nowrap;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:9px;padding:10px 13px;font-size:12px;font-weight:600;transition:background .15s,color .15s}.history-category[aria-pressed=true]{background:var(--green);color:#fff;box-shadow:0 2px 5px #102e2712}.history-category-count{font-size:10px;padding:1px 7px;min-width:24px;border-radius:20px;background:#e4eade;color:var(--ink)}.history-category[aria-pressed=true] .history-category-count{background:#ffffff24;color:#fff}.history-range{align-self:center}.history-range>div{display:flex;gap:6px;flex-wrap:wrap}.history-range-button{border:1px solid var(--line);background:#fff;color:var(--muted);padding:8px 11px;border-radius:8px;font-size:11px;font-weight:500}.history-range-button[aria-pressed=true]{background:#edf3e8;border-color:#cfdbc7;color:var(--green)}.history-range-button:disabled{opacity:.45;cursor:default}.history-category:hover,.history-range-button:not(:disabled):hover{border-color:#b7c7b1}
.history-filter-form{margin:0}.history-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:23px 0}.history-filter-fields label{display:grid;gap:8px;font-size:11px;font-weight:600;color:var(--ink);min-width:0}.history-filter-fields input,.history-filter-fields select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid #d9e1d7;border-radius:9px;background:#fbfcf9;padding:11px 12px;color:var(--ink);font:inherit;font-size:13px;min-height:44px;color-scheme:light}.history-filter-fields input:focus-visible,.history-filter-fields select:focus-visible{outline:2px solid #9ab58d;outline-offset:2px;background:#fff}.history-filter-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:17px 0}.history-selection{font-size:11px;font-weight:600;margin:0 0 5px}.history-category-note{font-size:10px;line-height:1.6;color:var(--muted);margin:0;max-width:600px}.history-filter-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.history-reset{background:transparent;border:1px solid transparent;color:var(--muted);padding:10px 14px;border-radius:8px;font:inherit;font-size:12px}.history-reset:hover{background:#f1f4ed;color:var(--green)}.history-apply{font-size:12px;min-width:112px;padding:10px 17px;border-radius:9px}.history-update:empty{display:none}.history-update{font-size:11px;color:var(--muted);margin:0;padding:0 0 12px}.history-error{font-size:12px;line-height:1.6;background:#fff5eb;border:1px solid #efdbc4;color:#80542c;border-radius:8px;padding:12px;margin:0 0 16px}
.history-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 28px}.history-metrics article{background:#fff;border:1px solid var(--line);border-radius:13px;padding:19px 21px;display:flex;flex-direction:column;gap:6px;min-width:0}.history-metrics article>span{font-size:11px;color:var(--muted)}.history-metrics strong{font-size:32px;font-weight:500;line-height:1.2;letter-spacing:-1px}.history-metrics small{font-size:10px;color:var(--muted)}.history-metrics .history-metric-won{background:#edf3e8;border-color:#d5e2ce}.history-metric-won strong{color:var(--green)}.history-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.history-section-title h2{font-size:20px;font-weight:500;margin:0;letter-spacing:-.4px}.history-section-title>span{font-size:11px;color:var(--muted)}.history-performance{padding:22px 25px;background:#fff;border:1px solid var(--line);border-radius:13px}.history-performance-scroll{overflow:auto}.history-performance table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;margin-top:17px}.history-performance th{font-size:10px;color:var(--muted);font-weight:500;padding:11px 14px;border-bottom:1px solid var(--line)}.history-performance td{font-size:12px;padding:14px;border-bottom:1px solid #edf0eb}.history-performance th:first-child,.history-performance td:first-child{padding-left:0}.history-performance th:last-child,.history-performance td:last-child{text-align:right;padding-right:0}.history-performance td:first-child{font-weight:600}.history-method{margin:0}.history-method summary{font-size:10px;font-weight:500;color:var(--muted);padding:13px 0 0}.history-method p{font-size:11px;color:var(--muted);line-height:1.7;max-width:740px;margin-bottom:0}.history-run-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:20px 0}.history-run-links>span{font-size:10px;color:var(--muted);margin-right:6px}.history-run-button{background:transparent;border:1px solid #d5dfd0;border-radius:8px;padding:8px 11px;color:var(--green);font-size:11px}.history-run-button:hover{background:#edf3e8}.history-results-heading{margin:34px 0 19px}.history-empty{grid-column:1/-1;text-align:center;padding:48px 25px;background:#fff;border:1px dashed #cdd8c6;border-radius:14px}.history-empty-mark{font-size:32px;color:var(--muted)}.history-empty h2{font-weight:500;font-size:23px;letter-spacing:-.5px;margin:10px 0}.history-empty p{font-size:13px;color:var(--muted);margin:8px 0 20px}.history-empty button{margin:4px;font-size:12px}.history-pagination{display:flex;align-items:center;justify-content:center;gap:24px;margin:30px 0 42px}.history-pagination>span{font-size:12px;color:var(--muted)}.history-page-button{border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:10px 15px;font-size:12px}.history-page-button:disabled{opacity:.4;cursor:default}.history-page-button:not(:disabled):hover{border-color:#9ab58d}.history-filter-panel [hidden]{display:none}
@media(max-width:1000px){.history-filter-top{flex-direction:column;gap:19px}.history-range{align-self:flex-start}.history-filter-footer{align-items:flex-start}.history-metrics article{padding:18px 16px}.history-category-note{max-width:440px}}
@media(max-width:650px){.history-heading{display:block;padding:32px 0 22px}.history-heading h1{font-size:35px;letter-spacing:-1.3px;max-width:330px}.history-heading>div>p:last-child{font-size:12px}.history-live{margin-top:14px;font-size:10px}.history-filter-panel{padding:18px 16px 0;border-radius:14px}.history-filter-top{gap:17px;padding-bottom:18px}.history-filter-top>div:first-child{width:100%}.history-categories{display:grid;grid-template-columns:1fr 1fr;padding:4px;gap:3px}.history-category{padding:10px 8px;gap:6px;font-size:11px;white-space:normal}.history-category-count{padding:1px 6px;min-width:20px;font-size:9px}.history-label{font-size:8px;letter-spacing:1.3px;margin-bottom:9px}.history-range-button{font-size:10px;padding:8px 9px}.history-range>div{gap:5px}.history-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:19px 0}.history-filter-fields input,.history-filter-fields select{padding:10px 8px;font-size:12px}.history-filter-footer{flex-direction:column;gap:16px;padding:16px 0}.history-filter-actions{justify-content:flex-end;width:100%}.history-selection{font-size:10px;line-height:1.7}.history-category-note{font-size:9px}.history-apply{font-size:12px;min-width:135px}.history-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:17px 0 22px}.history-metrics article{padding:15px}.history-metrics strong{font-size:29px}.history-metrics small{font-size:9px;line-height:1.5}.history-metrics article>span{font-size:10px}.history-performance{padding:18px 16px}.history-section-title h2{font-size:18px}.history-section-title>span{font-size:9px}.history-performance th{font-size:9px;padding:10px}.history-performance td{font-size:11px;padding:12px 10px}.history-run-links>span{width:100%;margin-bottom:2px}.history-run-button{font-size:10px}.history-results-heading{margin-top:27px}.history-empty{padding:35px 18px}.history-pagination{gap:14px}.history-page-button{padding:10px 12px;font-size:11px}.history-pagination>span{font-size:11px}}
.history-ticket-list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.history-ticket-list>.history-empty{border:0;border-radius:0}.history-ticket-table-scroll{overflow:auto}.history-ticket-table{width:100%;border-collapse:collapse;text-align:left}.history-ticket-table th{padding:15px 18px;font-size:10px;font-weight:600;color:var(--muted);background:#f1f5ed;border-bottom:1px solid var(--line);white-space:nowrap}.history-ticket-table td{padding:18px;font-size:12px;border-bottom:1px solid #e9eee5;vertical-align:middle}.history-ticket-table tbody tr:last-child td{border-bottom:0}.history-ticket-table tbody tr{cursor:pointer;transition:background .15s}.history-ticket-table tbody tr:hover{background:#f7faf4}.history-ticket-name strong{display:block;font-size:12px;font-weight:600}.history-ticket-name>small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.history-table-odds{font-variant-numeric:tabular-nums;font-weight:600}.history-result-badge{display:inline-block;padding:5px 9px;border-radius:7px;font-size:10px;font-weight:600;white-space:nowrap;background:#f0f3ed;color:var(--muted)}.history-result-won{background:#e9f2e2;color:#27563a}.history-result-lost{background:#faeeea;color:#984c38}.history-result-pending{background:#faf2df;color:#876a30}.history-result-refunded{background:#eaf1f4;color:#466a7a}.history-result-settled_reduced{background:#f3ecf8;color:#77558e}.history-ticket-action,.history-table-action-label{text-align:right}.history-details-button{display:inline-flex;align-items:center;gap:10px;border:1px solid #d6e1d0;border-radius:8px;padding:8px 12px;color:var(--green);background:#fff;font-size:11px;white-space:nowrap}.history-details-button:hover{background:#edf4e6;border-color:#a8bda0}.history-mobile-meta{display:none}.history-performance-disclosure{margin:0 0 12px;padding:18px 22px}.history-performance-disclosure>summary{padding:0;font-size:13px;font-weight:500;color:var(--ink)}.history-performance-disclosure>summary>span{font-size:13px;color:var(--ink);float:none}.history-performance-disclosure>summary small{font-size:10px;color:var(--muted)}.history-performance-disclosure[open]>summary{padding-bottom:10px}.history-run-disclosure{margin:12px 0 22px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 22px}.history-run-disclosure>summary{font-size:12px;padding:16px 0;font-weight:500}.history-run-disclosure .history-run-links{margin:0 0 16px}.history-ticket-dialog{padding:0;width:min(650px,94vw);max-height:90vh;border:1px solid #d5dfcf;border-radius:17px;background:var(--paper);color:var(--ink);box-shadow:0 20px 90px #102e2733}.history-ticket-dialog::backdrop{background:#102e2799;backdrop-filter:blur(3px)}.history-ticket-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:1}.history-ticket-dialog-header p{font-size:11px;color:var(--muted);margin:0 0 5px}.history-ticket-dialog-header h2{font-size:22px;font-weight:500;letter-spacing:-.5px;margin:0}.history-close{display:inline-flex;align-items:center;gap:12px;background:transparent;color:var(--muted);font-size:12px;border:1px solid var(--line);border-radius:8px;padding:8px 12px}.history-close span{font-size:21px;line-height:1}.history-close:hover{background:#f0f4eb}.history-ticket-dialog-body{padding:22px}.history-ticket-dialog-body>.ticket{margin:0}.history-detail-status{padding:0 22px 18px;margin:0;font-size:12px}.history-detail-status:empty{display:none}
@media(max-width:850px){.history-ticket-table td,.history-ticket-table th{padding:14px 11px;font-size:11px}.history-details-button{gap:6px;padding:8px 9px}}
@media(max-width:650px){.history-ticket-table .history-desktop-column{display:none}.history-mobile-meta{display:block;font-size:9px;color:var(--muted);line-height:1.65;margin-top:5px;overflow-wrap:anywhere}.history-ticket-table th{font-size:10px;padding:13px 12px}.history-ticket-table td{padding:15px 12px;font-size:11px}.history-ticket-name{width:48%}.history-ticket-name strong{font-size:11px}.history-ticket-name>small{font-size:9px}.history-ticket-table .history-result-badge{font-size:9px;padding:5px 7px}.history-ticket-table .history-ticket-action{padding-left:5px}.history-details-button{padding:8px 9px;font-size:10px;gap:5px}.history-details-button span{display:none}.history-performance-disclosure{padding:16px}.history-run-disclosure{padding:0 16px}.history-ticket-dialog{width:calc(100vw - 20px);max-height:92dvh;border-radius:14px}.history-ticket-dialog-header{padding:16px;gap:10px}.history-ticket-dialog-header h2{font-size:19px}.history-ticket-dialog-header p{font-size:10px}.history-close{font-size:11px;padding:8px 9px;gap:8px}.history-ticket-dialog-body{padding:12px}}
.history-day-date>strong{font-weight:600;white-space:nowrap}.history-day-outcome>strong{display:block;font-size:16px;font-weight:500;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.history-day-outcome>small{display:block;margin-top:5px;font-size:10px;color:var(--muted);white-space:nowrap}.history-hit-rate{display:inline-block;background:#eaf3e4;color:var(--green);font-weight:600;border-radius:8px;padding:7px 10px;font-variant-numeric:tabular-nums}.history-day-table th small{display:block;font-size:9px;font-weight:400;margin-top:4px}.history-drilldown-note{font-size:11px;color:var(--muted);margin:8px 0 0}.history-back-button{background:#fff;color:var(--green);border:1px solid var(--line);border-radius:8px;font-size:12px;padding:10px 14px}.history-back-button:hover{border-color:#a7b99e;background:#f4f8ef}.history-day-navigation:empty{display:none}.history-day-navigation{margin-top:26px}.history-day-navigation+.history-results-heading{margin-top:20px}
@media(max-width:650px){.history-day-table th,.history-day-table td{padding:15px 10px}.history-day-date{width:42%}.history-day-date>strong{font-size:11px}.history-day-outcome>strong{font-size:15px}.history-day-outcome>small{font-size:9px}.history-day-table .history-details-button{padding:9px 8px}.history-day-table .history-view-prefix{display:none}.history-drilldown-note{font-size:10px;line-height:1.6;max-width:250px}.history-back-button{font-size:11px}.history-day-table .history-mobile-meta{font-size:9px}}
.history-results-heading{scroll-margin-top:20px}
