/* Shared workspace masthead. Loaded by both schedule surfaces. */
.workspace-header{display:flex;align-items:center;gap:clamp(14px,2.4vw,34px);height:auto;min-height:64px;padding:10px clamp(14px,4vw,56px);background:#fffffff2;border-bottom:1px solid #dce5dc;backdrop-filter:blur(16px);position:relative;z-index:10}
.workspace-header .brand{flex:0 0 auto}
.workspace-header .brand{display:flex;align-items:center;gap:12px;color:#173f37;text-decoration:none;font:800 25px/1 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1px}
.workspace-header .mark{height:40px;width:40px;background:#214d3c;color:#d7f68b;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:31px;box-shadow:0 4px 10px #173f3715}
.workspace-header .mark span{font-size:17px;margin-top:-9px}
.workspace-header .brand-sub{display:block;letter-spacing:1.8px;font:600 9px/1.2 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin-top:3px}
.workspace-switch{position:static;inset:auto;box-shadow:none;backdrop-filter:none;display:flex;align-items:center;gap:3px;padding:3px;background:#edf2ea;border:1px solid #dce6d9;border-radius:9px}
.workspace-mode{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px;border-radius:7px;color:#587060;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}
.workspace-mode:hover{background:#e2ecdf;color:#214d3c}
.workspace-mode.is-active{background:#214d3c;color:#fff;box-shadow:0 2px 6px #173f371c}
.workspace-tools{display:flex;align-items:center;gap:10px;margin-left:auto}
.workspace-tools .workspace-link{display:inline-flex;align-items:center;min-height:34px;padding:6px 9px;border:1px solid #d5ded5;border-radius:7px;color:#506b5c;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;background:#fff}
.workspace-tools .workspace-link:hover{text-decoration:underline;color:#214d3c}
.workspace-tools .prototype{white-space:nowrap}
.board-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px max(20px,calc((100vw - 1440px)/2));background:#f5f6f2f5;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.board-controls h1{font-size:23px;letter-spacing:-.8px;margin:2px 0 0}
@media(max-width:760px){.workspace-header{min-height:92px;flex-wrap:wrap;align-content:center;gap:7px 12px;padding:9px 14px}.workspace-header .brand{width:100%;height:34px;font-size:22px;gap:8px}.workspace-header .brand .mark{width:30px;height:30px;font-size:24px;border-radius:9px}.workspace-header .brand-sub{font-size:7px;letter-spacing:1.2px}.workspace-switch{order:3;width:100%;justify-content:stretch}.workspace-mode{flex:1;min-height:44px;padding:8px;font-size:13px}.workspace-tools{position:absolute;right:14px;top:12px;gap:7px}.workspace-tools .prototype{display:none}.workspace-tools .workspace-link{min-height:30px;padding:4px 7px;font-size:12px}.board-controls{top:0;padding:9px 14px;min-height:57px}.board-controls h1{font-size:20px}.board-controls .date-controls input{width:143px}}
@media(max-width:380px){.workspace-header{padding-inline:10px}.workspace-tools{right:10px}.workspace-tools .workspace-link{font-size:12px;padding-inline:5px}.workspace-mode{font-size:13px;padding-inline:5px}.board-controls{top:0;padding-inline:10px}.board-controls .date-controls input{width:127px;font-size:13px}}

/* Compact shared framing with legible navigation labels. */
@media(max-width:760px){
 .workspace-header{padding:6px 12px;gap:4px 10px;min-height:0}
 .workspace-header .brand{height:30px}.workspace-header .brand-sub{font-size:8px}
 .workspace-tools{top:6px;right:12px;gap:6px}.workspace-tools .workspace-link{font-size:12px;min-height:32px}
 .workspace-mode{font-size:14px;min-height:44px;padding:6px 8px}
 .board-controls{padding:6px 12px;min-height:50px}
}

/* Optional VAA sign-in (Phase 5c). Its own header item so phones can give it a row. */
.vaa-account{display:inline-flex;align-items:center;gap:8px}.vaa-account[hidden]{display:none}
.vaa-account-name{font-size:12px;font-weight:650;color:#214d3c;white-space:nowrap}
.vaa-account .workspace-link{display:inline-flex;align-items:center;min-height:34px;padding:6px 9px;border:1px solid #d5ded5;border-radius:7px;color:#506b5c;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;background:#fff}
.vaa-account .workspace-link:hover{text-decoration:underline;color:#214d3c}
/* 761-1099 px (iPad portrait): the bar ran wider than the screen once signed in, so the account takes its own right-aligned
   row, and a long name shortens instead of pushing past the edge (2026-10-19). */
.vaa-account{min-width:0;max-width:100%}.vaa-account-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(min-width:761px) and (max-width:1099px){.workspace-header{flex-wrap:wrap;row-gap:6px}.workspace-header>.vaa-account{width:100%;justify-content:flex-end}}
@media(max-width:760px){.hub-long{display:none}.vaa-account{order:4;width:100%;justify-content:flex-end;gap:6px}.vaa-account .workspace-link{min-height:32px;padding:4px 7px}}

/* The account slot keeps its space once known, so the header doesn't shift when sign-in status arrives. */
.vaa-account.is-pending{visibility:hidden}
/* Touch screens: the board's date field is 16px so iPhone does not zoom; phones skip the header blur (costly while scrolling). */
@media(pointer:coarse){.board-controls .date-controls input{font-size:16px}}
@media(max-width:760px){.workspace-header{backdrop-filter:none;background:#fff}}

/* Shared computers (owner 2026-10-28; vaa-platform packages/shell idle-guard.js). The top bar's own Sign out, shown only
   while the server sets a limit; the header's account slot then drops its copy so there is one (the copy
   moved into More stays: on a narrow Run today the top bar is hidden). The warning sheet sits at the
   bottom; the cover is the only thing left on the page (every other body child and any dialog is hidden). */
.vaa-shared-sign-out[hidden]{display:none!important}
body>header.workspace-header>.workspace-tools>a.workspace-link.vaa-shared-sign-out:not([hidden]){display:inline-flex;border-color:#214d3c;color:#214d3c;font-weight:750}
.vaa-shared-device .workspace-header>.vaa-account .workspace-link[href="/sign-out"]{display:none}
.shell-idle-sheet{position:fixed;inset:auto 0 0 0;z-index:1100;display:grid;gap:12px;justify-items:start;padding:16px max(16px,env(safe-area-inset-left,0px)) calc(16px + env(safe-area-inset-bottom,0px));background:#fff6d8;color:#243c32;border-top:1px solid #e6d8a6;box-shadow:0 -18px 40px -20px #173f3740;font:700 15px/1.4 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.shell-idle-sheet p{margin:0}
.shell-idle-sheet .btn{min-height:44px;border:0;border-radius:9px;padding:0 18px;background:#214d3c;color:#fff;font:700 14px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.shell-idle-cover{position:fixed;inset:0;z-index:1200;display:grid;place-content:center;gap:10px;width:100%;padding:24px;border:0;background:#f5f5ef;color:#243c32;text-align:center;font:400 16px/1.4 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.shell-idle-cover strong{font:800 28px/1.15 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.6px;color:#173f37}
/* html body: outranks any page rule that shows a body child with !important. */
html body.shell-idle-covered>:not(.shell-idle-cover),html body.shell-idle-covered dialog{display:none!important}
@media (prefers-color-scheme:dark){.shell-idle-sheet{background:#2c3a2a;color:#e6efe9;border-top-color:#3a4a40}.shell-idle-sheet .btn{background:#d7f68b;color:#173f37}.shell-idle-cover{background:#14211d;color:#e6efe9}.shell-idle-cover strong{color:#e6efe9}}
