/* ================================================================
   FZ Text Overlay — shared styles (album + photocard)
   Extracted from album.css to avoid duplicating in photocard.css.
   ================================================================ */

/* ── Text block ────────────────────────────────────────────────── */
.fz-to-block {
    border: 1px dashed transparent;
    border-radius: 3px;
    transition: border-color 0.15s;
    padding: 0 1px;
    transform-origin: center center;
}
.fz-to-block[data-editing="1"] { cursor: text !important; }
.fz-to-text[contenteditable="true"] { cursor: text; }
.fz-to-block:active {
    border-color: rgba(0, 0, 0, 0.2);
}
.fz-to-selected {
    border: 1px dashed rgba(0, 0, 0, 0.45) !important;
    box-shadow: none;
}

/* ── Resize handles (4 corners) ────────────────────────────────── */
/* --fz-to-inv = odwrotność zoomu karty (ustawiana z JS przez _syncHandleScale).
   Uchwyty są dziećmi kontenera, na który nakładany jest transform:scale() przy
   powiększeniu karty — bez kontr-skalowania rosną razem z nią i przy zoomie
   zasłaniają edytowany tekst. Skalowanie wokół środka zachowuje pozycję na rogu. */
.fz-to-overlay { --fz-to-inv: 1; }
.fz-to-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #0066ff;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 30;
    touch-action: none;
    pointer-events: auto;
    cursor: nwse-resize;
    transform: scale(var(--fz-to-inv));
    transform-origin: center center;
}
/* Powiększony obszar dotyku BEZ powiększania widocznej kropki (~44px celu). */
.fz-to-handle::before {
    content: '';
    position: absolute;
    inset: -13px;
}
.fz-to-handle-nw { top: -9px; left: -9px; cursor: nwse-resize; }
.fz-to-handle-ne { top: -9px; right: -9px; cursor: nesw-resize; }
.fz-to-handle-sw { bottom: -9px; left: -9px; cursor: nesw-resize; }
.fz-to-handle-se { bottom: -9px; right: -9px; cursor: nwse-resize; }

/* ── Rotate handle ─────────────────────────────────────────────── */
/* Odstępy mnożone przez --fz-to-inv, inaczej przy zoomie uchwyt obrotu odjeżdża
   od ramki (offset w px jest skalowany przez rodzica).
   UWAGA: transform:scale() zmienia TYLKO wygląd, nie layout — pudełko uchwytu ma
   nadal 22px. Dlatego pozycjonujemy jego ŚRODEK: bottom = -(odstęp) - połowa
   nieskalowanego pudełka. Bez tego kółko lądowało tuż przy bloku, a linia kończyła
   się w innym miejscu niż kółko (widoczna przerwa). */
.fz-to-rotate-line {
    position: absolute;
    bottom: calc(-20px * var(--fz-to-inv));
    left: 50%;
    width: calc(2px * var(--fz-to-inv));
    height: calc(20px * var(--fz-to-inv));
    background: #0066ff;
    pointer-events: none;
    z-index: 29;
    transform: translateX(-50%);
}
.fz-to-rotate-handle {
    position: absolute;
    /* Środek kółka 31px poniżej dolnej krawędzi bloku, NIEZALEŻNIE od zoomu.
       Odejmujemy połowę PEŁNEGO pudełka (22px + 2×2px ramki = 26px → 13px),
       bo transform:scale() nie zmienia layoutu. */
    bottom: calc(-31px * var(--fz-to-inv) - 13px);
    left: 50%;
    width: 22px;
    height: 22px;
    background: #0066ff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transform: translateX(-50%) scale(var(--fz-to-inv));
    transform-origin: center center;
}
.fz-to-rotate-handle::after {
    content: '';
    position: absolute;
    inset: -12px;
}
.fz-to-rotate-handle::before {
    content: '\21BB';
    font-size: 13px;
    color: #fff;
    line-height: 1;
}
.fz-to-rotate-handle:active { cursor: grabbing; }

/* ── Mini toolbar above block ──────────────────────────────────── */
.fz-to-mini-toolbar {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    background: #222;
    border-radius: 6px;
    padding: 3px 6px;
    white-space: nowrap;
    z-index: 35;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.fz-to-tbtn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    touch-action: manipulation;
    line-height: 1;
}
.fz-to-tbtn:active { background: rgba(255,255,255,0.15); }
.fz-to-tbtn-danger { color: #ff5252; }
.fz-to-tbtn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.fz-to-tbtn-confirm {
    background: #09CF91;
    border-radius: 4px;
}
.fz-to-tbtn-confirm:active { background: #07b07c; }

/* Fixed toolbar — mobile bottom */
.fz-to-fixed-toolbar {
    position: fixed !important;
    bottom: 12px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10000 !important;
    padding: 4px 8px;
    gap: 6px;
}
.fz-to-fixed-toolbar .fz-to-tbtn-icon {
    width: 36px;
    height: 36px;
}

/* ── Body state classes ────────────────────────────────────────── */
body.fz-sheet-open .fz-to-fixed-toolbar {
    display: none !important;
}
body.fz-typing {
    overflow: hidden;
}

/* ── Panel (bottom sheet) ──────────────────────────────────────── */
.fz-to-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10500;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    max-height: calc(100vh - 150px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fz-to-panel-open {
    transform: translateY(0);
}
.fz-to-panel-inner {
    display: none;
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}
.fz-to-panel.fz-style-mode .fz-to-panel-inner {
    display: block;
}

/* Desktop: 2-column layout */
@media (min-width: 601px) {
    .fz-to-panel-inner {
        max-height: 40vh;
        padding: 8px 14px 10px;
    }
    .fz-to-desktop-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
    }
    .fz-to-desktop-col-left,
    .fz-to-desktop-col-right {
        min-width: 0;
    }
}

/* ── TopBar: [Delete] | [handle] | [Confirm] ──────────────────── */
.fz-to-panel-topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 6px 12px;
    border-bottom: none;
    flex-shrink: 0;
    min-height: 56px;
    gap: 6px;
}
.fz-to-panel.fz-style-mode .fz-to-panel-topbar {
    border-bottom: 1px solid #f0f0f0;
}
.fz-to-panel-confirm-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: #09CF91;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    white-space: nowrap;
    line-height: 1;
}
.fz-to-panel-confirm-btn:active { opacity: 0.75; }

.fz-to-panel-undo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 1.5px solid #d0d0d0;
    background: transparent;
    color: #333;
    cursor: pointer;
    touch-action: manipulation;
    padding: 0;
    margin-right: 14px;
}
.fz-to-panel-undo-btn:active { opacity: 0.75; }
.fz-to-panel-undo-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.fz-to-panel-del-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1.5px solid #e53935;
    background: transparent;
    color: #e53935;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    white-space: nowrap;
    line-height: 1;
}
.fz-to-panel-del-btn:active { opacity: 0.75; }
.fz-to-panel-paste-btn {
    border-color: #09CF91;
    color: #09CF91;
    margin-left: 6px;
}

/* Handle — drag to resize, tap to close */
.fz-to-panel-handle {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    cursor: ns-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.fz-to-panel-handle:active .fz-to-panel-handle-bar {
    background: #888;
}
.fz-to-panel-handle-bar {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}
@media (min-width: 601px) {
    .fz-to-panel-handle { min-height: 32px; padding: 4px 16px; }
}

/* Confirm row */
.fz-to-confirm-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.fz-to-confirm-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    height: 40px;
    border-radius: 20px;
    background: #09CF91;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}
.fz-to-confirm-btn--visible { display: flex; }
.fz-to-confirm-btn:active { filter: brightness(0.85); }

/* ── Font picker (horizontal scroll) ───────────────────────────── */
.fz-to-font-picker {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
    scrollbar-width: none;
}
.fz-to-font-picker::-webkit-scrollbar { display: none; }
.fz-to-font-chip {
    flex-shrink: 0;
    padding: 9px 20px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f0f0f0;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
@media (min-width: 601px) {
    .fz-to-desktop-col-left .fz-to-font-picker {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 5px;
        padding: 2px 0 6px;
    }
    .fz-to-font-chip { padding: 5px 12px; font-size: 13px; }
}
.fz-to-font-chip:active { background: #e0e0e0; }
.fz-to-font-active {
    border-color: #09CF91;
    color: #09CF91;
    background: #e8faf5;
}

/* ── Controls row ──────────────────────────────────────────────── */
.fz-to-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fz-to-controls::-webkit-scrollbar { display: none; }
.fz-to-ctrl-sep {
    width: 1px;
    min-width: 1px;
    height: 24px;
    background: #ddd;
    flex-shrink: 0;
}
.fz-to-ctrl-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fz-to-ctrl-label {
    color: #555;
    font-size: 12px;
    min-width: 36px;
    text-align: center;
}

/* Size/opacity slider */
.fz-to-slider {
    width: 80px;
    accent-color: #09CF91;
    height: 4px;
    flex-shrink: 0;
}

/* Alignment buttons */
.fz-to-align-group { gap: 4px; }
.fz-to-align-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f0f0f0;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}
.fz-to-align-active {
    border-color: #09CF91;
    color: #09CF91;
    background: #e8faf5;
}

/* Bold button */
.fz-to-bold-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f0f0f0;
    color: #333;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    font-family: serif;
    touch-action: manipulation;
}
.fz-to-bold-btn:disabled { opacity: 0.3; cursor: default; }
.fz-to-bold-active {
    border-color: #09CF91;
    color: #09CF91;
    background: #e8faf5;
}
.fz-to-opacity-group .fz-to-slider { width: 60px; }

/* ── Color row ─────────────────────────────────────────────────── */
.fz-to-color-row {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 12px;
    align-items: center;
}
.fz-to-color-row::-webkit-scrollbar { display: none; }
@media (min-width: 601px) {
    .fz-to-desktop-col-left .fz-to-color-row {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 6px;
        padding: 4px 2px 6px;
    }
    .fz-to-desktop-col-left .fz-to-color-swatch {
        width: 28px;
        height: 28px;
    }
}
.fz-to-color-swatch {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.15s, transform 0.15s;
}
.fz-to-color-swatch:active { transform: scale(1.15); }
.fz-to-color-active {
    border-color: #333;
    box-shadow: 0 0 0 2px #09CF91;
}
.fz-to-color-custom {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #bbb;
    cursor: pointer;
    padding: 0;
    background: conic-gradient(red 0deg, yellow 60deg, lime 120deg, cyan 180deg, blue 240deg, magenta 300deg, red 360deg);
    flex-shrink: 0;
    overflow: hidden;
    touch-action: manipulation;
}
.fz-to-color-custom::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.fz-to-color-custom::-webkit-color-swatch { border: none; border-radius: 50%; opacity: 0; }
.fz-to-color-custom::-moz-color-swatch { border: none; border-radius: 50%; opacity: 0; }
.fz-to-color-ok {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #09CF91;
    background: transparent;
    color: #09CF91;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    touch-action: manipulation;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.fz-to-color-ok:active { background: #09CF91; color: #fff; }

/* ── Effects: Shadow + Stroke ──────────────────────────────────── */
.fz-to-effects-wrap {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 601px) {
    .fz-to-desktop-col-right .fz-to-effects-wrap {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        gap: 8px;
    }
    .fz-to-desktop-col-right .fz-to-effect-section {
        padding: 6px 8px;
    }
    .fz-to-desktop-col-left .fz-to-controls {
        padding-bottom: 6px;
    }
}
.fz-to-effect-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid #ebebeb;
}
.fz-to-effect-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fz-to-sliders-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fz-to-slider-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fz-to-slider-icon {
    font-size: 13px;
    color: #888;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.fz-to-slider-label {
    font-size: 12px;
    color: #666;
    width: 58px;
    flex-shrink: 0;
    white-space: nowrap;
}
.fz-to-slider-full {
    flex: 1;
    min-width: 80px;
}
.fz-to-toggle {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #ddd;
    background: #f0f0f0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.fz-to-toggle-active {
    background: #e8faf5;
    border-color: #09CF91;
    color: #09CF91;
}
.fz-to-effect-slider { min-width: 40px; }
.fz-to-color-input {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    background: none;
}
.fz-to-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.fz-to-color-input::-webkit-color-swatch { border: none; border-radius: 50%; }
.fz-to-color-input:disabled { opacity: 0.3; cursor: default; }

/* Angle controls */
.fz-to-angle-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.fz-to-angle-prefix {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    white-space: nowrap;
}
.fz-to-angle-val {
    font-size: 12px;
    color: #444;
    font-weight: 600;
    min-width: 34px;
    text-align: right;
    flex-shrink: 0;
}
.fz-to-angle-slider {
    flex: 1;
    min-width: 60px;
}

/* ── Hidden textarea (mobile keyboard) ─────────────────────────── */
.fz-to-mobile-ta {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 48px;
    opacity: 0;
    font-size: 16px;
    border: none;
    outline: none;
    padding: 0;
    resize: none;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
    color: transparent;
    background: transparent;
    caret-color: transparent;
}

/* ── Blinking cursor (mobile editing) ──────────────────────────── */
.fz-to-text.fz-editing::after {
    content: '|';
    display: inline;
    font-weight: 300;
    opacity: 1;
    animation: fz-cursor-blink 1s step-end infinite;
    -webkit-text-stroke: 0px !important;
    text-shadow: none !important;
    filter: none !important;
    margin-left: 1px;
}
@keyframes fz-cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Font size bar (over keyboard) ─────────────────────────────── */
.fz-size-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10010;
    background: #fff;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}
.fz-size-bar-input {
    flex: 1;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-bottom: 3px solid #1a73e8;
    outline: none;
    background: transparent;
    color: #1a1a1a;
    max-width: 180px;
    min-width: 80px;
    -moz-appearance: textfield;
}
.fz-size-bar-input::-webkit-outer-spin-button,
.fz-size-bar-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.fz-size-bar-unit {
    font-size: 22px;
    color: #aaa;
    font-weight: 300;
    flex-shrink: 0;
}
.fz-size-bar-done {
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
}

/* ── Clipart picker ────────────────────────────────────────────── */
.fz-clipart-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.fz-clipart-picker-card {
    background: #1e1e1e;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.fz-clipart-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
.fz-clipart-picker-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.fz-clipart-picker-close:hover { color: #fff; }
.fz-clipart-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fz-clipart-tabs::-webkit-scrollbar { display: none; }
.fz-clipart-tab {
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.fz-clipart-tab:hover { background: rgba(255,255,255,0.12); color: #fff; }
.fz-clipart-tab-active {
    background: #09CF91 !important;
    color: #000 !important;
    font-weight: 600;
}
.fz-clipart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}
.fz-clipart-cell {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #fff;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.fz-clipart-cell svg {
    width: 100%;
    height: 100%;
}
.fz-clipart-cell:hover {
    background: rgba(255,255,255,0.12);
    border-color: #09CF91;
    transform: scale(1.05);
}
.fz-clipart-cell:active {
    transform: scale(0.95);
}
.fz-to-clipart {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.fz-to-clipart svg {
    width: 100%;
    height: 100%;
    display: block;
}
.fz-to-clipart-panel {
    padding: 0 4px;
}
@media (max-width: 480px) {
    .fz-clipart-picker-card {
        max-height: 70vh;
        border-radius: 14px 14px 0 0;
    }
    .fz-clipart-picker-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .fz-clipart-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
