.jwt-page {
    max-width: 1180px;
    margin: 0 auto;
}

.jwt-card {
    padding: 24px;
}

/* 입력 */

.jwt-input {
    min-height: 180px;
    resize: vertical;
    line-height: 1.7;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;
    font-size: 14px;
    word-break: break-all;
}

/* 버튼 */

.jwt-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.jwt-btn-row .utility-btn {
    min-width: 126px;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.18s ease;
}

.jwt-btn-row .utility-btn:hover {
    transform: translateY(-1px);
}

.jwt-btn-row .utility-btn-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.jwt-btn-row .utility-btn-primary:hover {
    background: #111827;
    border-color: #111827;
}

/* 메시지 */

.jwt-message {
    min-height: 22px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #475569;
}

.jwt-message.is-error {
    color: #dc2626;
}

.jwt-message.is-success {
    color: #2563eb;
}

/* 결과 */

.jwt-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.jwt-result-box {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.jwt-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.jwt-result-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

/* 코드 영역 */

.jwt-code-box {
    margin: 0;
    padding: 18px;
    min-height: 320px;
    overflow: auto;
    background: #fff;
    color: #334155;
    line-height: 1.7;
    font-size: 13px;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 미니 버튼 */

.jwt-mini-btn {
    border: 1px solid #dbe1ea;
    background: #fff;
    color: #475569;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s ease;
}

.jwt-mini-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* 안내 박스 */

.jwt-warning-box {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.jwt-warning-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #111827;
}

.jwt-warning-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

/* 도움말 */

.help-panel {
    margin-top: 32px;
}

.help-panel h2 {
    margin-bottom: 18px;
}

.help-panel .help-box + .help-box {
    margin-top: 18px;
}

/* 반응형 */

@media (max-width: 860px) {
    .jwt-result-grid {
        grid-template-columns: 1fr;
    }

    .jwt-code-box {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .jwt-card {
        padding: 18px;
    }

    .jwt-btn-row {
        flex-direction: column;
    }

    .jwt-btn-row .utility-btn {
        width: 100%;
        min-width: 100%;
        height: 44px;
    }

    .jwt-result-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .jwt-mini-btn {
        width: 100%;
    }

    .jwt-code-box {
        padding: 16px;
        font-size: 12px;
    }
}