#dreamInputScreen {
    gap: 16px;
}

#dreamInputScreen.screen.active {
    display: flex;
    flex-direction: column;
}

#dreamInputScreen .input-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

#dreamInputScreen .section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4c51bf;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
}

#dreamInputScreen .input-helper {
    margin-top: 6px;
    color: #4a5568;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.5;
}

#dreamInputScreen .input-tip-card {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    font-size: clamp(0.85rem, 2.3vw, 0.95rem);
    color: #2d3748;
}

#dreamInputScreen .input-tip-card .tip-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a202c;
}

#dreamInputScreen .input-tip-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#dreamInputScreen .input-tip-card li {
    line-height: 1.4;
}

#dreamInputScreen .dream-input-label {
    font-weight: 600;
    color: #1a202c;
}

#dreamInputScreen textarea {
    border-radius: 12px;
    border: 1px solid #cbd5f5;
    padding: 14px;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    line-height: 1.5;
    resize: none;
    background: #fff;
}

#dreamInputScreen .char-count {
    text-align: right;
    color: #64748b;
    font-size: 0.9em;
    margin-top: -4px;
}

@media (max-width: 540px) {
    #dreamInputScreen .input-header {
        flex-direction: column;
        align-items: stretch;
    }

    #dreamInputScreen .section-label {
        align-self: flex-start;
        font-size: 0.75rem;
    }

    #dreamInputScreen .input-tip-card {
        padding: 14px;
    }
}

