.neiro-history-overlay{position:fixed;inset:0;z-index:15000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.78);backdrop-filter:blur(12px);box-sizing:border-box}
.neiro-history-overlay[hidden]{display:none}
.neiro-history-dialog{width:min(100%,500px);max-height:calc(100dvh - 32px);max-height:min(90dvh,780px);display:flex;flex-direction:column;box-sizing:border-box;border:1px solid #247a4b;border-radius:24px;background:linear-gradient(145deg,#0c1710,#060b08);box-shadow:0 0 30px #19ff7230;color:#edf7f0;font:inherit;overflow:hidden}
.neiro-history-head,.neiro-history-pages{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:18px;flex-shrink:0}
.neiro-history-head h2{margin:0;font-size:19px;color:#36ff86}
.neiro-history-scroll{overflow-y:auto;min-height:0;padding:0 16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.neiro-history-record{border:1px solid #294033;border-radius:15px;margin:0 0 10px;overflow:hidden;background:#0c1510}
.neiro-history-overlay button{-webkit-appearance:none;appearance:none;font:inherit;cursor:pointer;color:#e9f3ed;background:#14251b;border:1px solid #345441;border-radius:10px;padding:10px 13px;min-height:44px;box-sizing:border-box}
.neiro-history-overlay button:focus-visible{outline:2px solid #39ff88;outline-offset:2px}
.neiro-history-overlay button:disabled{opacity:.4;cursor:default}
.neiro-history-overlay .neiro-history-summary{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:0;padding:15px}
.neiro-history-summary strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.neiro-history-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;font-size:11px;color:#a9b9ae;line-height:1.5}
.neiro-history-status{color:#b7c1bc;font-weight:700}
.neiro-history-status[data-status=WIN]{color:#39ff88}.neiro-history-status[data-status=LOSS]{color:#ff6969}
.neiro-history-detail{padding:0 15px 15px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.neiro-history-detail p{margin:10px 0}.neiro-history-detail h3{font-size:13px;color:#d6eadd;margin:15px 0 5px}
.neiro-history-probs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.neiro-history-probs span{flex:1;min-width:60px;text-align:center;border:1px solid #345441;border-radius:10px;padding:8px;color:#39ff88}
.neiro-history-overlay .neiro-history-close-record{color:#ff9999;border-color:#873b3b;background:#361a1a;width:100%;margin-top:12px}
.neiro-history-state{padding:22px 4px;color:#adbbb2;font-size:13px;line-height:1.6}
.neiro-history-pages{border-top:1px solid #203428;font-size:12px}.neiro-history-pages span{white-space:nowrap}
@media(max-width:420px){.neiro-history-overlay{padding:10px}.neiro-history-dialog{max-height:calc(100dvh - 20px);border-radius:20px}.neiro-history-head,.neiro-history-pages{padding:14px}.neiro-history-head h2{font-size:17px}.neiro-history-scroll{padding:0 12px}}
