/* Fugui catalog and favorites only. Badge appearance remains unchanged. */
html body [data-fg-cards]:not(.list-view) .number-card:not(.favorite-unavailable) { border-radius:16px !important; box-shadow:0 2px 8px rgba(30,65,48,.035) !important; display:flex; flex-direction:column; }
html body [data-fg-cards]:not(.list-view) .number-card-top { padding:14px 16px 4px !important; flex:1; }
html body [data-fg-cards] .number-summary { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
html body [data-fg-cards] .number-type { order:0; }
html body [data-fg-cards] .number-level { order:1; }
html body [data-fg-cards] .number-pattern { order:2; }
html body [data-fg-cards]:not(.list-view) .number-card:not(.favorite-unavailable) .number-card-bottom { box-sizing:border-box; min-height:56px; padding:6px 60px 6px 16px !important; display:flex; align-items:center; }
html body [data-fg-cards]:not(.list-view) .number-card .favorite { box-sizing:border-box; position:absolute; top:auto; right:8px !important; bottom:6px !important; width:44px; height:44px; padding:0; display:grid; place-items:center; transform:none; z-index:3; }
html body [data-fg-cards] .favorite.active { color:#167568; background:#e7f3ef; }
html body [data-fg-cards] .favorite.active svg { fill:currentColor; }
@media(max-width:540px) {
 html body [data-fg-cards]:not(.list-view) .number-card-top { padding:12px 10px 4px !important; }
 html body [data-fg-cards]:not(.list-view) .number-card:not(.favorite-unavailable) .number-card-bottom { padding-left:10px !important; padding-right:54px !important; }
 html body [data-fg-cards]:not(.list-view) .number-card .favorite { right:4px !important; }
 html body [data-fg-cards] .number-summary { gap:5px 6px; }
}

/* Home cards use the same bottom action row as the catalog. */
html body .qingya-number-grid[data-fg-cards] .number-card .favorite { position:absolute !important; top:auto !important; left:auto !important; width:44px !important; height:44px !important; padding:0 !important; }
html body .qingya-number-grid[data-fg-cards] .number-card { min-height:0 !important; }
html body .qingya-number-grid[data-fg-cards] .number-header { position:static; }
