.container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    font-family: sans-serif;
    box-sizing: border-box;
}
.left-panel {
    flex: 3;
    min-width: 0;
}
.right-panel {
    flex: 1;
    min-width: 320px;
    border-left: 1px solid #ccc;
    padding-left: 40px;
    max-height: 90vh;
    overflow-y: auto;
}
.input-group {
    margin-bottom: 15px;
}
#wordInput {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}
#submitBtn {
    padding: 10px 20px;
    cursor: pointer;
}
#stateLabel {
    display: block;
    margin-top: 15px;
    color: #555;
    font-style: italic;
}
.syllable-category h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid #dcdfe6;
    padding-bottom: 4px;
}
.syllable-item {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #4c4c4c;
}
.syllable-key {
    font-weight: bold;
    color: #0056b3;
    background-color: #e8f0fe;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
}
#resultsLayer table {
    width: 100%;
    table-layout: auto;
}
#resultsLayer table th,
#resultsLayer table td {
    padding: 10px 12px;
}
#resultsLayer table thead th {
    background-color: #2c3e50 !important; 
}
@media screen and (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .right-panel {
        border-left: none;
        border-top: 1px solid #ccc;
        padding-left: 0;
        padding-top: 20px;
        max-height: none;
    }
}
