:root {
  --ink: #17151F; --ink2: #3B3847; --mu: #6E6A7C; --fa: #A19DAE; --line: #ECE9F2; --line2: #E1DDEA;
  --acc: #4C3AE3; --acc2: #6A5BFF;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --head: 'Geist', 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #F3F0F8; color: var(--ink); font: 400 14px/1.4 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.grow { flex: 1; }
svg { display: block; }

/* The soft mesh behind everything. */
.mesh { position: fixed; inset: 0; overflow: hidden; z-index: 0; background: linear-gradient(120deg, #ECE7FF 0%, #F6EAF3 48%, #FFF1E3 100%); }
.mesh i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .85; }
.mesh i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -22vw; background: #D9D1FF; }
.mesh i:nth-child(2) { width: 46vw; height: 46vw; right: -10vw; top: -14vw; background: #FFDCCB; }
.mesh i:nth-child(3) { width: 60vw; height: 40vw; left: 22vw; bottom: -24vw; background: #F6D3EC; }

.app { position: relative; z-index: 1; height: 100vh; min-width: 1000px; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- top bar */
.bar { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 24px; flex: none;
  background: rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(16px) saturate(1.3); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--head); letter-spacing: -.02em; }
.brand svg { width: 26px; height: 26px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--mu); font-size: 13px; padding-left: 16px; border-left: 1px solid var(--line2); }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs svg { width: 12px; height: 12px; fill: none; stroke: var(--fa); stroke-width: 1.6; }
.chip-sample { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line2); font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.chip-sample i { width: 6px; height: 6px; border-radius: 50%; background: #F08C00; }
.bell { position: relative; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink2); }
.bell svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.bell i { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #E8458B; box-shadow: 0 0 0 2px #fff; }
.me .face { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(40, 20, 90, .2); }

/* ---------------------------------------------------------------- header */
.head { padding: 18px 24px 12px; display: grid; gap: 14px; flex: none; }
.head__row { display: flex; align-items: center; gap: 22px; }
.head__row--tools { gap: 10px; }
.head__title h1 { margin: 0; font: 600 26px/1.1 var(--head); letter-spacing: -.03em; }
.head__sub { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; color: var(--mu); font-size: 13px; }
.pill-left { padding: 3px 9px; border-radius: 999px; background: #FFF4E0; color: #B26A00; font-weight: 600; font-size: 12px; }
.prog { display: grid; gap: 7px; width: 230px; margin-left: 10px; }
.prog__bar { height: 8px; border-radius: 8px; background: rgba(23, 21, 31, .08); overflow: hidden; }
.prog__bar b { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #6A5BFF, #2F9E44); transition: width .6s var(--ease); }
.prog__t { font-size: 12.5px; color: var(--mu); font-variant-numeric: tabular-nums; }
.people { display: flex; align-items: center; padding-left: 8px; }
.people button { margin-left: -8px; border-radius: 50%; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 0 0 2.5px #F7F3FB; position: relative; }
.people button:hover { transform: translateY(-2px); z-index: 2; }
.people button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px #F7F3FB, 0 0 0 4.5px var(--acc); z-index: 3; }
.people .face { width: 32px; height: 32px; border-radius: 50%; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 13px; border-radius: 11px; font-weight: 600; font-size: 13.5px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn--accent { background: var(--acc); color: #fff; box-shadow: 0 8px 20px -8px rgba(76, 58, 227, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--accent:hover { background: #3F2ED6; }
.btn--accent:active { transform: scale(.97); }
.btn--ghost { color: var(--ink2); }
.btn--ghost:hover { background: rgba(23, 21, 31, .05); }
.search { display: flex; align-items: center; gap: 8px; width: 230px; height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 1px 2px rgba(40, 20, 90, .05); color: var(--mu); }
.search:focus-within { border-color: var(--acc2); box-shadow: 0 0 0 3px rgba(106, 91, 255, .18); }
.search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; }
.search input { border: 0; outline: 0; background: none; min-width: 0; flex: 1; font-size: 13px; color: var(--ink); }
.labels { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.lchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink2); background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.lchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lchip:hover { background: rgba(255, 255, 255, .95); }
.lchip[aria-pressed="true"] { background: var(--bg); color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, transparent); font-weight: 600; }
.tog { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); font-size: 12.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.tog svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tog[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.clear { font-size: 12.5px; font-weight: 600; color: var(--acc); padding: 0 6px; white-space: nowrap; }
.clear:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- board */
.board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(232px, 1fr)); gap: 14px; padding: 4px 24px 0; overflow-x: auto; }
.col { display: flex; flex-direction: column; min-height: 0; border-radius: 18px 18px 0 0; padding: 10px 8px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .28)); border: 1px solid rgba(255, 255, 255, .8); border-bottom: 0;
  backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); transition: background .25s, box-shadow .25s; }
.col.is-target { background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45)); box-shadow: inset 0 0 0 1.5px rgba(106, 91, 255, .35); }
.col__h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.col__h .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d) 18%, transparent); }
.col__h h2 { margin: 0; font: 600 14px/1 var(--head); letter-spacing: -.01em; }
.col__h .count { padding: 3px 7px; border-radius: 999px; background: rgba(23, 21, 31, .06); color: var(--mu); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.col__h .count.is-over { background: #FDE6E6; color: #D9363C; }
.col__h .grow { flex: 1; }
.col__h .add { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--mu); }
.col__h .add:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.col__h .add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.col__list { flex: 1; min-height: 60px; overflow-y: auto; overflow-x: hidden; padding: 2px 2px 14px; display: flex; flex-direction: column; gap: 9px; scrollbar-width: none;
  mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); }
.col__list::-webkit-scrollbar { display: none; }
.col__new { display: flex; align-items: center; gap: 7px; margin: 2px 2px 10px; padding: 8px; border-radius: 10px; color: var(--mu); font-size: 13px; font-weight: 500; }
.col__new:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.col__new svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.composer { margin: 0 2px 10px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px -8px rgba(40, 20, 90, .25); display: grid; gap: 8px; }
.composer[hidden], .col__new[hidden] { display: none; }
.composer textarea { border: 0; outline: 0; resize: none; min-height: 52px; font-size: 13.5px; line-height: 1.4; }
.composer__row { display: flex; gap: 6px; justify-content: flex-end; }
.composer .btn { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }

.card { position: relative; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px 10px; cursor: grab; user-select: none;
  box-shadow: 0 1px 2px rgba(23, 21, 31, .04), 0 6px 14px -10px rgba(40, 20, 90, .18); transition: box-shadow .2s, border-color .2s, transform .2s var(--ease); outline: 0; }
.card:hover { border-color: #DCD6EA; box-shadow: 0 1px 2px rgba(23, 21, 31, .05), 0 12px 24px -12px rgba(40, 20, 90, .26); }
.card:focus-visible { box-shadow: 0 0 0 2px var(--acc2); }
.card[hidden] { display: none; }
.card__cover { margin: -5px -6px 10px; height: 88px; border-radius: 8px; overflow: hidden; }
.card__cover svg { width: 100%; height: 100%; }
.card__top { display: flex; align-items: flex-start; gap: 8px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.tags li { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--bg); color: var(--c); font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.card__id { font: 500 10.5px/20px var(--mono); font-variant-ligatures: none; color: var(--fa); letter-spacing: .02em; flex: none; }
.card__t { margin: 8px 0 0; font: 500 14px/1.36 var(--head); letter-spacing: -.008em; color: var(--ink); }
.card__meta { display: flex; align-items: center; gap: 10px; margin-top: 11px; color: var(--mu); font-size: 11.5px; font-weight: 500; }
.mi svg, .card__meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mi { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.due { padding: 2px 6px 2px 5px; border-radius: 6px; background: rgba(23, 21, 31, .05); }
.due.is-over { background: #FDE6E6; color: #D9363C; }
.due.is-today { background: #FFF1D6; color: #B26A00; }
.due.is-soon { color: #B26A00; }
.chk__bar { width: 26px; height: 4px; border-radius: 4px; background: rgba(23, 21, 31, .1); overflow: hidden; }
.chk__bar b { display: block; height: 100%; background: #6A5BFF; border-radius: 4px; transition: width .4s var(--ease); }
.chk.is-full { color: #2B8A3E; }
.chk.is-full .chk__bar b { background: #2F9E44; }
.avs { margin-left: auto; display: flex; }
.avs .face { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.avs .face + .face { margin-left: -6px; }
.col[data-col="done"] .card__t { color: var(--ink2); }
.card.just-moved { animation: settle .5s var(--ease); }
@keyframes settle { 0% { transform: scale(1.03); box-shadow: 0 20px 40px -14px rgba(40, 20, 90, .35); } 100% { transform: none; } }

/* drag */
.card.is-slot { background: rgba(106, 91, 255, .07); border: 1.5px dashed rgba(106, 91, 255, .5); box-shadow: none; }
.card.is-slot > * { visibility: hidden; }
.ghost { position: fixed !important; z-index: 60; margin: 0 !important; pointer-events: none; cursor: grabbing; transform-origin: 50% 40%;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ghost.lifted { transform: rotate(3deg) scale(1.04); border-color: #D8D0F4; box-shadow: 0 34px 60px -16px rgba(40, 20, 100, .38), 0 14px 26px -14px rgba(40, 20, 100, .3); }
.ghost.dropping { transition: left .24s var(--ease), top .24s var(--ease), transform .24s var(--ease), box-shadow .24s var(--ease); transform: none; }
body.dragging, body.dragging * { cursor: grabbing !important; }
.burst { position: fixed; z-index: 70; pointer-events: none; width: 0; height: 0; }
.burst i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--c); left: -3px; top: -3px; animation: burst .7s var(--ease) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }

.nomatch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 12px 18px; border-radius: 12px; background: rgba(255, 255, 255, .85); color: var(--mu); font-size: 13.5px; z-index: 5; }

/* ---------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; background: rgba(30, 20, 60, .18); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: 470px; max-width: calc(100vw - 20px); z-index: 40; background: #fff; border-radius: 18px; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(30, 20, 80, .4); transform: translateX(calc(100% + 30px)); transition: transform .42s var(--ease); }
.drawer.on { transform: none; }
.drawer__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer__id { font: 500 12px/1 var(--mono); font-variant-ligatures: none; color: var(--mu); }
.move { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mu); }
.move select { height: 30px; padding: 0 26px 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: #FAF9FC; font-size: 12.5px; font-weight: 600; color: var(--ink); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mu) 50%), linear-gradient(135deg, var(--mu) 50%, transparent 50%); background-position: right 12px top 13px, right 8px top 13px; background-size: 4px 4px; background-repeat: no-repeat; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--mu); }
.icon-btn:hover { background: rgba(23, 21, 31, .06); color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.drawer__body { flex: 1; overflow: auto; padding: 18px 22px 22px; }
.d-cover { height: 120px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.d-cover svg { width: 100%; height: 100%; }
.d-title { width: 100%; border: 0; outline: 0; resize: none; font: 600 22px/1.25 var(--head); letter-spacing: -.02em; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; overflow: hidden; }
.d-title:focus { background: #F7F5FB; }
.d-grid { display: grid; grid-template-columns: 96px 1fr; gap: 12px 10px; align-items: center; margin: 16px 0 6px; font-size: 13px; }
.d-grid dt { color: var(--mu); }
.d-grid dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.d-lab { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; border: 1px dashed var(--line2); color: var(--fa); }
.d-lab[aria-pressed="true"] { background: var(--bg); color: var(--c); border: 1px solid transparent; }
.d-person { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 999px; background: #F5F3F9; font-size: 12.5px; }
.d-person .face { width: 22px; height: 22px; border-radius: 50%; }
.d-h { margin: 22px 0 8px; display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--head); letter-spacing: .01em; }
.d-h small { color: var(--mu); font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
.d-desc { width: 100%; border: 1px solid transparent; outline: 0; resize: none; font-size: 13.5px; line-height: 1.55; color: var(--ink2); padding: 8px 10px; margin: 0 -10px; border-radius: 10px; min-height: 64px; }
.d-desc:focus { border-color: var(--line2); background: #FBFAFD; }
.d-prog { height: 6px; border-radius: 6px; background: #EFEDF4; overflow: hidden; margin-bottom: 8px; }
.d-prog b { display: block; height: 100%; background: linear-gradient(90deg, #6A5BFF, #2F9E44); transition: width .4s var(--ease); }
.d-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.d-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: 13.5px; }
.d-item:hover { background: #F7F5FB; }
.d-box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #CFC9DD; display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s; }
.d-box svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s var(--ease); }
.d-item.is-done .d-box { background: #2F9E44; border-color: #2F9E44; }
.d-item.is-done .d-box svg { stroke-dashoffset: 0; }
.d-item.is-done span { color: var(--fa); text-decoration: line-through; }
.d-add { width: 100%; margin-top: 6px; height: 36px; border-radius: 9px; border: 1px dashed var(--line2); padding: 0 12px; outline: 0; font-size: 13px; background: none; }
.d-add:focus { border-style: solid; border-color: var(--acc2); }
.d-act { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.d-act li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; }
.d-act .face { width: 26px; height: 26px; border-radius: 50%; }
.d-act b { font-weight: 600; }
.d-act small { color: var(--fa); margin-left: 6px; }
.d-act p { margin: 3px 0 0; padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: #F5F3F9; color: var(--ink2); }
.d-act .log { color: var(--mu); }
.d-act .log i { width: 26px; display: grid; place-items: center; }
.d-act .log i::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #CFC9DD; }
.d-comment { display: flex; gap: 8px; margin-top: 14px; }
.d-comment input { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line2); padding: 0 12px; outline: 0; font-size: 13px; }
.d-comment input:focus { border-color: var(--acc2); box-shadow: 0 0 0 3px rgba(106, 91, 255, .15); }
.d-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; }
.d-foot .btn { height: 34px; font-size: 12.5px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(23, 21, 31, .5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 80; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c, #2F9E44); }
.toast i svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1360px) { .prog { width: 170px; } .labels .lchip:nth-child(n+6) { display: none; } }
@media (max-width: 1180px) { .crumbs span:not(:last-child), .crumbs svg { display: none; } .prog { display: none; } .labels .lchip:nth-child(n+4) { display: none; } .board { grid-template-columns: repeat(5, 236px); } }
