/* Botões de Ação Redondos */
.f4l-action-btn { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.95); 
    border: 1px solid #E0E0E0; 
    color: #555; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); 
    transition: all 0.2s; 
    pointer-events: auto; 
    
    /* NOVO: Garante que links não tenham sublinhado */
    text-decoration: none !important; 
}/* f4l-style.css — v38.0: Final Consolidated Version */

/* --- 1. RESET & GLOBAL CONFIG --- */
#wpadminbar, #masthead, .site-header, #colophon, .site-footer, header.header, footer.footer { 
    display: none !important; 
}

html { margin-top: 0 !important; }

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --f4l-bg: #F5F5F7;
    --f4l-bg-card: #FFFFFF;
    --f4l-border: rgba(255,255,255,0.1);
    --f4l-border-dark: #E5E5E5;
    --f4l-h-ctrl: 42px; 
    
    --f4l-size: 64px; /* TAMANHO PADRÃO AUMENTADO */

    /* Paleta */
    --f4l-primary: #007bff;
    --f4l-danger: #FF3B30;
    --f4l-success: #4CAF50;
    --f4l-purple: #6f42c1;
    --f4l-text-color: #000000;
}

/* Ajuste mobile do tamanho da fonte */
@media (max-width: 768px) {
    :root { --f4l-size: 42px; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--f4l-bg);
    color: #111;
    margin: 0; padding: 0;
    padding-left: 72px; 
    overflow-x: hidden;
}

#f4l-root { 
    position: relative; 
    min-height: 100vh; 
    padding-top: 190px; 
    padding-bottom: 60px; 
}

.f4l-hidden { display: none !important; }

/* --- 2. SIDEBAR --- */
.f4l-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 72px;
    background: #FFF; border-right: 1px solid var(--f4l-border-dark);
    z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 20px 0;
}
.f4l-sidebar-top, .f4l-sidebar-bottom { display: flex; flex-direction: column; gap: 10px; }

.f4l-nav-item {
    background: transparent; border: none; width: 50px; height: 50px;
    border-radius: 8px; cursor: pointer; color: #666; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    gap: 2px; text-decoration: none; transition: all 0.2s;
}
.f4l-nav-item:hover { background: #F5F5F7; color: #000; }
.f4l-nav-item.active { background: #F0EFFB; color: #5b4dd1; }
.f4l-nav-item span { font-size: 9px; font-weight: 600; }

.f4l-user-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid #FFF; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; }
.f4l-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.f4l-badge-dot { 
    position: absolute; top: 0; right: 0; 
    background: var(--f4l-danger); color: #FFF; 
    font-size: 9px; font-weight: 700; width: 14px; height: 14px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    pointer-events: none; 
}

/* --- 3. HEADER --- */
#f4l-sticky-header {
    position: fixed; top: 0; left: 72px !important; width: calc(100% - 72px) !important;
    z-index: 1000; background: #000; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.f4l-top-bar { padding: 10px 20px; border-bottom: 1px solid var(--f4l-border); display: flex; justify-content: center; }
.f4l-header-inner { width: 100%; max-width: 1800px; display: flex; align-items: center; gap: 15px; }
.f4l-brand { font-size: 18px; font-weight: 700; color: #FFF; white-space: nowrap; margin-right: 10px; }

.f4l-main-input-wrapper { flex: 1; display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 2px; }

#f4l-text, #f4l-text-presets, .f4l-sort-group, .f4l-source-switch, .f4l-toolbar-case, .f4l-btn-icon, .f4l-input {
    height: var(--f4l-h-ctrl); background: #111; border: 1px solid var(--f4l-border);
    border-radius: 8px; color: #FFF; display: flex; align-items: center;
}

#f4l-text { min-width: 200px; flex: 2; padding: 0 15px; font-size: 16px; outline: none; transition: all 0.2s; }
#f4l-text:focus { border-color: rgba(255,255,255,0.3); background: #1a1a1a; }
#f4l-text-presets { width: 42px; justify-content: center; cursor: pointer; flex-shrink: 0; }

.f4l-sort-group, .f4l-source-switch, .f4l-toolbar-case { padding: 0 4px; gap: 2px; flex-shrink: 0; }
.f4l-sort-link, .f4l-source-option, .f4l-toolbar-case span {
    background: transparent; border: none; color: #888; font-size: 11px; font-weight: 600; padding: 0 10px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; transition: all 0.2s;
}
.f4l-sort-link:hover, .f4l-source-option:hover, .f4l-toolbar-case span:hover { color: #FFF; background: rgba(255,255,255,0.1); }
.f4l-sort-link.active, .f4l-source-option.active, .f4l-toolbar-case span.active { background: #FFF; color: #000; }
.f4l-sort-sep { color: #444; font-size: 10px; margin: 0 2px; }
#f4l-status { font-size: 12px; color: #666; white-space: nowrap; margin-left: 5px; }

.f4l-btn-icon { width: var(--f4l-h-ctrl); justify-content: center; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.f4l-btn-icon:hover { border-color: #FFF; background: #222; color: #FFF; }
.f4l-btn-icon svg { width: 18px; height: 18px; stroke-width: 2px; }

/* --- 4. TOOLBAR --- */
.f4l-toolbar { background: #000; padding: 10px 20px; border-bottom: 1px solid var(--f4l-border); display: flex; justify-content: center; }
.f4l-toolbar-inner { width: 100%; max-width: 1800px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.f4l-tools-left, .f4l-tools-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f4l-tools-right { margin-left: auto; }

.f4l-input { padding: 0 14px; font-size: 14px; outline: none; transition: all 0.2s ease; }
.f4l-input:focus { border-color: rgba(255,255,255,0.2); background: #151515; }
#f4l-filter { min-width: 160px; }

.f4l-cats-wrapper { display: flex; gap: 5px; }
.f4l-cat-btn { height: 30px; background: #111; border: 1px solid var(--f4l-border); color: #888; border-radius: 15px; padding: 0 12px; font-size: 11px; cursor: pointer; transition: all 0.2s; }
.f4l-cat-btn:hover { color: #FFF; border-color: rgba(255,255,255,0.3); }
.f4l-cat-btn.active { background: #FFF; color: #000; border-color: #FFF; }

#f4l-cats-mobile {
    display: none; height: var(--f4l-h-ctrl); background-color: #111;
    border: 1px solid var(--f4l-border); border-radius: 8px; color: #888;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    padding: 0 34px 0 14px; cursor: pointer; outline: none; transition: all 0.2s ease;
    -webkit-appearance: none; appearance: none; min-width: 90x;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
#f4l-cats-mobile:hover {
    color: #FFF; border-color: rgba(255,255,255,0.3); background-color: #1a1a1a;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.f4l-control-group { display: flex; align-items: center; gap: 8px; margin-right: 10px; background: #111; padding: 0 10px; height: var(--f4l-h-ctrl); border-radius: 8px; border: 1px solid var(--f4l-border); }
.f4l-control-group label { font-size: 10px; color: #888; font-weight: 700; text-transform: uppercase; }
.f4l-slider { -webkit-appearance: none; width: 80px; height: 4px; background: #333; border-radius: 2px; outline: none; }
.f4l-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: #FFF; border-radius: 50%; cursor: pointer; }

/* --- 5. CORES E UPLOAD --- */
.f4l-color-group { display: flex; align-items: center; gap: 4px; background: #111; border: 1px solid var(--f4l-border); border-radius: 8px; padding: 0 6px; height: var(--f4l-h-ctrl); }
.f4l-color-wrap { width: 32px; height: 32px; border-radius: 6px; overflow: hidden; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #888; transition: all 0.2s; }
.f4l-color-wrap:hover { background: rgba(255,255,255,0.1); color: #FFF; }
.f4l-color-wrap input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 10; }
.f4l-color-wrap svg { pointer-events: none; width: 18px; height: 18px; stroke-width: 2px; }
.f4l-color-wrap span { display: none !important; } 
.f4l-color-wrap.is-active { color: var(--f4l-danger) !important; border-color: var(--f4l-danger) !important; background: rgba(255, 59, 48, 0.1); }
.f4l-color-wrap.is-active input { pointer-events: none; cursor: default; }
.f4l-color-group .f4l-btn-icon { width: 32px; height: 32px; border: none; background: transparent; border-radius: 6px; color: #888; }
.f4l-color-group .f4l-btn-icon:hover { background: rgba(255,255,255,0.1); color: #FFF; }

/* --- 6. BOTÕES DE AÇÃO --- */
#f4l-btn-save:hover { color: var(--f4l-success) !important; border-color: var(--f4l-success) !important; background: rgba(76,175,80,0.1) !important; }
#f4l-btn-clear:hover { color: var(--f4l-danger) !important; border-color: var(--f4l-danger) !important; background: rgba(255,59,48,0.1) !important; }
#f4l-btn-view-selected:hover { color: var(--f4l-primary) !important; border-color: var(--f4l-primary) !important; background: rgba(0,123,255,0.1) !important; }
#f4l-btn-compare:hover:not(:disabled) { color: var(--f4l-purple) !important; border-color: var(--f4l-purple) !important; background: rgba(111,66,193,0.1) !important; }

#f4l-sel-count-badge, #f4l-comp-count-badge {
    position: absolute; top: -4px; right: -4px; height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; font-weight: 700; color: #FFF; border: 2px solid #000; display: flex; align-items: center; justify-content: center; z-index: 10;
}
#f4l-sel-count-badge { background: var(--f4l-primary); }
#f4l-comp-count-badge { background: var(--f4l-purple); }

/* --- 7. GRID & CARDS --- */
.f4l-viewport { max-width: 1800px; margin: 0 auto; padding: 40px; }
.f4l-grid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; width: 100%; justify-content: center; }
.f4l-card { background: var(--f4l-bg-card); color: var(--f4l-color-text); height: 280px; display: flex; flex-direction: column; border: 1px solid #E5E5E5; border-radius: 16px; position: relative; cursor: pointer; overflow: hidden; content-visibility: auto; contain-intrinsic-size: 280px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.f4l-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: #000; z-index: 5; }
.f4l-card.selected { border: 2px solid var(--f4l-primary); background: #FAFAFA; color: #000; }
.f4l-card.comparing-mode { border-color: var(--f4l-purple); box-shadow: 0 0 0 1px var(--f4l-purple); }

.f4l-select-indicator {
    position: absolute; bottom: 15px; right: 15px; color: var(--f4l-primary); opacity: 0; transform: scale(0.5); transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 20; pointer-events: none; background: #FFF; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.f4l-card.selected .f4l-select-indicator { opacity: 1; transform: scale(1); }

.f4l-preview-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; padding: 0 20px; gap: 0; transition: all 0.2s; }
.f4l-preview-wrapper.has-icon { gap: 15px; }
.f4l-preview-icon { height: 50px; width: auto; object-fit: contain; max-width: 100px; display: block; }
.f4l-preview-text { flex: 0 1 auto; margin: 0; padding: 0; text-align: center; line-height: 1.1; color: var(--f4l-color-text); font-size: var(--f4l-size); font-weight: var(--f4l-weight); font-variation-settings: "wght" var(--f4l-weight); letter-spacing: var(--f4l-kerning); text-transform: var(--f4l-case); font-style: var(--f4l-style); white-space: nowrap; will-change: font-size, font-style, color, font-weight; max-width: 100%; }
.f4l-preview-text.outline-active { -webkit-text-stroke: 1px var(--f4l-color-text); color: transparent !important; }

.f4l-card-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; opacity: 0; transition: opacity 0.2s ease-in-out; z-index: 20; pointer-events: none; }
.f4l-card:hover .f4l-card-actions { opacity: 1; }
.f4l-action-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 1px solid #E0E0E0; color: #555; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.08); transition: all 0.2s; pointer-events: auto; }
.f4l-action-btn:hover { background: #111; color: #FFF; border-color: #111; transform: translateY(-2px); }
.f4l-action-btn svg { width: 16px; height: 16px; stroke-width: 2px; }

.f4l-card-footer { height: 54px; display: flex; align-items: center; justify-content: center; border-top: 1px solid rgba(0,0,0,0.05); padding: 0 44px; position: relative; flex-shrink: 0; }
.f4l-font-meta { font-size: 11px; font-weight: 700; opacity: 0.6; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0; border: none; }
.f4l-fav-toggle { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: transparent; border: 1px solid transparent; color: #CCC; cursor: pointer; z-index: 30; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.f4l-fav-toggle:hover { color: var(--f4l-danger); background: rgba(255,59,48,0.1); transform: translateY(-50%) scale(1.1); }
.f4l-fav-toggle.is-favorite { color: var(--f4l-danger); fill: var(--f4l-danger); opacity: 1; }
.f4l-fav-toggle svg { width: 20px; height: 20px; stroke-width: 2px; }

/* Botões de Ação Redondos */
.f4l-action-btn { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.95); 
    border: 1px solid #E0E0E0; 
    color: #555; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); 
    transition: all 0.2s; 
    pointer-events: auto; 
    
    /* NOVO: Garante que links não tenham sublinhado */
    text-decoration: none !important; 
}

/* --- 8. GALERIA PROJETOS --- */
.f4l-projects-grid { padding: 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.f4l-project-card { border: 1px solid #E5E5E5; border-radius: 16px; background: #FFF; display: flex; flex-direction: column; overflow: hidden; transition: all 0.3s ease; position: relative; padding: 0; height: 260px; }
.f4l-project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: #000; }
.f4l-proj-preview { height: 140px; background: #F5F5F7; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; border-bottom: 1px solid #EEE; font-size: 32px; color: #000; text-align: center; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.f4l-proj-info { padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.f4l-proj-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f4l-proj-date { font-size: 11px; color: #888; margin-bottom: 10px; }
.f4l-proj-footer { display: flex; justify-content: space-between; align-items: center; }
.f4l-btn-share { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #EEE; background: #FFF; color: #666; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.f4l-btn-share:hover { background: #000; color: #FFF; border-color: #000; }
.f4l-btn-delete:hover { background: #FF3B30 !important; color: #FFF !important; border-color: #FF3B30 !important; }
.f4l-tag { background: #E0E0E0; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }

/* --- 9. MODALS/LIST --- */
.f4l-grid-list.is-list-view { grid-template-columns: 100% !important; gap: 15px; }
.f4l-grid-list.is-list-view .f4l-card { height: auto; min-height: 100px; flex-direction: row; padding: 0 20px; box-shadow: none !important; transform: none !important; }
.f4l-grid-list.is-list-view .f4l-preview-wrapper { justify-content: flex-start; padding: 20px 0; order: 2; flex: 1; }
.f4l-grid-list.is-list-view .f4l-card-footer { width: 200px; height: auto; border-top: none; border-right: 1px solid rgba(0,0,0,0.1); margin-right: 20px; order: 1; justify-content: flex-start; padding: 0 0 0 40px; }
.f4l-grid-list.is-list-view .f4l-fav-toggle { left: 0; }
.f4l-grid-list.is-list-view .f4l-card-actions { top: 50%; transform: translateY(-50%); right: 20px; }
.f4l-grid-list.is-list-view .f4l-select-indicator { bottom: auto; top: 50%; right: 60px; transform: translateY(-50%); }

body.f4l-readonly-mode .f4l-top-bar { background: #1a1a1a; }
body.f4l-readonly-mode .f4l-sidebar { display: none; }
body.f4l-readonly-mode { padding-left: 0; }
body.f4l-readonly-mode #f4l-sticky-header { width: 100% !important; left: 0 !important; }

.f4l-modal-overlay, .f4l-drop-overlay { position: fixed; inset: 0; background: #FFF; z-index: 99999; display: flex; flex-direction: column; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s; }
.f4l-modal-overlay.active, .f4l-drop-overlay.active { opacity: 1; visibility: visible; pointer-events: all; }
.f4l-drop-overlay { background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.f4l-drop-content { text-align: center; color: #fff; border: 2px dashed rgba(255,255,255,0.3); padding: 60px; border-radius: 20px; background: rgba(255,255,255,0.05); }
.f4l-modal-header { min-height: 80px; padding: 15px 40px; border-bottom: 1px solid #EEE; display: flex; justify-content: space-between; align-items: center; }
.f4l-modal-title { font-size: 24px; font-weight: 800; }
.f4l-modal-body { flex: 1; overflow: hidden; position: relative; width: 100%; display: flex; background: #FAFAFA; }

.f4l-tab-content { display: none; width: 100%; height: 100%; overflow-y: auto; }
#f4l-tab-preview.active { display: flex; align-items: center; justify-content: center; }
#f4l-tab-glyphs.active { display: block; padding: 40px; }
.f4l-modal-textarea { width: 90%; border: none; text-align: center; outline: none; font-size: 100px; background: transparent; color: #000; font-weight: var(--f4l-weight); letter-spacing: var(--f4l-kerning); text-transform: var(--f4l-case); }
.f4l-glyphs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 1px; background: #EEE; border: 1px solid #EEE; margin: 0 auto; max-width: 1000px; }
.f4l-glyph { background: #FFF; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #333; cursor: pointer; transition: 0.1s; }
.f4l-glyph:hover { background: #000; color: #FFF; transform: scale(1.2); z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.f4l-scale-wrapper { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--f4l-bg-card); color: var(--f4l-color-text); overflow-y: auto; }
.f4l-scale-row { padding: 20px; border-bottom: 1px solid rgba(125,125,125,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.f4l-scale-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; margin-bottom: 10px; font-weight: 700; color: #888; }
.f4l-scale-16 { font-size: 16px; } .f4l-scale-64 { font-size: 64px; } .f4l-scale-100 { font-size: 100px; line-height: 1.1; }
.f4l-scale-300 { font-size: 300px; line-height: 0.9; word-break: break-all; text-align: center; max-width: 100%; }
.f4l-comp-container { display: flex; width: 100%; height: 100%; position: relative; background: #FAFAFA; }
.f4l-comp-side { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid #EEE; padding: 20px; position: relative; overflow: hidden; }
.f4l-comp-side:last-child { border-right: none; }
.f4l-comp-label { position: absolute; top: 20px; left: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: #999; z-index: 10; background: rgba(255,255,255,0.8); padding: 4px 8px; border-radius: 4px; }
.f4l-comp-text { font-size: 120px; text-align: center; line-height: 1; color: var(--f4l-color-text); transition: all 0.3s ease; white-space: nowrap; }
.f4l-comp-container.is-overlay .f4l-comp-side { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-right: none; background: transparent; pointer-events: none; }
.f4l-comp-container.is-overlay .f4l-comp-side:first-child .f4l-comp-text { color: rgba(255, 0, 0, 0.6) !important; }
.f4l-comp-container.is-overlay .f4l-comp-side:last-child .f4l-comp-text { color: rgba(0, 0, 255, 0.6) !important; }

/* Responsive Dropdown */
@media (max-width: 1450px) {
    body.is-google-mode .f4l-cats-wrapper { display: none !important; }
    body.is-google-mode #f4l-cats-mobile { display: flex !important; }
}
@media (max-width: 1100px) {
    .f4l-header-inner { gap: 10px; padding: 10px; overflow-x: auto; }
    .f4l-toolbar-inner { justify-content: center; gap: 15px; }
    .f4l-tools-left, .f4l-tools-right { justify-content: center; width: 100%; }
    #f4l-root { padding-top: 280px; }
}
@media (max-width: 768px) {
    body { padding-left: 0; padding-bottom: 60px; }
    .f4l-sidebar { top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 60px; flex-direction: row; border-right: none; border-top: 1px solid #EEE; padding: 0 20px; }
    .f4l-sidebar-top { flex-direction: row; justify-content: space-around; }
    .f4l-sidebar-bottom { display: none; }
    .f4l-nav-item { height: 100%; width: auto; padding: 0 10px; }
    #f4l-sticky-header { width: 100% !important; left: 0 !important; }
}

@media print {
    #f4l-sticky-header, .f4l-sidebar, .f4l-card-actions, #f4l-splash, #f4l-drop-overlay, #f4l-modal, .f4l-btn, .f4l-source-switch, .f4l-view-toggle, .f4l-case-toggles, .f4l-control-group, #f4l-filter, #f4l-cats, .f4l-color-group, #f4l-btn-italic, .f4l-tools-right { display: none !important; }
    html, body { width: 100%; height: auto; margin: 0 !important; padding: 0 !important; background: #fff !important; color: #000 !important; overflow: visible !important; }
    #f4l-root { padding: 0 !important; margin: 0 !important; background: #fff !important; }
    .f4l-viewport { padding: 0 !important; max-width: 100% !important; }
    .f4l-grid-list:not(.is-list-view) { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; }
    .f4l-card { border: 1px solid #ccc !important; box-shadow: none !important; background: #fff !important; color: #000 !important; display: block !important; height: auto !important; min-height: 80px !important; margin-bottom: 20px !important; }
    .f4l-grid-list:not(.is-list-view) .f4l-card { height: 160px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; }
    .f4l-preview-wrapper { justify-content: center !important; }
    .f4l-preview-icon { height: 40px !important; }
    .f4l-preview-text { color: #000000 !important; text-shadow: none !important; font-size: 24pt !important; -webkit-text-stroke: 0 !important; }
    .f4l-font-meta { color: #666 !important; font-size: 10pt !important; }
    .f4l-viewport::before { content: "Font4Logo - Prova de Impressão"; display: block; font-size: 20px; font-weight: bold; margin-bottom: 20px; text-align: center; border-bottom: 2px solid #000; padding-bottom: 10px; }
    
    ### 2. `assets/f4l-style.css` (Estilo da Janela)

Adicione este CSS para que a janela de anúncio pareça profissional, centralizada e destaque a publicidade.

```css
/* --- AD MODAL (Monetização) --- */

/* Caixa Centralizada */
.f4l-ad-box {
    background: #FFF;
    width: 100%;
    max-width: 400px; /* Tamanho bom para anúncios padrão */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    margin: auto; /* Centraliza no flex do overlay */
    border: 1px solid #EEE;
}

.f4l-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 10px;
}

.f4l-ad-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

/* Área cinza onde fica o anúncio */
.f4l-ad-placeholder {
    background: #F5F5F7;
    width: 300px;
    height: 250px; /* Formato padrão retangular médio (MREC) */
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #CCC;
    color: #999;
    font-size: 12px;
    font-weight: 600;
}

.f4l-ad-footer p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* Quando o botão libera, ele pulsa para chamar atenção */
#f4l-btn-real-download:not(:disabled) {
    animation: pulse-green 2s infinite;
    background: var(--f4l-success);
    border-color: var(--f4l-success);
    color: #fff;
    cursor: pointer;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
}