/* AIPromptFor. Clean white with one royal blue accent. */
:root {
    --paper: #ffffff; --surface: #ffffff; --sunk: #f4f6fb; --ink: #0f172a; --soft: #5b6579;
    --line: #e4e8f0; --accent: #2453ff; --accent-ink: #1c44d6; --on-accent: #fff; --gold: #f5b301; --tint: #eef2ff;
    --tone-0: #eef2ff; --tone-1: #eaf1fe; --tone-2: #f1f4fb; --tone-3: #e8efff; --tone-4: #f0f3ff;
    --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.07);
    --shadow-up: 0 2px 4px rgba(15,23,42,.06), 0 14px 32px rgba(36,83,255,.13);
    --display: 'Manrope', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
}
[data-theme="dark"] {
    --paper: #0b1120; --surface: #131b2e; --sunk: #0f1728; --ink: #eef2fb; --soft: #9aa6bd;
    --line: #25304a; --accent: #4f75ff; --accent-ink: #8ba5ff; --on-accent: #fff; --gold: #f5b301; --tint: #1a2543;
    --tone-0: #18223c; --tone-1: #16233f; --tone-2: #1b2438; --tone-3: #172241; --tone-4: #1a2340;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 20px rgba(0,0,0,.3);
    --shadow-up: 0 2px 4px rgba(0,0,0,.4), 0 14px 32px rgba(0,0,0,.45);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 28px; padding-right: 28px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--soft); }
.page-pad { padding-top: 28px; padding-bottom: 56px; }
.page-pad-b { padding-bottom: 56px; }
.section { padding-top: 40px; padding-bottom: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; font-size: .95rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .75em; }
.lead { font-size: 1.1rem; color: var(--soft); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 600 .95rem var(--body); padding: 10px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; transition: transform .12s, background .12s, border-color .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(36,83,255,.25); }
.btn-ghost:hover { box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.btn-big { padding: 13px 24px; font-size: 1.03rem; }
.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); border-radius: 8px; cursor: pointer; }
.icon-btn:hover { background: var(--sunk); }
.link-danger { background: none; border: 0; color: var(--accent-ink); text-decoration: underline; cursor: pointer; font: inherit; margin-top: 28px; padding: 0; }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; gap: 12px; min-height: 62px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.22rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.logo b { font-weight: 800; color: var(--accent); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.main-nav { display: none; }
.main-nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 2px; }
.main-nav a:hover { color: var(--accent-ink); }
.main-nav a[aria-current] { color: var(--accent-ink); font-weight: 600; }
.main-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: var(--shadow); }
.menu-btn { order: 3; }
.head-search { position: relative; flex: 1; min-width: 0; display: none; }
.head-search input { width: 100%; max-width: 280px; display: block; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); color: var(--ink); font: inherit; font-size: .92rem; }
.head-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.account { position: relative; }
.account summary { list-style: none; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.account summary img, .account summary span { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.account-menu p { margin: 4px 8px 8px; font-weight: 600; font-size: .9rem; }
.account-menu a, .account-menu button { display: block; width: 100%; text-align: left; padding: 7px 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; font-size: .92rem; border-radius: 6px; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: var(--sunk); }
.lang-menu { position: relative; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 16px; font-size: .92rem; }
.foot-langs a[aria-current] { font-weight: 700; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 8px; font-weight: 600; font-size: .84rem; color: var(--ink); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--sunk); }
.account-menu a[aria-current] { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 420px) { .signin { display: none; } }
@media (min-width: 960px) and (max-width: 1120px) { .main-nav.main-nav { gap: 13px; margin-left: 12px; } }
@media (min-width: 960px) {
    .menu-btn { display: none; }
    .main-nav, .main-nav.is-open { display: flex; flex-direction: row; position: static; gap: 20px; background: none; border: 0; padding: 0; box-shadow: none; margin-left: 20px; }
    .head-search { display: block; }
    .head-actions { margin-left: 0; }
}

/* Search suggestions */
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 60; overflow: hidden; text-align: left; }
.head-search .suggest { left: auto; width: 340px; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.3; }
.suggest a:hover, .suggest a.is-active { background: var(--sunk); }
.suggest img, .suggest i { width: 36px; height: 44px; object-fit: cover; border-radius: 4px; background: var(--tone-0); flex: none; }
.suggest small { display: block; color: var(--soft); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); }
.hero-inner { text-align: center; padding-top: 56px; padding-bottom: 44px; }
.hero h1 { max-width: 19ch; margin-left: auto; margin-right: auto; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-left: auto; margin-right: auto; }
.big-search { position: relative; display: flex; gap: 8px; max-width: 640px; margin: 22px auto 0; background: var(--surface); padding: 7px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.big-search:focus-within { border-color: var(--accent); }
.big-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 0; background: none; color: var(--ink); font: inherit; outline: none; }
.quick { margin: 16px 0 0; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--soft); }
.quick a { color: var(--ink); font-weight: 500; text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: 3px 11px; border-radius: 999px; }
.quick a:hover { border-color: var(--accent); color: var(--accent-ink); }
.perks { list-style: none; padding: 0; margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: .92rem; font-weight: 500; color: var(--soft); }
.perks li { display: flex; align-items: center; gap: 7px; }
.perks svg { color: var(--accent); flex: none; }

/* Category chips */
.cat-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.wrap-rail { flex-wrap: wrap; overflow: visible; }
.cat-chip { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; background: var(--surface); }
.cat-chip span { color: var(--soft); font-size: .82rem; margin-left: 2px; }
.cat-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.cat-chip.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cat-chip.is-on span { color: inherit; opacity: .75; }

/* Prompt grid and cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-up); transform: translateY(-3px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--ink); text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.tone-0 { background: var(--tone-0); } .tone-1 { background: var(--tone-1); } .tone-2 { background: var(--tone-2); } .tone-3 { background: var(--tone-3); } .tone-4 { background: var(--tone-4); }
.card-quote { display: block; padding: 18px 16px; font-size: clamp(.86rem, 1.15vw, .97rem); line-height: 1.55; color: var(--soft); }
.card-badges { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.badge-premium { background: var(--gold); color: #1b1408; }
.card-body { padding: 10px 12px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; flex: 1; }
.card-body h3 { grid-column: 1 / -1; font: 600 .96rem/1.3 var(--body); margin: 0; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-meta { margin: 0; font-size: .8rem; color: var(--soft); min-width: 0; }
.card-copy { border: 0; background: var(--tint); color: var(--accent-ink); font: 600 .8rem var(--body); padding: 5px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.card-copy:hover { background: var(--accent); color: #fff; }
.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--line); border-radius: 12px; }

/* Listing */
.crumbs { font-size: .86rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.crumbs a { color: var(--soft); }
.list-head { margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; padding: 14px 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunk); }
.seg a, .seg button { padding: 6px 14px; font: 500 .9rem var(--body); text-decoration: none; color: var(--soft); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.seg a[aria-current], .seg button[aria-current] { background: var(--surface); color: var(--accent-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(15,23,42,.14); }
.filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.filter-form label { display: grid; gap: 2px; font-size: .76rem; font-weight: 600; color: var(--soft); }
.filter-form select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: 500 .9rem var(--body); }
label.check { display: flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--ink); padding-bottom: 6px; }
.clear { font-size: .88rem; padding-bottom: 7px; }
.has-js .nojs { display: none; }
.load-more { margin-top: 28px; }
.also { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: .95rem; }

/* Prompt detail */
.detail { display: grid; gap: 28px; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; } .detail-media { position: sticky; top: 82px; } }
.zoom { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.zoom img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.media-empty { border-radius: 14px; aspect-ratio: 4 / 5; overflow: hidden; }
.media-empty .card-quote { font-size: clamp(1.15rem, 2vw, 1.5rem); padding: 26px; }
@media (max-width: 899px) { .media-empty { display: none; } }
.lightbox { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(10,8,5,.86); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox form { text-align: right; margin-bottom: 8px; }
.slider { position: relative; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; background: var(--sunk); box-shadow: var(--shadow); scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slide img { height: 100%; object-fit: contain; border-radius: 0; box-shadow: none; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; padding: 0 0 4px; }
.slider-arrow:hover { color: var(--accent-ink); border-color: var(--accent); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-count { position: absolute; top: 10px; right: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; font-size: .8rem; font-weight: 600; pointer-events: none; }
.slider-dots { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.slider-dots button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider-dots button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .15s; }
.slider-dots button.is-on::before { background: var(--accent); }
.lightbox .slider-arrow { position: fixed; }
.detail-main h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.byline { color: var(--soft); font-size: .9rem; }
.prompt-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; margin: 18px 0; }
.prompt-box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.prompt-box-head h2 { margin: 0; font-size: 1.15rem; }
.prompt-text { font: 400 .96rem/1.65 var(--body); white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto; background: var(--sunk); padding: 14px; border-radius: 8px; margin: 0 0 14px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row .btn-big { flex: 1 1 100%; }
@media (min-width: 560px) { .copy-row .btn-big { flex: 1 1 auto; } }
.studio { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; background: var(--surface); margin-bottom: 18px; }
.studio summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.studio summary span { font-weight: 400; color: var(--soft); font-size: .86rem; margin-left: 6px; }
.studio-grid { display: grid; gap: 12px; padding: 4px 0 14px; }
@media (min-width: 620px) { .studio-grid { grid-template-columns: 1fr 1fr; } .studio-wide { grid-column: 1 / -1; } }
.studio-grid label, .form label, .builder-options label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.studio-grid label.check { display: flex; font-weight: 500; align-self: end; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea { font: inherit; color: var(--ink); }
.studio-grid select, .studio-grid input[type=text], .form input, .form select, .form textarea, .builder-options input, .builder-options select, .inline-form input, .collect-menu input[type=text], .cat-filter input, .comment-form textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-weight: 400; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.collect { position: relative; }
.collect summary { list-style: none; }
.collect summary::-webkit-details-marker { display: none; }
.collect-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; box-shadow: var(--shadow); display: grid; gap: 8px; font-size: .92rem; }
.collect-menu label { display: flex; gap: 8px; align-items: center; }
.collect-menu form { display: flex; gap: 6px; }
.rating { margin: 20px 0; }
.rating h2, .share h2 { font: 700 .92rem var(--body); margin: 0 0 4px; letter-spacing: 0; }
.stars { display: flex; }
.stars button { background: none; border: 0; font-size: 1.7rem; line-height: 1; padding: 2px 3px; color: var(--line); cursor: pointer; }
.stars button.is-on, .stars button.is-hover { color: var(--gold); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .76rem; color: var(--soft); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .9rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .92rem; }
.share h2 { flex-basis: 100%; }
.share button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
.detail-lower { display: grid; gap: 32px; margin-top: 44px; }
@media (min-width: 900px) { .detail-lower { grid-template-columns: 1fr 1fr; gap: 56px; } }
.steps { padding-left: 1.25em; margin: 0 0 1.25em; }
.steps li { margin-bottom: .55em; }
.locked { background: var(--surface); border: 1.5px solid var(--gold); border-radius: 12px; padding: 22px; margin: 18px 0; }

/* Comments */

/* Home extras */
.band { background: var(--tint); margin-top: 44px; padding-bottom: 40px; }
.model-row { display: grid; gap: 14px; }
@media (min-width: 760px) { .model-row { grid-template-columns: repeat(3, 1fr); } }
.model-tile { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; color: var(--ink); text-decoration: none; }
.model-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-up); }
.model-tile strong { font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.model-tile span { color: var(--soft); font-size: .94rem; }
.model-tile em { font-style: normal; font-weight: 600; font-size: .86rem; color: var(--accent-ink); }
.two-col { display: grid; gap: 32px; padding-bottom: 56px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.builder-teaser { background: var(--accent); color: #fff; border-radius: 16px; padding: 28px; }
.builder-teaser p { opacity: .92; }
.builder-teaser .btn { background: #fff; color: #1c44d6; border-color: #fff; }

/* Category and other tiles */
.cat-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cat-tools input { flex: 1 1 240px; max-width: 360px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cat-grid { display: grid; gap: 12px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 860px) { .cat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.cat-tile { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--ink); text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.cat-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-up); }
.cat-tile img, .cat-initial { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.cat-initial { background: var(--tint); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font: 800 1.05rem var(--display); }
.cat-text { min-width: 0; display: grid; }
.cat-text strong { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.cat-text small { color: var(--soft); font-size: .8rem; }
.fact-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.post-grid, .tool-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .post-grid, .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card, .tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.post-card img { border-radius: 6px; margin-bottom: 12px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card h2, .tool-card h2 { font-size: 1.2rem; }
.post-card h2 a, .tool-card h2 a { color: var(--ink); text-decoration: none; }
.post-hero { border-radius: 10px; margin-bottom: 20px; }
.plain-list { padding-left: 1.2em; }

/* Forms and alerts */
.auth { max-width: 460px; }
.form { display: grid; gap: 14px; margin: 16px 0; }
.form .btn { justify-self: start; }
.auth-links { font-size: .92rem; color: var(--soft); }
.alert { padding: 11px 14px; border-radius: 8px; font-size: .95rem; text-align: left; }
.alert-error { background: #fdeaea; color: #8f1d1d; }
.alert-ok { background: #e4f6ea; color: #14532d; }
.inline-form { display: flex; gap: 8px; margin: 12px 0 24px; max-width: 420px; }
.toast[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: .94rem; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

.captcha { display: grid; gap: 8px; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.captcha img { border-radius: 8px; border: 1px solid var(--line); }

/* Long reads */
.prose, .prose-page { line-height: 1.72; }
.prose-page h2, .prose h2 { margin-top: 1.6em; }
.prose img { border-radius: 8px; }
.narrow-left { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 4px; color: var(--soft); }

/* Premium */
.plans { display: grid; gap: 18px; max-width: 800px; padding-bottom: 28px; }
@media (min-width: 680px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.plan-main { border: 2px solid var(--accent); box-shadow: var(--shadow-up); }
.plan ul { padding-left: 1.15em; margin: 0 0 18px; }
.price { font-family: var(--display); font-size: 2.3rem; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.price small { font: 500 .95rem var(--body); color: var(--soft); }

/* Builder */
.builder { display: grid; gap: 24px; }
@media (min-width: 860px) { .builder { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; } .builder-result { position: sticky; top: 84px; } }
.builder-options { display: grid; gap: 14px; }
.builder-result { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.builder-result .btn { width: 100%; margin-bottom: 10px; }

/* WhatsApp channel */
.wa-bar { display: flex; align-items: center; justify-content: center; position: relative; background: #075e54; color: #fff; font-size: .9rem; }
[data-wa-hidden] .wa-bar { display: none; }
.wa-bar a { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; padding: 7px 40px; color: #fff; text-decoration: none; text-align: center; }
.wa-bar svg { flex: none; }
.wa-bar strong { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.wa-bar button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; border-radius: 6px; }
.wa-bar button:hover { background: rgba(255,255,255,.15); }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: #075e54; color: #fff; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; box-shadow: 0 6px 20px rgba(7,94,84,.4); transition: transform .12s; }
.wa-float:hover { transform: translateY(-2px); background: #054d44; }
@media (max-width: 560px) { .wa-float { padding: 12px; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.wa-foot { display: inline-flex; align-items: center; gap: 7px; color: #075e54; font-weight: 600; text-decoration: none; margin-bottom: 8px; }
[data-theme="dark"] .wa-foot { color: #4fd1a5; }
.wa-foot:hover { text-decoration: underline; }
.wa-card { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 12px 14px; border: 1px solid #b7dfd3; background: #edf8f4; border-radius: 12px; color: #0f3b33; text-decoration: none; font-size: .92rem; }
[data-theme="dark"] .wa-card { background: #10302a; border-color: #1d5247; color: #d9f3ea; }
.wa-card svg { flex: none; color: #128c7e; }
[data-theme="dark"] .wa-card svg { color: #4fd1a5; }
.wa-card span { flex: 1; min-width: 0; }
.wa-card strong { display: block; }
.wa-card em { font-style: normal; font-weight: 600; padding: 5px 14px; background: #075e54; color: #fff; border-radius: 8px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 28px; padding: 40px 0 22px; background: var(--sunk); font-size: .93rem; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-grid h2 { font: 700 .82rem var(--body); margin-bottom: 8px; letter-spacing: 0; }
.foot-grid > div > a:not(.logo) { display: block; color: var(--soft); text-decoration: none; padding: 2px 0; }
.foot-grid > div > a:hover { color: var(--ink); }
.foot-brand p { color: var(--soft); max-width: 34ch; margin-top: 8px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.copyright { color: var(--soft); font-size: .8rem; margin: 22px auto 0; }

/* Prompt page */
.prompt-page .detail-main h1 { margin: 10px 0 8px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: .8rem; font-weight: 600; text-decoration: none; }
a.chip:hover { background: var(--accent); color: var(--on-accent); }
.chip-premium { background: var(--gold); color: #1b1408; }
.prompt-page .byline { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 18px; }
.prompt-page .byline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.byline-stars { color: #a87900; font-weight: 600; }
[data-theme="dark"] .byline-stars { color: var(--gold); }
.prompt-page .detail-media .zoom img { max-height: calc(100vh - 180px); min-height: 320px; object-fit: contain; background: var(--sunk); }
.prompt-page .detail-media .slide img { min-height: 0; }
@media (max-width: 899px) { .prompt-page .detail-media .zoom img { max-height: none; min-height: 0; } }
@media (min-width: 900px) { .prompt-page .slider-track { max-height: calc(100vh - 200px); width: 100%; } }
.btn-download { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 12px; padding: 14px 20px; border-radius: 12px; background: var(--ink); color: var(--paper); font: 700 1.02rem var(--display); text-decoration: none; box-shadow: 0 10px 22px rgba(15,23,42,.24); transition: transform .15s, box-shadow .15s, background .15s; }
.btn-download:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 28px rgba(36,83,255,.32); }
.btn-download svg { flex: none; }
[data-theme="dark"] .btn-download { box-shadow: 0 10px 22px rgba(0,0,0,.45); }
.prompt-page .prompt-box { margin: 0 0 14px; padding: 18px; border-radius: 16px; }
.prompt-clip { position: relative; border-radius: 10px; }
.has-js .prompt-clip:not(.is-open) { max-height: 210px; overflow: hidden; }
.prompt-clip .prompt-text { max-height: none; overflow: visible; margin: 0; }
.prompt-clip.is-clipped::after { content: ''; position: absolute; inset: auto 0 0; height: 70px; border-radius: 0 0 10px 10px; background: linear-gradient(to bottom, transparent, var(--sunk)); pointer-events: none; }
.prompt-more { display: block; margin: 8px auto 0; padding: 4px 12px; border: 0; background: none; color: var(--accent-ink); font: 600 .9rem var(--body); cursor: pointer; }
.prompt-more:hover { text-decoration: underline; }
.btn-copy { width: 100%; margin-top: 14px; padding: 15px 24px; font: 700 1.08rem var(--display); border-radius: 12px; }
.prompt-page .copy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.prompt-page .copy-row .btn { padding: 9px 8px; font-size: .88rem; }
.prompt-page .studio { border-radius: 14px; margin-bottom: 14px; }
.prompt-page .studio summary { list-style-position: inside; }
.engage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px; margin-bottom: 14px; background: var(--sunk); border-radius: 14px; }
.engage .action-row { margin: 0; }
.engage .rating { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 10px; margin: 0; }
.engage .rating h2 { grid-column: 1 / -1; font: 600 .84rem var(--body); color: var(--soft); margin: 0; }
.engage .rating p { margin: 0; font-size: .82rem; }
.engage .stars button:not(.is-on):not(.is-hover) { color: #c9d0de; }
[data-theme="dark"] .engage .stars button:not(.is-on):not(.is-hover) { color: #3a4663; }
.prompt-info { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: var(--surface); }
.prompt-info h2 { font-size: 1.05rem; margin: 0 0 12px; letter-spacing: -.01em; }
.prompt-info h3 { font: 600 .78rem var(--body); color: var(--soft); letter-spacing: 0; margin: 14px 0 6px; }
.prompt-page .facts { margin: 0; padding: 0; border: 0; gap: 8px 36px; }
.pill-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pill-links a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: .84rem; font-weight: 500; text-decoration: none; }
.pill-links a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pill-links-soft a { border-color: transparent; background: var(--sunk); color: var(--soft); }
.prompt-page .share { gap: 6px; }
.prompt-page .share a, .prompt-page .share button { padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--ink); font: 500 .84rem var(--body); text-decoration: none; cursor: pointer; }
.prompt-page .share a:hover, .prompt-page .share button:hover { border-color: var(--accent); color: var(--accent-ink); }
.prompt-page .wa-card { margin: 0; }
.howto { margin-top: 48px; }
.howto h2 { margin-bottom: 16px; }
.howto-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 0; padding: 0; }
@media (min-width: 760px) { .howto-steps { grid-template-columns: repeat(3, 1fr); } }
.howto-steps li { counter-increment: step; padding: 18px; border-radius: 14px; background: var(--sunk); font-size: .95rem; }
.howto-steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 .92rem var(--display); }

/* Comments */
.comments { display: grid; gap: 24px; margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
@media (min-width: 900px) { .comments { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding: 28px; } }
.comments-list h2 { margin-bottom: 12px; }
.comments-count { display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: .95rem; text-align: center; vertical-align: 3px; }
.comments-empty { padding: 26px 18px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--soft); text-align: center; margin: 0; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.comment-face { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--accent-ink); font: 800 .95rem var(--display); }
.comment-body { min-width: 0; overflow-wrap: anywhere; }
.comment-body p { margin: 0; }
.comment-head { margin-bottom: 2px !important; }
.comment-head time { color: var(--soft); font-size: .8rem; margin-left: 6px; }
.comment-reply { margin-left: 30px; }
.comment-box { padding: 18px; border-radius: 14px; background: var(--sunk); align-self: start; }
.comment-box h3 { margin: 0 0 12px; font-size: 1.05rem; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: grid; gap: 4px; font-weight: 600; font-size: .88rem; }
.comment-form input[type=text], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 400 .95rem var(--body); }
.comment-form input[type=text]:focus, .comment-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.comment-form .btn { justify-self: start; }
.comment-as { margin: 0; font-size: .88rem; color: var(--soft); }
.comment-note { margin: 0; font-size: .82rem; color: var(--soft); }
.comment-note.is-done { color: #14532d; background: #e4f6ea; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.comment-note.is-error { color: #8f1d1d; background: #fdeaea; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
