/* Scoped to agent plan cards; no data or subscription rules are changed. */
li:has(> div[class*="40px_minmax"]) {
  padding: 12px;
  min-width: 0;
}
li > div[class*="40px_minmax"] {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
}
li > div[class*="40px_minmax"] > button {
  min-height: 32px;
  max-width: 100%;
}
/* First plan: mobile reference spacing. No rate or eligibility changes. */
.bf-first-plan { --plan-surface: #111827; --plan-text: #ffffff; --plan-muted: #9ca3af; --plan-positive: #35e68a; --plan-action: #22c55e; --plan-alert: #ef4444; padding:16px; background:var(--plan-surface); }
.bf-first-plan > div { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.bf-first-plan > div > div:first-child > p { font-size:11px; line-height:1.25; color:var(--plan-text); }
.bf-first-plan > div > div:first-child > div { margin-top:18px; }
.bf-first-plan > div > div:first-child > div > p:first-child { font-family:Arial,Helvetica,sans-serif; font-size:24px; line-height:1; font-weight:700; letter-spacing:0; color:var(--plan-positive); }
.bf-first-plan > div > div:first-child > div > p:last-child { margin-top:11px; font-size:11px; color:var(--plan-muted); }
.bf-first-plan > div > div:last-child { gap:12px; }
.bf-first-plan > div > div:last-child > div { padding-top:2px; gap:4px; }
.bf-first-plan > div > div:last-child > div > span:first-child { width:30px; height:30px; font-size:5.5px; background:var(--plan-alert); }
.bf-first-plan > div > div:last-child > div > span:last-child { font-size:10.5px; }
.bf-first-plan > div > div:last-child > button { border-radius:8px; padding:8px 12px; min-height:32px; font-size:12px; line-height:16px; font-weight:400; }
.bf-first-plan > div > div:last-child > button:not(:disabled) { background:var(--plan-action); color:var(--plan-text); }

/* --- Shapes restored: the shipped stylesheet names these classes with a space after each comma,
   while the app markup writes them without one, so the rules below never matched and the
   badges fell back to plain rectangles. These selectors match the classes the app actually
   renders, restoring the red star badge, the corner ribbons and the scrollbar tint. --- */

.\[clip-path\:polygon\(50\%_0\,61\%_26\%\,88\%_12\%\,74\%_39\%\,100\%_50\%\,74\%_61\%\,88\%_88\%\,61\%_74\%\,50\%_100\%\,39\%_74\%\,12\%_88\%\,26\%_61\%\,0_50\%\,26\%_39\%\,12\%_12\%\,39\%_26\%\)\] {
    clip-path: polygon(50% 0,61% 26%,88% 12%,74% 39%,100% 50%,74% 61%,88% 88%,61% 74%,50% 100%,39% 74%,12% 88%,26% 61%,0 50%,26% 39%,12% 12%,39% 26%);
}

.\[clip-path\:polygon\(0_0\,100\%_0\,78\%_100\%\,0_100\%\)\] {
    clip-path: polygon(0 0,100% 0,78% 100%,0 100%);
}

.\[scrollbar-color\:rgba\(148\,163\,184\,0\.45\)_transparent\] {
    scrollbar-color: rgba(148,163,184,0.45) transparent;
}

.\[scrollbar-color\:rgba\(53\,230\,138\,0\.45\)_transparent\] {
    scrollbar-color: rgba(53,230,138,0.45) transparent;
}
