/* Opt-in presentation: the ordinary Profile and its handlers remain intact. */
#view-perfil.profile-preview {
  max-width: 720px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}
#view-perfil.profile-preview > :not(.profile-heading):not(.profile-preview__content),
#view-perfil.profile-preview > .profile-heading > :not(h1) {
  display: none !important;
}
.profile-preview__content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.profile-preview__identity { display: flex; align-items: center; gap: 16px; padding: 4px 0; min-width: 0; }
.profile-preview__identity > div { min-width: 0; }
.profile-preview__identity h2 { margin: 0; color: #142b43; font-size: 1.4rem; letter-spacing: -.025em; }
.profile-preview__identity p { margin: 5px 0 0; color: #627182; font-size: .9rem; overflow-wrap: anywhere; }
.profile-preview__avatar { display: grid; flex: 0 0 60px; height: 60px; place-items: center; border-radius: 50%; color: #195b71; background: #e0f1f4; font-size: 1.15rem; font-weight: 750; }
.profile-preview__badge { display: inline-block; margin-top: 9px; border-radius: 6px; padding: 4px 8px; background: #f5eddd; color: #735521; font-size: .7rem; font-weight: 650; }
.profile-preview__controls { color: #627182; font-size: .77rem; border-block: 1px solid #dfe6ec; }
.profile-preview__controls summary { min-height: 44px; padding: 13px 0; cursor: pointer; color: #4b6072; }
.profile-preview__controls summary span { margin-left: 8px; color: #627182; }
.profile-preview__controls p { margin: 0 0 12px; line-height: 1.5; }
.profile-preview__controls label { display: block; margin-bottom: 6px; font-weight: 650; }
.profile-preview__controls select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #cad6df; border-radius: 8px; background: #fff; color: #142b43; font: inherit; font-size: 16px; }
.profile-preview__section { min-width: 0; }
.profile-preview__section > h2 { margin: 0 0 10px; color: #627182; font-size: .71rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.profile-preview__access { padding: 16px 18px 8px; background: #fff; border: 1px solid #dce5ec; border-radius: 14px; }
.profile-preview__access h3 { margin: 0; color: #142b43; font-size: 1rem; font-weight: 720; }
.profile-preview__access p { margin: 7px 0 0; color: #627182; font-size: .85rem; line-height: 1.5; }
.profile-preview__access #profilePreviewDescription { white-space: pre-line; }
.profile-subscription__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.profile-subscription__actions :is(a,button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border: 1px solid var(--pp-border); border-radius: 10px; background: transparent; color: var(--pp-ink); font: inherit; font-size: .85rem; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; }
.profile-subscription__actions .profile-subscription__primary { background: #006e87; border-color: #006e87; color: #fff; }
.profile-subscription__actions [hidden] { display: none; }
.profile-subscription__actions :disabled { cursor: default; opacity: .65; }
.profile-subscription__actions :focus-visible { outline: 3px solid #19a9c4; outline-offset: 3px; }
.profile-subscription .profile-subscription__help { font-size: .78rem; margin-bottom: 8px; }
.profile-preview__access .profile-preview__date { margin-top: 2px; font-size: .8rem; }
.profile-preview__text-action { display: inline-flex; align-items: center; padding: 10px 0; border: 0; background: none; color: #14617a; font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; }
.profile-preview__list, .profile-preview__owned { overflow: hidden; margin: 0; padding: 0; background: #fff; border: 1px solid #dce5ec; border-radius: 14px; list-style: none; }
.profile-preview__row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 12px 14px; border: 0; border-radius: 0; background: none; color: #142b43; text-align: left; font: inherit; cursor: pointer; }
.profile-preview__row + .profile-preview__row { border-top: 1px solid #edf0f3; }
.profile-preview__row:hover { background: #f6f9fb; }
.profile-preview__icon { display: grid; flex: 0 0 24px; place-items: center; color: #687c8e; }
.profile-preview__content svg:not(:where(.lessons-back__icon svg)) { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.profile-preview__row-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.profile-preview__row-copy strong { font-size: .85rem; font-weight: 650; line-height: 1.35; }
.profile-preview__row-copy small { color: #687789; font-size: .74rem; line-height: 1.45; }
.profile-preview__arrow { flex: 0 0 auto; color: #8b9aaa; font-size: 1.1rem; }
.profile-preview__row--danger strong, .profile-preview__row--danger .profile-preview__icon { color: #a04a40; }
.profile-preview__owned li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 16px; }
.profile-preview__owned li + li { border-top: 1px solid #edf0f3; }
.profile-preview__owned li > div { flex: 1 1 170px; }
.profile-preview__owned strong { color: #142b43; font-size: .84rem; font-weight: 650; }
.profile-preview__owned p { margin: 4px 0 0; color: #687789; font-size: .74rem; }
.profile-preview__owned li > span { padding: 4px 7px; border-radius: 5px; background: #f0f4f7; color: #52697b; font-size: .68rem; font-weight: 600; }
.profile-preview__empty { margin: 0; padding: 16px; border: 1px solid #dce5ec; border-radius: 14px; color: #687789; font-size: .84rem; }
.profile-preview__signout { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; padding: 12px; border: 1px solid #e0e5eb; border-radius: 10px; background: none; color: #925047; font: inherit; font-size: .85rem; cursor: pointer; }
.profile-preview :is(button, select, summary), .profile-preview-dialog button { min-height: 44px; touch-action: manipulation; }
.profile-preview button { white-space: normal; }
.profile-preview :is(button, select, summary):focus-visible { outline: 2px solid #14617a; outline-offset: -3px; }
.profile-preview [hidden] { display: none !important; }
.profile-preview-dialog { color-scheme: light; }
.profile-preview-dialog p { color: #627182; line-height: 1.6; }
.profile-preview-dialog .profile-preview-dialog__note { font-size: .78rem; padding-top: 12px; border-top: 1px solid #e0e5eb; }
.profile-preview-dialog__options { display: grid; gap: 8px; min-width: 0; margin: 16px 0; padding: 0; border: 0; }
.profile-preview-dialog__options legend { margin-bottom: 8px; color: #627182; font-size: .78rem; }
.profile-preview-dialog__option { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px; border: 1px solid #dce5ec; border-radius: 10px; cursor: pointer; touch-action: manipulation; }
.profile-preview-dialog__option:has(input:checked) { border-color: #3c8294; background: #f1f8fa; }
.profile-preview-dialog__option input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #14617a; }
.profile-preview-dialog__option span { display: grid; gap: 4px; }
.profile-preview-dialog__option strong { color: #142b43; font-size: .9rem; }
.profile-preview-dialog__option small { color: #627182; font-size: .76rem; line-height: 1.4; }
.profile-preview-dialog__option:has(input:focus-visible) { outline: 2px solid #14617a; outline-offset: 2px; }
.profile-preview-dialog [hidden] { display: none !important; }

/* Visual finish only. All variants use the existing preview DOM and states. */
#view-perfil.profile-preview,
.profile-preview-dialog {
  --pp-ink: #092747;
  --pp-muted: #5d7184;
  --pp-cyan: #087c9b;
  --pp-border: rgba(34, 76, 108, .10);
  --pp-surface: rgba(255, 255, 255, .94);
  --pp-shadow-sm: 0 1px 2px rgba(16, 50, 78, .035), 0 4px 12px rgba(16, 50, 78, .025);
  --pp-shadow-md: 0 2px 4px rgba(16, 50, 78, .035), 0 8px 24px rgba(16, 50, 78, .055);
  --pp-radius-card: 20px;
  --pp-radius-group: 18px;
  --pp-radius-icon: 12px;
  --pp-duration: 160ms;
  --pp-ease: cubic-bezier(.2, .7, .3, 1);
  --pp-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l4 4 5-7 5 7 4-4-2 12H5L3 7ZM6 22h12'/%3E%3C/svg%3E");
  --pp-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
  --pp-music: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E");
  --pp-app: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='4'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h4'/%3E%3C/svg%3E");
  --pp-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E");
}
body:has(#view-perfil.profile-preview:not([hidden])) .app-main {
  background: radial-gradient(ellipse 90% 360px at 15% 0%, rgba(255, 255, 255, .96), transparent),
    linear-gradient(180deg, #f6fafc 0, #edf3f7 720px, #f2f6f9 100%);
}
#view-perfil.profile-preview { background: transparent; }
#view-perfil.profile-preview .profile-heading h1 { color: var(--pp-ink); font-weight: 790; letter-spacing: -.04em; }
.profile-preview__content { gap: 24px; }
.profile-preview__identity { gap: 16px; }
.profile-preview__avatar {
  flex-basis: 68px;
  height: 68px;
  color: #fff;
  font-size: 1.24rem;
  background: linear-gradient(140deg, #072751 8%, #096184 60%, #22b8cf 100%);
  border: 3px solid rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 1px rgba(14, 112, 143, .10), 0 6px 16px rgba(7, 74, 107, .12);
}
.profile-preview__identity h2 { color: var(--pp-ink); font-size: 1.48rem; font-weight: 780; letter-spacing: -.035em; }
.profile-preview__identity p { color: var(--pp-muted); font-size: .86rem; }
.profile-preview__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(178, 143, 63, .16);
  border-radius: 999px;
  color: #795c21;
  background: linear-gradient(110deg, #fff8e5, #f7efd9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  font-weight: 700;
}
.profile-preview__badge::before { content: ""; width: 13px; height: 13px; background: currentColor; mask: var(--pp-crown) center / contain no-repeat; }
.profile-preview__controls { border-color: rgba(42, 84, 112, .08); }
.profile-preview__controls summary { color: #577185; font-size: .73rem; }
.profile-preview__section > h2 { margin: 0 0 11px 3px; color: #596f81; font-size: .69rem; font-weight: 720; letter-spacing: .09em; }
.profile-preview__access {
  position: relative;
  overflow: hidden;
  padding: 17px 18px 12px;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-card);
  background: linear-gradient(135deg, #fff, #f8fbfd);
  box-shadow: var(--pp-shadow-md), inset 0 1px 0 #fff;
}
.profile-preview__access::after { content: ""; position: absolute; inset: 0 20px auto; height: 2px; background: linear-gradient(90deg, transparent, rgba(49, 125, 151, .16), transparent); }
.profile-preview__access h3 { display: flex; align-items: center; gap: 9px; color: var(--pp-ink); font-size: 1.04rem; font-weight: 750; letter-spacing: -.018em; }
.profile-preview__access p { color: var(--pp-muted); }
.profile-preview__content[data-scenario^="fundador"] .profile-preview__access { border-color: rgba(178, 145, 71, .23); background: linear-gradient(125deg, #fffdf7, #fff 65%, #f8fbfa); }
.profile-preview__content[data-scenario="fundador"] .profile-preview__access::after { background: linear-gradient(90deg, transparent, rgba(185, 148, 51, .43), rgba(29, 157, 174, .17), transparent); }
.profile-preview__content[data-scenario^="fundador"] .profile-preview__access h3::before { content: ""; flex: 0 0 22px; height: 22px; background: #947327; mask: var(--pp-crown) center / contain no-repeat; }
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) .profile-preview__access { border-color: rgba(36, 130, 123, .19); background: linear-gradient(125deg, #f4fbf8, #fff 65%, #f5fbfd); }
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) .profile-preview__access h3::before { content: ""; flex: 0 0 22px; height: 22px; background: #358574; mask: var(--pp-check) center / contain no-repeat; }
#profilePreviewAction {
  gap: 8px;
  margin-top: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(23, 105, 132, .10);
  border-radius: 999px;
  background: rgba(230, 243, 247, .65);
  color: #175c75;
  font-size: .79rem;
}
#profilePreviewAction::after { content: ""; width: 14px; height: 14px; background: currentColor; mask: var(--pp-arrow) center / contain no-repeat; }
.profile-preview__content[data-scenario="sem-assinatura"] #profilePreviewAction { border-color: transparent; color: #fff; background: linear-gradient(120deg, #082d52, #125473); box-shadow: var(--pp-shadow-sm); }
.profile-preview__list, .profile-preview__owned { background: var(--pp-surface); border-color: var(--pp-border); border-radius: var(--pp-radius-group); box-shadow: var(--pp-shadow-sm); }
.profile-preview__row { gap: 11px; padding-inline: 14px; min-height: 68px; }
.profile-preview__row + .profile-preview__row, .profile-preview__owned li + li { border-color: rgba(38, 73, 99, .055); }
.profile-preview__icon { flex-basis: 34px; height: 34px; border-radius: var(--pp-radius-icon); color: var(--pp-icon-color, #287f9c); background: var(--pp-icon-bg, #eaf5f9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.profile-preview__content svg:not(:where(.lessons-back__icon svg)) { width: 18px; height: 18px; }
.profile-preview__section[aria-labelledby="profilePreviewPreferencesTitle"] { --pp-icon-color: #7b66a1; --pp-icon-bg: #f1edf8; }
.profile-preview__section[aria-labelledby="profilePreviewHelpTitle"] { --pp-icon-color: #3e897c; --pp-icon-bg: #eaf6f1; }
.profile-preview__section[aria-labelledby="profilePreviewPrivacyTitle"] { --pp-icon-color: #617f9c; --pp-icon-bg: #edf2f8; }
.profile-preview__section[aria-labelledby="profilePreviewAboutTitle"] { --pp-icon-color: #426c91; --pp-icon-bg: #ebf3f9; }
.profile-preview__row--danger .profile-preview__icon { color: #ac6059; background: #fcf0ee; }
.profile-preview__row--danger strong { color: #a45149; }
.profile-preview__row-copy strong { font-weight: 690; color: var(--pp-ink); }
.profile-preview__row--danger .profile-preview__row-copy strong { color: #a45149; }
.profile-preview__row-copy small { color: var(--pp-muted); }
.profile-preview__arrow { font-size: 1.15rem; color: #90a4b3; font-weight: 400; }
.profile-preview__owned li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 15px 14px; }
.profile-preview__owned li::before { content: ""; width: 19px; height: 19px; justify-self: center; background: #6293aa; mask: var(--pp-music) center / contain no-repeat; }
.profile-preview__owned li:has(p:not([hidden]))::before { background: #286981; mask-image: var(--pp-app); }
.profile-preview__owned li > span { border-radius: 999px; padding: 5px 8px; color: #536f9d; background: #eff3fb; font-size: .65rem; }
.profile-preview__owned li:has(p:not([hidden])) > span { color: #226a83; background: #eaf6fa; }
.profile-preview__content[data-scenario^="fundador"] .profile-preview__owned li[data-status="Incluído"] > span { color: #3e745c; background: #edf7f0; }
.profile-preview__empty { background: rgba(255, 255, 255, .4); border-color: var(--pp-border); border-radius: var(--pp-radius-group); }
.profile-preview__signout { color: #9b5750; background: rgba(251, 239, 237, .55); border-color: rgba(172, 96, 85, .12); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.profile-preview__row, .profile-preview__owned li, #profilePreviewAction, .profile-preview__signout,
.profile-preview__arrow, .profile-preview-dialog__option, .profile-preview-dialog button {
  transition: background-color var(--pp-duration) var(--pp-ease), border-color var(--pp-duration) var(--pp-ease), transform var(--pp-duration) var(--pp-ease), box-shadow var(--pp-duration) var(--pp-ease);
}
.profile-preview__row:active, #profilePreviewAction:active, .profile-preview__signout:active, .profile-preview-dialog button:active { transform: scale(.99); }
.profile-preview__row:active, .profile-preview__owned li:active { background: #eff6fa; }
@media (hover: hover) {
  .profile-preview__row:hover, .profile-preview__owned li:hover { background: #f3f8fb; }
  .profile-preview__row:hover .profile-preview__arrow { transform: translateX(2px); }
  #profilePreviewAction:hover { box-shadow: var(--pp-shadow-sm); filter: brightness(.98); }
  .profile-preview__signout:hover { background: #faeeeb; }
}
.profile-preview-dialog { width: min(440px, calc(100% - 24px)); }
#profileReferralDialog { inset: 0; margin: auto; }
#profileReferralLinkGroup[hidden] { display: none; }
#profileReferralLinkGroup label { display: block; font-size: .8rem; margin-bottom: 8px; }
#profileReferralLink { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--pp-border); border-radius: 12px; font: inherit; font-size: .85rem; }
.profile-preview-dialog::backdrop { background: rgba(16, 37, 57, .38); backdrop-filter: blur(5px); }
.profile-preview-dialog .personal-dialog__surface { padding: 22px; color: var(--pp-ink); background: linear-gradient(140deg, #fff, #f8fbfd); border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; box-shadow: 0 20px 60px rgba(15, 49, 77, .18), var(--pp-shadow-md); }
.profile-preview-dialog h2 { color: var(--pp-ink); font-size: 1.2rem; font-weight: 760; letter-spacing: -.025em; }
.profile-preview-dialog p { font-size: .87rem; color: var(--pp-muted); }
.profile-preview-dialog__options legend { font-size: .72rem; }
.profile-preview-dialog__option { min-height: 62px; border-color: var(--pp-border); border-radius: 14px; background: rgba(255, 255, 255, .8); }
.profile-preview-dialog__option:has(input:checked) { border-color: rgba(20, 119, 145, .5); background: linear-gradient(110deg, #eaf6fa, #f6fbfc); box-shadow: inset 0 0 0 1px rgba(20, 119, 145, .10), var(--pp-shadow-sm); }
.profile-preview-dialog .personal-button { min-height: 44px; margin-top: 12px; padding: 10px 20px; border: 1px solid rgba(13, 77, 110, .14); border-radius: 999px; color: #154b69; background: #eaf4f8; box-shadow: var(--pp-shadow-sm); font-size: .84rem; }
.profile-preview-dialog[open] { animation: profile-preview-modal-in 180ms var(--pp-ease); }
@keyframes profile-preview-modal-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
/* Access emphasis: presentation of existing scenario text and ownership only. */
.profile-preview__identity { gap: 18px; padding-block: 6px; }
.profile-preview__identity h2 { line-height: 1.2; }
.profile-preview__identity p { margin-top: 6px; line-height: 1.4; }
.profile-preview__section:is([aria-labelledby="profilePreviewAccountTitle"], [aria-labelledby="profilePreviewPreferencesTitle"], [aria-labelledby="profilePreviewHelpTitle"], [aria-labelledby="profilePreviewPrivacyTitle"], [aria-labelledby="profilePreviewAboutTitle"]) { margin-top: 2px; }
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) .profile-preview__access {
  padding: 19px 18px 15px;
  border-color: rgba(39, 136, 129, .25);
  background: radial-gradient(ellipse at 100% 0%, rgba(122, 209, 198, .16), transparent 65%), linear-gradient(130deg, #f7fcfa, #fff 70%);
  box-shadow: var(--pp-shadow-md), 0 3px 16px rgba(44, 130, 122, .045), inset 0 1px 0 #fff;
}
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) .profile-preview__access::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 153, 132, .48), rgba(54, 163, 185, .24), transparent);
}
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) .profile-preview__access h3 { gap: 11px; font-size: 1.1rem; font-weight: 780; }
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) .profile-preview__access h3::before {
  flex-basis: 36px;
  height: 36px;
  border: 1px solid rgba(46, 133, 119, .12);
  border-radius: 12px;
  mask: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c7e6d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / 23px no-repeat, #e8f5ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 5px rgba(37, 113, 102, .05);
}
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) #profilePreviewDescription {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: #416b66;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.4;
}
.profile-preview__content:is([data-scenario="anual"], [data-scenario="fundador-assinante"]) #profilePreviewDescription { padding: 4px 9px; border: 1px solid rgba(43, 122, 121, .12); border-radius: 999px; background: #eaf5f3; color: #2b6968; }
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) #profilePreviewDate { margin-top: 8px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.profile-preview__content:is([data-scenario="mensal"], [data-scenario="anual"], [data-scenario="fundador-assinante"]) #profilePreviewAction { margin-top: 14px; border-color: rgba(40, 123, 117, .14); background: #eaf5f2; color: #27675f; }
.profile-preview__content[data-scenario="sem-assinatura"] .profile-preview__access {
  padding: 20px 18px 16px;
  border-color: rgba(52, 115, 150, .20);
  background: radial-gradient(ellipse at 100% 0%, rgba(107, 183, 209, .14), transparent 65%), linear-gradient(135deg, #fff, #f7fafc);
  box-shadow: var(--pp-shadow-md), inset 0 1px 0 #fff;
}
.profile-preview__content[data-scenario="sem-assinatura"] .profile-preview__access::after { background: linear-gradient(90deg, transparent, rgba(45, 127, 164, .35), rgba(76, 178, 192, .18), transparent); }
.profile-preview__content[data-scenario="sem-assinatura"] .profile-preview__access h3 { font-size: 1.1rem; font-weight: 780; }
.profile-preview__content[data-scenario="sem-assinatura"] #profilePreviewDescription { margin-top: 10px; line-height: 1.6; }
.profile-preview__content[data-scenario="sem-assinatura"] #profilePreviewAction { margin-top: 15px; box-shadow: 0 2px 5px rgba(16, 64, 92, .10), inset 0 1px 0 rgba(255, 255, 255, .14); }
/* Header editing belongs only to the opt-in preview. */
.profile-preview__avatar-button { position: relative; flex: 0 0 68px; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 50%; background: transparent; font: inherit; cursor: pointer; }
.profile-preview__avatar-button .profile-preview__avatar { box-sizing: border-box; width: 68px; height: 68px; overflow: hidden; }
.profile-preview__avatar img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: inherit; }
.profile-preview__camera { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; color: #175c75; background: #eaf5f9; box-shadow: var(--pp-shadow-sm); pointer-events: none; }
.profile-preview__camera svg { width: 14px; height: 14px; }
.profile-preview__identity > div { display: grid; grid-template-columns: minmax(0, max-content) 44px; gap: 5px 4px; }
.profile-preview__name-row { display: contents; }
.profile-preview__name-row h2 { grid-column: 1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-preview__identity p { grid-column: 1; grid-row: 2; margin: 0; }
.profile-preview__identity .profile-preview__badge { grid-column: 1 / -1; justify-self: start; margin-top: 3px; }
/* Span both text rows so the touch target does not stretch the name row. */
.profile-preview__edit-name { display: grid; grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-items: center; align-items: start; box-sizing: border-box; width: 44px; height: 44px; padding: calc(.888rem - 8px) 0 0; border: 0; border-radius: 50%; color: #577185; background: transparent; cursor: pointer; }
.profile-preview__edit-name svg { width: 16px; height: 16px; }
.profile-preview__avatar-button:focus-visible, .profile-preview__edit-name:focus-visible { outline: 2px solid #14617a; outline-offset: 3px; }
.profile-preview__announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-preview-editor form { display: grid; gap: 8px; margin-top: 20px; }
.profile-preview-editor label { color: var(--pp-ink); font-size: .85rem; font-weight: 690; }
.profile-preview-editor input[type="text"] { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #cad6df; border-radius: 12px; color: var(--pp-ink); background: #fff; font: inherit; font-size: 16px; }
.profile-preview-editor input[aria-invalid="true"] { border-color: #a45149; }
.profile-preview-editor :is(input, button):focus-visible { outline: 2px solid #14617a; outline-offset: 2px; }
.profile-preview-editor .profile-preview-editor__error { margin: 0; color: #a04a40; font-size: .78rem; line-height: 1.5; }
.profile-preview-editor__error:empty, #profilePreviewPhotoStatus:empty { position: absolute; margin: 0; }
.profile-preview-editor__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-preview-editor__actions button { flex: 1 1 100px; }
.profile-preview-editor .profile-preview-editor__save { color: #fff; background: linear-gradient(120deg, #082d52, #125473); }
.profile-preview-editor .profile-preview-editor__save:disabled { color: #637587; background: #e6edf2; border-color: transparent; box-shadow: none; cursor: default; }
.profile-preview-editor__photo-actions { display: grid; gap: 8px; margin-top: 16px; }
.profile-preview-editor__photo-actions .personal-button { margin-top: 0; }
.profile-preview-editor #profilePreviewPhotoRemove { color: #a04a40; background: #fcf0ee; }
@media (hover: hover) {
  .profile-preview__edit-name:hover { color: #175c75; background: #eaf5f9; }
  .profile-preview__avatar-button:hover .profile-preview__camera { background: #d9eef5; }
}
/* Preview-only grouping; existing header and help styles remain unchanged. */
.profile-preview__access .profile-preview__founder-access { margin-top: 16px; box-shadow: none; }
.profile-preview__access .profile-preview__founder-access p { margin: 4px 0 0; font-size: .74rem; }
.profile-preview__secondary .profile-preview__row-copy strong { color: var(--pp-ink); font-size: .85rem; }
#view-perfil.profile-preview--settings > .profile-heading,
.profile-preview--settings .profile-preview__content > :not(.profile-preview__settings-screen) { display: none !important; }
.profile-preview__settings-screen { min-width: 0; }
.profile-preview__settings-intro { margin: 0 0 22px; color: var(--pp-muted); font-size: .93rem; line-height: 1.65; }
.profile-preview__settings-danger { margin-top: 28px; }
/* Preview-only support link and tutorial empty state. */
/* Founder details reuse existing surfaces and navigation; illustrative only. */
#view-perfil.profile-preview--founder > .profile-heading,
.profile-preview--founder .profile-preview__content > :not(.profile-preview__founder-screen) { display: none !important; }
.profile-preview__founder-screen { min-width: 0; }
.profile-preview__founder-panel { padding: 20px; }
.profile-preview__founder-panel + .profile-preview__founder-panel { margin-top: 18px; }
.profile-preview__founder-panel h2 { margin: 0 0 12px; color: var(--pp-ink); font-size: 1rem; line-height: 1.4; }
.profile-preview__founder-panel p, .profile-preview__founder-panel dd { margin: 0; color: var(--pp-muted); font-size: .9rem; line-height: 1.65; }
.profile-preview__founder-panel p + p { margin-top: 12px; }
.profile-preview__founder-panel dl { margin: 16px 0; }
.profile-preview__founder-panel dl:last-child { margin-bottom: 0; }
.profile-preview__founder-panel dt { margin-top: 12px; color: var(--pp-ink); font-size: .88rem; font-weight: 690; line-height: 1.5; }
.profile-preview__founder-panel :is(p, dt, dd) { overflow-wrap: anywhere; }
.profile-preview a.profile-preview__row { box-sizing: border-box; text-decoration: none; }
.profile-preview a.profile-preview__row:focus-visible { outline: 2px solid #14617a; outline-offset: -3px; }
#view-perfil.profile-preview--tutorials > .profile-heading,
.profile-preview--tutorials .profile-preview__content > :not(.profile-preview__tutorials-screen) { display: none !important; }
.profile-preview__tutorials-screen[hidden] { display: none !important; }
.profile-preview__tutorials-screen { min-width: 0; }
.profile-preview__tutorials-screen button { min-height: 44px; }
.profile-preview__tutorials-empty { padding: 24px; border: 1px solid var(--pp-border); border-radius: var(--pp-radius-card); background: var(--pp-surface); }
.profile-preview__tutorials-empty .profile-preview__icon { width: 34px; }
.profile-preview__tutorials-empty h2 { margin: 16px 0 8px; color: var(--pp-ink); font-size: 1rem; }
.profile-preview__tutorials-empty p { margin: 0; color: var(--pp-muted); font-size: .93rem; line-height: 1.65; }
/* Internal help navigation leaves the approved Profile header intact. */
#view-perfil.profile-preview--help > .profile-heading,
.profile-preview--help .profile-preview__content > :not(.profile-preview__help-screen) { display: none !important; }
.profile-preview__help-screen { min-width: 0; }
.profile-preview__help-heading { margin-bottom: 22px; }
.profile-preview__help-heading h1 { margin: 10px 0 0; color: var(--pp-ink); font-size: 1.65rem; font-weight: 790; letter-spacing: -.04em; }
/* Shared app back buttons keep their native icon and remain still when pressed. */
#view-perfil .lessons-back:active { transform: none; }
.profile-preview__help-question { border: 1px solid var(--pp-border); border-radius: var(--pp-radius-card); background: var(--pp-surface); box-shadow: var(--pp-shadow-sm); overflow-wrap: anywhere; }
.profile-preview__help-question summary { box-sizing: border-box; padding: 18px 20px; border-radius: inherit; color: var(--pp-ink); font-size: .9rem; font-weight: 690; line-height: 1.5; cursor: pointer; }
.profile-preview__help-question summary::marker { color: var(--pp-cyan); }
.profile-preview__help-answer { padding: 0 20px 20px; color: var(--pp-muted); font-size: .86rem; line-height: 1.65; }
.profile-preview__help-answer ol { margin: 0; padding-left: 20px; }
.profile-preview__help-answer li + li { margin-top: 10px; }
.profile-preview__help-answer p { margin: 16px 0 0; }
/* Help-only controls. The approved identity layout above is unchanged. */
.profile-preview__help-screen :is(button, input, summary) { font: inherit; }
.profile-preview__help-screen :is(button, summary) { min-height: 44px; }
.profile-preview__help-screen :is(button, input, summary, [tabindex="-1"]):focus-visible { outline: 2px solid #14617a; outline-offset: 3px; }
.profile-preview__help-screen button { cursor: pointer; }
.profile-preview__help-screen :is(button, input, summary, h2) { scroll-margin-block: 100px 90px; }
.profile-preview__help-screen details { scroll-margin-top: 100px; }
.profile-preview__help-screen [hidden] { display: none !important; }
.profile-help__search { display: grid; gap: 9px; margin: 0; }
.profile-help__search label { color: var(--pp-ink); font-size: .95rem; font-weight: 700; }
.profile-help__search-field { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 14px; border: 1px solid #bacfdb; border-radius: 14px; background: #fff; box-shadow: var(--pp-shadow-sm); }
.profile-help__search-field input { box-sizing: border-box; flex: 1 1 auto; width: 100%; min-width: 0; min-height: 46px; border: 0; background: transparent; color: var(--pp-ink); font-size: 16px; }
.profile-help__search-field:has(#profileHelpSearch:focus) { border-color: #0086a8; box-shadow: 0 0 0 3px rgba(0, 134, 168, .18); }
.profile-preview__help-screen #profileHelpSearch:focus { outline: none; box-shadow: none; }
.profile-help__search-field input::-webkit-search-cancel-button { appearance: none; }
.profile-help__search-field button { flex: 0 0 auto; padding: 8px; border: 0; border-radius: 8px; background: #eaf4f8; color: #175c75; font-size: .82rem; }
.profile-help__status { min-height: 1.5em; margin: 10px 0 4px; font-size: .8rem; color: var(--pp-muted); }
.profile-help__status:empty { min-height: 0; margin: 16px 0 0; }
.profile-help__section-title { margin: 4px 0 8px; color: var(--pp-ink); font-size: 1.12rem; font-weight: 740; line-height: 1.4; overflow-wrap: anywhere; }
.profile-help__intro { margin: 0 0 18px; color: var(--pp-muted); font-size: .85rem; line-height: 1.55; }
.profile-help__categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-help__category { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 16px; border: 1px solid var(--pp-border); border-radius: 16px; color: var(--pp-ink); background: var(--pp-surface); text-align: left; box-shadow: var(--pp-shadow-sm); overflow-wrap: anywhere; }
.profile-help__category strong { font-size: .91rem; line-height: 1.4; }
.profile-help__category span { color: var(--pp-muted); font-size: .79rem; line-height: 1.5; }
.profile-help__category small { color: #2c6c7d; font-size: .73rem; }
.profile-help__articles { display: grid; gap: 10px; }
.profile-preview__help-screen .profile-preview__help-question summary { font-size: .94rem; font-weight: 690; }
.profile-preview__help-screen .profile-preview__help-answer { font-size: .93rem; line-height: 1.7; }
.profile-preview__help-answer > :first-child { margin-top: 0; }
.profile-preview__help-answer ol { margin-block: 16px; }
.profile-preview__help-answer > ol:first-child { margin-top: 0; }
.profile-preview__help-answer .profile-help__note { padding: 12px 14px; border-left: 3px solid #6aa5b4; border-radius: 0 8px 8px 0; background: #f0f7fa; color: #3c5d71; }
.profile-help__related { display: grid; gap: 4px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--pp-border); }
.profile-help__related h3 { margin: 0 0 4px; font-size: .78rem; color: var(--pp-muted); }
.profile-help__related button { min-width: 0; padding: 9px 0; border: 0; border-radius: 5px; color: #175c75; background: transparent; text-align: left; line-height: 1.5; overflow-wrap: anywhere; }
.profile-help__results { display: grid; gap: 10px; padding: 0; margin: 16px 0 0; list-style: none; }
.profile-help__result { display: grid; gap: 7px; box-sizing: border-box; width: 100%; min-width: 0; padding: 16px 18px; border: 1px solid var(--pp-border); border-radius: 14px; color: var(--pp-ink); background: var(--pp-surface); text-align: left; overflow-wrap: anywhere; }
.profile-help__result strong { font-size: .94rem; line-height: 1.5; }
.profile-help__result small { color: var(--pp-muted); font-size: .77rem; }
.profile-help__empty { padding: 20px; border: 1px solid var(--pp-border); border-radius: 14px; color: var(--pp-muted); background: #fff; font-size: .93rem; line-height: 1.7; }
@media (max-width: 479px) {
  .profile-help__categories { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .profile-help__category { gap: 4px; padding: 14px 16px; }
  .profile-preview__help-question summary { padding: 16px; }
  .profile-preview__help-screen .profile-preview__help-answer { padding: 0 16px 18px; }
}
@media (hover: hover) {
  .profile-help__category:hover, .profile-help__result:hover { border-color: #8fb8c8; background: #f4f9fb; }
  .profile-help__related button:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-preview__content *, .profile-preview-dialog, .profile-preview-dialog * { animation: none !important; transition: none !important; }
  .profile-preview__row:active, #profilePreviewAction:active, .profile-preview__signout:active,
  .profile-preview-dialog button:active, .profile-preview__row:hover .profile-preview__arrow { transform: none !important; }
}

/* App tutorials: one online video at a time, separate from paid music lessons. */
.profile-preview__tutorials-screen [hidden] { display: none !important; }
.profile-preview__tutorials-screen :is(button,input) { font: inherit; }
.profile-preview__tutorials-screen :is(button,input,[tabindex]):focus-visible { outline: 2px solid var(--pp-cyan); outline-offset: 3px; }
.tutorials-intro { margin: 0 0 8px; color: var(--pp-ink); line-height: 1.5; }
.tutorials-connection,.tutorials-status { color: var(--pp-muted); font-size: .86rem; line-height: 1.6; }
.tutorials-label { display: block; margin-top: 24px; margin-bottom: 8px; color: var(--pp-ink); font-weight: 650; font-size: .9rem; }
.tutorials-search { display: flex; gap: 8px; }
.tutorials-search input { box-sizing: border-box; min-width: 0; width: 100%; min-height: 48px; border: 1px solid var(--pp-border); border-radius: 12px; background: var(--pp-surface); color: var(--pp-ink); padding: 10px 14px; font-size: 16px !important; }
.tutorials-search button,.tutorials-action,.tutorials-help { border: 1px solid var(--pp-border); border-radius: 10px; background: var(--pp-surface); color: var(--pp-ink); padding: 10px 14px; cursor: pointer; }
.tutorials-count { font-size: .8rem; color: var(--pp-muted); margin: 12px 0 24px; }
.tutorials-group { margin-bottom: 26px; }
.tutorials-group h2 { color: var(--pp-muted); font-size: .8rem; font-weight: 700; margin: 0 0 12px; }
.tutorials-row { width: 100%; text-align: left; cursor: pointer; }
.tutorials-row .profile-preview__row-copy { flex: 1; }
.tutorials-frame { position: relative; background: #000; width: min(100%, 380px, calc(70svh * 9 / 16)); aspect-ratio: 9 / 16; margin: 20px auto; border-radius: 14px; overflow: hidden; }
.tutorials-frame iframe { display: block; border: 0; width: 100%; height: 100%; position: absolute; inset: 0; }
#tutorialsTitle { color: var(--pp-ink); font-size: 1.2rem; line-height: 1.4; margin: 0 0 16px; }
.tutorials-help { width: 100%; margin-top: 24px; font-size: .88rem !important; }
.tutorials-help:is(a) { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
