/* Salcedo theme for the members portal (/members). Restyles the existing markup only: no DOM, id, text or behaviour changes.
   Load it AFTER the inline <style> of index.html:  <link rel="stylesheet" href="/portal-theme.css">
   Scope: every rule starts with html:not(#theme-off) x4, which adds four ID levels of specificity, so the theme outranks the inline rules
   (the strongest reach three IDs) without !important and without any class on html or body. Setting id="theme-off" on <html> turns it off.
   Assets (same origin): /portal-assets/stone-desktop.jpg, /portal-assets/stone-mobile.jpg, /portal-assets/mark-24.svg.
   Palette by lightness: ivory #F5F2EA, ivory-2 #D9D4C8, ivory-3 #B8B3A8 on slate; hairlines; square corners; Arial only.
   Generated file: edit the source and rebuild rather than editing by hand. */
/* ---------- tokens: the Salcedo palette, and the portal's own tokens re-pointed to it ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) { --st-ivory:#F5F2EA; --st-ivory-2:#D9D4C8; --st-ivory-3:#B8B3A8; --st-slab:rgba(11,13,14,.84); --st-solid:#0F1213; --st-field:rgba(0,0,0,.32); --st-hair:rgba(245,242,234,.12); --st-hair-2:rgba(245,242,234,.22); --st-edge:rgba(245,242,234,.46); --st-on-ivory:#121516; --green-deep:#16191A; --green-darker:#0F1213; --green-soft:#1A1E20; --gold:#F5F2EA; --gold-soft:#D9D4C8; --gold-dim:rgba(245,242,234,.46); --gold-text:#D9D4C8; --cream:#F5F2EA; --cream-dim:#D9D4C8; --cream-faint:#D9D4C8; --line:rgba(245,242,234,.22); --line-soft:rgba(245,242,234,.12); --bg-mid:rgba(11,13,14,.84); --bg-deep:#0F1213; background:#121516; color-scheme:dark; scrollbar-color:rgba(245,242,234,.4) #0F1213; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal { --m-ink:#121516; --m-panel:rgba(11,13,14,.84); --m-card:rgba(15,18,19,.88); --m-card-hi:rgba(22,26,28,.9); --m-gold:#F5F2EA; --m-gold-txt:#D9D4C8; --m-cream:#F5F2EA; --m-cream-dim:#D9D4C8; --m-line:rgba(245,242,234,.22); --m-line-soft:rgba(245,242,234,.12); --cream:#F5F2EA; --gold-text:#D9D4C8; background:transparent; color:#F5F2EA; color-scheme:dark; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) ::selection { background:rgba(245,242,234,.86); color:#121516; }
/* ---------- canvas: the slate, fixed behind every screen; interior screens get a deeper veil for reading ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) body { background:transparent; color:var(--st-ivory); scrollbar-color:rgba(245,242,234,.4) #0F1213; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) body::before { content:""; display:block; position:fixed; inset:0; z-index:-1; pointer-events:none; background: radial-gradient(52% 44% at 50% 28%,rgba(230,236,236,.06) 0,rgba(230,236,236,0) 100%), radial-gradient(125% 95% at 50% 40%,rgba(6,8,9,0) 40%,rgba(6,8,9,.62) 100%), url(/portal-assets/stone-desktop.jpg) 50% 50%/cover no-repeat, #1E2224; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) body:has(#ps-library.active, #ps-nda.active, #ps-ack.active, #ps-viewer.active)::before { background: linear-gradient(rgba(6,8,9,.5),rgba(6,8,9,.5)), radial-gradient(125% 95% at 50% 40%,rgba(6,8,9,0) 40%,rgba(6,8,9,.5) 100%), url(/portal-assets/stone-desktop.jpg) 50% 50%/cover no-repeat, #1E2224; }
@media (orientation:portrait) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) body::before { background-image: radial-gradient(60% 40% at 50% 26%,rgba(230,236,236,.06) 0,rgba(230,236,236,0) 100%), radial-gradient(150% 100% at 50% 40%,rgba(6,8,9,0) 38%,rgba(6,8,9,.6) 100%), url(/portal-assets/stone-mobile.jpg); }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) body:has(#ps-library.active, #ps-nda.active, #ps-ack.active, #ps-viewer.active)::before { background-image: linear-gradient(rgba(6,8,9,.5),rgba(6,8,9,.5)), radial-gradient(150% 100% at 50% 40%,rgba(6,8,9,0) 38%,rgba(6,8,9,.5) 100%), url(/portal-assets/stone-mobile.jpg); }
}
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-login.active, #ps-verify.active, #ps-mobile.active, #ps-group.active),
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) { background:transparent; color:var(--st-ivory); color-scheme:dark; }
/* ---------- site header: a quiet bar, the 24 px pixel-grid mark, the language toggle ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nav,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .site-header .nav { background:rgba(9,11,12,.88); -webkit-backdrop-filter:none; backdrop-filter:none; border-bottom:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nav-brand { min-width:44px; min-height:44px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nav-brand-logo { content:url(/portal-assets/mark-24.svg); width:24px; height:24px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lang-toggle { border:1px solid var(--st-edge); border-radius:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lang-toggle button { min-height:44px; min-width:44px; padding:0 14px 0 calc(14px + .18em); border-radius:0; background:transparent; color:var(--st-ivory-2); font-size:.6875rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lang-toggle button:hover { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lang-toggle button.active { background:var(--st-ivory); color:var(--st-on-ivory); font-weight:700; }
/* ---------- footer ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) footer { background:rgba(9,11,12,.9); border-top:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .footer-brand { color:var(--st-ivory); font-size:.75rem; font-weight:700; letter-spacing:.32em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .footer-meta { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .footer-disclaimer { color:var(--st-ivory-2); border-top-color:var(--st-hair); font-style:normal; }
/* ---------- type shared by every card ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-eyebrow,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-eyebrow,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .portal-eyebrow,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-mobile .portal-eyebrow,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group .portal-eyebrow,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .portal-eyebrow,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .portal-eyebrow { font-size:.6875rem; font-weight:700; letter-spacing:.3em; text-transform:uppercase; color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-step { font-size:.8125rem; color:var(--st-ivory-2); letter-spacing:.01em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-title,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-title,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .portal-title,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group .portal-title,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-mobile .portal-title,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .portal-title,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .portal-title { font-size:1.375rem; font-weight:400; line-height:1.25; letter-spacing:0; color:var(--st-ivory); text-wrap:balance; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-desc,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-desc,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .portal-desc,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group .portal-desc,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .portal-desc { color:var(--st-ivory-2); font-size:.9375rem; line-height:1.55; text-align:left; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-desc strong { color:var(--st-ivory); font-weight:400; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-note,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-notice { color:var(--st-ivory-2); font-size:.8125rem; line-height:1.5; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-msg,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal .portal-msg { font-size:.875rem; letter-spacing:.01em; color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-msg.bad:not(:empty) { color:var(--st-ivory); background:rgba(245,242,234,.06); border:1px solid var(--st-edge); padding:8px 12px; text-align:left; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-msg.ok:not(:empty) { color:var(--st-ivory-2); border:1px solid var(--st-hair-2); padding:8px 12px; text-align:left; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-msg.bad::before { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-interest-msg.portal-msg:not(:empty) { margin:0 0 10px; }
/* ---------- cards: a dark slab, hairline sides, an ivory line on top, square corners ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-mobile .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .portal-box { background:var(--st-slab); border:1px solid var(--st-hair-2); border-top:2px solid var(--st-ivory); border-radius:0; box-shadow:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .portal-box { min-height:0; padding:32px 32px 24px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-mobile .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group .portal-box { padding:32px 32px 24px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-logo { width:56px; margin:0 auto 18px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box > div[style*="border-top"] { border-top-color:var(--st-hair-2) !important; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box > div[style*="border-top"] svg rect,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box > div[style*="border-top"] svg path { stroke:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box > div[style*="border-top"] svg circle { fill:var(--st-ivory-2); }
/* ---------- fields (the inline CSS sets a gap on .portal-field but never makes it a column, so label and input sat inline) ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-field,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-field { display:flex; flex-direction:column; align-items:stretch; gap:8px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-field input,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #portal-email-input,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #nda-sig-input { width:100%; box-sizing:border-box; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .field label,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .field label { font-size:.6875rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box .field input,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #portal-email-input,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #nda-sig-input,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) #nda-sig-input { min-height:48px; padding:0 14px; background:var(--st-field); color:var(--st-ivory); border:1px solid var(--st-edge); border-radius:0; font-size:1rem; font-weight:400; caret-color:var(--st-ivory); color-scheme:dark; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box .field input:focus,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #portal-email-input:focus,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #nda-sig-input:focus { border-color:var(--st-ivory); box-shadow:inset 0 0 0 1px var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal input::placeholder { color:var(--st-ivory-3); opacity:1; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal input:-webkit-autofill { -webkit-box-shadow:0 0 0 100px #0F1213 inset; -webkit-text-fill-color:#F5F2EA; caret-color:#F5F2EA; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .field-invalid input { border-style:dashed; }
/* ---------- buttons ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal .btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .portal-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group .portal-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #nda-sign-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ack-btn { display:flex; align-items:center; justify-content:center; min-height:48px; padding:6px 18px 6px calc(18px + .22em); background:var(--st-ivory); color:var(--st-on-ivory); border:1px solid var(--st-ivory); border-radius:0; box-shadow:none; filter:none; font-family:var(--sans); font-size:.8125rem; font-weight:700; line-height:1.3; letter-spacing:.22em; text-transform:uppercase; text-align:center; text-decoration:none; cursor:pointer; transition:background-color .18s ease, color .18s ease, border-color .18s ease; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-btn { width:100%; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-btn:hover:not(:disabled),
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal .btn:hover:not(:disabled) { background:#FFFFFF; color:var(--st-on-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-btn:active:not(:disabled),
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal .btn:active:not(:disabled) { background:#E6E1D5; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-btn:disabled,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-box .btn:disabled,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal .btn:disabled,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .portal-btn:disabled { background:transparent; color:var(--st-ivory-3); border-color:var(--st-edge); cursor:not-allowed; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-mobile-send { display:inline-flex; }
/* links that act as buttons */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-link-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group .portal-link-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .portal-link-btn { display:inline-flex; align-items:center; min-height:44px; padding:0 6px; color:var(--st-ivory); font-size:.8125rem; letter-spacing:.01em; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-link-btn:hover { color:#FFFFFF; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-link-btn:disabled,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-link-btn[aria-disabled="true"] { color:var(--st-ivory-3); text-decoration:none; cursor:not-allowed; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-link-sep { color:var(--st-ivory-3); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-back,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-back,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-fit,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .portal-back { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px 0 calc(16px + .18em); background:transparent; color:var(--st-ivory); border:1px solid var(--st-edge); border-radius:0; text-decoration:none; font-size:.6875rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-back:hover,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-back:hover,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-fit:hover { border-color:var(--st-ivory); color:var(--st-ivory); background:rgba(245,242,234,.06); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .nda-head .portal-back,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .nda-head .portal-back { color:var(--st-ivory); border-color:var(--st-edge); }
/* ---------- checkboxes: a square in ivory hairline, filled ivory with a dark tick ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal input[type="checkbox"] { -webkit-appearance:none; appearance:none; flex:none; display:inline-grid; place-content:center; width:20px; height:20px; margin:1px 0 0; padding:0; border:1px solid var(--st-edge); border-radius:0; background:var(--st-field); cursor:pointer; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal input[type="checkbox"]::before { content:""; width:11px; height:6px; border-left:2px solid var(--st-on-ivory); border-bottom:2px solid var(--st-on-ivory); transform:translateY(-1px) rotate(-45deg); opacity:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal input[type="checkbox"]:checked { background:var(--st-ivory); border-color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal input[type="checkbox"]:checked::before { opacity:1; }
/* ---------- code step ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .otp-section-label { font-size:.6875rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .otp-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .otp-box { width:46px; height:56px; line-height:56px; background:var(--st-field); border:1px solid var(--st-edge); border-radius:0; color:var(--st-ivory); font-size:1.375rem; font-weight:400; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .otp-box.filled { border-color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .otp-box.otp-cursor { border-color:var(--st-ivory); box-shadow:inset 0 0 0 1px var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .otp-box.otp-cursor::after { background:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .otp-row:has(.otp-real-input:focus) { outline:2px solid var(--st-ivory); outline-offset:5px; border-radius:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .otp-paste { color:var(--st-ivory); }
@media (max-width:480px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .otp-box { width:40px; height:50px; line-height:50px; font-size:1.25rem; }
}
/* ---------- group wait ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .group-count { color:var(--st-ivory); font-size:1.375rem; font-weight:400; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .group-progress { height:6px; background:rgba(245,242,234,.08); border:1px solid var(--st-edge); border-radius:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #group-bar-fill { background:var(--st-ivory); }
/* ---------- agreement ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .portal-box-nda { padding:32px 36px 28px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .nda-head,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .nda-head { background:transparent; padding:0 0 18px; margin:0 0 18px; border-bottom:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .nda-head .portal-title,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .nda-head .portal-title { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .nda-head .portal-eyebrow,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .nda-head .portal-eyebrow { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-head .portal-logo-sm { width:40px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-scroll,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .nda-scroll { background:rgba(0,0,0,.3); border:1px solid var(--st-hair-2); border-radius:0; color:var(--st-ivory-2); color-scheme:dark; scrollbar-color:rgba(245,242,234,.5) transparent; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-scroll * { color:inherit; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-scroll strong,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-scroll h3,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-scroll h4,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-col-hd,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-col + .nda-col .nda-col-hd,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-col + .nda-col .nda-clause strong { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-col-hd { font-size:.6875rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase; border-bottom:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-col + .nda-col { color:var(--st-ivory-2); border-left-color:var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):lang(es) .nda-cols .nda-col[lang="es"] + .nda-col,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):lang(es) .nda-cols .nda-col[lang="en"] { border-left-color:var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-controlling { background:rgba(245,242,234,.05); border:1px solid var(--st-hair-2); border-radius:0; color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-progress,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .nda-progress { height:2px; background:var(--st-hair); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #nda-progress-bar { background:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-scroll-hint { color:var(--st-ivory-2); font-size:.6875rem; font-weight:700; letter-spacing:.2em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-accept-section,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .nda-accept-section { background:rgba(0,0,0,.24); border:1px solid var(--st-hair-2); border-radius:0; padding:20px 22px; color-scheme:dark; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-agree-row { min-height:44px; gap:14px; font-size:.875rem; line-height:1.55; color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-lang-line + .nda-lang-line { color:var(--st-ivory-3); }
/* the reader's language reads bright and the other language dims, whichever comes first in the markup */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):lang(es) .nda-lang-line[lang="es"],
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):lang(en) .nda-lang-line[lang="en"] { color:inherit; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):lang(es) .nda-lang-line[lang="en"],
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):lang(en) .nda-lang-line[lang="es"] { color:var(--st-ivory-3); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-arb-notice { background:transparent; border:1px solid var(--st-hair-2); border-radius:0; color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-arb-h { color:var(--st-ivory); font-weight:700; letter-spacing:.02em; }
/* the separate Section 13 box (and the language box when it applies) stands on its own */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-agree-row.nda-arb-row { margin-top:12px; padding:14px 16px; border:1px solid var(--st-edge); background:rgba(245,242,234,.05); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-sig-section { border-top:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-identity-box { background:rgba(245,242,234,.05); border:1px solid var(--st-hair-2); border-radius:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-identity-name { color:var(--st-ivory); font-weight:400; font-size:1rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-identity-email { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nda-sig-section .field label { color:var(--st-ivory-2); font-size:.875rem; font-weight:400; letter-spacing:.01em; text-transform:none; }
/* ---------- acknowledgment ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .ack-shell { padding:28px 32px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .ack-doc,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .ack-doc { background:rgba(0,0,0,.26); border:1px solid var(--st-hair-2); border-left:2px solid var(--st-ivory); border-radius:0; color-scheme:dark; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .ack-doc-label { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .ack-doc-name { color:var(--st-ivory); font-weight:400; font-size:1.125rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .ack-doc-meta,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .ack-doc-meta { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .ack-lang-toggle,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .ack-lang-toggle { color:var(--st-ivory); min-height:44px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .ack-legal { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .ack-check,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .ack-check,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .ack-check { min-height:44px; background:rgba(0,0,0,.24); border:1px solid var(--st-edge); border-radius:0; color:var(--st-ivory); color-scheme:dark; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ack-btn { box-shadow:none; }
/* ---------- document viewer ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-viewer.active { background:#0F1213; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-bar { background:#0F1213; border-bottom:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-title { color:var(--st-ivory); font-weight:400; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-mark { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-interest { min-height:44px; padding:0 16px 0 calc(16px + .18em); background:var(--st-ivory); color:var(--st-on-ivory); border:1px solid var(--st-ivory); border-radius:0; font-size:.6875rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-interest:hover { background:#FFFFFF; border-color:#FFFFFF; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-interest[aria-disabled="true"] { background:transparent; color:var(--st-ivory-2); border-color:var(--st-edge); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-frame-wrap { border:1px solid var(--st-hair-2); border-radius:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #viewer-loading { background:#0F1213; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .vl-brand { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .vl-spinner { border-color:rgba(245,242,234,.15); border-top-color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .vl-title { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .vl-bar-wrap { background:var(--st-hair); border-radius:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .vl-bar { background:var(--st-ivory); border-radius:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #viewer-loading.is-error .vl-title { color:var(--st-ivory); }
/* ---------- library ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library .lib-mast { background:transparent; box-shadow:none; -webkit-clip-path:none; clip-path:none; padding-top:8px; margin-bottom:22px; border-bottom:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-mast::after { width:48px; height:2px; background:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-mark { width:44px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library .lib-mast .portal-eyebrow { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library .lib-mast .portal-title,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-mast .portal-title { color:var(--st-ivory); font-size:.9375rem; font-weight:700; line-height:1.5; letter-spacing:.32em; text-transform:uppercase; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #portal-member-greeting { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-contact,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library .lib-mast .lib-contact { color:var(--st-ivory-2); min-height:44px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-install,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library .lib-mast .lib-install { color:var(--st-ivory-2); min-height:44px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-signout,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library .lib-mast .lib-signout { min-height:44px; padding:0 0 0 16px; border:0; border-left:1px solid var(--st-hair-2); border-radius:0; background:transparent; color:var(--st-ivory); font-size:.6875rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase; text-decoration:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-signout:hover { text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:1px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-glance { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-glance b { color:var(--st-ivory); font-weight:400; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-glance .g { border-left-color:var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-glance .g-act { min-height:44px; background:transparent; border:1px solid var(--st-edge); border-radius:0; color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-glance .g-act b { color:inherit; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-glance .g-act:hover { background:var(--st-ivory); color:var(--st-on-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-mode-nav { border-bottom:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-mode-tab { min-height:48px; border-bottom:2px solid transparent; color:var(--st-ivory-2); font-size:.6875rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-mode-tab:hover { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-mode-tab.active { color:var(--st-ivory); border-bottom-color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .tab-count { color:inherit; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-search,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-search { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-search input,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-search input { min-height:44px; background:var(--st-field); color:var(--st-ivory); border:1px solid var(--st-edge); border-radius:0; color-scheme:dark; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-search input:focus { border-color:var(--st-ivory); box-shadow:inset 0 0 0 1px var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-search input::placeholder,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-search input::placeholder { color:var(--st-ivory-3); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-sort { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-sort select,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-sort select { min-height:44px; background-color:#0F1213; color:var(--st-ivory); border:1px solid var(--st-edge); border-radius:0; color-scheme:dark; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-pending { min-height:44px; color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-count,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-count { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-lang-more,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-lang-more { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-filter-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-filter-btn { border-radius:0; border-color:var(--st-edge); color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .sector-tab,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .sector-tab { min-height:44px; padding:6px 14px; border:1px solid var(--st-edge); border-radius:0; background:transparent; color:var(--st-ivory-2); font-size:.75rem; letter-spacing:.04em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .sector-tab:hover { border-color:var(--st-ivory); color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .sector-tab.active,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .sector-tab.active { background:var(--st-ivory); border-color:var(--st-ivory); color:var(--st-on-ivory); font-weight:700; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .doc-lang-filter,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .doc-lang-filter { background:transparent; border:1px solid var(--st-edge); border-radius:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .doc-lang-filter-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .doc-lang-filter-btn:not(.active) { min-height:44px; min-width:44px; border-radius:0; color:var(--st-ivory-2); font-weight:700; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .doc-lang-filter-btn.active,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .doc-lang-filter-btn.active { background:var(--st-ivory); color:var(--st-on-ivory); }
/* cards */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .deal-card { background:var(--m-card); border:1px solid var(--st-hair-2); border-top:2px solid var(--st-edge); border-radius:0; box-shadow:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card:hover,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .deal-card:hover { border-color:rgba(245,242,234,.4); border-top-color:var(--st-ivory); transform:none; box-shadow:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card-preview,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .deal-card-preview { border:1px solid rgba(0,0,0,.6); border-radius:0; box-shadow:0 8px 22px rgba(0,0,0,.45); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-cover-placeholder { background:#1A1E20 !important; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-cover-label { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .dc-kind { color:var(--st-ivory-2); font-size:.6875rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card-date { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-codename { color:var(--st-ivory); font-weight:400; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-geo { color:var(--st-ivory-2); font-weight:400; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .dc-chip,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .dc-chip { border:1px solid var(--st-edge); border-radius:0; color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .dc-new,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .dc-new { background:var(--st-ivory); border-color:var(--st-ivory); color:var(--st-on-ivory); font-weight:700; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .dc-pending,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .dc-pending { padding:2px 9px; border:1px dashed var(--st-ivory-2); color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .dc-acked,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .dc-acked { border-color:var(--st-hair-2); color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-view-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .deal-view-btn { min-height:44px; border:1px solid var(--st-edge); border-radius:0; background:transparent; color:var(--st-ivory); font-size:.6875rem; font-weight:700; letter-spacing:.2em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card:hover .deal-view-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-row:hover .deal-view-btn { background:var(--st-ivory); border-color:var(--st-ivory); color:var(--st-on-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card:has(.deal-view-btn:focus-visible),
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-row:has(.deal-view-btn:focus-visible) { outline:2px solid var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-list { border-top:1px solid var(--st-hair-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-row { border-bottom:1px solid var(--st-hair); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-row:hover { background:rgba(245,242,234,.04); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-empty,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .deal-empty { background:var(--st-slab); border:1px solid var(--st-hair-2); border-radius:0; color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-empty-act,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .deal-empty-act { min-height:44px; background:transparent; border:1px solid var(--st-edge); border-radius:0; color:var(--st-ivory); }
@media (hover:none) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card:hover .deal-view-btn,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-row:hover .deal-view-btn { background:transparent; border-color:var(--st-edge); color:var(--st-ivory); }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card:hover { border-top-color:var(--st-edge); }
}
/* ---------- dialogs: session warning and install steps ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-overlay { background:rgba(5,6,7,.8); -webkit-backdrop-filter:none; backdrop-filter:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-card,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .install-card,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .idle-card { background:#0F1213; border:1px solid var(--st-hair-2); border-top:2px solid var(--st-ivory); border-radius:0; color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-eyebrow { color:var(--st-ivory-2); font-weight:700; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-title { color:var(--st-ivory); font-weight:400; font-size:1.25rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-desc { color:var(--st-ivory-2); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-desc strong { color:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-bar { background:var(--st-hair); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #idle-bar-fill { background:var(--st-ivory); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-actions .btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #idle-continue-btn,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #install-close-btn { width:auto; min-height:44px; padding:0 22px 0 calc(22px + .22em); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .idle-secondary,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .idle-secondary { min-height:44px; border:1px solid var(--st-edge); border-radius:0; background:transparent; color:var(--st-ivory); font-weight:700; letter-spacing:.2em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .install-steps,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .install-note { color:var(--st-ivory-2); }
/* ---------- focus: an ivory ring everywhere (the portal forces a dark one on its light screens) ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal a:focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal button:focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal input:focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal select:focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal textarea:focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal [tabindex]:focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lang-toggle button:focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nav-brand:focus-visible { outline:2px solid var(--st-ivory) !important; outline-offset:2px; }
/* ---------- narrow screens ---------- */
@media (max-width:700px), (pointer:coarse) and (max-height:520px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-mode-nav,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .portal-mode-nav { background:rgba(9,11,12,.94); }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ack-btn,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) #ack-btn { box-shadow:0 -10px 18px 6px rgba(9,11,12,.92); }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lib-signout,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library .lib-mast .lib-signout { border-left:0; padding-left:0; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .nda-head .portal-back,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack .nda-head .portal-back { border-color:var(--st-edge); color:var(--st-ivory); }
  /* the portal shows only an arrow here on phones: keep its label at size 0 inside a 44 px square */
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-back { font-size:0; letter-spacing:0; padding:0; width:44px; min-width:44px; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .viewer-back::before { font-size:1.25rem; line-height:1; color:var(--st-ivory); }
}
@media (max-width:480px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-login .portal-box,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-verify .portal-box,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-mobile .portal-box,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group .portal-box { padding:26px 20px 20px; }
}
@media (prefers-reduced-motion:reduce) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-btn,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal .btn,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .lang-toggle button { transition:none; }
}
@media (forced-colors:active) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal input[type="checkbox"] { -webkit-appearance:auto; appearance:auto; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-box,
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .deal-card { border:1px solid CanvasText; }
}
