/* ═══════════════════════════════════════════════════════════════
   SwagFrisbeeDesigner v2 – designer.css
   Layout: Linke Toolbar │ Properties-Panel │ Canvas │ Untere Leiste
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────── */
#fd-wrapper, #fd-wrapper * {
    box-sizing: border-box;
    font-family: Inter, system-ui, Arial, sans-serif;
}

/* ── Haupt-Layout (CSS Grid) ──────────────────────────────────── */
#fd-wrapper {
    display: grid !important;
    grid-template-columns: 64px minmax(220px, 272px) 1fr !important;
    grid-template-rows: 1fr auto !important;
    grid-template-areas:
        "toolbar props canvas"
        "bottom  bottom bottom" !important;
    gap: 0 !important;
    width: 100%;
    max-width: none;
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    margin: 0 auto;
    background: #f5f6f8;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e2e7;
}

/* ═══════════════════════════════════════════════════════════════
   LINKE TOOLBAR
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-toolbar {
    grid-area: toolbar;
    display: flex !important;
    flex-direction: column !important;
    background: #1e1e2e;
    padding: 8px 0;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
}

#fd-wrapper .fd-toolbar__tools {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
}

#fd-wrapper .fd-tool-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 52px;
    height: 52px;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #9ca3af !important;
    cursor: pointer;
    transition: all 0.15s;
    padding: 4px 0 !important;
}

#fd-wrapper .fd-tool-btn:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #e5e7eb !important;
}

#fd-wrapper .fd-tool-btn.active {
    background: rgba(29,114,245,0.2) !important;
    color: #60a5fa !important;
}

#fd-wrapper .fd-tool-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#fd-wrapper .fd-toolbar__divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 10px;
}

/* Ebenen in linker Toolbar */
#fd-wrapper .fd-toolbar__layers {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 6px;
    overflow-y: auto;
    min-height: 0;
}

#fd-wrapper .fd-toolbar__layers-title {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    padding: 4px 6px;
    margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   CANVAS (Mitte)
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-canvas-area {
    grid-area: canvas;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #ecedf1;
    padding: 24px;
    min-height: 0;
    overflow: auto;
}

#fd-wrapper .fd-canvas-container {
    position: relative;
    /* Breite + Höhe werden von JS (applyZoom) gesetzt */
    max-width: none;
    flex-shrink: 1;
}

#fd-wrapper .fd-canvas-container .canvas-container {
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTIES-PANEL (links neben der Toolbar)
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-props {
    grid-area: props;
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    background: #fff;
    border-right: 1px solid #e0e2e7;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    max-height: calc(100vh - 80px);
}

#fd-wrapper .fd-panel {
    padding: 16px;
    border-bottom: 1px solid #f0f1f3;
}

#fd-wrapper .fd-panel__title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

#fd-wrapper .fd-panel--empty {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 200px;
}

#fd-wrapper .fd-panel__hint {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    padding: 0 20px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   FARB-SWATCHES
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-color-swatches {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 30px);
    gap: 6px;
    margin-bottom: 8px;
}

#fd-wrapper .fd-swatch {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    border: 2.5px solid transparent !important;
    cursor: pointer;
    padding: 0 !important;
    transition: transform 0.15s, border-color 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

#fd-wrapper .fd-swatch:hover {
    transform: scale(1.15);
}

#fd-wrapper .fd-swatch.active {
    border-color: #1d72f5 !important;
    box-shadow: 0 0 0 3px rgba(29,114,245,0.25), 0 1px 4px rgba(0,0,0,0.18);
}

#fd-wrapper .fd-color-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   FORMULAR-ELEMENTE
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-form-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

#fd-wrapper .fd-form-row:last-child { margin-bottom: 0; }

#fd-wrapper .fd-form-row--buttons { flex-wrap: wrap; gap: 4px; }

#fd-wrapper .fd-form-row--actions {
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f1f3;
}

#fd-wrapper .fd-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 56px;
    flex-shrink: 0;
}

#fd-wrapper .fd-input {
    flex: 1;
    padding: 6px 8px !important;
    font-size: 13px !important;
    border: 1.5px solid #e0e2e7 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #111 !important;
    width: 100%;
}

#fd-wrapper .fd-input:focus {
    outline: none !important;
    border-color: #1d72f5 !important;
    box-shadow: 0 0 0 2px rgba(29,114,245,0.12) !important;
}

#fd-wrapper .fd-input--small {
    width: 54px;
    flex: none;
    text-align: center;
}

#fd-wrapper .fd-color-input {
    width: 32px !important;
    height: 32px !important;
    padding: 2px !important;
    cursor: pointer;
    flex: none;
    border: 1.5px solid #e0e2e7 !important;
    border-radius: 6px !important;
}

#fd-wrapper .fd-range {
    flex: 1;
    cursor: pointer;
    accent-color: #1d72f5;
    height: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 600;
    border-radius: 6px !important;
    border: 1.5px solid transparent !important;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none !important;
}

#fd-wrapper .fd-btn:disabled { opacity: 0.4; cursor: not-allowed; }

#fd-wrapper .fd-btn--full {
    width: 100%;
    margin-bottom: 10px;
}

#fd-wrapper .fd-btn--primary {
    background: #1d72f5 !important;
    color: #fff !important;
    border-color: #1d72f5 !important;
}
#fd-wrapper .fd-btn--primary:hover:not(:disabled) {
    background: #155ecd !important;
}

#fd-wrapper .fd-btn--sm {
    padding: 4px 10px !important;
    font-size: 12px !important;
    width: auto;
}

#fd-wrapper .fd-btn--toggle {
    width: auto;
    background: #fff !important;
    border-color: #e0e2e7 !important;
    color: #424755 !important;
}
#fd-wrapper .fd-btn--toggle.active {
    background: #1d72f5 !important;
    color: #fff !important;
    border-color: #1d72f5 !important;
}

#fd-wrapper .fd-btn--icon {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    background: #f5f6f8 !important;
    border: 1px solid #e0e2e7 !important;
    border-radius: 6px !important;
    color: #6b7280 !important;
}
#fd-wrapper .fd-btn--icon:hover:not(:disabled) {
    background: #e8f0fe !important;
    color: #1d72f5 !important;
}

#fd-wrapper .fd-btn-group {
    display: flex !important;
    gap: 4px;
    flex-wrap: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   UNTERE AKTIONSLEISTE
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-bottombar {
    grid-area: bottom;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #e0e2e7;
    gap: 8px;
    min-height: 62px;
}

#fd-wrapper .fd-bottombar__left,
#fd-wrapper .fd-bottombar__right {
    display: flex !important;
    align-items: center;
    gap: 4px;
}

#fd-wrapper .fd-bar-btn {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 48px;
    height: 48px;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #4b5563 !important;
    cursor: pointer;
    transition: all 0.15s;
    padding: 4px 8px !important;
}

#fd-wrapper .fd-bar-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

#fd-wrapper .fd-bar-btn:hover:not(:disabled) {
    background: #f0f1f3 !important;
    color: #111 !important;
}

#fd-wrapper .fd-bar-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#fd-wrapper .fd-bar-btn--danger:hover:not(:disabled) {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* (Zoom-Label Style entfernt) */

#fd-wrapper .fd-bar-btn--ghost {
    color: #9ca3af !important;
}
#fd-wrapper .fd-bar-btn--ghost:hover:not(:disabled) {
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

#fd-wrapper .fd-bar-divider {
    width: 1px;
    height: 24px;
    background: #e0e2e7;
    margin: 0 4px;
}

/* Snap-Toggle in unterer Leiste */
#fd-wrapper .fd-bar-toggle {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 48px;
    height: 48px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s;
}

#fd-wrapper .fd-bar-toggle:hover { color: #4b5563; }

#fd-wrapper .fd-bar-toggle input[type="checkbox"] {
    display: none;
}

#fd-wrapper .fd-bar-toggle:has(input:checked) {
    color: #1d72f5;
    background: rgba(29,114,245,0.08);
}

/* Export-Button */
#fd-wrapper .fd-export-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 700;
    border: none !important;
    border-radius: 8px !important;
    background: #16a34a !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}

#fd-wrapper .fd-export-btn:hover:not(:disabled) {
    background: #15803d !important;
}

/* ═══════════════════════════════════════════════════════════════
   EBENEN-LISTE
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-layer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#fd-wrapper .fd-layer-item {
    padding: 5px 6px;
    font-size: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9ca3af;
    transition: all 0.12s;
}

#fd-wrapper .fd-layer-item:hover {
    background: rgba(255,255,255,0.1);
    color: #e5e7eb;
}

#fd-wrapper .fd-layer-item--active {
    background: rgba(172,220,23,0.18);
    border-color: rgba(172,220,23,0.4);
    color: #e5e7eb;
}

#fd-wrapper .fd-layer-grip {
    display: inline-block;
    margin-right: 4px;
    cursor: grab;
    opacity: 0.4;
    font-size: 10px;
    vertical-align: middle;
}
#fd-wrapper .fd-layer-item:hover .fd-layer-grip { opacity: 0.8; }

#fd-wrapper .fd-layer-item--dragging {
    opacity: 0.35;
}

#fd-wrapper .fd-layer-item--dragover {
    border-color: #ACDC17 !important;
    background: rgba(172,220,23,0.15);
}

/* ── Shape Grid ───────────────────────────────────────────────── */
#fd-wrapper .fd-shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

#fd-wrapper .fd-shape-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    padding: 10px;
    transition: all 0.15s;
    color: #6b7280;
}
#fd-wrapper .fd-shape-btn:hover {
    background: #f0fdf4;
    border-color: #ACDC17;
    color: #111;
    transform: scale(1.04);
}
#fd-wrapper .fd-shape-btn:active {
    transform: scale(0.97);
}
#fd-wrapper .fd-shape-btn svg {
    width: 100%;
    height: 100%;
}

/* ── Template Grid ────────────────────────────────────────────── */
#fd-wrapper .fd-template-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

#fd-wrapper .fd-template-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    text-align: left;
    overflow: hidden;
    transition: all 0.15s;
}
#fd-wrapper .fd-template-card:hover {
    border-color: #ACDC17;
    box-shadow: 0 2px 8px rgba(172,220,23,0.18);
    transform: translateY(-1px);
}
#fd-wrapper .fd-template-card:active {
    transform: scale(0.98);
}

#fd-wrapper .fd-template-preview {
    width: 60px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
}
#fd-wrapper .fd-template-preview__icon {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    letter-spacing: 1px;
}

#fd-wrapper .fd-template-info {
    padding: 8px 10px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
#fd-wrapper .fd-template-info strong {
    font-size: 13px;
    font-weight: 700;
    color: #1e1e2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#fd-wrapper .fd-template-info small {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
}

/* ── AI Hintergrund-Entfernung Button ─────────────────────── */
#fd-wrapper .fd-btn--ai {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, transform 0.1s;
    margin-bottom: 12px;
}
#fd-wrapper .fd-btn--ai:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
}
#fd-wrapper .fd-btn--ai:active {
    transform: translateY(0);
}
#fd-wrapper .fd-btn--ai:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}
#fd-wrapper .fd-btn--ai .fd-remove-bg-icon {
    flex-shrink: 0;
}
#fd-wrapper .fd-remove-bg-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fd-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes fd-spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   OBJEKT-PILLEN (schwebende Controls am ausgewählten Objekt)
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-object-pills {
    position: absolute;
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(30, 30, 46, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    pointer-events: auto;
    transform: translateX(-50%); /* horizontal zentriert */
}

#fd-wrapper .fd-pill {
    padding: 4px 12px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

#fd-wrapper .fd-pill:hover {
    background: rgba(255,255,255,0.25);
}

#fd-wrapper .fd-pill--danger {
    color: #f87171;
}

#fd-wrapper .fd-pill--image-only {
    display: none; /* Nur bei Bildern sichtbar */
}

/* ═══════════════════════════════════════════════════════════════
   EMBED BODY
   ═══════════════════════════════════════════════════════════════ */
.frisbee-embed-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f6f8;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE – TABLET (≤ 960px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    #fd-wrapper {
        grid-template-columns: 56px 1fr !important;
        grid-template-rows: 1fr auto auto !important;
        grid-template-areas:
            "toolbar canvas"
            "props   props"
            "bottom  bottom" !important;
    }

    #fd-wrapper .fd-props {
        border-right: none;
        border-top: 1px solid #e0e2e7;
        max-height: none;
        flex-direction: row !important;
        flex-wrap: wrap;
        padding: 8px;
        gap: 8px;
    }

    #fd-wrapper .fd-panel {
        flex: 1;
        min-width: 200px;
        border-bottom: none;
        border: 1px solid #f0f1f3;
        border-radius: 8px;
    }

    #fd-wrapper .fd-canvas-area {
        padding: 12px;
    }

    /* Bottom-Bar kompakter, damit alle Labels + Export-Button passen */
    #fd-wrapper .fd-bottombar {
        flex-wrap: wrap;
        padding: 6px 8px;
        gap: 4px;
    }
    #fd-wrapper .fd-bottombar__left,
    #fd-wrapper .fd-bottombar__right { gap: 2px; }
    #fd-wrapper .fd-bar-btn,
    #fd-wrapper .fd-bar-toggle {
        min-width: 40px;
        padding: 4px 5px !important;
    }
    #fd-wrapper .fd-bar-divider { margin: 0 2px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE – MOBILE (≤ 600px)
   Minimale Anpassungen – wird später separat überarbeitet
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    #fd-wrapper {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr auto auto !important;
        grid-template-areas:
            "toolbar"
            "canvas"
            "props"
            "bottom" !important;
    }

    #fd-wrapper .fd-toolbar {
        flex-direction: row !important;
        padding: 6px 8px;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #fd-wrapper .fd-toolbar__tools {
        flex-direction: row !important;
        gap: 4px;
    }

    #fd-wrapper .fd-toolbar__layers { display: none !important; }
    #fd-wrapper .fd-tool-btn { width: 44px; height: 44px; }
    #fd-wrapper .fd-tool-label { display: none; }
    #fd-wrapper .fd-canvas-area { padding: 8px; }

    #fd-wrapper .fd-props {
        border-right: none;
        border-top: 1px solid #e0e2e7;
        flex-direction: column !important;
        max-height: none;
    }

    #fd-wrapper .fd-panel { min-width: 0; }

    /* Bottom-Bar kompakt: Labels ausblenden, Buttons wieder klein */
    #fd-wrapper .fd-bar-label { display: none; }
    #fd-wrapper .fd-bar-btn,
    #fd-wrapper .fd-bar-toggle {
        min-width: 36px;
        height: 36px;
        padding: 0 !important;
    }
    #fd-wrapper .fd-bottombar { min-height: 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   TOOLTIPS (CSS-only, schnell, kein JS noetig)
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-has-tooltip {
    position: relative;
}

#fd-wrapper .fd-has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #1e1e2e;
    color: #f3f4f6;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#fd-wrapper .fd-has-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e1e2e;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1000;
}

#fd-wrapper .fd-has-tooltip:hover::after,
#fd-wrapper .fd-has-tooltip:hover::before {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HILFE-OVERLAY
   ═══════════════════════════════════════════════════════════════ */
#fd-wrapper .fd-help-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#fd-wrapper .fd-help-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 48px rgba(0,0,0,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

#fd-wrapper .fd-help-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.15s;
}

#fd-wrapper .fd-help-close:hover {
    background: #f0f1f3;
    color: #111;
}

#fd-wrapper .fd-help-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

#fd-wrapper .fd-help-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

#fd-wrapper .fd-help-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

#fd-wrapper .fd-help-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #1d72f5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
}

#fd-wrapper .fd-help-step strong {
    display: block;
    font-size: 14px;
    color: #111;
    margin-bottom: 2px;
}

#fd-wrapper .fd-help-step p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

#fd-wrapper .fd-help-shortcuts {
    padding-top: 16px;
    border-top: 1px solid #f0f1f3;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

#fd-wrapper .fd-help-shortcuts strong {
    color: #374151;
}
