/* Shared navigation, applied after legacy workspace CSS. */
body>.header.has-workspace-nav{display:flex;align-items:center;flex-wrap:wrap;gap:16px;min-height:62px;padding:8px 24px;border-bottom:1px solid var(--border);background:var(--bg);flex:none;z-index:40}
body>.header>.brand{display:flex;flex:none;gap:10px;min-width:0;height:auto;padding:0;border:0}
body>.header .brand-logo{width:124px}body>.header .brand-description{font:11px/1.3 system-ui,sans-serif;color:var(--muted)}
body>.header>.workspace-nav{display:flex;flex:1;justify-content:center;gap:4px;min-width:0;margin:0;padding:0;border:0;background:transparent}
body>.header>.workspace-nav a{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:42px;padding:8px 12px;font-size:14px;font-weight:500;border:0;border-bottom:2px solid transparent;border-radius:4px 4px 0 0;background:transparent;color:var(--muted);text-decoration:none;white-space:nowrap}
body>.header>.workspace-nav a:hover{background:var(--hover);color:var(--text)}body>.header>.workspace-nav a[aria-current=page]{color:var(--text);border-bottom-color:var(--accent)}
body>.header>.header-actions{display:flex;flex:none;align-items:center;justify-content:flex-end;gap:7px;height:auto;padding:0;border:0;background:transparent}
body>.header .themes{display:flex!important;flex:none;gap:0;padding:0;border:1px solid var(--border);background:var(--surface);border-radius:6px}
body>.header .themes button{display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:32px;min-height:34px;padding:5px;border:0;border-radius:4px}
body>.header .themes button>span{display:none}body>.header .themes button[aria-pressed=true]{background:var(--raised);color:var(--accent)}
body>.header .compact-workspace-nav{display:none!important}
body>.header .header-tools-panel{max-height:calc(100dvh - 100px);border-radius:10px}
body>.header .sticky-save{font-size:11px;color:var(--muted)}
body>.header .priority-site-dot{display:none}
.skip-link{position:fixed;z-index:200;left:12px;top:-100px;background:var(--raised);color:var(--text);padding:12px 18px;border:2px solid var(--accent);border-radius:5px}.skip-link:focus{top:8px}
:where(a,button,input,select,summary,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1100px){body>.header .brand-description,body>.header #save-status,body>.header .sticky-save{display:none}}
@media(max-width:600px){body>.header.has-workspace-nav{gap:3px 8px;padding:7px 12px 0;min-height:0}body>.header>.brand{margin-right:auto}body>.header .brand-logo{width:112px}body>.header>.header-actions{gap:4px}body>.header>.workspace-nav{order:3;flex:1 0 100%;justify-content:space-between;gap:0}body>.header>.workspace-nav a{padding:8px 10px;min-height:42px;font-size:13px}body>.header .themes button{width:30px;min-width:30px;min-height:34px}}
/* Preserve workspace-only scrolling with a compact, consistent landscape header. */
body.landscape-notepad{display:flex;flex-direction:column}
body.landscape-notepad>.header{display:flex}
body.landscape-notepad #notepad{display:flex;flex:1;flex-direction:column;min-height:0}
body.landscape-notepad .workspace-controls{display:block;flex:none}
body.landscape-notepad .workspace-controls>.toolbar{display:flex;height:auto;padding:3px 8px}
body.landscape-notepad .workspace-controls>.toolbar>.tool-group{display:flex;flex:1;gap:2px}
body.landscape-notepad .workspace-controls>.toolbar>.tool-group:last-child{flex:none}
body.landscape-notepad .workspace-controls>.toolbar button{width:auto;min-height:30px;padding:4px 8px}
body.landscape-notepad .workspace-controls>.toolbar button>span{display:none}
body.landscape-notepad .editor-panel{flex:1;min-height:0;margin:0}
body.landscape-notepad .bottom-section{flex:none;height:38px}
@media(orientation:landscape) and (max-width:1100px) and (max-height:500px){body>.header.has-workspace-nav{min-height:40px;padding:2px 10px;gap:8px}body>.header .brand-logo{width:88px}body>.header>.workspace-nav{order:initial;flex:1 1 auto;justify-content:center}body>.header>.workspace-nav a{font-size:12px;padding:4px 7px;min-height:34px}body>.header .themes button{min-height:30px;width:28px;min-width:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important}}
