/* BML OS shell — the staff pop-ups' styles, lifted VERBATIM from shell.css (the old shell stylesheet, which the OS shell does
   not load). Memo, "Hot off the press" newsletter, Christmas poll (+ thank-you), management-review and training-video
   prompts. Re-extract from shell.css if those rules change there; the OS shell renders the same markup the old shell does. */
/* Written inside the OS donut like os.css (see hub/tools/os-css-build.php): the @scope block keeps these rules out of legacy page bodies and the nested
   `:is(html.os:scope,#os-bump) { … }` gives every rule below the same prefix os.css has, so equal-specificity comparisons with os.css work as they always did.
   @keyframes cannot nest, so they sit above the block. A selector that must name the root itself is written `&.ui-v2 …`. */
@keyframes xmas-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes xmas-glow{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes xmas-drift{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(8px) rotate(40deg)}}
@scope (html.os) to (.legacy) {
:is(html.os:scope,#os-bump) {

/* ---- Memo pop-up (Courtney 2026-09-18) — mirrors the Library's; z-index above the
   off-canvas nav (hub-side/backdrop) so it is the first thing an unsigned person sees. ---- */
.memo-modal-back{position:fixed;inset:0;background:rgba(22,24,29,.55);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:120;padding:20px}
.memo-modal-back[hidden]{display:none}
.memo-modal{background:#fff;border-radius:16px;box-shadow:0 30px 80px rgba(75,34,34,.35);max-width:560px;width:100%;padding:26px 26px 20px;border-top:5px solid var(--maroon)}
.memo-modal-ic{width:44px;height:44px;border-radius:12px;background:var(--maroon-tint);display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:12px}
.memo-modal h2{font-family:var(--serif);font-size:21px;font-weight:700;margin:0 0 8px;color:var(--maroon-deep);text-wrap:balance}
/* A12-fix2: the titles are bold again. os.css's `h1,h2,h3{font-weight:400}` outranked the old rule and thinned every pop-up title; measured against the old shell,
   a plain page's title is 700 and a New-look page's (c3.css `html.ui-v2 h2`) is 600. Same two values here, at a selector that outranks os.css. */
&.ui-v2 .memo-modal h2{font-weight:600}
.memo-modal p{font-size:13.5px;line-height:1.55;color:var(--muted);margin:0 0 14px}
.memo-modal-list{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:8px}
.memo-modal-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--wash)}
.memo-modal-list li span{display:flex;flex-direction:column;gap:2px;min-width:0}
.memo-modal-list li b{color:var(--ink);font-size:14px}
.memo-modal-list li small{font-size:11.5px;color:var(--muted)}
.memo-modal-go{flex:none;display:inline-block;padding:9px 14px;border-radius:9px;background:var(--maroon);color:#fff;font-weight:700;font-size:13px;text-decoration:none}
.memo-modal-go:hover,.memo-modal-go:focus-visible{background:var(--maroon-deep);color:#fff}
.memo-modal-foot{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}
.memo-modal-later{font:inherit;font-size:13px;font-weight:600;padding:7px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);cursor:pointer}
.memo-modal-later:hover{border-color:var(--maroon);color:var(--maroon)}
@media (max-width:600px){.memo-modal-list li{flex-direction:column;align-items:flex-start}.memo-modal-go{align-self:stretch;text-align:center}}
@media (prefers-reduced-motion: reduce){.memo-modal-back{backdrop-filter:none}}

/* "Hot off the press" — the newsletter pop-up as a little newspaper (Courtney 2026-09-28).
   Black ink + BML maroon on newsprint; the memo pop-up's backdrop and motion rules apply. */
.press-back{position:fixed;inset:0;background:rgba(22,24,29,.55);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:18px;z-index:1200}
.press-back[hidden]{display:none}
.press-paper{position:relative;background:#F7F4EE;color:#16181D;width:100%;max-width:520px;padding:66px 30px 24px;border:1px solid #D9D2C6;box-shadow:0 30px 80px rgba(33,26,27,.45),inset 0 0 0 1px #fff;background-image:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,0) 40%)}
.press-stamp{position:absolute;top:18px;right:22px;transform:rotate(-9deg);font:800 12px/1.05 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--maroon);border:3px double var(--maroon);border-radius:6px;padding:7px 10px;text-align:center;opacity:.92}
.press-ears{display:flex;justify-content:space-between;gap:12px;font:600 11px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:#4A4344;border-top:1px solid #16181D;border-bottom:1px solid #16181D;padding:7px 0;margin:0 0 16px}
.press-mast{font-family:var(--serif);font-weight:700;font-size:44px;line-height:1;letter-spacing:-.02em;margin:0;color:#16181D;text-wrap:balance}
.press-mast span{color:var(--maroon)}
.press-tag{font-family:var(--serif);font-style:italic;font-size:15px;color:#4A4344;margin:6px 0 14px;padding-bottom:12px;border-bottom:3px double #16181D}
.press-head{font-family:var(--serif);font-weight:600;font-size:23px;line-height:1.15;margin:0 0 6px;color:#16181D;text-wrap:balance}
.press-sub{font-size:14.5px;line-height:1.5;color:#3E3738;margin:0 0 16px;max-width:46ch}
.press-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 20px;opacity:.55}
.press-cols i{display:block;height:44px;background:repeating-linear-gradient(180deg,#9A918F 0 2px,transparent 2px 6px);background-size:100% 6px;mask:linear-gradient(180deg,#000 60%,transparent);-webkit-mask:linear-gradient(180deg,#000 60%,transparent)}
.press-cols i:nth-child(2){width:88%}.press-cols i:nth-child(3){width:70%}
.press-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.press-read{font:inherit;font-size:14px;font-weight:700;padding:11px 18px;border:0;border-radius:9px;background:var(--maroon);color:#fff;cursor:pointer}
.press-read:hover,.press-read:focus-visible{background:var(--maroon-deep)}
.press-later{font:inherit;font-size:13px;font-weight:600;padding:9px 12px;border:1px solid #C9C0B4;border-radius:9px;background:transparent;color:#4A4344;cursor:pointer}
.press-later:hover{border-color:var(--maroon);color:var(--maroon)}
@media (max-width:600px){.press-paper{padding:58px 20px 18px}.press-mast{font-size:36px}.press-stamp{top:12px;right:14px;font-size:10px}.press-read{flex:1 1 100%;text-align:center}}
@media (prefers-reduced-motion: reduce){.press-back{backdrop-filter:none}}

/* ── Staff poll pop-up — festive (Courtney 2026-10-01, Christmas social) ──────────────────────────
   Same family as the newsletter pop-up: one dialog at a time, a real form post, "Ask me later" for this
   sign-in. Seasonal dress inside the brand: deep maroon ground, cream type, a string of warm lights, two
   slow snowflakes. Motion is decorative only and stops under reduced motion. */
.xmas-back{position:fixed;inset:0;background:rgba(22,14,16,.6);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:18px;z-index:1200}
.xmas-back[hidden]{display:none}
.xmas-card{position:relative;width:100%;max-width:500px;overflow:hidden;border-radius:20px;padding:70px 32px 26px;color:#FBF4E8;
  background:radial-gradient(120% 90% at 50% 0%,#A3283A 0%,#8C1B23 38%,#5E0F15 100%);box-shadow:0 30px 80px rgba(20,8,10,.55),inset 0 0 0 1px rgba(255,236,200,.14);
  animation:xmas-in .45s cubic-bezier(.22,1,.36,1) both}
.xmas-garland{position:absolute;top:0;left:0;width:100%;height:64px}
.xmas-wire{fill:none;stroke:rgba(255,236,200,.5);stroke-width:1.5}
.xmas-bulbs circle{fill:#F2C14E;filter:drop-shadow(0 0 6px rgba(242,193,78,.85));animation:xmas-glow 2.4s ease-in-out infinite}
.xmas-bulbs circle.b2{fill:#FBF4E8;filter:drop-shadow(0 0 6px rgba(255,244,232,.8));animation-delay:.8s}
.xmas-bulbs circle.b3{fill:#7FC99A;filter:drop-shadow(0 0 6px rgba(127,201,154,.8));animation-delay:1.6s}
.xmas-flake{position:absolute;width:26px;height:26px;fill:none;stroke:rgba(255,244,232,.38);stroke-width:1.4;stroke-linecap:round;animation:xmas-drift 9s ease-in-out infinite}
.xmas-flake.f1{right:26px;top:84px}
.xmas-flake.f2{left:22px;bottom:30px;width:18px;height:18px;animation-delay:3s}
.xmas-eyebrow{font:700 12px/1 var(--sans,Inter,Arial,sans-serif);letter-spacing:.14em;text-transform:uppercase;color:#F2C14E;margin:0 0 10px}
.xmas-back .xmas-title,&.ui-v2 .xmas-back .xmas-title{font-family:var(--serif,Fraunces,Georgia,serif);font-weight:700;font-size:36px;line-height:1.05;letter-spacing:-.015em;margin:0 0 12px;color:#FFFFFF;text-wrap:balance}
.xmas-q{font-family:var(--serif,Fraunces,Georgia,serif);font-size:19px;line-height:1.35;margin:0 0 8px;color:#FBF4E8;text-wrap:balance}
.xmas-note{font-size:13.5px;line-height:1.5;color:rgba(251,244,232,.78);margin:0 0 20px;max-width:44ch}
.xmas-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.xmas-yes,.xmas-no,.xmas-later{font:inherit;font-size:14.5px;font-weight:700;border-radius:11px;cursor:pointer;padding:12px 18px;border:0}
.xmas-yes{background:#F2C14E;color:#3B0A10;box-shadow:0 6px 18px rgba(242,193,78,.35)}
.xmas-yes:hover,.xmas-yes:focus-visible{background:#FFD36A}
.xmas-no{background:rgba(255,244,232,.12);color:#FFFFFF;box-shadow:inset 0 0 0 1.5px rgba(255,244,232,.55)}
.xmas-no:hover,.xmas-no:focus-visible{background:rgba(255,244,232,.2)}
.xmas-later{background:transparent;color:rgba(251,244,232,.82);font-weight:600;font-size:13.5px;padding:10px 6px;text-decoration:underline;text-underline-offset:3px}
.xmas-later:hover{color:#FFFFFF}
.xmas-yes:focus-visible,.xmas-no:focus-visible,.xmas-later:focus-visible{outline:2px solid #FFFFFF;outline-offset:2px}
.xmas-tally{margin:6px 0 14px}
.xmas-bar{height:12px;border-radius:99px;background:rgba(255,244,232,.18);overflow:hidden}
.xmas-fill{display:block;height:100%;width:0;border-radius:99px;background:#F2C14E;transition:width .8s cubic-bezier(.22,1,.36,1)}
.xmas-counts{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:14px;color:#FBF4E8}
.xmas-counts b{font-family:var(--serif,Fraunces,Georgia,serif);font-size:24px;color:#FFFFFF;margin-right:4px}
@media (max-width:520px){.xmas-card{padding:66px 22px 22px}.xmas-back .xmas-title,&.ui-v2 .xmas-back .xmas-title{font-size:30px}.xmas-actions>*{flex:1 1 100%}}
@media (prefers-reduced-motion:reduce){.xmas-card,.xmas-bulbs circle,.xmas-flake{animation:none}.xmas-fill{transition:none}}



/* Management-review feedback prompt (2026-10-02) — reuses the memo dialog frame. */
.mgrfb .mgrfb-ic{color:var(--maroon)}
.mgrfb .mgrfb-ic svg{width:24px;height:24px}
.mgrfb .mgrfb-lead{font-size:15px;line-height:1.55;color:var(--ink);margin:0 0 14px}
.mgrfb-private{font-size:13.5px;line-height:1.5;color:var(--ink);background:var(--wash);border:1px solid var(--line);border-radius:11px;padding:11px 14px;margin:0 0 16px}
.mgrfb-private b{color:var(--maroon-deep)}
.mgrfb-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.mgrfb-go{padding:10px 18px;font-size:14px}
.mgrfb .mgrfb-foot{font-size:12.5px;color:var(--muted);margin:0}
@media (max-width:600px){.mgrfb-actions{flex-direction:column;align-items:stretch}.mgrfb-go{text-align:center}}
/* The New look's link colour (html.ui-v2 a, 0,1,2) outranked .memo-modal-go (0,1,0) and painted the button's
   label maroon-on-maroon — invisible on the memo "Read & sign" and the feedback prompt. (0,2,0) wins. */
.memo-modal-back .memo-modal-go,.memo-modal-back .memo-modal-go:hover,.memo-modal-back .memo-modal-go:focus-visible{color:#fff}
.mgrfb h2{margin-bottom:10px}
}
}
