.ecp-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem;
}

.ecp-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-align: center;
}

.ecp-sub {
    margin: 0 0 1.25rem;
    color: #4b5563;
    line-height: 1.55;
    text-align: center;
}

.ecp-search-row { position: relative; margin-bottom: 0.9rem; }

.ecp-search {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    font: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.ecp-search:focus {
    outline: 2px solid #d97706;
    outline-offset: 1px;
    border-color: #d97706;
}

.ecp-cats {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.ecp-cat {
    padding: 0.4rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
}

.ecp-cat:hover { border-color: #9ca3af; }

.ecp-cat.ecp-on {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
    font-weight: 600;
}

.ecp-count {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0 0 0.7rem;
}

.ecp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
    gap: 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    min-height: 12rem;
}

.ecp-emoji {
    font-size: 1.9rem;
    line-height: 1;
    padding: 0.55rem 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.08s ease;
}

.ecp-emoji:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    transform: scale(1.18);
}

.ecp-emoji:active { transform: scale(0.95); }

.ecp-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    padding: 2.5rem 1rem;
    line-height: 1.6;
}

.ecp-toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%) translateY(1rem);
    background: #111827;
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    z-index: 9999;
    max-width: 90vw;
    text-align: center;
}

.ecp-toast.ecp-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ecp-toast[hidden] { display: none; }

.ecp-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 1.2rem;
}
