.favicon-generator {
    --fg-border: #d5d9e0;
    --fg-accent: #2271b1;
    --fg-bg: #f7f8fa;
    --fg-text: #1e1e1e;
    max-width: 720px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--fg-text);
}

/* Зона загрузки */
.fg-dropzone {
    position: relative;
    border: 2px dashed var(--fg-border);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    background: var(--fg-bg);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.fg-dropzone:hover,
.fg-dropzone.is-dragover {
    border-color: var(--fg-accent);
    background: #eef5fb;
}
.fg-dropzone.has-file {
    border-style: solid;
    border-color: #4caf50;
    background: #f1f8f2;
}
.fg-dropzone-icon { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.fg-dropzone-text { display: flex; flex-direction: column; gap: 4px; }
.fg-dropzone-text span { font-size: 12px; color: #666; line-height: 1.4; }
.fg-file-info {
    margin-top: 8px;
    font-size: 12px;
    color: #2a7a2e;
    word-break: break-all;
    min-height: 16px;
}

/* Панель действий */
.fg-actions-bar {
    margin-top: 20px;
    text-align: center;
}
.fg-download-all {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--fg-accent);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.fg-download-all:hover { background: #1a5a8f; }
.fg-download-all:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Результаты — друг под другом */
.fg-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}
.fg-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--fg-border);
    border-radius: 8px;
    background: #fff;
    flex-wrap: wrap;
}
.fg-preview {
    flex: 0 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    /* Размер задаётся inline через JS — реальный размер картинки */
}
.fg-info { flex: 1 1 auto; min-width: 0; }
.fg-size { font-weight: 600; font-size: 14px; }
.fg-filename {
    font-size: 11px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fg-actions {
    display: flex;
    gap: 6px;
}
.fg-copy,
.fg-download {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--fg-border);
    background: #fff;
    color: var(--fg-text);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.fg-copy:hover,
.fg-download:hover {
    background: var(--fg-bg);
    border-color: var(--fg-accent);
    color: var(--fg-accent);
}

/* Блок favicon.ico */
.fg-ico {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--fg-border);
    border-radius: 12px;
    background: #fff;
}
.fg-ico h3 { margin: 0 0 12px; font-size: 16px; }
.fg-ico-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fg-ico-preview {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: #fafafa; border-radius: 8px;
    flex-shrink: 0;
}
.fg-ico-info { flex: 1 1 320px; min-width: 0; }
.fg-ico-info p { margin: 0 0 8px; font-size: 13px; color: #666; }
.fg-ico-info code {
    background: #f0f0f0;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 12px;
}
.fg-ico-code {
    width: 100%;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
    padding: 8px;
    border: 1px solid var(--fg-border);
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.5;
}
.fg-ico-download-row {
    margin-top: 14px;
    text-align: right;
}
.fg-ico-download {
    display: inline-block;
    padding