:root {
  --bg: #fbfbf9; --fg: #1c1c1a; --muted: #75756f; --line: #e4e4de; --soft: #f1f1ec;
  --accent: #26467a; --accent-fg: #fff; --danger: #a33a2e;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141413; --fg: #e8e8e3; --muted: #8e8e86; --line: #2c2c29; --soft: #1d1d1b; --accent: #8fb0e8; --accent-fg: #101418; --danger: #e0786b; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--font); font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 15px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }

header { display: flex; align-items: center; gap: 28px; padding: 0 24px; height: 52px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
header .brand { font-weight: 600; letter-spacing: -0.01em; }
nav { display: flex; gap: 4px; flex: 1; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 4px; }
nav a:hover { color: var(--fg); }
nav a.on { color: var(--fg); background: var(--soft); }
.who { color: var(--muted); font-size: 13px; display: flex; gap: 12px; align-items: center; }
main { padding: 24px; max-width: 1400px; margin: 0 auto; }
.bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }

.btn { border: 1px solid var(--line); background: transparent; padding: 5px 12px; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { opacity: .9; }
.btn.danger { color: var(--danger); }
.btn.link { border: 0; padding: 0; color: var(--muted); }
.btn.link:hover { background: none; color: var(--fg); }
input, select, textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 6px 8px; width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* login */
.login { max-width: 320px; margin: 18vh auto 0; padding: 0 16px; }
.login h1 { font-size: 20px; margin-bottom: 4px; }
.login form { margin-top: 24px; }
.login .btn { width: 100%; margin-top: 8px; padding: 8px; }
.err { color: var(--danger); font-size: 13px; min-height: 20px; margin-top: 8px; }

/* board */
.search { width: 220px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.col { background: var(--soft); border-radius: 10px; padding: 10px 10px 6px; min-height: calc(100vh - 150px); transition: box-shadow .12s; }
.col.over { box-shadow: inset 0 0 0 2px var(--accent); }
.col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 2px 4px 10px; display: flex; align-items: center; gap: 8px; }
.col h3 .count { margin-left: auto; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.s-doing .dot { background: var(--accent); } .s-review .dot { background: #c98a1b; } .s-done .dot { background: #3d8b5f; }
.cards { min-height: 48px; padding-top: 2px; }
.cards:empty::before { content: "Nothing here"; display: block; text-align: center; color: var(--muted); font-size: 12px; padding: 14px 0; opacity: .7; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; cursor: pointer; user-select: none; box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: border-color .12s, box-shadow .12s; }
.card:hover { border-color: var(--muted); box-shadow: 0 2px 6px rgb(0 0 0 / .08); }
.card:focus-visible { outline: 2px solid var(--accent); }
.card .t { overflow-wrap: anywhere; }
.card.done .t { color: var(--muted); text-decoration: line-through; }
.card.drag { opacity: .3; }
.card.ghost { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; box-shadow: 0 10px 28px rgb(0 0 0 / .25); cursor: grabbing; }
.grabbing, .grabbing * { cursor: grabbing !important; }
.ph { height: 0; position: relative; }
.ph::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 3px; border-radius: 2px; background: var(--accent); }
.card .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 9px; background: var(--soft); color: var(--muted); }
.chip.late { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.add { margin-bottom: 8px; resize: none; min-height: 0; }
.addbtn { display: block; width: 100%; text-align: left; padding: 7px 4px; margin-bottom: 4px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }

/* roadmap */
.gantt { border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; position: relative; }
.g-row { display: flex; height: 30px; border-bottom: 1px solid var(--line); }
.g-row:last-child { border-bottom: 0; }
.g-lab { flex: 0 0 220px; position: sticky; left: 0; background: var(--bg); z-index: 2; padding: 5px 10px; border-right: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-trk { position: relative; flex: none; }
.g-head .g-lab, .g-head .g-trk { background: var(--soft); }
.g-head { height: 28px; }
.g-grid { background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); }
.g-month { position: absolute; top: 5px; font-size: 12px; color: var(--muted); padding-left: 6px; }
.g-grp .g-lab { font-weight: 600; background: var(--soft); }
.g-grp .g-trk { background: var(--soft); }
.g-span { position: absolute; top: 13px; height: 3px; background: var(--muted); opacity: .5; }
.g-bar { position: absolute; top: 6px; height: 18px; border-radius: 3px; background: var(--accent); cursor: pointer; min-width: 6px; }
.g-bar.s-todo { background: transparent; border: 1.5px solid var(--accent); }
.g-bar.s-done { background: var(--muted); opacity: .55; }
.g-bar.s-review { background: repeating-linear-gradient(135deg, var(--accent) 0 4px, transparent 4px 8px); border: 1.5px solid var(--accent); }
.g-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--danger); z-index: 1; pointer-events: none; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }

/* log + comments */
.entry { border-top: 1px solid var(--line); padding: 18px 0; display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.entry .date { color: var(--muted); }
.entry h3 { margin-bottom: 4px; }
.body { white-space: pre-wrap; }
.cmts { margin-top: 12px; }
.cmt { padding: 8px 0; border-top: 1px solid var(--line); }
.cmt .who2 { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.cmt-form { display: flex; gap: 8px; margin-top: 8px; }
.cmt-form textarea { min-height: 36px; height: 36px; }

/* paper + people */
.list { border: 1px solid var(--line); border-radius: 6px; }
.list > div { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.list > div:last-child { border-bottom: 0; }
.list .grow { flex: 1; }
.list select { width: auto; }
.inv { display: grid; grid-template-columns: 1fr 1fr 140px auto; gap: 8px; margin-bottom: 18px; }

dialog { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: min(560px, calc(100vw - 32px)); padding: 22px; max-height: 90vh; }
dialog::backdrop { background: rgb(0 0 0 / .35); }
dialog .foot { display: flex; justify-content: space-between; margin: 16px 0; }
.empty { color: var(--muted); padding: 24px 0; }

@media (max-width: 800px) {
  header { gap: 12px; padding: 0 12px; overflow-x: auto; }
  main { padding: 16px 12px; }
  .board { grid-template-columns: 1fr; }
  .col { min-height: 0; }
  .search { width: 140px; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
  .inv { grid-template-columns: 1fr; }
  .g-lab { flex-basis: 120px; }
}

/* overview (markdown) */
.md { max-width: 900px; }
.md h2 { font-size: 22px; margin: 0 0 12px; }
.md h3 { font-size: 16px; margin: 28px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.md p, .md li { line-height: 1.6; }
.md ul { padding-left: 20px; }
.md code { font-family: var(--mono); font-size: 12px; background: var(--soft); padding: 1px 4px; border-radius: 3px; }
.md table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.md th, .md td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.md th { color: var(--muted); font-weight: 500; font-size: 12px; }
.md .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 12px 0; }
.md figure { margin: 0; }
.md figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: block; }
.md figcaption { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* overview sub-tabs, inline PDF, figure gallery */
.subnav { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.subnav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--fg); }
.subnav a.on { color: var(--fg); border-bottom-color: var(--accent); }
.bar a.btn { text-decoration: none; color: var(--fg); }
iframe.pdf { width: 100%; height: calc(100vh - 230px); min-height: 520px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: block; }
.gallery figcaption { color: var(--muted); font-size: 12px; margin-top: 4px; text-transform: capitalize; }
.bar .grow { flex: 1; }

/* CAD tab */
.seg { display: inline-flex; gap: 0; margin-bottom: 16px; }
.seg .btn { border-radius: 0; margin-left: -1px; }
.seg .btn:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.seg .btn:last-child { border-radius: 0 4px 4px 0; }
.seg .btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.cad { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.stage { position: relative; height: calc(100vh - 260px); min-height: 460px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--soft); }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.cad-side { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 260px); min-height: 460px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tools .btn { padding: 3px 10px; }
.info { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-height: 96px; flex: none; }
.tools, .cad-side > label, .treehead { flex: none; }
.info h3 { font-size: 14px; }
.info p { margin: 2px 0 8px; }
.kv { border-collapse: collapse; width: 100%; margin-bottom: 8px; font-size: 13px; }
.kv th { text-align: left; font-weight: 500; color: var(--muted); padding: 2px 10px 2px 0; white-space: nowrap; vertical-align: top; }
.kv td { padding: 2px 0; overflow-wrap: anywhere; }
.treehead { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 2px; }
.tree { overflow: auto; flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.tree summary { cursor: pointer; padding: 1px 0; }
.tree .p { padding-left: 24px; }
.tree .r { display: inline-flex; align-items: center; gap: 6px; }
.tree input[type=checkbox] { width: auto; margin: 0; }
.tree .r.sel .btn { color: var(--accent); font-weight: 600; }
.cad-d { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.dlist { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-height: calc(100vh - 230px); overflow: auto; padding-right: 8px; }
.dlist .btn.on { color: var(--accent); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.kpis > div { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.kpis .v { font-size: 15px; font-weight: 600; }
.sec { margin: 24px 0 8px; }
.tw { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td:nth-child(2) { white-space: normal; min-width: 200px; }
.tbl th { color: var(--muted); font-weight: 500; font-size: 12px; }
.tbl .n { text-align: right; }
@media (max-width: 900px) {
  .cad, .cad-d { grid-template-columns: 1fr; }
  .stage { height: 60vh; min-height: 320px; }
  .cad-side { max-height: none; min-height: 0; }
  .tree { max-height: 260px; }
  .dlist { max-height: 200px; }
}

/* assignees: Abdurrahman = green, Abdulmuizz = purple, Shared = accent */
:root { --who-abdurrahman: #3d8b5f; --who-abdulmuizz: #8a4fb5; --who-shared: var(--accent); }
.chip.who-abdurrahman { background: color-mix(in srgb, var(--who-abdurrahman) 18%, transparent); color: var(--who-abdurrahman); }
.chip.who-abdulmuizz { background: color-mix(in srgb, var(--who-abdulmuizz) 18%, transparent); color: var(--who-abdulmuizz); }
.chip.who-shared { background: color-mix(in srgb, var(--who-shared) 18%, transparent); color: var(--who-shared); }
.card[data-who="abdurrahman"] { border-left: 3px solid var(--who-abdurrahman); }
.card[data-who="abdulmuizz"] { border-left: 3px solid var(--who-abdulmuizz); }
.card[data-who="shared"] { border-left: 3px solid var(--who-shared); }
.bar .seg { margin: 0; }

/* docs tab: one lane per author + shared */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.lane { background: var(--soft); border-radius: 10px; padding: 14px; border-top: 3px solid var(--muted); }
.lane-abdurrahman { border-top-color: var(--who-abdurrahman); }
.lane-abdulmuizz { border-top-color: var(--who-abdulmuizz); }
.lane-shared { border-top-color: var(--who-shared); }
.lane h3 { font-size: 15px; }
.lane > p.muted { margin: 2px 0 12px; font-size: 12px; }
.doc { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; margin-bottom: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--fg); }
.doc:hover { border-color: var(--muted); }
.doc .dn { font-weight: 600; overflow-wrap: anywhere; }
.doc .muted:not(.mono) { font-size: 12px; }
.lane .empty { padding: 8px 0; font-size: 12px; }
@media (max-width: 900px) { .lanes { grid-template-columns: 1fr; } }

/* roadmap timeline */
.who-card { display: flex; gap: 24px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.who-card-abdurrahman { border-left-color: var(--who-abdurrahman); }
.who-card-abdulmuizz { border-left-color: var(--who-abdulmuizz); }
.who-card h2 { font-size: 18px; }
.who-card p { margin: 4px 0 0; max-width: 720px; }
.who-stat { text-align: right; min-width: 150px; }
.who-stat .big { font-size: 26px; font-weight: 600; }
.prog { display: inline-flex; align-items: center; gap: 8px; }
.pbar { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); }
.nextup { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nextup > div { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.nextup h3 { font-size: 13px; margin-bottom: 8px; }
.nrow { padding: 3px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
h3.sec { margin: 24px 0 10px; font-size: 15px; }
details.obj { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--bg); }
details.obj > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.obj > summary::before { content: "▸"; color: var(--muted); }
details.obj[open] > summary::before { content: "▾"; }
.oc { font-weight: 600; color: var(--muted); min-width: 28px; }
.ot { font-weight: 600; flex: 1; }
.odesc { margin: 0 14px 8px; font-size: 13px; }
details.trow { border-top: 1px solid var(--line); }
details.trow > summary { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 28px; cursor: pointer; list-style: none; flex-wrap: wrap; }
details.trow > summary:hover { background: var(--soft); }
.tt { flex: 1; min-width: 200px; }
.tt.done { color: var(--muted); text-decoration: line-through; }
.tbody { padding: 4px 14px 14px 46px; }
.tbody h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 4px; font-weight: 500; }
ul.plain, ul.ck { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 2px 0; }
ul.ck li::before { content: "☐ "; color: var(--muted); }
ul.ck li.on::before { content: "☑ "; color: var(--who-abdurrahman); }
.chip.ok { background: color-mix(in srgb, var(--who-abdurrahman) 18%, transparent); color: var(--who-abdurrahman); }
.lead { max-width: 760px; }
.hand { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.hrow { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.hrow.block { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, transparent); }
.arrow { text-align: center; color: var(--muted); }
.needs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.needs select { width: auto; max-width: 100%; }
.chip.need { display: inline-flex; gap: 6px; align-items: center; padding: 2px 6px 2px 8px; }
.chip .x { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; }
@media (max-width: 800px) {
  .who-card { flex-direction: column; align-items: flex-start; }
  .nextup, .hrow { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); }
}

/* markdown: code blocks + ordered lists */
.md pre { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; overflow-x: auto; margin: 12px 0; }
.md pre code { background: none; padding: 0; font-size: 12px; line-height: 1.45; white-space: pre; }
.md ol { padding-left: 22px; }

/* ---------- Benchmark dashboard (Overview > Benchmark) ---------- */
.wp4 { max-width: 1100px; }
.wp4 .wp4h { font-size: 18px; margin-bottom: 6px; }
.wp4 p { overflow-wrap: anywhere; }
.wp4sec { margin-top: 26px; }
.wp4sec > h2 { margin-bottom: 10px; }
.wp4legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; font-size: 12px; color: var(--muted); }
.wp4cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.wp4card { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.wp4card p { margin: 6px 0 0; }
.wp4ct { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.chip.wp4-measured { background: color-mix(in srgb, var(--who-abdurrahman) 18%, transparent); color: var(--who-abdurrahman); }
.chip.wp4-ablation { background: color-mix(in srgb, var(--who-abdulmuizz) 18%, transparent); color: var(--who-abdulmuizz); }
.chip.wp4-robustness { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.chip.wp4-planned, .chip.wp4-draft { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
.wp4plots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.wp4plot { margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 10px; min-width: 0; }
.wp4scroll { overflow-x: auto; }
.wp4chart { display: block; max-width: 100%; height: auto; }
.wp4chart .g { stroke: var(--line); }
.wp4chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.wp4chart .yt { text-anchor: end; }
.wp4chart .xt { text-anchor: middle; }
.wp4chart .xr { text-anchor: end; }
.wp4chart .ref { stroke: var(--danger); stroke-dasharray: 4 3; }
.wp4chart .reft { text-anchor: end; fill: var(--danger); }
.wp4chart .s0 { fill: var(--muted); } .wp4chart .s1 { fill: var(--accent); } .wp4chart .s2 { fill: var(--who-abdurrahman); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.sw.s0 { background: var(--muted); } .sw.s1 { background: var(--accent); } .sw.s2 { background: var(--who-abdurrahman); }
.sw.ref { background: none; border-top: 2px dashed var(--danger); height: 0; }
.wp4tl { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.wp4tl li { padding: 4px 0 4px 14px; position: relative; overflow-wrap: anywhere; }
.wp4tl li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--who-abdurrahman); }
.wp4tl li.planned::before { background: var(--bg); border: 2px solid var(--muted); width: 6px; height: 6px; }
.wp4 .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 12px 0; }
.wp4 figure { margin: 0; min-width: 0; }
.wp4 figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: block; }

/* task modal: read view first, pencil to edit */
.dbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dbar .sp { flex: 1; }
.dbar.editing .chip { opacity: .5; }
.icon { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; }
.icon:hover { background: var(--soft); color: var(--fg); }
.dtitle { font-size: 20px; line-height: 1.3; margin: 4px 0 8px; }
.dsub { font-size: 15px; margin: 18px 0 6px; }
.dsec { margin-top: 16px; }
.dsec h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.dsec p { margin: 0; }
.notes { white-space: pre-wrap; color: var(--muted); }
.steps { margin: 0; padding-left: 20px; } .steps li { margin-bottom: 4px; }
.chip.st-doing { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.chip.st-done { background: color-mix(in srgb, #3d8b5f 18%, transparent); color: #3d8b5f; }
.chip.st-review { background: color-mix(in srgb, #c98a1b 18%, transparent); color: #c98a1b; }
dialog { width: min(620px, calc(100vw - 32px)); overflow-y: auto; }
.idcopy{font-family:ui-monospace,Consolas,monospace;cursor:pointer;border:0}.idcopy:hover{filter:brightness(.92)}

.selbar { position: absolute; left: 10px; bottom: 10px; max-width: min(440px, calc(100% - 20px)); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 13px; box-shadow: 0 2px 10px rgb(0 0 0 / .15); }
.selbar[hidden] { display: none; }
.selbar .kv { margin: 4px 0 0; }
.selhead { display: flex; align-items: center; gap: 6px; }
.selhead b { flex: 1; overflow-wrap: anywhere; }
.selhead .btn { padding: 2px 8px; }
.hint { font-size: 12px; margin: 0; }
.cad-dlg { width: min(640px, calc(100vw - 32px)); }
.cad-dlg .btns { display: flex; gap: 8px; margin-top: 8px; }
.cad-dlg .tbl td:nth-child(2) { white-space: nowrap; min-width: 0; }
/* future work: parked, greyed but not struck through, never counted */
.chip.future { background: transparent; color: var(--muted); border: 1px dashed var(--muted); line-height: 16px; }
.card.future { opacity: .55; background: var(--soft); box-shadow: none; }
.card.future:hover { opacity: .8; }
.card.future .t { color: var(--muted); }
.trow.future > summary { opacity: .55; }
.trow.future .tt { color: var(--muted); }
.g-bar.future { opacity: .3; filter: grayscale(1); }
.fut-btn { font-size: 12px; padding: 4px 10px; }
.dbar { flex-wrap: wrap; }
