/* GO Project Manager — Go Engineering brand ("navy is authority, green is momentum") */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #25265E; --navy-700: #1d1e4b; --navy-900: #15163a;
  --charcoal: #2C3E50; --slate: #627182; --slate-200: #c4ccd5;
  --bg: #F0F4F8; --white: #ffffff; --line: #e2e8f0;
  --green-deep: #53A127; --green: #6DB82F; --green-hi: #98D846;
  --amber: #b7791f; --amber-bg: #fdf3e1; --red: #b42318; --red-bg: #fdecea;
  --green-bg: #eef7e6; --navy-bg: #e9eaf3;
  --radius: 8px; --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(21,22,58,.06), 0 1px 3px rgba(21,22,58,.08);
  --shadow-md: 0 8px 28px rgba(21,22,58,.18);
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Aptos", "Segoe UI", system-ui, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg-bg, var(--bg)); color: var(--fg-charcoal, var(--charcoal)); font: 15px/1.5 var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--fg-navy, var(--navy)); margin: 0; line-height: 1.2; }
h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; font-weight: 600; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
a { color: var(--fg-navy, var(--navy)); }
a:hover { color: var(--green-deep); }
.muted { color: var(--fg-slate, var(--slate)); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 24px; padding: 10px 24px; background: var(--bg-white, var(--white));
  border-bottom: 3px solid var(--green); position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-app { font-family: var(--font-head); font-weight: 600; color: var(--fg-navy, var(--navy)); border-left: 1px solid var(--bd-line, var(--line)); padding-left: 12px; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius);
  text-decoration: none; color: var(--fg-charcoal, var(--charcoal)); font-family: var(--font-head); font-size: .9rem; font-weight: 500; }
.nav a:hover { background: var(--bg-bg, var(--bg)); color: var(--fg-navy, var(--navy)); }
.nav a.active { background: var(--navy); color: var(--white); }
.userbox { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.userbox .who { text-align: right; line-height: 1.25; }
.userbox .who b { display: block; color: var(--fg-navy, var(--navy)); font-family: var(--font-head); font-weight: 600; }

.main { max-width: 1560px; margin: 0 auto; padding: 28px 24px 64px; outline: none; }

/* ---------- headings ---------- */
.eyebrow { font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-deep); margin: 0 0 6px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { padding-bottom: 8px; border-bottom: 3px solid var(--green); display: inline-block; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: var(--radius);
  padding: 8px 14px; font: 500 .9rem var(--font-head); cursor: pointer; text-decoration: none; transition: transform .08s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-ghost { background: var(--bg-white, var(--white)); color: var(--fg-navy, var(--navy)); border-color: var(--bd-line, var(--line)); }
.btn-ghost:hover { border-color: var(--bd-navy, var(--navy)); color: var(--fg-navy, var(--navy)); }
.btn-sm { padding: 5px 10px; font-size: .8rem; }
.icon-btn { border: 0; background: transparent; color: var(--fg-slate, var(--slate)); cursor: pointer; padding: 5px; border-radius: 6px;
  display: inline-flex; align-items: center; font-size: 1.3rem; line-height: 1; }
.icon-btn:hover { background: var(--bg-bg, var(--bg)); color: var(--fg-navy, var(--navy)); }
.icon-btn.danger:hover { color: var(--fg-red, var(--red)); background: var(--bg-red-bg, var(--red-bg)); }
.row-actions { display: inline-flex; gap: 2px; justify-content: flex-end; }

/* ---------- cards & stats ---------- */
.card { background: var(--bg-white, var(--white)); border: 1px solid var(--bd-line, var(--line)); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .task-cards > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.statband { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--bg-white, var(--white)); border: 1px solid var(--bd-line, var(--line)); border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow-sm); }
.stat .v { font: 600 1.7rem/1.1 var(--font-head); color: var(--fg-navy, var(--navy)); font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .9rem; color: var(--fg-slate, var(--slate)); font-weight: 500; }
.stat .l { font-size: .8rem; color: var(--fg-slate, var(--slate)); margin-top: 4px; }
.stat.bad .v { color: var(--fg-red, var(--red)); }
.stat.feature { border-left: 4px solid var(--green); }

.facts { background: var(--navy-900); color: var(--bg); border-radius: var(--radius-lg); padding: 18px 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 24px; margin-bottom: 18px; }
.facts dt { font: 700 .68rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--green-hi); }
.facts dd { margin: 2px 0 0; color: var(--white); }
.facts .wide { grid-column: 1 / -1; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font: 600 .74rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-slate, var(--slate));
  padding: 10px 12px; border-bottom: 2px solid var(--bd-line, var(--line)); background: var(--bg-f8fafc, #f8fafc); white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--bd-line, var(--line)); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--bg-fafbfd, #fafbfd); }
.tbl tr.clickable { cursor: pointer; }
.tbl tfoot td { font-weight: 600; color: var(--fg-navy, var(--navy)); border-top: 2px solid var(--bd-line, var(--line)); background: var(--bg-f8fafc, #f8fafc); }
.empty { padding: 28px; text-align: center; color: var(--fg-slate, var(--slate)); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }
.section-head .filters { margin: 0; }
.filters button[aria-pressed="true"] { background: var(--bg-navy-bg, var(--navy-bg)); border-color: var(--bd-navy-bg, var(--navy-bg)); color: var(--fg-navy, var(--navy)); }
.filters button .n { margin-left: 6px; font-weight: 400; opacity: .7; }

/* WBS tree */
.wbs td.name { min-width: 260px; }
.wbs td, .wbs th { padding-left: 8px; padding-right: 8px; }
.wbs .row-actions .icon-btn { padding: 4px; }
.footnote { font-size: .78rem; color: var(--fg-slate, var(--slate)); padding: 10px 14px; margin: 0; border-top: 1px solid var(--bd-line, var(--line)); }
.wbs tr.node td { background: var(--bg-f8fafc, #f8fafc); }
.wbs tr.node.depth-0 td { background: var(--bg-navy-bg, var(--navy-bg)); }
.wbs tr.node .code { font: 600 .82rem var(--font-head); color: var(--fg-navy, var(--navy)); margin-right: 8px; }
.wbs tr.node .title { font-family: var(--font-head); font-weight: 600; color: var(--fg-navy, var(--navy)); }
.wbs tr.task td.name .title { font-weight: 500; }
.wbs .desc { display: block; font-size: .8rem; color: var(--fg-slate, var(--slate)); }
.indent { display: inline-block; }
.lvl-1 { padding-left: 22px; } .lvl-2 { padding-left: 44px; } .lvl-3 { padding-left: 66px; }
.lvl-4 { padding-left: 88px; } .lvl-5 { padding-left: 110px; } .lvl-6 { padding-left: 132px; }
.task-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }

/* ---------- pills, chips, bars ---------- */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 500 .74rem var(--font-head); white-space: nowrap; background: var(--bg-bg, var(--bg)); color: var(--fg-slate, var(--slate)); }
.pill.s-in-progress, .pill.s-active { background: var(--bg-navy-bg, var(--navy-bg)); color: var(--fg-navy, var(--navy)); }
.pill.s-complete { background: var(--bg-green-bg, var(--green-bg)); color: var(--green-deep); }
.pill.s-on-hold { background: var(--bg-amber-bg, var(--amber-bg)); color: var(--fg-amber, var(--amber)); }
.pill.s-planning { background: var(--bg-bg, var(--bg)); color: var(--fg-charcoal, var(--charcoal)); }
.pill.s-cancelled { background: var(--bg-red-bg, var(--red-bg)); color: var(--fg-red, var(--red)); }
.pill.overdue { background: var(--bg-red-bg, var(--red-bg)); color: var(--fg-red, var(--red)); }
.pill.nonbill { background: var(--bg-eceef7, #eceef7); color: var(--fg-navy, var(--navy, var(--fg-25265e, #25265E))); }
.chip { display: inline-block; padding: 1px 8px; margin: 1px 4px 1px 0; border: 1px solid var(--bd-line, var(--line)); border-radius: 999px; font-size: .78rem; background: var(--bg-white, var(--white)); white-space: nowrap; }
.chip.me { border-color: var(--green); background: var(--bg-green-bg, var(--green-bg)); }
.bar { position: relative; height: 8px; border-radius: 999px; background: var(--bg-line, var(--line)); overflow: hidden; min-width: 70px; }
.bar > span { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 999px; }
.bar.over > span { background: var(--red); }
.bar.navy > span { background: var(--navy); }
.barcell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.barcell .bar { flex: 1; }
.barcell .pct { font-size: .78rem; color: var(--fg-slate, var(--slate)); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.var-over { color: var(--fg-red, var(--red)); font-weight: 600; }
.var-under { color: var(--green-deep); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--bd-line, var(--line)); margin: 6px 0 16px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 10px 16px; font: 500 .9rem var(--font-head); color: var(--fg-slate, var(--slate));
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.active { color: var(--fg-navy, var(--navy)); border-bottom-color: var(--green); }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }

/* my tasks */
.task-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.task-card { display: flex; flex-direction: column; gap: 10px; }
.task-card.featured { border-left: 4px solid var(--green); }
.task-card .meta { font-size: .82rem; color: var(--fg-slate, var(--slate)); }
.task-card .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; background: var(--bg-bg, var(--bg)); border-radius: var(--radius); padding: 8px; }
.task-card .nums b { display: block; font: 600 1.05rem var(--font-head); color: var(--fg-navy, var(--navy)); }
.task-card .nums span { font-size: .72rem; color: var(--fg-slate, var(--slate)); }
.task-card .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: auto; flex-wrap: wrap; }

/* sign in */
.signin { max-width: 560px; margin: 40px auto; }
.signin .notice { background: var(--bg-amber-bg, var(--amber-bg)); color: var(--fg-amber, var(--amber)); border-radius: var(--radius); padding: 10px 14px; font-size: .85rem; margin: 14px 0; }
.user-list { display: grid; gap: 8px; margin-top: 14px; }
.user-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 16px;
  border: 1px solid var(--bd-line, var(--line)); border-radius: var(--radius); background: var(--bg-white, var(--white)); cursor: pointer; font: inherit; }
.user-pick:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.user-pick b { color: var(--fg-navy, var(--navy)); font-family: var(--font-head); font-weight: 600; }

/* ---------- forms & modal ---------- */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font: 500 .8rem var(--font-head); color: var(--fg-navy, var(--navy)); }
.field .hint { font-size: .75rem; color: var(--fg-slate, var(--slate)); }
input, select, textarea { font: inherit; color: var(--fg-charcoal, var(--charcoal)); padding: 8px 10px; border: 1px solid var(--bd-slate-200, var(--slate-200)); border-radius: var(--radius); background: var(--bg-white, var(--white)); width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
input[type="checkbox"] { width: auto; padding: 0; accent-color: var(--green-deep); }
textarea { min-height: 76px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--fg-red, var(--red)); background: var(--bg-red-bg, var(--red-bg)); margin: 0 22px 12px; padding: 8px 12px; border-radius: var(--radius); font-size: .88rem; }
.modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(680px, calc(100vw - 32px)); box-shadow: var(--shadow-md); color: var(--fg-charcoal, var(--charcoal)); }
.modal::backdrop { background: rgba(21,22,58,.55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 3px solid var(--green); }
.modal-body { padding: 18px 22px; max-height: 68vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--bd-line, var(--line)); background: var(--bg-f8fafc, #f8fafc); }
.assign-row { display: grid; grid-template-columns: 1fr 120px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.team-row { border: 1px solid var(--bd-line, var(--line)); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; background: var(--bg-f8fafc, #f8fafc); }
.team-row .assign-row { grid-template-columns: 1fr 220px 36px; margin-bottom: 4px; }
.criteria { padding-left: 4px; }
.criteria-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.criteria-row input[type="date"] { width: 150px; } .criteria-row input[type="number"] { width: 80px; } .criteria-row input:not([type]) { width: 160px; }
.pdf-preview { height: 56vh; overflow: auto; background: var(--bg-f3f4f6, #f3f4f6); border-radius: var(--radius); margin-bottom: 10px; }
.statement { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.statement input { width: auto; margin-top: 3px; }
h3.small { font-size: .9rem; margin: 6px 0 4px; }
.steps { list-style: none; padding: 10px 14px; margin: 0 0 12px; background: var(--bg-white, var(--white)); border: 1px solid var(--bd-line, var(--line)); border-radius: var(--radius); font-size: .88rem; }
.steps li.ok { color: var(--green-deep); } .steps li.warn { color: var(--fg-amber, var(--amber)); } .steps li.bad { color: var(--fg-red, var(--red)); }
.grid-week td.cell { min-width: 84px; vertical-align: top; font-size: .8rem; }
.grid-week td.cell.planned { background: var(--bg-green-bg, var(--green-bg)); } .grid-week td.cell.off { background: var(--bg-bg, var(--bg)); color: var(--fg-slate, var(--slate)); }
.roster-note { color: var(--fg-amber, var(--amber)); }
.pin { font-size: .8rem; }
.chk { display: block; padding: .15rem 0; }
.pill.c-green { background: var(--bg-green-bg, var(--green-bg)); color: var(--green-deep); } .pill.c-amber { background: var(--bg-amber-bg, var(--amber-bg)); color: var(--fg-amber, var(--amber)); }
.pill.c-navy { background: var(--bg-navy-bg, var(--navy-bg)); color: var(--fg-navy, var(--navy)); } .pill.c-grey { background: var(--bg-bg, var(--bg)); color: var(--fg-slate, var(--slate)); }
.checklist { list-style: none; padding: 0; margin: 0 0 .6rem; } .checklist li { padding: .15rem 0; } .checklist li.ok { color: var(--green-deep); } .checklist li.todo { color: var(--fg-slate, var(--slate)); }
tr.row-link { cursor: pointer; }
.avail-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.avail-card { display: flex; flex-direction: column; gap: .45rem; }
.avail-head { display: flex; align-items: center; gap: .7rem; }
.avail-head h3 { margin: 0; font-size: 1rem; }
.avatar { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-navy-bg, var(--navy-bg)); color: var(--fg-navy, var(--navy)); display: grid; place-items: center; font: 600 1.05rem var(--font-head); overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.avatar img.loaded { display: block; }
.avail-pct { display: flex; align-items: baseline; gap: .4rem; } .avail-pct b { font: 600 1.9rem var(--font-head); color: var(--green-deep); } .avail-pct span { color: var(--fg-slate, var(--slate)); font-size: .85rem; }
.avail-card .bar { width: 100%; }
.alloc-summary { font-size: .85rem; margin-top: 6px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy-900); color: var(--white);
  padding: 10px 18px; border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 50; font-size: .9rem; border-left: 4px solid var(--green); }
.toast.error { border-left-color: var(--red); }

@media (max-width: 720px) {
  .topbar { padding: 10px 16px; gap: 10px; position: static; }
  .brand-app { display: none; }
  .userbox { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .brand-logo { height: 36px; }
  .main { padding: 18px 16px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .task-cards { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .actions, .row-actions, .tabs { display: none !important; }
  body { background: var(--bg-white, var(--white)); }
}

/* ---- the Manager tab's Roster and Timesheets (as Contracting Management draws them) ---- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.monthnav { display: inline-flex; align-items: center; gap: 4px; }
.monthnav .label { min-width: 150px; text-align: center; font-weight: 600; color: var(--fg-navy, var(--navy)); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--bd-line, var(--line)); border-left: 1px solid var(--bd-line, var(--line)); border-radius: 12px; overflow: hidden; background: var(--bg-white, var(--white)); }
.cal-dow { padding: 8px 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg-bg, var(--bg)); border-right: 1px solid var(--bd-line, var(--line)); border-bottom: 1px solid var(--bd-line, var(--line)); }
.cal-cell { min-height: 92px; border: 0; border-right: 1px solid var(--bd-line, var(--line)); border-bottom: 1px solid var(--bd-line, var(--line)); padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: var(--bg-white, var(--white)); text-align: left; font: inherit; color: inherit; }
.cal-cell:hover, .cal-cell:focus-visible { background: var(--bg-navy-bg, var(--navy-bg)); outline: none; }
.cal-cell.dim { background: var(--bg-bg, var(--bg)); color: var(--muted); }
.cal-cell.weekend .cal-daynum { color: var(--green-deep); }
.cal-cell.today .cal-daynum { background: var(--navy); color: #fff; }
.cal-cell.locked { background: repeating-linear-gradient(135deg, var(--bg-white, var(--white)), var(--bg-white, var(--white)) 8px, var(--bg-f4f5fa, #f4f5fa) 8px, var(--bg-f4f5fa, #f4f5fa) 16px); }
.cal-top { display: flex; align-items: center; }
.cal-daynum { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.cal-lock { margin-left: auto; font-size: .72rem; opacity: .75; }
.chip { border-radius: 8px; padding: 4px 6px; font-size: .78rem; font-weight: 700; line-height: 1.2; border-left: 3px solid transparent; }
.chip small { display: block; font-weight: 500; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.shift { background: var(--bg-e9f6dd, #e9f6dd); color: var(--fg-2f5a10, #2f5a10); border-left-color: #69b231; }
.chip.leave { background: var(--bg-fff4d6, #fff4d6); color: var(--fg-7a5200, #7a5200); border-left-color: var(--bd-ffc000, #ffc000); }
.chip.other { background: var(--bg-navy-bg, var(--navy-bg)); color: var(--fg-navy, var(--navy)); border-left-color: var(--bd-navy, var(--navy)); }
.chip.review { background: var(--bg-ffe8d6, #ffe8d6); color: var(--fg-9a3412, #9a3412); border-left-color: #ff6600; }
.chip.rejected { background: var(--bg-red-bg, var(--red-bg)); color: var(--fg-red, var(--red)); border-left-color: var(--red); text-decoration: line-through; }
.chip.off { background: transparent; color: var(--muted); border-left-color: transparent; font-weight: 500; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 10px; align-items: center; }
.legend .chip { display: inline-block; padding: 2px 8px; }
.ts { width: 100%; border-collapse: collapse; background: var(--bg-white, var(--white)); }
.ts th, .ts td { padding: 8px 8px; border-bottom: 1px solid var(--bd-line, var(--line)); text-align: left; vertical-align: middle; font-size: .9rem; }
.ts th { background: var(--navy); color: #fff; font-weight: 500; font-size: .78rem; white-space: nowrap; }
.ts tr.weekend td { background: var(--bg-fafbff, #fafbff); }
.ts tr.off td { color: var(--muted); }
.ts tr.leave td { background: var(--bg-fffaf0, #fffaf0); }
.ts tr.lock td { background: var(--bg-f6f7fb, #f6f7fb); } .ts tr.lock input { background: transparent; }
.ts input[type=time] { font: inherit; padding: 5px 6px; border: 1px solid var(--bd-line, var(--line)); border-radius: 8px; background: var(--bg-white, var(--white)); width: 128px; }
.ts input[type=text] { font: inherit; padding: 5px 8px; border: 1px solid var(--bd-line, var(--line)); border-radius: 8px; background: var(--bg-white, var(--white)); width: 100%; min-width: 120px; }
.ts .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts .ot { color: var(--fg-9a3412, #9a3412); font-weight: 700; }
.ts .day { white-space: nowrap; font-weight: 600; }
.ts .day small { display: block; font-weight: 500; color: var(--muted); }
.tcard { border-left: 4px solid var(--bd-line, var(--line)); }
.tcard.out { border-left-color: #ff6600; } .tcard.signed { border-left-color: var(--green); }
.tcard .row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 600px) { .cal-cell { min-height: 64px; padding: 4px; } .chip small { display: none; } .chip { font-size: .72rem; padding: 3px 4px; } .monthnav .label { min-width: 110px; } }
@media (max-width: 760px) { .ts thead { display: none; } .ts tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 8px; border-bottom: 1px solid var(--bd-line, var(--line)); } .ts td { border: 0; padding: 2px 0; } .ts td.day { grid-column: 1 / -1; } }

/* ---- the team availability review ---- */
.review-person h3 { margin: 14px 0 8px; }
.review-days { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.review-day { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--bd-line, var(--line)); background: var(--bg-white, var(--white)); }
.review-day.flagged { border-left: 4px solid var(--amber); background: var(--bg-amber-bg, var(--amber-bg)); }
.review-day.claimed { border-left: 4px solid var(--green); background: var(--bg-green-bg, var(--green-bg)); }
.warn-text { color: var(--fg-amber, var(--amber)); font-weight: 600; }

/* ---- My Day ---- */
.day-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.day-head input[type=date] { padding: 6px 8px; border: 1px solid var(--bd-line, var(--line)); border-radius: var(--radius); font: inherit; background: var(--bg-white, var(--white)); width: auto; }   /* its own width: at 100% it pushed the arrows onto lines of their own */
.team-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.team-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.team-card:hover { border-color: var(--green); }
.team-card.active { border-color: var(--green); background: var(--bg-green-bg, var(--green-bg)); }
.team-card .av { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 600 .85rem var(--font-head); flex: none; }
.team-card .nums { font-size: .8rem; color: var(--fg-slate, var(--slate)); }
.team-card .nums b { color: var(--fg-navy, var(--navy)); }
.team-card .nums .warn, .team-card .nums .warn b { color: var(--fg-red, var(--red)); }
.task-card.done { border-left: 4px solid var(--green-deep); opacity: .8; }
.task-card.overdue { border-left: 4px solid var(--red); }
.task-card .today-h { color: var(--green-deep); font-weight: 600; }
.viewing { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius); background: var(--bg-navy-bg, var(--navy-bg)); margin-bottom: 14px; }
.viewing svg { flex: none; }
.day-h { margin: 18px 0 8px; }

/* ---- the prompt beneath the scope ---- */
details.prompt { margin-top: 6px; }
details.prompt summary { cursor: pointer; }
details.prompt p { white-space: pre-wrap; margin: 6px 0 0; }

/* ---- a task's name opens its popup ---- */
.linklike { border: 0; background: transparent; padding: 0; font: inherit; color: var(--fg-navy, var(--navy)); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; text-align: left; }
.linklike:hover { text-decoration-color: var(--green); color: var(--green-deep); }
.task-card h3 .linklike { font: inherit; }
.task-facts { margin-bottom: 12px; }
.task-facts .prewrap { white-space: pre-wrap; }

/* ---- the Task report tab: a project's month, and the signature pad ---- */
.report-card + .report-card { margin-top: 14px; }
.report-card > .section-head { align-items: flex-start; }
.report-card .nums { display: flex; gap: 14px; text-align: center; }
.report-card .nums b { display: block; font: 600 1.05rem var(--font-head); color: var(--fg-navy, var(--navy)); }
.report-card .nums span { font-size: .75rem; color: var(--fg-slate, var(--slate)); }
.report-card .foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 10px; }
.sig label { display: block; font-weight: 600; margin-bottom: 6px; }
#sig-pad { display: block; width: 100%; max-width: 520px; height: 160px; border: 1px dashed var(--slate-200, #c4ccd5); border-radius: var(--radius); background: var(--white); touch-action: none; cursor: crosshair; }   /* theme: keep - the pad stays white paper on the dark screen too: the signature is drawn in navy (app.js) */
.sig .row-actions { margin-top: 8px; align-items: center; gap: 10px; }
tr.sub > td { background: var(--bg-bg, var(--bg)); padding: 6px 12px; }
details.lines summary { cursor: pointer; }
details.lines table { margin-top: 8px; }

/* a training shift on the roster (21 Oct 2026) */
.chip.training { background: var(--bg-e8eefb, #e8eefb); color: var(--fg-1e3a8a, #1e3a8a); border-left-color: #3b82f6; }

/* ---- the Calendar (9 Nov 2026): a month grid of task chips, a week table ---- */
.tcal .cal-cell { cursor: default; min-height: 104px; }
.tcal .cal-cell:hover { background: var(--bg-white, var(--white)); }
.tcal .cal-cell.dim, .tcal .cal-cell.dim:hover { background: var(--bg-bg, var(--bg)); }
.tcal .cal-cell.holiday { background: var(--bg-fffaf0, #fffaf0); }
.tcal .cal-daynum { border: 0; background: transparent; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: inherit; }
.tcal .cal-daynum:hover, .tcal .cal-daynum:focus-visible { background: var(--bg-navy-bg, var(--navy-bg)); outline: none; }
.tcal .cal-cell.today .cal-daynum { background: var(--navy); color: #fff; }
.cal-hours { margin-left: auto; font-size: .72rem; color: var(--fg-slate, var(--slate)); white-space: nowrap; }
.cal-hours b { color: var(--green-deep); }
.cal-holiday { font-size: .7rem; color: var(--fg-7a5200, #7a5200); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tchip { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--bd-navy, var(--navy)); border-radius: 4px; padding: 3px 6px; font-family: inherit; font-size: .74rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bg-navy-bg, var(--navy-bg)); color: var(--fg-navy, var(--navy)); }
.tchip small { display: block; font-weight: 500; opacity: .85; }
.tchip.logged { background: var(--bg-e9f6dd, #e9f6dd); color: var(--fg-2f5a10, #2f5a10); border-left-color: #69b231; }
.tchip.due { background: var(--bg-red-bg, var(--red-bg)); color: var(--fg-red, var(--red)); border-left-color: var(--red); }
.tchip.done { background: var(--bg-bg, var(--bg)); color: var(--fg-slate, var(--slate)); border-left-color: var(--bd-c4ccd5, #c4ccd5); text-decoration: line-through; }
.tchip.nonbill { border-left-style: dashed; }
.tchip:hover, .tchip:focus-visible { filter: brightness(.95); outline: none; }
.legend .tchip { display: inline-block; width: auto; padding: 2px 8px; cursor: default; }
.tcal-more { font-size: .72rem; }
.wk td.wk-cell { vertical-align: top; min-width: 84px; }
.wk td.wk-cell.win { background: var(--bg-f6f7fb, #f6f7fb); }
.wk td.wk-cell.hol { background: var(--bg-fffaf0, #fffaf0); }
.wk td.wk-cell .tchip { display: inline-block; width: auto; margin: 1px 2px 1px 0; }
.wk th small { display: block; font-weight: 500; opacity: .85; }
.wk th.today { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.wk tr.done td { opacity: .7; }
@media (max-width: 600px) { .tcal .cal-cell { min-height: 72px; } .tchip small, .cal-hours, .cal-holiday { display: none; } .tchip { font-size: .66rem; padding: 2px 4px; } }

/* ---- the Calendar's month: a week per row, one bar per task across its days ---- */
.tcal { border: 1px solid var(--bd-line, var(--line)); border-radius: 12px; overflow: hidden; background: var(--bg-white, var(--white)); }
.cal-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tcal .cal-dow { border-bottom: 1px solid var(--bd-line, var(--line)); padding: 10px 8px; font-size: .8rem; }
.tcal .cal-dow + .cal-dow { border-left: 1px solid var(--bd-line, var(--line)); }
.cal-week { position: relative; border-top: 1px solid var(--bd-line, var(--line)); }
.cal-week:first-of-type, .cal-dows + .cal-week { border-top: 0; }
.cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tcal .cal-cell { border: 0; border-radius: 0; min-height: 100px; padding: 4px 6px; }
.tcal .cal-cell + .cal-cell { border-left: 1px solid var(--bd-line, var(--line)); }
.cal-week.lanes-1 .cal-cell { min-height: 122px; } .cal-week.lanes-2 .cal-cell { min-height: 152px; } .cal-week.lanes-3 .cal-cell { min-height: 182px; }
.cal-week.lanes-4 .cal-cell { min-height: 212px; } .cal-week.lanes-5 .cal-cell { min-height: 242px; }
.cal-bars { position: absolute; left: 0; right: 0; top: 36px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 28px; row-gap: 2px; padding: 0 3px; pointer-events: none; }
.tbar { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 6px; margin: 1px 3px; height: 26px; border: 0; border-radius: 6px; padding: 0 8px; text-align: left; font-family: inherit;
  font-size: .74rem; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap; overflow: hidden; background: var(--bg-navy-bg, var(--navy-bg)); color: var(--fg-navy, var(--navy)); }
.tbar .tname { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tbar .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.tbar .i { flex: none; width: 13px; height: 13px; }
.tbar .tflag { flex: none; display: inline-flex; opacity: .85; margin-left: auto; }
.tchip .i { width: 11px; height: 11px; vertical-align: -1px; }
.tbar .tmeta { flex: none; font-size: .68rem; font-weight: 500; opacity: .8; }
.tbar .tmeta::before { content: "·"; margin-right: 6px; }
.tbar .tmeta b { color: var(--green-deep); font-weight: 700; }
.tbar.active { background: var(--bg-green-bg, var(--green-bg)); color: var(--fg-2f5a10, #2f5a10); } .tbar.active .dot { background: var(--green); }
.tbar.due { background: var(--bg-red-bg, var(--red-bg)); color: var(--fg-red, var(--red)); } .tbar.due .dot { background: var(--red); }
.tbar.done { background: var(--bg-bg, var(--bg)); color: var(--fg-slate, var(--slate)); opacity: .72; } .tbar.done .i { color: var(--green-deep); }
.tbar.nonbill { border: 1px dashed currentColor; }
.tbar.cont { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; padding-left: 6px; }
.tbar.more { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.tbar.span-1 .tmeta { display: none; }
.tbar:hover { filter: brightness(.95); }
.tbar:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--green); }
.tcal-more.lane-5 { pointer-events: auto; text-align: left; padding-left: 8px; }
.col-1 { grid-column-start: 1; } .col-2 { grid-column-start: 2; } .col-3 { grid-column-start: 3; } .col-4 { grid-column-start: 4; } .col-5 { grid-column-start: 5; } .col-6 { grid-column-start: 6; } .col-7 { grid-column-start: 7; }
.span-1 { grid-column-end: span 1; } .span-2 { grid-column-end: span 2; } .span-3 { grid-column-end: span 3; } .span-4 { grid-column-end: span 4; } .span-5 { grid-column-end: span 5; } .span-6 { grid-column-end: span 6; } .span-7 { grid-column-end: span 7; }
.lane-1 { grid-row: 1; } .lane-2 { grid-row: 2; } .lane-3 { grid-row: 3; } .lane-4 { grid-row: 4; } .lane-5 { grid-row: 5; }
@media (max-width: 600px) { .cal-bars { top: 30px; grid-auto-rows: 18px; } .tbar { font-size: .64rem; padding: 1px 4px; } .tbar small { display: none; }
  .cal-week.lanes-1 .cal-cell { min-height: 56px; } .cal-week.lanes-2 .cal-cell { min-height: 76px; } .cal-week.lanes-3 .cal-cell { min-height: 96px; } .cal-week.lanes-4 .cal-cell { min-height: 116px; } .cal-week.lanes-5 .cal-cell { min-height: 136px; } }
.tbar.site, .tchip.site { background: var(--bg-fff4d6, #fff4d6); color: var(--fg-7a5200, #7a5200); border-left-color: var(--bd-ffc000, #ffc000); } .tbar.site { box-shadow: inset 3px 0 0 #ffc000; }
.wk td.wk-cell.site { background: var(--bg-fffaf0, #fffaf0); }
.tchip.lieu { background: var(--bg-ede7f6, #ede7f6); color: var(--fg-4a2b8a, #4a2b8a); border-left-color: #7e57c2; display: inline-block; width: auto; margin-top: 2px; padding: 1px 6px; }
.tchip.lieu.ask { border-left-style: dashed; opacity: .85; }
.tabs .cal-lieu { margin-left: auto; border-bottom: 0; }
.tchip.leave { background: var(--bg-fff4d6, #fff4d6); color: var(--fg-7a5200, #7a5200); border-left-color: var(--bd-ffc000, #ffc000); display: inline-block; width: auto; margin-top: 2px; padding: 1px 6px; }
.tchip.leave.ask { border-left-style: dashed; opacity: .85; }
.tchip.event { background: var(--bg-e3f2fd, #e3f2fd); color: var(--fg-0d47a1, #0d47a1); border-left-color: #1976d2; margin-top: 2px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tcal .cal-cell .tchip.event { position: relative; z-index: 2; }
.cal-evs { margin-top: 6px; } .cal-evs .tchip.event { display: block; width: 100%; }      /* under the week's task bars, whatever their lanes */
.cal-week.lanes-1 .cal-evs { margin-top: 38px; } .cal-week.lanes-2 .cal-evs { margin-top: 68px; } .cal-week.lanes-3 .cal-evs { margin-top: 98px; } .cal-week.lanes-4 .cal-evs { margin-top: 128px; } .cal-week.lanes-5 .cal-evs { margin-top: 158px; }
@media (max-width: 600px) { .cal-week.lanes-1 .cal-evs { margin-top: 26px; } .cal-week.lanes-2 .cal-evs { margin-top: 50px; } .cal-week.lanes-3 .cal-evs { margin-top: 74px; } .cal-week.lanes-4 .cal-evs { margin-top: 98px; } .cal-week.lanes-5 .cal-evs { margin-top: 122px; } }
.tabs .cal-event { margin-left: auto; border-bottom: 0; } .tabs .cal-event + .cal-leave, .tabs .cal-event ~ .cal-lieu { margin-left: 4px; }
.ev-people .ev-list { max-height: 168px; overflow: auto; border: 1px solid var(--bd-line, var(--line)); border-radius: var(--radius); padding: 6px 10px; margin-top: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; }
.ev-people { margin-top: 12px; } .ev-more { margin-top: 12px; } .ev-more textarea { min-height: 64px; }
.ev-people .ev-person { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; padding: 3px 0; } .ev-people .ev-person[hidden] { display: none; } .ev-people .ev-person input { width: auto; margin: 0; }
.tabs .cal-leave { margin-left: auto; border-bottom: 0; }
.tabs .cal-leave + .cal-lieu { margin-left: 4px; }

/* ---- the big Calendar (10 Nov 2026): tall cells, one soft pill per task per week (status dot, progress line, due flag), + to add a task ---- */
.cal-add { margin-left: 4px; width: 22px; height: 22px; border: 1px dashed var(--bd-line, var(--line)); border-radius: 50%; background: transparent; color: var(--fg-slate, var(--slate)); font: 600 .9rem/1 var(--font-head); cursor: pointer; opacity: 0; }
.tcal .cal-cell:hover .cal-add, .tcal .cal-cell:focus-within .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-add:hover, .cal-add:focus-visible { border-color: var(--green); color: var(--green-deep); outline: none; }
@media (hover: none) { .cal-add { opacity: .6; } }
@media (max-width: 600px) { .tcal .cal-cell { min-height: 72px; } .cal-bars { grid-auto-rows: 22px; } .tbar { height: 20px; font-size: .66rem; padding: 0 5px; gap: 4px; } .tbar .tmeta { display: none; } .cal-add { width: 18px; height: 18px; font-size: .75rem; }
  .cal-week.lanes-1 .cal-cell { min-height: 96px; } .cal-week.lanes-2 .cal-cell { min-height: 120px; } .cal-week.lanes-3 .cal-cell { min-height: 144px; } .cal-week.lanes-4 .cal-cell { min-height: 168px; } .cal-week.lanes-5 .cal-cell { min-height: 192px; } }

/* ---------- My Day: the person's Trigger Pipeline actions (14 Nov 2026) — shown, never tasks ---------- */
.pipe-note { margin: -4px 0 12px; }
.pipe-list { display: grid; gap: 10px; }
.pipe-list .card + .card { margin-top: 0; }
.pipe-act { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border-left: 4px solid var(--bd-slate-200, var(--slate-200, var(--bd-c4ccd5, #c4ccd5))); }
.pipe-act.lead { border-left-color: var(--green); }
.pipe-act.overdue { border-left-color: var(--red); }
.pipe-main { display: grid; gap: 2px; min-width: 0; }
.pipe-side { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 700px) { .pipe-act { flex-direction: column; align-items: stretch; } }

/* ---------- The Manager tab: acting for a team member (15 Nov 2026) ---------- */
.form-grid .field[hidden] { display: none; }           /* the employment form shows the fields of the kind chosen */
.field input[type="file"] { padding: 6px; }
.head-right { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* ---------- Trigger Pipeline: the queue, the cards, the trigger page ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.seg button { border: 0; background: transparent; padding: 6px 12px; font: 500 .82rem var(--font-head); color: var(--slate); cursor: pointer; }
.seg button.active { background: var(--navy); color: var(--white); }
.weeknav { display: inline-flex; align-items: center; gap: 6px; }
.queue-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .queue-grid { grid-template-columns: 1fr; } }
.queue-main { display: grid; gap: 18px; }
.band { display: grid; gap: 12px; }
.band-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.band-A .band-head, .band-head.band-A { border-color: var(--green); }
.trig-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px 16px; display: grid; gap: 6px; }
.trig-card.band-A { border-left: 4px solid var(--green); }
.trig-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.trig-who a { font-weight: 600; text-decoration: none; }
.trig-who .sep { color: var(--slate-200); margin: 0 6px; }
.trig-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trig-title { font-size: 1.05rem; }
.trig-title a { text-decoration: none; }
.trig-body p { margin: 4px 0; }
.trig-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.score { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font: 700 .9rem var(--font-head); background: var(--bg); color: var(--slate); }
.score.sc-5 { background: var(--green); color: var(--white); } .score.sc-4 { background: var(--green-bg); color: var(--green-deep); }
.score.sc-3 { background: var(--navy-bg); color: var(--navy); } .score.sc-2, .score.sc-1 { background: var(--bg); color: var(--slate); } .score.sc-0 { background: var(--bg); color: var(--slate-200); }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
details.intel { border-top: 1px solid var(--line); padding-top: 10px; }
details.intel summary { cursor: pointer; font: 600 .95rem var(--font-head); color: var(--navy); }
details.intel .trig-card { margin-top: 10px; }
.rail { display: grid; gap: 14px; position: sticky; top: 76px; }
.rail-card h3 { margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0; }
.kv dt { color: var(--slate); } .kv dd { margin: 0; }
.trig-page { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .9fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .trig-page { grid-template-columns: 1fr; } }
.trig-side { display: grid; gap: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.pdf-host { min-height: 520px; background: var(--bg); padding: 12px; }
.components, .history, .contacts { margin: 6px 0 0; padding-left: 18px; }
.history li { margin: 4px 0; } .history li.current { font-weight: 600; }
.facts-kv { font-size: .9rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }
.linklike:hover { color: var(--green-deep); }
.toast.error { background: var(--red); }

/* ---------- projects and companies ---------- */
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select { margin-left: 4px; }
.facts-marks { display: inline-flex; gap: 4px; }
.mark { display: inline-block; min-width: 24px; text-align: center; padding: 1px 5px; border-radius: 4px; font: 600 .7rem var(--font-head); color: var(--slate-200); border: 1px solid var(--line); }
.mark.on { color: var(--white); background: var(--navy); border-color: var(--navy); }
.plain { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.overdue-row b { color: var(--red); }
.setby { margin-left: 6px; }
.companies-section + .companies-section { margin-top: 20px; }

/* ---------- the pipeline board (the leads and their twelve steps), the lead page, actions ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-rows: auto 1fr; min-height: 160px; }
.col-head { padding: 10px 12px; border-bottom: 2px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.col-head h3 { font-size: .9rem; }
.col-head h3 .muted { font-weight: 500; margin-right: 2px; }
.col.won .col-head { border-color: var(--green); }
.col-body { padding: 10px; display: grid; gap: 8px; align-content: start; }
.lead-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 4px; background: var(--bg); justify-items: start; }
.lead-card a { text-decoration: none; }
.lead-card .i { width: 14px; height: 14px; vertical-align: -2px; }
.pill.stalled { background: var(--red); color: var(--white); }
.pill.c-amber { background: #fff4d6; color: #7a5200; }
.on-pipeline { display: inline-flex; align-items: center; gap: 4px; color: var(--slate); }
.on-pipeline .i { width: 14px; height: 14px; }
.drawer { margin-top: 16px; }
.lead-drawer { display: grid; gap: 8px; margin-top: 10px; }
.step-panel { margin-bottom: 14px; border-left: 4px solid var(--green); }
.step-panel .section-head h2 { font-size: 1.15rem; }
.step-form .form-grid { margin-top: 8px; }
.contacts li.point { font-weight: 500; }
.invite dd { margin-bottom: 4px; }
.invite .chips { margin-top: 2px; }
.end-date { padding: 8px 0; }
table.wbs { margin: 10px 0 4px; }
table.wbs input, table.wbs select { width: 100%; min-width: 0; }
table.wbs td.num input { width: 90px; }
table.wbs select[multiple] { min-height: 44px; font-size: .85rem; }
.proposal-draft { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.upload-row { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.won-card .section-head { align-items: center; }
.friday-steps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
@media (max-width: 1100px) { .friday-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 700px) { .friday-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fstep { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; text-align: center; display: grid; gap: 2px; }
.fstep.has { border-color: var(--green); }
.fstep-n { font: 700 .8rem var(--font-head); color: var(--slate); }
.fstep-name { line-height: 1.2; min-height: 2.4em; }
.fstep-count { font: 700 1.4rem var(--font-head); color: var(--navy); }
.fstep.has .fstep-count { color: var(--green-deep); }
.legend-steps td.nowrap { white-space: nowrap; }
/* the Friday meeting (release 3) */
.friday-meeting .meeting-actions { margin-bottom: 12px; }
.agenda-item { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 12px 16px; margin-bottom: 10px; }
.agenda-item.warn { border-left-color: #b46900; } .agenda-item.stop { border-left-color: var(--red); }
.agenda-item.mine { outline: 2px solid var(--green-bg); }
.agenda-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.agenda-head a { text-decoration: none; } .agenda-head .i { width: 14px; height: 14px; vertical-align: -2px; }
.agenda-dl { display: grid; grid-template-columns: 9em 1fr; gap: 4px 12px; margin: 8px 0 0; }
.agenda-dl dt { color: var(--slate); font-size: .82rem; padding-top: 2px; } .agenda-dl dd { margin: 0; }
.agenda-dl .issues { color: var(--red); font-weight: 600; }
.agenda-dl textarea { width: 100%; min-height: 48px; }
.agenda-dl .next { font-weight: 600; color: var(--navy); margin: 0; }
.agenda-tools { margin-top: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .agenda-dl { grid-template-columns: 1fr; } }
body.present .agenda-item { font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr; } }
.action-list { display: grid; gap: 10px; }
.action-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.action-row.overdue { border-left: 4px solid var(--red); }
.action-main { display: grid; gap: 2px; }

/* ---------- the Friday review and Present mode ---------- */
.funnel { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) { .funnel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover { outline: 2px solid var(--green); }
.rates { margin-top: 6px; }
.friday-section + .friday-section { margin-top: 22px; }
.friday-triggers { display: grid; gap: 12px; }
.prewrap { white-space: pre-wrap; }
.last-decisions { border-left: 4px solid var(--green); margin-bottom: 12px; }
.section-head.pad { padding: 12px 16px 0; }
body.present .topbar { display: none; }
body.present .main { max-width: none; padding: 24px 40px; font-size: 1.1rem; }
body.present h1 { font-size: 2.2rem; } body.present h2 { font-size: 1.5rem; } body.present .stat .v { font-size: 2.6rem; }

/* ---------- Trigger Pipeline: the legend (the header's info button) ---------- */
.legend-btn { margin-left: auto; display: inline-flex; }
.legend h2 { margin-top: 28px; }
.legend table { width: 100%; }
.legend td.num { width: 3.5rem; text-align: center; }

/* ---------- Trigger Pipeline: suggested actions, the activity dialog (release 4) ---------- */
.actions-card .section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.suggested { background: #f0f4f8; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 0; }
.suggestion .row-actions { margin-left: auto; display: inline-flex; gap: 6px; }
.field .hint a { font-weight: 600; }

/* ---------- Trigger Pipeline: My work, the board in phases, the lead's tracker and To do (14 Nov 2026) ---------- */
[hidden] { display: none !important; }      /* a field the form hides stays hidden: .field's own display used to win, and the contact form showed every medium's box at once */
#step-panel { scroll-margin-top: 124px; }   /* brought into view under the sticky header (two rows of it on a phone), not behind it */
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--green); color: var(--white); font: 600 .7rem/18px var(--font-head); text-align: center; }
.board.phases { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-x: visible; }
.phase-steps { margin: 0 0 2px; line-height: 1.35; }
.lead-step { color: var(--charcoal); }
.step-no { display: inline-block; font: 700 .72rem var(--font-head); color: var(--slate); letter-spacing: .04em; }
.lead-next { font-weight: 600; color: var(--navy); font-size: .88rem; line-height: 1.3; }
.lead-next.waiting { font-weight: 500; color: var(--slate); }
.lead-next.late { color: var(--red); }
.lead-card.late { border-left: 3px solid var(--red); }
.lead-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.lead-badges:empty { display: none; }
.my-stats { margin-bottom: 22px; }
.my-section + .my-section { margin-top: 24px; }
.my-leads { display: grid; gap: 10px; }
.my-leads .card + .card, .action-list .card + .card { margin-top: 0; }
.action-list .action-row { border-left: 4px solid var(--slate-200); }
.action-list .action-row.overdue { border-left-color: var(--red); }
.my-lead { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-left: 4px solid var(--green); }
.my-lead.waiting { border-left-color: var(--slate-200); }
.my-lead.late { border-left-color: var(--red); }
.my-lead-main { display: grid; gap: 3px; }
.my-lead-main a { text-decoration: none; }
.my-lead-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.my-postponed { margin-top: 10px; }
.track { list-style: none; display: grid; grid-template-columns: 3fr 3fr 2fr 3fr 1fr; gap: 6px; padding: 0; margin: 0 0 16px; }
.track-phase { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 5px; align-content: start; }
.track-phase.now { border-color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
.track-phase.done { background: var(--green-bg); border-color: transparent; }
.track-name { font: 600 .78rem var(--font-head); color: var(--slate); }
.track-phase.now .track-name, .track-phase.done .track-name { color: var(--navy); }
.track-dots { display: flex; gap: 4px; }
.track-dots i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); max-width: 48px; }
.track-dots i.done { background: var(--green); }
.track-dots i.now { background: var(--navy); }
.track-step { color: var(--charcoal); }
details.more { position: relative; }
details.more > summary { list-style: none; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px; display: grid; gap: 2px; min-width: 250px; }
.more-menu .btn { justify-content: flex-start; width: 100%; white-space: nowrap; text-align: left; }
.todo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo .row-actions { gap: 6px; flex-shrink: 0; }
details.ideas { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
details.ideas > summary { cursor: pointer; font: 600 .86rem var(--font-head); color: var(--navy); }
details.ideas > p { margin: 6px 0; }
.done-with { display: grid; gap: 4px; }
.done-with-label { font: 600 .8rem var(--font-head); color: var(--navy); }
.done-with .check { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }
.done-with input[type="checkbox"] { width: auto; flex-shrink: 0; }
@media (max-width: 900px) {
  .board.phases { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr 1fr; }
  .my-lead { flex-direction: column; align-items: stretch; }
  .my-lead-side { justify-content: flex-start; }
  .action-list .action-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .action-list .action-row .row-actions { justify-content: flex-start; gap: 6px; }
  .todo { flex-direction: column; align-items: stretch; }
  .todo .row-actions { justify-content: flex-start; }
}
/* the Lead Qualification Score (release 7) */
.pill.lead-A { background: var(--navy); color: #fff; } .pill.lead-B { background: var(--green-bg); color: var(--green-deep); }
.pill.lead-C, .pill.lead-D, .pill.lead-none { background: var(--bg); color: var(--slate); } .pill.lead-check { background: var(--amber-bg); color: var(--amber); }
.lead-block { border-left: 3px solid var(--navy-bg); padding: 2px 0 2px 12px; margin: 8px 0 10px; }
.lead-head { font: 600 .95rem var(--font-head); margin: 0 0 4px; color: var(--navy); } .lead-head .sep { color: var(--slate); margin: 0 2px; font-weight: 400; }
pre.calc { margin: 4px 0 2px; font: .8rem/1.35 ui-monospace, Consolas, monospace; background: var(--bg); padding: 6px 10px; border-radius: 6px; white-space: pre; }
.lead-override { background: var(--amber-bg); padding: 4px 8px; border-radius: 6px; }
/* moving leads (release 8) */
.lead-card[draggable="true"] { cursor: grab; } .lead-card.dragging { opacity: .5; } .board .col.over { outline: 2px dashed var(--navy); outline-offset: -4px; border-radius: var(--radius); }
.lead-badges .lead-move { margin-left: auto; }
/* the first move (release 9) */
.brief-card { border-left: 3px solid var(--green); } .brief-task { margin: 4px 0 8px; }
pre.brief-body { white-space: pre-wrap; font: .9rem/1.45 var(--font-body, inherit); background: var(--bg); padding: 10px 12px; border-radius: 6px; margin: 6px 0; }
.brief-sent { color: var(--green-deep); margin: 0 0 6px; }
.lead-card .lead-next { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
