/* ==========================================================================
   #er-yours — "It still backs your card." The Earn tab at real phone scale,
   light theme on the amber field: what's in Earn (pool + a bond, as one
   composition bar), and the line that ties it to the spending limit.
   No rates anywhere on this screen.
   ========================================================================== */

/* the phone: real scale on desktop, ~300px on phones, never cropped */
#er-yours .eyy-dev { --pw: clamp(300px, 27vw, 372px); display: flex; justify-content: center; }
#er-yours .eyy-phone { --pw: inherit; }
@media (max-width: 900px) {
  #er-yours .eyy-dev { --pw: min(340px, 46vw); margin-top: clamp(8px, 2vw, 24px); }
}
@media (max-width: 640px) {
  #er-yours .eyy-dev { --pw: min(300px, 78vw); }
}

/* ---------- Light theme (same token swap as #story and #cp-app) -------- */
#er-yours .phone-screen.app {
  --ink: #F5F7F4; --ink-2: #FFFFFF; --ink-3: #E3E7E2;
  --on-ink: #16211D; --on-ink-70: #4F5954; --on-ink-50: #6A736E; --on-ink-line: rgba(22,33,29,.11);
  --ax-line: rgba(22,33,29,.11); --ax-panel: #EEF1ED;
  --green-light: #0E6B4E; --amber-light: #A0640F;
  --eyy-pool: #0E6B4E; --eyy-bond: #24409E;
}
#er-yours .app .a-navpill { background: rgba(255,255,255,.94); border-color: rgba(22,33,29,.1); box-shadow: 0 10px 24px -14px rgba(22,33,29,.35); }
#er-yours .app .a-navpill span.on { background: #16211D; color: #F5F7F4; }
#er-yours .app .a-fab { background: #16211D; color: #F5F7F4; }
#er-yours .hx-fade { background: linear-gradient(180deg, rgba(245,247,244,0), rgba(245,247,244,.94) 55%, #F5F7F4); }
#er-yours .app .a-pillbtn { background: #16211D; color: #F5F7F4; }

/* ---------- Screen (authored at 390 x 844) ----------------------------- */
#er-yours .eyy-title { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.035em; }
#er-yours .eyy-move { height: 32px; padding: 0 13px 0 11px; gap: 6px; font-size: 13.5px; }

/* in Earn: the total, one composition bar, then the two holdings as rows */
#er-yours .eyy-totm { padding: 16px var(--ax-px) 18px; }
#er-yours .eyy-hero { font-size: 46px; }
#er-yours .eyy-comp { display: flex; gap: 3px; height: 10px; margin-top: 18px; }
#er-yours .eyy-comp i { border-radius: 2px; transform-origin: 0 50%; }
#er-yours .p { background: var(--eyy-pool); }
#er-yours .b { background: var(--eyy-bond); }

#er-yours .eyy-rows { border-top: 1px solid var(--ax-line); }
#er-yours .eyy-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; height: 62px; padding: 0 var(--ax-px); }
#er-yours .eyy-row + .eyy-row { border-top: 1px solid var(--ax-line); }
#er-yours .eyy-sw { width: 10px; height: 10px; border-radius: 2px; align-self: start; margin-top: 18px; }

/* the limit: the figure that ties Earn to the card */
#er-yours .eyy-lim { border-color: rgba(14,107,78,.42); }
#er-yours .eyy-lim .ax-h { border-bottom-color: rgba(14,107,78,.18); }
#er-yours .eyy-lim .ax-f { border-top-color: rgba(14,107,78,.18); }
#er-yours .eyy-lim .ax-f--split > span + span { border-left-color: rgba(14,107,78,.18); }
#er-yours .eyy-limm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--ax-px); }
#er-yours .eyy-limm b { font-size: 16px; font-weight: 600; line-height: 1.2; }
#er-yours .eyy-plus { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: #0E6B4E; white-space: nowrap; }
#er-yours .ax-f--split > span { justify-content: center; }

/* activity tiles */
#er-yours .ax-ico.c { color: #24409E; background: rgba(36,64,158,.07); border-color: rgba(36,64,158,.2); }
#er-yours .ax-ico.g { background: rgba(14,107,78,.07); border-color: rgba(14,107,78,.2); }
