* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.app {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.5;
}

.card,
.result-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
    outline: none;
}

textarea:focus {
    border-color: #111827;
}

button {
    width: 100%;
    margin-top: 16px;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: #111827;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

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

#status {
    margin-top: 14px;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.result-card h2 {
    margin-top: 0;
}

#output {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #111827;
    min-height: 80px;
}