/* Navdisha Pragati. A working tool, styled like one: hairline rules, a deep violet side bar, round faces, violet where
   you act and amber for target dates. Status colours (late, waiting, in progress, done) carry the meaning; lanes colour the Gantt. */
:root {
  --brand: #7C3AED; --brand-dark: #5B21B6; --brand-tint: #EDE5FF;
  --bg: #F1EEF7; --surface: #FFFFFF; --sunk: #F7F5FB; --hover: #F1ECFA;
  --line: #E2DDEB; --line-2: #C6BED6; --ink: #1A1625; --ink-2: #3E3850; --ink-3: #6A6380; --ink-4: #9C96AE;
  --side: #1E1633; --side-2: #2E2448; --side-ink: #CFC8E2;
  --todo: #ECECEA; --todo-ink: #3A3B3D; --todo-dot: #9A9A96;
  --work: #E3E4FD; --work-ink: #3730A3; --work-dot: #4F46E5;
  --wait: #FDEFC8; --wait-ink: #6B4500; --wait-dot: #D99A00;
  --done: #DDF3E4; --done-ink: #0C5A2E; --done-dot: #1E8E4E;
  --late: #C0271D; --late-bg: #FBE2E0; --soon: #A35F00; --soon-bg: #FFF2D9;
  --clash: #FFE9E7;
  --focus: #7C3AED;
  --head: Bahnschrift, "DIN Alternate", "Segoe UI Semibold", "Segoe UI", sans-serif;
  --side-w: 216px;
  --r-sm: 2px; --r: 3px; --r-lg: 4px; --ease: cubic-bezier(.2,.8,.25,1);
  --shadow-1: 0 1px 2px rgba(16,17,19,.06), 0 1px 1px rgba(16,17,19,.04);
  --shadow-2: 0 6px 20px rgba(16,17,19,.10), 0 2px 6px rgba(16,17,19,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: 0; }
h1 { font-size: 26px; line-height: 1.15; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 10px; }
.eyebrow { font-family: var(--head); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 4px; }

/* ---------- side bar: a warm hello, soft rounded buttons, and a small round toggle on its edge that folds it down to
   icons (for everyone; the choice is remembered on this computer) */
#side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30; display: flex; flex-direction: column;
  background: radial-gradient(120% 40% at 0 0, #3A2766 0%, transparent 70%), linear-gradient(180deg, #24183F 0%, #1A1330 100%);
  color: var(--side-ink); transition: width .2s var(--ease);
}
#app { transition: margin-left .2s var(--ease); }
body.side-shut { --side-w: 72px; }
.side-tog {
  position: absolute; top: 50%; right: -13px; margin-top: -13px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); display: grid; place-items: center; padding: 0; box-shadow: var(--shadow-1); z-index: 2;
  transition: transform .2s var(--ease), background-color .15s;
}
.side-tog:hover { background: var(--brand-tint); color: var(--brand-dark); }
.side-tog .ic { width: 14px; height: 14px; }
body.side-shut .side-tog { transform: rotate(180deg); }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 6px; text-decoration: none; }
.brand .word { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--head); font-size: 20px; color: #fff; font-weight: 600; letter-spacing: .02em; }
.brand .word small { font-family: "Segoe UI", sans-serif; font-size: 10.5px; font-weight: 600; color: #9FB7D1; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.hello { margin: 8px 16px 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; font-size: 13.5px; line-height: 1.3; }
.hello small { display: block; color: #9FB7D1; font-size: 11.5px; margin-top: 2px; }
.new-btn {
  margin: 10px 12px 6px; padding: 9px 12px; border: 0; border-radius: 12px; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #3B7BC4, #174C88); box-shadow: 0 4px 14px rgba(31,95,168,.4);
  display: flex; align-items: center; gap: 10px; transition: transform .12s var(--ease), box-shadow .15s;
}
.new-btn .ni { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.new-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31,95,168,.5); }
#side nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
#side nav a, #side .nav-cal {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; text-decoration: none; font-weight: 600;
  color: var(--side-ink); background: none; border: 0; width: 100%; text-align: left; position: relative;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
#side .nav-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.06); transition: background-color .15s; }
#side nav a:hover, #side .nav-cal:hover { background: rgba(255,255,255,.07); color: #fff; }
#side nav a.on, #side .nav-cal.on { background: rgba(167,139,250,.16); color: #fff; }
#side nav a.on .nav-ic { background: var(--brand); box-shadow: 0 3px 10px rgba(31,95,168,.45); }
#side .nav-cal.on .nav-ic { background: #F59E0B; }
#side .nav-cal { margin: auto 10px 0; width: auto; }
.badge { margin-left: auto; background: #F43F5E; color: #fff; font-size: 11px; font-weight: 700; padding: 0 7px; min-width: 20px; text-align: center; line-height: 19px; border-radius: 10px; }
.me-btn {
  display: flex; align-items: center; gap: 10px; margin: 8px 10px 12px; padding: 8px 10px; border-radius: 14px; text-align: left;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: #fff; transition: background-color .15s;
}
.me-btn:hover { background: rgba(255,255,255,.11); }
.me-face { position: relative; flex: none; }
.me-face .av { width: 36px; height: 36px; box-shadow: 0 0 0 2px #3A2766; }
.me-face::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 2px #14202E; }
.me-btn .lbl { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.me-btn b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-btn small { color: #9FB7D1; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-btn > .ic { opacity: .6; }
/* folded: icons only, labels as tooltips */
body.side-shut #side .lbl, body.side-shut .brand .word, body.side-shut .hello, body.side-shut .me-btn > .ic { display: none; }
body.side-shut .brand { justify-content: center; padding: 16px 0 6px; }
body.side-shut .new-btn { justify-content: center; margin: 10px 12px 6px; padding: 7px 0; }
body.side-shut #side nav a, body.side-shut #side .nav-cal { justify-content: center; padding: 6px 0; }
body.side-shut .badge { position: absolute; top: 0; right: 4px; min-width: 17px; line-height: 16px; font-size: 10px; padding: 0 4px; }
body.side-shut .me-btn { justify-content: center; padding: 8px 0; }
#app { margin-left: var(--side-w); min-height: 100vh; }
#side[hidden] + #app { margin-left: 0; }
#offline { background: #FFE58A; color: var(--ink); text-align: center; padding: 8px; font-weight: 600; border-bottom: 1px solid #D9B400; }

/* ---------- layout */
main { max-width: 1480px; margin: 0 auto; padding: 22px 24px 110px; }
.loading { color: var(--ink-3); padding: 40px; text-align: center; }
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .lede { color: var(--ink-2); margin: 4px 0 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-h .link { margin-left: auto; }
.empty { color: var(--ink-3); padding: 22px 16px; text-align: center; margin: 0; }
.link { background: none; border: 0; color: var(--ink-2); font-weight: 600; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.link:hover { color: var(--brand); }

/* ---------- buttons, inputs */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface);
  padding: 6px 12px; font-weight: 600; white-space: nowrap; text-decoration: none; line-height: 1.3;
}
.btn:hover { background: var(--hover); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); border-color: var(--line); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn.xs { padding: 2px 7px; font-size: 12px; gap: 4px; }
.btn.xs .ic { width: 13px; height: 13px; vertical-align: -2px; }
.btn.wide { width: 100%; justify-content: center; padding: 10px; }
.btn.danger { color: var(--late); }
.icon-btn { border: 1px solid transparent; background: transparent; padding: 4px; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--hover); border-color: var(--line); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-2); }
label > input, label > select, label > textarea { margin-top: 4px; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line-2); background: #fff; padding: 7px 9px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
textarea { resize: vertical; min-height: 60px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--ink-3); font-size: 12.5px; margin: 8px 0 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--ink); color: #fff; }

/* ---------- chips, tags, avatars, status */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-2); background: var(--surface); padding: 4px 10px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag { display: inline-block; background: var(--sunk); border: 1px solid var(--line); color: var(--ink-2); padding: 0 6px; font-size: 12px; font-weight: 600; margin: 0 4px 4px 0; }
.st-todo { background: var(--todo); color: var(--todo-ink); }
.st-work { background: var(--work); color: var(--work-ink); }
.st-wait { background: var(--wait); color: var(--wait-ink); }
.st-done { background: var(--done); color: var(--done-ink); }
.st-sq { width: 10px; height: 10px; flex: none; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.st-sq.st-todo { background: var(--todo-dot); } .st-sq.st-work { background: var(--work-dot); } .st-sq.st-wait { background: var(--wait-dot); } .st-sq.st-done { background: var(--done-dot); }
.sq { width: 10px; height: 10px; flex: none; display: inline-block; }
.due { font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink-3); }
.due b { color: var(--ink); margin-right: 2px; }
.due.late, .due.late b { color: var(--late); } .due.soon { color: var(--soon); } .due.done { color: var(--done-ink); }
small.late, .late { color: var(--late); } small.soon { color: var(--soon); } small.done { color: var(--done-ink); }
.health { font-size: 12px; font-weight: 700; padding: 1px 7px; border: 1px solid; white-space: nowrap; }
.health.ok { color: var(--done-ink); border-color: #9FD3B2; background: var(--done); }
.health.late { color: var(--late); border-color: #EBB0AB; background: var(--late-bg); }
.health.wait { color: var(--wait-ink); border-color: #E8C979; background: var(--wait); }
/* Faces: round, with a soft light from the top and a thin white ring, so they sit on any background */
.av {
  width: 30px; height: 30px; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  flex: none; font-family: var(--head); letter-spacing: .02em; border-radius: 50%; overflow: hidden; user-select: none;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.18); text-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.av.face { text-shadow: none; }
.av.face svg { width: 100%; height: 100%; display: block; }
.av.sm { width: 26px; height: 26px; font-size: 11px; }
.av.xs { width: 22px; height: 22px; font-size: 10px; }
.av.lg { width: 52px; height: 52px; font-size: 18px; }
.av.xl { width: 84px; height: 84px; font-size: 30px; }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who > span:last-child { min-width: 0; }
.bar { width: 80px; height: 6px; background: var(--sunk); border: 1px solid var(--line); display: inline-block; vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--done-dot); }
.load { width: 90px; height: 8px; background: var(--sunk); border: 1px solid var(--line); display: inline-block; vertical-align: middle; margin-right: 6px; }
.load i { display: block; height: 100%; background: var(--ink-2); }

/* ---------- Today: a board of my steps by when they are due, then my projects */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: start; }
@media (max-width: 1200px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }
.bcol { background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; min-width: 0; --c: var(--ink-3); }
.bcol.late { --c: var(--late); } .bcol.soon { --c: var(--wait-dot); } .bcol.work { --c: var(--work-dot); } .bcol.calm { --c: var(--done-dot); }
.bcol > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.bcol > header i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.bcol > header h2 { font-size: 14.5px; flex: 1; }
.bcol > header h2 small { display: block; font-family: inherit; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.bcol > header .n { font-family: var(--head); font-weight: 600; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; color: var(--c); }
.bcards { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 10px; max-height: 470px; overflow-y: auto; }
.bempty { margin: 4px 4px 6px; color: var(--ink-4); font-size: 12.5px; }
.tcard { display: flex; gap: 8px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 4px; padding: 8px 6px 8px 8px; transition: box-shadow .15s, transform .15s; }
.tcard:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.tc-done { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 3px; border: 2px solid var(--line-2); background: #fff; color: transparent; display: flex; align-items: center; justify-content: center; padding: 0; transition: all .15s; }
.tc-done .ic { width: 13px; height: 13px; }
.tc-done:hover { border-color: var(--done-dot); background: var(--done); color: var(--done-ink); }
.tc-main { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.tc-main > b { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.tc-main:hover > b { color: var(--brand); }
.tc-proj { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.tc-proj i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tc-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tc-main small { color: var(--ink-3); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-msg { flex: none; border-radius: 3px; }
.st-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 4px; white-space: nowrap; line-height: 18px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 12px; }
.pcard2 { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; text-align: left; border: 1px solid var(--line); border-top: 4px solid var(--pc); background: #fff; border-radius: 4px; padding: 10px 12px; transition: box-shadow .15s; }
.pcard2:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.pcard2 b { font-size: 14px; }
.pcard2 small { color: var(--ink-3); font-size: 12px; }

table.plain { width: 100%; border-collapse: collapse; }
table.plain th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 7px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--sunk); }
table.plain td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.plain tr:last-child td { border-bottom: 0; }
table.plain tr.click { cursor: pointer; }
table.plain tr.click:hover td { background: var(--sunk); }
td.num, th.num { text-align: right; }
td .sub, .who .sub { color: var(--ink-3); font-size: 12px; display: block; }
.who b { display: block; white-space: nowrap; }
.indent { display: inline-block; width: 16px; color: var(--ink-4); }
.table-scroll { overflow-x: auto; }

/* calendar: a small pop-up that grows out of the Calendar button. It stays open while you work (no dimming), so you can
   click a date to copy it and paste it into a form. Saturdays and Sundays are tinted: they are mostly holidays. */
.cal-drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.cal-panel {
  position: absolute; left: calc(var(--side-w) + 12px); bottom: 14px; width: 440px; max-width: calc(100vw - 16px); background: #fff;
  border-radius: 16px; box-shadow: 0 18px 50px rgba(30,22,51,.28), 0 2px 8px rgba(30,22,51,.12); border: 1px solid var(--line);
  overflow: hidden; opacity: 0; transform: translateY(14px) scale(.96); transform-origin: 0 100%; pointer-events: none;
  transition: opacity .2s var(--ease), transform .26s cubic-bezier(.2,.9,.25,1.1);
}
.cal-drawer.open .cal-panel { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 700px) { .cal-panel { left: 8px; right: 8px; bottom: 8px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cal-panel { transition: none; } }
.gc-h { display: flex; align-items: center; gap: 4px; padding: 10px 10px 6px 14px; }
.gc-h h2 { font-size: 16px; font-weight: 600; color: var(--ink); flex: 1; margin-left: 6px; }
.gc-today { border: 1px solid var(--line-2); background: #fff; border-radius: 14px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.gc-today:hover { background: var(--hover); }
.gc-nav, .gc-close { border: 0; background: transparent; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.gc-nav:hover, .gc-close:hover { background: var(--hover); color: var(--ink); }
.gc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 8px 4px; gap: 2px; }
.gc-dow { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--ink-4); padding: 4px 0; letter-spacing: .06em; text-transform: uppercase; }
.gc-dow.sat, .gc-day.sat .gc-n { color: #B45309; }
.gc-dow.sun, .gc-day.sun .gc-n { color: #C0271D; }
.gc-day { height: 52px; border-radius: 10px; padding: 4px 2px 3px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; cursor: pointer; transition: background .15s, transform .12s; user-select: none; }
.gc-day:hover { background: var(--hover); transform: scale(1.06); }
.gc-day.sat { background: #FFF4E0; } .gc-day.sun { background: #FDE8E8; }
.gc-day.sat:hover { background: #FFE9C2; } .gc-day.sun:hover { background: #FBD5D5; }
.gc-day.out { opacity: .4; }
.gc-day.copied { animation: copied .5s var(--ease); }
@keyframes copied { 0% { box-shadow: 0 0 0 0 rgba(31,95,168,.55); } 100% { box-shadow: 0 0 0 10px rgba(31,95,168,0); } }
.gc-n { font-size: 12.5px; font-weight: 600; color: var(--ink-2); min-width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; white-space: nowrap; }
.gc-day.today .gc-n { background: var(--brand); color: #fff !important; }
.gc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 100%; }
.gc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.gc-dot.team { opacity: .45; } .gc-dot.done { background: #9CA3AF; opacity: .6; } .gc-dot.late { background: #D93025; }
.gc-dot.end { border-radius: 2px; transform: rotate(45deg); }
.gc-more { font-size: 9.5px; font-weight: 700; color: var(--ink-3); line-height: 7px; }
.gc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; padding: 6px 12px 4px; font-size: 11px; color: var(--ink-3); }
.gc-legend span { display: inline-flex; gap: 5px; align-items: center; }
.gc-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #7C3AED; }
.gc-legend i.team { opacity: .45; } .gc-legend i.late { background: #D93025; } .gc-legend i.end { border-radius: 2px; transform: rotate(45deg); }
.gc-legend i.sat { background: #FFE9C2; border: 1px solid #F5C77E; } .gc-legend i.sun { background: #FBD5D5; border: 1px solid #F0A8A8; }
.gc-tip { margin: 0; padding: 4px 12px 10px; text-align: center; font-size: 11.5px; color: var(--ink-4); }
.gc-card { position: fixed; z-index: 75; width: 320px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 4px; box-shadow: 0 8px 28px rgba(60,64,67,.28), 0 1px 3px rgba(60,64,67,.15); padding: 14px 16px; animation: cardIn .14s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.gc-card-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.gc-card-h b { font-size: 18px; font-weight: 500; color: #3C4043; }
.gc-card-d { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #70757A; font-weight: 600; }
.gc-card-h em { font-style: normal; font-size: 11px; color: var(--brand); font-weight: 700; }
.gc-item { cursor: pointer; display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid #F1F3F4; }
.gc-item > i { width: 12px; height: 12px; border-radius: 4px; flex: none; margin-top: 4px; }
.gc-item b { display: block; font-weight: 600; color: #202124; font-size: 13.5px; }
.gc-item small { display: block; color: #5F6368; font-size: 12px; }
.gc-item .gc-proj { color: #3C4043; font-weight: 600; }
.gc-item p { margin: 4px 0; font-size: 12.5px; color: #3C4043; background: #F8F9FA; border-radius: 4px; padding: 4px 8px; }
.gc-prog { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #5F6368; margin-top: 3px; }
.gc-prog .bar { border-radius: 4px; overflow: hidden; border: 0; background: #E8EAED; }

/* ---------- Planner */
.toolbar { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.filters:first-child { margin-left: 0; }
.filters select { width: auto; min-width: 150px; max-width: 260px; padding: 5px 8px; }
.search-box { display: inline-flex; align-items: center; border: 1px solid var(--line-2); background: #fff; padding-left: 8px; color: var(--ink-3); }
.search-box input { border: 0; padding: 5px 8px; width: 190px; }
.search-box input:focus { box-shadow: none; }
.search-box:focus-within { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }

.sheet-wrap { background: var(--surface); border: 1px solid var(--line-2); overflow-x: auto; }
table.sheet { border-collapse: collapse; width: 100%; min-width: 1550px; font-size: 13.5px; table-layout: fixed; }
table.sheet th {
  background: #E4E4E0; color: var(--ink-2); font-weight: 700; font-size: 12px; text-align: left; padding: 6px 8px;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.sheet td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; height: 34px; vertical-align: middle; }
table.sheet td.ck, table.sheet th.ck { width: 34px; text-align: center; }
table.sheet td.when { padding: 0 8px; white-space: nowrap; overflow: hidden; }
table.sheet td.act { text-align: center; white-space: nowrap; }
table.sheet td.name-cell { position: relative; }
table.sheet input[type=date].cell { padding: 0 4px; font-size: 13px; }
table.sheet .cell { width: 100%; height: 33px; border: 0; background: transparent; padding: 0 8px; outline: none; }
table.sheet select.cell { padding: 0 4px; }
table.sheet .cell:focus { box-shadow: inset 0 0 0 2px var(--focus); background: #fff; }
table.sheet .cell:disabled { color: var(--ink); opacity: 1; cursor: default; -webkit-text-fill-color: var(--ink); }
table.sheet select.cell:disabled { appearance: none; }
table.sheet select.status { font-weight: 700; font-size: 12.5px; }
table.sheet tr.row:hover td { background: #FAFAF7; }
table.sheet tr.row.sel td { background: #E6EEF8; }
table.sheet tr.row.is-late td.due-cell input { color: var(--late); font-weight: 700; -webkit-text-fill-color: var(--late); }
table.sheet tr.row.is-late td.ck { box-shadow: inset 3px 0 0 var(--late); }
table.sheet tr.row.is-done td:not(.ck):not(.act) .cell:not(.status) { color: var(--ink-3); -webkit-text-fill-color: var(--ink-3); }
table.sheet tr.row.is-clash td.name-cell .cell { padding-right: 28px; }
.clash-ic { position: absolute; right: 6px; top: 8px; color: var(--late); display: flex; cursor: help; }
table.sheet tr.grp td { background: #F4F4F1; padding: 7px 10px; border-right: 0; height: auto; border-top: 2px solid var(--line-2); }
.grp-line { display: flex; align-items: center; gap: 6px 9px; flex-wrap: wrap; }
table.sheet .grp-line { position: sticky; left: 10px; width: min(100%, calc(100vw - var(--side-w) - 70px)); }
.grp-line .tog { padding: 2px; }
.grp-line input[type=checkbox] { margin: 0; }
.grp-line .pname { font-family: var(--head); font-weight: 600; font-size: 15px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grp-line .meta { color: var(--ink-3); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
@keyframes flash { 0%, 40% { background: #FFF1A8; } 100% { background: transparent; } }
tr.flash td, .g-row.flash .g-label { animation: flash 2.6s ease-out; }

/* gantt */
.gantt { background: var(--surface); border: 1px solid var(--line-2); overflow: auto; max-height: calc(100vh - 230px); position: relative; }
.g-inner { position: relative; }
.g-head { display: flex; position: sticky; top: 0; z-index: 5; background: #E4E4E0; border-bottom: 1px solid var(--line-2); }
.g-corner { width: var(--lw); flex: none; position: sticky; left: 0; z-index: 6; background: #E4E4E0; border-right: 1px solid var(--line-2); padding: 0 10px 6px; display: flex; align-items: flex-end; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.g-scale { position: relative; height: 46px; flex: none; }
.g-months { position: relative; height: 20px; border-bottom: 1px solid var(--line); }
.g-m { position: absolute; top: 2px; padding-left: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); border-left: 1px solid var(--line-2); white-space: nowrap; }
.g-days { position: relative; height: 26px; }
.g-d { position: absolute; top: 0; width: var(--dw); height: 26px; text-align: center; font-size: 9.5px; color: var(--ink-3); line-height: 1.1; padding-top: 2px; }
.g-d b { display: block; font-size: 11px; color: var(--ink-2); }
.g-d.sun { color: var(--ink-4); } .g-d.sun b { color: var(--ink-4); }
.g-d.tod { background: var(--brand); color: #fff; } .g-d.tod b { color: #fff; }
.g-body { position: relative; }
.g-bg { position: absolute; left: var(--lw); top: 0; bottom: 0; pointer-events: none; }
.g-sun { position: absolute; top: 0; bottom: 0; width: var(--dw); background: repeating-linear-gradient(135deg, #F1F1EE 0 4px, #FAFAF8 4px 8px); }
.g-wk { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); z-index: 2; }
.g-row { display: flex; min-height: 32px; border-bottom: 1px solid var(--line); position: relative; }
.g-row.sel .g-label { background: #E6EEF8; }
.g-label { width: var(--lw); flex: none; position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--line-2); display: flex; align-items: center; gap: 7px; padding: 0 8px 0 26px; min-width: 0; }
.g-label input { margin: 0; }
.g-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.g-due { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; font-weight: 600; }
.g-due.late { color: var(--late); }
.g-grp .g-label { background: #F4F4F1; padding: 6px 8px; }
.g-grp { background: #F4F4F1; border-top: 2px solid var(--line-2); }
.g-track { position: relative; flex: 1; }
.g-sum { position: absolute; top: 50%; height: 8px; margin-top: -4px; background: var(--ink-2); }
.g-sum::before, .g-sum::after { content: ""; position: absolute; bottom: -5px; border: 5px solid transparent; border-top-color: var(--ink-2); }
.g-sum::before { left: 0; border-left-color: var(--ink-2); } .g-sum::after { right: 0; border-right-color: var(--ink-2); }
.g-bar {
  position: absolute; top: 5px; height: 21px; display: flex; align-items: center; padding: 0 6px; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; border: 1px solid rgba(0,0,0,.18); z-index: 1; user-select: none; touch-action: none;
}
.g-bar.st-todo { background: #D9D9D5; } .g-bar.st-work { background: var(--work-dot); color: #fff; } .g-bar.st-wait { background: var(--wait-dot); color: #2B1C00; } .g-bar.st-done { background: var(--done-dot); color: #fff; }
.g-bar.late { box-shadow: inset 0 -3px 0 var(--late); }
.g-bar.clash { outline: 2px solid var(--late); outline-offset: 1px; }
.g-bar.ed { cursor: grab; }
.g-bar.dragging { cursor: grabbing; opacity: .85; z-index: 3; box-shadow: 0 4px 12px rgba(0,0,0,.25); overflow: visible; }
.g-bar.dragging::after { content: attr(data-tip); position: absolute; left: 0; top: -24px; background: var(--ink); color: #fff; padding: 2px 6px; font-size: 11.5px; white-space: nowrap; }
.g-h { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; background: rgba(0,0,0,.18); }
.g-bar span { pointer-events: none; overflow: hidden; text-overflow: ellipsis; }

/* ---------- chat (Messages page + dock): the familiar messenger layout (bubbles with tails, a soft wallpaper, a pill
   composer) in light purple. The --wa-* names are kept; their values are the violet family. */
:root { --wa-teal: #6D28D9; --wa-teal-dark: #5B21B6; --wa-green: #8B5CF6; --wa-send: #7C3AED; --wa-out: #EDE4FF; --wa-bg: #F5F1FB; --wa-bar: #F4F1FA; --wa-tick: #8B5CF6; }
.chat .av, #dock .av, .cm .av, .ibx-c .av { border-radius: 50%; }
.chat { display: grid; grid-template-columns: 330px minmax(0, 1fr); background: #fff; border: 1px solid #D1D7DB; border-radius: 4px; overflow: hidden; height: calc(100vh - 160px); min-height: 480px; box-shadow: 0 2px 10px rgba(11,20,26,.06); }
@media (max-width: 800px) { .chat { grid-template-columns: 1fr; height: auto; } .convs { max-height: 260px; } }
.convs { border-right: 1px solid #E9EDEF; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.convs-search { display: flex; align-items: center; gap: 8px; margin: 8px 10px; padding: 2px 12px; background: var(--wa-bar); border-radius: 4px; color: #54656F; }
.convs-search input { border: 0; padding: 7px 2px; background: transparent; }
.convs-search input:focus { box-shadow: none; }
.convs-list { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 12px; padding: 10px 14px; width: 100%; border: 0; background: transparent; text-align: left; align-items: center; position: relative; }
.conv::after { content: ""; position: absolute; left: 70px; right: 0; bottom: 0; border-bottom: 1px solid #E9EDEF; }
.conv .av { width: 46px; height: 46px; font-size: 15px; }
.conv:hover { background: #F5F6F6; }
.conv.on { background: #F0F2F5; }
.conv .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv .body b { font-weight: 500; font-size: 15.5px; color: #111B21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .body span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #667781; font-size: 13.5px; }
.conv.unread .body span { color: #111B21; font-weight: 600; }
.conv .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conv time { font-size: 12px; color: #667781; white-space: nowrap; }
.conv.unread time { color: var(--wa-green); font-weight: 600; }
.conv .n { background: var(--wa-green); color: #fff; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; padding: 0 6px; }
.conv-sep { font-size: 12px; font-weight: 600; color: var(--wa-teal); padding: 14px 16px 6px; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.notice-only { margin: 0; padding: 14px 16px; background: var(--wa-bar); border-top: 1px solid #E9EDEF; color: var(--ink-3); font-size: 13px; text-align: center; }
.thread-head { padding: 9px 16px; background: var(--wa-bar); display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #E9EDEF; }
.thread-head .av { width: 40px; height: 40px; }
.th-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.th-who b { font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-who span { font-size: 12.5px; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-head .right { display: flex; gap: 6px; }
.thread-head .btn { border-radius: 4px; border-color: #D1D7DB; }
.bubbles {
  flex: 1; overflow-y: auto; padding: 14px 6% 10px; display: flex; flex-direction: column; gap: 2px; min-height: 0;
  background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(0,0,0,.035) 1.2px, transparent 1.3px), radial-gradient(rgba(0,0,0,.025) 1px, transparent 1.1px);
  background-size: 22px 22px, 34px 34px; background-position: 0 0, 11px 17px;
}
.day-sep { text-align: center; margin: 10px 0 8px; }
.day-sep span { background: #fff; padding: 5px 12px; font-size: 12.5px; color: #54656F; border-radius: 4px; box-shadow: 0 1px .5px rgba(11,20,26,.13); text-transform: uppercase; letter-spacing: .02em; }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 72%; }
.msg.start { margin-top: 10px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .av { width: 28px; height: 28px; font-size: 11px; }
.av-sp { width: 28px; flex: none; }
.msg-b { background: #fff; padding: 6px 9px 8px; min-width: 70px; position: relative; border-radius: 4px; box-shadow: 0 1px .5px rgba(11,20,26,.13); color: #111B21; }
.msg.me .msg-b { background: var(--wa-out); }
.msg.them.start .msg-b { border-top-left-radius: 0; }
.msg.me.start .msg-b { border-top-right-radius: 0; }
.msg.them.start .msg-b::before { content: ""; position: absolute; left: -8px; top: 0; border-right: 8px solid #fff; border-bottom: 10px solid transparent; }
.msg.me.start .msg-b::before { content: ""; position: absolute; right: -8px; top: 0; border-left: 8px solid var(--wa-out); border-bottom: 10px solid transparent; }
.msg-b.pic { padding: 3px 3px 4px; }
.msg-b img { display: block; max-width: 260px; max-height: 240px; border-radius: 4px; }
.msg-t { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 14.2px; line-height: 1.38; }
.msg-tbl { overflow-x: auto; margin: 6px 0; max-width: 640px; }
.msg-tbl table { border-collapse: collapse; font-size: 12.5px; line-height: 1.35; background: #fff; }
.msg-tbl th { background: #25272B; color: #fff; font-weight: 600; text-align: left; padding: 5px 8px; white-space: nowrap; }
.msg-tbl td { border: 1px solid #D4D4D0; padding: 5px 8px; vertical-align: top; color: #1B1B1B; }
.msg-tbl td { white-space: nowrap; }
.msg-tbl td:first-child { font-weight: 600; white-space: normal; min-width: 160px; }
.msg-tbl td:last-child { white-space: normal; min-width: 140px; }
.msg-meta { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: #667781; white-space: nowrap; }
.msg-b.pic .msg-meta { float: none; display: block; text-align: right; margin: 2px 4px 0; }
.tick { color: #8696A0; letter-spacing: -3px; margin-left: 2px; }
.tick.read { color: var(--wa-tick); }
.msg-task { display: inline-flex; gap: 5px; align-items: center; border: 0; border-left: 3px solid var(--wa-teal); background: rgba(0,0,0,.05); color: #111B21; font-size: 12px; font-weight: 600; padding: 4px 8px; margin-bottom: 4px; max-width: 100%; border-radius: 4px; text-align: left; }
.msg-task .ic { width: 12px; height: 12px; color: var(--wa-teal); }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: #5B5470; background: #F3EEFF; border-radius: 4px; padding: 16px 22px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.chat-empty .av { border-radius: 50%; }
.chat-empty b { color: #111B21; font-size: 16px; margin-top: 6px; }
.chat-empty p { margin: 6px 0 0; font-size: 13px; }
.quick-wrap { position: relative; display: flex; align-items: center; background: var(--wa-bar); padding-top: 6px; }
.quick { display: flex; gap: 6px; padding: 2px 12px 6px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #C5CCD0 transparent; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.quick::-webkit-scrollbar { height: 5px; }
.quick::-webkit-scrollbar-thumb { background: #C5CCD0; border-radius: 3px; }
.quick-wrap.at-start .quick { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); }
.quick-wrap.at-end .quick { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
.quick-wrap.at-start.at-end .quick { -webkit-mask-image: none; mask-image: none; }
.qs { position: absolute; top: 50%; margin-top: -13px; z-index: 2; width: 28px; height: 28px; border-radius: 3px; border: 1px solid #D1D7DB; background: #fff; color: var(--wa-teal-dark);
  display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 6px rgba(11,20,26,.15); transition: opacity .15s, transform .15s; }
.qs:hover { transform: scale(1.1); background: #E6EEF8; }
.qs.prev { left: 4px; } .qs.next { right: 4px; }
.quick-wrap.at-start .qs.prev, .quick-wrap.at-end .qs.next { opacity: 0; pointer-events: none; }
.qr { border: 1px solid #D1D7DB; background: #fff; padding: 4px 12px; font-size: 13px; white-space: nowrap; color: var(--wa-teal-dark); border-radius: 4px; transition: background .12s; }
.qr:hover { background: #E6EEF8; border-color: var(--wa-send); }
.qr:active { background: var(--wa-send); color: #fff; }
.composer { display: flex; gap: 6px; padding: 8px 12px 10px; align-items: flex-end; background: var(--wa-bar); }
.composer .tools { display: flex; gap: 0; }
.composer .tools .icon-btn { width: 36px; height: 40px; color: #54656F; border-radius: 3px; border: 0; }
.composer .tools .icon-btn:hover { background: rgba(0,0,0,.06); }
.composer .tools .ic { width: 22px; height: 22px; }
.composer .gif { font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.composer textarea { min-height: 40px; height: 40px; max-height: 140px; resize: none; padding: 9px 14px; line-height: 1.4; border: 0; border-radius: 4px; background: #fff; font-size: 14.5px; }
.composer textarea:focus { box-shadow: none; }
.composer .send { width: 42px; height: 42px; border: 0; background: var(--wa-send); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; border-radius: 3px; transition: transform .12s, background .12s; }
.composer .send:hover { background: var(--wa-teal); }
.composer .send:active { transform: scale(.92); }

/* emoji and GIF popovers */
.pop { border-radius: 4px; overflow: hidden; position: fixed; z-index: 90; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.pop.emoji { width: 340px; max-width: calc(100vw - 16px); }
.emo { display: flex; flex-direction: column; height: 360px; max-height: 60vh; }
.emo-q { margin: 8px 8px 4px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 4px; font: inherit; background: var(--surface); color: var(--ink); }
.emo-q:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.emo-tabs { display: flex; gap: 2px; padding: 0 6px 4px; border-bottom: 1px solid var(--line); }
.emo-tabs button { flex: 1; border: 0; background: none; font-size: 18px; height: 32px; border-radius: 4px; cursor: pointer; }
.emo-tabs button:hover { background: var(--sunk); }
.emo-body { flex: 1; overflow-y: auto; padding: 0 6px 8px; overscroll-behavior: contain; position: relative; }
.emo-body h6 { margin: 8px 4px 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
.emo-grid button { border: 0; background: none; font-size: 22px; height: 38px; border-radius: 4px; cursor: pointer; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.emo-grid button:hover, .emo-grid button:focus-visible { background: var(--sunk); }
.emo-none { padding: 16px 8px; }
.pop.gifs { width: 380px; }
.gif-head { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-bottom: 1px solid var(--line); }
.gif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; max-height: 330px; overflow-y: auto; }
.gif-grid button { border: 1px solid var(--line); padding: 0; background: var(--sunk); aspect-ratio: 16 / 9; overflow: hidden; }
.gif-grid button:hover { outline: 2px solid var(--brand); }
.gif-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* quick-message button, dial and dock: round and soft */
#fab {
  position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; z-index: 40; border: 0; background: var(--wa-green); color: #fff; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s;
}
#fab .ic { width: 26px; height: 26px; }
#fab:hover { transform: scale(1.06); box-shadow: 0 10px 24px rgba(0,0,0,.26); }
#fab:active { transform: scale(.94); }
.fab-n { position: absolute; top: -2px; right: -2px; background: #F15C6D; color: #fff; font-size: 11.5px; font-weight: 700; min-width: 22px; height: 22px; line-height: 18px; text-align: center; padding: 0 5px; border: 2px solid #fff; border-radius: 4px; }
.dial-ov { position: fixed; inset: 0; z-index: 80; background: rgba(240,242,245,0); display: flex; align-items: center; justify-content: center; transition: background .25s, backdrop-filter .25s; }
.dial-ov.open { background: rgba(240,242,245,.72); backdrop-filter: blur(6px); }
.dial {
  --size: min(600px, 94vh); --r: calc(var(--size) * .4); position: relative; width: var(--size); height: var(--size); border-radius: 50%; background: #fff;
  box-shadow: 0 24px 60px rgba(11,20,26,.18), 0 2px 6px rgba(11,20,26,.08), inset 0 0 0 1px #E9EDEF;
  transform: translate(30vw, 32vh) scale(.1); opacity: 0; transition: transform .38s cubic-bezier(.2,.9,.25,1.08), opacity .22s;
}
.dial::after { content: ""; position: absolute; inset: 70px; border-radius: 50%; border: 1px dashed #E1E5E8; pointer-events: none; }
.dial-ov.open .dial { transform: none; opacity: 1; }
.dial-ov.picking .dial { transform: scale(1.04); opacity: 0; transition: transform .25s, opacity .25s; }
.dial-ring { position: absolute; inset: 0; transform: rotate(var(--turn, 0deg)); transition: transform .4s cubic-bezier(.3,1.25,.5,1); z-index: 1; }
.dial-p {
  position: absolute; left: 50%; top: 50%; width: 124px; height: 104px; margin: -40px 0 0 -62px; border: 0; background: none; padding: 0;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a) - var(--turn, 0deg)));
  transition: transform .4s cubic-bezier(.3,1.25,.5,1); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dial-p .av { width: 50px; height: 50px; font-size: 17px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(11,20,26,.15); transition: transform .2s, box-shadow .2s; }
.dial-name { font-size: 12px; font-weight: 700; color: #3B4A54; white-space: nowrap; max-width: 116px; overflow: hidden; text-overflow: ellipsis; background: #fff; padding: 0 6px; border-radius: 4px; }
.dial-p:hover .av, .dial-p:focus-visible .av { transform: scale(1.15); }
.dial-p.focus .av { transform: scale(1.28); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--wa-green), 0 6px 16px rgba(11,20,26,.2); }
.dial-p.focus .dial-name { color: #fff; background: var(--wa-send); margin-top: 9px; }
.dial-p.picked .av { transform: scale(1.6); transition: transform .25s; }
.dial-n { position: absolute; top: 0; right: 10px; background: var(--wa-green); color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 4px; padding: 0 4px; box-shadow: 0 0 0 2px #fff; }
.dial-hub {
  position: absolute; left: 50%; top: 50%; width: 236px; height: 236px; margin: -118px 0 0 -118px; border-radius: 50%; background: #F7F8FA;
  box-shadow: inset 0 0 0 1px #E9EDEF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center; z-index: 2;
}
.hub-av { height: 56px; }
.hub-av .av { border-radius: 50%; width: 56px; height: 56px; }
.hub-t { color: #111B21; font-size: 16px; font-weight: 600; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.hub-s { color: #667781; font-size: 11.5px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 15px; }
.dial-hub input { width: 170px; background: #fff; border: 1px solid #D1D7DB; text-align: center; padding: 6px 10px; border-radius: 4px; margin-top: 6px; }
.dial-hub input:focus { border-color: var(--wa-send); box-shadow: 0 0 0 2px rgba(31,95,168,.15); }
.dial-hub small { color: #8696A0; font-size: 10.5px; }
.dial-x { position: absolute; right: 18px; top: 18px; width: 34px; height: 34px; border-radius: 3px; border: 0; background: #F0F2F5; color: #54656F; display: flex; align-items: center; justify-content: center; z-index: 3; }
.dial-x:hover { background: #E4E7EA; }
.dial-none { position: absolute; left: 0; right: 0; top: 40px; text-align: center; color: #8696A0; }
@media (max-width: 660px), (max-height: 560px) { .dial { --size: 380px; --r: 150px; } .dial-role, .dial-team { display: none; } .dial-hub { width: 170px; height: 170px; margin: -85px 0 0 -85px; } .dial-hub small, .hub-s { display: none; } }
@media (prefers-reduced-motion: reduce) { .dial, .dial-ring, .dial-p, #dock { transition: none !important; animation: none !important; } }

#dock {
  position: fixed; right: 96px; bottom: 22px; width: 380px; height: min(580px, calc(100vh - 44px)); z-index: 45; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(11,20,26,.25), 0 2px 6px rgba(11,20,26,.1); display: flex; flex-direction: column; animation: dockIn .22s cubic-bezier(.2,.9,.25,1.1);
}
@keyframes dockIn { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.dock-head { background: var(--wa-teal); color: #fff; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.dock-head .av { width: 38px; height: 38px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.dock-head .th-who span { color: rgba(255,255,255,.75); }
.dock-head .icon-btn { color: #fff; border-radius: 3px; border: 0; width: 34px; height: 34px; }
.dock-head .icon-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.dock-about { display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12.5px; background: #E6EEF8; color: #0F2E55; }
.dock-about b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-about .icon-btn { border-radius: 3px; }
#dock .bubbles { padding: 10px 12px; }
#dock .msg { max-width: 86%; }
#dock .msg-b img { max-width: 220px; }
#dock .composer .tools .icon-btn { width: 32px; }
@media (max-width: 600px) { #dock { right: 8px; left: 8px; width: auto; bottom: 90px; } }

/* ---------- People: personality, skills and this month's load; search a skill to find people */
.people-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 18px; margin-bottom: 16px; color: var(--ink-3); max-width: 720px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.people-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,95,168,.14); }
.people-search .ic { width: 18px; height: 18px; }
.people-search input { border: 0; padding: 9px 0; font-size: 15px; background: transparent; }
.people-search input:focus { box-shadow: none; }
.team-block { margin-bottom: 22px; }
.team-block h2 { margin-bottom: 8px; color: var(--ink-2); }
.team-block h2 .muted { font-weight: 400; font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, border-color .15s; }
.pcard:hover { border-color: var(--line-2); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.pcard .av { border-radius: 50%; }
.pcard .top { display: flex; gap: 10px; align-items: center; }
.pcard .top > div { flex: 1; min-width: 0; }
.pcard .name { font-weight: 700; }
.pcard .title { color: var(--ink-3); font-size: 12.5px; }
.pc-month { text-align: center; font-size: 10.5px; color: var(--ink-3); line-height: 1.15; background: var(--sunk); border-radius: 4px; padding: 5px 8px; flex: none; }
.pc-month b { display: block; font-family: var(--head); font-size: 20px; color: var(--ink); }
.pc-about { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .tag { border-radius: 4px; padding: 1px 8px; }
.tag.hit { background: #FFF1B8; border-color: #E8C979; color: #4A3700; }
.tag.more { color: var(--ink-3); }
.prof-month { margin-top: 10px; border: 1px solid #3A3D42; padding: 8px 10px; color: #B8BABE; font-size: 12.5px; }
.prof-month b { font-family: var(--head); font-size: 22px; color: #fff; margin-right: 4px; }

/* one-screen profile */
.modal.profile { max-width: 860px; padding: 0; }
.prof { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 420px; }
.prof-side { background: var(--side); color: #fff; padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.prof-side h2 { font-size: 20px; margin-top: 6px; }
.prof-t { color: #B8BABE; font-size: 13px; }
.prof-side input, .prof-side select { background: #2A2D31; border-color: #45484C; color: #fff; padding: 6px 8px; }
.prof-side select option { color: var(--ink); background: #fff; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #3A3D42; margin-top: 8px; }
.prof-stats span { display: flex; flex-direction: column; align-items: center; padding: 6px 0; font-size: 11px; color: #9A9CA0; }
.prof-stats span + span { border-left: 1px solid #3A3D42; }
.prof-stats b { font-family: var(--head); font-size: 20px; color: #fff; }
.prof-stats .late b { color: #FF8A80; }
.prof-act { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.prof-act .btn { justify-content: center; }
.prof-act .btn:not(.primary) { background: transparent; color: #fff; border-color: #55585D; }
.prof-act .btn:not(.primary):hover { background: #2A2D31; }
.prof-main { padding: 16px 20px 18px; display: flex; flex-direction: column; min-width: 0; }
.prof-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.prof-top h3 { flex: 1; font-size: 17px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.pf { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf.full { grid-column: 1 / -1; }
.pf-l { font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .03em; }
.pf-v { overflow-wrap: anywhere; }
.pf-v.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf textarea { min-height: 0; resize: none; }
.pf-hint { color: var(--ink-4); font-size: 11.5px; }
.pf-quick-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pf-quick-row label { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--ink-3); font-weight: 600; min-width: 0; }
.pf-quick-row input { font-weight: 400; color: var(--ink); }
.sk-help { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .pf-quick-row { grid-template-columns: 1fr; } }
.prof .modal-foot { margin-top: auto; padding-top: 14px; }
@media (max-width: 760px) { .prof { grid-template-columns: 1fr; } .pf-grid { grid-template-columns: 1fr; } }

/* ---------- modal, menu, toast */
.overlay { position: fixed; inset: 0; background: rgba(18,19,21,.5); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.modal { background: var(--surface); border: 1px solid var(--ink-3); box-shadow: 0 24px 60px rgba(0,0,0,.3); width: 100%; max-width: 560px; padding: 18px 20px; }
.modal.mid { max-width: 780px; }
.modal.np { max-width: 1180px; }
.modal-head { display: flex; align-items: center; gap: 10px; margin: -18px -20px 14px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.modal-head h2 { font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.modal-foot .left { margin-right: auto; }
.menu { position: absolute; z-index: 60; background: var(--surface); border: 1px solid var(--ink-3); box-shadow: 0 12px 30px rgba(0,0,0,.25); padding: 4px; min-width: 250px; color: var(--ink); }
.menu button { display: flex; gap: 8px; align-items: center; width: 100%; border: 0; background: transparent; padding: 8px 10px; text-align: left; }
.menu button:hover { background: var(--hover); }
.menu .sep { border-top: 1px solid var(--line); margin: 4px 0; }
.menu .info { padding: 6px 10px; font-size: 12px; color: var(--ink-3); }
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.25); max-width: 520px; cursor: pointer; border-left: 4px solid var(--done-dot); }
.toast.err { border-left-color: var(--brand); background: #3A1210; }
.toast.msg { background: #fff; color: var(--ink); border: 1px solid var(--ink-3); border-left: 4px solid var(--brand); }
.toast.long { border-left-color: var(--work-dot); }
.note { background: #EEF3FA; border: 1px solid #C9D9EE; border-left: 3px solid var(--brand); color: #163256; padding: 8px 10px; font-size: 13px; margin: 8px 0 10px; }
.note.warn { background: #FFF6E3; border-color: #F0D9A0; border-left-color: var(--wait-dot); color: #6B4500; }
.who-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.who-list label { display: flex; align-items: center; gap: 8px; font-weight: 500; padding: 4px; color: var(--ink); }
.who-list label:hover { background: var(--sunk); }
.who-list label input { width: auto; margin: 0; }
pre.summary { white-space: pre-wrap; font: 13px/1.5 Consolas, "Cascadia Mono", monospace; background: var(--sunk); border: 1px solid var(--line); padding: 12px; max-height: 52vh; overflow-y: auto; margin: 12px 0 0; }

/* ---------- new project */
.np-ask { border: 1px solid var(--line-2); background: var(--sunk); padding: 14px; }
.np-ask label[for] { font-family: var(--head); font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.np-ask textarea { font-size: 15px; }
.np-ask-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 10px; flex-wrap: wrap; }
.np-ask-row label { width: 170px; }
.np-sub { margin: 18px 0 8px; font-size: 13px; color: var(--ink-2); }
.np-blank { margin-top: 12px; }
.np-sec { border: 1px solid var(--line); margin-bottom: 10px; background: #fff; }
.np-sec > summary { cursor: pointer; padding: 8px 12px; font-family: var(--head); font-weight: 600; font-size: 14px; background: var(--sunk); list-style: none; display: flex; gap: 8px; align-items: baseline; user-select: none; }
.np-sec > summary::-webkit-details-marker { display: none; }
.np-sec > summary::before { content: "▸"; color: var(--ink-3); font-size: 12px; width: 10px; }
.np-sec[open] > summary::before { content: "▾"; }
.np-sec > summary .muted { font-family: "Segoe UI", sans-serif; font-weight: 400; font-size: 12.5px; }
.np-sec[open] > summary { border-bottom: 1px solid var(--line); }
.brief { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; }
.brief-q { padding: 12px 14px; border-right: 1px solid var(--line); }
.brief-q p { margin: 4px 0 8px; font-size: 15px; line-height: 1.5; border-left: 3px solid var(--brand); padding-left: 10px; }
.brief-q .src { font-size: 12px; color: var(--ink-3); }
.brief-q .src.warn { color: var(--wait-ink); }
.brief-f { padding: 12px 14px; display: grid; grid-template-columns: 1fr 160px; gap: 10px; align-content: start; }
.totals { grid-column: 1 / -1; display: flex; border: 1px solid var(--line); }
.totals span { flex: 1; display: flex; flex-direction: column; padding: 6px 10px; font-size: 11.5px; color: var(--ink-3); }
.totals span + span { border-left: 1px solid var(--line); }
.totals b { font-family: var(--head); font-size: 18px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.totals .late b { color: var(--late); }
@media (max-width: 800px) { .brief { grid-template-columns: 1fr; } .brief-q { border-right: 0; border-bottom: 1px solid var(--line); } }
.flow { padding: 8px 10px; overflow-x: auto; }
.sankey { display: block; font: 11.5px "Segoe UI", sans-serif; }
.sankey .rib { opacity: .38; transition: opacity .15s; }
.sankey .rib.load { opacity: .28; }
.sankey .rib.bad { opacity: .5; }
.sankey .rib:hover { opacity: .78; }
.sankey text { fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.sankey text .sub { fill: var(--ink-3); font-weight: 600; }
.sankey .node.bad text { fill: var(--late); font-weight: 700; }
.sankey .colh { font-family: var(--head); font-size: 11px; fill: var(--ink-3); font-weight: 600; letter-spacing: .05em; }
.mg { padding: 6px 12px 10px; }
.mg-scale { position: relative; height: 18px; margin-left: 240px; border-bottom: 1px solid var(--line); }
.mg-scale span { position: absolute; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; border-left: 1px solid var(--line-2); padding-left: 3px; }
.mg-row { display: flex; align-items: center; height: 22px; border-bottom: 1px dashed var(--line); }
.mg-row.bad { background: var(--clash); }
.mg-l { width: 240px; flex: none; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.mg-row.bad .mg-l { color: var(--late); font-weight: 600; }
.mg-track { position: relative; flex: 1; height: 100%; }
.mg-bar { position: absolute; top: 5px; height: 12px; background: var(--ink-2); }
.mg-row.bad .mg-bar { background: repeating-linear-gradient(135deg, var(--late) 0 4px, #E8746B 4px 8px); }
.mg-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); opacity: .6; }
.np-steps { padding: 0; }
.np-steps-h { display: flex; gap: 12px; align-items: center; padding: 8px 12px; background: var(--sunk); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.np-steps-h h3 { font-size: 14px; }
.np-steps-h .btn { margin-left: auto; }
table.steps-edit { width: 100%; border-collapse: collapse; }
table.steps-edit th { font-size: 12px; color: var(--ink-3); text-align: left; padding: 6px; font-weight: 700; border-bottom: 1px solid var(--line-2); }
table.steps-edit td { padding: 4px; vertical-align: top; border-bottom: 1px solid var(--line); }
table.steps-edit input, table.steps-edit select { padding: 5px 7px; }
table.steps-edit td.num { padding-top: 10px; width: 26px; text-align: right; }
.grip { width: 26px; text-align: center; cursor: grab; color: var(--ink-4); font-size: 16px; padding-top: 7px !important; user-select: none; }
.grip:hover { color: var(--ink); background: var(--sunk); }
tr.np-row.conflict td { background: var(--clash); }
tr.np-row.conflict td:first-child { box-shadow: inset 3px 0 0 var(--late); }
tr.np-row.dragging { opacity: .4; }
tr.np-row.drop-before td { box-shadow: inset 0 3px 0 var(--focus); }
tr.np-row.drop-after td { box-shadow: inset 0 -3px 0 var(--focus); }
tr.np-row.drop-swap td { background: #E6EEF8; box-shadow: inset 0 0 0 1px var(--focus); }
.why { display: flex; flex-direction: column; gap: 1px; }
.why span { font-size: 11.5px; display: flex; gap: 4px; align-items: center; padding-top: 2px; }
.why .ic { width: 12px; height: 12px; }
.why .r { color: var(--late); font-weight: 600; }
.why .a { color: var(--soon); }

/* ---------- sign in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; margin: -22px -24px -110px; background: linear-gradient(90deg, var(--side) 0 42%, var(--bg) 42%); }
.login-card { background: #fff; border: 1px solid var(--ink-3); box-shadow: 0 30px 70px rgba(0,0,0,.25); padding: 28px; width: 100%; max-width: 410px; border-top: 4px solid var(--brand); }
.login-card img { height: 48px; display: block; margin-bottom: 14px; }
.login-card h1 { margin-bottom: 4px; font-size: 30px; }
.login-card p.lede { color: var(--ink-3); margin: 0 0 18px; }
.login-card form > * + * { margin-top: 12px; }

/* ---------- approvals, comments, project list, Gantt bar editor, brand line */
.sub-brand { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: -2px 0 10px; }
.btn.ok { background: #1E8E4E; border-color: #1E8E4E; color: #fff; }
.btn.ok:hover { background: #166F3C; border-color: #166F3C; }
.pill-st { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 700; padding: 1px 8px; border: 1px solid; white-space: nowrap; }
.pill-st .ic { width: 12px; height: 12px; }
.pill-st.pending { color: #6B4500; background: var(--wait); border-color: #E8C979; }
.pill-st.returned { color: var(--late); background: var(--late-bg); border-color: #EBB0AB; }
.pill-st.locked { color: #0C5A2E; background: var(--done); border-color: #9FD3B2; }
.plist { display: flex; flex-direction: column; }
.prow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--sunk); }
.prow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-main small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-bar { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.inbox .ibx { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ibx-approve { background: #FFFBEA; box-shadow: inset 3px 0 0 var(--wait-dot); }
.ibx.returned { background: var(--late-bg); box-shadow: inset 3px 0 0 var(--late); }
.ibx.pending { box-shadow: inset 3px 0 0 var(--wait-dot); }
.ibx-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.ibx-main small { color: var(--ink-3); font-size: 12px; }
.ibx-act { display: flex; gap: 4px; flex-wrap: wrap; }
.ibx-h { font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 10px 16px 4px; letter-spacing: .04em; }
.ibx-c { display: flex; gap: 10px; align-items: flex-start; width: 100%; border: 0; background: none; padding: 8px 16px; text-align: left; }
.ibx-c:hover { background: var(--sunk); }
.ibx-c > span:not(.av) { flex: 1; min-width: 0; font-size: 13px; }
.ibx-c small { display: block; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx-c time { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.modal.comments { max-width: 640px; }
.cm-list { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--wa-bg); border-radius: 4px; margin: 8px 0 12px; }
.cm { display: flex; gap: 8px; align-items: flex-start; max-width: 88%; }
.cm.me { align-self: flex-end; flex-direction: row-reverse; }
.cm-b { background: #fff; border-radius: 4px; padding: 6px 10px 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); min-width: 0; }
.cm.me .cm-b { background: var(--wa-out); }
.cm-h { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; font-size: 12.5px; }
.cm-h time { color: #667781; font-size: 11px; }
.cm-new { display: flex; flex-direction: column; gap: 6px; }
.pop.bar-ed { width: 320px; padding: 12px; overflow: visible; }
.pop.bar-ed form { display: flex; flex-direction: column; gap: 8px; }
.be-h { display: flex; align-items: center; gap: 8px; }
.be-h b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.be-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.be-note { margin: 0; font-size: 12px; color: var(--ink-3); background: var(--sunk); padding: 6px 8px; display: flex; gap: 6px; align-items: center; }
.be-foot { display: flex; justify-content: flex-end; gap: 6px; }
.g-bar { cursor: pointer; }
.g-grp .pill-st { font-size: 0; gap: 0; padding: 3px 5px; }
.g-grp .pill-st .ic { width: 14px; height: 14px; }

/* ---------- dial labels: name, designation, department */
.dial-role, .dial-team { font-size: 10.5px; line-height: 1.2; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #54656F; margin-top: -2px; }
.dial-team { color: var(--wa-teal); font-weight: 600; }
.dial-p .dial-role, .dial-p .dial-team { background: rgba(255,255,255,.9); padding: 0 4px; border-radius: 4px; }

/* ---------- Planner: cells read like a spreadsheet; double-click to change */
table.sheet td.c { padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: default; }
table.sheet td.c.ed { cursor: cell; }
table.sheet td.c.ed:hover { box-shadow: inset 0 0 0 1px var(--line-2); background: #FBFBF8; }
table.sheet td.c .v { display: block; overflow: hidden; text-overflow: ellipsis; }
table.sheet td.c .who-v { display: flex; align-items: center; gap: 6px; }
table.sheet td.c .who-v .av { border-radius: 50%; }
table.sheet td.c.editing { padding: 0; box-shadow: inset 0 0 0 2px var(--focus); background: #fff; }
table.sheet td.name-cell .v { font-weight: 600; }
table.sheet tr.row.is-clash td.name-cell { padding-right: 28px; }
table.sheet tr.row.is-done td.c .v { color: var(--ink-3); }
table.sheet tr.row.is-late td.due-cell .v { color: var(--late); font-weight: 700; }
.grp-act { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.share-btn .share-n { color: var(--focus); }
.cm-btn { position: relative; }
.cm-btn i { position: absolute; top: -3px; right: -4px; background: var(--focus); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; min-width: 15px; height: 15px; line-height: 15px; text-align: center; border-radius: 4px; padding: 0 3px; }

/* ---------- chat: the step a message is about */
.msg-task { display: flex; align-items: flex-start; }
.msg-task span { white-space: normal; text-align: left; }
.msg-task:disabled { cursor: default; opacity: 1; }
.dock-about span { flex: 1; min-width: 0; line-height: 1.3; }
.dock-about small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.dock-about b { white-space: normal; }

/* ---------- People: skills by category */
.sk-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 4px; }
.sk-cat > span:first-child { font-size: 11px; font-weight: 700; color: var(--ink-3); margin-right: 6px; min-width: 120px; }
.pf-v:has(.sk-cat) { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* ---------- work summary */
.modal.wide { max-width: 1000px; }
.sum-pick { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.sum-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 14px 0 6px; }
.sum-tile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; background: #fff; text-align: left; border-top: 4px solid var(--line-2); }
.sum-tile b { font-family: var(--head); font-size: 26px; line-height: 1.1; }
.sum-tile span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.sum-tile.late { border-top-color: var(--late); } .sum-tile.late b { color: var(--late); }
.sum-tile.doing, .sum-tile.fortnight { border-top-color: var(--work-dot); } .sum-tile.soon, .sum-tile.week { border-top-color: var(--wait-dot); }
.sum-tile.done { border-top-color: var(--done-dot); } .sum-tile.later { border-top-color: var(--ink-3); }
button.sum-tile:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.sum-h { margin: 16px 0 6px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.sum-h span { font-size: 12px; background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 0 7px; }
.sum-h.late { color: var(--late); }
.sum-t { border: 1px solid var(--line); }
.sum-t td { font-size: 13px; }
#sumBody { max-height: 58vh; overflow-y: auto; }

/* ---------- Excel upload */
.np-xl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.np-xl [data-drop].over { outline: 3px dashed var(--focus); outline-offset: 2px; }
.imp-res { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.imp-res p { margin: 4px 0; }
.imp-res .btn { margin-top: 8px; }
.imp-warn { margin-top: 10px; background: #FFF6E3; border: 1px solid #F0D9A0; border-radius: 4px; padding: 6px 10px; font-size: 13px; }
.imp-warn ul { margin: 6px 0 0; padding-left: 18px; max-height: 180px; overflow-y: auto; }

/* ---------- Admin */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line-2); margin-bottom: 0; }
.tab { border: 1px solid transparent; border-bottom: 0; background: none; padding: 8px 14px; font-weight: 600; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; margin-bottom: -2px; border-radius: 4px 4px 0 0; }
.tab:hover { color: var(--ink); background: var(--hover); }
.tab.on { background: var(--surface); color: var(--ink); border-color: var(--line-2); border-bottom: 2px solid var(--surface); }
.admin-body { border-top: 0; padding: 14px 16px; min-height: 300px; }
.adm-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.adm-bar > .muted { flex: 1; min-width: 240px; font-size: 13px; }
.adm-bar select { width: auto; min-width: 180px; }
.adm-bar .search-box input { width: 280px; }
.adm-form { max-width: 720px; }
.adm-h { margin: 18px 0 8px; font-size: 15px; }
table.audit td { font-size: 12.5px; vertical-align: top; }
table.audit td.det { max-width: 420px; white-space: normal; overflow-wrap: anywhere; color: var(--ink-2); }
table.audit tr.refused td { background: #FFF5F4; }
.sk-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.sk-card { border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; background: #fff; }
.sk-card small { display: block; color: var(--ink-3); margin-bottom: 4px; }
table.mini td { padding: 3px 4px; font-size: 12.5px; }
.btn.danger-bg { background: var(--late); border-color: var(--late); }
.pw-show { font-family: Consolas, "Cascadia Mono", monospace; font-size: 30px; letter-spacing: .12em; text-align: center; background: var(--sunk); border: 1px dashed var(--line-2); padding: 10px; margin: 8px 0; user-select: all; }

/* ---------- Today: the date, big and plain */
.today-date { font-family: var(--head); font-size: 20px; color: var(--ink-2); margin-bottom: 4px; }
.today-date b { color: var(--ink); font-weight: 600; }

/* ---------- smooth: soft corners, gentle shadows and quick, calm transitions everywhere you click */
.btn, .chip, .seg, .icon-btn, input[type=text], input[type=password], input[type=email], input[type=date], input[type=number],
input[type=search], input:not([type]), select, textarea, .search-box, .menu, .toast, .note, .tag, .health, .pill-st,
.be-note, .imp-warn, .totals, .np-ask, .np-sec, .who-list, .pw-show { border-radius: var(--r); }
.chip, .tag, .health, .pill-st { border-radius: 2px; }
.icon-btn { border-radius: var(--r-sm); }
.panel, .sheet-wrap, .gantt, .sum-tile, .sk-card, .pcard2, .pcard, .bcol { border-radius: var(--r-lg); }
.panel, .sheet-wrap, .gantt { box-shadow: var(--shadow-1); }
.panel { overflow: clip; }
.modal { border-radius: 4px; border-color: var(--line-2); box-shadow: 0 30px 80px rgba(16,17,19,.28); animation: modalIn .22s var(--ease); }
.modal-head { border-radius: 4px 4px 0 0; }
.modal.profile { overflow: hidden; }
.overlay { animation: fadeIn .18s ease-out; backdrop-filter: blur(2px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.menu { padding: 6px; box-shadow: var(--shadow-2); border-color: var(--line-2); animation: modalIn .14s var(--ease); }
.menu button { border-radius: var(--r-sm); }
.toast { border-radius: 4px; animation: toastIn .25s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.btn, .chip, .icon-btn, .tab, .seg button, .conv, .menu button, .an-bar {
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
}
.btn:hover { box-shadow: var(--shadow-1); }
.btn.primary { box-shadow: 0 1px 2px rgba(91,33,182,.3); }
.seg { overflow: hidden; }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(31,95,168,.16); }
table.sheet .cell:focus { box-shadow: inset 0 0 0 2px var(--focus); }
.login-card { border-radius: 4px; overflow: hidden; }
.g-bar { border-radius: 4px; }
.g-sum { border-radius: 3px; }
.gantt, .sheet-wrap { scrollbar-width: thin; }
.sum-tile { box-shadow: var(--shadow-1); }
.bar, .load { border-radius: 2px; overflow: hidden; border: 0; background: #E6E6E2; }
.bar i, .load i { border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }

/* ---------- importance of a step: 1 to 5 dots, the number beside them */
.imp { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.imp i { width: 7px; height: 7px; border-radius: 2px; background: #DADAD6; }
.imp i.on { background: var(--brand); }
.imp b { margin-left: 5px; font-family: var(--head); font-weight: 600; }

/* ---------- updates: the button on every step, the thread window, the project summary */
table.sheet td.upd { padding: 0 4px; overflow: hidden; }
.upd-btn { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; border: 1px solid transparent; background: none; padding: 4px 6px;
  border-radius: var(--r-sm); color: var(--ink-3); text-align: left; font-size: 13px; position: relative; }
.upd-btn:hover { background: #FFF8EB; border-color: #F2D29B; color: var(--focus); }
.upd-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.upd-btn em { font-style: normal; color: var(--ink-4); }
.upd-btn.has > .ic { color: var(--focus); }
.upd-btn i { font-style: normal; font-size: 10px; font-weight: 700; background: var(--focus); color: #fff; border-radius: 4px; min-width: 16px; height: 16px;
  line-height: 16px; text-align: center; padding: 0 4px; flex: none; }
.g-label .upd-btn, .tc-side .upd-btn { width: auto; padding: 3px 4px; }
.tc-side { display: flex; flex-direction: column; gap: 2px; flex: none; }
.modal.updates { max-width: 760px; }
.up-tabs { display: flex; gap: 6px; margin: -4px 0 12px; flex-wrap: wrap; }
.up-tabs button { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-2); background: #fff; padding: 5px 12px; border-radius: 2px;
  font-weight: 600; color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.up-step-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 8px 10px; background: var(--sunk); border-radius: var(--r); }
.up-who { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 12.5px; color: #163256; background: #EEF3FA; border-radius: var(--r); padding: 8px 10px; }
.up-who .ic { margin-top: 2px; }
.up-intro { margin: 0 0 8px; }
.up-sum { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; max-height: 52vh; overflow-y: auto; }
.up-row { display: flex; gap: 10px; align-items: flex-start; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 12px; text-align: left; width: 100%; }
.up-row:last-child { border-bottom: 0; }
.up-row:hover { background: var(--sunk); }
.up-row.late { box-shadow: inset 3px 0 0 var(--late); }
.up-row .st-sq { margin-top: 5px; border-radius: 3px; }
.up-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.up-main small { color: var(--ink-3); font-size: 12px; }
.up-last { font-size: 13px; color: var(--ink-2); background: var(--sunk); border-radius: var(--r-sm); padding: 4px 8px; margin-top: 3px; }
.up-last time { color: var(--ink-4); font-size: 11.5px; margin-left: 4px; }
.up-last.muted { background: none; padding: 0; margin: 0; font-size: 12px; color: var(--ink-4); }
.up-n { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink-3); font-weight: 600; flex: none; }
.up-h { margin: 14px 0 6px; font-size: 13px; color: var(--ink-2); }
.updates form textarea { margin-top: 10px; }
.modal.updates .cm-list { max-height: 36vh; }
.modal.updates .up-sum { max-height: 46vh; }

/* ---------- progress report: donut + flow, then short lists */
.sum-vis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 12px; margin: 12px 0; }
.sum-vis .panel { margin: 0; }
@media (max-width: 860px) { .sum-vis { grid-template-columns: 1fr; } }
.flow-box { padding: 10px 12px; }
svg.flow { display: block; font: 13.5px "Segoe UI", sans-serif; }
svg.flow text { fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; font-weight: 600; }
svg.flow text .sub { fill: var(--ink-3); font-weight: 400; }
.fl-link { opacity: .32; transition: opacity .18s var(--ease); }
.fl-link:hover, svg.flow.focus .fl-link.hot { opacity: .75; }
svg.flow.focus .fl-link:not(.hot) { opacity: .08; }
.fl-node { cursor: default; }
.sum-sec { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-top: 10px; overflow: hidden; }
.sum-sec > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-family: var(--head); font-weight: 600; }
.sum-sec > summary::-webkit-details-marker { display: none; }
.sum-sec > summary i { width: 10px; height: 10px; border-radius: 2px; }
.sum-sec > summary span { margin-left: auto; font-size: 12px; background: var(--sunk); border: 1px solid var(--line); border-radius: 2px; padding: 0 8px; }
.sum-sec[open] > summary { border-bottom: 1px solid var(--line); }
.sum-sec.late > summary { color: var(--late); }
.sum-list { display: flex; flex-direction: column; }
.sum-row { display: flex; gap: 12px; align-items: flex-start; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; padding: 9px 14px; width: 100%; }
.sum-row:last-child { border-bottom: 0; }
.sum-row:hover { background: var(--sunk); }
.sum-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sum-main small { color: var(--ink-3); font-size: 12px; }
.sum-note { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 5px; align-items: center; margin-top: 2px; }
.sum-note .ic { width: 13px; height: 13px; color: var(--focus); flex: none; }
.sum-when { font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* ---------- new project: quiet conflict hints */
tr.np-row.conflict td { background: #FFF6F5; }
tr.np-row.conflict td:first-child { box-shadow: inset 3px 0 0 #E8857D; }
tr.np-row.check td { background: #FFFBEA; }
tr.np-row.check td:first-child { box-shadow: inset 3px 0 0 var(--wait-dot); }
.why .c { color: var(--wait-ink); font-weight: 600; }
.why .b { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; display: block; }

/* ---------- analytical report: the date slider */
.an-range { padding: 14px 18px 10px; }
.an-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.an-dates { display: flex; align-items: baseline; gap: 8px; font-family: var(--head); font-size: 18px; flex-wrap: wrap; }
.an-dates .muted { font-family: "Segoe UI", sans-serif; font-size: 13px; }
.an-custom { display: flex; gap: 10px; }
.an-custom label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2, #555); margin: 0; }
.an-custom input { width: auto; padding: 5px 8px; font-size: 13px; }
.an-presets { margin-left: auto; }
.an-presets .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dual { position: relative; height: 30px; margin: 0 9px; --a: 0%; --b: 100%; }
.dual-track { position: absolute; left: 0; right: 0; top: 12px; height: 6px; border-radius: 2px; background: #E3E3DF; }
.dual-track i { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); background: var(--brand); border-radius: 2px; }
.dual-today { position: absolute; top: 5px; width: 2px; height: 20px; margin-left: -1px; background: var(--ink); border-radius: 1px; opacity: .5; }
.dual input[type=range] { position: absolute; left: -10px; width: calc(100% + 20px); top: 0; height: 30px; margin: 0; padding: 0; background: none; border: 0;
  -webkit-appearance: none; appearance: none; pointer-events: none; box-shadow: none; }
.dual input[type=range]:focus { box-shadow: none; }
.dual input[type=range]::-webkit-slider-runnable-track { background: none; height: 30px; }
.dual input[type=range]::-moz-range-track { background: none; }
.dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 5px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab; transition: transform .12s; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab; }
.dual input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
.dual input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(31,95,168,.2); }
.dual-scale { position: relative; height: 18px; margin: 4px 9px 0; }
.dual-scale span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.dual-scale span:first-child { transform: none; }

/* analytical report: tiles, donuts, project bars, team table */
.an-tiles { margin: 0 0 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sum-tile small { font-size: 11.5px; color: var(--ink-3); }
.sum-tile.hero { border-top-color: var(--brand); background: #fff; }
.sum-tile.hero b { color: var(--brand-dark); }
.an-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.an-grid .panel { margin-bottom: 0; }
@media (max-width: 1250px) { .an-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .an-proj { grid-column: 1 / -1; } }
@media (max-width: 760px) { .an-grid { grid-template-columns: 1fr; } }
.an-card-h { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.an-card-h h2 { flex: 1; font-size: 15px; }
.dn { display: flex; align-items: center; gap: 16px; padding: 14px 16px 16px; flex-wrap: wrap; }
.dn-svg { width: 150px; height: 150px; flex: none; overflow: visible; }
.dn-bg { fill: none; stroke: #EFEFEC; stroke-width: 22; }
.dn-seg { fill: none; stroke-width: 22; transition: stroke-width .15s var(--ease); }
.dn-seg:hover { stroke-width: 28; }
.dn-n { font-family: var(--head); font-size: 30px; font-weight: 600; text-anchor: middle; fill: var(--ink); }
.dn-l { font-size: 11px; text-anchor: middle; fill: var(--ink-3); }
.dn-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.dn-legend li { display: grid; grid-template-columns: 12px 1fr auto 40px; gap: 8px; align-items: center; }
.dn-legend li.zero { color: var(--ink-4); }
.dn-legend i { width: 12px; height: 12px; border-radius: 4px; }
.dn-legend b { font-family: var(--head); font-weight: 600; text-align: right; }
.dn-legend em { font-style: normal; color: var(--ink-3); font-size: 12px; text-align: right; }
.an-bars { display: flex; flex-direction: column; padding: 6px 8px 10px; }
.an-bar { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; grid-template-areas: "name name name" "track v flag"; gap: 4px 12px;
  align-items: center; border: 0; background: none; text-align: left; padding: 9px 8px; border-radius: var(--r); }
.an-bar-name { grid-area: name; } .an-bar-track { grid-area: track; } .an-bar-v { grid-area: v; } .an-bar .flag { grid-area: flag; }
table.an-team td:first-child { min-width: 250px; }
.an-bar:hover { background: var(--sunk); }
.an-bar-name { display: flex; flex-direction: column; min-width: 0; }
.an-bar-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-bar-name small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-bar-track, .an-mini { height: 8px; border-radius: 2px; background: #E9E9E5; overflow: hidden; display: block; }
.an-bar-track i, .an-mini i { display: block; height: 100%; border-radius: 2px; background: var(--done-dot); }
.an-mini { display: inline-block; width: 70px; vertical-align: middle; margin-right: 6px; }
.an-bar-v { font-family: var(--head); font-weight: 600; text-align: right; }
.flag { font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 2px; white-space: nowrap; border: 1px solid transparent; }
.flag.done { background: var(--done); color: var(--done-ink); border-color: #9FD3B2; }
.flag.work { background: var(--work); color: var(--work-ink); border-color: #B5CFF0; }
.flag.wait { background: var(--wait); color: var(--wait-ink); border-color: #E8C979; }
.flag.late { background: var(--late-bg); color: var(--late); border-color: #EBB0AB; }
.flag.todo { background: var(--todo); color: var(--todo-ink); border-color: var(--line-2); }
table.an-team td { font-size: 13px; }
td.an-note { min-width: 240px; max-width: 420px; white-space: normal; color: var(--ink-2); }
td.an-note small { display: block; color: var(--ink-4); font-size: 11.5px; margin-top: 2px; }

/* ======================================================================== brand, chat, contact */

/* ---------- brand: the Pragati mark, "Navdisha" small on top, "Pragati" the tool's name */
.mark { width: 34px; height: 34px; flex: none; display: block; filter: drop-shadow(0 2px 6px rgba(109,40,217,.35)); }
.login-card { border-top-color: var(--brand); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.login-brand .mark { width: 52px; height: 52px; }
.login-brand .sub-brand { margin: 0 0 2px; }
.login-brand h1 { margin: 0; }

/* ---------- Chat vs Comment: never confused. Chat = filled violet bubble (talk to a person).
   Comment = outlined amber note (kept on the step). */
.chat-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; height: 26px; min-width: 26px; padding: 0 6px;
  border: 0; border-radius: 13px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 1px 2px rgba(91,33,182,.35);
  transition: background .15s, transform .12s; }
.chat-btn .ic { width: 14px; height: 14px; }
.chat-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.chat-btn.wide { padding: 0 11px 0 9px; height: 28px; }
.upd-btn > .ic { color: #B7791F; }
.upd-btn.has > .ic { color: #B45309; }
.upd-btn i { background: #D97706; }
.upd-btn.compact { flex: none; width: auto; height: 26px; padding: 0 6px; border: 1px solid #F2D29B; border-radius: 13px; background: #FFFBF2; gap: 3px; }
.upd-btn.compact:hover { background: #FFF3D6; border-color: #E9B661; }
.btn.cmt { border-color: #F2D29B; background: #FFFBF2; color: #92400E; }
.btn.cmt .ic { color: #B45309; }
.btn.cmt:hover { background: #FFF3D6; border-color: #E9B661; }
.cm-btn .ic { color: #B45309; }
.cm-btn i { background: #D97706; }
table.sheet td.act > * { vertical-align: middle; margin: 0 1px; }
.tc-side { gap: 5px; align-items: center; }
.tcard { border-left-color: var(--c); }
.tc-wait { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); }
.tc-wait .ic { width: 12px; height: 12px; }
.mi-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mi-who small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.menu .av { border-radius: 50%; }
.hub-step { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: var(--brand-dark); background: var(--brand-tint); border-radius: 10px; padding: 1px 8px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-step .ic { width: 11px; height: 11px; }

/* ---------- lanes (swimlanes) */
.lane-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.lane-tag i { width: 10px; height: 10px; border-radius: 3px; background: var(--lc); flex: none; }
table.sheet td .lane-tag { font-size: 12px; background: color-mix(in srgb, var(--lc) 12%, white); border-radius: 10px; padding: 1px 8px 1px 6px; }
table.sheet tr.lane-row td { height: 26px; padding: 0 10px 0 44px; background: #FAFBFD; border-right: 0; }
table.sheet tr.lane-row td > * { margin-right: 8px; vertical-align: middle; }
table.sheet td.no { text-align: center; font-family: var(--head); font-weight: 600; color: var(--ink-2); box-shadow: inset 3px 0 0 var(--c); white-space: nowrap; }
.ms-ic .ic { width: 10px; height: 10px; vertical-align: -1px; margin-right: 2px; color: var(--c); fill: var(--c); }
.after-chips { display: flex !important; gap: 3px; flex-wrap: nowrap; }
.dep-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--sunk);
  border: 1px solid var(--line-2); border-left: 3px solid var(--c, var(--line-2)); border-radius: 3px; padding: 0 5px; line-height: 18px; white-space: nowrap; }
.dep-chip.bad { color: var(--late); background: var(--late-bg); border-color: #EBB0AB; border-left-color: var(--late); }
button.dep-chip { cursor: pointer; }
.tog-lanes, .colour-by { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); margin: 0; white-space: nowrap; }
.tog-lanes input { width: auto; margin: 0; accent-color: var(--brand); }
.colour-by select { width: auto; min-width: 0; padding: 4px 6px; margin: 0; }
.seg button.on { background: var(--brand); }

/* ---------- Gantt: bars in their lane colour; the fill tells the status */
.g-bar { background: var(--c); color: #fff; border: 1px solid color-mix(in srgb, var(--c) 70%, black); }
.g-bar.st-todo { background: color-mix(in srgb, var(--c) 20%, white); color: var(--ink); border: 1.5px solid var(--c); }
.g-bar.st-work { background: var(--c); color: #fff; }
.g-bar.st-done { background: var(--c); color: #fff; opacity: .55; }
.g-bar.late { box-shadow: inset 0 -3px 0 var(--late); }
.g-ms { position: absolute; top: 4px; height: 24px; margin-left: -11px; display: flex; align-items: center; gap: 6px; z-index: 1; cursor: pointer; white-space: nowrap; }
.g-ms i { width: 15px; height: 15px; margin-left: 4px; background: var(--c); transform: rotate(45deg); border: 1.5px solid color-mix(in srgb, var(--c) 70%, black); border-radius: 2px; flex: none; }
.g-ms span { font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: rgba(255,255,255,.85); padding: 0 4px; border-radius: 3px; }
.g-ms.done i { opacity: .55; }
.g-ms.late span { color: var(--late); }
.g-link { position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  cursor: crosshair; z-index: 3; opacity: 0; transition: opacity .12s, transform .12s; touch-action: none; }
.g-row:hover .g-link, .wf-node:hover .g-link, body.linking .g-link { opacity: 1; }
.g-link:hover { transform: scale(1.35); background: var(--brand); }
.g-no { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 4px; flex: none;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--c); }
.g-label .chat-btn, .g-label .upd-btn.compact { height: 22px; min-width: 22px; padding: 0 4px; }
.g-label .chat-btn .ic, .g-label .upd-btn .ic { width: 13px; height: 13px; }
.g-row.g-lane { min-height: 24px; background: color-mix(in srgb, var(--lc) 6%, white); }
.g-row.g-lane .g-label { background: color-mix(in srgb, var(--lc) 8%, white); padding-left: 14px; gap: 8px; box-shadow: inset 3px 0 0 var(--lc); }
.g-sum { background: var(--side-2); }
.g-sum::before, .g-sum::after { border-top-color: var(--side-2); }
.g-sum::before { border-left-color: var(--side-2); } .g-sum::after { border-right-color: var(--side-2); }
svg.links { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
.lk-line { fill: none; stroke: #7F8FA3; stroke-width: 1.6; }
.lk-hit { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; cursor: pointer; }
.lk:hover .lk-line { stroke: var(--brand); stroke-width: 2.4; }
.lk.bad .lk-line { stroke: #DC2626; stroke-dasharray: 5 4; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 12px; color: var(--ink-2); margin: 10px 2px 0; }
.plan-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg-bar { width: 26px; height: 11px; border-radius: 3px; display: inline-block; background: var(--brand); }
.lg-bar.todo { background: var(--brand-tint); border: 1.5px solid var(--brand); }
.lg-bar.done { opacity: .55; }
.lg-ms { width: 10px; height: 10px; background: var(--brand); transform: rotate(45deg); display: inline-block; margin: 0 3px; }

/* ---------- linking by drag */
#linkLine { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 120; }
#linkLine path { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-dasharray: 6 4; }
#linkLine circle { fill: var(--brand); }
body.linking, body.linking * { cursor: crosshair !important; user-select: none; }
body.linking [data-node].no-link { opacity: .35; }
body.linking [data-node].link-target { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- workflow graph */
.wf-proj { overflow: visible; }
.wf-head { padding: 8px 12px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.wf-hint { margin: 0; padding: 8px 14px; font-size: 12.5px; color: var(--ink-2); background: #FBF8FF; border-bottom: 1px solid var(--line); display: flex; gap: 6px; align-items: center; }
.wf-wrap { overflow: auto; padding: 0; scrollbar-width: thin; }
.wf { position: relative; min-width: 100%; }
.wf-band { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--lc) 5%, white); border-bottom: 1px solid var(--line); }
.wf-band.alt { background: color-mix(in srgb, var(--lc) 9%, white); }
.wf-band-l { position: sticky; left: 0; display: flex; align-items: center; gap: 6px; width: 120px; height: 100%; padding: 0 10px 0 12px; font-size: 12px; font-weight: 700;
  color: var(--ink-2); box-shadow: inset 4px 0 0 var(--lc); background: inherit; z-index: 1; word-break: break-word; }
.wf-band-l i { width: 9px; height: 9px; border-radius: 3px; background: var(--lc); flex: none; }
.wf-node { position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line-2); border-left: 5px solid var(--c); border-radius: 6px;
  box-shadow: 0 1px 3px rgba(30,22,51,.10); display: flex; flex-direction: column; transition: box-shadow .15s; }
.wf-node:hover { box-shadow: 0 6px 18px rgba(30,22,51,.16); z-index: 4; }
.wf-node.st-work { background: color-mix(in srgb, var(--c) 9%, white); }
.wf-node.st-done { background: #F7F6FA; opacity: .78; }
.wf-node.st-done .wf-top b { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.wf-node.late { border-color: #EBB0AB; border-left-color: var(--late); box-shadow: 0 0 0 2px rgba(192,39,29,.12); }
.wf-node.ms { border-radius: 18px; border-left-width: 1px; border-color: var(--c); }
.wf-node.ms .wf-no { background: var(--c); color: #fff; }
.wf-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 7px 9px 6px; border: 0; background: none; text-align: left; cursor: pointer; }
.wf-top { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.wf-top b { font-size: 12.5px; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wf-no { flex: none; font-size: 10.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 14%, white); border-radius: 4px; padding: 0 4px; line-height: 16px; }
.wf-meta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); margin-top: auto; min-width: 0; }
.wf-meta .av { width: 18px; height: 18px; font-size: 8.5px; box-shadow: 0 0 0 1.5px #fff; }
.wf-meta .due { margin-left: auto; font-size: 11px; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--todo-dot); }
.st-work .st-dot { background: var(--work-dot); } .st-done .st-dot { background: var(--done-dot); }
.wf-tools { position: absolute; right: 6px; top: -13px; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; background: #fff; border-radius: 14px; padding: 1px; box-shadow: 0 2px 8px rgba(30,22,51,.15); }
.wf-node:hover .wf-tools, .wf-node:focus-within .wf-tools { opacity: 1; }
.wf-tools .chat-btn, .wf-tools .upd-btn.compact, .wf-tools .icon-btn { height: 24px; min-width: 24px; }
.wf-tools .icon-btn { border-radius: 12px; }
.wf-port { right: -7px; left: auto !important; }
.wf-node.mini { cursor: default; padding: 5px 8px; gap: 3px; }
.wf-node.mini .wf-top b { -webkit-line-clamp: 1; }
.np-wf .wf-band-l { width: 96px; }
.np-links { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }

/* ---------- link picker and bar editor */
.pop.link-pick { width: 360px; padding: 12px; overflow: visible; }
.pop.link-pick form { display: flex; flex-direction: column; gap: 8px; }
.lp-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; }
.lp-list label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); cursor: pointer; }
.lp-list label:last-child { border-bottom: 0; }
.lp-list label:hover { background: var(--sunk); }
.lp-list label.off { color: var(--ink-4); cursor: not-allowed; }
.lp-list input { width: auto; margin: 0; accent-color: var(--brand); }
.lp-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-list small { color: var(--ink-3); font-size: 11.5px; }
.pop.bar-ed { width: 360px; }
.be-links { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: start; font-size: 12px; background: var(--sunk); border-radius: 4px; padding: 7px 8px; }
.be-links > span { font-weight: 700; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.be-links > span .ic { width: 12px; height: 12px; }
.be-links > div { display: flex; flex-wrap: wrap; gap: 3px; }
.be-links em { color: var(--ink-4); font-style: normal; }
.be-foot { flex-wrap: wrap; align-items: center; }
.be-foot .btn.primary { margin-left: auto; }

/* ---------- new project: lanes and links in the step table */
table.steps-edit tr.np-row td:nth-child(2) { box-shadow: inset 3px 0 0 var(--c); }
.np-steps { overflow-x: auto; }
table.steps-edit { min-width: 1120px; }
table.steps-edit select:disabled, table.steps-edit input:disabled { background: var(--sunk); color: var(--ink-4); }

/* ---------- Today: comments grouped by person */
.ppl-c { border-bottom: 1px solid var(--line); }
.ppl-c:last-child { border-bottom: 0; }
.ppl-c > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; }
.ppl-c > summary::-webkit-details-marker { display: none; }
.ppl-c > summary:hover { background: var(--sunk); }
.ppl-c[open] > summary { background: #FBF9FF; }
.ppl-who { display: flex; flex-direction: column; width: 170px; flex: none; min-width: 0; }
.ppl-who b, .ppl-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-who small { color: var(--ink-3); font-size: 11.5px; }
.ppl-last { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-last em { font-style: normal; font-weight: 600; color: var(--ink); }
.ppl-n { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #B45309; flex: none; }
.ppl-n .ic { width: 13px; height: 13px; }
.ppl-c time { font-size: 11px; color: var(--ink-4); white-space: nowrap; flex: none; }
.ppl-list { padding: 0 0 6px 52px; }
.ppl-list .ibx-c { padding: 6px 16px 6px 0; }
@media (max-width: 760px) { .ppl-who { width: 110px; } .ppl-last { display: none; } }

/* ---------- Analytics: one line, the projects, then the people */
.an-range { padding: 10px 14px; }
.an-top { margin: 0; gap: 10px 14px; }
.an-presets { margin-left: 0; }
.an-presets .chip.on { background: var(--brand); border-color: var(--brand); }
.an-dates { font-family: inherit; font-size: 13px; }
.an-xl { margin-left: auto; }
.an-line { font-size: 15.5px; line-height: 1.55; margin: 4px 2px 16px; color: var(--ink-2); max-width: 980px; }
.an-line b { color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 17px; }
.an-line b.late { color: var(--late); }
.an-projects { display: flex; flex-direction: column; }
.an-prow { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(170px, .8fr) auto minmax(220px, 1.6fr); gap: 6px 16px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line); }
.an-prow:last-child { border-bottom: 0; }
.an-pmain { display: flex; flex-direction: column; border: 0; background: none; padding: 0; text-align: left; min-width: 0; }
.an-pmain b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-pmain:hover b { color: var(--brand); }
.an-pmain small { color: var(--ink-3); font-size: 12px; }
.an-pbar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.an-pbar .an-bar-track { flex: 1; min-width: 60px; }
.an-pbar b { font-family: var(--head); font-size: 14px; color: var(--ink); }
.an-bar-track i, .an-mini i { background: var(--brand); }
.an-plast { display: flex; align-items: flex-start; gap: 7px; border: 0; background: var(--sunk); border-radius: 6px; padding: 6px 9px; text-align: left; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
button.an-plast:hover { background: var(--hover); }
.an-plast > span:not(.av) { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-plast .av { border-radius: 50%; }
.an-plast time { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.an-plast.muted { background: none; }
@media (max-width: 980px) { .an-prow { grid-template-columns: 1fr auto; } .an-pbar { grid-column: 1 / -1; } .an-plast { grid-column: 1 / -1; } }
.an-people-h { display: flex; align-items: baseline; gap: 10px; margin: 6px 2px 10px; }
.an-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-bottom: 18px; }
.an-person { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-1); }
.an-person.has-late { border-top: 3px solid var(--late); }
.an-person header { display: flex; align-items: center; gap: 10px; }
.an-who { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 0; background: none; padding: 0; text-align: left; }
.an-who b { font-size: 14.5px; }
.an-who:hover b { color: var(--brand); }
.an-who small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-pstats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.an-pstats b { font-family: var(--head); font-size: 14px; }
.an-pstats .an-mini { width: 64px; margin: 0; }
.an-late { display: flex; flex-wrap: wrap; gap: 4px; }
.an-saids { display: flex; flex-direction: column; gap: 4px; }
.an-said { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; border: 0; border-left: 3px solid #F2D29B; background: #FFFCF5; border-radius: 0 6px 6px 0; padding: 6px 9px; text-align: left; }
.an-said:hover { background: #FFF6E3; }
.an-said-w { font-size: 11.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-said-t { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.an-said time { font-size: 11px; color: var(--ink-4); grid-row: 1; grid-column: 2; }
.an-saids details > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--brand-dark); padding: 2px 0; }
.an-saids details[open] > summary { margin-bottom: 4px; }
.an-none { margin: 0; }

/* ---------- call and WhatsApp */
.contact { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; margin: 0 2px; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 13px; text-decoration: none;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); transition: background .15s, transform .12s; flex: none; }
.ct-btn .ic { width: 14px; height: 14px; }
.ct-btn.call:hover { background: #EEF2FF; color: #3730A3; border-color: #C7D2FE; transform: translateY(-1px); }
.ct-btn.wa { color: #15803D; border-color: #BBF7D0; background: #F0FDF4; }
.ct-btn.wa:hover { background: #DCFCE7; transform: translateY(-1px); }

/* ---------- priority: just the number */
.prio { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 11px;
  font-family: var(--head); font-weight: 700; font-size: 13px; background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line); }
.prio.p5 { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }
.prio.p4 { background: #FFEDD5; color: #9A3412; border-color: #FDBA74; }
.prio.p3 { background: #EDE9FE; color: #5B21B6; border-color: #A9C4E6; }

/* ---------- grid: sub-steps sit under their step; a step with sub-steps reads as their heading */
table.sheet { min-width: 1360px; }
table.sheet tr.is-sub td.name-cell .v { padding-left: calc(var(--d, 1) * 16px + 2px); font-weight: 500; }
table.sheet tr.is-sub[style*="--d:2"] td.name-cell .v, table.sheet tr.is-sub[style*="--d:3"] td.name-cell .v { font-weight: 400; }
.sub-ic { font-style: normal; color: var(--ink-4); margin-right: 5px; }
table.sheet tr.is-parent td.name-cell .v { font-weight: 700; }
table.sheet tr.is-parent td { background: #FAFBFD; }
table.sheet td.due-cell small.due { font-size: 11px; margin-left: 4px; }
table.sheet tr.lane-row td { box-shadow: inset 4px 0 0 var(--lc, transparent); }
table.sheet tr.lane-row .lane-tag .av { width: 20px; height: 20px; font-size: 9px; }
.btn.add-btn { color: var(--brand-dark); border-color: #D8CCF7; background: #F7F9FC; }
.btn.add-btn:hover { background: var(--brand-tint); border-color: var(--brand); }
.tag.personal { background: #FDF4FF; border-color: #F0ABFC; color: #86198F; }

/* ---------- Gantt: sub-steps indented; a step with sub-steps is a bracket over them */
.g-row.is-sub .g-name { padding-left: calc(var(--d, 1) * 12px + 2px); }
.g-row.is-parent .g-name { font-weight: 600; }
.g-row.is-sub .g-no { opacity: .85; }
.g-bar.parent { height: 9px; top: 11px; padding: 0; background: var(--ink-2); border: 0; border-radius: 2px; overflow: visible; cursor: pointer; opacity: 1; }
.g-bar.parent span { display: none; }
.g-bar.parent::before, .g-bar.parent::after { content: ""; position: absolute; bottom: -6px; border: 5px solid transparent; border-top-color: var(--ink-2); }
.g-bar.parent::before { left: 0; border-left-color: var(--ink-2); } .g-bar.parent::after { right: 0; border-right-color: var(--ink-2); }
.g-row.g-lane .g-label .lane-tag .av { width: 20px; height: 20px; font-size: 9px; }

/* ---------- workflow: boxes you can drag; the link dot is always visible */
.wf-node.movable .wf-body { cursor: grab; }
.wf-node.dragging { z-index: 6; box-shadow: 0 14px 34px rgba(30,22,51,.28); opacity: .95; }
.wf-node.dragging .wf-body { cursor: grabbing; }
.wf-node.parent { border-left-width: 8px; }
svg.links .lk-nest { fill: none; stroke: #B9AED3; stroke-width: 1.4; stroke-dasharray: 2 3; pointer-events: stroke; }
.wf-port { opacity: .9 !important; width: 14px; height: 14px; margin-top: -7px; right: -8px; box-shadow: 0 0 0 3px rgba(31,95,168,.15); }
.wf-port:hover { transform: scale(1.3); }
.wf-hint { justify-content: space-between; }
.wf-hint > span { flex: 1; }
.dot-demo { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; vertical-align: -1px; }
.wf-band-l .av { width: 18px; height: 18px; font-size: 8px; }
.wf-band-l .contact { display: none; }

/* ---------- moving pop-ups and windows by their title bar */
.be-h, .modal-head { cursor: move; user-select: none; }
.be-h button, .modal-head button { cursor: pointer; }
body.moving, body.moving * { cursor: grabbing !important; user-select: none; }

/* ---------- Today: whose step it is, with call and WhatsApp */
.tc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tc-owner { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
.tc-owner b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-owner .ct-btn { width: 22px; height: 22px; }
.tc-owner .ct-btn .ic { width: 12px; height: 12px; }
.tc-no { font-family: var(--head); font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--sunk); border-radius: 3px; padding: 0 4px; margin-right: 5px; }
.page-head .seg button { padding: 6px 12px; }

/* ---------- step history */
.hist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; max-height: 46vh; overflow-y: auto; }
.hist-row { display: grid; grid-template-columns: 112px 150px 1fr; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.hist-row:last-child { border-bottom: 0; }
.hist-row time { color: var(--ink-3); white-space: nowrap; }
.hist-row.refused { background: #FFF5F4; }
.np-personal { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; font-weight: 600; }
.np-personal input { width: auto; margin: 0; accent-color: var(--brand); }
.login-card form > label + label { margin-top: 10px; }

/* ---------- done steps: struck through and greyed, everywhere */
table.sheet tr.row.is-done td.name-cell .v, table.sheet tr.row.is-done td.c .v { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); color: var(--ink-4); }
table.sheet tr.row.is-done td { background: #FAFAFC; }
table.sheet tr.row.is-done .prio, table.sheet tr.row.is-done .who-v .av { opacity: .5; }
.g-row:has(.g-bar.st-done) .g-name, .g-row:has(.g-ms.done) .g-name { text-decoration: line-through; color: var(--ink-4); }
.wf-node.st-done .wf-top b, .wf-node.st-done .wf-meta { text-decoration: line-through; color: var(--ink-4); }

/* ---------- read-only: what you can't change looks locked */
.pop.readonly { background: #FBFAFD; }
.ro-banner { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 6px; background: #EEF1F4; color: var(--ink-2); font-size: 12.5px; border: 1px dashed var(--line-2); }
.ro-banner .ic { flex: none; margin-top: 1px; color: var(--ink-3); }
input:disabled, select:disabled, textarea:disabled { background: #F3F1F7 !important; color: #8A8499 !important; -webkit-text-fill-color: #8A8499; border-style: dashed !important; cursor: not-allowed; }
.pop.readonly label { color: var(--ink-3); }
table.sheet tr.row.ro td.name-cell .v::after { content: "🔒"; font-size: 10px; margin-left: 6px; opacity: .45; }

/* ---------- planner: one block per project, each with its own side scroll */
.proj-block { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); margin-bottom: 14px; box-shadow: var(--shadow-1); overflow: hidden; }
.proj-head { padding: 9px 12px; background: #F6F8FA; border-bottom: 1px solid var(--line); }
.proj-block .sheet-wrap { border: 0; border-radius: 0; box-shadow: none; overflow-x: auto; }
.pcode { display: inline-block; font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--brand-dark); background: var(--brand-tint); border-radius: 4px; padding: 0 5px; margin-right: 6px; line-height: 18px; vertical-align: 1px; white-space: nowrap; }
.plink { border: 1px solid #D8CCF7; background: #F7F9FC; color: var(--ink-2); font-size: 11.5px; border-radius: 10px; padding: 0 8px; line-height: 20px; }
.plink b { color: var(--brand-dark); }
.alert-ic { display: inline-flex; vertical-align: -2px; margin-left: 6px; cursor: help; }
.alert-ic .ic { width: 14px; height: 14px; }
.alert-ic.late { color: var(--late); } .alert-ic.soon { color: #B45309; }
.g-label .alert-ic { margin: 0 2px 0 0; }
.mi-check { display: flex; gap: 8px; align-items: center; padding: 6px 10px; font-weight: 500; color: var(--ink); cursor: pointer; border-radius: var(--r-sm); }
.mi-check:hover { background: var(--hover); }
.mi-check input { width: auto; margin: 0; accent-color: var(--brand); }
.mi-check.off { color: var(--ink-4); }
.menu-scroll { max-height: 320px; overflow-y: auto; }
.view-err { padding: 24px; text-align: center; }

/* ---------- WhatsApp only; a faint button where the number is missing */
.ct-btn.wa.none { opacity: .45; border-style: dashed; background: #fff; color: var(--ink-3); cursor: pointer; }
.ct-btn.wa.none:hover { opacity: 1; }

/* ---------- head's Today: one row per person */
.team-board .panel-h { align-items: center; }
.tb-search { margin-left: auto; }
.tb-search input { width: 260px; }
table.tb { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 980px; }
table.tb th { text-align: left; font-size: 12.5px; color: var(--ink-2); padding: 8px 10px; background: var(--sunk); border-bottom: 1px solid var(--line-2); font-weight: 700; }
table.tb th:first-child { width: 230px; }
table.tb th i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--ink-4); }
table.tb th.late i { background: var(--late); } table.tb th.soon i { background: var(--wait-dot); } table.tb th.work i { background: var(--work-dot); } table.tb th.calm i { background: var(--done-dot); }
table.tb th small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11px; }
table.tb th .n { float: right; font-family: var(--head); font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }
table.tb td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tb tr:last-child td { border-bottom: 0; }
.tb-who { display: flex; align-items: center; gap: 8px; }
.tb-who > span:not(.tb-act):not(.av) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tb-who b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-who small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-act { display: flex; gap: 4px; align-items: center; flex: none; }
.tb-p { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; background: #FAFBFD; border-radius: 6px; padding: 5px 8px; margin-bottom: 4px; border-left: 3px solid var(--line-2); }
.tb-p:hover { background: var(--hover); }
td.late .tb-p { border-left-color: var(--late); background: #FFF7F6; }
td.soon .tb-p { border-left-color: var(--wait-dot); }
.tb-proj { font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-proj .pcode { font-size: 10px; line-height: 15px; margin-right: 4px; }
.tb-step { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-due { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.tb-due.late { color: var(--late); }
.tb-more, .tb-none { font-size: 11px; color: var(--ink-4); padding-left: 8px; }

/* ---------- approvals & projects: one consistent list */
table.pu td { vertical-align: middle; padding: 7px 12px; }
table.pu td.late { color: var(--late); font-weight: 700; }
.pu-name, .pu-step, .pu-cmt { border: 0; background: none; padding: 0; text-align: left; display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.pu-name > span:last-child, .pu-step, .pu-cmt > span { display: flex; flex-direction: column; min-width: 0; }
.pu-name b, .pu-step b { font-size: 13px; }
.pu-name small, .pu-step small, .pu-cmt small { color: var(--ink-3); font-size: 11.5px; }
.pu-name:hover b, .pu-step:hover b { color: var(--brand); }
.pu-cmt { background: #FFFBF2; border: 1px solid #F2D29B; border-radius: 6px; padding: 5px 8px; max-width: 330px; }
.pu-cmt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }
.pu-cmt:hover { background: #FFF3D6; }
.modal.cpop { max-width: 520px; }
.cpop-who { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.cpop-who > span { display: flex; flex-direction: column; }
.cpop-who small { color: var(--ink-3); }
.cpop-where { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); background: var(--sunk); border-radius: 6px; padding: 6px 8px; }
.cpop-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; background: #FFFBF2; border-left: 3px solid #F2D29B; padding: 10px 12px; border-radius: 0 6px 6px 0; margin: 12px 0 0; }

/* ---------- analytics: MTD, people with pies, person summary */
.an-mtd small { font-weight: 500; opacity: .8; margin-left: 4px; }
.an-person { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.an-person:hover { box-shadow: 0 8px 22px rgba(30,22,51,.12); transform: translateY(-1px); }
.an-person header .an-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.an-pbody { display: flex; align-items: center; gap: 14px; }
.mini-pie { flex: none; }
.mini-pie text { font-family: var(--head); font-size: 9px; font-weight: 700; fill: var(--ink); }
.an-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 12px; color: var(--ink-2); flex: 1; }
.an-legend li { display: flex; align-items: center; gap: 6px; }
.an-legend li.zero { color: var(--ink-4); }
.an-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.an-legend b { margin-left: auto; font-family: var(--head); }
.an-plist { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.an-pp { display: grid; grid-template-columns: auto minmax(0, 1fr) 60px 36px; grid-template-areas: "c n bar v" "c s s s"; gap: 0 8px; align-items: center; font-size: 12.5px; }
.an-pp .pcode { grid-area: c; align-self: start; margin-top: 1px; }
.an-pp-n { grid-area: n; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.an-pp .an-mini { grid-area: bar; width: 60px; margin: 0; }
.an-pp b { grid-area: v; text-align: right; font-family: var(--head); }
.an-pp small { grid-area: s; color: var(--ink-3); font-size: 11px; }
.an-person footer { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 8px; }
.an-person footer .ic { width: 13px; height: 13px; color: #B45309; }
.an-person footer .link { margin-left: auto; color: var(--brand-dark); }
.modal.ps { max-width: 900px; }
.ps-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ps-top > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ps-top small { color: var(--ink-3); }
.ps-act { display: flex; gap: 6px; align-items: center; }
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; background: var(--sunk); border-radius: 8px; padding: 12px 14px; }
.ps-pie { display: flex; gap: 14px; align-items: center; }
.ps-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-tiles > div { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; }
.ps-tiles b { font-family: var(--head); font-size: 22px; }
.ps-tiles span { font-size: 11.5px; color: var(--ink-3); }
.ps-tiles .late b { color: var(--late); }
.ps-h { margin: 16px 0 6px; font-size: 14px; }
.ps-b { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ps-b li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 6px 8px; border-radius: 6px; background: var(--sunk); }
.ps-b li.late { background: #FFF5F4; }
.ps-b .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.ps-b li.late .ic { color: var(--late); }
.ps-cg { margin-bottom: 8px; }
.ps-cg > b { display: block; font-size: 13px; margin-bottom: 4px; }
.ps-c { display: grid; grid-template-columns: 120px 1fr; gap: 10px; width: 100%; text-align: left; border: 0; border-left: 3px solid #F2D29B; background: #FFFCF5; padding: 5px 9px; margin-bottom: 3px; border-radius: 0 6px 6px 0; font-size: 12.5px; }
.ps-c:hover { background: #FFF6E3; }
.ps-c time { color: var(--ink-3); font-size: 11.5px; }
.ps-c em { font-style: normal; font-weight: 700; }

/* ---------- chat: a round button and a small list of people right above it */
#fab { border-radius: 50%; width: 58px; height: 58px; background: var(--brand); box-shadow: 0 8px 22px rgba(91,33,182,.4); }
#fab:hover { background: var(--brand-dark); }
.fab-n { border-radius: 11px; }
.nudge { position: fixed; right: 22px; bottom: 92px; width: 300px; max-height: min(440px, calc(100vh - 140px)); z-index: 82; background: #fff; border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: 0 18px 44px rgba(30,22,51,.25); display: flex; flex-direction: column;
  opacity: 0; transform: translateY(10px) scale(.97); transform-origin: bottom right; transition: opacity .16s, transform .16s; }
.nudge.open { opacity: 1; transform: none; }
.nudge::after { content: ""; position: absolute; right: 22px; bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(45deg); }
.nudge-h { display: flex; align-items: baseline; gap: 6px; padding: 10px 10px 6px 14px; }
.nudge-h b { font-family: var(--head); }
.nudge-h small { flex: 1; min-width: 0; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nudge-h .icon-btn { margin-left: auto; }
.nudge .search-box { margin: 0 10px 6px; border-radius: 18px; }
.nudge .search-box input { width: 100%; }
.nudge-list { overflow-y: auto; padding: 0 6px 8px; border-radius: 0 0 14px 14px; }
.nudge-p { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 8px; text-align: left; }
.nudge-p:hover, .nudge-p.focus { background: var(--hover); }
.nudge-p > span:not(.av) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nudge-p b { font-size: 13px; }
.nudge-p small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nudge-n { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 9px; min-width: 18px; text-align: center; padding: 0 5px; }
.nudge-p .av { border-radius: 50%; }


/* ======================================================================== the Status home page */
:root { --amber: #F2A900; --amber-ink: #6B4A00; --amber-bg: #FFF5D6; }
.home-head h1 { margin-bottom: 2px; }
.wk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; }
.wk-mid { display: flex; flex-direction: column; gap: 4px; min-width: 260px; flex: 0 1 340px; }
.wk-label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wk-label b { font-family: var(--head); font-size: 15px; color: var(--ink); }
.wk-label span { color: var(--ink-3); font-size: 12.5px; }
.wk-range { width: 100%; accent-color: var(--brand); cursor: pointer; }
.wk-sep { flex: 1; }
.wk-bar .search-box { flex: 0 1 340px; min-width: 200px; }
.wk-bar .icon-btn[disabled] { opacity: .35; pointer-events: none; }

.appr-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px;
  background: var(--brand-tint); border: 1px solid var(--line); border-left: 3px solid var(--brand); font-size: 13px; }
.appr-strip > .ic { color: var(--brand); }
.appr { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 4px 6px 4px 10px; border-radius: 999px; }
.appr small { color: var(--ink-3); }
.appr.returned { border-color: var(--late); }

.dl-strip { margin-bottom: 12px; }
.dl-strip h2 { font-family: var(--head); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-ink); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.dl-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.dl-chip { flex: 0 0 230px; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; background: #fff;
  border: 1px solid var(--line); border-top: 4px solid var(--ink-4); cursor: pointer; font: inherit; color: var(--ink); }
.dl-chip:hover { box-shadow: var(--shadow-2); }
.dl-chip.near { border-top-color: var(--amber); }
.dl-chip.slip { border-top-color: #E07B00; background: #FFFBF2; }
.dl-chip.late { border-top-color: var(--late); background: #FFF5F4; }
.dl-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-client { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-due { font-size: 12.5px; } .dl-due b { font-family: var(--head); font-size: 14px; }
.dl-chip.late .dl-due { color: var(--late); }
.dl-slip { font-size: 11.5px; color: #B45309; display: flex; align-items: center; gap: 4px; } .dl-slip .ic { width: 12px; height: 12px; }
.dl-bar { height: 4px; background: var(--line); display: block; margin-top: 2px; } .dl-bar i { display: block; height: 100%; background: var(--done-dot); }

.home-sum { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 4px 2px 10px; color: var(--ink-3); font-size: 13px; }
.home-sum b { font-family: var(--head); font-size: 18px; color: var(--ink); margin-right: 3px; }
.home-sum .late b { color: var(--late); } .home-sum .ok b { color: var(--done-dot); }
.home-sum .grow { flex: 1; }
.home-wait { padding: 30px; text-align: center; color: var(--ink-3); }

.pcard3 { background: #fff; border: 1px solid var(--line); margin-bottom: 8px; box-shadow: var(--shadow-1); }
.pcard3.has-late { border-left: 3px solid var(--late); }
.pcard3 > header { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; flex-wrap: wrap; }
.pcard3 > header:hover { background: var(--hover); }
.pc-fold .ic { width: 16px; height: 16px; color: var(--ink-3); }
.pc-who { display: flex; flex-direction: column; min-width: 170px; line-height: 1.2; }
.pc-who em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.pc-who small { color: var(--ink-3); font-size: 12px; }
.pc-counts { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cnt { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--work); color: var(--work-ink); white-space: nowrap; }
.cnt.late { background: var(--late-bg); color: var(--late); font-weight: 700; }
.cnt.ok { background: var(--done); color: var(--done-ink); }
.cnt.muted { background: transparent; color: var(--ink-3); padding: 2px 4px; }
.pc-act { display: flex; gap: 4px; align-items: center; }
.pcard3 .table-scroll { border-top: 1px solid var(--line); }
.st-table td { vertical-align: top; }
.st-table td small { display: block; font-size: 11.5px; }
.st-table small.late { color: var(--late); font-weight: 600; } .st-table small.ok { color: var(--done-ink); }
.st-step { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; }
.st-step:hover b { color: var(--brand); }
.st-step small { color: var(--ink-3); }
.st-state { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st-state.late { background: var(--late-bg); color: var(--late); }
.st-state.soon { background: var(--soon-bg); color: var(--soon); }
.st-state.work { background: var(--work); color: var(--work-ink); }
.st-state.done { background: var(--done); color: var(--done-ink); }
.st-upd { max-width: 340px; font-size: 12.5px; } .st-upd small { color: var(--ink-2); margin-top: 2px; white-space: pre-wrap; }

/* contract (client PO) badge on a project header, and the contract date on the Gantt */
.contract { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.c-client { font-weight: 600; color: var(--ink-2); }
.c-po { color: var(--ink-3); }
.c-due { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-ink); border: 1px solid #F0D9A0; }
.c-due .ic { width: 12px; height: 12px; }
.contract.near .c-due { background: #FFE9B0; }
.contract.slip .c-due { background: #FFE2C2; color: #8A3B00; border-color: #F2B27A; }
.contract.late .c-due { background: var(--late-bg); color: var(--late); border-color: #EBB0AB; }
.g-contract { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -2px; background: var(--amber); z-index: 3; }
.g-contract b { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 11px; font-weight: 700;
  color: var(--amber-ink); background: var(--amber-bg); border: 1px solid #F0D9A0; padding: 1px 6px; }
.g-contract.slip { background: var(--late); } .g-contract.slip b { color: var(--late); background: var(--late-bg); border-color: #EBB0AB; }
/* lead / idle time (vendor manufacturing, client approval, transit): hatched, nobody is busy */
.g-bar.wait { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #fff) 0 6px, #fff 6px 11px) !important;
  border: 1.5px dashed var(--c) !important; color: var(--ink-2) !important; box-shadow: none !important; }
.g-bar.wait span { color: var(--ink-2) !important; font-style: italic; }

/* sign-in: forgot password */
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--brand); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.forgot { display: block; margin: 10px auto 0; }

/* new project: the client's purchase order */
.np-po { border: 1px solid var(--line); padding: 8px 10px 10px; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.np-po legend { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }
.np-po .np-due { color: var(--amber-ink); font-weight: 700; }
.np-po .np-due input { border-color: var(--amber); }

@media (max-width: 700px) {
  .wk-mid { min-width: 0; flex: 1 1 100%; }
  .wk-bar .search-box { flex: 1 1 100%; }
  .pc-who { min-width: 0; }
  .dl-chip { flex-basis: 200px; }
}

.g-cline { position: absolute; top: 0; bottom: -1px; width: 2px; margin-left: -1px; background: var(--amber); opacity: .85; z-index: 1; pointer-events: none; }
.g-cline.slip { background: var(--late); }

/* ---------- home: search, notification buckets, tabs (orders, people, materials) */
.home-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); padding: 0 14px; margin-bottom: 14px; color: var(--ink-3); border-radius: 6px; box-shadow: var(--shadow-1); }
.home-search .ic { width: 18px; height: 18px; }
.home-search input { flex: 1; border: 0 !important; box-shadow: none !important; padding: 12px 0; font-size: 15px; background: transparent; min-width: 0; }
.home-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px var(--brand-tint); }
.bk-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.bk-group { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink-4); padding: 10px 12px 12px; border-radius: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; min-width: 0; }
.bk-group.act { border-top-color: var(--late); } .bk-group.watch { border-top-color: var(--wait-dot); } .bk-group.info { border-top-color: var(--brand); }
.bk-group.clear { opacity: .75; }
.bk-group header { flex: 1 0 100%; display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.bk-group header b { font-family: var(--head); font-size: 14px; }
.bk-group header small { color: var(--ink-3); font-size: 12px; margin-left: auto; text-align: right; }
.bk-group header small .ic { width: 13px; height: 13px; color: var(--done-dot); }
.bk-n { font-size: 11px; font-weight: 700; color: #fff; background: var(--ink-3); border-radius: 10px; padding: 0 7px; line-height: 18px; }
.bk-group.act .bk-n { background: var(--late); } .bk-group.watch .bk-n { background: var(--wait-dot); } .bk-group.info .bk-n { background: var(--brand); }
.bk-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--sunk); padding: 5px 10px; border-radius: 16px; font-size: 13px; color: var(--ink-2); max-width: 100%; }
.bk-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-chip b { font-size: 12px; min-width: 18px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0 5px; }
.bk-chip:hover { background: var(--hover); border-color: var(--brand); }
.bk-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); } .bk-chip.on b { color: var(--ink); }
.bk-list { border-radius: 6px; border-left: 3px solid var(--brand); }
.bk-list.act { border-left-color: var(--late); } .bk-list.watch { border-left-color: var(--wait-dot); }
.bk-list > header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bk-list > header .icon-btn { margin-left: auto; }
.bk-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.bk-row:last-child { border-bottom: 0; }
.bk-row.link { cursor: pointer; } .bk-row.link:hover { background: var(--hover); }
.bk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-main small { color: var(--ink-3); font-size: 12.5px; }
.bk-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bk-go { color: var(--ink-4); }
.home-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); margin: 18px 0 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.home-tabs button { border: 0; background: transparent; padding: 9px 14px; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.home-tabs button:hover { color: var(--ink); }
.home-tabs button.on { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tab-n { font-size: 11px; background: var(--sunk); border: 1px solid var(--line); border-radius: 9px; padding: 0 6px; margin-left: 4px; color: var(--ink-2); }
.tab-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.panel.flush { border-radius: 6px; }
.ord-table { width: 100%; }
.ord-table td { vertical-align: top; }
.ord-table td small { display: block; font-size: 12px; margin-top: 2px; }
.ord-table tr.ord { cursor: pointer; } .ord-table tr.ord:hover td { background: var(--hover); }
.ord-name b { font-size: 14px; }
.ord-table td:first-child { min-width: 260px; }
.stage { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line); padding: 0 7px; border-radius: 3px; }
.ellip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct { font-weight: 700; }
.ct.late { color: var(--late); } .ct.slip, .ct.near { color: var(--soon); }
small.slip, small.near { color: var(--soon); }
.who { display: inline-flex; align-items: center; gap: 6px; }
.role-wait { display: flex; gap: 8px; align-items: flex-start; background: var(--wait); color: var(--wait-ink); border: 1px solid #E8C979; padding: 8px 10px; border-radius: 4px; font-size: 13px; }
@media (max-width: 900px) {
  .bk-wrap { grid-template-columns: 1fr; }
  .bk-row { flex-wrap: wrap; }
  .ord-table th:nth-child(3), .ord-table td:nth-child(3), .ord-table th:nth-child(7), .ord-table td:nth-child(7) { display: none; }
}

/* home tables: scroll sideways inside their box, with a visible bar */
.table-scroll.panel.flush { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll::-webkit-scrollbar { height: 10px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
.ord-table { min-width: 1080px; }
.stage-no { font-size: 12.5px; }
/* Gantt: one chart per project, each with its own calendar */
.g-jump { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--ink-3); }
.g-jump select { min-width: 280px; }
.g-proj { margin-bottom: 18px; scroll-margin-top: 12px; }
.g-proj-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 6px 6px 0 0; }
.g-proj-bar b { font-family: var(--head); }
.g-proj-bar [data-act=ganttReset] { margin-left: auto; }
.g-proj .gantt { max-height: 70vh; border-radius: 0 0 6px 6px; }
.g-proj.flash .g-proj-bar { animation: gflash 1.4s var(--ease); }
@keyframes gflash { 0%, 40% { background: var(--brand-tint); box-shadow: 0 0 0 2px var(--brand); } 100% { background: var(--surface); box-shadow: none; } }

/* ---------- Planner, simplified: one search (with suggestions), one sort, the views, one More menu */
.ptools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.psearch { position: relative; flex: 1 1 360px; max-width: 560px; }
.psearch .search-box { display: flex; width: 100%; border-radius: 8px; padding-left: 10px; }
.psearch .search-box input { width: 100%; padding: 8px 8px; font-size: 14px; }
.sugg { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line-2);
  border-radius: 8px; box-shadow: var(--shadow-2); padding: 6px; max-height: 420px; overflow: auto; }
.sugg button { display: flex; gap: 9px; align-items: center; width: 100%; border: 0; background: transparent; text-align: left; padding: 6px 8px; border-radius: 6px; }
.sugg button:hover, .sugg button:focus-visible { background: var(--hover); }
.sugg button > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sugg button b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg small { color: var(--ink-3); font-size: 12px; }
.sugg .sg-all { color: var(--ink-2); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.sugg .sg-all small { margin-left: auto; }
.sg-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); padding: 8px 8px 2px; }
.psort { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.psort select { width: auto; margin: 0; padding: 6px 8px; border-radius: 6px; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 6px; }
.fchip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #B9CDE6; background: var(--brand-tint); color: var(--brand-dark);
  border-radius: 14px; padding: 2px 6px 2px 10px; font-size: 12.5px; font-weight: 600; }
.fchip .ic { width: 13px; height: 13px; }
.fchip:hover { background: #D3E2F5; }
.pcount { margin: 0 0 8px; }
.menu .ic-blank { display: inline-block; width: 16px; }
.menu button.danger { color: var(--late); }
.menu button[disabled] { opacity: .45; pointer-events: none; }

/* the head of a project: line 1 = what it is and what needs doing, line 2 = the facts */
.proj-head { padding: 10px 12px 9px; }
.grp-line .pname { cursor: pointer; }
.grp-line .pname:hover { color: var(--brand); }
.grp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 4px 0 0 34px; font-size: 12.5px; color: var(--ink-3); }
.grp-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.grp-meta .dot { font-style: normal; color: var(--ink-4); }
.grp-meta .m-client { color: var(--ink); font-weight: 600; }
.grp-meta .m-int { color: #6B4E00; background: #FFF5D6; border-radius: 9px; padding: 0 7px; font-weight: 600; }
.grp-meta .bar { display: inline-block; width: 70px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.grp-meta .bar i { display: block; height: 100%; background: var(--done-dot); }
.m-due { font-weight: 600; color: var(--ink-2); }
.m-due .ic { width: 13px; height: 13px; }
.m-due.near { color: #8A5A00; }
.m-due.slip { color: #8A3B00; }
.m-due.late { color: var(--late); }
.grp-meta .plink { margin-left: 4px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.grp-meta .plink .ic { width: 12px; height: 12px; }
.plink.late { border-color: #F2B8B3; background: var(--late-bg); color: var(--late); }
.plink.ok { border-color: #B7E0C5; background: var(--done); color: var(--done-ink); }
.wf-head .grp-meta { margin-left: 0; }
.proj-block.flash, .flash > .proj-head { animation: pflash 1.6s var(--ease); }
@keyframes pflash { 0%, 40% { box-shadow: 0 0 0 3px #F2A900; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* connect projects */
.modal.cx { max-width: 760px; }
.cx-now { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 14px; }
.cx-now > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--sunk); }
.cx-now h4 { margin: 0 0 6px; font-size: 13px; }
.cx-pill { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 4px 3px 8px; margin-top: 5px; font-size: 13px; }
.cx-pill .icon-btn { margin-left: auto; }
.cx-search { display: flex; width: 100%; border-radius: 8px; }
.cx-search input { width: 100%; }
.cx-list { max-height: 340px; overflow: auto; margin-top: 8px; border-top: 1px solid var(--line); }
.cx-row { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.cx-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cx-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-name small { color: var(--ink-3); }
.cx-row .btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 640px) { .cx-now { grid-template-columns: 1fr; } .cx-row { flex-wrap: wrap; } }

/* new project: what a project is (left), how to start (right) */
.np-start { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 22px; padding: 4px 2px 6px; }
.np-what { background: linear-gradient(180deg, #F6F2FD, #FFFFFF 70%); border: 1px solid #E0D5F5; border-radius: 12px; padding: 16px 18px; }
.ig { width: 100%; height: auto; margin: 4px 0 6px; }
.ig .ig-t { font: 600 11.5px "Segoe UI", sans-serif; fill: #fff; }
.ig .ig-t.dark { fill: #7A4A00; }
.ig .ig-who { font: 11px "Segoe UI", sans-serif; fill: #475569; }
.ig .ig-end { font: 600 11.5px "Segoe UI", sans-serif; fill: #334155; }
.ig .ig-axis { stroke: #94A3B8; stroke-width: 2; stroke-dasharray: 4 4; }
.ig .ig-link { fill: none; stroke: #64748B; stroke-width: 1.4; }
.ig-legend { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ig-legend li { display: flex; gap: 10px; align-items: flex-start; }
.ig-legend li > :first-child { flex: 0 0 26px; margin-top: 3px; text-align: center; }
.ig-ms { color: #6D28D9; font-size: 14px; line-height: 1; }
.ig-ar { color: #64748B; font-weight: 700; }
.ig-po { font-size: 10px; font-weight: 800; color: #8A5A00; background: #FFE9B0; border-radius: 4px; padding: 1px 0; }
.ig-get { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
.qotd { margin: 0; border-left: 3px solid #F2A900; background: #FFFBEF; border-radius: 0 8px 8px 0; padding: 10px 14px; }
.qotd p { margin: 2px 0 4px; font-size: 15px; font-style: italic; color: var(--ink); }
.qotd cite { font-size: 12.5px; color: var(--ink-3); font-style: normal; }
.qotd cite::before { content: "\2014  "; }
.np-how { display: flex; flex-direction: column; gap: 12px; }
.np-card { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.np-card p { margin: 4px 0 10px; }
.np-card > div { flex: 1; min-width: 0; }
.np-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #6D28D9; color: #fff; display: grid; place-items: center; font-weight: 700; }
.np-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed #9FC9C3; border-radius: 10px; padding: 18px 10px;
  background: #F6FBFA; color: #0F5F58; cursor: pointer; margin: 0; text-align: center; }
.np-drop:hover, .np-drop.over { background: #F1EAFD; border-color: #6D28D9; }
.np-drop .ic { width: 26px; height: 26px; }
.np-drop small { color: var(--ink-3); }
.np-or { display: flex; align-items: center; gap: 10px; color: var(--ink-4); font-size: 12px; }
.np-or::before, .np-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.np-type { align-self: center; }
@media (max-width: 860px) { .np-start { grid-template-columns: 1fr; } }

/* new project, typed in: the basics first, then the steps; the pictures fold below */
.np-basics { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--sunk); margin-bottom: 12px; }
.np-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.np-grid label { margin: 0; }
.np-grid.po { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 4px; padding: 10px; background: #FFFBEF; border: 1px solid #F3DFA6; border-radius: 8px; }
.np-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 600; font-size: 13.5px; }
.np-check input { width: auto; margin: 0; }
.np-basics .totals { margin-top: 8px; }
@media (max-width: 760px) { .np-grid, .np-grid.po { grid-template-columns: 1fr; } }

/* sample data notice (admin, Status page) */
.sample-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #FFF6DB; border: 1px solid #F0D58A; color: #5C4300;
  border-radius: 8px; padding: 9px 12px; margin: 0 0 12px; font-size: 13.5px; }
.sample-bar > span { flex: 1 1 320px; }
.sample-bar .btn { background: #fff; }

/* ---------- search boxes that suggest (Planner, Status, Analytics) */
.sbox { position: relative; }
.home-search.sbox { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
.home-search.sbox .search-box { display: flex; width: 100%; border-radius: 6px; padding-left: 14px; box-shadow: var(--shadow-1); }
.home-search.sbox .search-box input { padding: 12px 8px; font-size: 15px; }
.an-find { max-width: 560px; margin: 0 0 12px; }
.an-find .search-box { display: flex; width: 100%; border-radius: 8px; padding-left: 10px; }
.an-find .search-box input { width: 100%; padding: 8px; font-size: 14px; }
.sugg > button:first-child { border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.sugg > button:first-child small { margin-left: auto; }
.sugg button > span { display: flex; flex-direction: column; min-width: 0; }
.sugg button:first-child > span { flex-direction: row; gap: 8px; flex: 1; align-items: baseline; }
.sg-none { margin: 6px 8px; color: var(--ink-3); font-size: 13px; }

/* ---------- completed projects: in the archive, greyed wherever they show */
.proj-block.past { opacity: .62; filter: grayscale(.85); }
.proj-block.past:hover { opacity: .9; }
.past-tag { background: #E7E9EC; color: #4B5563; }
.archive-bar { display: flex; align-items: center; gap: 8px; width: 100%; margin: 14px 0 4px; padding: 10px 14px; border: 1px dashed var(--line-2);
  border-radius: 8px; background: var(--sunk); color: var(--ink-2); font-size: 13.5px; text-align: left; }
.archive-bar:hover { background: var(--hover); }
.an-prow.past { opacity: .6; filter: grayscale(.9); }
.an-pp-n.past { color: var(--ink-4); }
.wf-head .grp-line.past { opacity: .6; filter: grayscale(.85); }

/* ---------- New project: a small picture of the Planner */
.np-shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.np-shot figcaption { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.np-shot figcaption .ic { width: 14px; height: 14px; }
.ps { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 11.5px; box-shadow: var(--shadow-1); }
.ps-head { display: flex; align-items: center; gap: 6px; padding: 7px 9px 2px; background: #F6F8FA; }
.ps-head b { font-family: var(--head); font-size: 12.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-head .health { font-size: 10.5px; }
.ps-tog { color: var(--ink-3); }
.ps-meta { padding: 0 9px 7px 24px; background: #F6F8FA; border-bottom: 1px solid var(--line); color: var(--ink-3); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ps-meta .bar { display: inline-block; width: 46px; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ps-meta .bar i { display: block; height: 100%; background: var(--done-dot); }
.ps-meta .ic { width: 11px; height: 11px; }
.ps-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 70px 92px 70px; gap: 6px; align-items: center; padding: 5px 9px; border-bottom: 1px solid var(--line); }
.ps-row:last-child { border-bottom: 0; }
.ps-n { color: var(--ink-4); }
.ps-step { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-who { display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.ps-who i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ps-d { color: var(--ink-3); white-space: nowrap; }
.ps .pill-st { font-size: 10px; padding: 1px 6px; text-align: center; }
.np-how { justify-content: flex-start; }

/* ---------- what holds a project or a person up: the "waiting on" bottleneck */
.bn-cell { min-width: 150px; max-width: 230px; }
.bn { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; background: var(--wait); color: var(--wait-ink); font-size: 12.5px; max-width: 100%; }
.bn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn .ic { width: 13px; height: 13px; }
.bn.late { background: var(--late-bg); color: var(--late); }
.bn.late.wait { background: var(--wait); color: var(--late); box-shadow: inset 0 0 0 1px #F1B9B4; }
.bn-cell small { display: block; margin-top: 2px; }
.cnt.wait { background: var(--wait); color: var(--wait-ink); }
.pc-held { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 14px 8px 52px; font-size: 12.5px; color: var(--ink-3); border-top: 1px dashed var(--line); }
.pc-held > .ic { width: 14px; height: 14px; color: var(--wait-dot); }
.held-chip { border: 1px solid #F0D58A; background: #FFF8E3; color: var(--wait-ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.held-chip:hover { border-color: var(--wait-dot); }
.held-chip.late { border-color: #F1B9B4; background: var(--late-bg); color: var(--late); }

/* ---------- New project: describe it and let Pragati draft it */
.np-ai textarea { width: 100%; margin-top: 8px; font-size: 14.5px; }
.np-ask-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 8px; flex-wrap: wrap; }
.np-ask-row label { width: 170px; }
.np-tpl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.np-tpl .chip { font-size: 12px; padding: 3px 10px; }
@media (max-width: 640px) { .pc-held { padding-left: 14px; } .bn-cell { min-width: 120px; } }

/* ---------- home: project dates, overdue steps, project document */
.pdates { font-weight: 600; }
.doc-dl { width: 26px; height: 26px; margin-left: 4px; color: var(--brand-dark); vertical-align: middle; }
.doc-dl:hover { background: var(--brand-tint); }
.ord-table tr.od-row td { background: var(--late-bg); padding: 6px 12px 10px; border-top: 0; }
.od-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.od-head { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--late); margin-right: 4px; }
.od-head .ic { width: 14px; height: 14px; }
.od-step { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid #F1B8B3; background: #fff; border-radius: 4px; padding: 4px 9px; max-width: 320px; cursor: pointer; }
.od-step:hover { border-color: var(--late); }
.od-step b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.od-step span { font-size: 11.5px; color: var(--ink-3); }
.od-step em { font-style: normal; font-weight: 700; }

/* ---------- home: People & projects (boxes per person or per project, scroll sideways; a head drags to hand over) */
.pboard { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; align-items: flex-start; }
.pboard::-webkit-scrollbar { height: 10px; }
.pboard::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
.pbox { flex: 0 0 300px; max-height: 72vh; display: flex; flex-direction: column; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; scroll-snap-align: start; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.pbox > header { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: 6px 6px 0 0; }
.pbox-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pbox-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbox-who b em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.pbox-who small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbox-n { font-family: var(--head); font-weight: 700; font-size: 13px; min-width: 26px; text-align: center; background: var(--brand-tint); color: var(--brand-dark); border-radius: 12px; padding: 1px 8px; }
.pbox-late { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--late); background: var(--late-bg); padding: 4px 12px; }
.pbox-late .ic { width: 13px; height: 13px; }
.pbox-list { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; }
.pbox-empty { margin: 6px 4px; font-size: 12.5px; color: var(--ink-3); }
.pbox > footer { border-top: 1px solid var(--line); padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pbox > footer small { width: 100%; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.pchip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 2px 9px; font-size: 12px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pchip:hover { border-color: var(--brand); color: var(--brand-dark); }
.pbox.can-drop { border-style: dashed; border-color: var(--line-2); }
.pbox.over { border: 2px solid var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.pcx { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 4px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow-1); }
.pcx:hover { border-color: var(--line-2); border-left-color: var(--brand); }
.pcx.is-late { border-left-color: var(--late); }
.pcx[draggable=true] { cursor: grab; }
.pcx.dragging { opacity: .45; }
.pcx-top { display: flex; align-items: flex-start; gap: 2px; }
.pcx-top b { flex: 1; font-size: 13.5px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.pcx-top .icon-btn { width: 24px; height: 24px; flex: none; margin: -2px 0 0; }
.pcx-dates { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pcx-dates .ic { width: 13px; height: 13px; color: var(--ink-4); }
.pcx-foot { display: flex; align-items: center; gap: 7px; font-size: 12px; flex-wrap: wrap; }
.pcx-foot .bar { width: 70px; }
.pcx-foot .late { font-weight: 700; }
.pbox-owner { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.pbox-person { display: flex; align-items: flex-start; gap: 8px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 7px 9px; cursor: pointer; width: 100%; }
.pbox-person:hover { border-color: var(--brand); }
.pbox-person span { display: flex; flex-direction: column; min-width: 0; }
.pbox-person small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pbox-person em { font-style: normal; font-weight: 700; }
.menu .menu-head { padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); }

/* ---------- MOM list */
.mom-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; margin-top: 10px; }
.mom-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); }
.mom-row:hover { border-color: var(--brand); background: var(--hover); }
.mom-row span { flex: 1; display: flex; flex-direction: column; }
.mom-row small { color: var(--ink-3); font-size: 12px; }
.modal.mom-modal { width: min(520px, calc(100vw - 24px)); }

/* ---------- Planner: rename, the project document */
.pname-ed { width: 24px; height: 24px; opacity: .55; margin-left: 2px; }
.pname-ed:hover { opacity: 1; }
.doc-btn.has { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-tint); }
.modal.doc-modal { width: min(780px, calc(100vw - 24px)); }
.doc-win { display: block; }
.doc-main { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.doc-file { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--brand); background: var(--brand-tint); border-radius: 6px; }
.doc-file > .ic { width: 22px; height: 22px; color: var(--brand-dark); }
.doc-file span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.doc-file b { overflow-wrap: anywhere; }
.doc-file small { color: var(--ink-3); font-size: 12px; }
.doc-none { margin: 0; color: var(--ink-3); }
.doc-up { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 2px dashed var(--line-2); border-radius: 6px; cursor: pointer; background: var(--sunk); }
.doc-up:hover { border-color: var(--brand); background: var(--hover); }
.doc-up > .ic { width: 24px; height: 24px; color: var(--brand); }
.doc-up span { display: flex; flex-direction: column; }
.doc-up small { color: var(--ink-3); font-size: 12px; }
.doc-up.busy { opacity: .6; pointer-events: none; }
.doc-what { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.doc-what ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.doc-what small { font-size: 12px; }

/* ---------- phones: a bottom tab bar instead of the side panel, cards instead of wide tables */
@media (max-width: 700px) {
  body, body.side-shut { --side-w: 0px; }
  #app { margin-left: 0; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  #side { inset: auto 0 0 0; width: 100%; height: calc(60px + env(safe-area-inset-bottom)); flex-direction: row; align-items: center; padding: 0 4px env(safe-area-inset-bottom); background: #1E1633; box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
  #side .side-tog, #side .brand, #side .hello, #side .nav-cal { display: none; }
  #side nav { flex-direction: row; flex: 1; justify-content: space-around; padding: 0; gap: 0; min-width: 0; }
  #side nav a, body.side-shut #side nav a { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 1px; padding: 4px 0; border-radius: 8px; min-width: 0; font-size: 10.5px; font-weight: 600; }
  #side nav a .lbl, body.side-shut #side nav a .lbl { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #side .nav-ic { width: 30px; height: 26px; border-radius: 8px; }
  #side nav a .lbl[data-s] { font-size: 0; }
  #side nav a .lbl[data-s]::after { content: attr(data-s); font-size: 10.5px; }
  .bk-group.clear { display: none; }
  .bk-wrap { gap: 8px; }
  #side .badge { position: absolute; top: 0; right: calc(50% - 22px); min-width: 17px; line-height: 16px; font-size: 10px; padding: 0 4px; margin: 0; }
  #side .new-btn, body.side-shut #side .new-btn { order: 2; margin: 0 4px; padding: 0; width: 44px; height: 44px; border-radius: 50%; justify-content: center; flex: none; }
  #side .new-btn .lbl { display: none; }
  #side .me-btn, body.side-shut #side .me-btn { order: 3; margin: 0 2px; padding: 0; border: 0; background: none; flex: none; }
  #side .me-btn .lbl, #side .me-btn > .ic { display: none; }
  #side .me-face .av { width: 32px; height: 32px; }
  #fab { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; width: 50px; height: 50px; }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .cal-panel { bottom: calc(70px + env(safe-area-inset-bottom)); }

  .home-head h1 { font-size: 22px; }
  .home-head .actions { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .home-head .actions .btn { justify-content: center; padding: 8px 6px; font-size: 13px; }
  .home-head .actions .btn.primary { grid-column: 1 / -1; order: -1; }
  .home-search { position: sticky; top: 6px; z-index: 20; margin-bottom: 10px; }
  .home-search input { font-size: 16px; }
  .home-tabs { margin-top: 12px; }
  .tab-tools .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tab-tools .seg button { white-space: nowrap; padding: 6px 10px; }

  .ord-table { min-width: 0; }
  .ord-table thead { display: none; }
  .ord-table, .ord-table tbody { display: block; width: 100%; }
  .ord-table tr.ord { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .ord-table tr.ord td { display: block !important; padding: 0; border: 0; min-width: 0 !important; white-space: normal; }
  .ord-table tr.ord td:nth-child(3) { display: none !important; }
  .ord-table tr.ord td:first-child, .ord-table tr.ord td.bn-cell { grid-column: 1 / -1; }
  .ord-table tr.ord td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-4); margin-bottom: 1px; }
  .ord-table tr.ord td:first-child::before { display: none; }
  .ord-table .ellip { max-width: 100%; }
  .ord-table tr.od-row, .ord-table tr.od-row td { display: block; }
  .od-step, .od-step b { max-width: 100%; }

  .pboard { flex-direction: column; overflow-x: visible; align-items: stretch; }
  .pbox { flex: none; max-height: none; }
  .doc-win { grid-template-columns: 1fr; }
  .doc-fig:hover .doc-sample, .doc-fig:focus .doc-sample { transform: none; }
}

/* ===================================================================== softer, rounder, fewer boxes
   Same violet. Corners 8-16px, panels sit on soft shadows instead of hard borders, segmented controls are pills,
   table rules are faint, and colour stripes become small dots. */
:root { --r-sm: 6px; --r: 8px; --r-lg: 14px; --hair: #EEEAF4; --shadow-1: 0 1px 2px rgba(40,24,80,.05), 0 4px 14px rgba(40,24,80,.05); }
.btn { border-radius: 9px; }
.btn.xs { border-radius: 7px; }
.icon-btn { border-radius: 8px; }
input[type=search], input:not([type]), input[type=date], input[type=number], select, textarea, .search-box { border-radius: 9px; }
.chip, .tag, .health, .pill-st, .st-pill, .st-state, .cnt { border-radius: 999px; }
.health { border-color: transparent; padding: 2px 9px; }
.panel, .sheet-wrap, .gantt, .pcx, .pbox { border-radius: var(--r-lg); }
.panel { border-color: transparent; box-shadow: var(--shadow-1); }
.modal { border-radius: 16px; border: 0; }
.modal-head { border-radius: 16px 16px 0 0; }
.toast, .menu, .sugg { border-radius: 12px; }
.seg { border: 0; background: var(--sunk); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border-radius: 999px; padding: 5px 12px; }
.seg button + button { border-left: 0; }
.seg button.on { background: var(--surface); color: var(--brand-dark); box-shadow: 0 1px 3px rgba(40,24,80,.12); }
table.plain th { background: transparent; border-bottom: 1px solid var(--hair); font-weight: 600; color: var(--ink-4); font-size: 11.5px; letter-spacing: .02em; }
table.plain td { border-bottom: 1px solid var(--hair); }
.bar { border: 0; border-radius: 999px; overflow: hidden; background: #ECE8F3; }
.bar i { border-radius: 999px; }
.tab-n { border: 0; background: rgba(255,255,255,.25); border-radius: 999px; }
.btn:not(.ok):not(.primary) .tab-n { background: var(--sunk); }

/* the three notification groups: no coloured top stripe, a small dot instead */
.bk-group { border: 0; border-top: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.bk-group header b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--ink-4); vertical-align: 1px; }
.bk-group.act header b::before { background: var(--late); } .bk-group.watch header b::before { background: var(--wait-dot); } .bk-group.info header b::before { background: var(--brand); }
.bk-list { border-radius: var(--r-lg); }

/* home tabs: pills, not a ruled strip */
.home-tabs { border-bottom: 0; gap: 4px; margin: 20px 0 12px; }
.home-tabs button { border: 0; border-radius: 999px; margin: 0; padding: 7px 16px; }
.home-tabs button.on { background: var(--brand-tint); color: var(--brand-dark); }
.home-head .actions { flex-wrap: wrap; justify-content: flex-end; }

/* ---- the scorecard */
.score { margin: 14px 0 4px; }
.score-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.score-tile { border: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 12px 16px; text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.score-tile b { font-family: var(--head); font-size: 26px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.score-tile span { font-size: 12.5px; color: var(--ink-3); }
.score-tile:hover { background: var(--hover); }
.score-tile.overdue b { color: var(--late); } .score-tile.pending b { color: var(--wait-ink); } .score-tile.done b { color: var(--ink-4); }
.score-tile.zero b { color: var(--ink-4); }
@media (max-width: 640px) { .score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- one project list, lightly grouped */
.proj-list { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.proj-list .ord-table { min-width: 860px; }
.ord-table th:nth-child(3), .ord-table td:nth-child(3) { display: table-cell; }
.pg-head td { padding: 14px 12px 6px !important; border-bottom: 0 !important; background: transparent !important; cursor: default; }
.pg-tog { border: 0; background: none; display: inline-flex; align-items: center; gap: 7px; padding: 0; cursor: pointer; color: var(--ink-2); font-size: 13px; }
.pg-tog .ic { width: 13px; height: 13px; color: var(--ink-4); }
.pg-tog b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--brand); }
.pg-overdue .pg-tog b::before { background: var(--late); } .pg-pending .pg-tog b::before { background: var(--wait-dot); } .pg-done .pg-tog b::before { background: var(--ink-4); }
.pg-n { font-size: 11.5px; color: var(--ink-4); font-weight: 600; }
.ord-table tbody.pg + tbody.pg .pg-head td { border-top: 1px solid var(--hair) !important; }
.ord-table td.now-cell { min-width: 220px; max-width: 320px; }
.ord-table td.now-cell .ellip { display: inline-block; max-width: 240px; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-table .od-step { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.ord-table .od-step:hover { text-decoration: underline; }
.ord-table tr.ord.is-done td { color: var(--ink-4); }
.ord-table tr.ord.is-done .ord-name b, .ord-table tr.ord.is-done td:nth-child(2) { text-decoration: line-through; text-decoration-color: rgba(60,50,90,.35); }
.ord-table tr.ord.is-done .pcode { background: var(--sunk); color: var(--ink-4); }
.ord-table tr.ord.is-done .bar i { background: var(--ink-4); }
.health.done { color: var(--ink-3); background: var(--sunk); }
.tab-tools .grow { flex: 1; }
.own-table td .who > span { display: flex; flex-direction: column; }
.own-table td:not(:first-child), .own-table th:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.faint { color: var(--line-2); }

/* ---- bulk approve */
.ba-all { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 10px; }
.ba-list { display: flex; flex-direction: column; gap: 4px; max-height: 52vh; overflow: auto; }
.ba-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--sunk); }
.ba-row label { flex: 1; display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; font-weight: 400; }
.ba-row input, .ba-all input { width: auto; margin: 3px 0 0; accent-color: var(--brand); }
.ba-row small { display: block; color: var(--ink-3); font-size: 12px; }

/* ---- ownership box (own page and Planner) */
.own-box { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.own-box label { font-weight: 600; font-size: 13px; color: var(--ink-2); margin: 0; white-space: nowrap; }
.own-box .search-box { flex: 1 1 280px; max-width: 460px; display: flex; padding-left: 10px; }
.own-box .search-box input { border: 0; flex: 1; }
.own-box .sugg { width: min(460px, 100%); }
.page-head .actions .own-box { margin: 0; }
.page-head .actions .own-box .search-box { flex-basis: 240px; }
.own-name { margin: 0 0 12px; }

/* ---- New project: one plain form */
.modal.np { max-width: 940px; }
.np-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 160px; gap: 12px; }
.np-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-weight: 400; color: var(--ink-2); }
.np-check input { width: auto; margin: 0; accent-color: var(--brand); }
.np-steps { margin-top: 14px; overflow: visible; }
.np-sh { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.np-sh h3 { font-size: 15px; margin: 0; }
.np-sh .ic { width: 12px; height: 12px; vertical-align: -1px; }
.np-hd, .np-row { display: grid; grid-template-columns: 44px minmax(0, 2.4fr) minmax(0, 1.5fr) 64px 92px 110px 88px; gap: 8px; align-items: start; }
.np-hd { font-size: 11.5px; font-weight: 600; color: var(--ink-4); padding: 0 6px 4px; }
.np-list { display: flex; flex-direction: column; gap: 4px; }
.np-row { padding: 6px; border-radius: 10px; }
.np-row:hover, .np-row:focus-within { background: var(--sunk); }
.np-row input, .np-row select { width: 100%; margin: 0; }
.np-no { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--brand-dark); padding: 8px 0 0 calc(var(--lv) * 6px); white-space: nowrap; }
.np-step { padding-left: calc(var(--lv) * 18px); position: relative; }
.np-row.has-kids .np-step input { font-weight: 600; }
.np-dates, .np-hint { display: block; font-size: 11.5px; color: var(--ink-4); margin: 3px 2px 0; }
.np-hint { color: var(--done-ink); }
.np-hint.new { color: var(--brand-dark); }
.np-hint .ic { width: 11px; height: 11px; vertical-align: -1px; }
.np-span { display: block; padding: 8px 4px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.np-tools { display: flex; gap: 2px; padding-top: 2px; }
.np-tools .icon-btn:disabled { opacity: .25; }
.np-add { margin: 8px 0 0 50px; }
.np-sum { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); min-height: 1em; }
.np-xl { margin-right: auto; font-size: 12.5px; color: var(--ink-3); }
.np-xl a, .np-xl .link { color: var(--brand-dark); font-weight: 600; cursor: pointer; }
@media (max-width: 760px) {
  .np-top { grid-template-columns: 1fr 1fr; } .np-top .np-name { grid-column: 1 / -1; }
  .np-hd { display: none; }
  .np-row { grid-template-columns: 38px 1fr 1fr; background: var(--sunk); }
  .np-row .np-step { grid-column: 2 / -1; }
  .np-tools { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---- Review and Sign-off in the Planner */
.lg-bar.rv { background: repeating-linear-gradient(135deg, var(--wait) 0 4px, #F6E3A6 4px 8px); border: 1px solid #E8C979; }
.ms-ic.rv .ic { color: var(--wait-dot); fill: none; stroke: var(--wait-dot); }

@media (max-width: 760px) {
  .ord-table tr.pg-head, .ord-table tr.pg-head td { display: block; }
  .ord-table tr.ord td:nth-child(3) { display: block !important; grid-column: 1 / -1; }
}

/* ---- v11: owner cell, step tools, bigger dates, Stepped order tabs, side reset, calendar booking, departments */
.own-cell { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card, #fff); font-size: 13px; max-width: 280px; }
.own-cell small { color: var(--ink-3); font-size: 11.5px; text-transform: none; }
.own-cell b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.own-cell .icon-btn { padding: 3px; }
.own-cell.editing { padding: 3px 4px 3px 10px; border-color: var(--brand); }
.own-cell.editing input { border: 0; outline: 0; background: none; font: inherit; width: 150px; min-width: 0; }
.name-cell { position: relative; }
.sheet td.name-cell { padding-right: 62px; }
.name-cell .row-tools { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 2px; opacity: .45; transition: opacity .15s; }
tr.row:hover .row-tools, .row-tools:focus-within { opacity: 1; }
.row-tools .icon-btn { padding: 3px; border-radius: 8px; }
.row-tools .icon-btn .ic { width: 15px; height: 15px; }
.row-tools .add:hover { background: var(--brand-tint); color: var(--brand-dark); }
.row-tools .del:hover { background: #FDECEC; color: #B42318; }
.sheet .date-cell .dt, .ord-table td.dates, .od-table .dates { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: .1px; }
.grp-meta { font-size: 14px; }
.grp-meta > span:nth-child(2) { font-weight: 600; color: var(--ink); }
.tag.sample { background: #FFF6DB; border-color: #F1D58A; color: #7A5A00; border-radius: 999px; margin: 0 0 0 6px; }
.mom-dl { border: 1px solid var(--line); border-radius: 12px; padding: 7px; }
.btn.ghost.sm { background: none; }
.cm-vs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12.5px; color: var(--ink-2); background: var(--sunk); border-radius: 10px; padding: 7px 10px; margin: 0 0 10px; }
.cm-vs .ic { width: 15px; height: 15px; }
.cm-vs span + .ic { margin-left: 8px; }
.od-table .od-step { display: block; text-align: left; margin: 2px 0; }
.od-table .ord-name.link { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: flex; gap: 6px; align-items: center; }
.od-table .dates { display: block; margin-top: 2px; }
.gc-day { height: 58px; }
.gc-lines { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 3px; }
.gc-lines i { display: block; height: 3px; border-radius: 2px; background: var(--c); }
.gc-who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 8px 0 4px; }
.gc-who select { flex: 1; min-width: 0; }
.gc-busy { font-size: 12.5px; color: var(--ink-2); margin: 4px 0; }
.gc-legend b.ln { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--brand); vertical-align: middle; margin-right: 4px; }
.dept-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }

/* v12: live date line, filter tiles, step actions (Comment, Private chat, Send to Outlook), the view rail, the compact Gantt
   project row, connected projects in the Gantt and the flow chart, the document reader in New project */
.today-line { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.score-tile small { font-size: 11.5px; color: var(--ink-4); }
.score-tile.on { box-shadow: inset 0 0 0 2px var(--brand), var(--shadow-1); background: var(--brand-tint); }
.score-tile.on span { color: var(--brand-dark); font-weight: 600; }
@media (max-width: 900px) { .score-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step-acts { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.step-acts.wide { flex-wrap: wrap; gap: 6px; }
.mail-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; height: 26px; min-width: 26px; padding: 0 6px;
  border: 1px solid #BFD3F2; border-radius: 13px; background: #F2F7FF; color: #1F5FBF; font-size: 12px; font-weight: 700; text-decoration: none; }
.mail-btn .ic { width: 14px; height: 14px; }
.mail-btn:hover { background: #E2EDFF; border-color: #8FB2EA; }
.mail-btn.wide { padding: 0 11px 0 9px; height: 28px; }
.be-acts { padding: 8px 0 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.view-rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 30; width: 136px; padding: 8px; display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); }
.view-rail .vr-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 2px; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.view-rail .vr-h .icon-btn { padding: 2px; }
.view-rail > button { display: flex; align-items: center; gap: 7px; border: 0; background: none; border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; text-align: left; }
.view-rail > button .ic { width: 15px; height: 15px; }
.view-rail > button:hover { background: var(--hover); }
.view-rail > button.on { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.view-rail.shut { width: auto; padding: 0; border-radius: 10px 0 0 10px; right: 0; }
.view-rail .vr-open { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 10px 7px; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--brand-dark); cursor: pointer; }
.view-rail .vr-open span { writing-mode: vertical-rl; }
@media (min-width: 1200px) { #main:has(> .view-rail:not(.shut)) { padding-right: 160px; } }
@media (max-width: 700px) { .view-rail:not(.shut) { top: auto; bottom: 12px; transform: none; } }
@media print { .view-rail { display: none; } }
.g-ph { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; }
.g-ph .tog { padding: 2px; flex: none; }
.g-ph .own-cell { min-width: 0; flex: 1 1 auto; max-width: none; }
.g-ph .own-cell small { display: none; }
.g-ph > .btn { flex: none; margin-left: auto; }
.g-row.g-ext .g-label { padding-left: 14px; gap: 6px; background: #F8F5FF; box-shadow: inset 3px 0 0 var(--brand); font-size: 12.5px; }
.g-row.g-ext .g-track { background: #FBF9FF; }
.g-ext-l { flex: none; color: var(--ink-3); font-size: 11px; }
.g-row.g-ext .plink { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-xbar { position: absolute; top: 7px; height: 20px; z-index: 3; border-radius: 4px; border: 2px dashed var(--brand); background: repeating-linear-gradient(45deg, #F1EAFF, #F1EAFF 6px, #E6DAFF 6px, #E6DAFF 12px);
  display: flex; align-items: center; padding: 0 6px; font-size: 11px; font-weight: 700; color: var(--brand-dark); overflow: hidden; white-space: nowrap; }
.g-xbar.bad { border-color: #DC2626; }
.lk.proj .lk-line { stroke: var(--brand); stroke-width: 2.2; stroke-dasharray: 6 3; }
.lk.proj.bad .lk-line { stroke: #DC2626; }
.wf-node.wf-ext { border: 2px dashed var(--brand); border-left-width: 2px; background: #F8F5FF; }
.wf-node.wf-ext.bad { border-color: #DC2626; }
.np-doc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 12px; }
.np-doc label.btn { cursor: pointer; }
.np-doc-file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--sunk); }
.np-doc-file small { display: block; color: var(--ink-3); font-size: 11.5px; }
.np-xl label.btn { cursor: pointer; }
.doc-short { margin: 10px 0 0; display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.sheet th.wrap-th { white-space: normal; line-height: 1.15; }

/* ---------- phones (2): the planner's view switcher is a slim bar at the top (folded until opened), the Gantt keeps a
   narrow name column so the bars show and the page scrolls with a finger, and Messages shows the list OR one chat. */
.view-rail .vr-open em { display: none; }
.chat-back { display: none; }
@media (max-width: 700px) {
  .view-rail, .view-rail:not(.shut) { position: sticky; top: 4px; right: auto; bottom: auto; transform: none; width: auto; margin: 0 0 10px;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; z-index: 25; }
  .view-rail .vr-h { padding: 0 2px; }
  .view-rail .vr-h:first-child { order: 9; margin-left: auto; }
  .view-rail .vr-h:first-child b { display: none; }
  .view-rail > .vr-h:not(:first-child) { width: 100%; padding-top: 2px; }
  .view-rail > button { padding: 6px 9px; font-size: 12.5px; }
  .view-rail.shut { display: inline-flex; padding: 0; border-radius: 10px; }
  .view-rail .vr-open { flex-direction: row; padding: 7px 12px; font-size: 12.5px; gap: 6px; }
  .view-rail .vr-open span { writing-mode: horizontal-tb; }
  .view-rail .vr-open em { display: inline; font-style: normal; font-weight: 500; color: var(--ink-3); }
  .view-rail .vr-open .ic { transform: rotate(-90deg); }

  .gantt { --lw: 158px !important; max-height: none; overflow-y: visible; -webkit-overflow-scrolling: touch; }
  .g-proj .gantt { max-height: none; }
  .g-label { padding: 0 4px 0 6px; gap: 4px; font-size: 12px; }
  .g-label input[type=checkbox], .g-label .g-due, .g-label .step-acts, .g-label .alert-ic { display: none; }
  .g-row.is-sub .g-name { padding-left: calc(var(--d, 1) * 6px); }
  .g-ph { flex-wrap: wrap; row-gap: 4px; padding: 4px 0; }
  .g-ph .own-cell { display: none; }
  .g-corner { font-size: 11px; padding: 0 6px 6px; }
  .g-bar, .g-link { touch-action: pan-x pan-y; }
  .g-proj-bar [data-act=ganttReset] { margin-left: 0; }

  .chat { height: calc(100dvh - 190px); min-height: 380px; grid-template-columns: 1fr; }
  .chat .convs { max-height: none; border-right: 0; }
  .chat.list-only .thread, .chat.thread-only .convs { display: none; }
  .chat.thread-only .thread { display: flex; }
  .chat-back { display: inline-flex; flex: none; }
  .thread-head { padding: 8px 10px; gap: 8px; }
  .thread-head .right .btn:not(:last-child) { display: none; }
  .bubbles { padding: 10px 3% 8px; }
  .msg { max-width: 86%; }
  .conv .body span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .messages-head .lede { display: none; }
}

/* ---------- Home: the project groups look different at a glance (In time green, Overdue red, Pending amber) */
.pg { --pg: var(--brand); --pg-tint: #F5F1FF; }
.pg-running { --pg: #16A34A; --pg-tint: #EEF9F1; }
.pg-overdue { --pg: #DC2626; --pg-tint: #FDF0EF; }
.pg-pending { --pg: #D97706; --pg-tint: #FEF6E7; }
.pg-done { --pg: #9CA3AF; --pg-tint: #F4F4F2; }
.ord-table .pg-head td { background: var(--pg-tint) !important; border-top: 1px solid var(--line) !important; padding: 9px 12px !important; }
.pg-tog { color: var(--ink); font-size: 13.5px; flex-wrap: wrap; text-align: left; }
.pg-tog b { color: var(--pg); }
.pg .pg-tog b::before { background: var(--pg); width: 9px; height: 9px; }
.pg-tog .pg-n { background: var(--pg); color: #fff; border-radius: 999px; padding: 0 8px; line-height: 18px; }
.pg-what { color: var(--ink-3); font-size: 12px; font-weight: 400; }
.ord-table tbody.pg tr.ord > td:first-child { box-shadow: inset 4px 0 0 var(--pg); }
.score-tile.running b { color: #16A34A; }
@media (max-width: 700px) { .ord-table tbody.pg tr.ord { box-shadow: inset 4px 0 0 var(--pg); } .ord-table tbody.pg tr.ord > td:first-child { box-shadow: none; } }
.mom-access { margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--sunk); }
.mom-access summary { cursor: pointer; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.mom-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 10px; margin-top: 8px; }
.mom-p { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px; border-radius: 6px; cursor: pointer; }
.mom-p:hover { background: var(--hover); }
.mom-p span { display: flex; flex-direction: column; min-width: 0; }
.mom-p small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Home: tour and feedback buttons at the top right */
.home-help { display: inline-flex; gap: 4px; margin-right: 4px; }
.home-help .btn { color: var(--brand-dark); }
@media (max-width: 700px) { .home-help { grid-column: 1 / -1; justify-content: flex-end; margin: 0; } }

/* ---------- Feedback (people) and Admin › Feedback */
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fb-kind { display: inline-flex; cursor: pointer; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kind span { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; background: var(--surface); }
.fb-kind input:checked + span { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.fb-kind input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.fb-attach { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.fb-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fb-shots:empty { display: none; }
.fb-shot { position: relative; }
.fb-shot img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); display: block; }
.fb-shot .icon-btn { position: absolute; top: -8px; right: -8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 50%; padding: 2px; }
.fb-mine { margin-top: 14px; }
.fb-mine:empty { display: none; }
.fb-mine h3 { font-size: 13px; margin: 0 0 6px; color: var(--ink-2); }
.fb-row, .fb-admin { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: var(--surface); }
.fb-row p, .fb-admin p { margin: 6px 0 0; white-space: pre-wrap; font-size: 13.5px; }
.fb-row-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-row-h .who { display: inline-flex; align-items: center; gap: 6px; }
.fb-st { margin-left: auto; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--sunk); color: var(--ink-3); }
.fb-st.new { background: #FEF3C7; color: #92400E; } .fb-st.seen { background: #E0E7FF; color: #3730A3; } .fb-st.done { background: #DCFCE7; color: #166534; }
.fb-reply { background: var(--brand-tint); border-radius: 6px; padding: 6px 8px; }
.fb-admin.new { border-left: 4px solid #D97706; }
.fb-pics { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fb-pics img { height: 110px; max-width: 220px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); }
.fb-answer { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.fb-answer input { flex: 1 1 240px; }

/* ---------- The guided tour: dimmed page, one lit element, a card with an arrow */
.tour { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.tour-block { position: fixed; inset: 0; pointer-events: auto; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(17, 12, 34, .62), 0 0 0 3px #A78BFA; transition: left .25s var(--ease, ease), top .25s var(--ease, ease), width .25s var(--ease, ease), height .25s var(--ease, ease); pointer-events: none; }
.tour-card { position: fixed; width: min(340px, calc(100vw - 16px)); background: var(--surface, #fff); color: var(--ink); border-radius: 12px; padding: 12px 14px 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35); pointer-events: auto; transition: left .25s var(--ease, ease), top .25s var(--ease, ease); }
.tour-card::before { content: ""; position: absolute; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); }
.tour-card[data-side=bottom]::before { top: -7px; left: calc(var(--ax) - 7px); }
.tour-card[data-side=top]::before { bottom: -7px; left: calc(var(--ax) - 7px); }
.tour-card[data-side=right]::before { left: -7px; top: calc(var(--ay) - 7px); }
.tour-card[data-side=left]::before { right: -7px; top: calc(var(--ay) - 7px); }
.tour-card[data-side=none]::before { display: none; }
.tour-top { display: flex; align-items: center; gap: 8px; }
.tour-top .icon-btn { margin-left: auto; padding: 2px; }
.tour-n { font-size: 11.5px; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .04em; }
.tour-key { font-size: 10.5px; font-weight: 700; background: #FEF3C7; color: #92400E; border-radius: 999px; padding: 1px 8px; }
.tour-card h3 { margin: 6px 0 4px; font-family: var(--head); font-size: 16.5px; }
.tour-card p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.tour-dots { display: flex; gap: 4px; margin: 10px 0 8px; flex-wrap: wrap; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.tour-dots i.seen { background: #C4B5FD; } .tour-dots i.on { background: var(--brand); width: 16px; border-radius: 3px; }
.tour-foot { display: flex; align-items: center; gap: 6px; }
.tour-foot .grow { flex: 1; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }
