* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

button,
input {
    font: inherit;
}

.app {
    width: min(1400px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 30px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
}

.controls,
.preview-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px d52b1e(0, 0, 0, 0.08);
}

.controls {
    padding: 28px;
}

.controls h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.intro {
    margin: 0 0 28px;
    line-height: 1.5;
    color: #5b6472;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input[type="file"] {
    width: 100%;
}

.form-group input[type="range"] {
    width: 100%;
}

.form-group span {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    color: #5b6472;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button {
    border: none;
    border-radius: 7px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 700;
}

.button-primary {
    background: #d52b1e;
    color: #ffffff;
}

.button-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.button:hover {
    opacity: 0.9;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message {
    min-height: 20px;
    margin: 18px 0 0;
    font-size: 14px;
    color: #9b1c1c;
}

.preview-section {
    min-width: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-wrapper {
    width: 100%;
    overflow: auto;
    border-radius: 8px;
    background:
        linear-gradient(45deg, #eeeeee 25%, transparent 25%),
        linear-gradient(-45deg, #eeeeee 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eeeeee 75%),
        linear-gradient(-45deg, transparent 75%, #eeeeee 75%);
    background-size: 20px 20px;
    background-position:
        0 0,
        0 10px,
        10px -10px,
        -10px 0;
}

#previewCanvas {
    display: block;
    width: 100%;
    height: auto;
}

.privacy-note {
    margin: 14px 0 0;
    font-size: 16px;
    color: #1f2937;
    text-align: left;
}
.holstor-logo {

    width: 180px !important;

    height: auto !important;
}
@media (max-width: 850px) {
    .app {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .controls {
        order: 2;
    }

    .preview-section {
        order: 1;
    }
}