/* Saved-copy surfaces only. Live workspaces retain their own layout and authority. */
body.saved-copy #sidebar,body.saved-copy #tabbar{display:none!important}
body.saved-copy .main{margin-left:0!important}
#savedCopyBanner,[data-saved-workspace],.saved-heading{color:var(--ws-ink,var(--ink,#182230));background:var(--ws-surface,#fff)}
#savedCopyBanner{margin:12px 20px 0;padding:16px;border:1px solid var(--ws-line,#a8b4c4);border-radius:12px;display:flex;gap:16px;justify-content:space-between;align-items:center}
#savedCopyBanner p{margin:6px 0;line-height:1.5}
.saved-actions,.saved-nav,.saved-heading{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.saved-heading{padding:12px 20px;justify-content:space-between}
.saved-nav{margin-bottom:16px}
#savedCopyBanner button,[data-saved-workspace] button,.saved-heading button{min-height:44px;min-width:44px;padding:10px 14px;border:1px solid var(--ws-line,#a8b4c4);border-radius:8px;background:var(--ws-surface-soft,#edf1f5);color:inherit;font:inherit;cursor:pointer}
#savedCopyBanner button:focus-visible,[data-saved-workspace] :focus-visible,.saved-heading button:focus-visible{outline:3px solid var(--accent,#3969d8);outline-offset:2px}
[data-saved-workspace]{max-width:100%;overflow-wrap:anywhere}
.saved-card{padding:16px;border:1px solid var(--ws-line,#a8b4c4);border-radius:12px;margin:0 0 12px}
.saved-card h2,.saved-card h3{margin-top:0}.saved-row{display:block;width:100%;text-align:left;margin-top:8px}
.saved-card form{display:grid;gap:12px;margin-top:16px}.saved-card label{display:grid;gap:6px}.saved-card input,.saved-card textarea{box-sizing:border-box;width:100%;min-height:44px;background:var(--ws-surface-soft,#edf1f5);color:inherit;border:1px solid var(--ws-line,#a8b4c4);padding:10px;border-radius:8px;font:inherit}.saved-card textarea{min-height:100px}
@media(max-width:600px){#savedCopyBanner{margin:8px;display:block;padding:12px}.saved-actions{margin-top:12px}.saved-heading{padding:12px}.saved-copy #content{padding:12px!important}.saved-copy .main{padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}}
@media print{body.saved-copy>* ,body.saved-copy-no-print>*{display:none!important}body.saved-copy:after,body.saved-copy-no-print:after{content:'Saved copy — printing requires a fresh authorized connection.';display:block}}

[data-saved-renewal],#savedDraftCustody{color:var(--ws-ink,#182230);background:var(--ws-surface,#fff)}
[data-saved-renewal] button,#savedDraftCustody button{min-height:44px;padding:10px 14px;background:var(--ws-surface-soft,#edf1f5);color:var(--ws-ink,#182230);border:1px solid var(--ws-line,#a8b4c4);border-radius:8px;font:inherit}
#savedDraftCustody[hidden]{display:none!important}

body.saved-renew-hold #sidebar,body.saved-renew-hold #mainhead,body.saved-renew-hold #content,body.saved-renew-hold #panel,body.saved-renew-hold #modalBackdrop,body.saved-renew-hold #tabbar{visibility:hidden!important;pointer-events:none!important}
#savedSessionGate{position:fixed;inset:20px;z-index:2147483000;overflow:auto;background:var(--ws-surface,#fff);color:var(--ws-ink,#182230);padding:20px;border-radius:12px}
