/* foryou tab */
@property --fy-fill { syntax: "<number>"; inherits: false; initial-value: 0; }

.tab-foryou .fy-title { margin: 0 0 4px; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.2; }
.tab-foryou .fy-h { margin: 0; font-size: 1rem; }
.tab-foryou ul, .tab-foryou ol { list-style: none; margin: 0; padding: 0; }

/* picker */
.tab-foryou .fy-chip { min-height: 44px; position: relative; }
.tab-foryou .fy-chip[aria-pressed="true"] { box-shadow: 0 6px 16px -8px var(--accent-bg); }
.tab-foryou:not(.gs) .fy-chip[aria-pressed="true"] { animation: fy-pop .5s var(--spring); }
/* check badge sits on the chip corner; transform/opacity only */
.tab-foryou .fy-tick {
  position: absolute; top: -7px; right: -5px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-bg); color: #fff;
  box-shadow: 0 0 0 2px var(--card);
  transform: scale(0); opacity: 0;
  transition: transform .35s var(--ease-out, cubic-bezier(.22, 1, .36, 1)), opacity .15s;
  pointer-events: none;
}
.tab-foryou .fy-tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tab-foryou .fy-tick path { stroke-dasharray: 16; stroke-dashoffset: 0; }
.tab-foryou .fy-chip[aria-pressed="true"] .fy-tick { transform: scale(1); opacity: 1; }
.tab-foryou .fy-burst { position: absolute; inset: -2px; border-radius: 999px; border: 2px solid var(--accent-bg); pointer-events: none; }
.tab-foryou .fy-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: #1f1a17;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}
.tab-foryou .fy-handle { overflow-wrap: anywhere; }
.tab-foryou .fy-chip .demo-tag { font-size: .65rem; }
.tab-foryou .fy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tab-foryou .fy-count { margin: 0; flex-basis: 100%; }
@media (min-width: 480px) { .tab-foryou .fy-count { flex-basis: auto; } }

/* picks row */
.tab-foryou .fy-yours { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tab-foryou .fy-picks { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tab-foryou .fy-pick {
  border: 2px solid var(--accent-bg); background: var(--soft); color: var(--ink);
  border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 700;
  overflow-wrap: anywhere;
}
.tab-foryou:not(.gs) .fy-pick { animation: fy-pop .5s var(--spring) backwards; }
.tab-foryou .fy-edit { flex: none; padding: 7px 16px; }
.tab-foryou .fy-explain { margin: 0; }

/* rec list */
.tab-foryou .fy-list { display: grid; gap: 14px; }
.tab-foryou .fy-rec {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start;
  cursor: pointer;
  transition: transform .3s var(--ease-out, cubic-bezier(.22, 1, .36, 1)), box-shadow .3s;
}
.tab-foryou:not(.gs) .fy-rec { animation: fy-rise .5s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.tab-foryou .fy-rec:hover { transform: translateY(-3px); }
.tab-foryou .fy-rec:active { transform: scale(.985); }

/* the top pick leads; the rest are a quieter ranked list, so the feed is not a grid of twins */
.tab-foryou .fy-hero {
  grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 22px 20px;
  background: radial-gradient(120% 140% at 0% 0%, var(--soft), var(--card) 62%);
  border-color: color-mix(in srgb, var(--accent-bg) 45%, var(--line));
}
.tab-foryou .fy-hero .fy-ring { --size: 76px; }
.tab-foryou .fy-hero .fy-ring span { font-size: 1.25rem; }
.tab-foryou .fy-hero .fy-name { font-size: 1.3rem; }
.tab-foryou .fy-rec:not(.fy-hero) { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 16px; box-shadow: none; }
.tab-foryou .fy-rec:not(.fy-hero) .fy-ring { --size: 44px; }
.tab-foryou .fy-rec:not(.fy-hero) .fy-ring::before { inset: 5px; }
.tab-foryou .fy-rec:not(.fy-hero) .fy-ring span { font-size: .8rem; }
.tab-foryou .fy-rec:not(.fy-hero) .fy-name { font-size: 1rem; margin-bottom: 6px; }
.tab-foryou .fy-kick { margin: 0 0 2px; color: var(--accent-ink); }
.tab-foryou .fy-brand { margin: 0; font-size: .8rem; font-weight: 650; color: var(--mute); }
.tab-foryou .fy-name { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }
.tab-foryou .fy-why { display: grid; gap: 6px; margin-bottom: 12px; }
.tab-foryou .fy-tag {
  display: inline-block; margin: 0 6px 4px 0; padding: 3px 10px; border-radius: 999px;
  background: var(--lav); color: var(--lav-ink); font-size: .82rem; font-weight: 700;
}

/* score ring */
.tab-foryou .fy-ring {
  --size: 56px;
  position: relative; width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(var(--accent-bg) calc(var(--fy-fill) * 1%), var(--line) 0);
  display: grid; place-items: center;
  animation: fy-fill .9s .1s cubic-bezier(.2, .8, .2, 1) both;
}
.tab-foryou .fy-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.tab-foryou .fy-ring span { position: relative; font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }

@keyframes fy-pop { 0% { transform: scale(.88); } 55% { transform: scale(1.09); } 100% { transform: scale(1); } }
@keyframes fy-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fy-fill { from { --fy-fill: 0; } to { --fy-fill: var(--p); } }

@media (max-width: 360px) {
  .tab-foryou .fy-rec, .tab-foryou .fy-rec:not(.fy-hero), .tab-foryou .fy-hero { grid-template-columns: 1fr; }
  .tab-foryou .fy-yours { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-foryou *, .tab-foryou *::before { animation: none !important; transition: none !important; }
  .tab-foryou .fy-burst { display: none; }
  .tab-foryou .fy-ring { --fy-fill: var(--p); }
}

/* expanded picker: groups, show more, inspired note, custom tags (foryou-expand lane) */
.tab-foryou .fy-group { display: grid; gap: 8px; }
.tab-foryou .fy-gh { margin: 4px 0 0; font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.tab-foryou .fy-note { margin: -4px 0 0; }
.tab-foryou .fy-chip, .tab-foryou .fy-more, .tab-foryou .fy-addbtn { min-height: 44px; }
.tab-foryou .fy-more { border-style: dashed; color: var(--accent-ink); font-weight: 700; background: transparent; }
.tab-foryou .fy-addbtn { border-style: dashed; color: var(--accent-ink); font-weight: 750; background: transparent; }
.tab-foryou .fy-add { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-foryou .fy-add[hidden] { display: none; }
.tab-foryou .fy-addin { flex: 1 1 160px; min-height: 44px; width: auto; }
.tab-foryou .fy-add .btn { min-height: 44px; }
.tab-foryou .fy-demos .fy-chip { font-size: .85rem; }
