/* Cadence Project workspace — rides the Principal flagship shell canon
   (docs/design/decisions/2026-08-31-principal-flagship-shell.md): white cards on the warm-grey canvas,
   #E2DED6 hairlines, plum #302437 as the one authority colour, 6px surfaces, sans work-surface title.
   Tiles, tables and buttons follow the app's own Today / run-board patterns, not a settings surface. */
.prj { --p-card: #ffffff; --p-rule: #e2ded6; --p-hair: #f1eee8; --p-ink: #22232a; --p-muted: #7a756e; --p-faint: #a7a099;
  --p-plum: #302437; --p-plum2: #5a3470; --p-plum-soft: #f1ecf4; --p-ok: #147a5a; --p-ok-soft: #dcefe6; --p-warn: #a1751c; --p-hot: #b4423a; --p-hot-soft: #f8e7e5;
  --p-track: #bebdb8; --p-plum-mid: #8f78a2; --p-zebra: #f8f8f5; --p-head: #302437; --p-head-ink: #e9dfcd; --p-r: 6px; color: var(--p-ink); font-variant-numeric: tabular-nums; }
/* The shell floors main near 1025px; keep this surface inside the viewport at 980 regardless. */
.prj .prj-wrap { max-width: min(1560px, calc(100vw - 52px)); margin-inline: auto; }
.prj .prj-loading { display: flex; align-items: center; gap: 10px; color: var(--p-muted); font-size: 13px; padding: 40px 0; }
.prj .prj-spin { width: 14px; height: 14px; border: 2px solid var(--p-rule); border-top-color: var(--p-plum2); border-radius: 50%; animation: prjSpin .7s linear infinite; display: inline-block; }
@keyframes prjSpin { to { transform: rotate(360deg); } }
.prj .prj-err { background: var(--p-hot-soft); color: var(--p-hot); border-radius: var(--p-r); padding: 12px 14px; font-size: 13px; }
/* Row A: title + plumbing (the skin sets .page-head h2 to Instrument Sans 650/21; this is the unskinned fallback). */
.prj .prj-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 10px; }
.prj .prj-top-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prj .prj-top-name { font-size: 12px; color: var(--p-faint); margin-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.prj .prj-top .primary-btn.compact, .prj .prj-top .secondary-btn.compact { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.prj .seg { border-radius: 6px; }
.prj .prj-head { margin-bottom: 10px; }
.prj .prj-head .actions { display: flex; gap: 8px; }
.prj .prj-head .primary-btn.compact { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.prj .prj-head .secondary-btn { border-radius: 6px; }
/* Row B: the view switcher (the app's segmented control) + the four facts that never move. */
.prj .prj-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 10px; }
/* section tabs: the nav bar's own language (text, underline), not a boxed control */
.prj .prj-nav { display: flex; gap: 22px; border-bottom: 1px solid var(--p-rule); flex: 1; min-width: 0; }
.prj .prj-tab { background: none; border: 0; padding: 6px 1px 9px; margin-bottom: -1px; font: inherit; font-size: 13px; font-weight: 500; color: var(--p-muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.prj .prj-tab:hover { color: var(--p-ink); }
.prj .prj-tab.on { color: var(--p-ink); font-weight: 650; border-bottom-color: var(--p-plum); }
.prj .prj-top { align-items: flex-end; }
.prj .prj-top-r { padding-bottom: 6px; }
.prj .prj-cnt { display: inline-block; min-width: 16px; padding: 0 5px; border-radius: 999px; background: var(--p-plum-soft); color: var(--p-plum2); font-size: 10.5px; font-weight: 700; margin-left: 3px; line-height: 16px; vertical-align: 1px; }
.prj .prj-kpis { display: inline-flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.prj .prj-chip { display: inline-flex; flex-direction: column; gap: 2px; white-space: nowrap; text-align: right; }
.prj .prj-chip-l { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8d8880; }
.prj .prj-chip-v { font-size: 14.5px; font-weight: 720; color: #201b26; display: inline-flex; align-items: center; gap: 6px; }
.prj .prj-kpis .prj-chip-v { font-size: 15.5px; justify-content: flex-end; }
.prj .prj-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--p-faint); flex: none; }
.prj .prj-dot.rag-green { background: var(--p-ok); } .prj .prj-dot.rag-amber { background: var(--p-warn); } .prj .prj-dot.rag-red { background: var(--p-hot); }
/* cards */
.prj .prj-card { background: var(--p-card); border: 1px solid var(--p-rule); border-radius: var(--p-r); padding: 12px 14px 14px; min-width: 0; margin-bottom: 10px; }
.prj .prj-card-h { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; row-gap: 6px; margin-bottom: 10px; }
.prj .prj-card-hl { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.prj .prj-card-hl > strong { font-size: 15px; font-weight: 650; color: var(--p-ink); white-space: nowrap; }
.prj .prj-plan-hl { flex-direction: column; align-items: flex-start; gap: 3px; }
.prj .prj-plan-t { display: flex; align-items: center; gap: 8px; }
.prj .prj-plan-t .prj-dot { width: 9px; height: 9px; }
.prj .prj-plan-t strong { font-size: 16px; font-weight: 650; color: var(--p-ink); }
.prj .prj-plan-sub { font-size: 12.5px; color: var(--p-muted); }
.prj .prj-plan-sub b { color: var(--p-ink); font-weight: 600; }
.prj .prj-card-sub { font-size: 12px; color: var(--p-faint); }
.prj .prj-card-b { font-size: 13px; color: var(--p-muted); }
.prj .prj-arrow-lnk { color: var(--p-faint); font-size: 15px; cursor: pointer; padding: 0 2px; }
.prj .prj-arrow-lnk:hover { color: var(--p-plum2); }
.prj .prj-plum { color: var(--p-plum2); font-weight: 600; }
.prj .prj-quiet { font-size: 12.5px; color: var(--p-faint); padding: 6px 0 2px; }
.prj .prj-empty-card { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--p-muted); padding: 22px 20px; }
.prj .prj-empty-card strong { color: var(--p-ink); font-weight: 600; }
.prj .prj-tl-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; display: inline; }
.prj .prj-tl-link:hover { color: var(--p-plum2); text-decoration: underline; }
.prj .prj-tl-link strong { color: var(--p-ink); }
.prj .prj-ink { color: var(--p-ink); font-weight: 500; }
.prj .prj-hot { color: var(--p-hot); font-weight: 600; }
.prj .prj-ok { color: var(--p-ok); font-weight: 700; }
.prj .prj-muted { color: var(--p-muted); }
.prj .prj-faint { color: var(--p-faint); }
.prj .prj-gate-mark { color: var(--p-plum2); font-size: 9px; margin-left: 5px; vertical-align: 1px; }
/* plan stepper */
.prj .prj-legend { font-size: 11px; color: var(--p-faint); display: inline-flex; align-items: center; gap: 5px; }
.prj .prj-legend i { display: inline-block; width: 14px; height: 6px; border-radius: 3px; margin-left: 10px; }
.prj .prj-legend b { margin-left: 10px; }
.prj .prj-legend i.done { background: var(--p-ok); } .prj .prj-legend i.now { background: var(--p-plum); } .prj .prj-legend i.todo { background: var(--p-track); }
.prj .prj-steps-wrap { margin-top: 22px; }
.prj .prj-steps { display: flex; gap: 6px; }
/* every phase gets the same base width so its name stays legible; the rest of the row is shared in proportion to duration */
.prj .prj-step { min-width: 0; flex: 1 1 96px; position: relative; }
.prj .prj-today { position: absolute; top: -4px; height: 16px; width: 0; border-left: 1.5px solid var(--p-ink); z-index: 1; pointer-events: none; }
.prj .prj-today span { position: absolute; top: -14px; left: -3px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--p-ink); line-height: 1; }
.prj .prj-step-bar { height: 8px; border-radius: 4px; background: var(--p-track); overflow: hidden; position: relative; }
.prj .prj-step.done .prj-step-bar { background: var(--p-ok); }
.prj .prj-step.now .prj-step-bar { background: var(--p-plum-mid); }
.prj .prj-step.now .prj-step-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--p-plum); border-radius: 4px; }
.prj .prj-step-n { font-size: 12.5px; font-weight: 600; color: var(--p-ink); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prj .prj-step.todo .prj-step-n { color: var(--p-muted); font-weight: 500; }
.prj .prj-step.now .prj-step-n { color: var(--p-plum); font-weight: 700; }
.prj .prj-step-d { font-size: 11px; color: var(--p-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prj .prj-cap { font-size: 12.5px; color: var(--p-muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--p-hair); }
.prj .prj-legend-row { display: flex; justify-content: flex-end; margin-top: 10px; }
.prj .prj-cap b { color: var(--p-ink); font-weight: 650; }
.prj .prj-cap-r { text-align: right; }
/* tiles (the Today pattern: a number, a coloured dot, a label with an arrow, one line of context, three lines of proof) */
.prj .prj-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.prj .prj-tile { background: var(--p-card); border: 1px solid var(--p-rule); border-radius: var(--p-r); padding: 16px 16px 14px; min-width: 0; cursor: pointer; transition: box-shadow .15s ease; }
.prj .prj-tile:hover { box-shadow: 0 3px 12px rgba(20, 20, 20, .09); }
.prj .prj-num { font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--p-ink); }
.prj .prj-tile-l { font-weight: 700; font-size: 13px; margin-top: 3px; color: var(--p-ink); display: flex; align-items: center; gap: 7px; }
.prj .prj-tile[data-sev="hot"] .prj-dot { background: var(--p-hot); } .prj .prj-tile[data-sev="warn"] .prj-dot { background: var(--p-warn); } .prj .prj-tile[data-sev="neutral"] .prj-dot { background: var(--p-faint); }
.prj .prj-arrow { color: var(--p-faint); font-weight: 400; }
.prj .prj-tile-s { font-size: 12px; color: var(--p-muted); margin-top: 3px; line-height: 1.45; }
.prj .prj-tile-s strong { color: var(--p-ink); }
.prj .prj-tilelist { margin-top: 8px; border-top: 1px solid var(--p-hair); padding-top: 6px; }
.prj .prj-tileitem { font-size: 11.5px; color: var(--p-muted); padding: 2px 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prj .prj-tileitem strong { color: var(--p-ink); }
.prj .prj-tileitem a { color: var(--p-plum2); }
.prj .prj-tile-zero { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; cursor: pointer; }
.prj .prj-tile-zero .prj-tile-l { margin: 0; }
.prj .prj-tile-z { font-size: 12px; color: var(--p-faint); }
/* update card */
.prj .prj-rags { display: inline-flex; gap: 14px; }
.prj .prj-ragline { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: capitalize; color: var(--p-muted); }
.prj .prj-ragline em { font-style: normal; font-weight: 500; text-transform: none; color: var(--p-faint); }
.prj .prj-upd-sec { margin-top: 9px; font-size: 12.5px; line-height: 1.5; color: var(--p-muted); }
.prj .prj-upd-sec:first-child { margin-top: 0; }
.prj .prj-upd-sec b { display: block; font-size: 10.5px; font-weight: 700; color: var(--p-faint); margin-bottom: 1px; }
.prj .prj-upd-dec { border-left: 3px solid var(--p-plum2); padding-left: 10px; color: var(--p-ink); }
.prj .prj-upd-dec b { color: var(--p-plum2); }
/* milestone table (the run-board family: plum header band, cream cells, warm zebra) */
.prj .prj-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; align-items: start; }
.prj .prj-grid-2 > .prj-card { margin-bottom: 0; }
.prj .prj-ms-card { padding-bottom: 12px; }
.prj .prj-tblwrap { overflow-x: auto; margin: 0 -2px; }
.prj .prj-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.35; }
.prj .prj-tbl th { background: var(--p-head); color: var(--p-head-ink); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 7px 10px; text-align: left; white-space: nowrap; position: static; }
.prj .prj-tbl th:first-child { border-radius: 4px 0 0 4px; } .prj .prj-tbl th:last-child { border-radius: 0 4px 4px 0; }
.prj .prj-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--p-hair); color: var(--p-ink); white-space: nowrap; vertical-align: middle; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.prj .prj-tbl td:first-child { font-weight: 600; }
.prj .prj-tbl tbody tr:nth-child(even) td { background: var(--p-zebra); }
.prj .prj-tbl tr.done td:first-child { color: var(--p-muted); font-weight: 500; }
.prj .prj-tbl .prj-num-cell { color: var(--p-muted); }
/* ---- work-surface toolbar (unboxed, like .dc-toolbar): views/filters left, small-caps stats + actions right ---- */
.prj .prj-tb { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; row-gap: 8px; margin: 0 0 10px; }
.prj .prj-tb-l, .prj .prj-tb-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prj .prj-tb .primary-btn.compact, .prj .prj-tb .secondary-btn.compact { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.prj .prj-tb .secondary-btn, .prj .prj-card-h .secondary-btn, .prj .prj-cal-h .secondary-btn { border-radius: 6px; }
/* view switchers: quiet text, the active one carries a soft plum wash; no tray */
.prj .prj-views { display: inline-flex; gap: 2px; }
.prj .prj-view { background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 500; color: var(--p-muted); cursor: pointer; white-space: nowrap; }
.prj .prj-view:hover { color: var(--p-ink); background: var(--p-zebra); }
.prj .prj-view.on { color: var(--p-plum); background: var(--p-plum-soft); font-weight: 650; }
.prj .prj-views-sm .prj-view { font-size: 11.5px; padding: 3px 9px; }
.prj .prj-seg-n { font-size: 11px; font-weight: 600; color: var(--p-faint); margin-left: 2px; }
.prj .prj-view.on .prj-seg-n { color: var(--p-plum2); }
.prj .prj-stats { display: inline-flex; align-items: baseline; gap: 14px; margin-right: 6px; }
.prj .prj-stat { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.prj .prj-stat-l { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8d8880; }
.prj .prj-stat-v { font-size: 13px; font-weight: 700; color: var(--p-ink); }
.prj .prj-warn { color: var(--p-warn); font-weight: 600; }
/* status = dot + word, the Today language; never a filled pill */
.prj .prj-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--p-ink); white-space: nowrap; }
.prj .prj-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-faint); flex: none; }
.prj .prj-st.t-ok i { background: var(--p-ok); } .prj .prj-st.t-now i { background: var(--p-plum2); } .prj .prj-st.t-warn i { background: var(--p-warn); } .prj .prj-st.t-hot i { background: var(--p-hot); }
.prj .prj-st.t-faint { color: var(--p-muted); }
.prj .prj-st-pri .prj-inline { margin-left: -4px; }
/* inline select: reads as text until hovered, then a quiet control */
.prj .prj-sel { font: inherit; font-size: 12.5px; color: var(--p-ink); background: #fff; border: 1px solid var(--p-rule); border-radius: 6px; padding: 5px 9px; }
.prj .prj-inline { width: auto; min-width: 0; padding: 3px 22px 3px 7px; font-size: 12px; border-color: transparent; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--p-faint) 50%), linear-gradient(135deg, var(--p-faint) 50%, transparent 50%); background-position: calc(100% - 11px) 11px, calc(100% - 7px) 11px; background-size: 4px 4px; background-repeat: no-repeat; margin: -3px 0; }
.prj .prj-inline:hover { border-color: var(--p-rule); background-color: #fff; }
.prj .prj-inline:focus { outline: none; border-color: var(--p-plum2); box-shadow: 0 0 0 3px var(--p-plum-soft); }
/* work tables: the plum band family, rows that open on click */
.prj .prj-tblcard { padding: 4px 6px 6px; }
.prj .prj-tbl-work td { white-space: normal; max-width: none; padding: 7px 10px; vertical-align: top; }
.prj .prj-tbl-work td:first-child { font-weight: 400; }
.prj .prj-tbl-work td b { font-weight: 600; color: var(--p-ink); }
.prj .prj-tbl-work tr.prj-row { cursor: pointer; }
.prj .prj-tbl-work tr.prj-row:hover td { background: var(--p-plum-soft); }
.prj .prj-tbl-work tbody tr:nth-child(even) td { background: transparent; }
.prj .prj-tbl-work .prj-c-ref { width: 44px; white-space: nowrap; color: var(--p-faint); font-variant-numeric: tabular-nums; }
.prj .prj-tbl-work .prj-c-num { width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.prj .prj-tbl-work .prj-c-go { width: 28px; text-align: right; padding-right: 6px; }
.prj .prj-tbl-work .prj-c-date { white-space: nowrap; color: var(--p-muted); }
.prj .prj-tbl-work .prj-c-main { min-width: 260px; }
.prj .prj-tbl-work th.prj-c-num { text-align: right; }
.prj .prj-go { color: var(--p-faint); font-size: 14px; cursor: pointer; }
.prj .prj-row:hover .prj-go { color: var(--p-plum2); }
.prj .prj-sub2 { font-size: 11.5px; color: var(--p-muted); margin-top: 2px; line-height: 1.4; max-width: 64ch; }
.prj .prj-wrapcol { max-width: 56ch; }
.prj .prj-tbl-work tr.prj-grp td { background: var(--p-zebra); border-bottom: 1px solid var(--p-rule); padding: 6px 10px; }
.prj .prj-tbl-work tr.prj-grp:not(:first-child) td { border-top: 1px solid var(--p-rule); }
.prj .prj-grp-n { font-size: 12.5px; font-weight: 700; color: var(--p-ink); margin-right: 10px; }
.prj .prj-grp-m { font-size: 11.5px; color: var(--p-muted); }
.prj .prj-empty-row td { color: var(--p-faint); font-size: 12px; padding: 7px 10px 9px 44px; }
.prj .prj-msrow td b { color: var(--p-plum); }
.prj .prj-gate-mark.faint { color: var(--p-faint); }
.prj .prj-ms-dot { color: var(--p-plum2); font-size: 8px; margin-left: 10px; }
.prj .prj-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--p-muted); background: var(--p-zebra); border: 1px solid var(--p-rule); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.prj .prj-tag.hot { color: var(--p-hot); background: var(--p-hot-soft); border-color: transparent; }
.prj .prj-a { color: var(--p-plum2); text-decoration: none; font-weight: 500; }
.prj .prj-a:hover { text-decoration: underline; }
.prj .prj-doc-a b { color: var(--p-plum); }
.prj .prj-doc-nolink { color: var(--p-ink); }
.prj .prj-prov { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--p-muted); background: var(--p-zebra); border: 1px solid var(--p-rule); vertical-align: 1px; }
.prj .prj-prov.p-fathom { color: #5a3470; background: var(--p-plum-soft); border-color: transparent; }
.prj .prj-prov.p-gdoc { color: #1a56b0; background: #e8f0fb; border-color: transparent; }
.prj .prj-prov.p-gsheet { color: #147a5a; background: var(--p-ok-soft); border-color: transparent; }
.prj .prj-prov.p-gslides { color: #a1751c; background: #f7efdc; border-color: transparent; }
.prj .prj-prov.p-pdf { color: var(--p-hot); background: var(--p-hot-soft); border-color: transparent; }
.prj .prj-tbl-work .prj-c-upd { white-space: nowrap; }
.prj .prj-prov.p-agenda { color: var(--p-plum2); background: var(--p-plum-soft); border-color: transparent; text-decoration: none; }
/* meeting builder */
.prj .prj-drawer-wide { width: 640px; }
.prj .prj-drawer-hr { display: flex; align-items: center; gap: 8px; }
.prj .prj-agenda-open { border-radius: 6px; text-decoration: none; }
.prj .prj-agenda { display: flex; flex-direction: column; gap: 10px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.prj .prj-ag-draft { background: var(--p-zebra); border: 1px solid var(--p-rule); border-radius: 6px; padding: 10px 12px 10px; }
.prj .prj-ag-draft-h { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-plum2); margin-bottom: 8px; }
.prj .prj-ag-draft-row { display: grid; grid-template-columns: 1fr 88px; gap: 8px; margin-bottom: 8px; }
.prj .prj-ag-draft textarea { width: 100%; box-sizing: border-box; }
.prj .prj-ag-draft-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11.5px; }
.prj .prj-ag-list { display: flex; flex-direction: column; gap: 8px; }
.prj .prj-ag-sec { border: 1px solid var(--p-rule); border-radius: 6px; padding: 8px 10px 10px; background: #fff; }
.prj .prj-ag-row { display: grid; grid-template-columns: 1fr 64px 150px 28px; gap: 6px; align-items: center; margin-bottom: 6px; }
.prj .prj-ag-row input { min-width: 0; }
.prj .prj-ag-row [data-ag="title"] { font-weight: 600; }
.prj .prj-ag-x { width: 26px; height: 26px; font-size: 12px; }
.prj .prj-ag-sec textarea { width: 100%; box-sizing: border-box; font-size: 12.5px; }
.prj .prj-ag-chapters { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; }
.prj .prj-ag-chapters-h { flex-basis: 100%; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--p-faint); }
.prj .prj-form-grid label.prj-ag-ch { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; font-size: 12px; color: var(--p-ink); text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; margin: 0; }
.prj .prj-ag-ch input { accent-color: var(--p-plum2); }
.prj .prj-ag-ch span { color: var(--p-faint); font-size: 11px; }
.prj .prj-ag-ch.done { color: var(--p-faint); }
/* design questionnaire */
.prj .prj-chapter .prj-card-h { padding: 8px 8px 4px; margin-bottom: 4px; }
.prj .prj-tbl-work .prj-c-q { min-width: 260px; }
.prj .prj-tbl-work .prj-c-ans { width: 34%; min-width: 220px; }
.prj .prj-tbl-work .prj-c-who { white-space: nowrap; }
.prj .prj-dq { width: 100%; box-sizing: border-box; font: inherit; font-size: 12.5px; color: var(--p-ink); background: #fff; border: 1px solid var(--p-rule); border-radius: 6px; padding: 5px 8px; }
.prj .prj-dq:focus { outline: none; border-color: var(--p-plum2); box-shadow: 0 0 0 3px var(--p-plum-soft); }
.prj .prj-dq:disabled { background: var(--p-zebra); color: var(--p-muted); }
.prj tr.prj-qrow.done td { color: var(--p-muted); }
.prj tr.prj-qrow.done td b { color: var(--p-muted); font-weight: 500; }
.prj .prj-ag-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; }
/* gantt: month strip, one row per phase, milestones on the bar, today + go-live lines */
.prj .prj-gantt { padding: 6px 14px 10px; }
.prj .prj-g-row { display: grid; grid-template-columns: 200px 1fr; align-items: stretch; }
.prj .prj-g-row + .prj-g-row .prj-g-track, .prj .prj-g-row + .prj-g-row .prj-g-name { border-top: 1px solid var(--p-hair); }
.prj .prj-g-name b { font-size: 12.5px; }
.prj .prj-legend-row .prj-legend { font-size: 10.5px; }
.prj .prj-g-head { margin-bottom: 2px; }
.prj .prj-g-name { padding: 5px 10px 5px 0; min-width: 0; }
.prj .prj-g-name b { display: block; font-size: 12.5px; font-weight: 600; color: var(--p-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prj .prj-g-name.now b { color: var(--p-plum); font-weight: 700; }
.prj .prj-g-name.todo b { color: var(--p-muted); font-weight: 500; }
.prj .prj-g-name span { display: block; font-size: 11px; color: var(--p-faint); white-space: nowrap; }
.prj .prj-g-track { position: relative; min-height: 34px; }
.prj .prj-g-months { min-height: 28px; }
.prj .prj-g-m { position: absolute; top: 4px; bottom: 0; border-left: 1px solid var(--p-rule); padding-left: 6px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--p-faint); white-space: nowrap; overflow: hidden; }
.prj .prj-g-m span { font-weight: 500; letter-spacing: 0; }
.prj .prj-g-m.tight { color: transparent; }
.prj .prj-g-grid { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--p-hair); pointer-events: none; }
.prj .prj-g-today, .prj .prj-g-golive { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--p-ink); z-index: 2; pointer-events: none; }
.prj .prj-g-golive { border-left: 1.5px dashed var(--p-plum2); }
.prj .prj-g-lbl { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; color: var(--p-ink); background: #fff; padding: 0 4px; z-index: 3; }
.prj .prj-g-lbl.golive { color: var(--p-plum2); }
.prj .prj-g-bar { position: absolute; top: 9px; height: 16px; border-radius: 3px; background: var(--p-track); overflow: hidden; }
.prj .prj-g-bar.done { background: var(--p-ok); }
.prj .prj-g-bar.now { background: var(--p-plum-mid); }
.prj .prj-g-bar.now i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--p-plum); }
.prj .prj-g-ms { position: absolute; top: 9px; transform: translateX(-50%); font-size: 10px; line-height: 16px; color: var(--p-plum2); z-index: 1; cursor: default; }
.prj .prj-g-ms.gate { font-size: 12px; }
.prj .prj-g-ms.done { color: var(--p-ok); }
.prj .prj-gantt .prj-legend-row { margin-top: 8px; }
/* calendar */
.prj .prj-cal { padding: 12px 14px 14px; }
.prj .prj-cal-h { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.prj .prj-cal-title { font-size: 15px; font-weight: 650; color: var(--p-ink); margin: 0 6px; flex: 1; }
.prj .prj-nav-btn { padding: 4px 9px; font-size: 14px; line-height: 1; }
.prj .prj-cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--p-faint); padding: 0 0 6px; }
.prj .prj-cal-dow div { padding-left: 6px; }
.prj .prj-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--p-rule); border: 1px solid var(--p-rule); border-radius: 6px; overflow: hidden; }
.prj .prj-cal-cell { background: #fff; min-height: 84px; padding: 5px 6px; min-width: 0; overflow: hidden; }
.prj .prj-cal-cell.out { background: var(--p-zebra); }
.prj .prj-cal-cell.out .prj-cal-d { color: var(--p-faint); }
.prj .prj-cal-cell.today .prj-cal-d { color: #fff; background: var(--p-plum); border-radius: 999px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.prj .prj-cal-d { font-size: 11.5px; font-weight: 600; color: var(--p-muted); font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.prj .prj-cal-ev { display: block; border-left: 3px solid var(--p-plum2); background: var(--p-plum-soft); color: var(--p-ink); font-size: 11px; padding: 2px 5px; border-radius: 3px; margin-top: 2px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prj .prj-cal-ev b { font-weight: 600; color: var(--p-plum2); }
.prj .prj-cal-ev.held { border-left-color: var(--p-ok); background: var(--p-ok-soft); }
.prj .prj-cal-ev.held b { color: var(--p-ok); }
.prj .prj-cal-ev.cancelled { border-left-color: var(--p-rule); background: var(--p-zebra); color: var(--p-faint); text-decoration: line-through; }
/* board */
.prj .prj-board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.prj .prj-bcol { flex: 1 1 220px; min-width: 200px; }
.prj .prj-bcol { background: var(--p-zebra); border: 1px solid var(--p-rule); border-radius: var(--p-r); padding: 8px; min-width: 0; }
.prj .prj-bcol.now { border-color: var(--p-plum-mid); }
.prj .prj-bcol.empty { flex: 0 0 132px; }
.prj .prj-legend-left { justify-content: flex-start; }
.prj .prj-bcol-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); padding: 2px 4px 8px; }
.prj .prj-bcol-h span { color: var(--p-faint); font-weight: 600; margin-left: 4px; }
.prj .prj-bcol.now .prj-bcol-h { color: var(--p-plum); }
.prj .prj-bcol-empty { font-size: 11.5px; color: var(--p-faint); padding: 4px; }
.prj .prj-mcard { background: #fff; border: 1px solid var(--p-rule); border-left-width: 3px; border-radius: 5px; padding: 8px 10px; margin-bottom: 7px; cursor: pointer; color: var(--p-ink); }
.prj .prj-mcard:hover { box-shadow: 0 3px 12px rgba(20, 20, 20, .09); }
.prj .prj-mcard.held { border-left-color: var(--p-ok); }
.prj .prj-mcard.scheduled { border-left-color: var(--p-plum2); }
.prj .prj-mcard.cancelled { border-left-color: var(--p-rule); color: var(--p-faint); }
.prj .prj-mcard-d { font-size: 11px; color: var(--p-faint); }
.prj .prj-mcard-t { font-size: 12.5px; font-weight: 600; margin: 2px 0; }
.prj .prj-mcard-s { font-size: 11px; color: var(--p-muted); }
.prj .prj-team-card + .prj-team-card { margin-top: 12px; }
.prj .prj-team-card .prj-card-h { padding: 8px 8px 4px; margin-bottom: 4px; }
/* forms, drawer, modal, toast — white surfaces, 6px controls, sans titles, one primary */
.prj .prj-form select, .prj .prj-form input, .prj .prj-form textarea, .prj .prj-init select, .prj .prj-init input, .prj .prj-init textarea, .prj .prj-modal textarea, .prj .prj-drawer-sec textarea { font: inherit; font-size: 13px; color: var(--p-ink); background: #fff; border: 1px solid var(--p-rule); border-radius: 6px; padding: 7px 9px; }
.prj .prj-form :is(select, input, textarea):focus, .prj .prj-init :is(select, input, textarea):focus, .prj .prj-modal textarea:focus, .prj .prj-drawer-sec textarea:focus { outline: none; border-color: var(--p-plum2); box-shadow: 0 0 0 3px var(--p-plum-soft); }
.prj .prj-form :is(select, input, textarea):disabled { background: var(--p-zebra); color: var(--p-muted); }
.prj .prj-init { padding: 20px 24px; max-width: 760px; }
.prj .prj-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.prj .prj-form-grid label, .prj .prj-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--p-faint); }
.prj .prj-lbl { margin-top: 12px; }
.prj .prj-form-grid label > input, .prj .prj-form-grid label > select, .prj .prj-form-grid label > textarea, .prj .prj-lbl textarea { text-transform: none; letter-spacing: 0; font-weight: 400; }
.prj .prj-field.wide { grid-column: 1 / -1; }
.prj .prj-sfx { position: relative; display: block; }
.prj .prj-sfx input { width: 100%; box-sizing: border-box; padding-right: 28px; }
.prj .prj-sfx i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--p-faint); pointer-events: none; }
.prj .prj-check { flex-direction: row !important; align-items: center; gap: 8px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; color: var(--p-ink) !important; font-size: 13px !important; padding-top: 18px; }
.prj .prj-check input { width: 16px; height: 16px; accent-color: var(--p-plum2); }
.prj .prj-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.prj .prj-drawer-ov { position: fixed; inset: 0; background: rgba(34, 35, 42, .28); z-index: 900; display: flex; justify-content: flex-end; }
.prj .prj-drawer { width: 560px; max-width: 96vw; height: 100%; background: #fff; border-left: 1px solid var(--p-rule); box-shadow: -12px 0 40px rgba(34, 35, 42, .12); display: flex; flex-direction: column; }
.prj .prj-drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 12px; border-bottom: 1px solid var(--p-rule); }
.prj .prj-drawer-t { font-family: "Instrument Sans", Arial, sans-serif; font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--p-ink); }
.prj .prj-drawer-t .prj-faint { font-weight: 500; font-size: 13px; margin-left: 4px; }
.prj .prj-x { width: 28px; height: 28px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--p-muted); cursor: pointer; font-size: 14px; line-height: 1; }
.prj .prj-x:hover { background: var(--p-zebra); color: var(--p-ink); border-color: var(--p-rule); }
.prj .prj-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.prj .prj-form > .prj-form-grid, .prj .prj-drawer-sec { padding: 16px 22px 4px; }
.prj .prj-form > .prj-form-grid { flex: none; }
.prj .prj-drawer .prj-form { overflow-y: auto; }
.prj .prj-sec { font-size: 10px; font-weight: 700; color: var(--p-faint); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.prj .prj-drawer-sec textarea { width: 100%; box-sizing: border-box; margin-top: 8px; }
.prj .prj-drawer-foot { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--p-rule); margin-top: auto; position: sticky; bottom: 0; background: #fff; }
.prj .prj-drawer-foot .prj-sp { flex: 1; }
.prj .prj-drawer-foot .primary-btn, .prj .prj-drawer-foot .secondary-btn { border-radius: 6px; }
.prj .prj-danger { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--p-hot); cursor: pointer; }
.prj .prj-danger:hover { text-decoration: underline; }
.prj .prj-comment { padding: 8px 0; border-top: 1px solid var(--p-hair); font-size: 12.5px; color: var(--p-ink); }
.prj .prj-comment:first-of-type { border-top: none; }
.prj .prj-comment .prj-meta { font-size: 11.5px; color: var(--p-muted); margin-bottom: 2px; }
.prj .prj-meta { font-size: 12px; color: var(--p-muted); line-height: 1.45; }
.prj .prj-list { list-style: none; margin: 0; padding: 0; }
.prj .prj-list li { padding: 6px 0; border-top: 1px solid var(--p-hair); display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.prj .prj-list li:first-child { border-top: none; }
.prj .prj-decisions { display: flex; flex-direction: column; gap: 6px; }
.prj .prj-decision { display: grid; grid-template-columns: 1fr 150px; gap: 6px; }
.prj .prj-nextsteps { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 8px; }
.prj .prj-nextsteps textarea { width: 100%; box-sizing: border-box; }
.prj .prj-modal { width: 560px; max-width: 96vw; margin: auto; background: #fff; border: 1px solid var(--p-rule); border-radius: 8px; box-shadow: 0 24px 60px rgba(34, 35, 42, .22); padding: 0 22px 8px; }
.prj .prj-modal .prj-drawer-h { padding-left: 0; padding-right: 0; }
.prj .prj-modal textarea { width: 100%; box-sizing: border-box; }
.prj .prj-modal .prj-drawer-foot { padding-left: 0; padding-right: 0; }
.prj-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px); background: #22232a; color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 1000; }
.prj-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.prj-toast.err { background: #b4423a; }
@media (max-width: 900px) {
  .prj .prj-tiles { grid-template-columns: 1fr; }
  .prj .prj-grid-2 { grid-template-columns: 1fr; }
  .prj .prj-g-row { grid-template-columns: 150px 1fr; }
}
@media (max-width: 760px) {
  .prj .prj-form-grid { grid-template-columns: 1fr; }
  .prj .prj-steps { flex-wrap: wrap; }
}
