/* The Dimensions and Projects pages.
 *
 * Sits on top of msz-dash.css, which dresses the dark header, the row of tabs,
 * the ring and the gate as the boards have them. Everything here is prefixed
 * ct- (shared), dm- (Dimensions) or pj- (Projects), because msz-dash.css and
 * the live theme's Bootstrap already own short names like .chip, .lead and .tabs.
 *
 * Phone first: 16px fields (iOS zooms on anything smaller), 44px targets, one
 * sticky bar, sheets that rise from the bottom. Below 860px every table is a
 * stack of cards and nothing scrolls sideways. */

/* Themes style bare controls and print after this sheet; two classes win. */
.msz-dash.msz-cat button,.msz-dash.msz-cat input,.msz-dash.msz-cat select,
.msz-dash.msz-cat textarea { font:inherit; color:inherit; margin:0;
  letter-spacing:normal; text-transform:none; text-shadow:none; box-shadow:none;
  min-height:0; line-height:1.3; }
.msz-dash.msz-cat button { cursor:pointer; background:none; border:0;
  padding:0; border-radius:0; width:auto; -webkit-tap-highlight-color:transparent; }
.msz-dash.msz-cat [hidden] { display:none !important; }
.msz-cat .ct-app svg,.msz-cat .ct-sheet svg { width:18px; height:18px; fill:none;
  stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
  flex:0 0 auto; }
.msz-cat :focus-visible { outline:3px solid rgba(66,125,70,.45); outline-offset:2px; }
.msz-cat .rk { max-width:92px; text-align:center; line-height:1.3; }
.msz-dash.msz-cat td,.msz-dash.msz-cat th { text-align:start; }

/* ---------------------------------------------------------------- the bar -- */

.msz-cat .ct-bar { position:sticky; top:env(safe-area-inset-top, 0px); z-index:30;
  display:flex; gap:10px; align-items:center; margin:-8px -26px 14px;
  padding:10px 26px 12px; background:rgba(241,242,239,.92);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line); }
@media (min-width:783px) { body.admin-bar .msz-cat .ct-bar { top:32px; } }
.msz-cat .ct-find { position:relative; display:flex; align-items:center; flex:1 1 auto; min-width:0; }
.msz-cat .ct-findico { position:absolute; left:14px; width:20px; height:20px;
  color:var(--muted); pointer-events:none; fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; }
.msz-dash.msz-cat .ct-q { width:100%; height:48px; font-size:16px;
  padding:0 44px 0 44px; border:1.5px solid var(--line); border-radius:13px;
  background:#fff; color:var(--ink); -webkit-appearance:none; appearance:none; }
.msz-dash.msz-cat .ct-q:focus { outline:none; border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(66,125,70,.14); }
.msz-cat .ct-q::-webkit-search-cancel-button { -webkit-appearance:none; }
.msz-dash.msz-cat .ct-qclear { position:absolute; right:5px; width:38px; height:38px;
  border-radius:10px; font-size:24px; line-height:1; color:var(--muted); }
.msz-dash.msz-cat .ct-add { flex:0 0 auto; display:inline-flex; align-items:center;
  gap:7px; height:48px; padding:0 18px; border-radius:13px;
  background:var(--accent-deep); color:#fff; font-size:15px; font-weight:700;
  white-space:nowrap; }
.msz-cat .ct-add svg { width:19px; height:19px; stroke-width:2.2; }

/* -------------------------------------------------------------- centres -- */

/* The centres are the page's first choice, so they read as tabs, not filters. */
.msz-cat .ct-centres { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr);
  gap:6px; padding:5px; margin:0 0 14px; background:#fff; border:1px solid var(--line);
  border-radius:15px; box-shadow:var(--lift); }
.msz-dash.msz-cat .ct-centre { display:flex; flex-direction:column; align-items:flex-start;
  gap:2px; min-height:58px; padding:9px 13px; border-radius:11px; text-align:start;
  color:var(--ink); transition:background .15s, color .15s; min-width:0; }
.msz-cat .ct-centre b { font-size:15.5px; font-weight:800; letter-spacing:-.01em;
  line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.msz-cat .ct-centre span { font-size:12.5px; font-weight:600; color:var(--muted); white-space:nowrap; }
.msz-dash.msz-cat .ct-centre[aria-pressed="true"] { background:var(--ink); color:#fff; }
.msz-cat .ct-centre[aria-pressed="true"] span { color:rgba(255,255,255,.72); }

/* ---------------------------------------------------------------- filters -- */

.msz-cat .ct-filters { display:flex; gap:7px; overflow-x:auto; scrollbar-width:none;
  margin:0 -26px 14px; padding:2px 26px 4px; -webkit-overflow-scrolling:touch; }
.msz-cat .ct-filters::-webkit-scrollbar { display:none; }
.msz-dash.msz-cat .ct-filter { flex:0 0 auto; display:inline-flex; align-items:center;
  gap:7px; height:38px; padding:0 14px; border-radius:99px; border:1.5px solid var(--line);
  background:#fff; color:var(--ink); font-size:13.5px; font-weight:600; }
.msz-cat .ct-filter .n { font-size:12px; font-weight:700; color:var(--muted);
  font-variant-numeric:tabular-nums; }
.msz-dash.msz-cat .ct-filter[aria-pressed="true"] { background:var(--ink);
  border-color:var(--ink); color:#fff; }
.msz-cat .ct-filter[aria-pressed="true"] .n { color:rgba(255,255,255,.7); }
.msz-dash.msz-cat .ct-filter.quiet { border-style:dashed; color:var(--muted); }

.msz-cat .ct-results { font-size:14px; color:var(--muted); margin:0 0 14px; }
.msz-cat .ct-results:empty { display:none; }
.msz-cat .ct-results b { color:var(--ink); }
.msz-dash.msz-cat .ct-results button { color:var(--accent-deep); font-weight:700;
  text-decoration:underline; text-underline-offset:3px; }

/* --------------------------------------------------------------- the list -- */

.msz-cat .ct-team { margin:0 0 28px; scroll-margin-top:120px; }
.msz-cat .ct-teamhead { display:flex; align-items:center; gap:10px; margin:0 0 12px;
  padding-bottom:10px; border-bottom:2px solid var(--ink); }
.msz-cat .ct-teamhead h2 { margin:0; font-size:21px; font-weight:800;
  letter-spacing:-.02em; line-height:1.15; color:var(--ink); }
.msz-cat .ct-teamn { font-size:13px; color:var(--muted); font-weight:600; white-space:nowrap; }
.msz-dash.msz-cat .ct-teamadd { margin-left:auto; display:inline-flex; align-items:center;
  gap:5px; height:36px; padding:0 12px; border-radius:10px; border:1.5px solid var(--line);
  background:#fff; font-size:13px; font-weight:700; color:var(--accent-deep); white-space:nowrap; }
.msz-cat .ct-teamadd svg { width:16px; height:16px; stroke-width:2.2; }

/* State words: green measured, ochre for missing information (house style). */
.msz-cat .ct-pill { display:inline-flex; align-items:center; gap:5px; font-size:12px;
  font-weight:700; padding:4px 9px; border-radius:99px; white-space:nowrap;
  background:var(--canvas); color:#55594f; line-height:1.2; }
.msz-cat .ct-pill.s-measured,.msz-cat .ct-pill.s-doing { background:var(--accent-wash); color:var(--accent-deep); }
.msz-cat .ct-pill.s-confirm { background:#fff; color:var(--warn); box-shadow:inset 0 0 0 1.5px #e5d3a6; }
.msz-cat .ct-pill.s-measure,.msz-cat .ct-pill.s-planning { background:var(--warn-wash); color:var(--warn); }
.msz-cat .ct-pill.s-hold { background:var(--alert-wash); color:var(--alert); }
.msz-cat .ct-pill.s-done { background:var(--ink); color:#fff; }
.msz-cat .ct-pill.s-idea { background:var(--canvas); color:#55594f; }

/* ------------------------------------------------------------ Dimensions -- */

/* One row per measurement: a card on a phone, a table row from 861px. */
.msz-cat .dm-rows { display:flex; flex-direction:column; gap:9px; }
.msz-cat .dm-head { display:none; }
.msz-dash.msz-cat .dm-row { display:grid; width:100%; text-align:start;
  grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; align-items:start;
  padding:12px 14px; background:#fff; border:1px solid var(--line);
  border-left:5px solid var(--accent); border-radius:12px; box-shadow:var(--lift);
  transition:box-shadow .15s, transform .15s; }
.msz-cat .dm-row.s-confirm { border-left-color:#d8bf7c; }
.msz-cat .dm-row.s-measure { border-left-color:var(--warn); background:#fffdf7; }
.msz-cat .dm-what { min-width:0; grid-column:1; }
.msz-cat .dm-name { display:block; font-size:15.5px; font-weight:700; line-height:1.3;
  color:var(--ink); overflow-wrap:anywhere; }
.msz-cat .dm-place { display:flex; align-items:center; gap:5px; margin-top:3px;
  font-size:12.5px; font-weight:600; color:var(--muted); }
.msz-cat .dm-place svg { width:14px; height:14px; }
.msz-cat .dm-state { grid-column:2; grid-row:1; justify-self:end; }
.msz-cat .dm-size { grid-column:1 / -1; display:flex; align-items:baseline; gap:8px;
  flex-wrap:wrap; }
.msz-cat .dm-num { font-size:21px; font-weight:800; letter-spacing:-.02em;
  color:var(--ink); font-variant-numeric:tabular-nums; line-height:1.15; overflow-wrap:anywhere; }
.msz-cat .dm-axes { font-size:11.5px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted); }
.msz-cat .dm-none { font-size:14px; font-weight:700; color:var(--warn); }
.msz-cat .dm-qty { grid-column:1 / -1; font-size:13px; font-weight:700; color:var(--ink); }
.msz-cat .dm-qty:empty { display:none; }
.msz-cat .dm-notes { grid-column:1 / -1; font-size:13px; line-height:1.45; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.msz-cat .dm-notes:empty { display:none; }

/* ------------------------------------------------------------- Projects -- */

/* One project: its name and facts and how far along it is, then its three cards. */
.msz-cat .pj-projects { display:flex; flex-direction:column; gap:14px; }
.msz-cat .pj-proj { background:#fff; border:1px solid var(--line); border-radius:16px;
  box-shadow:var(--lift); padding:14px 14px 14px; }
.msz-cat .pj-proj.is-done { background:#fafbf9; }
.msz-cat .pj-head { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin:0 0 12px; }
.msz-cat .pj-title { flex:1 1 230px; min-width:0; display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
.msz-cat .pj-score { flex:0 0 auto; display:flex; align-items:center; gap:9px; }
.msz-cat .ct-app svg.pj-ring { width:46px; height:46px; stroke-width:5; }
.msz-cat .pj-ring .bg { stroke:var(--canvas); }
.msz-cat .pj-ring .fg { stroke:var(--accent); transition:stroke-dashoffset .4s; }
.msz-cat .pj-score.is-full .pj-ring .fg { stroke:var(--accent-deep); }
.msz-cat .pj-pct { display:flex; flex-direction:column; line-height:1.1; }
.msz-cat .pj-pct b { font-size:22px; font-weight:800; letter-spacing:-.02em; color:var(--ink);
  font-variant-numeric:tabular-nums; }
.msz-cat .pj-pct i,.msz-cat .pj-stagepct i { font-style:normal; font-size:13px; font-weight:700;
  color:var(--muted); margin-left:1px; }
.msz-cat .pj-pct small { font-size:11.5px; font-weight:600; color:var(--muted); white-space:nowrap; }
.msz-dash.msz-cat .pj-open { display:inline-flex; align-items:center; gap:4px; min-height:36px;
  text-align:start; color:var(--ink); max-width:100%; }
.msz-cat .pj-open svg { width:16px; height:16px; color:var(--muted); }
.msz-cat .pj-name { margin:0; font-size:18px; font-weight:800; letter-spacing:-.015em;
  line-height:1.25; color:var(--ink); overflow-wrap:anywhere; }
.msz-cat .pj-proj.is-done .pj-name { color:#55594f; }
.msz-cat .pj-meta { display:flex; flex-wrap:wrap; gap:4px 14px;
  font-size:12.5px; font-weight:600; color:#55594f; }
.msz-cat .pj-meta span { display:inline-flex; align-items:center; gap:5px; }
.msz-cat .pj-meta svg { width:14px; height:14px; }
.msz-cat .pj-meta .late { color:var(--alert); }
.msz-cat .pj-loose { margin:-4px 0 12px; font-size:13px; color:var(--muted); }

/* Setup's halls: a tab per hall, the open one's projects below with its own progress. */
.msz-cat .pj-halltabs { display:flex; gap:6px; margin:0 0 12px; padding:4px; border-radius:14px;
  background:#e9ebe5; overflow-x:auto; scrollbar-width:none; }
.msz-cat .pj-halltabs::-webkit-scrollbar { display:none; }
.msz-dash.msz-cat .pj-halltab { flex:1 1 auto; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-height:42px; padding:0 10px; border-radius:11px; border:0; background:transparent;
  font-size:14.5px; font-weight:700; color:var(--muted); white-space:nowrap; }
.msz-dash.msz-cat .pj-halltab[aria-selected="true"] { background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(20,24,16,.14); }
.msz-cat .pj-halltab .n { font-size:12px; font-weight:700; padding:1px 7px; border-radius:99px; background:rgba(0,0,0,.07); }
.msz-cat .pj-halltab[aria-selected="true"] .n { background:var(--accent-deep); color:#fff; }
.msz-cat .pj-halltab small { font-size:11px; font-weight:600; }
.msz-cat .pj-hall { margin:0 0 22px; }
.msz-cat .pj-hallhead { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin:0 0 10px; }
.msz-cat .pj-halln { font-size:13px; color:var(--muted); font-weight:600; }
.msz-cat .pj-halln b { color:var(--ink); }
.msz-dash.msz-cat .pj-halladd { margin-left:auto; display:inline-flex; align-items:center; gap:5px;
  height:34px; padding:0 12px; border-radius:9px; border:1.5px solid var(--line); background:#fff;
  font-size:13px; font-weight:700; color:var(--accent-deep); white-space:nowrap; }
.msz-cat .pj-halladd svg { width:15px; height:15px; stroke-width:2.2; }
.msz-cat .pj-hallnone { margin:0; padding:12px; border:1.5px dashed #cfd2ca; border-radius:12px;
  color:var(--muted); font-size:13.5px; }
.msz-cat .pj-halls { display:flex; flex-direction:column; gap:8px; }
.msz-dash.msz-cat .pj-hallpick { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%;
  min-height:48px; padding:10px 14px; border-radius:12px; border:1.5px solid var(--line); background:#fff;
  font-size:15px; font-weight:700; color:var(--ink); text-align:left; }
.msz-dash.msz-cat .pj-hallpick small { font-size:12.5px; font-weight:600; color:var(--muted); }
.msz-dash.msz-cat .pj-hallpick:disabled { background:var(--canvas); color:var(--muted); cursor:default; }

/* The cards: Pre-event, During, After, each a button that opens its objectives.
 * A segment per objective, filled as far as it has got. A column each from 861px. */
.msz-cat .pj-stages { display:grid; gap:10px; grid-template-columns:minmax(0,1fr); }
.msz-dash.msz-cat .pj-stage { display:flex; flex-direction:column; gap:9px; min-width:0; width:100%;
  text-align:start; color:var(--ink); background:var(--canvas); border:1.5px solid transparent;
  border-radius:12px; padding:12px 12px 10px; transition:border-color .15s, background .15s; }
.msz-dash.msz-cat .pj-stage.is-full { background:var(--accent-wash); }
.msz-dash.msz-cat .pj-stage.is-empty { background:transparent; border:1.5px dashed #cfd2ca; }
.msz-cat .pj-stagehead { display:flex; align-items:baseline; gap:8px; min-height:24px; }
.msz-cat .pj-stagename { font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.msz-cat .pj-stagepct { margin-left:auto; display:inline-flex; align-items:center; gap:4px; font-size:24px;
  font-weight:800; letter-spacing:-.02em; line-height:1; font-variant-numeric:tabular-nums; }
.msz-cat .pj-stagepct b { font-weight:800; }
.msz-cat .ct-app .pj-stagepct svg { width:18px; height:18px; stroke-width:2.8; color:var(--accent-deep); }
.msz-cat .pj-segs { display:flex; gap:3px; height:8px; }
.msz-cat .pj-segs i { display:block; flex:1 1 0; min-width:4px; background:#fff; border-radius:99px; overflow:hidden; }
.msz-cat .pj-segs u { display:block; height:100%; background:var(--accent); opacity:.5; text-decoration:none; }
.msz-cat .pj-segs i.on u { opacity:1; background:var(--accent-deep); }
.msz-cat .pj-stagefacts { display:flex; flex-direction:column; gap:1px; font-size:12.5px; font-weight:600;
  color:var(--muted); font-variant-numeric:tabular-nums; }
.msz-cat .pj-stagefacts span:first-child { color:var(--ink); font-weight:700; }
.msz-cat .pj-stage.is-empty .pj-stagefacts span:first-child { color:var(--muted); font-weight:600; }
.msz-cat .pj-stagego { display:inline-flex; align-items:center; gap:2px; margin-top:auto;
  font-size:12.5px; font-weight:700; color:var(--accent-deep); }
.msz-cat .ct-app .pj-stagego svg { width:15px; height:15px; stroke-width:2.2; }
.msz-cat .pj-none { margin:0; font-size:13px; color:var(--muted); }

/* One card opened, in the sheet: the three as tabs, then its objectives. */
.msz-cat .pj-sheetteam { margin-left:6px; font-size:13px; font-weight:700; letter-spacing:0; color:var(--muted); }
.msz-cat .pj-stagetabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:4px;
  margin:0 0 12px; background:var(--canvas); border-radius:12px; }
.msz-dash.msz-cat .pj-stagetabs button { height:42px; border-radius:9px; font-size:13.5px; font-weight:700;
  color:#55594f; white-space:nowrap; }
.msz-cat .pj-stagetabs button span { font-size:12px; font-weight:600; color:var(--muted); }
.msz-dash.msz-cat .pj-stagetabs button[aria-selected="true"] { background:#fff; color:var(--ink); box-shadow:var(--lift); }
.msz-cat .pj-cardview { display:flex; flex-direction:column; gap:8px; padding:12px; border-radius:12px;
  background:var(--canvas); }
.msz-cat .pj-cardview.is-full { background:var(--accent-wash); }
.msz-cat .pj-cardsum { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; }
.msz-cat .pj-cardsum b { font-size:26px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.msz-cat .pj-cardsum span { font-size:13px; font-weight:600; color:var(--muted); }
.msz-dash.msz-cat .pj-tostage { display:inline-flex; align-items:center; gap:4px; font:inherit; color:inherit; }
.msz-cat .ct-sheet .pj-tostage svg { width:15px; height:15px; color:var(--muted); }
.msz-cat .pj-objs { list-style:none; margin:2px 0 0; padding:0; display:flex; flex-direction:column; gap:4px; }
.msz-cat .pj-obj { margin:0; background:#fff; border-radius:10px; }
.msz-cat .pj-objrow { display:flex; align-items:center; gap:8px; padding:4px 6px 4px 5px; }
.msz-cat .pj-mark { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:9px; border:1.5px solid #c3c6be; background:#fff;
  color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.msz-cat .pj-mark b { font-weight:800; letter-spacing:-.02em; }
.msz-cat .pj-mark svg { width:18px; height:18px; stroke-width:2.8; }
.msz-cat .pj-mark.off { border-style:dashed; }
.msz-dash.msz-cat .pj-tick { width:34px; height:34px; border-radius:9px; border:1.5px solid #c3c6be;
  background:#fff; color:transparent; }
.msz-cat .pj-mark.on,.msz-dash.msz-cat .pj-tick.on { background:var(--accent-deep);
  border-color:var(--accent-deep); color:#fff; }
.msz-dash.msz-cat .pj-objname { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px;
  min-height:38px; justify-content:center; text-align:start; font-size:14px; line-height:1.3;
  color:var(--ink); overflow-wrap:anywhere; }
.msz-cat .pj-objname small { font-size:11.5px; font-weight:600; color:var(--muted); }
.msz-cat .pj-obj.done .pj-objname span { color:var(--muted); text-decoration:line-through;
  text-decoration-color:rgba(109,113,105,.5); }
.msz-cat .pj-obj.open { box-shadow:0 0 0 1.5px var(--accent) inset; }

/* An objective opened: its tasks, and ways to add or link one. */
.msz-cat .pj-tasks { padding:2px 8px 9px 10px; }
.msz-cat .pj-tasks ul { list-style:none; margin:0 0 6px; padding:0; }
.msz-cat .pj-tasks li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 6px;
  align-items:center; margin:0; padding:6px 0; border-top:1px solid var(--line); font-size:13px; line-height:1.35; }
.msz-cat .pj-tasks li a,.msz-cat .pj-tasks li > span:first-child { color:var(--ink); text-decoration:none; overflow-wrap:anywhere; }
.msz-cat .pj-tasks li a:hover { text-decoration:underline; }
.msz-cat .pj-tasks li b { font-size:11px; font-weight:700; color:var(--muted); letter-spacing:.02em; }
.msz-cat .pj-tasks li.closed a,.msz-cat .pj-tasks li.closed > span:first-child { color:var(--muted); text-decoration:line-through; }
.msz-cat .pj-tstat { grid-column:1; font-size:11.5px; font-weight:600; color:var(--muted); }
.msz-dash.msz-cat .pj-unlink { grid-column:2; grid-row:1 / span 2; width:32px; height:32px;
  border-radius:8px; font-size:20px; color:var(--muted); }
.msz-cat .pj-taskacts { display:flex; flex-wrap:wrap; gap:6px; }
.msz-dash.msz-cat .pj-taskacts button,.msz-dash.msz-cat .pj-addobj { display:inline-flex; align-items:center;
  gap:5px; height:34px; padding:0 10px; border-radius:9px; border:1.5px dashed #c3c6be;
  font-size:12.5px; font-weight:700; color:var(--accent-deep); background:transparent; }
.msz-cat .pj-taskacts svg,.msz-cat .pj-addobj svg { width:15px; height:15px; stroke-width:2.2; }
.msz-cat .pj-objname .pj-flyerline { display:block; font-style:normal; font-size:11.5px; font-weight:600;
  color:#8a6a1f; }
.msz-cat .pj-objname .pj-flyerline.sent { color:var(--accent-deep); }
.msz-cat .pj-objname .pj-flyerline.bad { color:#751a1a; }
.msz-cat .pj-flyer { margin:0 0 8px; padding:10px 12px; border-radius:10px; background:#ecf2ec; }
.msz-cat .pj-flyer p { margin:0 0 8px; font-size:12.5px; line-height:1.45; color:var(--ink); }
.msz-dash.msz-cat .pj-flyer .pj-taskacts a { display:inline-flex; align-items:center; gap:5px; height:34px;
  padding:0 10px; border-radius:9px; border:1.5px solid #c3c6be; background:#fff; font-size:12.5px;
  font-weight:700; color:var(--accent-deep); text-decoration:none; }
.msz-dash.msz-cat .pj-flyer .pj-taskacts button { border-style:solid; background:var(--accent-deep);
  border-color:var(--accent-deep); color:#fff; }
.msz-cat .pj-flyer .pj-taskacts svg { fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; }
.msz-dash.msz-cat .pj-addobj { align-self:flex-start; margin-top:2px; }
.msz-cat .pj-inline { display:flex; gap:6px; align-items:center; margin:2px 0 0; }
.msz-dash.msz-cat .pj-inline .ct-in { flex:1; min-width:0; padding:9px 11px; }
.msz-dash.msz-cat .pj-inline select.ct-in { padding-right:28px; }
.msz-dash.msz-cat .pj-go { flex:0 0 auto; height:42px; padding:0 14px; border-radius:11px;
  background:var(--accent-deep); color:#fff; font-size:14px; font-weight:700; }
.msz-cat .pj-inline.saving { opacity:.6; }
.msz-cat .pj-hint { margin:5px 0 0; font-size:12px; color:var(--muted); }

/* The form's three cards of objectives. */
.msz-cat .pj-cardedit { margin:0 0 12px; padding:11px 11px 4px; border-radius:12px; background:#fff;
  border:1px solid var(--line); }
.msz-cat .pj-cardname { display:block; margin:0 0 8px; font-size:12px; font-weight:800;
  letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.msz-cat .pj-objedit { display:grid; grid-template-columns:minmax(0,1fr) auto auto 40px; gap:7px; align-items:center; }
.msz-cat .pj-objedit:not(:has(.pj-objn)) { grid-template-columns:minmax(0,1fr) auto 40px; }
.msz-cat .pj-objn { font-size:12px; font-weight:700; color:var(--accent-deep); white-space:nowrap; }
.msz-dash.msz-cat .pj-move { width:auto; padding:9px 28px 9px 10px; font-size:13px; font-weight:600; color:#55594f; }
.msz-dash.msz-cat .pj-change { height:30px; padding:0 11px; border-radius:8px; border:1.5px solid #c3c6be;
  background:#fff; font-size:12.5px; font-weight:700; color:var(--accent-deep); }
.msz-dash.msz-cat .pj-change:hover { border-color:var(--accent-deep); }
@media (max-width:560px) {
  .msz-cat .pj-objedit,.msz-cat .pj-objedit:not(:has(.pj-objn)) { grid-template-columns:auto minmax(0,1fr) 40px;
    padding-bottom:8px; border-bottom:1px solid var(--line); }
  .msz-cat .pj-objedit .pj-text { grid-column:1 / -1; }
  .msz-cat .pj-objedit .pj-move { grid-column:2; justify-self:end; font-size:16px; }
  .msz-cat .pj-objedit .pj-objn { grid-column:1; }
}
.msz-cat .pj-blank { padding:18px; border:1.5px dashed #cfd2ca; border-radius:14px;
  color:var(--muted); font-size:14px; text-align:center; }
.msz-dash.msz-cat .pj-blank button { display:inline-flex; margin-top:10px; height:40px;
  align-items:center; gap:6px; padding:0 14px; border-radius:11px; background:var(--accent-deep);
  color:#fff; font-weight:700; font-size:14px; }

/* ----------------------------------------------------------- the empties -- */

.msz-cat .ct-empty { text-align:center; background:#fff; border:1px solid var(--line);
  border-radius:16px; box-shadow:var(--lift); padding:32px 22px 28px; margin:0 0 22px; }
.msz-cat .ct-empty svg.art { width:96px; height:72px; margin:0 auto 10px; display:block;
  stroke:var(--accent-deep); stroke-width:1.5; }
.msz-cat .ct-empty h2 { margin:0 0 8px; font-size:20px; font-weight:800;
  letter-spacing:-.02em; color:var(--ink); }
.msz-cat .ct-empty p { margin:0 auto 16px; max-width:46ch; font-size:14.5px;
  color:var(--muted); line-height:1.55; }
.msz-dash.msz-cat .ct-cta { display:inline-flex; align-items:center; gap:8px; height:46px;
  padding:0 20px; border-radius:12px; background:var(--accent-deep); color:#fff;
  font-size:15px; font-weight:700; }
.msz-cat .ct-ghost { height:84px; border-radius:12px; margin:0 0 9px; background:#fff;
  border:1px solid var(--line); padding:14px; display:grid; gap:8px; }
.msz-cat .ct-ghost span { border-radius:6px; background:var(--canvas);
  animation:ct-shimmer 1.2s ease-in-out infinite alternate; }
.msz-cat .ct-ghost span:nth-child(2) { width:60%; }
.msz-cat .ct-ghost span:nth-child(3) { width:35%; }
@keyframes ct-shimmer { to { opacity:.45; } }

/* ------------------------------------------------------------- the sheet -- */

html.ct-locked, html.ct-locked body { overflow:hidden; }
.msz-cat .ct-sheet { position:fixed; inset:0; z-index:100000; display:flex;
  align-items:flex-end; justify-content:center; }
.msz-cat .ct-scrim { position:absolute; inset:0; background:rgba(18,19,9,.46);
  animation:ct-fade .2s ease both; }
@keyframes ct-fade { from { opacity:0; } }
.msz-cat .ct-panel { position:relative; width:100%; max-width:640px;
  max-height:calc(100% - env(safe-area-inset-top, 0px) - 16px); display:flex;
  flex-direction:column; background:var(--canvas); border-radius:20px 20px 0 0;
  box-shadow:0 -10px 40px rgba(18,19,9,.22); overflow:hidden;
  animation:ct-rise .28s cubic-bezier(.22,.68,.32,1) both; }
@keyframes ct-rise { from { transform:translateY(40px); opacity:0; } }
.msz-cat .ct-grip { width:40px; height:5px; border-radius:99px; background:#c9ccc4;
  margin:8px auto 0; flex:0 0 auto; }
.msz-cat .ct-sheethead { display:flex; align-items:center; gap:10px;
  padding:10px 14px 12px 20px; flex:0 0 auto; }
.msz-cat .ct-sheethead h2 { margin:0; font-size:19px; font-weight:800; letter-spacing:-.02em;
  color:var(--ink); line-height:1.2; flex:1; min-width:0; overflow-wrap:anywhere; }
.msz-dash.msz-cat .ct-x { width:40px; height:40px; border-radius:11px; font-size:26px;
  line-height:1; color:var(--muted); flex:0 0 auto; }
.msz-cat .ct-sheetbody { overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:4px 20px 18px; flex:1 1 auto; overscroll-behavior:contain; }
.msz-cat .ct-sheetfoot { display:flex; flex-wrap:wrap; gap:10px; flex:0 0 auto;
  padding:12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background:#fff;
  border-top:1px solid var(--line); }
.msz-cat .ct-msg { flex:1 1 100%; order:-1; margin:0; font-size:13.5px; color:var(--muted); }
.msz-cat .ct-msg:empty { display:none; }
.msz-cat .ct-msg.bad { color:var(--alert); font-weight:700; }
.msz-dash.msz-cat .ct-btn { flex:1 1 0; height:50px; border-radius:13px; font-size:15.5px;
  font-weight:700; padding:0 16px; display:inline-flex; align-items:center;
  justify-content:center; gap:8px; border:1.5px solid var(--line); background:#fff; color:var(--ink); }
.msz-dash.msz-cat .ct-btn.go { flex-grow:1.6; background:var(--accent-deep);
  border-color:var(--accent-deep); color:#fff; }
.msz-dash.msz-cat .ct-btn.danger { flex:0 0 auto; color:var(--alert); border-color:#ecd6d6; }
.msz-dash.msz-cat .ct-btn.danger.sure { background:var(--alert); border-color:var(--alert); color:#fff; }
.msz-dash.msz-cat .ct-btn[disabled] { opacity:.55; cursor:progress; }

/* Fields. */
.msz-cat .ct-field { margin:0 0 16px; min-width:0; }
.msz-cat .ct-field > label,.msz-cat .ct-fieldname { display:block; font-size:13px;
  font-weight:700; color:var(--ink); margin:0 0 7px; }
.msz-cat .ct-field .opt { font-weight:500; color:var(--muted); }
.msz-dash.msz-cat .ct-field input,.msz-dash.msz-cat .ct-field textarea,
.msz-dash.msz-cat .ct-field select,.msz-dash.msz-cat .ct-in { display:block; width:100%;
  font-size:16px; padding:12px 13px; border:1.5px solid var(--line); border-radius:12px;
  background:#fff; color:var(--ink); -webkit-appearance:none; appearance:none; }
.msz-dash.msz-cat .ct-field select { padding-right:36px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7169' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; background-size:18px; }
.msz-dash.msz-cat .ct-field textarea { min-height:78px; resize:vertical; line-height:1.45; }
.msz-dash.msz-cat .ct-field input:focus,.msz-dash.msz-cat .ct-field textarea:focus,
.msz-dash.msz-cat .ct-field select:focus,.msz-dash.msz-cat .ct-in:focus { outline:none;
  border-color:var(--accent); box-shadow:0 0 0 4px rgba(66,125,70,.14); }
.msz-dash.msz-cat .ct-field input.bad { border-color:var(--alert); }
.msz-dash.msz-cat .ct-field input.pj-title { font-size:19px; font-weight:800; letter-spacing:-.01em; }
.msz-cat .ct-hint { margin:6px 0 0; font-size:12.5px; color:var(--muted); line-height:1.45; }
.msz-cat .ct-two { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }

/* The three sizes and their unit: one row on every width. */
.msz-cat .dm-sizes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) 78px; gap:8px; }
.msz-cat .dm-sizes label { display:block; font-size:11.5px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted); margin:0 0 5px; }
.msz-dash.msz-cat .dm-sizes input,.msz-dash.msz-cat .dm-sizes select { padding:12px 10px;
  text-align:center; font-weight:700; font-variant-numeric:tabular-nums; }
.msz-dash.msz-cat .dm-sizes select { padding-right:26px; background-position:right 6px center; }

/* Picking one of a few: centre, team, state, status. */
.msz-cat .ct-choices { display:flex; flex-wrap:wrap; gap:7px; }
.msz-cat .ct-choices.teams { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.msz-dash.msz-cat .ct-choice { display:inline-flex; align-items:center; justify-content:center;
  gap:7px; min-height:44px; padding:6px 12px; border-radius:11px; border:1.5px solid var(--line);
  background:#fff; font-size:14px; font-weight:600; color:var(--ink); text-align:center;
  overflow-wrap:anywhere; line-height:1.2; }
.msz-dash.msz-cat .ct-choice[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:#fff; }

/* Details and objectives: lists that grow a row at a time. */
.msz-cat .pj-list { display:flex; flex-direction:column; gap:7px; margin:0 0 8px; }
.msz-cat .pj-detail { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) 40px; gap:7px; }
.msz-dash.msz-cat .pj-drop { width:40px; height:44px; border-radius:10px; font-size:22px;
  color:var(--muted); }
.msz-dash.msz-cat .pj-more { display:inline-flex; align-items:center; gap:6px; height:40px;
  padding:0 12px; border-radius:10px; border:1.5px dashed #c3c6be; color:var(--accent-deep);
  font-size:13.5px; font-weight:700; }
.msz-cat .pj-more svg { width:16px; height:16px; stroke-width:2.2; }

/* Read-only facts. */
.msz-cat .ct-facts { margin:0 0 16px; padding:0; }
.msz-cat .ct-facts div { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px;
  padding:9px 0; border-top:1px solid var(--line); font-size:14px; }
.msz-cat .ct-facts dt { color:var(--muted); font-weight:600; }
.msz-cat .ct-facts dd { margin:0; color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere; }
.msz-cat .ct-facts a { color:var(--accent-deep); font-weight:600; }
.msz-cat .ct-bigsize { margin:4px 0 14px; font-size:32px; font-weight:800; letter-spacing:-.03em;
  color:var(--ink); font-variant-numeric:tabular-nums; line-height:1.1; overflow-wrap:anywhere; }
.msz-cat .ct-bigsize small { display:block; margin-top:4px; font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted); font-weight:700; }
.msz-cat .ct-h3 { margin:18px 0 8px; font-size:13px; font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted); }
.msz-cat .pj-readsteps { list-style:none; margin:0 0 12px; padding:0; }
.msz-cat .pj-readsteps li { display:flex; gap:9px; align-items:flex-start; margin:0;
  padding:7px 0; border-top:1px solid var(--line); font-size:14px; color:var(--ink); }
.msz-cat .pj-readsteps li.done { color:var(--muted); text-decoration:line-through; }
.msz-cat .pj-readsteps svg { width:18px; height:18px; margin-top:1px; color:var(--accent-deep); }
.msz-cat .ct-meta { margin:14px 0 0; font-size:12.5px; color:var(--muted); line-height:1.5; }
.msz-cat .ct-prose { margin:0 0 14px; font-size:14.5px; line-height:1.55; color:var(--ink);
  white-space:pre-wrap; overflow-wrap:anywhere; }

/* -------------------------------------------------------------- the toast -- */

.msz-cat .ct-toast { position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom, 0px));
  z-index:100001; transform:translate(-50%, 16px); opacity:0; pointer-events:none;
  width:max-content; max-width:min(92vw, 520px); background:var(--ink); color:#fff;
  border-radius:13px; padding:12px 16px; font-size:14px; font-weight:600; line-height:1.4;
  box-shadow:0 12px 30px rgba(18,19,9,.3); transition:opacity .2s, transform .2s; }
.msz-cat .ct-toast.show { opacity:1; transform:translate(-50%, 0); pointer-events:auto; }
.msz-cat .ct-toast.bad { background:var(--alert); }

/* ---------------------------------------------------------------- widths -- */

@media (max-width:860px) {
  .msz-cat .ct-bar { margin:-8px -16px 12px; padding:10px 16px 12px; }
  .msz-cat .ct-filters { margin:0 -16px 12px; padding:2px 16px 4px; }
}
@media (max-width:600px) {
  .msz-cat header.top { padding:24px 0 26px; margin-bottom:22px; }
  .msz-cat header.top .heroside { flex-wrap:nowrap; gap:14px; align-items:center; }
  .msz-cat .ringwrap { width:96px; height:96px; }
  .msz-cat .rn { font-size:27px; }
  .msz-cat .rn i { font-size:12px; }
  .msz-cat .rk { font-size:8px; max-width:66px; letter-spacing:.12em; margin-top:3px; }
  .msz-cat header.top .chip { flex:1 1 auto; min-width:0; max-width:none; padding:12px 13px; }
  /* The add button shrinks to its sign, so the search keeps the width. */
  .msz-dash.msz-cat .ct-add { width:48px; padding:0; justify-content:center; font-size:0; gap:0; }
  .msz-cat .ct-add svg { width:22px; height:22px; }
  .msz-dash.msz-cat .ct-centre { min-height:52px; padding:8px 10px; }
  .msz-cat .ct-centre b { font-size:14px; }
  .msz-cat .ct-choices.teams { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .msz-cat .dm-sizes { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .msz-cat .dm-sizes .dm-unit { grid-column:1 / -1; }
  .msz-cat .pj-detail { grid-template-columns:minmax(0,1fr) 40px; }
  .msz-cat .pj-detail .pj-val { grid-column:1; }
  .msz-cat .pj-detail .pj-drop { grid-row:1 / span 2; grid-column:2; align-self:center; }
  .msz-cat .ct-facts div { grid-template-columns:92px minmax(0,1fr); }
}
@media (min-width:600px) {
  .msz-cat .ct-panel { max-height:min(90vh, 860px); border-radius:20px; margin-bottom:max(4vh, 20px); }
  .msz-cat .ct-sheet { align-items:center; }
  .msz-cat .ct-grip { display:none; }
  .msz-cat .ct-sheethead { padding-top:16px; }
}
@media (min-width:861px) {
  .msz-cat .pj-proj { padding:16px 18px 18px; }
  .msz-cat .pj-stages { grid-template-columns:repeat(var(--cards,3),minmax(0,1fr)); }
  /* A table, with the measurements in a column of their own. */
  .msz-cat .dm-rows { gap:0; background:#fff; border:1px solid var(--line); border-radius:14px;
    box-shadow:var(--lift); overflow:hidden; }
  .msz-cat .dm-head,.msz-dash.msz-cat .dm-row { grid-template-columns:minmax(0,2fr) minmax(0,1.5fr) 64px minmax(0,2.2fr) 112px;
    gap:14px; align-items:center; }
  .msz-cat .dm-head { display:grid; padding:10px 16px; background:var(--canvas);
    font-size:11.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
  .msz-dash.msz-cat .dm-row { border:0; border-top:1px solid var(--line); border-left:4px solid var(--accent);
    border-radius:0; box-shadow:none; padding:12px 16px 12px 12px; }
  .msz-cat .dm-what { grid-column:1; }
  .msz-cat .dm-size { grid-column:2; grid-row:1; flex-direction:column; gap:1px; align-items:flex-start; }
  .msz-cat .dm-num { font-size:18px; }
  .msz-cat .dm-qty { grid-column:3; grid-row:1; }
  .msz-cat .dm-qty:empty { display:block; }
  .msz-cat .dm-notes { grid-column:4; grid-row:1; -webkit-line-clamp:2; }
  .msz-cat .dm-notes:empty { display:block; }
  .msz-cat .dm-state { grid-column:5; grid-row:1; }
}
@media (max-width:380px) {
  .msz-cat .ct-choices.teams { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .msz-cat .ct-centre span { font-size:11.5px; }
}
@media (hover:hover) {
  .msz-dash.msz-cat .ct-add:hover,.msz-dash.msz-cat .ct-cta:hover,
  .msz-dash.msz-cat .ct-btn.go:hover { background:var(--ink); border-color:var(--ink); }
  .msz-dash.msz-cat .dm-row:hover { background:#fbfcfa; }
  .msz-dash.msz-cat .dm-row:hover .dm-name,.msz-dash.msz-cat .pj-open:hover .pj-name {
    text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
  .msz-dash.msz-cat .pj-objname:hover span { text-decoration:underline; text-underline-offset:3px; }
  .msz-dash.msz-cat .pj-taskacts button:hover,.msz-dash.msz-cat .pj-addobj:hover { border-color:var(--accent); background:#fff; }
  .msz-dash.msz-cat .pj-flyer .pj-taskacts button:hover { background:var(--accent); border-color:var(--accent); }
  .msz-dash.msz-cat .pj-flyer .pj-taskacts a:hover { border-color:var(--accent); }
  .msz-dash.msz-cat .pj-stage:hover { border-color:var(--accent); }
  .msz-dash.msz-cat .pj-stage:hover .pj-stagego { text-decoration:underline; text-underline-offset:3px; }
  .msz-dash.msz-cat .pj-tostage:hover { text-decoration:underline; text-underline-offset:3px; }
  .msz-dash.msz-cat .ct-filter:hover,.msz-dash.msz-cat .ct-teamadd:hover { border-color:#c3c6be; }
  .msz-dash.msz-cat .ct-centre:not([aria-pressed="true"]):hover { background:var(--canvas); }
  .msz-dash.msz-cat .ct-x:hover { background:#fff; color:var(--ink); }
}
@media (prefers-reduced-motion:reduce) {
  .msz-cat *,.msz-cat *::before,.msz-cat *::after { animation:none !important; transition:none !important; }
}
@media print {
  .msz-cat .ct-bar,.msz-cat .ct-filters,.msz-cat .ct-teamadd,.msz-cat .ct-toast { display:none !important; }
  .msz-cat .dm-row,.msz-cat .pj-proj { break-inside:avoid; box-shadow:none; }
  .msz-cat .pj-addobj,.msz-cat .pj-taskacts,.msz-cat .pj-unlink,.msz-cat .pj-stagego { display:none !important; }
}
