.agentstore-auth-modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.agentstore-auth-modal-root.is-open {
  display: block;
}

.agentstore-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 30, 28, 0.42);
  backdrop-filter: blur(8px);
}

.agentstore-auth-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  border-radius: 28px;
  border: 1px solid rgba(24, 31, 29, 0.1);
  background: #fff;
  box-shadow: 0 24px 80px rgba(24, 31, 29, 0.24);
  padding: 30px;
  color: #17231f;
  font-family: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.agentstore-auth-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f2ed;
  color: #17231f;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.agentstore-auth-panel h2 {
  margin: 0 44px 10px 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.agentstore-auth-copy {
  margin: 0 0 22px;
  color: #70756f;
  font-size: 15px;
  line-height: 1.5;
}

.agentstore-auth-panel label {
  display: grid;
  gap: 8px;
  color: #26302c;
  font-size: 14px;
  font-weight: 700;
}

.agentstore-auth-panel input {
  width: 100%;
  height: 52px;
  border: 1px solid #deddd6;
  border-radius: 16px;
  background: #faf9f5;
  color: #17231f;
  font: inherit;
  outline: 0;
  padding: 0 16px;
}

.agentstore-auth-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 10px;
  margin: 14px 0;
}

.agentstore-auth-row button,
.agentstore-auth-primary,
.agentstore-auth-google {
  height: 52px;
  border-radius: 16px;
  border: 1px solid #deddd6;
  background: #faf9f5;
  color: #17231f;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.agentstore-auth-primary {
  width: 100%;
  border: 0;
  background: #17231f;
  color: #fff;
}

.agentstore-auth-google {
  width: 100%;
  margin-top: 10px;
}

.agentstore-auth-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #68706a;
  font-size: 13px;
}

.agentstore-auth-status[data-state="error"] {
  color: #b94141;
}

#top-log-in[data-auth-state="authenticated"] {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#top-log-in:disabled {
  cursor: wait;
  opacity: 0.64;
}
