:root {
  color: #26332d;
  background: #f7f7f1;
  font: 16px/1.5 system-ui, sans-serif;
  --accent: #234e3d;
  --muted: #565f57;
  --border: #dfe4d9;
  --panel: #fffefa;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a, button, input, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid #36775b; }
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 80px);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; font-size: 21px; font-weight: 700; text-decoration: none; letter-spacing: -.04em; }
.mark { width: 27px; height: 27px; border: 1px solid #608371; border-radius: 50%; position: relative; }
.mark::before, .mark::after { content: ""; position: absolute; border-radius: 50%; inset: 5px; background: #d8e7d6; }
.mark::after { inset: 9px; background: var(--accent); }
.layout { width: min(100% - 36px, 720px); margin: clamp(38px, 9vw, 90px) auto 70px; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(46px, 8vw, 76px); }
h2 { font-size: 36px; margin-bottom: 24px; }
.intro { margin-bottom: 30px; }
.muted { color: var(--muted); margin: 14px 0 0; }
.notice { margin: 0 0 16px; padding: 11px 14px; border-radius: 8px; background: #ecf0e8; overflow-wrap: anywhere; }
.notice.error { background: #f7e9e0; color: #6f3325; }
.panel { padding: clamp(22px, 5vw, 36px); background: var(--panel); border: 1px solid var(--border); border-radius: 18px; }
.login { width: min(100%, 420px); margin: 0 auto; }
.login h1 { font-size: clamp(38px, 7vw, 49px); margin-bottom: 26px; }
label { display: block; font-weight: 550; }
.panel label { margin-bottom: 16px; }
input:not([type=checkbox]), textarea {
  display: block; width: 100%; min-width: 0; min-height: 45px; padding: 10px 12px;
  color: inherit; background: #fff; border: 1px solid #c8d0c5; border-radius: 8px;
}
.panel input, .panel textarea { margin-top: 5px; }
textarea { resize: vertical; }
.primary { min-height: 44px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--accent); color: #fff; background: var(--accent); font-weight: 650; }
.primary:hover:not(:disabled) { background: #183b2b; }
.text-button { min-height: 40px; padding: 4px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--accent); font-weight: 600; }
.text-button:hover { background: #ebefe6; }
.composer { display: flex; gap: 9px; margin-bottom: 29px; }
.composer input { margin: 0; }
.composer button { flex: none; }
.list-toolbar { display: flex; gap: 6px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters { display: flex; gap: 2px; flex-wrap: wrap; }
.filters button { min-height: 38px; background: transparent; color: var(--muted); border: 1px solid transparent; padding: 5px 10px; border-radius: 7px; }
.filters button[aria-pressed=true] { color: var(--accent); background: #e6eee2; border-color: #d9e3d5; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px;
  min-height: 66px; padding: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
}
.completion { display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
.completion input { width: 19px; height: 19px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.task-copy { align-self: center; overflow-wrap: anywhere; }
.task-title { font-weight: 650; }
.task[data-completed=true] .task-title { text-decoration: line-through; color: var(--muted); }
.task-notes { color: var(--muted); margin: 3px 0 0; white-space: pre-wrap; font-size: .93rem; }
.empty { color: var(--muted); background: var(--panel); padding: 23px 15px; text-align: center; border: 1px solid var(--border); border-radius: 10px; }
dialog { width: min(94vw, 520px); padding: 0; color: inherit; border: 0; border-radius: 18px; }
dialog::backdrop { background: #182c24aa; }
.actions { display: flex; gap: 12px; justify-content: flex-end; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 360px) {
  .filters button { padding-inline: 6px; }
  .task { gap: 5px; padding-inline: 7px; }
}
