/* tools/logo-bg.css
   The logo background remover reuses the watermark maker's layout
   (watermark.css: settings open beside the results). This sheet only adds
   the preview grounds, the tap cursor and the card note. */

/* The logo sits on light checks (transparent), dark or light, picked in the
   settings. A white logo is shown on dark checks, or it would vanish. */
.lb-grid .lb-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, #e4e4e7 25%, transparent 25%),
        linear-gradient(-45deg, #e4e4e7 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e4e4e7 75%),
        linear-gradient(-45deg, transparent 75%, #e4e4e7 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.lb-grid[data-view="checks"] .lb-card[data-ground="dark"] .lb-thumb {
    background-color: #2a2a2e;
    background-image:
        linear-gradient(45deg, #3a3a3f 25%, transparent 25%),
        linear-gradient(-45deg, #3a3a3f 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #3a3a3f 75%),
        linear-gradient(-45deg, transparent 75%, #3a3a3f 75%);
}

.lb-grid[data-view="dark"] .lb-thumb {
    background: #111114;
}

.lb-grid[data-view="light"] .lb-thumb {
    background: #f4f4f6;
}

.lb-card .compress-thumb canvas.lb-canvas {
    cursor: crosshair;
    touch-action: manipulation;
}

.lb-card .compress-thumb canvas.lb-canvas:active {
    cursor: crosshair;
}

.lb-note {
    margin: 4px 0 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

.lb-note:empty {
    display: none;
}

.lb-note a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lb-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lb-undo {
    font: inherit;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.lb-undo[hidden] {
    display: none;
}

.lb-page .wm-actions {
    flex-wrap: wrap;
}
