.replay-dialog{width:min(760px,90vw);background:#fff9f0;color:#403757;border:3px solid #514a72;border-radius:20px;padding:24px;box-shadow:0 12px 0 #37204b40;font:15px system-ui}.replay-dialog::backdrop{background:#24153399}.replay-dialog h2{margin:0 0 12px}.replay-dialog textarea{width:100%;height:200px;font:12px monospace;padding:12px;border:2px solid #afa0bc;border-radius:8px}.replay-dialog .replay-info{font-size:12px;overflow-wrap:anywhere}.replay-actions{display:flex;align-items:center;gap:16px;margin-top:16px;flex-wrap:wrap}.replay-actions button{font:inherit;border:2px solid #565173;border-radius:8px;padding:8px 16px;cursor:pointer;background:#cbf1e1;color:#403757}.replay-actions a{color:#415796}.replay-dialog button:focus-visible,.replay-dialog textarea:focus-visible{outline:3px solid #58b7bb;outline-offset:3px}.replay-status{min-height:24px;margin-bottom:0}
/* Records dialog: the dark glass of the pause box, a short text area, the caption above a pinned footer (Copy primary, Close secondary). */
dialog.replay-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px 20px;background:linear-gradient(145deg,#2a414e,#122635);color:#e3ece8;border:1px solid #8ba0a6;border-radius:10px;box-shadow:0 16px 60px #0009;overflow:hidden}
dialog.replay-dialog[open]{display:flex;flex-direction:column;gap:8px}
dialog.replay-dialog::backdrop{background:#071421bb;backdrop-filter:blur(3px)}
dialog.replay-dialog h2{margin:0;font-size:20px;color:#f1dcae}
dialog.replay-dialog .replay-info{margin:0;color:#b8cdd5}
dialog.replay-dialog textarea{flex:1 1 auto;min-height:56px;height:76px;max-height:112px;resize:vertical;box-sizing:border-box;background:#0d1a22;color:#cfe3da;border:1px solid #5d7b86;padding:8px 10px}
dialog.replay-dialog .replay-status{order:1;min-height:0;margin:0;font-size:12px;line-height:1.4;color:#b8cdd5}
dialog.replay-dialog .replay-actions{order:2;flex:none;margin:4px 0 0;gap:12px;flex-wrap:nowrap}
dialog.replay-dialog .replay-actions button{min-height:40px;min-width:88px;padding:6px 18px;border:1px solid #8ba0a6;border-radius:8px;background:transparent;color:#e3ece8;font-size:14px;font-weight:700;touch-action:manipulation}
dialog.replay-dialog .replay-actions [data-copy]{border-color:#e0b86a;background:linear-gradient(180deg,#f3d49c,#e0b070);color:#2d2418}
dialog.replay-dialog .replay-actions [data-copy]:disabled{opacity:.5;cursor:default}
dialog.replay-dialog .replay-actions [data-close]{margin-left:auto}
dialog.replay-dialog .replay-actions a{color:#9fc4e6;font-size:13px;min-height:40px;display:inline-flex;align-items:center}
dialog.replay-dialog button:focus-visible,dialog.replay-dialog textarea:focus-visible{outline:3px solid #f1d7a1;outline-offset:2px}
