#fle-editor-container {
    max-width: 100%;
    margin: 36px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 24px 0 #2221;
    padding: 32px 18px 24px 18px;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
}

.fle-row {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.fle-row label {
    font-weight: 500;
    min-width: 128px;
}

.fle-row input[type="number"], 
.fle-row input[type="file"], 
.fle-row select {
    min-width: 80px;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
    background: #f6f6f8;
}

.fle-row input[type="number"]::-webkit-input-placeholder {
    color: #bbb;
}

.fle-bleed-hint {
    font-size: 13px;
    color: #7d7d7d;
    margin-left: 8px;
    font-style: italic;
}

#fle-generate-btn, #fle-download-btn {
    background: #2177d0;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: background .16s;
    margin-right: 8px;
}
#fle-generate-btn[disabled], #fle-download-btn[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

#fle-generate-btn:hover:not([disabled]), #fle-download-btn:hover:not([disabled]) {
    background: #1658a0;
}

.fle-preview-labels, .fle-preview-boxes, .fle-tables {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.fle-preview-labels > div, .fle-preview-boxes > div, .fle-tables > div {
    width: 49%;
}

.fle-preview-labels {
    margin-bottom: 2px;
}
.fle-preview-labels > div {
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.05em;
    color: #325ea8;
    margin-bottom: 2px;
}

.fle-preview-box {
    min-height: 450px;
    max-height: 800px;
    background: #f7f8fa;
    border-radius: 10px;
    padding: 13px 9px;
    border: 1.5px solid #dde2ed;
    overflow: auto;
    box-shadow: 0 1px 7px 0 #2221;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fle-table {
    padding: 0;
}

.fle-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
    margin: 0;
    background: #f6f7fa;
    border-radius: 7px;
    overflow: hidden;
}

.fle-table th, .fle-table td {
    border: 1px solid #e0e3eb;
    padding: 5px 10px;
    text-align: center;
}

.fle-table th {
    background: #eaf0fa;
    font-weight: 600;
    color: #1c3365;
}

.fle-table td {
    background: #fff;
    color: #222;
}

@media (max-width: 900px) {
    #fle-editor-container {
        padding: 14px 3vw 15px 3vw;
        max-width: 98vw;
    }
}

@media (max-width: 700px) {
    .fle-preview-labels, .fle-preview-boxes, .fle-tables {
        flex-direction: column !important;
        gap: 0;
    }
    .fle-preview-labels > div, .fle-preview-boxes > div, .fle-tables > div {
        width: 100% !important;
        margin-bottom: 14px;
    }
    .fle-preview-labels > div:last-child,
    .fle-preview-boxes > div:last-child,
    .fle-tables > div:last-child {
        margin-bottom: 0;
    }
    .fle-preview-box {
        min-height: 280px;
        height: auto;
        padding: 8px 2vw;
    }
    .fle-table table {
        font-size: 14px;
    }
}
