.front main.portal {width:min(54rem,92%);margin:3rem auto 5rem;}
.portal h1 {font-size:clamp(2.5rem,7vw,4.5rem);margin-bottom:1rem;}
.portal fieldset {min-width:0;background:white;border:1px solid #cdd5e7;margin:1.8rem 0;padding:1.25rem;}
.portal legend {font-size:1.25rem;font-weight:700;padding:0 .5rem;}
.portal label {display:grid;gap:.3rem;margin-bottom:.8rem;font-weight:550;}
.portal input:not([type=checkbox]):not([type=radio]),.portal select,.portal textarea {width:100%;min-width:0;border:1px solid #8a98b5;border-radius:4px;padding:.55rem;background:white;}
.portal .fields,.portal .repeater,.portal .checkgrid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1rem;}
.portal .repeater {border-bottom:1px solid #dce1ef;margin:0 0 1rem;padding:0 0 .75rem;align-items:start;}
.portal .checkgrid label,.portal .tick,.portal #cv-state {display:flex;gap:.65rem;align-items:baseline;}
.portal input[type=checkbox],.portal input[type=radio] {flex:none;accent-color:#45359c;}
.portal summary {padding:.5rem 0;cursor:pointer;font-weight:600;}
.portal audio {max-width:100%;height:36px;}
.portal button:not(.primary-button) {padding:.48rem .75rem;border:1px solid #929dc1;border-radius:4px;background:#f8f8ff;color:#30266b;width:fit-content;}
.portal .tools {display:flex;gap:.7rem;flex-wrap:wrap;}
.portal #message {position:sticky;bottom:.7rem;background:#101c43;color:white;padding:.8rem;border-radius:4px;}
.portal #message:empty {display:none;}
@media(max-width:580px){.portal .fields,.portal .repeater{grid-template-columns:1fr;}}

.demo-check:not(:empty) { grid-column:1/-1; white-space:pre-line; padding:.7rem 1rem; border-left:3px solid #7866bb; background:#f3f3fa; }

.portal #select-all-work {display:block;margin:.5rem auto 1.25rem 0;}


.portal .signin-options {
  box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1.1fr) auto minmax(0,1fr);
  gap:clamp(1rem,3vw,2.5rem); padding:clamp(1.25rem,4vw,3rem); margin:2rem 0;
  color:#201e2d; background:#fff; border:1px solid #dedde6; border-radius:1rem;
  box-shadow:0 .5rem 2rem #15182a12;
}
.portal .email-login h2 {margin:0 0 1.25rem; font-size:1.875rem; line-height:1.2;}
.portal .email-login label {margin-bottom:1rem;}
.portal .email-login input {box-sizing:border-box; min-height:2.875rem;}
.portal .email-login button,.portal .login-providers a {
  display:flex; align-items:center; justify-content:center; gap:.65rem; width:100%; min-height:2.875rem;
  box-sizing:border-box; padding:.65rem .75rem; border:1px solid #747775; border-radius:.5rem;
  font:600 1rem/1.35 system-ui,sans-serif; text-decoration:none; cursor:pointer;
  background:white; color:#202124;
}
.portal .email-login button {color:white;background:#312948;border-color:#312948;}
.portal .login-providers {display:grid; gap:.75rem; align-content:center;}
.portal .login-providers .openai {color:#fff;background:#25252b;border-color:#25252b;}
.login-providers .openai img {filter:invert(1);}
.portal .login-help {display:flex; gap:.65rem 1rem; flex-wrap:wrap; justify-content:space-between; margin-top:.9rem;}
.portal .login-help a {color:#423369;text-decoration:underline;font-size:.9375rem;}
.portal .login-divider {display:flex;flex-direction:column;gap:.65rem;align-items:center;color:#615e6b;font-size:.875rem;}
.portal .login-divider::before,.portal .login-divider::after {content:"";width:1px;background:#d6d4dc;flex:1;}
.portal .signin-options :focus-visible {outline:3px solid #8468ba;outline-offset:3px;}
.portal .login-providers a:hover,.portal .email-login button:hover {box-shadow:0 0 0 1px #767380;}
@media(max-width:650px){
 .portal .signin-options {grid-template-columns:minmax(0,1fr);}
 .portal .login-divider {flex-direction:row;}
 .portal .login-divider::before,.portal .login-divider::after {height:1px;}
}

.front main.auth-page {max-width:30rem;}
.auth-card {background:white;color:#201e2d;padding:clamp(1.25rem,4vw,2.5rem);border:1px solid #dedde6;border-radius:1rem;box-shadow:0 .5rem 2rem #15182a12;}
.portal .auth-card h1 {margin:0 0 1.5rem;font-size:clamp(1.875rem,4vw,2.5rem);line-height:1.12;}
.auth-card .back-portal {display:block;margin-top:1.5rem;font-size:.9375rem;color:#423369;}
.email-login .password-field {position:relative;margin-bottom:1rem;}
.portal .password-field label {margin:0;}
.portal .password-field input {padding-right:3.25rem;}
.portal .email-login button.password-eye {position:absolute;right:1px;bottom:1px;width:2.75rem;height:calc(2.875rem - 2px);min-height:0;padding:0;display:grid;place-items:center;background:transparent;color:#463f56;border:none;}
.password-eye svg {width:1.25rem;height:1.25rem;}
.password-eye:not(.revealed) .eye-slash {display:none;}
.portal .password-eye:focus-visible {outline:2px solid #765da9;outline-offset:-3px;}

.demo-check[data-state="fail"]{background:#fff1f0;color:#831d18;border-color:#b82a21}.demo-check[data-state="pass"]{background:#edf8ef;color:#18552b;border-color:#367849}
