body {
    background-color: #f6f8fb;
}

.stat-card {
    border: 0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.letter-canvas {
    overflow: auto;
    max-height: 75vh;
    border: 1px solid #dbe3ef;
    border-radius: 0.5rem;
    background: #fff;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.letter-stage {
    position: relative;
    transform-origin: center center;
    display: inline-block;
}

#letterImage {
    max-width: 100%;
    height: auto;
    display: block;
}

#anonymizeLayer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    touch-action: pinch-zoom;
}

.anonym-box {
    position: absolute;
    background: #ffffff;
    border: 2px solid #b91c1c;
    min-width: 80px;
    min-height: 30px;
    overflow: visible;
    cursor: move;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    z-index: 10;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.remove-box {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    padding: 0;
}

.visually-muted {
    opacity: 0.55;
}

.card-header {
    font-weight: 600;
}

.select2-container .select2-selection--single {
    height: 38px;
    padding-top: 4px;
}

.box-resize-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #b91c1c;
    border-radius: 2px;
    right: -7px;
    bottom: -7px;
    cursor: se-resize;
    touch-action: none;
}

@media (max-width: 768px) {
    .letter-canvas {
        max-height: 58vh;
        padding: 0.5rem;
    }
}
