:root {
  color-scheme: light;
  --background: #f6f4ed;
  --surface: #fffef9;
  --text: #162b28;
  --muted: #425852;
  --line: #d9ded6;
  --brand: #134744;
  --accent: #f4e4ad;
  --error: #8c2e20;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: var(--brand); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #b2612d; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: 1.42rem; }

.wrap { width: min(100% - 2rem, 52rem); margin-inline: auto; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: .85rem;
}
.brand { font-size: 1.2rem; font-weight: 800; text-decoration: none; }
main { padding-block: clamp(1.25rem, 4vw, 2.5rem) 3rem; }
.intro {
  display: grid;
  gap: .55rem;
  padding: clamp(1.3rem, 5vw, 2.75rem);
  margin-bottom: 1.25rem;
  color: white;
  background: var(--brand);
  border-radius: 1rem;
}
.intro > p:last-child { color: #e3f0e7; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 700; }
.notice {
  padding: .8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .6rem;
  color: var(--muted);
}
.notice.error { color: var(--error); border-color: #dec2b8; }
.actions, .sections { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
.actions { margin-top: .9rem; }
.sections { border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.sections a { padding-block: .3rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem .95rem;
  background: var(--brand);
  color: white;
  border: 1px solid var(--brand);
  border-radius: .55rem;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}
.button.secondary { background: var(--surface); color: var(--brand); }
.button:disabled { background: #e0e5df; border-color: var(--line); color: var(--muted); cursor: default; }
.dashboard-section { display: grid; gap: .7rem; margin-top: 1.5rem; }
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.card {
  min-width: 0;
  display: grid;
  gap: .65rem;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.card h3 { font-size: 1rem; }
.card .actions { margin-top: 0; }
.meta { color: var(--muted); font-size: .925rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { padding: .16rem .55rem; border-radius: .45rem; background: #e5ede5; font-size: .875rem; }
.total { font-weight: 700; }
