:root {
  color-scheme: light;
  --ink: #142d26;
  --muted: #4b6057;
  --paper: #f6f4ed;
  --surface: #fffefa;
  --line: #d7ddd2;
  --green: #275b46;
  --lime: #d8eea6;
  font: 100%/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 3px solid #447b56; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .7rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner, .board-head, .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top-inner { min-height: 4.4rem; padding-block: .6rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.17rem; font-weight: 750; text-decoration: none; }
.brand img { border-radius: .55rem; }
nav, .tabs, .card-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.button { min-height: 2.75rem; border: 1px solid transparent; border-radius: .55rem; padding: .5rem .85rem; font-weight: 650; color: var(--ink); background: transparent; }
.button:hover { text-decoration: underline; text-underline-offset: .2em; }
.quiet { border-color: var(--line); background: var(--surface); }
.subtle { color: var(--green); }
.primary { background: var(--lime); color: var(--ink); padding-inline: 1rem; }
.primary span { margin-left: .55rem; }
.intro { background: var(--ink); color: var(--surface); }
.intro-inner { min-height: 16rem; display: grid; align-content: center; padding-block: clamp(2.4rem, 7vw, 4.5rem); }
.intro h1 { font: 500 clamp(2.7rem, 8vw, 5rem)/.98 Georgia, serif; letter-spacing: -.055em; }
.intro p { max-width: 42ch; margin: 1rem 0 1.3rem; color: #e4eee7; }
.board { padding-block: 2rem 2.8rem; }
.board-head { flex-wrap: wrap; margin-bottom: 1rem; }
h2 { font: 500 clamp(1.65rem, 4vw, 2rem)/1.16 Georgia, serif; letter-spacing: -.025em; }
.tabs button { background: transparent; color: var(--green); border: 1px solid transparent; border-radius: .5rem; min-height: 2.75rem; padding: .4rem .65rem; font-weight: 650; }
.tabs button[aria-pressed="true"] { background: #e4eddf; border-color: #ccd9c8; color: var(--ink); }
.filters { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
label { display: grid; gap: .28rem; color: var(--ink); font-size: .92rem; font-weight: 600; min-width: 0; }
input, select, textarea { min-height: 2.75rem; width: 100%; border: 1px solid #aabcb0; border-radius: .45rem; background: white; color: var(--ink); padding: .44rem .58rem; font-size: 1rem; }
textarea { resize: vertical; min-height: 6rem; }
.count { margin-block: 1rem .7rem; color: var(--muted); font-size: .88rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.card { display: flex; flex-direction: column; gap: .48rem; border: 1px solid var(--line); padding: 1rem; background: var(--surface); border-radius: .75rem; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .32rem; font-size: .82rem; }
.category { color: var(--green); font-weight: 650; }
.status { padding: .14rem .48rem; border-radius: .28rem; background: #e8eee7; color: #294a39; }
.status[data-status="aberto"] { background: #e4efcd; color: #2b461e; }
.status[data-status="combinado"] { background: #f6e9c8; color: #5c4320; }
.card h3 { font-size: 1.13rem; line-height: 1.24; }
.district { color: var(--muted); font-size: .86rem; }
.description { color: var(--muted); white-space: pre-wrap; }
.card-actions { padding-top: .45rem; margin-top: auto; }
.notice { padding: .68rem .85rem; border: 1px solid #dbca99; border-radius: .45rem; background: #fff2ce; color: #51401b; margin-bottom: 1rem; overflow-wrap: anywhere; }
.footer { color: var(--muted); border-top: 1px solid var(--line); padding-block: 1.1rem 1.6rem; font-size: .86rem; }
dialog { width: min(35rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.15rem; color: var(--ink); background: var(--surface); overflow: auto; }
dialog::backdrop { background: #142d2680; }
.dialog-head { margin-bottom: 1rem; }
.dialog-head button { min-width: 2.75rem; padding: .3rem; font-size: 1.2rem; }
.dialog-form, #dialog-body { display: grid; gap: .75rem; overflow-wrap: anywhere; }
#dialog-feedback { margin-top: .75rem; color: #764a17; }
.empty { grid-column: 1 / -1; padding: 1.15rem; border: 1px dashed #aabcb0; border-radius: .55rem; color: var(--muted); }
@media (max-width: 54rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .filters, .cards { grid-template-columns: minmax(0, 1fr); }
  .board-head { align-items: flex-start; gap: .55rem; }
}
