/* Salcedo theme, second layer: the members portal in dark and light ivory-grey (art director's split, 2026-11-17). Loaded AFTER /portal-theme.css.
   Dark: the header bar, the slate canvas behind sign-in and verify, the document viewer. Light: the interior, every screen where a signed-in member reads, signs or chooses (library,
   agreement, acknowledgement, group wait). The sign-in and verify cards stay dark (Marco, 2026-11-17). The light screens re-point the portal-theme tokens
   (--st-*, --m-*, --cream, --gold...) to their ink-on-ivory counterparts inside their own scope, so the rules of portal-theme.css keep working and a
   dark fill and an ivory text swap places: selected states are a lightness inversion, never a hue. Restyles the existing markup only: no DOM, id, text
   or behaviour changes. Ink #121516, canvas #E4E1DA, card #EFEDE7, field and paper #F7F5F0, well #D2CFC7. Turned off by id="theme-off" on <html>. */

/* ---------- light scope: tokens ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group {
  --st-ivory:#121516; --st-ivory-2:rgba(18,21,22,.82); --st-ivory-3:rgba(18,21,22,.74); --st-on-ivory:#F5F2EA;
  --st-hair:rgba(18,21,22,.18); --st-hair-2:rgba(18,21,22,.30); --st-edge:rgba(18,21,22,.56);
  --st-slab:#EFEDE7; --st-solid:#E4E1DA; --st-field:#F7F5F0;
  --m-ink:#E4E1DA; --m-panel:#EFEDE7; --m-card:#EFEDE7; --m-card-hi:#F7F5F0;
  --m-gold:#121516; --m-gold-txt:#3E4548; --m-cream:#121516; --m-cream-dim:rgba(18,21,22,.82);
  --m-line:rgba(18,21,22,.30); --m-line-soft:rgba(18,21,22,.18);
  --cream:#121516; --cream-dim:rgba(18,21,22,.82); --cream-faint:rgba(18,21,22,.74);
  --gold:#121516; --gold-soft:#3E4548; --gold-dim:rgba(18,21,22,.56); --gold-text:#3E4548;
  --line:rgba(18,21,22,.30); --line-soft:rgba(18,21,22,.18);
  color:#121516; color-scheme:light;
}

/* ---------- canvas: flat slate behind the threshold screens, ivory-grey behind the working screens, flat slate behind the viewer; no photograph ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) body::before,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) body:has(#ps-library.active, #ps-nda.active, #ps-ack.active, #ps-viewer.active)::before {
  background-image:none; background-color:#1E2224;
}
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) body:has(#ps-library.active, #ps-nda.active, #ps-ack.active, #ps-group.active)::before {
  background-image:none; background-color:#E4E1DA;
}
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) body:has(#ps-viewer.active)::before { background-image:none; background-color:#1E2224; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) body:has(#ps-library.active, #ps-nda.active, #ps-ack.active, #ps-group.active) { color:#121516; scrollbar-color:rgba(18,21,22,.5) #E4E1DA; }

/* ---------- the header bar stays dark, with a hairline below ---------- */
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:#121516; border-bottom:1px solid rgba(245,242,234,.22); }

/* ---------- cards and panels of the light screens: ivory card, 2 px ink rule on top, hairline sides ---------- */
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-ack .portal-box,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .portal-box {
  background:#EFEDE7; color:#121516; border:1px solid rgba(18,21,22,.18); border-top:2px solid #121516; box-shadow:none;
}

/* ---------- fields ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library input:not([type=checkbox]),
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library select,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda input:not([type=checkbox]),
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack input:not([type=checkbox]) {
  background:#F7F5F0; color:#121516; border:1px solid rgba(18,21,22,.56);
}
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library ::placeholder{ color:rgba(18,21,22,.74); opacity:1; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda #nda-sig-input { border:1.5px solid #121516; }

/* ---------- focus: an ink ring on light, an ivory ring on dark ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-library :focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda :focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-ack :focus-visible,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-group :focus-visible{ outline:2px solid #121516; outline-offset:2px; box-shadow:none; }

/* ---------- panels that the base theme paints with a black veil: paper and ivory instead ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .nda-scroll { background:#F7F5F0; border:1px solid rgba(18,21,22,.18); color:rgba(18,21,22,.82); color-scheme:light; scrollbar-color:rgba(18,21,22,.5) transparent; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .nda-accept-section { background:#EFEDE7; border:1px solid rgba(18,21,22,.56); color-scheme:light; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .ack-doc { background:#F7F5F0; border:1px solid rgba(18,21,22,.18); border-left:3px solid #121516; color-scheme:light; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .ack-check { background:#F7F5F0; border:1px solid rgba(18,21,22,.56); color:#121516; color-scheme:light; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-search input { color-scheme:light; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .lib-sort select { background-color:#F7F5F0; color:#121516; border:1px solid rgba(18,21,22,.56); color-scheme:light; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) #nda-sig-input { background:#F7F5F0; color:#121516; border:1.5px solid #121516; caret-color:#121516; color-scheme:light; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .deal-card-preview { border:1px solid rgba(18,21,22,.56); box-shadow:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .deal-cover-placeholder { background:#D2CFC7 !important; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .deal-cover-label { color:rgba(18,21,22,.82); }

/* ---------- disabled primary button on light: an outline with readable ink text, never ivory on ivory ---------- */ html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-group .portal-btn:disabled,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .portal-btn:disabled, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-nda .portal-btn:disabled { background:transparent; color:rgba(18,21,22,.78); border:1px solid rgba(18,21,22,.56); }

/* ---------- the ink monogram on every light surface ---------- */ html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-group .portal-logo, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .portal-logo, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-nda .portal-logo,
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .portal-logo-sm, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-nda .portal-logo-sm, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .lib-mark { content:url(/monogram-ink.svg); }

/* ---------- the viewer: dark surround and dark toolbar so the white document reads as the object ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-viewer.active { background:#1E2224; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .viewer-bar { background:#121516; border-bottom:1px solid rgba(245,242,234,.22); }

/* ---------- state marks that must read on light: pending acknowledgement keeps a heavier dashed border ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library [class*="pending"] { border-width:1.5px; border-color:rgba(18,21,22,.72); }

/* ---------- primary button states on light: dark fill stays dark on hover and press (the base theme turns it white) ---------- */ html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-group .portal-box .portal-btn:hover:not(:disabled),
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .portal-btn:hover:not(:disabled), html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-nda .portal-btn:hover:not(:disabled), html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .btn:hover:not(:disabled) { background:#2A3033; color:#F5F2EA; } html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-group .portal-box .portal-btn:active:not(:disabled),
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .portal-btn:active:not(:disabled), html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-nda .portal-btn:active:not(:disabled), html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .btn:active:not(:disabled) { background:#3E4548; color:#F5F2EA; }

/* ---------- phone: the sticky tab bar takes the canvas, not a black strip ---------- */
@media (max-width: 700px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .portal-mode-nav, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) .portal-mode-nav { background:#E4E1DA; }
}

/* ---------- sign-in card: room above the button and below the last line, so the privacy line and the footer rule do not touch ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #portal-privacy-note { margin:0 0 12px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-note[data-i18n="portal.login.note"] { margin-bottom:12px; }

/* ---------- one-time code: only the per-digit boxes carry a frame (no outline on the row, none on the transparent input, in any state) ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .otp-row, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .otp-row:has(.otp-real-input:focus), html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-row { outline:none; outline-offset:0; border:0; box-shadow:none; background:transparent; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .otp-real-input, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .otp-real-input:focus, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .otp-real-input:focus-visible, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal .otp-real-input:focus-visible { outline:none !important; border:0; box-shadow:none; background:transparent; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box { border:1px solid #B8B3A8; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box.filled { border-color:#D9D4C8; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box.otp-cursor { border-color:#F5F2EA; box-shadow:inset 0 0 0 1px #F5F2EA; }

/* ---------- panel round 1, 2026-11-17 ---------- */
/* the installed app (viewport-fit=cover): the header, the content and the sticky acknowledge button clear the notch and the home indicator */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .nav-inner { padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right)); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #members-portal .container { padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right)); }
@media (max-width: 700px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ack-btn { bottom:calc(8px + env(safe-area-inset-bottom, 0px)); }
  /* the agreement on a phone: one frame, not three, so the reading column takes the screen; Sign out sits at the right of the head row */
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .portal-box-nda { padding-left:12px; padding-right:12px; border-left:0; border-right:0; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-library.active, #ps-nda.active, #ps-ack.active) #ps-nda .nda-scroll { border-left:0; border-right:0; padding-left:0; padding-right:0; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) #ps-nda .nda-head { flex-direction:row; justify-content:space-between; align-items:flex-start; }
}
/* the three mode tabs fit at 358 px, so the third does not show as a clipped letter */
@media (max-width: 520px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off) .portal-mode-tab { font-size:0.6875rem; letter-spacing:0.06em; padding:10px 8px; }
}
/* the privacy link keeps a 44 px target without stretching the line it sits in */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #portal-privacy-note a { display:inline; padding:12px 0; margin:-12px 0; }
/* ---------- panel round 2, 2026-11-17 ---------- */
/* the session check before the first screen (ux-ui 2): no sign-in card is painted while /api/portal?action=me is in flight, only the monogram */
body.checking-session #members-portal .portal-screen { visibility:hidden; }
body.checking-session #members-portal::after { content:""; position:fixed; left:50%; top:50%; width:56px; height:53px; margin:-27px 0 0 -28px; background:url(/monogram-paper.svg) center/contain no-repeat; opacity:.9; animation:ps-wait 1.6s ease-in-out infinite; pointer-events:none; }
@keyframes ps-wait { 0%,100% { opacity:.9; } 50% { opacity:.45; } }
@media (prefers-reduced-motion: reduce) { body.checking-session #members-portal::after { animation:none; } }

/* the sign-in and code screens are the site's home card (art director 1, ux-ui 5): lockup above, a dark slab with an ivory top line, square corners, sentence-case labels, flat slate */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login.active, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify.active { flex-direction:column; align-items:center; justify-content:center; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup { display:flex; flex-direction:column; align-items:center; text-align:center; margin:0 0 clamp(1.75rem,4.4vh,2.5rem); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-mk { display:block; width:clamp(5.25rem,3.2vw + 4.2rem,7.25rem); height:auto; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-rule { width:2.5rem; height:1px; margin:clamp(1.25rem,3vh,1.75rem) 0 clamp(1.1rem,2.6vh,1.5rem); border:0; background:rgba(245,242,234,.38); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-d { margin:0; max-width:30em; font-size:clamp(.875rem,.25vw + .8rem,1.0625rem); font-weight:700; line-height:2; letter-spacing:.34em; padding-left:.34em; text-transform:uppercase; text-wrap:balance; color:#F5F2EA; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-box, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-box { width:min(100%,24rem); max-width:24rem; min-height:0; margin:0; padding:28px 28px 16px; text-align:left; background:rgba(11,13,14,.74); border:1px solid rgba(245,242,234,.16); border-top:2px solid #F5F2EA; border-radius:0; box-shadow:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-logo, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-logo { display:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-step, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-step { margin:0 0 12px; font-size:.75rem; font-weight:700; line-height:1.4; letter-spacing:.3em; text-transform:uppercase; color:#D9D4C8; text-align:left; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-title, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-title { margin:0 0 20px; font-size:1.25rem; font-weight:400; line-height:1.3; text-align:left; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .field label, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-section-label { font-size:.8125rem; font-weight:400; letter-spacing:0; text-transform:none; color:#D9D4C8; text-align:left; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-note, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-note, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-msg, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-msg { text-align:left; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-box > div[style*="border-top"] { justify-content:flex-start !important; margin-top:14px !important; padding-top:10px !important; border-top:1px solid rgba(245,242,234,.12) !important; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-box > div[style*="border-top"] span { font-size:.75rem !important; letter-spacing:0 !important; text-transform:none !important; color:#D9D4C8 !important; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-row { display:flex; gap:8px; width:100%; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box { flex:1 1 0; min-width:0; width:auto; max-width:none; height:52px; line-height:52px; background:rgba(0,0,0,.30); border:1px solid rgba(245,242,234,.46); border-radius:0; font-size:1.25rem; font-weight:700; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box.filled { border-color:#D9D4C8; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box.otp-cursor { border-color:#F5F2EA; box-shadow:inset 0 0 0 1px #F5F2EA; }
@media (max-width: 420px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-box, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-box { padding:20px 16px 14px; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-d { letter-spacing:.2em; padding-left:.2em; }
}
@media (max-width: 360px) { html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-row { gap:4px; } html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box { height:44px; line-height:44px; font-size:1.0625rem; } }
@media (max-height: 640px) { html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-mk { width:4rem; } html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup { margin-bottom:1.25rem; } html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-rule { margin:.875rem 0 .75rem; } }
/* the hidden code field never paints over the first box (accessibility 5) */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .otp-real-input { opacity:.01; }
/* the resend wait reads as plain text, not as a link (ux-ui 14) */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-link-btn:disabled, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-link-btn[aria-disabled="true"] { text-decoration:none; cursor:default; color:#D9D4C8; }

/* the language switch: an underline marks the language, a ring inside the button marks focus (art director 14, accessibility 1) */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lang-toggle { border:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lang-toggle button { min-height:44px; padding:0 10px; background:transparent; border:0; color:#D9D4C8; font-size:.75rem; letter-spacing:.16em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lang-toggle button.active, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lang-toggle button[aria-pressed="true"] { background:transparent; color:#F5F2EA; font-weight:700; text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:1px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lang-toggle button:focus-visible { outline:2px solid #F5F2EA; outline-offset:-5px; }

/* one mark per surface on the agreement, acknowledgement and library screens: the bar carries it (art director 9) */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-nda .portal-logo-sm, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .portal-logo-sm, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .lib-mark { display:none; }
/* the library heading in the sentence-case voice of the other screens (art director 10) */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .lib-mast .portal-title { text-transform:none; letter-spacing:-0.01em; font-weight:400; font-size:1.5rem; line-height:1.2; }
@media (max-width: 700px) { html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .lib-mast { padding-top:24px; } }

@media (forced-colors: active) {
  .lang-toggle button[aria-pressed="true"] { outline:2px solid Highlight; outline-offset:-4px; }
  #ps-verify .otp-box.otp-cursor { outline:3px solid Highlight; outline-offset:-3px; }
  body.checking-session #members-portal::after { forced-color-adjust:none; }
}
/* panel round 3: the glance link is the one pending-filter control; pressed, it is an ink fill (lightness inversion, never a hue) */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .lib-glance .g-act { border:1px solid rgba(18,21,22,.56); padding:0 12px; text-decoration:none; background:transparent; color:#121516; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .lib-glance .g-act[aria-pressed="true"], html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-library .lib-glance .g-act[aria-pressed="true"] b { background:#121516; color:#F5F2EA; }
/* ---------- type scale for the installed apps (2026-11-17, Marco's client: text too small; art director and layout specialist, merged scale) ----------
   reading 16, labels 15, authorization and helper lines 15, notes 14, buttons 14 uppercase, eyebrows 13, chrome and footers 13, sign-in titles 22, inputs 16.
   The pinch-zoom block and the viewport meta are unchanged (Marco's ruling). */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lang-toggle button { font-size:.8125rem; letter-spacing:.12em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-d { font-size:clamp(.9375rem,.2vw + .875rem,1.0625rem); }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-step, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-step { font-size:.8125rem; letter-spacing:.24em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-title, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-title { font-size:1.375rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-desc, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-desc { font-size:1rem; line-height:1.55; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .field label, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-section-label { font-size:.9375rem; letter-spacing:0; text-transform:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #portal-privacy-note, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-note[data-i18n="portal.verify.help"] { font-size:.9375rem; line-height:1.5; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-note, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-note { font-size:.875rem; line-height:1.5; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #portal-privacy-note, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-note[data-i18n="portal.verify.help"] { font-size:.9375rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-msg, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-msg { font-size:.875rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-group .portal-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #nda-sign-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ack-btn { font-size:.875rem; letter-spacing:.18em; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-link-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-group .portal-link-btn { font-size:.875rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-box > div[style*="border-top"] span { font-size:.8125rem !important; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box { font-size:1.375rem; }
@media (max-width: 360px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-group .portal-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #nda-sign-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ack-btn { letter-spacing:.14em; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .otp-box { font-size:1.1875rem; }
}
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .footer-meta, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .footer-disclaimer, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .footer-credits { font-size:.8125rem; }
/* agreement and acknowledgement: 16 on phones, 15 on tablet and desktop, at most 68 characters a line */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal .nda-scroll, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal .nda-col, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal .nda-col + .nda-col { font-size:1rem; line-height:1.7; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal .nda-col { max-width:68ch; }
@media (min-width: 768px) { html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal .nda-scroll, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal .nda-col, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal .nda-col + .nda-col { font-size:.9375rem; line-height:1.65; } }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .nda-col-hd, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .nda-scroll-hint { font-size:.75rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .nda-agree-row, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .nda-sig-section .field label, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .ack-check { font-size:.9375rem; line-height:1.5; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ack-legal { font-size:.9375rem !important; line-height:1.5; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .nda-arb-notice, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .nda-controlling, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .nda-identity-email, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ack-doc-meta, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .portal-notice { font-size:.875rem; line-height:1.5; }
/* library */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .deal-codename { font-size:1.0625rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .deal-row .deal-codename { font-size:1.125rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .deal-geo, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lib-sort, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lib-signout, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lib-install, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lib-contact, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lib-filter-btn { font-size:.875rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .dc-kind, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .dc-chip, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .deal-type-badge, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .viewer-mark, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ack-doc-label, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-nda .portal-eyebrow, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .portal-eyebrow { font-size:.75rem; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .deal-card-date, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lib-count { font-size:.8125rem; }
@media (max-width: 700px) { html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lib-glance { font-size:.8125rem; } html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .lib-mast .portal-eyebrow { font-size:.75rem; } }
/* mode tabs: 12 px with tighter tracking and padding so the three fit at 390 px */
@media (max-width: 520px) { html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .portal-mode-tab { font-size:.75rem; letter-spacing:.02em; padding:10px 6px; } }
/* short screens: the lockup compacts on phones up to 900 px tall, so the taller card still fits */
@media (max-height: 760px), (max-width: 520px) and (max-height: 900px) { html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-mk { width:4rem; } html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup { margin-bottom:1.25rem; } html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup-rule { margin:.875rem 0 .75rem; } }
/* ---------- one sign-in shell with /admin (Marco, 2026-11-17: the same screen, only the sign-in box differs): the home's stone and overlay behind the sign-in and code screens ---------- */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) body:has(#ps-login.active, #ps-verify.active)::before { background:linear-gradient(180deg,rgba(6,8,9,.24) 0,rgba(6,8,9,0) 16%,rgba(6,8,9,0) 64%,rgba(6,8,9,.34) 100%), radial-gradient(125% 95% at 50% 40%,rgba(6,8,9,0) 40%,rgba(6,8,9,.64) 100%), url(/portal-assets/stone-desktop.jpg) 50% 50%/cover no-repeat, #1E2224; }
@media (max-width: 719px) { html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) body:has(#ps-login.active, #ps-verify.active)::before { background-image:linear-gradient(180deg,rgba(6,8,9,.24) 0,rgba(6,8,9,0) 14%,rgba(6,8,9,0) 66%,rgba(6,8,9,.36) 100%), radial-gradient(150% 100% at 50% 40%,rgba(6,8,9,0) 38%,rgba(6,8,9,.62) 100%), url(/portal-assets/stone-mobile.jpg); } }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-privacy-link { display:inline-flex; align-items:center; min-height:44px; margin:-12px 0 -12px auto; padding:0 4px; color:#D9D4C8; font-size:.8125rem; text-decoration:underline; text-underline-offset:3px; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-privacy-link:hover { color:#F5F2EA; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-privacy-link:focus-visible { outline:2px solid #F5F2EA; outline-offset:2px; }

/* labels never break inside a button: the resend and change links wrap as whole items, and Sign out keeps one line in the agreement head */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-links-row { flex-wrap:wrap; justify-content:center; row-gap:0; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-link-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #nda-logout-btn, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-ack .nda-head button { white-space:nowrap; flex:none; }

/* the sign-in card sits 16 px from the screen edge, as on /admin (one side margin, not the section and the container both) */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-login.active, #ps-verify.active) .container { padding-left:0; padding-right:0; }

/* ---------- sign-in and code screens: only the card, fitted to the screen (Marco, 2026-11-17) ---------- */
/* no monogram or descriptor above the card (the header keeps the mark), no footer below it, centred between the header and the bottom edge, no scroll */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) .ps-lockup { display:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off):has(#ps-login.active, #ps-verify.active) footer { display:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off):has(#ps-login.active, #ps-verify.active) body { overscroll-behavior:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #members-portal:has(#ps-login.active, #ps-verify.active) { box-sizing:border-box; min-height:100vh; min-height:100dvh; padding-top:calc(var(--hdr-stack, 73px) + 16px); padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 16px); }
@media (max-height: 700px) {
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-box, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-box { padding-top:14px; padding-bottom:8px; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-title, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-title { margin-bottom:10px; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-desc, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-desc { margin-bottom:10px; }
  html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-login .portal-step, html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off) #ps-verify .portal-step { margin-bottom:6px; }
}
/* no mark in the header on the sign-in and code screens either: only the language toggle, on the right (Marco, 2026-11-17) */
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off):has(#ps-login.active, #ps-verify.active) .nav-brand { display:none; }
html:not(#theme-off):not(#theme-off):not(#theme-off):not(#theme-off):not(#mix-off):has(#ps-login.active, #ps-verify.active) .nav-inner { justify-content:flex-end; }
