body.okkwork-invite-welcome-open {
  overflow: hidden;
}

.okkwork-invite-welcome {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  font-family: "Rubik", "Rubik-Medium", "Segoe UI", system-ui, sans-serif;
}

.okkwork-invite-welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 34, 0.52);
  backdrop-filter: blur(6px);
}

.okkwork-invite-welcome__frame {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 860px);
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(6, 88, 162, 0.95), rgba(26, 95, 158, 0.95));
  box-shadow: 0 28px 70px rgba(6, 40, 72, 0.35);
  overflow: hidden;
}

.okkwork-invite-welcome__panel {
  position: relative;
  width: 100%;
  max-height: min(90vh, 856px);
  overflow: auto;
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-sizing: border-box;
}

.okkwork-invite-welcome__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(6, 88, 162, 0.08);
  color: rgba(6, 88, 162, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.okkwork-invite-welcome__close:hover {
  background: rgba(6, 88, 162, 0.14);
}

.okkwork-invite-welcome__hero {
  padding-right: 36px;
  margin-bottom: 14px;
}

.okkwork-invite-welcome__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2eb97a 0%, #0658a2 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.okkwork-invite-welcome__badge--warn {
  background: linear-gradient(135deg, #f39108 0%, #e65100 100%);
  font-size: 20px;
}

.okkwork-invite-welcome__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 88, 162, 1);
  font-weight: 700;
}

.okkwork-invite-welcome__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(59, 85, 109, 1);
}

.okkwork-invite-welcome__role {
  margin: 0;
  color: rgba(81, 95, 108, 1);
  font-size: 14px;
  line-height: 1.45;
}

.okkwork-invite-welcome__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.okkwork-invite-welcome__meta p {
  margin: 0;
  color: rgba(81, 95, 108, 1);
  font-size: 14px;
  line-height: 1.45;
}

.okkwork-invite-welcome__params {
  list-style: none;
  margin: 0;
  padding: 0;
}

.okkwork-invite-welcome__params li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(81, 95, 108, 0.08);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(81, 95, 108, 1);
}

.okkwork-invite-welcome__params li:last-child {
  border-bottom: 0;
}

.okkwork-invite-welcome__params span {
  min-width: 0;
}

.okkwork-invite-welcome__params strong {
  flex: 0 0 auto;
  color: rgba(59, 85, 109, 1);
  font-weight: 600;
  text-align: right;
}

.okkwork-invite-welcome__about {
  margin: 0 0 16px;
  color: rgba(81, 95, 108, 1);
  font-size: 15px;
  line-height: 1.55;
}

.okkwork-invite-welcome__emails {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.okkwork-invite-welcome__email-row {
  display: grid;
  gap: 6px;
}

.okkwork-invite-welcome__email-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(6, 88, 162, 0.72);
}

.okkwork-invite-welcome__email-chip {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.okkwork-invite-welcome__email-chip--invite {
  background: rgba(6, 88, 162, 0.08);
  color: rgba(6, 88, 162, 1);
  border: 1px solid rgba(6, 88, 162, 0.16);
}

.okkwork-invite-welcome__email-chip--current {
  background: rgba(230, 81, 0, 0.08);
  color: rgba(180, 83, 9, 1);
  border: 1px solid rgba(230, 81, 0, 0.18);
}

.okkwork-invite-welcome__section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(6, 88, 162, 0.9);
  font-weight: 700;
}

.okkwork-invite-welcome__section ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: rgba(81, 95, 108, 1);
  font-size: 14px;
  line-height: 1.5;
}

.okkwork-invite-welcome__section ul.okkwork-invite-welcome__params {
  padding-left: 0;
  list-style: none;
}

.okkwork-invite-welcome__section--limits h3 {
  color: rgba(180, 83, 9, 1);
}

.okkwork-invite-welcome__actions {
  display: grid;
  gap: 10px;
}

.okkwork-invite-welcome__cta {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  background: rgba(6, 88, 162, 1);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.okkwork-invite-welcome__cta:hover {
  background: rgba(5, 74, 138, 1);
}

.okkwork-invite-welcome__cta:active {
  transform: translateY(1px);
}

.okkwork-invite-welcome__secondary {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: rgba(6, 88, 162, 0.08);
  color: rgba(6, 88, 162, 0.92);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.okkwork-invite-welcome__secondary:hover {
  background: rgba(6, 88, 162, 0.14);
}

.okkwork-invite-welcome--mismatch .okkwork-invite-welcome__cta {
  background: linear-gradient(135deg, #2eb97a 0%, #0658a2 100%);
}

.okkwork-invite-welcome--mismatch .okkwork-invite-welcome__cta:hover {
  filter: brightness(1.04);
}
