#tasksView { padding: 0; overflow: hidden; }
.taskboard-page { width: 100%; max-width: clamp(1800px, 78vw, 2400px); height: 100%; min-height: 0; margin-inline: auto; display: flex; flex-direction: column; padding: clamp(28px, 2.5vw, 52px) clamp(24px, 2.6vw, 56px) 28px; background: var(--paper, #f5f7f4); }
.taskboard-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 3px 28px; }
.taskboard-header h1 { margin: 0; color: var(--deep, #0d2f32); font: 700 clamp(28px, 1.6vw, 36px)/1.25 "Manrope", system-ui, sans-serif; letter-spacing: -.035em; }
.taskboard-header p { margin: 8px 0 0; color: #6b7c77; font-size: 15px; }
.taskboard-header-actions { display: flex; align-items: center; gap: 10px; }
.taskboard-header-actions > button { flex: 0 0 auto; min-height: 44px; padding-inline: 18px; border-radius: 10px; font-size: 14px; font-weight: 600; }
@media (max-width: 600px) { .taskboard-header { flex-wrap: wrap; gap: 14px; } .taskboard-header-actions { flex-wrap: wrap; } }
.taskboard-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.taskboard-columns { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: clamp(16px, 1.5vw, 28px); min-height: 0; overflow-x: auto; overflow-y: hidden; padding: 3px 3px 5px; scrollbar-width: thin; scrollbar-color: #bdccc5 transparent; }
.taskboard-column { --column-accent: #87938e; --column-tint: #e4e9e6; min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; padding: 12px; border: 1px solid #e3e9e4; border-radius: 16px; background: #edf1ed; }
.taskboard-column[data-status="in_progress"] { --column-accent: #bf9454; --column-tint: #f3e9d8; }
.taskboard-column[data-status="done"] { --column-accent: #4e9380; --column-tint: #deebe3; }

.taskboard-column > header { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 14px; }
.taskboard-column h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #34463e; font-size: 16px; font-weight: 650; }
.taskboard-column h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--column-accent); }
.taskboard-column > header > span { min-width: 24px; padding: 2px 6px; border-radius: 6px; background: var(--column-tint); color: #52675a; font-size: 12px; font-weight: 600; text-align: center; }
.taskboard-card-list { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 6px; scrollbar-width: thin; scrollbar-color: #c3cfc6 transparent; }
.taskboard-card { position: relative; min-width: 0; flex: 0 0 auto; padding: 18px 18px 16px; border: 1px solid #e0e7e1; border-radius: 12px; background: white; box-shadow: 0 2px 3px #243e2d09; cursor: grab; scroll-margin: 24px; transition: box-shadow .16s, border-color .16s; }
.taskboard-card:hover { border-color: #acc2b4; box-shadow: 0 5px 14px #243e2d12; }
.taskboard-card:active { cursor: grabbing; }
.taskboard-card:focus { outline: 3px solid rgba(33,143,131,.3); outline-offset: 2px; }
.taskboard-card-title { margin: 0; color: #263d35; font-size: clamp(15px, .85vw, 17px); font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.taskboard-card-footer { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.taskboard-project { display: flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; color: #64766a; font-size: 13px; line-height: 1.5; }
.taskboard-project::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--project-accent, #90a69a); }
.taskboard-project > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taskboard-actions { position: absolute; top: 4px; right: 4px; cursor: default; }
.taskboard-actions > summary { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; opacity: 0; background: white; color: var(--muted, #617477); cursor: pointer; list-style: none; font-size: .9rem; letter-spacing: .1em; user-select: none; }
.taskboard-card:hover .taskboard-actions > summary, .taskboard-card:focus-within .taskboard-actions > summary, .taskboard-actions[open] > summary { opacity: 1; }
.taskboard-actions > summary::-webkit-details-marker { display: none; }
.taskboard-actions > summary:hover, .taskboard-actions[open] > summary { background: var(--surface-soft, #edf2ef); color: var(--deep, #0d2f32); }
.taskboard-actions[open] { z-index: 10; }
.taskboard-action-panel { position: absolute; z-index: 11; top: 100%; right: 0; width: 220px; display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line, #dce5e1); border-radius: 10px; background: white; box-shadow: 0 12px 36px rgba(18,49,50,.17); }
.taskboard-action-panel button { min-height: 40px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink, #193236); font-size: .875rem; text-align: left; }
.taskboard-action-panel button:hover { background: var(--surface-soft, #edf2ef); }
.taskboard-action-panel button:disabled { cursor: default; opacity: .38; }
.taskboard-action-panel .taskboard-delete { color: var(--rose, #b94e55); }
.taskboard-empty { min-height: 52px; display: grid; place-items: center; margin: 0; color: #788b83; font-size: .875rem; }
.taskboard-loading { padding: 36px; color: var(--muted, #617477); }

.taskboard-grip { display: none; }
.taskboard-touch-ghost { position: fixed; z-index: 150; pointer-events: none; opacity: .96; transform: rotate(2deg) scale(1.025); box-shadow: 0 16px 38px rgba(13,47,50,.25); }
.taskboard-placeholder { flex: 0 0 auto; border: 2px dashed #77aea0; border-radius: 10px; background: rgba(33,143,131,.09); animation: taskboard-slot-in .12s ease-out; }
.taskboard-has-placeholder { background: #e0ece5; }
.taskboard-has-placeholder .taskboard-empty { display: none; }

.taskboard-add-card { width: 100%; flex: 0 0 auto; min-height: 42px; display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 9px 11px; border: 0; border-radius: 9px; color: #566d5e; background: transparent; font: inherit; font-size: 14px; text-align: left; transition: background .14s, color .14s; }
.taskboard-add-card:hover { background: #dae7df; color: var(--deep, #0d2f32); }
.taskboard-add-card > span { font-size: 1.2rem; }
.taskboard-composer { margin-top: 10px; padding: 10px; border: 1px solid #9ec9ba; border-radius: 10px; background: white; box-shadow: 0 4px 14px rgba(20,55,50,.08); }
.taskboard-composer textarea { width: 100%; min-height: 76px; padding: 3px 1px; resize: vertical; border: 0; border-radius: 3px; outline-offset: 3px; font: inherit; font-size: .95rem; line-height: 1.5; background: white; color: var(--ink, #193236); }
.taskboard-composer-project { display: grid; gap: 5px; margin-top: 8px; color: var(--muted, #617477); font-size: .75rem; }
.taskboard-composer-project select { min-width: 0; width: 100%; min-height: 38px; padding: 7px; border: 1px solid var(--line, #dce5e1); border-radius: 7px; background: #f7faf8; color: var(--ink, #193236); font: inherit; }
.taskboard-composer-controls { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.taskboard-composer-controls .primary-button { min-height: 38px; padding: 8px 12px; font-size: .875rem; }
.taskboard-composer-controls > span { margin-left: auto; color: var(--faint, #81958f); font-size: .7rem; }
.taskboard-composer-close { width: 38px; height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--muted, #617477); font-size: 1.7rem; }
.taskboard-composer-close:hover { background: #edf2ef; }
.taskboard-composer-error { margin: 8px 0 0; color: #a53f49; font-size: .8125rem; }
@keyframes taskboard-slot-in { from { opacity: .3; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes taskboard-land { 0% { box-shadow: 0 0 0 4px rgba(33,143,131,.22); } 100% { box-shadow: 0 2px 3px rgba(20,55,50,.035); } }
.taskboard-drop-before { box-shadow: 0 -4px 0 var(--teal, #218f83); }
.taskboard-drop-column { border-color: var(--teal, #218f83); background: #dcebe3; }
.taskboard-page[aria-busy="true"] .taskboard-card { cursor: wait; }
@media (max-width: 1100px) {
  .taskboard-page { padding: 24px 20px 20px; }
  .taskboard-columns { gap: 12px; }
  .taskboard-column { padding: 8px; }
  .taskboard-card { padding: 14px; }
}
@media (max-width: 760px) {
  .taskboard-page { padding: 20px 14px 16px; }
  .taskboard-header h1 { font-size: 29px; }
  .taskboard-header p { max-width: 190px; font-size: .8125rem; }
  .taskboard-header { gap: 12px; padding-bottom: 20px; }
  .taskboard-header > button { padding-inline: 12px; font-size: 13px; }
  .taskboard-columns { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; padding: 3px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .taskboard-column { flex: 0 0 min(84vw, 340px); scroll-snap-align: start; }
  .taskboard-card-list { min-height: 0; }
  .taskboard-empty { min-height: 75px; }
  .taskboard-card { padding-top: 15px; touch-action: pan-y; }
  .taskboard-actions > summary { width: 44px; height: 44px; }
  .taskboard-action-panel button { min-height: 44px; }
}
@media (pointer: coarse) {
  .taskboard-grip { display: grid; place-items: center; position: absolute; left: 0; top: 0; bottom: 0; width: 34px; border: 0; border-radius: 9px 0 0 9px; color: #92a79e; background: transparent; font-size: 24px; touch-action: none; cursor: grab; }
  .taskboard-card { padding-left: 34px; }
  .taskboard-actions > summary { opacity: .7; }
  .taskboard-composer-project select, .taskboard-composer-controls .primary-button, .taskboard-composer-close { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .taskboard-column, .taskboard-card, .taskboard-add-card { transition: none; } .taskboard-landed, .taskboard-placeholder { animation: none; } }

/* One floating card and one slot shared by both task surfaces. */
body.is-sorting, body.is-sorting * { cursor: grabbing !important; user-select: none !important; }
.sortable-ghost { background: #dce5df !important; border: 1px solid #d2ded6 !important; box-shadow: inset 0 1px 3px #163b3008 !important; border-radius: 8px; }
.sortable-ghost > * { visibility: hidden !important; }
.sortable-fallback { opacity: 1 !important; background: white; border-radius: 8px; box-shadow: 0 14px 32px #163b302b, 0 3px 8px #163b301a !important; cursor: grabbing; pointer-events: none; }
.sortable-fallback .task-card-menu, .sortable-fallback .taskboard-actions, .sortable-fallback .task-drag-handle, .sortable-fallback .taskboard-grip { visibility: hidden; }
.taskboard-card.sortable-fallback { transform-origin: center; }
.taskboard-card.sortable-fallback, .taskboard-card.sortable-ghost { border-radius: 12px; }
.taskboard-card-list:not(:has([data-taskboard-card])) { min-height: 52px; }
.taskboard-card-list:has([data-taskboard-card]) > .taskboard-empty { display: none; }
@media (min-width: 901px) {
  .workspace:has(#tasksView:not(.hidden)) > .topbar { display: none; }
}
