/* RC291: only the focused AI workspace hides the public site footer. */
body.sk291-ask-only footer, body.sk291-ask-only .site-footer,
body.sk291-ask-only #colophon, body.sk291-ask-only .sk-account-dock,
body.sk291-ask-only .site-info, body.sk291-ask-only .footer-wrapper,
body.sk291-ask-only .ls-footer{display:none!important}
/* Site header and its full menu stay visible. */
.sk291-ask-history{margin:16px 0 40px;min-width:0;padding:clamp(14px,2vw,22px);border:1px solid var(--ls-line);background:var(--ls-surface);color:var(--ls-text);border-radius:16px}
.sk291-history-head{display:flex;gap:10px;justify-content:space-between;align-items:start;flex-wrap:wrap}
.sk291-history-head h2{font-size:1.07rem;margin:0 0 5px;color:var(--ls-text)}
.sk291-history-head p{margin:0 0 12px;font-size:.88rem;color:var(--ls-muted);line-height:1.55}
.sk291-history-head small{color:var(--ls-muted)}
.sk291-history-list{display:grid;gap:7px}
.sk291-history-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid var(--ls-line);border-radius:11px;padding:8px 10px;background:var(--ls-surface-2)}
.sk291-history-open{display:grid;gap:3px;min-width:0;text-align:left;background:none;border:0;color:var(--ls-text);cursor:pointer;padding:7px}
.sk291-history-open strong{font-size:.88rem;overflow-wrap:anywhere}
.sk291-history-open small{font-size:.77rem;color:var(--ls-muted)}
.sk291-history-entry button:focus-visible,.sk291-history-detail button:focus-visible{outline:3px solid var(--ls-focus);outline-offset:2px}
.sk291-history-delete{background:var(--ls-control-bg);color:var(--ls-control-text);border:1px solid var(--ls-line-strong);border-radius:9px;min-height:44px;padding:8px 12px;cursor:pointer}
.sk291-history-detail{margin-top:12px;padding:16px;border-radius:12px;border:1px solid var(--ls-line-strong);color:var(--ls-text);background:var(--ls-surface-2)}
.sk291-history-detail h3{font-size:1rem;margin:4px 0 8px;color:var(--ls-text)}
.sk291-history-detail p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
@media(max-width:480px){.sk291-history-entry{grid-template-columns:1fr}.sk291-history-delete{justify-self:end}}
