.ys-titlebar-account {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  cursor: pointer;
  font-family: "Roboto", "Noto Sans KR", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.ys-titlebar-account.is-guest {
  width: auto;
  min-width: 0;
  height: 24px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
}

.ys-titlebar-account:hover {
  filter: brightness(0.96);
}

.ys-titlebar-account.is-guest:hover {
  filter: none;
  text-decoration: underline;
}

.ys-identity-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgb(17 24 39 / 48%) !important;
  backdrop-filter: blur(3px);
  pointer-events: auto !important;
}

.ys-identity-overlay.ys-identity-gate .yoromis-modal-close {
  display: none !important;
}

.ys-identity-modal {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  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;
  cursor: default !important;
}

.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-identity-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 2px;
  color: #5f6368;
  font-size: 12px;
}

.ys-identity-or::before,
.ys-identity-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #dadce0;
}

.ys-local-email {
  display: grid;
  gap: 8px;
}

.ys-local-field {
  display: grid;
  gap: 4px;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
}

.ys-local-field input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-family: "Roboto", "Noto Sans KR", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.ys-local-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ys-local-actions button {
  min-height: 36px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.ys-local-actions [data-yosuite-local-login] {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

.ys-social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ys-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  cursor: pointer;
  font-family: "Roboto", "Noto Sans KR", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.ys-social-button:hover:not(:disabled) {
  box-shadow: 0 1px 2px rgb(60 64 67 / 30%), 0 1px 3px rgb(60 64 67 / 15%);
}

.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 {
  background: #fff;
  border-color: #747775;
  color: #1f1f1f;
}

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

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

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

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

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

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

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

.ys-social-microsoft {
  background: #fff;
  border-color: #8c8c8c;
  color: #5e5e5e;
}

.ys-social-microsoft .ys-social-mark {
  color: #00a4ef;
}

.ys-q-head {
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  background: #03c75a;
  color: #fff;
  border-radius: 4px;
}

.ys-q-allow {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.ys-q-allow-2 {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #1a73e8;
  border-radius: 4px;
  background: #fff;
  color: #1a73e8;
  cursor: pointer;
  font-size: 13px;
}

.ys-q-deny {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #3c4043;
  cursor: pointer;
  font-size: 13px;
}

.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;
  }
}
