.libs-body {
    background-color: #F8C8DC;
    min-height: 100vh;
}

.libs-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.libs-title {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    margin: 8px 0 4px;
}

.libs-instructions {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-style: italic;
    margin: 0 0 24px;
    min-height: 28px;
}

.prompt-form {
    background-color: white;
    border-radius: 14px;
    padding: 24px 28px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.prompt-list {
    list-style: none;
    counter-reset: lib;
    padding: 0;
    margin: 0 0 20px;
}

.prompt-list li {
    counter-increment: lib;
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.prompt-list li::before {
    content: counter(lib) ".";
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #5a3b4a;
    text-align: right;
}

.prompt-list label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prompt-list .prompt-label {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: #5a3b4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prompt-list input {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    padding: 9px 14px;
    border: 2px solid #2b1a22;
    border-radius: 22px;
    background-color: white;
    color: #2b1a22;
    outline: none;
}

.prompt-list input:focus {
    box-shadow: 0 0 0 3px rgba(248, 200, 220, 0.8);
}

.prompt-buttons,
.result-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

.result-buttons {
    margin-top: 20px;
}

.libs-btn {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 11px 26px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #fce7ef 100%);
    color: #2b1a22;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(43, 26, 34, 0.18), inset 0 0 0 2px #2b1a22;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.libs-btn:hover {
    background: linear-gradient(135deg, #2b1a22 0%, #5a3b4a 100%);
    color: #fce7ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 26, 34, 0.28), inset 0 0 0 2px #2b1a22;
}

.libs-btn:active {
    transform: translateY(0);
}

.libs-btn.primary {
    background: linear-gradient(135deg, #2b1a22 0%, #5a3b4a 100%);
    color: #fce7ef;
    font-size: 20px;
    padding: 13px 34px;
}

.libs-btn.primary:hover {
    background: linear-gradient(135deg, #5a3b4a 0%, #7a5465 100%);
    color: white;
}

.passage-card {
    background-color: white;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.original-card {
    background-color: #fff6fa;
}

.passage-label {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #5a3b4a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 12px;
    text-align: center;
    font-weight: 600;
}

.passage-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.55;
    color: #2b1a22;
    margin: 0;
    text-align: left;
}

.passage-text .fill {
    color: #b03a6c;
    font-weight: 700;
    font-style: italic;
}

.passage-text .original-fill {
    color: #5a3b4a;
    font-weight: 700;
}

.passage-source {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-style: italic;
    color: #5a3b4a;
    margin: 14px 0 0;
    text-align: right;
}

@media (max-width: 600px) {
    .libs-title { font-size: 30px; }
    .libs-instructions { font-size: 16px; }
    .prompt-form { padding: 18px 16px 14px; }
    .passage-card { padding: 20px 18px; }
    .passage-text { font-size: 17px; }
    .prompt-list input { font-size: 16px; }
}
