:root {
    color-scheme: light;
    font: 16px/1.5 system-ui, sans-serif;
    color: #25202b;
    background: #faf9fb;
    --muted: #625969;
    --border: #e9e2eb;
    --primary: #a52264;
    --accent-gradient: linear-gradient(135deg, #ad2869, #7337a9);
    --avatar-gradient: linear-gradient(135deg, #f8ae63, #df5091 52%, #8553c7);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--primary); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #117fbb; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.top { position: sticky; top: 0; z-index: 2; background: white; border-bottom: 1px solid var(--border); }
.nav, .nav nav, .brand { display: flex; align-items: center; gap: .7rem; }
.nav { min-height: 72px; justify-content: space-between; flex-wrap: wrap; padding-block: .5rem; }
.brand { color: inherit; font-weight: 850; letter-spacing: -.03em; text-decoration: none; }
.account { overflow-wrap: anywhere; }
.mark, .avatar { display: inline-grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: .7rem; background: #fbe9f3; color: #075b4c; font-weight: 800; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.mark { background: var(--accent-gradient); color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .9rem; border: 1px solid transparent; border-radius: .65rem; text-decoration: none; font-weight: 700; }
.primary { background: var(--accent-gradient); color: white; }
.primary:hover { background: #86184f; }
.secondary { background: white; color: #243b4d; border-color: var(--border); }
.secondary:hover { background: #f8f0f6; }
.board { padding-block: 2rem 3rem; }
.board:has(.task-feed) { max-width: 720px; margin-inline: auto; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; background: linear-gradient(112deg,#fff3e9,#fbeaf4 55%,#f3ecff); border: 1px solid #f0dfed; border-radius: 1.4rem; padding: clamp(1.25rem, 5vw, 3rem); }
.eyebrow { color: #90205b; font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.05em; line-height: 1.12; margin-block: .45rem .65rem; }
.hero p:last-child, .muted, .empty p { color: var(--muted); }
.panel { background: white; border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 4px 16px #44224f0b; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-block: 1rem; }
.stat { text-align: left; color: inherit; padding: clamp(.65rem, 2vw, 1.15rem); }
.stat:hover, .stat[aria-pressed="true"] { border-color: #ae377c; }
.stat strong { display: block; font-size: 1.75rem; margin-top: .3rem; }
.badge { display: inline-flex; width: fit-content; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 2rem; font-size: .8rem; font-weight: 750; }
.todo { color: #46556c; background: #eef1f8; }
.doing { color: #78460b; background: #fff0d8; }
.done { color: #075b4c; background: #def5eb; }
.list-head, .task, .pagination { padding: 1rem 1.25rem; }
.list-head h2 { display: flex; align-items: center; gap: .6rem; }
.total { border-radius: 2rem; background: #edf2f6; padding: .1rem .55rem; font-size: .85rem; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: .7rem; margin-top: 1rem; }
label { display: grid; gap: .3rem; min-width: 0; color: #34485b; font-size: .87rem; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; padding: .55rem .65rem; border: 1px solid #bccdd8; border-radius: .6rem; background: white; color: #25202b; }
textarea { resize: vertical; }
.task-feed { display: grid; gap: 1rem; }
.task { display: grid; gap: .85rem; background: white; border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 4px 16px #44224f0b; }
.task-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.task-header .person { font-weight: 750; }
.task-text, .person { overflow-wrap: anywhere; }
.task-text p { white-space: pre-wrap; color: var(--muted); }
.person { display: flex; align-items: center; gap: .5rem; }
.avatar { width: 2.35rem; height: 2.35rem; border: 2px solid transparent; border-radius: 50%; background: linear-gradient(#fff5fa, #fff5fa) padding-box, var(--avatar-gradient) border-box; color: #842759; font-size: .9rem; }
.empty { padding: 3rem 1rem; text-align: center; border-top: 1px solid var(--border); }
.empty h3 { margin-block: .65rem .25rem; }
.pagination, .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pagination { border-top: 1px solid var(--border); }
.auth { max-width: 480px; margin: 2rem auto; padding: clamp(1rem, 5vw, 2rem); }
.stack { display: grid; gap: .85rem; margin-block: 1rem; }
dialog { width: min(480px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 1.25rem; border: 1px solid var(--border); border-radius: 1rem; color: inherit; }
dialog::backdrop { background: #25202b70; }
.error { color: #a02039; }
.notice { color: var(--primary); }
@media (max-width: 760px) {
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav nav { flex-wrap: wrap; }
}
@media (max-width: 380px) {
    .shell { width: calc(100% - 1rem); }
    .stats { gap: .35rem; }
    .badge { padding-inline: .4rem; }
}
.landing { margin-block: 2rem; }
.landing .notice { margin-top: 1rem; }
.auth-resend { max-width: 480px; margin: 1rem auto; padding: 1rem 1.25rem; }
.auth-resend summary { cursor: pointer; font-weight: 650; }
.admin-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: end; gap: .8rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.task-actions select { width: auto; }
.task-actions .button { font-size: .82rem; padding: .4rem .55rem; }
.danger, .task-text .error { color: #a02039; }
.task-text .deadline { margin-top: .35rem; font-size: .86rem; }
.attachment { display: block; margin-top: .75rem; background: #f8f4f9; border-radius: .75rem; }
.attachment img { display: block; width: auto; max-width: 100%; max-height: 280px; margin-inline: auto; object-fit: contain; border-radius: inherit; }
@media (max-width: 760px) {
    .admin-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.task-discussion { border-top: 1px solid var(--border); padding-top: .55rem; }
.task-social { display: flex; flex-wrap: wrap; gap: .4rem; }
.task-social .button { border-color: transparent; font-size: .85rem; padding-inline: .55rem; }
.task-social .icon { width: 1.35em; height: 1.35em; }
.task-social [aria-pressed="true"] .icon { fill: #f2a7cd; color: #a52264; }
.task-social [aria-pressed="true"] { background: #fbe9f3; border-color: #ae377c; }
.task-comments { max-width: 640px; }
.task-comments .primary { justify-self: start; }
.task-comment { padding-block: .65rem; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.task-comment time { margin-inline-start: .4rem; font-size: .8rem; }
.task-comment p { white-space: pre-wrap; }

.image-remove { display: flex; align-items: center; }
.image-remove input { width: auto; }
