/* Shared ROSTER form system: last in the cascade, no framework dependency. */
:root{--form-navy:#163a5f;--form-orange:#f97316;--form-border:#d6e0eb;--form-muted:#64748b}
form:not(.compose){max-width:840px;gap:20px}
form label,.modal-body label{display:block;color:var(--form-navy);font-size:13px;font-weight:650;line-height:1.5;margin:0 0 8px}
form label:has(>input),form label:has(>select),form label:has(>textarea),form label:has(>.person-picker){margin:0 0 18px}
form label>input,form label>select,form label>textarea,form label>.person-picker{margin-top:7px}
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),body select,body textarea{width:100%;min-width:0;min-height:46px;border:1px solid var(--form-border);border-radius:10px;padding:11px 14px;background:#f8fafc;color:#18334e;font:400 14px/1.5 'DM Sans',system-ui,sans-serif;box-shadow:0 1px 2px #163a5f03;transition:border-color .18s,box-shadow .18s,background .18s}
body textarea{min-height:120px;resize:vertical}body input::placeholder,body textarea::placeholder{color:#7b8b9d}
body select{appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='1.8'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E");background-position:right 13px center;background-repeat:no-repeat}
body input:hover,body select:hover,body textarea:hover{border-color:#aabccf;background-color:#fff}
body input:focus-visible,body select:focus-visible,body textarea:focus-visible,.person-picker:focus-within{outline:0;border-color:#f97316;box-shadow:0 0 0 3px #f973161f;background-color:white}
body :is(input,select,textarea):disabled{background-color:#edf1f5;color:#8391a1;cursor:not-allowed;opacity:.8}
body :is(input,select,textarea)[aria-invalid=true],body :is(input,select,textarea):user-invalid{border-color:#c84343;box-shadow:0 0 0 3px #c8434310}
body :is(input,select,textarea)[data-state=success]{border-color:#38876a}
body input:is([type=checkbox],[type=radio]){width:18px;height:18px;accent-color:var(--form-orange);flex:none}
form label:has([required])::after{content:' *';color:#c55d12;font-size:12px}
form label:has(> [required])::after{content:none}form label:has(> [required])::before{content:'Required';float:right;font-size:10px;font-weight:500;color:#77889a;letter-spacing:.2px}
form>input,form>select,form>textarea{margin-bottom:18px}
form small,form [role=status]{display:block;color:var(--form-muted);font-size:12px;line-height:1.6}form [role=status]:empty{display:none}form [role=status]:not(:empty){padding:12px 14px;background:#edf4fb;border-radius:9px;margin:14px 0 0}
form button,.modal-actions button,button.form-button,.auth-card .btn{min-height:46px;border-radius:10px;padding:11px 18px;font-size:13px;font-weight:650;transition:background .18s,box-shadow .18s,transform .18s}
form button:not([type=button]),button.form-primary,.auth-card .btn.orange{background:var(--form-navy);border:1px solid var(--form-navy);color:white;box-shadow:0 3px 8px #163a5f12}
form button:not([type=button]):hover,button.form-primary:hover{background:#204d77;border-color:#204d77;box-shadow:0 4px 12px #163a5f22}
button.form-secondary{background:#fff;color:var(--form-navy);border:1px solid var(--form-border)}button.form-destructive{color:#a83535;background:#fff6f5;border-color:#edceca}button.form-destructive:hover{background:#fde9e6;border-color:#d99b94}
form button:active,.form-button:active{transform:translateY(1px)}form button:disabled,.form-button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}button[aria-busy=true]::after{content:'';display:inline-block;margin-left:9px;width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:form-spin .8s linear infinite}@keyframes form-spin{to{transform:rotate(360deg)}}
body button:focus-visible,body a:focus-visible{outline:3px solid #f9731666;outline-offset:3px}
.panel:has(form),.auth-card,.modal-body{background:white;border:1px solid #dce4ee;border-radius:16px;box-shadow:0 4px 20px #163a5f06;padding:26px}
.panel:has(form) h2,.auth-card h2{color:var(--form-navy);font-size:21px;letter-spacing:-.5px;margin-bottom:12px}.panel:has(form)>p{font-size:13px;color:var(--form-muted);max-width:680px}
.career-services-content>section.panel:has(form){max-width:940px;margin-bottom:22px}.career-services-content>section.panel:not(:has(form)){margin-bottom:22px}
#cs-assign,#cp-claim{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}#cs-assign>label:nth-of-type(3),#cp-claim>label:nth-of-type(3){grid-column:1/-1;max-width:409px}#cs-assign>button,#cp-claim>button{justify-self:start}#cs-assign>[role=status],#cp-claim>[role=status]{grid-column:1/-1}
#cs-invite{max-width:520px}.form-grid{gap:20px 22px}.hiring-filters{align-items:start}.modal-body form{max-width:none}
.person-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0;pointer-events:none;padding:0!important;border:0!important}
.person-picker{position:relative;border:1px solid var(--form-border);border-radius:10px;background:#f8fafc;min-height:46px;display:flex;align-items:center;gap:10px;padding:0 12px;transition:box-shadow .18s,border-color .18s}
body .person-picker input{border:0!important;box-shadow:none!important;padding:10px 0;background:transparent!important;margin:0;flex:1;width:0;min-height:44px;outline:0}
.person-avatar{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:50%;background:#e3edf7;color:#163a5f;font-size:10px;font-weight:750}.person-chevron{width:18px;height:18px;color:#64748b;flex:none}
.person-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;border:1px solid #d6e0eb;border-radius:12px;background:white;box-shadow:0 12px 32px #163a5f20;max-height:260px;overflow:auto;padding:6px}
.person-option{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;color:#163a5f}.person-option[aria-selected=true],.person-option:hover{background:#edf4fb}.person-option[aria-selected=true]{box-shadow:inset 3px 0 #f97316}.person-empty{padding:14px;font-size:12px;font-weight:400;color:#64748b}.person-picker[data-disabled=true]{opacity:.6;pointer-events:none}.person-menu[hidden]{display:none}
@media(max-width:640px){form{max-width:100%}#cs-assign,#cp-claim,.form-grid{grid-template-columns:1fr}#cs-assign>label:nth-of-type(3),#cp-claim>label:nth-of-type(3){max-width:none}.panel:has(form),.auth-card,.modal-body{padding:20px}.person-menu{max-height:220px}form button{max-width:100%}body input,body select,body textarea{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){.person-picker,form button{transition:none}button[aria-busy=true]::after{animation:none}}
/* Override legacy career-editor/workspace field spacing inside the composite control. */
body .person-picker input{margin:0!important;padding:10px 0!important;height:44px!important;min-height:44px!important;outline:none!important;border-radius:0!important}
.person-picker{height:46px}.person-picker:has(input[aria-invalid=true]){border-color:#c84343;box-shadow:0 0 0 3px #c8434310}
body form :is(input,select,textarea):focus-visible{outline:none!important;border-color:#f97316;box-shadow:0 0 0 3px #f973161f}
body form .person-picker input:focus-visible{box-shadow:none!important}
form label:has(+ input[required])::after,form label:has(+ select[required])::after{content:' *';color:#c55d12}
form button.form-secondary,form button[type=button]{background:#fff;color:#163a5f;border:1px solid #d6e0eb;box-shadow:none}
