#view-tasks { --task-ink:var(--black); }
#view-tasks .tasks-title { margin-bottom:22px; align-items:center; }
#view-tasks .tasks-title h2 { letter-spacing:-.04em; }
#view-tasks .tasks-title p { color:var(--muted); font-size:12px; line-height:1.5; }
#view-tasks .task-add-button { min-height:46px; padding:12px 18px; border:1px solid #e5bd2a; border-radius:14px; background:var(--yellow); color:#171717; box-shadow:0 5px 15px rgba(214,173,0,.12); font-size:12px; transition:transform .18s,box-shadow .18s; }
.task-glyph { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; }
.task-glyph svg { width:20px; height:20px; display:block; flex:none; overflow:visible; }
#view-tasks .task-stats { gap:12px; margin-bottom:20px; }
#view-tasks .task-stat { display:grid; grid-template-columns:40px minmax(0,1fr); column-gap:12px; row-gap:4px; padding:17px; border-radius:19px; background:var(--white); box-shadow:0 5px 18px rgba(0,0,0,.025); }
#view-tasks .task-stat > .task-glyph { display:grid; place-items:center; grid-row:1 / span 2; width:40px; height:43px; align-self:center; border-radius:13px; background:var(--soft-yellow); color:var(--black); }
#view-tasks .task-stat > span:not(.task-glyph) { grid-column:2; font-size:10px; line-height:1.4; font-weight:600; text-transform:none; }
#view-tasks .task-stat strong { grid-column:2; margin:0; font-size:25px; line-height:1.2; font-weight:800; font-variant-numeric:tabular-nums; }
#view-tasks .task-stat.overdue > .task-glyph { color:#b2443c; background:rgba(227,79,74,.1); }
#view-tasks .task-filters { display:flex; flex-wrap:wrap; gap:9px; padding:12px; border:1px solid var(--line); border-radius:18px; background:var(--white); margin:0; }
#view-tasks .task-board-search { display:flex; flex:1 1 260px; min-width:0; align-items:center; gap:9px; padding-left:12px; border:1px solid var(--line); border-radius:12px; background:var(--soft); }
#view-tasks .task-board-search .task-glyph { color:var(--muted); }
#view-tasks #task-search { min-height:42px; padding:10px 10px 10px 0; margin:0; border:0; border-radius:12px; background:transparent; color:var(--black); box-shadow:none; font-size:12px; }
#view-tasks .task-filters select { flex:0 1 190px; min-height:44px; padding:10px 12px; background:var(--soft); border-radius:12px; font-size:11px; font-weight:550; }
#view-tasks .task-layout-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:17px 0; }
#view-tasks .task-layout-caption { color:var(--muted); font-size:11px; }
#view-tasks .task-layout-switch { display:flex; gap:3px; padding:4px; border:1px solid var(--line); border-radius:13px; background:var(--white); }
#view-tasks .task-layout-switch button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:34px; padding:7px 12px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-size:11px; font-weight:650; transition:background-color .18s,color .18s,transform .18s; }
#view-tasks .task-layout-switch button[aria-pressed="true"] { background:var(--yellow); color:#171717; box-shadow:0 2px 5px rgba(0,0,0,.05); }
#view-tasks .task-kanban { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; align-items:start; min-width:0; }
#view-tasks .task-lane { --lane-accent:#8a8e97; min-width:0; padding:10px; border:1px solid var(--line); border-radius:19px; background:var(--soft); }
#view-tasks .task-lane-progress { --lane-accent:#d5a615; }
#view-tasks .task-lane-review { --lane-accent:#8a70c6; }
#view-tasks .task-lane-done { --lane-accent:#42946a; }
#view-tasks .task-lane-head { display:flex; align-items:center; gap:7px; min-height:38px; padding:4px 2px 12px; }
#view-tasks .task-lane-head > .task-glyph { color:var(--lane-accent); }
#view-tasks .task-lane-head h3 { margin:0; color:var(--black); font-size:11px; line-height:1.4; font-weight:750; }
#view-tasks .task-lane-count { display:grid; place-items:center; min-width:25px; height:25px; margin-left:auto; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--black); font-size:10px; font-weight:700; font-variant-numeric:tabular-nums; }
#view-tasks .task-lane-body { display:grid; gap:10px; min-width:0; }
#view-tasks .task-lane-empty { padding:25px 6px; margin:0; border:1px dashed var(--line); border-radius:13px; color:var(--muted); font-size:11px; text-align:center; }
#view-tasks .task-card { min-width:0; padding:14px; border-radius:16px; background:var(--white); box-shadow:0 3px 12px rgba(0,0,0,.035); transition:border-color .18s,box-shadow .18s,transform .18s; }
#view-tasks .task-card.done { opacity:1; }
#view-tasks .task-card.overdue { border-color:rgba(227,79,74,.35); box-shadow:inset 0 3px 0 rgba(227,79,74,.65),0 3px 12px rgba(0,0,0,.035); }
#view-tasks .task-card-head { flex-wrap:wrap; align-items:flex-start; gap:10px; }
#view-tasks .task-card-head > div { min-width:0; flex:1 1 130px; }
#view-tasks .task-id { display:inline-block; padding:3px 6px; margin-bottom:6px; border-radius:5px; background:var(--soft); color:var(--muted); font-size:9px; font-weight:600; letter-spacing:0; }
#view-tasks .task-shop { color:var(--black); font-size:11px; font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
#view-tasks .task-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden; margin:14px 0; color:var(--black); font-size:12px; line-height:1.65; font-weight:500; overflow-wrap:anywhere; }
#view-tasks .task-status-select { min-width:0; max-width:100%; min-height:34px; margin:0; padding:7px 9px; color:var(--black); font-size:10px; font-weight:650; }
#view-tasks .task-meta { gap:7px; font-size:9px; line-height:1.6; }
#view-tasks .task-meta > span { overflow-wrap:anywhere; }
#view-tasks .task-deadline { border-radius:7px; padding:4px 6px; font-size:9px; font-weight:600; }
#view-tasks .task-deadline.overdue { color:#b63d35; }
:root[data-theme="dark"] #view-tasks .task-deadline.overdue { color:#ffb0a6; }
#view-tasks .task-actions { padding-top:12px; margin-top:12px; border-top:1px solid var(--line); flex-wrap:wrap; }
#view-tasks .task-action { min-height:32px; padding:6px 8px; border-radius:9px; font-size:10px; font-weight:600; background:var(--soft); border-color:transparent; }
#view-tasks .task-action.delete { color:var(--risk-high); background:transparent; }
#view-tasks .task-card-open { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:37px; margin-top:11px; padding:9px 0 0; border:0; border-top:1px solid var(--line); background:transparent; color:var(--black); font-size:10px; font-weight:650; text-align:left; }
#view-tasks .task-card-open .task-glyph { width:25px; height:25px; border-radius:8px; background:var(--soft-yellow); }
#view-tasks .task-list-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
#view-tasks :is(button,input,select):focus-visible, #task-inspector :is(button,textarea):focus-visible { outline:2px solid var(--yellow); outline-offset:3px; }
#view-tasks button:active, #task-inspector button:active { transform:scale(.98); }
#task-inspector { width:min(620px,calc(100vw - 32px)); max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); padding:0; border:1px solid var(--line); border-radius:25px; color:var(--black); background:var(--white); box-shadow:0 30px 100px rgba(0,0,0,.23); overflow:hidden; }
#task-inspector[open] { display:flex; flex-direction:column; animation:task-inspect-in .25s cubic-bezier(.2,.8,.2,1); }
#task-inspector::backdrop { background:rgba(14,16,20,.48); backdrop-filter:blur(8px); }
#task-inspector .task-inspector-head { display:flex; flex:0 0 auto; gap:18px; align-items:flex-start; justify-content:space-between; padding:22px; border-bottom:1px solid var(--line); }
#task-inspector .task-inspector-kicker { display:inline-block; padding:5px 8px; border-radius:7px; background:var(--soft-yellow); color:var(--black); font-size:10px; font-weight:650; }
#task-inspector h2 { margin:9px 0 0; font-size:18px; font-weight:750; line-height:1.4; overflow-wrap:anywhere; }
#task-inspector .task-inspector-close { display:grid; place-items:center; flex:0 0 auto; width:38px; height:38px; border:1px solid var(--line); border-radius:12px; background:var(--soft); color:var(--black); font-size:23px; }
#task-inspector .task-inspector-scroll { overflow-y:auto; overscroll-behavior:contain; min-height:0; padding:20px 22px; }
#task-inspector .task-card { padding:0; margin:0; border:0; box-shadow:none; background:transparent!important; opacity:1; }
#task-inspector .task-shop, #task-inspector .task-id { display:none; }
#task-inspector .task-card-head { justify-content:flex-start; }
#task-inspector .task-card-head > div { display:none; }
#task-inspector .task-read-status { margin:0; padding:7px 10px; color:var(--black); font-size:11px; }
#task-inspector .task-text { display:block; margin:15px 0; color:var(--black); font:inherit; font-size:14px; font-weight:450; line-height:1.75; overflow-wrap:anywhere; white-space:pre-wrap; }
#task-inspector .task-meta { color:var(--muted); font-size:10px; line-height:1.6; }
#task-inspector .task-inspector-edit { margin-top:16px; min-height:38px; padding:9px 13px; border:1px solid var(--line); border-radius:10px; background:var(--soft); color:var(--black); font:inherit; font-size:11px; font-weight:650; }
#task-inspector .task-discussion { margin-top:23px; padding-top:20px; border-top:1px solid var(--line); }
#task-inspector .task-discussion[hidden], #task-inspector .task-comment-form[hidden], #task-inspector .task-comments-older[hidden] { display:none; }
#task-inspector h3 { margin:0 0 12px; font-size:15px; letter-spacing:-.02em; }
#task-inspector .task-comments-status { color:var(--muted); font-size:11px; line-height:1.5; }
#task-inspector .task-comments-status:empty { display:none; }
#task-inspector .task-comments-list { display:grid; gap:10px; }
#task-inspector .task-comment { padding:13px; border:1px solid var(--line); border-radius:15px; background:var(--soft); }
#task-inspector .task-comment-author { display:flex; align-items:center; gap:8px; font-size:11px; }
#task-inspector .task-comment-avatar { display:grid; place-items:center; width:30px; height:30px; border:1px solid var(--line); border-radius:10px; background:var(--white); font-size:17px; }
#task-inspector .task-comment p { margin:9px 0 6px; font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
#task-inspector .task-comment > p:first-child { margin-top:0; }
#task-inspector .task-comment time { color:var(--muted); font-size:9px; }
#task-inspector .task-comments-older { margin-bottom:13px; padding:8px 11px; border:1px solid var(--line); border-radius:9px; background:var(--white); color:var(--black); font:inherit; font-size:10px; }
#task-inspector .task-comment-form { display:grid; flex:0 0 auto; gap:8px; padding:15px 22px 20px; border-top:1px solid var(--line); background:var(--white); }
#task-inspector .task-comment-form label { font-size:11px; font-weight:650; }
#task-inspector .task-comment-form textarea { width:100%; min-width:0; max-height:130px; resize:vertical; padding:11px; border:1px solid var(--line); border-radius:12px; background:var(--soft); color:var(--black); font:inherit; font-size:13px; line-height:1.5; }
#task-inspector .task-comment-form > div { display:flex; align-items:center; gap:12px; justify-content:space-between; }
#task-inspector .task-comment-form small { color:var(--muted); font-size:9px; line-height:1.5; }
#task-inspector .task-comment-form button { display:flex; align-items:center; gap:12px; min-height:42px; padding:10px 14px; border:0; border-radius:11px; background:var(--yellow); color:#171717; font:inherit; font-size:11px; font-weight:700; }
#task-inspector .task-comment-form button:disabled { opacity:.5; cursor:wait; }
html.task-inspector-open, html.task-inspector-open body { overflow:hidden; }
@media (hover:hover) and (pointer:fine) {
  #view-tasks .task-card:hover { border-color:#ddc568; box-shadow:0 9px 22px rgba(0,0,0,.06); transform:translateY(-2px); }
  #view-tasks .task-add-button:hover { transform:translateY(-1px); box-shadow:0 8px 18px rgba(214,173,0,.2); }
}
@media (max-width:1150px) { #view-tasks .task-kanban { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:650px) {
  #view-tasks .tasks-title { gap:12px; align-items:flex-start; }
  #view-tasks .task-add-button { font-size:11px; white-space:nowrap; padding:11px 13px; }
  #view-tasks .task-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  #view-tasks .task-stat { padding:13px; column-gap:9px; grid-template-columns:32px minmax(0,1fr); }
  #view-tasks .task-stat > .task-glyph { width:32px; height:37px; border-radius:11px; }
  #view-tasks .task-stat strong { font-size:23px; }
  #view-tasks .task-filters { gap:8px; }
  #view-tasks .task-board-search { flex-basis:100%; }
  #view-tasks #task-search { font-size:16px; }
  #view-tasks .task-filters select { flex:1 1 130px; font-size:12px; }
  #view-tasks .task-layout-caption { display:none; }
  #view-tasks .task-layout-switch { width:100%; }
  #view-tasks .task-layout-switch button { flex:1; min-height:39px; font-size:12px; }
  #view-tasks .task-kanban, #view-tasks .task-list-layout { grid-template-columns:1fr; }
  #view-tasks .task-lane { padding:11px; }
  #view-tasks .task-lane-head h3 { font-size:13px; }
  #view-tasks .task-shop { font-size:12px; }
  #view-tasks .task-text { font-size:13px; }
  #view-tasks .task-status-select { min-height:40px; font-size:12px; }
  #view-tasks .task-card-open { min-height:42px; font-size:12px; }
  #view-tasks .task-action { min-height:38px; font-size:11px; }
  #task-inspector { width:100%; max-width:100%; max-height:calc(100vh - 16px); max-height:calc(100dvh - max(16px, var(--pulse-safe-top, 0px))); margin:auto 0 0; border-radius:24px 24px 0 0; }
  #task-inspector .task-inspector-head { padding:18px; }
  #task-inspector .task-inspector-scroll { padding:17px 18px; }
  #task-inspector .task-comment-form { padding:12px 18px max(15px,env(safe-area-inset-bottom),var(--pulse-safe-bottom,0px)); }
  #task-inspector .task-comment-form textarea { font-size:16px; }
}
@keyframes task-inspect-in { from { opacity:0; transform:translateY(12px) scale(.99); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (prefers-reduced-motion:reduce) { #view-tasks *, #task-inspector, #task-inspector * { animation:none!important; transition:none!important; } }

#tasks-list{overflow-anchor:none}#view-tasks .task-card{transition:border-color .18s,box-shadow .18s}


#view-tasks .task-drag-handle {
  display: none;
  flex: none;
  place-items: center;
  inline-size: 28px;
  min-block-size: 34px;
  margin: -2px 0 0 -4px;
  color: var(--muted);
  border-radius: 8px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#view-tasks[data-task-layout="board"] .task-drag-handle { display: grid; }
#view-tasks .task-drag-handle .task-glyph svg { stroke-width: 3; inline-size: 17px; }
#view-tasks .task-drag-handle:hover { background: var(--soft); }
#view-tasks .task-card:has([data-task-status]:disabled) .task-drag-handle { opacity: .35; cursor: wait; }
#view-tasks .task-moving, #view-tasks .task-moving * { cursor: grabbing; user-select: none; }
#view-tasks .task-card.task-dragging { opacity: .46; }
#view-tasks .task-lane { transition: border-color .16s, background-color .16s; }
#view-tasks .task-lane.task-drop-active { border-color: #bf9100; background: var(--soft-yellow); }
.task-drag-preview {
  position: fixed;
  z-index: 910;
  top: 0;
  left: 0;
  max-width: min(220px, calc(100vw - 16px));
  padding: 8px 12px;
  border: 1px solid #d8ad17;
  border-radius: 10px;
  background: var(--yellow);
  color: #191919;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  pointer-events: none;
}
.task-drop-dock {
  position: fixed;
  z-index: 900;
  inset-inline: 12px;
  bottom: max(98px, calc(86px + var(--pulse-safe-bottom, 0px)));
  display: flex;
  gap: 6px;
  margin-inline: auto;
  max-width: 520px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
}
.task-drop-dock[hidden], .task-drop-chip[hidden] { display: none; }
.task-drop-chip {
  display: grid;
  flex: 1 1 0;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 5px 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--black);
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
}
.task-drop-chip.task-drop-active { border-color: #bf9100; background: var(--yellow); color: #191919; }
@media (pointer: coarse) {
  #view-tasks .task-drag-handle { inline-size: 44px; min-block-size: 44px; background: var(--soft); }
}
