/* Boards — Asana-style list, kanban and task pane. Uses the app tokens (app.css). */

/* ── Colours: board icons, dots, swatches, chips ───────────────────── */
.chip { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px; font-size: 12.5px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.chip--blue { background: #a8c5ff; color: #10264f; }
.chip--green { background: #93dcaa; color: #0e3a1f; }
.chip--purple { background: #cbbcff; color: #2b1a60; }
.chip--pink { background: #f5b4ec; color: #5a1150; }
.chip--yellow { background: #ffdd63; color: #463700; }
.chip--orange { background: #ffc67f; color: #512c00; }
.chip--red { background: #ff9d90; color: #5a1109; }
.chip--teal { background: #8fe0d9; color: #0b3c38; }
.chip--gray { background: #d3d7de; color: #2b2f36; }
.chip--empty { color: var(--muted); border: 1px dashed var(--line); background: transparent; }
.pri-1 { background: #d3d7de; color: #2b2f36; }
.pri-2 { background: #b9dcea; color: #0f3443; }
.pri-3 { background: #ffd27a; color: #4a3200; }
.pri-4 { background: #ffb08a; color: #561f04; }
.pri-5 { background: #ff8f84; color: #5a0d06; }
.st-open { background: #d8cdfd; color: #2d1a68; }
.st-doing { background: #a8c5ff; color: #10264f; }
.st-done { background: #93dcaa; color: #0e3a1f; }
.st-cancelled { background: #d3d7de; color: #3b3f46; }
label.chip { cursor: pointer; }
.vt-chipsel.chip { padding: 1px 7px; }

.avatar { --h: 210; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: hsl(var(--h) 75% 82%); color: hsl(var(--h) 60% 22%); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }

/* ── Boards index ───────────────────────────────────────────────────── */
.tp-boards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tp-bcard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); text-decoration: none !important; font: inherit; text-align: left; cursor: pointer; }
.tp-bcard:hover { border-color: var(--accent); }
.tp-bcard__main { display: flex; flex-direction: column; min-width: 0; }
.tp-bcard__main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-bcard--new { border-style: dashed; box-shadow: none; background: transparent; }
.tp-bicon { width: 40px; height: 40px; border-radius: 10px; background: var(--c, #9ca6af); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tp-bicon svg { width: 22px; height: 22px; }
.tp-bicon--new { background: var(--surface-2); color: var(--muted); font-size: 20px; }
.tp-mine { display: flex; flex-direction: column; }
.tp-mine__row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.tp-mine__row:last-child { border-bottom: 0; }
.tp-mine__row:hover { background: var(--surface-2); }
.tp-mine__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.tp-mine__board { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tp-mine__due { font-size: 12.5px; color: var(--muted); white-space: nowrap; min-width: 92px; text-align: right; }

/* ── Board header, tabs, toolbar, menus ─────────────────────────────── */
.tp-board { margin-top: 0 !important; }
.tp-bhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-bhead .tp-bicon { width: 34px; height: 34px; border-radius: 9px; }
.tp-bhead .tp-bicon svg { width: 19px; height: 19px; }
input.tp-bname { width: auto; min-width: 200px; max-width: 520px; flex: 0 1 auto; font-size: 21px; font-weight: 600; padding: 3px 8px; border: 1px solid transparent; background: transparent; }
input.tp-bname:hover:not([readonly]) { border-color: var(--line); }
input.tp-bname[readonly] { cursor: default; outline: none; }
.tp-tabs { display: flex; gap: 2px; margin-top: 8px; }
.tp-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; color: var(--muted); font-weight: 500; text-decoration: none; }
.tp-tabs a svg { width: 15px; height: 15px; }
.tp-tabs a:hover { color: var(--text); background: var(--surface-2); }
.tp-tabs a.on { color: var(--accent); background: var(--accent-soft); }
.tp-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 8px; }
.tp-toolbar__right { margin-left: auto; display: flex; gap: 8px; }
.tp-toolbar .btn svg { width: 15px; height: 15px; }
.tp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tp-menu { position: relative; display: inline-block; }
.tp-menu > summary { list-style: none; cursor: pointer; }
.tp-menu > summary::-webkit-details-marker { display: none; }
.tp-menu__pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 24, 40, .18); display: flex; flex-direction: column; }
.tp-menu__pop a, .tp-menu__pop button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 7px; border: 0; background: none;
  color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.tp-menu__pop a:hover, .tp-menu__pop button:hover { background: var(--surface-2); text-decoration: none; }
.tp-menu__pop a.is-on { color: var(--accent); font-weight: 600; }
.tp-menu__pop a.is-on::before { content: "✓ "; }
.tp-menu__pop .danger { color: var(--red); }
.tp-menu__label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px 2px; }
.icon-btn.sm { width: 30px; height: 30px; color: var(--muted); }
.icon-btn.sm svg { width: 17px; height: 17px; }
.tp-swatches { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 8px; }
.tp-swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 2px solid transparent; cursor: pointer; padding: 0 !important; display: inline-block !important; }
.tp-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.tp-swatch.is-on, .tp-swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
/* Inside a menu the generic `.tp-menu__pop button` (full width, no background) must not win. */
.tp-menu__pop .tp-swatch { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--c); }
.tp-menu__pop .tp-swatch:hover { background: var(--c); transform: scale(1.1); }

/* ── List view ──────────────────────────────────────────────────────── */
.tp-list-wrap { overflow-x: auto; border-top: 1px solid var(--line); margin: 0 -28px; padding: 0 28px; }
.tp-list { min-width: max-content; }
.tp-lrow { display: grid; align-items: center;
  grid-template-columns: minmax(360px, 1fr) 180px 150px 130px 120px 130px var(--fieldcols,) 48px; }
.tp-lrow > div { min-height: 38px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); overflow: hidden; }
.tp-lrow > div:last-child { border-right: 0; }
.tp-lhead > div { min-height: 34px; color: var(--muted); font-size: 12.5px; font-weight: 400; background: var(--bg); }
.tp-lhead { position: sticky; top: 0; z-index: 3; }
.tp-colbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.tp-colbtn:hover { color: var(--accent); }
.tp-plus { width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1; }
.tp-plus:hover { background: var(--surface-2); color: var(--accent); }
.tp-ghead { display: flex; align-items: center; gap: 8px; padding: 18px 12px 8px; position: sticky; left: 0; width: max-content; }
.tp-gname { font-size: 16px; font-weight: 600; }
.tp-count { color: var(--muted); font-size: 13px; }
.tp-caret { width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tp-caret svg { width: 15px; height: 15px; transform: rotate(-90deg); transition: transform .15s; }
.tp-caret.is-open svg { transform: none; }
.tp-caret:hover { background: var(--surface-2); color: var(--text); }
.tp-group.is-collapsed .tp-gbody { display: none; }
.tp-task { cursor: pointer; }
.tp-task:hover > div { background: var(--surface-2); }
.tp-task.is-active > div { background: var(--accent-soft); }
.tp-task.is-dragging, .tp-kcard.is-dragging { opacity: .4; }
.c-name { gap: 8px; }
.tp-drag { color: var(--muted); opacity: 0; cursor: grab; font-size: 12px; letter-spacing: -2px; width: 10px; flex: none; }
.tp-task:hover .tp-drag { opacity: .7; }
.tp-check { width: 20px; height: 20px; flex: none; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; border-radius: 50%; }
.tp-check svg { width: 20px; height: 20px; }
.tp-check:hover { color: var(--green); }
.tp-check.is-on { color: #fff; }
.tp-check.is-on svg circle { fill: var(--green); stroke: var(--green); }
.tp-tname { color: var(--text); text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 450; }
.tp-tname:hover { color: var(--accent); }
.is-done .tp-tname { color: var(--muted); text-decoration: line-through !important; }
.tp-meta { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; flex: none; }
.tp-meta svg { width: 13px; height: 13px; }
.tp-cellsel { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; width: 100%; cursor: pointer; }
.tp-cellsel__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.tp-cellsel select, .tp-lrow .vt-chipsel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.tp-duebtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.tp-duebtn:hover { color: var(--accent); }
.due-over { color: var(--red) !important; }
.due-soon { color: var(--green) !important; }
.tp-lrow--sub { display: none; }
.tp-lrow--sub.is-shown { display: grid; }
.tp-lrow--sub > div { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
.tp-subindent { width: 28px; flex: none; }
.tp-subtoggle { display: inline-flex; align-items: center; gap: 3px; flex: none; border: 0; border-radius: 10px; padding: 1px 7px; background: var(--surface-2);
  color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.tp-subtoggle svg { width: 12px; height: 12px; }
.tp-subtoggle:hover, .tp-subtoggle.is-open { color: var(--accent); background: var(--accent-soft); }
button.tp-typebtn { border: 0; font-family: inherit; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
button.tp-typebtn.chip--empty { min-width: 28px; justify-content: center; }
button.tp-typebtn:hover { filter: brightness(.96); box-shadow: 0 0 0 1px var(--line); }
.tp-addrow > div { border-right: 0 !important; }
.tp-addrow > div:first-child { grid-column: 1 / -1; padding-left: 50px; }
input.tp-quick { border: 0; background: transparent; padding: 6px 0; font-size: 13.5px; }
input.tp-quick:focus { outline: none; }
input.tp-quick::placeholder { color: var(--muted); }
.tp-addsection { margin-top: 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; padding: 6px 4px; }
.tp-addsection:hover { color: var(--accent); }
.tp-dropmark { height: 3px; background: var(--accent); border-radius: 2px; margin: -1px 0; }

/* ── Kanban view ────────────────────────────────────────────────────── */
.tp-kanban { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; min-height: 60vh; }
.tp-col { flex: none; width: 300px; background: color-mix(in srgb, var(--surface-2) 75%, var(--bg)); border-radius: 10px; display: flex; flex-direction: column; max-height: calc(100vh - 240px); }
.tp-colhead { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.tp-colhead h3 { font-size: 15px; font-weight: 600; }
.tp-colhead .tp-menu { margin-left: auto; }
.tp-colbody { padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 50px; }
.tp-kcard { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.tp-kcard:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tp-kcard.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tp-kcard__top { display: flex; gap: 8px; align-items: flex-start; }
.tp-kcard .tp-tname { white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.tp-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.tp-kcard__foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); }
.tp-kdue { white-space: nowrap; }
.tp-spacer { flex: 1; }
.tp-kadd, .tp-addcol { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; padding: 6px 4px; border-radius: 8px; }
.tp-kadd:hover, .tp-addcol:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.tp-addcol { flex: none; width: 220px; padding: 12px 14px; font-weight: 500; }
textarea.tp-kquick { min-height: 0; resize: none; border-radius: 10px; font-size: 14px; }

/* ── Task pane ──────────────────────────────────────────────────────── */
.tp-pane { position: fixed; top: 52px; right: 0; bottom: 0; width: min(700px, 100vw); z-index: 45; background: var(--surface);
  border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(0, 0, 0, .10); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .18s ease; }
.tp-pane.is-open { transform: none; }
.tp-pane-backdrop { display: none; }
.tp-pane__bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tp-pane__spacer { flex: 1; }
.tp-pane__scroll { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.tp-pane__loading { padding: 40px; color: var(--muted); text-align: center; }
.tp-complete { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.tp-complete:hover { border-color: var(--green); color: var(--green); }
.tp-complete.is-done { background: color-mix(in srgb, var(--green) 14%, transparent); border-color: var(--green); color: var(--green); }
.tp-complete .tp-check { pointer-events: none; }

/* Card body */
.tp-standalone { max-width: 820px; margin-top: 12px !important; }
.tp-crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.tp-crumb a { color: var(--muted); }
.tp-crumb a:hover { color: var(--accent); }
.tp-card__title { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.tp-card__title input.vt-inline-edit { min-width: 0; font-size: 22px; font-weight: 600; padding: 2px 6px; margin-left: -6px; }
.tp-card__id { color: var(--muted); font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; flex: none; }
.tp-props { display: flex; flex-direction: column; }
.tp-prop { display: grid; grid-template-columns: 130px 1fr; align-items: center; min-height: 40px; gap: 10px; }
.tp-prop__k { color: var(--muted); font-size: 13px; }
.tp-prop__v { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 13.5px; }
select.tp-select { width: auto; max-width: 260px; padding: 4px 8px; border-color: transparent; background: transparent; font-size: 13.5px; }
select.tp-select:hover { border-color: var(--line); }
.tp-dates { gap: 6px; }
.tp-datechip.is-empty { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.tp-prop .vt-seg button { padding: 5px 11px; min-height: 0; font-size: 12.5px; }
.tp-h { font-size: 15px; font-weight: 600; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.tp-h__note { font-size: 12.5px; font-weight: 400; }
.tp-h__right { margin-left: auto; }
.tp-block { margin-top: 4px; }
.tp-card .vt-krdescr { margin-top: 0; }
.tp-card .vt-krsub { border-top: 0; padding-top: 6px; margin-top: 12px; }
.tp-subs { border-top: 1px solid var(--line); }
.tp-sub { display: flex; align-items: center; gap: 6px; padding: 3px 4px; min-height: 40px; border-bottom: 1px solid var(--line); }
.tp-sub:hover { background: var(--surface-2); }
.tp-sub.is-dragging { opacity: .4; }
.tp-sub .tp-drag { width: 12px; }
.tp-sub:hover .tp-drag { opacity: .7; }
.tp-sub--add .tp-drag { visibility: hidden; }
.tp-sub .tp-check { width: 18px; height: 18px; } .tp-sub .tp-check svg { width: 18px; height: 18px; }
.tp-sub .tp-check:disabled { cursor: default; }
.tp-sub--add .tp-check { opacity: .45; cursor: default; }
input.tp-sub__title, .tp-sub__title { flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 6px;
  font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input.tp-sub__title:hover { border-color: var(--line); }
input.tp-sub__title:focus { outline: none; border-color: var(--accent); background: var(--surface); }
input.tp-sub__title::placeholder { color: var(--muted); }
.tp-sub.is-done .tp-sub__title { text-decoration: line-through; color: var(--muted); }
.tp-sub__due, .tp-sub__who { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px;
  border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.tp-sub__due svg { width: 15px; height: 15px; }
.tp-sub__due.is-empty { color: var(--muted); }
.tp-sub__due:hover:not(:disabled), .tp-sub__who:hover:not(:disabled) { background: var(--surface-3, var(--line)); }
.tp-sub__due:disabled, .tp-sub__who:disabled { cursor: default; }
.tp-sub__who { padding: 0 2px; }
.tp-sub__open { flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); opacity: 0; }
.tp-sub__open svg { width: 15px; height: 15px; transform: rotate(-90deg); }
.tp-sub:hover .tp-sub__open, .tp-sub__open:focus-visible { opacity: 1; }
.tp-sub__open:hover { background: var(--surface-3, var(--line)); color: var(--text); }
@media (hover: none) { .tp-sub__open, .tp-sub .tp-drag { opacity: 1; } }
.tp-feedtabs { display: flex; gap: 6px; margin: 30px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tp-feedtabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.tp-feedtabs button.is-on { background: var(--accent-soft); color: var(--accent); }
.tp-card .vt-log > div { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tp-danger { display: flex; gap: 18px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.tp-danger a { color: var(--muted); }
.tp-danger #krDelete:hover { color: var(--red); }

/* Field options editor */
.tp-optrow { display: grid; grid-template-columns: 130px 1fr 34px; gap: 6px; margin-bottom: 6px; align-items: center; }
#fAddOpt { margin-top: 4px; }

@media (max-width: 900px) {
  .tp-pane { top: 0; width: 100vw; z-index: 60; }
  .tp-pane.is-open + .tp-pane-backdrop, .tp-pane-backdrop:has(+ .tp-pane.is-open) { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 14, 24, .45); }
  .tp-col { width: 272px; }
  .tp-lrow { grid-template-columns: minmax(260px, 1fr) 150px 120px 110px 110px 110px var(--fieldcols-sm,) 40px; }
  .tp-prop { grid-template-columns: 110px 1fr; }
}

/* ── Asana-flat card details ─────────────────────────────────────── */
.tp-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.tp-card__head .tp-card__title { flex: 1; margin: 0; }
.tp-h { font-size: 14px; margin: 24px 0 8px; }
.tp-h .tp-plus { margin-left: -2px; }
.tp-more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
.tp-more > summary { font-weight: 600; list-style: none; display: flex; gap: 6px; align-items: center; }
.tp-more > summary::-webkit-details-marker { display: none; }
.tp-more > summary::before { content: "▸"; color: var(--muted); font-size: 12px; transition: transform .15s; }
.tp-more[open] > summary::before { transform: rotate(90deg); }
.tp-more > * + * { margin-top: 10px; }
.tp-feedtabs { margin-top: 26px; }
.tp-pane .vt-comment-form, .tp-standalone .vt-comment-form { position: sticky; bottom: -40px; background: var(--surface); padding: 10px 0 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.tp-pane .vt-comment-form textarea { min-height: 52px; }
.vt-summary .stat { background: transparent; }
.tp-section-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.tp-mine { border-top: 1px solid var(--line); }
.tp-mine__row { padding: 9px 6px; }
@media (max-width: 900px) { .tp-list-wrap { margin: 0 -16px; padding: 0 16px; } }
.tp-menu__pop--wide { max-height: 70vh; overflow-y: auto; min-width: 240px; }
.tp-menu__reset { border-top: 1px solid var(--line); border-radius: 0 0 7px 7px !important; margin-top: 4px; color: var(--muted) !important; }
.tp-gname .avatar, .tp-colhead h3 .avatar { vertical-align: -5px; margin-right: 4px; }

/* Draft task composer (bottom-right, like Asana) */
.tp-compose { position: fixed; right: 24px; bottom: 0; z-index: 210; width: min(560px, calc(100vw - 16px)); background: var(--surface);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, .22); display: flex; flex-direction: column; }
.tp-compose__head { display: flex; align-items: center; gap: 4px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.tp-compose__head span { flex: 1; }
.tp-compose.is-min .tp-compose__body, .tp-compose.is-min .tp-compose__foot { display: none; }
.tp-compose__body { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
input.tp-compose__title { border: 0; padding: 4px 0; font-size: 19px; font-weight: 500; background: transparent; }
input.tp-compose__title:focus { outline: none; }
.tp-compose__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.tp-chipbtn { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 3px 12px; font: inherit; font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-chipbtn:hover { border-color: var(--accent); }
.tp-compose__camps { font-size: 12.5px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
textarea.tp-compose__descr { border: 0; padding: 0; min-height: 110px; resize: none; background: transparent; }
textarea.tp-compose__descr:focus { outline: none; }
.tp-compose__foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .tp-compose { right: 8px; } }
.tp-multipick { max-width: none; }
.tp-multipick__row { display: flex !important; align-items: baseline; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.tp-multipick__row input { width: 15px; height: 15px; flex: none; }
.tp-multipick__row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tp-multipick__row small { color: var(--muted); white-space: nowrap; }
.tp-multipick__foot { display: flex; gap: 8px; padding: 8px 10px; position: sticky; bottom: 0; background: var(--surface); }
.tp-camps td:first-child { min-width: 180px; }
.tp-camps__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.tp-radios { display: flex; flex-direction: column; gap: 6px; }
.tp-radios label { display: flex !important; gap: 8px; align-items: baseline; color: var(--text) !important; font-size: 13px !important; margin: 0 !important; }
.tp-settings h4 { margin: 14px 0 4px; font-size: 14px; }
.tp-settings h4:first-child { margin-top: 0; }
.tp-strow { display: grid; grid-template-columns: 110px 1fr 130px 32px; gap: 6px; margin: 6px 0; align-items: center; }
.tp-setfield { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tp-bhead__settings { margin-left: auto; }
#vtModal .modal { max-width: 600px; }

/* Settings → task types */
.tp-types { border-top: 1px solid var(--line); margin-top: 10px; }
.tp-typerow { display: grid; grid-template-columns: 150px minmax(140px, 1fr) 140px 80px 190px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tp-typerow .chip { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tp-typerow__act { display: flex; gap: 6px; justify-content: flex-end; }
.tp-typerow--new { border-bottom: 0; margin-top: 6px; }
@media (max-width: 700px) {
  .tp-typerow { grid-template-columns: 1fr 1fr; }
  .tp-typerow .chip, .tp-typerow__act { grid-column: 1 / -1; }
}

/* ── Timeline (Asana «Timeline») ───────────────────────────────────── */
.tp-tl { --dw: 34px; --namew: 280px; }
.tp-tl--weeks { --dw: 14px; }
.tp-tl__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0 10px; }
.tp-tl__bar .seg button { border: 0; background: none; font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.tp-tl__bar .seg button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.tp-tl__tip { flex: 1; min-width: 200px; }
.tp-tl__scroll { overflow-x: auto; border-top: 1px solid var(--line); padding-bottom: 16px; }
.tp-tl__grid { position: relative; width: max-content; min-width: 100%; }
.tp-tl__row { display: grid; grid-template-columns: var(--namew) calc(var(--n) * var(--dw)); min-height: 38px; }
.tp-tl__name { position: sticky; left: 0; z-index: 3; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; background: var(--bg);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tp-tl__name .tp-tname { flex: 1; }
.tp-tl__row.is-active .tp-tl__name { background: var(--accent-soft); }
.tp-tl__row.is-done .tp-tname { color: var(--muted); text-decoration: line-through !important; }
/* Day columns and weekends drawn by the background: the grid starts on a Monday. */
.tp-tl__track { position: relative; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to right, transparent calc(var(--dw) * 5), color-mix(in srgb, var(--surface-2) 70%, transparent) calc(var(--dw) * 5)),
                    linear-gradient(to right, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px);
  background-size: calc(var(--dw) * 7) 100%, var(--dw) 100%; }
.tp-tl--weeks .tp-tl__track { background-size: calc(var(--dw) * 7) 100%, calc(var(--dw) * 7) 100%; }
.tp-tl__track--empty { cursor: copy; }
.tp-tl__track--empty:hover { background-color: color-mix(in srgb, var(--accent) 6%, transparent); }
.tp-tl__head .tp-tl__name { font-size: 12.5px; color: var(--muted); align-items: flex-end; padding-bottom: 6px; }
.tp-tl__head { min-height: 52px; }
.tp-tl__cal { border-bottom: 1px solid var(--line); }
.tp-tl__months, .tp-tl__days { display: flex; }
.tp-tl__months span { flex: none; width: calc(var(--w) * var(--dw)); padding: 6px 8px 2px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden;
  border-left: 1px solid var(--line); }
.tp-tl__days span { flex: none; width: var(--dw); text-align: center; font-size: 11.5px; color: var(--muted); padding: 4px 0; font-variant-numeric: tabular-nums; }
.tp-tl__days span.is-we { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.tp-tl__days span.is-today { color: #fff; background: var(--accent); border-radius: 6px; font-weight: 600; }
.tp-tl--weeks .tp-tl__days span:not(.is-mon):not(.is-today) { color: transparent; }
.tp-tl--weeks .tp-tl__days span.is-mon { overflow: visible; text-align: left; padding-left: 2px; }
.tp-tl__group { min-height: 40px; }
.tp-tl__group .tp-tl__name { font-weight: 600; font-size: 14px; background: var(--bg); }
.tp-tl__track--group { background: none; }
.tp-tl__now { position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; background: var(--accent); pointer-events: none;
  left: calc(var(--namew) + (var(--l) + .5) * var(--dw) - 1px); opacity: .8; }
.tp-bar { position: absolute; top: 6px; bottom: 6px; left: calc(var(--l) * var(--dw) + 2px); width: calc(var(--w) * var(--dw) - 4px); min-width: 10px;
  display: flex; align-items: center; border-radius: 6px; font-size: 12.5px; font-weight: 500; cursor: grab; user-select: none; touch-action: none; z-index: 1; overflow: visible; }
.tp-bar--plain, .tp-cal__item.tp-bar--plain { background: var(--surface-3); color: var(--text); }
.tp-bar__txt { padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; pointer-events: none; }
.tp-bar__h { flex: none; width: 7px; align-self: stretch; cursor: ew-resize; border-radius: 6px; }
.tp-bar:hover .tp-bar__h { background: color-mix(in srgb, currentColor 18%, transparent); }
.tp-bar.is-dragging { cursor: grabbing; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); z-index: 4; }
.tp-bar:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.is-done > .tp-tl__track .tp-bar { opacity: .5; }
.tp-tl--weeks .tp-bar__txt { padding: 0 4px; }
/* A short bar can't hold its title: it goes to the right of the bar, like in Asana. */
.tp-bar.is-short .tp-bar__txt, .tp-tl--weeks .tp-bar.is-short-w .tp-bar__txt { position: absolute; left: calc(100% + 6px); padding: 0; overflow: visible; color: var(--text); }
@media (max-width: 900px) { .tp-tl { --namew: 180px; } }

/* ── Calendar (Asana «Calendar») ───────────────────────────────────── */
.tp-cal__bar { display: flex; align-items: center; gap: 6px; padding: 4px 0 12px; flex-wrap: wrap; }
.tp-cal__bar .icon-btn { font-size: 20px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.tp-cal__title { font-size: 18px; font-weight: 600; margin: 0 10px 0 4px; min-width: 150px; }
.tp-cal__undated { margin-left: auto; }
.tp-cal__wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tp-cal__wd span { padding: 6px 8px; font-size: 12px; color: var(--muted); }
.tp-cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 30px var(--lanerows,) minmax(18px, 1fr);
  min-height: 118px; border-bottom: 1px solid var(--line); }
.tp-cal__day { grid-row: 1 / -1; position: relative; border-right: 1px solid var(--line); padding: 6px 8px; min-width: 0; }
.tp-cal__day:nth-child(7) { border-right: 0; }
.tp-cal__day.is-we { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.tp-cal__day.is-out .tp-cal__num { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.tp-cal__day.is-drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.tp-cal__num { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tp-cal__day.is-today .tp-cal__num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--accent); color: #fff; font-weight: 600; margin: -3px 0 0 -4px; }
.tp-cal__add { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted);
  font-size: 15px; cursor: pointer; opacity: 0; }
.tp-cal__day:hover .tp-cal__add, .tp-cal__add:focus-visible { opacity: 1; }
.tp-cal__add:hover { background: var(--surface-3); color: var(--accent); }
@media (hover: none) { .tp-cal__add { opacity: .6; } }
.tp-cal__item { z-index: 1; align-self: center; margin: 1px 4px; height: 22px; line-height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; user-select: none; touch-action: none; min-width: 0; }
.tp-cal__item.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.tp-cal__item.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.tp-cal__item.is-done { opacity: .55; text-decoration: line-through; }
.tp-cal__item.is-dragging { opacity: .6; cursor: grabbing; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.tp-cal__item.is-active { box-shadow: 0 0 0 2px var(--accent); }
.tp-cal__item:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 1px; }
@media (max-width: 700px) { .tp-cal__week { min-height: 84px; } .tp-cal__item { font-size: 11px; padding: 0 4px; } .tp-cal__day { padding: 4px; } }

/* Banner on a board with an open deletion request */
.tp-delreq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; padding: 10px 12px; border-radius: 8px;
  background: color-mix(in srgb, var(--red) 10%, transparent); border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line)); font-size: 13.5px; }
.tp-delreq__ico { color: var(--red); display: inline-flex; }
.tp-delreq__ico svg { width: 17px; height: 17px; }
.tp-delreq__txt { flex: 1; min-width: 220px; }

/* ── «My tasks» (Asana My tasks) ─────────────────────────────────── */
.tp-myavatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--h) 75% 80%); color: hsl(var(--h) 60% 22%); font-size: 13.5px; font-weight: 700; }
.tp-myname { font-size: 22px; font-weight: 600; margin: 0; }
.tp-splitbtn { display: inline-flex; align-items: stretch; }
.tp-splitbtn > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tp-splitbtn__more > summary { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid rgba(255, 255, 255, .28); padding: 0 8px; height: 100%; display: inline-flex; align-items: center; }
.tp-menu__pop--left { left: 0; right: auto; min-width: 260px; }
.tp-list--my .tp-lrow { grid-template-columns: minmax(380px, 1fr) 150px 220px 130px 120px 48px; }
@media (max-width: 900px) { .tp-list--my .tp-lrow { grid-template-columns: minmax(260px, 1fr) 120px 170px 110px 110px 32px; } }
.tp-parenthint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.tp-rowopen { margin-left: auto; flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); opacity: 0; }
.tp-rowopen svg { width: 15px; height: 15px; transform: rotate(-90deg); }
.tp-task:hover .tp-rowopen, .tp-rowopen:focus-visible { opacity: 1; }
.tp-rowopen:hover { background: var(--surface-3); color: var(--text); }
.tp-projchip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 2px 9px 2px 7px; border-radius: 6px; background: var(--surface-2);
  color: var(--text); font-size: 13px; text-decoration: none !important; }
.tp-projchip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-projchip .board-dot { width: 11px; height: 11px; }
.tp-projchip:hover { background: var(--surface-3); }
.tp-my .tp-ghead { padding-top: 22px; }
.tp-my .tp-gname { font-size: 16px; }
.tp-my .tp-addrow input.tp-quick::placeholder { color: var(--muted); }
