:root {
    color-scheme: light;
    font: 16px/1.5 system-ui, sans-serif;
    color: #262925;
    background: #f5f5ef;
    --ink: #262925;
    --muted: #585e53;
    --surface: #fff;
    --line: #d9ddd1;
    --accent: #244d3c;
    --soft: #e7eee5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; padding: 1rem max(1.25rem, calc((100% - 72rem) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -.05em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav, .actions, .tabs, .row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
main { width: min(72rem, calc(100% - 2.5rem)); margin: 2.75rem auto 6rem; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1 { font: 500 clamp(2rem, 5vw, 3.8rem)/1.08 Georgia, serif; letter-spacing: -.035em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { color: var(--muted); overflow-wrap: anywhere; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.7rem); margin: 1rem 0; }
.panel.narrow { max-width: 34rem; margin: 2rem auto; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.stack { display: grid; gap: .8rem; }
label { display: grid; gap: .3rem; font-weight: 600; overflow-wrap: anywhere; }
label.check { display: flex; align-items: center; gap: .45rem; }
input, select, textarea, button, .button { font: inherit; }
input:not([type=checkbox]), select, textarea { width: 100%; padding: .64rem .75rem; border: 1px solid #aeb6a8; color: var(--ink); background: #fff; border-radius: .5rem; }
button, .button { cursor: pointer; border: 1px solid transparent; border-radius: .5rem; padding: .57rem .95rem; color: white; background: var(--accent); font-weight: 650; text-decoration: none; }
button.secondary, .button.secondary { background: #fff; color: var(--accent); border-color: #bbc8bb; }
button[aria-pressed=true] { background: var(--soft); color: var(--accent); border-color: var(--accent); }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #52856d; outline-offset: 3px; }
.tabs { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 12rem),1fr)); gap: 1rem; margin: 1rem 0; }
.card { background: white; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.card-body { padding: .85rem; overflow-wrap: anywhere; }
.image-button { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: var(--soft); }
.image-button img, .cover { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--soft); }
figure { margin: .8rem 0 0; }
figure img { display: block; max-width: 100%; max-height: 72vh; margin: auto; }
dialog { width: min(60rem, calc(100% - 2rem)); border: 0; border-radius: 1rem; padding: 1rem; }
dialog::backdrop { background: #1c2a23bf; }
#notice { padding: .7rem 1rem; border-radius: .5rem; margin-bottom: 1rem; background: var(--soft); }
#notice.error { background: #f9e7e2; color: #74281d; }
.selection-bar { position: sticky; z-index: 2; bottom: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: .7rem; box-shadow: 0 5px 25px #23322522; }
.meta { color: var(--muted); font-size: .9rem; }
.long-value { overflow-wrap: anywhere; }
.upload-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; border-bottom: 1px solid var(--line); padding: .5rem 0; }
article + article { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
@media (max-width: 38rem) { main { margin-top: 1.5rem; } nav button { padding-inline: .65rem; } .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .card-body { padding: .55rem; } }
