/* Vector Engineer on the web. The family's navy with Engineer's violet ring
   colour (VECTOR_FAMILY_THEME.md, family.css --engineer). */
:root {
  --navy: #07111F; --card: #0D1B2A; --raised: #122338; --border: #23374D; --line: #1E2E45;
  --text: #EAF0F7; --muted: #9AA8BA;
  --accent: #A78BFA; --accent-soft: rgba(167, 139, 250, .14);
  --good: #34D399; --yellow: #FACC15; --warn: #FF9F43; --bad: #F87171;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--navy); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 0; line-height: 1.2; }
h2 { font-size: 17px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.error { color: var(--bad); margin: 0; }
.loading { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* The ring: every Vector app's mark, in Engineer's violet */
.ring { display: block; width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--accent);
  box-shadow: 0 0 18px var(--accent), inset 0 0 10px rgba(167, 139, 250, .35); }
.ring.small { width: 28px; height: 28px; border-width: 3px; box-shadow: 0 0 10px var(--accent); flex: none; }

/* Sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 0%, #2A1F5C 0%, var(--navy) 60%); }
.signin-card { width: min(400px, 100%); background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px; display: grid; gap: 16px; }
.lockup { text-align: center; display: grid; justify-items: center; gap: 4px; margin-bottom: 8px; }
.lockup .ring { margin-bottom: 18px; }
.lockup .wordmark { width: 180px; display: block; }
.lockup .product { letter-spacing: .38em; font-size: 13px; font-weight: 600; margin: 8px 0 0; }
.lockup .tagline { color: var(--accent); letter-spacing: .16em; font-size: 11px; font-weight: 600;
  text-transform: uppercase; margin: 0; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
input { font: inherit; color: var(--text); background: var(--navy); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 12px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button { font: inherit; cursor: pointer; }
button.primary { background: var(--accent); color: #07111F; font-weight: 700; border: 0; border-radius: 12px; padding: 12px; }
button.primary:disabled { opacity: .6; cursor: default; }
button.secondary { background: transparent; color: var(--accent); font-weight: 600;
  border: 1.5px solid var(--accent); border-radius: 10px; padding: 8px 16px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }

/* The signed-in shell: navigation on the left, the page on the right */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; }
.brand b { display: block; font-size: 15px; }
.brand .muted { font-size: 12px; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; align-content: start; }
.side ul a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.side ul a:hover { background: var(--raised); text-decoration: none; }
.side ul a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.me { display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; color: var(--text);
  border: 1px solid transparent; border-radius: 12px; padding: 8px; }
.me:hover, .me[aria-current="page"] { background: var(--raised); border-color: var(--border); }
.me b { display: block; font-size: 14px; }
.me .muted { font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.content { padding: 32px 40px 64px; max-width: 1280px; width: 100%; }
.page-head { display: grid; gap: 4px; margin-bottom: 24px; }
.page-head p { margin: 0; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; max-width: 640px; }
.card.coming p { margin: 0 0 8px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.empty { color: var(--muted); }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Tables */
.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.grid th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em;
  text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--raised); }
.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid .code { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid .strong { font-weight: 600; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--raised); color: var(--muted); white-space: nowrap; }
.chip.tone-accent { background: var(--accent-soft); color: var(--accent); }
.chip.tone-good { background: rgba(52, 211, 153, .14); color: var(--good); }
.chip.tone-yellow { background: rgba(250, 204, 21, .14); color: var(--yellow); }
.chip.tone-orange { background: rgba(255, 159, 67, .14); color: var(--warn); }
.chip.tone-red { background: rgba(248, 113, 113, .14); color: var(--bad); }

/* W1: the reading screens */
.text-accent { color: var(--accent); } .text-good { color: var(--good); } .text-yellow { color: var(--yellow); }
.text-orange { color: var(--warn); } .text-red { color: var(--bad); } .text-muted { color: var(--muted); }
.small { font-size: 13px; } .tiny { font-size: 11px; } .strong { font-weight: 600; }
.struck { text-decoration: line-through; }
p { margin: 0; }
.code { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.eyebrow a { color: inherit; }
.page-head .eyebrow { color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: 13px; }
.page-head .eyebrow a:hover { color: var(--accent); }
.page-head.with-tools { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.picker { display: grid; gap: 4px; }
select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.row-head .chips { margin-top: 0; }
.section { margin-top: 24px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px; }
.section-title .count { background: var(--raised); color: var(--text); border-radius: 999px; padding: 0 8px; font-size: 12px; letter-spacing: 0; }
.section-note { margin: -4px 0 10px; }
.stack { display: grid; gap: 10px; }
.card { max-width: none; display: grid; gap: 6px; }
.card + .card { margin-top: 10px; }
.stack > .card + .card, .stack > * + * { margin-top: 0; }
.row-card { color: var(--text); padding: 14px 16px; transition: border-color .12s, background .12s; }
a.row-card:hover { text-decoration: none; border-color: var(--accent); background: var(--raised); }
.row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.row-card .title, .card .title { font-weight: 600; }
.line-item { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.line-item .icon { width: 22px; flex: none; text-align: center; font-size: 16px; }
.next-moves { gap: 12px; border-left: 4px solid var(--accent); }
.next-moves .line-item:hover { text-decoration: none; color: var(--accent); }
.hero { max-width: 820px; }
.hero h1 { font-size: 22px; }
.metrics { display: flex; gap: 32px; margin-top: 8px; }
.metrics div { display: grid; }
.metrics b { font-size: 24px; }
.columns .col, .col { min-width: 0; display: grid; gap: 12px; align-content: start; }
.col > .section { margin-top: 12px; }
.col > .card + .card { margin-top: 0; }
.columns { max-width: 820px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.two-col > .col > .section:first-child, .two-col > .col > .card:first-child { margin-top: 0; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 16px; }
.grid-cards .card + .card { margin-top: 0; }
.values { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 6px 16px; margin: 4px 0; }
.values dt { color: var(--muted); }
.values dd { margin: 0; text-align: right; }
.delay { display: flex; gap: 16px; font-size: 13px; font-weight: 600; margin: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.bar span.good { background: var(--good); }
.gate-strip { display: flex; gap: 6px; list-style: none; margin: 0 0 8px; padding: 0; flex-wrap: wrap; }
.gate-strip li { width: 40px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--raised); color: var(--muted); border: 1px solid var(--border); }
.gate-strip .gs-done { background: rgba(52, 211, 153, .16); color: var(--good); border-color: transparent; }
.gate-strip .gs-current { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.gate-strip .gs-hold { background: rgba(250, 204, 21, .16); color: var(--yellow); }
.gate-strip .gs-killed { background: rgba(248, 113, 113, .16); color: var(--bad); }
.gate-strip .gs-na { text-decoration: line-through; opacity: .6; }
.people, .history, .checklist, .files, .signoffs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.people li { display: flex; align-items: center; gap: 12px; }
.people .grow, .line-row .grow { flex: 1; display: grid; min-width: 0; }
.history li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; padding-bottom: 0; }
.checklist li { display: flex; gap: 8px; }
.checklist li span { color: var(--muted); }
.checklist li.met span { color: var(--accent); }
.files li { display: grid; gap: 2px; }
.files li.withdrawn b { text-decoration: line-through; color: var(--muted); }
.signoffs li { display: flex; gap: 10px; align-items: flex-start; }
.signoffs li > span:last-child { display: grid; gap: 2px; }
.list-card { gap: 0; padding: 6px 0; }
.line-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.line-row:last-child { border-bottom: 0; }
a.line-row:hover { text-decoration: none; background: var(--raised); }
.phone-note { background: var(--accent-soft); border: 1px solid rgba(167, 139, 250, .4); border-radius: 12px; padding: 12px 14px;
  font-size: 14px; margin: 12px 0; }
.phone-note ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.approval { border-color: rgba(255, 159, 67, .5); }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.reload { background: transparent; color: var(--muted); border: 0; text-align: left; padding: 8px 12px; font-size: 13px; }
.reload:hover { color: var(--accent); }
a.plain { color: inherit; }
.grid td a.plain:hover { color: var(--accent); }
@media (max-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Narrow windows: navigation across the top */
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; }
  .brand { padding: 0 8px 0 4px; }
  .side ul { display: flex; flex-wrap: wrap; flex: 1 1 100%; order: 3; }
  .me { margin-left: auto; }
  .content { padding: 20px 16px 48px; }
  .grid { display: block; overflow-x: auto; }
}

/* W2: company setup */
.field { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; min-width: 0; }
.field em { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea, .ms-head input { font: inherit; font-weight: 400; color: var(--text); background: var(--navy);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
.field textarea { resize: vertical; line-height: 1.4; }
.field select { min-width: 0; }
input:disabled, select:disabled, textarea:disabled { opacity: .75; }
.row-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: start; }
.row-fields .check { align-self: center; padding: 18px 0 0; }
.row-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 400; padding-bottom: 8px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.editor > .card, .editor > .gate-edit { margin-top: 14px; }
.gate-edit { gap: 12px; border-left: 3px solid var(--accent); }
.gate-edit .section-title { margin: 6px 0 0; }
.ms-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; background: rgba(7, 17, 31, .35); }
.ms-head { display: flex; align-items: center; gap: 8px; }
.ms-head input { font-weight: 600; }
.ms-body { display: grid; gap: 10px; }
.grow { flex: 1; }
.tools { display: inline-flex; gap: 4px; flex: none; }
.icon-btn { background: var(--raised); color: var(--muted); border: 1px solid var(--border); border-radius: 8px; width: 30px; height: 30px; padding: 0; }
.icon-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.small-btn { justify-self: start; padding: 6px 12px; font-size: 13px; }
button.secondary:disabled { opacity: .45; cursor: default; }
button.primary { padding: 10px 18px; }
button.danger { background: var(--bad); color: #07111F; font-weight: 700; border: 0; border-radius: 10px; padding: 8px 16px; }
.sticky-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0;
  background: linear-gradient(var(--navy) 80%, rgba(7, 17, 31, 0)); }
.chips.inline { margin-top: 0; }
@media (max-width: 820px) { .row-fields.three { grid-template-columns: 1fr; } }

/* W3: people, teams, invitations */
.notice { background: rgba(52, 211, 153, .10); border: 1px solid rgba(52, 211, 153, .35); color: var(--text);
  border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.invite-form { display: grid; gap: 12px; margin-top: 14px; }
.invite-form h2 { margin: 0; }
.pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 4px; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 12px; }
.pick legend { color: var(--muted); font-size: 13px; font-weight: 600; padding: 0 6px; }
.pick legend em { font-style: normal; font-weight: 400; }
.pick .check span { margin-left: 2px; }
.grid td.actions { white-space: nowrap; text-align: right; }
.grid td.actions button + button { margin-left: 6px; }
.people-grid input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.people .tools { gap: 6px; }
.team-tools { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-pick { display: flex; gap: 8px; align-items: center; }
.inline-pick select { flex: 1; }
button.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
button.linkish:hover { text-decoration: underline; }
.invite-title { font-size: 20px; text-align: center; }
.people li.member .stays { display: block; margin-top: 2px; }
.people li.member .tools { align-items: center; gap: 10px; }
.check.colead { padding: 0; font-size: 13px; white-space: nowrap; cursor: pointer; }
.check.colead.saving { color: var(--muted); }

/* W4a: acting on the work */
.moves { border-left: 4px solid var(--accent); display: grid; gap: 14px; margin-bottom: 16px; }
.moves .eyebrow { margin: 0; }
.move { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.moves .eyebrow + .move { padding-top: 0; border-top: 0; }
.move p { margin: 0; }
.move .buttons { margin-bottom: 0; align-items: center; }
.move .quote { color: var(--muted); }
.subform { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(7, 17, 31, .35); }
.subform p { margin: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { display: inline-flex; align-items: center; gap: 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; }
.segmented label.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
button.secondary.on { background: var(--accent-soft); }
.buttons.confirm { align-items: center; }
a.btn-secondary, a.btn-primary { display: inline-block; border-radius: 10px; font-weight: 600; }
a.btn-secondary { color: var(--accent); border: 1.5px solid var(--accent); }
a.btn-primary { background: var(--accent); color: #07111F; font-weight: 700; }
a.btn-secondary:hover, a.btn-primary:hover { text-decoration: none; filter: brightness(1.1); }
.check.tick { padding: 0; align-items: flex-start; cursor: pointer; }
.check.tick input { margin-top: 2px; flex: none; }
.checklist li.met .check.tick span { color: var(--text); }
.row-card.has-action { display: flex; gap: 12px; align-items: center; padding: 0; }
.row-card.has-action .row-link { flex: 1; min-width: 0; display: block; color: var(--text); padding: 14px 0 14px 16px; }
.row-card.has-action .row-link:hover { text-decoration: none; }
.row-card.has-action:hover { border-color: var(--accent); }
.row-action { flex: none; padding-right: 16px; }
.move-line { display: flex; gap: 12px; align-items: center; }
.move-line .line-item { flex: 1; min-width: 0; }
.move-line .line-item:hover { text-decoration: none; color: var(--accent); }
.hero-tools { margin: 10px 0 0; }
.head-tools { margin: 12px 0 0; }
.my-note { max-width: 640px; }
.form-stack { display: grid; gap: 14px; max-width: 720px; }
.form-stack .card { display: grid; gap: 10px; }
.form-stack .section-title { margin: 0; }
.form-stack .stack { display: grid; gap: 12px; }
@media (max-width: 640px) {
  .row-card.has-action, .move-line { flex-direction: column; align-items: stretch; }
  .row-card.has-action .row-link { padding: 14px 16px 0; }
  .row-action { padding: 0 16px 14px; }
}
.move > button.linkish, .move > .buttons button.linkish { justify-self: start; }

/* The Vector V inside the violet ring (the brand mark), as on the other Vector apps */
.ring { background: url(/assets/vector-mark.png) center 54% / 60% auto no-repeat; }

/* W4b: decisions and handing work on */
.people li.member { flex-wrap: wrap; }
.handon-wrap { flex: 1 1 100%; }
.handon { gap: 12px; }
.handon-row { display: flex; gap: 10px; align-items: center; }
.handon-row select { min-width: 0; max-width: 45%; font-size: 13px; padding: 6px 8px; }
button.linkish.left { justify-self: start; text-align: left; }
.segmented label.on.kill { background: rgba(248, 113, 113, .14); border-color: var(--bad); color: var(--bad); }
.segmented label.on.hold { background: rgba(250, 204, 21, .14); border-color: var(--yellow); color: var(--yellow); }
.segmented label.on.recycle { background: rgba(255, 159, 67, .14); border-color: var(--warn); color: var(--warn); }
.segmented label.on.go { background: rgba(52, 211, 153, .14); border-color: var(--good); color: var(--good); }
.approval .move { padding-top: 8px; }
@media (max-width: 640px) { .handon-row { flex-direction: column; align-items: stretch; } .handon-row select { max-width: none; } }
.handon-row .grow { display: block; }

/* W5: the work product */
.card.faded { opacity: .75; }
.version-by { margin: 2px 0 8px; }
.version-by .text { color: var(--text); }
.file-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.file-line .grow { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.file-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
button.file-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--text);
  text-align: left; cursor: pointer; overflow-wrap: anywhere; }
button.file-name:hover { color: var(--accent); text-decoration: underline; }
.files li.withdrawn button.file-name { text-decoration: line-through; color: var(--muted); }
.dropzone { display: grid; gap: 12px; border: 1.5px dashed var(--border); }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pending { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pending p { margin: 0; }
.withdraw-form { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--raised); }
.withdraw-form p { margin: 0; }
.file-line button.linkish, .pending button.linkish, .withdraw-form button.linkish { font-size: 13px; }
button.danger:disabled { opacity: .45; cursor: default; }

/* W6a: a new release is on the site */
.new-version { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 14px; margin: -12px 0 20px; }
.new-version .small-btn { padding: 7px 16px; }

/* W6a: Schedule, a wide Gantt chart */
.content:has(.schedule) { max-width: none; }
.conflicts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.card.conflict { border-color: rgba(248, 113, 113, .45); }
.card.conflict:hover { border-color: var(--bad); }
.conflicts p { margin: 0; }
.gantt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 12px; }
.gantt-tools .check { padding: 0; }
.gantt-tools .inline-pick { color: var(--muted); font-weight: 600; }
.gantt-tools select { font: inherit; color: var(--text); background: var(--navy); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; }
.gantt { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; overflow-y: hidden; }
.g-inner { position: relative; }
.g-row { display: flex; min-height: 44px; border-bottom: 1px solid var(--line); }
.g-row:last-child { border-bottom: 0; }
.g-label { position: sticky; left: 0; z-index: 3; flex: none; width: var(--label-w); background: var(--card);
  border-right: 1px solid var(--border); padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; min-width: 0; color: var(--text); }
a.g-label:hover { text-decoration: none; background: var(--raised); }
.g-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.g-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.g-track { position: relative; flex: none; }
.g-scale { position: sticky; top: 0; z-index: 4; min-height: 38px; background: var(--card); }
.g-corner { justify-content: flex-end; }
.g-month { position: absolute; top: 3px; font-size: 12px; font-weight: 700; color: var(--text); padding-left: 4px; white-space: nowrap; border-left: 1px solid var(--border); }
.g-daynum { position: absolute; bottom: 2px; font-size: 10px; color: var(--muted); text-align: center; padding-left: 2px; }
.g-body { position: relative; }
.g-lines { position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 1; }
.g-week { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(35, 55, 77, .45); }
.g-monthline { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); }
.g-today { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--accent); }
.g-today span { position: absolute; top: 2px; left: 4px; font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.g-gate { background: rgba(18, 35, 56, .6); min-height: 40px; }
.g-gate .g-label { background: var(--raised); flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.g-gate-name { color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-gate-name .eyebrow { margin-right: 4px; }
.g-gate.na .g-gate-name { color: var(--muted); text-decoration: line-through; }
.g-item .g-track { z-index: 2; }
.g-item.has-conflict .g-label { box-shadow: inset 3px 0 0 var(--bad); }
.g-bar { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; height: 16px; color: var(--text); }
.g-bar:hover { text-decoration: none; filter: brightness(1.2); }
.g-bar .seg { height: 14px; display: block; }
.g-bar .seg:first-child { border-radius: 4px 0 0 4px; }
.g-bar .seg:nth-last-child(2) { border-radius: 0 4px 4px 0; }
.g-bar .seg:first-child:nth-last-child(2) { border-radius: 4px; }
.seg.work, .sw.work { background: var(--accent); }
.seg.work.done, .sw.done { background: var(--good); }
.seg.work.unaccepted, .sw.unaccepted { background: transparent; border: 1.5px dashed var(--warn); }
.seg.inherited, .sw.inherited { background: rgba(250, 204, 21, .35); }
.seg.owned, .sw.owned { background: var(--bad); }
.g-date { margin-left: 6px; white-space: nowrap; font-size: 11px; }
.g-diamond { position: absolute; top: 50%; display: flex; align-items: center; gap: 6px; transform: translate(-7px, -50%); color: var(--text); z-index: 2; }
.g-diamond:hover { text-decoration: none; }
.g-diamond-mark, .sw.diamond { width: 12px; height: 12px; transform: rotate(45deg); background: var(--accent); border: 2px solid var(--card); flex: none; display: inline-block; }
.g-diamond.done .g-diamond-mark { background: var(--good); }
.g-diamond.late .g-diamond-mark { background: var(--bad); }
.g-diamond-text { font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.g-diamond:hover .g-diamond-text { color: var(--text); }
.g-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; }
.g-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.sw.diamond { width: 9px; height: 9px; border: 0; border-radius: 0; }
.sw.today { width: 2px; height: 12px; background: var(--accent); border-radius: 0; }

/* W6b: reports */
.head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.report-tools { display: flex; gap: 8px; }
.report-tools .secondary { padding: 7px 14px; font-size: 14px; }
.report-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: -8px 0 16px; }
.report-filters .inline-pick { color: var(--muted); font-weight: 600; }
.report-filters select { font: inherit; color: var(--text); background: var(--navy); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; }
.report-summary { gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.tile b { font-size: 26px; line-height: 1.1; }
.rlist { gap: 0; padding: 8px 18px; }
.rlist > p.small { margin: 8px 0 4px; }
.rline { border-bottom: 1px solid var(--line); }
.rline:last-child { border-bottom: 0; }
.rline summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 4px; padding: 12px 0; }
.rline summary::-webkit-details-marker { display: none; }
.rline summary::before { content: '›'; color: var(--accent); font-weight: 700; font-size: 18px; line-height: 1.1; grid-row: 1; transition: transform .12s; }
.rline[open] summary::before { transform: rotate(90deg); }
.rline summary:hover .rline-title { color: var(--accent); }
.rline-title { font-weight: 600; }
.rline-value { text-align: right; white-space: nowrap; }
.text-plain { color: var(--text); }
.rline-detail, .rline-bar { grid-column: 2 / 4; }
.rline-bar { margin-top: 2px; }
.rline-bar span { background: var(--accent); }
.facts-list { display: grid; gap: 2px; padding: 0 0 12px 26px; }
.fact { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--text); padding: 6px 10px; border-radius: 8px; }
.fact:hover { background: var(--raised); text-decoration: none; }
.fact-note { display: block; }
.handoff-fact b { font-weight: 600; }
.report-cols { align-items: start; }
.gate-lines { display: grid; gap: 12px; margin-top: 14px; }
.gate-line { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; }
.gate-line p { margin: 0; }
.project-line { gap: 16px; }
.project-line:hover { background: var(--raised); text-decoration: none; }
.print-only { display: none; }

/* ---- W7b (2026-09-27): the Engineer look, as on the sales page (/engineer/):
   the app icon, the chrome VECTOR wordmark with ENGINEER spaced below, and the
   violet light coming through the navy from the top, like the logo. ---- */
:root { --violet-deep: #2A1F5C; --violet-dark: #1B1840; --violet-light: #C4B5FD; }
.shell { grid-template-columns: 264px minmax(0, 1fr); }
.side { padding: 22px 14px 16px; border-right: 1px solid rgba(167, 139, 250, .18);
  background:
    radial-gradient(ellipse 120% 38% at 30% 0%, rgba(124, 92, 230, .38) 0%, rgba(42, 31, 92, .35) 45%, rgba(13, 27, 42, 0) 100%),
    linear-gradient(180deg, #120F2E 0%, var(--card) 42%, #0A1626 100%); }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 0; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-icon { width: 52px; height: 52px; border-radius: 13px; flex: none; display: block;
  box-shadow: 0 0 26px rgba(167, 139, 250, .55), 0 0 0 1px rgba(196, 181, 253, .25); }
.brand-words { display: grid; gap: 5px; min-width: 0; }
.brand-wm { width: 132px; height: auto; display: block; }
.brand-product { font-size: 11px; font-weight: 700; letter-spacing: .42em; padding-left: 2px;
  background: linear-gradient(90deg, var(--violet-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.company { margin: 16px 6px 18px; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text);
  background: rgba(167, 139, 250, .10); border: 1px solid rgba(167, 139, 250, .22);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side ul { gap: 4px; }
.side ul a { padding: 11px 14px; font-size: 15px; border-radius: 12px; color: #D6DEEA; }
.side ul a:hover { background: rgba(167, 139, 250, .08); color: var(--text); }
.side ul a.active { color: #fff; font-weight: 650;
  background: linear-gradient(90deg, rgba(167, 139, 250, .28) 0%, rgba(167, 139, 250, .08) 100%);
  box-shadow: inset 3px 0 0 var(--accent), 0 0 18px rgba(167, 139, 250, .12); }
.side-foot { display: grid; gap: 10px; }
.reload { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px 12px; font-size: 13px; font-weight: 600;
  color: var(--violet-light); background: rgba(167, 139, 250, .08); border: 1px solid rgba(167, 139, 250, .25); border-radius: 10px; text-align: center; }
.reload:hover { color: #fff; background: rgba(167, 139, 250, .16); }
.reload:disabled { opacity: .7; cursor: default; }
.me { width: 100%; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(18, 35, 56, .85); border: 1px solid var(--border); }
.me:hover, .me[aria-current="page"] { background: var(--raised); border-color: rgba(167, 139, 250, .45); }
.me-words { display: grid; min-width: 0; flex: 1; }
.me b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-go { color: var(--muted); font-size: 20px; line-height: 1; }
.avatar { width: 44px; height: 44px; font-size: 15px; color: #07111F; font-weight: 800;
  background: linear-gradient(135deg, var(--violet-light) 0%, #8B6CF0 100%); box-shadow: 0 0 16px rgba(167, 139, 250, .45); }
.side-links { display: flex; justify-content: center; gap: 16px; font-size: 12px; margin: 2px 0 0; }
.side-links a { color: var(--muted); }
.side-links a:hover { color: var(--accent); }
/* The page: the same light, faintly, from the top */
.shell > .content { background: radial-gradient(ellipse 70% 320px at 55% -80px, rgba(42, 31, 92, .55) 0%, rgba(7, 17, 31, 0) 100%) no-repeat; }
.card.hero { background:
    radial-gradient(ellipse at 85% 0%, rgba(124, 92, 230, .30) 0%, rgba(13, 27, 42, 0) 60%),
    radial-gradient(ellipse at 0% 0%, rgba(42, 31, 92, .55) 0%, var(--card) 70%);
  border-color: rgba(167, 139, 250, .28); box-shadow: 0 0 40px rgba(124, 92, 230, .10); }
.card.hero .eyebrow { background: linear-gradient(90deg, var(--violet-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl { background: linear-gradient(90deg, var(--violet-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Sign in, invitation and the outsider's page carry the same lockup */
.lockup .appicon { width: 84px; height: 84px; border-radius: 20px; display: block; margin-bottom: 18px;
  box-shadow: 0 0 34px rgba(167, 139, 250, .5), 0 0 0 1px rgba(196, 181, 253, .25); }
.lockup .wordmark { width: 210px; }
.lockup .product { background: linear-gradient(90deg, var(--violet-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.signin { background: radial-gradient(ellipse at 50% 0%, #3A2B7A 0%, #1B1840 32%, var(--navy) 68%); }
.signin-card { border-color: rgba(167, 139, 250, .22); box-shadow: 0 0 60px rgba(124, 92, 230, .12); }
.signin-links { display: flex; justify-content: center; gap: 16px; font-size: 13px; }
.outside-page { background: radial-gradient(ellipse 90% 360px at 50% -60px, rgba(58, 43, 122, .75) 0%, rgba(7, 17, 31, 0) 100%) no-repeat; max-width: none; padding-left: max(16px, calc((100% - 760px) / 2)); padding-right: max(16px, calc((100% - 760px) / 2)); }
.outside-head { gap: 12px; }
.outside-head .brand-icon { width: 44px; height: 44px; border-radius: 11px; }
.outside-head .brand-wm { width: 112px; }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { background: linear-gradient(180deg, #16123A 0%, var(--card) 100%); padding: 12px; }
  .brand-icon { width: 38px; height: 38px; border-radius: 10px; }
  .brand-wm { width: 100px; }
  .company { margin: 0 0 0 auto; order: 2; max-width: 45%; }
  .side-foot { order: 4; flex: 1 1 100%; grid-template-columns: auto 1fr; align-items: center; }
  .side-links { grid-column: 1 / -1; }
}

@media print {
  :root { --navy: #fff; --card: #fff; --raised: #f3f4f6; --border: #d1d5db; --line: #e5e7eb; --text: #111827; --muted: #4b5563;
    --accent: #6d28d9; --accent-soft: #f5f3ff; --good: #047857; --yellow: #a16207; --warn: #c2410c; --bad: #b91c1c; color-scheme: light; }
  body { background: #fff; font-size: 11pt; }
  .side, .no-print, .new-version { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { border-color: var(--border); break-inside: avoid; box-shadow: none; }
  .rlist { break-inside: auto; }
  .rline { break-inside: avoid; }
  .rline summary::before { content: ''; }
  .facts-list { padding-left: 18px; }
  .section { break-inside: auto; }
  .section-title, .section-note { break-after: avoid; }
  .two-col { grid-template-columns: 1fr 1fr; }
  a { color: inherit; }
  .code { color: var(--accent); }
  .print-only { display: block; margin-top: 24px; }
  @page { margin: 14mm; }
}

/* W7: the outsider's page (no sidebar) and the company's view of an outsider's work. */
.outside-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 14px; }
.outside-head { display: flex; gap: 10px; align-items: center; }
.outside-head div { display: grid; }
.outside-hero h1 { margin: 4px 0 6px; }
.outside-detail { white-space: pre-wrap; }
.outside-status.tone-orange { border-color: var(--warn); }
.outside-status.tone-good { border-color: var(--good); }
.outside-status p { margin: 0; }
.outside-status p + p { margin-top: 6px; }
.outside-page .version { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.outside-page .version.faded { opacity: 0.7; }
.outside-page .struck { text-decoration: line-through; }
.outside-page .submit-line { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; justify-items: start; }
.outside-page details summary { cursor: pointer; }
.outside-foot { text-align: center; }
.outside-card .confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.outside-hero dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0 0; }
.outside-hero dt { color: var(--muted); }
.outside-hero dd { margin: 0; }
.outside-card { margin-bottom: 18px; }
.outside-from { margin-left: auto; text-align: right; }
.brand { margin-bottom: 18px; } .company { margin-top: -4px; }

/* M8: reviews and findings */
.pre { white-space: pre-wrap; margin: 0; }
.finding.closed { opacity: .75; }
.finding .pre { margin: 6px 0; }
.photos { display: grid; gap: 6px; margin: 6px 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 88px; height: 88px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--navy); color: var(--muted); cursor: zoom-in; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.segmented label.on.sev-critical { background: rgba(248, 113, 113, .14); border-color: var(--bad); color: var(--bad); }
.segmented label.on.sev-major { background: rgba(255, 159, 67, .14); border-color: var(--warn); color: var(--warn); }
details.folded { margin-top: 20px; }
details.folded > summary { cursor: pointer; list-style: none; }
details.folded > summary::-webkit-details-marker { display: none; }
details.folded > summary::before { content: '▸ '; color: var(--muted); }
details.folded[open] > summary::before { content: '▾ '; }
details.pick > summary { cursor: pointer; }
.from-finding .section-title { margin: 0; }

/* M10: the company's Engineer subscription has ended (eng_0019). */
.readonly-bar { background: rgba(246, 196, 83, .12); border: 1px solid rgba(246, 196, 83, .45); color: var(--text);
  border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }

/* Two-step verification (Operations 0053), between the password and the app. */
.twostep-title { margin: 4px 0 0; font-size: 18px; text-align: center; }
.twostep-qr { display: block; width: 180px; height: 180px; margin: 4px auto; background: #fff; border-radius: 10px; padding: 8px; }
.twostep-secret { word-break: break-all; font-size: 12px; }
