.idea-generator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px auto;
    align-items: end;
    gap: 12px;
    padding: 18px;
}

.idea-generator input,
.idea-generator select {
    padding: 10px 12px;
}

.idea-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 12px;
}

.idea-list-controls .idea-tabs {
    margin: 0;
}

.idea-list-controls {
    justify-content: flex-end;
}

.idea-title-search {
    margin-left: auto;
    max-width: 520px;
}

.page-blog-ideas .idea-tabs {
    padding: 7px 0;
    background: #f5f7f5;
}

.idea-tabs a {
    padding: 8px 12px;
    border-radius: 8px;
    color: #6f7974;
    font-size: 12px;
    font-weight: 750;
}

.idea-tabs a.active {
    background: #275d4a;
    color: #fff;
}

.idea-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 15px;
}

.page-blog-ideas .idea-categories {
    position: sticky;
    top: 54px;
    z-index: 7;
    padding: 0 0 10px;
    background: #f5f7f5;
}

.idea-categories a {
    padding: 8px 11px;
    border: 1px solid #dfe6e2;
    border-radius: 999px;
    background: #fff;
    color: #596761;
    font-size: 12px;
    font-weight: 700;
}

.idea-categories a.active {
    border-color: #275d4a;
    background: #e8f2ed;
    color: #275d4a;
}

.idea-categories b {
    margin-left: 3px;
    color: #87918d;
    font-size: 10px;
}

.idea-list {
    display: grid;
    border-top: 1px solid #e2e7e4;
}

.idea-recommendation-note {
    display: grid;
    gap: 4px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #f2cc57;
    border-radius: 11px;
    background: linear-gradient(130deg, #fff9df, #fff4cc);
}

.idea-recommendation-note strong {
    color: #8a5600;
    font-size: 12px;
    font-weight: 800;
}

.idea-recommendation-note p {
    margin: 0;
    color: #7a6428;
    font-size: 11px;
}

.idea-recommendation-note .button {
    justify-self: start;
    margin-top: 4px;
}

.idea-reference-url {
    color: #4d806b;
    font-size: 12px;
    font-weight: 750;
}

.idea-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 13px;
    padding: 13px 5px;
    border-bottom: 1px solid #e2e7e4;
}

.idea-row.recommended {
    position: relative;
    border: 1px solid #e8be3f;
    border-radius: 13px;
    background: linear-gradient(120deg, #fffef6, #fff8d6);
    box-shadow: 0 9px 20px rgba(138, 104, 13, .14);
    margin: 10px 0;
    padding: 14px 10px;
}

.idea-row.recommended .idea-body h2 {
    color: #4f3900;
}

.idea-row.recommended .idea-write {
    border-color: #d9b34b;
    background: #fff7dd;
    color: #704f00;
}

.idea-row.idea-row-hidden {
    display: none;
}

.idea-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0 0;
}

.idea-load-more-wrap button {
    min-width: 180px;
}

.idea-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid #cad8d1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #2e4f41;
    box-shadow: 0 10px 26px rgba(34, 58, 48, .15);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 30;
}

.idea-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.idea-check button,
.idea-delete button {
    width: 31px;
    height: 31px;
    border: 1px solid #ccd6d1;
    border-radius: 9px;
    background: #fff;
    color: #fff;
    cursor: pointer;
}

.idea-row.published .idea-check button {
    border-color: #3c8061;
    background: #3c8061;
}

.idea-delete button {
    border: 0;
    background: transparent;
    color: #929b97;
    font-size: 18px;
}

.idea-delete button:hover {
    background: #f5dede;
    color: #a43d3d;
}

.idea-body {
    min-width: 0;
}

.idea-labels {
    display: flex;
    align-items: center;
    gap: 6px;
}

.idea-labels > span {
    color: #648071;
    font-size: 10px;
    font-weight: 750;
}

.quality-score,
.duplicate-score {
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 9px;
    line-height: 1;
}

.idea-recommend-badge {
    padding: 3px 7px;
    border-radius: 999px;
    background: #efc34d;
    color: #5f4300;
    font-size: 9px;
    line-height: 1;
}

.idea-category-badge {
    padding: 3px 7px;
    border-radius: 999px;
    background: #e7edf6;
    color: #496585;
    font-size: 9px;
    line-height: 1;
}

.idea-category-form select {
    width: auto;
    min-width: 92px;
    padding: 4px 22px 4px 8px;
    border-color: #cfdae5;
    border-radius: 999px;
    background-color: #e7edf6;
    color: #496585;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.quality-score.good { background: #dcefe5; color: #276448; }
.quality-score.medium { background: #f4ebd7; color: #8b6721; }
.quality-score.low,
.duplicate-score { background: #f5dede; color: #9b3838; }

.idea-body h2 {
    margin: 3px 0 4px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.idea-body h2 a {
    color: inherit;
    text-decoration: none;
}

.idea-body h2 a:hover {
    text-decoration: underline;
}

.idea-body p {
    margin: 0;
    color: #8b9490;
    font-size: 10px;
}

.idea-recommend-reason {
    margin: 0 0 4px;
    color: #7a611f;
    font-size: 10px;
    font-weight: 650;
}

.idea-row.published .idea-body h2 {
    color: #89928e;
    text-decoration: line-through;
}

.idea-write {
    padding: 8px 11px;
    font-size: 11px;
}

@media (max-width: 720px) {
    .idea-generator {
        grid-template-columns: 1fr;
    }

    .idea-row {
        grid-template-columns: minmax(0, 1fr) 34px;
    }

    .idea-write {
        display: none;
    }

    .page-blog-ideas .idea-categories {
        top: 50px;
    }

    .idea-scroll-top {
        right: 14px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}
