:root { font-family: system-ui, sans-serif; color: #18312e; background: #f3f6f1; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 940px; margin: auto; padding: 20px clamp(16px, 4vw, 36px) 48px; }
header, .intro, footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header { border-bottom: 1px solid #cbd8d1; padding-bottom: 18px; color: #455b54; font-size: .85rem; }
.brand { font-weight: 800; font-size: 1.2rem; color: #17624d; }
.intro { margin-top: 22px; }
h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 3rem); }
h2 { margin-top: 0; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; min-height: 44px; border-radius: 10px; }
button { background: #17624d; color: white; border: 1px solid transparent; padding: 8px 14px; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.secondary { background: white; color: #17624d; border-color: #bed0c5; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 630; min-width: 0; }
input, select, textarea { color: inherit; width: 100%; min-width: 0; padding: 8px; background: white; border: 1px solid #aebfb5; }
textarea { min-height: 88px; }
#filters { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
#filters:not([hidden]), dialog form { display: grid; }
dialog form { gap: 12px; }
#tasks { display: grid; gap: 10px; }
.card, .empty { background: white; border: 1px solid #cfdcd4; border-radius: 14px; padding: 16px; color: inherit; text-align: left; overflow-wrap: anywhere; }
.card.urgent { background: #fff0ef; border-color: #d94a45; }
.card.working { background: #fff; border-color: #cfdcd4; }
.card.done { background: #eaf7ef; border-color: #54a66e; }
.project { display: block; color: #17624d; font-size: .85rem; font-weight: 750; margin-bottom: 5px; }
.card small { display: block; margin-top: 6px; color: #455b54; font-weight: 450; }
.card strong { display: block; }
.error, .overdue { color: #9d2c29; }
dialog { width: min(540px, calc(100% - 24px)); max-height: 90dvh; padding: 20px; border: 1px solid #baccc0; border-radius: 16px; color: inherit; overflow-wrap: anywhere; }
dialog::backdrop { background: #142d29a8; }
#detail-body { margin-bottom: 14px; }
#detail-body ul { padding-left: 20px; }
@media (max-width: 680px) { #filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
