.yct-account-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yct-account-name {
  color: var(--muted, #69645b);
  font-size: 14px;
  font-weight: 800;
}

.yct-account-btn,
.yct-account-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line, rgba(47, 38, 26, .14));
  background: rgba(255, 250, 240, .72);
  color: var(--ink, #20231f);
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.yct-account-btn.is-primary,
.yct-account-link.is-primary {
  background: var(--red, #a8322d);
  border-color: var(--red, #a8322d);
  color: #fff;
}

.yct-account-btn:hover,
.yct-account-link:hover {
  border-color: rgba(168, 50, 45, .35);
}

.yct-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(31, 35, 32, .42);
}

.yct-auth-backdrop.is-open {
  display: grid;
}

.yct-auth-panel {
  width: min(100%, 430px);
  border: 1px solid var(--line, rgba(47, 38, 26, .14));
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 22px 48px rgba(38, 25, 12, .22);
  padding: 22px;
}

.yct-auth-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.yct-auth-head h2 {
  margin: 0 0 6px;
  color: var(--ink, #20231f);
  font-size: 24px;
  line-height: 1.25;
}

.yct-auth-head p {
  margin: 0;
  color: var(--muted, #69645b);
  line-height: 1.6;
}

.yct-auth-close {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line, rgba(47, 38, 26, .14));
  border-radius: 8px;
  background: #fffdf8;
  cursor: pointer;
  font-weight: 900;
}

.yct-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.yct-auth-tabs button {
  min-height: 38px;
  border: 1px solid var(--line, rgba(47, 38, 26, .14));
  border-radius: 8px;
  background: #fffdf8;
  cursor: pointer;
  font-weight: 900;
}

.yct-auth-tabs button.is-active {
  background: var(--red, #a8322d);
  border-color: var(--red, #a8322d);
  color: #fff;
}

.yct-auth-form {
  display: grid;
  gap: 12px;
}

.yct-auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted, #69645b);
  font-weight: 800;
}

.yct-auth-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line, rgba(47, 38, 26, .14));
  border-radius: 8px;
  background: #fffdf8;
  padding: 0 12px;
  color: var(--ink, #20231f);
}

.yct-auth-submit {
  min-height: 44px;
  border: 1px solid var(--red, #a8322d);
  border-radius: 8px;
  background: var(--red, #a8322d);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.yct-auth-message {
  min-height: 24px;
  margin: 2px 0 0;
  color: var(--jade, #23685c);
  line-height: 1.6;
}

.yct-auth-message.is-error {
  color: var(--red, #a8322d);
}

body.yct-modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .yct-account-widget,
  .yct-account-btn,
  .yct-account-link {
    width: 100%;
  }

  .yct-account-widget {
    display: grid;
    grid-template-columns: 1fr;
  }
}
