.ys-identity-overlay {
  background: rgb(17 24 39 / 48%) !important;
  backdrop-filter: blur(3px);
}

.ys-identity-modal {
  height: auto !important;
  max-height: min(720px, calc(100vh - 32px)) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow:
    0 24px 60px rgb(15 23 42 / 22%),
    0 4px 16px rgb(15 23 42 / 10%) !important;
  color: #111827;
  font-family: Inter, "Pretendard", "Noto Sans KR", system-ui, sans-serif !important;
}

.ys-identity-modal .yoromis-modal-header {
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
  color: #111827;
}

.ys-identity-modal .yoromis-modal-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ys-identity-modal .yoromis-modal-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #6b7280;
  font-size: 15px;
}

.ys-identity-modal .yoromis-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.ys-identity-modal .yoromis-modal-body {
  padding: 24px;
  background: #fff;
}

.ys-identity {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.ys-identity-intro h2 {
  margin: 0 0 7px;
  color: #111827;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.ys-identity-intro p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.ys-identity-current {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
}

.ys-identity-current-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
}

.ys-identity-current.is-signed-in .ys-identity-current-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 12%);
}

.ys-identity-section-label {
  margin-top: 2px;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
}

.ys-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ys-social-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.ys-social-button:hover:not(:disabled) {
  border-color: #aeb5c0;
  background: #f9fafb;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
}

.ys-social-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ys-social-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  font-size: 10px;
  font-weight: 800;
}

.ys-social-google .ys-social-mark {
  color: #4285f4;
}

.ys-social-naver .ys-social-mark {
  border-color: #03c75a;
  background: #03c75a;
  color: #fff;
}

.ys-social-kakao .ys-social-mark {
  border-color: #fee500;
  background: #fee500;
  color: #191919;
}

.ys-social-facebook .ys-social-mark {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
}

.ys-social-microsoft .ys-social-mark {
  color: #2563eb;
}

.ys-social-github .ys-social-mark,
.ys-social-apple .ys-social-mark {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.ys-identity-hint {
  color: #9ca3af;
  font-size: 10px;
  line-height: 1.45;
}

.ys-access-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
}

.ys-access-card > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.ys-access-card > div + div {
  border-left: 1px solid #e5e7eb;
}

.ys-access-card span {
  color: #9ca3af;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ys-access-card strong {
  color: #374151;
  font-size: 12px;
  font-weight: 650;
}

.ys-identity details {
  padding-top: 2px;
  border-top: 1px solid #f0f1f3;
}

.ys-identity details summary {
  padding: 9px 0 2px;
  color: #9ca3af;
  font-size: 10px !important;
}

.ys-identity-footer {
  display: flex;
  gap: 6px;
}

.ys-identity-footer button {
  min-height: 30px;
  padding: 0 10px !important;
  border-color: #e5e7eb !important;
  border-radius: 7px !important;
  color: #6b7280;
  font-size: 10px !important;
}

#ys-identity-err:empty {
  display: none;
}

@media (max-width: 520px) {
  .ys-identity-modal {
    width: calc(100vw - 24px) !important;
  }

  .ys-identity-modal .yoromis-modal-body {
    padding: 20px;
  }

  .ys-social-grid {
    grid-template-columns: 1fr;
  }
}
