/* Q4 Projects (the board page) layout (tokens, top bar, buttons, motion and Lenis live in base.css). One column of project cards per lane, sub-tasks as a table with the owner flush right, an edit mode that keeps the same cards, and a pop-up per sub-task with its note. */
body { padding-block: 0 190px; }
.wrap { max-width: 960px; margin: 0 auto; }

header { padding-block: 48px 20px; display: grid; gap: 14px; }
.label { font: 600 10.5px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
h1 { font: 500 clamp(32px, 4.6vw, 52px)/1.14 var(--display); font-stretch: 118%; letter-spacing: -0.01em; margin: 0; text-wrap: balance; background: var(--head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font: 500 clamp(24px, 2.6vw, 30px)/1.2 var(--display); font-stretch: 118%; margin: 0; color: var(--ink); }
h3 { font: 500 21.6px/1.25 var(--display); font-stretch: 118%; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
.lede { font: 400 16px/1.6 var(--body); color: var(--ink-2); max-width: 64ch; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
section { padding-block: 36px 4px; display: grid; gap: 12px; }
.sub { color: var(--ink-3); font: 400 14px/1.5 var(--body); max-width: 66ch; }
.card { background: var(--card); border: 0.5px solid var(--line); border-radius: var(--r-card); padding: 22px 24px 12px; display: grid; gap: 8px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.meta { font: 500 12.5px/1.2 var(--body); color: var(--ink-3); }
.why { color: var(--ink-2); font: 400 14.5px/1.55 var(--body); }
.pill { display: inline-block; font: 600 11px/1 var(--body); padding: 6px 10px; border-radius: 50px; border: 0.5px solid transparent; }
.pill.qw { background: var(--gold-tint); border-color: var(--gold-line); color: var(--gold); }
.pill.ip { background: var(--pill); border-color: var(--pill-line); color: var(--ink); }
.pill.n { background: transparent; border-color: var(--line); color: var(--ink-2); }
.tbl { overflow-x: auto; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
:where(th, td) { padding: 0; }
th { text-align: left; font: 600 10.5px/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 0; border-bottom: 0.5px solid var(--line); }
td { vertical-align: top; padding: 11px 0; border-bottom: 0.5px solid var(--line-soft); font: 500 14px/1.45 var(--body); color: var(--ink-2); }
td.task { color: var(--ink); text-wrap: balance; }
.step-in { text-wrap: balance; }
th.own, td.own { width: 1%; white-space: nowrap; text-align: right; padding-left: 24px; }
td.act, th.act { width: 1%; padding-left: 8px; text-align: right; }
tr:last-child td { border-bottom: 0; }
.new { display: inline-block; margin-left: 8px; font: 600 9.5px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; border-radius: 50px; background: var(--gold-tint); border: 0.5px solid var(--gold-line); color: var(--gold); vertical-align: 2px; }
button.new { cursor: pointer; }
button.new:hover { background: rgba(195,153,22,0.25); }
.empty { color: var(--ink-3); font-size: 14px; padding: 6px 0 12px; }

/* edit mode */
.icon-btn { flex: none; cursor: pointer; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50px; background: var(--pill); border: 0.5px solid var(--pill-line); color: var(--ink-2); padding: 0; }
.icon-btn:hover:not(:disabled) { color: var(--ink); background: rgba(255,255,255,0.16); }
.icon-btn:disabled { opacity: 0.28; cursor: default; }
.icon-btn.del { background: transparent; border-color: transparent; }
.icon-btn.del:hover { color: var(--rose); background: var(--block); }
.moves { display: flex; align-items: center; gap: 6px; }
.editing .card { border-color: rgba(255,255,255,0.18); padding-bottom: 18px; }
.moves { flex-wrap: wrap; justify-content: flex-end; min-width: 0; max-width: 100%; }
.step-in, .name-in, .why-in { display: block; width: 100%; resize: none; field-sizing: content; overflow: hidden; background: transparent; border: 0.5px solid transparent; border-radius: 10px; padding: 4px 8px; margin: -5px 0 -5px -9px; }
.step-in { min-height: 30px; color: var(--ink); font: 500 14px/1.45 var(--body); }
.name-in { min-height: 34px; margin-block: -4px -6px; color: var(--ink); font: 500 21.6px/1.25 var(--display); font-stretch: 118%; }
.why-in { min-height: 30px; margin-block: 0; color: var(--ink-2); font: 400 14.5px/1.55 var(--body); }
.step-in:hover, .name-in:hover, .why-in:hover { border-color: var(--line); }
.step-in:focus, .name-in:focus, .why-in:focus { outline: none; border-color: var(--gold-line); background: var(--block); }
.step-in::placeholder, .name-in::placeholder, .why-in::placeholder { color: var(--ink-3); }
/* owner dropdown: a button with its own chevron inset like the text (never the native select), and the menu on body (board.js, "owner dropdown") */
.ow-btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 100%; margin-top: -4px; background: var(--navy); border: 0.5px solid var(--line); border-radius: 10px; color: var(--ink); font: 500 13.5px/1.2 var(--body); padding: 7px 10px; text-align: left; white-space: nowrap; transition: border-color 0.15s, color 0.15s; }
.ow-btn:hover { border-color: var(--pill-line); }
.ow-btn[aria-expanded="true"] { border-color: var(--gold-line); }
.ow-btn:focus-visible { outline: none; border-color: var(--gold-line); box-shadow: inset 0 0 0 1px var(--gold-line); }
.ow-t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-t::after { content: attr(data-w); display: block; height: 0; overflow: hidden; visibility: hidden; }  /* the button is as wide as the longest name, so it does not jump when the owner changes */
.ow-empty { color: var(--ink-3); }
.ow-chev { flex: none; color: var(--ink-2); transition: transform 1.2s var(--ease); }
.ow-btn[aria-expanded="true"] .ow-chev { transform: rotate(180deg); }
.ow-menu { position: fixed; top: 0; left: 0; z-index: 12; width: max-content; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 4px; display: grid; gap: 2px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; outline: none; user-select: none; -webkit-user-select: none;
  background: rgba(2,9,24,0.62); border: 0.5px solid rgba(255,255,255,0.14); border-radius: 14px; backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  opacity: 0; transform: translateY(-8px); clip-path: inset(-40px -40px 100% -40px); visibility: hidden; pointer-events: none;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease), visibility 0s linear 1.2s; }
.ow-menu::-webkit-scrollbar { display: none; }
.ow-menu.open { opacity: 1; transform: none; clip-path: inset(-40px -40px -40px -40px); visibility: visible; pointer-events: auto; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease), visibility 0s; }
.ow-opt { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font: 500 13.5px/1.2 var(--body); white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.ow-ot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-none { color: var(--ink-3); }
.ow-check { flex: none; opacity: 0; }
.ow-opt.act { background: rgba(255,255,255,0.08); color: var(--ink); }
.ow-opt.sel { background: var(--gold-tint); color: var(--gold); }
.ow-opt.sel.act { background: rgba(195,153,22,0.25); }
.ow-opt.sel .ow-check { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ow-menu, .ow-menu.open, .ow-chev { transition: none; } }
.add-step { justify-self: start; cursor: pointer; margin-top: 4px; background: transparent; border: 0.5px dashed rgba(255,255,255,0.22); color: var(--ink-2); border-radius: 50px; padding: 8px 13px; font: 500 12.5px/1 var(--body); }
.add-step:hover { color: var(--ink); border-color: var(--gold-line); }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.savebar-in { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; background: rgba(2,9,24,0.9); border: 0.5px solid var(--line); border-radius: var(--r-block); padding: 8px 8px 8px 20px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 18px 48px rgba(0,0,0,0.5); max-width: 100%; }
.save-status { font: 500 13px/1.3 var(--body); color: var(--ink-2); }
.save-status.dirty { color: var(--ink); }
.save-status.err { color: var(--rose); }
.save-actions { display: flex; gap: 6px; }
@media (max-width: 520px) { .savebar-in { padding: 10px 10px 10px 16px; } }
@media (prefers-reduced-motion: no-preference) { .card { transition: border-color 0.2s; } }

/* right-hand contents card, outside the content column, as on the ICP member pages */
.layout { display: block; }
.toc-col { display: none; }
#board .card, #board section { scroll-margin-top: 24px; }
@media (min-width: 1300px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 960px) minmax(296px, 1fr); }
  .layout > .wrap { grid-column: 2; width: 100%; max-width: none; margin: 0; }
  .toc-col { display: block; grid-column: 3; padding-left: 32px; min-width: 0; }
}
.toc { z-index: 9; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); margin-top: 16px; width: 256px; max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px)); overflow-y: auto; scrollbar-width: none; display: grid; gap: 2px; padding: 16px 10px; background: linear-gradient(180deg, rgba(255,255,255,0.065) 0%, rgba(255,255,255,0.02) 100%), #050d1f; border: 0.5px solid var(--line); border-radius: var(--r-block); box-shadow: 0 18px 48px rgba(0,0,0,0.35); }
.toc::-webkit-scrollbar { display: none; }
.toc .t-label { font: 600 10.5px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 6px; }
.toc-lane { font: 500 14px/1.2 var(--display); font-stretch: 118%; color: var(--ink); padding: 14px 10px 6px; }
.toc .ti { cursor: pointer; display: grid; grid-template-columns: 14px minmax(0, 1fr) 12px; align-items: center; gap: 6px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 7px 10px 7px 8px; font: 400 13px/1.3 var(--body); color: var(--ink-3); transition: background-color 0.15s, color 0.15s; }
.toc .ti .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc .ti:hover { background: var(--block); color: var(--ink); }
.toc .ti .arr { opacity: 0; transform: translateX(-3px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); color: var(--gold); }
.toc .ti .c { color: var(--ink-3); font-size: 12px; }
.toc .ti.on { background: var(--pill); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 0.5px var(--pill-line); }
.toc .ti.on .c { color: var(--ink-2); }
.toc .ti.on .arr { opacity: 1; transform: none; }
.toc .ttop { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; padding: 11px 14px; border-radius: 50px; border: 0.5px solid var(--pill-line); background: var(--pill); color: var(--ink); font: 500 13px/1 var(--body); transition: background-color 0.15s; }
.toc .ttop:hover { background: rgba(255,255,255,0.16); }
.toc :focus-visible { outline-color: var(--gold); }

/* bottom dock with the DataOS fade, as on the ICP board */
.bottom-fade { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; height: calc(160px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, rgba(2,9,24,0), rgba(2,9,24,0.95)); pointer-events: none; }
.dock { position: fixed; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); z-index: 9; max-width: calc(100vw - 32px); transform: translate(-50%, 0); clip-path: inset(-40px -40px -40px -40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease); border-radius: 50px; background: rgba(2,9,24,0.62); border: 0.5px solid rgba(255,255,255,0.14); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 18px 48px rgba(0,0,0,0.45); }
.dock.off { opacity: 0; transform: translate(-50%, 8px); clip-path: inset(-40px -40px 100% -40px); pointer-events: none; }
.dock-in { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 50px; overflow-x: auto; scrollbar-width: none; }
.dock-sep { flex: none; width: 0.5px; height: 20px; background: rgba(255,255,255,0.16); margin-inline: 2px; }
.dock .dock-edit { color: var(--ink); background: var(--pill); border-color: var(--pill-line); }
.dock .dock-edit:hover { background: rgba(255,255,255,0.16); }
.dock-in::-webkit-scrollbar { display: none; }
.dock button { flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; padding: 9px 14px; border-radius: 50px; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.06); color: var(--ink-2); font: 500 13px/1 var(--body); transition: background-color 1.2s var(--ease), color 1.2s var(--ease), border-color 1.2s var(--ease); }
.dock button:hover { color: var(--ink); }
.dock button.on { background: var(--gold-tint); border-color: rgba(206,168,48,0.45); color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* deadline per Quick Win / Impactful Project */
.head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.due-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--body); padding: 6px 10px; border-radius: 50px; background: var(--block); border: 0.5px solid var(--line); color: var(--ink); }
.due-chip svg { color: var(--gold); }
.due-edit { display: inline-flex; align-items: center; gap: 8px; font: 600 10px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.due-in { color-scheme: dark; background: var(--navy); border: 0.5px solid var(--line); border-radius: 10px; color: var(--ink); font: 500 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; padding: 6px 9px; }
.due-in:hover { border-color: var(--pill-line); }
.due-in:focus { outline: none; border-color: var(--gold-line); }

/* sub-task deadline column and reordering */
th.dl, td.dl { width: 1%; white-space: nowrap; text-align: right; padding-left: 24px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row-acts { display: inline-flex; gap: 4px; align-items: center; }
.icon-btn.sm { width: 26px; height: 26px; }
.sdue-in { color-scheme: dark; background: var(--navy); border: 0.5px solid var(--line); border-radius: 10px; color: var(--ink); font: 500 13px/1.2 var(--body); padding: 6px 8px; margin-top: -4px; }
.sdue-in:hover { border-color: var(--pill-line); }
.sdue-in:focus { outline: none; border-color: var(--gold-line); }
.editing table { min-width: 760px; }

/* edit mode: room for the field outline inside the scrolling table */
.editing .tbl { padding: 2px 2px 2px 10px; margin: 2px -2px 0 -10px; }

/* undo and redo in the save bar */
.hist { display: inline-flex; gap: 4px; margin-left: -8px; }

/* a short message above the dock: saved, a newer version arrived, a version was put back. Motion G on the element itself. */
.notice { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); z-index: 11; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: var(--r-block); background: rgba(2,9,24,0.78); border: 0.5px solid var(--line); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 18px 48px rgba(0,0,0,0.45); color: var(--ink); font: 500 13.5px/1.45 var(--body); text-align: center; text-wrap: balance; opacity: 0; transform: translate(-50%, 8px); clip-path: inset(-40px -40px 100% -40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease); pointer-events: none; }
.notice.show { opacity: 1; transform: translate(-50%, 0); clip-path: inset(-40px -40px -40px -40px); pointer-events: auto; }
.notice.ok { border-color: var(--gold-line); }
.notice.err { border-color: rgba(224,104,94,0.55); }
@media (prefers-reduced-motion: reduce) { .notice { transition: none; } }

/* Versies panel (a dialog card, base.css) */
dialog.vcard { width: min(560px, calc(100vw - 32px)); }
.vcard .pc-top { grid-template-columns: minmax(0, 1fr) auto; }
.vcard .role { color: var(--ink-3); font-weight: 400; font-size: 13.5px; line-height: 1.5; }
.v-list { list-style: none; margin: 0; padding: 0; max-height: min(52vh, 420px); overflow-y: auto; scrollbar-width: thin; }
.v-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 13px 0; border-bottom: 0.5px solid var(--line-soft); }
.v-row:last-child { border-bottom: 0; }
.v-main { display: grid; gap: 4px; min-width: 0; }
.v-main b { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 14px/1.3 var(--body); }
.v-main span { font: 400 12.5px/1.4 var(--body); color: var(--ink-3); }
.v-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.v-ask { font: 500 13px/1.35 var(--body); color: var(--ink); margin-right: 4px; }
.v-note { font: 400 12.5px/1.5 var(--body); color: var(--rose); }
.v-empty { padding: 8px 0; color: var(--ink-3); font: 400 14px/1.5 var(--body); }
.chip.now { padding: 4px 8px; font-size: 10.5px; }
.toc:empty { display: none; }

/* ---------- page title and intro in edit mode: same type as the read view, the field box sits outside the text (padding equals the negative margin; the
   outline is an inset shadow, so a border rounded to a whole pixel can never push the text down) ---------- */
.title-in, .lede-in { display: block; width: calc(100% + 18px); resize: none; field-sizing: content; overflow: hidden; background: transparent; border: 0; border-radius: 12px; padding: 5px 9px; margin: -5px -9px; box-shadow: inset 0 0 0 0.5px transparent; transition: box-shadow 0.15s; }
.title-in { font: 500 clamp(32px, 4.6vw, 52px)/1.14 var(--display); font-stretch: 118%; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.lede-in { max-width: calc(64ch + 18px); font: 400 16px/1.6 var(--body); color: var(--ink-2); text-wrap: pretty; }
.title-in:hover, .lede-in:hover { box-shadow: inset 0 0 0 0.5px var(--line); }
.title-in:focus, .lede-in:focus { outline: none; box-shadow: inset 0 0 0 0.5px var(--gold-line); background: var(--block); }
.title-in::placeholder, .lede-in::placeholder { color: var(--ink-3); }

/* ---------- lane heads with the Nieuw project badge ---------- */
.lane-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.add-proj { flex: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: 600 12px/1 var(--body); padding: 8px 13px 8px 11px; border-radius: 50px; background: var(--gold-tint); border: 0.5px solid var(--gold-line); color: var(--gold); transition: background-color 0.15s, color 0.15s; }
.add-proj:hover { background: rgba(195,153,22,0.25); }

/* ---------- card head: Afgerond badge on the left, progress next to the deadline ---------- */
.head-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.done-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 11px/1 var(--body); padding: 6px 10px 6px 9px; border-radius: 50px; background: var(--gold-grad); color: var(--on-gold); }
.done-badge.entering, .tp-conflict.entering { animation: aq-reveal 1.2s var(--ease) both; }
.done-badge.leaving, .tp-conflict.leaving { animation: aq-reveal-back 1.2s var(--ease) reverse forwards; }
.prog { display: inline-flex; align-items: center; white-space: nowrap; font: 600 11.5px/1 var(--body); padding: 6px 10px; border-radius: 50px; border: 0.5px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card.is-done .prog { color: var(--gold); border-color: var(--gold-line); }
.nil { color: var(--ink-3); }
.due-chip.is-nil svg { color: var(--ink-3); }

/* ---------- sub-task rows: done box, the text that opens the pop-up, note icon ---------- */
.task-in { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.task-tx { flex: 1 1 auto; min-width: 0; text-wrap: balance; }
.task-in > .step-in { flex: 1 1 auto; width: auto; min-width: 0; }
.task-link { color: var(--ink); text-decoration: none; text-decoration-color: rgba(255,255,255,0.3); border-radius: 4px; transition: color 0.15s; }
.task-link:hover { color: var(--gold); }
tr.done .task-link, tr.done .step-in { color: var(--ink-3); text-decoration-line: line-through; }
tr.done .task-link:hover { color: var(--gold); }
.note-ic { display: inline-flex; vertical-align: -1px; margin-left: 8px; color: var(--gold); }
.task-in > .note-ic { flex: none; margin: 5px 0 0; }
.task-in > .open-btn { margin-top: -3px; }
.task-in > .new { flex: none; margin: 2px 0 0; }
/* the box: a custom checkbox, one click; the tick draws in with the Aquila curve, the fill answers at once (press feedback 0.15 s) */
.dchk { flex: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; background: none; border: 0; color: var(--ink-2); font: 500 13.5px/1.2 var(--body); white-space: nowrap; border-radius: 7px; }
.task-in > .dchk { margin-top: 1px; }
.dbox-v { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.34); background: rgba(255,255,255,0.03); color: var(--on-gold); transition: background-color 0.15s, border-color 0.15s; }
.dbox-v .tick { stroke-dasharray: 11; stroke-dashoffset: 11; transition: stroke-dashoffset 1.2s var(--ease); }
.dchk:hover .dbox-v { border-color: var(--gold-line); }
.dchk[aria-checked="true"] .dbox-v { background-color: var(--gold); border-color: var(--gold); }
.dchk[aria-checked="true"] .dbox-v .tick { stroke-dashoffset: 0; }
.dchk:focus-visible { outline: none; }
.dchk:focus-visible .dbox-v { outline: 1.5px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dbox-v .tick { transition: none; } }

/* ---------- contents card: a small gold check for a finished project ---------- */
.toc .ti .tdone { display: inline-grid; place-items: center; color: var(--gold); opacity: 0; transition: opacity 1.2s var(--ease); }
.toc .ti.done .tdone { opacity: 1; }

/* ---------- dock: each lane pill is a group, the label jumps to the lane, the + adds a project ---------- */
.dock-grp { flex: none; display: inline-flex; align-items: stretch; border-radius: 50px; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.06); transition: background-color 1.2s var(--ease), border-color 1.2s var(--ease); }
.dock .dock-grp > button { background: transparent; border-color: transparent; }
.dock .dock-grp > button[data-goto] { padding-right: 9px; }
.dock .dock-grp > button.on { background: transparent; border-color: transparent; }
.dock .dock-plus { position: relative; padding: 9px 13px 9px 10px; color: var(--ink-3); transition: color 0.15s; }
.dock .dock-plus::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 0.5px; background: rgba(255,255,255,0.16); }
.dock .dock-plus:hover { color: var(--ink); }
.dock-grp:has(> button.on) { background: var(--gold-tint); border-color: rgba(206,168,48,0.45); }
.dock-grp:has(> button.on) .dock-plus { color: var(--gold); }

/* ---------- edit mode: delete a project, the confirm card ---------- */
.icon-btn.del-proj:hover:not(:disabled) { color: var(--rose); background: var(--block); }
dialog.cfm { width: min(440px, calc(100vw - 32px)); }
.cfm .pc-top { grid-template-columns: minmax(0, 1fr) auto; }
.cfm .role { color: var(--ink-2); font-weight: 400; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.cf-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.btn.danger { background: rgba(224,104,94,0.14); border-color: rgba(224,104,94,0.5); color: #f3a39b; transition: background-color 0.15s; }
.btn.danger:hover { background: rgba(224,104,94,0.24); }

/* ---------- the sub-task pop-up: the dialog is the overlay and carries the blur itself; on a phone the panel is a full-screen sheet ---------- */
html.tp-open { overflow: hidden; }
dialog.tp { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px 16px; border: 0; overflow: hidden; color: var(--ink-2); background: rgba(1,6,15,0.5); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); }
dialog.tp[open] { display: grid; place-items: center; }
dialog.tp::backdrop { background: transparent; }
.tp-panel { width: min(760px, 100%); height: min(860px, calc(100dvh - 48px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #071022; background-image: var(--card); border: 0.5px solid var(--line); border-radius: var(--r-card); box-shadow: 0 30px 80px rgba(0,0,0,0.6); overflow: hidden; }
.tp-panel:focus { outline: none; }
.tp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 0 32px; }
.tp-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 10.5px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tp-crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-crumb span:first-child { flex: none; }
.tp-crumb svg { flex: none; }
#tp-proj { color: var(--ink-2); }
.tp-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 32px 24px; scrollbar-width: thin; }
.tp-title { margin: 0; font: 500 clamp(24px, 3.2vw, 32px)/1.2 var(--display); font-stretch: 118%; color: var(--ink); text-wrap: balance; transition: color 1.2s var(--ease); }
.tp-panel.done .tp-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
.tp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 18px; padding-bottom: 18px; border-bottom: 0.5px solid var(--line); }
.tp-done { color: var(--ink); }
.tp-m { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.tp-v { font: 500 14px/1.2 var(--body); color: var(--ink); }
.tp-conflict { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 18px; padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(224,104,94,0.08); border: 0.5px solid rgba(224,104,94,0.45); color: var(--ink); font: 500 13.5px/1.4 var(--body); }
.tp-cf-t { text-wrap: balance; }
.tp-cf-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-cf-acts .btn.primary { padding: 10px 15px; font-size: 13px; }
.tp-foot { padding: 12px 32px 18px; border-top: 0.5px solid var(--line-soft); min-height: 46px; }
.tp-status { display: block; font: 500 12.5px/1.4 var(--body); color: var(--ink-3); }
.tp-status.err { color: var(--rose); }
.tp-wait, .tp-err { margin: 0; font: 400 14px/1.5 var(--body); color: var(--ink-3); }
.tp-err { color: var(--rose); }
@media (prefers-reduced-motion: no-preference) {
  dialog.tp[open] { animation: aq-fade 1.2s var(--ease); }
  dialog.tp[open] .tp-panel { animation: aq-reveal 1.2s var(--ease); }
  dialog.tp.is-closing { animation: aq-fade-back 1.2s var(--ease) reverse forwards; }
  dialog.tp.is-closing .tp-panel { animation: aq-reveal-back 1.2s var(--ease) reverse forwards; }
}
@media (max-width: 640px) {
  dialog.tp { padding: 0; }
  .tp-panel { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .tp-top { padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 0 20px; }
  .tp-body { padding: 8px 20px 20px; }
  .tp-foot { padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- the note: live markdown like Bear, in the Aquila skin (Plus Jakarta Sans body, Archivo headings, gold for links and checked boxes, 0.5px hairlines) ---------- */
.tp-note { padding-top: 20px; }
.tp-note .ProseMirror { min-height: 240px; outline: none; white-space: pre-wrap; word-wrap: break-word; font: 400 16px/1.65 var(--body); color: var(--ink-2); caret-color: var(--gold); }
.tp-note .ProseMirror > * + * { margin-top: 0.7em; }
.tp-note .ProseMirror p { margin: 0; text-wrap: pretty; }
.tp-note .ProseMirror h1, .tp-note .ProseMirror h2, .tp-note .ProseMirror h3 { margin: 1.3em 0 0; font-family: var(--display); font-weight: 500; font-stretch: 118%; color: var(--ink); text-wrap: balance; }
.tp-note .ProseMirror h1 { font-size: 25px; line-height: 1.2; }
.tp-note .ProseMirror h2 { font-size: 20.5px; line-height: 1.25; }
.tp-note .ProseMirror h3 { font-size: 17px; line-height: 1.3; }
.tp-note .ProseMirror > :first-child { margin-top: 0; }
.tp-note .ProseMirror strong { color: var(--ink); font-weight: 650; }
.tp-note .ProseMirror s { color: var(--ink-3); }
.tp-note .ProseMirror a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 2px; cursor: text; }  /* Cmd or Ctrl click opens it (board.js) */
.tp-note .ProseMirror code { font: 500 0.86em/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; padding: 1px 5px; border-radius: 6px; background: var(--block); border: 0.5px solid var(--line); color: var(--ink); }
.tp-note .ProseMirror pre { margin-top: 0.9em; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,0.28); border: 0.5px solid var(--line); overflow-x: auto; }
.tp-note .ProseMirror pre code { padding: 0; border: 0; background: none; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.tp-note .ProseMirror blockquote { margin-left: 0; margin-right: 0; padding: 2px 0 2px 16px; border-left: 1px solid var(--gold-line); color: var(--ink-2); }
.tp-note .ProseMirror hr { margin: 1.4em 0; border: 0; border-top: 0.5px solid var(--line); }
.tp-note .ProseMirror hr.ProseMirror-selectednode { border-top-color: var(--gold); }
.tp-note .ProseMirror ul, .tp-note .ProseMirror ol { margin-bottom: 0; padding-left: 1.35em; }
.tp-note .ProseMirror li { margin: 0.18em 0; }
.tp-note .ProseMirror li p { text-wrap: balance; }
.tp-note .ProseMirror li::marker { color: var(--gold); }
.tp-note .ProseMirror ul[data-type="taskList"] { list-style: none; padding-left: 0; }
.tp-note .ProseMirror ul[data-type="taskList"] li { display: flex; align-items: flex-start; gap: 10px; }
.tp-note .ProseMirror ul[data-type="taskList"] li > label { flex: none; display: inline-flex; margin-top: 4.5px; cursor: pointer; user-select: none; }
.tp-note .ProseMirror ul[data-type="taskList"] li > div { flex: 1 1 auto; min-width: 0; }
.tp-note .ProseMirror ul[data-type="taskList"] input[type="checkbox"] { -webkit-appearance: none; appearance: none; margin: 0; width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.34); background: rgba(255,255,255,0.03); cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.tp-note .ProseMirror ul[data-type="taskList"] input[type="checkbox"]:hover { border-color: var(--gold-line); }
.tp-note .ProseMirror ul[data-type="taskList"] input[type="checkbox"]:checked { border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.6 6.2 4.9 8.5 9.4 3.6' stroke='%23141414' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tp-note .ProseMirror ul[data-type="taskList"] input[type="checkbox"]:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 2px; }
.tp-note .ProseMirror li[data-checked="true"] > div { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
.tp-note .ProseMirror p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; height: 0; pointer-events: none; color: var(--ink-3); }
.tp-note .ProseMirror ::selection { background: rgba(206,168,48,0.3); }
