.tool-history-open{margin:12px 0;min-height:44px}
.tool-history-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(880px,calc(100vw - 28px));max-height:85dvh;box-sizing:border-box;overflow:auto;padding:24px;border:1px solid #db97c3;border-radius:18px;background:#100d1d;color:#f8eafa}
.tool-history-dialog::backdrop{background:#03020bcc}
.tool-history-dialog header{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}
.tool-history-dialog h2{margin:0}.tool-history-dialog p{font-size:14px;line-height:1.5;color:#d8c5db}
.tool-history-dialog button,.tool-history-dialog select{font:inherit;background:#38233b;color:#ffe8f7;border:1px solid #9c7190;border-radius:9px;padding:10px 14px;cursor:pointer;min-height:44px}
.tool-history-dialog button:disabled{opacity:.5;cursor:default}
.tool-history-dialog :focus-visible{outline:2px solid #ffc0e8;outline-offset:3px}
.tool-history-controls{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;margin:18px 0}
.tool-history-record{padding:16px;border:1px solid #86567366;border-radius:12px;margin:12px 0;background:#1b1225}
.tool-history-record h3{margin:0;font-size:16px}.tool-history-record pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#d9c9e2}
.tool-history-record summary{cursor:pointer;padding:10px 0;color:#f4b9dc}
.tool-risk-alert{padding:16px!important;margin:12px!important;background:#3c1b34!important;border:1px solid #dc90b9!important;border-radius:12px!important;color:#ffe9f7!important}
.tool-risk-alert p{font-size:13px;line-height:1.5;margin:8px 0;color:#edd4e5}
#page-membership .tools-readiness-note{max-width:1000px;margin:18px auto;padding:20px;background:#110d1eed;border:1px solid #a76f9555;border-radius:14px}
#page-membership .tools-readiness-note h3{font-size:17px;color:#f4c1df;margin:8px 0}
#page-membership .tools-readiness-note p{font-size:14px;line-height:1.5;color:#d9c9df}
#page-membership .sky-benefits{font-size:clamp(11px,4cqw,17px)}
@media(max-width:600px){.tool-history-dialog{padding:16px}.tool-history-controls{align-items:stretch}.tool-history-controls label{display:grid;gap:8px;width:100%}}
