/* A quiet, persistent account entry below Settings. Billing actions keep their
   existing subscription controller; this file only styles its navigation row. */
.rl-account-navigation {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.rl-account-navigation .rl-account-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #f1f3f2;
  color: #15211c;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 220ms ease;
}

.rl-account-navigation .rl-account-trigger:hover {
  border-color: #e0e8e2;
  background: #e9eeeb;
}

.rl-account-navigation .rl-account-trigger:focus-visible {
  outline: 3px solid #7d6bd1;
  outline-offset: -3px;
  background: #e9eeeb;
}

.rl-account-navigation .rl-account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #9ba98b;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: -.02em;
  line-height: 1;
}

.rl-account-navigation .rl-account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-account-navigation .rl-account-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}

.rl-account-navigation .rl-account-copy strong,
.rl-account-navigation .rl-account-copy > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rl-account-navigation .rl-account-copy strong {
  color: #19251f;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.35;
}

.rl-account-navigation .rl-account-copy > span {
  color: #79837d;
  font-size: 10px;
  font-weight: 450;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.rl-account-navigation .rl-account-indicator {
  display: grid;
  place-items: center;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: #86928a;
}

.rl-account-navigation .rl-account-indicator svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 761px) {
  .dashboard-shell .sidebar.dashboard-bottom-dock .rl-account-trigger {
    gap: 0;
    min-height: 50px;
    padding: 7px;
    background: transparent;
  }

  .dashboard-shell .sidebar.dashboard-bottom-dock .rl-account-copy {
    flex: 0 0 auto;
    width: 0;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 140ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
  }

  .dashboard-shell .sidebar.dashboard-bottom-dock .rl-account-indicator {
    display: none;
  }

  .dashboard-shell .sidebar.dashboard-bottom-dock:is(:hover, :has(:focus-visible), .is-pointer-expanded) .rl-account-trigger {
    gap: 10px;
    background: #f1f3f2;
  }

  .dashboard-shell .sidebar.dashboard-bottom-dock:is(:hover, :has(:focus-visible), .is-pointer-expanded) .rl-account-trigger:hover {
    background: #e9eeeb;
  }

  .dashboard-shell .sidebar.dashboard-bottom-dock:is(:hover, :has(:focus-visible), .is-pointer-expanded) .rl-account-copy {
    flex: 1 1 auto;
    width: auto;
    opacity: 1;
    transform: none;
    transition-delay: 45ms;
  }

  .dashboard-shell .sidebar.dashboard-bottom-dock:is(:hover, :has(:focus-visible), .is-pointer-expanded) .rl-account-indicator {
    display: grid;
  }
}

@media (max-width: 760px) {
  .mobile-workspace-menu .rl-account-navigation {
    grid-column: 1 / -1;
    margin-top: 5px;
  }

  .mobile-workspace-menu .rl-account-trigger {
    min-height: 64px;
    padding: 12px;
  }

  .mobile-workspace-menu .rl-account-copy strong { font-size: 14px; }
  .mobile-workspace-menu .rl-account-copy > span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-account-navigation .rl-account-trigger,
  .dashboard-shell .sidebar.dashboard-bottom-dock .rl-account-copy {
    transition: none;
  }
}

/* Mark all as read, beside the Notifications heading in My Hair and the Pro
   dashboard. A quiet pill; its check nods once when pressed. */
body .notification-mark-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--color-line, #e6e3ec);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  animation: rl-mark-all-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body .notification-mark-all .icon,
body .notification-mark-all svg { width: 15px; height: 15px; }
body .notification-mark-all:hover { transform: translateY(-1px); border-color: currentColor; }
body .notification-mark-all:active { transform: scale(0.97); }
body.pro-mode .notification-mark-all { color: var(--color-accent, #125e51); }
body.customer-mode .notification-mark-all { color: #6a45cf; }
.me-section-heading-actions { display: flex; align-items: center; gap: 10px; }
@keyframes rl-mark-all-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body .notification-mark-all { animation: none; transition: none; }
}

/* ---- Sign-up choices: one layout for all three checkboxes -----------------
   Email offers, text offers and the terms line share a 20px box aligned with
   the first line of text, left-aligned copy at one size, and "(optional)" in
   smaller grey type at the end. */
body .auth-panel[data-auth-surface] .auth-form :is(.auth-marketing-choice, .auth-terms-copy) {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  max-width: none;
  margin: 0 !important;
  color: #57525c !important;
  font-size: 13px !important;
  font-weight: 450;
  line-height: 1.5 !important;
  text-align: left;
  cursor: pointer;
}
body .auth-panel[data-auth-surface] .auth-form .auth-terms-copy > input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: none;
  margin: 0;
  border: 1.5px solid #8f8993;
  border-radius: 5px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
body .auth-panel[data-auth-surface] .auth-form .auth-terms-copy > input::before {
  width: 10px;
  height: 7px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) scale(0);
  transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
body .auth-panel[data-auth-surface] .auth-form .auth-terms-copy > input:checked { border-color: #2d2931; background: #2d2931; }
body .auth-panel[data-auth-surface] .auth-form .auth-terms-copy > input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
body .auth-panel[data-auth-surface] .auth-form :is(.auth-marketing-choice, .auth-terms-copy) > input { margin-top: 0; }
body .auth-panel[data-auth-surface] .auth-form :is(.auth-marketing-choice, .auth-terms-copy) > input:focus-visible { outline: 2px solid #6a45cf; outline-offset: 2px; }
body .auth-panel[data-auth-surface] .auth-form :is(.auth-marketing-choice, .auth-terms-copy) > span { padding-top: 0; }
body .auth-panel[data-auth-surface] .auth-form .auth-optional { color: #8a8590; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
body .auth-panel[data-auth-surface] .auth-form .auth-terms-copy a { color: #5b45b0; font-weight: 650; }

/* ---- Sign-up on a phone ----------------------------------------------------
   Fields use 16px text so iOS does not zoom, rows keep comfortable touch
   targets, and nothing runs past the edge of the pop-up. */
@media (max-width: 560px) {
  body .auth-panel[data-auth-surface] .auth-form { gap: 14px; }
  body .auth-panel[data-auth-surface] .auth-form input:not([type="checkbox"]):not([type="radio"]) { font-size: 16px; }
  body .auth-panel[data-auth-surface] .auth-form .auth-phone-entry { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  body .auth-panel[data-auth-surface] .auth-form :is(.auth-marketing-choice, .auth-terms-copy) { gap: 10px; font-size: 13px !important; }
  body .auth-panel[data-auth-surface] { min-width: 0; max-width: 100%; }
  body .auth-panel[data-auth-surface] :is(input, button) { max-width: 100%; }
}
