:root {
  --brown: #532E1F;
  --brown-ink: #2A1A12;
  --gold: #F1C500;
  --bg: #F6F4F1;
  --card: #FFFFFF;
  --line: #E4DFDA;
  --line-2: #EFEBE7;
  --line-3: #CFC7BF;
  --text: #2A1A12;
  --text-2: #3B2B22;
  --muted: #5E534D;
  --soft: #F1EDE9;
  --teal: #009081;
  --blue: #009CCC;
  --grey: #8B7F79;
  --alert: #E56849;
  --bad: #B40000;
  --warn-ink: #9A3A1F;
  --focus: #009CCC;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
h1 { margin: 0; font-size: 28px; font-weight: 800; color: var(--brown); line-height: 1.2; }
h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--brown); }
p { margin: 0 0 8px; }
a { color: var(--brown); }
a:hover { color: var(--brown-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--brown); padding: 10px 14px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.warn { color: var(--warn-ink); }
.req { font-weight: 500; color: var(--muted); font-size: 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.lnk { color: var(--brown); font-weight: 700; text-decoration: none; }
.lnk:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.top {
  background: var(--brown); border-bottom: 4px solid var(--gold);
  display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; justify-content: space-between; padding: 12px 24px;
}
.brand-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.brand-kicker { color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.brand-name { color: var(--gold); font-size: 21px; font-weight: 800; }
.brand-unit { color: #E4DAD2; font-size: 13px; border-left: 1px solid #8A6A58; padding-left: 18px; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top-search input { width: 280px; max-width: 100%; height: 44px; border-radius: 8px; border: 0; padding: 0 14px; font: inherit; font-size: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: var(--brown); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-3); border-radius: 8px; background: #FFFFFF; color: var(--text-2);
  font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--soft); color: var(--brown-ink); }
.btn-primary { background: var(--brown); border-color: var(--brown); color: #FFFFFF; font-weight: 700; }
.btn-primary:hover { background: #3E2216; color: #FFFFFF; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--brown); font-weight: 800; }
.btn-gold:hover { background: #E0B700; color: var(--brown); }
.btn-on-dark { background: transparent; border-color: #8A6A58; color: #FFFFFF; }
.btn-on-dark:hover { background: #6A4130; color: #FFFFFF; }
.btn-danger { color: var(--bad); border-color: #E7B8B0; }
.btn-danger:hover { background: #FBEDEA; color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { color: var(--bad); border-color: #E7B8B0; }

/* ---------- Shell ---------- */
.shell { display: flex; flex-wrap: wrap; align-items: stretch; min-height: calc(100vh - 76px); }
.side { flex: 1 1 220px; max-width: 260px; background: #FFFFFF; border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.navlink { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; min-height: 44px; }
.navlink:hover { background: var(--soft); color: var(--brown-ink); }
.navlink.on { background: var(--gold); color: var(--brown); font-weight: 700; }
.nav-sep { height: 1px; background: var(--line); margin: 12px 4px; }
.nav-head { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); padding: 0 14px 4px; text-transform: uppercase; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; }

/* ---------- Cards and layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.card.flush { padding: 0; overflow: hidden; }
.pad { padding: 16px 22px; }
.card-head { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.card-head.pad { margin: 0; padding-bottom: 6px; }
.card-head h2 { margin: 0; }
.narrow { max-width: 860px; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.page-head p { margin: 6px 0 0; font-size: 14px; }
.head-actions { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.split { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.grow { flex: 999 1 600px; min-width: 0; }
.side-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.empty { color: var(--muted); padding: 20px; text-align: center; }
.crumbs { font-size: 13px; color: var(--muted); }

.flash { background: #EAF5F3; border: 1px solid #A9D6CF; color: #00534A; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.flash-bad { background: #FDF0EC; border-color: #F0B8A8; color: var(--warn-ink); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpis-4 { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--brown); line-height: 1.15; }
.kpi-value.sm { font-size: 19px; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.kpi-to { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.mini { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pos-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- Dots, pills, chips ---------- */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: #B4AEA7; }
.q-strategic { background: var(--teal); }
.q-university-centric, .q-brown { background: var(--brown); }
.q-company-centric { background: var(--blue); }
.q-cultivating { background: var(--grey); }
.q-alert { background: var(--alert); }
.q-bad { background: var(--bad); }
.q-none { background: #B4AEA7; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid #D9D2CA; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: #FFFFFF; }
.pill-bad { border-color: #F0B8A8; color: var(--warn-ink); }
.pill-add { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px dashed #B4AEA7; border-radius: 999px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.pill-add:hover { color: var(--brown); border-color: var(--brown); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); }
.chips.plain li { background: var(--soft); border: 0; padding: 4px 10px; }
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.list li .dot { margin-top: 6px; }
.list li.between { justify-content: space-between; }
.gain { white-space: nowrap; font-weight: 700; color: #00695E; }
.kv { margin: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); }
.kv dt { white-space: nowrap; }
.kv dt, .kv dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.timeline { list-style: none; margin: 0 0 14px; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; align-items: start; }
.tl-when { font-size: 12.5px; font-weight: 700; color: var(--brown); }
.add-ms { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
input:not([type=checkbox]), select, textarea {
  min-height: 44px; border: 1px solid var(--line-3); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; background: #FFFFFF; color: var(--text); width: 100%;
}
textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brown); margin: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--text-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid legend { font-size: 14px; font-weight: 700; color: var(--brown); padding: 0; margin-bottom: 10px; }
.span2 { grid-column: span 2; }
@media (max-width: 560px) { .span2 { grid-column: auto; } }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px 18px; }
.filters .field { flex: 1 1 150px; }
.filters .grow2 { flex: 2 1 220px; }
.fy-form { display: flex; flex-direction: column; gap: 4px; }
.fy-form label { font-size: 12px; font-weight: 600; color: var(--muted); }
.fy-row { display: flex; gap: 8px; }
.fy-form select { min-width: 170px; border: 2px solid var(--brown); font-weight: 700; color: var(--brown); }
.danger-zone { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.num-in { width: 64px !important; min-height: 36px !important; padding: 0 8px !important; text-align: right; }
.num-in.wide { width: 110px !important; }
.band { display: inline-flex; align-items: center; gap: 4px; margin: 3px 12px 3px 0; white-space: nowrap; font-size: 13px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table thead th { font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody th { font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot th, .table tfoot td { font-weight: 800; color: var(--brown); border-bottom: 0; }
.table tr.dim td { color: var(--muted); }
.table .detail { max-width: 420px; overflow-wrap: anywhere; }
.org-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; min-width: 200px; }
.org-link b { color: var(--brown); text-decoration: underline; text-decoration-color: #D9D2CA; text-underline-offset: 3px; }
.org-link span { font-size: 12.5px; color: var(--muted); }
.bar-wrap { display: inline-flex; align-items: center; gap: 8px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.eng .ind { min-width: 200px; }
.eng .ind label { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.eng td { vertical-align: top; }
.eng td input:not([type=checkbox]), .eng td select { min-width: 170px; }
.group-row th { font-size: 11.5px !important; font-weight: 800 !important; letter-spacing: 0.1em; color: var(--brown) !important; background: #FBFAF8; padding-top: 14px !important; }
.levels { display: inline-flex; align-items: center; gap: 3px; padding-top: 12px; }
.levels b { margin-left: 5px; color: var(--brown); }
.lv { width: 9px; height: 16px; border-radius: 2px; background: var(--soft); border: 1px solid var(--line); }
.lv.on { background: var(--brown); border-color: var(--brown); }
.lv.prov { background: #FFF4EF; border: 1.5px dashed var(--alert); }
.scoring { min-width: 900px; }
.scoring td, .scoring th { vertical-align: top; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #D9D2CA; margin-bottom: -8px; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 4px solid transparent; }
.tabs a.on { border-bottom-color: var(--gold); font-weight: 800; color: var(--brown); }
.org-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.org-title { font-size: 30px; }

/* ---------- Scoring steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps h2 { font-size: 16px; margin: 8px 0 6px; }
.steps p { font-size: 13.5px; color: var(--text-2); margin: 0; }
.step { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--brown); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- Chart ---------- */
.chart { width: 100%; height: auto; display: block; font-family: 'Montserrat', Arial, sans-serif; }
.chart .tick { font-size: 11px; fill: var(--muted); }
.chart .axis { font-size: 12px; fill: var(--muted); font-weight: 600; }
.chart .qlabel { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; fill: var(--muted); }
.chart .ql-strategic { fill: #00695E; }
.chart .dot-label { font-size: 11px; font-weight: 600; fill: var(--brown-ink); pointer-events: none; }
.chart .dot-link:focus-visible circle { stroke: var(--focus); stroke-width: 3; }

/* ---------- Login ---------- */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 440px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.login-brand { background: var(--brown); border-bottom: 4px solid var(--gold); padding: 18px 24px; display: flex; flex-direction: column; line-height: 1.15; }
.login-inner { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.login-inner h1 { font-size: 24px; }
.dev-note { background: #FFF8DC; border: 1px solid #EBD47A; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--text-2); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .side { max-width: none; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .nav-sep, .nav-head { display: none; }
  .main { padding: 20px 16px 40px; }
  .brand-unit { display: none; }
  .top { padding: 12px 16px; }
  .top-search input { width: 200px; }
}
@media (max-width: 560px) {
  .fy-form select { min-width: 0; }
  .kpi-value { font-size: 24px; }
}

/* ---------- Dashboard: corporate and community quadrants ---------- */
.main-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.empty-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 20px; border: 1px dashed var(--line-3); border-radius: 10px; background: #FBFAF8; color: var(--text-2); font-size: 13.5px; }
.empty-box b { font-size: 15px; color: var(--brown); }
.legend.card { margin: 0; padding: 14px 22px; }

/* ---------- Relationship team (organization on the left, WMU on the right) ---------- */
.team { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.team legend { font-size: 14px; font-weight: 700; color: var(--brown); padding: 0; margin-bottom: 6px; }
.team .table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.team-table { min-width: 640px; }
.team-table thead th { background: #FBFAF8; font-size: 13px; color: var(--brown); white-space: normal; }
.team-table tbody th { width: 150px; vertical-align: top; padding-top: 20px; font-size: 13.5px; }
.team-table tbody th .small { display: block; font-weight: 500; }
.team-table td { vertical-align: top; }
.team-table th:nth-child(3), .team-table td:nth-child(3) { border-left: 1px solid var(--line); }
.team-table .mgr-row th, .team-table .mgr-row td { background: #FFFBEA; border-bottom: 1px solid var(--line); }
.team-table .sk-row th, .team-table .sk-row td { border-bottom: 0; padding-top: 8px; padding-bottom: 4px; }
.team-table .sk-row:last-child th, .team-table .sk-row:last-child td { padding-bottom: 12px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.person { display: flex; flex-direction: column; gap: 1px; }
.person span { font-size: 12.5px; color: var(--muted); }

/* ---------- Engagement: a paragraph of notes under each indicator ---------- */
.eng { min-width: 760px; }
.eng .data-row th, .eng .data-row td { border-bottom: 0; padding-bottom: 4px; }
.eng .note-row td { padding-top: 0; padding-bottom: 16px; }
.eng .note-row label { display: block; margin-bottom: 4px; }

/* ---------- Activity log ---------- */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 16px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.activity li:first-child { border-top: 0; padding-top: 4px; }
.activity p { margin: 0; }
.act-top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.act-subject { font-size: 15px; color: var(--brown-ink); flex: 1 1 200px; }
.act-date { font-size: 13px; font-weight: 700; color: var(--brown); white-space: nowrap; }
.act-notes { white-space: pre-line; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; max-width: 75ch; }
.act-by { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }

/* ---------- Users: edit name and title ---------- */
.edit { margin-top: 6px; }
.edit summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--brown); padding: 6px 0; }
.edit form { margin-top: 6px; max-width: 320px; }
.split-wide > .grow { flex-basis: 800px; } /* the side column drops below before the engagement table has to scroll */

/* ---------- Contacts: people, profiles and the relationship tree ---------- */
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--brown); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; flex: none; }
.who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 4px 0; }
.who b { color: var(--brown); text-decoration: underline; text-decoration-color: #D9D2CA; text-underline-offset: 3px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--soft); font-size: 11.5px; font-weight: 600; color: var(--text-2); }

.tree-wrap { overflow-x: auto; padding: 8px 4px 16px; }
.tree { display: inline-block; min-width: 100%; }
.tree ul { list-style: none; margin: 0; padding: 22px 0 0; display: flex; justify-content: center; position: relative; }
.tree > ul { padding-top: 0; }
.tree li { position: relative; padding: 22px 8px 0; display: flex; flex-direction: column; align-items: center; }
.tree > ul > li { padding-top: 0; }
/* connectors: a horizontal rail above siblings, and a drop from each parent */
.tree li::before, .tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid var(--line-3); }
.tree li::after { right: auto; left: 50%; border-left: 2px solid var(--line-3); }
.tree li:only-child::before { display: none; }
.tree li:only-child::after { border-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border-top: 0; }
.tree li:last-child::before { border-right: 2px solid var(--line-3); border-top-right-radius: 8px; }
.tree li:last-child::after { border-left: 0; }
.tree li:first-child::after { border-top-left-radius: 8px; }
.tree li:only-child::after { border-left: 2px solid var(--line-3); border-radius: 0; }
.tree > ul > li::before, .tree > ul > li::after { display: none; }
.tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid var(--line-3); margin-left: -1px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 168px; padding: 12px 10px; border: 1px solid var(--line-3); border-radius: 10px; background: #FFFFFF; text-decoration: none; color: var(--text); text-align: center; font-size: 13.5px; }
a.node:hover { border-color: var(--brown); background: #FFFBEA; }
.node b { color: var(--brown); overflow-wrap: anywhere; }
.node-title { font-size: 12px; color: var(--muted); }
.node-wmu { font-size: 11.5px; font-weight: 600; color: #00695E; border-top: 1px solid var(--line-2); padding-top: 5px; margin-top: 2px; width: 100%; }
.node-org { background: var(--brown); border-color: var(--brown); }
.node-org b { color: var(--gold); font-size: 14.5px; }
.node-org .node-title { color: #E4DAD2; }

.profile-head { overflow: hidden; }
.profile-band { height: 76px; background: var(--brown); border-bottom: 4px solid var(--gold); }
.profile-main { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; padding: 0 22px 20px; }
.avatar-lg { width: 104px; height: 104px; border-radius: 50%; background: #FFFFFF; border: 4px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line-3); color: var(--brown); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 34px; margin-top: -44px; flex: none; }
.profile-id { flex: 1 1 300px; min-width: 0; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.profile-headline { margin: 0; font-size: 15.5px; color: var(--text-2); }
.profile-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--muted); }
.profile-actions { padding-top: 14px; }
.prose { white-space: pre-line; overflow-wrap: anywhere; max-width: 75ch; margin: 0; }
.xp { list-style: none; margin: 0 0 6px; padding: 0; }
.xp li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); align-items: start; }
.xp li:first-child { border-top: 0; padding-top: 2px; }
.xp-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-3); background: #FFFFFF; margin-top: 4px; }
.xp-dot.on { background: var(--gold); border-color: var(--brown); }
.xp-body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.xp-body b { color: var(--brown-ink); }
.facts { margin: 0 0 12px; display: flex; flex-direction: column; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; font-size: 14px; display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- Pins, priority partners and partner type ---------- */
.q-gold { background: var(--gold); box-shadow: inset 0 0 0 1px #B89600; }
.type-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.type-corporate { background: #F1EDE9; color: var(--brown); }
.type-community { background: #E3F2EF; color: #00534A; }
.chips.plain li.type-corporate { background: #F1EDE9; }
.chips.plain li.type-community { background: #E3F2EF; }
.badge-priority { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--brown); font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.chips.plain li.badge-priority { background: var(--gold); padding: 4px 10px; }
td .badge-priority { margin-top: 4px; }
.working { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); max-width: 300px; }
.working b { color: var(--muted); font-weight: 600; }
.pin-cell { width: 44px; padding-right: 0 !important; }
.pin-btn { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #B4AEA7; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pin-btn:hover { background: var(--soft); color: var(--brown); }
.pin-btn.on, .pin-mark { color: #C79A00; }
.pin-mark { display: inline-flex; margin-top: 2px; }
.table tr.is-pinned td { background: #FFFDF3; }
.org-flags { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.btn-on { background: #FFF6CC; border-color: #D9B400; color: var(--brown); font-weight: 700; }

/* ---------- Status colors (engagement process) ---------- */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--text-2); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #B4AEA7; }
.status.st-in_progress { background: #E3F2EF; color: #00534A; } .status.st-in_progress::before { background: var(--teal); }
.status.st-complete { background: #EFE9E4; color: var(--brown); } .status.st-complete::before { background: var(--brown); }
.status.st-on_hold { background: #FFF4D6; color: #6B5200; } .status.st-on_hold::before { background: #C79A00; }
.status.st-roadblock { background: #FDECE8; color: var(--bad); } .status.st-roadblock::before { background: var(--bad); }
.status.st-stopped { background: #ECEAE8; color: var(--muted); } .status.st-stopped::before { background: #5E534D; }
.phase-line { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }

.phases { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.phase { border: 1px solid var(--line); border-top: 5px solid #CFC7BF; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; }
.phase.st-in_progress { border-top-color: var(--teal); } .phase.st-complete { border-top-color: var(--brown); }
.phase.st-on_hold { border-top-color: #C79A00; } .phase.st-roadblock { border-top-color: var(--bad); } .phase.st-stopped { border-top-color: #5E534D; }
.phase.is-current { box-shadow: 0 0 0 2px var(--gold); }
.phase-top { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--brown-ink); min-height: 56px; }
.phase-n { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--brown); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.phase.is-current .phase-n { background: var(--gold); }
.phase select, .phase textarea { min-height: 40px; }

/* ---------- Follow-ups ---------- */
.tick { width: 30px; height: 30px; border: 2px solid var(--line-3); border-radius: 8px; background: #FFFFFF; color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.tick:hover { border-color: var(--brown); color: #B4AEA7; }
.tick.on { background: var(--brown); border-color: var(--brown); color: #FFFFFF; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.todo li:first-child { border-top: 0; }
.todo li.dim { opacity: 0.75; }
.todo-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.struck { text-decoration: line-through; color: var(--muted); }
.followups-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; background: #FBFAF8; }
.sub { font-size: 14px; font-weight: 700; color: var(--brown); margin: 14px 0 6px; }
.followups-box .sub { margin-top: 0; }
.plain-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.plain-set legend { font-size: 13px; font-weight: 700; color: var(--brown); padding: 0; margin-bottom: 4px; }
.plain-set.boxed { border: 1px dashed var(--line-3); border-radius: 10px; padding: 10px 12px; }
.plain-set.boxed legend { padding: 0 6px; }
.pad-top { padding-top: 14px; }
.big { font-size: 26px; font-weight: 800; color: var(--brown); }

/* ---------- Activity feed ---------- */
.date-chip { display: inline-flex; flex-direction: column; align-items: center; padding: 4px 10px; border-radius: 8px; background: var(--brown); color: #FFFFFF; font-size: 12px; line-height: 1.25; white-space: nowrap; flex: none; }
.date-chip b { color: var(--gold); font-size: 12.5px; }
.date-chip.sm { padding: 3px 8px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 8px; background: #FFFFFF; color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.seg a.on { background: var(--brown); border-color: var(--brown); color: #FFFFFF; }
.seg-gap { width: 10px; }
.url { overflow-wrap: anywhere; }
.entered { display: block; margin-top: 4px; }
.table.compact th, .table.compact td { padding: 6px 10px; font-size: 13px; vertical-align: top; }
.plain-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.plain-list.numbered { list-style: decimal; }
details.pad { padding: 4px 22px 16px; }

/* ---------- Reports ---------- */
.report { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; max-width: 1040px; }
.report h2 { font-size: 15px; border-bottom: 2px solid var(--gold); padding-bottom: 4px; margin: 0 0 8px; }
.report section { break-inside: avoid; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-end; border-bottom: 4px solid var(--brown); padding-bottom: 12px; }
.report-head h1 { font-size: 26px; }
.report-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.report-sub { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.report-meta { margin: 0; text-align: right; font-size: 13px; color: var(--muted); font-weight: 600; }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.report-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.report-kpis b { font-size: 21px; font-weight: 800; color: var(--brown); line-height: 1.2; }
.report-kpis span { font-size: 12px; color: var(--muted); }
.report-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; align-items: start; }
.report-foot { border-top: 1px solid var(--line); padding-top: 8px; font-size: 11.5px; color: var(--muted); }
.steps-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.steps-line li { border: 1px solid var(--line); border-top: 4px solid #CFC7BF; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.steps-line li.st-in_progress { border-top-color: var(--teal); } .steps-line li.st-complete { border-top-color: var(--brown); }
.steps-line li.st-on_hold { border-top-color: #C79A00; } .steps-line li.st-roadblock { border-top-color: var(--bad); } .steps-line li.st-stopped { border-top-color: #5E534D; }

@media print {
  @page { margin: 14mm; }
  body { background: #FFFFFF; font-size: 11.5px; }
  .top, .side, .no-print, .flash, .skip { display: none !important; }
  .shell { display: block; min-height: 0; }
  .main { padding: 0; display: block; }
  .report { border: 0; padding: 0; max-width: none; gap: 12px; }
  .report-kpis { grid-template-columns: repeat(6, 1fr); }
  .report-two { grid-template-columns: 1fr 1fr; }
  .steps-line { grid-template-columns: repeat(5, 1fr); }
  .chart { max-height: 300px; }
  a { color: inherit; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

[hidden] { display: none !important; }

/* ---------- UNITE process tab ---------- */
.proc-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.proc-rail a { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-top: 5px solid #CFC7BF; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 13px; }
.proc-rail a:hover { background: var(--soft); }
.proc-rail .is-current a { box-shadow: 0 0 0 2px var(--gold); }
.proc-rail .is-locked a { opacity: 0.6; }
.proc-rail .st-in_progress a, .phase-card.st-in_progress { border-top-color: var(--teal); }
.proc-rail .st-complete a, .phase-card.st-complete { border-top-color: var(--brown); }
.proc-rail .st-on_hold a, .phase-card.st-on_hold { border-top-color: #C79A00; }
.proc-rail .st-roadblock a, .phase-card.st-roadblock { border-top-color: var(--bad); }
.proc-rail .st-stopped a, .phase-card.st-stopped { border-top-color: #5E534D; }
.proc-n { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; background: var(--soft); color: var(--brown); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.is-current .proc-n, details[open] > summary .proc-n { background: var(--gold); }
.proc-name { font-weight: 700; color: var(--brown-ink); }
.phase-card { border-top: 5px solid #CFC7BF; padding: 0; }
.phase-card > summary { display: flex; gap: 12px; align-items: center; padding: 14px 20px; cursor: pointer; list-style: none; }
.phase-card > summary::-webkit-details-marker { display: none; }
.phase-card > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 4px 4px; flex: none; }
.phase-card[open] > summary::after { transform: rotate(225deg); margin: 4px 4px 0 4px; }
.phase-card > summary:hover { background: #FBFAF8; }
.phase-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--brown); }
.phase-card > form, .phase-card > .flash { margin: 0 20px 18px; }
.phase-card.is-locked > summary { opacity: 0.7; }
.phase-card fieldset:disabled { opacity: 0.55; }
.ssc { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.team-table.one-side { min-width: 380px; }
.team-table.one-side tbody th, .phase-card .team-table tbody th { width: 1px; padding: 0; }
.phase-save { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.phase-save .field { min-width: 200px; }
.phase-save .small { flex: 1 1 240px; }

/* ---------- Reports hub, WMU representatives ---------- */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; margin: 8px 0; }
.checks.one-col { grid-template-columns: 1fr; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin: 8px 0 0; }
.pick-list.plain { list-style: none; max-height: none; border: 0; padding: 0 20px 16px; gap: 8px 18px; }
.edit-card { padding: 0; }
.edit-card > summary { padding: 14px 20px; cursor: pointer; color: var(--brown); }
.edit-card > form { padding: 0 20px 18px; }
.report-chart { max-width: 640px; }
.report-detail { border-top: 2px solid var(--brown); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; break-inside: avoid; }
.report-detail h2 { border: 0; font-size: 17px; margin: 0; padding: 0; }
.rep-card { padding: 16px 20px; }
.rep-head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.rep-head > div { flex: 1 1 auto; min-width: 0; }
.rep-head h2 { margin: 0; font-size: 16px; }
.seat-list { list-style: none; margin: 0; padding: 0; }
.seat-list li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.seat-list li.dim { opacity: 0.7; }
.seat-main { flex: 1 1 260px; min-width: 0; }
.badge-rep { display: inline-flex; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: #E3F2EF; color: #00534A; font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.filters .seg { margin-left: auto; }
.phase-card input[type=date], .phase-card .form-grid > .field:only-child { max-width: 260px; }

/* ---------- Pictures ---------- */
img.has-img { object-fit: cover; display: inline-block; flex: none; }
img.avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); }
img.avatar-lg { width: 104px; height: 104px; border-radius: 50%; border: 4px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line-3); margin-top: -44px; background: #FFFFFF; }
.avatar-lg.flat, img.avatar-lg.flat { margin-top: 0; }
.avatar-logo { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #FFFFFF; object-fit: contain !important; vertical-align: middle; margin-right: 12px; }
.avatar-logo.big { width: 84px; height: 84px; margin: 0; }
.org-link.has-logo { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.org-link.has-logo .avatar-logo { width: 36px; height: 36px; margin: 0; grid-row: span 2; }
.pic-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 8px; }
.pic-row form[data-upload] { flex: 1 1 240px; min-width: 0; }
.node img.avatar-sm { width: 40px; height: 40px; }

/* ---------- Relationship map ---------- */
.net { border: 1px solid var(--line); border-radius: 10px; background: #FBFAF8; overflow: hidden; touch-action: none; }
.net svg { display: block; width: 100%; height: auto; min-height: 420px; cursor: grab; font-family: 'Montserrat', Arial, sans-serif; user-select: none; }
.net-edge { stroke: #B4AEA7; stroke-width: 1.4; }
.net-edge.k-reports { stroke-dasharray: 3 3; }
.net-edge.k-board, .edge-key.k-board { stroke: #C79A00; stroke-width: 2.4; }
.net-edge.k-manager, .net-edge.k-team, .net-edge.k-knows { stroke: #D9B400; }
.net-edge.k-affil { stroke: #009081; stroke-width: 2.4; }
.net-edge.k-tie { stroke: #009CCC; stroke-dasharray: 6 4; stroke-width: 2; }
.net-edge.dim { opacity: 0.12; }
.net-edge.off { display: none; }
.net-node { cursor: pointer; }
.net-node circle, .net-node rect { stroke: #FFFFFF; stroke-width: 1.5; }
.net-node.t-wmu circle { stroke: var(--brown); }
.net-node.dim { opacity: 0.18; }
.net-node.is-selected circle, .net-node.is-selected rect, .net-node.is-focus circle, .net-node.is-focus rect { stroke: var(--brown-ink); stroke-width: 3.5; }
.net-node.is-hit circle, .net-node.is-hit rect { stroke: #E56849; stroke-width: 4; }
.net-node:focus-visible { outline: none; }
.net-node:focus-visible circle, .net-node:focus-visible rect { stroke: var(--focus); stroke-width: 4; }
.net-label { font-size: 11.5px; font-weight: 600; fill: var(--brown-ink); paint-order: stroke; stroke: #FBFAF8; stroke-width: 3px; }
.net-label.quiet { display: none; }
.net-node:hover .net-label, .net-node.is-selected .net-label, .net-node.is-hit .net-label, .net-node:focus-visible .net-label, .net-node.is-selected ~ .net-node:not(.dim) .net-label { display: block; }
.net-node:not(.dim) .net-label.quiet { display: none; }
.net-node.is-selected .net-label.quiet, .net-node:hover .net-label.quiet, .net-node.is-hit .net-label.quiet { display: block; }
.key { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.key.sq { border-radius: 3px; }
.c-corporate { background: #532E1F; } .c-community { background: #009081; } .c-external { background: #8B7F79; } .c-contact { background: #009CCC; } .c-wmu { background: #F1C500; box-shadow: inset 0 0 0 1.5px #532E1F; }
.edge-key { width: 22px; height: 0; border-top: 2px solid #B4AEA7; display: inline-block; flex: none; }
.edge-key.k-reports { border-top-style: dotted; } .edge-key.k-board { border-top: 3px solid #C79A00; } .edge-key.k-manager, .edge-key.k-team, .edge-key.k-knows { border-top-color: #D9B400; }
.edge-key.k-affil { border-top: 3px solid #009081; } .edge-key.k-tie { border-top: 2px dashed #009CCC; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brown); text-decoration: underline; cursor: pointer; }
.chain { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.chain li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 8px 18px; border-left: 3px solid var(--gold); position: relative; }
.chain li::before { content: ''; position: absolute; left: -7.5px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--brown); }
.chain-via { font-size: 12px; font-weight: 700; color: #00695E; text-transform: none; }

/* ---------- Company size and mutual benefit ---------- */
.size-legend { font-size: 12px; color: var(--muted); align-items: center; }
.size-legend li { gap: 5px; }
.legend-head { font-weight: 700; color: var(--text-2); }
.size-line { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.alum { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--brown); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; vertical-align: middle; }
.chips.plain li.alum-chip { background: var(--brown); color: var(--gold); font-weight: 800; }
.node .alum { margin-top: 2px; }

.wait-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 18px; }
.wait-list li { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }

.dash-filters { padding: 12px 18px; }
.dash-filters .field { flex: 0 1 260px; }
.filter-note { margin: 0; flex: 1 1 260px; align-self: center; }

.chart-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FBFAF8; }
.chart-filters .field { flex: 0 1 230px; }
.chart-filters select { min-height: 40px; }
.chart-filters .check { min-height: 40px; }

.group-line { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.fam-tree, .fam-tree ul { list-style: none; margin: 0 0 10px; padding: 0; }
.fam-tree ul { margin: 4px 0 0 10px; padding-left: 14px; border-left: 2px solid var(--line); }
.fam-tree li { padding: 4px 0; font-size: 14px; }
.fam-tree .is-here { background: #FFF6CC; padding: 0 4px; border-radius: 4px; }
.net-edge.k-part, .edge-key.k-part { stroke: #532E1F; border-top: 3px solid #532E1F; stroke-width: 3; }

.node.dragging { opacity: 0.5; }
.drop-ok { outline: 3px dashed var(--teal); outline-offset: 3px; background: #E3F2EF !important; }
.node[draggable="true"] { cursor: grab; }
a.node-org { text-decoration: none; }
a.node-org:hover { background: #3E2216; }
.node-org.is-here { box-shadow: 0 0 0 3px var(--gold); }
.arrange input, .arrange select { min-height: 36px; min-width: 180px; }
.move-box { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }

/* Wide trees (groups) scroll sideways from the left edge instead of overflowing out of reach. */
.tree { display: block; width: max-content; min-width: 100%; }

/* WMU alum: a bronco badge */
.alum { gap: 3px; padding: 1px 7px 1px 5px; background: var(--gold); color: var(--brown); border: 1px solid #D9B400; font-size: 11.5px; }
.alum-horse { font-size: 15px; line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.alum-year { font-weight: 800; }
.tree-switch { margin: 0 0 10px; }
.alum { padding: 1px 7px 1px 1px; background: #FFF6CC; border-color: #E9CD52; }
.alum:not(:has(.alum-year)) { padding-right: 1px; }
img.alum-horse { width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; object-fit: cover; display: block; }
h1 .alum img.alum-horse { width: 26px; height: 26px; }

/* ---------- Edit locks and read-only access ---------- */
.lock-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 8px 12px; margin: 0 0 12px; border: 1px dashed var(--line-3); border-radius: 10px; background: #FBFAF8; }
form.is-locked input:disabled, form.is-locked select:disabled, form.is-locked textarea:disabled { background: #FBFAF8; color: var(--text); opacity: 1; cursor: default; }
body.read-only form[method=post]:not([data-ro-ok]):not([data-lock]), body.read-only form[data-upload], body.read-only .pill-add, body.read-only a[href*="/new"], body.read-only form[data-lock] .lock-bar ~ .actions, body.read-only form[data-lock] button, body.read-only a[href*="?edit=1"], body.read-only .btn-gold, body.read-only [data-add-row], body.read-only details.edit:has(form) { display: none !important; }
body.read-only .top::after { content: 'Read-only access'; color: var(--gold); font-size: 12px; font-weight: 700; }
.role-form select { min-height: 36px; min-width: 170px; }

.first-time { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.first-time p { margin: 0; font-size: 14px; }
.invite-card { border: 2px solid var(--gold); }
.invite-card textarea { font-size: 13.5px; line-height: 1.5; background: #FBFAF8; }

/* Marketing & communications on activities */
.mc-box { border-left: 3px solid var(--gold, #f1c500); padding: 6px 0 6px 12px; display: flex; flex-direction: column; gap: 6px; }
.mc-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill-mc { background: #fff4c2; color: #4a3a00; font-weight: 600; }
.mc-links { margin: 0; padding-left: 18px; }
.mc-links li { margin: 2px 0; }
.mc-links form.inline { display: inline; }
.mc-edit summary { cursor: pointer; color: var(--link, #6a4c1f); }
.mc-edit form { margin-top: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.mc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.check-grid .check { min-height: 32px; }
.linkish { background: none; border: 0; padding: 0; color: var(--danger, #b42318); cursor: pointer; text-decoration: underline; }
body.read-only .edit-only { display: none; }
@media (prefers-color-scheme: dark) { .pill-mc { background: #4a3a00; color: #fff4c2; } }

ol.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
#cal-link { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
