.aplg-generator {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 24px;
    background: #fff8f1;
    border: 2px solid #f2d8c8;
}

.aplg-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    align-items: flex-end;
}

.aplg-controls select,
.aplg-controls button {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #d8b9a6;
    background: #fff;
    cursor: pointer;
}

.aplg-controls button {
    background: #b864ff;
    color: #fff;
    border: none;
    font-weight: 700;
}

.aplg-theme-picker {
    flex: 1 1 100%;
    border: 1px solid #f0d7c8;
    border-radius: 18px;
    padding: 14px 16px 16px;
    background: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.aplg-theme-picker legend {
    padding: 0 8px;
    font-weight: 700;
}

.aplg-theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aplg-theme-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #f0d7c8;
    cursor: pointer;
    line-height: 1;
}

.aplg-theme-choice input {
    margin: 0;
}

.aplg-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding-left: 0;
    list-style-position: inside;
}

.aplg-list li {
    background: #fff;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #f0d7c8;
}

.aplg-word {
    font-weight: 700;
}

.aplg-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.aplg-actions button {
    font-size: 12px;
    border: none;
    background: #f5eadf;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
}

.aplg-locked {
    background: #f2e2ff !important;
}
