:root { color-scheme: light; font: 16px/1.55 system-ui, sans-serif; color: #212722; background: #f4f7f1; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 65rem; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3rem); }
header { min-height: 5rem; border-bottom: 1px solid #cbd6ca; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: #212722; font-size: 1.6rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.brand span { color: #317449; }
main { max-width: 47rem; margin: clamp(2.5rem, 8vw, 6rem) auto; }
h1 { font-size: clamp(2.3rem, 8vw, 5rem); line-height: 1.02; letter-spacing: -.065em; margin: 0; }
h2 { margin: 0; font-size: 1.3rem; }
.intro { font-size: 1.15rem; max-width: 34rem; margin: 1.25rem 0 2rem; }
form { display: grid; gap: .75rem; margin-top: 1.5rem; }
label { font-weight: 650; }
input, textarea, select { width: 100%; padding: .9rem 1rem; border: 1px solid #a7b5a6; border-radius: .65rem; background: #fff; color: inherit; font: inherit; }
textarea { resize: vertical; min-height: 7rem; }
.actions, .link-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
button { font: inherit; font-weight: 650; border-radius: .55rem; cursor: pointer; padding: .6rem .85rem; }
.primary { background: #215b38; border: 1px solid #215b38; color: #fff; padding: .8rem 1.2rem; }
.primary:disabled { opacity: .65; cursor: default; }
.quiet { color: #215b38; background: transparent; border: 1px solid #a7b5a6; }
a { color: #215b38; overflow-wrap: anywhere; }
.panel { margin-top: 2rem; background: #fff; border: 1px solid #cbd6ca; border-radius: .75rem; padding: clamp(1rem, 4vw, 1.6rem); }
.error { color: #9c2925; }
code { overflow-wrap: anywhere; }
.prompt-template { border: 1px solid #cbd6ca; border-radius: .65rem; padding: .65rem .9rem; }
.prompt-template summary { cursor: pointer; font-weight: 650; }
.prompt-template pre { margin: .75rem 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.template-status { margin: .5rem 0 0; color: #9c2925; }
.template-status:empty { margin: 0; }

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }
[hidden] { display: none !important; }

.admin-entry {
  position: fixed;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #215b38;
  font: 1.25rem/1 Georgia, serif;
  cursor: default;
  opacity: 0;
  transition: opacity 150ms ease, visibility 150ms;
}
.admin-entry:hover { opacity: 1; }
.admin-entry[data-scrolled] { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .admin-entry { transition: none; }
}
