/*
Theme Name: SGPrompts
Theme URI: https://example.com/sgprompts
Author: SGPrompts
Description: A warm cream and violet WordPress theme for an AI image prompt gallery. Designed to work with the companion SGPrompts Core plugin.
Version: 1.5.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sgprompts
*/

:root {
    --sg-bg: #faf7f0;
    --sg-card: #fff;
    --sg-ink: #29243a;
    --sg-muted: #706b7d;
    --sg-violet: #6d5ce8;
    --sg-violet-dark: #5545cf;
    --sg-lavender: #f0edff;
    --sg-border: #ebe5dc;
    --sg-radius: 18px;
    --sg-shadow: 0 8px 28px rgba(41, 36, 58, .06)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--sg-bg);
    color: var(--sg-ink);
    font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
    color: var(--sg-violet);
    text-decoration: none
}

a:hover {
    color: var(--sg-violet-dark)
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

button,
input,
textarea,
select {
    font: inherit
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    letter-spacing: -.025em;
    color: var(--sg-ink)
}

h1 {
    font-size: clamp(2rem, 4vw, 3.6rem)
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.03;
    font-size: clamp(2.5rem, 4.4vw, 4rem)
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.15rem)
}

p {
    margin: 0 0 1rem
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eee9e2;
    box-shadow: 0 2px 10px rgba(41, 36, 58, .025)
}

.header-inner {
    max-width: 1240px;
    margin: auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 24px
}

.site-brand {
    font-weight: 850;
    font-size: 1.2rem;
    color: var(--sg-ink);
    white-space: nowrap
}

.site-brand span {
    color: var(--sg-violet)
}

.main-navigation {
    flex: 1
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0
}

.main-navigation a {
    color: var(--sg-ink);
    font-size: .92rem;
    font-weight: 650
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.header-search {
    max-width: 230px
}

.header-search input {
    width: 100%;
    border: 1px solid var(--sg-border);
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff
}

.btn,
.wp-block-button__link,
button[type=submit],
input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    background: var(--sg-violet);
    color: #fff;
    padding: 11px 17px;
    font-weight: 750;
    cursor: pointer;
    transition: .2s
}

.btn:hover,
.wp-block-button__link:hover,
button[type=submit]:hover,
input[type=submit]:hover {
    background: var(--sg-violet-dark);
    color: #fff;
    transform: translateY(-1px)
}

.btn-outline {
    background: #fff;
    color: var(--sg-violet);
    border: 1px solid #d9d2ff
}

.btn-soft {
    background: var(--sg-lavender);
    color: var(--sg-violet)
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto
}

.site-main {
    flex: 1;
    padding: 34px 0 64px
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 38px;
    align-items: center;
    padding: 36px 0 46px
}

.eyebrow {
    display: inline-block;
    color: var(--sg-violet);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 12px
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 650px
}

.hero p {
    color: var(--sg-muted);
    font-size: 1.08rem;
    max-width: 600px
}

.hero-art {
    border-radius: 28px;
    overflow: hidden;
    min-height: 340px;
    background: linear-gradient(135deg, #f0d9e4, #dcd5ff);
    box-shadow: var(--sg-shadow)
}

.hero-art {
    position: relative
}

.hero-art img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover
}

.daily-inspiration {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(235, 229, 220, .9);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 8px 26px rgba(41, 36, 58, .14);
    max-width: calc(100% - 36px)
}

.daily-inspiration-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f2d9f7;
    color: #bd38d1
}

.daily-inspiration strong,
.daily-inspiration small {
    display: block
}

.daily-inspiration strong {
    font-size: .95rem;
    line-height: 1.3
}

.daily-inspiration small {
    font-size: .8rem;
    color: var(--sg-muted);
    margin-top: 3px;
    white-space: nowrap
}

.search-form {
    display: flex;
    gap: 8px;
    max-width: 640px;
    margin: 22px 0
}

.search-form input[type=search] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px
}

.search-form .search-submit {
    width: 54px;
    min-width: 54px;
    padding: 0;
    flex: 0 0 54px
}

.search-form .search-submit svg {
    display: block
}

.section {
    margin-top: 36px
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px
}

.section-heading h2 {
    margin: 0
}

.section-heading p {
    color: var(--sg-muted);
    margin: 6px 0 0
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 22px
}

.chip {
    display: inline-flex;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 999px;
    color: var(--sg-ink);
    font-size: .86rem;
    font-weight: 650
}

.chip:hover,
.chip.is-active {
    background: var(--sg-lavender);
    border-color: #d9d2ff;
    color: var(--sg-violet)
}

.prompt-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px
}

.prompt-card,
.post-card,
.panel,
.widget {
    background: var(--sg-card);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    overflow: hidden;
    box-shadow: var(--sg-shadow)
}

.prompt-card {
    transition: transform .2s, box-shadow .2s
}

.prompt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(41, 36, 58, .1)
}

.prompt-card-image {
    aspect-ratio: 4/5;
    background: #eee7f8;
    overflow: hidden
}

.prompt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.prompt-card-body {
    padding: 14px
}

.prompt-card h3 {
    font-size: 1rem;
    margin: 0 0 6px
}

.prompt-card p {
    font-size: .85rem;
    color: var(--sg-muted);
    margin: 0
}

.prompt-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    color: var(--sg-muted);
    font-size: .78rem;
    margin-top: 12px
}

.page-header {
    padding: 16px 0 22px
}

.page-header h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0 0 10px
}

.page-header p {
    color: var(--sg-muted);
    max-width: 800px
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px
}

.sidebar {
    display: grid;
    align-content: start;
    gap: 18px
}

.widget {
    padding: 18px
}

.widget-title {
    font-size: 1rem;
    margin: 0 0 12px
}

.widget ul {
    padding-left: 18px;
    margin: 0
}

.widget li {
    margin: 7px 0
}

.prompt-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
    gap: 30px
}

.prompt-featured {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    overflow: hidden
}

.prompt-featured img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover
}

.prompt-copy {
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0 14px;
    overflow-wrap: anywhere
}

.form-panel {
    max-width: 760px;
    margin: auto;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 26px;
    box-shadow: var(--sg-shadow)
}

.form-panel label {
    display: block;
    font-weight: 700;
    margin: 12px 0 6px
}

.form-panel input:not([type=checkbox]):not([type=submit]),
.form-panel textarea,
.form-panel select {
    width: 100%;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff
}

.form-panel textarea {
    min-height: 130px
}

.notice {
    padding: 12px 15px;
    border-radius: 10px;
    background: var(--sg-lavender);
    margin: 0 0 16px
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px
}

.dashboard-nav {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 12px;
    height: max-content
}

.dashboard-nav a {
    display: block;
    color: var(--sg-ink);
    padding: 10px 12px;
    border-radius: 9px;
    font-weight: 650
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: var(--sg-lavender);
    color: var(--sg-violet)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px
}

.stat-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px
}

.stat-card strong {
    display: block;
    font-size: 1.7rem
}

.stat-card span {
    color: var(--sg-muted);
    font-size: .85rem
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px
}

.data-table {
    width: 100%;
    border-collapse: collapse
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 13px 15px;
    border-bottom: 1px solid var(--sg-border)
}

.data-table th {
    font-size: .82rem;
    color: var(--sg-muted);
    background: #fcfaf7
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .76rem;
    background: #f3f0ff;
    color: #5545cf
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 26px;
    flex-wrap: wrap
}

.pagination .page-numbers {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 9px;
    padding: 8px 12px
}

.pagination .current {
    background: var(--sg-violet);
    color: #fff
}

.site-footer {
    border-top: 1px solid var(--sg-border);
    padding: 34px 0;
    background: #f5f0e7
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px
}

.footer-inner h3 {
    font-size: 1rem
}

.footer-bottom {
    border-top: 1px solid var(--sg-border);
    margin-top: 24px;
    padding-top: 18px;
    color: var(--sg-muted);
    font-size: .85rem
}

.empty-state {
    padding: 36px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d9d2ff;
    border-radius: var(--sg-radius);
    color: var(--sg-muted)
}

.entry-content>* {
    max-width: 850px
}

.entry-content img {
    border-radius: 12px
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media(max-width:1000px) {
    .prompt-grid,
    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
    .header-inner {
        gap: 14px
    }
    .main-navigation ul {
        gap: 12px
    }
    .header-search {
        display: none
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:760px) {
    .header-inner {
        flex-wrap: wrap
    }
    .main-navigation {
        order: 3;
        flex-basis: 100%;
        overflow: auto
    }
    .main-navigation ul {
        gap: 16px;
        white-space: nowrap
    }
    .hero,
    .prompt-single,
    .content-layout,
    .dashboard-layout {
        grid-template-columns: 1fr
    }
    .hero {
        gap: 22px;
        padding-top: 18px
    }
    .hero-art,
    .hero-art img {
        min-height: 240px
    }
    .daily-inspiration {
        right: 12px;
        bottom: 12px;
        padding: 9px 12px
    }
    .daily-inspiration-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px
    }
    .prompt-grid,
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }
    .container {
        width: min(100% - 28px, 1240px)
    }
    .site-main {
        padding-top: 22px
    }
    .footer-inner {
        grid-template-columns: 1fr
    }
    .dashboard-nav {
        display: flex;
        overflow: auto;
        gap: 4px
    }
    .dashboard-nav a {
        white-space: nowrap
    }
    .stats-grid {
        gap: 8px
    }
    .stat-card {
        padding: 12px
    }
    .stat-card strong {
        font-size: 1.35rem
    }
}

@media(max-width:420px) {
    .prompt-grid,
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .prompt-card-body {
        padding: 10px
    }
    .prompt-card h3 {
        font-size: .9rem
    }
    .header-actions .btn {
        padding: 8px 10px;
        font-size: .85rem
    }
}

/* SGPrompts reference-matching refinements */

:root {
    --sg-cream: #faf7f0;
    --sg-white: #fff;
    --sg-violet: #6d5ce8;
    --sg-ink: #29243a;
    --sg-muted: #77717c;
    --sg-border: #e9e4de
}

body {
    background: var(--sg-cream);
    color: var(--sg-ink)
}

.site-header,
.site-header-inner,
.header-inner {
    background: #fff !important
}

h1,
h2,
.hero h1,
.section-heading h2,
.page-header h1,
.category-hero h1,
.prompt-detail-content h1,
.explore-heading h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: -.035em;
    color: var(--sg-ink)
}

.hero h1 {
    line-height: 1.02
}

.section {
    /*background: #fff;*/
    /*border: 1px solid rgba(41, 36, 58, .06);*/
    border-radius: 20px;
    padding: 26px;
    margin: 26px 0;
    /*box-shadow: 0 8px 26px rgba(41, 36, 58, .035)*/
}

.section-heading h2 {
    font-size: clamp(1.55rem, 2.3vw, 2rem)
}

.prompt-card-image {
    display: block;
    aspect-ratio: 4/5;
    overflow: hidden;
    /*border-radius: 12px;*/
    background: #eee8f5
}

.prompt-card-image img,
.prompt-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block
}

.prompt-card-body h3 {
    font-size: 1rem;
    margin: .65rem 0 .25rem;
    font-weight: 700
}

.prompt-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px
}

.prompt-card-tags a {
    font-size: .75rem;
    color: #77717c;
    text-decoration: none
}

.prompt-card-tags a:hover {
    color: var(--sg-violet)
}

.search-form.explore-search {
    display: flex;
    width: 100%;
    max-width: none;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    overflow: hidden;
    gap: 0;
    padding: 5px;
    box-shadow: 0 3px 12px rgba(41, 36, 58, .04)
}

.explore-search input[type=search] {
    flex: 1;
    min-width: 100px;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff;
    padding: 14px 16px
}

.explore-search select {
    width: min(230px, 28%);
    border: 0;
    border-left: 1px solid var(--sg-border);
    border-radius: 0;
    background: #fff;
    padding: 0 14px;
    color: var(--sg-ink)
}

.explore-search .search-submit {
    width: 54px;
    min-width: 54px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--sg-violet);
    color: #fff;
    padding: 0
}

.explore-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 24px
}

.explore-categories {
    flex: 1;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 2px 0 8px
}

.explore-categories .chip {
    white-space: nowrap
}

.sort-form select,
.sort-label select {
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    background: #fff;
    padding: 11px 14px;
    color: var(--sg-ink)
}

.content-layout {
    display: block
}

.content-layout>.sidebar {
    display: none
}

.category-hero {
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    background-color: #5b4d64;
    background-image: linear-gradient(90deg, rgba(30, 24, 40, .82), rgba(30, 24, 40, .12));
    background-position: center;
    background-size: cover;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    margin: 18px 0 20px
}

.category-hero-inner {
    padding: 30px 34px;
    max-width: 700px
}

.category-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 8px
}

.category-hero p {
    color: #fff;
    margin: 0;
    line-height: 1.55
}

.breadcrumbs {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #77717c;
    font-size: .9rem;
    margin: 14px 0 22px
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none
}

.breadcrumbs a:hover {
    color: var(--sg-violet)
}

.category-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start
}

.category-sidebar h2 {
    font-family: inherit;
    font-size: 1.05rem;
    letter-spacing: 0;
    margin: 0 0 12px
}

.category-sidebar nav {
    display: grid;
    gap: 3px
}

.subcat-link {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #655f6c;
    text-decoration: none;
    font-size: .9rem
}

.subcat-link:hover,
.subcat-link.is-active {
    background: #eee8ff;
    color: var(--sg-violet)
}

.category-promo {
    background: #f0ebfa;
    border-radius: 14px;
    padding: 18px;
    margin-top: 28px
}

.category-promo h3 {
    font-size: 1.15rem;
    margin: 0 0 8px
}

.category-promo p {
    font-size: .9rem;
    color: #655f6c
}

.category-promo .btn {
    display: inline-flex;
    margin-top: 8px
}

.category-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px
}

.sort-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    padding-left: 12px;
    color: #655f6c
}

.sort-label select {
    border: 0
}

.view-toggles {
    display: flex;
    gap: 6px
}

.view-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--sg-border);
    border-radius: 9px;
    background: #fff;
    color: var(--sg-violet)
}

.view-toggle.is-active {
    background: #eee8ff;
    border-color: #d9ceff
}

.prompt-grid.is-list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

.prompt-grid.is-list-view .prompt-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 12px
}

.prompt-grid.is-list-view .prompt-card-image {
    aspect-ratio: 4/5;
    width: 120px
}

.prompt-grid.is-list-view .prompt-card-body {
    padding: 10px
}

.prompt-grid.is-list-view .prompt-card-image img {
    height: 100%;
    object-fit: cover
}

.prompt-single {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 34px;
    align-items: start
}

.prompt-featured {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 14px;
    background: #eee8f5
}

.prompt-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.prompt-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px
}

.prompt-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 4/5;
    cursor: pointer
}

.prompt-thumb.is-active {
    border-color: var(--sg-violet);
    box-shadow: 0 0 0 2px #e8e1ff
}

.prompt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.prompt-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.prompt-detail-content h1 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin: 0;
    flex: 1
}

.prompt-like-count {
    color: #df6574;
    white-space: nowrap
}

.prompt-author {
    margin: 12px 0;
    color: #655f6c
}

.prompt-description {
    line-height: 1.7;
    color: #655f6c
}

.prompt-tabs {
    margin-top: 22px
}

.prompt-tab-list {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--sg-border)
}

.prompt-tab {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #655f6c;
    padding: 13px 15px;
    margin-bottom: -1px;
    cursor: pointer;
    font-weight: 600
}

.prompt-tab.is-active {
    color: var(--sg-violet);
    border-bottom-color: var(--sg-violet)
}

.prompt-tab-panel {
    padding: 16px 0;
    /*background: #fff;*/
    border-radius: 0 0 12px 12px
}

.prompt-copy {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f7f7fa;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    padding: 18px;
    line-height: 1.7;
    color: #29243a
}

.btn-copy-prompt,
.btn-copy-negative {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    background: var(--sg-violet);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    font-weight: 700
}

.works-with,
.negative-prompt {
    margin-top: 24px
}

.works-with h2,
.negative-prompt h2 {
    font-family: inherit;
    font-size: 1.05rem;
    letter-spacing: 0
}

.model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px
}

.model-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    color: #655f6c
}

.model-dot {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eee8ff;
    color: var(--sg-violet)
}

.copy-feedback {
    display: block;
    font-size: .85rem;
    color: #39805b;
    margin-top: 6px
}

@media(max-width:800px) {
    .category-layout {
        grid-template-columns: 1fr
    }
    .category-sidebar {
        order: 2
    }
    .category-results {
        order: 1
    }
    .category-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .category-promo {
        margin-top: 16px
    }
    .prompt-single {
        grid-template-columns: 1fr
    }
    .prompt-gallery {
        max-width: 620px
    }
    .explore-toolbar {
        align-items: flex-start;
        flex-direction: column
    }
    .sort-form {
        align-self: flex-end
    }
    .explore-search select {
        width: 28%
    }
}

@media(max-width:520px) {
    .section {
        padding: 16px;
        margin: 18px 0
    }
    .explore-search {
        flex-wrap: wrap
    }
    .explore-search input[type=search] {
        flex-basis: 100%
    }
    .explore-search select {
        flex: 1;
        width: auto;
        border-left: 0;
        border-top: 1px solid var(--sg-border);
        min-height: 44px
    }
    .explore-search .search-submit {
        margin-top: 0
    }
    .category-hero {
        min-height: 190px
    }
    .category-hero-inner {
        padding: 22px
    }
    .category-controls {
        justify-content: space-between
    }
    .prompt-tab {
        padding: 12px 7px;
        font-size: .82rem
    }
    .prompt-grid.is-list-view .prompt-card {
        grid-template-columns: 90px minmax(0, 1fr)
    }
    .prompt-grid.is-list-view .prompt-card-image {
        width: 90px
    }
}

/* Homepage editorial sections */

.about-sgprompts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .38fr);
    gap: 28px;
    align-items: center;
    padding: clamp(24px, 4vw, 42px);
    background: linear-gradient(135deg, #fff 0%, #fffdf9 100%);
    border: 1px solid var(--sg-border);
    border-radius: 20px;
    box-shadow: var(--sg-shadow);
    position: relative;
    overflow: hidden
}

.about-sgprompts:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--sg-violet)
}

.about-sgprompts h2,
.process-section h2,
.faq-section h2,
.about-me-section h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: -.03em
}

.about-sgprompts h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 14px
}

.about-sgprompts .about-copy {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--sg-muted);
    max-width: 760px
}

.about-sgprompts .about-copy p:last-child {
    margin-bottom: 0
}

.about-sgprompts-image {
    display: flex;
    justify-content: center;
    align-items: center
}

.about-sgprompts-image img {
    width: min(230px, 100%);
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f0edff;
    box-shadow: 0 8px 24px rgba(41, 36, 58, .12)
}

.homepage-blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.post-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #eee7f8
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.post-card-body {
    padding: 14px
}

.post-card-body h3 {
    font-size: 1rem;
    margin: 0 0 7px
}

.post-card-body p {
    font-size: .88rem;
    color: var(--sg-muted);
    margin: 0 0 10px
}

.post-date {
    font-size: .78rem;
    color: var(--sg-muted)
}

.centered-heading {
    justify-content: center;
    text-align: center
}

.centered-heading>div {
    max-width: 760px
}

.process-panel {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    padding: 28px;
    max-width: 100%;
    margin: auto
}

.process-panel h3 {
    font-size: 1rem;
    margin: 0 0 14px
}

.process-panel p {
    color: #354154;
    margin-bottom: 14px
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px
}

.process-step {
    min-height: 90px;
    border-radius: 10px;
    background: #e4f1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: #172d4a;
    padding: 16px
}

.process-step span {
    font-size: 1.6rem
}

.process-step strong {
    font-size: .92rem
}

.faq-list {
    display: grid;
    gap: 10px
}

.faq-item {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    padding: 16px 18px
}

.faq-item summary {
    cursor: pointer;
    font-weight: 750;
    color: var(--sg-ink)
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--sg-muted)
}

.about-me-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    background: #314a7a;
    color: #fff;
    border-radius: 16px;
    padding: 28px
}

.about-me-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .35);
    justify-self: center
}

.about-me-copy h2,
.about-me-copy h3 {
    color: #fff
}

.about-me-copy h2 {
    margin: 0 0 8px
}

.about-me-copy p {
    color: #f2f5ff
}

.about-me-copy .eyebrow {
    color: #e4ddff
}

.about-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px
}

.about-socials a {
    display: inline-flex;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .86rem
}

.about-socials a:hover {
    background: #fff;
    color: #314a7a
}

@media(max-width:900px) {
    .about-sgprompts {
        grid-template-columns: 1fr
    }
    .about-sgprompts-image {
        grid-row: 1
    }
    .about-sgprompts-image img {
        width: 150px
    }
    .homepage-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .about-sgprompts {
        grid-template-columns: 1fr
    }
    .about-sgprompts-image {
        grid-row: 1
    }
    .about-me-card {
        grid-template-columns: 1fr;
        text-align: center
    }
    .about-me-copy .btn {
        margin-inline: auto
    }
    .about-socials {
        justify-content: center
    }
}

@media(max-width:560px) {
    .about-sgprompts {
        padding: 20px
    }
    .process-panel {
        padding: 18px
    }
    .process-steps {
        grid-template-columns: 1fr
    }
    .homepage-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .about-me-card {
        padding: 22px
    }
}

/* Refinements: align About Me with the warm cream + violet SGPrompts design */

.about-me-section.section {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 26px;
    margin-bottom: 26px
}

.about-me-card {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 28px;
    background: #fff;
    color: var(--sg-ink);
    border: 1px solid var(--sg-border);
    border-radius: 20px;
    padding: 30px 34px;
    box-shadow: 0 8px 28px rgba(41, 36, 58, .045);
    position: relative;
    overflow: hidden;
}

.about-me-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--sg-violet)
}

.about-me-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eee8ff;
    box-shadow: 0 5px 18px rgba(41, 36, 58, .10)
}

.about-me-copy h2,
.about-me-copy h3 {
    color: var(--sg-ink)
}

.about-me-copy h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin: 4px 0 12px;
    letter-spacing: -.03em
}

.about-me-copy h3 {
    font-size: 1rem;
    margin: 0 0 10px;
    font-weight: 700
}

.about-me-copy p {
    color: var(--sg-muted);
    line-height: 1.75;
    margin: 0
}

.about-me-copy .eyebrow {
    color: var(--sg-violet);
    font-size: .78rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-weight: 800
}

.about-me-copy .btn {
    margin-top: 16px
}

.about-socials {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 16px
}

.about-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    background: #f5f1ff;
    border: 1px solid #e4dcff;
    border-radius: 999px;
    color: var(--sg-violet);
    font-size: .86rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease
}

.about-socials a:hover {
    background: var(--sg-violet);
    color: #fff
}

.prompt-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px
}

.prompt-thumb {
    width: 100%;
    min-width: 0;
    aspect-ratio: 4/5
}

@media(max-width:700px) {
    .about-me-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 20px;
        gap: 16px
    }
    .about-me-photo {
        justify-self: center
    }
    .about-socials {
        justify-content: center
    }
    .prompt-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px
    }
}

@media(max-width:420px) {
    .prompt-thumbnails {
        gap: 4px
    }
    .prompt-thumb {
        border-radius: 7px
    }
}

/* Custom SGPrompts authentication pages */

.auth-layout {
    max-width: 1020px;
    margin: 42px auto 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
    gap: 22px;
    align-items: stretch
}

.auth-card,
.auth-aside {
    border: 1px solid var(--sg-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--sg-shadow);
    padding: clamp(24px, 4vw, 42px)
}

.auth-card h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 3vw, 2.65rem);
    margin: 5px 0 12px;
    letter-spacing: -.035em
}

.auth-eyebrow {
    font-size: .76rem;
    letter-spacing: .12em;
    font-weight: 800;
    color: var(--sg-violet)
}

.auth-intro {
    color: var(--sg-muted);
    margin-bottom: 24px;
    max-width: 52ch
}

.sgp-auth-form {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.sgp-auth-form>label {
    font-size: .9rem;
    font-weight: 700;
    margin-top: 5px
}

.sgp-auth-form input:not([type=checkbox]) {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--sg-border);
    border-radius: 11px;
    background: #fff;
    color: var(--sg-ink);
    outline: none
}

.sgp-auth-form input:focus {
    border-color: var(--sg-violet);
    box-shadow: 0 0 0 3px #eeeaff
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: .86rem;
    margin: 5px 0 8px
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 7px
}

.auth-check input,
.auth-terms input {
    accent-color: var(--sg-violet)
}

.auth-options a,
.auth-switch a {
    font-weight: 700
}

.auth-submit {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    margin-top: 8px
}

.auth-switch {
    text-align: center;
    color: var(--sg-muted);
    font-size: .9rem;
    margin: 20px 0 0
}

.auth-help {
    font-size: .8rem;
    color: var(--sg-muted);
    font-weight: 400
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--sg-muted);
    font-size: .84rem;
    margin: 7px 0
}

.auth-terms input {
    margin-top: 5px;
    flex: 0 0 auto
}

.auth-aside {
    background: linear-gradient(145deg, #f4f0ff 0%, #fff 72%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.auth-aside:after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    right: -90px;
    bottom: -100px;
    background: rgba(109, 92, 232, .08)
}

.auth-aside-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eae4ff;
    color: var(--sg-violet);
    font-size: 1.8rem;
    margin-bottom: 22px
}

.auth-aside h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    margin: 0 0 12px
}

.auth-aside p {
    color: var(--sg-muted);
    line-height: 1.8
}

.auth-aside-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px
}

.auth-aside-pills span {
    border: 1px solid #e2dbff;
    background: #fff;
    color: var(--sg-violet);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .8rem
}

.g-recaptcha {
    margin: 12px 0;
    max-width: 100%;
    overflow: hidden
}

.notice.success {
    background: #f1fbf5;
    border: 1px solid #c9ecd7;
    color: #245d3a;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 12px 0
}

.prompt-info-section {
    margin: 24px 0;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(41, 36, 58, .035)
}

.prompt-info-section h2,
.prompt-howto-panel h2,
.prompt-share-panel h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin: 0 0 12px
}

.prompt-info-body {
    color: var(--sg-muted);
    line-height: 1.8
}

.prompt-info-body p:last-child {
    margin-bottom: 0
}

.prompt-details-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff
}

.prompt-details-table th,
.prompt-details-table td {
    text-align: left;
    vertical-align: top;
    padding: 13px 15px;
    border-bottom: 1px solid var(--sg-border);
    line-height: 1.65
}

.prompt-details-table th {
    width: 25%;
    font-weight: 750;
    color: var(--sg-ink);
    background: #faf8ff
}

.prompt-details-table tr:last-child th,
.prompt-details-table tr:last-child td {
    border-bottom: 0
}

.section-lead {
    color: var(--sg-muted);
    line-height: 1.8
}

.generator-list {
    background: #f8f8fb;
    border: 1px solid #efedf4;
    border-radius: 14px;
    padding: 12px 20px
}

.generator-item {
    padding: 13px 2px;
    border-bottom: 1px solid #e9e7ef
}

.generator-item:last-child {
    border-bottom: 0
}

.generator-item strong {
    font-size: 1rem
}

.generator-item p {
    color: var(--sg-muted);
    margin: 5px 0 0
}

.generator-item a {
    color: var(--sg-violet)
}

.prompt-howto-panel {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #e0e7ff;
    border-left: 4px solid var(--sg-violet);
    border-radius: 15px;
    background: #f6f7ff
}

.tips-list {
    background: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    margin: 16px 0
}

.tip-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0
}

.tip-mark {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    background: #eae5ff;
    color: var(--sg-violet);
    font-weight: 800
}

.tip-item p {
    margin: 0;
    color: var(--sg-muted)
}

.tip-item strong {
    color: var(--sg-ink)
}

.prompt-note {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 14px 16px;
    border-radius: 8px;
    color: #655448;
    margin: 16px 0 0
}

.prompt-share-panel {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #f5ddc6;
    border-left: 4px solid #ef8a35;
    border-radius: 15px;
    background: #fff8f0
}

.prompt-share-panel>p {
    color: #79563e
}

.prompt-share-inner {
    background: #fff;
    border-radius: 13px;
    padding: 18px 20px;
    margin-top: 16px
}

.prompt-share-inner ul {
    padding-left: 22px;
    color: var(--sg-muted);
    line-height: 1.9
}

.prompt-share-inner .btn {
    display: inline-flex;
    margin-top: 8px
}

@media(max-width:760px) {
    .auth-layout {
        grid-template-columns: 1fr;
        margin: 24px auto 40px
    }
    .auth-aside {
        order: -1
    }
    .auth-aside-mark {
        margin-bottom: 12px
    }
    .prompt-info-section,
    .prompt-howto-panel,
    .prompt-share-panel {
        padding: 18px
    }
    .prompt-details-table th,
    .prompt-details-table td {
        padding: 10px;
        font-size: .9rem
    }
    .prompt-details-table th {
        width: 34%
    }
}

/* Search results and creator profile refresh */

.search-results-form {
    width: 100%;
    max-width: none;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(41, 36, 58, .05)
}

.search-results-form input[type=search] {
    border: 0;
    box-shadow: none;
    padding: 13px 15px;
    border-radius: 10px;
    background: transparent
}

.search-results-form .search-submit {
    width: 48px;
    min-width: 48px;
    flex: 0 0 48px;
    border: 0;
    border-radius: 10px;
    background: var(--sg-violet);
    color: #fff;
    display: grid;
    place-items: center
}

.search-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 22px
}

.search-tab {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    background: #fff;
    font-size: .85rem;
    font-weight: 700
}

.search-tab.is-active {
    background: var(--sg-violet);
    color: #fff;
    border-color: var(--sg-violet)
}

.search-sort {
    margin-left: auto
}

.search-sort select {
    padding: 9px 12px;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    background: #fff
}

.search-results-grid {
    row-gap: 22px
}

.creator-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px
}

.creator-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px
}

.creator-card img {
    border-radius: 50%
}

.creator-card span {
    color: var(--sg-muted);
    font-size: .85rem
}

.creator-profile {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sg-shadow)
}

.creator-cover {
    height: 180px;
    background: linear-gradient(120deg, #5f4ba8, #c9a4d7 48%, #f1d5bf);
    background-position: center;
    background-size: cover
}

.creator-profile-main {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 0 26px 22px
}

.creator-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    margin-top: -48px;
    z-index: 1
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover
}

.creator-bio h1 {
    font-size: 1.6rem;
    margin: 0 0 8px
}

.creator-bio p {
    margin: 0 0 9px;
    color: var(--sg-muted)
}

.creator-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--sg-muted)
}

.creator-stats {
    display: flex;
    gap: 24px;
    text-align: center
}

.creator-stats div {
    display: grid;
    gap: 3px
}

.creator-stats strong {
    font-size: 1.25rem
}

.creator-stats span {
    font-size: .8rem;
    color: var(--sg-muted)
}

.creator-tabs {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--sg-border);
    padding: 0 24px
}

.creator-tabs a {
    padding: 14px 4px;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    color: var(--sg-muted)
}

.creator-tabs a.is-active {
    color: var(--sg-violet);
    border-color: var(--sg-violet)
}

.creator-about {
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    padding: 22px
}

.subcat-link {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

@media(max-width:760px) {
    .creator-profile-main {
        grid-template-columns: 78px minmax(0, 1fr);
        padding: 0 16px 18px;
        gap: 12px
    }
    .creator-avatar {
        width: 78px;
        height: 78px;
        margin-top: -30px
    }
    .creator-stats {
        grid-column: 1/-1;
        justify-content: space-around;
        padding-top: 10px
    }
    .creator-cover {
        height: 130px
    }
    .creator-bio h1 {
        font-size: 1.25rem
    }
    .creator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .search-sort {
        margin-left: 0
    }
    .search-tabs {
        align-items: stretch
    }
}

/* Standalone /prompt-category/ directory */

.category-directory-layout {
    margin-top: 20px
}

.category-directory-layout .category-sidebar {
    background: var(--sg-card);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 18px;
    position: sticky;
    top: 100px
}

.category-directory-layout .category-results {
    min-width: 0
}

.category-directory-layout .category-controls {
    justify-content: flex-end
}

.category-directory-layout .subcat-link {
    align-items: center
}

.category-directory-layout .subcat-link span:last-child {
    font-variant-numeric: tabular-nums;
    color: var(--sg-muted)
}

/* v1.3 prompt detail: hero first, editorial information cards below, comments at the bottom */

.prompt-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin: 22px 0 34px;
    align-items: start
}

.prompt-info-grid .prompt-info-section,
.prompt-info-grid .prompt-howto-panel,
.prompt-info-grid .prompt-share-panel {
    margin: 0;
    height: fit-content
}

.prompt-info-grid .prompt-howto-panel {
    grid-column: 1;
    background: #f7f5ff
}

.prompt-info-grid .prompt-share-panel {
    grid-column: 2;
    background: #fff9ef
}

.prompt-info-grid .prompt-extra-content,
.prompt-info-grid>.prompt-meta {
    grid-column: 1/-1
}

.prompt-comments {
    max-width: 1000px;
    margin: 40px auto 56px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 18px;
    box-shadow: var(--sg-shadow)
}

.prompt-comments h2 {
    font-family: Georgia, 'Times New Roman', serif;
    margin: 0 0 20px
}

.prompt-comments .comment-list {
    padding-left: 24px
}

.prompt-comments .comment-body {
    padding: 14px 16px;
    background: #faf8ff;
    border-radius: 12px;
    margin: 10px 0
}

.prompt-comments textarea,
.prompt-comments input[type=text],
.prompt-comments input[type=email],
.prompt-comments input[type=url] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    background: #fff
}

.prompt-comments .comment-form-comment label,
.prompt-comments .comment-form-author label,
.prompt-comments .comment-form-email label,
.prompt-comments .comment-form-url label {
    display: block;
    font-weight: 650;
    margin: 10px 0 6px
}

@media(max-width:760px) {
    .prompt-info-grid {
        grid-template-columns: 1fr
    }
    .prompt-info-grid .prompt-howto-panel,
    .prompt-info-grid .prompt-share-panel,
    .prompt-info-grid .prompt-extra-content,
    .prompt-info-grid>.prompt-meta {
        grid-column: 1
    }
    .prompt-comments {
        padding: 18px;
        margin: 28px 0
    }
}

/* v1.4 creator dashboard inspired by the SGPrompts dashboard reference */

.sgp-dashboard-shell {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 28px;
    max-width: 1320px;
    margin: 28px auto 54px;
    padding: 0 22px;
    align-items: start;
    color: var(--sg-ink, #29243a)
}

.sgp-dashboard-sidebar {
    background: #fff;
    border: 1px solid var(--sg-border, #e8e0d8);
    border-radius: 18px;
    padding: 18px 14px;
    position: sticky;
    top: 94px
}

.sgp-dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 22px;
    border-bottom: 1px solid var(--sg-border, #e8e0d8);
    margin-bottom: 12px
}

.sgp-dashboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover
}

.sgp-dashboard-user div {
    display: grid;
    gap: 4px;
    min-width: 0
}

.sgp-dashboard-user strong {
    font-size: .98rem;
    overflow-wrap: anywhere
}

.sgp-dashboard-user a {
    font-size: .8rem;
    color: var(--sg-violet, #6b55e8)
}

.sgp-dashboard-menu {
    display: grid;
    gap: 5px
}

.sgp-dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--sg-ink, #29243a);
    font-size: .92rem;
    font-weight: 600;
    transition: background .15s, color .15s
}

.sgp-dashboard-menu a:hover,
.sgp-dashboard-menu a.is-active {
    background: #f0edff;
    color: #624de0
}

.sgp-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1.1rem;
    color: #7563cf
}

.sgp-dashboard-main {
    min-width: 0
}

.sgp-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 24px
}

.sgp-dashboard-heading h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 5px
}

.sgp-dashboard-heading p {
    margin: 0;
    color: var(--sg-muted, #817b8b)
}

.sgp-dashboard-eyebrow {
    display: block;
    font-size: .68rem;
    letter-spacing: .12em;
    font-weight: 800;
    color: #7664d7;
    margin-bottom: 7px
}

.sgp-add-prompt {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px
}

.sgp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px
}

.sgp-dash-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--sg-border, #e8e0d8);
    border-radius: 14px;
    padding: 17px 15px;
    box-shadow: 0 5px 18px rgba(40, 30, 20, .025)
}

.sgp-dash-stat-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800
}

.sgp-dash-stat-icon.violet {
    color: #7258e9;
    background: #f0edff
}

.sgp-dash-stat-icon.green {
    color: #159b72;
    background: #e6f8f0
}

.sgp-dash-stat-icon.rose {
    color: #e84d79;
    background: #fff0f4
}

.sgp-dash-stat-icon.blue {
    color: #4777e8;
    background: #edf3ff
}

.sgp-dash-stat div {
    display: grid;
    gap: 3px;
    min-width: 0
}

.sgp-dash-stat strong {
    font-size: 1.45rem;
    line-height: 1.2
}

.sgp-dash-stat div span {
    font-size: .78rem;
    color: var(--sg-muted, #817b8b)
}

.sgp-dashboard-panel,
.sgp-dashboard-quick {
    background: #fff;
    border: 1px solid var(--sg-border, #e8e0d8);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 6px 24px rgba(40, 30, 20, .035)
}

.sgp-dashboard-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px
}

.sgp-dashboard-section-head h2 {
    font-size: 1.35rem;
    margin: 0 0 4px
}

.sgp-dashboard-section-head p {
    font-size: .85rem;
    color: var(--sg-muted, #817b8b);
    margin: 0
}

.sgp-dashboard-section-head>a {
    font-size: .85rem;
    font-weight: 700;
    color: var(--sg-violet, #6b55e8);
    white-space: nowrap
}

.sgp-activity-list {
    display: grid;
    gap: 10px
}

.sgp-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee9e3;
    background: #fffdfa;
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0
}

.sgp-activity-thumb,
.sgp-activity-placeholder {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
    object-fit: cover
}

.sgp-activity-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0edff;
    color: #6b55e8;
    font-size: 1.1rem
}

.sgp-activity-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1
}

.sgp-activity-copy strong {
    font-size: .88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sgp-activity-copy span {
    font-size: .76rem;
    color: var(--sg-muted, #817b8b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sgp-activity-item time {
    font-size: .74rem;
    color: var(--sg-muted, #817b8b);
    white-space: nowrap
}

.sgp-dashboard-empty {
    padding: 24px;
    text-align: center;
    color: var(--sg-muted, #817b8b);
    background: #fcfaf7;
    border-radius: 12px
}

.sgp-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px
}

.sgp-quick-grid a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--sg-border, #e8e0d8);
    border-radius: 12px;
    transition: border-color .15s, transform .15s
}

.sgp-quick-grid a:hover {
    border-color: #b9adff;
    transform: translateY(-2px)
}

.sgp-quick-grid a>span {
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0edff;
    border-radius: 10px;
    color: #6b55e8;
    font-size: 1.1rem
}

.sgp-quick-grid strong {
    font-size: .85rem
}

.sgp-quick-grid small {
    font-size: .75rem;
    color: var(--sg-muted, #817b8b);
    margin-top: 3px
}

@media(max-width:1000px) {
    .sgp-dashboard-shell {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 18px
    }
    .sgp-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .sgp-quick-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:680px) {
    .sgp-dashboard-shell {
        display: flex;
        flex-direction: column;
        padding: 0 14px;
        margin-top: 18px
    }
    .sgp-dashboard-sidebar {
        position: static;
        width: 100%;
        padding: 12px
    }
    .sgp-dashboard-user {
        padding-bottom: 12px;
        margin-bottom: 8px
    }
    .sgp-dashboard-menu {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        padding-bottom: 3px
    }
    .sgp-dashboard-menu a {
        flex: 0 0 auto;
        padding: 9px 10px;
        font-size: .82rem
    }
    .sgp-menu-icon {
        width: 16px
    }
    .sgp-dashboard-main {
        width: 100%
    }
    .sgp-dashboard-heading {
        align-items: flex-start;
        flex-direction: column
    }
    .sgp-dashboard-stats {
        gap: 10px
    }
    .sgp-dash-stat {
        padding: 13px 11px;
        gap: 9px
    }
    .sgp-dash-stat-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px
    }
    .sgp-dash-stat strong {
        font-size: 1.2rem
    }
    .sgp-dash-stat div span {
        font-size: .72rem
    }
    .sgp-dashboard-panel,
    .sgp-dashboard-quick {
        padding: 16px
    }
    .sgp-dashboard-section-head h2 {
        font-size: 1.2rem
    }
    .sgp-activity-item {
        gap: 8px;
        padding: 9px
    }
    .sgp-activity-item time {
        font-size: .68rem
    }
    .sgp-activity-thumb,
    .sgp-activity-placeholder {
        width: 32px;
        height: 32px;
        flex-basis: 32px
    }
}

/* v1.4.1 shared creator workspace pages */

.sgp-account-shell {
    margin-top: 28px
}

.sgp-account-shell .sgp-dashboard-main {
    min-width: 0
}

.sgp-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 4px 0 22px
}

.sgp-page-heading h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin: 0 0 5px
}

.sgp-page-heading p {
    margin: 0;
    color: var(--sg-muted, #817b8b)
}

.sgp-prompt-tabs {
    display: flex;
    gap: 22px;
    align-items: center;
    border-bottom: 1px solid var(--sg-border);
    margin: 0 0 20px;
    overflow: auto
}

.sgp-prompt-tabs a {
    padding: 12px 3px;
    color: var(--sg-muted);
    white-space: nowrap;
    font-size: .88rem
}

.sgp-prompt-tabs a.is-active {
    color: var(--sg-violet);
    border-bottom: 2px solid var(--sg-violet);
    font-weight: 700
}

.sgp-account-prompt-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px
}

.sgp-account-pagination {
    margin: 24px 0
}

.sgp-account-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0
}

.sgp-account-pagination a,
.sgp-account-pagination span {
    display: block;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 9px
}

.sgp-account-pagination .current {
    background: #6b55e8;
    color: #fff
}

.sgp-people-list,
.sgp-log-list,
.sgp-submission-list {
    display: grid;
    gap: 10px
}

.sgp-people-list article,
.sgp-log-list article,
.sgp-submission-list article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 13px;
    min-width: 0
}

.sgp-people-list img {
    border-radius: 50%;
    width: 46px;
    height: 46px
}

.sgp-people-list article>div,
.sgp-log-list article>div,
.sgp-submission-list article>div {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1
}

.sgp-people-list small,
.sgp-log-list small,
.sgp-submission-list small {
    color: var(--sg-muted);
    font-size: .8rem
}

.sgp-people-list .btn {
    margin-left: auto
}

.sgp-log-list article {
    background: #fffdfa
}

.sgp-log-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: #f0edff;
    color: #6b55e8;
    border-radius: 10px
}

.sgp-log-list time {
    font-size: .76rem;
    color: var(--sg-muted);
    white-space: nowrap
}

.sgp-submission-list article>img {
    width: 64px;
    height: 58px;
    object-fit: cover;
    border-radius: 9px
}

.sgp-submission-list .status-pill {
    background: #f0edff;
    color: #6b55e8;
    border-radius: 99px;
    padding: 5px 9px;
    font-size: .75rem
}

.sgp-rejection-note {
    margin: 4px 0;
    color: #b45309;
    font-size: .8rem
}

.sgp-collection-note {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 15px;
    color: var(--sg-muted)
}

.sgp-logout-card {
    max-width: 560px;
    margin: 25px auto;
    padding: 42px 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 20px;
    box-shadow: var(--sg-shadow)
}

.sgp-logout-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f0edff;
    color: #6b55e8;
    font-size: 2rem
}

.sgp-logout-card h1 {
    font-size: 1.8rem
}

.sgp-logout-card p {
    color: var(--sg-muted)
}

.sgp-logout-card .btn {
    display: inline-flex;
    justify-content: center;
    min-width: 220px;
    margin: 10px auto
}

@media(max-width:900px) {
    .sgp-account-prompt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:680px) {
    .sgp-page-heading {
        align-items: flex-start;
        flex-direction: column
    }
    .sgp-account-prompt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .sgp-people-list article,
    .sgp-log-list article,
    .sgp-submission-list article {
        gap: 9px;
        padding: 10px
    }
    .sgp-log-list time {
        font-size: .68rem
    }
    .sgp-submission-list article>img {
        width: 48px;
        height: 48px
    }
    .sgp-people-list .btn {
        padding: 7px 9px;
        font-size: .78rem
    }
}

/* SGPrompts engagement controls */

.sgp-engagement-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 2px
}

.sgp-engagement-button {
    appearance: none;
    border: 1px solid #e7e0f8;
    background: #fff;
    color: #443b61;
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: 13px;
    line-height: 1.25;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease
}

.sgp-engagement-button:hover,
.sgp-engagement-button.is-active {
    background: #f0edff;
    border-color: #7864eb;
    color: #604be0
}

.sgp-engagement-button:disabled {
    opacity: .6;
    cursor: wait
}

.sgp-engagement-count {
    font-size: 12px;
    color: #777087
}

.sgp-engagement-compact {
    margin-top: 9px;
    gap: 6px
}

.sgp-engagement-compact .sgp-engagement-button {
    padding: 5px 9px;
    font-size: 12px
}

.creator-follow-button {
    display: inline-flex;
    margin: 4px 0 8px;
    border: 1px solid var(--sg-violet, #6d5ce8);
    background: var(--sg-violet, #6d5ce8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none
}

.creator-follow-button.is-active {
    background: #f0edff;
    color: #604be0
}

.creator-bio .creator-follow-button {
    margin-left: 12px;
    vertical-align: middle
}

@media(max-width:640px) {
    .sgp-engagement-actions {
        gap: 5px
    }
    .sgp-engagement-button {
        padding: 6px 9px
    }
}

/* Saved and liked prompts: compact, responsive table layout. */

.sgp-engagement-table-wrap {
    margin-top: 8px
}

.sgp-engagement-table {
    min-width: 760px
}

.sgp-engagement-table th {
    white-space: nowrap
}

.sgp-engagement-table td {
    vertical-align: middle
}

.sgp-table-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px
}

.sgp-table-prompt a {
    color: var(--sg-ink);
    text-decoration: none
}

.sgp-table-prompt a:hover {
    color: var(--sg-violet)
}

.sgp-engagement-thumb {
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: cover;
    border-radius: 9px;
    background: #f0edff
}

.sgp-engagement-no-thumb {
    display: grid;
    place-items: center;
    color: var(--sg-violet);
    font-size: 22px
}

.sgp-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.sgp-table-view {
    font-size: .88rem;
    color: var(--sg-violet);
    white-space: nowrap
}

.sgp-table-actions .sgp-engagement-button {
    white-space: nowrap
}

.sgp-engagement-table tr:last-child td {
    border-bottom: 0
}

@media(max-width:680px) {
    .sgp-engagement-table {
        min-width: 720px
    }
    .sgp-engagement-thumb {
        width: 46px;
        height: 46px;
        flex-basis: 46px
    }
    .sgp-table-prompt {
        gap: 8px;
        min-width: 190px
    }
    .sgp-table-actions {
        gap: 5px
    }
}

/* SGPrompts editorial blog detail redesign */

.sgp-blog-article {
    max-width: 100%;
    margin: 0 auto 42px;
    min-width: 0
}

.sgp-blog-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 18px 28px;
    text-align: center
}

.sgp-blog-breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 0 25px;
    color: var(--sg-muted);
    font-size: .82rem
}

.sgp-blog-breadcrumbs a {
    color: var(--sg-muted)
}

.sgp-blog-breadcrumbs a:hover {
    color: var(--sg-violet)
}

.sgp-blog-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0 0 15px;
    border: 1px solid #ddd5ff;
    border-radius: 999px;
    background: #f1edff;
    color: var(--sg-violet);
    font-size: .78rem;
    font-weight: 750
}

.sgp-blog-hero h1 {
    max-width: 850px;
    margin: 0 auto 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 4.5vw, 3.65rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.04em
}

.sgp-blog-deck {
    max-width: 740px;
    margin: 0 auto 23px;
    color: var(--sg-muted);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.75
}

.sgp-blog-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--sg-ink);
    font-size: .82rem
}

.sgp-blog-author-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover
}

.sgp-blog-author,
.sgp-blog-date {
    display: grid;
    gap: 2px;
    text-align: left
}

.sgp-blog-author strong,
.sgp-blog-date strong {
    font-size: .82rem
}

.sgp-blog-author small,
.sgp-blog-date small {
    font-size: .72rem;
    color: var(--sg-muted)
}

.sgp-blog-byline-divider {
    height: 30px;
    width: 1px;
    background: var(--sg-border)
}

.sgp-blog-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--sg-border);
    color: var(--sg-muted)
}

.sgp-blog-featured-image {
    max-width: 1000px;
    margin: 0 auto 36px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sg-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--sg-shadow)
}

.sgp-blog-featured-image img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover
}

.sgp-blog-featured-image figcaption {
    padding: 10px 16px;
    color: var(--sg-muted);
    font-size: .8rem;
    text-align: center
}

.sgp-blog-content-layout {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: start
}

.sgp-blog-main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0
}

.sgp-blog-main-content .entry-content.sgp-blog-content {
    width: 100%;
    max-width: 850px;
    margin: 0
}

.sgp-blog-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
    position: sticky;
    top: 100px
}

.sgp-blog-sidebar .widget {
    padding: 20px;
    background: var(--sg-card);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
    overflow-wrap: anywhere
}

.sgp-blog-sidebar .widget-title,
.sgp-blog-sidebar h2 {
    font-size: 1.08rem;
    margin: 0 0 13px;
    font-family: Georgia, "Times New Roman", serif
}

.sgp-blog-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.sgp-blog-sidebar li {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--sg-border);
    font-size: .9rem;
    line-height: 1.5
}

.sgp-blog-sidebar li:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.sgp-blog-sidebar a {
    color: var(--sg-ink)
}

.sgp-blog-sidebar a:hover {
    color: var(--sg-violet)
}

.sgp-blog-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    gap: 7px
}

.sgp-blog-sidebar .wp-block-search__input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--sg-border);
    border-radius: 9px;
    padding: 10px
}

.sgp-blog-sidebar .wp-block-search__button {
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--sg-violet);
    color: #fff;
    border: 0
}

.sgp-blog-sidebar .wp-block-group {
    margin: 0 0 18px
}

.sgp-blog-sidebar .wp-block-group:last-child {
    margin-bottom: 0
}

.sgp-blog-sidebar .wp-block-latest-posts__post-title {
    font-weight: 650
}

.sgp-blog-sidebar .wp-block-latest-comments {
    padding: 0
}

.entry-content.sgp-blog-content {
    width: 100%;
    max-width: 850px;
    margin: 0;
    color: var(--sg-ink);
    font-size: 1.04rem;
    line-height: 1.85;
    overflow-wrap: anywhere
}

.entry-content.sgp-blog-content>* {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0
}

.entry-content.sgp-blog-content>p {
    margin: 0 0 1.35em
}

.entry-content.sgp-blog-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.22;
    margin: 2.15em 0 .75em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sg-border);
    letter-spacing: -.025em
}

.entry-content.sgp-blog-content h3 {
    font-size: 1.3rem;
    margin: 1.7em 0 .65em
}

.entry-content.sgp-blog-content h4 {
    font-size: 1.08rem;
    margin: 1.4em 0 .55em
}

.entry-content.sgp-blog-content ul,
.entry-content.sgp-blog-content ol {
    padding-left: 1.5em;
    margin: 0 0 1.5em
}

.entry-content.sgp-blog-content li {
    padding-left: .25em;
    margin: .45em 0
}

.entry-content.sgp-blog-content blockquote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-left: 4px solid var(--sg-violet);
    background: #f3efff;
    border-radius: 0 13px 13px 0;
    color: #4d4568
}

.entry-content.sgp-blog-content img {
    height: auto;
    max-width: 100%;
    border-radius: 16px
}

.entry-content.sgp-blog-content figure {
    margin: 1.8em 0
}

.entry-content.sgp-blog-content figcaption {
    font-size: .82rem;
    color: var(--sg-muted);
    text-align: center;
    margin-top: 8px
}

.entry-content.sgp-blog-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5em 0;
    border: 1px solid var(--sg-border);
    border-radius: 13px;
    overflow: hidden;
    font-size: .92rem
}

.entry-content.sgp-blog-content th,
.entry-content.sgp-blog-content td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--sg-border)
}

.entry-content.sgp-blog-content th {
    background: #f4f0ff;
    color: #4e3cb3;
    font-weight: 750
}

.entry-content.sgp-blog-content tr:last-child td {
    border-bottom: 0
}

.entry-content.sgp-blog-content pre,
.entry-content.sgp-blog-content .wp-block-code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
    padding: 20px;
    background: #6b55e8;
    color: #fff;
    border-radius: 13px;
    font-size: .88rem;
    line-height: 1.7;
    overflow: auto
}

.entry-content.sgp-blog-content code {
    overflow-wrap: anywhere
}

.entry-content.sgp-blog-content .wp-block-buttons {
    margin: 1.5em 0
}

.entry-content.sgp-blog-content .wp-block-image img {
    margin-inline: auto
}

.sgp-blog-post-footer {
    margin-top: 42px
}

.sgp-blog-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-top: 1px solid var(--sg-border);
    border-bottom: 1px solid var(--sg-border)
}

.sgp-blog-tags>span {
    font-size: .82rem;
    color: var(--sg-muted);
    margin-right: 4px
}

.sgp-blog-tags a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0edff;
    color: var(--sg-violet);
    font-size: .78rem;
    font-weight: 650
}

.sgp-blog-author-card {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 24px 0;
    padding: 22px;
    border: 1px solid var(--sg-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--sg-shadow)
}

.sgp-blog-author-card-avatar img {
    width: 58px;
    height: 58px;
    border-radius: 50%
}

.sgp-blog-author-card-label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sg-violet);
    font-weight: 800
}

.sgp-blog-author-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    margin: 3px 0 5px
}

.sgp-blog-author-card p {
    font-size: .88rem;
    color: var(--sg-muted);
    margin: 0
}

.sgp-blog-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0
}

.sgp-blog-post-navigation>div {
    min-width: 0
}

.sgp-blog-post-navigation a {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 17px 18px;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    background: #fff;
    color: var(--sg-ink);
    transition: border-color .2s, transform .2s
}

.sgp-blog-post-navigation a:hover {
    border-color: #c7bcff;
    transform: translateY(-2px)
}

.sgp-blog-post-navigation span {
    font-size: .76rem;
    color: var(--sg-violet);
    font-weight: 750
}

.sgp-blog-post-navigation strong {
    font-size: .9rem;
    line-height: 1.45
}

.sgp-blog-comments {
    margin-top: 36px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 18px
}

.sgp-blog-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0
}

.sgp-blog-pages a,
.sgp-blog-pages span {
    padding: 7px 11px;
    border: 1px solid var(--sg-border);
    border-radius: 8px
}

@media(max-width:980px) {
    .sgp-blog-content-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 22px
    }
}

@media(max-width:760px) {
    .sgp-blog-content-layout {
        grid-template-columns: 1fr;
        gap: 28px
    }
    .sgp-blog-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .sgp-blog-sidebar>.widget:first-child {
        grid-column: 1/-1
    }
    .sgp-blog-hero {
        padding: 14px 0 24px
    }
    .sgp-blog-breadcrumbs {
        margin-bottom: 18px;
        font-size: .76rem
    }
    .sgp-blog-hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem)
    }
    .sgp-blog-deck {
        font-size: 1rem
    }
    .sgp-blog-featured-image {
        border-radius: 15px;
        margin-bottom: 25px
    }
    .sgp-blog-featured-image img {
        max-height: 430px
    }
    .entry-content.sgp-blog-content {
        font-size: 1rem;
        line-height: 1.8
    }
    .entry-content.sgp-blog-content h2 {
        margin-top: 1.8em
    }
    .sgp-blog-author-card {
        align-items: flex-start;
        padding: 16px
    }
    .sgp-blog-post-navigation {
        grid-template-columns: 1fr
    }
    .sgp-blog-comments {
        padding: 16px
    }
}

@media(max-width:520px) {
    .sgp-blog-sidebar {
        grid-template-columns: 1fr
    }
    .sgp-blog-sidebar>.widget:first-child {
        grid-column: auto
    }
}

.sgp-social-promo-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 24px
}

.sgp-social-promo-grid .sgp-social-promo {
    grid-column: auto;
    min-width: 0
}

.sgp-social-promo-grid .sgp-social-promo>p {
    font-size: .96rem
}

@media(max-width:760px) {
    .sgp-social-promo-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }
}

.sgp-social-promo {
    grid-column: 1/-1;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 18px;
    padding: 30px clamp(18px, 4vw, 42px);
    color: #fff;
    margin: 0;
    isolation: isolate
}

.sgp-social-promo h2 {
    font-family: inherit;
    color: #fff;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    margin: 0 0 12px
}

.sgp-social-promo>p {
    max-width: 760px;
    margin: 0 auto 22px;
    color: #fff;
    line-height: 1.7
}

.sgp-social-promo:before,
.sgp-social-promo:after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    z-index: -1
}

.sgp-social-promo:before {
    top: -130px;
    right: -20px
}

.sgp-social-promo:after {
    bottom: -160px;
    left: -35px
}

.sgp-instagram-promo {
    background: linear-gradient(120deg, #8b39b4 0%, #dc2773 55%, #ff9b36 100%)
}

.sgp-facebook-promo {
    background: linear-gradient(120deg, #1877f2 0%, #4267b2 55%, #29487d 100%)
}

.sgp-social-inner {
    max-width: 850px;
    margin: 0 auto 22px;
    padding: 18px 22px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .23);
    text-align: left
}

.sgp-social-inner h3 {
    text-align: center;
    color: #fff;
    margin: 0 0 14px;
    font-size: 1.05rem
}

.sgp-social-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px
}

.sgp-social-inner li {
    color: #fff;
    line-height: 1.55
}

.sgp-social-inner li:before {
    content: "✦";
    display: inline-block;
    margin-right: 10px;
    font-weight: 800
}

.sgp-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 11px;
    background: #fff;
    color: #cf2879;
    text-decoration: none;
    font-weight: 750;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
    transition: transform .15s ease
}

.sgp-facebook-promo .sgp-social-button {
    color: #2455a6
}

.sgp-social-button:hover {
    transform: translateY(-2px);
    color: #20263a
}

@media(max-width:760px) {
    .sgp-social-promo {
        padding: 24px 16px
    }
    .sgp-social-inner {
        padding: 16px
    }
    .compatible-generators .generator-list {
        padding: 14px 16px
    }
}

.post-card > .prompt-card-image {
	aspect-ratio: 16 / 10 !important;
}

.sgp-blog-content{
	background: #fff;
	padding:20px;
}
.sgp-blog-byline{
	margin-bottom: 20px;
}