:root {
  color-scheme: light;
  --pc-ink: #1f2a24;
  --pc-muted: #5c6b62;
  --pc-paper: #f3f6f2;
  --pc-panel: #ffffff;
  --pc-line: #d5ddd6;
  --pc-accent: #2f6b4f;
  --pc-accent-ink: #f4fff8;
}

body.pc-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 107, 79, 0.12), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(180, 140, 60, 0.1), transparent 36%),
    var(--pc-paper);
  color: var(--pc-ink);
}

.pc-wrap {
  width: min(40rem, calc(100vw - 2rem));
  padding: 1.5rem 0 2rem;
}

.pc-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-muted);
}

.pc-wrap > h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.pc-lede {
  margin: 0 0 1.15rem;
  color: var(--pc-muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.pc-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--pc-muted);
}

.pc-note a { color: inherit; }

.pc-widget,
.article-pinecone {
  background: var(--pc-panel);
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 10px 28px rgba(31, 42, 36, 0.06);
}

.article-pinecone {
  margin-top: 0.85rem;
  margin-bottom: 1.15rem;
}

.pc-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.pc-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pc-input {
  flex: 1 1 12rem;
  min-width: 0;
  border: 1px solid var(--pc-line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--pc-ink);
  background: #fbfcfb;
}

.pc-input:focus {
  outline: 2px solid rgba(47, 107, 79, 0.35);
  border-color: var(--pc-accent);
}

.pc-btn {
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  background: var(--pc-accent);
  color: var(--pc-accent-ink);
}

.pc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0.35rem;
}

.pc-chip {
  border: 1px solid var(--pc-line);
  background: #f7faf7;
  color: var(--pc-ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.pc-chip:hover {
  border-color: var(--pc-accent);
}

.pc-status {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  color: var(--pc-muted);
  min-height: 1.2em;
}

.pc-status[data-pc-blocked="1"],
.pc-status.is-error {
  color: #8a3b2d;
}

.pc-results {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.pc-hit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  background: #fbfcfb;
}

.pc-hit:not(.pc-hit--image) {
  grid-template-columns: 1fr;
}

.pc-hit__thumb {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--pc-line);
  background: #eee;
}

.pc-hit__meta {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pc-muted);
}

.pc-hit__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}

.pc-hit__title a {
  color: inherit;
  text-decoration: none;
}

.pc-hit__title a:hover {
  text-decoration: underline;
}

.pc-hit__snippet {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #334038;
}

.pc-hit__score {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--pc-muted);
}
