/* ==========================================================================
   #sf-yours — "Your savings. Your keys." Settings › Permissions at real phone
   scale, light theme on the green field. Two groups, labels above their
   cards: what's On (each can be turned off) and the one permission Held
   while you carry credit. Every row is styled the same; the held row swaps
   its button for a tinted chip.
   ========================================================================== */

/* the phone: same frame and scale as #er-yours */
#sf-yours .sfy-dev { --pw: clamp(300px, 27vw, 372px); display: flex; justify-content: center; }
#sf-yours .sfy-phone { --pw: inherit; }
@media (max-width: 900px) {
  #sf-yours .sfy-dev { --pw: min(340px, 46vw); margin-top: clamp(8px, 2vw, 24px); }
}
@media (max-width: 640px) {
  #sf-yours .sfy-dev { --pw: min(300px, 78vw); }
}

/* ---------- Light theme (same token swap as #story and #er-yours) ------- */
#sf-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;
}
#sf-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); }
#sf-yours .app .a-fab { background: #16211D; color: #F5F7F4; }

/* ---------- Screen (authored at 390 x 844): header / main / footer ------ */
#sf-yours .sfy-scr { display: flex; flex-direction: column; padding-bottom: 92px; }

/* header: back to Settings, the pane's title, a full-width rule under it */
#sf-yours .sfy-head { border-bottom: 1px solid var(--ax-line); }
#sf-yours .sfy-back { display: inline-flex; align-items: center; gap: 2px; margin-left: -5px; font-size: 15px; font-weight: 500; color: var(--on-ink-70); }
#sf-yours .sfy-back svg { width: 20px; height: 20px; flex: none; color: var(--on-ink); }
#sf-yours .sfy-tt { display: grid; gap: 9px; padding: 8px 20px 22px; }
#sf-yours .sfy-title { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.035em; }
#sf-yours .sfy-sub { font-size: 14px; line-height: 1.3; color: var(--on-ink-70); }

/* main takes the slack, so the footer pins above the nav */
#sf-yours .sfy-main { flex: 1; display: flex; flex-direction: column; gap: 28px; padding: 26px 18px 0; }
#sf-yours .sfy-grp { display: grid; gap: 12px; }
#sf-yours .sfy-grp > .a-label { padding: 0 2px; }

/* rows: name and control on one axis, the short line beneath */
#sf-yours .sfy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n c" "d d"; align-items: center; column-gap: 12px; row-gap: 4px; padding: 16px var(--ax-px) 17px; }
#sf-yours .sfy-row + .sfy-row { border-top: 1px solid var(--ax-line); }
#sf-yours .sfy-row > b { grid-area: n; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
#sf-yours .sfy-row > span:last-child { grid-area: d; font-size: 13px; line-height: 1.3; color: var(--on-ink-70); white-space: nowrap; }
#sf-yours .sfy-row em { font-style: normal; font-weight: 600; color: var(--on-ink); font-variant-numeric: tabular-nums; }

#sf-yours .sfy-btn,
#sf-yours .sfy-held { grid-area: c; display: inline-flex; align-items: center; height: 28px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
#sf-yours .sfy-btn { padding: 0 12px; background: #FFFFFF; border: 1px solid rgba(22,33,29,.16); color: var(--on-ink); }
#sf-yours .sfy-held { gap: 5px; padding: 0 11px 0 8px; background: rgba(14,107,78,.09); border: 1px solid rgba(14,107,78,.24); color: #0E6B4E; font-weight: 600; }
#sf-yours .sfy-held svg { width: 15px; height: 15px; flex: none; overflow: visible; }

/* footer: a full-width rule, because the line applies to the whole list */
#sf-yours .sfy-foot { border-top: 1px solid var(--ax-line); padding: 16px 20px 0; font-size: 13.5px; line-height: 1.35; color: var(--on-ink-70); }

/* words column: the three figures stay three across on phones */
@media (max-width: 640px) {
  #sf-yours .cp-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #sf-yours .cp-figs li { padding: 18px 10px 18px 0; }
  #sf-yours .cp-figs li + li { padding-left: 12px; border-left: 1px solid var(--rule); border-top: 0; }
  #sf-yours .cp-figs b { font-size: 24px; }
  #sf-yours .cp-figs span { font-size: 13px; }
}
