.swc-wrapper {
    max-width: 1500px;
    margin: 30px auto;
    font-family: Arial, Helvetica, sans-serif;
}

.swc-card {
    padding: 28px;
    background: #ffffff;
    box-sizing: border-box;
}

.swc-title {
    margin: 0 0 34px;
    font-size: 42px;
    line-height: 1.2;
}

.swc-label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.swc-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.swc-input-section,
.swc-output-section {
    min-width: 0;
}

#swcInput,
.swc-output {
    width: 100%;
    height: 490px;
    min-height: 490px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

#swcInput {
    background: #ffffff;
    resize: vertical;
}

#swcInput::placeholder {
    color: #999999;
}

.swc-output {
    background: #fafafa;
    white-space: pre-wrap;
    overflow-y: auto;
    overflow-x: auto;
}

.swc-middle-section {
    height: 490px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.swc-convert-button,
.swc-secondary-button {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 7px;
    font-size: 16px;
    cursor: pointer;
}

.swc-convert-button {
    background: #222222;
    color: #ffffff;
}

.swc-secondary-button {
    margin-top: 12px;
    background: #eeeeee;
    color: #222222;
}

.swc-convert-button:hover,
.swc-secondary-button:hover {
    opacity: 0.9;
}

.swc-convert-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.swc-status {
    min-height: 20px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 1050px) {

    .swc-title {
        font-size: 34px;
    }

    .swc-main-grid {
        grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
        gap: 18px;
    }

    #swcInput,
    .swc-output,
    .swc-middle-section {
        height: 420px;
        min-height: 420px;
    }
}

@media (max-width: 760px) {

    .swc-wrapper {
        margin: 15px auto;
    }

    .swc-card {
        padding: 18px;
    }

    .swc-title {
        margin-bottom: 24px;
        font-size: 28px;
    }

    .swc-main-grid {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .swc-input-section {
        order: 1;
        width: 100%;
    }

    .swc-middle-section {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-top: 0;
    }

    .swc-output-section {
        order: 3;
        width: 100%;
    }

    #swcInput,
    .swc-output {
        height: 300px;
        min-height: 300px;
        padding: 15px;
        font-size: 16px;
    }
}
