.em-invite {display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"title action" "intro intro"; column-gap:24px; align-items:center}
.em-invite h1 {grid-area:title; margin:0}
.em-invite .vacancy-intro {grid-area:intro; margin:16px 0 28px}
.em-trigger {grid-area:action; justify-self:start; display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #cfc1f6;border-radius:12px;background:#fff;color:var(--accent);font:600 15px/1.4 Inter,Arial,sans-serif;min-height:44px;white-space:nowrap}
.em-trigger:hover,.em-close:hover {background:#f4efff}
.em-dialog {width:min(492px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;margin:auto;padding:0;border:1px solid #e5dfef;border-radius:24px;background:#fff;color:#181425;box-shadow:0 24px 88px #1c103f30;font:16px/1.45 Inter,Arial,sans-serif}
.em-dialog::backdrop {background:rgba(25,20,45,.44)}
body:has(.em-dialog[open]) {overflow:hidden}
.em-panel {position:relative;padding:32px}
.em-icon {width:46px;height:46px;display:grid;place-items:center;background:#f1ebff;color:#5b2bec;border-radius:14px;margin-bottom:18px}
.em-close {position:absolute;right:13px;top:13px;width:44px;height:44px;display:grid;place-items:center;background:transparent;border:0;border-radius:50%;color:#5e5873}
.em-dialog h2 {font:700 clamp(24px,4vw,29px)/1.18 Geologica,Arial,sans-serif;letter-spacing:-.03em;color:#151120;margin:0 0 10px}
.em-copy {font-size:15px;color:#565268;margin:0 0 23px;line-height:1.55}
.em-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.em-fields label {display:block;font-size:14px;line-height:1.4;color:#272438;font-weight:600}
.em-fields label span {font-weight:400;color:#716b80;font-size:12px}
.em-fields input {display:block;width:100%;min-width:0;margin-top:6px;padding:11px 13px;height:46px;background:white;border:1px solid #c8c3d6;border-radius:10px;color:#1b1626;font:400 16px/1.3 Inter,Arial,sans-serif}
.em-fields input::placeholder {color:#827d90;opacity:1}
.em-fields input:focus {outline:2px solid #7548ec;outline-offset:1px}
.em-fields input[aria-invalid=true] {border-color:#a23548}
.em-fields small,.em-err {color:#a02641;font-size:13px;line-height:1.4}
.em-policy {margin:16px 0 20px;color:#665f75;font-size:12px;line-height:1.5}
.em-policy label {display:flex;align-items:flex-start;gap:9px;cursor:pointer;font-size:13px;line-height:20px}
.em-policy input {width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:#5b2bec}
.em-policy small {display:block;margin:4px 0 0 27px;color:#a02641;font-size:13px}
.em-policy a {color:#5b389d}
.em-submit {width:100%;min-height:46px;border:0;border-radius:12px;background:#5b2bec;color:white;cursor:pointer;font:600 16px/1.35 Inter,Arial,sans-serif}
.em-submit:hover {background:#4b21cd}
.em-submit:disabled {opacity:.68;cursor:wait}
.em-err {margin:0 0 12px}
.em-dialog [hidden] {display:none!important}
.em-done .em-icon {background:#eee8ff}
@media(max-width:767px) {
 .em-invite {display:flex;flex-direction:column;align-items:flex-start}
 .em-invite h1 {margin:0}
 .em-invite .vacancy-intro {margin:14px 0}
 .em-trigger {margin-bottom:22px}
 .em-panel {padding:24px}
 .em-fields {grid-template-columns:minmax(0,1fr);gap:12px}
 .em-dialog {border-radius:20px}
}
@media(max-width:359px) {.em-panel{padding:20px}}

.em-trigger,.em-close {cursor:pointer}
.em-trigger:focus-visible,.em-close:focus-visible,.em-submit:focus-visible,.em-policy a:focus-visible {outline:2px solid #7548ec;outline-offset:3px}
.em-trap {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.em-dialog {position:fixed;max-height:calc(var(--em-viewport-height,100dvh) - 24px);top:var(--em-viewport-top,0px);bottom:auto;transform:translateY(max(0px,calc((var(--em-viewport-height,100dvh) - 100%) / 2)));margin:0 auto}
.em-panel {padding-bottom:max(24px,env(safe-area-inset-bottom))}
.em-fields small {display:block;margin-top:4px;font-weight:400}
.em-fields input {box-sizing:border-box}
@media(min-width:768px) {.em-panel{padding-bottom:32px}}
@media(max-height:500px) {.em-dialog{transform:none;top:calc(var(--em-viewport-top,0px) + 12px)}}
