body.app-ui.history-page{background:#f6f5f2}body.app-ui.history-page main{width:calc(100% - 48px);max-width:1208px;background:transparent;border:0;padding:0;margin:30px auto}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.history-heading h1{font-size:29px!important;margin:8px 0 10px!important;letter-spacing:-1px}.history-heading p{font-size:12px;color:#9d8c7d;margin:0}.history-heading>a{font-size:12px;white-space:nowrap}.history-controls{background:white;border:1px solid #e8e2db;border-radius:16px;overflow:hidden}.history-basic{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:16px;padding:22px}.history-basic>label{display:flex;flex-direction:column;gap:8px;font-size:11px!important;color:#9c8879!important}.history-basic select{width:100%;min-width:0;background:#fff!important;border-color:#e6ded6!important}.history-basic button{background:#8f3e32!important;color:#fff!important;border-color:#8f3e32!important;font-size:13px!important;padding:10px 20px!important}.history-highlight{border-top:1px solid #eee7df}.history-highlight>summary{padding:16px 22px;cursor:pointer;font-size:12px;font-weight:650;color:#786357;list-style:none;display:flex;align-items:center;gap:18px}.history-highlight>summary:before{content:'+';font-size:20px;font-weight:400;color:#a99383}.history-highlight[open]>summary:before{content:'−'}.history-highlight>summary>span{font-weight:400;color:#b09b8b;font-size:11px}.highlight-body{padding:0 22px 20px;display:flex;flex-wrap:wrap;gap:16px;align-items:start}.highlight-body fieldset{border:0;margin:0;padding:0;flex:1 1 100%}.highlight-body legend{font-size:11px;color:#a28a77;margin-bottom:9px}.history-chips{display:flex;flex-wrap:wrap;gap:8px}.history-chips>label{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #e9e1d9;border-radius:7px;padding:8px 10px;min-height:38px;cursor:pointer;background:#fcfaf7;font-size:11px!important;color:#826d5c!important}.history-chips>label:has(input:checked){border-color:#c79583;background:#f8eee7;color:#8f3e32!important}.history-chips input{accent-color:#974d3d;width:14px;height:14px;margin:0}.attribute-selector{display:flex;align-items:center;gap:12px;font-size:11px!important}.attribute-selector select{font-size:13px!important;min-height:38px!important;padding:7px 10px!important}.highlight-body>p{flex-basis:100%;margin:0}.highlight-body>button{font-size:11px!important;min-height:38px!important}.history-results-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:24px 0 8px}.history-results-heading>h2{font-size:18px!important;margin:0!important}.history-results-heading>span{font-size:11px;color:#a38e7e}#history-status{font-size:11px;margin:0 0 18px;line-height:1.8}#history-error{font-size:12px;color:#ad4d3b}#history-results{scroll-margin-top:20px;min-width:0}.history-desktop{background:white;border:1px solid #e8e1d8;border-radius:14px;overflow:hidden}.history-table{table-layout:fixed;width:100%;border-collapse:collapse}.history-table th:nth-child(1){width:17%}.history-table th:nth-child(2){width:40%}.history-table th:nth-child(3){width:9%}.history-table th:nth-child(4){width:17%}.history-table th:nth-child(5){width:17%}.history-page .history-table th{font-size:11px;padding:14px 16px;background:#f0ece6;color:#a08a77;font-weight:500}.history-page .history-table td{padding:20px 16px;vertical-align:top;border-bottom:1px solid #f0e9e0;white-space:normal}.history-table tr:last-child td{border-bottom:0}.history-date>strong{font-size:12px;display:block;color:#6f5949;overflow-wrap:anywhere}.history-date>time{display:block;font-size:10px;line-height:1.8;margin-top:7px;color:#ac9685}.history-positive{display:flex;justify-content:space-between;gap:6px;align-items:start}.history-number{text-align:center;min-width:0;transition:opacity .15s}.history-number>small{display:block;font-size:10px;margin-top:7px;color:#a28a76;line-height:1.6;overflow-wrap:anywhere}.history-ball{width:35px;height:35px;display:inline-flex;justify-content:center;align-items:center;border-radius:50%;font-size:15px;font-weight:650;color:white;box-shadow:inset 0 -2px 0 #0001}.history-ball.red{background:#c26055}.history-ball.blue{background:#5b87a7}.history-ball.green{background:#699578}.number-muted{opacity:.22}.number-highlighted .history-ball{outline:2px solid #9f7761;outline-offset:3px}.history-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px;min-width:0}.history-metric-grid>span{display:flex;flex-direction:column;gap:5px;min-width:0}.history-metric-grid small{font-size:9px;color:#b09a87}.history-metric-grid strong{font-size:12px;color:#76604f;font-weight:500}.history-more{margin-top:14px;font-size:10px}.history-more>summary{font-size:10px;cursor:pointer;color:#a2765a;line-height:1.8}.history-more[open]>.history-metric-grid{margin-top:13px;gap:12px 6px}.history-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:20px 0}.history-pagination>span{font-size:11px;color:#a28a76;margin-right:auto}.history-pagination>button{min-height:38px!important;padding:8px 17px!important;font-size:11px!important}.history-footnote{font-size:10px;color:#b39c88;line-height:1.9;margin:25px 0}.history-loading,.history-empty{text-align:center;padding:60px 18px;background:white;border:1px solid #e8e1d8;border-radius:14px;font-size:13px;color:#ad9582}.history-cards{display:none}
@media(max-width:1099px){.history-desktop{display:none}.history-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.history-draw-card{background:white;border:1px solid #e8e1d8;border-radius:14px;padding:20px;min-width:0}.history-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.history-card-top>strong{font-size:12px;line-height:1.7;color:#765b48;overflow-wrap:anywhere}.history-card-top>time{font-size:9px;color:#b19b88;line-height:1.9;text-align:right;flex-shrink:0;max-width:114px}.history-card-numbers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) 12px minmax(0,1fr);gap:5px;align-items:start}.history-number-plus{align-self:start;margin-top:5px;color:#baa38e;font-size:18px;text-align:center}.history-ball{width:32px;height:32px;font-size:14px}.history-number>small{font-size:9px}.history-number-labels{display:flex;justify-content:space-between;border-bottom:1px solid #f0e8df;padding:12px 0 15px;margin-bottom:17px;font-size:9px;color:#c0ab98}.history-number-labels>span:last-child{min-width:32px;text-align:center}.history-draw-card>.history-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.history-draw-card .history-more{border-top:1px solid #f1eae2;padding-top:12px;margin-top:16px}.history-draw-card .history-more .history-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 0}.history-heading h1{font-size:27px!important}}
@media(max-width:700px){body.app-ui.history-page main{width:calc(100% - 28px);margin:22px auto}.history-heading{margin-bottom:22px;align-items:flex-start;gap:10px}.history-heading h1{font-size:24px!important}.history-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.history-heading p{font-size:11px;line-height:1.8}.history-heading>a{font-size:10px;padding-top:4px}.history-basic{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:17px}.history-basic>label:first-child{grid-column:1/-1}.history-basic>button{grid-column:1/-1;min-height:42px}.history-basic select{font-size:16px!important}.history-highlight>summary{padding:14px 17px;font-size:11px;gap:10px}.history-highlight>summary>span{display:none}.highlight-body{padding:0 17px 17px}.history-chips{gap:7px}.history-chips>label{font-size:10px!important;padding:8px}.history-cards{grid-template-columns:1fr;gap:12px}.history-draw-card{padding:18px 15px}.history-card-top{margin-bottom:18px}.history-card-top>time{max-width:none;font-size:9px;line-height:1.9}.history-ball{width:34px;height:34px;font-size:14px}.history-card-numbers{gap:5px}.history-number>small{font-size:10px}.history-draw-card>.history-metric-grid strong{font-size:13px}.history-results-heading{margin-top:22px}.history-results-heading>h2{font-size:17px!important}.history-pagination{margin:18px 0}.history-pagination>button{min-height:42px!important}.history-footnote{font-size:10px}.history-number-labels{font-size:9px}.history-page .app-header{height:76px}}
@media(max-width:370px){.history-ball{width:28px;height:28px;font-size:12px}.history-card-numbers{gap:3px;grid-template-columns:repeat(6,minmax(0,1fr)) 9px minmax(0,1fr)}.history-card-top>time{font-size:8px;max-width:94px}.history-heading h1{font-size:22px!important}.history-heading>a{font-size:9px}.history-number>small{font-size:9px}.history-draw-card{padding:16px 12px}}
@media(prefers-reduced-motion:reduce){.history-number{transition:none}}

@media(max-width:640px){.history-page .header-action{display:none!important}}
/* Keep secondary labels readable on handheld screens. */
@media(max-width:700px){.history-heading p,.history-basic>label,.highlight-body legend{color:#807061!important}.history-number>small{font-size:11px;color:#7c6b5b}.history-card-top>time{font-size:10px;color:#847262}.history-metric-grid small{font-size:11px;color:#827060}.history-metric-grid strong{font-size:14px;color:#6f5949}.history-number-labels{font-size:10px;color:#8d7966}.history-results-heading>span,.history-footnote{font-size:11px;color:#8a7665}.history-draw-card .history-more>summary{font-size:11px;min-height:32px;line-height:32px}}
