:root,
[data-theme="dark"] {
  --page: #0e0e11;
  --pane: #17171a;
  --side: #131316;
  --border: #2a2a2f;
  --line: #232327;
  --text: #f3f3f6;
  --muted: #92929b;
  --field: #1f1f23;
  --hover: #1e1e22;
  --chip: #2a2a2f;
  --chip-on: #f3f3f6;
  --chip-on-text: #15151a;
  --blue: #2f6df6;
  --blue-hover: #5a89f8;
  --orange: #f2a33c;
  --success: #57c48a;
  --danger: #ee7668;
  --sponsor-peach: #201e1e;
  --sponsor-lilac: #1f1e22;
  --sponsor-pink: #211e20;
  --sponsor-blue: #1d2023;
  --sponsor-green: #1d211e;
  --sponsor-neutral: #202024;
  --stripe: rgba(255, 255, 255, 0.05);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

[data-theme="light"] {
  --page: #ffffff;
  --pane: #ffffff;
  --side: #f8f8f9;
  --border: #e4e4e8;
  --line: #ececef;
  --text: #15151a;
  --muted: #77777f;
  --field: #f7f7f9;
  --hover: #f3f3f5;
  --chip: #eaeaee;
  --chip-on: #15151a;
  --chip-on-text: #ffffff;
  --blue: #2f6df6;
  --blue-hover: #1a4fd0;
  --orange: #f2a33c;
  --success: #2f8a5a;
  --danger: #c84d40;
  --sponsor-peach: rgb(253, 237, 224);
  --sponsor-lilac: rgb(238, 235, 253);
  --sponsor-pink: rgb(253, 234, 240);
  --sponsor-blue: rgb(231, 240, 252);
  --sponsor-green: rgb(236, 250, 235);
  --sponsor-neutral: rgb(238, 238, 241);
  --stripe: rgba(21, 21, 26, 0.05);
  --shadow: 0 18px 50px rgba(25, 30, 45, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  transition: background-color 160ms ease, color 160ms ease;
}

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

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

button { color: inherit; }

code,
pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace; }

::selection { color: #fff; background: var(--blue); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 4px; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--text);
  color: var(--page);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Home shell */
.site-shell {
  min-height: 100vh;
  padding: 24px 20px 70px;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(720px, 1180px) minmax(0, 230px);
  gap: 28px;
  justify-content: center;
  align-items: start;
}

.central-pane {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 44px;
}

.logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex: none;
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--orange);
  display: inline-block;
  flex: none;
}
.logo-mark img { display: none; }

.logo-text {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--text);
}
.logo-text span,
.logo-text .dim { color: var(--muted); }

.topbar-actions,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.advertise-link {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.advertise-link:hover { color: var(--blue); }

.button,
.btn {
  appearance: none;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.button:hover,
.btn:hover { transform: translateY(-1px); }
.button-primary,
.btn-solid {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}
.button-primary:hover,
.btn-solid:hover { color: #fff; background: var(--blue-hover); border-color: var(--blue-hover); }
.button-secondary,
.btn-outline {
  color: var(--text);
  border-color: var(--border);
  background: var(--pane);
}
.button-secondary:hover,
.btn-outline:hover { color: var(--text); border-color: color-mix(in srgb, var(--muted) 65%, var(--border)); background: var(--hover); }
.button:disabled,
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.theme-toggle {
  appearance: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--pane);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--hover); }
.theme-icon::before { content: "☀"; font-size: 15px; }
[data-theme="light"] .theme-icon::before { content: "☾"; }
.theme-label-dark,
.theme-label-light { display: none; }

/* Sponsor rails */
.sponsor-rail {
  margin-top: 206px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 72px);
  min-width: 200px;
  overflow: hidden;
}
.sponsor-rail-left { grid-column: 1; }
.sponsor-rail-right { grid-column: 3; }
.rail-label,
.section-label {
  margin: 0 0 8px;
  padding-left: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sponsor-stack { display: flex; flex-direction: column; gap: 10px; }
.sponsor-card {
  min-height: 111px;
  padding: 12px 12px 13px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text);
  text-align: center;
}
.sponsor-card:hover { color: var(--text); filter: brightness(1.03); }
.sponsor-card strong { font-size: 13px; font-weight: 600; line-height: 1.25; }
.sponsor-card p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.4; text-wrap: pretty; }
.sponsor-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.sponsor-peach { background: var(--sponsor-peach); }
.sponsor-lilac { background: var(--sponsor-lilac); }
.sponsor-pink { background: var(--sponsor-pink); }
.sponsor-blue { background: var(--sponsor-blue); }
.sponsor-green { background: var(--sponsor-green); }
.sponsor-neutral { background: var(--sponsor-neutral); }
.mark-orange { background: #f26d21; }
.mark-purple { background: #6d5cf5; }
.mark-gray { background: #8a8a92; }
.mark-red { background: #e8574a; }
.mark-green { background: #1f7a4d; }

/* Directory */
.directory-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.directory-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -1.6px;
  line-height: 1.1;
  text-wrap: balance;
}
.directory-hero > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.notify-form {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.notify-form input {
  width: 210px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--pane);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.notify-form input:focus { border-color: var(--blue); }
.notify-form .button { border-radius: 9px; padding: 10px 16px; }
.notify-status { min-height: 18px; margin: -4px 0 0 !important; font-size: 11.5px !important; }
.notify-status:empty { display: none; }

.directory-toolbar {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.intent-filters {
  min-width: 0;
  max-width: 100%;
  padding-bottom: 4px;
  display: flex;
  flex: 1;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.intent-filters::-webkit-scrollbar { display: none; }
.intent-filter,
.pill-button {
  appearance: none;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--pane);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.intent-filter:hover,
.pill-button:hover { color: var(--text); border-color: var(--muted); }
.intent-filter.is-active {
  color: var(--chip-on-text);
  border-color: var(--chip-on);
  background: var(--chip-on);
}
.listing-count { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }

.listing-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.listing-card,
.related-card {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 140px;
  padding: 16px 18px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--pane);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.listing-card:hover,
.related-card:hover { border-color: var(--blue); background: var(--hover); transform: translateY(-1px); }
.listing-avatar,
.detail-avatar {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  overflow: hidden;
  pointer-events: none;
}
.listing-avatar .bs-avatar,
.detail-avatar .bs-avatar,
.listing-avatar-face {
  display: block;
  width: 100%;
  height: 100%;
}
.listing-card-title { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.3px; }
.listing-card-blurb { color: var(--muted); font-size: 13.5px; line-height: 1.45; text-wrap: pretty; flex: 1; }
.listing-card-meta { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.listing-card-author { min-width: 0; overflow: hidden; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.listing-card-tag { max-width: 50%; padding: 3px 10px; overflow: hidden; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.skeleton-card { pointer-events: none; background: linear-gradient(90deg, var(--pane), var(--hover), var(--pane)); background-size: 220% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.empty-note { grid-column: 1 / -1; margin: 0; padding: 30px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); text-align: center; }

/* Reading view */
.reading-view { display: flex; flex-direction: column; }
.pill-button { align-self: flex-start; min-height: auto; }
.reading-article { margin-top: 26px; max-width: 760px; }
.detail-heading { display: flex; align-items: flex-start; gap: 22px; }
.detail-heading-copy { min-width: 0; flex: 1; }
.detail-avatar { width: 112px; height: 112px; }
.detail-kicker { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.reading-article h1 { margin: 12px 0 0; color: var(--text); font-size: clamp(38px, 5vw, 52px); font-weight: 600; letter-spacing: -2px; line-height: 1.08; text-wrap: pretty; }
.detail-credit { min-height: 30px; margin-top: 18px; display: flex; align-items: center; gap: 11px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.credit-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); }
.detail-summary { margin: 26px 0 0; color: var(--text); font-size: 19px; line-height: 1.65; text-wrap: pretty; }
.detail-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.detail-prompt-section { margin-top: 44px; max-width: 820px; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-section-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.6px; }
.detail-prompt-section > p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.detail-prompt {
  margin: 18px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--field);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-tags { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px; }
.detail-tags span { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 13px; }
.related-section { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { min-height: 128px; }

/* Shared home panels and footer */
.info-panel {
  margin-top: 64px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.info-panel > div { min-width: 0; }
.info-panel p:not(.section-label) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.info-panel strong { color: var(--text); font-weight: 500; }
.how-it-works-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.how-it-works-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.copy-row {
  margin-top: 8px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--field);
  display: flex;
  align-items: center;
  gap: 10px;
}
.copy-row code { min-width: 0; flex: 1; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { appearance: none; padding: 6px 12px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.copy-button:hover { background: var(--blue-hover); }

.site-footer {
  margin-top: 90px;
  padding: 44px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: transparent;
  text-align: center;
}
.footer-brand .logo-mark { width: 18px; height: 18px; }
.footer-brand .logo-text { font-size: 20px; letter-spacing: -0.4px; }
.footer-tagline { max-width: 440px; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.footer-directory { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 150px); gap: 0 40px; }
.footer-directory > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-directory .section-label { margin: 0; }
.footer-directory a { color: var(--text); font-size: 14.5px; }
.footer-directory a:hover { color: var(--blue); }
.copyright { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.avatar-credit { margin: 0; color: var(--muted); font-size: 12px; }
.avatar-credit a { color: var(--muted); }
.avatar-credit a:hover { color: var(--text); }

/* Utility page shell */
.utility-shell { background: var(--page); }
.wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
.site-header.simple-header { background: var(--page); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-actions #theme-toggle { width: 38px; min-height: 38px; height: 38px; padding: 0; border-radius: 50%; }
.header-actions #theme-toggle::before { content: "☀"; font-size: 15px; }
[data-theme="light"] .header-actions #theme-toggle::before { content: "☾"; }

.page {
  width: min(100% - 40px, 720px);
  margin: 0 auto;
  padding: 42px 0 90px;
}
.page-eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.page h1 { margin: 0; color: var(--text); font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -1.5px; line-height: 1.1; }
.page > .lede { margin: 18px 0 34px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.form-card,
.login-card,
.submission-card,
.agent-block,
.listing-prompt {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--pane);
}
.form-card { padding: 28px; }
.field { margin: 0 0 20px; }
.field label,
.field legend { display: block; margin: 0 0 7px; color: var(--text); font-size: 13px; font-weight: 500; }
.hint,
.field .hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.field label .hint { display: block; margin-top: 2px; }
.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--field);
  color: var(--text);
  font-size: 14px;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.field textarea { min-height: 110px; resize: vertical; }
.type-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.type-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.type-toggle label { flex: 1; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); text-align: center; cursor: pointer; }
.type-toggle input:checked + label { border-color: var(--chip-on); background: var(--chip-on); color: var(--chip-on-text); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.color-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.color-swatch.is-selected { outline: 2px solid var(--text); outline-offset: 2px; }
.scout-fieldset { margin: 24px 0; padding: 18px 18px 0; border: 1px dashed var(--border); border-radius: 14px; }
.scout-fieldset > .hint { margin: 0 0 16px; }
.form-bot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 24px;
}
.form-bot-cta .hint { margin: 0; max-width: 36em; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-msg { color: var(--muted); font-size: 13px; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-success { color: var(--success); }

.login-page { min-height: 100vh; padding: 28px; display: grid; place-items: center; }
.login-card { width: min(100%, 380px); padding: 34px; text-align: center; box-shadow: var(--shadow); }
.login-card .logo { margin-bottom: 24px; }
.login-card h1 { margin: 0 0 22px; font-size: 24px; font-weight: 600; letter-spacing: -0.6px; }
.login-card .field { text-align: left; }
.login-card .btn-solid { width: 100%; }

.admin-shell { width: min(100% - 40px, 920px); margin: 0 auto; padding: 38px 0 90px; }
.admin-top { margin-bottom: 24px; }
.admin-top h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -1px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.admin-tab { appearance: none; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--pane); color: var(--muted); cursor: pointer; }
.admin-tab.is-active { border-color: var(--chip-on); background: var(--chip-on); color: var(--chip-on-text); }
.count-badge { margin-left: 4px; }
.submission-list { display: flex; flex-direction: column; gap: 14px; }
.submission-card { padding: 20px; }
.submission-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.submission-head h3 { margin: 0; font-size: 17px; }
.submission-meta { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.submission-card .desc { color: var(--muted); }
.status-pill { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; }
.status-pill.approved { color: var(--success); }
.status-pill.rejected { color: var(--danger); }
.submission-actions { margin-top: 14px; display: flex; gap: 10px; }
.btn-approve { color: var(--success); }
.btn-danger { color: var(--danger); }
.ext-link { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.prompt-preview { max-height: 190px; overflow: auto; padding: 14px; border-radius: 9px; background: var(--field); color: var(--text); white-space: pre-wrap; }

.listing-page { width: min(100% - 40px, 820px); }
.listing-credit { margin: 18px 0 0; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.listing-source { margin: -18px 0 24px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.listing-prompt { margin-top: 36px; padding: 22px 24px; }
.listing-prompt h2 { margin: 0; font-size: 22px; }
.prompt-block { margin: 14px 0 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); color: var(--text); font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.agent-page { width: min(100% - 40px, 820px); }
.agent-block { margin: 0 0 18px; padding: 22px 24px; }
.agent-block h2 { margin: 0 0 10px; font-size: 20px; }
.agent-block p { color: var(--muted); }
.agent-steps,
.agent-list { margin: 0; padding-left: 1.25em; }
.agent-steps li,
.agent-list li { margin-bottom: 10px; }

/* Advertise page */
.advertise-page { background: var(--page); }
.advertise-nav,
.advertise-hero,
.advertise-section,
.advertise-signals,
.advertise-footer {
  width: min(100% - 40px, 1020px);
  margin-inline: auto;
}
.advertise-nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.advertise-nav-links { display: flex; align-items: center; gap: 18px; }
.advertise-nav-links > a:not(.button) { color: var(--muted); font-size: 13px; }
.advertise-nav-links > a:not(.button):hover { color: var(--text); }
.advertise-nav .theme-toggle { width: 34px; min-width: 34px; height: 34px; padding: 0; }
.advertise-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: clamp(36px, 8vw, 92px); align-items: center; padding: 58px 0 74px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.advertise-hero h1,
.advertise-section h2,
.advertise-faq h2 { margin: 0; color: var(--text); font-size: clamp(36px, 4.4vw, 58px); font-weight: 600; letter-spacing: -2.4px; line-height: 1.05; text-wrap: balance; }
.advertise-lede { max-width: 560px; margin: 22px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.advertise-cta { min-height: 46px; }
.advertise-purchase-status {
  width: min(100% - 40px, 1020px);
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--pane);
  color: var(--text);
  font-size: 14px;
}
.advertise-proof { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: #15151a; box-shadow: var(--shadow); color: #f4f4f6; }
.placement-preview-top { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); color: #aaaab2; font-size: 11px; }
.placement-preview-top span:last-child { color: #7ba1ff; }
.placement-preview-body { min-height: 270px; padding: 28px; background: radial-gradient(circle at 82% 13%, rgba(47,109,246,.42), transparent 32%), linear-gradient(145deg, #202127, #111116 65%); }
.placement-preview-body .sponsor-mark { margin-bottom: 22px; background: #8ca9ff; color: #15151a; }
.placement-preview-label { margin: 0 0 10px; color: #b9c8ff; font-size: 12px; }
.placement-preview-body h2 { margin: 0; max-width: 280px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -1px; line-height: 1.14; }
.placement-preview-body > p:last-child { margin: 18px 0 0; color: #b0b0b9; font-size: 12px; line-height: 1.6; }
.placement-preview-footer { display: flex; gap: 8px; padding: 14px 16px; background: #101014; }
.placement-preview-footer span { width: 30%; height: 5px; border-radius: 999px; background: #34343c; }
.placement-preview-footer span:first-child { width: 42%; background: #2f6df6; }
.advertise-signals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 100px; }
.advertise-signals article,
.placement-card,
.sponsor-roster-card { border: 1px solid var(--border); border-radius: 15px; background: var(--pane); }
.advertise-signals article { min-height: 136px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.advertise-signals strong { color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -0.6px; }
.advertise-signals span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.advertise-section { padding-bottom: 100px; }
.advertise-section h2 { font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -1.5px; }
.section-intro { max-width: 600px; margin: 14px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.placement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.placement-card { min-height: 390px; padding: 22px; display: flex; flex-direction: column; }
.placement-card-featured { border-color: color-mix(in srgb, var(--blue) 50%, var(--border)); box-shadow: 0 12px 34px color-mix(in srgb, var(--blue) 12%, transparent); }
.placement-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.placement-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.5px; }
.placement-card-head span { padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.placement-price { margin: 22px 0 6px; color: var(--text); font-size: 25px; font-weight: 600; letter-spacing: -1px; }
.placement-card > p:not(.placement-price) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.placement-card ul { margin: 18px 0 24px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; line-height: 1.55; }
.placement-card li { position: relative; margin: 0 0 8px; padding-left: 14px; }
.placement-card li::before { position: absolute; left: 0; color: var(--blue); content: "•"; }
.placement-card .button { width: 100%; margin-top: auto; justify-content: center; font-size: 12px; }
.sponsor-roster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.sponsor-roster-card { min-height: 148px; padding: 16px; display: flex; flex-direction: column; }
.sponsor-roster-card .sponsor-mark { margin-bottom: 12px; }
.sponsor-roster-card strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.sponsor-roster-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
a.sponsor-roster-card { color: var(--text); }
a.sponsor-roster-card:hover { color: var(--text); filter: brightness(1.03); }
.roster-badge {
  display: inline-block;
  width: fit-content;
  margin-top: auto;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sponsor-roster-open { background: var(--sponsor-neutral); }
.advertise-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(36px, 8vw, 92px); padding: 84px max(20px, calc((100vw - 1020px) / 2)) 88px; background: #151516; color: #f4f4f6; }
.advertise-faq .eyebrow { color: #82a5ff; }
.advertise-faq h2 { color: #f4f4f6; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -1.8px; }
.advertise-faq-intro > p:not(.eyebrow) { max-width: 410px; margin: 16px 0 24px; color: #ababB4; font-size: 14px; line-height: 1.65; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 16px 18px; border: 1px solid #303034; border-radius: 13px; background: #1d1d20; }
.faq-list summary { color: #f3f3f5; font-size: 13px; font-weight: 600; cursor: pointer; }
.faq-list p { margin: 10px 0 0; color: #aaaab2; font-size: 12px; line-height: 1.55; }
.advertise-footer { padding: 42px 0 52px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 28px; align-items: start; }
.advertise-footer > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.advertise-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; }
.advertise-footer nav a { color: var(--muted); font-size: 12px; }
.advertise-footer nav a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 1260px) {
  .site-shell { padding-inline: 28px; }
  .app-grid { grid-template-columns: minmax(720px, 1180px); }
  .central-pane { grid-column: 1; }
  .sponsor-rail { display: none; }
}

@media (max-width: 900px) {
  .site-shell { padding-inline: 24px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-grid,
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advertise-link { display: none; }
}
.listing-source { margin: 0 0 12px; }
.listing-source a { color: var(--accent); font-weight: 600; text-decoration: none; }
.listing-story { margin: 0 0 24px; }
.listing-story p { margin: 0 0 12px; }
.listing-gallery { margin: 0 0 28px; }
.listing-gallery img { max-width: 100%; height: auto; display: block; margin: 0 0 12px; }
.listing-prompt h2 { font-size: 1rem; margin: 0 0 6px; }
.listing-prompt .hint { color: var(--text-dim); font-size: 0.8rem; margin: 0 0 10px; }
.prompt-block,
.prompt-preview {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  font-size: 0.82rem;
  overflow-x: auto;
}
.prompt-preview { max-height: 180px; overflow: auto; margin: 8px 0 0; }

@media (max-width: 760px) {
  .site-shell { padding: 18px 16px 48px; }
  .topbar { align-items: flex-start; padding-bottom: 38px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .button { width: 40px; min-width: 40px; padding: 0; overflow: hidden; color: transparent; }
  .topbar-actions .button { font-size: 0; }
  .topbar-actions .button::before { color: #fff; font-size: 17px; }
  .topbar-actions .button-primary::before { content: "+"; }
  .topbar-actions .button-secondary::before { content: "↗"; color: var(--text); }
  .logo-text { font-size: 21px; }
  .directory-hero h1 { font-size: 34px; }
  .notify-form { width: 100%; align-items: stretch; }
  .notify-form input { min-width: 0; flex: 1; width: auto; }
  .directory-toolbar { align-items: flex-end; }
  .intent-filters { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .intent-filters::-webkit-scrollbar { display: none; }
  .listing-grid,
  .related-grid,
  .info-panel { grid-template-columns: 1fr; }
  .info-panel { gap: 24px; }
  .detail-heading { flex-direction: column; gap: 16px; }
  .reading-article h1 { letter-spacing: -1.4px; }
  .detail-summary { font-size: 17px; }
  .footer-directory { gap: 0 18px; }
  .header-inner { min-height: 76px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding-inline: 12px; }
  .form-card { padding: 20px; }
  .login-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .notify-form { flex-direction: column; }
  .notify-form input,
  .notify-form .button { width: 100%; }
  .directory-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .intent-filters { width: 100%; margin-right: 0; padding-right: 0; }
  .listing-count { order: -1; }
  .detail-section-head { align-items: flex-start; flex-direction: column; }
  .copy-row code { font-size: 11px; }
  .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .page,
  .admin-shell { width: min(100% - 28px, 720px); }
}

@media (max-width: 900px) {
  .advertise-hero,
  .advertise-faq { grid-template-columns: 1fr; }
  .advertise-hero { gap: 36px; padding-top: 36px; }
  .advertise-proof { max-width: 520px; }
  .advertise-signals,
  .placement-grid { grid-template-columns: 1fr; }
  .placement-card { min-height: 0; }
  .sponsor-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advertise-faq { padding-inline: max(20px, calc((100vw - 720px) / 2)); }
  .advertise-footer { grid-template-columns: 1fr; }
  .advertise-footer nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .advertise-nav,
  .advertise-hero,
  .advertise-section,
  .advertise-signals,
  .advertise-footer { width: min(100% - 32px, 1020px); }
  .advertise-nav { min-height: 72px; }
  .advertise-nav-links { gap: 10px; }
  .advertise-nav-links > a:not(.button) { display: none; }
  .advertise-nav-links .button { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .advertise-hero { padding-bottom: 52px; }
  .advertise-hero h1 { font-size: 38px; letter-spacing: -1.7px; }
  .advertise-signals { margin-bottom: 68px; }
  .advertise-section { padding-bottom: 68px; }
  .sponsor-roster { grid-template-columns: 1fr; }
  .advertise-faq { padding: 60px 16px; }
}
