.remove-page {
    padding: 54px 0 90px;
}

.remove-title {
    max-width: 780px;
    margin-bottom: 32px;
}

.remove-title h1 {
    margin: 0;

    font-size: 42px;
    line-height: 1.15;

    letter-spacing: -1.5px;
}

.remove-title p {
    margin: 16px 0 0;

    color: #6c7178;

    font-size: 16px;
    line-height: 1.75;
}


/* Upload */

.upload-area {
    min-height: 410px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 45px 25px;

    background: #fff;

    border: 2px dashed #d4d8de;
    border-radius: 22px;

    text-align: center;
}

.upload-area.drag-over {
    border-color: #202124;
    background: #f4f5f7;
}

.upload-icon {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 22px;

    background: #f1f3f4;

    font-size: 36px;
}

.upload-area h2 {
    margin: 0;

    font-size: 23px;
}

.upload-area p {
    margin: 11px 0 24px;

    color: #777c84;

    font-size: 14px;
}

.primary-btn,
.secondary-btn,
.small-btn,
.remove-btn {
    font-family: inherit;
    font-weight: 700;

    cursor: pointer;
}

.primary-btn {
    padding: 13px 24px;

    border: 0;
    border-radius: 11px;

    background: #202124;
    color: #fff;

    font-size: 15px;
}

.secondary-btn {
    padding: 10px 15px;

    border: 1px solid #d8dce1;
    border-radius: 9px;

    background: #fff;
    color: #34373b;
}


/* Workspace */

.workspace {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e2e5e9;
    border-radius: 20px;
}

.workspace-toolbar {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 22px;

    border-bottom: 1px solid #e7e9ec;
}

.workspace-toolbar strong {
    display: block;

    margin-bottom: 5px;
}

.workspace-toolbar span {
    color: #858a91;

    font-size: 13px;
}


.workspace-body {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    min-height: 620px;
}


/* Preview */

.preview-panel {
    min-width: 0;

    background: #f5f6f8;

    overflow-y: auto;
}

.preview-toolbar {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 14px 18px;

    background: #fff;

    border-bottom: 1px solid #e1e4e8;
}

.selection-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.small-btn {
    padding: 8px 12px;

    border: 1px solid #d7dbe0;
    border-radius: 8px;

    background: #fff;
    color: #52575d;

    font-size: 12px;
}

.small-btn:hover {
    background: #f3f4f5;
}

.shift-hint {
    color: #8a8f96;

    font-size: 12px;
}


.page-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(130px, 1fr)
        );

    gap: 14px;

    padding: 22px;
}

.page-card {
    position: relative;

    padding: 9px;

    background: #fff;

    border: 2px solid transparent;
    border-radius: 11px;

    cursor: pointer;

    user-select: none;

    transition:
        border-color 0.12s ease,
        opacity 0.12s ease,
        transform 0.12s ease;
}

.page-card:hover {
    transform: translateY(-1px);

    border-color: #c8ccd1;
}

.page-card.selected {
    border-color: #c7352b;
}

.page-card canvas {
    display: block;

    width: 100%;
    height: auto;

    background: #fff;

    border: 1px solid #eceef1;
    border-radius: 5px;
}

.page-number {
    margin-top: 7px;

    color: #6f747a;

    font-size: 11px;

    text-align: center;
}

.delete-overlay {
    position: absolute;

    inset: 9px 9px 28px;

    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    border-radius: 5px;

    background:
        rgba(
            180,
            35,
            28,
            0.74
        );

    color: #fff;

    pointer-events: none;
}

.page-card.selected
.delete-overlay {
    display: flex;
}

.delete-cross {
    font-size: 34px;
    line-height: 1;
}

.delete-label {
    font-size: 12px;
    font-weight: 800;
}


/* Settings */

.settings-panel {
    padding: 25px;

    border-left: 1px solid #e2e5e9;

    background: #fff;
}

.settings-panel h2 {
    margin: 0 0 8px;

    font-size: 20px;
}

.setting-note {
    margin: 0 0 22px;

    color: #747980;

    font-size: 13px;
    line-height: 1.7;
}

.field-label {
    display: block;

    margin-bottom: 8px;

    color: #4a4e53;

    font-size: 13px;
    font-weight: 700;
}

.text-input {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d6dae0;
    border-radius: 9px;

    outline: none;

    font: inherit;
}

.text-input:focus {
    border-color: #777d85;
}

.expression-help {
    margin-top: 7px;

    color: #959aa0;

    font-size: 11px;
}


/* Stats */

.stats-box {
    margin-top: 24px;

    overflow: hidden;

    border: 1px solid #e2e5e9;
    border-radius: 11px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    border-bottom: 1px solid #eceef1;

    color: #646970;

    font-size: 13px;
}

.stat-row:last-child {
    border-bottom: 0;
}

.stat-row strong {
    color: #292d31;

    font-size: 15px;
}

.stat-row.danger strong {
    color: #b3261e;
}


/* Action */

.error-box {
    margin-top: 18px;

    padding: 11px 12px;

    border: 1px solid #f0c2be;
    border-radius: 9px;

    background: #fff0ef;
    color: #a9251d;

    font-size: 12px;
    line-height: 1.6;
}

.remove-btn {
    width: 100%;

    margin-top: 24px;
    padding: 13px 20px;

    border: 0;
    border-radius: 11px;

    background: #b3261e;
    color: #fff;

    font-size: 15px;
}

.remove-btn:hover:not(:disabled) {
    background: #941e18;
}

.remove-btn:disabled {
    cursor: not-allowed;

    background: #c7c9cc;
}

.message-box {
    margin-top: 18px;

    padding: 14px 17px;

    border-radius: 11px;

    font-size: 14px;
}

.message-box.error {
    border: 1px solid #f0c2be;

    background: #fff0ef;
    color: #a9251d;
}

.message-box.success {
    border: 1px solid #c9e6cf;

    background: #eef8f0;
    color: #246b31;
}

.hidden {
    display: none !important;
}


@media (max-width: 850px) {

    .workspace-body {
        grid-template-columns: 1fr;
    }

    .settings-panel {
        border-top: 1px solid #e2e5e9;
        border-left: 0;
    }

}


@media (max-width: 600px) {

    .remove-title h1 {
        font-size: 34px;
    }

    .preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        padding: 14px;
    }

}
