/* =====================================================================
   AI Prompts Catalogue: Night Studio
   Tokens follow the active DESIGN.md (novamira design "night-studio").
   ===================================================================== */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/space-grotesk-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/space-grotesk-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../fonts/jetbrains-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../fonts/jetbrains-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--bg: #0E1116;
	--inset: #11151B;
	--surface: #161A21;
	--surface-hover: #181D25;
	--raised: #1C212A;
	--raised-hover: #212733;
	--line: #272D38;
	--line-strong: #384050;
	--ink: #E8EAE3;
	--prompt-ink: #D9DCD4;
	--muted: #98A0AB;
	--faint: #7C8490;
	--accent: #C8F04A;
	--accent-hover: #D6F76E;
	--accent-ink: #0E1116;
	--accent-soft: rgba(200, 240, 74, 0.12);
	--danger: #FF7A66;

	--font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--r: 10px;
	--pill: 999px;
	--container: 1240px;
	--gutter: 16px;
	--header-h: 64px;
	color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
:where(body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; }
:where(ul, ol)[class] { list-style: none; padding: 0; }
:where(img, svg) { display: block; max-width: 100%; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { cursor: pointer; background: none; border: 0; padding: 0; }
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
[hidden] { display: none !important; }

body {
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.site-main { flex: 1; }
html.is-locked, html.is-locked body { overflow: hidden; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .9em; background: var(--raised); padding: .1em .35em; border-radius: 5px; }
kbd { font-size: 11px; line-height: 1; padding: 3px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--raised); color: var(--muted); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--r); font-weight: 600; }
.skip-link:focus { top: 12px; }
.count { font-family: var(--mono); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn, .aipc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 18px; border-radius: var(--r);
	border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
	font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover, .aipc-btn:hover { border-color: var(--muted); }
.btn:active, .aipc-btn:active { transform: translateY(1px); }
.btn--primary, .aipc-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover, .aipc-btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--quiet { border-color: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--surface); border-color: transparent; }
.btn--outline { background: transparent; }
.btn--sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn--block, .aipc-btn--block { width: 100%; }
.btn .icon { flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); color: var(--muted); }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- chips & tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--pill); color: var(--muted);
	font-size: 14px; text-decoration: none; background: transparent; transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.is-active .count { color: var(--accent-ink); opacity: .7; }
.chip.is-empty { opacity: .45; }
.chip--sm { min-height: 30px; padding: 0 11px; font-size: 13.5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1; padding: 6px 9px; border-radius: var(--pill); background: var(--raised); color: var(--muted); }
.tag--model { background: transparent; border: 1px solid var(--line); padding: 5px 8px; }
.tag--fill { background: var(--accent-soft); color: var(--accent); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 17, 22, .86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { display: inline-grid; grid-template-columns: repeat(3, 4px); gap: 3px; align-items: end; height: 18px; }
.logo__mark span { background: var(--accent); border-radius: 2px; }
.logo__mark span:nth-child(1) { height: 10px; }
.logo__mark span:nth-child(2) { height: 18px; }
.logo__mark span:nth-child(3) { height: 14px; }
.logo__text { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo__text span { color: var(--muted); font-weight: 500; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); background: var(--surface); }
.search-trigger { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 40px; width: 260px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--faint); font-size: 14.5px; }
.search-trigger:hover { border-color: var(--line-strong); color: var(--muted); }
.search-trigger__kbd { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions .btn { height: 40px; }
.menu-toggle { display: none; width: 42px; height: 42px; place-items: center; border-radius: var(--r); color: var(--ink); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu .container { display: grid; padding-top: 8px; padding-bottom: 16px; }
.mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 17px; }

@media (max-width: 1180px) {
	.search-trigger { width: 200px; }
}
@media (max-width: 1060px) {
	.main-nav a:nth-child(4) { display: none; }
}
@media (max-width: 860px) {
	.main-nav, .header-actions { display: none; }
	.menu-toggle { display: inline-grid; }
	.search-trigger { width: 42px; padding: 0; justify-content: center; }
	.search-trigger__label, .search-trigger__kbd { display: none; }
	.site-header__inner { gap: 8px; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--inset); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.section__lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 58ch; }
.section__note { margin-top: 24px; color: var(--faint); font-size: 14.5px; }
@media (max-width: 720px) { .section { padding: 52px 0; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: end; }
.hero__title { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 14ch; }
.hero__accent { color: var(--accent); }
.hero__lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 52ch; }
.hero-search { margin-top: 32px; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 8px 0 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); max-width: 680px; transition: border-color .15s, box-shadow .15s; }
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-search .icon { color: var(--muted); flex: none; }
.hero-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 18px; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search .btn { height: 48px; padding: 0 22px; }
.hero-search--compact { margin: 24px auto; height: 56px; }
.hero__try { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero__try-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-right: 4px; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.stat__num { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 14.5px; }
.stat--xl { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.stat--xl .stat__num { font-size: clamp(72px, 9vw, 128px); color: var(--accent); letter-spacing: -.05em; }
@media (max-width: 1060px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
	.hero__stats { grid-template-columns: repeat(4, 1fr); }
	.stat--xl { grid-column: auto; border-top: 1px solid var(--line); padding-top: 16px; }
	.stat--xl .stat__num { font-size: 40px; }
}
@media (max-width: 720px) {
	.hero { padding: 40px 0 44px; }
	.hero-search { height: 56px; padding-left: 14px; }
	.hero-search .btn { height: 42px; padding: 0 14px; }
	.hero__stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(148px, auto); grid-auto-flow: dense; gap: 12px; }
.bento__cell {
	position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color .15s, background-color .15s;
}
.bento__cell:hover { border-color: var(--line-strong); background: var(--raised); }
.bento__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r); background: var(--raised); color: var(--ink); margin-bottom: auto; }
.bento__name { font-size: 18px; font-weight: 600; line-height: 1.25; margin-top: 16px; }
.bento__count { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bento__desc, .bento__subs { font-size: 14px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bento__cell--lg { grid-column: span 2; grid-row: span 2; background: var(--raised); padding: 28px; }
.bento__cell--lg:hover { background: var(--raised-hover); }
.bento__cell--lg .bento__icon { width: 52px; height: 52px; background: var(--accent-soft); color: var(--accent); }
.bento__cell--lg .bento__count { position: static; order: -1; font-family: var(--font); font-size: clamp(56px, 6vw, 88px); line-height: .95; letter-spacing: -.05em; font-weight: 700; color: var(--ink); margin: 18px 0 auto; }
.bento__cell--lg .bento__name { font-size: 26px; letter-spacing: -.02em; }
.bento__cell--lg .bento__subs { -webkit-line-clamp: 3; font-size: 15px; }
.bento__cell--wide { grid-column: span 2; }
@media (max-width: 1000px) {
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bento__cell--lg { grid-row: span 1; }
}
@media (max-width: 560px) {
	.bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
	.bento__cell--lg, .bento__cell--wide { grid-column: auto; }
	.bento__cell { min-height: 120px; }
}

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.card {
	position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 216px; padding: 18px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, background-color .15s;
}
.card:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.card__type { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.card__copy {
	position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
	border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink); font-size: 13px; font-weight: 600;
	opacity: 0; transition: opacity .15s, background-color .15s, border-color .15s;
}
.card:hover .card__copy, .card:focus-within .card__copy, .card__copy.is-done { opacity: 1; }
.card__copy:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card__copy.is-done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: none) { .card__copy { opacity: 1; } }
.card__title { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.card__link { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card__desc { color: var(--muted); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 312px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail > * { scroll-snap-align: start; }

/* ---------- split / demo / prompt box ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split__copy .link-arrow { margin-top: 24px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 16px; }
.demo__title { font-weight: 600; }
.demo__title a { text-decoration: none; }
.demo__title a:hover { color: var(--accent); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.promptbox { background: var(--inset); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.promptbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.promptbox__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.promptbox__fmt { margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: var(--raised); color: var(--ink); }
.promptbox__actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.promptbox__text { margin: 0; padding: 20px; font-size: 14px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; max-height: 72vh; overflow: auto; color: var(--prompt-ink); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.promptbox__text code { background: none; padding: 0; font-size: inherit; }
.promptbox--compact .promptbox__text { max-height: 280px; font-size: 13.5px; }
mark.var { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 1px 4px; font-weight: 500; }
mark.var.is-filled { background: transparent; color: var(--ink); padding: 0; border-radius: 0; box-shadow: inset 0 -2px 0 var(--accent); }

.fill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.fill__head { margin-bottom: 16px; }
.fill__title { font-size: 18px; font-weight: 600; }
.fill__hint { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.fill__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .fill__fields { grid-template-columns: minmax(0, 1fr); } }

/* ---------- models & community ---------- */
.models { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 28px; }
.models a { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.models__name { font-size: clamp(24px, 3.2vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; transition: color .15s; }
.models__count { font-family: var(--mono); font-size: 14px; color: var(--faint); }
.models a:hover .models__name { color: var(--accent); }
.community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.community__cta { margin-top: 28px; }
.flow { position: relative; display: grid; gap: 0; }
.flow li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 0 0 26px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: var(--line-strong); }
.flow li:last-child::before { display: none; }
.flow .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); background: var(--surface); }
.flow strong { display: block; font-size: 17px; margin-top: 9px; }
.flow span { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .community { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- browse ---------- */
.browse__head { padding: 40px 0 20px; }
.browse__title { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.browse__desc { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 64ch; }
.browse__bar { position: sticky; top: var(--header-h); z-index: 30; display: flex; gap: 10px; padding: 12px 0; background: var(--bg); }
.admin-bar .browse__bar { top: calc(var(--header-h) + 32px); }
.searchbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbox .icon { color: var(--muted); flex: none; }
.searchbox input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 16px; }
.searchbox input::placeholder { color: var(--faint); }
.select { height: 48px; padding: 0 38px 0 14px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2398A0AB' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line-strong); border-radius: var(--r); appearance: none; -webkit-appearance: none; font-size: 15px; }
.filters-toggle { display: none; height: 48px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }

.browse__layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 72px; }
.filters { position: sticky; top: calc(var(--header-h) + 84px); max-height: calc(100vh - var(--header-h) - 100px); display: flex; flex-direction: column; }
.filters__body { overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.filters__sheet-head, .filters__apply { display: none; }
.filters__group { margin-bottom: 26px; }
.filters__title { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 10px; }
.filters__foot { padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cat-tree { display: grid; gap: 2px; }
.cat-tree__top { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; text-align: left; }
.cat-tree__top .icon { color: var(--muted); flex: none; }
.cat-tree__top .count { margin-left: auto; }
.cat-tree__top:hover { background: var(--surface); }
.cat-tree__top.is-active { background: var(--surface); color: var(--accent); }
.cat-tree__top.is-active .icon { color: var(--accent); }
.cat-tree__subs { display: grid; gap: 1px; padding: 2px 0 8px 38px; }
.cat-tree__subs a, .cat-tree__subs button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 14px; text-align: left; }
.cat-tree__subs .count { margin-left: auto; }
.cat-tree__subs a:hover, .cat-tree__subs button:hover { color: var(--ink); background: var(--surface); }
.cat-tree__subs .is-active { color: var(--accent); background: var(--surface); }
.cat-tree .is-empty { opacity: .45; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--pill); background: var(--raised); border: 1px solid var(--line-strong); transition: background-color .15s; }
.toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background-color .15s; }
.toggle input:checked + .toggle__track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle__track::after { transform: translateX(16px); background: var(--accent-ink); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.results__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; min-height: 34px; }
.results__count { color: var(--muted); }
.results__count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters .chip { color: var(--ink); border-color: var(--line-strong); }
.active-filters .chip .icon { color: var(--muted); }
.active-filters .chip--clear { border-style: dashed; color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r); text-align: center; color: var(--muted); }
.empty__title { color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.empty .chips { justify-content: center; margin-top: 16px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--muted); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pager a.page-numbers:hover { color: var(--ink); border-color: var(--line-strong); }
.loadmore { display: flex; justify-content: center; margin-top: 28px; }
.is-loading-more .loadmore .btn { opacity: .6; }

@media (max-width: 1024px) {
	.browse__layout { grid-template-columns: minmax(0, 1fr); }
	.filters-toggle { display: inline-flex; }
	.filters {
		position: fixed; inset: 0; z-index: 90; max-height: none; top: 0;
		background: var(--bg); transform: translateY(100%); visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.filters.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
	.filters__sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; }
	.filters__body { flex: 1; padding: 20px var(--gutter); }
	.filters__foot { padding: 14px var(--gutter) 18px; background: var(--bg); }
	.filters__apply { display: inline-flex; }
}
@media (max-width: 560px) {
	.browse__bar { flex-wrap: wrap; }
	.searchbox { flex-basis: 100%; }
	.select, .filters-toggle { flex: 1; }
}

/* ---------- single prompt ---------- */
.prompt { padding: 28px 0 80px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.prompt__head { margin: 18px 0 28px; max-width: 860px; }
.prompt__title { font-size: clamp(30px, 4vw, 50px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
.prompt__lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 68ch; }
.prompt__by { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.prompt__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.prompt__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.prompt__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { text-align: right; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--accent); }
.related { margin-top: 72px; }
@media (max-width: 1024px) {
	.prompt__layout { grid-template-columns: minmax(0, 1fr); }
	.prompt__aside { position: static; }
}

/* ---------- pages & forms ---------- */
.site-main > .page { padding: 40px 0 88px; }
.page__head { margin-bottom: 28px; }
.page__title { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.page__intro { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.page--narrow .container { max-width: calc(880px + var(--gutter) * 2); }
.site-main > .page--center { text-align: center; padding-top: 72px; }
.page--center .page__intro { margin-left: auto; margin-right: auto; }
.big-code { font-size: clamp(96px, 16vw, 180px); font-weight: 700; line-height: .9; letter-spacing: -.06em; color: var(--accent); margin-bottom: 16px; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.postlist { display: grid; gap: 10px; }

.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 72px; align-items: center; min-height: calc(100vh - var(--header-h) - 240px); }
.auth__panel .page__intro { margin-bottom: 28px; }
.auth__aside { padding: 40px; border-left: 1px solid var(--line); }
.auth__quote { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; max-width: 18ch; }
.auth__points { margin-top: 28px; display: grid; gap: 12px; color: var(--muted); }
.auth__points li { display: flex; gap: 10px; align-items: center; }
.auth__points .icon { color: var(--accent); }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth__aside { display: none; } }

.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.guide { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.guide__title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.guide__list { display: grid; gap: 12px; font-size: 14.5px; color: var(--muted); }
.guide__list strong { color: var(--ink); font-weight: 600; }
@media (max-width: 1024px) { .submit-layout { grid-template-columns: minmax(0, 1fr); } .guide { position: static; order: -1; } }

.aipc-form { display: grid; gap: 18px; }
.aipc-form--wide { max-width: 820px; }
.aipc-form__foot { text-align: center; }
.aipc-field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.aipc-label { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0; }
.aipc-input {
	width: 100%; min-height: 48px; padding: 11px 14px; background: var(--surface); color: var(--ink);
	border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 16px; line-height: 1.5;
	transition: border-color .15s, box-shadow .15s;
}
.aipc-input::placeholder { color: var(--faint); }
.aipc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.aipc-input[aria-invalid="true"] { border-color: var(--danger); }
textarea.aipc-input { resize: vertical; }
select.aipc-input { appearance: none; -webkit-appearance: none; padding-right: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2398A0AB' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.aipc-input--mono { font-family: var(--mono); font-size: 14px; line-height: 1.65; }
.aipc-help { font-size: 13.5px; color: var(--muted); }
.aipc-help a, .aipc-muted a, .aipc-form__foot a { color: var(--ink); }
.aipc-help a:hover, .aipc-muted a:hover { color: var(--accent); }
.aipc-muted { color: var(--muted); }
.aipc-password { position: relative; }
.aipc-password .aipc-input { padding-right: 76px; }
.aipc-password__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.aipc-password__toggle:hover { color: var(--ink); background: var(--raised); }
.aipc-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.aipc-check input, .aipc-choice input { accent-color: var(--accent); width: 16px; height: 16px; }
.aipc-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.aipc-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); cursor: pointer; font-size: 14.5px; color: var(--muted); transition: border-color .15s, background-color .15s, color .15s; }
.aipc-choice:hover { border-color: var(--line-strong); color: var(--ink); }
.aipc-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.aipc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .aipc-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.aipc-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aipc-notice { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; margin-bottom: 20px; }
.aipc-notice ul { margin: 0; padding-left: 18px; }
.aipc-notice--success { border-color: rgba(200, 240, 74, .45); background: var(--accent-soft); }
.aipc-notice--error { border-color: rgba(255, 122, 102, .5); background: rgba(255, 122, 102, .1); }
.aipc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.aipc-card h2 { font-size: 22px; letter-spacing: -.02em; }
.aipc-card p:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.aipc-resend { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.aipc-resend summary { cursor: pointer; color: var(--muted); font-size: 14.5px; }
.aipc-resend summary:hover { color: var(--ink); }
.aipc-form--inline { display: flex; gap: 8px; margin-top: 12px; }
.aipc-form--inline .aipc-input { flex: 1; }
.aipc-form--inline .aipc-btn { height: 48px; }

.aipc-account__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.aipc-account__name { font-size: 22px; font-weight: 600; }
.aipc-account__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.aipc-account__title { font-size: 22px; margin: 36px 0 8px; }
.aipc-mylist__item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.aipc-mylist__title { display: block; font-weight: 600; text-decoration: none; }
a.aipc-mylist__title:hover { color: var(--accent); }
.aipc-mylist__note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.aipc-status { flex: none; font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: var(--pill); border: 1px solid var(--line-strong); color: var(--muted); }
.aipc-status--live { border-color: var(--accent); color: var(--accent); }
.aipc-status--rejected { border-color: rgba(255, 122, 102, .6); color: var(--danger); }
.aipc-empty { padding: 36px; border: 1px dashed var(--line-strong); border-radius: var(--r); text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }

/* ---------- categories directory ---------- */
.cat-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.catdir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catdir__group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.catdir__head { display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .15s; }
.catdir__head:hover { background: var(--raised); }
.catdir__icon { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.catdir__name { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.catdir__desc { display: block; color: var(--muted); font-size: 14px; }
.catdir__count { margin-left: auto; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.catdir__subs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; }
.catdir__subs a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 14.5px; }
.catdir__subs a:hover { background: var(--raised); color: var(--accent); }
@media (max-width: 900px) { .catdir { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .catdir__subs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--inset); }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.site-footer__brand p { margin-top: 14px; color: var(--muted); max-width: 36ch; font-size: 15px; }
.site-footer__col { display: grid; gap: 8px; align-content: start; }
.site-footer__col h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 6px; }
.site-footer__col a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-footer__col a:hover { color: var(--ink); }
.site-footer__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
@media (max-width: 1000px) { .site-footer__inner { grid-template-columns: repeat(4, 1fr); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 100; }
.palette__scrim { position: absolute; inset: 0; background: rgba(6, 8, 11, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.palette__panel { position: relative; margin: 10vh auto 0; width: min(680px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.palette__bar { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; height: 60px; border-bottom: 1px solid var(--line); }
.palette__bar .icon { color: var(--muted); flex: none; }
.palette__input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 18px; }
.palette__input::placeholder { color: var(--faint); }
.palette__input::-webkit-search-cancel-button { display: none; }
.palette__results { overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.palette__group { padding: 10px 10px 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.palette__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.palette__item[aria-selected="true"] { background: var(--raised); }
.palette__item[aria-selected="true"] .palette__go { opacity: 1; }
.palette__item .icon { flex: none; color: var(--muted); }
.palette__text { min-width: 0; flex: 1; }
.palette__title { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__meta { display: block; font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__go { opacity: 0; color: var(--accent); flex: none; }
.palette__empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.palette__foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.palette__foot kbd { margin-right: 4px; }
@media (max-width: 600px) { .palette__panel { margin-top: 12px; max-height: calc(100vh - 24px); } .palette__foot { display: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px; animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ---------- sources & licences ---------- */
.sources { display: grid; gap: 14px; max-width: 820px; }
.sources > p:first-child { color: var(--muted); font-size: 17px; margin-bottom: 8px; }
.sources__item { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sources__name { font-size: 18px; font-weight: 600; }
.sources__name a { text-decoration: none; }
.sources__name a:hover { color: var(--accent); }
.sources__meta { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.sources__notice { margin-top: 8px; color: var(--faint); font-size: 13.5px; }
.sources a { color: inherit; }

/* ---------- example images ---------- */
.card--media { padding-top: 0; }
.card__media { margin: 0 -18px 4px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--inset); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card--media:hover .card__media img { transform: scale(1.03); }
.card--media .card__top { margin-top: 10px; }
.example { margin: 0 0 16px; background: var(--inset); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.example__frame { display: grid; place-items: center; background: var(--bg); }
.example__img { width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.example__caption { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.example__caption span:first-child { color: var(--ink); font-weight: 600; }
.example__caption a { color: inherit; }
.example__caption a:hover { color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery__item a { display: grid; gap: 10px; text-decoration: none; }
.gallery__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--inset); }
.gallery__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery__item a:hover .gallery__img img { transform: scale(1.04); }
.gallery__title { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery__item a:hover .gallery__title { color: var(--accent); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- long-form text ---------- */
.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.7; color: #D5D8D1; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: 1.6em; font-size: 18px; color: var(--ink); }
.prose > h2:first-child, .prose > .legal-meta + h2 { margin-top: .6em; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; margin-top: 1.2em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--surface); }
.prose code { font-size: .85em; }
.legal-meta { font-family: var(--mono); font-size: 13px; color: var(--faint); }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }

/* ---------- policy pages ---------- */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.toc__title { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.toc ol, .toc ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; }
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a[aria-current] { color: var(--accent); background: var(--surface); }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal__aside { position: static; max-height: none; } .toc--related { display: none; } }

/* ---------- about ---------- */
.about__head { max-width: 760px; }
.about__lead { margin-top: 14px; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--muted); }
.about__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 40px 0 16px; }
.about__stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.about__stats dd { margin: 0; font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.about__stats div:first-child dd { color: var(--accent); }
.about__stats dt { color: var(--muted); font-size: 14.5px; }
.about__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; margin-top: 24px; }
.about__cta { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.about__cta-title { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.about__cta .link-arrow { margin-top: 6px; }
@media (max-width: 900px) { .about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } .about__body { grid-template-columns: minmax(0, 1fr); } .about__cta { position: static; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.contact__form { max-width: 720px; }
.contact__aside { display: grid; gap: 12px; }
.contact__card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 14.5px; color: var(--muted); }
.contact__title { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.contact__card a, .contact__aside .aipc-muted a { color: var(--ink); }
.contact__card a:hover { color: var(--accent); }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq details > p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.faq__more { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 72ch; }

/* ---------- misc ---------- */
.report-link { justify-self: center; font-size: 13.5px; color: var(--faint); text-decoration: none; }
.report-link:hover { color: var(--danger); }
.aipc-btn--danger { border-color: rgba(255, 122, 102, .55); color: var(--danger); }
.aipc-btn--danger:hover { background: rgba(255, 122, 102, .1); border-color: var(--danger); }
.aipc-data { margin-top: 36px; }
.aipc-data__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aipc-consent { gap: 10px; font-size: 14.5px; }
.aipc-consent .aipc-check { align-items: flex-start; color: var(--muted); }
.aipc-consent .aipc-check input { margin-top: 3px; flex: none; }
.aipc-consent a, .aipc-check a { color: var(--ink); }
.aipc-age { display: grid; gap: 8px; margin-top: 6px; }
.guide__more { margin-top: 16px; font-size: 14.5px; }

/* ---------- cookie consent ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 95; width: min(560px, calc(100% - 32px)); display: grid; gap: 14px; padding: 18px 20px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r); }
.consent__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.consent__text p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.consent__text a { color: var(--ink); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent__actions .btn { width: 100%; }
.site-footer__link { justify-self: start; padding: 0; background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; text-align: left; }
.site-footer__link:hover { color: var(--ink); }
@media (max-width: 560px) { .consent { left: 8px; right: 8px; bottom: 8px; width: auto; } }

/* ---------- share buttons ---------- */
.share { display: grid; gap: 10px; align-content: start; }
.share .share__label { margin: 0; font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); max-width: none; }
.share .share__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.share .share__list li { margin: 0; }
.share .share__btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
.share .share__btn .icon { width: 17px; height: 17px; }
.share .share__btn:hover { color: #fff; border-color: var(--brand, var(--line-strong)); background: var(--brand, var(--raised)); }
.share .share__btn.is-done { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.share__btn--x, .share__btn--threads { --brand: #000; }
.share__btn--facebook { --brand: #0866FF; }
.share__btn--linkedin { --brand: #0A66C2; }
.share__btn--whatsapp { --brand: #1DA851; }
.share__btn--reddit { --brand: #FF4500; }
.share__btn--telegram { --brand: #229ED9; }
.share__btn--pinterest { --brand: #BD081C; }
.share__btn--bluesky { --brand: #1185FE; }
.share--compact { margin-top: 18px; }
.share--compact .share__btn { width: 34px; height: 34px; }
.share--end { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose > .share--end { margin-top: 48px; }
.share--panel { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.share--footer { margin-top: 22px; }
.share--footer .share__btn { width: 32px; height: 32px; }
.share--footer .share__btn .icon { width: 15px; height: 15px; }
.contact__aside .share { margin-top: 8px; }

/* ---------- blog ---------- */
.blog__head { margin-bottom: 32px; }
.blog__head .crumbs { margin-bottom: 14px; }
.blog__cats { margin-top: 22px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.post-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, background-color .15s; }
.post-card:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.post-card__media { aspect-ratio: 1200 / 630; background: var(--inset); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card__placeholder { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 100%; padding-bottom: 22%; }
.post-card__placeholder span { width: 14px; border-radius: 3px; background: var(--accent); opacity: .85; }
.post-card__placeholder span:nth-child(1) { height: 30px; } .post-card__placeholder span:nth-child(2) { height: 54px; } .post-card__placeholder span:nth-child(3) { height: 42px; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.post-card__cat { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.post-card__title { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
.post-card__link { text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card__link:focus-visible { outline: none; }
.post-card:has(.post-card__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-card__excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.post-card--featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); margin-bottom: 18px; }
.post-card--featured .post-card__media { border-bottom: 0; align-self: center; }
.post-card--featured .post-card__body { padding: 36px; justify-content: center; gap: 14px; border-left: 1px solid var(--line); }
.post-card--featured .post-card__title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.025em; }
.post-card--featured .post-card__excerpt { font-size: 16.5px; -webkit-line-clamp: 4; }
.post-card--featured .post-card__meta { margin-top: 4px; }
@media (max-width: 900px) {
	.post-card--featured { grid-template-columns: minmax(0, 1fr); }
	.post-card--featured .post-card__media { border-bottom: 1px solid var(--line); }
	.post-card--featured .post-card__body { border-left: 0; }
	.post-card--featured .post-card__body { padding: 22px; }
}

.article { padding: 40px 0 88px; }
.article__head, .article__cover, .article__foot { max-width: 880px; margin-left: auto; margin-right: auto; }
.article__head .crumbs { margin-bottom: 18px; }
.article__title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.article__lead { margin-top: 16px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); max-width: 62ch; }
.article__meta { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.article__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--faint); font-size: 14px; }
.article__meta .share--compact { margin-top: 0; }
.article__cover { margin-top: 30px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--inset); }
.article__cover img { width: 100%; height: auto; }
.article__body.prose { max-width: 720px; margin: 44px auto 0; font-size: 17.5px; line-height: 1.75; }
.article__body.prose > h2:first-child { margin-top: 0; }
.article__foot .share--end { margin-top: 56px; }
.article__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.article__cta-title { font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.article .related { margin-top: 80px; }

/* article content */
.prose pre { background: var(--inset); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-size: 14.5px; line-height: 1.65; color: var(--prompt-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose pre code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 18px; color: var(--ink); }
.prose .callout { padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: var(--r); }
.prose .callout > * + * { margin-top: .6em; }
.prose .label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: -.4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
