
.luna-open{white-space:nowrap}
.luna-replay-dialog{width:min(1120px,94vw);max-height:90dvh;box-sizing:border-box;padding:22px;border:1px solid #cce5ec;border-radius:18px;background:#f4fafc;color:#173b55;font-family:Heebo,"Segoe UI",Arial,sans-serif;overflow:auto;box-shadow:0 22px 90px #173b5533}
.luna-replay-dialog::backdrop{background:#102b4466;backdrop-filter:blur(4px)}
.luna-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.luna-eyebrow{font-size:10px;color:#168d9e;letter-spacing:.1em}
.luna-dialog-head h2{font-size:25px;line-height:1.35;margin:4px 0 0}
#luna-replay-close{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid #d4e6ec;border-radius:50%;background:#fff;color:#52758c;font-size:23px;line-height:1;cursor:pointer}
.luna-intro{font-size:13px;line-height:1.8;color:#607f93;max-width:900px;margin:12px 0 18px}
.luna-run-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d3e8ed;background:#fff;border-radius:12px;padding:12px 15px}
.luna-run-bar strong,.luna-run-bar span{display:block}.luna-run-bar strong{font-size:14px}.luna-run-bar span{font-size:11px;color:#68899b;margin-top:3px}
.luna-run-actions{display:flex;gap:8px;flex-wrap:wrap}
.luna-run-actions button{font:inherit;font-size:12px;font-weight:600;padding:9px 13px;border:1px solid #b9dee4;border-radius:8px;background:#fff;color:#14778c;cursor:pointer}
#luna-replay-start{background:#0a9ba2;color:#fff;border-color:#0a9ba2}
.luna-run-actions button:disabled{opacity:.5;cursor:default}
.luna-status{font-size:12px;line-height:1.7;color:#547c90;min-height:21px;margin:10px 0}
.luna-run-track{height:5px;background:#dcebf0;border-radius:10px;overflow:hidden}.luna-run-track i{display:block;height:100%;width:0;background:#1aabb0}
.luna-legend{display:flex;flex-wrap:wrap;gap:10px 17px;font-size:10px;color:#627f8f;margin:14px 0 9px}
.luna-legend span::before{content:"";display:inline-block;width:7px;height:7px;margin-left:5px;border-radius:2px;background:var(--state-color)}
.luna-replay-dialog [data-state="balanced"]{--state-color:#0ba99a}.luna-replay-dialog [data-state="transition"]{--state-color:#c18b28}.luna-replay-dialog [data-state="trending_up"]{--state-color:#4977d3}.luna-replay-dialog [data-state="trending_down"]{--state-color:#d6647d}.luna-replay-dialog [data-state="insufficient_data"]{--state-color:#9eb3bf}
.luna-timeline{display:flex;gap:2px;min-height:20px;direction:ltr}
.luna-timeline button{flex:1;min-width:0;max-width:30px;height:20px;border:0;border-radius:2px;background:var(--state-color);cursor:pointer}
.luna-timeline button:focus-visible{outline:2px solid #173b55;outline-offset:2px}
.luna-empty{padding:45px 20px;text-align:center;color:#7c98a9;font-size:13px;line-height:1.8}
.luna-results-wrap{overflow:auto;max-height:51dvh;margin-top:14px;border:1px solid #d3e6ed;border-radius:10px;background:#fff}
.luna-results{width:100%;border-collapse:collapse;text-align:right;font-size:12px}
.luna-results th{position:sticky;top:0;background:#e9f5f8;z-index:1;color:#53778d;font-size:11px;padding:10px;white-space:nowrap}
.luna-results td{padding:10px;border-top:1px solid #e7f0f3;vertical-align:top}
.luna-results td:first-child,.luna-results td:nth-child(2){direction:ltr;text-align:center;white-space:nowrap}
.luna-results td:nth-child(3),.luna-results td:nth-child(4){white-space:nowrap}
.luna-results p{margin:0;line-height:1.75}.luna-results small{display:block;font-size:10px;color:#7b94a4;line-height:1.7;margin-top:4px}
.luna-state{color:var(--state-color);font-weight:700}
.luna-footnote{font-size:10px;color:#7f96a4;line-height:1.7;margin:15px 0 0}
.luna-replay-dialog [hidden]{display:none!important}
@media(max-width:700px){.luna-replay-dialog{padding:15px;width:96vw;max-height:94dvh}.luna-dialog-head h2{font-size:20px}.luna-run-bar{align-items:flex-start;flex-direction:column;gap:10px}.luna-results{min-width:620px}.luna-intro{font-size:12px}.luna-results-wrap{max-height:45dvh}}
