/* OS Author v2.39: the education resource portal (COEDREP), the white-label sign-in pages and the share panel,
   drawn with the OS Author design system (docs/design-system: tokens.css and components/bundle.css).
   The tokens are scoped to these surfaces so the studio's own --ink and --line stay as they are.
   The tenant colour arrives as --brand (and --brand-soft) on the root element, set by portal.js. */

@font-face{font-family:"Newsreader";src:url(/vendor/fonts/Newsreader-opsz.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url(/vendor/fonts/Newsreader-opsz-italic.woff2) format("woff2");font-weight:200 800;font-style:italic;font-display:swap}
/* Figtree is declared in editor.css from the same files in /vendor/fonts */

.pt,.pt-modal,.si,.shpop{
  --paper:#f4f5f7;--surface:#fff;--surface-sunk:#eceff3;--hairline:#dde2e8;--control-line:#7a8592;
  --ink:#121a22;--ink-muted:#56626e;--brand:#0b5563;--on-brand:#fff;--brand-soft:#e2eef0;
  --seal:#8c6a2c;--seal-soft:#f3ecdf;--success:#1d6b47;--success-soft:#e3f1e9;--warning:#835400;--warning-soft:#fbf1dc;--danger:#a8261d;--danger-soft:#fbe9e7;--focus:#1f5fd6;
  --shadow-float:0 24px 64px -24px rgba(18,26,34,.32),0 2px 6px rgba(18,26,34,.06);
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-18:72px;
  --radius-sm:8px;--radius-md:12px;--radius-lg:20px;--radius-pill:999px;
  --font-display:Newsreader,"Iowan Old Style",Georgia,serif;--font-ui:Figtree,"Segoe UI",system-ui,sans-serif;
  font-family:var(--font-ui);color:var(--ink);-webkit-font-smoothing:antialiased}

/* ================= the portal frame ================= */
.pt{min-height:100vh;background:var(--paper);font-size:16px;line-height:1.6;display:flex;flex-direction:column}
.pt *,.pt *::before,.pt *::after{box-sizing:border-box}
.pt h1,.pt h2,.pt h3{margin:0;color:var(--ink)}
.pt :focus-visible,.pt-modal :focus-visible,.si :focus-visible,.shpop :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.pt svg{display:inline-block}
.pt-muted{color:var(--ink-muted)}
.pt-small{font-size:14px;line-height:1.5;color:var(--ink-muted);margin:12px 0 0}
.pt-err{color:var(--danger);font-size:14px;margin:0}

/* buttons: one primary (filled) per region; secondary and quiet for the rest */
.pt-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:var(--radius-md);border:1px solid var(--brand);background:var(--brand);color:var(--on-brand);font:600 15px/1 var(--font-ui);cursor:pointer;text-decoration:none;white-space:nowrap;transition:background-color .15s,border-color .15s,filter .15s}
.pt-btn:hover{filter:brightness(1.08)}
.pt-btn.secondary{background:var(--surface);color:var(--ink);border-color:var(--control-line)}
.pt-btn.secondary:hover{filter:none;background:var(--surface-sunk)}
.pt-btn.quiet{background:none;border-color:transparent;color:var(--brand);padding:0 12px}
.pt-btn.quiet:hover{filter:none;background:var(--surface-sunk)}
.pt-btn.block{width:100%}
.pt-btn.sm{min-height:36px;padding:0 14px;font-size:14px}
.pt-btn svg{width:18px;height:18px;flex:none}
.pt-btn[disabled]{opacity:.45;cursor:default;filter:none}
.pt-more{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-md);border:0;background:none;color:var(--ink-muted);cursor:pointer;flex:none}
.pt-more:hover{background:var(--surface-sunk);color:var(--ink)}
.pt-more svg{width:20px;height:20px}

/* fields: 48px controls with a control-line border, so phones do not zoom in */
.pt-form{display:flex;flex-direction:column;gap:var(--space-4)}
.pt-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.pt-f label{font:600 14px/1.3 var(--font-ui);color:var(--ink)}
.pt-f small{font-size:14px;line-height:1.45;color:var(--ink-muted)}
.pt-f input:not([type=color]):not([type=checkbox]):not([type=radio]),.pt-f select,.pt-f textarea,.pt-sheet input,.pt-sheet textarea,.pt-modal textarea,.pt-modal select{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--control-line);border-radius:var(--radius-md);font:400 16px/1.4 var(--font-ui);background:var(--surface);color:var(--ink)}
.pt-f textarea,.pt-sheet textarea,.pt-modal textarea{min-height:96px;resize:vertical}
.pt-f input:focus,.pt-f select:focus,.pt-f textarea:focus,.pt-sheet input:focus,.pt-sheet textarea:focus,.pt-modal textarea:focus,.pt-modal select:focus{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.pt-f input[type=color]{width:100%;height:48px;border:1px solid var(--control-line);border-radius:var(--radius-md);padding:4px;background:var(--surface)}
.pt-file{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pt-2,.pt-3{display:grid;gap:var(--space-4)}
@media (min-width:640px){.pt-2{grid-template-columns:1fr 1fr}.pt-3{grid-template-columns:1fr 1fr 1fr}}
.pt-check{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.5;cursor:pointer}
.pt-check input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--brand)}

/* header */
.pt-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:var(--space-6);padding:0 var(--space-12);min-height:68px;background:var(--surface);border-bottom:1px solid var(--hairline)}
:root .pt-home{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);flex:none}
.pt-logo{height:64px;width:auto;display:block}
.pt-logo.sm{height:36px}
.pt-nm{font:500 22px/1.1 var(--font-display);letter-spacing:-.01em}
.pt-nav{display:flex;gap:28px;flex:1;overflow-x:auto;scrollbar-width:none;align-self:stretch}
:root .pt-nav a{display:flex;align-items:center;color:var(--ink-muted);text-decoration:none;font-weight:600;font-size:15px;white-space:nowrap;position:relative}
:root .pt-nav a:hover{color:var(--ink)}
:root .pt-nav a[aria-current=page]{color:var(--ink)}
.pt-nav a[aria-current=page]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink);border-radius:2px}
.pt-me,.pt-av{width:40px;height:40px;border-radius:var(--radius-pill);border:0;background:var(--brand-soft);color:var(--brand);font:600 15px var(--font-ui);display:inline-flex;align-items:center;justify-content:center;flex:none}
.pt-me{cursor:pointer}
.pt-av.sq{border-radius:var(--radius-md);background:var(--surface-sunk);color:var(--ink-muted)}
.pt-av svg{width:20px;height:20px}
.pt-main{width:100%;max-width:1080px;margin:0 auto;padding:var(--space-8) var(--space-12) 96px;flex:1}
.pt>.pt-pow{font-size:12px;font-weight:500;color:var(--ink-muted);text-align:center;padding:0 var(--space-4) var(--space-8)}
@media (max-width:640px){
  .pt-top{flex-wrap:wrap;gap:0 var(--space-4);padding:10px var(--space-4) 0;min-height:0}
  :root .pt-home{flex:1;min-height:44px}
  .pt-nav{order:3;flex-basis:100%;gap:22px;min-height:44px}
  .pt-logo.sm{height:30px}
  .pt-main{padding:var(--space-6) var(--space-4) 96px}
}

/* the account menu and the overflow menus, on the shared .menu */
:root .pt .menu{background:var(--surface);border:1px solid var(--hairline);border-radius:var(--radius-md);box-shadow:var(--shadow-float);padding:6px;min-width:264px}
:root .pt .menu button,:root .pt .menu a{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;background:none;border-radius:var(--radius-sm);font:500 15px var(--font-ui);color:var(--ink);cursor:pointer;text-align:left;text-decoration:none;white-space:nowrap}
:root .pt .menu button:hover,:root .pt .menu a:hover{background:var(--surface-sunk)}
:root .pt .menu button.danger{color:var(--danger)}
:root .pt .menu .sep{height:0;border-top:1px solid var(--hairline);margin:6px 4px;background:none}
:root .pt .menu > * > svg,:root .pt .menu svg{width:18px;height:18px;flex:none;display:inline-block}
:root .pt .menu .um-who span{color:var(--ink-muted)}

/* page heads */
.pt-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--space-4);margin:0 0 var(--space-6)}
.pt-head>div:first-child{flex:1;min-width:0;max-width:720px}
.pt-head h1{font:500 28px/1.18 var(--font-display);letter-spacing:-.01em;margin:6px 0 6px}
.pt-head p{margin:0}
:root .pt-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--ink-muted);text-decoration:none;font-size:14px;font-weight:600}
:root .pt-back:hover{color:var(--ink)}
.pt-back svg{width:16px;height:16px}
.pt-empty{padding:var(--space-8) var(--space-6);border:1px solid var(--hairline);border-radius:var(--radius-lg);color:var(--ink-muted);background:var(--surface);max-width:720px}

/* tabs: words with a 2px ink underline */
.pt-seg{display:flex;gap:28px;border-bottom:1px solid var(--hairline);margin-bottom:var(--space-6);overflow-x:auto;scrollbar-width:none}
:root .pt-seg a{padding:12px 0;color:var(--ink-muted);text-decoration:none;font-weight:600;position:relative;white-space:nowrap}
:root .pt-seg a:hover{color:var(--ink)}
:root .pt-seg a[aria-selected=true]{color:var(--ink)}
.pt-seg a[aria-selected=true]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink);border-radius:2px}

/* filter chips: the selected one is filled with ink */
.pt-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;margin-bottom:var(--space-4)}
.pt-chips button{flex:none;height:36px;padding:0 16px;border-radius:var(--radius-pill);border:1px solid var(--hairline);background:var(--surface);color:var(--ink-muted);font:600 14px var(--font-ui);cursor:pointer}
.pt-chips button:hover{border-color:var(--control-line);color:var(--ink)}
.pt-chips button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--surface)}

/* ================= resources ================= */
.pt-hello{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--space-6);margin:var(--space-4) 0 var(--space-8)}
.pt-hello>div{flex:1;min-width:0;max-width:720px}
.pt-hi{font-size:14px;font-weight:600;color:var(--ink-muted);margin:0 0 8px}
.pt-hello h1{font:500 44px/1.08 var(--font-display);letter-spacing:-.015em}
.pt-lead{margin:12px 0 0;color:var(--ink-muted);max-width:60ch}
:root .pt-pfl{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--hairline);border-radius:var(--radius-lg);padding:16px 18px;text-decoration:none;color:var(--ink);min-width:280px;transition:border-color .15s}
.pt-pfl:hover{border-color:var(--control-line)}
.pt-pfl>svg{width:24px;height:24px;color:var(--brand);flex:none}
.pt-pfl span{display:flex;flex-direction:column;flex:1;line-height:1.35}
.pt-pfl small{color:var(--ink-muted);font-size:14px}
.pt-arr{display:inline-flex;transition:transform .15s}.pt-arr svg{width:18px;height:18px}
.pt-pfl:hover .pt-arr{transform:translateX(3px);color:var(--brand)}
.pt-tools{display:flex;flex-direction:column;gap:var(--space-3);margin-bottom:var(--space-6)}
.pt-tools .pt-chips{margin:0}
.pt-search{display:flex;align-items:center;gap:10px;border:1px solid var(--control-line);border-radius:var(--radius-md);padding:0 14px;min-height:48px;background:var(--surface);max-width:720px}
.pt-search:focus-within{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.pt-search svg{width:20px;height:20px;color:var(--ink-muted);flex:none}
.pt-search input{flex:1;border:0;font:400 16px var(--font-ui);outline:0;background:none;min-width:0;color:var(--ink);min-height:46px}
.pt-search input:focus-visible{outline:0}

/* resource cards: the whole card is the link; a featured one spans two columns on brand */
.pt-grid{display:grid;gap:var(--space-6);grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
:root .pt-card{display:flex;flex-direction:column;gap:10px;padding:var(--space-6);background:var(--surface);border:1px solid var(--hairline);border-radius:var(--radius-lg);color:var(--ink);text-decoration:none;min-height:200px;transition:border-color .15s}
a.pt-card:hover{border-color:var(--control-line)}
.pt-kind{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-muted)}
.pt-kind svg{width:18px;height:18px;color:var(--brand);flex:none}
.pt-card h3{font:650 18px/1.35 var(--font-ui)}
.pt-card p{margin:0;color:var(--ink-muted);font-size:15px;line-height:1.55;flex:1}
.pt-go{display:flex;align-items:center;gap:6px;font:600 14px var(--font-ui);color:var(--ink);transition:transform .15s,color .15s}
.pt-go svg{width:16px;height:16px}
a.pt-card:hover .pt-go{transform:translateX(3px);color:var(--brand)}
.pt-card.feature{grid-column:span 2;background:var(--brand);border-color:var(--brand);color:var(--on-brand);padding:var(--space-8);min-height:240px}
.pt-card.feature h3{font:500 30px/1.15 var(--font-display);letter-spacing:-.01em;max-width:20ch;color:var(--on-brand)}
.pt-card.feature .pt-kind,.pt-card.feature .pt-kind svg,.pt-card.feature .pt-go,.pt-card.feature p{color:var(--on-brand)}
.pt-card.feature p{opacity:.88}
a.pt-card.feature:hover{border-color:var(--brand);filter:brightness(1.06)}
a.pt-card.feature:hover .pt-go{color:var(--on-brand)}
.pt-card.wide{max-width:760px;min-height:0;margin-bottom:var(--space-6)}
.pt-card.wide h3{margin-bottom:2px}
@media (max-width:640px){.pt-hello h1{font-size:32px}:root .pt-pfl{min-width:0;width:100%}.pt-card.feature{grid-column:auto;padding:var(--space-6)}.pt-card.feature h3{font-size:24px}}

/* ================= lists: rows share one surface with hairline dividers ================= */
.pt-list{display:flex;flex-direction:column;border:1px solid var(--hairline);border-radius:var(--radius-lg);overflow:hidden;background:var(--surface)}
:root .pt-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:16px 20px;border-top:1px solid var(--hairline);text-decoration:none;color:inherit}
.pt-row:first-child{border-top:0}
a.pt-row:hover{background:var(--paper)}
.pt-row-m{flex:1;min-width:200px;display:flex;flex-direction:column;line-height:1.4}
.pt-row-m b{font-weight:600}
.pt-row-m small{color:var(--ink-muted);font-size:14px}
.pt-rowlink{all:unset;font-weight:600;cursor:pointer;border-radius:4px}
.pt-rowlink:hover{color:var(--brand);text-decoration:underline}
.pt-rowlink:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.pt-state{font-size:14px;color:var(--ink-muted);white-space:nowrap}
.pt-badge{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:28px;padding:0 10px;border-radius:var(--radius-sm);font:600 13px var(--font-ui);background:var(--surface-sunk);color:var(--ink)}
.pt-st{font-size:13px;font-weight:600;color:var(--ink-muted);padding:3px 10px;border-radius:var(--radius-pill);background:var(--surface-sunk);white-space:nowrap}
.pt-st.ok{background:var(--success-soft);color:var(--success)}
.pt-st.bad{background:var(--danger-soft);color:var(--danger)}
.pt-st.you{background:var(--warning-soft);color:var(--warning)}
.pt-prog{display:flex;gap:3px}
.pt-prog i{width:14px;height:4px;border-radius:2px;background:var(--hairline)}
.pt-prog i.on{background:var(--ink)}
.pt-forms3{display:grid;gap:var(--space-3);margin-top:var(--space-6);grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.pt-f3{display:flex;flex-direction:column;gap:2px;padding:var(--space-4);border-radius:var(--radius-md);background:var(--surface-sunk);line-height:1.45}
.pt-f3 small{color:var(--ink-muted);font-size:14px}
@media (max-width:640px){:root .pt-row{padding:14px 16px}.pt-person .pt-state{display:none}}

/* picking a form in New assessment */
.pt-pick{display:flex;flex-direction:column;gap:8px}
.pt-pk{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--hairline);border-radius:var(--radius-md);padding:12px 14px;cursor:pointer;line-height:1.4}
.pt-pk:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
.pt-pk input{margin-top:3px;accent-color:var(--brand)}
.pt-pk span{display:flex;flex-direction:column;gap:2px}
.pt-pk small{color:var(--ink-muted);font-size:14px}

/* ================= the assessment ================= */
/* the sign-off chain: numbered steps, the current one on brand, the last one is the seal step */
.pt-chain{display:flex;list-style:none;margin:0 0 var(--space-6);padding:var(--space-6);counter-reset:s;background:var(--surface);border:1px solid var(--hairline);border-radius:var(--radius-lg)}
.pt-chain li{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;position:relative;min-width:0;counter-increment:s}
.pt-chain li::before{content:counter(s);width:32px;height:32px;border-radius:var(--radius-pill);display:flex;align-items:center;justify-content:center;font:600 14px var(--font-ui);background:var(--surface);color:var(--ink-muted);border:1px solid var(--control-line);position:relative;z-index:1;flex:none}
.pt-chain li::after{content:"";position:absolute;top:16px;left:32px;right:0;height:1px;background:var(--hairline)}
.pt-chain li:last-child::after{display:none}
.pt-chain li.done::before{content:"\2713";background:var(--ink);border-color:var(--ink);color:var(--surface)}
.pt-chain li.done::after{background:var(--ink)}
.pt-chain li.now::before{background:var(--brand);border-color:var(--brand);color:var(--on-brand);box-shadow:0 0 0 4px var(--brand-soft)}
.pt-chain li.seal::before{content:"";border:1.5px solid var(--seal);background:var(--seal-soft)}
.pt-chain li.seal.now::before{content:counter(s);background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.pt-chain li.seal.done::before{content:"\2713";background:var(--seal);color:var(--surface);border-color:var(--seal)}
.pt-chain b{font:600 14px/1.3 var(--font-ui);padding-right:12px;min-width:0}
.pt-chain small{display:block;font-size:13px;color:var(--ink-muted);font-weight:400;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-chain-v{flex-direction:column;gap:0;padding:0;border:0;background:none;margin:0 0 var(--space-6)}
.pt-chain-v li,.pt-auth .pt-chain-v li{flex-direction:row;align-items:center;gap:12px;padding-bottom:16px}
.pt-chain-v li::after{top:32px;left:16px;right:auto;width:1px;height:100%}
.pt-chain-v small{white-space:normal}
@media (max-width:640px){.pt-chain{flex-direction:column;gap:0;padding:var(--space-4) var(--space-4) 0}.pt-chain li{flex-direction:row;align-items:center;gap:12px;padding-bottom:16px}.pt-chain li::after{top:32px;left:16px;right:auto;width:1px;height:100%}}

/* the seal banner: only when the chair has signed */
.pt-signed{display:flex;align-items:center;gap:28px;padding:28px 32px;background:var(--seal-soft);border-radius:var(--radius-lg);margin:0 0 var(--space-6)}
.pt-seal{width:120px;height:120px;color:var(--seal);flex:none}
.pt-signed h2{font:500 28px/1.15 var(--font-display);margin:0 0 6px}
.pt-signed p{margin:0;color:var(--ink-muted)}
.pt-signed q{display:block;margin-top:12px;font:italic 400 18px/1.45 var(--font-display);color:var(--ink)}
@media (max-width:640px){.pt-signed{flex-direction:column;align-items:flex-start;padding:var(--space-6)}.pt-seal{width:88px;height:88px}}

/* notes: whose turn it is, and a returned form */
.pt-note{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--radius-md);margin-bottom:var(--space-4);font-size:15px;line-height:1.5}
.pt-note svg{width:20px;height:20px;flex:none;margin-top:1px}
.pt-note span{color:var(--ink)}
.pt-note.you{background:var(--warning-soft);color:var(--warning)}
.pt-note.bad{background:var(--danger-soft);color:var(--danger)}
.pt-intro{font-size:15px;color:var(--ink-muted);background:var(--surface-sunk);padding:14px 16px;border-radius:var(--radius-md);margin:0 0 var(--space-4)}

.pt-sheet{display:flex;flex-direction:column;gap:var(--space-4)}
.pt-sheet fieldset{border:1px solid var(--hairline);border-radius:var(--radius-lg);padding:var(--space-2) var(--space-6) var(--space-4);margin:0;min-width:0;background:var(--surface)}
.pt-sheet legend{font:650 18px/1.35 var(--font-ui);padding:0 8px;margin-left:-8px}
.pt-q{padding:14px 0;border-top:1px solid var(--hairline);display:flex;flex-direction:column;gap:8px}
.pt-q:first-of-type{border-top:0}
.pt-ql{font:600 15px/1.4 var(--font-ui)}
.pt-req{color:var(--ink-muted);font-style:normal;font-weight:400;font-size:13px}
.pt-ro{white-space:pre-wrap;font-size:15px}
.pt-opts{display:flex;flex-wrap:wrap;gap:6px}
.pt-opts label{cursor:pointer;position:relative}
.pt-opts input{position:absolute;opacity:0;pointer-events:none}
.pt-opts label span,.pt-opts.ro span{display:inline-flex;align-items:center;min-height:44px;padding:6px 16px;border:1px solid var(--control-line);border-radius:var(--radius-md);font-size:14px;font-weight:600;background:var(--surface);color:var(--ink)}
.pt-opts label:hover span{background:var(--surface-sunk)}
.pt-opts input:checked+span{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.pt-opts input:focus-visible+span{outline:2px solid var(--focus);outline-offset:2px}
.pt-opts.ro span{color:var(--ink-muted);border-color:var(--hairline);min-height:36px}
.pt-opts.ro span.on{color:var(--surface);background:var(--ink);border-color:var(--ink)}
.pt-opts.ro span.on.bad{background:var(--danger);border-color:var(--danger)}
.pt-opts.msf input[value=concern]:checked+span{background:var(--danger);border-color:var(--danger)}
@media (min-width:760px){.pt-q.row{flex-direction:row;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.pt-q.row .pt-ql{flex:1;min-width:240px}.pt-msfc{flex-basis:100%}}
.pt-sig{display:flex;gap:12px;align-items:flex-start;padding:12px 0}
.pt-sig svg{width:20px;height:20px;color:var(--ink);flex:none;margin-top:2px}
.pt-sig span{display:flex;flex-direction:column;line-height:1.45}
.pt-sig small{color:var(--ink-muted);font-size:14px}
.pt-sig em{font:italic 400 17px/1.45 var(--font-display);margin-top:4px}

/* the action bar: one primary, last; the save status on the left */
.pt-bar{position:sticky;bottom:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:12px 0;margin-top:var(--space-4);background:var(--paper);border-top:1px solid var(--hairline)}
.pt-bar.flat{position:static;background:none;border:0;padding:0;margin-top:4px;justify-content:flex-start}
.pt-saved{margin-right:auto;font-size:14px;color:var(--ink-muted)}
@media (max-width:640px){.pt-bar:not(.flat){padding:12px 0 calc(12px + env(safe-area-inset-bottom))}.pt-bar:not(.flat) .pt-btn{flex:1}.pt-saved{flex-basis:100%}}
.pt-trail{margin-top:var(--space-6);border-top:1px solid var(--hairline);padding-top:var(--space-3)}
.pt-trail summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.pt-trail ol{margin:6px 0 0;padding-left:22px;display:flex;flex-direction:column;gap:8px;font-size:15px}
.pt-trail small{color:var(--ink-muted);margin-left:6px}
.pt-trail em{display:block;color:var(--ink-muted)}

/* ================= windows opened from the portal ================= */
:root .pt-modal{font-family:var(--font-ui);color:var(--ink);border-radius:var(--radius-lg);border:1px solid var(--hairline);box-shadow:var(--shadow-float)}
.pt-modal .modal-h h3{font:650 18px/1.35 var(--font-ui)}
.pt-modal .pt-small{color:var(--ink-muted)}
:root .pt-modal .b{min-height:44px;height:auto;padding:0 20px;border-radius:var(--radius-md);font:600 15px/1 var(--font-ui);background:none;border:1px solid transparent;color:var(--brand);box-shadow:none}
:root .pt-modal .b:hover{background:var(--surface-sunk)}
:root .pt-modal .b.pri{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
:root .pt-modal .b.pri:hover{background:var(--brand);filter:brightness(1.08)}
:root .pt-modal .b.icon{min-height:40px;width:40px;padding:0;color:var(--ink-muted)}
.pt-modal svg{display:inline-block}

/* ================= sign-in: the form first, the institution beside it ================= */
.pt-auth,.si{display:grid;grid-template-columns:minmax(320px,440px) minmax(0,1fr);gap:var(--space-18);align-items:center;min-height:100vh;padding:var(--space-12);background:var(--paper);position:relative;overflow:hidden}
.pt-auth{flex-direction:row}
.pt-rings{position:absolute;right:-160px;top:50%;width:680px;height:680px;transform:translateY(-50%);pointer-events:none;color:var(--brand);opacity:.09}
.pt-auth-card,.si-card{position:relative;z-index:1;background:var(--surface);border:1px solid var(--hairline);border-radius:var(--radius-lg);padding:36px 36px 24px;box-shadow:var(--shadow-float);width:100%}
.pt-auth-card h1,.si-card h1{font:500 32px/1.1 var(--font-display);letter-spacing:-.01em;margin:0 0 4px;text-align:center;color:var(--ink)}
.pt-sub,.si-card .si-sub{color:var(--ink-muted);margin:0 0 24px;text-align:center}
.pt-alt,.si-alt{display:block;margin:14px auto 0;min-height:44px;background:none;border:0;color:var(--ink-muted);font:400 15px var(--font-ui);cursor:pointer;padding:0 8px;border-radius:var(--radius-sm)}
.pt-alt:hover,.si-alt:hover{background:var(--surface-sunk)}
.pt-alt b,.si-alt b{color:var(--ink);font-weight:600}
.pt-foot,.si-foot{border-top:1px solid var(--hairline);margin-top:22px;padding-top:16px;text-align:center;font-size:14px;color:var(--ink-muted)}
:root .pt-foot a,:root .si-foot a{color:var(--brand);font-weight:600;text-decoration:none}
:root .pt-foot a:hover,:root .si-foot a:hover{text-decoration:underline}
.pt-foot span{display:block;margin-top:4px}
.pt-tenant,.si-side{position:relative;z-index:1;max-width:560px}
.pt-tenant img,.si-side img{height:64px;width:auto;display:block;margin-bottom:28px}
.pt-tenant h2,.si-side h2{font:500 64px/1.02 var(--font-display);letter-spacing:-.02em;margin:0 0 12px;color:var(--ink)}
.pt-full{font:500 20px/1.35 var(--font-display);color:var(--brand);margin:0 0 16px}
.pt-tenant p:not([class]),.si-side p:not([class]){color:var(--ink-muted);margin:0;max-width:52ch}
.pt-tenant .pt-pow,.si-pow{margin:40px 0 0;font-size:12px;font-weight:500;color:var(--ink-muted)}
.si-prod{font:650 18px/1.35 var(--font-ui);color:var(--ink);margin:0 0 16px}
.si-about{font:400 24px/1.4 var(--font-display);color:var(--ink);margin:0;max-width:30ch}
@media (max-width:860px){
  .pt-auth,.si{grid-template-columns:1fr;gap:28px;padding:20px var(--space-4) 40px;align-content:start;min-height:100vh}
  .pt-auth-card,.si-card{order:2;padding:26px 22px 18px}
  .pt-tenant,.si-side{padding-top:var(--space-4)}
  .pt-tenant h2,.si-side h2{font-size:40px}
  .pt-tenant img,.si-side img{height:44px;margin-bottom:18px}
  .pt-tenant .pt-pow,.si-pow{margin-top:20px}
  .si-about{font-size:20px}
  .pt-rings{width:420px;height:420px;right:-180px;top:120px;transform:none}
}

/* the studio's own sign-in uses the studio's field and button markup */
.si *,.si *::before,.si *::after{box-sizing:border-box}
.si-card .fs{display:flex;flex-direction:column;gap:var(--space-4)}
.si-card .fld{gap:6px}
.si-card .fld label{font:600 14px/1.3 var(--font-ui);color:var(--ink)}
:root .si-card .fld input{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--control-line);border-radius:var(--radius-md);background:var(--surface);color:var(--ink);font:400 16px/1.4 var(--font-ui);box-shadow:none}
:root .si-card .fld input:hover{border-color:var(--control-line)}
:root .si-card .fld input:focus{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus);box-shadow:none}
.si-card .err{color:var(--danger);font-size:14px;margin:0}
:root .si-card .b.pri{width:100%;min-height:44px;height:auto;justify-content:center;border-radius:var(--radius-md);background:var(--brand);border:1px solid var(--brand);color:var(--on-brand);font:600 15px/1 var(--font-ui);box-shadow:none}
:root .si-card .b.pri:hover{background:var(--brand);border-color:var(--brand);filter:brightness(1.08)}
.si-card .auth-lang{color:var(--ink-muted)}

/* ================= the share panel under the studio's Share button ================= */
.shpop{position:fixed;z-index:1200;background:var(--surface);border:1px solid var(--hairline);border-radius:var(--radius-lg);box-shadow:var(--shadow-float);padding:20px 20px 14px;max-height:calc(100vh - 80px);overflow:auto;font-size:15px;line-height:1.5}
.shpop *{box-sizing:border-box}
.shp-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.shp-h h3{margin:0;font:650 18px/1.35 var(--font-ui);color:var(--ink)}
.shp-h .b.icon{width:40px;height:40px;border:0;background:none;color:var(--ink-muted);border-radius:var(--radius-md);box-shadow:none}
.shp-h .b.icon:hover{background:var(--surface-sunk);color:var(--ink)}
.shp-l{font:600 14px/1.3 var(--font-ui);margin:16px 0 8px;color:var(--ink)}
.shp-add{display:flex;gap:8px}
.shp-in{flex:1;display:flex;align-items:center;gap:8px;border:1px solid var(--control-line);border-radius:var(--radius-md);padding:0 12px;min-height:44px;background:var(--surface)}
.shp-in:focus-within{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.shp-in svg{width:18px;height:18px;color:var(--ink-muted);flex:none}
.shp-in input{border:0;outline:0;flex:1;min-width:0;font:400 16px var(--font-ui);background:none;color:var(--ink)}
.shp-add select{min-height:44px;border:1px solid var(--control-line);border-radius:var(--radius-md);padding:0 8px;font:500 14px var(--font-ui);background:var(--surface);color:var(--ink)}
.shp-av{display:flex;align-items:center;margin-top:12px}
.shp-av span,.shp-plus{width:32px;height:32px;border-radius:var(--radius-pill);display:inline-flex;align-items:center;justify-content:center;font:600 13px var(--font-ui);color:var(--brand);background:var(--brand-soft);border:2px solid var(--surface);margin-right:-6px}
.shp-av span:nth-child(3n+2),.shp-av span:nth-child(3n+3){background:var(--brand-soft);color:var(--brand)}
.shp-av span.more{background:var(--surface-sunk);color:var(--ink-muted)}
:root .shp-plus{background:var(--surface);border:1px solid var(--control-line);color:var(--ink);margin-left:6px;text-decoration:none}
.shp-plus:hover{background:var(--surface-sunk)}
.shp-plus svg{width:16px;height:16px}
.shp-acc{position:relative;width:100%;display:flex;align-items:center;gap:12px;border:1px solid var(--hairline);border-radius:var(--radius-md);background:var(--surface);padding:10px 12px;cursor:pointer;color:var(--ink)}
.shp-acc:hover{border-color:var(--control-line)}
.shp-acc:focus-within{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus);box-shadow:none}
.shp-acc em{flex:1;display:flex;flex-direction:column;font-style:normal;line-height:1.35}
.shp-acc b{font-weight:600}
.shp-acc select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.shp-chev svg{width:18px;height:18px;color:var(--ink-muted)}
.shp-acc small,.shp-opt small{color:var(--ink-muted);font-size:13px}
.shp-ai{width:36px;height:36px;border-radius:var(--radius-pill);background:var(--surface-sunk);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;flex:none}
.shp-ai svg{width:18px;height:18px}
.shpop .b.pri.shp-copy{width:100%;min-height:44px;height:auto;justify-content:center;margin-top:16px;border-radius:var(--radius-md);background:var(--brand);border:1px solid var(--brand);color:var(--on-brand);font:600 15px/1 var(--font-ui);box-shadow:none}
.shpop .b.pri.shp-copy:hover{background:var(--brand);filter:brightness(1.08)}
.shpop .b.pri.shp-copy[disabled]{opacity:.45;filter:none;cursor:default}
.shp-v{font-size:13px;color:var(--ink-muted);text-align:center;margin:8px 0 0}
.shp-v .linkish{color:var(--brand);font-weight:600;background:none;border:0;padding:0;font:inherit;font-weight:600;cursor:pointer}
.shp-v .linkish:hover{text-decoration:underline}
.shp-sep{border-top:1px solid var(--hairline);margin:16px -20px 12px}
.shp-row{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.shp-row button{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;font:500 13px var(--font-ui);cursor:pointer;color:var(--ink);padding:6px 0;border-radius:var(--radius-md)}
.shp-row button:hover:not(:disabled){background:var(--surface-sunk)}
.shp-row button:disabled{opacity:.45;cursor:default}
.shp-row button span{width:44px;height:44px;border-radius:var(--radius-pill);background:var(--surface-sunk);color:var(--ink);display:flex;align-items:center;justify-content:center}
.shp-row button svg{width:20px;height:20px}

@media print{
  .pt{background:#fff}
  .pt-top,.pt-bar,.pt-back,.pt-more,.pt>.pt-pow,.pt-trail summary{display:none!important}
  .pt-trail{display:block}
  .pt-main{padding:0;max-width:none}
  .pt-sheet fieldset,.pt-chain,.pt-signed{break-inside:avoid}
}
@media (prefers-reduced-motion:reduce){.pt *,.si *,.shpop *{transition:none!important}}
