.locale-picker {
    max-width: 960px;
    margin: 3rem auto;
    padding: 0 1.5rem 4rem;
    color: #222;
}

.lp-header {
    margin-bottom: 2.5rem;
    text-align: center;
}
.lp-header h1 {
    font-size: 2rem;
    margin: 0 0 0.75rem;
    font-weight: 600;
}
.lp-sub {
    color: #666;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

.lp-section {
    margin-bottom: 2.5rem;
}
.lp-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.lp-card {
    margin: 0;
}

.lp-card-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    font-family: inherit;
    color: inherit;
}
.lp-card-btn:hover {
    border-color: #5B3EEE;
    box-shadow: 0 2px 8px rgba(91, 62, 238, 0.08);
    transform: translateY(-1px);
}
.lp-card-btn:active {
    transform: translateY(0);
}

.lp-flag {
    font-size: 1.5rem;
    line-height: 1;
}
.lp-flag-img {
    /* flag-icons sizes flags by font-size; pin them to match the emoji visual weight. */
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 2px;
    flex-shrink: 0;
}
.lp-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    flex-shrink: 0;
}
.lp-name {
    flex: 1;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}
.lp-name-primary {
    line-height: 1.2;
}
.lp-lang {
    font-weight: 400;
    color: #777;
    font-size: 0.875rem;
}
.lp-subtitle {
    font-weight: 400;
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

.lp-card-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 0.5rem 0 0;
    padding: 0 0.25rem;
}

.lp-generic-section .lp-card-btn {
    background: #fafafa;
}

.lp-footnote {
    margin-top: 3rem;
    text-align: center;
    color: #888;
    font-size: 0.875rem;
}
