:root {
    color-scheme: light;
    --green: #163b32;
    --paper: #f8f6f0;
    --line: #d7dfd4;
    font-family: system-ui, sans-serif;
    color: var(--green);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
header { background: var(--green); color: white; display: flex; align-items: center; gap: 16px; padding: 14px clamp(14px, 4vw, 48px); flex-wrap: wrap; }
.brand { margin-right: auto; font-size: 20px; font-weight: 750; text-decoration: none; }
.brand small { display: block; font-size: 12px; font-weight: 500; }
header a { font-size: 14px; }
main { margin: 0 auto; padding: 24px 16px 70px; }
.wide { max-width: 1040px; }
.narrow { max-width: 480px; }
h1 { margin: 12px 0 22px; font-size: clamp(24px, 5vw, 34px); }
h2 { font-size: 20px; margin: 0 0 12px; }
p { line-height: 1.55; }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; font-weight: 650; }
nav a[aria-current] { color: white; background: var(--green); }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
label { display: grid; gap: 6px; font-weight: 650; margin: 0 0 16px; overflow-wrap: anywhere; }
small,.help { color: #52655b; font-size: 13px; font-weight: 400; }
.brand small { color: #e5eee7; }
input,textarea,select,button { font: inherit; }
input,textarea,select { width: 100%; min-width: 0; padding: 10px 12px; min-height: 44px; border: 1px solid #a9b8ac; border-radius: 7px; background: #fff; color: var(--green); font-size: 16px; }
input[type=file] { padding: 9px; }
textarea { resize: vertical; }
button,.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: 9px 14px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.quiet { border-color: #a4baad; }
.danger { background: #fff; color: #8a3027; border-color: #dab1aa; }
:focus-visible { outline: 3px solid #9b773b; outline-offset: 3px; }
.notice,.error { padding: 12px 14px; border-radius: 8px; background: #dfeee3; }
.error { background: #fae4de; color: #78281e; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.list-heading h2,.list-heading label { margin: 0 0 12px; }
.media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.media-grid .panel { margin: 0; }
summary { cursor: pointer; min-height: 44px; align-content: center; }
details[open] summary { margin-bottom: 16px; }
.media-item summary { display: flex; gap: 12px; align-items: center; overflow-wrap: anywhere; }
.media-item summary::after { content: '+'; margin-left: auto; font-size: 22px; }
.media-item[open] summary::after { content: '−'; }
.media-item img { width: 55px; height: 55px; object-fit: cover; border-radius: 7px; }
.media-item strong,.media-item small { display: block; }
.check { display: flex; align-items: center; }
.check input { width: 22px; height: 22px; min-height: 22px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.savebar { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 max(12px,env(safe-area-inset-bottom)); }
progress { width: 100%; margin-top: 14px; accent-color: var(--green); }
[hidden] { display: none !important; }
@media (max-width: 620px) {
    .media-grid { grid-template-columns: minmax(0,1fr); }
    .panel { padding: 14px; }
    #uploader > button,.savebar button { width: 100%; }
}

/* v3: readable mobile administration and supporting pages */
body{font-size:18px;line-height:1.65;-webkit-text-size-adjust:100%;text-size-adjust:100%}
header a{font-size:17px}.brand{font-size:23px}.brand small{font-size:15px}
small,.help{font-size:16px;line-height:1.7}input,textarea,select{font-size:18px;line-height:1.5}button,.button,nav a{font-size:18px;line-height:1.5}h2{font-size:24px}summary{line-height:1.7}.check{line-height:1.7}
@media(max-width:620px){main{padding-bottom:85px}.media-item summary{gap:10px}.media-item strong{font-size:18px}.media-item small{font-size:15px}.list-heading{flex-wrap:wrap}.panel{padding:18px}.brand{font-size:22px}}
