:root, [data-theme="light"] {
  --bg: #f6f2ec; --card: #fffdf9; --ink: #2a2723; --muted: #6a6159; --line: #e3dbd0; --soft: #efe8de;
  --accent: #4f6d52; --accent-ink: #fff; --focus: #1f5fbf;
  --c-construction: #a2542f; --c-purchasing: #2f6690; --c-design: #7a5a8c; --c-legal: #4f6d52; --c-required: #8a3b5c; --c-social: #1f6f8b;
  --ok: #2e7d4f; --warn: #9a6200; --bad: #b3261e; --track: #e7dfd4;
  --p-cindy: #0e7c7b; --p-bracy: #3b7d2f; --p-virginia: #c2185b;
  --shadow: 0 1px 2px rgba(60,40,20,.06), 0 4px 14px rgba(60,40,20,.06);
}
[data-theme="dark"] {
  --bg: #1b1a18; --card: #24221f; --ink: #f1ece4; --muted: #b5aca1; --line: #3a3631; --soft: #2d2a26;
  --accent: #8fb592; --accent-ink: #14140f; --focus: #8ab4ff;
  --c-construction: #e0956d; --c-purchasing: #7fb4dc; --c-design: #c4a3d6; --c-legal: #8fb592; --c-required: #e59bbb; --c-social: #7ccbe3;
  --ok: #6fcf97; --warn: #f0b85a; --bad: #ff8a80; --track: #3a3631;
  --p-cindy: #4fd1c5; --p-bracy: #8fd17f; --p-virginia: #f48fb1;
  --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--c-purchasing); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
button { font: inherit; color: inherit; cursor: pointer; }
.btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 10px 16px; min-height: 44px; font-weight: 600; }
.ghost { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 44px; }
.ghost.sm, .btn.sm { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.danger { color: var(--bad); border-color: var(--bad); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-height: 44px; width: 100%; }
textarea { min-height: 80px; resize: vertical; }
label { font-size: 13px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 8px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand small { display: block; color: var(--muted); font-size: 15px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 22px; line-height: 1; }
nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
nav button { border: 0; background: transparent; padding: 8px 12px; border-radius: 999px; white-space: nowrap; min-height: 40px; color: var(--muted); font-weight: 600; }
nav button[aria-current="page"] { background: var(--ink); color: var(--bg); }
.me { display: flex; gap: 6px; }
@media (max-width: 720px) { nav { order: 3; flex-basis: 100%; } .me { margin-left: auto; } }

main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 80px; }
h1 { font-size: 24px; margin: 4px 0 4px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0; }
.sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* rings */
.ringcard { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; border: 1px solid var(--line); }
.ring { width: 76px; height: 76px; flex: none; }
.ring text { font-weight: 700; font-size: 20px; fill: var(--ink); }
.hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.hero .ring { width: 130px; height: 130px; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* budget */
.bbar { height: 14px; border-radius: 999px; background: var(--track); overflow: hidden; display: flex; margin: 8px 0; }
.bbar span { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }

/* category blocks */
.cat { margin-bottom: 14px; }
.cathead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pbar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; flex: 1; min-width: 80px; max-width: 220px; }
.pbar span { display: block; height: 100%; border-radius: 999px; }
.items { display: grid; gap: 6px; }
.it { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 6px 10px 6px 6px; min-height: 52px; }
.it.done .ttl { text-decoration: line-through; color: var(--muted); }
.chk { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 2px solid var(--muted); background: transparent; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.it.done .chk { background: var(--ok); border-color: var(--ok); color: #fff; }
.it .body { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 4px 0; }
.ttl { font-weight: 600; display: block; }
.meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--track); color: var(--ink); white-space: nowrap; }
.pill.todo { background: var(--track); }
.pill.doing, .pill.ordered { background: color-mix(in srgb, var(--c-purchasing) 18%, transparent); color: var(--ink); }
.pill.waiting { background: color-mix(in srgb, var(--warn) 22%, transparent); }
.pill.delivered, .pill.handed { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.pill.done { background: color-mix(in srgb, var(--ok) 22%, transparent); }
.late { color: var(--bad); font-weight: 700; }
.cost { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; text-align: right; }
.cost small { display: block; color: var(--muted); font-size: 11.5px; }
.addrow { border: 1px dashed var(--line); background: transparent; border-radius: 12px; min-height: 44px; color: var(--muted); font-weight: 600; width: 100%; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chipbtn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; min-height: 38px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* timeline */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.wk { position: relative; margin-bottom: 14px; }
.wk::before { content: ""; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.wk.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.wk.past::before { background: var(--muted); }
.wkh { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { border: 1px solid var(--line); background: var(--card); border-left: 5px solid var(--sec); border-radius: 10px; padding: 6px 10px; text-align: left; font-size: 13.5px; max-width: 100%; min-height: 40px; }
.tchip.ms { font-weight: 800; border-width: 2px; border-left-width: 5px; border-color: var(--sec); }
.tchip.done { opacity: .6; text-decoration: line-through; }
.tchip.late { border-color: var(--bad); border-left-color: var(--bad); }
.tchip small { color: var(--muted); font-weight: 600; margin-left: 4px; }

/* rooms */
.room { text-align: left; border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; width: 100%; }
.room .ring { width: 62px; height: 62px; }

/* log */
.log { display: grid; gap: 4px; }
.lg { display: grid; grid-template-columns: 22px 120px 1fr; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); align-items: start; font-size: 14.5px; }
.lg .when { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lg .tick { color: var(--ok); font-weight: 800; }
.lg button.lnk { background: none; border: 0; padding: 0; color: var(--c-purchasing); text-decoration: underline; text-align: left; font-weight: 600; }
@media (max-width: 560px) { .lg { grid-template-columns: 22px 1fr; } .lg .when { grid-column: 2; } .lg .what { grid-column: 2; } }
.daysep { font-weight: 800; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 14px 4px 4px; }

/* dialog */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(20,15,10,.45); }
.dh { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.dh h2 { flex: 1; font-size: 17px; }
.db { padding: 16px; display: grid; gap: 12px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .f2 { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; min-height: 40px; font-weight: 600; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stamp { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; display: grid; gap: 3px; }
.stamp b { font-weight: 700; }
.cmt { background: var(--soft); border-radius: 12px; padding: 8px 12px; }
.cmt .who { font-weight: 700; font-size: 13px; }
.cmt .who span { color: var(--muted); font-weight: 500; }

/* login */
.login { max-width: 420px; margin: 8vh auto; }
.who3 { display: grid; gap: 8px; }
.who3 button { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px; min-height: 56px; font-weight: 700; font-size: 17px; text-align: left; }
.who3 button[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--soft); }
.err { color: var(--bad); font-weight: 600; min-height: 1.4em; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; }
.empty { color: var(--muted); padding: 10px; font-size: 14px; }
footer.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 30px; }

.pill.confirm { background: color-mix(in srgb, var(--c-design) 22%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
label:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.thumbs { display: flex; gap: 4px; flex: none; }
.th { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--track); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--muted); text-decoration: none; border: 1px solid var(--line); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th.lg { width: 56px; height: 56px; flex: none; }
.prooflist { display: grid; gap: 8px; }
.pf { display: flex; align-items: center; gap: 10px; }
.pf .small { flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .it .thumbs { display: none; } }

.tlwrap { overflow-x: auto; margin-top: 6px; -webkit-overflow-scrolling: touch; }
.tlsvg { width: 100%; min-width: 760px; height: auto; display: block; }
.tlx { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.tll { font-size: 12.5px; font-weight: 700; }
.tlm { cursor: pointer; }
.tlm:focus-visible { outline: 3px solid var(--focus); }
.pcs { display: grid; gap: 8px; margin-top: 10px; }
.pc { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; border: 0; background: none; padding: 4px 0; text-align: left; min-height: 36px; }
.pcn { font-weight: 600; font-size: 14px; }
.pcb { height: 16px; border-radius: 999px; background: var(--track); overflow: hidden; display: flex; }
.pcb span { display: block; height: 100%; }
.pcv { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 480px) { .pc { grid-template-columns: 96px 1fr 40px; } }

[hidden] { display: none !important; }

.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.board { margin: 0; background: var(--soft); border-radius: 12px; overflow: hidden; }
.board img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--track); }
.board figcaption { padding: 8px 10px; overflow-wrap: anywhere; }
.pdfph { display: grid; place-items: center; aspect-ratio: 4/3; font-weight: 800; color: var(--muted); background: var(--track); }

.wm { height: 46px; width: auto; display: block; }
.wm-l { display: none; }
[data-theme="dark"] .wm-d { display: none; }
[data-theme="dark"] .wm-l { display: block; }
.brand strong { display: block; font-size: 20px; line-height: 1.1; }
.brand > div { border-left: 1px solid var(--line); padding-left: 14px; }
@media (max-width: 420px) { .wm { height: 32px; } .brand strong { font-size: 17px; } .brand small { font-size: 13px; } }

.grid > *, .card, .hero > * { min-width: 0; }
body { overflow-x: hidden; }

.planbtn { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0; margin-top: 10px; height: 460px; overflow: hidden; cursor: zoom-in; }
.planbtn img { width: 100%; height: 100%; object-fit: contain; display: block; }
dialog.wide { width: min(1100px, calc(100vw - 16px)); height: calc(100vh - 24px); max-height: none; }
.planfull { overflow: auto; height: calc(100% - 64px); background: #fff; touch-action: pan-x pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.planfull img { width: 100%; height: auto; display: block; }

.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; margin-left: 4px; }
.mt { margin-top: 0; }
.late-grp { border-color: var(--bad); }
.late-grp h2 { color: var(--bad); }
.whochip select { min-height: 28px; padding: 1px 22px 1px 8px; font-size: 12.5px; border-radius: 999px; width: auto; max-width: 170px; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.it .body { display: block; }
.meta .whochip { display: inline-flex; }

.it { flex-wrap: wrap; }
.it .whochip { flex: none; }
@media (max-width: 560px) { .it .whochip { margin-left: 46px; margin-top: -4px; } }

/* nav: always its own row, wraps — every tab visible at every width (10/11) */
.top nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; overflow: visible; row-gap: 4px; }
.top .me { margin-left: auto; }
nav button { padding: 7px 11px; }

.it .body { flex: 1 1 220px; }
@media (max-width: 560px) { .it .body { flex-basis: calc(100% - 56px); } }

@media (max-width: 720px) { .top { position: static; } }

.collapse { border: 1px solid var(--line); background: var(--card); border-radius: 8px; width: 36px; height: 36px; font-size: 16px; flex: none; }
.inis { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.ini { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 11px; font-weight: 800; color: var(--muted); }

.who3box { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; grid-column: 1 / -1; }
.who3box legend { font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 4px; }
.cb { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); font-weight: 600; margin: 4px 16px 4px 0; min-height: 36px; }
.cb input { width: 20px; min-height: 20px; height: 20px; }

/* timeline grid (10/11 redesign) */
.tg { display: grid; grid-template-rows: auto 6px auto auto auto auto; gap: 6px 4px; min-width: 1000px; margin-top: 10px; }
.tg-l { grid-column: 1; font-size: 12px; font-weight: 700; color: var(--muted); align-self: start; padding-top: 6px; }
.tg-h { grid-row: 1; font-weight: 800; font-size: 14px; border-bottom: 2px solid var(--line); padding: 4px 6px; }
.tg-h small { display: block; font-size: 11px; color: var(--accent); font-weight: 700; }
.tg-h.now { border-bottom-color: var(--accent); }
.tg-ph { background: color-mix(in srgb, var(--sec) 16%, var(--card)); border-left: 4px solid var(--sec); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--ink); overflow: hidden; }
.tg-c { grid-row: 5; display: grid; gap: 4px; align-content: start; padding: 0 2px; }
.tg-m { text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--sec); background: var(--card); border-radius: 8px; padding: 5px 7px; font-size: 12.5px; font-weight: 700; line-height: 1.25; min-height: 40px; }
.tg-m span { color: var(--sec); }
.tg-m small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.tg-m.done { opacity: .55; text-decoration: line-through; }
.tg-n { grid-row: 6; display: flex; gap: 4px; flex-wrap: wrap; padding: 0 2px; }
.tg-due { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 9px; min-height: 30px; }
.tg-due.late { background: var(--bad); color: #fff; border-color: var(--bad); }

/* timeline rows (10/11 v2) */
.tw-head, .tw { display: grid; grid-template-columns: 130px minmax(180px, 1.2fr) minmax(200px, 1.6fr) 110px; gap: 10px; align-items: start; }
.tw-head { margin: 12px 0 4px; padding: 0 10px; font-weight: 700; }
.tw-list { display: grid; gap: 6px; }
.tw { padding: 10px; border-radius: 12px; background: var(--soft); }
.tw.now { outline: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.tw-d b { display: block; font-size: 14.5px; }
.tw-d small { color: var(--accent); font-weight: 800; }
.tw-p, .tw-m { display: flex; flex-wrap: wrap; gap: 5px; }
.tw-ph { border-left: 4px solid var(--sec); background: var(--card); border-radius: 8px; padding: 5px 9px; font-size: 13px; font-weight: 600; }
.tw-ms { border: 1px solid var(--line); border-left: 4px solid var(--sec); background: var(--card); border-radius: 8px; padding: 5px 9px; font-size: 13px; font-weight: 700; text-align: left; min-height: 34px; }
.tw-ms small { color: var(--muted); font-weight: 600; }
.tw-ms.done { opacity: .55; text-decoration: line-through; }
.tw-n { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
@media (max-width: 760px) {
  .tw-head { display: none; }
  .tw { grid-template-columns: 1fr auto; }
  .tw-d { grid-column: 1; } .tw-n { grid-column: 2; grid-row: 1; }
  .tw-p, .tw-m { grid-column: 1 / -1; }
}

.pill.buy-gc { background: color-mix(in srgb, var(--c-construction) 20%, transparent); }
.pill.buy-vendor { background: color-mix(in srgb, var(--c-purchasing) 20%, transparent); }
.pill.buy-unsure { background: color-mix(in srgb, var(--warn) 25%, transparent); }

.sumchip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.sumchip.bad { border-color: var(--bad); color: var(--bad); }
.minehead { background: none; border: 0; padding: 4px 0; text-align: left; font-size: 16px; display: flex; flex-direction: column; min-height: 40px; }

/* My tasks tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; gap: 4px; text-align: left; min-height: 150px; padding: 14px 14px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); border-top: 6px solid var(--sec); transition: transform .12s ease; }
.tile:hover { transform: translateY(-2px); }
.tile.late { border-color: var(--bad); border-top-color: var(--bad); }
.tile-sec { font-size: 11.5px; font-weight: 800; color: var(--sec); text-transform: uppercase; letter-spacing: .04em; }
.tile-name { font-weight: 800; font-size: 15.5px; line-height: 1.25; }
.tile-n { font-size: 34px; font-weight: 800; line-height: 1; color: var(--sec); }
.tile-foot { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tile.late .tile-n { color: var(--bad); }
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { min-height: 132px; } }

.latest { display: block; font-size: 12.5px; color: var(--ink); background: color-mix(in srgb, var(--c-purchasing) 8%, transparent); border-left: 3px solid var(--c-purchasing); border-radius: 6px; padding: 3px 8px; margin-top: 5px; }
.steps { display: grid; gap: 4px; }
.step { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink); font-weight: 500; padding: 6px 8px; border-radius: 8px; background: var(--soft); min-height: 40px; }
.step input { width: 20px; height: 20px; min-height: 20px; margin-top: 2px; flex: none; }
.step.done span { text-decoration: line-through; color: var(--muted); }
.step.done small { text-decoration: none; display: inline-block; }

/* 3-month calendar */
.cal3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
@media (max-width: 860px) { .cal3 { grid-template-columns: 1fr; } }
.cmh { font-weight: 800; margin-bottom: 6px; }
.cg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cw { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.cd { position: relative; aspect-ratio: 1; min-height: 36px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; font-size: 13px; }
.cd.empty { border: 0; background: none; }
.cd.past { opacity: .5; }
.cd.today { outline: 2px solid var(--accent); font-weight: 800; }
.cd.hasmeet { background: color-mix(in srgb, var(--c-purchasing) 14%, var(--card)); }
.cdm { font-size: 12px; line-height: 1; }
.cdx { position: absolute; right: 3px; bottom: 1px; font-size: 11px; }

.cdx { right: 2px; bottom: 1px; font-size: 13px; line-height: 1; }

.plist { display: grid; gap: 4px; margin-top: 8px; }
.prow { display: grid; grid-template-columns: 120px 1fr 150px; gap: 10px; padding: 8px 10px; background: var(--soft); border-radius: 10px; align-items: baseline; font-size: 14.5px; }
@media (max-width: 600px) { .prow { grid-template-columns: 1fr; gap: 2px; } }

.cd.hol { background: color-mix(in srgb, var(--warn) 18%, var(--card)); }
.cdh { font-size: 12px; line-height: 1; }

/* My tasks: grouped tiles + check off several */
.mgrp h3 { font-size: 15px; margin: 4px 0 8px; display: flex; align-items: center; gap: 8px; }
.mgrp + .mgrp { margin-top: 6px; }
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: sticky; top: 0; z-index: 1; background: var(--card); padding: 2px 0 8px; }
.it.pick { cursor: pointer; }
.it.pick.on { outline: 2px solid var(--ok); }
.pickbox { width: 26px; height: 26px; margin: 0 6px 0 8px; flex: none; accent-color: var(--ok); }

/* Timeline chart */
.tl-chart { overflow-x: auto; }
.tl-row { display: grid; grid-template-columns: 250px minmax(520px, 1fr); align-items: center; border-top: 1px solid var(--line); }
.tl-headrow { border-top: 0; }
.tl-lab { font-weight: 700; font-size: 14px; padding: 8px 8px 8px 0; }
.tl-track { position: relative; height: 40px; }
.tl-months { height: 26px; }
.tl-months span { position: absolute; top: 4px; font-size: 13px; font-weight: 700; color: var(--muted); padding-left: 4px; white-space: nowrap; }
.tl-track > i { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.tl-now { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--bad); z-index: 2; }
.tl-ph { position: absolute; top: 11px; height: 18px; border-radius: 6px; background: var(--sec); opacity: .75; }
.tl-ms { position: absolute; top: 50%; transform: translate(-50%, -50%); background: var(--card); border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; font-size: 16px; padding: 0; z-index: 3; }
.tl-ms.done { opacity: .5; }
.tl-bar { position: absolute; top: 50%; transform: translateY(-50%); height: 26px; min-width: 10px; padding: 0; border: 1px solid var(--sec); border-radius: 8px; background: color-mix(in srgb, var(--sec) 16%, var(--card)); overflow: hidden; z-index: 3; }
.tl-bar.late { box-shadow: 0 0 0 2px var(--bad); }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sec); opacity: .85; }
.tl-tick { position: absolute; top: 5px; bottom: 5px; width: 2px; margin-left: -1px; background: var(--sec); opacity: .7; }
.tl-tick.late { background: var(--bad); opacity: 1; }
.tl-bar:focus-visible { outline: 3px solid var(--c-purchasing); outline-offset: 2px; }
.tl-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--sec); background: color-mix(in srgb, var(--sec) 25%, var(--card)); color: var(--ink); font-size: 12px; font-weight: 800; padding: 0; display: grid; place-items: center; z-index: 3; min-width: 24px; min-height: 24px; }
.tl-dot.done { background: var(--card); opacity: .55; }
.tl-dot.late { border-color: var(--bad); border-width: 3px; }
.tl-ms:focus-visible, .tl-dot:focus-visible { outline: 3px solid var(--c-purchasing); outline-offset: 2px; }
.chipbtn[aria-pressed="true"] .muted { color: inherit; opacity: .8; }

/* Version + update popup (hot pink) */
.ver { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; vertical-align: middle; margin-left: 4px; }
#verpop { position: fixed; right: 16px; bottom: 16px; z-index: 1000; width: min(360px, calc(100vw - 32px)); background: #d10a6e; color: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.3); display: grid; gap: 6px; }
#verpop[hidden] { display: none; }
#verpop b { font-size: 16px; }
#verpop ul { margin: 0; padding-left: 18px; }
#verpop .btn { background: #fff; color: #9c0050; justify-self: start; }
#verpop .btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* People tiles on Overview */
.ptiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.ptile { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.ptile .ring { width: 64px; height: 64px; flex: none; }
.ptile b { display: block; font-size: 16px; }
.ptile small { display: block; color: var(--muted); font-size: 13px; }

.budget-warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--ink); font-weight: 600; font-size: 14px; }

/* Check off several (global) */
body.bulk .chk { border-style: dashed; border-color: var(--c-purchasing); }
.chk.sel { background: var(--c-purchasing) !important; border: 2px solid var(--c-purchasing) !important; color: #fff; }
.chk.sel::after { content: "✓"; }
.bulk-only { display: none !important; }
body.bulk .bulk-only { display: inline-flex !important; }
body.bulk .bulk-off { display: none; }
#bulkBtn[aria-pressed="true"] { background: var(--c-purchasing); color: #fff; border-color: var(--c-purchasing); }
#bulkbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 900; width: min(560px, calc(100vw - 32px)); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--card); border: 2px solid var(--c-purchasing); border-radius: 14px; padding: 10px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
#bulkbar[hidden] { display: none; }
.ver.cur { color: var(--ok); border-color: var(--ok); }
.ver.old { color: #fff; background: #d10a6e; border-color: #d10a6e; cursor: pointer; }

.tl-lab { font-size: 15px; line-height: 1.25; }
.tl-lab small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.tl-grp { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; border-top: 2px solid var(--line); }
.tl-bar { height: 22px; }
.tl-mslab { background: none; border: 0; padding: 0; text-align: left; font-weight: 700; font-size: 15px; color: var(--ink); }
.tl-mslab.done { text-decoration: line-through; color: var(--muted); }
.tl-dia { position: absolute; top: 50%; width: 14px; height: 14px; background: var(--sec); transform: translate(-50%, -50%) rotate(45deg); border-radius: 2px; z-index: 3; }
.tl-dia.done { opacity: .4; }
.ptile { border-left: 6px solid var(--pc); }
.ptile b { color: var(--pc); }

/* About this task */
.about { background: color-mix(in srgb, var(--c-purchasing) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--c-purchasing) 40%, transparent); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.about b { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-purchasing); }
.about p { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
.about a { font-weight: 700; justify-self: start; }
.about-unsure { font-size: 14px !important; color: var(--warn); font-weight: 600; }

.pill.cancelled { background: var(--track); color: var(--muted); text-decoration: line-through; }
.it.cx { width: 100%; text-align: left; border: 0; }
.it.cx .ttl { text-decoration: line-through; color: var(--muted); }

.tile .pbar { margin-top: 8px; }
.tile-add { border-style: dashed; justify-content: center; align-items: center; color: var(--muted); }
/* Vendors: compact tiles */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; align-items: start; }
.vgrid .person { padding: 10px 12px; font-size: 14px; }
.vgrid .person b { font-size: 15px !important; }
.vgrid .person p { margin: 4px 0 0 !important; }
.vgrid .person .ghost.sm { padding: 2px 8px; min-height: 30px; font-size: 13px; }
