:root {
  color-scheme: light;
  --ink: #12251f;
  --muted: #52665d;
  --green: #12624a;
  --line: #d9e5de;
  --paper: #f6f9f5;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--green); text-underline-offset: .19em; }
a:hover { color: #0d4636; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #47aa86; outline-offset: 3px; }
.wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid var(--line); }
.bar, nav, .footer, .section-head, .card-foot, .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar { min-height: 68px; }
.brand { font-size: 1.15rem; font-weight: 850; letter-spacing: .12em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--green); }
nav a { font-weight: 650; text-decoration: none; }
main { min-height: 68vh; }
.hero { margin: 1.6rem 0 2.5rem; padding: clamp(1.6rem, 5vw, 4.8rem); border-radius: 20px; background: radial-gradient(ellipse at 90% 15%, #d9edcf, transparent 60%), #e7f2e9; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; font-weight: 800; color: var(--green); }
h1, h2, p { margin-top: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.3rem); letter-spacing: -.04em; line-height: 1.09; margin-bottom: .75em; }
h2 { letter-spacing: -.025em; margin-bottom: .5em; }
.hero p, .muted, .empty p, .card p, .section-head span { color: var(--muted); }
.hero p, .empty p { margin-bottom: 0; }
.section-head { margin-bottom: 1rem; }
.section-head h1, .section-head h2 { margin: 0; }
.filters, .fields { display: grid; grid-template-columns: 1fr minmax(150px, .45fr) auto; gap: .65rem; margin-bottom: 1.2rem; }
input, select, textarea { width: 100%; padding: .75rem .85rem; background: white; border: 1px solid #aebfb5; border-radius: 8px; color: inherit; font: inherit; }
textarea { resize: vertical; }
button, .button { background: var(--green); color: white; padding: .72rem 1.15rem; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
button:hover, .button:hover { background: #0d4636; color: white; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.card, .panel, .empty, .manage { background: white; border: 1px solid var(--line); border-radius: 14px; }
.card { overflow: hidden; max-width: 420px; }
.card-body, .panel, .empty { padding: clamp(1rem, 2.5vw, 1.65rem); }
.card h2 { font-size: 1.25rem; margin-top: .65rem; }
.card h2 a { color: var(--ink); }
.card-foot { border-top: 1px solid var(--line); padding-top: .9rem; }
.cover { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: contain; background: #edf4ed; }
.placeholder { display: grid; place-items: center; background: linear-gradient(140deg, #e7f3ea, #d2e7d3); }
.placeholder span { font-size: 2.8rem; color: #267257; font-weight: 850; }
.tag { display: inline-block; padding: .25rem .55rem; background: #eaf4ed; color: #174f3c; border-radius: 6px; font-size: .8rem; font-weight: 700; overflow-wrap: anywhere; }
.empty { grid-column: 1 / -1; text-align: center; padding-block: 2.5rem; }
.crumb, .admin-head { margin-top: 1.5rem; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.detail h1 { margin-top: .6rem; }
.detail .cover { border-radius: 14px; }
.cost { font-size: 1.5rem; font-weight: 750; }
.note { background: #eff6ef; padding: .8rem; border-radius: 7px; margin-bottom: 0; }
.description { margin-top: 1rem; }
.description p { white-space: pre-wrap; line-height: 1.6; }
.manage { margin: 0; padding: 0; list-style: none; }
.manage li { display: grid; grid-template-columns: 2fr 1fr .7fr .8fr; align-items: center; gap: .8rem; padding: 1rem; overflow-wrap: anywhere; }
.manage li + li { border-top: 1px solid var(--line); }
.manage .tag { justify-self: start; }
.form-panel { max-width: 800px; }
.editor { display: grid; gap: 1rem; }
.editor label { display: grid; gap: .35rem; font-weight: 650; }
.editor .check { display: flex; align-items: center; }
.check input { width: auto; }
.editor .fields { grid-template-columns: 1fr 1fr; margin: 0; }
.editor p { margin: .25rem 0; }
.editor .cover { max-width: 180px; margin-bottom: .5rem; }
.form-actions { justify-content: flex-start; }
.notice { padding: .8rem; color: #821f24; background: #fff2f2; }
.footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1.3rem; color: var(--muted); }
@media (max-width: 610px) {
  .wrap { width: calc(100% - 28px); }
  .filters, .detail, .editor .fields { grid-template-columns: 1fr; }
  .manage li { grid-template-columns: 1fr 1fr; }
  .footer { align-items: flex-start; flex-direction: column; }
}
