/* Mon Plaisir Account UI & Brand Lockup */

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-tagline {
  font-family: var(--editorial, Georgia, serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--muted, #847c74);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.auth-nav-slot {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 0.25rem;
}

.auth-signin-trigger,
.auth-pill {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline, #e6e0d7);
  color: var(--text, #111010);
  font-family: var(--sans, sans-serif);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.auth-signin-trigger:hover,
.auth-signin-trigger:focus-visible,
.auth-pill:hover,
.auth-pill:focus-visible {
  border-color: var(--text, #111010);
  background: var(--surface, #f8f5f0);
  outline: none;
}

.auth-pill {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.auth-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #c4162c);
  flex-shrink: 0;
}

.auth-pill-dot.is-pending {
  background: #b58938;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 230px;
  background: var(--bg, #ffffff);
  border: 1px solid var(--hairline, #e6e0d7);
  box-shadow: 0 18px 42px rgba(17, 16, 16, 0.12);
  padding: 0.85rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-menu[hidden] {
  display: none;
}

.auth-menu-head {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--hairline, #e6e0d7);
}

.auth-menu-handle {
  font-family: var(--serif, Georgia, serif);
  font-size: 1rem;
  color: var(--text, #111010);
}

.auth-menu-quota {
  font-family: var(--sans, sans-serif);
  font-size: 0.72rem;
  color: var(--muted, #847c74);
  margin-top: 0.18rem;
}

.auth-menu-btn {
  appearance: none;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.42rem 0.35rem;
  font-family: var(--sans, sans-serif);
  font-size: 0.8rem;
  color: var(--text, #111010);
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.auth-menu-btn:hover,
.auth-menu-btn:focus-visible {
  background: var(--surface, #f8f5f0);
  outline: none;
}

.auth-menu-btn.is-danger {
  color: var(--accent, #c4162c);
}

/* Native Editorial Dialogs */
dialog.delise-dialog {
  border: 1px solid var(--hairline, #e6e0d7);
  background: var(--bg, #ffffff);
  color: var(--text, #111010);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  width: min(440px, calc(100vw - 2rem));
  max-width: 440px;
  margin: auto;
  box-shadow: 0 28px 70px rgba(17, 16, 16, 0.22);
}

dialog.delise-dialog::backdrop {
  background: rgba(17, 16, 16, 0.48);
  backdrop-filter: blur(4px);
}

.delise-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.delise-dialog-kicker {
  font-family: var(--sans, sans-serif);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, #c4162c);
  margin: 0 0 0.35rem;
}

.delise-dialog-title {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.12;
  margin: 0;
  color: var(--text, #111010);
}

.delise-dialog-close {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted, #847c74);
  font-size: 1.35rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delise-dialog-close:hover {
  color: var(--text, #111010);
}

.delise-dialog-lead {
  font-family: var(--editorial, Georgia, serif);
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text-soft, #433e3a);
  margin: 0 0 1.25rem;
}

.auth-oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-oauth-btn {
  appearance: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  font-family: var(--sans, sans-serif);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--hairline, #e6e0d7);
  background: var(--bg, #ffffff);
  color: var(--text, #111010);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-oauth-btn:hover,
.auth-oauth-btn:focus-visible {
  border-color: var(--text, #111010);
  background: var(--surface, #f8f5f0);
  outline: none;
}

.auth-oauth-btn.is-apple {
  background: #111010;
  border-color: #111010;
  color: #ffffff;
}

.auth-oauth-btn.is-apple:hover,
.auth-oauth-btn.is-apple:focus-visible {
  background: #282424;
  border-color: #282424;
}

.auth-oauth-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.15rem 0;
  font-family: var(--sans, sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, #847c74);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline, #e6e0d7);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-label {
  font-family: var(--sans, sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #847c74);
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--hairline, #e6e0d7);
  background: var(--surface, #f8f5f0);
  color: var(--text, #111010);
  padding: 0.72rem 0.85rem;
  font-family: var(--sans, sans-serif);
  font-size: 0.92rem;
}

.auth-input:focus {
  outline: none;
  border-color: var(--text, #111010);
  background: #ffffff;
}

.auth-hint {
  font-family: var(--sans, sans-serif);
  font-size: 0.75rem;
  color: var(--muted, #847c74);
  line-height: 1.4;
}

.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--editorial, Georgia, serif);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text, #111010);
  cursor: pointer;
}

.auth-check-row input {
  margin-top: 0.25rem;
  accent-color: var(--accent, #c4162c);
}

.auth-submit-btn {
  appearance: none;
  width: 100%;
  background: var(--accent, #c4162c);
  color: #ffffff;
  border: 1px solid var(--accent, #c4162c);
  padding: 0.78rem 1rem;
  font-family: var(--sans, sans-serif);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus-visible {
  background: var(--crimson-glow, #9e1022);
  outline: none;
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-status {
  font-family: var(--sans, sans-serif);
  font-size: 0.82rem;
  line-height: 1.45;
  min-height: 1.1em;
  color: var(--text-soft, #433e3a);
}

.auth-status.is-error {
  color: var(--accent, #c4162c);
}

.auth-status.is-ok {
  color: #2f6b47;
}

.auth-secondary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.auth-text-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans, sans-serif);
  font-size: 0.76rem;
  color: var(--muted, #847c74);
  text-decoration: underline;
  cursor: pointer;
}

.auth-text-link:hover {
  color: var(--text, #111010);
}

.produced-auth-banner {
  border: 1px dashed var(--hairline, #e6e0d7);
  background: var(--surface, #f8f5f0);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.produced-auth-copy {
  font-family: var(--editorial, Georgia, serif);
  font-size: 0.95rem;
  color: var(--text-soft, #433e3a);
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.9rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
