/* Profile plan card, settings groups, manage plan, and blocked accounts.
   Uses the existing Aisle tokens. No new palette. */

/* One width for every card on the Profile tab: 16pt from each screen edge,
   set once here (design, Nov 9, on Richard's "Can we make all the different
   profiles cards the same width?"). The Profile screen carries the 16pt in
   the same 480 max column the pushed Profile screens use, the column inside
   it adds none, and no card adds its own side margin or negative inset. The
   photo grid and its caption stay at 20pt, as they were (Richard: "the photo
   section on top can remain"). */
.screen.aisle-profile-screen {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.aisle-profile-screen > .profile-photos {
  margin-left: 4px;
  margin-right: 4px;
}

.aisle-profile-column {
  padding: 0;
}

/* Pending Verification Photo: a standard Profile card, same border and
   corners as the Sticker Sheet card, with a small muted label. */
.profile-verify-card {
  margin: 16px 0 0;
  padding: 16px;
  background: var(--aisle-white);
  border: 1px solid #E6DED0;
  border-radius: 20px;
}

.profile-verify-label {
  margin: 0 0 8px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--rt-muted, #5F5A54);
}

.profile-verify-note {
  margin: 8px 0 0;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
  text-align: center;
}

.aisle-profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.aisle-profile-name-row .aisle-profile-name {
  margin-bottom: 2px;
}

.aisle-profile-name-row .gm-badge-line {
  width: auto;
  flex: 0 0 auto;
}

.profile-plan-card {
  box-sizing: border-box;
  min-height: 124px;
  margin: 16px 0 0;
  padding: 16px;
  background: var(--aisle-white);
  border: 1px solid #E6DED0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-plan-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-plan-badge {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: block;
}

.profile-plan-kicker {
  margin: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
}

.profile-plan-name {
  margin: 2px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-title-sm-weight, 700);
  font-size: var(--aisle-title-sm-size, 24px);
  line-height: 1.2;
  color: var(--aisle-ink);
}

.profile-plan-meta {
  margin: 6px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
}

.profile-plan-free {
  margin: 8px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-body-weight, 400);
  font-size: var(--aisle-body-size, 15px);
  line-height: var(--aisle-body-lh, 1.45);
  color: var(--aisle-ink);
}

.profile-plan-held {
  margin: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  line-height: 1.35;
  color: var(--rt-muted, #5F5A54);
}

/* Launch perks S2: one look for the "Plus and Premium open when Discover
   does" line everywhere (design, #487). Manage Plan and the Free card keep
   it left-aligned; on a sheet it sits where the buy button was. */
.profile-plans-closed,
.plans-closed-line {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--aisle-ink, #1C1917);
}

.profile-pushed-inner > .profile-plans-closed {
  margin: 0 0 12px;
}

.profile-plan-card .profile-plans-closed {
  margin: 8px 0 0;
}

.plans-closed-line.is-sheet {
  margin: 16px 0 0;
  text-align: center;
}

.profile-plan-card .profile-plan-held {
  margin: 6px 0 0;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
}

.profile-plan-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.profile-pill {
  box-sizing: border-box;
  height: 36px;
  border-radius: 999px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-btn-weight, 600);
  font-size: var(--aisle-btn-size, 16px);
  text-transform: none;
  cursor: pointer;
}

.profile-pill-manage {
  width: 108px;
  background: var(--aisle-white);
  color: var(--aisle-ink);
  border: 1.5px solid var(--aisle-ink);
}

.profile-pill-upgrade {
  min-width: 108px;
  padding: 0 16px;
  background: var(--aisle-tomato);
  color: var(--aisle-white);
  border: none;
}

.profile-pill:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Manage as a link (founder Premium on the web opens the billing portal). */
.profile-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Founder Premium offer (launch perks P2): on the plan card and the Premium
   card in Manage Plan during the founding month. The terms use the button's
   type size, above the button, as the plan sets them. Design picks the
   final placement. */
.profile-founder-offer {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E6DED0;
}

.profile-founder-kicker {
  margin: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
}

.profile-founder-terms {
  margin: 6px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 400;
  font-size: var(--aisle-btn-size, 16px);
  line-height: 1.4;
  color: var(--aisle-ink, #1C1917);
}

.profile-founder-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  margin-top: 10px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--aisle-ink, #1C1917);
  cursor: pointer;
}

.profile-founder-agree input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--aisle-produce);
}

.profile-founder-agree input:focus-visible {
  outline: 2px solid var(--aisle-produce);
  outline-offset: 2px;
}

/* Full width under the box, also on the Premium card in Manage Plan, where
   .profile-tier .profile-pill would right-align it (design, #491). */
.profile-tier .profile-founder-offer .profile-pill.profile-founder-buy,
.profile-founder-offer .profile-pill.profile-founder-buy {
  align-self: stretch;
  height: 48px;
  margin-top: 8px;
}

.profile-founder-offer .profile-founder-buy:disabled {
  opacity: 1;
  background: #F6DCD9;
  color: #A32A20;
}

.profile-founder-ends {
  margin: 8px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
}

.profile-checkout-note {
  margin: 12px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: var(--aisle-tomato);
}

.profile-checkout-note.is-pending {
  color: var(--aisle-ink);
}

/* Always there so VoiceOver hears it change. Takes no room while empty. */
.profile-tier-live {
  margin: 0;
}

.profile-tier-live.profile-checkout-note {
  margin-top: 12px;
}

.profile-groups {
  margin-top: 24px;
}

.profile-group {
  margin-top: 24px;
}

.profile-group:first-child {
  margin-top: 0;
}

.profile-group-label {
  margin: 0 0 8px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-section-weight, 700);
  font-size: var(--aisle-section-size, 12px);
  letter-spacing: var(--aisle-section-track, 0.06em);
  text-transform: uppercase;
  color: var(--rt-muted, #5F5A54);
}

.profile-group-card {
  background: var(--aisle-white);
  border: 1px solid #E6DED0;
  border-radius: 16px;
  overflow: hidden;
}

.profile-row {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: none;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  background: var(--aisle-white);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  color: inherit;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-row-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--aisle-sub-weight, 600);
  font-size: var(--aisle-sub-size, 16px);
  text-transform: none;
  color: var(--aisle-ink);
}

.profile-row-sub {
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
}

.profile-row-count,
.profile-row-chevron {
  font-weight: 400;
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
  flex: 0 0 auto;
}

.profile-row-chevron {
  color: var(--aisle-muted);
}

.profile-reply {
  margin: 8px 2px 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
}

.profile-pushed {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: auto;
  background: var(--aisle-cream);
  color: var(--aisle-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

/* The wordmark and tab bar stay up. Same ‹ Profile control, in the open column.
   Pin the wordmark so a scrolled Profile cannot show through that 44px strip. */
.app .profile-pushed {
  top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 8px + 44px);
  z-index: 80;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.app:has(.profile-pushed) > .aisle-app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 90;
  background: var(--aisle-cream);
}

.profile-pushed-inner {
  box-sizing: border-box;
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.profile-back {
  position: sticky;
  top: 0;
  z-index: 2;
  border: none;
  background: var(--aisle-cream);
  padding: 8px 0;
  min-height: 44px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-btn-weight, 600);
  font-size: var(--aisle-btn-size, 16px);
  white-space: nowrap;
  color: var(--aisle-produce);
  cursor: pointer;
}

/* Full-width bar under the wordmark on every pushed Profile screen (Plan,
   Safety, Privacy, Blocked, badges, My Groceries). The button is sticky, so a
   button-width cream patch let cards scroll under and around it. The 16px
   inset is the label, not the row. */
.profile-pushed .profile-back {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: calc(100% + 32px);
  height: 44px;
  min-height: 44px;
  margin: -16px -16px 0;
  padding: 0 0 0 16px;
  background: #F7F1E6;
  border-bottom: 1px solid transparent;
  text-align: left;
}

.profile-pushed.is-scrolled .profile-back {
  border-bottom-color: rgba(28, 25, 23, 0.08);
}

.profile-pushed-title {
  margin: 4px 0 8px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-title-weight, 700);
  font-size: var(--aisle-title-size, 28px);
  line-height: var(--aisle-title-lh, 1.15);
  letter-spacing: var(--aisle-title-track, -0.4px);
  text-transform: none;
  color: var(--aisle-ink);
}

.profile-pushed-sub {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: 13px;
  color: var(--rt-muted, #5F5A54);
}

.profile-tier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-tier {
  box-sizing: border-box;
  min-height: 118px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: var(--aisle-white);
  border: 1px solid #E6DED0;
  display: flex;
  flex-direction: column;
}

.profile-tier.is-current {
  background: var(--aisle-sage);
  border: 2px solid var(--aisle-produce);
}

.profile-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-tier-ident {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-tier-badge {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
}

.profile-tier-name {
  margin: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-title-sm-weight, 700);
  font-size: var(--aisle-title-sm-size, 24px);
  line-height: 1.2;
  color: var(--aisle-ink);
}

.profile-tier-price {
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
  text-align: right;
}

.profile-current-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 96px;
  height: 22px;
  margin-top: 8px;
  padding: 0;
  border-radius: 999px;
  background: var(--aisle-produce);
  color: #fff;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 22px;
}

.profile-tier-features {
  margin: 8px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  line-height: 1.35;
  color: var(--rt-muted, #5F5A54);
}

.profile-tier-pending {
  margin: 6px 0 0;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  color: var(--rt-muted, #5F5A54);
}

.profile-tier .profile-pill {
  align-self: flex-end;
  margin-top: auto;
}

.profile-pill-down {
  min-width: 118px;
  padding: 0 14px;
  background: var(--aisle-white);
  color: var(--aisle-ink);
  border: 1.5px solid var(--aisle-muted);
}

/* Plan notes under the tier cards: stickers, profile prompts, the sheet. */
.profile-manage-notes {
  margin: 16px 0 0;
}

.profile-manage-note {
  margin: 0 0 8px;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  line-height: 1.4;
  color: var(--rt-muted, #5F5A54);
}

.profile-manage-foot {
  margin: 16px 0 0;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  line-height: 1.4;
  color: var(--rt-muted, #5F5A54);
}

.profile-manage-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 16px;
  border: none;
  background: transparent;
  padding: 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-btn-weight, 600);
  font-size: var(--aisle-btn-size, 16px);
  white-space: nowrap;
  color: var(--aisle-produce);
  cursor: pointer;
  text-decoration: none;
}

#profile-blocked-screen .profile-pushed-inner {
  padding-left: 0;
  padding-right: 0;
}

/* Blocked has no side padding, so its bar is already full width. */
#profile-blocked-screen .profile-back {
  width: 100%;
  margin: -16px 0 0;
}

#profile-blocked-screen .profile-pushed-title,
#profile-blocked-screen .profile-pushed-sub {
  margin-left: 16px;
  margin-right: 16px;
}

.profile-block-card {
  background: #fff;
  border: 1px solid #E6DED0;
  border-radius: 16px;
  margin: 0 16px;
  overflow: hidden;
}

.profile-block-row {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: 72px;
  min-height: 72px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

.profile-block-row:last-child {
  border-bottom: none;
}

#profile-unblock-sheet .safety-tomato,
#profile-delete-sheet .safety-tomato {
  background-color: var(--tomato);
  background-image: none;
  box-shadow: none;
}

#profile-unblock-sheet .safety-tomato::after,
#profile-delete-sheet .safety-tomato::after {
  content: none;
  background: none;
  background-image: none;
}

.profile-block-avatar,
.profile-block-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 44px;
}

.profile-block-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aisle-sage);
  color: var(--aisle-produce-on-sage, #1A6B43);
  font-weight: 700;
  font-size: 15px;
}

.profile-block-photo {
  object-fit: cover;
}

.profile-block-name {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

.profile-block-date {
  margin: 2px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--rt-muted, #5F5A54);
}

.profile-block-permanent {
  margin-left: auto;
  border: 0;
  outline: none;
  background: none;
  box-shadow: none;
  color: var(--rt-muted, #5F5A54);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.profile-unblock {
  margin-left: auto;
  width: 88px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid var(--aisle-ink);
  background: var(--aisle-white);
  color: var(--aisle-ink);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.profile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 12px;
}

.profile-empty img {
  width: 56px;
  height: 56px;
}

.profile-empty h2 {
  margin: 12px 0 6px;
  font-weight: 700;
  font-size: 18px;
}

.profile-empty p {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  color: var(--rt-muted, #5F5A54);
}

.profile-note {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--aisle-sage);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: var(--aisle-ink);
}

.profile-note a {
  display: inline-block;
  margin-top: 4px;
  color: var(--aisle-produce);
  font-weight: 600;
  text-decoration: none;
}

.profile-delete-password {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  min-height: 44px;
  border: 1.5px solid rgba(28, 25, 23, 0.12);
  border-radius: 14px;
  background: var(--aisle-white);
  padding: 12px 14px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  color: var(--aisle-ink);
}

.profile-promo {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-promo-label {
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--aisle-ink);
}

.profile-promo-input {
  box-sizing: border-box;
  width: 100%;
  border: 1.5px solid rgba(28, 25, 23, 0.12);
  border-radius: 14px;
  background: var(--aisle-white);
  padding: 12px 14px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  color: var(--aisle-ink);
}

.profile-promo-apply {
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  background: var(--aisle-produce);
  color: var(--aisle-white);
  padding: 10px 16px;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  font-size: 14px;
}

.profile-promo-ends,
.profile-promo-redeemed {
  margin: 12px 0 0;
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  line-height: 1.4;
  color: var(--rt-muted, #5F5A54);
}

.profile-tier .profile-promo-ends {
  margin: 8px 0 0;
}

.profile-toast {
  position: fixed;
  left: 50%;
  /* 8px above the tab bar, which grows by the home-bar inset (aisle.css .nav). */
  bottom: calc(85px + 8px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 460;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--aisle-ink);
  color: var(--aisle-white);
  font-family: Outfit, "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* One-time notice after an ID check expires (profile-account.js
   showExpiredNotice). Sits where the toast does and stays until tapped. */
.profile-notice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
  box-sizing: border-box;
}

.profile-notice-title {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.profile-notice-text {
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

/* Verify Again matches the sign-in screen's Try Again / Sign Out button
   (clerk-keep-retry): full width, 48px tall, 12px corners, filled tomato.
   Not Now sits under it as plain text. */
.profile-notice-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.profile-notice-go {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background-color: var(--tomato, #C9362A);
  color: var(--aisle-white, #FFFFFF);
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  line-height: calc(18 / 13);
  cursor: pointer;
}

.profile-notice-later {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

.incognito-block {
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 12px 16px 14px;
  border: none;
  border-bottom: 1px solid #E6DED0;
  background: #FFFFFF;
  text-align: left;
  font-family: Outfit;
  color: #1C1917;
  cursor: pointer;
}

.incognito-block.is-held {
  opacity: 0.4;
  cursor: default;
}

.incognito-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 31px;
}

.incognito-label {
  flex: 1 1 auto;
  min-width: 0;
  font-family: Outfit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: #1C1917;
}

.incognito-block.is-locked .incognito-label {
  color: var(--rt-muted, #5F5A54);
}

.incognito-help {
  margin: 8px 0 0;
  font-family: Outfit;
  font-weight: var(--aisle-caption-weight, 500);
  font-size: var(--aisle-caption-size, 13px);
  line-height: 18px;
  color: var(--rt-muted, #5F5A54);
}

.incognito-help.is-error {
  color: var(--tomato);
}

.incognito-switch {
  position: relative;
  flex: 0 0 51px;
  width: 51px;
  height: 31px;
  border-radius: 15.5px;
  background: #DCD6CB;
}

.incognito-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #FFFFFF;
}

.incognito-switch.is-on {
  background: #1F7A4D;
}

.incognito-switch.is-on .incognito-switch-knob {
  left: 22px;
}

.incognito-lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.incognito-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 11px;
  background: #D7E6D4;
  color: var(--aisle-produce-on-sage, #1A6B43);
  font-family: Outfit;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
}

.incognito-backdrop.safety-backdrop {
  background: rgba(28, 25, 23, 0.32);
}

.incognito-sheet.safety-sheet {
  border-radius: 24px 24px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: center;
}

.incognito-sheet-glyph {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.incognito-sheet-title {
  margin: 8px 0 8px;
  font-family: Outfit;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #1C1917;
  text-align: center;
}

.incognito-sheet-copy {
  margin: 0 8px 8px;
  font-family: Outfit;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rt-muted, #5F5A54);
  text-align: center;
}

.incognito-tomato {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  background: var(--tomato);
  color: #FFFFFF;
  font-family: Outfit;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
}

.incognito-tomato:disabled {
  opacity: 0.4;
  cursor: default;
}

.incognito-cancel {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  background: transparent;
  color: #1C1917;
  font-family: Outfit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.incognito-paywall-mark {
  display: block;
  height: 44px;
  width: auto;
  margin: 8px auto 4px;
}

.incognito-paywall-title {
  margin: 8px 0 4px;
  font-family: Outfit;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: #1C1917;
  text-align: center;
}

.incognito-paywall-sub {
  margin: 0 12px 14px;
  font-family: Outfit;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: var(--rt-muted, #5F5A54);
  text-align: center;
}

.incognito-tabs {
  display: flex;
  height: 40px;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 2px;
  border: 1px solid #E6DED0;
  border-radius: 20px;
  background: #FFFFFF;
}

.incognito-tab {
  flex: 1 1 0;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: #1C1917;
  font-family: Outfit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.incognito-tab.is-on {
  background: #1C1917;
  color: #FFFFFF;
}

.incognito-plan {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 2px solid #1F7A4D;
  border-radius: 18px;
  background: #D7E6D4;
  text-align: left;
}

.incognito-plan-badge {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.incognito-plan-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.incognito-plan-name {
  margin: 0;
  font-family: Outfit;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #1C1917;
}

.incognito-plan-bill {
  margin: 2px 0 0;
  font-family: Outfit;
  font-weight: 400;
  font-size: 13px;
  color: var(--rt-muted, #5F5A54);
}

.incognito-plan-price {
  margin: 0;
  flex: 0 0 auto;
  font-family: Outfit;
  font-weight: 600;
  font-size: 16px;
  color: #1C1917;
}

.incognito-features {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.incognito-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: Outfit;
  font-weight: 400;
  font-size: 15px;
  color: #1C1917;
}

.incognito-paywall-error {
  margin: 10px 0 0;
  font-family: Outfit;
  font-weight: 500;
  font-size: 13px;
  color: var(--tomato);
}

.incognito-paywall-note {
  margin: 10px 0 0;
  font-family: Outfit;
  font-weight: 500;
  font-size: 13px;
  color: #1C1917;
}

.incognito-paywall-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 14px 0 0;
  font-family: Outfit;
  font-weight: 500;
  font-size: 13px;
  color: #1F7A4D;
}

.incognito-paywall-link {
  border: none;
  background: transparent;
  padding: 0;
  color: #1F7A4D;
  font-family: Outfit;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

.incognito-on-mark {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.incognito-on-mark .incognito-glyph {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.incognito-lapse {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 52px;
  margin: 12px 0;
  padding: 4px 4px 4px 12px;
  background: #FFFFFF;
  border: 1px solid #E6DED0;
  border-radius: 14px;
}

.incognito-lapse .incognito-glyph {
  flex: 0 0 auto;
  display: block;
}

.incognito-lapse-copy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: Outfit;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  color: #1C1917;
}

.incognito-lapse-dismiss {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #8A837A;
  font-family: Outfit;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* My Groceries. Same Aisle tokens as the plan card and account rows. */

.profile-row-lock {
  color: var(--aisle-produce);
  flex: 0 0 auto;
}

.profile-row-only {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--rt-muted, #5F5A54);
}

.groceries-summary {
  margin: 16px 0 0;
}

.groceries-card {
  background: var(--aisle-white);
  border: 1px solid #E6DED0;
  border-radius: 20px;
  padding: 18px;
}

.groceries-card-head,
.groceries-screen-head,
.groceries-kicker-row,
.groceries-budget-line,
.groceries-foot,
.groceries-meter-top,
.groceries-private-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.groceries-private-row {
  justify-content: flex-start;
  margin: 0 0 12px;
}

.groceries-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  white-space: nowrap;
  color: var(--aisle-ink);
}

.groceries-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--aisle-sage);
  color: var(--aisle-produce-on-sage, #1A6B43);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.groceries-spend-block {
  margin-top: 14px;
}

.groceries-kicker,
.groceries-never,
.groceries-footnote,
.groceries-example-tag,
.groceries-hint-detail {
  color: var(--rt-muted, #5F5A54);
}

.groceries-kicker,
.groceries-never {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.groceries-spend-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.groceries-spend {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.05;
  color: var(--aisle-ink);
}

.groceries-delta,
.groceries-hint,
.groceries-hint-title {
  margin: 0;
  font-weight: 600;
}

.groceries-delta,
.groceries-hint {
  font-size: 14px;
}

.groceries-hint-title {
  font-size: 15px;
}

.groceries-delta.is-down,
.groceries-hint.is-down,
.groceries-hint-row.is-down,
.groceries-left {
  color: var(--aisle-produce);
}

.groceries-delta.is-up,
.groceries-hint.is-up,
.groceries-hint-row.is-up,
.groceries-see,
.groceries-edit {
  color: var(--aisle-tomato);
}

.groceries-delta.is-flat {
  color: var(--rt-muted, #5F5A54);
}

.groceries-hint-row.is-low {
  color: var(--aisle-ink);
}

.groceries-hint-row.is-low .groceries-tri {
  color: var(--aisle-gold);
}

.groceries-budget-line {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rt-muted, #5F5A54);
}

.groceries-left {
  font-weight: 600;
}

.groceries-bar,
.groceries-meter-track {
  border-radius: 999px;
  background: #E7F0E4;
  overflow: hidden;
}

.groceries-bar {
  margin-top: 8px;
  height: 10px;
}

.groceries-bar-fill,
.groceries-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--aisle-produce);
}

.groceries-foot {
  margin-top: 14px;
}

.groceries-see,
.groceries-edit {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.groceries-see {
  margin-left: auto;
  font-size: var(--aisle-btn-size, 16px);
  font-weight: var(--aisle-btn-weight, 600);
  text-transform: none;
}

.groceries-edit {
  font-size: 14px;
}

span.groceries-edit {
  cursor: default;
}

.groceries-example-tag {
  margin: 8px 2px 0;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.groceries-screen-head .groceries-example-tag,
.groceries-screen-head .profile-pushed-title {
  margin: 0;
}

.groceries-block {
  margin-top: 12px;
}

.groceries-months {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 96px;
}

.groceries-month {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--rt-muted, #5F5A54);
}

.groceries-month-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 8px 8px 3px 3px;
  background: var(--aisle-sage);
}

.groceries-month-bar.is-current {
  background: var(--aisle-produce);
}

.groceries-meter {
  margin-top: 12px;
}

.groceries-meter-top {
  font-size: 15px;
  font-weight: 600;
  color: var(--aisle-ink);
}

.groceries-meter-track {
  margin-top: 6px;
  height: 8px;
}

.groceries-hint-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.groceries-hint-detail,
.groceries-footnote {
  font-weight: 400;
}

.groceries-hint-detail {
  margin: 2px 0 0;
  font-size: 13px;
}

.groceries-footnote {
  margin: 12px 2px 0;
  font-size: 11px;
  line-height: 1.4;
}

.groceries-budget-input {
  width: 88px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #E6DED0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--aisle-ink);
  background: var(--aisle-white);
}

.groceries-tri {
  margin-right: 4px;
}

/* Show Ads (grocery sponsor ads): Premium only, on Manage Plan under the
   tier cards. Same produce switch as Incognito; helper 15pt muted. */
.profile-show-ads-card {
  margin: 16px 0 0;
}

.profile-show-ads {
  min-height: 64px;
  padding: 10px 16px;
}

.profile-show-ads-sub {
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: var(--rt-muted, #5F5A54);
}

/* Creator stats: outlined Try Again when the stats frame doesn't load.
   Same shape as the sponsor ads' outlined Try Again. */
.profile-creator-stats-retry {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 12px 0 0;
  padding: 0 12px;
  border: 1.5px solid var(--aisle-produce);
  border-radius: 12px;
  background-color: transparent;
  color: var(--aisle-produce);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Safety Tips (launch gap 8, design Nov 15). The intro sits under the title
   at 17pt ink; each tip is a row with a 40pt chip holding a 22pt ink icon,
   a 17pt title and a 15pt muted body, 16pt apart with a thin divider. The
   support panel comes last, white like the Profile cards, and doesn't stick. */
#profile-safety-screen .profile-pushed-sub {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--aisle-ink, #1C1917);
}

.profile-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #EFE9DD;
}

.profile-tip:first-child {
  padding-top: 0;
  border-top: none;
}

.profile-tip-chip {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #EFE9DD;
  color: var(--aisle-ink, #1C1917);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-tip-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.profile-tip-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-tip-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--aisle-ink, #1C1917);
}

.profile-tip-body {
  font-size: 15px;
  line-height: 1.4;
  color: var(--rt-muted, #5F5A54);
}

.profile-tip-support {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: var(--aisle-white, #fff);
  border: 1px solid #E6DED0;
}

.profile-tip-support-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--aisle-ink, #1C1917);
}

.profile-tip-911 {
  color: #1F7A4D;
  font-weight: 600;
  text-decoration: underline;
}

/* Call 988 and Text 988 are links drawn as the chat support sheet's buttons. */
.profile-tip-button {
  display: block;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
}

.profile-tip-button.safety-outline {
  color: var(--aisle-ink, #1C1917);
}

.profile-tip-911:focus-visible,
.profile-tip-button:focus-visible {
  outline: 2px solid #1F7A4D;
  outline-offset: 2px;
}

/* Invite A Friend: its own card above Help & Support, an ink share icon,
   and no chevron, since it opens the share sheet rather than a screen. */
.profile-invite-row {
  justify-content: flex-start;
}

.profile-invite-icon {
  flex: 0 0 22px;
  color: var(--aisle-ink);
}

/* Inset, because .profile-group-card clips with overflow: hidden. */
.profile-invite-row:focus-visible {
  outline: 2px solid #1F7A4D;
  outline-offset: -2px;
}

.profile-invite-link {
  margin: 0;
  padding: 0 16px 12px 50px;
  font-size: 13px;
  font-weight: var(--aisle-caption-weight, 500);
  color: var(--rt-muted, #5F5A54);
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

/* The founder offer on the Incognito sheet's Premium tab. */
.profile-founder-offer.is-sheet {
  text-align: left;
}
