/* ============================================================================
   CSMS BIM Matrix 2.0 — the shell and screens from the "BIM Matrix 2.0" design canvas.
   Light pages under one dark, rounded header band with a faint drafting grid. Geist / Geist Mono.
   Ink #0D1117, canvas #E9ECF0, lime #D4F84A for "now", red late on us, amber at risk, blue waiting on others,
   AP's trade pink (HVAC) and green (plumbing). Status is always a word, never color alone.
   Part 1 re-tokens the screens kept from the live app so they sit in the same look; part 2 is the 2.0 pieces (x-*).
   ============================================================================ */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --x-bg: #E9ECF0; --x-card: #FFFFFF; --x-ink: #0D1117; --x-ink2: #161C24; --x-tx2: #566070; --x-tx3: #69727F;
  --x-line: #E1E4E9; --x-line2: #EEF0F3; --x-lime: #D4F84A;
  --x-redT: #B4232A; --x-redS: #FDE9E9; --x-red: #D93036;
  --x-ambT: #8F5200; --x-ambS: #FDF1D8; --x-amb: #E89A12;
  --x-bluT: #2352BD; --x-bluS: #E7EEFD; --x-blu: #2F6BEA;
  --x-grnT: #156E3F; --x-grnS: #E3F5EA; --x-grn: #23955A;
  --x-hvac: #F9C6D8; --x-plbg: #B9F0C2; --x-hvacD: #E58BAD; --x-plbgD: #4FC66A;
  --x-sh: 0 1px 2px rgba(13,17,23,.04), 0 6px 20px rgba(13,17,23,.05);
  --x-shH: 0 2px 4px rgba(13,17,23,.06), 0 16px 36px rgba(13,17,23,.12);
  --x-pop: 0 2px 6px rgba(13,17,23,.1), 0 24px 60px rgba(13,17,23,.3);

  /* the kept screens, re-tokened */
  --bg: #E9ECF0; --surface: #FFFFFF; --raised: #F4F5F7; --line: #E1E4E9; --line2: #D3D8DE;
  --text: #0D1117; --muted: #566070; --faint: #69727F;
  --s0: #E6E9ED; --s1: #CBD1D8; --s2: #9AA3AE; --s3: #4A5361; --s4: #161C24;
  --late: #C42B31; --risk: #8F5200; --wait: #2352BD; --good: #156E3F;
  --plbg: #23803C; --hvac: #B8336F;
  --late-bg: #FDE9E9; --risk-bg: #FDF1D8; --wait-bg: #E7EEFD; --good-bg: #E3F5EA;
  --plbg-bg: #DDF7E2; --hvac-bg: #FCE3EC;
  --pri: #0D1117; --pri-ink: #FFFFFF; --scrim: rgba(13,17,23,.28); --shadow: 0 30px 80px rgba(13,17,23,.25);
  --plate-side: #C9CED5; --plate-side2: #B8BEC6; --plate-edge: #FFFFFF;
  --f: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fm: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 22px; --rc: 12px; --tap: 38px;
  color-scheme: light;
}
body { background: var(--x-bg); color: var(--x-ink); }
a { color: var(--x-bluT); }
:focus-visible { outline: 2px solid var(--x-ink); outline-offset: 2px; }

/* ---------------- the band: header, hero, tabs ---------------- */
.tb { position: relative; top: auto; z-index: 30; background: transparent; border: 0; }
.x-shell { position: relative; margin: 12px 12px 0; border-radius: 26px; background: var(--x-ink); color: #fff; }
.x-shell::before { content: ""; position: absolute; inset: 0; border-radius: 26px; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.25) 52%, transparent 78%); mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.25) 52%, transparent 78%); pointer-events: none; }
.x-shell a { text-decoration: none; }
.x-top { position: relative; display: flex; align-items: center; gap: 18px; min-height: 66px; padding: 0 18px 0 20px; flex-wrap: wrap; }
.x-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; }
.x-shell a.x-brand { color: #fff; }
.x-brand svg { width: 30px; height: 30px; flex: none; }
.x-nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); position: relative; }
.x-shell .x-nav a, .x-nav button { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 15px; border-radius: 999px; color: rgba(255,255,255,.72); font-weight: 500; font-size: 13.5px; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.x-shell .x-nav a:hover, .x-nav button:hover { color: #fff; }
.x-shell .x-nav a.on, .x-nav button.on { background: #fff; color: var(--x-ink); }
.x-grow { flex: 1; }
.x-srch { display: flex; align-items: center; gap: 10px; height: 38px; width: 300px; max-width: 100%; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7); cursor: pointer; font: inherit; }
.x-srch:hover { background: rgba(255,255,255,.1); }
.x-srch .x-st3 { flex: 1; text-align: left; font-size: 13.5px; }
.x-srch kbd { font: 500 11px/1 var(--fm); padding: 6px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border: 0; margin: 0; }
.x-ib { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.x-ib:hover { background: rgba(255,255,255,.12); }
.x-sync { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.72); font-weight: 500; white-space: nowrap; }
.x-sync i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); }
.x-sync.off i { background: #FFC861; box-shadow: 0 0 0 3px rgba(255,200,97,.2); }
.x-sync.bad i { background: #FF7A7A; box-shadow: 0 0 0 3px rgba(255,122,122,.2); }
.x-me { width: 36px; height: 36px; border-radius: 50%; background: var(--x-lime); color: var(--x-ink); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; border: 0; cursor: pointer; font-family: var(--f); }
.x-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.x-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; color: var(--x-ink); border-radius: 18px; padding: 8px; box-shadow: var(--x-pop); z-index: 60; }
.x-menu.r { left: auto; right: 0; }
.x-mh { font-size: 11.5px; font-weight: 600; color: var(--x-tx3); padding: 8px 10px 6px; letter-spacing: .02em; }
.x-shell .x-menu a, .x-menu a, .x-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; color: var(--x-ink); font-weight: 500; font-size: 13.5px; border: 0; background: transparent; text-align: left; cursor: pointer; height: auto; }
.x-shell .x-menu a:hover, .x-menu a:hover, .x-menu button:hover { background: var(--x-line2); color: var(--x-ink); }
.x-menu .on { font-weight: 600; }
.x-menu hr { border: 0; border-top: 1px solid var(--x-line2); margin: 6px 4px; }

.x-hero { position: relative; display: flex; align-items: flex-end; gap: 24px; padding: 22px 24px 22px 26px; flex-wrap: wrap; }
.x-hero.slim { padding-top: 10px; padding-bottom: 18px; }
.x-day { font-size: 13px; color: rgba(255,255,255,.66); font-weight: 500; }
.x-hero h1 { margin: 8px 0 0; font-size: 46px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.x-hsub { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.72); flex-wrap: wrap; }
.x-ctrls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.x-dseg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.x-dseg button, .x-shell .x-dseg a { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.72); font-weight: 500; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.x-dseg button:hover, .x-shell .x-dseg a:hover { color: #fff; }
.x-dseg button.on, .x-shell .x-dseg a.on { background: #fff; color: var(--x-ink); }
.x-dseg .ct { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11.5px; display: grid; place-items: center; }
.x-dseg .on .ct { background: var(--x-ink); color: #fff; }
.x-dbtn { height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font-weight: 500; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--f); }
.x-shell a.x-dbtn { color: #fff; }
.x-dbtn:hover { background: rgba(255,255,255,.1); }
.x-dbtn.on { background: #fff; color: var(--x-ink); }
.x-dbtn.sq { width: 42px; padding: 0; justify-content: center; }
.x-dbtn.lime { background: var(--x-lime); border-color: var(--x-lime); color: var(--x-ink); font-weight: 600; }
.x-shell a.x-dbtn.lime { color: var(--x-ink); }

/* job hero */
.x-pid { flex: 1 1 420px; min-width: 0; }
.x-crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.6); font-weight: 500; flex-wrap: wrap; }
.x-shell .x-crumb a { color: rgba(255,255,255,.78); }
.x-shell .x-crumb a:hover { color: #fff; }
.x-crumb .x-ic { width: 12px; height: 12px; }
.x-ttl { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.x-ttl h1 { margin: 0; font-size: 42px; line-height: 1.04; font-weight: 600; letter-spacing: -.04em; overflow-wrap: anywhere; }
.x-swb { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); display: grid; place-items: center; color: #fff; cursor: pointer; flex: none; padding: 0; }
.x-swb:hover { background: rgba(255,255,255,.14); }
.x-pmenu { position: absolute; left: 0; top: 52px; width: 340px; max-width: calc(100vw - 40px); max-height: 70vh; overflow: auto; background: #fff; color: var(--x-ink); border-radius: 18px; padding: 8px; box-shadow: var(--x-pop); z-index: 60; }
.x-shell .x-pmenu a { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; color: var(--x-ink); }
.x-shell .x-pmenu a:hover { background: var(--x-line2); }
.x-pmenu .mono { font-size: 12px; color: var(--x-tx2); }
.x-pmenu b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-pmenu .on b { font-weight: 600; }
.x-shell .x-pmenu a.all { display: flex; gap: 8px; margin-top: 4px; padding: 10px; border-top: 1px solid var(--x-line2); font-weight: 600; border-radius: 0 0 12px 12px; }
.x-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.x-jb { height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 12.5px; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; font-family: var(--fm); }
.x-avs { display: flex; padding-left: 8px; }
.x-av { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--x-ink); margin-left: -8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; background: #2B3440; color: #fff; }
.x-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; flex: 1 1 640px; max-width: 760px; }
.x-kpi { border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); padding: 13px 16px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.x-kpi .k { font-size: 12px; color: rgba(255,255,255,.62); font-weight: 500; }
.x-kpi .v { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-kpi .v.amb { color: #FFC861; }
.x-kpi .v.red { color: #FF8A8A; }
.x-kpi .v.grn { color: #7EE2A6; }
.x-kpi .s { font-size: 12px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-tabs { position: relative; display: flex; align-items: center; gap: 4px; padding: 0 16px 16px 20px; flex-wrap: wrap; }
.x-shell a.x-tab { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 17px; border-radius: 999px; color: rgba(255,255,255,.72); font-weight: 500; font-size: 14px; }
.x-shell a.x-tab:hover { color: #fff; background: rgba(255,255,255,.07); }
.x-shell a.x-tab.on { background: #fff; color: var(--x-ink); }
.x-shell a.x-setup, .x-tabs .x-more { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 500; background: transparent; font-size: 14px; cursor: pointer; font-family: var(--f); }
.x-shell a.x-setup:hover, .x-tabs .x-more:hover { background: rgba(255,255,255,.08); }
.x-shell a.x-setup.on, .x-tabs .x-more.on { background: #fff; color: var(--x-ink); }
.x-mw { position: relative; }

/* ---------------- page pieces ---------------- */
.x-page { padding: 20px 24px 40px; }
.x-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.x-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.x-side { flex: 1 1 340px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.x-card { position: relative; background: var(--x-card); border-radius: 24px; box-shadow: var(--x-sh); }
.x-card.pad { padding: 18px 20px; }
.x-ch { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.x-ch h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.x-ch h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.x-ch .cnt, .x-cnt { font-size: 13px; color: var(--x-tx2); white-space: nowrap; font-weight: 500; }
.x-tb { display: flex; align-items: center; gap: 12px; padding: 18px 20px 10px; flex-wrap: wrap; }
.x-tb h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.x-mono, .x-page .mono { font-family: var(--fm); }
.x-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--x-line2); gap: 2px; flex-wrap: wrap; flex: none; }
.x-seg button, .x-seg a { height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; font-weight: 500; font-size: 13px; color: var(--x-tx2); cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; font-family: var(--f); }
.x-seg .on { background: #fff; color: var(--x-ink); box-shadow: 0 1px 3px rgba(13,17,23,.14); }
.x-seg i.hvac, .x-dot.hvac { width: 7px; height: 7px; border-radius: 50%; background: var(--x-hvacD); display: inline-block; }
.x-seg i.plbg, .x-dot.plbg { width: 7px; height: 7px; border-radius: 50%; background: var(--x-plbgD); display: inline-block; }
.x-seg .ct { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(13,17,23,.07); font-size: 11px; display: grid; place-items: center; }
.x-btn { height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--x-line); background: #fff; color: var(--x-ink); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; font-family: var(--f); }
.x-btn:hover { border-color: #C5CBD3; }
.x-btn.pri { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.x-btn.pri:hover { background: #000; }
.x-btn.on { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.x-btn.go { background: var(--x-lime); border-color: var(--x-lime); color: var(--x-ink); font-weight: 600; }
.x-btn.off, .x-btn:disabled { background: var(--x-line2); border-color: var(--x-line2); color: var(--x-tx3); cursor: not-allowed; }
.x-btn .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--x-red); color: #fff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.x-btn.on .n { background: #fff; color: var(--x-ink); }
.x-mini { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--x-line); background: #fff; color: var(--x-ink); font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--f); }
.x-mini:hover { border-color: #C5CBD3; }
.x-mini.pri { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.x-mini.go { background: var(--x-lime); border-color: var(--x-lime); color: var(--x-ink); font-weight: 600; }
.x-lnk { height: 30px; padding: 0 10px; border: 0; background: transparent; font-size: 12.5px; font-weight: 500; color: var(--x-tx2); cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--f); }
.x-lnk:hover { background: var(--x-line2); color: var(--x-ink); }
.x-chip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--x-line); background: #fff; color: var(--x-ink); font-weight: 500; font-size: 12.5px; cursor: pointer; white-space: nowrap; font-family: var(--f); display: inline-flex; align-items: center; gap: 6px; }
.x-chip:hover { border-color: #C5CBD3; }
.x-chip.on { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.x-chip.hvac.on { background: var(--x-hvac); border-color: var(--x-hvac); color: var(--x-ink); }
.x-chip.plbg.on { background: var(--x-plbg); border-color: var(--x-plbg); color: var(--x-ink); }
.x-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.x-inp { height: 38px; border: 1px solid var(--x-line); border-radius: 12px; padding: 0 12px; font-size: 13.5px; background: #fff; width: 100%; color: var(--x-ink); font-family: var(--f); min-width: 0; }
.x-inp:focus { outline: 2px solid var(--x-ink); outline-offset: -1px; }
.x-inp.sm { height: 34px; font-size: 13px; }
textarea.x-inp { height: auto; min-height: 80px; padding: 10px 12px; line-height: 1.4; resize: vertical; }
.x-none { font-size: 13px; color: var(--x-tx2); }
.x-empty { background: var(--x-card); border-radius: 22px; padding: 40px; text-align: center; color: var(--x-tx2); font-weight: 500; box-shadow: var(--x-sh); }
.x-empty b { display: block; color: var(--x-ink); font-size: 16px; margin-bottom: 6px; }
.x-empty .x-btn { margin-top: 14px; }

/* trade pills, tags, badges */
.x-tp { height: 24px; padding: 0 10px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--x-ink); white-space: nowrap; background: var(--x-line2); justify-self: start; flex: none; }
.x-tp i { width: 6px; height: 6px; border-radius: 50%; background: var(--x-ink); opacity: .5; }
.x-tp.hvac, .x-tp.h { background: var(--x-hvac); }
.x-tp.plbg, .x-tp.p { background: var(--x-plbg); }
.x-tp.sm { height: 20px; font-size: 11px; padding: 0 8px 0 7px; }
.x-tag { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: var(--x-line2); color: var(--x-tx2); }
.x-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.x-tag.ok { background: var(--x-grnS); color: var(--x-grnT); }
.x-tag.risk { background: var(--x-ambS); color: var(--x-ambT); }
.x-tag.late { background: var(--x-redS); color: var(--x-redT); }
.x-tag.wait { background: var(--x-bluS); color: var(--x-bluT); }
.x-tag.done { background: var(--x-line2); color: var(--x-ink); }
.x-tag.done i { background: var(--x-ink); }
.x-tag.kick { background: var(--x-ink); color: #fff; }
.x-tag.kick i { background: var(--x-lime); }
.x-who { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; color: var(--x-bluT); background: var(--x-bluS); white-space: nowrap; }
.x-who.us { background: var(--x-red); color: #fff; }
.x-who.fld { background: var(--x-ink); color: #fff; }
.x-hb { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--x-bluS); color: var(--x-bluT); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.x-hb.us { background: var(--x-red); color: #fff; }
.x-rv { height: 22px; padding: 0 6px; border-radius: 6px; background: var(--x-lime); color: var(--x-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }
.x-zb { min-width: 50px; height: 38px; padding: 0 9px; border-radius: 11px; background: var(--x-ink); color: #fff; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; letter-spacing: -.01em; flex: none; }
.x-zb.sm { min-width: 40px; height: 24px; border-radius: 8px; font-size: 12px; padding: 0 8px; }
.x-zb.x-lt { background: var(--x-line2); color: var(--x-ink); }
.x-pips { display: flex; gap: 3px; max-width: 180px; }
.x-pips i { flex: 1; height: 5px; border-radius: 3px; background: #E1E4E9; }
.x-pips i.d { background: var(--x-ink); }
.x-pips i.n { background: var(--x-lime); box-shadow: inset 0 0 0 1px rgba(13,17,23,.4); }
.x-pips i.n.late { background: var(--x-red); box-shadow: none; }
.x-pips i.n.risk { background: var(--x-amb); box-shadow: none; }
.x-pips i.n.ext { background: var(--x-blu); box-shadow: none; }
.x-bar { height: 6px; border-radius: 3px; background: var(--x-line2); overflow: hidden; }
.x-bar i { display: block; height: 100%; border-radius: 3px; background: var(--x-ink); }
.x-fig { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.x-fig > span { font-size: 11.5px; color: var(--x-tx3); font-weight: 500; }
.x-fig b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.amb { color: var(--x-ambT); } .red { color: var(--x-redT); } .grn { color: var(--x-grnT); }

/* ---------------- Home ---------------- */
.x-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 16px; }
a.x-pc { display: flex; flex-direction: column; gap: 14px; background: var(--x-card); border-radius: 22px; padding: 18px 20px; box-shadow: var(--x-sh); transition: box-shadow .2s, transform .2s; color: var(--x-ink); text-decoration: none; }
a.x-pc:hover { box-shadow: var(--x-shH); transform: translateY(-2px); color: var(--x-ink); }
.x-pc-top { display: flex; align-items: center; gap: 10px; }
.x-jno { height: 24px; padding: 0 9px; border-radius: 8px; background: var(--x-line2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; color: var(--x-tx2); font-family: var(--fm); }
.x-go { width: 34px; height: 34px; border-radius: 50%; background: var(--x-line2); display: grid; place-items: center; transition: background .2s, color .2s; }
a.x-pc:hover .x-go { background: var(--x-ink); color: #fff; }
.x-pc h3 { margin: -4px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.x-tr { display: flex; flex-direction: column; border-top: 1px solid var(--x-line2); }
.x-trow { display: grid; grid-template-columns: 96px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--x-line2); }
.x-nf { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.x-nf .k { font-size: 11.5px; color: var(--x-tx3); font-weight: 500; }
.x-nf b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-nd { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.x-trow .x-tag { justify-self: end; }
.x-ft { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 22px; align-items: end; }
.x-cmp-t { display: flex; justify-content: space-between; font-size: 12px; color: var(--x-tx2); font-weight: 500; margin-bottom: 7px; }
.x-cmp-t b { color: var(--x-ink); font-weight: 600; }
.x-wkh { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--x-tx2); margin: 14px 0 4px; }
.x-wkh::after { content: ""; flex: 1; height: 1px; background: var(--x-line2); }
a.x-fdr { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 14px; color: var(--x-ink); text-decoration: none; }
a.x-fdr:hover { background: var(--x-line2); color: var(--x-ink); }
.x-dt { width: 44px; height: 48px; border-radius: 12px; border: 1px solid var(--x-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.x-dt > span { font-size: 10.5px; font-weight: 600; color: var(--x-tx3); letter-spacing: .04em; }
.x-dt b { font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.x-fdt { min-width: 0; }
.x-fdt b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-fdt .s { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--x-tx2); white-space: nowrap; }
.x-flag { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--x-ink); }
.x-flag .x-ic { width: 12px; height: 12px; }

/* ---------------- Gantt (job and department schedules) ---------------- */
.x-gc { padding: 0 20px 18px; }
.x-gh { display: flex; height: 62px; border-bottom: 1px solid var(--x-line); }
.x-lc { width: 250px; flex: none; min-width: 0; }
.x-gh .x-lc { display: flex; align-items: flex-end; padding-bottom: 10px; font-size: 12.5px; color: var(--x-tx2); font-weight: 500; }
.x-tk { position: relative; flex: 1; min-width: 0; }
.x-mon { position: absolute; top: 10px; font-size: 13px; font-weight: 600; padding-left: 8px; white-space: nowrap; }
.x-wkl { position: absolute; bottom: 9px; font-size: 12px; color: var(--x-tx2); font-weight: 500; padding-left: 8px; white-space: nowrap; }
.x-tpill { position: absolute; bottom: 5px; transform: translateX(-50%); height: 24px; padding: 0 10px; border-radius: 999px; background: var(--x-ink); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; z-index: 4; }
.x-tpill i { width: 6px; height: 6px; border-radius: 50%; background: var(--x-lime); }
.x-rows { position: relative; }
.x-ovl { position: absolute; left: 250px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.x-wl { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--x-line2); }
.x-wband { position: absolute; top: 0; bottom: 0; background: rgba(13,17,23,.018); }
.x-tline { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--x-ink); z-index: 3; }
.x-lvh { display: flex; align-items: center; height: 34px; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--x-tx2); position: relative; z-index: 1; border-top: 1px solid var(--x-line); text-transform: uppercase; }
.x-lvh:first-child { border-top: 0; }
.x-lvh span { background: #fff; padding-right: 10px; }
.x-zr { display: flex; height: 80px; position: relative; z-index: 1; border-top: 1px solid var(--x-line2); }
.x-zr.sel { background: #F6F8E9; }
.x-zbtn { width: 100%; height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 6px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 14px; font-family: var(--f); color: var(--x-ink); }
.x-zbtn:hover { background: var(--x-line2); }
.x-zt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.x-zt > b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-zt > small { font-size: 12px; color: var(--x-tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-zt > small.late { color: var(--x-redT); font-weight: 500; }
.x-b { position: absolute; height: 30px; border-radius: 9px; display: flex; align-items: center; padding: 0 8px 4px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; border: 0; text-align: left; cursor: pointer; transition: opacity .25s, box-shadow .15s; font-family: var(--f); color: var(--x-ink); }
.x-b.la { top: 9px; } .x-b.lb { top: 43px; }
.x-b.hh { padding-right: 28px; }
.x-b:hover { box-shadow: 0 0 0 2px rgba(13,17,23,.18); }
.x-b .bl { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; }
.x-b.d { background: var(--x-ink2); color: #fff; }
.x-b.a { background: #fff; box-shadow: inset 0 0 0 1.5px var(--x-ink); }
.x-b.a:hover { box-shadow: inset 0 0 0 1.5px var(--x-ink), 0 0 0 3px rgba(13,17,23,.12); }
.x-b.w { background: transparent; box-shadow: inset 0 0 0 1.5px #C7CDD5; color: var(--x-tx3); font-weight: 500; background-image: repeating-linear-gradient(135deg, rgba(13,17,23,.035) 0 2px, transparent 2px 7px); }
.x-b.risk { box-shadow: inset 0 0 0 1.5px var(--x-amb); color: var(--x-ambT); background: #FFFBF2; }
.x-b.late { box-shadow: inset 0 0 0 1.5px var(--x-red); color: var(--x-redT); background: #FFF7F7; }
.x-b.ext { box-shadow: inset 0 0 0 1.5px var(--x-blu); color: var(--x-bluT); background: #F7F9FF; }
.x-b.spill { overflow: visible; }
.x-b.spill .bl { position: absolute; left: 100%; margin-left: 8px; overflow: visible; color: var(--x-ink); font-weight: 600; }
.x-b.sel { box-shadow: 0 0 0 3px var(--x-lime), 0 0 0 4.5px var(--x-ink); }
.x-b.gone { display: none; }
.x-holdmode .x-b.dim { opacity: .18; }
.x-holdmode .x-zf.dim { opacity: .25; }
.x-b .pips { position: absolute; left: 6px; right: 6px; bottom: 3px; display: flex; gap: 2px; }
.x-b .pips i { flex: 1; height: 2px; border-radius: 2px; background: rgba(13,17,23,.12); }
.x-b .pips i.d { background: currentColor; }
.x-b.d .pips { display: none; }
.x-b .bp { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(13,17,23,.07); }
.x-b.d .bp, .x-b.w .bp { display: none; }
.x-b.risk .bp { background: rgba(232,154,18,.16); } .x-b.late .bp { background: rgba(217,48,54,.12); } .x-b.ext .bp { background: rgba(47,107,234,.12); }
.x-b .x-hbd { position: absolute; right: 5px; top: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--x-blu); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; z-index: 2; }
.x-b .x-hbd.us { background: var(--x-red); }
.x-b .rvb { position: absolute; right: 5px; top: 5px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--x-lime); color: var(--x-ink); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; z-index: 2; }
.x-zf { position: absolute; top: 44px; display: flex; align-items: stretch; height: 28px; z-index: 2; border: 0; padding: 0; background: transparent; cursor: pointer; transition: opacity .25s; font-family: var(--f); }
.x-zf.flip { transform: translateX(-100%); flex-direction: row-reverse; }
.x-zf .post { position: absolute; left: -1px; top: -36px; bottom: 0; width: 2px; border-radius: 1px; background: var(--x-ink); }
.x-zf.flip .post { left: auto; right: -1px; }
.x-zf .fc { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; margin-left: 1px; border-radius: 0 9px 9px 0; background: var(--x-ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.x-zf.flip .fc { border-radius: 9px 0 0 9px; margin-left: 0; margin-right: 1px; }
.x-zf:hover .fc { box-shadow: 0 0 0 3px rgba(13,17,23,.14); }
.x-zf .fc .x-ic { width: 12px; height: 12px; }
.x-zf .fc em { font-style: normal; font-weight: 500; color: rgba(255,255,255,.72); }
.x-zf.next .fc em { color: var(--x-lime); }
.x-zf.risk .post { background: var(--x-amb); } .x-zf.risk .fc { background: var(--x-ambS); color: var(--x-ambT); } .x-zf.risk .fc em { color: var(--x-ambT); }
.x-zf.late .post { background: var(--x-red); } .x-zf.late .fc { background: var(--x-red); } .x-zf.late .fc em { color: rgba(255,255,255,.88); }
.x-zf.ext .post { background: var(--x-blu); } .x-zf.ext .fc { background: var(--x-bluS); color: var(--x-bluT); } .x-zf.ext .fc em { color: var(--x-bluT); }
.x-zf.past .post { background: #9AA2AD; } .x-zf.past .fc { background: var(--x-line2); color: var(--x-tx2); } .x-zf.past .fc em { color: var(--x-tx2); }
.x-zf.gone { display: none; }
.x-leg { position: absolute; right: 20px; top: 64px; width: 390px; max-width: calc(100% - 40px); background: #fff; border-radius: 20px; box-shadow: 0 2px 6px rgba(13,17,23,.08), 0 24px 60px rgba(13,17,23,.2); padding: 18px 20px; z-index: 30; }
.x-leg h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.x-lgs { font-size: 11.5px; font-weight: 600; color: var(--x-tx3); margin: 12px 0 6px; letter-spacing: .04em; }
.x-lgr { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px; align-items: center; padding: 4px 0; font-size: 12.5px; color: var(--x-tx2); }
.x-lgr .x-b, .x-lgr .x-zf, .x-lgr .x-mk { position: relative; top: auto; cursor: default; }
.x-lgr .x-b { width: 120px; }
.x-lgr .x-hbd, .x-lgr .rvb { position: relative; right: auto; top: auto; display: inline-grid; }
.x-lgx { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--x-line2); display: grid; place-items: center; cursor: pointer; }
.x-gscroll { overflow-x: auto; }
.x-gin { min-width: 980px; }
/* department schedule */
.x-jr { display: flex; border-bottom: 1px solid var(--x-line); position: relative; z-index: 1; }
.x-jbtn { width: 100%; height: 100%; min-height: 58px; display: grid; grid-template-columns: 20px 48px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; align-content: center; padding: 8px 12px 8px 4px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 14px; font-family: var(--f); color: var(--x-ink); }
.x-jbtn:hover { background: var(--x-line2); }
.x-chev { grid-row: 1/3; transition: transform .2s; color: var(--x-tx2); }
.x-chev.open { transform: rotate(90deg); }
.x-jbtn .x-jno { grid-row: 1/3; justify-content: center; }
.x-jn { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.x-jsub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--x-tx2); }
.x-mk { position: absolute; display: flex; align-items: stretch; height: 40px; z-index: 2; }
.x-mk.flip { transform: translateX(-100%); flex-direction: row-reverse; }
.x-mk .post { width: 2px; border-radius: 1px; background: var(--x-ink); margin-left: -1px; }
.x-mk.flip .post { margin-left: 0; margin-right: -1px; }
.x-mc { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 3px 10px 3px 8px; border-radius: 0 10px 10px 0; background: #F4F5F7; border: 1px solid var(--x-line); border-left: 0; white-space: nowrap; max-width: 210px; }
.x-mk.flip .x-mc { border-radius: 10px 0 0 10px; border-left: 1px solid var(--x-line); border-right: 0; }
.x-mt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.x-mt .x-ic { width: 12px; height: 12px; }
.x-mt .md { color: var(--x-tx2); font-weight: 500; }
.x-ms { font-size: 11.5px; color: var(--x-tx2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.x-mk.risk .post { background: var(--x-amb); } .x-mk.risk .x-mc { background: var(--x-ambS); border-color: #F3D9A4; } .x-mk.risk .x-ms { color: var(--x-ambT); font-weight: 600; }
.x-mk.late .post { background: var(--x-red); } .x-mk.late .x-mc { background: var(--x-redS); border-color: #F4C2C2; } .x-mk.late .x-ms { color: var(--x-redT); font-weight: 600; }
.x-mk.ext .post { background: var(--x-blu); } .x-mk.ext .x-mc { background: var(--x-bluS); border-color: #C7D6F8; } .x-mk.ext .x-ms { color: var(--x-bluT); font-weight: 600; }
.x-mk.past { opacity: .55; } .x-mk.past .post { background: #9AA2AD; }
.x-mr { display: flex; border-bottom: 1px solid var(--x-line2); height: 38px; background: #FAFBFC; position: relative; z-index: 1; }
.x-mlab { display: flex; align-items: center; gap: 8px; padding-left: 76px; font-size: 12px; color: var(--x-tx2); font-weight: 500; }
.x-mtg { position: absolute; top: 8px; transform: translateX(-50%); height: 22px; padding: 0 8px; border-radius: 999px; background: #fff; border: 1px solid var(--x-line); font-size: 11px; font-weight: 600; color: var(--x-bluT); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.x-dz { display: flex; height: 70px; border-bottom: 1px solid var(--x-line2); position: relative; z-index: 1; }
.x-dz.sel { background: #F6F8E9; }
.x-dz .x-zbtn { padding-left: 32px; border-radius: 0; }
.x-dz .x-zbtn .x-zb { min-width: 46px; height: 34px; border-radius: 10px; background: var(--x-line2); color: var(--x-ink); font-size: 13px; transition: background .15s, color .15s; }
.x-dz .x-zbtn:hover .x-zb, .x-dz.sel .x-zb { background: var(--x-ink); color: #fff; }
.x-dz .x-zbtn:hover { background: transparent; }
.x-dz .x-b { height: 26px; border-radius: 8px; padding: 0 8px; }
.x-dz .x-b.la { top: 8px; } .x-dz .x-b.lb { top: 38px; }
.x-dz .x-zf { top: 36px; height: 30px; }
.x-dz .x-zf .post { top: -30px; }
.x-dock { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; background: var(--x-ink); color: #fff; border-radius: 22px; padding: 12px 12px 12px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 20px 50px rgba(13,17,23,.35); z-index: 45; width: max-content; max-width: calc(100vw - 24px); flex-wrap: wrap; }
.x-dock.show { transform: translate(-50%, 0); opacity: 1; }
.x-dk-t > b { display: block; font-size: 14.5px; font-weight: 600; }
.x-dk-t > small { display: block; font-size: 12px; color: rgba(255,255,255,.66); margin-top: 2px; }
.x-dk-d { font-size: 22px; font-weight: 600; letter-spacing: -.02em; padding: 0 6px; white-space: nowrap; }
.x-db { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; font-weight: 500; font-size: 13px; cursor: pointer; font-family: var(--f); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.x-db:hover { background: rgba(255,255,255,.12); }
.x-db.on, .x-db.go { background: var(--x-lime); color: var(--x-ink); border-color: var(--x-lime); font-weight: 600; }
.x-dk-w { font-size: 12px; color: rgba(255,255,255,.66); }

/* ---------------- side sheet ---------------- */
.x-scrim { position: fixed; inset: 0; width: 100%; border: 0; padding: 0; margin: 0; background: rgba(13,17,23,.28); z-index: 50; cursor: default; animation: x-fade .25s ease; }
@keyframes x-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes x-slide { from { transform: translateX(110%); } to { transform: none; } }
.x-sheet { position: fixed; top: 12px; right: 12px; bottom: 12px; width: 480px; max-width: calc(100% - 24px); background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(13,17,23,.3); z-index: 51; display: flex; flex-direction: column; overflow: hidden; color: var(--x-ink); animation: x-slide .4s cubic-bezier(.2,.8,.2,1); }
.x-sheet.still { animation: none; }
.x-shh { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; }
.x-shp { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--x-tx2); font-weight: 500; flex-wrap: wrap; }
.x-shp .x-tp { height: 22px; font-size: 11.5px; }
.x-shh h2 { margin: 10px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.x-shh .what { font-size: 14px; color: var(--x-tx2); margin-top: 4px; }
.x-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--x-line2); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--x-ink); padding: 0; }
.x-x:hover { background: #E1E4E9; }
.x-shb { flex: 1; overflow: auto; padding: 0 24px 24px; }
.x-kv { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 2px 0 8px; }
.x-kvi { background: var(--x-line2); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.x-kvi .k { font-size: 11.5px; color: var(--x-tx2); font-weight: 500; }
.x-kvi .v { font-size: 19px; font-weight: 600; margin-top: 3px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-kvi .v.late { color: var(--x-redT); } .x-kvi .v.risk { color: var(--x-ambT); } .x-kvi .v.ext { color: var(--x-bluT); }
.x-subs { list-style: none; margin: 14px 0 0; padding: 0; }
.x-sub { position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; column-gap: 12px; row-gap: 10px; padding: 6px 0 14px; align-items: start; }
.x-sub::before { content: ""; position: absolute; left: 11px; top: 32px; bottom: -4px; border-left: 2px solid var(--x-line); }
.x-sub:last-child::before { display: none; }
.x-sub.s-done::before { border-left-color: var(--x-ink); }
.x-sdot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--x-line); background: #fff; position: relative; z-index: 1; display: grid; place-items: center; padding: 0; }
.x-sdot .x-ic { display: none; width: 12px; height: 12px; stroke-width: 2.4; }
.s-done .x-sdot { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.s-done .x-sdot .x-ic { display: block; }
.s-now .x-sdot { background: var(--x-lime); border-color: var(--x-ink); }
.x-snm { font-weight: 600; font-size: 15px; line-height: 22px; }
.x-sdt { font-size: 12.5px; color: var(--x-tx2); margin-top: 1px; }
.s-fut .x-snm { color: var(--x-tx3); font-weight: 500; }
.x-sst { text-align: right; font-size: 13px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.x-swho { display: block; font-size: 12px; color: var(--x-tx2); font-weight: 500; line-height: 15px; }
.s-fut .x-sst { color: var(--x-tx3); font-weight: 500; }
.x-stamp { grid-column: 2/4; height: 44px; border-radius: 14px; border: 0; background: var(--x-ink); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f); }
.x-stamp:hover { background: #000; }
.x-stamp i { width: 8px; height: 8px; border-radius: 50%; background: var(--x-lime); }
.x-stamp.lock { background: var(--x-line2); color: var(--x-tx2); cursor: not-allowed; }
.x-stamp.lock i { background: var(--x-tx3); }
.x-sec { margin-top: 22px; }
.x-sech { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.x-hold { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--x-line2); margin-bottom: 6px; }
.x-htx { font-size: 13.5px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.x-hage { font-size: 12px; color: var(--x-tx2); font-weight: 500; white-space: nowrap; }
.x-hact { display: flex; gap: 4px; align-items: center; }
.x-rel { font-size: 12px; font-weight: 600; color: var(--x-ink); border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 8px; font-family: var(--f); }
.x-rel:hover { background: #fff; }
.x-dw { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--x-line2); }
.x-dno { font-size: 12.5px; font-weight: 600; font-family: var(--fm); }
.x-dnm { font-size: 13px; color: var(--x-tx2); min-width: 0; }
.x-drev { font-size: 12px; font-weight: 600; }
.x-rvl { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--x-line2); font-size: 13px; }
.x-rvb { height: 20px; padding: 0 6px; border-radius: 5px; background: var(--x-lime); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.x-cause { height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; background: var(--x-line2); white-space: nowrap; }
.x-cause.ours { background: var(--x-red); color: #fff; }
.x-shf { display: flex; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--x-line2); flex-wrap: wrap; }
.x-mail { margin-top: 20px; border: 1px solid var(--x-line); border-radius: 16px; overflow: hidden; }
.x-mrow { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--x-line2); flex-wrap: wrap; }
.x-mk2 { font-size: 12px; font-weight: 500; color: var(--x-tx2); width: 56px; flex: none; }
.x-msub { font-weight: 600; font-size: 13.5px; flex: 1; min-width: 0; }
.x-mbody { padding: 12px; font-size: 13px; line-height: 1.55; white-space: pre-line; background: #FAFBFC; }
.x-mgo { display: flex; justify-content: flex-end; padding: 10px 12px; }
.x-plan { display: grid; grid-template-columns: minmax(0,1fr) auto 84px; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--x-line2); font-size: 13.5px; align-items: center; }
.x-plan .pn { font-weight: 500; } .x-plan .pd { font-weight: 600; }
.x-ps { justify-self: end; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--x-line2); color: var(--x-tx2); white-space: nowrap; }
.p-done .x-ps { background: var(--x-ink); color: #fff; } .p-act .x-ps { background: var(--x-grnS); color: var(--x-grnT); } .p-late .x-ps { background: var(--x-red); color: #fff; } .p-ext .x-ps { background: var(--x-bluS); color: var(--x-bluT); } .p-risk .x-ps { background: var(--x-ambS); color: var(--x-ambT); }
.x-shift { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.x-shift .x-mini { height: 42px; font-size: 13.5px; justify-content: center; }
.x-src { font-size: 12.5px; color: var(--x-tx2); margin-top: 10px; }
.x-moved { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--x-ink); color: #fff; font-weight: 500; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.x-moved i { width: 8px; height: 8px; border-radius: 50%; background: var(--x-lime); flex: none; }
.x-zd { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--x-line2); font-weight: 500; }
.x-zd .x-dd { color: var(--x-tx2); font-size: 13px; }
.x-fi { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 11px 12px; border-radius: 14px; background: var(--x-line2); margin-bottom: 6px; align-items: center; }
.x-fi.fixed { opacity: .55; }
.x-fi > b { font-size: 13.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.x-fim { grid-column: 1/2; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--x-tx2); flex-wrap: wrap; }
.x-kd { height: 20px; padding: 0 7px; border-radius: 6px; background: #fff; color: var(--x-ink); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.x-fact { grid-row: 1/3; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.x-fst { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--x-ambS); color: var(--x-ambT); white-space: nowrap; }
.x-fst.ok { background: var(--x-grnS); color: var(--x-grnT); }
.x-eq { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--x-line2); font-size: 13px; align-items: center; }
.x-eq .mono { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-eqs { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--x-grnS); color: var(--x-grnT); white-space: nowrap; }
.x-eqs.pend { background: var(--x-ambS); color: var(--x-ambT); }
.x-eqs.no { background: var(--x-line2); color: var(--x-tx2); }
.x-sys { display: flex; flex-wrap: wrap; gap: 6px; }
.x-sy { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 10px; background: var(--x-line2); font-size: 12.5px; }
.x-sy i { width: 10px; height: 10px; border-radius: 3px; }
.x-sy b { font-weight: 600; } .x-sy .sm { color: var(--x-tx2); }
.x-sw { width: 12px; height: 12px; border-radius: 4px; flex: none; display: inline-block; }

/* ---------------- Deliverables ---------------- */
.x-tw { overflow-x: auto; padding: 0 20px 18px; }
.x-tbl { min-width: 1080px; }
.x-g { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1.15fr) minmax(0,1.35fr) 84px 156px 92px 28px; column-gap: 16px; align-items: center; }
.x-th { height: 38px; font-size: 12px; font-weight: 500; color: var(--x-tx2); border-bottom: 1px solid var(--x-line); padding: 0 12px; }
.x-lvh2 { display: flex; align-items: center; height: 40px; margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--x-tx2); padding-left: 4px; text-transform: uppercase; }
.x-zh { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--x-line2); text-align: left; cursor: pointer; margin-bottom: 4px; flex-wrap: wrap; font-family: var(--f); color: var(--x-ink); }
.x-zh:hover { background: #E6E9ED; }
.x-zh .x-zt > b { font-size: 15px; }
.x-zfd { display: flex; gap: 6px; flex-wrap: wrap; }
.x-zfc { height: 28px; padding: 0 11px 0 9px; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.x-zfc .x-ic { width: 12px; height: 12px; }
.x-zfc em { font-style: normal; font-weight: 500; color: var(--x-tx2); }
.x-zfc i { width: 7px; height: 7px; border-radius: 50%; }
.x-zfc i.hvac, .x-zfc i.h { background: var(--x-hvacD); } .x-zfc i.plbg, .x-zfc i.p { background: var(--x-plbgD); }
.x-mbar { display: flex; width: 120px; height: 6px; border-radius: 3px; overflow: hidden; background: #DADEE3; flex: none; }
.x-mbar i { display: block; height: 100%; }
.x-mbar i.d { background: var(--x-ink); } .x-mbar i.a { background: #8B95A3; }
.x-dr { width: 100%; min-height: 58px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--x-line2); background: transparent; text-align: left; cursor: pointer; border-radius: 12px; display: block; font-family: var(--f); color: var(--x-ink); }
.x-dr:hover { background: #F7F8FA; }
.x-dr.sel { background: #F6F8E9; }
.x-dn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.x-dn > b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-dn .x-tp { height: 22px; font-size: 11.5px; padding: 0 9px 0 8px; }
.x-shl { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.x-shl .mono { font-size: 11.5px; font-weight: 600; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--x-line2); display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--fm); }
.x-shl .na { font-size: 12.5px; color: var(--x-tx3); }
.x-stp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.x-stp > b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-stp > b.mut { color: var(--x-tx3); font-weight: 500; }
.x-due { font-size: 13px; font-weight: 600; white-space: nowrap; }
.x-due.mut { color: var(--x-tx3); font-weight: 500; }
.x-fl { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------------- Coordination ---------------- */
.x-src2 { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--x-line2); font-size: 12.5px; color: var(--x-tx2); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.x-src2 i { width: 7px; height: 7px; border-radius: 50%; background: #23A45D; }
.x-src2.no i { background: #B9C0CA; }
.x-src2 b { color: var(--x-ink); font-weight: 600; }
.x-cols { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.x-zl { width: 290px; flex: none; padding: 14px 12px; }
.x-zlh { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--x-tx2); padding: 10px 8px 6px; text-transform: uppercase; }
.x-zi { width: 100%; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 4px 12px; align-items: center; padding: 10px; border: 0; border-radius: 16px; background: transparent; text-align: left; cursor: pointer; font-family: var(--f); color: var(--x-ink); text-decoration: none; }
.x-zi:hover { background: var(--x-line2); color: var(--x-ink); }
.x-zi.on { background: var(--x-ink); color: #fff; }
.x-zic { grid-row: 1/3; height: 40px; border-radius: 12px; background: var(--x-line2); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--x-ink); }
.x-zi.on .x-zic { background: var(--x-lime); }
.x-zit { display: flex; align-items: center; gap: 8px; min-width: 0; }
.x-zit b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-zis { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 12px; color: var(--x-tx2); }
.x-zis span { white-space: nowrap; }
.x-zi.on .x-zis { color: rgba(255,255,255,.7); }
.x-zst { height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.x-zst.so { background: var(--x-line2); color: var(--x-ink); } .x-zst.late { background: var(--x-red); color: #fff; } .x-zst.ext { background: var(--x-bluS); color: var(--x-bluT); } .x-zst.mod { background: var(--x-ambS); color: var(--x-ambT); } .x-zst.co { background: var(--x-grnS); color: var(--x-grnT); } .x-zst.risk { background: var(--x-ambS); color: var(--x-ambT); }
.x-zi.on .x-zst.so { background: rgba(255,255,255,.14); color: #fff; }
.x-mid { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.x-cside { flex: 1 1 340px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.x-zhd { padding: 20px 22px; }
.x-zhr { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.x-zcode { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.x-zname { font-size: 14px; color: var(--x-tx2); }
.x-pipe { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 18px; }
.x-ps2 { display: flex; flex-direction: column; gap: 8px; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; font-family: var(--f); color: var(--x-ink); }
.x-ps2 .bar { height: 6px; border-radius: 3px; background: var(--x-line2); }
.x-ps2.d .bar { background: var(--x-ink); }
.x-ps2.n .bar { background: var(--x-lime); box-shadow: inset 0 0 0 1px rgba(13,17,23,.35); }
.x-ps2.n.late .bar { background: var(--x-red); box-shadow: none; }
.x-ps2.n.ext .bar { background: var(--x-blu); box-shadow: none; }
.x-ps2.n.risk .bar { background: var(--x-amb); box-shadow: none; }
.x-psl { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.x-psl b { font-weight: 600; } .x-psl span { color: var(--x-tx2); }
.x-ps2.f .x-psl b { color: var(--x-tx3); font-weight: 500; }
.x-why { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.x-why > span { font-size: 12.5px; color: var(--x-tx2); margin-right: 4px; }
.x-sysbar { display: flex; gap: 4px; margin-bottom: 6px; }
.x-sysbar i { flex: 1; height: 8px; border-radius: 4px; background: var(--x-line2); }
.x-sysbar i.done { background: var(--x-ink); } .x-sysbar i.mod { background: var(--x-amb); }
.x-sr { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--x-line2); }
.x-sn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.x-sn b { font-weight: 600; font-size: 14px; }
.x-sn .x-sl3 { color: var(--x-tx2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-sseg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--x-line2); gap: 2px; }
.x-sseg button { height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-size: 12.5px; font-weight: 500; color: var(--x-tx2); cursor: pointer; white-space: nowrap; font-family: var(--f); }
.x-sseg button.on { background: #fff; color: var(--x-ink); box-shadow: 0 1px 3px rgba(13,17,23,.14); }
.x-sseg button.on.done { background: var(--x-ink); color: #fff; }
.x-sseg button.on.mod { background: var(--x-ambS); color: var(--x-ambT); box-shadow: inset 0 0 0 1px #F0D49A; }
.x-snote { grid-column: 1/4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.x-hold2 { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px; border-radius: 10px; background: var(--x-ambS); color: var(--x-ambT); font-size: 12.5px; font-weight: 500; }
.x-hold2 b { font-weight: 600; }
.x-ned { grid-column: 1/4; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #FAFBFC; border: 1px solid var(--x-line); }
.x-ned .lb { font-size: 12px; color: var(--x-tx2); font-weight: 500; }
.x-grp { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--x-tx2); letter-spacing: .04em; margin: 12px 0 4px; text-transform: uppercase; }
.x-grp .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--x-line2); font-size: 11px; display: grid; place-items: center; color: var(--x-ink); }
.x-iss { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--x-line2); }
.x-iss.done { opacity: .45; }
.x-iss.done .it b { text-decoration: line-through; }
.x-iic { width: 34px; height: 34px; border-radius: 10px; background: var(--x-line2); display: grid; place-items: center; }
.x-iss .it { min-width: 0; }
.x-iss .it b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-iss .it small { display: block; font-size: 12px; color: var(--x-tx2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-gridref { font-size: 12px; font-weight: 600; color: var(--x-tx2); font-family: var(--fm); }
.x-pty { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; background: var(--x-bluS); color: var(--x-bluT); justify-self: start; }
.x-pty.us { background: var(--x-red); color: #fff; } .x-pty.fld { background: var(--x-ink); color: #fff; }
.x-mat { display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; padding: 10px 0; border-top: 1px solid var(--x-line2); }
.x-mat:first-of-type { border-top: 0; }
.x-mh { display: flex; align-items: center; gap: 8px; }
.x-mh b { font-weight: 600; font-size: 13.5px; } .x-mh .x-sl3 { font-size: 12.5px; color: var(--x-tx2); }
.x-mv { font-size: 13px; padding-left: 20px; color: var(--x-ink); }
.x-mv.no { color: var(--x-tx3); }
.x-sp { padding: 12px; border-radius: 16px; background: var(--x-line2); display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.x-sp.here { background: #F7FBE6; box-shadow: inset 0 0 0 1px #DDEB9E; }
.x-sph { display: flex; align-items: center; gap: 8px; }
.x-sph b { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; }
.x-sph .mono { font-size: 11.5px; color: var(--x-tx2); white-space: nowrap; }
.x-spd { font-size: 13px; color: var(--x-ink); }
.x-spz { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.x-spz .x-grow { background: none; padding: 0; height: auto; }
.x-spz span:not(.x-grow) { height: 20px; padding: 0 7px; border-radius: 6px; background: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.x-herel { height: 20px; padding: 0 8px; border-radius: 999px; background: var(--x-lime); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.x-addsp { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1px dashed #C5CBD3; margin-bottom: 8px; }
.x-addsp .row2 { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 8px; }
.x-form-r { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------- Fabrication ---------------- */
.x-ztabs { display: flex; gap: 8px; flex-wrap: wrap; }
.x-zc { min-width: 118px; padding: 9px 14px; border-radius: 16px; border: 1px solid var(--x-line); background: #fff; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-family: var(--f); color: var(--x-ink); text-decoration: none; }
.x-zc:hover { border-color: #C5CBD3; color: var(--x-ink); }
.x-zc b { font-size: 14px; font-weight: 600; }
.x-zc small { font-size: 12px; color: var(--x-tx2); display: flex; align-items: center; gap: 5px; }
.x-zc small .x-ic { width: 11px; height: 11px; }
.x-zc.on { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.x-zc.on small { color: rgba(255,255,255,.72); }
.x-fsec { padding: 20px 22px 14px; }
.x-fsh { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.x-fsh h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.x-fsh .k { font-size: 12.5px; color: var(--x-tx2); margin-bottom: 3px; letter-spacing: .04em; }
.x-fun { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin: 12px 0 4px; }
.x-fs { padding: 10px 12px; border-radius: 14px; background: var(--x-line2); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.x-fs .fl { display: flex; justify-content: space-between; font-size: 12px; color: var(--x-tx2); font-weight: 500; gap: 6px; }
.x-fs .fn { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.x-fs .fn small { font-size: 12px; color: var(--x-tx2); font-weight: 500; letter-spacing: 0; }
.x-fs .fb { height: 4px; border-radius: 2px; background: #DCE0E5; overflow: hidden; }
.x-fs .fb i { display: block; height: 100%; background: var(--x-ink); }
.x-fs.ext .fb i { background: var(--x-blu); }
.x-fgrp { margin-top: 18px; }
.x-fgh { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--x-line2); margin-bottom: 10px; flex-wrap: wrap; }
.x-fgh b { font-size: 15px; font-weight: 600; }
.x-fgh .x-gn { font-size: 13px; color: var(--x-tx2); }
.x-gmap { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--x-line2); font-size: 12px; }
.x-gmap .mono { font-weight: 600; } .x-gmap .x-st3 { font-weight: 600; color: var(--x-grnT); } .x-gmap .x-st3.wt { color: var(--x-ambT); }
.x-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.x-tile { position: relative; border-radius: 14px; border: 1px solid var(--x-line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.x-tile:hover { border-color: #B9C0CA; box-shadow: 0 4px 14px rgba(13,17,23,.08); }
.x-tile.done { background: var(--x-ink2); border-color: var(--x-ink2); color: #fff; }
.x-tile.ext { border-color: var(--x-blu); box-shadow: inset 0 0 0 1px var(--x-blu); }
.x-tile.held { border-color: var(--x-amb); box-shadow: inset 0 0 0 1px var(--x-amb); }
.x-tile.sel { box-shadow: 0 0 0 3px var(--x-lime), 0 0 0 4.5px var(--x-ink); }
.x-tbtn { width: 100%; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 14px; font-family: var(--f); color: inherit; }
.x-tno { font-size: 12px; font-weight: 600; padding-right: 22px; font-family: var(--fm); }
.x-twh { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-tst { font-size: 11.5px; color: var(--x-tx2); }
.x-tile.done .x-tst { color: rgba(255,255,255,.7); }
.x-tile.ext .x-tst { color: var(--x-bluT); font-weight: 600; }
.x-tpips { display: flex; gap: 3px; margin-top: 6px; }
.x-tpips i { flex: 1; height: 4px; border-radius: 2px; background: #E1E4E9; }
.x-tpips i.d { background: var(--x-ink); }
.x-tile.done .x-tpips i.d { background: rgba(255,255,255,.8); }
.x-tpips i.n { background: var(--x-lime); box-shadow: inset 0 0 0 1px rgba(13,17,23,.35); }
.x-tbad { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.x-bh { height: 20px; padding: 0 7px; border-radius: 999px; background: var(--x-ambS); color: var(--x-ambT); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.x-bh.ext { background: var(--x-bluS); color: var(--x-bluT); }
.x-bn { height: 20px; padding: 0 7px; border-radius: 999px; background: var(--x-line2); color: var(--x-ink); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.x-br { height: 20px; padding: 0 6px; border-radius: 5px; background: var(--x-lime); color: var(--x-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }
.x-ck { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #C5CBD3; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; }
.x-ck .x-ic { width: 13px; height: 13px; stroke-width: 2.4; display: none; }
.x-ck.on { background: var(--x-ink); border-color: var(--x-ink); }
.x-ck.on .x-ic { display: block; }
.x-tile.done .x-ck { display: none; }
.x-batch { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; background: var(--x-ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 50px rgba(13,17,23,.35); z-index: 45; white-space: nowrap; width: max-content; max-width: calc(100vw - 24px); }
.x-batch.show { transform: translate(-50%, 0); opacity: 1; }
.x-batch b { font-weight: 600; }
.x-note { padding: 10px 12px; border-radius: 14px; background: #FAFBFC; border: 1px solid var(--x-line2); margin-bottom: 6px; }
.x-note b { display: block; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.x-note small { display: block; font-size: 12px; color: var(--x-tx2); margin-top: 3px; }
.x-inrow { display: flex; gap: 8px; }
.x-addpk { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px dashed #C5CBD3; margin-top: 12px; }
.x-addpk .row3 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------- Layout ---------------- */
.x-pill { height: 28px; padding: 0 11px; border-radius: 999px; background: var(--x-line2); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.x-pill b { font-weight: 600; }
.x-wkh2 { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--x-tx2); margin: 8px 0; text-transform: uppercase; }
.x-wk { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin-bottom: 6px; }
.x-day2 { border-radius: 16px; background: var(--x-line2); padding: 10px; min-height: 148px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.x-day2.past { opacity: .6; }
.x-day2.now { background: #fff; box-shadow: inset 0 0 0 2px var(--x-ink); }
.x-dh { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; gap: 6px; }
.x-dh .x-dd { font-size: 12px; font-weight: 500; color: var(--x-tx2); white-space: nowrap; }
.x-day2.now .x-dh .x-dd { background: var(--x-lime); color: var(--x-ink); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.x-task { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; border: 1px solid var(--x-line); background: #fff; text-align: left; cursor: pointer; width: 100%; font-family: var(--f); color: var(--x-ink); min-width: 0; }
.x-task:hover { border-color: #B9C0CA; box-shadow: 0 4px 14px rgba(13,17,23,.08); }
.x-task.ok { background: var(--x-ink2); border-color: var(--x-ink2); color: #fff; }
.x-task.sel { box-shadow: 0 0 0 3px var(--x-lime), 0 0 0 4.5px var(--x-ink); }
.x-task.late { border-color: var(--x-red); box-shadow: inset 0 0 0 1px var(--x-red); }
.x-task.risk { border-color: var(--x-amb); box-shadow: inset 0 0 0 1px var(--x-amb); }
.x-task .tt { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.x-task .hr { font-size: 11.5px; color: var(--x-tx2); white-space: nowrap; }
.x-task.ok .hr, .x-task.ok .dw { color: rgba(255,255,255,.7); }
.x-task b { font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.x-task .dw { font-size: 11.5px; color: var(--x-tx2); font-family: var(--fm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-task .sw2 { font-size: 11.5px; font-weight: 600; }
.x-lp { display: flex; gap: 3px; }
.x-lp i { flex: 1; height: 4px; border-radius: 2px; background: #E1E4E9; }
.x-lp i.d { background: var(--x-ink); }
.x-task.ok .x-lp i.d { background: rgba(255,255,255,.8); }
.x-lp i.n { background: var(--x-lime); box-shadow: inset 0 0 0 1px rgba(13,17,23,.35); }
.x-lg { display: grid; grid-template-columns: 70px 96px minmax(0,1.4fr) 112px 56px 82px minmax(0,1fr) 22px; column-gap: 14px; align-items: center; }
.x-lth { height: 34px; font-size: 12px; color: var(--x-tx2); font-weight: 500; border-bottom: 1px solid var(--x-line); padding: 0 10px; }
.x-zg { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding-left: 4px; font-size: 12px; font-weight: 600; color: var(--x-tx2); letter-spacing: .04em; text-transform: uppercase; }
.x-lr { width: 100%; min-height: 50px; padding: 6px 10px; border: 0; border-bottom: 1px solid var(--x-line2); background: transparent; text-align: left; cursor: pointer; border-radius: 12px; display: block; font-family: var(--f); color: var(--x-ink); }
.x-lr:hover { background: #F7F8FA; }
.x-lr.sel { background: #F6F8E9; }
.x-lr .d { font-size: 13px; font-weight: 600; }
.x-lr .nm { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-lr .mono { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--fm); }
.x-lr .cr { font-size: 12.5px; color: var(--x-tx2); }
.x-lr .hrs { font-size: 12.5px; font-weight: 600; }
.x-lr .stw { display: flex; flex-direction: column; gap: 5px; }
.x-lr .stw b { font-size: 12.5px; font-weight: 600; }
.x-lr .stw b.v { color: var(--x-grnT); }
.x-lab { font-size: 12px; font-weight: 600; color: var(--x-tx2); margin: 12px 0 6px; }
.x-lab:first-child { margin-top: 0; }
.x-bigbtn { height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--x-line); background: #fff; font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; font-family: var(--f); color: var(--x-ink); }
.x-bigbtn.pri { background: var(--x-ink); border-color: var(--x-ink); color: #fff; flex: 1; }
.x-bigbtn.pri i { width: 8px; height: 8px; border-radius: 50%; background: var(--x-lime); }
.x-fiz { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--x-tx2); }
.x-shw { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--x-line2); }
.x-shw .mono { font-size: 12.5px; font-weight: 600; font-family: var(--fm); }
.x-shw .n { font-size: 13px; color: var(--x-tx2); }
.x-shw .r { font-size: 12px; font-weight: 600; }

/* ---------------- Forecast ---------------- */
.x-fpage { display: grid; grid-template-columns: minmax(0,340px) minmax(0,1fr) minmax(0,360px); gap: 16px; align-items: start; }
.x-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.x-hk { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--x-tx2); font-weight: 500; gap: 8px; flex-wrap: wrap; }
.x-srcd { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.x-srcd i { width: 7px; height: 7px; border-radius: 50%; background: #23A45D; }
.x-srcd.no i { background: #B9C0CA; }
.x-big { font-size: 96px; font-weight: 600; letter-spacing: -.06em; line-height: .95; margin: 10px 0 16px; }
.x-big.amb { color: var(--x-ambT); } .x-big.red { color: var(--x-redT); } .x-big.grn { color: var(--x-grnT); } .x-big.mut { color: var(--x-tx3); }
.x-hbs { display: flex; flex-direction: column; gap: 12px; }
.x-hbr .t { display: flex; justify-content: space-between; font-size: 13px; color: var(--x-tx2); margin-bottom: 6px; gap: 8px; }
.x-hbr .t b { color: var(--x-ink); font-weight: 600; white-space: nowrap; }
.x-trk { height: 8px; border-radius: 4px; background: var(--x-line2); overflow: hidden; }
.x-trk i { display: block; height: 100%; border-radius: 4px; background: var(--x-ink); }
.x-trk i.act { background: var(--x-amb); }
.x-spark { width: 100%; height: 60px; margin-top: 16px; }
.x-spark polyline { fill: none; stroke: var(--x-ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.x-spark line { stroke: var(--x-line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.x-spark circle { fill: var(--x-lime); stroke: var(--x-ink); stroke-width: 2; }
.x-sl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--x-tx3); }
.x-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--x-line2); }
.x-stat:first-child { border-top: 0; padding-top: 2px; }
.x-stat .l b { display: block; font-size: 14px; font-weight: 600; }
.x-stat .l > span { display: block; font-size: 12.5px; color: var(--x-tx2); margin-top: 2px; }
.x-stat .v { font-size: 28px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.x-stat .v.red { color: var(--x-redT); } .x-stat .v.grn { color: var(--x-grnT); }
.x-drr { display: grid; grid-template-columns: minmax(0,1fr) 88px; gap: 8px 18px; padding: 14px 0; border-top: 1px solid var(--x-line2); align-items: center; }
.x-drr .dn2 { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.x-drr .dn2 b { font-size: 15px; font-weight: 600; }
.x-drr .dn2 > span { font-size: 12.5px; color: var(--x-tx2); }
.x-pc2 { text-align: right; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; grid-row: 1/3; grid-column: 2; }
.x-pc2 small { font-size: 12px; color: var(--x-tx2); font-weight: 500; letter-spacing: 0; display: block; margin-top: 4px; }
.x-pbar { position: relative; height: 12px; border-radius: 6px; background: var(--x-line2); }
.x-pbar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--x-ink); }
.x-pbar > i.behind { background: var(--x-amb); }
.x-pbar > u { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--x-ink); opacity: .55; }
.x-rng { grid-column: 1/2; display: flex; align-items: center; gap: 10px; }
.x-stpb { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--x-line); background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--x-ink); font-family: var(--f); }
.x-stpb:hover { border-color: #C5CBD3; }
.x-rng .bs { font-size: 12px; color: var(--x-tx2); }
.x-rng .x-lnk { height: 26px; padding: 0 8px; font-size: 12px; }
.x-tot { margin-top: 6px; padding: 18px; border-radius: 18px; background: var(--x-ink); color: #fff; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.x-ti .k { font-size: 12px; color: rgba(255,255,255,.62); }
.x-ti .v { font-size: 24px; font-weight: 600; letter-spacing: -.03em; margin-top: 4px; white-space: nowrap; }
.x-ti .v.amb { color: #FFC861; } .x-ti .v.red { color: #FF8A8A; }
.x-ti .s { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }
.x-wk2 { padding: 6px 0 6px 14px; border-left: 3px solid transparent; }
.x-wk2 + .x-wk2 { border-top: 1px solid var(--x-line2); }
.x-wk2.now { border-left-color: var(--x-lime); }
.x-wh { font-size: 12px; font-weight: 600; color: var(--x-tx2); letter-spacing: .04em; margin: 6px 0 4px; text-transform: uppercase; }
.x-wk2.now .x-wh { color: var(--x-ink); }
.x-it { display: grid; grid-template-columns: 26px 52px minmax(0,1fr) 28px; gap: 8px; align-items: center; font-size: 13.5px; padding: 4px 0; }
.x-it b { font-weight: 600; white-space: nowrap; }
.x-it.key .lbl2 { font-weight: 600; }
.x-it.done .lbl2, .x-it.done b { text-decoration: line-through; color: var(--x-tx3); }
.x-it.late .lbl2, .x-it.late b { color: var(--x-redT); font-weight: 600; }
.x-ck2 { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #C5CBD3; background: #fff; cursor: pointer; padding: 0; display: grid; place-items: center; color: #fff; }
.x-ck2 .x-ic { width: 13px; height: 13px; stroke-width: 2.4; display: none; }
.x-ck2.on { background: var(--x-ink); border-color: var(--x-ink); }
.x-ck2.on .x-ic { display: block; }
.x-fl2 { width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; cursor: pointer; color: var(--x-tx3); display: grid; place-items: center; padding: 0; }
.x-fl2:hover { background: var(--x-line2); }
.x-fl2.on { background: var(--x-red); color: #fff; }
.x-fl2 .x-ic { width: 13px; height: 13px; }
.lbl2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.x-fld { height: 20px; padding: 0 7px; border-radius: 999px; background: var(--x-lime); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; margin-left: 6px; }

/* ---------------- Project setup ---------------- */
.x-prog { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.x-prog .k { font-size: 12px; color: rgba(255,255,255,.62); font-weight: 500; }
.x-prog .v { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.x-prog .x-pbar3 { display: flex; gap: 4px; }
.x-prog .x-pbar3 i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); }
.x-prog .x-pbar3 i.d { background: #fff; } .x-prog .x-pbar3 i.n { background: var(--x-lime); }
.x-ko { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.x-ko .k { font-size: 12px; color: rgba(255,255,255,.62); font-weight: 500; }
.x-ko .v { font-size: 17px; font-weight: 600; margin-top: 4px; }
.x-stampb { height: 44px; padding: 0 16px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.4); background: transparent; color: #fff; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--f); }
.x-stampb i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.x-stampb.held { background: var(--x-lime); border: 1px solid var(--x-lime); color: var(--x-ink); }
.x-stampb.held i { background: var(--x-ink); }
.x-rail { flex: 1 1 260px; max-width: 300px; padding: 12px; }
.x-ri { width: 100%; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 2px 12px; align-items: center; padding: 10px; border: 0; border-radius: 16px; background: transparent; text-align: left; cursor: pointer; font-family: var(--f); color: var(--x-ink); text-decoration: none; }
.x-ri:hover { background: var(--x-line2); color: var(--x-ink); }
.x-ri.on { background: var(--x-ink); color: #fff; }
.x-rn { grid-row: 1/3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--x-line2); color: var(--x-ink); }
.x-ri.d .x-rn { background: var(--x-ink); color: #fff; }
.x-ri.on .x-rn { background: var(--x-lime); color: var(--x-ink); }
.x-rn .x-ic { width: 14px; height: 14px; stroke-width: 2.4; }
.x-ri b { font-size: 14px; font-weight: 600; grid-column: 2; grid-row: 1; }
.x-ri small { font-size: 12px; color: var(--x-tx2); grid-column: 2; grid-row: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-ri.on small { color: rgba(255,255,255,.7); }
.x-rflag { grid-column: 3; grid-row: 1/3; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--x-ambS); color: var(--x-ambT); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.x-smain { flex: 999 1 640px; min-width: 0; padding: 24px 26px 20px; }
.x-smh { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.x-smh .k { font-size: 12.5px; color: var(--x-tx2); font-weight: 500; }
.x-smh h2 { margin: 4px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.x-mf { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--x-line2); flex-wrap: wrap; }
.x-mf .x-btn { height: 40px; }

/* ---------------- Board (BIM room TV) ---------------- */
.x-tvp { overflow: hidden; }
.x-tvw { position: fixed; inset: 0; background: var(--x-bg); }
.x-tvs { width: 1920px; height: 1080px; transform-origin: 0 0; }
.x-board { box-sizing: border-box; padding: 22px 24px 24px; color: var(--x-ink); display: flex; flex-direction: column; gap: 18px; }
.x-board.tv { width: 1920px; height: 1080px; overflow: hidden; }
.x-band { position: relative; height: 128px; flex: none; border-radius: 28px; background: var(--x-ink); color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 18px 0 30px; overflow: hidden; }
.x-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.2) 50%, transparent 75%); mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.2) 50%, transparent 75%); pointer-events: none; }
.x-band .x-brand { position: relative; font-size: 20px; margin-right: 30px; gap: 12px; }
.x-band .x-brand svg { width: 40px; height: 40px; }
.x-when { position: relative; display: flex; flex-direction: column; gap: 4px; }
.x-when .d1 { font-size: 22px; color: rgba(255,255,255,.66); font-weight: 500; }
.x-when .d2 { display: flex; align-items: baseline; gap: 18px; }
.x-when .d2 > b { font-size: 56px; font-weight: 600; letter-spacing: -.04em; line-height: .95; }
.x-when .d2 > span { font-size: 28px; color: rgba(255,255,255,.72); font-weight: 500; }
.x-bfig { position: relative; width: 360px; height: 96px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 14px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.x-bfig .k { font-size: 17px; color: rgba(255,255,255,.7); font-weight: 500; }
.x-fv { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.x-fv > b { font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: .9; white-space: nowrap; }
.x-fv > b.amb { color: #FFC861; } .x-fv > b.red { color: #FF8A8A; } .x-fv > b.grn { color: #7EE2A6; } .x-fv > b.mut { color: rgba(255,255,255,.4); }
.x-fv .fs { font-size: 16px; color: rgba(255,255,255,.72); text-align: right; line-height: 1.25; font-weight: 500; }
.x-bspark { width: 130px; height: 40px; }
.x-bspark polyline { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.x-bspark circle { fill: var(--x-lime); }
.x-bmid { flex: 1; display: flex; gap: 18px; min-height: 0; }
.x-bcard { background: var(--x-card); border-radius: 26px; box-shadow: var(--x-sh); }
.x-ap { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 22px 26px 16px; }
.x-aph { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.x-aph h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.x-bseg { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: var(--x-line2); }
.x-bseg button { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 500; font-size: 18px; color: var(--x-tx2); cursor: pointer; display: flex; align-items: center; gap: 10px; font-family: var(--f); }
.x-bseg button.on { background: var(--x-ink); color: #fff; }
.x-bseg .ct { min-width: 26px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--x-ink); font-size: 15px; display: grid; place-items: center; }
.x-asof { font-size: 17px; color: var(--x-tx2); font-weight: 500; }
.x-asof b { color: var(--x-ink); font-weight: 600; }
.x-og { display: grid; grid-template-columns: minmax(0,1fr) 236px 136px 116px 168px 156px; column-gap: 18px; align-items: center; }
.x-oth { padding: 16px 24px 10px 36px; font-size: 17px; font-weight: 500; color: var(--x-tx2); }
.x-oth > .r { text-align: right; }
.x-orows { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
a.x-orow { flex: 1; max-height: 96px; min-height: 72px; padding: 0 24px; border-radius: 18px; background: #F6F7F9; border: 1.5px solid transparent; border-left: 10px solid var(--x-plbg); transition: border-color .15s, background .15s; color: var(--x-ink); text-decoration: none; }
a.x-orow.hvac { border-left-color: var(--x-hvac); }
a.x-orow:hover { border-top-color: #C9CED6; border-right-color: #C9CED6; border-bottom-color: #C9CED6; background: #fff; color: var(--x-ink); }
.x-pn { min-width: 0; }
.x-pnl { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.x-pnl > em { font-style: normal; font-size: 22px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.x-pnl > .jn { font-size: 17px; color: var(--x-tx2); font-weight: 500; flex: none; font-family: var(--fm); }
.x-psub { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 16px; color: var(--x-tx2); white-space: nowrap; overflow: hidden; }
.x-btp { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--x-plbg); color: var(--x-ink); font-weight: 600; font-size: 15px; flex: none; }
.x-btp.hvac { background: var(--x-hvac); }
.x-oc { display: grid; grid-template-columns: minmax(0,1fr) 92px; gap: 14px; align-items: center; }
.x-obar { height: 16px; border-radius: 8px; background: #E1E5EA; overflow: hidden; }
.x-obar > i { display: block; height: 100%; border-radius: 8px; }
.x-obar > i.b-g { background: var(--x-grn); } .x-obar > i.b-t { background: var(--x-ink); } .x-obar > i.b-m { background: #B9C0CA; }
.x-ov { text-align: right; min-width: 0; }
.x-ov > b { display: block; font-size: 31px; font-weight: 600; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.x-ov > small { display: block; font-size: 14.5px; color: var(--x-tx2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-g { color: var(--x-grnT); } .c-a { color: var(--x-ambT); } .c-r { color: var(--x-redT); } .c-m { color: #8C94A0; } .c-t { color: var(--x-ink); }
.x-ofoot { margin-top: 12px; font-size: 16px; color: var(--x-tx2); padding-left: 10px; }
.x-bempty { flex: 1; display: grid; place-items: center; font-size: 22px; color: var(--x-tx2); }
.x-bside { width: 500px; flex: none; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.x-pan { padding: 20px 24px 14px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.x-pan.grow { flex: 1; }
.x-ph2 { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.x-ph2 > h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.x-ph2 > span { font-size: 17px; color: var(--x-tx2); font-weight: 500; }
.x-wo { display: grid; grid-template-columns: 104px 52px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--x-line2); color: var(--x-ink); text-decoration: none; }
.x-bwho { height: 28px; border-radius: 999px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; background: var(--x-bluS); color: var(--x-bluT); white-space: nowrap; padding: 0 8px; overflow: hidden; }
.x-bwho.us { background: var(--x-red); color: #fff; }
.x-bjno { font-size: 14px; color: var(--x-tx2); font-family: var(--fm); }
.x-wt { min-width: 0; }
.x-wt > b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-wt > small { display: block; font-size: 14px; color: var(--x-tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-age { font-size: 16px; font-weight: 600; color: var(--x-tx2); white-space: nowrap; }
.x-age.late { color: var(--x-redT); }
.x-fn { display: grid; grid-template-columns: 96px 52px minmax(0,1fr); gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--x-line2); }
.x-fnt { min-width: 0; }
.x-fnt > b { display: block; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-bkd { height: 24px; padding: 0 9px; border-radius: 7px; background: var(--x-line2); color: var(--x-ink); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.x-fix { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; margin-top: 2px; }
.x-fix > span { font-size: 14px; color: var(--x-tx3); font-weight: 500; }
.x-fix > b { font-size: 14.5px; font-weight: 600; color: var(--x-tx2); }
.x-bnone { font-size: 17px; color: var(--x-tx2); padding: 8px 0; }
.x-week { height: 160px; flex: none; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.x-bday { border-radius: 22px; background: var(--x-card); padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: var(--x-sh); overflow: hidden; }
.x-bday.past { opacity: .6; }
.x-bday.now { background: var(--x-ink); color: #fff; }
.x-bdh { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 600; }
.x-bdh .x-dd { font-size: 16px; font-weight: 500; color: var(--x-tx2); }
.x-bday.now .x-bdh .x-dd { color: var(--x-ink); background: var(--x-lime); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.x-ev { display: grid; grid-template-columns: 88px 52px minmax(0,1fr); gap: 10px; align-items: center; font-size: 16.5px; font-weight: 500; white-space: nowrap; }
.x-ev .k { height: 24px; border-radius: 7px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; background: var(--x-line2); color: var(--x-ink); }
.x-ev .k.mt { background: var(--x-bluS); color: var(--x-bluT); } .x-ev .k.ly { background: var(--x-ink); color: #fff; } .x-ev .k.x-lt { background: var(--x-red); color: #fff; } .x-ev .k.ko { background: var(--x-lime); color: var(--x-ink); } .x-ev .k.fd { background: var(--x-grnS); color: var(--x-grnT); }
.x-bday.now .x-ev .k { background: rgba(255,255,255,.12); color: #fff; }
.x-bday.now .x-ev .k.ko, .x-bday.now .x-ev .k.x-lt { background: var(--x-lime); color: var(--x-ink); }
.x-ev .jno { font-size: 14px; color: var(--x-tx2); font-family: var(--fm); }
.x-bday.now .x-ev .jno { color: rgba(255,255,255,.66); }
.x-ev .tx { overflow: hidden; text-overflow: ellipsis; }
.x-ev.done .tx { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--x-tx2); }
.x-bwrap { padding: 0 12px 12px; }
.x-bfit { width: 1920px; transform-origin: 0 0; }
.x-tvx { position: fixed; right: 14px; bottom: 14px; z-index: 10; opacity: .35; }
.x-tvx:hover { opacity: 1; }

/* ---------------- toast, the kept dialogs and drawers in the 2.0 look ---------------- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--x-ink); color: #fff; padding: 12px 18px 12px 34px; border-radius: 999px; font-weight: 500; z-index: 200; max-width: calc(100vw - 24px); box-shadow: 0 20px 50px rgba(13,17,23,.3); font-size: 14px; border: 0; }
#toast::before { content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--x-lime); }
.modal { border-radius: 24px !important; box-shadow: var(--x-pop) !important; }
.b, .btn { border-radius: 999px; font-weight: 500; }
.b.sm, .btn.small, .btn.sm { border-radius: 999px; }
html body .dd { top: 12px; right: 12px; bottom: 12px; width: min(480px, calc(100% - 24px)); border-radius: 26px; border: 0; z-index: 70; box-shadow: 0 30px 80px rgba(13,17,23,.28), 0 0 0 1px rgba(13,17,23,.06); overflow: hidden; }
@media (max-width: 820px) { html body .dd { top: 8px; right: 8px; bottom: 8px; width: calc(100% - 16px); } }

/* ---------------- mobile ---------------- */
@media (max-width: 1100px) {
  .x-fpage { grid-template-columns: minmax(0,1fr); }
  .x-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: none; }
  .x-zl { width: 100%; }
}
@media (max-width: 820px) {
  .x-shell { margin: 8px 8px 0; border-radius: 22px; }
  .x-top { gap: 10px; padding: 10px 12px; }
  .x-srch { width: auto; flex: 1 1 140px; }
  .x-srch .x-st3, .x-sync span { display: none; }
  .x-hero { padding: 14px 16px 16px; gap: 14px; }
  .x-hero h1 { font-size: 34px; }
  .x-ttl h1 { font-size: 30px; }
  .x-tabs { padding: 0 10px 12px; overflow-x: auto; flex-wrap: nowrap; }
  .x-shell a.x-tab { padding: 0 13px; height: 36px; font-size: 13.5px; flex: none; }
  .x-page { padding: 14px 12px 32px; }
  .x-lc { width: 150px; }
  .x-ovl { left: 150px; }
  .x-trow { grid-template-columns: 84px minmax(0,1fr) auto; }
  .x-trow .x-tag { grid-column: 2 / 4; justify-self: start; }
  .x-fun { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .x-wk { grid-template-columns: minmax(0,1fr); }
  .x-day2 { min-height: 0; }
  .x-kv { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .x-tot { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .x-big { font-size: 64px; }
  .x-sheet { top: 8px; right: 8px; bottom: 8px; max-width: calc(100% - 16px); }
  .x-rail { max-width: none; }
  .x-iss { grid-template-columns: 34px minmax(0,1fr) auto; }
  .x-iss .x-gridref, .x-iss .x-pty { display: none; }
  .x-sr { grid-template-columns: minmax(0,1fr); }
  .x-sr .x-snote, .x-sr .x-ned { grid-column: 1; }
  .x-addsp .row2 { grid-template-columns: minmax(0,1fr); }
  .x-seg { flex: 0 1 auto; max-width: 100%; }
  .x-tbl { min-width: 0 !important; }
  .x-g { grid-template-columns: minmax(0,1fr) auto 18px; row-gap: 6px; }
  .x-g.x-th { display: none; }
  .x-g > :nth-child(2), .x-g > :nth-child(4), .x-g > :nth-child(6) { display: none; }
  .x-g > :nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .x-g > :nth-child(5) { grid-column: 2; grid-row: 1; }
  .x-g > :nth-child(7) { grid-column: 3; grid-row: 1 / 3; }
  .x-zh { flex-wrap: wrap; row-gap: 8px; } .x-zh .x-zfd { order: 9; width: 100%; }
}

/* ---------- small additions ---------- */
.x-go2 { color: var(--x-tx3); flex: none; }
.x-legacy { min-width: 0; }
.x-legacy .fsec:first-child { padding-top: 4px; }
.x-tvx { font: 600 12px/1 var(--f); color: var(--x-tx2); background: #fff; border: 1px solid var(--x-line); border-radius: 8px; padding: 8px 12px; text-decoration: none; }
.x-fdoff { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--x-ambS, #FEF0C7); color: var(--x-ambT, #93590A); font-size: 12.5px; font-weight: 600; }
.x-fdoff span { flex: 1; }
.x-fdoff .x-btn { height: 30px; font-size: 12.5px; }
.x-b.nr { min-width: 16px; padding: 0; justify-content: center; overflow: visible; border-radius: 8px; }
.x-b.nr .bl, .x-b.nr .pips, .x-b.nr .bp { display: none; }
.x-b.nr .x-hbd, .x-b.nr .rvb { left: calc(100% + 4px); right: auto; top: 6px; }
/* Gantt rows: each bar's lane comes from the row packer (inline top), so nothing on a row overlaps. A narrow bar is a
   16 px capsule; when its name sits past its end, the badge rides along after the name. */
.x-b.spill { padding: 0; min-width: 16px; border-radius: 8px; justify-content: center; }
.x-b.spill .pips, .x-b.spill .bp { display: none; }
.x-b.spill.w .bl { color: var(--x-tx2); font-weight: 500; }
.x-b.spill.late .bl { color: var(--x-redT); } .x-b.spill.risk .bl { color: var(--x-ambT); } .x-b.spill.ext .bl { color: var(--x-bluT); }
.x-b.spill .bl { display: flex; align-items: center; gap: 6px; }
.x-b.spill .bl .x-hbd, .x-b.spill .bl .rvb { position: static; flex: none; }
.x-b.spill.sl .bl { left: auto; right: 100%; margin-left: 0; margin-right: 8px; }
/* badges on a bar sit in one row: holds, drawings in review (IFR), else the latest revision */
.x-b .x-bds { position: absolute; right: 5px; top: 5px; display: flex; gap: 3px; z-index: 2; }
.x-b .x-bds .x-hbd, .x-b .x-bds .rvb { position: static; }
.x-b.spill .bl .x-bds { position: static; }
.x-dz .x-b .x-bds { top: 4px; }
.x-ibd { height: 18px; padding: 0 6px; border-radius: 9px; background: var(--x-ink); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; letter-spacing: .02em; white-space: nowrap; }
.x-b.ext .x-ibd { background: var(--x-blu); }
.x-btn .n.rv { background: var(--x-ink); }
/* start and length rows in the sheets */
.x-dts { display: flex; flex-direction: column; }
.x-dtr { display: grid; grid-template-columns: minmax(0,1fr) 140px 128px; grid-template-areas: "n s w" "e e r"; column-gap: 8px; row-gap: 4px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--x-line2); }
.x-dtr:last-child { border-bottom: 0; }
.x-dtn { grid-area: n; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-dtr .x-dsi { grid-area: s; width: 140px; padding: 0 8px; }
.x-dtr .x-dsel { grid-area: w; width: 128px; padding: 0 8px; }
.x-dte { grid-area: e; font-size: 12px; color: var(--x-tx2); }
.x-dtr > .x-mini, .x-dtr > span:last-child { grid-area: r; justify-self: end; }
/* a whole-job as-built: one band down the whole Gantt */
.x-ovl.x-bandw { z-index: 2; }
.x-asb { position: absolute; top: 6px; bottom: 6px; min-width: 26px; border: 0; border-radius: 10px; padding: 10px 0; cursor: pointer; pointer-events: auto; display: flex; justify-content: center; font-family: var(--f); color: var(--x-ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--x-ink); transition: opacity .25s; }
.x-asb.w { color: var(--x-tx2); box-shadow: inset 0 0 0 1.5px #C7CDD5; background-color: #fff; background-image: repeating-linear-gradient(135deg, rgba(13,17,23,.04) 0 2px, transparent 2px 7px); }
.x-asb.d { background: var(--x-ink2); color: #fff; box-shadow: none; }
.x-asb.late { box-shadow: inset 0 0 0 1.5px var(--x-red); color: var(--x-redT); background: #FFF7F7; }
.x-asb.risk { box-shadow: inset 0 0 0 1.5px var(--x-amb); color: var(--x-ambT); background: #FFFBF2; }
.x-asb.ext { box-shadow: inset 0 0 0 1.5px var(--x-blu); color: var(--x-bluT); background: #F7F9FF; }
.x-asb:hover { box-shadow: inset 0 0 0 1.5px var(--x-ink), 0 0 0 3px rgba(13,17,23,.12); }
.x-asb.edge { border-radius: 10px 0 0 10px; }
.x-asbl { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 600; white-space: nowrap; }
.x-holdmode .x-asb.dim { opacity: .18; }
/* Gantt grid (both schedules): the names sit in a tinted left pane with a thick edge; thick lines run across
   between zones; a level break is a line in the pane only; weeks read at a glance */
:root { --x-pane: #EDF0F4; --x-paneE: #9DA7B4; --x-zline: #B7BFC9; }
.x-gh > .x-lc, .x-zr > .x-lc, .x-lvh > .x-lc, .x-jr > .x-lc, .x-dz > .x-lc, .x-mr > .x-lc { background: var(--x-pane); border-right: 2px solid var(--x-paneE); }
.x-gh { border-bottom: 2px solid var(--x-paneE); }
.x-zr { border-top: 2px solid var(--x-zline); }
.x-zr.sel > .x-lc { background: #E8EFCF; }
.x-zr > .x-lc .x-zbtn:hover, .x-dz > .x-lc .x-zbtn:hover { background: #E1E6ED; }
.x-lvh { border-top: 0; padding: 0; gap: 0; }
.x-lvh > .x-lc { height: 100%; display: flex; align-items: center; padding-left: 12px; border-top: 2px solid var(--x-paneE); }
.x-lvh:first-child > .x-lc { border-top: 0; }
.x-lvh span { background: transparent; padding-right: 0; }
.x-lvh > .x-tk { height: 100%; }
.x-wl { border-left-color: #CDD3DB; }
.x-wband { background: rgba(13,17,23,.035); }
.x-rows { border-bottom: 2px solid var(--x-zline); }
.x-dz, .x-mr { border-bottom: 2px solid var(--x-zline); }
.x-jr { border-bottom: 2px solid var(--x-paneE); }
.x-gh > .x-lc { padding-left: 12px; }
.x-dz > .x-lc .x-zbtn .x-zb, .x-jr > .x-lc .x-jno { background: #fff; }
