/* Bounded layouts: the page grows with the display, individual UI elements do not stretch. */
:root {
  --layout-max: 1440px;
  --layout-gutter: clamp(16px, 3vw, 48px);
  --layout-gap: clamp(28px, 4vw, 72px);
}
/* Short pages keep the footer at the bottom of tall displays. */
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.site-header,
.site-footer { flex: 0 0 auto; }
#main { flex: 1 0 auto; width: 100%; }
.container {
  width: 100%;
  max-width: var(--layout-max);
  padding-inline: var(--layout-gutter);
}
.site-header { padding-inline: var(--layout-gutter); }
.header-inner {
  width: 100%;
  max-width: calc(var(--layout-max) - 2 * var(--layout-gutter));
  margin-inline: auto;
  min-width: 0;
}
.header-right,
.profile-link,
.hero-grid > *,
.story-grid > *,
.how-step > *,
.login-layout > *,
.checkout-layout > *,
.account-grid > *,
.account-cards > *,
.pricing-grid > *,
.feature-strip > *,
.steps > * { min-width: 0; }
.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--layout-gap);
}
.hero h1 {
  max-width: 650px;
  font-size: clamp(42px, calc(30px + 1.75vw), 64px);
}
.hero-lead { max-width: 52ch; font-size: clamp(16px, 1.05vw, 18px); }
.hero-message-frame { max-width: 520px; }
.hero-actions { gap: 12px; }
.hero-actions .btn { max-width: 100%; white-space: normal; }
.section { padding-block: clamp(48px, 4.1vw, 82px); }
.section-heading { gap: 28px; }
.section-heading h2,
.story-copy h2 { font-size: clamp(31px, 2.6vw, 44px); }
.section-heading p { max-width: 39ch; }
.story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--layout-gap); }
.story-telegram { padding-inline: 8px; }
.story-telegram .telegram-live-menu { max-width: 480px; margin-inline: auto; }
.story-copy { max-width: 600px; }
.story-copy > p { max-width: 56ch; }
.article-intro { max-width: 820px; padding-top: clamp(38px, 3.7vw, 70px); }
.article-intro h1,
.page-intro h1 { font-size: clamp(38px, 3.4vw, 58px); }
.article-intro > p { max-width: 62ch; }
.how-step,
.how-step[data-visual-side='left'] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--layout-gap);
  padding-block: clamp(32px, 3.2vw, 60px);
}
.how-step h2 { font-size: clamp(30px, 2.5vw, 40px); max-width: 15em; }
.how-step > div:not(.tg-preview) { max-width: 600px; }
.how-step > div:not(.tg-preview) > p:not(.eyebrow) { max-width: 56ch; font-size: 15px; }
.how-step[data-visual-side] > .tg-preview { max-width: 500px; }
.how-final-cta { flex-wrap: wrap; }
.how-final-cta > div { min-width: 0; flex: 1 1 auto; width: 100%; max-width: 540px; }
.how-final-cta > .btn { max-width: 100%; white-space: normal; }
.page-intro > p { max-width: 65ch; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-pricing { max-width: 1260px; margin-inline: auto; gap: clamp(16px, 1.6vw, 26px); }
.compact-pricing .pricing-card { padding: clamp(24px, 2vw, 32px); }
.compact-pricing :is(h2, h3) { font-size: clamp(24px, 1.85vw, 29px); }
.compact-price-row .price { font-size: clamp(38px, 2.8vw, 46px); }
.compact-saving { white-space: normal; }
.compact-pricing .btn { margin-top: auto; padding-top: 13px; }
.compact-price-row { margin-bottom: 25px; }
.bonus-banner { max-width: 1260px; margin-inline: auto; }
.payment-methods { flex-wrap: wrap; }
.dark-cta { min-height: 330px; }
.dark-cta > div { padding: clamp(28px, 3.2vw, 54px); }
.dark-cta h2 { font-size: clamp(31px, 2.5vw, 43px); }
.dark-cta > img { object-fit: cover; }
.login-layout {
  max-width: 1220px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 96px);
}
.login-aside { min-height: clamp(540px, 42vw, 650px); }
.login-aside > img { object-fit: cover; object-position: center; }
.login-aside h2 { font-size: clamp(34px, 2.55vw, 45px); }
.login-form { max-width: 460px; margin-inline: auto; }
.login-form h1 { font-size: clamp(32px, 2.4vw, 40px); }
.checkout-layout { max-width: 1120px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.checkout-line > :first-child { min-width: 0; overflow-wrap: anywhere; }
.order-summary .total strong { flex-shrink: 0; }
.checkout-account strong,
.chosen-pack h2,
.inline-note,
.return-box,
.legal-document,
.campaign-list-item h3 { overflow-wrap: anywhere; }
.faq-layout { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.faq-layout > * { min-width: 0; }
.legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.legal-content { max-width: 1000px; }
.privacy-text { max-width: 840px; }
.account-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; }
.account-heading > div { min-width: 0; }
.account-heading h1 { max-width: 28ch; font-size: clamp(30px, 2.5vw, 42px); }
.account-cards { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.campaign-list-item > div { min-width: 0; }
.campaign-icon { flex-shrink: 0; }
.campaign-status { flex-shrink: 0; }
.purchase-table { table-layout: auto; }
.purchase-table td:first-child { overflow-wrap: anywhere; }
.purchase-table td small { overflow-wrap: anywhere; }
.profile-link { flex-shrink: 1; }
.profile-link .identity { min-width: 0; }
.identity-tooltip { max-width: min(320px, calc(100vw - 32px)); }
.site-header .profile-link .identity { position: static; }
.site-header .profile-link .identity-tooltip { right: 0; left: auto; top: calc(100% + 9px); }
.profile { position: relative; }
.profile .identity { position: static; }
.profile .identity-tooltip { top: calc(100% + 9px); left: 0; right: 0; width: 100%; max-width: 100%; }
.footer-top { flex-wrap: wrap; }
.footer-links,
.footer-bottom,
.legal-links { flex-wrap: wrap; }
.footer-bottom > * { min-width: 0; }

/* Hover changes colour, without cross-fading a gradient into a transparent surface. */
.btn,
.telegram-menu-button {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.telegram-menu-button { background-image: none; background-color: rgb(191 214 185 / 62%); }
.telegram-menu-create { background-color: rgb(49 111 56 / 90%); }
.btn-light { background-color: #edf3e7; }
.btn-white { background-color: #f2f6ec; border-color: #d7e1cf; }
/* One SVG canvas stays visible while its own parts animate; no bright layer swap. */
:is(a, button, summary) .ui-icon[data-motion-ready] > svg.icon-normal,
:is(a, button, summary):is(:hover, :focus-visible, :active) .ui-icon > svg.icon-normal { opacity: 1; transform: none; }
:is(a, button, summary) .ui-icon[data-motion-ready] > svg.icon-active,
:is(a, button, summary):is(:hover, :focus-visible, :active) .ui-icon > svg.icon-active { opacity: 0; transform: none; }
@media (hover: hover) {
  .btn:hover { background-color: #24543e; transform: none; }
  .btn-light:hover { color: var(--forest); background-color: #e1ebda; }
  .btn-lime:hover { color: var(--forest-deep); background-color: #cce28e; }
  .btn-white:hover { color: var(--forest); background-color: #e7efde; }
  .site-header .header-right > .btn:hover { background-color: #dce9d2; }
  .telegram-menu-button:hover { background-image: none; background-color: rgb(191 214 185 / 76%); }
  .telegram-menu-create:hover { background-color: rgb(45 104 53 / 94%); }
}
.telegram-menu-button:active { background-color: rgb(178 205 168 / 80%); }
.telegram-menu-create:active { background-color: rgb(39 96 48 / 96%); }

@media (min-width: 2200px) {
  :root { --layout-max: 1536px; }
}
@media (max-width: 1100px) {
  :root { --layout-gap: 32px; }
  .site-header .nav a { padding-inline: 10px; }
  .header-inner { gap: 16px; }
  .hero h1 { font-size: clamp(42px, 4.25vw, 52px); }
  .compact-pricing .pricing-card { padding: 24px 20px; }
  .compact-pricing :is(h2, h3) { font-size: 23px; }
  .account-grid { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
  .login-layout { gap: 36px; }
  .login-aside { padding: 30px; }
}
@media (max-width: 900px) {
  .hero-grid,
  .story-grid,
  .how-step,
  .how-step[data-visual-side='left'] { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 34px; }
  .hero-copy { max-width: 700px; padding: 0; }
  .hero h1 { max-width: 700px; font-size: clamp(39px, 5.3vw, 49px); }
  .hero-message-frame { max-width: 500px; }
  .story-grid { gap: 36px; }
  .story-copy { max-width: 680px; }
  .story-telegram { width: 100%; }
  .how-step[data-visual-side='left'] > :last-child { order: 0; }
  .how-step[data-visual-side] > .tg-preview { max-width: 500px; }
  :is(.tg-preview, .received-message-preview)[data-side] .telegram-message { border-radius: var(--tg-radius) var(--tg-radius) var(--tg-radius) 6px; }
  :is(.tg-preview, .received-message-preview)[data-side] .telegram-message::after { left: -7px; right: auto; transform: none; }
  .feature-strip { grid-template-columns: minmax(0, 1fr); }
  .strip-item strong { font-size: 14px; }
  .strip-item span { font-size: 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .section-heading p { max-width: 58ch; }
  .compact-pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compact-pricing :is(h2, h3) { font-size: 21px; }
  .compact-pricing .pricing-card { padding: 22px 17px; }
  .compact-price-row { align-content: start; min-height: 82px; }
  .compact-price-row .price { font-size: 35px; }
  .bonus-banner { grid-template-columns: auto minmax(0, 1fr); }
  .payment-methods { grid-column: 2; }
  .faq-layout,
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .faq-nav,
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 5px; }
  .faq-nav a,
  .legal-nav a { padding: 8px 12px; background: #edf2e8; border-radius: 9px; }
  .login-layout { grid-template-columns: minmax(0, 1fr); max-width: 600px; gap: 32px; padding-block: 36px; }
  .login-aside { min-height: 350px; padding: 32px; }
  .login-aside h2 { font-size: 36px; }
  .login-aside p { max-width: 280px; }
  .login-aside .aside-note { display: none; }
  .login-aside > img { object-position: center 60%; }
  .login-aside::after { background: linear-gradient(100deg, #103b2ae8, #103b2a91 52%, #103b2a0a); }
  .login-form { max-width: 460px; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-nav a,
  .account-nav button { min-width: 0; margin-top: 0; }
  .account-cards { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .site-header { padding-inline: 12px; }
  .header-inner { max-width: none; gap: 10px; }
  .section { padding-block: 48px; }
  .hero { padding-block: 30px 40px; }
  .hero h1 { font-size: clamp(36px, 9.7vw, 44px); }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { padding-inline: 17px; font-size: 13px; }
  .hero-caption { align-items: flex-start; line-height: 1.6; }
  .hero-message-frame { max-width: 480px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .step { padding: 25px; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 14px; }
  .section-heading h2,
  .story-copy h2 { font-size: clamp(29px, 7.7vw, 35px); }
  .article-intro h1,
  .page-intro h1 { font-size: clamp(34px, 8.8vw, 43px); }
  .how-step,
  .how-step[data-visual-side='left'] { gap: 22px; padding-block: 24px; }
  .how-step h2 { font-size: clamp(28px, 7.7vw, 35px); }
  .how-step > div:not(.tg-preview) > p:not(.eyebrow) { margin-top: 12px; font-size: 14px; }
  .how-final-cta { margin-top: 24px; }
  .compact-pricing { grid-template-columns: minmax(0, 1fr); max-width: 480px; gap: 16px; }
  .compact-pricing .pricing-card { padding: 25px; }
  .compact-pricing :is(h2, h3) { font-size: 26px; }
  .compact-price-row { min-height: 0; margin-bottom: 22px; }
  .compact-price-row .price { font-size: 41px; }
  .compact-saving { white-space: nowrap; }
  .bonus-banner { gap: 14px; padding: 23px; }
  .bonus-banner p { font-size: 13px; }
  .payment-methods { gap: 8px; }
  .dark-cta { min-height: 380px; grid-template-columns: minmax(0, 1fr); }
  .dark-cta > div { padding: 28px; }
  .dark-cta h2 { font-size: clamp(28px, 7.6vw, 35px); }
  .dark-cta > img { width: 100%; height: 62%; top: auto; bottom: 0; mask-image: linear-gradient(to bottom, transparent, #000 70%); }
  .dark-cta .btn { max-width: 100%; white-space: normal; }
  .login-aside { min-height: 280px; padding: 26px; margin-bottom: 0; }
  .login-aside h2 { font-size: 30px; }
  .login-aside p { max-width: 230px; font-size: 12px; }
  .login-form h1 { font-size: 34px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); max-width: 540px; }
  .checkout-card,
  .order-summary { padding: 25px; }
  .promo-field { flex-direction: column; }
  .promo-field .btn { width: 100%; }
  .order-summary .total strong { font-size: 30px; }
  .account-heading { align-items: flex-start; flex-wrap: wrap; }
  .account-heading h1 { font-size: 30px; }
  .account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-cards { grid-template-columns: minmax(0, 1fr); }
  .campaign-list-item { flex-wrap: wrap; }
  .campaign-list-item > div { flex: 1 1 calc(100% - 60px); }
  .campaign-status { margin-left: 53px; }
  .purchase-table { min-width: 460px; }
  .legal-documents { grid-template-columns: minmax(0, 1fr); }
  .footer-top { align-items: flex-start; gap: 25px; }
  .footer-links { gap: 15px 22px; }
  .footer-bottom { flex-direction: column; gap: 18px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 34px; }
  .site-header .brand { font-size: 21px; }
  .site-header .profile-link { max-width: 114px; }
  .site-header .profile-link .identity { max-width: 60px; }
  .compact-pricing .pricing-card { padding: 23px; }
  .compact-saving { white-space: normal; }
  .checkout-card,
  .order-summary { padding: 21px; }
  .order-summary .checkout-line.total { padding-inline: 13px; gap: 12px; }
  .order-summary .total strong { font-size: 28px; }
  .login-aside { padding: 23px; }
  .login-aside h2 { font-size: 28px; }
  .dark-cta > div { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .telegram-menu-button { transition: none; }
}

/* Centre the menu in the free interval between the brand and account actions. */
@media (min-width: 1024px) {
  #header.site-header .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  #header.site-header .header-inner > .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  #header.site-header .header-inner > .nav {
    grid-column: 2;
    grid-row: 1;
    position: static;
    width: max-content;
    margin: 0;
    justify-self: center;
    justify-content: center;
  }
  #header.site-header .header-inner > .header-right { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* A plain navigation row sits outside the white mobile header card. */
@media (max-width: 1023px) {
  #header.site-header { padding-bottom: 52px; }
  #header.site-header .header-inner { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; padding-block: 0; }
  #header.site-header .header-inner > .brand { grid-column: 1; grid-row: 1; }
  #header.site-header .header-inner > .header-right { grid-column: 2; grid-row: 1; justify-self: end; }
  #header.site-header .nav {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: clamp(12px, 3.5vw, 22px);
  }
  #header.site-header .nav > a { display: flex; align-items: center; justify-content: center; min-width: 0; height: auto; min-height: 44px; padding: 10px 2px; border-radius: 0; background: transparent; color: #536e50; font-size: 15px; line-height: 1.3; white-space: nowrap; text-align: center; box-shadow: none; transition: color 160ms ease; }
  #header.site-header .nav > a:is(:hover, [aria-current='page']) { background: transparent; color: #173f30; box-shadow: none; }
  #header.site-header .nav > a:focus-visible { outline: 2px solid #638744; outline-offset: 1px; }
  #header.site-header .nav > a::after { display: block; inset: auto 2px 6px; width: auto; height: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  #header.site-header .nav > a { transition: none; }
}
.header-profile-text { display: grid; gap: 2px; min-width: 0; text-align: left; }
.header-profile-text strong { display: flex; align-items: center; gap: 5px; font-size: 14px; line-height: 1.25; }
.header-profile-text small { color: #678064; font-size: 11px; font-weight: 450; line-height: 1.2; }
.profile-status-emoji { display: inline-block; width: 1.4em; height: 1.4em; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.account-forest-art { display: block; width: min(240px, 70%); height: 170px; margin: 0 auto 18px; object-fit: contain; }
.account-content .account-packages > h2 { margin: 0 0 12px; font-size: clamp(26px,3vw,36px); }
.account-packages > p { margin-bottom: 28px; color: #647a67; }
.account-packages .pricing-grid { gap: 14px; }
.account-packages .pricing-card { padding: 26px 20px; border-radius: 22px; }
.account-packages .pricing-card h3 { font-size: 23px; }
.account-packages .pricing-card .price { font-size: 36px; }
.account-packages .pack-tag { font-size: 12px; }
.account-packages .compact-price-row { flex-wrap: wrap; gap: 8px; }
.account-packages .pack-price-comparison { white-space: nowrap; }
@media (max-width: 1100px) { .account-packages .pricing-grid { grid-template-columns: 1fr; } }

.profile-status-emoji { position: relative; overflow: hidden; }
.profile-status-emoji > :is(img, video, canvas) { display: block; width: 100% !important; height: 100% !important; object-fit: contain; }
.account-sidebar-label { margin: 0 0 18px; padding-inline: 12px; color: #71846b; font-size: 12px; font-weight: 600; }
.account-settings-panel > h2, .account-security > h2 { margin: 0 0 12px; }
.account-settings-panel > p, .account-security > p { color: #61765f; line-height: 1.65; }
#account-settings-form { margin-top: 25px; }
#account-settings-form > label:first-child { display: block; margin-bottom: 10px; font-weight: 650; }
#account-timezone { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid #bfd0b3; border-radius: 12px; background: #fafcf7; color: #244936; font: inherit; }
.account-settings-toggle { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-block: 28px; padding: 20px; background: #eaf1e2; border-radius: 14px; cursor: pointer; }
.account-settings-toggle small { display: block; margin-top: 6px; color: #647b5e; }
.account-settings-toggle input { width: 22px; height: 22px; accent-color: #315d46; flex-shrink: 0; }
#account-settings-status { min-height: 1.5em; color: #476d3f; }
.account-security { margin-top: 22px; }
.profile-emoji-player { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.profile-emoji-player > svg { display: block; width: 100% !important; height: 100% !important; }
.bonus-card { position: relative; isolation: isolate; overflow: hidden; }
.bonus-branch-art { position: absolute; z-index: -1; right: -30px; bottom: -30px; width: 52%; max-height: 95%; object-fit: contain; pointer-events: none; }
.bonus-card > :not(.bonus-branch-art) { position: relative; z-index: 1; max-width: 72%; }
.account-hint.account-support-banner { position: relative; isolation: isolate; min-height: 220px; padding: 34px; border-radius: 24px; overflow: hidden; background: #173d30 url('/assets/illustrations/pine-faq-support.png') right center / cover no-repeat; color: #f7f9f0; }
.account-support-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #123e30f5, #123e30b8 53%, #123e3010); }
.account-support-banner > div { max-width: 65%; }
.account-support-banner h3, .account-support-banner .text-link { color: #f6f9ec; }
.account-support-banner p { color: #dbe7d4; }
.referral-copy-row { display: flex; gap: 12px; margin-top: 12px; }
.referral-copy-row input { min-width: 0; flex: 1; padding: 14px; border: 1px solid #bbccb0; border-radius: 12px; background: #fafcf7; color: #244936; font: inherit; }
.referral-invite > h2 { margin: 0 0 12px; }
.referral-invite > p { color: #647b60; margin-bottom: 28px; }
.referral-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 26px; }
.referral-totals > div { display: grid; gap: 6px; padding: 22px; border-radius: 16px; background: #e6efdc; }
.referral-totals strong { font-size: 32px; color: #244936; }
.referral-totals span { color: #647b60; font-size: 13px; }
.referral-terms { padding: 18px 0; border-top: 1px solid #cfddc4; }
.referral-terms summary { cursor: pointer; font-weight: 650; }
.referral-terms p { color: #647b60; line-height: 1.7; }
.referral-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; border-bottom: 1px solid #d7e2cd; }
.referral-row small { display: block; color: #71876a; margin-top: 5px; }
.referral-row > :last-child { text-align: right; }
@media (max-width: 600px) { .referral-copy-row { flex-direction: column; } .referral-totals { gap: 9px; } .referral-totals > div { padding: 16px; } .referral-totals strong { font-size: 25px; } .account-support-banner > div { max-width: 100%; } }
#main .account-content :is(.referral-invite, .account-settings-panel, .account-security) { padding: clamp(22px, 3vw, 32px); }
#main .account-content :is(.referral-invite, .account-settings-panel, .account-security) > h2 { font-size: clamp(25px, 2.6vw, 32px); line-height: 1.25; }
#main[data-palette-end] .account-hint.account-support-banner { background: #173d30 url('/assets/illustrations/pine-faq-support.png') right center / cover no-repeat; }
/* Match each forest's native canvas height so fixed-proportion trees aren't clipped. */
#main:has(.account-grid) .page-palette-daylight { padding-bottom: 104px; }
#main:has(.account-grid) .page-palette-grove::before { height: 165px; background-image: url('/assets/illustrations/pine-transition.svg?v=20261128-palette-v22'); }
@media(max-width:1023px) {
  #main:has(.account-grid) .page-palette-daylight { padding-bottom: 56px; }
  #main:has(.account-grid) .page-palette-grove::before { height: 110px; background-image: url('/assets/illustrations/pine-transition-mobile.svg?v=20261128-palette-v22'); }
}
@media(max-width:600px) {
  #main:has(.account-grid) .page-palette-daylight { padding-bottom: 8px; }
}
#main:has(.account-grid) .page-palette-grove { padding-block: 18px 32px; }
#main .account-content > .account-panel:first-child { margin-top: 0; }
#main .account-content > .account-panel + .account-panel { margin-top: 16px; }
#main .account-content :is(.referral-invite, .referral-friends, .account-settings-panel, .account-security) { padding: 22px; }
#main .account-content :is(.referral-invite, .referral-friends, .account-settings-panel, .account-security) > h2 { margin: 0 0 10px; font-size: clamp(23px, 2vw, 28px); line-height: 1.25; }
#main .referral-invite > p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
#main .referral-copy-row { gap: 10px; margin-top: 8px; }
#main .referral-copy-row :is(input, button) { min-height: 46px; padding-block: 10px; }
#main .referral-totals { margin-block: 18px; gap: 12px; }
#main .referral-totals > div { padding: 14px 17px; gap: 4px; border-radius: 13px; }
#main .referral-totals strong { font-size: 28px; line-height: 1.2; }
#main .referral-totals span { font-size: 12px; line-height: 1.4; }
#main .referral-terms { margin: 0; padding: 9px 0 0; border: 0; border-top: 1px solid #cfddc4; border-radius: 0; background: transparent; }
#main .referral-terms > summary { margin: 0; padding: 8px 0; min-height: 0; font-size: 14px; line-height: 1.5; }
#main .referral-terms > p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
#main .referral-friends .empty-state { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 0 20px; align-items: center; padding: 15px 0 0; border: 0; text-align: left; }
#main .referral-friends .empty-state img { grid-column: 1; grid-row: 1 / span 2; width: 145px; height: 120px; margin: 0; }
#main .referral-friends .empty-state h3 { grid-column: 2; align-self: end; margin: 0; font-size: 18px; line-height: 1.35; }
#main .referral-friends .empty-state p { grid-column: 2; align-self: start; max-width: 44ch; margin: 7px 0 0; font-size: 13px; line-height: 1.6; }
#main .account-security { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
#main .account-security > h2 { grid-column: 1; margin-bottom: 8px; }
#main .account-security > p { grid-column: 1; margin: 0; font-size: 14px; line-height: 1.6; max-width: 60ch; }
#main .account-security > .btn { grid-column: 2; grid-row: 1 / span 2; }
#main #account-settings-form { margin-top: 20px; }
#main .account-settings-toggle { margin-block: 20px; padding: 16px; }
#main #account-settings-status:empty { display: none; }
#main #account-settings-status:not(:empty) { margin-bottom: 14px; }
/* The same illustrated support scene used in FAQ, scaled to the account column. */
#main[data-palette-end] .account-content .account-support-banner { position: relative; isolation: isolate; display: block; min-height: 260px; margin-top: 18px; padding: 0; overflow: hidden; border: 0; border-radius: 24px; background: #153f30; }
#main .account-support-banner > img { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
#main .account-support-banner::before { z-index: 1; background: linear-gradient(90deg, #123e30 0%, #123e30ed 36%, #123e306b 72%, #123e300d 100%); pointer-events: none; }
#main .account-support-banner > .account-support-copy { position: relative; z-index: 2; max-width: 65%; padding: 30px; }
#main .account-support-copy h3 { margin: 0 0 14px; color: #f7faef; font-size: clamp(25px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
#main .account-support-copy p { max-width: 43ch; margin: 0 0 22px; color: #d9e6d2; font-size: 14px; line-height: 1.65; }
#main .account-support-copy .btn { min-height: 46px; white-space: normal; }
.account-logout-dialog { width: min(420px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 28px; border: 1px solid #b7cbaa; border-radius: 24px; background: #f5f8ef; color: #244936; box-shadow: 0 24px 70px #102f3440; }
.account-logout-dialog::backdrop { background: #102d2466; backdrop-filter: blur(4px); }
.logout-dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; background: #e2ecd9; color: #4f7547; }
.account-logout-dialog h2 { margin: 0 0 24px; font-size: 26px; line-height: 1.25; }
.logout-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logout-dialog-actions .btn { min-height: 46px; padding: 12px 16px; }
.logout-dialog-error { margin: 0 0 18px; color: #ab4a32; font-size: 14px; line-height: 1.5; }
.account-logout-dialog[open] { animation: account-dialog-arrive 180ms ease-out; }
@keyframes account-dialog-arrive { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 650px) {
  #main .account-security { display: block; }
  #main .account-security > .btn { margin-top: 18px; }
  #main .account-support-banner > .account-support-copy { max-width: 100%; padding: 26px; }
  #main .account-support-banner::before { background: linear-gradient(90deg, #123e30f5, #123e30d9 58%, #123e3040); }
  #main .referral-friends .empty-state { grid-template-columns: 105px minmax(0, 1fr); column-gap: 14px; }
  #main .referral-friends .empty-state img { width: 105px; height: 105px; }
}
@media (max-width: 420px) { .account-logout-dialog { padding: 23px; } .account-logout-dialog h2 { font-size: 23px; } #main .referral-friends .empty-state { display: block; text-align: center; } #main .referral-friends .empty-state img { margin: 0 auto 12px; } #main .referral-friends .empty-state p { margin: 7px auto 0; } }
@media (prefers-reduced-motion: reduce) { .account-logout-dialog[open] { animation: none; } }
.document-page { max-width: 1050px; padding-block: 38px 80px; }
.document-back { display: inline-flex; align-items: center; gap: 8px; color: #52694f; font-size: 15px; }
.document-heading { margin: 32px 0; max-width: 780px; }
.document-heading h1 { font-size: clamp(30px,4vw,48px); line-height: 1.15; letter-spacing: -.045em; margin: 12px 0 18px; }
.document-heading > p { color: #64765e; font-size: 14px; }
.document-paper { padding: clamp(24px,5vw,64px); border: 1px solid #c9d7c0; border-radius: 22px; background: #fbfcf8; box-shadow: 0 12px 45px #153f3006; overflow-wrap: anywhere; }
.document-paper :is(p,li) { font-size: 17px; line-height: 1.9; white-space: pre-wrap; }
.document-paper p { margin: 0 0 19px; }
.document-paper h2 { font-size: 26px; line-height: 1.35; margin: 38px 0 20px; letter-spacing: -.03em; }
.document-paper h3 { font-size: 21px; line-height: 1.45; margin: 28px 0 16px; }
.document-paper > :first-child { margin-top: 0; }
.document-paper > :last-child { margin-bottom: 0; }
.document-paper ul { padding-left: 24px; margin: 20px 0; }
.document-paper li { padding-left: 5px; margin-bottom: 9px; }
.document-table { overflow-x: auto; margin: 24px 0; }
.document-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.document-table td { border: 1px solid #ccd9c4; padding: 12px 15px; min-width: 120px; vertical-align: top; white-space: pre-wrap; }
.document-table tr:first-child td { background: #edf3e7; font-weight: 600; }
.document-paper.is-pdf { padding: 12px; }
.document-pdf { height: min(1000px,80vh); min-height: 500px; border-radius: 12px; overflow: hidden; }
.document-pdf iframe { width: 100%; height: 100%; border: 0; background: #f8faf6; }
.document-download { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-top: 24px; font-size: 14px; color: #64765e; }
.document-pending { text-align: center; padding-block: 36px; }
.document-pending .ui-icon { width: 50px; height: 50px; }
.auth-existing-account > p { font-size: 16px; line-height: 1.7; color: #64765e; margin: 24px 0; }
.auth-existing-account > .btn + .btn { margin-top: 12px; }
@media(max-width:600px) { .document-page { padding-block: 24px 60px; }.document-heading { margin: 24px 0; }.document-paper { border-radius: 17px; padding: 24px 20px; }.document-paper :is(p,li) { font-size: 16px; line-height: 1.8; }.document-paper h2 { font-size: 23px; }.document-paper h3 { font-size: 20px; } }
.document-pdf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px 18px; }
.document-pdf-toolbar > span { font-size: 14px; color: #52694f; text-align: center; }
.document-pdf-canvas { display: grid; justify-items: center; overflow: hidden; background: #e6eee1; border: 1px solid #d5dfce; border-radius: 12px; }
.document-pdf-canvas canvas { display: block; max-width: 100%; height: auto !important; background: #fff; }
.document-pdf-status { text-align: center; color: #52694f; padding: 20px; font-size: 15px; }
.document-pdf-reader [data-pdf-text] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.document-pdf-reader:not([data-pdf-rendered]) .document-pdf-canvas { min-height: 200px; }
.document-pdf-toolbar .btn { min-height: 42px; padding: 10px 14px; }
@media(max-width:600px) { .document-pdf-toolbar { gap: 8px; }.document-pdf-toolbar .btn { font-size: 12px; padding: 9px 10px; }.document-pdf-toolbar > span { font-size: 12px; } }

.how-step-number { display: inline-block; margin-bottom: 18px; color: #78916d; font-size: clamp(36px,5vw,60px); font-weight: 500; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }

/* Account trees overlap the greeting background instead of reserving a tall band. */
#main:has(.account-grid) .account-heading { position: relative; z-index: 1; padding-block: 20px 16px; }
#main:has(.account-grid) .page-palette-grove::before { z-index: 0; }
#main:has(.account-grid) .page-palette-grove > .container { position: relative; z-index: 1; }
#main .account-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.account-summary-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: auto auto minmax(44px,1fr) auto; align-content: start; gap: 14px; min-height: 280px; padding: 28px; border: 1px solid #153f30; border-radius: 24px; background: #153f30; color: #f8faf6; }
.account-summary-card.is-attempts { background-image: linear-gradient(100deg,#153f30 0%,#153f30eb 36%,#153f3020 87%),url('/assets/generated/pine-balance-evergreen.webp'); background-size: cover; background-position: center,right bottom; }
.account-summary-card > :not(.bonus-branch-art) { position: relative; z-index: 1; }
.account-summary-card p { margin: 0; color: #d1dfcb; font-size: 14px; line-height: 1.6; }
.account-summary-card .balance-value { margin: 0; color: #f8faf6; font-size: clamp(38px,3.5vw,48px); line-height: 1.15; letter-spacing: -.04em; }
.account-summary-card .balance-value span { font-size: 16px; color: inherit; }
.account-summary-card .btn { justify-self: start; align-self: end; margin: 0; padding: 12px 18px; min-height: 44px; font-size: 14px; }
.account-summary-card .bonus-branch-art { z-index: 0; width: 65%; right: -30px; bottom: -30px; max-height: 90%; opacity: .8; mask-image: linear-gradient(to right,transparent,#000 40%); }
/* Keep both balances visible together, including narrow phones. */
@media (max-width: 900px) {
  #main .account-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
  .account-summary-card { min-width: 0; min-height: 0; padding: 14px; gap: 8px; border-radius: 18px; grid-template-rows: auto auto 1fr auto; }
  .account-summary-card p { font-size: 12px; line-height: 1.45; }
  .account-summary-card .balance-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 5px; font-size: clamp(24px, 6.6vw, 36px); line-height: 1.1; overflow-wrap: anywhere; }
  .account-summary-card .balance-value span { font-size: 12px; }
  .account-summary-card .btn { justify-self: stretch; width: 100%; min-width: 0; min-height: 44px; padding: 9px 8px; font-size: 12px; line-height: 1.35; white-space: normal; text-align: center; }
  .account-summary-card .bonus-branch-art { width: 80%; right: -26px; bottom: -28px; opacity: .34; }
}

/* Account navigation lives in the header on phones; the desktop column stays visible. */
.account-menu-toggle, .header-account-menu-toggle { display: none; }
.account-menu-panel { display: block; }
.account-bot-hint { margin-top: 16px; padding: 14px 10px 0; border-top: 1px solid #d5dfce; color: #61765f; font-size: 12px; line-height: 1.6; }
.account-bot-hint p { margin: 0 0 8px; }
.account-bot-hint a { display: inline-flex; align-items: center; gap: 7px; color: #31583b; }
.account-bot-hint .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.account-mobile-menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); box-sizing: border-box; border: 0; border-radius: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: #f8faf6; color: #183b2e; }
.account-mobile-menu[open] { display: flex; flex-direction: column; gap: 18px; animation: account-mobile-menu-arrive 180ms ease-out both; }
.account-mobile-menu::backdrop { background: #f8faf6; }
.account-mobile-menu-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: -4px; background: #f8faf6; }
.account-mobile-menu-top h2 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.account-mobile-menu [data-account-menu-close] { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 3px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #536e50; cursor: pointer; }
.account-mobile-menu [data-account-menu-close] .ui-icon { width: 38px; height: 38px; }
.account-mobile-menu [data-account-menu-close]:hover { background: transparent; color: #153f30; }
.account-mobile-menu-profile { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #d7e3cf; border-radius: 18px; background: #edf4e8; color: #183b2e; text-decoration: none; }
.account-mobile-menu-profile > .avatar { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; }
.account-mobile-menu-profile > div { min-width: 0; }
.account-mobile-menu-profile strong { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.account-mobile-menu-profile :is(small, p, .account-mobile-menu-username) { display: block; margin: 3px 0 0; color: #61765f; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.account-mobile-menu-nav { display: flex; flex-direction: column; gap: 4px; }
.account-mobile-menu-nav a { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; padding: 11px 12px; border-radius: 12px; color: #31583b; font-size: 15px; font-weight: 550; line-height: 1.4; text-decoration: none; }
.account-mobile-menu-nav a[aria-current='page'] { background: #dce9d3; color: #173f30; }
.account-mobile-menu-nav .icon { flex: 0 0 20px; width: 20px; height: 20px; }
.account-mobile-site-nav { display: flex; flex: 0 0 auto; gap: 8px; margin-top: -6px; padding: 0 0 14px; border-bottom: 1px solid #d7e3cf; }
.account-mobile-site-nav a { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 10px 6px; border-radius: 10px; background: #edf4e8; color: #31583b; font-size: 13px; font-weight: 550; line-height: 1.3; text-align: center; text-decoration: none; }
.account-mobile-menu-hint { color: #536d4c; font-size: 13px; line-height: 1.55; }
.account-mobile-menu-hint p { margin: 0; }
.account-mobile-menu-hint a { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: #31583b; font-weight: 600; }
.account-mobile-menu-hint .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.account-mobile-menu [data-account-mobile-logout] { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; margin-top: auto; padding: 12px; border: 0; border-radius: 12px; background: #e5eedc; color: #244936; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.account-mobile-menu [data-account-mobile-logout] .icon { flex: 0 0 20px; width: 20px; height: 20px; }
.account-mobile-menu :is(a, button):focus-visible { outline: 2px solid #648657; outline-offset: 2px; }
.account-mobile-menu :is(.account-mobile-menu-nav a, .account-mobile-site-nav a):hover { background: #e1ecd8; }
@keyframes account-mobile-menu-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .account-sidebar { display: none; }
  #header.site-header .header-right > .profile-link { display: none; }
  #header.site-header .header-account-menu-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: #e5eedc; color: #244936; cursor: pointer; }
  #header.site-header .header-account-menu-toggle .icon { width: 24px; height: 24px; }
  #header.site-header .header-account-menu-toggle:focus-visible { outline: 2px solid #648657; outline-offset: 2px; }
  #header.site-header.has-account { padding-bottom: 0; }
  #header.site-header.has-account .nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .account-mobile-menu[open] { animation: none; }
}

/* Compact shared footer; the forest scene keeps its separate native height. */
.site-footer { padding: 24px 0 max(18px,env(safe-area-inset-bottom)); }
.site-footer .brand { font-size: 25px; gap: 9px; }
.site-footer .brand img { width: 26px; height: 30px; }
.site-footer .footer-top { padding-bottom: 14px; gap: 16px; }
.site-footer .footer-copy { margin-top: 6px; font-size: 12px; }
.site-footer .footer-documents { margin-top: 0; gap: 10px 20px; font-size: 13px; }
.site-footer .footer-bottom { padding-top: 12px; gap: 12px 24px; align-items: center; font-size: 11px; }
.site-footer .footer-owner { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; margin-top: 0; gap: 4px 16px; font-size: 11px; line-height: 1.5; }
.account-bot-note { margin-top: 16px; padding: 14px 10px 0; border-top: 1px solid #d5dfce; font-size: 12px; color: #61765f; }
#main .account-bot-note summary { display: flex; gap: 8px; align-items: center; padding: 0; cursor: pointer; list-style: none; color: #31583b; font-size: 12px; line-height: 1.5; font-weight: 600; }
.account-bot-note summary::-webkit-details-marker { display: none; }
.account-bot-note summary::after { content: '+'; margin-left: auto; font-size: 18px; font-weight: 400; }
.account-bot-note[open] summary::after { content: '−'; }
.account-bot-note .icon { width: 18px; height: 18px; flex-shrink: 0; }
#main .account-bot-note p { margin: 10px 0; padding: 0; font-size: 12px; line-height: 1.6; }
#main .account-bot-note > a { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; }
#main .account-bot-note-body a { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.account-bot-note summary::after { transition: color .2s; }
.referral-terms { overflow-anchor: none; }
#main .account-statistics { margin-top: 22px; padding: 22px; }
#main .account-statistics .panel-heading { padding: 0 0 18px; }
#main .account-statistics .panel-heading p { margin: 5px 0 0; color: #536d4c; font-size: 12px; }
.account-stat-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 0 0 24px; }
.account-stat-totals > div { padding: 15px; background: #e8efdf; border-radius: 12px; }
.account-stat-totals dt { color: #536d4c; font-size: 12px; line-height: 1.5; }
.account-stat-totals dd { margin: 8px 0 0; font-size: clamp(21px,2.2vw,29px); font-weight: 650; color: #173f2f; }
.account-stat-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.account-stat-toolbar h3 { margin: 0; font-size: 15px; }
.account-stat-toolbar [role='group'] { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #e2ebd9; }
.account-stat-toolbar button { padding: 8px 13px; border: 0; border-radius: 8px; background: transparent; color: #476741; font: inherit; font-size: 12px; cursor: pointer; }
.account-stat-toolbar button[aria-pressed='true'] { background: #173f2f; color: #f8faf6; }
.account-stat-toolbar button:focus-visible { outline: 2px solid #73964f; outline-offset: 2px; }
.account-stat-plot { margin-top: 16px; }
.account-stat-plot svg { display: block; width: 100%; height: auto; min-height: 100px; overflow: visible; }
.account-stat-grid path { fill: none; stroke: #cfddc4; stroke-width: 1; }
.account-stat-line { fill: none; stroke: #426e45; stroke-width: 3; stroke-linecap: round; }
.account-stat-point { fill: #426e45; stroke: #f5f8ef; stroke-width: 2; }
.account-stat-months { display: grid; grid-template-columns: repeat(var(--stat-months),minmax(0,1fr)); gap: 6px; }
.account-stat-months > div { display: grid; gap: 6px; text-align: center; }
.account-stat-months span { color: #536d4c; font-size: 11px; }
.account-stat-months strong { color: #214b35; font-size: 13px; }
#main .account-stat-empty { margin: 18px 0 0; padding: 12px; border-radius: 10px; background: #e8efdf; color: #4b6744; font-size: 12px; text-align: center; }
#main .account-stat-caption { margin: 16px 0 0; color: #536d4c; font-size: 11px; line-height: 1.6; }
@media(max-width:1100px) { .account-stat-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  #main .account-statistics { padding: 17px; }
  .account-stat-totals { gap: 9px; }
  .account-stat-totals > div { padding: 12px; }
  .account-stat-months span { font-size: 9px; }
  .account-stat-months strong { font-size: 11px; }
}
.account-heading > div { flex: 1; }
.account-heading h1[data-rewriting] { display: grid; grid-template-columns: minmax(0, 1fr); }
.account-heading-line { grid-area: 1 / 1; min-width: 0; white-space: normal; }
.account-person-avatar { position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; overflow: hidden; color: white; font-size: 21px; font-weight: 650; }
.account-person-avatar .avatar-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.account-avatar-color-0 { background: linear-gradient(155deg,#ffb181,#f37d69); }
.account-avatar-color-1 { background: linear-gradient(155deg,#b4f58d,#6ee5b4); }
.account-avatar-color-2 { background: linear-gradient(155deg,#93c6ff,#9379ef); }
.account-avatar-color-3 { background: linear-gradient(155deg,#f7b5fb,#dd8aef); }
.account-avatar-color-4 { background: linear-gradient(155deg,#ffd67c,#f2ae5d); }
.account-avatar-color-5 { background: linear-gradient(155deg,#8de0e7,#57afda); }
.account-avatar-color-6 { background: linear-gradient(155deg,#b6b0fb,#8b89e4); }
.campaign-channel { color: #536c50; }
#main .referral-terms { margin-top: 8px; padding: 12px 16px; border: 1px solid #b9cbb0; border-radius: 13px; background: #e1ebd9; color: #214b35; }
#main .referral-terms > summary { padding: 2px 0; color: #214b35; }
#main .referral-terms > p { margin: 12px 0 0; padding: 0; color: #294e37; font-size: 13px; line-height: 1.7; }
#main .referral-row { display: grid; grid-template-columns: minmax(200px,1fr) minmax(300px,1fr); gap: 14px 24px; padding-block: 22px; text-align: left; }
.referral-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
#main .referral-identity { min-width: 0; text-align: left; }
#main .referral-identity strong { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 18px; line-height: 1.25; }
#main .referral-identity small { margin-top: 2px; color: #526d4e; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.referral-identity .native-emoji { width: 25px; height: 25px; }
#main .referral-dates { grid-column: 1; display: grid; align-content: start; gap: 5px; text-align: left; color: #536d4c; font-size: 11px; line-height: 1.5; }
.referral-dates time { white-space: nowrap; }
.referral-pending { color: #6b7d62; }
#main .referral-amounts { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0; text-align: left; }
.referral-amounts dt { color: #526d4e; font-size: 11px; line-height: 1.5; }
.referral-amounts dd { margin: 5px 0 0; color: #173f2f; font-size: 20px; line-height: 1.3; font-weight: 650; white-space: nowrap; }
@media(max-width:1100px) {
  #main .referral-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #main .referral-amounts { grid-column: 1; grid-row: auto; padding: 12px 14px; border-radius: 12px; background: #e8efdf; }
}
@media(max-width:600px) {
  .campaign-channel { display: block; margin-top: 3px; }
  #main .referral-row { padding-block: 18px; }
  .referral-amounts dd { font-size: 18px; }
  #main .referral-amounts { gap: 8px; padding-inline: 10px; }
}
@media(min-width:901px) {
  /* Move the existing footer clearance into the grid, so sticky navigation
     remains available through the lower part of short account pages. */
  #main:has(.account-grid) { padding-bottom: 0; }
  .account-grid { padding-bottom: 180px; }
  .account-sidebar { position: sticky; top: 16px; align-self: start; max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #bdceb3 transparent; }
}
@media(max-width:760px) {
  .site-footer { padding-top: 20px; }
  .site-footer .footer-top { display: flex; flex-direction: column; gap: 12px; }
  .site-footer .footer-documents { justify-content: flex-start; gap: 9px 18px; font-size: 12px; }
  .site-footer .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-footer .footer-owner { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
  .account-bot-note { padding-inline: 0; margin-top: 12px; }
}
