/* Generador de favicon */
.fav-title { font-size: 19px; }
.fav-source { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); }
.fav-source .thumb { width: 56px; height: 56px; border-radius: 9px; object-fit: contain; background: var(--paper) repeating-conic-gradient(#E8E3F3 0 25%, transparent 0 50%) 0 0 / 12px 12px; border: 1px solid var(--line); }
.fav-source .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .fav-source { grid-template-columns: 48px minmax(0, 1fr); } .fav-source .thumb { width: 48px; height: 48px; } .fav-source .btn { grid-column: 1 / -1; justify-self: end; } }

.fav-tab { background: #DEDAE8; border-radius: 12px 12px 0 0; padding: 8px 10px 0; }
.fav-tab-item { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 9px 9px 0 0; padding: 8px 14px; font-size: 13px; max-width: 100%; }
.fav-tab-item img { width: 16px; height: 16px; image-rendering: auto; }

.fav-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fav-card { display: grid; gap: 8px; grid-template-rows: auto auto 1fr auto; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
.fav-preview { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; background: var(--paper) repeating-conic-gradient(#E8E3F3 0 25%, transparent 0 50%) 0 0 / 12px 12px; border: 1px solid var(--line); overflow: hidden; }
.fav-preview img { max-width: 80%; max-height: 80%; }
.fav-preview .fav-sizes { display: flex; align-items: end; gap: 8px; }
.fav-preview .fav-sizes img { max-width: none; max-height: none; image-rendering: pixelated; }
.fav-preview .fav-code { font: 600 22px var(--font-mono); color: var(--violet); }
.fav-card .name { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-card .hint { line-height: 1.35; }
.fav-card .btn { width: 100%; align-self: end; }
.fav-color { width: 56px; height: 44px; padding: 3px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; flex: none; }
.fav-color-row { flex-wrap: nowrap; align-items: flex-start; }
