:root {
  --bg: #f8f8f8;
  --card: #fff;
  --ink: #2a2f36;
  --navy: #00285a;
  --muted: #767b83;
  --line: #e6e9ed;
  --accent: #7db42d;
  --accent-ink: #fff;
  --sky: #59abe5;
  --good: #7db42d;
  --serif: "Noto Serif", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
nav .brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }
nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 19px; }
nav a:hover { color: var(--accent); }
nav .spacer { flex: 1; }
nav .who { color: var(--muted); font-size: 16px; }
button.link {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 16px; padding: 0;
}

main { width: 100%; margin: 0; padding: 32px 36px 80px; }
h1 { margin: 8px 0 24px; font-size: 42px; font-family: var(--serif); color: var(--navy); }
h2 { margin: 34px 0 14px; font-size: 26px; font-family: var(--serif); color: var(--navy); }
a { color: var(--sky); }
.muted { color: var(--muted); font-size: 16px; }
.error { color: #c0392b; }

.login-box {
  max-width: 440px; margin: 12vh auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 4px; padding: 44px 40px; text-align: center;
}
.login-logo { max-width: 320px; height: auto; margin: 0 auto 10px; display: block; }
.login-box form { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }

input, select {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px;
  font: inherit; background: var(--card); color: var(--ink); width: 100%;
}
button {
  padding: 14px 22px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--card); color: var(--ink); font: inherit; cursor: pointer;
}
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button:hover { filter: brightness(0.96); }

.tiles { display: flex; gap: 18px; flex-wrap: wrap; }
.tile {
  flex: 1; min-width: 180px; background: var(--card); border: 1px solid var(--line);
  border-radius: 4px; padding: 28px 16px; text-decoration: none; color: var(--ink); text-align: center;
}
.tile .num { font-size: 64px; font-weight: 700; font-family: var(--serif); color: var(--navy); line-height: 1.1; }
.tile .lbl { color: var(--muted); font-size: 18px; margin-top: 4px; }

.rows { list-style: none; padding: 0; margin: 0; }
.rows li {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: 14px 18px; margin-bottom: 8px; display: flex; gap: 14px; align-items: baseline;
  flex-wrap: wrap; font-size: 18px;
}
.rows li .muted { margin-left: auto; }

.pill {
  font-size: 15px; padding: 4px 14px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.pill.big { font-size: 19px; padding: 8px 20px; font-weight: 600; color: var(--navy); }
.count { color: var(--muted); font-weight: 400; font-size: 17px; }

.board { display: flex; gap: 18px; overflow-x: auto; align-items: flex-start; min-height: 70vh; }
.col {
  flex: 1; min-width: 280px; background: #eef0f3; border-radius: 4px; padding: 16px;
}
.col h2 { margin: 4px 6px 14px; font-size: 21px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 3px; padding: 16px 18px; margin-bottom: 12px;
  text-decoration: none; color: var(--ink);
}
.card:hover { border-color: var(--accent); }
.card-name { font-weight: 600; font-size: 20px; }
.card-meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.card-checks { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.check { font-size: 13px; color: var(--good); background: #eaf6ef; border-radius: 6px; padding: 2px 9px; }
.empty { text-align: center; }

.stage-controls { display: flex; gap: 14px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
.checklist { display: flex; gap: 12px; flex-wrap: wrap; }
.check-btn { font-size: 18px; }
.check-btn.done { background: #eaf6ef; border-color: var(--good); color: var(--good); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.details { display: flex; flex-direction: column; gap: 14px; }
.details label { display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--muted); }
.inline-add { display: flex; gap: 10px; margin-bottom: 14px; }
.capture { max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.capture input { font-size: 24px; padding: 18px 20px; }
.capture button { font-size: 22px; }

/* ---- dashboard redesign ---- */
.ic { width: 22px; height: 22px; flex: none; }

nav { gap: 18px; padding: 12px 28px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-size: 18px;
}
.nav-links a.on { background: #eaf3fb; }
.nav-search {
  flex: 1; max-width: 480px; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; color: var(--muted); margin-left: auto;
}
.nav-search input {
  border: none; background: none; padding: 0; font-size: 16px; outline: none;
}
.bell { position: relative; color: var(--navy); display: flex; }
.bell .dot {
  position: absolute; top: -1px; right: -1px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--card);
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px;
}
.avatar.sm { width: 38px; height: 38px; font-size: 14px; }

.hero {
  position: relative; overflow: hidden; border-radius: 8px;
  padding: 52px 48px 58px; margin-bottom: 28px;
  background: linear-gradient(100deg, #f3f7fb 30%, #dde9f3);
  border: 1px solid var(--line);
}
.hero h1 { margin: 0 0 10px; font-size: 54px; }
.hero-sub { margin: 0; font-size: 21px; color: #4a5563; position: relative; }
.hero-mountains { position: absolute; right: 0; bottom: 0; width: 58%; height: 100%; pointer-events: none; }
.hero-mountains svg { width: 100%; height: 100%; }
.hero-script {
  position: absolute; right: 420px; top: 44px; transform: rotate(-8deg);
  font-family: "Caveat", cursive; font-size: 34px; line-height: 1.05;
  color: var(--navy); text-align: center;
}
.hero-quote {
  position: absolute; right: 44px; top: 48px; max-width: 280px;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(4px);
  border-radius: 8px; padding: 20px 22px; font-size: 19px; color: var(--navy);
}
.hero-quote .qline { display: block; width: 44px; height: 4px; background: var(--accent); margin-top: 12px; }
@media (max-width: 1200px) { .hero-script { display: none; } }
@media (max-width: 900px) { .hero-quote { display: none; } .hero h1 { font-size: 40px; } }

.tile { text-align: left; padding: 22px 22px 16px; }
.tile-top { display: flex; align-items: center; gap: 14px; }
.chip {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.chip .ic { width: 26px; height: 26px; }
.tile .num { font-size: 52px; }
.tile .lbl { text-align: left; color: var(--ink); font-size: 19px; margin-top: 10px; }
.trend { display: flex; align-items: baseline; margin-top: 8px; font-size: 15px; }
.trend .up { color: var(--accent); font-weight: 600; }
.trend .flat { color: var(--muted); }
.trend .go { margin-left: auto; color: var(--muted); font-size: 20px; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 1000px) { .panels { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.panel-head h2 { margin: 0; }
.head-ic { color: var(--navy); }
.head-link { margin-left: auto; font-size: 16px; text-decoration: none; color: var(--sky); font-weight: 500; }

.crow {
  display: flex; align-items: center; gap: 16px; padding: 16px 2px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.crow:last-of-type { border-bottom: none; }
.crow:hover .crow-name { color: var(--sky); }
.crow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crow-name { font-weight: 600; font-size: 19px; }
.crow-sub { color: var(--muted); font-size: 15px; }
.crow .pill { margin-left: auto; background: #eaf3fb; border-color: #d5e6f5; color: var(--navy); font-size: 16px; padding: 6px 18px; }
.crow-when { margin-left: auto; text-align: right; color: var(--muted); font-size: 14px; line-height: 1.5; flex: none; }

.banner {
  display: flex; align-items: center; gap: 22px; margin-top: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 30px;
}
.banner-chip { width: 60px; height: 60px; }
.banner-text h2 { margin: 0 0 4px; }
.banner-text p { margin: 0; }
.btn-navy {
  margin-left: auto; background: var(--navy); color: #fff; text-decoration: none;
  padding: 16px 28px; border-radius: 8px; font-size: 19px; font-weight: 600; flex: none;
}
.btn-navy:hover { filter: brightness(1.15); }

/* ---- motion ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero { animation: fade-up 0.45s ease both; }
.tile { animation: fade-up 0.45s ease both; }
.tiles .tile:nth-child(1) { animation-delay: 0.05s; }
.tiles .tile:nth-child(2) { animation-delay: 0.10s; }
.tiles .tile:nth-child(3) { animation-delay: 0.15s; }
.tiles .tile:nth-child(4) { animation-delay: 0.20s; }
.tiles .tile:nth-child(5) { animation-delay: 0.25s; }
.panel, .banner { animation: fade-up 0.5s ease 0.2s both; }
.board .col { animation: fade-up 0.4s ease both; }
.board .col:nth-child(1) { animation-delay: 0.03s; }
.board .col:nth-child(2) { animation-delay: 0.08s; }
.board .col:nth-child(3) { animation-delay: 0.13s; }
.board .col:nth-child(4) { animation-delay: 0.18s; }
.board .col:nth-child(5) { animation-delay: 0.23s; }
.login-box { animation: fade-up 0.5s ease both; }
main > h1, main > p { animation: fade-in 0.4s ease both; }

a, button, .pill { transition: color 0.15s ease, background-color 0.15s ease,
  border-color 0.15s ease, filter 0.15s ease; }
.tile, .card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tile:hover, .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 40, 90, 0.10);
}
.crow { transition: background-color 0.15s ease; }
.crow:hover { background: #fafbfc; }
.crow-name { transition: color 0.15s ease; }
.btn-navy { transition: filter 0.15s ease, transform 0.15s ease; }
.btn-navy:hover { transform: translateY(-2px); }
button:active, .btn-navy:active { transform: scale(0.98); }
.nav-links a { transition: background-color 0.18s ease, color 0.15s ease; }
.nav-search { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.nav-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(89, 171, 229, 0.15); }
input, select { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
input:focus, select:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(89, 171, 229, 0.15);
}
.check-btn { transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.bell .dot { animation: fade-in 0.3s ease 0.6s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- teams & badges ---- */
.people-panels { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 1100px) { .people-panels { grid-template-columns: 1fr; } }
.team-block { margin-top: 18px; border-left: 3px solid var(--line); padding-left: 18px; }
.team-head { display: flex; align-items: center; gap: 12px; }
.team-head h3 { margin: 0; font-family: var(--serif); color: var(--navy); font-size: 21px; }
.team-head form { margin-left: auto; }
.cat-label {
  margin: 12px 0 2px; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.crow.member { flex-wrap: wrap; }
.member-edit { display: flex; gap: 8px; width: 100%; margin-top: 4px; }
.member-edit select, .member-edit input { font-size: 14px; padding: 7px 10px; width: auto; flex: 1; }
.member-edit button { font-size: 14px; padding: 7px 14px; }
.badge { font-size: 20px; }

/* ---- god-mode nav: dark blue ---- */
nav.nav-god { background: var(--navy); border-bottom-color: #001d42; }
nav.nav-god .nav-links a { color: #fff; }
nav.nav-god .nav-links a:hover { color: var(--accent); }
nav.nav-god .nav-links a.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
nav.nav-god .nav-search {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.7);
}
nav.nav-god .nav-search input { color: #fff; }
nav.nav-god .nav-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
nav.nav-god .nav-search:focus-within { border-color: var(--sky); }
nav.nav-god .bell { color: #fff; }
nav.nav-god .bell .dot { border-color: var(--navy); }
nav.nav-god .who { color: rgba(255, 255, 255, 0.75); }
nav.nav-god button.link { color: rgba(255, 255, 255, 0.75); }

/* ---- team quick-add ---- */
.team-name { text-decoration: none; }
.team-name h3 { transition: color 0.15s ease; }
.team-name:hover h3 { color: var(--sky); }
.team-add {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 99px; padding: 5px 14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.team-add:hover { background: var(--accent); color: #fff; }
.team-add .ic { width: 16px; height: 16px; }
.panel-hot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125, 180, 45, 0.15); }
.pre-team { margin: 0 0 10px; color: var(--accent); font-size: 16px; }

/* ---- add-prospect wizard ---- */
.hero-sm { padding: 34px 44px 40px; }
.hero-sm h1 { font-size: 44px; }
.crumbs { margin: 0 0 6px; font-size: 15px; color: var(--muted); position: relative; }
.crumbs a { text-decoration: none; }
.wizard { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .wizard { grid-template-columns: 1fr; } }
.wiz-main { padding: 30px 34px; }
.wiz-steps { display: flex; gap: 20px; margin-bottom: 10px; }
.wstep { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wnum {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #eef0f3; color: var(--muted); font-weight: 600; font-size: 19px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.wstep.on .wnum { background: var(--sky); color: #fff; }
.wstep.done .wnum { background: var(--accent); color: #fff; }
.wtext { display: flex; flex-direction: column; }
.wtext b { font-size: 17px; color: var(--ink); }
.wtext em { font-style: normal; font-size: 14px; color: var(--muted); }
.wbar { display: block; width: 100%; height: 5px; border-radius: 3px; background: #e6e9ed; transition: background-color 0.2s ease; }
.wstep.on .wbar { background: var(--sky); }
.wstep.done .wbar { background: var(--accent); }
.wpage { animation: fade-in 0.25s ease; }
.wpage h2 { margin-bottom: 4px; }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 20px; }
@media (max-width: 800px) { .wgrid { grid-template-columns: 1fr; } }
.wgrid label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--ink); font-weight: 500; }
.wgrid .wide { grid-column: 1 / -1; }
.wgrid textarea { padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; font: inherit; resize: vertical; }
.wgrid textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(89,171,229,0.15); }
.wnav { display: flex; justify-content: space-between; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.btn-ghost {
  display: inline-block; padding: 14px 24px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer;
  transition: border-color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--muted); }
.review { margin: 20px 0 0; }
.rrow { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rrow dt { width: 180px; flex: none; color: var(--muted); }
.rrow dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.wiz-side { display: flex; flex-direction: column; gap: 20px; }
.side-card h2 { margin: 14px 0 8px; }
.side-card .chip { width: 56px; height: 56px; border-radius: 14px; }
.tips { margin: 10px 0 0; padding: 0; list-style: none; }
.tips li { position: relative; padding: 6px 0 6px 24px; font-size: 16px; }
.tips li::before {
  content: ''; position: absolute; left: 2px; top: 15px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--sky);
}
.bigquote { font-family: var(--serif); font-size: 40px; color: #8b7ae8; line-height: 0.5; margin-top: 18px; }
.side-quote { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--navy); margin: 14px 0 0; }
.side-card .qline { display: block; width: 44px; height: 4px; background: var(--accent); margin: 14px 0 10px; }

/* ---- team cards ---- */
.team-block {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  margin-top: 36px; padding: 0 0 10px; overflow: hidden;
  border-left: 1px solid var(--line);
}
.team-block.top { box-shadow: 0 4px 18px rgba(0, 40, 90, 0.06); }
.team-block .team-head { padding: 16px 22px; margin: 0; }
.team-block.top > .team-head {
  background: linear-gradient(100deg, var(--navy) 0%, #0d4a8f 100%);
  position: relative;
}
.team-block.top > .team-head::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 220px;
  background:
    linear-gradient(115deg, transparent 55%, rgba(125,180,45,0.25) 55%, rgba(125,180,45,0.25) 72%, transparent 72%),
    linear-gradient(115deg, transparent 68%, rgba(89,171,229,0.25) 68%, rgba(89,171,229,0.25) 85%, transparent 85%);
  pointer-events: none;
}
.team-block.top > .team-head h3 { color: #fff; font-size: 24px; }
.team-block.top > .team-head .count { color: rgba(255,255,255,0.75); }
.team-block.top > .team-head .chip { background: rgba(255,255,255,0.16) !important; color: #fff !important; }
.team-block.top > .team-head .team-add { border-color: rgba(255,255,255,0.6); color: #fff; position: relative; z-index: 1; }
.team-block.top > .team-head .team-add:hover { background: var(--accent); border-color: var(--accent); }
.team-block.top > .team-head button.link { color: rgba(255,255,255,0.65); position: relative; z-index: 1; }
.team-block.unassigned > .team-head { background: #eef0f3; }
.team-block.unassigned > .team-head h3 { color: var(--muted); }
.team-block.unassigned > .team-head .count { color: var(--muted); }
.team-block .crow { padding: 16px 22px; }
.team-block .cat-label {
  margin: 16px 22px 0; padding-bottom: 6px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.team-block.nested {
  background: #fbfcfd; border-radius: 10px; margin: 22px 18px 8px;
  box-shadow: none;
}
.team-block.nested > .team-head { background: #eaf3fb; }
.team-block.nested > .team-head h3 { font-size: 20px; }
.team-block.nested > .team-head .chip { background: #d5e6f5 !important; }

/* ---- GOD view ---- */
.gv-rep { margin-top: 28px; padding: 26px 30px; }
.gv-rep-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 16px; border-bottom: 2px solid var(--navy); margin-bottom: 6px;
}
.gv-minis { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.gv-mini { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.gv-company {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr 150px;
  align-items: center; gap: 26px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.gv-company:last-child { border-bottom: none; }
@media (max-width: 1000px) { .gv-company { grid-template-columns: 1fr; gap: 12px; } }
.gv-name { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.gv-name:hover .crow-name { color: var(--sky); }

.stepper { display: flex; align-items: flex-start; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; flex: none; }
.sdot {
  width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  background: #eef0f3; color: #b3b9c0; font-size: 17px; font-weight: 700;
  transition: background-color 0.2s ease;
}
.s-ic { width: 20px; height: 20px; }
.step.done .sdot { background: var(--accent); color: #fff; }
.step.current .sdot {
  background: var(--sc); color: #fff;
  box-shadow: 0 0 0 6px var(--sb);
  animation: god-pulse 2s ease-in-out infinite;
}
.slabel { font-size: 13px; color: var(--muted); }
.step.done .slabel { color: var(--accent); }
.step.current .slabel { color: var(--sc); font-weight: 700; font-size: 14px; }
.sline {
  flex: 1; min-width: 14px; height: 5px; border-radius: 3px;
  background: #e6e9ed; margin-top: 18px;
}
.sline.filled { background: var(--accent); }
@keyframes god-pulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--sb); }
  50% { box-shadow: 0 0 0 11px var(--sb); }
}
@media (prefers-reduced-motion: reduce) { .step.current .sdot { animation: none; } }

.gv-checks { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.gv-bar {
  width: 100%; height: 9px; border-radius: 5px; background: #eef0f3; overflow: hidden;
}
.gv-bar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; transition: width 0.4s ease; }

/* ---- gold GOD button ---- */
.nav-links a.god-link {
  border: 1px solid rgba(233, 194, 90, 0.55); border-radius: 10px; color: #e9c25a;
}
.nav-links a.god-link:hover { color: #f5d67e; border-color: #f5d67e; background: rgba(233, 194, 90, 0.08); }
.nav-links a.god-link.on {
  background: linear-gradient(100deg, #f0cd6b, #d9a62e); color: var(--navy); border-color: transparent;
}
.nav-links a.god-link.on .ic { color: var(--navy); }

/* ---- chart animations ---- */
.gv-bar i { transform-origin: left; animation: grow-x 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.35s both; }
.sline.filled { transform-origin: left; animation: grow-x 0.5s ease 0.3s both; }
.step.done .sdot, .step.current .sdot { animation-name: pop-in; animation-duration: 0.4s; animation-timing-function: cubic-bezier(0.3, 1.4, 0.5, 1); animation-fill-mode: both; }
.step.current .sdot { animation: pop-in 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both, god-pulse 2s ease-in-out 0.5s infinite; }
.stepper .step:nth-child(1) .sdot { animation-delay: 0.05s; }
.stepper .step:nth-child(3) .sdot { animation-delay: 0.15s; }
.stepper .step:nth-child(5) .sdot { animation-delay: 0.25s; }
.stepper .step:nth-child(7) .sdot { animation-delay: 0.35s; }
.stepper .step:nth-child(9) .sdot { animation-delay: 0.45s; }
.gv-mini { animation: fade-up 0.4s ease 0.3s both; }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes pop-in { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* gold GOD button wins over the navy nav theme */
nav.nav-god .nav-links a.god-link {
  border: 1px solid rgba(233, 194, 90, 0.55); color: #e9c25a;
}
nav.nav-god .nav-links a.god-link:hover { color: #f5d67e; border-color: #f5d67e; }
nav.nav-god .nav-links a.god-link.on {
  background: linear-gradient(100deg, #f0cd6b, #d9a62e); color: var(--navy); border-color: transparent;
}
nav.nav-god .nav-links a.god-link.on .ic { color: var(--navy); }

/* ---- 19-major pipeline: phased board ---- */
.board-phased { flex-direction: column; gap: 34px; overflow: visible; min-height: 0; }
.phase-group { border-radius: 12px; }
.phase-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-family: var(--serif); font-size: 25px; font-weight: 700; color: var(--navy);
}
.phase-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pc); }
.phase-cols {
  display: flex; gap: 16px; overflow-x: auto; align-items: flex-start;
  padding: 16px; border-radius: 12px; background: var(--pb);
}
.phase-cols .col { min-width: 250px; flex: none; background: rgba(255, 255, 255, 0.72); }
.phase-cols .col h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.col-ic { width: 18px; height: 18px; color: var(--pc); }
.card-minors { font-size: 13px; margin-top: 8px; }

/* ---- dashboard funnel strip ---- */
.funnel-panel { margin-top: 24px; }
.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel-phase { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.funnel-phase-label {
  flex: none; width: 150px; font-weight: 700; font-family: var(--serif);
  color: var(--pc); font-size: 18px;
}
.funnel-stages { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fstage {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 6px;
  color: var(--muted); background: var(--card);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fstage:hover { border-color: var(--pc); }
.fstage.has { color: var(--ink); background: var(--pb); border-color: transparent; }
.fstage .fnum {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #eef0f3; font-weight: 700; font-size: 14px;
}
.fstage.has .fnum { background: var(--pc); color: #fff; }
.fstage .fname { font-size: 13.5px; white-space: nowrap; }
.farrow { color: var(--line); font-size: 17px; }

/* ---- compact GOD pipeline (19 majors as dots) ---- */
.pipe-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pipe { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pdot {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: #e3e6ea; transition: background-color 0.2s ease;
}
.pdot.done { background: var(--accent); }
.pdot.current {
  width: 19px; height: 19px; background: var(--sc);
  box-shadow: 0 0 0 4px var(--sb);
  animation: god-pulse-sm 2s ease-in-out infinite;
}
@keyframes god-pulse-sm {
  0%, 100% { box-shadow: 0 0 0 4px var(--sb); }
  50% { box-shadow: 0 0 0 8px var(--sb); }
}
@media (prefers-reduced-motion: reduce) { .pdot.current { animation: none; } }
.pipe-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15.5px;
}
.pipe-label .muted { font-weight: 400; }

/* ---- company page: majors & minors ---- */
.stage-jump { display: flex; gap: 8px; margin-left: auto; }
.stage-jump select { width: auto; font-size: 15px; padding: 10px 12px; }
.minor-others { margin-top: 18px; }
.minor-others > summary {
  cursor: pointer; color: var(--muted); font-size: 16px; font-weight: 600;
}
.minor-major { margin: 12px 0 0 8px; padding: 4px 0 4px 14px; border-left: 3px solid var(--line); }
.minor-major > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-weight: 600; font-size: 16.5px; list-style: none;
}
.minor-major > summary::-webkit-details-marker { display: none; }
.minor-major .checklist { margin-top: 10px; }
.mm-chip {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
}

/* ---- navy nav polish ---- */
nav.nav-god .brand-logo { height: 52px; }
nav.nav-god { padding-top: 10px; padding-bottom: 10px; }
.bell { align-items: center; padding: 6px; }
.bell .dot { top: 3px; right: 3px; }
nav .who { white-space: nowrap; }

/* ---- fake prospect tools ---- */
.gv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fake-tools { display: flex; gap: 10px; margin-top: 14px; }
.btn-ghost.danger { color: #c0392b; border-color: #e5b5af; }
.btn-ghost.danger:hover { border-color: #c0392b; }
.hero-fake { position: relative; margin-top: 16px; }

/* ---- notification bell count ---- */
a.bell { text-decoration: none; }
.ncount {
  position: absolute; top: -4px; right: -6px; min-width: 19px; height: 19px;
  border-radius: 10px; background: #e0483c; color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid var(--card);
}
nav.nav-god .ncount { border-color: var(--navy); }
.crow.unread { background: #f2f8fd; border-left: 3px solid var(--sky); padding-left: 19px; }

/* ---- resources: inline YouTube player ---- */
.rsrc { border-bottom: 1px solid var(--line); }
.rsrc:last-of-type { border-bottom: none; }
.rsrc .crow { border-bottom: none; }
.yt-embed {
  display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 9;
  border: 0; border-radius: 10px; margin: 0 0 18px 68px;
  background: #000; box-shadow: 0 6px 18px rgba(0, 40, 90, 0.12);
}
@media (max-width: 700px) { .yt-embed { margin-left: 0; max-width: none; } }

/* ---- outside roles: people page + portal ---- */
.outside-head { margin-top: 44px; }
.outside-block > .team-head { background: linear-gradient(100deg, #3d6b1f 0%, var(--accent) 100%) !important; }
.outside-empty { padding: 14px 22px; margin: 0; }
.company-picker { flex: 3; min-height: 44px; }
.pill.role-hcp { background: #eaf6ef; border-color: #cfe7b8; color: #3d6b1f; }
.pill.role-client { background: #eaf3fb; border-color: #d5e6f5; color: var(--navy); }
nav.nav-outside .spacer { flex: 1; }

.portal-card { display: block; text-decoration: none; color: var(--ink); margin-bottom: 20px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.portal-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 40, 90, 0.10); }
.portal-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ptrack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 6px; }
@media (max-width: 800px) { .ptrack { grid-template-columns: 1fr; } }
.pphase-head { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; color: var(--muted); }
.pphase.current .pphase-head b, .pphase.done .pphase-head b { color: var(--pc); }
.pbar { height: 10px; border-radius: 5px; background: #eef0f3; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--pc); border-radius: 5px; transform-origin: left; animation: grow-x 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both; }
.portal-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; align-items: start; }
@media (max-width: 1000px) { .portal-phases { grid-template-columns: 1fr; } }
.portal-phase h2 { margin-top: 0; }
.pstep { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.pstep:last-child { border-bottom: none; }
.pstep-dot {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: #eef0f3; font-size: 14px; font-weight: 700;
}
.pstep.done { color: var(--ink); }
.pstep.done .pstep-dot { background: var(--pc); color: #fff; }
.pstep.current { color: var(--navy); font-weight: 600; }
.pstep.current .pstep-dot { background: var(--pc); color: #fff; box-shadow: 0 0 0 5px var(--pb); }
.pstep .pill { margin-left: auto; }

/* ---- client approvals ---- */
.pending-note {
  background: #fdf3e3; color: #8a5a12; border: 1px solid #f1d9ae;
  border-radius: 6px; padding: 12px 14px; font-size: 16px; text-align: left;
}
.pill.status-pending { background: #fdf3e3; border-color: #f1d9ae; color: #8a5a12; }
.pill.status-active { background: #eaf6ef; border-color: #cfe7b8; color: #3d6b1f; }
.pill.status-declined { background: #fbeceb; border-color: #efc3bf; color: #a3322a; }
.ncount.inline { position: static; display: inline-flex; margin-left: 4px; border: none; }
.approval-row { flex-wrap: wrap; }
.approval-row form { margin-left: 8px; }
.approval-row form:first-of-type { margin-left: auto; }
.approval-row .crow-sub a { text-decoration: none; }
.portal-clients { margin-top: 28px; }

/* ---- view-as toggle ---- */
.view-as { display: flex; align-items: center; }
.view-as select {
  width: auto; padding: 9px 12px; font-size: 15px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
}
.view-as select option, .view-as select optgroup { color: var(--ink); background: #fff; }
nav:not(.nav-god) .view-as select { background: var(--card); color: var(--ink); border-color: var(--line); }

.preview-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 10px 28px;
  background: repeating-linear-gradient(135deg, #f0cd6b 0 18px, #ecc257 18px 36px);
  color: var(--navy); font-size: 17px; box-shadow: 0 2px 10px rgba(0, 40, 90, 0.18);
}
.preview-bar .spacer { flex: 1; }
.preview-eye { font-size: 22px; }
.preview-ro {
  margin-left: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--navy); color: #f0cd6b; border-radius: 99px; padding: 2px 10px;
}
.preview-bar .view-as select { background: rgba(255, 255, 255, 0.7); color: var(--navy); border-color: rgba(0, 40, 90, 0.3); }
.preview-exit {
  background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 9px 18px;
  font-weight: 600; font-size: 15px;
}
.preview-exit:hover { filter: brightness(1.2); }
body.previewing main form button:not(.preview-exit):not(.link) { opacity: 0.55; cursor: not-allowed; }

/* ---- portal company detail ---- */
.portal-detail { margin-top: 24px; align-items: start; }
.portal-detail .review { margin-top: 6px; }
.portal-detail .rrow dd a { text-decoration: none; }

/* ---- settings gear in nav ---- */
.settings-link { border-radius: 8px; }
.settings-link.on { background: #eaf3fb; }
nav.nav-god .settings-link { color: #fff; }
nav.nav-god .settings-link.on { background: rgba(255, 255, 255, 0.14); }

/* ---- sales units + clients ---- */
.pill.client-pill { background: #eaf6ef; border-color: #cfe7b8; color: #3d6b1f; font-weight: 600; }
.pill.client-pill.big { font-size: 17px; }
.client-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 16px 0 6px;
}
.client-bar.is-client { background: #f4faee; border-color: #cfe7b8; }
.client-bar form:last-child { margin-left: auto; }
.units-panel { margin-bottom: 24px; }
.units-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.unit-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 10px; }
.unit-head { display: flex; align-items: center; gap: 14px; }
.unit-stats { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit-stats b { color: var(--navy); font-size: 17px; }
.unit-members { display: flex; flex-wrap: wrap; gap: 6px; }
.unit-member { font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; }

.nav-links a { white-space: nowrap; }

/* ---- lean board: four stage columns in one row ---- */
.board-lean { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 18px; overflow-x: auto; align-items: start; }
.board-lean .col { min-width: 0; border-top: 4px solid var(--sc); background: #eef1f5; }
.board-lean .col h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; color: var(--sc); }
.tiles .tile-clients { border-color: #cfe7b8; background: #f7fbf2; }

/* ---- photos + logos ---- */
img.avatar { object-fit: cover; background: #eef1f5; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar.xl { width: 104px; height: 104px; font-size: 34px; }
nav.nav-god img.avatar { border-color: var(--navy); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.unit-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 4px; flex: none; }
.team-title { display: flex; align-items: center; gap: 18px; }
.team-title h1 { margin-bottom: 8px; }
.team-logo { height: 64px; max-width: 220px; object-fit: contain; }
.img-uploads { display: grid; gap: 22px; }
.img-upload { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.img-preview { display: grid; place-items: center; min-height: 104px; }
.logo-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 8px; background: #fbfcfd; }
.logo-preview img { max-width: 100%; max-height: 88px; object-fit: contain; }
.img-controls { display: grid; gap: 6px; }
.img-form { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.file-btn { cursor: pointer; font-size: 16px; padding: 10px 18px; }
.portal-profile { margin-top: 28px; max-width: 640px; }

.row-link { margin-left: auto; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.row-link + .pill { margin-left: 0; }

/* ---- dashboard hero photo ---- */
.hero-hello { position: relative; display: flex; align-items: center; gap: 26px; }
.hero-avatar-link { flex: none; border-radius: 50%; transition: transform 0.18s ease; }
.hero-avatar-link:hover { transform: scale(1.04); }
.hero-avatar-link:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.avatar.hero-avatar { width: 116px; height: 116px; font-size: 40px; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0, 40, 90, 0.16); }
@media (max-width: 900px) { .avatar.hero-avatar { width: 76px; height: 76px; font-size: 26px; } .hero-hello { gap: 16px; } }

/* Keep the greeting clear of the quote card, and the five tiles on one row. */
.hero-hello { max-width: calc(100% - 330px); }
.hero-hello h1 { text-wrap: balance; }
@media (max-width: 1200px) { .hero-quote { display: none; } .hero-hello { max-width: none; } }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiles .tile { min-width: 0; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- clients page ---- */
.clients-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.clients-head h1 { margin-bottom: 6px; }
.clients-totals { display: flex; gap: 12px; flex-wrap: wrap; }
.clients-totals > * { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; min-width: 120px; text-decoration: none; color: var(--ink); }
.clients-totals b { font-family: var(--serif); font-size: 30px; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.clients-totals span { font-size: 14px; color: var(--muted); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.client-card { display: grid; gap: 16px; text-decoration: none; color: var(--ink); border-top: 4px solid #7db42d; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.client-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 40, 90, 0.10); }
.client-card-head { display: flex; align-items: center; gap: 14px; }
.client-card-head .pill { margin-left: auto; }
.client-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.client-card-stats div { display: grid; background: #f4faee; border-radius: 8px; padding: 10px 14px; }
.client-card-stats b { font-family: var(--serif); font-size: 24px; color: var(--navy); font-variant-numeric: tabular-nums; }
.client-card-stats span { font-size: 14px; color: var(--muted); }
.client-card-foot { display: flex; align-items: center; gap: 10px; font-size: 15px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.client-card-foot .client-by { margin-left: auto; font-size: 14px; }
.clients-empty { display: grid; gap: 12px; justify-items: start; max-width: 640px; }
.clients-empty h2 { margin: 0; }
.clients-empty .btn-navy { margin-left: 0; }

/* ---- savings + W-2 ---- */
.client-savings { display: grid; background: linear-gradient(100deg, #eaf6ef, #f4faee); border: 1px solid #cfe7b8; border-radius: 10px; padding: 12px 16px; }
.client-savings b { font-family: var(--serif); font-size: 30px; color: #2f5d12; line-height: 1.15; font-variant-numeric: tabular-nums; }
.client-savings b small { font-size: 16px; font-family: var(--sans); color: var(--muted); margin-left: 2px; }
.client-savings span { font-size: 14px; color: #4a5a3c; }
.client-savings.below-min { background: #fdf3e3; border-color: #f1d9ae; }
.client-savings.below-min b { color: #8a5a12; font-size: 22px; }
.client-savings.below-min span { color: #8a5a12; }
.clients-totals .total-savings { background: #f4faee; border-color: #cfe7b8; }
.clients-totals .total-savings b { color: #2f5d12; }
.savings-rule { margin: -8px 0 18px; }
.w2-toggle { display: inline; margin-left: auto; }
.w2-toggle .pill { cursor: pointer; font-size: 13px; padding: 2px 10px; }
.pill.w2-on { background: #eaf6ef; border-color: #cfe7b8; color: #3d6b1f; }
.pill.w2-off { background: #f2f4f7; border-color: var(--line); color: var(--muted); text-decoration: line-through; }
.rows li .w2-toggle + .pill { margin-left: 0; }
.w2-add { display: flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; color: var(--muted); }
.w2-add input { width: auto; }
.bar-savings { font-size: 16px; color: #2f5d12; }
.bar-savings b { font-size: 18px; }
.bar-savings.short { color: #8a5a12; }
.client-bar button[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }
.tile-savings { display: inline-block; margin-left: 6px; font-size: 14px; font-weight: 700; color: #2f5d12; background: #eaf6ef; border-radius: 99px; padding: 1px 9px; vertical-align: middle; }
.portal-savings { display: grid; gap: 2px; margin: 18px 0 0; background: linear-gradient(100deg, #eaf6ef, #f7fbf2); border-color: #cfe7b8; }
.portal-savings b { font-family: var(--serif); font-size: 34px; color: #2f5d12; }
.eyebrow-small { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---- company page: boxes ---- */
.co-head { display: flex; align-items: center; gap: 20px; margin: 6px 0 22px; }
.avatar.co-avatar { width: 72px; height: 72px; font-size: 26px; border-radius: 16px; }
.co-title { display: grid; gap: 6px; min-width: 0; }
.co-title h1 { margin: 0; line-height: 1.1; text-wrap: balance; }
.co-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 16px; }
.co-meta .avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.co-dot { color: var(--line); font-weight: 700; }
.co-head > .pill { margin-left: auto; flex: none; }
.co-flash { margin: -10px 0 16px; }

.co-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1100px) { .co-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-stat {
  display: grid; align-content: start; gap: 4px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-height: 128px;
}
.co-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.co-stat b { font-family: var(--serif); font-size: 30px; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.co-stat b small { font-family: var(--sans); font-size: 16px; color: var(--muted); margin-left: 2px; }
.co-stat > span:not(.co-label) { font-size: 15px; color: var(--muted); }
.co-stat.good { background: linear-gradient(100deg, #eaf6ef, #f4faee); border-color: #cfe7b8; }
.co-stat.good b { color: #2f5d12; }
.co-stat.warn { background: #fdf3e3; border-color: #f1d9ae; }
.co-stat.warn b { color: #8a5a12; }
.co-stat.warn > span:not(.co-label) { color: #8a5a12; }
.co-stat .link { justify-self: start; font-size: 14px; margin-top: 2px; }
.co-make button { justify-self: start; margin: 4px 0 2px; padding: 11px 20px; }
.co-make button[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }
.co-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 4px 0 2px; }
.co-track i { height: 6px; border-radius: 3px; background: #e6e9ed; }
.co-track i.done { background: var(--sc); opacity: 0.45; }
.co-track i.now { background: var(--sc); }

.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .co-grid { grid-template-columns: 1fr; } }
.co-col { display: grid; gap: 24px; }
.co-box { display: grid; gap: 14px; }
.co-box-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.co-box-head h2 { margin: 0; font-size: 23px; }
.co-box-head > :not(h2) { margin-left: auto; }
.co-box .stage-jump select { width: auto; padding: 8px 12px; font-size: 15px; }
.co-box .inline-add { margin: 0; }
.co-stage-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.co-stage-nav .btn-ghost { padding: 10px 16px; font-size: 16px; }
.co-stage-nav button.primary { padding: 11px 18px; }
.co-box .minor-others { margin: 0; }

.co-list { display: grid; }
.emp-row, .note-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); }
.emp-row > div { display: grid; min-width: 0; }
.emp-row b { font-weight: 600; font-size: 17px; }
.emp-row .muted { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-row .w2-toggle { margin-left: auto; }
.note-row { align-items: flex-start; }
.note-row p { margin: 0 0 2px; }
.note-row .muted { font-size: 14px; }

.co-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.co-facts dt { font-size: 13px; color: var(--muted); }
.co-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.co-facts dd a { text-decoration: none; }
.edit-details summary {
  display: inline-block; cursor: pointer; list-style: none; font-weight: 600; color: var(--sky);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
}
.edit-details summary::-webkit-details-marker { display: none; }
.edit-details[open] summary { margin-bottom: 14px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.details-grid .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .co-facts, .details-grid { grid-template-columns: 1fr; } }

/* ---- dashboard boxes ---- */
.dash-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1100px) { .dash-stats { grid-template-columns: 1fr 1fr; } .dash-pipeline { grid-column: 1 / -1; } }
@media (max-width: 640px) { .dash-stats { grid-template-columns: 1fr; } }
a.dash-stat { text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.dash-stat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 40, 90, 0.10); }
.dash-stat b { font-size: 38px; }
.dash-pipeline { gap: 12px; }
.dash-pipeline-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dash-pipeline-top > div { display: grid; gap: 4px; }
.dash-pipeline-top span:not(.co-label) { font-size: 15px; color: var(--muted); }
.dash-pipeline-top .btn-navy { margin-left: 0; padding: 11px 18px; font-size: 16px; }
.pipe-bar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; background: #eef1f5; }
.pipe-bar a, .pipe-bar i { display: block; height: 100%; min-width: 10px; }
.pipe-bar i { flex: 1; }
.pipe-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.pipe-legend a { display: flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; }
.pipe-legend i { width: 10px; height: 10px; border-radius: 3px; }
.pipe-legend b { color: var(--navy); font-variant-numeric: tabular-nums; }
.dash-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dash-row:hover .crow-name { color: var(--sky); }
.dash-row .pill { margin-left: auto; flex: none; }
.pill.stage-pill { border-color: transparent; font-weight: 600; }
.dash-row .crow-when { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; }
.dash-row .crow-when .avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.co-box-head .head-link { margin-left: auto; }

/* ---- board boxes ---- */
.bcols { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.bcol { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--sc); border-radius: 12px; padding: 16px; display: grid; gap: 14px; }
.bcol-head { display: flex; align-items: flex-start; gap: 12px; }
.bcol-head .chip { width: 42px; height: 42px; }
.bcol-head .chip .ic { width: 22px; height: 22px; }
.bcol-head h2 { margin: 0; font-size: 22px; color: var(--sc); }
.bcol-head .muted { font-size: 13px; line-height: 1.35; display: block; }
.bcol-count { margin-left: auto; font-family: var(--serif); font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; }
.bcol-cards { display: grid; gap: 10px; }
.bcol-empty { margin: 0; padding: 18px; text-align: center; color: var(--muted); font-size: 15px; border: 1px dashed var(--line); border-radius: 10px; }
.bcard { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.bcard:hover { transform: translateY(-2px); border-color: var(--sc); box-shadow: 0 8px 18px rgba(0, 40, 90, 0.08); }
.bcard.is-client { background: #f7fbf2; border-color: #d9ecc4; }
.bcard-top { display: flex; align-items: flex-start; gap: 8px; }
.bcard-name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.bcard-top .pill { margin-left: auto; font-size: 12px; padding: 1px 9px; flex: none; }
.bcard-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; border-width: 1px; }
.bcard-money { margin-left: auto; font-weight: 600; color: #2f5d12; }
.bcard-short { margin-left: auto; color: #8a5a12; }
.bcard-progress { height: 5px; border-radius: 3px; background: #e9edf1; overflow: hidden; }
.bcard-progress i { display: block; height: 100%; background: var(--sc); border-radius: 3px; }
.clients-totals .board-add { background: var(--navy); border-color: var(--navy); }
.clients-totals .board-add b, .clients-totals .board-add span { color: #fff; }

/* Legend counts are small labels, not headline numbers. */
.dash-stat.dash-pipeline .pipe-legend b { font-family: var(--sans); font-size: 15px; line-height: 1.4; }

/* ---- census upload ---- */
.census-upload .file-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 15px; }
.census-upload .file-btn .ic { width: 18px; height: 18px; }
.census-hint { margin-top: -6px; }
.census-hint a { text-decoration: none; }
.census-map select { font-size: 15px; padding: 10px 12px; }
.census-ignored { margin: 0; font-size: 14px; color: #8a5a12; background: #fdf3e3; border: 1px solid #f1d9ae; border-radius: 8px; padding: 8px 12px; }
.census-import { display: grid; gap: 12px; }
.census-mode { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.census-mode input { width: auto; margin-top: 4px; }
.census-mode:has(input:checked) { border-color: var(--sky); background: #f2f8fd; }
.census-import button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---- employee census pop-up ---- */
.emp-open { display: grid; gap: 1px; min-width: 0; text-align: left; background: none; border: none; padding: 2px 0; cursor: pointer; font: inherit; color: inherit; }
.emp-open b { font-weight: 600; font-size: 17px; }
.emp-open .muted { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-open:hover b, .emp-open:focus-visible b { color: var(--sky); }
.emp-open:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.emp-dialog { border: none; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0, 40, 90, 0.25); }
.emp-dialog::backdrop { background: rgba(0, 25, 55, 0.45); }
.emp-dialog-inner { display: grid; gap: 14px; padding: 24px 26px; }
.emp-dialog-head { display: flex; align-items: flex-start; gap: 12px; }
.emp-dialog-head h2 { margin: 0; font-size: 26px; }
.emp-dialog-head .pill { margin-left: auto; flex: none; }
.emp-dialog [data-f="source"]:empty { display: none; }
.emp-dialog .co-facts { background: #f7f9fb; border-radius: 10px; padding: 14px 16px; }
.census-kept { margin: 0; font-size: 14px; color: #2f5d12; background: #f4faee; border: 1px solid #cfe7b8; border-radius: 8px; padding: 8px 12px; }

/* ---- insurance toggle ---- */
.ins-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #eef1f5; border-radius: 12px; padding: 5px; }
.ins-toggle button { display: grid; gap: 1px; text-align: left; border: 1px solid transparent; border-radius: 9px; background: transparent; padding: 10px 14px; cursor: pointer; }
.ins-toggle button b { font-size: 16px; color: var(--muted); font-weight: 600; }
.ins-toggle button span { font-size: 13px; color: var(--muted); }
.ins-toggle button:hover b { color: var(--navy); }
.ins-toggle button.on { background: var(--card); border-color: var(--line); box-shadow: 0 2px 6px rgba(0, 40, 90, 0.08); }
.ins-toggle button.on b { color: var(--navy); }
.ins-toggle button.on span { color: #2f5d12; font-weight: 600; }
.ins-toggle button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (max-width: 480px) { .ins-toggle { grid-template-columns: 1fr; } }

/* ---- company details pop-up ---- */
.co-info-btn {
  margin-left: auto; flex: none; width: 46px; height: 46px; padding: 0; border-radius: 12px;
  display: grid; place-items: center; color: var(--navy); background: var(--card); border: 1px solid var(--line);
}
.co-info-btn .ic { width: 22px; height: 22px; }
.co-info-btn:hover { border-color: var(--navy); }
.co-info-btn + .pill { margin-left: 0; }
.co-dialog { border: none; border-radius: 16px; padding: 0; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 60px rgba(0, 40, 90, 0.25); }
.co-dialog::backdrop { background: rgba(0, 25, 55, 0.45); }
.co-dialog-inner { display: grid; gap: 16px; padding: 24px 26px 26px; }
.co-dialog-close { margin-left: auto; width: 38px; height: 38px; padding: 0; border-radius: 10px; font-size: 24px; line-height: 1; color: var(--muted); }
.co-ins-link { justify-self: start; font-size: 14px; color: var(--sky); margin-top: 2px; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Connect to Revive mission ---- */
.revive-card { border-top: 4px solid #cfe7b8; }
.revive-card.is-ready { border-top-color: var(--accent); box-shadow: 0 0 0 3px rgba(125, 180, 45, 0.15); }
.revive-card.is-connected { border-top-color: var(--accent); background: linear-gradient(180deg, #f4faee, var(--card) 60%); }
.revive-card .co-box-head { gap: 14px; }
.revive-card .co-box-head .chip { width: 46px; height: 46px; margin-left: 0; }
.revive-card .co-box-head > div { display: grid; margin-left: 0; }
.revive-card .co-box-head .muted { font-size: 14px; }
.revive-bar { height: 8px; border-radius: 4px; background: #eef1f5; overflow: hidden; }
.revive-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.4s ease; }
.revive-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.revive-steps li { display: flex; align-items: flex-start; gap: 12px; }
.revive-steps li > span:last-child { display: grid; }
.revive-steps b { font-weight: 600; font-size: 16px; color: var(--ink); }
.revive-steps li.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: #b9c3cd; }
.revive-steps small { font-size: 13px; color: #8a5a12; }
.revive-dot { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid #cfd6de; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; margin-top: 1px; }
.revive-steps li.done .revive-dot { background: var(--accent); border-color: var(--accent); }
.revive-go { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 12px 20px; }
.revive-go .ic { width: 20px; height: 20px; }
.revive-go[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.5); }
.revive-status { display: grid; gap: 2px; background: #eaf6ef; border: 1px solid #cfe7b8; border-radius: 10px; padding: 12px 14px; }
.revive-status b { color: #2f5d12; font-size: 17px; }
.revive-status span { font-size: 14px; color: var(--muted); }
.revive-status .link { justify-self: start; font-size: 14px; }
.revive-temp { margin: 0; font-size: 13px; font-style: italic; }
.revive-chip { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.revive-chip .ic { width: 16px; height: 16px; }
.revive-chip i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: #eef1f5; overflow: hidden; }
.revive-chip i b { display: block; height: 100%; background: var(--accent); }
.revive-chip.is-ready { color: #2f5d12; font-weight: 600; }
.revive-chip.is-connected { color: #2f5d12; font-weight: 600; }

/* ---- frozen employees + monthly check ---- */
.emp-row.frozen, .crow.frozen { opacity: 0.6; }
.emp-row.frozen .emp-open b, .crow.frozen .crow-name { text-decoration: line-through; text-decoration-color: #b9c3cd; }
.pill.frozen-pill { background: #eef2f7; border-color: #d6dee8; color: #4b6a8a; font-weight: 600; }
.frozen-count { font-family: var(--sans); font-size: 15px; font-weight: 500; color: #4b6a8a; }
.frozen-note { margin: 0; font-size: 14px; color: #4b6a8a; background: #eef2f7; border-radius: 8px; padding: 8px 12px; }
.frozen-note[hidden] { display: none; }
.btn-ghost.danger { color: #a3322a; border-color: #efc3bf; }
.emp-check { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fbfcfd; }
.emp-check > .ic { color: var(--muted); flex: none; }
.emp-check > div { display: grid; }
.emp-check b { font-size: 15px; }
.emp-check span { font-size: 13px; color: var(--muted); }
.emp-check form { margin-left: auto; }
.emp-check .btn-ghost { padding: 7px 12px; font-size: 14px; }
.emp-check.waiting { background: #fdf3e3; border-color: #f1d9ae; }
.emp-check.waiting b, .emp-check.waiting > .ic { color: #8a5a12; }
.emp-check.done { background: #f4faee; border-color: #cfe7b8; }
.emp-check.done b, .emp-check.done > .ic { color: #2f5d12; }
.revive-override { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.revive-override .btn-ghost { padding: 9px 14px; font-size: 15px; border-style: dashed; }
.revive-override .muted { font-size: 13px; }

/* ---- client portal: check banner + what's included ---- */
.portal-check { display: flex; align-items: center; gap: 16px; margin: 16px 0; background: #fdf3e3; border-color: #f1d9ae; }
.portal-check > .ic { width: 30px; height: 30px; color: #8a5a12; flex: none; }
.portal-check > div { display: grid; }
.portal-check b { font-size: 19px; color: #8a5a12; }
.portal-check .btn-navy { margin-left: auto; }
.portal-included { margin-top: 24px; }
.portal-included .panel-head .pill { margin-left: auto; }
.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 10px; }
.included-item { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.included-item .chip { width: 46px; height: 46px; }
.included-item b { font-size: 18px; color: var(--navy); }
.included-item p { margin: 4px 0 0; }
.check-form { display: grid; gap: 14px; max-width: 760px; }
.check-list { display: grid; }
.check-row { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.check-row input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.check-row span { display: grid; }
.check-row small { color: var(--muted); font-size: 14px; }
.check-row:has(input:not(:checked)) b { text-decoration: line-through; color: var(--muted); }

/* ---- full employee list ---- */
a.co-stat-link { text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
a.co-stat-link:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: 0 10px 24px rgba(0, 40, 90, 0.10); }
.co-go { float: right; letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--sky); font-weight: 600; }
.emp-table-panel { display: grid; gap: 14px; }
.emp-table-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.emp-tabs { display: flex; gap: 4px; background: #eef1f5; border-radius: 10px; padding: 4px; }
.emp-tab { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 7px 14px; border-radius: 7px; }
.emp-tab span { font-weight: 500; opacity: 0.8; margin-left: 2px; }
.emp-tab.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 4px rgba(0, 40, 90, 0.08); }
.emp-search { margin-left: auto; max-width: 320px; padding: 10px 14px; font-size: 15px; }
.emp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.emp-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.emp-table th, .emp-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.emp-table thead th { background: #f5f7fa; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; position: sticky; top: 0; }
.emp-table tbody th { font-weight: 600; font-size: 15px; color: var(--ink); }
.emp-table .sticky { position: sticky; left: 0; background: var(--card); z-index: 1; box-shadow: 1px 0 0 var(--line); }
.emp-table thead .sticky { background: #f5f7fa; z-index: 2; }
.emp-table tr.frozen td, .emp-table tr.frozen th { color: var(--muted); }
.emp-table tr.frozen th { text-decoration: line-through; text-decoration-color: #b9c3cd; }
.emp-table .w2-toggle { margin: 0; }
.emp-freeze { padding: 6px 12px; font-size: 13px; }
.emp-table tbody tr:hover td, .emp-table tbody tr:hover th { background: #f9fbfd; }

/* ---- company page tabs ---- */
.co-tabs { display: flex; gap: 4px; margin: 0 0 22px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.co-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; margin-bottom: -2px;
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 17px; white-space: nowrap;
  border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; transition: color 0.15s ease, background-color 0.15s ease;
}
.co-tabs a:hover { color: var(--navy); background: #f2f5f8; }
.co-tabs a.on { color: var(--navy); border-bottom-color: var(--navy); }
.co-tabs a span { font-size: 13px; font-weight: 600; background: #eef1f5; color: var(--muted); border-radius: 99px; padding: 1px 9px; }
.co-tabs a.on span { background: var(--navy); color: #fff; }
a.co-info-btn { text-decoration: none; }
a.co-info-btn.on { border-color: var(--navy); background: #eaf3fb; }
a.co-ins-link { justify-self: start; font-size: 14px; color: var(--sky); margin-top: 2px; }
.co-settings { max-width: 820px; }
.co-settings .edit-details[open] summary { margin-bottom: 14px; }
.revive-go { text-decoration: none; }
.revive-override a.btn-ghost { text-decoration: none; padding: 9px 14px; font-size: 15px; border-style: dashed; }
.emp-table .emp-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.emp-table .emp-actions form { margin: 0; }
.emp-revive { font-size: 13px; font-weight: 600; color: #fff; background: #1e7ad8; border-radius: 8px; padding: 6px 11px; text-decoration: none; white-space: nowrap; }
.emp-revive:hover { background: #1765c4; }

/* ---- company logos ---- */
.avatar.co-logo { background: #fff; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; padding: 5px; }
.avatar.co-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.avatar.co-logo.co-avatar { padding: 8px; border-radius: 16px; }
.co-avatar-link { display: block; border-radius: 16px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.co-avatar-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 40, 90, 0.15); }
.co-logo-card .img-upload { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.co-logo-card { margin-bottom: 18px; }
.portal-co-head { display: flex; align-items: center; gap: 18px; margin-bottom: 4px; }
.portal-co-head h1 { margin: 0; }
.ins-toggle button .ins-extra { justify-self: start; margin-top: 5px; font-style: normal; font-size: 12px; font-weight: 700; color: #3d6b1f; background: #e7f3dc; border-radius: 99px; padding: 2px 9px; }

/* ---- passwords ---- */
.inline-form { display: inline; margin: 0; }
button.row-link.link { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.sp-title { margin: 6px 0 4px; font-size: 24px; color: var(--navy); }
.login-box form + form { margin-top: 8px; }
.pw-link-panel { max-width: 760px; display: grid; gap: 12px; }
.pw-link-panel h1 { margin: 0; }
.pw-link { display: flex; gap: 10px; }
.pw-link input { flex: 1; font: 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f5f7fa; min-width: 0; }

/* ---- presence ---- */
.presence { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.presence i { width: 9px; height: 9px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 0 rgba(47, 191, 91, 0.55); animation: presence-pulse 2s ease-out infinite; }
.presence.online { color: #1f8a41; }
.presence.recent { color: var(--ink); }
.presence.away, .presence.never { color: var(--muted); font-weight: 500; }
@keyframes presence-pulse { 70% { box-shadow: 0 0 0 7px rgba(47, 191, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 91, 0); } }
.whos-on { display: grid; gap: 12px; margin-bottom: 18px; padding: 16px 20px; }
.whos-on-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.who-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.who-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.who-chip > span { display: grid; line-height: 1.2; }
.who-chip b { font-size: 14px; }
.who-chip small { font-size: 12px; color: var(--muted); }
.who-chip.online { border-color: #bfe6cb; background: #f1fbf4; }
.who-chip.online small { color: #1f8a41; font-weight: 600; }
.who-chip:not(.online) { opacity: 0.75; }
.who-sep { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 4px 0 8px; }
@media (prefers-reduced-motion: reduce) { .presence i { animation: none; } }

/* ---- site footer ---- */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-foot { background: var(--navy); color: rgba(255,255,255,0.78); font-size: 15px; margin-top: 20px; position: relative; overflow: hidden; }
.site-foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #59abe5 0%, #7db42d 50%, #59abe5 100%); background-size: 200% 100%; animation: foot-flow 12s linear infinite; }
@keyframes foot-flow { to { background-position: -200% 0; } }
.foot-top { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(150px, 1fr)); gap: 32px; padding: 44px 36px 34px; }
.foot-brand img { height: 50px; display: block; margin-bottom: 14px; }
.foot-brand p { margin: 0 0 14px; max-width: 34ch; line-height: 1.55; }
.foot-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 99px; padding: 3px 11px; }
.foot-col h4 { margin: 4px 0 14px; color: #fff; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color 0.15s ease; }
.site-foot a:hover { color: #fff; }
.foot-col ul a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.25s ease, color 0.15s ease; }
.foot-col ul a:hover { background-size: 100% 1px; }
.foot-you { display: grid; align-content: start; gap: 12px; }
.foot-you h4 { margin-bottom: 2px; }
.foot-me { display: flex; align-items: center; gap: 10px; }
.foot-me > span { display: grid; line-height: 1.25; }
.foot-me b { color: #fff; font-size: 15px; }
.foot-me small { font-size: 13px; color: rgba(255,255,255,0.65); }
.foot-you .presence.online { color: #7fe0a0; font-size: 14px; }
.foot-you form { margin: 0; }
.foot-logout { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 7px 14px; font: 600 14px/1 "Inter", sans-serif; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.foot-logout:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 36px 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: rgba(255,255,255,0.6); }
.foot-legal { display: flex; gap: 18px; }
.site-foot-min { background: transparent; color: var(--muted); margin-top: 0; }
.site-foot-min::before { display: none; }
.site-foot-min .foot-bottom { border-top: 1px solid var(--line); color: var(--muted); justify-content: center; }
.site-foot-min a { color: var(--muted); }
.site-foot-min a:hover { color: var(--navy); }
@media (max-width: 1100px) { .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .foot-top { grid-template-columns: 1fr 1fr; padding: 34px 22px 26px; gap: 26px; } .foot-bottom { padding: 14px 22px 18px; } }
@media (prefers-reduced-motion: reduce) { .site-foot::before { animation: none; } }

/* ---- top nav, calmer ---- */
nav.topnav { gap: 20px; padding: 10px 28px; position: sticky; top: 0; z-index: 50; }
nav.topnav .brand-logo { height: 44px; }
nav.topnav .nav-links { gap: 2px; }
nav.topnav .nav-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; padding: 9px 14px; border-radius: 10px; }
nav.topnav .nav-links a .ic { width: 18px; height: 18px; opacity: 0.8; }
nav.topnav .nav-tools { display: flex; align-items: center; gap: 6px; }
nav.topnav .nav-add { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; padding: 9px 16px 9px 12px; border-radius: 10px; background: var(--accent); color: #fff; margin-right: 6px; transition: filter 0.15s ease, transform 0.15s ease; }
nav.topnav .nav-add:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
nav.topnav .nav-add .ic { width: 18px; height: 18px; }
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
nav.topnav .nav-icon { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--navy); transition: background-color 0.15s ease; }
nav.topnav .nav-icon .ic { width: 21px; height: 21px; }
nav.topnav .nav-icon:hover, .nav-menu[open] > .nav-icon, nav.topnav .nav-icon.on { background: #eef3f8; }
nav.topnav .nav-icon .ncount { top: 3px; right: 2px; }
nav.topnav .nav-me { display: grid; place-items: center; padding: 3px; border-radius: 99px; margin-left: 4px; transition: box-shadow 0.15s ease; }
nav.topnav .nav-me:hover, .nav-menu[open] > .nav-me { box-shadow: 0 0 0 3px rgba(89, 171, 229, 0.45); }
.nav-crown { color: #c99a2e !important; }
.nav-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 40, 90, 0.18); padding: 8px; display: grid; gap: 2px; z-index: 60; animation: pop-in 0.16s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
nav.topnav .nav-pop a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 500; padding: 9px 12px; border-radius: 9px; }
nav.topnav .nav-pop a:hover, nav.topnav .nav-pop a.on { background: #f2f6fa; color: var(--navy); }
nav.topnav .nav-pop a .ic { width: 18px; height: 18px; color: var(--muted); }
.nav-pop-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
.nav-pop-me { display: grid; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.nav-pop-me b { color: var(--navy); font-size: 16px; }
.nav-pop-me span { color: var(--muted); font-size: 13px; }
.nav-pop form { margin: 0; }
.nav-pop-out { width: 100%; text-align: left; background: none; border: none; border-top: 1px solid var(--line); margin-top: 4px; padding: 11px 12px 7px; font: 500 15px/1.2 "Inter", sans-serif; color: #b3261e; cursor: pointer; border-radius: 0 0 9px 9px; }
.nav-pop-out:hover { background: #fdf2f1; }
.nav-pop .view-as { padding: 2px 6px 6px; }
nav.topnav .nav-pop .view-as select { width: 100%; background: #f5f7fa; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; font-size: 14px; }
.nav-pop-search { min-width: min(460px, 86vw); padding: 6px; }
.nav-pop-search form { display: flex; align-items: center; gap: 10px; padding: 4px 10px; color: var(--muted); }
.nav-pop-search input { flex: 1; border: none; outline: none; font-size: 16px; padding: 10px 0; background: transparent; color: var(--ink); }
/* navy (God) theme */
nav.topnav.nav-god .nav-icon { color: #fff; }
nav.topnav.nav-god .nav-icon:hover, nav.nav-god .nav-menu[open] > .nav-icon, nav.topnav.nav-god .nav-icon.on { background: rgba(255, 255, 255, 0.12); }
nav.topnav.nav-god .nav-crown { color: #e9c25a !important; }
nav.topnav.nav-god .nav-links a .ic { opacity: 0.85; }
@media (max-width: 1180px) { nav.topnav .nav-links a span { display: none; } nav.topnav .nav-links a { padding: 10px; } nav.topnav .nav-links a.on span, nav.topnav .nav-links a span.ncount { display: inline; } }
@media (max-width: 760px) { nav.topnav { padding: 8px 14px; gap: 8px; flex-wrap: wrap; } nav.topnav .brand-logo { height: 36px; } nav.topnav .nav-add span { display: none; } nav.topnav .nav-add { padding: 9px 10px; } nav.topnav .nav-links { order: 3; width: 100%; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .nav-pop { animation: none; } }

/* ---- GOD: happening now ---- */
.lv { margin: 0 0 26px; display: grid; gap: 14px; border-top: 4px solid #2fbf5b; }
.lv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lv-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; }
.lv-dot { width: 12px; height: 12px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 0 rgba(47, 191, 91, 0.6); animation: presence-pulse 1.6s ease-out infinite; }
.lv-meta { font-size: 14px; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; }
@media (max-width: 900px) { .lv-grid { grid-template-columns: 1fr; } }
.lv h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-family: inherit; }
.lv-people { display: grid; gap: 8px; }
.lv-person { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color 0.2s ease, background-color 0.2s ease; }
.lv-person b { color: var(--navy); font-size: 15px; }
.lv-person .muted { font-size: 13px; }
.lv-person p { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.lv-person.typing { border-color: #f0c15a; background: #fffaf0; box-shadow: 0 0 0 3px rgba(240, 193, 90, 0.18); }
.lv-typing { font-weight: 700; color: #a86b00; }
.lv-typing i { display: inline-block; width: 4px; height: 4px; margin-left: 2px; border-radius: 50%; background: currentColor; animation: lv-bounce 1s ease-in-out infinite; }
.lv-typing i:nth-child(2) { animation-delay: 0.15s; } .lv-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lv-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.lv-person em { font-style: normal; font-weight: 600; }
.lv-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow-y: auto; }
.lv-act { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; }
.lv-act p { margin: 0; font-size: 14px; line-height: 1.4; }
.lv-act p a { color: var(--ink); text-decoration: none; }
.lv-act p a:hover { color: var(--sky); text-decoration: underline; }
.lv-act time { font-size: 12px; color: var(--muted); }
.lv-act.new { animation: lv-new 2.4s ease-out; }
@keyframes lv-new { 0% { background: #e7f7ec; transform: translateX(-6px); } 20% { transform: none; } 100% { background: transparent; } }
.lv-empty { font-size: 14px; padding: 6px 2px; }
@media (prefers-reduced-motion: reduce) { .lv-dot, .lv-typing i, .lv-act.new { animation: none; } }
.co-logo-card .logo-preview { min-width: 180px; min-height: 110px; }

/* ---- team requests ---- */
.tr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tr-top h1 { margin-bottom: 4px; }
.tr-top p { margin: 0; }
.tr-top .btn-navy { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.tr-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; align-items: start; }
@media (max-width: 1100px) { .tr-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tr-board { grid-template-columns: 1fr; } }
.tr-col { background: #eef2f6; border-radius: 16px; padding: 12px; border-top: 4px solid #9fb3c8; }
.tr-col-planned { border-top-color: var(--sky); }
.tr-col-doing { border-top-color: #e0a526; }
.tr-col-done { border-top-color: var(--accent); }
.tr-col h2 { margin: 2px 4px 12px; font-size: 16px; font-family: inherit; font-weight: 700; display: flex; justify-content: space-between; color: var(--navy); }
.tr-col h2 span { color: var(--muted); font-weight: 600; }
.tr-col-list { display: grid; gap: 10px; }
.tr-empty { font-size: 14px; margin: 4px; }
.tr-card { display: grid; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tr-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 40, 90, 0.1); }
.tr-card.urgent { border-left: 4px solid #d64545; }
.tr-card.unread { box-shadow: 0 0 0 2px rgba(89, 171, 229, 0.5); }
.tr-card > b { font-size: 15px; line-height: 1.35; }
.tr-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-card-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tr-card-foot .avatar { width: 24px; height: 24px; font-size: 10px; }
.tr-count { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.tr-count .ic { width: 13px; height: 13px; }
.tr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); margin-left: auto; }
.tr-kind { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 9px; background: #eef1f5; color: var(--ink); }
.tr-broken { background: #fdeaea; color: #a32d2d; }
.tr-change { background: #eaf3fb; color: #1d5f94; }
.tr-idea { background: #fdf6dd; color: #8a6300; }
.tr-question { background: #efeafb; color: #5b3fa6; }
.tr-urgent { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: #d64545; border-radius: 99px; padding: 2px 8px; }
.tr-status { font-size: 12px; }
.tr-s-new { background: #eef1f5; color: var(--ink); }
.tr-s-planned { background: #eaf3fb; color: #1d5f94; }
.tr-s-doing { background: #fdf2d6; color: #8a5a00; }
.tr-s-done { background: #e7f3dc; color: #3d6b1f; }
.tr-s-wont { background: #eef1f5; color: var(--muted); }
.tr-new { max-width: 860px; }
.tr-new h2 { margin-top: 0; }
.tr-form { display: grid; gap: 14px; }
.tr-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.tr-form input:not([type=radio]):not([type=checkbox]), .tr-form textarea, .tr-reply textarea { font: 16px/1.5 "Inter", sans-serif; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.tr-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-kind-pick input { position: absolute; opacity: 0; }
.tr-kind-pick span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 15px; background: #fff; transition: all 0.15s ease; }
.tr-kind-pick input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.tr-kind-pick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(89, 171, 229, 0.4); }
.tr-form-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.tr-form label.tr-urgent-pick { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; font-weight: 600; color: #a32d2d; }
.tr-shot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-shot .file-btn { display: inline-flex; align-items: center; gap: 6px; }
.tr-preview { display: flex; align-items: center; gap: 10px; }
.tr-preview img { max-height: 90px; border-radius: 8px; border: 1px solid var(--line); }
.tr-form > .primary { justify-self: start; padding: 13px 24px; }
.tr-detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .tr-detail { grid-template-columns: 1fr; } }
.tr-main { display: grid; gap: 14px; }
.tr-main h1 { margin: 0; font-size: 34px; }
.tr-by { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.tr-by b { color: var(--ink); }
.tr-page { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.tr-page .ic { width: 14px; height: 14px; }
.tr-body { font-size: 16px; line-height: 1.6; background: #f8fafc; border-radius: 12px; padding: 14px 16px; }
.tr-img img { max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.tr-thread { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.tr-msg { display: flex; gap: 10px; align-items: flex-start; }
.tr-msg > div { background: #f4f6f9; border-radius: 4px 14px 14px 14px; padding: 10px 14px; max-width: 80%; display: grid; gap: 6px; }
.tr-msg.from-builder > div { background: #eaf3fb; }
.tr-msg-head { display: flex; gap: 10px; align-items: baseline; }
.tr-msg-head b { font-size: 14px; color: var(--navy); }
.tr-msg time, .tr-event time { font-size: 12px; color: var(--muted); }
.tr-msg p { margin: 0; font-size: 15px; }
.tr-event { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-left: 6px; }
.tr-event .ic { width: 14px; height: 14px; }
.tr-reply { display: grid; gap: 10px; }
.tr-reply-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-side { display: grid; gap: 6px; position: sticky; top: 84px; }
.tr-side h3 { margin: 10px 0 2px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-family: inherit; }
.tr-side h3:first-child { margin-top: 0; }
.tr-side p { margin: 0; }
.tr-status-pick { display: grid; gap: 6px; }
.tr-status-pick button { text-align: left; font: 600 14px/1 "Inter", sans-serif; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.tr-status-pick button:hover { border-color: var(--sky); }
.tr-status-pick button.on { border-color: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.tr-via { font-size: 11px; font-weight: 700; color: #6a45c9; background: #f0eafd; border-radius: 99px; padding: 1px 7px; }
.tr-pulse { display: grid; gap: 1px; font-weight: 600; color: #3d6b1f; position: relative; padding-left: 16px; }
.tr-pulse small { font-weight: 400; color: var(--muted); font-size: 12px; }
.tr-pulse-dot { position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #2fbf5b; animation: presence-pulse 2s ease-out infinite; }
.tr-pulse.err { color: #a65a12; padding-left: 0; }
.tr-pulse.wait { color: var(--muted); padding-left: 0; }
.tr-pulse-chip { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #6a45c9; background: #f0eafd; border-radius: 99px; padding: 1px 7px; }
