:root{--accent:#2f4bd6;--ink:#121826;--line:#dfe3ea;--mut:#667085;--bs-body-font-family:'IBM Plex Sans',system-ui,sans-serif;--bs-primary:#2f4bd6}
body.pub{background:#fff;color:var(--ink);font-size:1rem}
.pub-shell{display:flex;flex-direction:column;min-height:100vh}
.pub-rail{background:var(--ink);color:#d7dcea;padding:1.75rem 1.25rem 1.5rem;border-bottom:4px solid var(--accent)}
.pub-rail .org{font-weight:600;color:#fff;font-size:.95rem;margin-bottom:1.25rem}
.pub-rail h1{font-size:1.6rem;line-height:1.2;font-weight:600;color:#fff;margin-bottom:.6rem}
.pub-rail p{color:#b3bcd1;margin-bottom:.75rem}.pub-rail .fine{font-size:.82rem;color:#8e99b3}
.pub-main{padding:1.5rem 1.25rem 3rem;width:100%;max-width:44rem}
.form-label{font-weight:500;margin-bottom:.3rem}.req{color:#c2331f}.opt{font-weight:400;color:var(--mut);font-size:.8rem;margin-left:.25rem}
.form-control,.form-select{border-color:#c9cfdb;padding:.65rem .8rem;font-size:1rem}
.form-control:focus,.form-select:focus{border-color:var(--accent);box-shadow:0 0 0 .2rem #2f4bd626}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.btn-submit{margin-top:1.5rem;background:var(--accent);color:#fff;font-weight:600;padding:.8rem 1.6rem;border-radius:.4rem;width:100%;display:inline-flex;gap:.6rem;align-items:center;justify-content:center}
.btn-submit:hover{background:#233bb3;color:#fff}.btn-submit:disabled{opacity:.75}
.spin{width:1rem;height:1rem;border:2px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:sp .7s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.done{text-align:center;padding:2.5rem 1rem}
.done .tick{width:3.5rem;height:3.5rem;margin:0 auto 1rem;border-radius:50%;background:#13795b;color:#fff;display:grid;place-items:center;font-size:1.6rem}
.done h2{font-size:1.4rem;font-weight:600}.done .ref{color:var(--mut)}.done .org{font-weight:600;color:var(--mut)}
.pub-solo{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.pub-solo .done{max-width:30rem}
@media(min-width:900px){
  .pub-shell{flex-direction:row}
  .pub-rail{width:22rem;flex:0 0 22rem;min-height:100vh;border-bottom:0;border-right:4px solid var(--accent);padding:3rem 2rem;position:sticky;top:0;align-self:flex-start;height:100vh}
  .pub-main{padding:3rem 3.5rem;margin:0}
  .btn-submit{width:auto;min-width:10rem}
}
/* invitation form */
.pub-rail .logo{max-height:2.6rem;max-width:11rem;margin-bottom:1rem;display:block;background:#fff;padding:.35rem .5rem;border-radius:.3rem}
.ctx{display:grid;gap:.5rem;margin:1.1rem 0;padding:.9rem 1rem;border:1px solid #2b3550;border-radius:.4rem;background:#182035}
.ctx span{display:block;font-size:.72rem;color:#8e99b3;text-transform:uppercase;letter-spacing:.04em}.ctx b{color:#fff;font-weight:500;font-family:'IBM Plex Mono',monospace;font-size:.9rem}
.progress-box{font-size:.85rem;color:#c8d0e3}.progress-box .bar{height:6px;background:#2b3550;border-radius:3px;margin-top:.4rem;overflow:hidden}.progress-box .bar i{display:block;height:100%;width:0;background:#7f95ff;transition:width .25s}
.sec{margin-bottom:2rem}.sec h2{font-size:1.15rem;font-weight:600;padding-bottom:.55rem;border-bottom:2px solid var(--ink);margin-bottom:.6rem}
.sec-desc{color:var(--mut);font-size:.88rem;margin-bottom:.8rem}.grp h3{font-size:.98rem;font-weight:600;margin:1rem 0 .2rem}
.pills{display:flex;gap:.6rem;flex-wrap:wrap}.pill{cursor:pointer;margin:0}.pill input{position:absolute;opacity:0}
.pill span{display:inline-block;min-width:4.6rem;text-align:center;padding:.55rem 1.1rem;border:1px solid #c9cfdb;border-radius:2rem;font-weight:500}
.pill input:checked+span{background:var(--accent);border-color:var(--accent);color:#fff}.pill input:focus-visible+span{box-shadow:0 0 0 .2rem #2f4bd633}
.pills.is-invalid span,.chk.is-invalid{border-color:#c2331f}.chk.is-invalid{outline:1px solid #c2331f;padding-left:2rem;border-radius:.3rem}
.fld .invalid-feedback{display:none}.fld .is-invalid~.invalid-feedback{display:block}
.file-existing{display:flex;align-items:center;gap:.5rem;padding:.4rem .7rem;margin-bottom:.4rem;background:#eef6f1;border:1px solid #bfdccb;border-radius:.3rem;font-size:.88rem}
.actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.5rem}.actions .btn-submit{margin-top:0;flex:1}
.btn-ghost{border:1px solid #c9cfdb;background:#fff;font-weight:600;padding:.8rem 1.4rem;border-radius:.4rem;display:inline-flex;gap:.6rem;align-items:center;justify-content:center;flex:1}
.btn-ghost .spin{border-color:#00000033;border-top-color:#121826}
.fine{color:var(--mut);font-size:.85rem}.pub-foot{margin-top:2.5rem;padding-top:1rem;border-top:1px solid var(--line);color:var(--mut);font-size:.85rem}
@media(min-width:900px){.actions .btn-submit,.btn-ghost{flex:0 0 auto;min-width:12rem}.pub-main{max-width:60rem}}
