/* ============================================================================
   CSMS BIM Matrix · flow 2 (the redesign)
   Stack-pipeline look on a graphite ground. Fill = progress (one five-step ramp), outline + pill + word = exception
   (coral late on us, amber at risk, dashed blue waiting on others). Trades are the only other hues.
   ============================================================================ */
:root {
  --bg: #121418; --surface: #191C21; --raised: #20242B; --line: #2A2F37; --line2: #363C46;
  --text: #E8EAED; --muted: #A0A8B3; --faint: #7F8793;
  --s0: #2A303A; --s1: #25485C; --s2: #2A6E6A; --s3: #3E9B7E; --s4: #6FD3A0;
  --late: #FF7A5C; --risk: #F2B84B; --wait: #6AA9FF; --good: #6FD3A0;
  --plbg: #B59CFF; --hvac: #F49AC1;
  --late-bg: rgba(255, 122, 92, .13); --risk-bg: rgba(242, 184, 75, .13); --wait-bg: rgba(106, 169, 255, .13); --good-bg: rgba(111, 211, 160, .12);
  --plbg-bg: rgba(181, 156, 255, .15); --hvac-bg: rgba(244, 154, 193, .15);
  --pri: #E8EAED; --pri-ink: #121418; --scrim: rgba(6, 8, 10, .62); --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --plate-side: #1A1E24; --plate-side2: #15181D; --plate-edge: #121418;
  --f: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fm: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --r: 14px; --rc: 9px; --tap: 36px;
  /* names the reused Sheet Set editors still use */
  --ink: var(--text); --ink2: var(--muted); --ink3: var(--faint); --hair: var(--line); --panel: var(--raised); --sheet: var(--surface);
  --blue: var(--wait); --red: var(--late); --amber: var(--risk); --green: var(--good); --f-mono: var(--fm); --f-body: var(--f); --f-disp: var(--f);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F2F3F5; --surface: #FFFFFF; --raised: #F7F8FA; --line: #E2E5E9; --line2: #D3D8DE;
  --text: #171A1F; --muted: #565E6A; --faint: #6B7380;
  --s0: #E3E6EA; --s1: #CFE1EA; --s2: #A3D3CC; --s3: #5DB597; --s4: #1E8A63;
  --late: #C8431F; --risk: #9A6A00; --wait: #1F5FC9; --good: #1E8A63;
  --plbg: #6D4FD8; --hvac: #B8336F;
  --late-bg: rgba(200, 67, 31, .09); --risk-bg: rgba(154, 106, 0, .1); --wait-bg: rgba(31, 95, 201, .08); --good-bg: rgba(30, 138, 99, .09);
  --plbg-bg: rgba(109, 79, 216, .1); --hvac-bg: rgba(184, 51, 111, .09);
  --pri: #171A1F; --pri-ink: #FFFFFF; --scrim: rgba(23, 26, 31, .36); --shadow: 0 18px 50px rgba(23, 26, 31, .16);
  --plate-side: #C9CED5; --plate-side2: #B8BEC6; --plate-edge: #FFFFFF;
  color-scheme: light;
}
:root[data-density="compact"] { --tap: 32px; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.45 var(--f); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--wait); }
:focus-visible { outline: 2px solid var(--wait); outline-offset: 2px; }
.mono, code { font-family: var(--fm); }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--wait) 35%, transparent); }
svg { flex-shrink: 0; }
.ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ic.sm { width: 14px; height: 14px; vertical-align: -2px; }
.dim, .muted { color: var(--muted); }
.tiny { font-size: 12.5px; color: var(--muted); }
.faint { color: var(--faint); }
.sp { flex: 1; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.err, .applyerr { color: var(--late); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------- top bar ---------------- */
.tb { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.tb-in { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; color: var(--text); text-decoration: none; white-space: nowrap; padding: 6px 4px; border-radius: 8px; }
.logo svg { width: 22px; height: 22px; }
.homeb { display: inline-flex; align-items: center; gap: 7px; height: var(--tap); padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.homeb:hover { background: var(--raised); }
.jt { display: flex; flex-direction: column; min-width: 0; margin: 0 6px 0 4px; line-height: 1.15; }
.jt b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.jt span { font: 400 11.5px var(--fm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.tseg { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.tseg a, .tseg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.tseg a:hover, .tseg button:hover { color: var(--text); }
.tseg .on { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line2); }
.tnav { display: flex; gap: 2px; margin-left: auto; }
.tnav a { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.tnav a:hover { color: var(--text); background: var(--raised); }
.tnav a.on { color: var(--text); font-weight: 600; background: var(--raised); }
.tdiv { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.upb { display: inline-flex; align-items: center; gap: 8px; height: var(--tap); padding: 0 16px; border-radius: 10px; border: 0; background: var(--pri); color: var(--pri-ink); font-weight: 600; white-space: nowrap; }
.upb:hover { filter: brightness(.94); }
.srch { display: inline-flex; align-items: center; gap: 8px; height: var(--tap); width: 200px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--faint); text-align: left; }
.srch:hover { border-color: var(--line2); color: var(--muted); }
.srch kbd, kbd { font: 500 11px var(--fm); color: var(--muted); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; margin-left: auto; background: var(--bg); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; flex-shrink: 0; }
.dot.off { background: var(--risk); } .dot.bad { background: var(--late); }
.meb { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font: 600 12px var(--fm); display: inline-flex; align-items: center; justify-content: center; }
.tb-m { display: none; }
.tb-scroll { display: none; }

/* ---------------- footer ---------------- */
.ft { margin-top: auto; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--muted); }
.ft a { color: var(--muted); text-decoration: none; } .ft a:hover { color: var(--text); }
.ft a.on, .ft b { color: var(--text); font-weight: 600; }
.ft .lg { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.lgi { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.o { background: transparent; border: 2px solid; width: 11px; height: 11px; }
.sw.d { border-style: dashed; }

/* ---------------- page ---------------- */
.vw { flex: 1; min-width: 0; }
.pg { padding: 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ph h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.ph p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
h2.h { font-size: 15px; font-weight: 650; margin: 0; }
h3.h { font-size: 14px; font-weight: 650; margin: 0; }
.sub { color: var(--muted); font-size: 12.5px; }
.lbl { font: 600 11px var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.bar2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.empty { border: 1px dashed var(--line2); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 15px; }
.empty p { margin: 0 auto 12px; max-width: 520px; }

/* ---------------- controls ---------------- */
.b, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--tap); padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none; line-height: 1.1; }
.b:hover, .btn:hover { background: var(--raised); }
.b.pri, .btn.pri { background: var(--pri); color: var(--pri-ink); border-color: var(--pri); }
.b.pri:hover, .btn.pri:hover { filter: brightness(.93); background: var(--pri); }
.b.sm, .btn.small, .btn.sm { min-height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.b.ghost { border-color: transparent; color: var(--muted); }
.b.ghost:hover { color: var(--text); }
.b.lock, .b:disabled, .btn:disabled, .btn.dis { background: var(--raised); color: var(--faint); border-color: var(--line); cursor: not-allowed; filter: none; }
.b.danger { color: var(--late); border-color: color-mix(in srgb, var(--late) 45%, transparent); }
.b.warn { color: var(--risk); }
.btn small, .b small { font-weight: 400; color: inherit; opacity: .75; font-size: 11.5px; }
.linkbtn { background: none; border: 0; padding: 2px 0; color: var(--wait); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.linkbtn.red { color: var(--late); }
.x { background: none; border: 0; color: var(--faint); font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.x:hover { color: var(--text); background: var(--raised); }
.x.big { font-size: 22px; }
.x.confirm { color: var(--late); font-size: 12.5px; font-weight: 600; }
.seg2 { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); flex-wrap: wrap; }
.seg2 button, .seg2 a { height: 30px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 500; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.seg2 .on { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line2); }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.fchip:hover { color: var(--text); }
.fchip.on { border-color: var(--text); color: var(--text); font-weight: 600; }
.fchip.late { color: var(--late); border-color: color-mix(in srgb, var(--late) 55%, transparent); }
.fchip.late.on { background: var(--late-bg); }
.fchip.wait { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 55%, transparent); }
.fchip.wait.on { background: var(--wait-bg); }
.fchip.risk { color: var(--risk); border-color: color-mix(in srgb, var(--risk) 55%, transparent); }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ddb { position: relative; }
.sel, select.sel { appearance: none; -webkit-appearance: none; min-height: var(--tap); padding: 0 30px 0 11px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0A8B3' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--text); font-size: 13.5px; max-width: 100%; }
.sel:hover { border-color: var(--faint); }
.sel.set { font-weight: 600; }
.sel.sm { min-height: 30px; font-size: 12.5px; padding-left: 9px; }
.sel.gap { color: var(--risk); }
.sel:disabled { opacity: .55; }
.txt, input.txt, input[type="text"].fld, input[type="number"], input[type="url"], input[type="email"], input[type="password"], textarea.txt, .fn-f input, .ko-unk input { min-height: var(--tap); padding: 0 11px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-size: 13.5px; width: 100%; }
textarea.txt { padding: 9px 11px; min-height: 80px; resize: vertical; }
.txt:focus, .sel:focus, input:focus, textarea:focus { outline: none; border-color: var(--wait); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wait) 22%, transparent); }
input.date, input[type="date"] { min-height: var(--tap); padding: 0 9px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: 500 12.5px var(--fm); }
input.date.set { border-color: var(--faint); }
.tog { position: relative; width: 38px; height: 22px; border-radius: 999px; border: 0; background: var(--line2); flex-shrink: 0; transition: background .15s; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.tog.on { background: var(--good); } .tog.on::after { transform: translateX(16px); background: var(--pri-ink); }
.chk { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: 13.5px; padding: 4px 0; }
.chk input { margin-top: 3px; accent-color: var(--good); width: 16px; height: 16px; }

/* ---------------- pills, chips, avatars ---------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--raised); color: var(--muted); border: 1px solid transparent; }
.pill .ic { width: 13px; height: 13px; vertical-align: 0; }
.pill.late { color: var(--late); background: var(--late-bg); }
.pill.risk { color: var(--risk); background: var(--risk-bg); }
.pill.wait { color: var(--wait); background: var(--wait-bg); }
.pill.good { color: var(--good); background: var(--good-bg); }
.pill.neutral { color: var(--text); background: var(--raised); }
.pill.rev { color: var(--text); background: var(--raised); font-family: var(--fm); font-weight: 500; }
.pill.lg { height: 26px; padding: 0 10px; font-size: 12.5px; }
.pill.solid.late { background: var(--late); color: var(--pri-ink); }
.trc, .tr { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; font: 600 10.5px var(--fm); letter-spacing: .02em; font-style: normal; }
.trc.p, .tr.p { color: var(--plbg); background: var(--plbg-bg); }
.trc.h, .tr.h { color: var(--hvac); background: var(--hvac-bg); }
.tr.j { color: var(--muted); background: var(--raised); }
.av { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 9.5px var(--fm); color: var(--text); background: color-mix(in srgb, var(--avc, #5B6B85) 55%, var(--surface)); flex-shrink: 0; border: 1px solid var(--surface); }
.av.lg { width: 32px; height: 32px; font-size: 11px; }
.avs { display: inline-flex; } .avs .av + .av { margin-left: -6px; }
.zc { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 7px; font: 600 10.5px var(--fm); color: var(--text); background: var(--s0); border: 2px solid transparent; }
.zc.s1 { background: var(--s1); } .zc.s2 { background: var(--s2); } .zc.s3 { background: var(--s3); color: #0D1A15; } .zc.s4 { background: var(--s4); color: #0D1A15; }
:root[data-theme="light"] .zc.s1, :root[data-theme="light"] .zc.s2 { color: #17323A; } :root[data-theme="light"] .zc.s3, :root[data-theme="light"] .zc.s4 { color: #fff; }
.zc.late { border-color: var(--late); } .zc.risk { border-color: var(--risk); } .zc.wait { border-color: var(--wait); border-style: dashed; }
.code { font: 500 12.5px var(--fm); }
.st { display: inline-flex; gap: 3px; align-items: center; }
.st i { width: 26px; height: 8px; border-radius: 3px; background: var(--s0); display: block; }
.st i.f1 { background: var(--s1); } .st i.f2 { background: var(--s2); } .st i.f3 { background: var(--s3); } .st i.f4 { background: var(--s4); }
.st i.cur { box-shadow: 0 0 0 1.5px var(--text); }
.st i.cur.late { box-shadow: 0 0 0 1.5px var(--late); } .st i.cur.risk { box-shadow: 0 0 0 1.5px var(--risk); } .st i.cur.wait { box-shadow: 0 0 0 1.5px var(--wait); }
.st i.skip { background: transparent; border: 1px dashed var(--line2); height: 8px; }
.st b { font: 500 10px var(--fm); color: var(--muted); margin-left: 4px; }

/* ---------------- cards, tiles, tables ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 16px; }
.card h3.h { margin-bottom: 10px; }
.tiles2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: 12.5px; }
.kpi b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--faint); font-size: 12.5px; }
.kpi.late b { color: var(--late); } .kpi.wait b { color: var(--wait); } .kpi.good b { color: var(--good); } .kpi.risk b { color: var(--risk); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 600 11px var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.cl { cursor: pointer; } .tbl tbody tr.cl:hover td { background: var(--raised); }
.tbl tr.on td { background: var(--raised); }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .grp td { padding-top: 16px; font-weight: 650; border-bottom: 0; }
.tbl .grp td .sub { font-weight: 400; margin-left: 8px; }
.tbl .sec td { font: 600 11px var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding-top: 18px; }
.twrap, .tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.twrap.card { padding: 0 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.split.r340 { grid-template-columns: minmax(0, 1fr) 320px; }
.split.l260 { grid-template-columns: 260px minmax(0, 1fr); }
.stack2 { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13.5px; }
.kv span { color: var(--muted); } .kv b { text-align: right; font-variant-numeric: tabular-nums; }
.meter2 { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: flex; }
.meter2 i { display: block; height: 100%; background: var(--good); }
.meter2 i.r { background: var(--risk); } .meter2 i.l { background: var(--late); }

/* ---------------- plates and stacks ---------------- */
svg.plate .zp { transition: fill .15s; stroke: var(--plate-edge); stroke-width: 1; stroke-linejoin: round; }
svg.plate .zp.s0 { fill: var(--s0); } svg.plate .zp.s1 { fill: var(--s1); } svg.plate .zp.s2 { fill: var(--s2); } svg.plate .zp.s3 { fill: var(--s3); } svg.plate .zp.s4 { fill: var(--s4); }
svg.plate .zp.late { stroke: var(--late); stroke-width: 2.6; }
svg.plate .zp.risk { stroke: var(--risk); stroke-width: 2.6; }
svg.plate .zp.wait { stroke: var(--wait); stroke-width: 2.2; stroke-dasharray: 4 3; }
svg.plate .zp.sel { stroke: var(--text); stroke-width: 3; }
svg.plate .sd1 { fill: var(--plate-side); } svg.plate .sd2 { fill: var(--plate-side2); }
svg.plate .ghost { fill: none; stroke: var(--line2); stroke-width: 1.5; stroke-dasharray: 4 4; }
svg.plate text { font: 600 9px var(--fm); fill: var(--text); pointer-events: none; }
svg.plate text.dk { fill: #0D1A15; }
:root[data-theme="light"] svg.plate text.dk { fill: #fff; }

/* ---------------- pipeline ---------------- */
.eyes { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.eyes > b { font-weight: 650; white-space: nowrap; }
.eyes .ct { font: 600 11px var(--fm); background: var(--late-bg); color: var(--late); border-radius: 999px; padding: 1px 8px; }
.eyes .ct.ok { background: var(--good-bg); color: var(--good); }
.eye { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--late-bg); color: var(--late); }
.eye.wait { background: var(--wait-bg); color: var(--wait); }
.eye.risk { background: var(--risk-bg); color: var(--risk); }
.eye:hover { filter: brightness(1.12); }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.stg-col { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; transition: border-color .15s, background .15s; }
.stg-col.over { border-color: var(--text); background: var(--raised); }
.stg-col.no { border-color: var(--late); }
.stg-h { display: flex; align-items: baseline; gap: 10px; }
.stg-h .n { font: 600 22px var(--fm); color: var(--faint); }
.stg-h h2 { margin: 0; font-size: 15px; font-weight: 650; }
.stg-h .c { margin-left: auto; font: 500 13px var(--fm); color: var(--muted); }
.stg-gate { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; margin-top: -4px; }
.stg-gate .ic { margin-top: 2px; }
.jc { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; transition: transform .15s, border-color .15s; text-align: left; width: 100%; }
.jc:hover { border-color: var(--line2); background: var(--raised); }
.jc.late { border-color: var(--late); } .jc.risk { border-color: var(--risk); } .jc.wait { border-color: color-mix(in srgb, var(--wait) 60%, transparent); border-style: dashed; }
.jc.dragging { opacity: .55; transform: scale(.98); }
.jc .vis { flex-shrink: 0; width: 92px; display: flex; justify-content: center; }
.jc .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.jc .top { display: flex; align-items: center; gap: 5px; }
.jc .top .code { color: var(--muted); margin-right: 2px; }
.jc .top .avs { margin-left: auto; }
.jc h3 { margin: 0; font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.jc .meta { font-size: 12.5px; color: var(--muted); }
.jc .meta.late { color: var(--late); }
.jc .mv { position: absolute; right: 8px; bottom: 8px; opacity: 0; }
.jc:hover .mv, .jc:focus-within .mv { opacity: 1; }
.drop-hint { border: 1.5px dashed var(--line2); border-radius: var(--r); height: 70px; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12.5px; }
.gate { background: var(--raised); border: 1px solid var(--line2); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow); }
.gate h4 { margin: 0 0 2px; font-size: 13.5px; font-weight: 650; }
.gk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.gk.ok { color: var(--good); }
.gk .ic { margin-top: 2px; }
.gk .fx { margin-left: auto; }
.gate .row { margin-top: 6px; }

/* ---------------- job stage strip ---------------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 20px 0; }
.sg { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; min-width: 0; }
.sg:hover { border-color: var(--line2); }
.sg.cur { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.sg .h2 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sg .h2 .n { font-family: var(--fm); }
.sg .h2 .pill { margin-left: auto; }
.sg b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg.late { border-color: color-mix(in srgb, var(--late) 70%, transparent); }
.jbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px 0; }
.jbar .rt { margin-left: auto; font-size: 12.5px; color: var(--faint); }

/* ---------------- deliverables board ---------------- */
.bdg { display: grid; grid-template-columns: 280px repeat(5, minmax(150px, 1fr)); gap: 10px; padding: 12px 20px 20px; min-width: 1100px; }
.bdg.lay { grid-template-columns: 270px repeat(4, minmax(160px, 1fr)); min-width: 940px; }
.bdg-scroll { overflow-x: auto; }
.bdh { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; padding: 0 4px; }
.bdh .c { margin-left: auto; font: 500 12.5px var(--fm); color: var(--muted); }
.fl-cell { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); min-height: 118px; }
.fl-cell .t { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; min-width: 78px; }
.fl-cell .t b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.fl-cell .t span { font-size: 12.5px; color: var(--muted); }
.fl-cell .t span.late { color: var(--late); font-weight: 500; } .fl-cell .t span.risk { color: var(--risk); font-weight: 500; }
.fl-cell { overflow: hidden; } .fl-cell .t { flex: 1 1 auto; min-width: 0; }
.fl-cell svg { margin-left: auto; flex: 0 1 auto; max-width: 52%; height: auto; }
.cell { border-radius: var(--r); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, var(--bg)); padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 118px; transition: border-color .12s, background .12s; }
.cell.over { border-color: var(--text); background: var(--raised); }
.cell.lateb { background: color-mix(in srgb, var(--late) 9%, var(--surface)); border-color: color-mix(in srgb, var(--late) 50%, transparent); }
.wide-note { grid-column: 2 / -1; border: 1px dashed var(--line2); border-radius: var(--r); display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--muted); flex-wrap: wrap; }
.wide-note .b { margin-left: auto; }
.dc { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); text-align: left; width: 100%; cursor: grab; transition: transform .12s, border-color .12s; }
.dc:hover { border-color: var(--faint); }
.dc.sel { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.dc.late { border-color: var(--late); } .dc.risk { border-color: var(--risk); } .dc.wait { border-color: var(--wait); border-style: dashed; }
.dc.dragging { opacity: .5; }
.dc .bd { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dc .bd .l1 { display: flex; align-items: center; gap: 6px; }
.dc .bd .l1 .code { font-weight: 600; font-size: 13px; }
.dc .bd .l2 { font-size: 12px; color: var(--muted); }
.dc .bd .l2.late { color: var(--late); font-weight: 600; } .dc .bd .l2.risk { color: var(--risk); font-weight: 600; }
.dc .chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.dc .chips .pill { height: 19px; font-size: 11px; padding: 0 7px; }
.dc .ow { margin-left: auto; }
.selp { margin: 0 20px 20px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.selp .who { display: flex; flex-direction: column; gap: 2px; }
.selp .who b { font: 650 16px var(--fm); }
.selp .cks2 { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.cki { display: flex; gap: 7px; align-items: center; color: var(--muted); }
.cki.ok { color: var(--good); }
button.cki { background: none; border: 0; padding: 2px 0; text-align: left; }
button.cki:hover { color: var(--text); }
.selp .hl { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.selp .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------- layout board ---------------- */
.lt { display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line2); background: var(--raised); text-align: left; width: 100%; color: var(--text); cursor: grab; }
.lt.late { border-color: var(--late); } .lt.risk { border-color: var(--risk); } .lt.wait { border-color: var(--wait); border-style: dashed; }
.lt .l1 { display: flex; gap: 8px; align-items: flex-start; }
.lt .l1 b { font-size: 13px; font-weight: 600; line-height: 1.25; flex: 1; }
.lt .l2 { font-size: 12px; color: var(--muted); }
.needs { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: var(--wait-bg); color: var(--wait); align-self: flex-start; }
.needs.good { background: var(--good-bg); color: var(--good); } .needs.risk { background: var(--risk-bg); color: var(--risk); } .needs.late { background: var(--late-bg); color: var(--late); }
.needs .code { font-size: 11px; }
.side { display: flex; flex-direction: column; gap: 12px; }
.wkl { display: flex; flex-direction: column; }
.wkl .wi { display: grid; grid-template-columns: 54px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.wkl .wi:last-child { border-bottom: 0; }
.wkl .wi .d { font: 500 12px var(--fm); color: var(--muted); }
.wkl .wi.late { color: var(--late); font-weight: 600; } .wkl .wi.risk { color: var(--risk); font-weight: 600; }
.wkl .wi .h { font: 500 12px var(--fm); color: var(--muted); }

/* ---------------- register + record ---------------- */
.rec { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; padding: 18px; max-height: calc(100vh - 96px); overflow-y: auto; }
.rec .hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec .hd b { font: 650 20px var(--fm); }
.rec h2 { margin: 0; font-size: 15px; font-weight: 650; }
.hist { display: flex; flex-direction: column; }
.hi { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; padding-bottom: 14px; position: relative; }
.hi::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line2); }
.hi:last-child::before { display: none; }
.hi .dt { width: 12px; height: 12px; border-radius: 50%; background: var(--s2); margin-top: 4px; }
.hi .dt.late { background: var(--late); } .hi .dt.s4 { background: var(--s4); } .hi .dt.s1 { background: var(--s1); } .hi .dt.no { background: transparent; border: 1.5px dashed var(--line2); }
.hi b { font-size: 13.5px; font-weight: 600; } .hi .w { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.filebox { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--raised); margin-top: 6px; }
.filebox .ic { color: var(--late); }
.filebox div { flex: 1; min-width: 0; } .filebox b { font: 500 12.5px var(--fm); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .filebox span { font-size: 12px; color: var(--muted); }
.hold { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 11px; border: 1px dashed color-mix(in srgb, var(--wait) 60%, transparent); background: var(--wait-bg); }
.hold.res { border-style: solid; border-color: var(--line); background: var(--raised); opacity: .75; }
.hold .l1 { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; color: var(--wait); }
.hold.res .l1 { color: var(--muted); }
.hold .l2 { font-size: 12.5px; color: var(--muted); }
.hold .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.srcl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.srcl span { display: flex; gap: 7px; align-items: center; }

/* ---------------- model ---------------- */
.mtabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px 0; }
.mtabs .tl { display: flex; gap: 2px; flex-wrap: wrap; }
.mtabs .tl a { height: 32px; padding: 0 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.mtabs .tl a:hover { color: var(--text); }
.mtabs .tl a.on { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line2); }
.mtabs .tl a i { font: 500 10.5px var(--fm); font-style: normal; color: var(--faint); }
.gl2 { display: flex; flex-direction: column; }
.gi { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.gi:last-child { border-bottom: 0; }
.gi .ok { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; background: none; color: transparent; padding: 0; }
.gi .ok.on { background: var(--good); border-color: var(--good); color: #0D1A15; }
.gi .ok.na { border-style: dashed; color: var(--muted); font: 600 8px var(--fm); }
.gi b { font-size: 14px; font-weight: 600; display: block; }
.gi span { font-size: 12.5px; color: var(--muted); }
.gi span.late { color: var(--late); }
.gi .tg2 { display: flex; gap: 6px; }
.stampbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.stamped { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--good-bg); color: var(--good); font-weight: 650; }
.sysrow { display: grid; grid-template-columns: 20px 76px minmax(0, 1fr) 150px 150px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sysrow:last-child { border-bottom: 0; }
.sysrow b { font: 600 12.5px var(--fm); }
.sysrow .sw2 { width: 12px; height: 12px; border-radius: 4px; border: 1.5px dashed var(--line2); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 200px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.pbar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--s3); }
.pbtns { display: flex; gap: 3px; flex-wrap: wrap; }
.pbtns button { height: 26px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 500 11.5px var(--fm); }
.pbtns button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.zgrid2 { display: flex; flex-wrap: wrap; gap: 14px; }
.zcard { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 220px; flex: 1; }
.zcard .l1 { display: flex; align-items: center; gap: 8px; } .zcard .l1 b { font-weight: 650; }

/* ---------------- analysis ---------------- */
.hb { position: relative; height: 12px; width: 100%; min-width: 140px; }
.hb .e { position: absolute; top: 0; left: 0; height: 12px; border-radius: 6px; border: 1.5px solid var(--muted); }
.hb .a { position: absolute; top: 3px; left: 1.5px; height: 6px; border-radius: 3px; background: var(--muted); }
.hb .o { position: absolute; top: 3px; height: 6px; border-radius: 0 3px 3px 0; background: var(--late); }
.hb .k { position: absolute; top: -3px; width: 2.5px; height: 18px; border-radius: 1px; background: var(--good); }
.cpi.go { color: var(--good); } .cpi.watch { color: var(--risk); } .cpi.stop { color: var(--late); }
.cols { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 8px; }
.cols div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; height: 100%; }
.cols i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--late) 70%, var(--surface)); }
.cols span { font: 500 10px var(--fm); color: var(--faint); }
.est td input.hrs { width: 64px; text-align: right; min-height: 30px; padding: 0 8px; font: 500 13px var(--fm); }
.est .stp2 { display: inline-flex; height: 21px; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--s0); }
.stp2.s1 { background: var(--s1); } .stp2.s2 { background: var(--s2); } .stp2.s3 { background: var(--s3); color: #0D1A15; } .stp2.s4 { background: var(--s4); color: #0D1A15; }
:root[data-theme="light"] .stp2.s3, :root[data-theme="light"] .stp2.s4 { color: #fff; }
.stp2.none { background: none; color: var(--faint); font-weight: 400; padding: 0; }
.bl-card { display: flex; flex-direction: column; gap: 10px; }
.bl-card .big { font-size: 17px; font-weight: 650; }
.chkl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.chkl span { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); }
.chkl span.ok { color: var(--good); }

/* ---------------- activities ---------------- */
.who2 { display: flex; flex-direction: column; gap: 2px; }
.who2 button, .who2 a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; border: 1px solid transparent; background: none; color: var(--text); text-align: left; text-decoration: none; font-weight: 500; }
.who2 .on { background: var(--raised); border-color: var(--line2); font-weight: 650; }
.who2 .c { margin-left: auto; font: 500 12.5px var(--fm); color: var(--muted); }
.who2 .late { color: var(--late); } .who2 .risk { color: var(--risk); } .who2 .wait { color: var(--wait); }
.qi { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); align-items: start; }
.qi.top { border-color: var(--text); }
.qi .zc { width: 30px; height: 30px; }
.qi .l0 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.qi h3 { margin: 4px 0 2px; font-size: 14.5px; font-weight: 650; }
.qi p { margin: 0; font-size: 12.5px; color: var(--muted); }
.qi .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.live { display: flex; flex-direction: column; }
.li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; color: var(--text); width: 100%; }
.li:hover b { text-decoration: underline; }
.li b { font-weight: 500; font-size: 13.5px; } .li b strong { font-weight: 650; }
.li span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.qlist { display: flex; flex-direction: column; gap: 10px; }
.act3 { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.act3 .who2 { position: sticky; top: 76px; }
.lay-list { display: none; }
.lay-list .ll { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; }
.lay-list .ll .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.lay-list .ll.late { border-color: var(--late); } .lay-list .ll.risk { border-color: var(--risk); }
.lay-list h3 { margin: 18px 0 8px; font-size: 14px; }
@media (max-width: 1100px) { .act3 { grid-template-columns: minmax(0, 1fr); } .act3 .who2 { position: static; flex-direction: row; flex-wrap: wrap; } .act3 .who2 .lbl { flex-basis: 100%; } .act3 > .card { position: static !important; } }
@media (max-width: 820px) { .lay-grid { display: none; } .lay-list { display: block; padding: 0 16px 16px; } }

/* ---------------- schedule ---------------- */
.cal { overflow-x: auto; }
.calg { display: grid; min-width: 1100px; font-size: 13px; }
.calg .hd { position: sticky; top: 0; background: var(--surface); z-index: 2; padding: 8px 4px; text-align: center; font: 500 11.5px var(--fm); color: var(--muted); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); line-height: 1.3; }
.calg .hd.tdy { color: var(--text); font-weight: 650; }
.calg .hd.wk { border-left-color: var(--line2); }
.calg .rl { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.calg .rl .sub { font-size: 12px; }
.calg .jr { padding: 10px 12px; font-weight: 650; border-bottom: 1px solid var(--line); background: var(--raised); grid-column: 1 / -1; }
.calg .tr2 { position: relative; border-bottom: 1px solid var(--line); height: 38px; }
.calg .gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.calg .gl.wk { background: var(--line2); }
.calg .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); z-index: 1; }
.cb { position: absolute; top: 7px; height: 24px; border-radius: 6px; padding: 0 8px; display: flex; align-items: center; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; z-index: 1; background: var(--s3); color: #0D1A15; border: 0; cursor: pointer; }
.cb.late { background: var(--late); color: #1A0B06; } .cb.risk { background: transparent; border: 1.5px solid var(--risk); color: var(--risk); } .cb.wait { background: transparent; border: 1.5px dashed var(--wait); color: var(--wait); }
.cb.s1 { background: var(--s1); color: var(--text); } .cb.s2 { background: var(--s2); color: var(--text); }
.dia { position: absolute; top: 10px; width: 16px; height: 16px; transform: rotate(45deg); background: var(--text); border-radius: 2px; z-index: 1; }
.dial { position: absolute; top: 9px; font-size: 12.5px; font-weight: 650; white-space: nowrap; z-index: 1; }

/* ---------------- settings ---------------- */
.sl { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.sl .g { font: 600 11px var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.sl a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; border: 1px solid transparent; font-weight: 500; }
.sl a:hover { background: var(--raised); }
.sl a.on { background: var(--raised); border-color: var(--line2); font-weight: 650; }
.sl a .r { margin-left: auto; font-size: 12.5px; color: var(--faint); font-weight: 400; }
.adm { font: 600 10px var(--fm); color: var(--muted); background: var(--raised); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; letter-spacing: .03em; }
.spg { display: flex; flex-direction: column; gap: 14px; max-width: 920px; }
.spg > h1 { margin: 0; font-size: 24px; font-weight: 650; }
.spg > p { margin: -8px 0 0; color: var(--muted); }
.tgl { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tgl:last-child { border-bottom: 0; }
.tgl b { display: block; font-weight: 600; } .tgl span { font-size: 12.5px; color: var(--muted); }
.ro-note { font-size: 12.5px; color: var(--faint); }

/* ---------------- reused Sheet Set editors (drawers, forms, lists) ---------------- */
.fsec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fsec:last-child { border-bottom: 0; }
.fsec-h { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.fsec-h h4 { margin: 0; font-size: 14px; font-weight: 650; }
.frow { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: center; padding: 6px 0; }
.frow .fl { font-size: 13.5px; color: var(--muted); }
.frow .fl small { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.frow .fc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.trio { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); flex-wrap: wrap; }
.seg button { min-height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 500; font-size: 13px; }
.seg button.on { background: var(--raised); color: var(--text); font-weight: 650; box-shadow: inset 0 0 0 1px var(--line2); }
.msel { position: relative; }
.msel summary { list-style: none; min-height: var(--tap); display: flex; align-items: center; padding: 0 30px 0 11px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0A8B3' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; font-size: 13.5px; min-width: 180px; max-width: 420px; }
.msel summary::-webkit-details-marker { display: none; }
.msel summary.set { font-weight: 600; }
.msel summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel-pop { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; min-width: 240px; max-height: 340px; overflow-y: auto; background: var(--raised); border: 1px solid var(--line2); border-radius: 11px; padding: 6px; box-shadow: var(--shadow); }
.msel-g { font: 600 10.5px var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 8px 8px 4px; }
.msel-o { display: flex; gap: 9px; align-items: center; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.msel-o:hover { background: var(--surface); }
.msel-o input { accent-color: var(--good); width: 15px; height: 15px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--text); }
button.tile:hover { border-color: var(--line2); }
.tile.on { border-color: var(--text); }
.tile b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12.5px; color: var(--muted); }
.tile.ok b { color: var(--good); } .tile.bad b { color: var(--late); } .tile.warn b { color: var(--risk); }
.tile.act { justify-content: center; align-items: flex-start; gap: 6px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .sp { flex: 1; }
.rule { color: var(--muted); font-size: 13px; }
.kns { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.kn { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 2px 8px; border-radius: 7px; background: var(--raised); border: 1px solid var(--line); }
.kn i { font: 600 10px var(--fm); font-style: normal; color: var(--faint); text-transform: uppercase; }
.kn.missing { border-style: dashed; color: var(--risk); }
.kn.h i { color: var(--hvac); } .kn.p i { color: var(--plbg); }
.src { font: 600 9.5px var(--fm); letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line2); background: var(--raised); color: var(--muted); }
.src.cl { color: var(--plbg); }
.cks { display: flex; gap: 5px; flex-wrap: wrap; }
.ck { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 600 11px var(--fm); }
.ck .mk { min-width: 10px; }
.ck.ok { background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 50%, transparent); color: var(--good); }
.ck.na { border-style: dashed; color: var(--faint); }
.ck .by { color: var(--faint); font-weight: 500; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step .sn { width: 24px; height: 24px; border-radius: 50%; background: var(--raised); font: 600 11px var(--fm); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.step .st { font-weight: 600; font-size: 14px; display: block; } .step .sd { font-size: 12.5px; color: var(--muted); }
.stampbtn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--raised); color: var(--faint); font-weight: 650; }
.stampbtn small { font-weight: 400; font-size: 11.5px; }
.stampbtn.ready { background: var(--pri); color: var(--pri-ink); border-color: var(--pri); }
.stampbtn.done { background: var(--good-bg); color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.stampbtn.confirm { color: var(--late); border-color: var(--late); background: var(--late-bg); }
.stamps { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.stamps .lbl { flex-basis: 100%; text-transform: none; letter-spacing: 0; font: 400 12.5px var(--f); color: var(--muted); }
.cocards { display: flex; flex-direction: column; gap: 10px; }
.cocard { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cocard summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.cocard summary::-webkit-details-marker { display: none; }
.cocard summary b { font-weight: 650; }
.cocard.done summary b { color: var(--good); }
.meter { flex: 1; max-width: 220px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: block; }
.meter i { display: block; height: 100%; background: var(--good); }
.meter.warn i { background: var(--risk); }
.g-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.g-row .gn { font-weight: 600; } .g-row .gi { font-size: 12.5px; color: var(--muted); display: block; grid-template-columns: none; padding: 0; border: 0; }
.tree details { margin-left: 12px; } .tree > details { margin-left: 0; }
.tree summary { cursor: pointer; padding: 4px 0; display: flex; gap: 8px; align-items: center; font-weight: 500; }
.tree summary small { color: var(--faint); font-family: var(--fm); }
.tree summary .bad { color: var(--late); }
.tree .lf { display: flex; gap: 10px; padding: 3px 0 3px 22px; font-size: 13px; }
.tree .lf b { font: 500 12.5px var(--fm); } .tree .lf span { color: var(--muted); font-size: 12.5px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.params, .shop, .sd-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.params td, .shop td, .shop th, .sd-t td, .sd-t th { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.shop th, .sd-t th { font: 600 11px var(--fm); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sd-t td.m { font-family: var(--fm); font-size: 12.5px; } .sd-t td.b { font-weight: 600; } .sd-t .n { text-align: right; }
.sd-t .sd-grp td { font-weight: 650; background: var(--raised); }
.sd-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -1px; margin-right: 7px; border: 1px solid var(--line2); }
.sd-gap { color: var(--faint); }
.fold { border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; margin-top: 12px; }
.fold summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: 13.5px; }
.durs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; padding-bottom: 12px; font-size: 13px; color: var(--muted); }
.durs label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.zedit { display: grid; grid-template-columns: 110px repeat(var(--cols), minmax(90px, 1fr)); gap: 6px; align-items: center; }
.zedit > b { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }
.zedit .zl { text-align: left; color: var(--text); }
.zb { min-height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-size: 12px; font-weight: 600; }
.zb.hp { background: color-mix(in srgb, var(--plbg) 18%, color-mix(in srgb, var(--hvac) 18%, var(--surface))); }
.zb.p { background: var(--plbg-bg); color: var(--plbg); } .zb.h { background: var(--hvac-bg); color: var(--hvac); }
.zb.off { border-style: dashed; color: var(--faint); background: transparent; }
.zbh { margin: 12px 0 6px; font-size: 13px; }
.subs { display: flex; gap: 10px; flex-wrap: wrap; } .sub1 { display: inline-flex; gap: 6px; align-items: center; }
.dtrow { display: grid; grid-template-columns: 170px repeat(2, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dtrow > b { font-size: 13px; }
.dtc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dtc.none { color: var(--faint); }
.fdsheet { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-radius: 11px; background: var(--raised); margin-bottom: 8px; }
.dtts { display: flex; flex-direction: column; margin-top: 6px; }
.dtt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 7px 0; border-top: 1px solid var(--line); }
.dtt > span { flex: 1; min-width: 160px; } .dtt small { display: block; color: var(--muted); font-size: 12px; }
.sxe { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); }
.sxe-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .sxe-h small { color: var(--muted); font-family: var(--fm); font-size: 11.5px; } .sxe-h .x { margin-left: auto; }
.sxe-g .frow { grid-template-columns: 120px minmax(0, 1fr); }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line2); }
.swatch.two { background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.swatch.none { border-style: dashed; }
.morebtn { background: none; border: 0; color: var(--wait); font-size: 12.5px; padding: 4px 0; }
.eqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.eqc { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--text); }
.eqc:hover { border-color: var(--line2); }
.eqc.bad { border-color: color-mix(in srgb, var(--late) 55%, transparent); } .eqc.warn { border-color: color-mix(in srgb, var(--risk) 55%, transparent); } .eqc.good { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.eqc-h { display: flex; gap: 6px; align-items: center; }
.etag { font: 600 12.5px var(--fm); } .etag.none { color: var(--faint); }
.eqc-t { font-size: 13px; color: var(--muted); }
.eqc-r { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; align-items: center; } .eqc-r span { color: var(--muted); } .eqc-r.quiet b { color: var(--faint); font-weight: 400; }
.eqc-s { font-size: 12.5px; font-weight: 650; } .eqc-s.good { color: var(--good); } .eqc-s.bad { color: var(--late); } .eqc-s.warn { color: var(--risk); } .eqc-s.dim { color: var(--faint); }
.stmp { font: 600 10px var(--fm); padding: 1px 5px; border-radius: 4px; background: var(--raised); border: 1px solid var(--line2); }
.stmp.A, .stmp.B, .stmp.rec { color: var(--good); } .stmp.C, .stmp.D { color: var(--late); }
.pdfb { font: 600 10px var(--fm); color: var(--late); border: 1px solid color-mix(in srgb, var(--late) 50%, transparent); border-radius: 4px; padding: 1px 5px; margin-left: auto; }
.eqst.good { color: var(--good); } .eqst.bad { color: var(--late); } .eqst.warn { color: var(--risk); }
.colist { display: flex; flex-direction: column; }
.cor { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.notes { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.list2 { display: flex; flex-direction: column; }
.li2 { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.danger { display: flex; gap: 18px; flex-wrap: wrap; padding: 16px 0 4px; }
.checks { display: flex; flex-direction: column; gap: 2px; }
.shl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .shl b { font-family: var(--fm); font-weight: 600; margin-right: 6px; }
.pc-link { color: var(--wait); font-weight: 500; text-decoration: none; } .pc-link:hover { text-decoration: underline; }
.waiting { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; padding: 8px 12px; border-radius: 10px; background: var(--wait-bg); color: var(--wait); margin-bottom: 10px; }
.needctl { display: inline-flex; gap: 6px; align-items: center; }
.needbtn { min-height: 28px; padding: 0 10px; border-radius: 8px; border: 1px dashed var(--line2); background: transparent; color: var(--muted); font-size: 12.5px; }
.needbtn[aria-pressed="true"] { border-color: var(--wait); color: var(--wait); background: var(--wait-bg); }
.callout { display: none; }
.savedtag { font: 600 10px var(--fm); color: var(--good); background: var(--good-bg); padding: 1px 6px; border-radius: 4px; }
.was { color: var(--faint); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--text); font-size: 13px; }
.chip.on { border-color: var(--text); font-weight: 650; }

/* finance and connections (reused) */
.fn-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fn-t th { text-align: left; font: 600 11px var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fn-t th.n, .fn-t td.n { text-align: right; }
.fn-t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.fn-t td small { display: block; font-size: 12px; color: var(--muted); }
.fn-t td small.stop, .fn-t td.stop { color: var(--late); } .fn-t td.go { color: var(--good); }
.fn-r { cursor: pointer; } .fn-r:hover td { background: var(--raised); }
.fn-r.none td { color: var(--faint); }
.fn-j { font-weight: 650; display: block; }
.fn-cpi.go { color: var(--good); } .fn-cpi.watch { color: var(--risk); } .fn-cpi.stop { color: var(--late); } .fn-cpi.dim { color: var(--faint); }
.fn-bar { position: relative; display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; }
.fn-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--s3); }
.fn-bar b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text); }
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.fn-f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.fn-f b { color: var(--text); font-size: 14px; }
.fn-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.fn-pv { max-height: 320px; overflow: auto; }
.fn-pv tr.nom td { color: var(--risk); }
.fn-how { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 13px; color: var(--muted); padding: 16px; border-top: 1px solid var(--line); }
.fn-how p { margin: 6px 0; } .fn-how b { color: var(--text); }
.cx-st { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; } .cx-st i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); } .cx-st.on i { background: var(--good); } .cx-st.bad i { background: var(--late); }
.cx-st span { color: var(--muted); font-size: 12.5px; }
.cx-copy { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; } .cx-copy code { font-size: 12px; padding: 5px 8px; border-radius: 7px; background: var(--raised); border: 1px solid var(--line); word-break: break-all; }
.cx-sug { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); }
.cx-sug span { color: var(--muted); font-size: 12px; } .cx-sug i { font-style: normal; color: var(--wait); font-weight: 600; font-size: 12.5px; }
.cx-ppl { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; } .cx-ppl b { font-family: var(--fm); margin-right: 6px; color: var(--muted); }
.pc-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.pc-steps li .fn-grid { margin: 8px 0; }

/* standards and kickoff (reused) */
.sd { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.sd-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.sd-nav h2 { font: 600 11px var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; padding: 0 12px; }
.sd-nav button, .sd-nav a { display: grid; grid-template-columns: 44px 1fr; gap: 0 8px; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text); text-decoration: none; }
.sd-nav .on { background: var(--raised); border-color: var(--line2); }
.sd-nav .no { grid-row: span 2; font: 500 11.5px var(--fm); color: var(--faint); font-style: normal; padding-top: 2px; }
.sd-nav b { font-weight: 600; font-size: 13.5px; } .sd-nav span { font-size: 12px; color: var(--muted); }
.sd article.sheet, .sd .sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px 18px; min-width: 0; }
.sd .sheet-in .body { display: flex; flex-direction: column; gap: 12px; }
.sd-tb { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sd-tb small { display: block; font: 600 10.5px var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.sd-tb b { font-size: 14px; font-weight: 650; } .sd-tb .w b { font-size: 18px; }
.sd-note { color: var(--muted); margin: 0; }
.sd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.sec-h { display: flex; align-items: baseline; gap: 10px; margin: 8px 0; flex-wrap: wrap; } .sec-h h3 { margin: 0; font-size: 15px; font-weight: 650; } .sec-h .sub { color: var(--muted); font-size: 12.5px; }
.sd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sd-notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.sd-gl { display: grid; grid-template-columns: 220px 1fr; margin: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.sd-gl dt, .sd-gl dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sd-gl dt { font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .sd-gl dd { color: var(--muted); }
.sd-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; } .sd-rules b { display: block; } .sd-rules span { color: var(--muted); font-size: 13px; }
.ko-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; }
.ko-bar .bd-id small { display: block; font: 600 10.5px var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.ko-prog { display: grid; grid-template-columns: repeat(3, auto); gap: 0 16px; text-align: center; }
.ko-prog b { font-size: 22px; font-weight: 650; } .ko-prog span { font-size: 11.5px; color: var(--muted); }
.ko-kn { color: var(--good); } .ko-un { color: var(--wait); } .ko-op { color: var(--muted); }
.ko-sign { display: flex; gap: 8px; }
.ko-stamp { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-weight: 650; }
.ko-stamp small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.ko-stamp.on { background: var(--good-bg); color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.ko-stamp.cf { color: var(--late); border-color: var(--late); }
.ko-lead { color: var(--muted); max-width: 820px; } .ko-lead b { color: var(--text); }
.ko-line { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ko-line li { padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.ko-line li.here { border-color: var(--text); } .ko-line small { font: 500 11px var(--fm); color: var(--faint); } .ko-line span { color: var(--muted); }
.ko-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.ko-rules div { padding: 10px 12px; border-radius: 11px; background: var(--raised); } .ko-rules b { display: block; color: var(--text); }
.ko-blk { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.ko-when { display: flex; flex-direction: column; gap: 3px; } .ko-when .bub { width: 24px; height: 24px; border-radius: 50%; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; font: 600 11px var(--fm); }
.ko-when .tm { font: 500 12px var(--fm); color: var(--faint); } .ko-when b { font-size: 14px; } .ko-when span { font-size: 12.5px; color: var(--muted); }
.ko-qs { display: flex; flex-direction: column; gap: 6px; }
.ko-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.ko-q.known { border-color: color-mix(in srgb, var(--good) 40%, transparent); } .ko-q.unknown { border-color: color-mix(in srgb, var(--wait) 50%, transparent); border-style: dashed; } .ko-q.later { opacity: .75; }
.ko-seg { display: inline-flex; padding: 2px; border-radius: 8px; border: 1px solid var(--line2); }
.ko-seg button { min-height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.ko-seg button.on.known { background: var(--good-bg); color: var(--good); } .ko-seg button.on.unknown { background: var(--wait-bg); color: var(--wait); } .ko-seg button.on.later { background: var(--raised); color: var(--text); }
.ko-unk { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ko-unk input { width: auto; }
.ko-note { font-size: 12.5px; color: var(--muted); }
.ko-ulog { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .ko-ulog div { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; } .ko-ulog i { font: 500 11.5px var(--fm); color: var(--faint); font-style: normal; }
.ko-dec { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--raised); font-size: 13px; } .ko-dec ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.ko-pick .sel { min-width: 280px; }
.bd-empty { padding: 26px; border: 1px dashed var(--line2); border-radius: var(--r); text-align: center; color: var(--muted); margin-bottom: 14px; }
.bd-empty h3 { color: var(--text); margin: 0 0 6px; }

/* ---------------- modals, drawers, upload sheet, palette ---------------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal.wide { width: min(900px, 100%); }
.modal h3 { margin: 0; font-size: 17px; font-weight: 650; }
.modal label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.modal label.chk { flex-direction: row; color: var(--text); }
.mhead { display: flex; align-items: flex-start; gap: 12px; }
.mhead > div { flex: 1; min-width: 0; } .mhead p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.mfoot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.tgs { display: flex; gap: 8px; }
.tg { min-height: var(--tap); padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-weight: 650; }
.tg.on.h { background: var(--hvac-bg); color: var(--hvac); border-color: color-mix(in srgb, var(--hvac) 50%, transparent); }
.tg.on.p { background: var(--plbg-bg); color: var(--plbg); border-color: color-mix(in srgb, var(--plbg) 50%, transparent); }
.opts { display: flex; flex-direction: column; gap: 8px; }
.optb { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--raised); text-align: left; color: var(--text); }
.optb:hover { border-color: var(--faint); } .optb.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.optb b { display: block; font-weight: 650; } .optb span { font-size: 12.5px; color: var(--muted); }
.optb.late b { color: var(--late); } .optb.good b { color: var(--good); }
.dscrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); animation: fade .12s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(640px, 100vw); background: var(--surface); border-left: 1px solid var(--line2); box-shadow: var(--shadow); display: flex; flex-direction: column; outline: none; }
.drawer.enter { animation: slide .16s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.dhead { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.dh-t { flex: 1; min-width: 0; } .dh-t h3 { margin: 0; font-size: 17px; font-weight: 650; } .dh-t .muted { font-size: 13px; }
.dbody { flex: 1; overflow-y: auto; padding: 0 20px 20px; }
.dfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer.ro .dbody { pointer-events: none; opacity: .7; }
body.dopen { overflow: hidden; }
.up { width: min(900px, 100%); }
.up .pcpull { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); }
.up .pcpull > b { font-weight: 650; margin-right: 4px; }
.up .pcpull .rt { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.newt { font: 600 9.5px var(--fm); color: var(--muted); background: var(--surface); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 5px; margin-left: 4px; }
.drop { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; width: 100%; padding: 22px 16px; border-radius: 12px; border: 1.5px dashed var(--line2); background: transparent; color: var(--text); text-align: center; }
.drop:hover, .drop.over { border-color: var(--text); background: var(--raised); }
.drop b { font-weight: 650; font-size: 14.5px; } .drop span { font-size: 12.5px; color: var(--muted); }
.files { display: flex; flex-direction: column; }
.file { display: grid; grid-template-columns: 20px minmax(0, 1fr) 210px 110px 18px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.file .fn { min-width: 0; } .file .fn b { display: block; font: 500 13px var(--fm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file .fn small { display: block; font-size: 12px; color: var(--muted); }
.file .bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; } .file .bar i { display: block; height: 100%; background: var(--faint); transition: width .2s; }
.file.done .bar i { background: var(--good); } .file.error .bar i { background: var(--late); } .file.error .fn small { color: var(--late); }
.file .okk { color: var(--good); } .file.error .okk { color: var(--late); }
.found { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg { border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.fg summary { list-style: none; display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; padding: 12px 14px; cursor: pointer; align-items: start; }
.fg summary::-webkit-details-marker { display: none; }
.fg summary input { accent-color: var(--good); width: 17px; height: 17px; margin: 1px 0 0; }
.fg summary b { font-weight: 650; font-size: 13.5px; } .fg summary .tiny { grid-column: 2; }
.fi { display: flex; gap: 9px; align-items: flex-start; padding: 7px 14px; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.fi input { accent-color: var(--good); margin-top: 3px; } .fi b { font-weight: 600; } .fi q { display: block; font-size: 12px; color: var(--faint); font-style: italic; }
.fi.done { opacity: .6; }
.fz { padding: 8px 14px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.evq { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line2); background: var(--raised); border-radius: 0 9px 9px 0; font-size: 13px; color: var(--muted); }
.ck2 { width: min(620px, 100%); padding: 0; gap: 0; overflow: hidden; }
.ck2 .qin { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ck2 .qin input { border: 0; background: transparent; font-size: 15px; flex: 1; min-height: 30px; padding: 0; box-shadow: none !important; }
.ck2 .res { max-height: 56vh; overflow-y: auto; padding: 6px; }
.ck2 .rg { font: 600 10.5px var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.ck2 .ri { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: none; color: var(--text); text-align: left; }
.ck2 .ri.on, .ck2 .ri:hover { background: var(--raised); }
.ck2 .ri span { color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.ck2 .ri .code { color: var(--text); }
.ck2 .hint { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); display: flex; gap: 14px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--pri); color: var(--pri-ink); padding: 11px 18px; border-radius: 11px; font-weight: 500; box-shadow: var(--shadow); max-width: min(560px, calc(100vw - 32px)); font-size: 13.5px; }
.pop { position: fixed; z-index: 90; width: 320px; }
.ddm { position: absolute; z-index: 60; top: calc(100% + 4px); right: 0; min-width: 220px; background: var(--raised); border: 1px solid var(--line2); border-radius: 11px; padding: 6px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ddm button, .ddm a { text-align: left; padding: 8px 10px; border-radius: 7px; border: 0; background: none; color: var(--text); text-decoration: none; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.ddm button:hover, .ddm a:hover { background: var(--surface); }
.ddm .on { font-weight: 650; }

/* sign-in screen picks up the new look */
#mxAuth { background: var(--bg) !important; background-image: none !important; color: var(--text) !important; font-family: var(--f) !important; }
#mxAuth .card { background: var(--surface) !important; border-color: var(--line2) !important; border-radius: 16px !important; }
#mxAuth .wm { font: 650 22px var(--f) !important; letter-spacing: -.01em !important; text-transform: none !important; }
#mxAuth .wm span { color: var(--s4) !important; }
#mxAuth .sub, #mxAuth label, #mxAuth .fine, #mxAuth .ln { color: var(--muted) !important; font-family: var(--f) !important; }
#mxAuth label { text-transform: none !important; letter-spacing: 0 !important; }
#mxAuth input { background: var(--bg) !important; border-color: var(--line2) !important; color: var(--text) !important; font-family: var(--f) !important; font-size: 15px !important; }
#mxAuth .go { background: var(--pri) !important; color: var(--pri-ink) !important; text-transform: none !important; letter-spacing: 0 !important; font: 650 15px var(--f) !important; }

/* ---------------- TV ---------------- */
body.tvp { overflow: hidden; background: var(--bg); }
.tvw { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.tvs { width: 1920px; height: 1080px; transform-origin: center center; display: flex; flex-direction: column; padding: 34px 44px; gap: 24px; background: var(--bg); flex-shrink: 0; }
.tvh { display: flex; align-items: center; gap: 22px; }
.tvh .logo { font-size: 24px; } .tvh .logo svg { width: 34px; height: 34px; }
.tvh h1 { margin: 0; font-size: 34px; font-weight: 650; letter-spacing: -.02em; }
.tvh .clk { margin-left: auto; display: flex; gap: 28px; align-items: center; font-size: 20px; color: var(--muted); }
.tvh .clk b { color: var(--text); font-weight: 650; font-size: 26px; font-variant-numeric: tabular-nums; }
.tv-eyes { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 46px; }
.tv-eyes > b { font-size: 22px; margin-right: 6px; }
.tv-eyes .eye { height: 40px; font-size: 18px; padding: 0 16px; }
.tv-st { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; flex: 1; min-height: 0; }
.tv-st .stg-col { border-radius: 20px; padding: 20px; gap: 14px; min-height: 0; overflow: hidden; }
.tv-st .stg-h .n { font-size: 30px; } .tv-st .stg-h h2 { font-size: 22px; } .tv-st .stg-h .c { font-size: 20px; }
.tv-st .stg-gate { font-size: 16px; }
.tv-st .jc { padding: 16px; gap: 16px; } .tv-st .jc .vis { width: 140px; } .tv-st .jc h3 { font-size: 21px; } .tv-st .jc .meta { font-size: 16px; } .tv-st .jc .code { font-size: 15px; }
.tv-st .pill { height: 30px; font-size: 15px; padding: 0 12px; } .tv-st .trc { height: 24px; font-size: 13px; } .tv-st .av { width: 32px; height: 32px; font-size: 12px; }
.tv-foot { display: flex; align-items: center; gap: 22px; font-size: 17px; color: var(--muted); }
.tv-foot .lg { margin-left: auto; display: flex; gap: 18px; }
.tv-foot .sw { width: 14px; height: 14px; }
.tv-dots { display: flex; gap: 8px; } .tv-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); } .tv-dots i.on { background: var(--text); }
.tvj { display: grid; grid-template-columns: 600px 1fr 560px; gap: 26px; flex: 1; min-height: 0; }
.tvj .card { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; border-radius: 20px; }
.tvj h2 { margin: 0; font-size: 22px; font-weight: 650; }
.tvj .bigst { display: flex; align-items: center; justify-content: center; flex: 1; }
.tvl { display: flex; flex-direction: column; gap: 10px; }
.tvl .r { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; font-size: 19px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tvl .r .d { font: 500 17px var(--fm); color: var(--muted); }
.tvl .r.late .d, .tvl .r.late b { color: var(--late); } .tvl .r.risk b { color: var(--risk); } .tvl .r.wait b { color: var(--wait); }
.tvj .strip { padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); } .tvj .sg b { font-size: 17px; } .tvj .sg .h2 { font-size: 15px; }
.tvk { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .tvk .kpi b { font-size: 40px; } .tvk .kpi small, .tvk .kpi span { font-size: 16px; }
.tvx { position: fixed; right: 8px; top: 6px; z-index: 5; opacity: .2; } .tvx:hover { opacity: 1; }

/* ---------------- responsive ---------------- */
@media (max-width: 1280px) {
  .srch { width: 44px; padding: 0; justify-content: center; } .srch .tx, .srch kbd { display: none; }
  .split { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1100px) {
  .tnav, .tdiv { display: none; }
  .tb-scroll { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }
  .tb-scroll::-webkit-scrollbar { display: none; }
  .tb-scroll a { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
  .tb-scroll a.on { color: var(--text); font-weight: 650; background: var(--raised); }
  .tb-in .upb { margin-left: auto; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.r340, .split.l260, .sd { grid-template-columns: minmax(0, 1fr); }
  .rec, .sl, .sd-nav { position: static; max-height: none; }
  .sl { flex-direction: row; flex-wrap: wrap; } .sl .g { flex-basis: 100%; padding-top: 6px; }
  .found { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .tb-in { padding: 0 12px; gap: 6px; height: 56px; }
  .tseg { display: none; }
  .tb-in .jt b { max-width: 150px; } .tb-in .jt span { max-width: 160px; }
  .upb { padding: 0 12px; } .upb .tx { display: none; }
  .homeb .tx { display: none; } .homeb { padding: 0 10px; }
  .logo .tx { display: none; }
  .pg { padding: 16px; }
  .ph h1 { font-size: 21px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px 0; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .eyes { padding: 10px 16px; }
  .bar2, .jbar, .mtabs { padding-left: 16px; padding-right: 16px; }
  .frow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .selp { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 16px 16px; }
  .selp .acts { justify-content: flex-start; }
  .qi { grid-template-columns: 30px minmax(0, 1fr); } .qi .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .file { grid-template-columns: 18px minmax(0, 1fr) 18px; } .file .sel, .file .bar { grid-column: 2; }
  .sysrow { grid-template-columns: 20px 60px minmax(0, 1fr); } .sysrow .sel { grid-column: 3; }
  .prow { grid-template-columns: minmax(0, 1fr); }
  .twocol, .fn-how { grid-template-columns: 1fr; }
  .ko-bar, .ko-blk { grid-template-columns: 1fr; }
  .sd-tb { grid-template-columns: 1fr 1fr; }
  .sd-gl { grid-template-columns: 1fr; }
  .dtrow { grid-template-columns: 1fr; }
  .tiles2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft { padding: 12px 16px; gap: 10px 14px; } .ft .lg { margin-left: 0; }
  .modal { padding: 16px; }
  .scrim { padding: 12px 10px; }
  :root { --tap: 44px; }
  .b, .btn { min-height: 40px; } .b.sm, .btn.small, .btn.sm { min-height: 36px; }
  /* the deliverables board becomes a list on a phone: each level, then only the steps that hold cards */
  .bdg { grid-template-columns: minmax(0, 1fr); min-width: 0; padding: 12px 16px 16px; gap: 8px; }
  .bdg > .bdh, .bdg > div:first-child:empty { display: none; }
  .bdg .fl-cell { min-height: 0; margin-top: 8px; }
  .bdg .cell { min-height: 0; } .bdg .cell:not(:has(.dc)) { display: none; }
  .bdg .cell::before { font: 600 11px var(--fm); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 2px 4px; }
  .bdg .cell[data-l]::before { content: attr(data-l); }
  .bdg .wide-note { grid-column: 1; }
  .tbl td.code { white-space: nowrap; }
}
@media (max-width: 420px) { .tiles2 { grid-template-columns: minmax(0, 1fr); } .zedit { grid-template-columns: 80px repeat(var(--cols), minmax(64px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.jc .bd { min-width: 0; } .jc .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; } .jc .pill > svg { flex: 0 0 auto; }
/* Project setup: the job's kickoff record as a working checklist */
.ko-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
.ko-h1 { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ko-h1 .h { margin: 0; }
.ko-meter { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--raised); }
.ko-meter i { display: block; height: 100%; } .ko-meter .k { background: var(--good); } .ko-meter .u { background: var(--wait); } .ko-meter .l { background: var(--line2); }
.ko-cnt { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .ko-cnt b { font-size: 15px; font-weight: 650; margin-right: 3px; }
.ko-cnt .ko-kn b { color: var(--good); } .ko-cnt .ko-un b { color: var(--wait); } .ko-cnt .ko-op b { color: var(--text); }
.ko-bar2 { margin-bottom: 10px; }
.ko-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 8px; }
.ko-card > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.ko-card > summary::-webkit-details-marker { display: none; }
.ko-card > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.ko-card[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.ko-card > summary .bub { width: 24px; height: 24px; border-radius: 50%; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; font: 600 11px var(--fm); flex: 0 0 auto; }
.ko-card > summary b { font-size: 14px; flex: 1; }
.ko-card > summary .c { font: 500 12.5px var(--fm); color: var(--muted); } .ko-card > summary .c.ok { color: var(--good); }
.ko-card .ko-qs { padding: 0 12px 12px; }
.ko-act { display: flex; justify-content: flex-end; padding-top: 2px; }
.unk2 { display: flex; flex-direction: column; } .unk2 > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.unk2 > div:last-child { border-bottom: 0; } .unk2 .w { font-size: 12px; color: var(--wait); } .unk2 .late .w { color: var(--late); font-weight: 600; }
.docs2 { display: flex; flex-direction: column; margin-top: 8px; } .docs2 .dr { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.docs2 .dr:last-child { border-bottom: 0; } .docs2 .ok { color: var(--good); display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; } .docs2 .no { color: var(--faint); font-size: 12.5px; text-decoration: none; }
/* Settings › Procore and job Settings › Procore: one row per job */
.pc-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1fr) minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pc-row:last-child { border-bottom: 0; }
.pc-row .pc-j { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pc-row .pc-j b { font-size: 13.5px; }
.pc-row .pc-j .tiny, .pc-row .pc-j .pc-link { font-size: 12px; }
.pc-row .sel, .pc-row input[type="url"] { width: 100%; }
.pc-row > .tiny { color: var(--muted); }
.pc-row .cx-sug { grid-column: 2; justify-self: start; }
@media (max-width: 820px) { .pc-row { grid-template-columns: minmax(0, 1fr); } .pc-row .cx-sug { grid-column: 1; } }
.fn-grid .fn-f > b { display: block; font-size: 13.5px; }
/* Project setup: kickoff header, section rail, the section, gate and open items */
.su-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.su-h1 { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; min-width: 0; } .su-h1 .h { margin: 0; }
.su-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; } .su-meta label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.su-meta .msel { min-width: 220px; }
.su { display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.su-rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; }
.su-rail a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 13.5px; border: 1px solid transparent; }
.su-rail a:hover { background: var(--raised); } .su-rail a.on { background: var(--surface); border-color: var(--line2); font-weight: 650; }
.su-rail .n { width: 24px; height: 24px; border-radius: 50%; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; font: 600 11px var(--fm); color: var(--muted); }
.su-rail a.done .n { background: var(--good-bg); color: var(--good); }
.su-rail .m { font: 600 11px var(--fm); color: var(--late); background: var(--late-bg); border-radius: 99px; padding: 2px 7px; }
.su-main { min-width: 0; } .su-mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; } .su-mh .h { margin: 0; font-size: 18px; }
.su-main .fsec:last-of-type { border-bottom: 0; }
.frow.miss .fl { color: var(--text); } .frow .req { color: var(--late); font-style: normal; font-size: 9px; vertical-align: 2px; }
.frow.fact .fc { font-size: 13.5px; } .frow.fact .fc a { color: var(--text); }
.su-next { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }
.su-fold { margin-top: 12px; } .su-need { margin: 8px 0; }
.su-sys + .su-sys { margin-top: 14px; }
.su-pc .card { border: 0; padding: 0; background: none; }
.su-ests { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.su-est { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--raised); }
.su-est.ok { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.su-open { display: flex; flex-direction: column; margin-bottom: 10px; }
.su-open > div { display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.su-open > div > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .su-open .w { font-size: 12px; color: var(--muted); }
.su-open .late .w { color: var(--late); font-weight: 600; } .su-open .done b { text-decoration: line-through; color: var(--faint); }
.su-open .ok { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line2); background: transparent; color: transparent; display: inline-flex; align-items: center; justify-content: center; }
.su-open .ok.on { background: var(--good-bg); color: var(--good); border-color: transparent; }
.su-add { display: flex; flex-direction: column; gap: 8px; } .su-add .row { gap: 8px; flex-wrap: nowrap; } .su-add .row > * { flex: 1; min-width: 0; } .su-add .b { align-self: flex-start; }
@media (max-width: 1280px) { .su { grid-template-columns: 210px minmax(0, 1fr); } .su > .stack2 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .su { grid-template-columns: minmax(0, 1fr); } .su-rail { position: static; flex-direction: row; overflow-x: auto; } .su-rail a { grid-template-columns: 22px auto auto; white-space: nowrap; } .su > .stack2 { grid-template-columns: 1fr; } }

/* ============================================================================
   Oct 20 update: Project Pipeline (BIM | VDC) + Coordination, the drill-down panel, the coordination pipeline,
   the shared schedule, Model Setup, gotcha lists per drawing type
   ============================================================================ */
/* job top bar: a Project Pipeline label over BIM | VDC, Coordination beside it */
.pnav { display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.pnav .pl { font: 600 9.5px var(--fm); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding-left: 4px; line-height: 1; }
.pnav-r { display: flex; gap: 8px; align-items: center; }
.pnav .tseg a { height: 30px; }
.tb-in .jt { min-width: 0; }

/* boards with four (VDC) or three (Coordination) steps */
.bdg.c4 { grid-template-columns: 280px repeat(4, minmax(170px, 1fr)); min-width: 980px; }
.bdg.c3 { grid-template-columns: 280px repeat(3, minmax(200px, 1fr)); min-width: 900px; }
.dc .bd .l1 .nm { font-weight: 600; font-size: 13px; line-height: 1.3; }
body.drag-na .cell[data-col="1"] { opacity: .35; border-style: dashed; }
.st.n3 { gap: 3px; } .st.n3 i { width: 35px; }
.fl-cell.jrow { color: var(--text); text-decoration: none; } .fl-cell.jrow:hover { border-color: var(--line2); }
.fl-cell .t span .trc { margin-right: 4px; }

/* the drill-down: one panel for a drawing, a zone, a layout task or a clash */
.dd { position: fixed; top: 61px; right: 0; bottom: 0; width: min(440px, 100%); z-index: 25; background: var(--surface); border-left: 1px solid var(--line2); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: ddin .16s ease-out; }
@keyframes ddin { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.dd-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.dd-h .kick { font: 500 11.5px var(--fm); color: var(--muted); letter-spacing: .02em; }
.dd-h h2 { margin: 3px 0 0; font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.dd-b { padding: 16px 18px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.dd-b .lbl { margin-bottom: 8px; }
body.ddopen .vw { padding-right: min(440px, 100%); }
.stp { display: flex; gap: 4px; flex-wrap: wrap; }
.stp button { flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-weight: 500; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.stp button:hover { color: var(--text); border-color: var(--text); }
.stp button.done { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.stp button.on { background: var(--raised); color: var(--text); font-weight: 650; border-color: var(--text); }
.stp button.on.late { border-color: var(--late); } .stp button.on.risk { border-color: var(--risk); } .stp button.on.wait { border-color: var(--wait); border-style: dashed; }
.flag { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--raised); }
.flag > span { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; } .flag > span b { font-size: 13.5px; } .flag > span span { font-size: 12.5px; color: var(--muted); }
.flag.need { border-color: color-mix(in srgb, var(--risk) 60%, transparent); background: var(--risk-bg); } .flag.need > .ic { color: var(--risk); }
.flag.ok > .ic { color: var(--good); }
.gbox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--risk) 55%, transparent); background: var(--risk-bg); }
.gbox > .row b { font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; color: var(--text); }
.gl3 { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; background: var(--surface); border-radius: 9px; border: 1px solid var(--line); }
.gi3 { display: flex; gap: 9px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.gi3:last-child { border-bottom: 0; } .gi3 > span { display: flex; flex-direction: column; } .gi3 > span span { color: var(--muted); font-size: 12px; }
.gi3 .ic { margin-top: 2px; color: var(--faint); } .gi3.on .ic { color: var(--good); }
.modal label.chk.gok { color: var(--text); font-weight: 600; }
.crow { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.crow > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .crow b { font-size: 13.5px; }
.crow.late b { color: var(--late); } .crow.res { opacity: .7; }
.crow .acts { display: flex; gap: 4px; flex-shrink: 0; }
.wd { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; }
.wd:hover span:first-child { text-decoration: underline; }
.zlink { background: none; border: 0; padding: 0; color: var(--text); text-align: left; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.zlink:hover { text-decoration-color: var(--text); }

/* coordination zone cards */
.zcd .chips .zd { font: 500 11px var(--fm); color: var(--muted); align-self: center; }
.zcd .chips .zd.late { color: var(--late); font-weight: 600; }
.zcd .l2.risk { color: var(--text); }

/* My Activities: an item opens its drill-down in place */
.qi.op { cursor: pointer; } .qi.op:hover { border-color: var(--line2); } .qi.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }

/* GC meeting days */
.mdays { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.mdays button { width: 44px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.mdays button.on { background: var(--pri); color: var(--pri-ink); border-color: var(--pri); }

.mrow { display: flex; flex-direction: column; gap: 6px; padding: 7px 0; min-width: 0; }
.mrow .sel, .mrow .date { max-width: 100%; }
.mrow.two { flex-direction: row; gap: 10px; padding: 0; } .mrow.two > .mrow { flex: 1; }
.mrow .trio { display: flex; gap: 6px; flex-wrap: wrap; }
.mnext > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mnext > div span:first-child { font: 500 12px var(--fm); color: var(--muted); }
.mnext > div:last-child { border-bottom: 0; }
/* the shared schedule */
.svbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.svp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.calg .mk, .lgi .mk { position: absolute; top: 9px; height: 20px; min-width: 20px; padding: 0 5px; border-radius: 6px; background: var(--wait); color: #0B1526; font: 600 10.5px var(--fm); display: inline-flex; align-items: center; justify-content: center; z-index: 1; white-space: nowrap; cursor: default; }
.lgi .mk { position: static; height: 16px; }
.calg .mk.ok { background: var(--good); color: #0D1A15; } .calg .mk.ok .ic { width: 12px; height: 12px; }
.calg .mk.us { background: var(--risk); color: #1C1405; } .calg .mk.late { background: var(--late); color: #1A0B06; } .calg .mk.wt { background: transparent; border: 1.5px dashed var(--wait); color: var(--wait); }
.calg .mk[data-act] { cursor: pointer; }
:root[data-theme="light"] .calg .mk { color: #fff; } :root[data-theme="light"] .calg .mk.wt { color: var(--wait); }

/* Model Setup: materials, exceptions, browser help */
.jbar .seg2 a .cnt, .chip .cnt { font: 500 10.5px var(--fm); font-style: normal; color: var(--faint); margin-left: 4px; }
.tbl.mat td { vertical-align: middle; } .tbl.mat .sel { max-width: 220px; }
.exl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.exn { display: flex; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--raised); }
.exn > div { display: flex; flex-direction: column; gap: 2px; } .exn p { margin: 4px 0 0; font-size: 13.5px; }
.exf { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.exf label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.exf .txt { width: 100%; }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.howto li b { display: block; font-size: 13.5px; } .howto li span { font-size: 13px; color: var(--muted); }
.nmgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; width: 100%; }

/* Standards › Gotcha lists editor */
.gsel { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.gselg { display: flex; flex-direction: column; gap: 6px; }
.gl-ed { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.gedit { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2.4fr) 28px; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: center; }
.gedit.ro { grid-template-columns: minmax(140px, 1fr) minmax(0, 2.4fr); font-size: 13.5px; } .gedit.ro span { color: var(--muted); }
.gedit .txt { width: 100%; }

@media (max-width: 1100px) {
  .pnav { display: none; }
  body.ddopen .vw { padding-right: 0; }
}
@media (max-width: 820px) {
  .dd { top: 56px; width: 100%; }
  .bdg.c4, .bdg.c3 { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .bdg .cell[data-l]::before { content: attr(data-l); }
  .gedit { grid-template-columns: minmax(0, 1fr) 28px; } .gedit .txt:nth-child(2) { grid-column: 1; }
  .stp button { min-width: 0; flex-basis: 40%; }
  .tbl.mat .sel { max-width: 140px; }
}
/* with a drill-down open, My Activities drops the Live column so the queue keeps its width */
body.ddopen .act3 { grid-template-columns: 220px minmax(0, 1fr); }
body.ddopen .act3 > .card { display: none; }
@media (max-width: 1300px) { body.ddopen .act3 { grid-template-columns: minmax(0, 1fr); } body.ddopen .act3 .who2 { display: none; } }
.cell.minis { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.zmini { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 4px; border-radius: 9px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-size: 12.5px; font-weight: 500; cursor: grab; max-width: 100%; }
.zmini > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zmini .zc { min-width: 22px; height: 22px; }
.zmini.late { border-color: var(--late); } .zmini.risk { border-color: var(--risk); } .zmini.wait { border-color: var(--wait); border-style: dashed; }
.zmini.dragging { opacity: .5; }
@media (max-width: 1100px) { .dd { top: 0; z-index: 40; } }
a.fchip { text-decoration: none; }

/* ============================================================================
   Oct 20, second pass: top bar groups, the Gantt schedule, zone dates, editable history dates
   ============================================================================ */
.tb-in .tseg.jg a { padding: 0 11px; }
.tb-in .jt { max-width: 240px; }
.tb-in .jt b, .tb-in .jt span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1440px) { .upb .tx { display: none; } .upb { padding: 0 11px; } .tb-in .jt { max-width: 190px; } .tb-in .tseg.jg a { padding: 0 9px; } }
@media (max-width: 1280px) { .tb-in .jt { max-width: 150px; } .homeb .tx { display: none; } .homeb { padding: 0 10px; } }
@media (max-width: 1100px) { .tb-in .tseg.jg { display: none; } }

/* the Gantt */
.svr { gap: 6px; } .svr .date { width: 150px; }
.glg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.glg .lgi { display: inline-flex; align-items: center; gap: 6px; }
.gantt { position: relative; overflow: auto; max-height: calc(100vh - 250px); min-height: 280px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.gin { position: relative; }
.gbody { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to right, var(--line2) 1px, transparent 1px); background-repeat: repeat-x, repeat-x; background-origin: content-box; padding-left: var(--lw); background-clip: content-box; }
.gr { display: flex; min-height: 40px; border-bottom: 1px solid var(--line); }
.gbody .gr { margin-left: calc(-1 * var(--lw)); }
.gl { position: sticky; left: 0; z-index: 2; flex: 0 0 var(--lw); width: var(--lw); background: var(--surface); border-right: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; min-width: 0; }
.gt { position: relative; flex: 0 0 auto; }
.gn { background: none; border: 0; padding: 0; color: var(--text); font-size: 13px; text-align: left; display: inline-flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.gn { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } button.gn:hover { text-decoration: underline; text-underline-offset: 3px; }
.gn small { color: var(--faint); font-size: 11.5px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.gr.zr .gn { font-weight: 600; }
.gr.dv .gl, .gr.lt .gl { padding-left: 26px; } .gr.dv .gn, .gr.lt .gn { color: var(--muted); } .gr.dv .gn:hover, .gr.lt .gn:hover { color: var(--text); }
.gr.fh { min-height: 32px; background: color-mix(in srgb, var(--raised) 70%, transparent); } .gr.fh .gl { background: var(--raised); }
.gfold { background: none; border: 0; padding: 0; color: var(--text); font: 650 12.5px var(--f); display: inline-flex; align-items: center; gap: 6px; }
.gr.jh { min-height: 34px; background: var(--raised); } .gr.jh .gl { background: var(--raised); font-weight: 650; } .gr.jh .gl a { color: var(--text); text-decoration: none; }
.gr.th { min-height: 28px; } .gr.mt .gl { background: var(--surface); }
.gh { position: sticky; top: 0; z-index: 4; background: var(--surface); min-height: 46px; }
.gh .gl { z-index: 5; }
.gm1, .gm2 { position: relative; height: 22px; } .gm1 { border-bottom: 1px solid var(--line); }
.gm1 span, .gm2 span { position: absolute; top: 0; height: 22px; display: flex; align-items: center; padding: 0 6px; font: 500 11px var(--fm); color: var(--muted); white-space: nowrap; overflow: hidden; box-sizing: border-box; }
.gm1 span { border-left: 1px solid var(--line2); color: var(--text); font-weight: 600; }
.gm2 span.wk { border-left: 1px solid var(--line2); } .gm2 span.tdy { color: var(--text); font-weight: 700; }
.gnow { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); opacity: .8; z-index: 1; pointer-events: none; }
.lane { position: absolute; left: 0; right: 0; }
.lane.p { top: 4px; height: 9px; } .lane.a { top: 16px; height: 18px; }
.gr.mt .lane.a, .gr.fh .lane.a, .gr.pp .lane.a { top: 8px; }
.gb { position: absolute; top: 0; height: 100%; border-radius: 5px; display: flex; align-items: center; overflow: hidden; cursor: pointer; box-sizing: border-box; }
.gb i { font: 600 11px var(--f); font-style: normal; color: var(--text); padding: 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane.p .gb { border-radius: 3px; cursor: default; }
/* step colors: one ramp, the same as the pipelines */
.s-m { background: var(--s1); } .s-cz { background: var(--s2); } .s-so { background: var(--s4); }
.s-c { background: var(--s1); } .s-s { background: var(--s2); } .s-i { background: var(--s3); } .s-x { background: var(--s4); } .s-f { background: color-mix(in srgb, var(--s4) 70%, var(--s3)); }
.s-lp { background: var(--s1); } .s-ls { background: var(--s2); } .s-lf { background: var(--s3); } .s-lc { background: var(--s4); }
.s-i i, .s-x i, .s-f i, .s-so i, .s-lf i, .s-lc i { color: #0D1A15; }
:root[data-theme="light"] .s-c i, :root[data-theme="light"] .s-s i, :root[data-theme="light"] .s-m i, :root[data-theme="light"] .s-cz i, :root[data-theme="light"] .s-ls i, :root[data-theme="light"] .s-lp i { color: #17323A; }
:root[data-theme="light"] .s-i i, :root[data-theme="light"] .s-x i, :root[data-theme="light"] .s-f i, :root[data-theme="light"] .s-so i, :root[data-theme="light"] .s-lf i, :root[data-theme="light"] .s-lc i { color: #fff; }
.gb.pl { opacity: .5; background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(0, 0, 0, .28) 4px 7px); }
.gb.pl.s-c, .gb.pl.s-m, .gb.pl.s-lp { background-color: color-mix(in srgb, var(--s1) 70%, var(--text)); }
.lane.p .gb.pl.s-cz { height: 8px; }
.gb.rr { box-shadow: inset 0 0 0 1.5px var(--late); }
/* the current step carries the status, like everywhere else */
.gb.cur.late { background: var(--late); } .gb.cur.late i { color: #1A0B06; }
.gb.cur.risk { box-shadow: inset 0 0 0 2px var(--risk); }
.gb.cur.wait { box-shadow: none; outline: 2px dashed var(--wait); outline-offset: -2px; }
.gd { position: absolute; top: 2px; width: 13px; height: 13px; transform: rotate(45deg); background: var(--text); border-radius: 2px; z-index: 1; cursor: pointer; }
.gm { position: absolute; top: 1px; width: 14px; height: 16px; border-radius: 4px; background: var(--wait); }
.gck { position: absolute; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--wait); cursor: pointer; }
.gck.us { background: var(--risk); } .gck.late { background: var(--late); } .gck.wt { background: transparent; border: 1.5px dashed var(--wait); }
.gsw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.gsw.pl { background: var(--s2); opacity: .5; background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(0, 0, 0, .3) 3px 5px); } .gsw.late { background: var(--late); } .gsw.risk { box-shadow: inset 0 0 0 2px var(--risk); } .gsw.wait { outline: 2px dashed var(--wait); outline-offset: -2px; }
.gd0 { display: inline-block; width: 10px; height: 10px; transform: rotate(45deg); background: var(--text); border-radius: 2px; } .gm0 { display: inline-block; width: 11px; height: 12px; border-radius: 3px; background: var(--wait); }

/* zone dates in the drill-down, and dates on the record you can set */
.zdates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.zdt { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.zdt b { color: var(--text); font-size: 14px; padding-top: 6px; }
.date.hd { height: 26px; padding: 0 6px; font-size: 12px; width: 138px; margin-left: 6px; border-radius: 6px; vertical-align: 1px; background: transparent; border: 1px solid var(--line); color: var(--muted); }
.date.hd:hover, .date.hd:focus { border-color: var(--line2); color: var(--text); }
body.drag-nf .cell[data-col="5"] { opacity: .35; border-style: dashed; }
@media (max-width: 820px) { .gantt { max-height: none; } .gantt { --lw: 170px !important; } .svr .date { width: 128px; } }
.lane.p .gb i { display: none; }
.gm1 span b { position: sticky; left: calc(var(--lw) + 6px); font-weight: 600; }
.gm1 span { overflow: clip; }
@media (max-width: 820px) { .mtx { display: none; } }

/* Levels & areas: typed buildings, levels and areas, each a code and a name */
.zlist { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.zrow { display: grid; gap: 8px; align-items: center; }
.zrow.blr { grid-template-columns: 76px minmax(0, 1fr) 34px; }
.zrow.lvr { grid-template-columns: 64px 76px minmax(0, 1fr) 34px; }
.zrow.arr { grid-template-columns: 76px minmax(0, 1fr) 170px 34px; }
.zrow.zhead { font: 600 10.5px var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 2px 2px 0; }
.zrow .txt { width: 100%; min-width: 0; }
.zrow .zcode { font-family: var(--fm); text-transform: uppercase; text-align: center; padding-left: 6px; padding-right: 6px; }
.zrow .sel { width: 100%; }
.zrow > .x { width: 34px; height: 34px; justify-self: end; }
.zrow > .x.confirm { width: auto; padding: 0 10px; white-space: nowrap; color: var(--late); border-color: var(--late); }
.zmv { display: inline-flex; gap: 2px; }
.zmv .b { min-width: 30px; padding: 0; justify-content: center; }
.zmv .b:disabled { opacity: .3; }
.zadd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 720px; margin-top: 4px; }
.zadd .txt { width: 100%; }
@media (max-width: 820px) {
  .zrow.lvr { grid-template-columns: 58px 58px minmax(0, 1fr) 34px; }
  .zrow.blr { grid-template-columns: 58px minmax(0, 1fr) 34px; }
  .zrow.arr { grid-template-columns: 58px minmax(0, 1fr) 34px; }
  .zrow.arr .sel { grid-column: 2; grid-row: 2; }
  .zrow.arr.zhead span:nth-child(3) { display: none; }
}
