:root {
  --primary: #0f766e;
  --ink: #122026;
  --muted: #5d6b73;
  --line: #dbe4e8;
  --paper: #f7faf9;
  --white: #ffffff;
  --accent: #f6d365;
  --blue: #2563eb;
}

* { box-sizing: border-box; }
body.prompt-body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(15, 118, 110, .12), rgba(247,250,249,0) 360px), var(--paper);
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.brand { font-weight: 800; font-size: 24px; color: var(--primary); }
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-logo span span,
.footer-logo span {
  color: #76D572;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav-links a:hover { color: var(--primary); }
.hero, .section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px;
}
.section.compact { padding-top: 26px; padding-bottom: 26px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
}
.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}
h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  margin: 12px 0 18px;
  letter-spacing: 0;
}
h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 14px; letter-spacing: 0; }
h3 { margin: 10px 0; font-size: 20px; letter-spacing: 0; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.75; max-width: 760px; }
.actions, .card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button, button, .card-actions a {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  padding: 10px 14px;
  font-weight: 750;
  color: var(--ink);
  cursor: pointer;
}
.button.primary, .card-actions button:first-child {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.button.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.snapshot, .panel, .prompt-card, .detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(18, 32, 38, .06);
}
.snapshot { padding: 20px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--paper); border-radius: 7px; padding: 14px; }
.stat strong { display: block; font-size: 30px; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 22px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 260px; resize: vertical; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 1.6; }
.category-tiles, .prompt-grid, .admin-grid, .page-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.page-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.page-tiles a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(18, 32, 38, .05);
}
.page-tiles strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}
.page-tiles span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.category-tiles button {
  text-align: left;
  background: var(--white);
  padding: 18px;
}
.category-tiles span {
  display: inline-flex;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 5px;
  margin-right: 8px;
}
.prompt-card { padding: 18px; display: flex; flex-direction: column; }
.prompt-card p {
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card-top span, .card-top b, .tags em {
  display: inline-flex;
  border-radius: 6px;
  padding: 5px 8px;
  background: #edf7f5;
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.card-top b { background: var(--accent); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tags em { background: var(--paper); color: var(--muted); }
.detail-card, .panel { padding: 24px; }
pre {
  white-space: pre-wrap;
  overflow: auto;
  background: #0d1b20;
  color: #effdf8;
  border-radius: 8px;
  padding: 18px;
  line-height: 1.65;
}
.breadcrumbs { color: var(--muted); margin-bottom: 18px; }
.notice {
  border-left: 4px solid var(--primary);
  background: #edf7f5;
  padding: 14px;
  border-radius: 6px;
  color: var(--muted);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.footer { border-top: 1px solid var(--line); padding: 28px 20px; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid, .filters, .category-tiles, .prompt-grid, .admin-grid, .page-tiles { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
}
