.hs-phone-auth-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  z-index: 9997;
  border: 1px solid rgba(98, 65, 42, .18);
  background: rgba(255, 252, 247, .92);
  color: #4a3024;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(72, 48, 32, .12);
  backdrop-filter: blur(10px);
}

.hs-auth-lock { overflow: hidden; }
.hs-auth-modal { position: fixed; inset: 0; display: none; z-index: 10000; }
.hs-auth-modal.show { display: block; }
.hs-auth-mask { position: absolute; inset: 0; background: rgba(27, 20, 16, .42); }
.hs-auth-sheet {
  position: absolute;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  transform: translateX(-50%) translateY(14px);
  width: min(92vw, 430px);
  max-height: min(82vh, 680px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(170, 129, 94, .24);
  background: #fffaf4;
  box-shadow: 0 30px 90px rgba(54, 34, 22, .26);
  padding: 12px 18px 20px;
  animation: hsAuthUp .18s ease forwards;
}
@keyframes hsAuthUp { to { transform: translateX(-50%) translateY(0); } }
.hs-auth-handle { width: 42px; height: 5px; border-radius: 999px; background: rgba(91,65,50,.18); margin: 4px auto 12px; }
.hs-auth-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hs-auth-head h3 { margin: 0; font-size: 20px; color: #3c2b22; letter-spacing: .02em; }
.hs-auth-head p { margin: 6px 0 0; font-size: 13px; color: #8a7568; line-height: 1.5; }
.hs-auth-close { border: 0; background: rgba(90,65,48,.08); color: #5f4435; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; }
.hs-auth-body { margin-top: 18px; }
.hs-auth-form label { display: block; margin: 12px 0 7px; color: #5a4031; font-size: 14px; font-weight: 800; }
.hs-auth-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(154,112,82,.22);
  background: #fff;
  border-radius: 16px;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  color: #3d2b22;
  outline: none;
}
.hs-auth-code-line { display: grid; grid-template-columns: 1fr 116px; gap: 10px; }
.hs-auth-code-line button,
.hs-auth-primary,
.hs-auth-secondary {
  border: 0;
  border-radius: 16px;
  min-height: 48px;
  padding: 0 14px;
  font-weight: 900;
  font-size: 15px;
}
.hs-auth-code-line button,
.hs-auth-primary { background: linear-gradient(180deg, #bd7f51, #9d663e); color: #fff; box-shadow: 0 12px 24px rgba(141,86,49,.20); }
.hs-auth-code-line button:disabled { opacity: .55; box-shadow: none; }
.hs-auth-secondary { background: rgba(112,82,62,.09); color: #5b4031; margin-top: 10px; width: 100%; }
.hs-auth-primary { width: 100%; margin-top: 18px; }
.hs-auth-tip { margin: 12px 0 0; color: #9b8577; font-size: 13px; text-align: center; }
.hs-auth-user-card { display: grid; gap: 10px; }
.hs-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: rgba(255,255,255,.66); border: 1px solid rgba(154,112,82,.16); border-radius: 17px; color: #7e6a5e; }
.hs-auth-row b { color: #3d2b22; font-size: 16px; word-break: break-all; }
.hs-auth-row .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
.hs-auth-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 98px);
  transform: translateX(-50%) translateY(10px);
  z-index: 10050;
  background: rgba(47, 34, 27, .94);
  color: #fff;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
  max-width: 82vw;
  text-align: center;
}
.hs-auth-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hs-auth-inline-info { margin-top: 10px; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.55); color: #6f5b50; }
.hs-auth-inline-info b { color: #3d2b22; }
@media (min-width: 769px) { .hs-phone-auth-btn { display: none; } }
