.size-display {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--muted);
    background: var(--card);
    border: 0.5px solid #e6e9ef;
    border-radius: var(--radius);
    padding: 0.25rem 0.25rem;
    text-align: center;
    font-family: monospace;
}

#resizable {
    position: relative;
    width: 200px;
    height: 200px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    transition: box-shadow 0.3s ease;
    margin: 0 auto;
}

#resizable:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--accent);
    cursor: nw-resize;
    border-radius: 0.125rem 0 0 0;
}

.resize-handle::before {
    content: "↘";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.resize-handle::after {
    display: none;
}


@media (max-width: 1440px) {
    .size-display {
        margin-bottom: 1.125rem;
        font-size: 0.95rem;
        padding: 0.475rem 0.95rem;
    }
    #resizable {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    .resize-handle {
        width: 1.1875rem;
        height: 1.1875rem;
    }
    .resize-handle::before {
        font-size: 0.95rem;
    }
    .resize-handle::after {
        display: none;
    }
}

@media (max-width: 1024px) {
    .size-display {
        margin-bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.45rem 0.9rem;
    }
    #resizable {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    .resize-handle {
        width: 1.125rem;
        height: 1.125rem;
    }
    .resize-handle::before {
        font-size: 0.9rem;
    }
    .resize-handle::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .size-display {
        margin-bottom: 0.875rem;
        font-size: 0.85rem;
        padding: 0.425rem 0.85rem;
    }
    #resizable {
        padding: 0.725rem;
        font-size: 0.85rem;
    }
    .resize-handle {
        width: 1rem;
        height: 1rem;
    }
    .resize-handle::before {
        font-size: 0.85rem;
    }
    .resize-handle::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .size-display {
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    #resizable {
        padding: 0.65rem;
        font-size: 0.8rem;
    }
    .resize-handle {
        width: 0.875rem;
        height: 0.875rem;
    }
    .resize-handle::before {
        font-size: 0.8rem;
    }
    .resize-handle::after {
        display: none;
    }
}

@media (max-width: 375px) {
    .size-display {
        margin-bottom: 0.625rem;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    #resizable {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    .resize-handle {
        width: 0.75rem;
        height: 0.75rem;
    }
    .resize-handle::before {
        font-size: 0.75rem;
    }
    .resize-handle::after {
        display: none;
    }
}
