.cup-history{position:absolute;top:8%;right:3%;width:280px;z-index:6;padding:15px;background:#ffffffdb;border:1px solid #d9dcd9;border-radius:9px;color:#333936;font:12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;box-sizing:border-box}.cup-history header,.history-detail header{display:flex;align-items:center;justify-content:space-between;gap:12px}.cup-history header strong{font-size:13px;font-weight:600}.cup-history button,.history-detail button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}.cup-history header button{font-size:11px;color:#747873;padding:4px}.history-filter{display:flex;align-items:center;justify-content:space-between;margin:10px 0 5px;color:#777;font-size:11px;gap:10px}.history-filter select{font:inherit;color:#444;border:1px solid #e2e4df;border-radius:4px;padding:5px 8px;background:#fff;max-width:175px}.history-list{display:flex;flex-direction:column}.cup-history .history-item{display:flex;align-items:center;text-align:left;gap:10px;width:100%;min-height:58px;padding:9px 5px;border-top:1px solid #e7e8e3;border-radius:3px}.cup-history .history-item:hover,.cup-history .history-item.active{background:#f5eae5}.history-item>img{width:25px;height:35px;object-fit:contain;flex:none}.history-item-text{min-width:0;flex:1}.history-item-text strong,.history-item-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item-text strong{font-size:12px;font-weight:500}.history-item-text small{font-size:10px;color:#82847f;margin-top:3px}.history-item-value{white-space:nowrap}.history-item-value b{font-size:14px;font-weight:550;font-variant-numeric:tabular-nums}.history-item-value small{font-size:10px;color:#777}.history-empty{font-size:11px;color:#858982;margin:20px 0}.history-detail{position:fixed;z-index:35;box-sizing:border-box;width:350px;max-width:calc(100vw - 24px);max-height:calc(100svh - 24px);overflow:auto;padding:20px;background:#fff;border:1px solid #d6dad7;border-radius:10px;box-shadow:0 12px 35px #26322e24;color:#343b36;font:12px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}.history-detail[hidden]{display:none}.history-detail header strong{font-size:14px;font-weight:600}.history-detail .history-close{font-size:23px;line-height:1;width:28px;height:28px}.history-identity{margin:7px 0 0;line-height:1.7;overflow-wrap:anywhere}.history-time{margin:3px 0 0;font-size:11px;color:#858982}.history-detail-cup{display:block;width:100%;height:290px;object-fit:contain;margin:8px auto}.history-values{border-top:1px solid #e2e5df;padding-top:10px}.history-values p{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0;gap:16px}.history-values p span{color:#747b74}.history-values strong{color:#ad3e26;font-size:22px;font-weight:550}.history-values b{font-size:14px;font-weight:500}.history-values small{color:#81877f}.cup-history button:focus-visible,.cup-history select:focus-visible,.history-detail button:focus-visible{outline:2px solid #ad3e26;outline-offset:2px}
@media(max-width:1100px) and (min-width:761px){.cup-history{width:242px;right:2%;padding:11px}.history-item-value b{font-size:12px}.history-item-text strong{font-size:11px}}
@media(max-width:760px){.cup-history{position:relative;top:auto;right:auto;width:calc(100% - 44px);margin:0 22px 25px}#lab:has(>#historyHost){height:auto;min-height:780px;overflow:visible;padding-top:800px}.history-detail-cup{height:260px}.history-detail{padding:16px}.watermark{bottom:auto!important;top:748px}}
body.cup-formal-history .optical-area{visibility:hidden}body.cup-formal-history .cup-history{top:95px}body.cup-formal-history .history-render-host{position:fixed;left:-1000px;top:0;width:300px;height:350px;pointer-events:none}

.history-picker{position:relative;min-width:0;max-width:190px;flex:1}.cup-history .history-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:100%;min-width:125px;height:33px;padding:0 10px;border:1px solid #dddeda;border-radius:6px;background:#fafaf7;color:#4c514c;font-size:12px;transition:background .15s,border-color .15s}.history-picker-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-picker-trigger>img{width:13px;height:13px;opacity:.65;transition:transform .15s;flex:none}.cup-history .history-picker-trigger:hover{background:#f1f1ec;border-color:#c9cdc5}.cup-history .history-picker-trigger[aria-expanded=true]{background:#f7eee9;border-color:#d8b8a9;color:#a54129}.history-picker-trigger[aria-expanded=true]>img{transform:rotate(180deg)}.history-picker-menu{position:absolute;left:0;top:calc(100% + 7px);width:248px;max-width:calc(100vw - 64px);max-height:280px;overflow:auto;z-index:10;box-sizing:border-box;padding:6px;background:#fffefa;border:1px solid #dcdfd7;border-radius:9px;box-shadow:0 10px 28px #323d3024,0 2px 5px #323d300a;scrollbar-width:thin;scrollbar-color:#ccd0c6 transparent}.history-picker-menu[hidden]{display:none}.cup-history .history-picker-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border:1px solid transparent;border-radius:5px;padding:10px;font-size:12px;transition:background .12s}.history-picker-text{min-width:0}.history-picker-text strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere;color:#424a40}.history-picker-text small{display:block;margin-top:3px;color:#8a8e83;font-size:10px}.history-picker-count{font-size:11px;color:#808779;white-space:nowrap;font-variant-numeric:tabular-nums}.cup-history .history-picker-option:hover,.cup-history .history-picker-option:focus-visible{background:#f0f2ec;outline:none;border-color:#d6ddcf}.cup-history .history-picker-option[aria-checked=true]{background:#f6eae3;border-color:#ebd2c5}.history-picker-option[aria-checked=true] .history-picker-text strong,.history-picker-option[aria-checked=true] .history-picker-count{color:#a54129}.history-filter>span{white-space:nowrap}@media(max-width:1100px) and (min-width:761px){.history-picker-menu{width:218px}}
