/* Store reporting and navigation use the landing page's green and sage palette. */
/* Typography only: existing size and weight rules continue to own the type scale. */
body.buyer-app.compact-workspace.store-workspace { --ws-serif: Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
body.buyer-app.compact-workspace.store-workspace #main .affiliate-dashboard :is(h1,h2,h3) { font-family: inherit; }
body.buyer-app.compact-workspace.store-workspace .workspace-header { background: #edf3e8; border-bottom-color: #d7e3d4; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.buyer-app.compact-workspace.store-workspace .workspace-brand :is(.brand,.brand-wordmark,small) { color: #172f29; }
body.buyer-app.compact-workspace.store-workspace .workspace-tools .topbar-cart { background: #fffefa; border-color: #bacabd; color: #176b50; }
body.buyer-app.compact-workspace.store-workspace .workspace-tools .avatar { background: #edf3e8; color: #176b50; box-shadow: 0 0 0 1px #bacabd; }
body.buyer-app.compact-workspace.store-workspace .workspace-header :is(a,button):focus-visible { outline-color: #176b50; }
body.buyer-app.compact-workspace.store-workspace:has(.affiliate-dashboard) { background: #fffefa; }

/* The profile remains the account entry point; names and roles live inside its menu. */
body.buyer-app.compact-workspace.store-workspace .workspace-tools .user-card { display: block; }
body.buyer-app.compact-workspace.store-workspace .workspace-tools .account-id { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 2px; gap: 0; border: 0; background: transparent; box-shadow: none; }
body.buyer-app.compact-workspace.store-workspace .workspace-tools .account-id:hover { background: #e2ecdc; }
body.buyer-app.compact-workspace.store-workspace .workspace-tools .account-id :is(.account-name,svg) { display: none; }
body.buyer-app.compact-workspace.store-workspace .workspace-tools .avatar { width: 40px; height: 40px; flex-basis: 40px; }
body.buyer-app.compact-workspace.store-workspace .account-mobile-cart { display: none; }
/* Flat, square account navigation. The avatar itself remains circular. */
body.buyer-app.compact-workspace.store-workspace .account-popover {
  padding: 6px; border: 1px solid #c7d6c3; border-radius: 0;
  background: #edf3e8; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.buyer-app.compact-workspace.store-workspace .account-menu-heading {
  padding: 10px 10px 12px; margin: 0 0 4px; border-bottom: 1px solid #c7d6c3;
}
body.buyer-app.compact-workspace.store-workspace .account-menu-heading .avatar { display: none; }
body.buyer-app.compact-workspace.store-workspace .account-menu-heading > div { width: 100%; }
body.buyer-app.compact-workspace.store-workspace .account-menu-heading > div > span { margin-top: 4px; color: #5c6861; }
body.buyer-app.compact-workspace.store-workspace .account-popover :is(a,#signout) {
  align-items: center; justify-content: flex-start; gap: 12px;
  width: 100%; min-height: 44px; margin: 0; padding: 10px; border-radius: 0; box-shadow: none;
}
body.buyer-app.compact-workspace.store-workspace .account-popover #signout { margin-top: 4px; border-top: 1px solid #c7d6c3; }
body.buyer-app.compact-workspace.store-workspace .account-popover #signout svg { order: -1; margin: 0; }
body.buyer-app.compact-workspace.store-workspace .account-popover svg { flex: 0 0 auto; }
body.buyer-app.compact-workspace.store-workspace .account-popover :is(a,#signout,#menuAccountName) { color: #172f29; }
body.buyer-app.compact-workspace.store-workspace .account-popover :is(a,#signout):hover { background: #dfeadb !important; color: #176b50; }
body.buyer-app.compact-workspace.store-workspace .account-sidebar {
  border-radius: 0; background: #fffefa; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.buyer-app.compact-workspace.store-workspace .account-sidebar .nav-link {
  border-radius: 0; box-shadow: none; background-image: none; backdrop-filter: none;
}
body.buyer-app.compact-workspace.store-workspace .account-sidebar .nav-link[aria-current='page'] {
  background: #edf3e8; color: #172f29; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.buyer-app.compact-workspace.store-workspace .account-sidebar .nav-link:hover { background: #edf3e8; color: #172f29; }
body.buyer-app.compact-workspace.store-workspace .account-sidebar .nav-link[aria-current='page']::before { content: none; }
body.buyer-app.compact-workspace :is(#accountPopover #signout,#workspaceNavigation #navLogout),
body.buyer-app.compact-workspace :is(#accountPopover #signout,#workspaceNavigation #navLogout):hover { color: #a3372b; }
body.buyer-app.compact-workspace :is(#accountPopover #signout,#workspaceNavigation #navLogout) :is(span,svg) { color: inherit; }

/* Sidebar pages need a short introduction; the public store keeps its larger banners. */
body.buyer-app.compact-workspace #main .store-page-banner { min-height: 120px; height: clamp(120px,10vw,144px); margin-bottom: 24px; }
body.buyer-app.compact-workspace #main .store-page-banner-inner { grid-template-columns: minmax(0,1fr) clamp(144px,18vw,200px); gap: 24px; padding: 8px 20px; }
body.buyer-app.compact-workspace #main .store-page-banner p { max-width: none; margin-top: 8px; }
body.buyer-app.compact-workspace #main .store-page-banner-art > svg { height: 112px; max-height: 112px; }
body.buyer-app.compact-workspace #main .store-page-banner-symbol { width: 104px; height: 104px; }
body.buyer-app.compact-workspace #main .store-page-banner-symbol svg { width: 64px; height: 64px; }
@media (max-width: 600px) {
  body.buyer-app.compact-workspace #main .store-page-banner { min-height: 110px; height: 110px; }
  body.buyer-app.compact-workspace #main .store-page-banner-inner { grid-template-columns: minmax(0,1fr) 80px; gap: 12px; padding: 8px 16px; }
  body.buyer-app.compact-workspace #main .store-page-banner p { display: none; }
  body.buyer-app.compact-workspace #main .store-page-banner-art > svg { height: 88px; max-height: 88px; }
  body.buyer-app.compact-workspace #main .store-page-banner-symbol { width: 80px; height: 80px; }
  body.buyer-app.compact-workspace #main .store-page-banner-symbol svg { width: 56px; height: 56px; }
}
@media (max-width: 760px) {
  body.buyer-app.compact-workspace.store-workspace .workspace-tools :is(#menuToggle,.topbar-cart) { display: none; }
  body.buyer-app.compact-workspace.store-workspace .account-mobile-cart { display: flex; }
  body.buyer-app.compact-workspace.store-workspace :is(.account-sidebar,.account-sidebar .nav-link,.app-tabbar,.app-tabbar button) { border-radius: 0; }
}

/* Account pages share the landing palette. Administrative and other buyer views stay scoped out. */
body.buyer-app.compact-workspace.store-workspace.affiliate-green-page {
  --primary: #176b50; --primary-hover: #10573f; --link: #176b50; --ink: #172f29;
  --muted: #5c6861; --line: #dce3da; --bg: #fffefa; --soft: #edf3e8;
  --color-ink: #172f29; --color-muted: #5c6861; --color-line: #dce3da;
  --color-slate: #176b50; --color-slate-deep: #172f29; --color-surface: #fffefa;
  --color-cream: #fffefa; --color-cream-2: #edf3e8; --color-cream-3: #e2ecdc;
  --color-field-line: #bacabd; --ws-slate: #176b50; --ws-slate-deep: #172f29;
  --ws-edge: #dce3da; --ws-glass: #fffefa; --ws-glass-strong: #fffefa;
  background: #fffefa; color: #172f29;
}
body.buyer-app.compact-workspace.affiliate-green-page #main :is(button,a.button,.settings-tabs .tab),
body.buyer-app.compact-workspace.affiliate-green-page dialog :is(button,a.button) { border-radius: 0; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(button[type='submit'],a.button:not(.secondary),#newOrder,#addAddress),
body.buyer-app.compact-workspace.affiliate-green-page dialog button[type='submit'] { background: #176b50; border-color: #176b50; color: #fff; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(button[type='submit'],a.button:not(.secondary),#newOrder,#addAddress):hover:not(:disabled),
body.buyer-app.compact-workspace.affiliate-green-page dialog button[type='submit']:hover:not(:disabled) { background: #10573f; border-color: #10573f; color: #fff; }
body.buyer-app.compact-workspace.affiliate-green-page :is(#main,dialog) :is(button.secondary,a.button.secondary,button.text,.icon-button) { color: #176b50; border-color: #bacabd; }
body.buyer-app.compact-workspace.affiliate-green-page :is(#main,dialog) :is(button.secondary,a.button.secondary,.icon-button):hover:not(:disabled) { background: #edf3e8; color: #10573f; border-color: #789884; }
body.buyer-app.compact-workspace.affiliate-green-page :is(#main,dialog) :is(input,select,textarea) { accent-color: #176b50; }
body.buyer-app.compact-workspace.affiliate-green-page :is(#main,dialog) :is(input,select,textarea):focus { border-color: #176b50; box-shadow: none; }
body.buyer-app.compact-workspace.affiliate-green-page :is(#main,dialog) :is(a,button,input,select,textarea,summary):focus-visible { outline-color: #176b50; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(.settings-tabs .tab,.referral-code) { border-color: #dce3da; }
body.buyer-app.compact-workspace.affiliate-green-page #main .settings-tabs .tab { background: #fffefa; color: #5c6861; box-shadow: none; }
body.buyer-app.compact-workspace.affiliate-green-page #main .settings-tabs .tab[aria-selected='true'],
body.buyer-app.compact-workspace.affiliate-green-page #main .settings-tabs .tab:hover { background: #edf3e8; color: #176b50; box-shadow: none; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(.referral-code strong,.referral-more,.order-card-view,.order-card-number) { color: #176b50; }
body.buyer-app.compact-workspace.affiliate-green-page #main .order-card-number { background: #edf3e8; }
body.buyer-app.compact-workspace.affiliate-green-page #main .affiliate-order-workspace :is(.order-card,.history-row) { background: #fffefa; color: #172f29; border-color: #dce3da; box-shadow: none; }
body.buyer-app.compact-workspace.affiliate-green-page #main .affiliate-order-workspace :is(.order-card,.history-row):hover { background: #edf3e8; border-color: #bacabd; color: #172f29; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(.order-card strong,.history-row strong,.profile-header h2) { color: #172f29; }
body.buyer-app.compact-workspace.affiliate-green-page #main .history-row .money { color: #172f29; }
body.buyer-app.compact-workspace.affiliate-green-page #main .history-arrow { color: #176b50; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(.order-card-recipient,.order-card-meta,.history-row small) { color: #5c6861; }
body.buyer-app.compact-workspace.affiliate-green-page .order-status.completed { background: #e1eee8; color: #176044; }
body.buyer-app.compact-workspace.affiliate-green-page .order-status.pending { background: #eef1e9; color: #52665b; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(.tile-icon,.profile-header .avatar,.avatar-pen) { background: #edf3e8; color: #176b50; }
body.buyer-app.compact-workspace.affiliate-green-page #main .profile-header .avatar.large { border-color: #bacabd; box-shadow: 0 0 0 4px #edf3e8; }
body.buyer-app.compact-workspace.affiliate-green-page :is(#main,dialog) .notice.info { background: #edf3e8; color: #176b50; border-color: #bacabd; }
body.buyer-app.compact-workspace.affiliate-green-page :is(#main,dialog) .badge.pending { background: #eef1e9; color: #52665b; }
@media (max-width: 700px) {
  body.buyer-app.compact-workspace.affiliate-green-page #agentCustomerResults td { background: #f4f5ef; }
}
body.buyer-app.compact-workspace.affiliate-green-page #main .method-summary:has(input:checked) { background: transparent; border-color: #176b50; box-shadow: none; }
body.buyer-app.compact-workspace.affiliate-green-page dialog { background: #fffefa; border-color: #dce3da; color: #172f29; }
body.buyer-app.compact-workspace.affiliate-green-page dialog :is(.dialog-head,.dialog-footer) { background: #fffefa; border-color: #dce3da; }
body.buyer-app.compact-workspace.affiliate-green-page #main button:disabled,
body.buyer-app.compact-workspace.affiliate-green-page dialog button:disabled { color: #5c6861; background: #eef1e9; border-color: #dce3da; }
body.buyer-app.compact-workspace.affiliate-green-page #main .catalog-page-actions { justify-content: flex-end; }
body.buyer-app.compact-workspace.affiliate-green-page #main .pdp-title { font-family: inherit; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-card-balance { background: #143d31; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-card { border-radius: 0; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-card-balance > strong { color: #fffefa; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-card-balance :is(span,small) { color: #d2dfd5; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-card-actions #addFunds { background: #176b50 !important; color: #fff; border-color: #176b50 !important; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-card-actions #addFunds:hover { background: #10573f !important; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-card-actions :is(#viewStatement,#withdrawFunds) { background: #edf3e8 !important; color: #176b50; border-color: #bacabd !important; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-card-actions :is(#viewStatement,#withdrawFunds):hover { background: #e2ecdc !important; color: #10573f; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(.wallet-stat-icon,.wallet-entry-icon,.wallet-entry-icon.credit) { background: #edf3e8; color: #176b50; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(.wallet-totals strong,.wallet-entry-amount) { color: #172f29; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-entry-amount.credit { color: #176b50; }
body.buyer-app.compact-workspace.affiliate-green-page #main :is(.wallet-totals > div > span:last-child,.wallet-entry-copy p,.wallet-transaction-list time) { color: #5c6861; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-entry-copy strong { color: #172f29; }
body.buyer-app.compact-workspace.affiliate-green-page #main .funding-reference { color: #176b50; }
body.buyer-app.compact-workspace.affiliate-green-page #main .wallet-pagination { color: #5c6861; }
body.buyer-app.compact-workspace.store-workspace #main .dashboard-tile { background: #fffefa; border-color: #dce3da; border-radius: 0; box-shadow: none; }
body.buyer-app.compact-workspace.store-workspace #main .dashboard-tile:hover { background: #edf3e8; border-color: #bacabd; }
body.buyer-app.compact-workspace.store-workspace #main .dashboard-tile :is(h2,a) { color: #172f29; font-family: inherit; }
body.buyer-app.compact-workspace.store-workspace #main .dashboard-tile p { color: #5c6861; }

/* Profile and account security share one page, with independent forms. */
body.buyer-app.compact-workspace.store-workspace .account-profile-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; align-items: start; }
body.buyer-app.compact-workspace.store-workspace .account-profile-layout > div { min-width: 0; }
body.buyer-app.compact-workspace.store-workspace .account-profile-layout :is(.profile-panel,.security-settings) { width: 100%; max-width: none; border-radius: 0; background: #fffefa; border-color: #dce3da; box-shadow: none; }
body.buyer-app.compact-workspace.store-workspace #profileSecurity .security-settings-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
body.buyer-app.compact-workspace.store-workspace .account-profile-layout :is(.profile-header > div,.section-title h2) { min-width: 0; overflow-wrap: anywhere; }
body.buyer-app.compact-workspace.store-workspace #profileSecurity button.danger { color: #fff; background: #a3372b; border-color: #a3372b; }
body.buyer-app.compact-workspace.store-workspace #profileSecurity button.danger:hover:not(:disabled) { color: #fff; background: #85291f; border-color: #85291f; }
@media (min-width: 1101px) {
  body.buyer-app.compact-workspace.store-workspace .account-profile-layout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
}

/* Selection and interaction states must change foreground and background together. */
body.buyer-app.compact-workspace.store-workspace #main :is(.chip,.segmented button) { border-radius: 0; }
body.buyer-app.compact-workspace.store-workspace #main :is(.chip,.segmented button):hover:not(:disabled) { background: #edf3e8; border-color: #789884; color: #176b50; }
body.buyer-app.compact-workspace.store-workspace #main :is(.chip[aria-pressed='true'],.segmented button[aria-pressed='true'],.segmented button.active) { background: #176b50; border-color: #176b50; color: #fff; }
body.buyer-app.compact-workspace.store-workspace #main :is(.chip[aria-pressed='true'],.segmented button[aria-pressed='true'],.segmented button.active):is(:hover,:focus-visible,:active) { background: #10573f; border-color: #10573f; color: #fff; }

body.buyer-app .affiliate-dashboard { --dash-ink: #172f29; --dash-muted: #5c6861; --ws-slate-deep: #172f29; --ws-slate: #176b50; --ws-edge: #dce3da; --color-muted: #5c6861; --color-cream-2: #edf3e8; --color-line: #dce3da; --primary: #176b50; --primary-hover: #10573f; --link: #176b50; display: grid; gap: 28px; min-width: 0; }
body.buyer-app .affiliate-dashboard .affiliate-dashboard-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin: 0; }
body.buyer-app .affiliate-dashboard .account-welcome h1 { margin: 8px 0 12px; font-size: clamp(28px,3vw,38px); line-height: 1.2; }
body.buyer-app .affiliate-dashboard :is(p,button,input,select) { font-size: 16px; line-height: 1.6; }
body.buyer-app .affiliate-dashboard :is(.eyebrow,label,time,.affiliate-caption,.affiliate-dashboard-updated) { font-size: 14px; }
body.buyer-app .affiliate-dashboard p { margin: 8px 0 0; color: var(--dash-muted); }
body.buyer-app .affiliate-dashboard h2 { margin: 0; color: var(--dash-ink); font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
body.buyer-app .affiliate-dashboard h3 { margin: 0; font-size: 20px; font-weight: 550; }
body.buyer-app .affiliate-dashboard :is(button,.button,input,select) { min-height: 44px; }
body.buyer-app .affiliate-dashboard .affiliate-dashboard-actions { display: flex; align-items: center; gap: 10px; }
body.buyer-app .affiliate-dashboard-actions .button { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; white-space: normal; border-radius: 0; }
body.buyer-app .affiliate-dashboard .affiliate-income { display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden; border-radius: 0; }
body.buyer-app .affiliate-income-main { padding: 32px; }
body.buyer-app .affiliate-income h2 { font-size: 16px; font-weight: 500; }
body.buyer-app .affiliate-income-total { display: block; margin-top: 16px; color: var(--dash-ink); font-size: clamp(36px,4.2vw,56px); font-weight: 550; line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
body.buyer-app .affiliate-income-split { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 28px 0 0; }
body.buyer-app .affiliate-income-split :is(dt,dd) { margin: 0; font-size: 14px; }
body.buyer-app .affiliate-income-split dt { color: var(--dash-muted); }
body.buyer-app .affiliate-income-split dd { margin-top: 4px; color: var(--dash-ink); font-size: 18px; font-weight: 550; }
body.buyer-app .affiliate-wallet { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 32px; background: var(--color-cream-2,#f3ebdf); border-left: 1px solid var(--ws-edge,#e7dccb); }
body.buyer-app .affiliate-wallet > strong { display: block; margin-top: 16px; color: var(--dash-ink); font-size: 30px; line-height: 1.3; font-weight: 550; overflow-wrap: anywhere; }
body.buyer-app .affiliate-wallet > p { font-size: 14px; }
body.buyer-app .affiliate-wallet .text-link { margin-top: 24px; }
body.buyer-app .affiliate-dashboard .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
body.buyer-app .affiliate-performance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0; padding: 8px 0 12px; }
body.buyer-app .affiliate-performance > div { padding: 0 24px; border-left: 1px solid var(--ws-edge,#e7dccb); }
body.buyer-app .affiliate-performance > div:first-child { padding-left: 0; border-left: 0; }
body.buyer-app .affiliate-performance dt { color: var(--dash-muted); font-size: 14px; }
body.buyer-app .affiliate-performance dd { margin: 8px 0; color: var(--dash-ink); font-size: clamp(24px,2.5vw,32px); line-height: 1.3; letter-spacing: -.025em; font-weight: 550; overflow-wrap: anywhere; }
body.buyer-app .affiliate-performance span { color: var(--dash-muted); font-size: 14px; }
body.buyer-app .affiliate-dashboard-middle { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: start; gap: 24px; }
body.buyer-app :is(.affiliate-activity,.affiliate-network) { padding: 28px; min-width: 0; }
body.buyer-app .affiliate-activity > header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
body.buyer-app .affiliate-activity > header p { font-size: 14px; }
body.buyer-app .affiliate-activity > header strong { font-size: 24px; color: var(--dash-ink); font-weight: 550; }
body.buyer-app .affiliate-chart { display: block; width: 100%; height: 160px; overflow: visible; margin: 32px 0 8px; }
body.buyer-app .affiliate-chart-labels { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 20px; color: var(--dash-muted); font-size: 14px; }
body.buyer-app .affiliate-chart rect { fill: var(--ws-slate,#3e4d68); }
body.buyer-app .affiliate-chart rect.is-reversal { fill: var(--color-danger,#a84639); }
body.buyer-app .affiliate-chart rect:focus { outline: 2px solid var(--ws-slate,#3e4d68); outline-offset: 3px; }
body.buyer-app .affiliate-chart text { fill: var(--dash-muted); font: 14px Inter,sans-serif; }
body.buyer-app .affiliate-chart .chart-baseline { stroke: var(--ws-edge,#e7dccb); stroke-width: 1; }
body.buyer-app .affiliate-chart-empty { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 200px; padding: 32px 0; }
body.buyer-app .affiliate-chart-empty span { font-size: 14px; color: var(--dash-muted); }
body.buyer-app .affiliate-dashboard .affiliate-caption { font-size: 14px; }
body.buyer-app .affiliate-network-counts { margin: 20px 0 0; }
body.buyer-app .affiliate-network-counts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--ws-edge,#e7dccb); }
body.buyer-app .affiliate-network-counts dt { font-size: 14px; color: var(--dash-muted); }
body.buyer-app .affiliate-network-counts dd { margin: 0; color: var(--dash-ink); font-size: 22px; font-weight: 550; }
body.buyer-app .affiliate-invite-tool { margin-top: 24px; }
body.buyer-app .affiliate-invite-tool label { display: block; margin-bottom: 8px; }
body.buyer-app .affiliate-invite-tool > div { display: flex; flex-wrap: wrap; gap: 10px; }
body.buyer-app .affiliate-invite-tool input { flex: 1 1 120px; min-width: 0; width: 100%; font-size: 16px; }
body.buyer-app .affiliate-invite-tool p { font-size: 14px; }
body.buyer-app .affiliate-recent-invites { margin-top: 24px; border-top: 1px solid var(--ws-edge,#e7dccb); }
body.buyer-app .affiliate-recent-invites summary { padding: 16px 0; color: var(--dash-ink); font-size: 16px; cursor: pointer; }
body.buyer-app .affiliate-recent-invites ul { list-style: none; margin: 0; padding: 0; }
body.buyer-app .affiliate-recent-invites li { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ws-edge,#e7dccb); font-size: 14px; }
body.buyer-app .affiliate-recent-invites :is(strong,time) { display: block; font-size: 14px; }
body.buyer-app .affiliate-recent-invites :is(time,p) { color: var(--dash-muted); font-size: 14px; }
body.buyer-app .affiliate-sales { min-width: 0; overflow: hidden; }
body.buyer-app .affiliate-sales > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 28px; }
body.buyer-app .affiliate-sales > header p { font-size: 14px; }
body.buyer-app .affiliate-sales select { max-width: 100%; width: auto; }
body.buyer-app .affiliate-sales-table { overflow-x: auto; }
body.buyer-app .affiliate-sales table { width: 100%; border-collapse: collapse; }
body.buyer-app .affiliate-sales :is(th,td) { padding: 18px 24px; border-bottom: 1px solid var(--ws-edge,#e7dccb); background: transparent; font-size: 16px; text-align: left; }
body.buyer-app .affiliate-sales th { color: var(--dash-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
body.buyer-app .affiliate-sales td :is(strong,span,time) { display: block; }
body.buyer-app .affiliate-sales td strong { color: var(--dash-ink); font-size: 16px; font-weight: 550; }
body.buyer-app .affiliate-sales td :is(span,time) { margin-top: 4px; color: var(--dash-muted); font-size: 14px; }
body.buyer-app .affiliate-sale-status { display: inline-block; width: fit-content; padding: 4px 10px; border-radius: 6px; background: var(--color-cream-2,#f3ebdf); }
body.buyer-app .affiliate-sales td .affiliate-sale-status.completed { color: #356148; background: #e6eee6; }
body.buyer-app .affiliate-sales td .affiliate-sale-status:is(.failed,.cancelled) { color: #923530; background: #f6e8e2; }
body.buyer-app .affiliate-more-sales { margin: 20px 28px; }
body.buyer-app :is(.affiliate-sales-empty,.affiliate-dashboard-error) { padding: 32px 28px; }
body.buyer-app .affiliate-dashboard-error button { margin-top: 24px; }
body.buyer-app .affiliate-dashboard .affiliate-dashboard-updated { margin: 0; color: var(--dash-muted); font-size: 14px; }
/* Forest green earnings and sage secondary surfaces match the public landing page. */
body.buyer-app .affiliate-income-main { background: #143d31; }
body.buyer-app.compact-workspace #main .affiliate-income-main :is(h2,.affiliate-income-total,dd) { color: #fffefa; }
body.buyer-app .affiliate-dashboard .affiliate-income-main :is(p,dt) { color: #d2dfd5; }
body.buyer-app .affiliate-wallet { background: #edf3e8; border-color: #dce3da; }
body.buyer-app .affiliate-performance > div:nth-child(1) dd { color: #875c19; }
body.buyer-app .affiliate-performance > div:nth-child(2) dd { color: #176b50; }
body.buyer-app .affiliate-activity { background: #f4f5ef; }
body.buyer-app .affiliate-chart rect { fill: #176b50; }
body.buyer-app .affiliate-chart rect.is-reversal { fill: #a84639; }
body.buyer-app .affiliate-network { background: #fffefa; }
body.buyer-app.compact-workspace #main .affiliate-dashboard .button:not(.secondary),
body.buyer-app.compact-workspace #main .affiliate-dashboard #retryAffiliateDashboard { background: #176b50; border-color: #176b50; color: #fff; }
body.buyer-app.compact-workspace #main .affiliate-dashboard .button:not(.secondary):hover { background: #10573f; border-color: #10573f; }
body.buyer-app .affiliate-dashboard :is(button.secondary,.text-link) { color: #176b50; }
body.buyer-app.compact-workspace.store-workspace :is(.account-sidebar,.account-popover,.affiliate-dashboard) :is(a,button,input,select,summary):focus-visible { outline-color: #176b50; }
@media (max-width: 1100px) { body.buyer-app .affiliate-dashboard-middle { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) {
  body.buyer-app .affiliate-dashboard { gap: 24px; }
  body.buyer-app .affiliate-dashboard .affiliate-income { grid-template-columns: minmax(0,1fr); }
  body.buyer-app :is(.affiliate-income-main,.affiliate-wallet,.affiliate-activity,.affiliate-network) { padding: 24px; }
  body.buyer-app .affiliate-income-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-top: 24px; }
  body.buyer-app .affiliate-wallet { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; border-left: 0; border-top: 1px solid var(--ws-edge,#e7dccb); }
  body.buyer-app .affiliate-wallet > strong { margin: 0; font-size: 24px; }
  body.buyer-app .affiliate-wallet > p { grid-column: 1/-1; margin: 0; }
  body.buyer-app .affiliate-wallet .text-link { grid-column: 1/-1; margin: 0; }
  body.buyer-app .affiliate-performance { grid-template-columns: minmax(0,1fr); gap: 0; padding: 0; }
  body.buyer-app .affiliate-performance > div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--ws-edge,#e7dccb); }
  body.buyer-app .affiliate-performance > div:first-child { padding-top: 0; }
  body.buyer-app .affiliate-performance dd { font-size: 28px; }
  body.buyer-app .affiliate-sales > header { padding: 24px; }
  body.buyer-app .affiliate-sales :is(table,tbody) { display: block; }
  body.buyer-app .affiliate-sales thead { display: none; }
  body.buyer-app .affiliate-sales tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 24px; border-top: 1px solid var(--ws-edge,#e7dccb); }
  body.buyer-app .affiliate-sales td { display: block; padding: 0; border: 0; min-width: 0; }
  body.buyer-app .affiliate-sales td::before { display: none; }
  body.buyer-app .affiliate-sales td:first-child { grid-column: 1/-1; }
  body.buyer-app .affiliate-sales td:nth-child(2) { grid-column: 1; grid-row: 2; }
  body.buyer-app .affiliate-sales td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  body.buyer-app .affiliate-sales td:last-child { grid-column: 1/-1; grid-row: 3; }
  body.buyer-app .affiliate-sales td:last-child::before { display: block; content: 'Your commission'; color: var(--dash-muted); font-size: 14px; margin-bottom: 4px; }
  body.buyer-app .affiliate-sales td:first-child strong { overflow-wrap: anywhere; }
}
