:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, sans-serif;
  color: #252e26;
  background: #f7f5ef;
  --paper: #fffdfa;
  --green: #315b43;
  --mint: #e2eee2;
  --muted: #515d53;
  --line: #dfdfd4;
  --rose: #fae8e4;
  --red: #903d35;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: var(--green); text-underline-offset: .22em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #657e4e; outline-offset: 3px; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); background: white; padding: .5rem; }
.skip:focus { transform: none; z-index: 2; }
.shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: #fffdfa; }
.topbar-inner, .profile, .actions, .feed-head { display: flex; align-items: center; gap: .75rem; }
.topbar-inner { min-height: 4.3rem; justify-content: space-between; }
.brand { color: #243b2b; text-decoration: none; font-size: 1.32rem; font-weight: 760; display: inline-flex; gap: .65rem; align-items: center; }
.brand-mark { display: inline-block; position: relative; width: 2rem; height: 2rem; border-radius: .65rem; background: var(--mint); }
.brand-mark::before { content: ""; position: absolute; width: .65rem; height: .65rem; top: .46rem; left: .46rem; border: 2px solid var(--green); border-radius: 50%; }
.brand-mark::after { content: ""; position: absolute; width: .53rem; height: 2px; background: var(--green); transform: rotate(45deg); left: 1.08rem; top: 1.27rem; }
.profile { color: var(--muted); font-size: .875rem; min-width: 0; }
.profile span { min-width: 0; }
.profile form, .brand-mark { flex-shrink: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--line); padding-block: 1rem; }
.tabs a { font-weight: 650; color: var(--muted); text-decoration: none; padding: .55rem .8rem; border-radius: .65rem; }
.tabs a:hover, .tabs [aria-current] { background: var(--mint); color: var(--green); }
main { padding-block: 2.4rem 4rem; }
.site-footer { padding-block: 0 1.5rem; color: var(--muted); font-size: .875rem; }
.guest-main { padding-top: clamp(2rem, 9vw, 7rem); }
.auth-layout { display: grid; grid-template-columns: 1fr minmax(21rem, .72fr); align-items: stretch; gap: 1.5rem; max-width: 58rem; margin-inline: auto; }
.welcome { background: #e7eee1; border-radius: 1.5rem; padding: clamp(1.6rem, 5vw, 3.6rem); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: end; }
.welcome h1 { max-width: 14ch; }
.welcome p { max-width: 30ch; }
.decor { position: relative; width: 10rem; height: 8rem; margin-bottom: 1.25rem; transform: rotate(-9deg); }
.decor i { position: absolute; display: block; border-radius: .85rem; width: 7rem; height: 4rem; box-shadow: 0 6px 12px #283e2616; border: 1px solid #ffffffb0; }
.decor i:nth-child(1) { background: #f3e2d9; top: .7rem; left: 2.35rem; }
.decor i:nth-child(2) { background: #c9dcca; top: 1.5rem; left: 1.35rem; }
.decor i:nth-child(3) { background: #fffdfa; top: 2.4rem; left: .4rem; }
.decor span { position: absolute; top: 3.55rem; left: 1.4rem; width: 3.7rem; height: .38rem; border-radius: 1rem; background: #819c82; box-shadow: 0 .88rem 0 #dbe6d9; }
h1, h2 { margin: 0; line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
h2 { font-size: 1.35rem; }
p { margin: .65rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.1rem, 3.3vw, 2rem); border-radius: 1.3rem; min-width: 0; }
.auth-card { padding: clamp(1.5rem, 4vw, 2.6rem); }
.auth-card h2 { font-size: 2rem; }
.auth-card .fields { margin-top: 1.4rem; }
.auth-alternate { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.narrow { max-width: 31rem; margin-inline: auto; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.fields label { display: block; font-weight: 650; margin-bottom: .35rem; }
input, select { accent-color: var(--green); }
input:not([type="checkbox"], [type="hidden"]), select { display: block; width: 100%; min-width: 0; min-height: 2.85rem; padding: .58rem .8rem; color: inherit; border: 1px solid #bfc9bd; border-radius: .7rem; background: #fffefa; }
select { appearance: none; padding-right: 2.7rem; background: #fffefa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23315b43' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .8rem center no-repeat; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; vertical-align: middle; margin-right: .38rem; }
.helptext { display: block; color: var(--muted); margin-top: .45rem; font-size: .875rem; }
.helptext ul { padding-left: 1.2rem; }
.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .55rem 1rem; border: 1px solid transparent; border-radius: .7rem; text-decoration: none; font-weight: 700; cursor: pointer; text-align: center; }
.button:hover { filter: brightness(.93); }
.button:disabled { opacity: .65; cursor: wait; }
.primary { background: var(--green); color: white; }
.quiet { background: var(--mint); color: var(--green); }
.danger { background: var(--rose); color: var(--red); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .95rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.monitor h2 { margin-top: .8rem; }
.monitor h2 a { color: inherit; }
.pill { display: inline-block; padding: .2rem .55rem; border-radius: 2rem; background: var(--mint); color: var(--green); font-size: .875rem; }
.monitor dl { margin: 1rem 0; }
.monitor dl div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; padding: .38rem 0; border-bottom: 1px solid var(--line); }
dt, time { color: var(--muted); }
dd { margin: 0; }
.actions { flex-wrap: wrap; }
.monitor .actions { margin-top: 1rem; }
.editor { max-width: 42rem; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; }
.feed-head { justify-content: space-between; flex-wrap: wrap; }
.pagination { margin-top: 1rem; }
.listing-links { display: flex; flex-wrap: wrap; list-style: none; gap: .5rem 1rem; padding: .2rem 0; margin-bottom: 0; max-height: 16rem; overflow: auto; }
.errorlist, .error { background: var(--rose); color: var(--red); padding: .6rem .8rem; border-radius: .6rem; }
.errorlist { padding-left: 1.8rem; }
.messages { margin-bottom: 1rem; }
.messages p { background: var(--mint); color: var(--green); padding: .6rem .8rem; border-radius: .6rem; }
.messages .error { background: var(--rose); color: var(--red); }
.access-list + .access-list { margin-top: 1rem; }
.access-row { display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; overflow-wrap: anywhere; }
.access-row > div, .section-head > div { min-width: 0; }
[data-push-status]:empty { display: none; }
@media (max-width: 48rem) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .welcome { order: 2; padding: 1rem 1.15rem; border-radius: 1rem; }
  .welcome h1 { display: none; }
  .welcome p { max-width: none; margin: 0; }
  .decor { display: none; }
}
@media (max-width: 30rem) {
  .shell { width: calc(100% - 1.25rem); }
  .topbar-inner { min-height: 3.6rem; gap: .55rem; }
  .profile { gap: .4rem; }
  .profile .button { padding-inline: .6rem; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; padding-block: .5rem; }
  .tabs a { display: flex; align-items: center; min-height: 2.75rem; padding: .4rem .55rem; font-size: .875rem; }
  main { padding-block: 1.2rem 1.5rem; }
  .guest-main { padding-top: 1rem; }
  .auth-card { padding: 1.15rem; }
  .section-head { margin-bottom: 1rem; }
  .section-head > a { width: 100%; }
  .actions { gap: .4rem; }
}
