/* App-level layout on top of base.css (design-system tokens). */

/* ---- shell ---- */
.main-col { min-width: 0; }
.appbar__end { margin-left: auto; }
.page { padding-bottom: var(--s-12); }
.page--wide { max-width: none; }
@media (min-width: 980px) {
  .page { margin-inline: 0; max-width: none; padding-inline: var(--gutter); }
  .page:not(.page--wide) { max-width: 800px; }
}
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.page-head__text { display: grid; gap: var(--s-2); }

/* ---- auth ---- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--s-6) var(--gutter); background: var(--canvas); }
.auth__card { width: 100%; max-width: 400px; display: grid; gap: var(--s-6); }
.auth__brand .brand__name { font-size: 17px; }
.auth__head { display: grid; gap: var(--s-2); }
.auth__form { display: grid; gap: var(--s-4); }
.auth__form .btn { margin-top: var(--s-2); }

/* ---- empty ---- */
.empty--lg { padding: var(--s-12) var(--s-4); }
.empty--lg .empty__art { color: var(--teal); }

/* ---- gantt ---- */
.gantt { overflow: hidden; }
.gantt__scroll { overflow-x: auto; }
.gantt__table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1240px; table-layout: fixed; }
.gantt__table th, .gantt__table td { padding: 0; font-weight: inherit; text-align: left; }
.gantt__acct {
  position: sticky; left: 0; z-index: 2; width: 220px; background: var(--canvas);
  padding: 0 var(--s-4); border-right: 1px solid var(--line);
}
.gantt__head { height: 64px; vertical-align: bottom; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); background: var(--canvas); }
thead .gantt__acct { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.gantt__stage { padding: 0 var(--s-2) var(--s-3); border-left: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.gantt__num { display: block; font-size: var(--fs-micro); color: var(--ink-2); margin-bottom: 2px; }
.gantt__name { display: block; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; color: var(--ink); }
tbody tr + tr .gantt__acct, tbody tr + tr .gantt__cell { border-top: 1px solid var(--line); }
tbody .gantt__acct { height: 64px; vertical-align: middle; }
.gantt__co { display: block; font-weight: 600; font-size: var(--fs-sm); line-height: 20px; }
.gantt__dom { display: block; font-size: var(--fs-label); line-height: 18px; color: var(--ink-2); }
.gantt__cell { height: 64px; padding: 0; border-left: 1px solid color-mix(in srgb, var(--line) 55%, transparent); position: relative; }
tbody tr:hover .gantt__cell, tbody tr:hover .gantt__acct { background: #FAFBFB; }

/* segments run edge to edge so adjacent done cells read as one bar */
.bar-seg { position: absolute; top: 50%; height: 18px; margin-top: -9px; left: -1px; right: -1px; }
.bar-seg--done { background: var(--teal-200); }
.bar-seg--now { background: var(--teal-deep); }
.bar-seg.cap-l { left: 8px; border-radius: 9px 0 0 9px; }
.bar-seg.cap-r { right: 8px; border-radius: 0 9px 9px 0; }
.bar-seg.cap-l.cap-r { border-radius: 9px; }

.gantt__legend { display: flex; gap: var(--s-5); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.swatch { width: 14px; height: 8px; border-radius: 4px; display: inline-block; }
.swatch--done { background: var(--teal-200); }
.swatch--now { background: var(--teal-deep); }

/* ---- modal (native <dialog>) ---- */
.modal {
  border: 0; padding: 0; width: min(480px, calc(100vw - 32px)); border-radius: var(--r-lg);
  background: var(--canvas); color: var(--ink); box-shadow: var(--sh-3);
}
.modal::backdrop { background: var(--scrim); }
.modal[open] { animation: dialog-pop var(--d-3) var(--ease-out) both; }
@keyframes dialog-pop { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-3) var(--s-6); }
.modal__head > div { display: grid; gap: 4px; }
.modal__body { display: grid; gap: var(--s-4); padding: var(--s-2) var(--s-6) var(--s-5); }
.modal__foot { display: flex; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line); }

.navitem { text-decoration: none; }
.gantt__table th.gantt__stage { padding: 0 var(--s-2) var(--s-3) var(--s-3); }
.gantt__table th.gantt__acct { padding: 0 var(--s-4); }
.navitem { text-decoration: none; }
a.navitem:hover { text-decoration: none; }

/* dashboard: link + edit + score */
.gantt__acct { display: table-cell; }
.gantt__acct .gantt__link { display: block; text-decoration: none; color: inherit; min-width: 0; padding-right: 36px; }
.gantt__acct .gantt__link:hover .gantt__co { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.gantt__acct { position: sticky; }
.gantt__edit { position: absolute; right: 8px; top: 50%; margin-top: -18px; opacity: 0; transition: opacity var(--d-1) var(--ease); }
tbody tr:hover .gantt__edit, .gantt__edit:focus-visible { opacity: 1; }
@media (hover: none) { .gantt__edit { opacity: 1; } }
.gantt__table th.gantt__score { width: 72px; text-align: right; padding-right: var(--s-4); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.gantt__score-cell { width: 72px; text-align: right; padding-right: var(--s-4) !important; font-size: var(--fs-sm); height: 64px; border-left: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
tbody tr + tr .gantt__score-cell { border-top: 1px solid var(--line); }
tbody tr:hover .gantt__score-cell { background: #FAFBFB; }
.gantt__table { min-width: 1312px; }

/* ---- buying thesis page ---- */
.page--thesis { max-width: 980px; }
@media (min-width: 980px) { .page.page--thesis { max-width: 980px; } }
.back { margin: 0 0 var(--s-4) calc(var(--s-2) * -1); padding: 0 var(--s-2); text-decoration: none; }
.thesis-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.thesis-head__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sec { margin-top: var(--s-4); scroll-margin-top: var(--s-6); }
.sec__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); min-height: 56px; }
.sec__head h2 { flex: 1; min-width: 0; }
.sec__n { font-size: var(--fs-label); color: var(--teal-deep); min-width: 14px; }
.sec__body { padding: var(--s-5); display: grid; gap: var(--s-4); }
.sec__company { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; letter-spacing: -0.01em; }
.sec .kv { grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-3) var(--s-4); }
.sec .kv dt { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 4px; }
@media (max-width: 560px) { .sec .kv { grid-template-columns: 1fr; gap: 2px; } .sec .kv dd { margin-bottom: var(--s-3); } }
.pts { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.note { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--ink-2); }
.t-muted { color: var(--ink-2); }

.score { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); }
.score__text { flex: 1 1 260px; display: grid; gap: var(--s-2); }
.table-scroll { overflow-x: auto; margin: 0 calc(var(--s-5) * -1); padding: 0 var(--s-5); }
.stage-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--fs-sm); line-height: var(--lh-sm); }
.stage-table th { text-align: left; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.stage-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stage-table tr:last-child td { border-bottom: 0; }

.meeting { border: 1px solid var(--line); border-radius: var(--r-md); }
.meeting + .meeting { margin-top: var(--s-3); }
.meeting > summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); padding: 6px 8px 6px var(--s-4); min-height: 52px; cursor: pointer; }
.meeting > summary::-webkit-details-marker { display: none; }
.meeting > summary::after { content: "+"; font-family: var(--font-mono); color: var(--ink-2); order: 5; padding: 0 var(--s-2); }
.meeting[open] > summary::after { content: "\2013"; }
.meeting__title { font-weight: 600; flex: 1; min-width: 0; }
.meeting__body { display: grid; gap: var(--s-5); padding: var(--s-2) var(--s-5) var(--s-5); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.part { display: grid; gap: var(--s-2); }
.part__head { display: flex; align-items: center; gap: var(--s-2); min-height: 36px; }
.part__title { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; flex: 1; min-width: 0; }

.tl { list-style: none; margin: 0; padding: 0 0 0 var(--s-4); border-left: 1px solid var(--line); display: grid; gap: var(--s-4); }
.tl li { position: relative; display: grid; grid-template-columns: 64px 76px minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; }
.tl li::before { content: ""; position: absolute; left: calc(var(--s-4) * -1 - 4px); top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--canvas); }
.tl__d { font-size: var(--fs-label); font-weight: 500; padding-top: 2px; }
.tl__t { font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.tl__edit { margin: -6px 0; }
@media (max-width: 560px) { .tl li { grid-template-columns: 1fr auto; } .tl__d, .tl__t { grid-column: 1; } .tl__x { grid-column: 1; } .tl__edit { grid-column: 2; grid-row: 1 / span 3; } }
.subhead { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.subhead__t { font-weight: 600; }
.email { border: 1px solid var(--line); border-radius: var(--r-md); }
.email + .email { margin-top: var(--s-2); }
.email > summary { list-style: none; display: flex; align-items: center; gap: var(--s-3); padding: 4px 6px 4px var(--s-3); min-height: 48px; cursor: pointer; }
.email > summary::-webkit-details-marker { display: none; }
.email > summary::after { content: "+"; font-family: var(--font-mono); color: var(--ink-2); padding: 0 var(--s-2); }
.email[open] > summary::after { content: "\2013"; }
.email__d { font-size: var(--fs-label); color: var(--teal-deep); font-weight: 500; }
.email__s { flex: 1; min-width: 0; font-weight: 500; }
.email__edit { order: 4; }
.email__meta { padding: 0 var(--s-3); }
.email__body { margin: var(--s-2) var(--s-3) var(--s-3); padding: var(--s-3) var(--s-4); white-space: pre-wrap; word-wrap: break-word; font-family: var(--font-sans); font-size: var(--fs-sm); line-height: var(--lh-sm); background: var(--surface-2); border-radius: var(--r-sm); }

.tasks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.task { display: flex; align-items: center; gap: var(--s-3); padding: 6px 8px 6px 4px; min-height: 56px; flex-wrap: wrap; }
.task + .task { border-top: 1px solid var(--line); }
.task__check { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: var(--r-sm); }
.task__check:hover { background: var(--surface-2); }
.task__check .check-box { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--ink-ctl); display: grid; place-items: center; color: var(--on-fill); transition: background-color var(--d-1) var(--ease); }
.task__check[aria-checked="true"] .check-box { background: var(--teal-deep); border-color: var(--teal-deep); }
.task__title { flex: 1 1 200px; min-width: 0; font-weight: 500; }
.task.is-done .task__title { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.task__due { font-size: var(--fs-label); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.task__due.is-overdue { color: var(--ink); font-weight: 500; }
.dot-orange { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---- edit modal ---- */
.modal--edit { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: hidden; }
.modal--edit[open] { display: flex; flex-direction: column; }
.modal--edit [data-modal-slot], .modal--edit .editform { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal--edit .modal__body { overflow-y: auto; }
.modal__foot { align-items: center; }
.modal__spacer { flex: 1; }
.btn--danger { --btn-fg: #A23B00; }
.btn--danger:hover:not(:disabled) { --btn-bg: #FFF4EC; }
.btn--danger[data-armed="true"] { --btn-bg: #A23B00; --btn-fg: #fff; }
.field__select { appearance: auto; -webkit-appearance: menulist; }
.stage-edit { display: grid; gap: var(--s-3); }
.stage-edit__row { display: grid; gap: var(--s-2); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.stage-edit__row:last-child { border-bottom: 0; }
.stage-edit__check { display: flex; align-items: center; gap: var(--s-3); min-height: 36px; cursor: pointer; }
.stage-edit__check input { width: 20px; height: 20px; accent-color: var(--teal-deep); flex: none; }
.stage-edit__label { flex: 1; font-weight: 500; }
.stage-edit__num { color: var(--ink-2); display: inline-block; min-width: 26px; }
.stage-edit .textarea { min-height: 52px; }
@media (min-width: 980px) { .page.page--thesis { margin-inline: auto; } }
.gantt__acct { width: 240px; }

/* ---- score donut + dashboard summary rows ---- */
.scorechip { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.donut { display: block; flex: none; }
.gantt__table th.gantt__score { width: 96px; }
.gantt__score-cell { width: 96px; }
.gantt__table { min-width: 1336px; }
.gantt__toggle { position: absolute; left: 6px; top: 50%; margin-top: -14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-2); }
.gantt__toggle:hover { background: var(--surface-2); color: var(--ink); }
.gantt__toggle svg { transition: transform var(--d-1) var(--ease); }
.gantt__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.gantt__acct { padding-left: 40px !important; }
th.gantt__acct.gantt__head { padding-left: var(--s-4) !important; }
.gantt__detail > td { padding: 0; background: var(--teal-50); border-top: 1px solid var(--line); }
.gantt__detail[hidden] { display: none; }
.snap { position: sticky; left: 0; width: min(1000px, calc(100vw - 300px)); max-width: 100%; box-sizing: border-box; padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-4); justify-items: start; }
.snap__grid { display: grid; grid-template-columns: 1fr 1.2fr 2fr; gap: var(--s-5); width: 100%; }
@media (max-width: 900px) { .snap { width: calc(100vw - 48px); } .snap__grid { grid-template-columns: 1fr; } }
.snap__cell { display: grid; gap: 2px; align-content: start; min-width: 0; }
.snap__k { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.snap__v { font-weight: 600; font-size: var(--fs-sm); }
.snap__s { font-size: var(--fs-label); color: var(--ink-2); }
.snap__list { display: grid; gap: var(--s-2); margin: 0; width: 100%; }
.snap__list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s-3); font-size: var(--fs-meta); line-height: var(--lh-meta); }
.snap__list dt { color: var(--ink-2); font-weight: 600; }
.snap__list dd { margin: 0; }
@media (max-width: 560px) { .snap__list > div { grid-template-columns: 1fr; gap: 0; } }

/* path progress bar */
.pathbar { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; }
.pathbar__step { display: grid; gap: 6px; min-width: 0; }
.pathbar__track { display: block; height: 10px; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.snapshot .pathbar__track { background: var(--surface-2); border-color: transparent; }
.pathbar__fill { display: block; height: 100%; background: var(--teal-300); }
.pathbar__step.is-done .pathbar__fill { background: var(--teal-deep); }
.pathbar__step.is-now .pathbar__fill { background: var(--teal); }
.pathbar__name { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; }
.pathbar__meta { font-size: var(--fs-micro); color: var(--ink-2); }
.pathbar__step.is-done .pathbar__meta { color: var(--teal-deep); }
.pathbar--labels { gap: 8px; }
@media (max-width: 640px) { .pathbar--labels { grid-template-columns: 1fr; } }

/* ---- deal snapshot + short thesis on the account page ---- */
.snapshot .sec__head h2 { flex: none; }
.sec__head .t-meta { flex: 1; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.kpi { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); display: grid; gap: 4px; align-content: start; }
.kpi--donut { display: flex; align-items: center; gap: var(--s-4); }
.kpi--donut > div { display: grid; gap: 4px; }
.kpi__k { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.kpi__v { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.kpi__v--sm { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.kpi__s { font-size: var(--fs-label); color: var(--ink-2); }
.block { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 32px; }
.block__t { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; }
.block__t--gap { margin-top: var(--s-4); }
.block__pct { margin-left: var(--s-2); color: var(--teal-deep); font-weight: 500; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
@media (max-width: 760px) { .twocol { grid-template-columns: 1fr; } }
.people { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-3) var(--s-3); margin: 0; }
.people dt { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.people dd { margin: 0; font-size: var(--fs-meta); line-height: var(--lh-meta); }
.people .pts { padding-left: 16px; gap: 4px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.risk { border-left: 3px solid var(--orange); background: #FFF8F3; border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: var(--s-3) var(--s-4); display: grid; gap: 4px; margin-top: var(--s-2); }
.risk__k { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.nextact { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.nextact.is-empty { border-style: dashed; background: var(--teal-50); }
.nextact__t { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.nextact .tag { margin-right: 6px; }

.tstrip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.tstrip__item { border: 1px solid var(--line); border-radius: var(--r-sm); position: relative; min-height: 76px; }
.tstrip__btn { display: grid; gap: 2px; align-content: start; width: 100%; height: 100%; min-height: 74px; padding: 8px 10px; text-align: left; border-radius: inherit; cursor: pointer; }
.tstrip__btn:hover { background: color-mix(in srgb, var(--teal) 8%, transparent); }
.tstrip__item.is-done .tstrip__n { font-size: var(--fs-micro); color: var(--ink-2); }
.tstrip__name { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; }
.tstrip__date { font-size: var(--fs-label); color: var(--ink-2); margin-top: auto; }
.tstrip__item.is-done { background: var(--teal-200); border-color: var(--teal-200); }
.tstrip__item.is-done .tstrip__date { color: var(--teal-deep); font-weight: 500; }
.tstrip__item.is-gap { border-style: dashed; border-color: var(--orange); }
.tstrip__tag { pointer-events: none; position: absolute; top: 6px; right: 8px; font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: #A23B00; }
.tstrip__item.is-next { border-color: var(--teal-deep); box-shadow: inset 0 0 0 1px var(--teal-deep); }
.tstrip__item.is-next .tstrip__date { color: var(--ink); font-weight: 600; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-2); }
.checks__btn { display: flex; align-items: flex-start; gap: var(--s-2); width: 100%; text-align: left; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-sm); cursor: pointer; color: inherit; }
.checks__btn:hover { background: var(--surface-2); }
.checks li.is-ok { color: var(--ink); }
.checks__box { width: 18px; height: 18px; flex: none; border: 1.5px solid var(--ink-ctl); border-radius: 5px; display: grid; place-items: center; font-size: 11px; color: var(--on-fill); margin-top: 1px; }
.checks li.is-ok .checks__box { background: var(--teal-deep); border-color: var(--teal-deep); }

.qs { gap: var(--s-6); }
.q { display: grid; gap: var(--s-2); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); scroll-margin-top: var(--s-6); }
.q:last-of-type { border-bottom: 0; padding-bottom: 0; }
.q__head { display: flex; align-items: center; gap: var(--s-3); min-height: 36px; }
.q__head .sec__n { min-width: 24px; }
.q__t { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; }
.kv--tight { grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-2) var(--s-4); }
.q .kv dt { padding-top: 3px; }
.cpath { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cpath__node { display: grid; gap: 4px; align-content: start; padding: var(--s-3) var(--s-4); border-left: 1px solid var(--line); position: relative; }
.cpath__node:first-child { border-left: 0; }
.cpath__node::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--teal); }
.cpath__name { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.cpath__date { font-size: var(--fs-label); font-weight: 500; color: var(--teal-deep); }
.cpath__date abbr { text-decoration: none; color: var(--ink-2); }
.cpath__val { font-weight: 600; font-size: var(--fs-sm); }
.cpath__note { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--ink-2); }
.divider { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-10) 0 0; }
.divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- form extras ---- */
.check-row { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; font-weight: 500; line-height: var(--lh-sm); }
.check-row input { width: 20px; height: 20px; accent-color: var(--teal-deep); flex: none; margin-top: 1px; }
.stage-edit__target { display: flex; align-items: center; gap: var(--s-3); }
.stage-edit__target .field-label { margin: 0; white-space: nowrap; }
.stage-edit__target input { max-width: 190px; }

/* ---- usage playbook ---- */
.flow { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.flow a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: var(--fs-meta); }
.flow a:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.flow .mono { color: var(--teal-deep); }
.gates { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.gates li { display: flex; align-items: flex-start; gap: var(--s-3); }
.gates .tag { flex: none; margin-top: 1px; }

.tstrip__prog { position: absolute; right: 10px; bottom: 8px; font-size: var(--fs-micro); color: var(--ink-2); }
.tstrip__prog.is-part { color: var(--teal-deep); font-weight: 600; }
.tstrip__item.is-done .tstrip__prog { color: var(--teal-deep); }
.status--part { color: var(--teal-deep); font-weight: 500; }
.checks__box { margin-top: 2px; }
.checks__box svg { display: block; }
/* gantt: step started but not all criteria met */
.bar-seg--part { left: 8px; right: 8px; border: 1.5px dashed var(--teal); border-radius: 9px; background: transparent; }
.swatch--part { background: transparent; border: 1.5px dashed var(--teal); box-sizing: border-box; }
.rules-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: var(--lh-sm); min-width: 640px; }
.rules-table th { text-align: left; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rules-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules-table tr:last-child td { border-bottom: 0; }
.rules-table ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.formula { font-family: var(--font-mono); font-size: var(--fs-label); background: var(--surface-2); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); white-space: pre-wrap; }

/* ---- thesis page: left navigation ---- */
@media (min-width: 980px) { .page.page--thesis { max-width: 1180px; } }
.thesis-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.thesis-main { min-width: 0; }
.thesis-main > .sec:first-child { margin-top: 0; }
.toc { position: sticky; top: 0; z-index: 5; background: var(--canvas); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.toc__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.toc__sep { display: none; }
.toc__a { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 12px 10px; font-size: var(--fs-meta); font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.toc__a .mono { font-size: var(--fs-micro); color: var(--ink-3); min-width: 12px; }
.toc__a:hover { color: var(--ink); }
.toc__a.is-active { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }
.toc__a.is-active .mono { color: var(--teal-deep); }
@media (min-width: 980px) {
  .thesis-layout { grid-template-columns: 188px minmax(0, 1fr); gap: var(--s-8); }
  .toc { top: var(--s-6); margin: 0; padding: 0; border-bottom: 0; background: none; }
  .toc__list { flex-direction: column; gap: 2px; overflow: visible; }
  .toc__sep { display: block; margin: var(--s-4) 0 var(--s-1); padding: 0 12px; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
  .toc__a { padding: 8px 12px; border-bottom: 0; border-left: 2px solid transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
  .toc__a:hover { background: var(--surface-2); }
  .toc__a.is-active { background: var(--teal-50); border-left-color: var(--teal-deep); }
  .toc__a--key { font-weight: 600; color: var(--ink); }
}

/* ---- deal snapshot: dark panel for emphasis. Local tokens flip so inner parts stay readable. ---- */
.snapshot {
  --ink: #F4F8F8; --ink-2: #BDD8D9; --ink-3: #7FA6A8; --ink-ctl: #8FB5B6;
  --line: rgba(255, 255, 255, 0.2); --surface-2: rgba(255, 255, 255, 0.1);
  --teal-deep: #8FE3E7; --teal: #5BCFD4; --teal-50: rgba(255, 255, 255, 0.07); --teal-200: rgba(91, 207, 212, 0.28);
  --canvas: #0A3F42; --btn-bg: transparent; --btn-fg: #F4F8F8; --btn-bd: rgba(255, 255, 255, 0.35);
  background: #0A3F42; border-color: #0A3F42; color: var(--ink);
}
.snapshot .sec__head { border-bottom-color: rgba(255, 255, 255, 0.16); }
.snapshot .kpi, .snapshot .nextact { background: rgba(255, 255, 255, 0.06); }
.snapshot .nextact.is-empty { background: transparent; }
.snapshot .risk { background: rgba(220, 88, 0, 0.18); border-left-color: #FF8A3D; }
.snapshot .tag { background: rgba(255, 255, 255, 0.12); color: var(--ink); border-color: transparent; }
.snapshot .tag--outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); }
.snapshot .tag--mark { background: #FF8A3D; color: #2A1200; }
.snapshot .tstrip__item { background: rgba(255, 255, 255, 0.05); }
.snapshot .tstrip__item.is-done { background: rgba(91, 207, 212, 0.26); border-color: rgba(91, 207, 212, 0.5); }
.snapshot .tstrip__item.is-done .tstrip__date, .snapshot .tstrip__item.is-done .tstrip__prog { color: #BDF3F5; }
.snapshot .tstrip__item.is-gap { border-color: #FF8A3D; }
.snapshot .tstrip__tag { color: #FFB27D; }
.snapshot .tstrip__item.is-next { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.snapshot .tstrip__btn:hover, .snapshot .checks__btn:hover { background: rgba(255, 255, 255, 0.1); }
.snapshot .checks__box { background: transparent; }
.snapshot .checks li.is-ok .checks__box { background: #5BCFD4; border-color: #5BCFD4; color: #06383B; }
.snapshot .pathbar__track { background: rgba(255, 255, 255, 0.14); }
.snapshot .pathbar__fill { background: #5BCFD4; }
.snapshot .pathbar__step.is-done .pathbar__fill { background: #BDF3F5; }
.snapshot .icon-btn { color: var(--ink); }
.snapshot .icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.snapshot .btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.snapshot .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.snapshot a { color: #BDF3F5; }
.snapshot .donut circle:first-child { stroke: rgba(255, 255, 255, 0.2); }
.snapshot .note { color: var(--ink-2); }
.snapshot .t-muted { color: var(--ink-2); }

/* ---- next actions list ---- */
.actions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.action { display: flex; align-items: flex-start; gap: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); background: rgba(255, 255, 255, 0.06); }
.action__check { flex: none; padding: 4px 0 0; cursor: pointer; color: inherit; }
.action__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.action__t { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; }
.action .tag { margin-right: 6px; }
.action.is-done .action__t { text-decoration: line-through; color: var(--ink-2); font-weight: 500; }
.action__check[aria-checked="true"] .checks__box { background: #5BCFD4; border-color: #5BCFD4; color: #06383B; }

/* ---- slimmer left sidebar ---- */
:root { --side-w: 192px; }
@media (min-width: 980px) {
  .sidenav { padding-inline: var(--s-3); gap: var(--s-5); }
  .sidenav .brand { padding: 0 var(--s-1); gap: 8px; }
  .sidenav .brand__mark { width: 24px; height: 24px; }
  .sidenav .brand__name { font-size: 14px; }
  .navitem { gap: var(--s-2); min-height: 38px; padding: 0 var(--s-2); font-size: var(--fs-meta); }
  .sidenav__foot { padding: var(--s-2); }
}

/* ---- pending actions panel (right) ---- */
.actionbar { display: none; }
@media (min-width: 1200px) {
  .shell { grid-template-columns: var(--side-w) minmax(0, 1fr) 288px; }
  .shell.actions-collapsed { grid-template-columns: var(--side-w) minmax(0, 1fr) 52px; }
  .actionbar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; border-left: 1px solid var(--line); background: var(--canvas); min-width: 0; }
}
.actionbar__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-5) var(--s-3) var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); min-height: 64px; }
.actionbar__t { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.actionbar__n { font-size: var(--fs-micro); background: var(--teal-50); color: var(--teal-deep); border-radius: 999px; padding: 1px 8px; }
.actionbar__body { overflow-y: auto; padding: var(--s-2) var(--s-3) var(--s-6) var(--s-4); }
.actionbar__chev { transition: transform var(--d-1) var(--ease); }
.alist { list-style: none; margin: 0; padding: 0; }
.alist__item { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.alist__item:last-child { border-bottom: 0; }
.alist__acct { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); text-decoration: none; }
.alist__acct:hover { text-decoration: underline; text-underline-offset: 3px; }
.alist__t { font-size: var(--fs-meta); line-height: var(--lh-meta); font-weight: 500; }
.alist__meta { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-label); color: var(--ink-2); }
.alist__meta .is-overdue { color: #A23B00; font-weight: 600; }
.actions-collapsed .actionbar__body, .actions-collapsed .actionbar__t { display: none; }
.actions-collapsed .actionbar__head { justify-content: center; padding-inline: 0; }
.actions-collapsed .actionbar__chev { transform: rotate(180deg); }

/* ---- show / hide password ---- */
.pw { position: relative; }
.pw .field__input { padding-right: 48px; }
.pw__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-2); cursor: pointer; }
.pw__toggle:hover { color: var(--ink); background: var(--surface-2); }
.pw__toggle[aria-pressed="true"] { color: var(--teal-deep); }

/* Dashboard filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.filters__search { position: relative; flex: 1 1 260px; max-width: 420px; display: block; }
.filters__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.filters__search input { padding-left: 36px; width: 100%; }
.filters__sel select { min-width: 170px; }
.filters__count { margin-left: auto; font-size: 13px; opacity: .7; }

/* Search palette */
.searchbtn { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 var(--s-3); padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2, #fff); color: var(--ink-2); font: inherit; font-size: var(--fs-label); cursor: pointer; }
.searchbtn:hover { color: var(--ink); border-color: var(--ink-2); }
.searchbtn span { flex: 1; text-align: left; }
.kbd { font: inherit; font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); }
.palette { border: 0; padding: 0; background: transparent; margin: 12vh auto auto; width: min(620px, calc(100vw - 32px)); max-height: 70vh; overflow: visible; }
.palette::backdrop { background: rgba(10, 20, 24, .45); }
.palette__box { background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden; }
.palette__input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; font: inherit; font-size: 16px; outline: none; background: transparent; }
.palette__list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette__item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.palette__item.is-sel { background: var(--teal-50); }
.palette__n { font-weight: 600; font-size: var(--fs-sm); }
.palette__s { font-size: var(--fs-label); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__empty { padding: 14px; color: var(--ink-2); }
.palette__foot { display: flex; gap: 16px; margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
@media (min-width: 980px) { .appbar .icon-btn[data-open-palette] { display: none; } }

/* Compact pipeline table: fit without horizontal scroll */
.gantt__table, .gantt__table { min-width: 0 !important; }
.gantt__acct { width: 300px !important; }
.gantt__head { height: auto !important; padding-top: var(--s-2); }
.gantt__table th.gantt__score { width: 76px !important; }
.gantt__score-cell { width: 76px !important; height: 44px !important; }
tbody .gantt__acct, .gantt__cell { height: 44px !important; }
.gantt__stage { padding: 0 4px var(--s-2) 6px !important; }
.gantt__name { font-size: 10.5px !important; line-height: 1.2 !important; overflow-wrap: anywhere; }
.gantt__co { line-height: 18px; }
.gantt__dom { line-height: 14px; font-size: 11px; }
.gantt__legend { flex-wrap: wrap; }

/* ARR forecast */
.arr { padding: var(--s-5); margin-bottom: var(--s-5); }
.arr__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
.arr__note { max-width: 440px; margin: 0; }
.arr__body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--s-5); align-items: center; }
.arr__chart svg { width: 100%; height: auto; display: block; }
.arr__grid { stroke: var(--line); stroke-width: 1; }
.arr__axis { font-size: 11px; fill: var(--ink-2); }
.arr__line { fill: none; stroke: var(--teal-deep); stroke-width: 2.5; stroke-linejoin: round; }
.arr__area { fill: var(--teal-50); opacity: .8; }
.arr__tiers { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; margin: var(--s-3) 0 0; padding: 0; font-size: var(--fs-meta); }
.arr__tiers li { display: flex; align-items: center; gap: 6px; }
.arr__swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.arr__swatch--starter { background: var(--teal-200); }
.arr__swatch--growth { background: var(--teal-300); }
.arr__swatch--enterprise { background: var(--teal); }
.arr__entries { margin-top: var(--s-4); }
.arr__entries > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--teal-deep); }
.arr__table { min-width: 720px; margin-top: var(--s-3); }
.arr__table .is-counted td:first-child { font-weight: 600; }
.arr__best { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .7; }
.arr__cursor { stroke: var(--teal-deep); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.arr__dot { fill: var(--teal-deep); stroke: #fff; stroke-width: 2; }
.arr__dot--b { fill: var(--ink-2); }
.arr__stats { display: grid; gap: var(--s-3); margin: 0; }
.arr__stat { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md, 10px); display: grid; gap: 2px; }
.arr__stat dt { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.arr__stat dd { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 600; }
.arr__sub { font-size: 12px; color: var(--ink-2); }
.arr__slide { margin-top: var(--s-3); }
.arr__slide input { width: 100%; accent-color: var(--teal-deep); }
.arr__when { font-size: var(--fs-sm); font-weight: 600; }
.arr__ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); }
.arr__foot { margin: var(--s-3) 0 0; }
@media (max-width: 760px) { .arr__body { grid-template-columns: 1fr; } .arr__stats { grid-template-columns: repeat(3, 1fr); } .arr__stat dd { font-size: 22px; } }
.arr__names { margin: var(--s-3) 0 0; }
.arr__set { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-4); }
.arr__set label { display: grid; gap: 4px; font-size: var(--fs-label); color: var(--ink-2); }
.arr__set select { min-width: 200px; }
.arr__pct { display: flex; align-items: center; gap: 6px; }
.arr__pct input { width: 80px; }
.arr__set .arr__pct input { width: 96px; flex: 0 0 96px; padding-left: 14px; padding-right: 14px; text-align: left; box-sizing: border-box; }
.arr__unit { font-size: var(--fs-sm); color: var(--ink-2); }


/* ---- health check grid ---- */
.page.page--health { max-width: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.dot--ok { background: #1F9D55; }
.dot--no { background: #D6403A; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.health__sort a { margin-right: var(--s-3); color: var(--teal-deep); }
.health__sort a[aria-current] { font-weight: 600; text-decoration: underline; }
.health { padding: 0; overflow: hidden; }
.health__scroll { overflow: auto; overscroll-behavior: contain; height: calc(100vh - 270px); height: calc(100dvh - 270px); min-height: 360px; }
.health__table { border-collapse: separate; border-spacing: 0; font-size: var(--fs-meta); }
.health__table th, .health__table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; background: var(--canvas); }
.health__table thead th { position: sticky; top: 0; z-index: 2; font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.health__table .health__groups th { border-left: 1px solid var(--line); }
.health__table .health__cols th { top: 33px; height: 120px; vertical-align: bottom; padding: 6px 2px; }
.health__table .health__cols th span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; }
.health__table tfoot th, .health__table tfoot td { position: sticky; bottom: 0; z-index: 2; border-top: 1px solid var(--line); }
.health__acct { position: sticky; left: 0; z-index: 3; text-align: left !important; min-width: 220px; font-weight: 600; border-right: 1px solid var(--line); }
.health__table thead .health__acct { z-index: 4; }
.health__acct a { color: var(--ink); text-decoration: none; }
.health__acct a:hover { color: var(--teal-deep); text-decoration: underline; }
.health__pct { position: sticky; left: 220px; z-index: 3; min-width: 96px; text-align: left !important; border-right: 1px solid var(--line); }
.health__table thead .health__pct { z-index: 4; }
.health__pct .mono { margin-left: 8px; font-size: var(--fs-label); }
.health__bar { display: inline-block; width: 36px; height: 6px; border-radius: 3px; background: linear-gradient(to right, #1F9D55 var(--p), var(--surface-2) var(--p)); vertical-align: middle; }
.health__foot { font-size: var(--fs-micro); color: var(--ink-2); }

.gantt__conn { position: absolute; right: 44px; top: 50%; margin-top: -11px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-deep); background: var(--teal-50); cursor: default; }
.gantt__conn:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.gantt__tip { display: none; position: absolute; bottom: 120%; right: -8px; white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; line-height: 1.3; z-index: 5; }
.gantt__conn:hover .gantt__tip, .gantt__conn:focus .gantt__tip { display: block; }

/* Product usage */
.usage__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.usage__stat { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4); }
.usage__stat strong { font-size: 24px; font-weight: 600; color: var(--ink); }
.usage__tabs { margin-bottom: var(--s-3); }
.usage__scroll { overflow-x: auto; }
.usage__day { margin: var(--s-4) 0 var(--s-2); }

/* Product usage layout: use the full width, keep numbers aligned, nothing clipped */
.page.page--usage { max-width: none; }
.usage__stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .usage__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .usage__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.usage__stat { padding: var(--s-3) var(--s-4); }
.usage__stat strong { font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.usage__card { padding: var(--s-3) var(--s-4); }
.usage__card .rules-table { min-width: 0; }
.usage__card .rules-table td, .usage__card .rules-table th { padding: 8px 10px; }
.usage__card .num { text-align: right; font-variant-numeric: tabular-nums; }
.usage__card .nowrap { white-space: nowrap; }
.usage__card tbody tr:hover td { background: var(--teal-50); }
.usage__card .clip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usage__dayrow th { background: var(--teal-50); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); padding: 6px 10px; }
.usage__daily thead th { position: sticky; top: 0; background: var(--paper, #fff); z-index: 1; }
.usage__scroll { max-height: calc(100vh - 360px); overflow: auto; }
.tier { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: var(--line); color: var(--ink-2); }
.tier--power { background: var(--teal-50); color: var(--teal-deep); font-weight: 600; }
.tier--active { background: var(--teal-50); color: var(--teal-deep); }

/* Actions page */
.actions-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.actions-head .seg { grid-auto-columns: auto; }
.actbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-5); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--canvas); }
.actbar__group { display: flex; align-items: center; gap: var(--s-2); }
.actbar__label { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.actbar__sep { width: 1px; align-self: stretch; background: var(--line); }
.actbar__end { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.pop__panel { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(420px, 86vw); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--canvas); box-shadow: 0 12px 32px rgba(3, 95, 98, 0.14); }
.pop__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; max-height: 320px; overflow-y: auto; }
.pop__opt { display: flex; align-items: center; gap: var(--s-2); padding: 8px 10px; border-radius: var(--r-xs); font-size: var(--fs-meta); line-height: var(--lh-meta); cursor: pointer; }
.pop__opt:hover { background: var(--teal-50); }
.pop__opt input { width: 18px; height: 18px; flex: none; accent-color: var(--teal-deep); }
.pop__opt span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop__pct { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--ink-2); }
.actbar__num { width: 64px; min-height: 40px; padding: 0 8px; text-align: center; font-family: var(--font-mono); border: 1px solid var(--ink-ctl); border-radius: var(--r-sm); background: var(--canvas); font-size: var(--fs-meta); color: var(--ink); }
.actbar__num:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); outline: none; }

.actcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.actcol { padding: 0; overflow: hidden; }
.actcol__head { display: flex; align-items: baseline; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); background: var(--teal-50); }
.actcol__t { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.actcol__n { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--teal-deep); }
.actcol__sub { margin-left: auto; font-size: var(--fs-label); color: var(--ink-2); }
.actcol__body { max-height: calc(100vh - 330px); min-height: 200px; overflow-y: auto; }
.actcol__empty { padding: var(--s-8) var(--s-5); color: var(--ink-2); text-align: center; }

.arows { list-style: none; margin: 0; padding: 0; }
.arow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.arow:last-child { border-bottom: 0; }
.arow:hover { background: color-mix(in srgb, var(--teal-50) 60%, var(--canvas)); }
.arow__check { width: 22px; height: 22px; margin-top: 1px; padding: 0; display: grid; place-items: center; border: 1.5px solid var(--ink-ctl); border-radius: 6px; background: var(--canvas); color: transparent; cursor: pointer; }
.arow__check:hover { border-color: var(--teal-deep); }
.arow__check[aria-checked="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.arow__body { display: grid; gap: 6px; min-width: 0; }
.arow__t { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 500; overflow-wrap: anywhere; }
.arow.is-done .arow__t { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.arow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-3); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--ink-2); }
.arow__acct { font-weight: 600; color: var(--teal-deep); }
.arow__acct:hover { text-decoration: underline; text-underline-offset: 3px; }
.arow__due { font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 6px; }
.arow__due.is-late { color: #A23B00; }
.arow__due.is-late::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.arow__tools { display: flex; align-items: center; gap: 2px; opacity: 0.45; transition: opacity var(--d-1) var(--ease); }
.arow:hover .arow__tools, .arow:focus-within .arow__tools { opacity: 1; }
.arow__del[data-armed="true"] { width: auto; padding: 0 10px; background: #A23B00; color: #fff; font-size: var(--fs-label); white-space: nowrap; }
.arow__del { color: #A23B00; }
@media (max-width: 1100px) { .actcols { grid-template-columns: minmax(0, 1fr); } .actcol__body { max-height: none; } }
@media (max-width: 640px) { .actbar__end { margin-left: 0; } .arow { padding-inline: var(--s-4); } }
.seg a.seg__item, .seg a.seg__item:hover { text-decoration: none; }

/* Hand Raisers: pick accounts on the pipeline table */
.hr-pick { position: absolute; left: 38px; top: 50%; margin-top: -9px; width: 18px; height: 18px; accent-color: var(--teal-deep); cursor: pointer; }
.gantt__table th.gantt__acct { width: 304px; }
.gantt__acct .gantt__link { padding-left: 28px; }
.hr-bar { position: fixed; z-index: 30; left: 50%; bottom: var(--s-6); transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5); border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); box-shadow: 0 12px 32px rgba(3, 95, 98, 0.18); }
.hr-bar[hidden] { display: none; }
.hr-bar__n { font-size: var(--fs-meta); color: var(--ink-2); white-space: nowrap; }

/* A name that cannot fit on one line at a readable size wraps to two */
.gantt__co.gantt__co--wrap { white-space: normal; text-overflow: clip; line-height: 12px; max-height: 24px; overflow-wrap: anywhere; }
.gantt__co.gantt__co--wrap3 { max-height: none; line-height: 11px; }

/* ---- Product usage, visual: bar, overview, account cards, recordings ---- */
.usage__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.usage__bar .seg { grid-auto-columns: auto; }
.usage__bar .btn { margin-left: auto; }

.uv { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-3); }
.uv > .card { padding: var(--s-4); min-width: 0; }
.uv__pulse { grid-column: span 8; } .uv__mix { grid-column: span 4; }
.uv__feat { grid-column: span 7; } .uv__top { grid-column: span 5; }
@media (max-width: 1100px) { .uv__pulse, .uv__mix, .uv__feat, .uv__top { grid-column: 1 / -1; } }
.uv__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s-3); margin-bottom: var(--s-3); }
.uv__head .t-h3 { margin: 0; }

/* daily pulse: one bar per day, darker part is actions */
.pulse { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end; height: 176px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--surface-2) calc(25% - 1px), var(--surface-2) 25%); }
.pulse__col { height: 100%; display: flex; align-items: flex-end; border-radius: 3px; }
.pulse__col:hover { background: var(--teal-50); }
.pulse__bar { display: flex; align-items: flex-end; width: 100%; min-height: 3px; border-radius: 3px 3px 0 0; background: var(--teal-200); overflow: hidden; }
.pulse__bar--none { background: var(--line); min-height: 2px; }
.pulse__act { width: 100%; background: var(--teal-deep); }
.pulse__axis { display: flex; justify-content: space-between; margin-top: var(--s-2); font-size: var(--fs-micro); color: var(--ink-2); }

/* engagement mix */
.mix { display: flex; gap: 3px; height: 28px; margin: var(--s-2) 0 var(--s-3); }
.mix__seg { flex-basis: 0; min-width: 6px; border-radius: 6px; }
.mix__seg--power { background: var(--teal-deep); } .mix__seg--active { background: var(--teal); }
.mix__seg--browser { background: var(--teal-200); } .mix__seg--low { background: var(--line); }
.mix__legend { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: 6px; }
.mix__legend li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
.mix__legend b { margin-left: auto; font-weight: 600; }
.mix__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* feature bars */
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feat li { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 44px; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.feat__bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.feat__bar i { display: block; height: 100%; min-width: 2px; border-radius: 99px; background: var(--teal); }
.feat__n { text-align: right; font-weight: 600; }

/* top accounts */
.top { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.top li { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.4fr) 44px; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.top__name { font-weight: 600; color: var(--teal-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__n { text-align: right; color: var(--ink-2); }

/* heat strips: a cell per day */
.heat { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.heat__c { display: block; height: 26px; border-radius: 3px; background: var(--surface-2); }
.heat--mini .heat__c { height: 14px; border-radius: 2px; }
.heat__c--1 { background: var(--teal-200); } .heat__c--2 { background: var(--teal-300); }
.heat__c--3 { background: var(--teal); } .heat__c--4 { background: var(--teal-deep); }
.heat__legend { display: inline-flex; gap: 2px; margin-left: var(--s-2); vertical-align: middle; }
.heat__legend .heat__c { width: 16px; height: 12px; }
.uacc__key { margin: 0 0 var(--s-3); }

.ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-3); }
.ucard { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); transition: box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease); }
.ucard:hover { box-shadow: var(--sh-2); border-color: var(--teal-200); }
.ucard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.ucard__name { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucard__name:hover { color: var(--teal-deep); }
.ucard__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); margin: 0; }
.ucard__stats dt { font-size: var(--fs-micro); color: var(--ink-2); }
.ucard__stats dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ucard__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: auto; padding-top: var(--s-2); border-top: 1px solid var(--line); }
.ucard__people { display: inline-flex; align-items: center; }
.ucard__people .avatar { margin-left: -4px; box-shadow: 0 0 0 2px var(--canvas), inset 0 0 0 1px var(--teal-200); }
.ucard__people .avatar:first-child { margin-left: 0; }
.ucard__people .mono { margin-left: var(--s-2); }
.ucard__quiet { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); }
.ucard__quiet summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.ucard__quiet .tags { margin-top: var(--s-3); }

/* session recordings: a playlist grid. Tint is the recording length, light to deep teal. */
.recs { --len-blip-bg: var(--surface-2); --len-blip-fg: var(--ink-2);
  --len-short-bg: var(--teal-200); --len-short-fg: var(--teal-deep);
  --len-mid-bg: var(--teal-300); --len-mid-fg: var(--teal-deep);
  --len-long-bg: var(--teal); --len-long-fg: #fff;
  --len-deep-bg: var(--teal-deep); --len-deep-fg: var(--teal-200); }
.recs__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.recs__top .t-h3 { margin: 0 0 2px; } .recs__top p { margin: 0; max-width: 78ch; }
.recs__sort { display: inline-flex; align-items: center; gap: var(--s-2); }
.recs__rail { margin-bottom: var(--s-3); }
.recs__rail .chip { min-height: 36px; }
.chip__av { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-200); color: var(--teal-deep); font-size: 11px; font-weight: 600; }
.recs__len { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.recs__lenlabel { margin-right: var(--s-1); }
.recs__count { margin-left: auto; }
.lenchip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px 0 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--canvas); color: var(--ink); font-size: var(--fs-label); font-weight: 500; }
.lenchip__sw { width: 14px; height: 14px; border-radius: 4px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(41, 45, 46, 0.12); }
.lenchip--blip { --sw: var(--len-blip-bg); } .lenchip--short { --sw: var(--len-short-bg); } .lenchip--mid { --sw: var(--len-mid-bg); }
.lenchip--long { --sw: var(--len-long-bg); } .lenchip--deep { --sw: var(--len-deep-bg); }
.lenchip[aria-pressed="false"] { color: var(--ink-3); background: var(--surface-2); border-color: transparent; }
.lenchip[aria-pressed="false"] .lenchip__sw { opacity: 0.35; }
.lenchip:disabled { opacity: 0.45; cursor: default; }
.lenchip:hover:not(:disabled) { border-color: var(--ink-ctl); }

.recs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: var(--s-5) var(--s-4); }
.rec { min-width: 0; }
.rec[hidden] { display: none; }
.rec__thumb { --bg: var(--surface-2); --fg: var(--ink-2); position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md);
  background: radial-gradient(color-mix(in srgb, var(--fg) 26%, transparent) 1px, transparent 1.4px) 0 0 / 14px 14px, linear-gradient(160deg, color-mix(in srgb, var(--bg) 100%, #fff 0%), var(--bg)), var(--bg);
  color: var(--fg); box-shadow: inset 0 0 0 1px rgba(41, 45, 46, 0.08); transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease); }
.rec__thumb:hover { transform: translateY(-2px); box-shadow: var(--sh-2), inset 0 0 0 1px rgba(41, 45, 46, 0.08); }
.rec__thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rec__thumb--blip { --bg: var(--len-blip-bg); --fg: var(--len-blip-fg); } .rec__thumb--short { --bg: var(--len-short-bg); --fg: var(--len-short-fg); }
.rec__thumb--mid { --bg: var(--len-mid-bg); --fg: var(--len-mid-fg); } .rec__thumb--long { --bg: var(--len-long-bg); --fg: var(--len-long-fg); }
.rec__thumb--deep { --bg: var(--len-deep-bg); --fg: var(--len-deep-fg); }
.rec__marks { position: absolute; left: 12px; right: 12px; top: 14px; bottom: 16px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); }
.mk { position: absolute; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px 2px 0 0; background: var(--fg); }
.mk--nav { height: 16%; width: 3px; margin-left: -1.5px; opacity: 0.6; } .mk--view { height: 38%; } .mk--ai { height: 58%; width: 3px; }
.mk--act { height: 82%; width: 4px; margin-left: -2px; }
.mk--rage { height: 100%; width: 0; background: none; }
.mk--rage::before { content: ""; position: absolute; top: -2px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--bg); }
.rec__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity var(--d-2) var(--ease); }
.rec__play svg { box-sizing: content-box; padding: 12px 12px 12px 14px; border-radius: 50%; background: var(--canvas); color: var(--teal-deep); box-shadow: var(--sh-2); }
.rec__thumb:hover .rec__play, .rec__thumb:focus-visible .rec__play { opacity: 1; }
.rec__len { position: absolute; right: 8px; bottom: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(41, 45, 46, 0.86); color: #fff; font-size: 12px; line-height: 18px; }
.rec__flag { position: absolute; right: 8px; top: 8px; }
.rec__flag .tag { background: var(--canvas); }
.rec__live { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--fg) 24%, transparent); }
.rec__live i { display: block; height: 100%; background: var(--fg); }
.rec__body { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.rec__body .avatar { margin-top: 2px; }
.rec__text { min-width: 0; flex: 1; }
.rec__title { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; }
.rec__title a { color: var(--ink); } .rec__title a:hover { color: var(--teal-deep); }
.rec__who { margin: 0; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-2); }
.rec__meta { margin: 2px 0 var(--s-2); font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--ink-2); }
.rec__tags { gap: 4px; }
.recs__none { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .rec__thumb, .rec__play, .ucard { transition: none; } .rec__thumb:hover { transform: none; } }

/* live users badge on the Recordings tab */
.live { position: relative; display: inline-flex; align-items: center; gap: 5px; margin-left: 7px; vertical-align: middle; }
.live[hidden] { display: none; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #D92D20; box-shadow: 0 0 0 0 rgba(217, 45, 32, .5); animation: live-pulse 1.8s infinite; }
.live__n { font-size: var(--fs-micro); font-weight: 600; color: #D92D20; font-variant-numeric: tabular-nums; }
.live__pop { display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; min-width: 240px; max-width: 320px; padding: var(--s-3);
  background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); color: var(--ink);
  font-weight: 400; text-align: left; white-space: normal; }
.live:hover .live__pop, .seg__item:focus-visible .live__pop { display: grid; gap: var(--s-2); }
.live__h { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.live__row { display: grid; font-size: var(--fs-label); line-height: 1.35; }
.live__row span { color: var(--ink-2); }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 7px rgba(217, 45, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0); } }
@media (prefers-reduced-motion: reduce) { .live__dot { animation: none; } }
.recs__sort select { width: auto; min-width: 150px; min-height: var(--control-sm); }
.rec__brand { position: absolute; left: 12px; max-width: 58%; top: 10px; font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--brand, #fff); text-shadow: var(--brand-shadow, none); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat__none { margin: var(--s-3) 0 0; }
.usage__bar { min-width: 0; }
.usage__bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.usage__bar .seg::-webkit-scrollbar { display: none; }
.usage__bar .seg__item { white-space: nowrap; }
@media (max-width: 640px) { .usage__bar .btn { margin-left: 0; } .feat li { grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) 34px; } .top li { grid-template-columns: minmax(80px, 1fr) minmax(0, 1fr) 36px; } }
/* company name: dark on the light tints, white on the deep ones */
.rec__thumb--blip, .rec__thumb--short, .rec__thumb--mid { --brand: var(--ink); --brand-shadow: none; }
.rec__thumb--long, .rec__thumb--deep { --brand: #fff; --brand-shadow: 0 1px 6px rgba(3, 95, 98, 0.45); }

/* ---- logos and the mapped universe ---- */
.logo { position: relative; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--line); color: var(--teal-deep); font-weight: 600; font-size: 14px; }
.logo--sm { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
.logo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; }
.mu__filters { margin-bottom: var(--s-3); }
.mu__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.mu__search { flex: 1 1 260px; min-width: 200px; }
.mu__sel select { min-width: 150px; min-height: var(--control-sm); }
.mu__logo { cursor: pointer; } .mu__logo input { accent-color: var(--teal-deep); margin: 0; }
.mu__chips { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.mu__card { padding: var(--s-3) var(--s-4); }
.mu__count { margin: 0 0 var(--s-2); }
.mu__table td, .mu__table th { padding: 8px 10px; vertical-align: middle; }
.mu__table tbody tr:hover td { background: var(--teal-50); }
.mu__name { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.mu__nm { font-weight: 600; }
.mu__dom { color: var(--teal-deep); word-break: break-all; font-size: var(--fs-label); }
.mu__scroll { max-height: none; }
.mu__pager { display: flex; align-items: center; justify-content: center; gap: var(--s-4); padding-top: var(--s-4); }
.mu__pager [aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.page.page--mapped { max-width: none; }
a.chip, a.chip:hover { text-decoration: none; }
.mu__dom { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; word-break: normal; }
.mu__table td:nth-child(4), .mu__table td:nth-child(5) { white-space: nowrap; }
.mu__nm { overflow-wrap: anywhere; }
.gantt__acct .gantt__link { display: flex; align-items: center; gap: 8px; }
.gantt__acct .gantt__link .gantt__txt { display: block; flex: 1 1 0; min-width: 0; }
.thesis-head__title { display: flex; align-items: center; gap: var(--s-3); }
.thesis-head__title .logo { width: 44px; height: 44px; border-radius: 10px; font-size: 18px; }

/* Mapped universe: list/map toggle and the map */
.mu__toggle { display: inline-flex; border: 1px solid var(--ink-ctl); border-radius: var(--radius-sm, 6px); overflow: hidden; margin-left: auto; }
.mu__tbtn { padding: 6px 14px; font-size: var(--fs-label); font-weight: 600; color: var(--ink-2); text-decoration: none; background: #fff; }
.mu__tbtn[aria-pressed="true"] { background: var(--teal-deep); color: #fff; }
.mu__map { height: calc(100vh - 360px); min-height: 440px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.mu__legend { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-2) 0 0; }
.mu__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-deep); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--teal-deep); display: inline-block; margin-left: var(--s-2); }
.mu__dot--approx { background: #fff; box-shadow: 0 0 0 1px var(--teal-deep); border-color: #fff; }
.mu-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--teal-deep); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--teal-deep); box-sizing: border-box; }
.mu-pin--approx { background: #fff; border: 3px solid var(--teal-deep); box-shadow: none; }
.mu-cluster { border-radius: 50%; background: var(--teal-deep); color: #fff; text-align: center; line-height: 28px; font-weight: 600; font-size: 12px; border: 3px solid rgba(7, 142, 147, 0.35); background-clip: padding-box; box-sizing: border-box; }
.mu-cluster span { display: block; width: 28px; height: 28px; line-height: 28px; text-align: center; }
.mu-cluster--m { background: var(--teal); }
.mu-cluster--l { background: var(--teal-deep-press); }
.leaflet-container .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; }
.leaflet-container .leaflet-popup-content { margin: 14px 18px 14px 14px; width: auto !important; font: 400 13px/1.45 var(--font-sans, inherit); color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { top: 6px; right: 6px; width: 22px; height: 22px; font-size: 18px; line-height: 20px; color: var(--ink-2); }
.mu-pop { display: flex; align-items: center; gap: 10px; padding-right: 18px; }
.mu-pop__logo { flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.mu-pop strong { display: block; font-size: 14px; line-height: 1.25; color: var(--ink); }
.mu-pop__seg { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.mu-pop__addr { margin: 10px 0 6px; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.leaflet-container a.mu-pop__link { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal-deep); text-decoration: none; }
.leaflet-container a.mu-pop__link:hover { text-decoration: underline; }
.mu__search { position: relative; }
.mu__go { flex: none; }
.mu__sugg { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(41, 45, 46, 0.14); max-height: 60vh; overflow-y: auto; }
.mu__opt { display: flex; align-items: center; gap: var(--s-3); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.mu__opt.is-sel, .mu__opt:hover { background: var(--teal-50); }
.mu__opt-txt { display: grid; min-width: 0; }
.mu__opt-txt strong { font-size: var(--fs-label); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu__sugg[hidden] { display: none; }

.mu__dot--pipe { background: #C62828; box-shadow: 0 0 0 1px #C62828; }
.mu-pin--pipe { background: #C62828; box-shadow: 0 0 0 1px #C62828; width: 16px; height: 16px; }
.mu__inpipe { color: #1B7F3B; font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; }
.mu__inpipe:hover { text-decoration: underline; }
.mu__add { color: var(--teal-deep); border: 1px solid var(--teal-200); border-radius: 50%; }
.mu-pop__pipe { display: inline-block; margin-top: 4px; color: #C62828; font-weight: 600; font-size: 12px; }
.mu-cluster--pipe, .mu-cluster--pipe.mu-cluster--m, .mu-cluster--pipe.mu-cluster--l { background: #C62828; border-color: rgba(198, 40, 40, 0.35); }
.mu-cluster--mixed, .mu-cluster--mixed.mu-cluster--m, .mu-cluster--mixed.mu-cluster--l { background: #12308F; border-color: rgba(18, 48, 143, 0.35); }

/* Action funnel */
.fn { display: grid; gap: var(--s-4); }
.fn__filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.fn__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fn__chip, .fn__chip:hover { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--ink-2); font-size: var(--fs-meta); text-decoration: none; }
.fn__chip:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.fn__chip[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.fn__chipn { opacity: 0.7; font-variant-numeric: tabular-nums; }
.fn__card { padding: var(--s-4); }
.fnl { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.fnl__row { display: grid; grid-template-columns: minmax(180px, 1.1fr) 3fr 80px 130px; align-items: center; gap: var(--s-4); }
.fnl__name { display: flex; flex-direction: column; gap: 2px; }
.fnl__bar { height: 28px; background: var(--teal-50); border-radius: 6px; overflow: hidden; }
.fnl__bar i { display: block; height: 100%; background: var(--teal-deep); border-radius: 6px; min-width: 3px; }
.fnl__row:nth-child(2) .fnl__bar i { opacity: .9; } .fnl__row:nth-child(3) .fnl__bar i { opacity: .8; }
.fnl__row:nth-child(4) .fnl__bar i { opacity: .7; } .fnl__row:nth-child(5) .fnl__bar i { opacity: .6; } .fnl__row:nth-child(6) .fnl__bar i { opacity: .5; }
.fnl__n { display: flex; flex-direction: column; text-align: right; font-variant-numeric: tabular-nums; }
.fnl__n span, .fnl__conv { color: var(--ink-3); }
.fnl__conv { text-align: right; font-variant-numeric: tabular-nums; }
.fns__wrap { overflow-x: auto; }
.fns { width: 100%; min-width: 980px; height: auto; }
.fns__head { font-size: 14px; font-weight: 600; fill: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.fns__link { fill: none; stroke: var(--teal-deep); opacity: .2; }
.fns__link:hover { opacity: .55; }
.fns__node { fill: var(--teal-deep); }
.fns__lbl { font-size: 15px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--paper, #fff); stroke-width: 5px; stroke-linejoin: round; }
.fns__num { font-weight: 700; fill: var(--teal-deep); font-variant-numeric: tabular-nums; }
.fns--stop.fns__link, .fns__link.fns--stop { stroke: var(--ink-3); opacity: .22; }
.fns__node.fns--stop { fill: var(--ink-3); opacity: .6; }
.fns__node.fns--visit { opacity: .55; } .fns__node.fns--look { opacity: .68; } .fns__node.fns--dig { opacity: .8; } .fns__node.fns--work { opacity: .9; }
.fnw { display: inline-block; margin: 0 var(--s-3) 2px 0; }
@media (max-width: 760px) { .fnl__row { grid-template-columns: 1fr 70px; } .fnl__bar { grid-column: 1 / -1; order: 3; } .fnl__conv { display: none; } }

/* AI insights */
.ins { padding: var(--s-4); margin-bottom: var(--s-4); }
.ins__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.ins__btn svg { margin-right: 6px; vertical-align: -3px; }
.ins__btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.ins__headline { font-size: 16px; font-weight: 600; color: var(--ink); margin: var(--s-3) 0; }
.ins__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-3); }
.ins__box { background: var(--teal-50); border-radius: 10px; padding: var(--s-3) var(--s-4); }
.ins__box h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 0 0 var(--s-2); }
.ins__box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ins__box li { font-size: 14px; line-height: 1.45; color: var(--ink); }
.ins__box--hi { border-left: 3px solid var(--teal-deep); }
.ins__box--risk { border-left: 3px solid #C62828; }
.ins__loading { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 0; font-size: 14px; color: var(--ink-2); }
.ins__spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal-200); border-top-color: var(--teal-deep); animation: ins-spin .8s linear infinite; }
@keyframes ins-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ins__spin { animation-duration: 2.4s; } }

/* ---- Product usage: digest health ---- */
.dg__key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-3); }
.dg__legend { display: inline-flex; align-items: center; gap: 6px; }
.dg__dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.dg__dot--ok { background: #039855; }
.dg__dot--bad { background: #D92D20; }
.dgs { display: grid; gap: var(--s-4); }
.dgc { padding: var(--s-4); display: grid; gap: var(--s-3); }
.dgc__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.dgc__name { font-weight: 600; color: var(--ink); }
.dgc__tot { margin-left: auto; }
.dg__strip { display: flex; flex-wrap: wrap; gap: 4px; }
.dgc__people { list-style: none; margin: 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.dgc__people li { display: grid; grid-template-columns: 10px minmax(200px, 1.3fr) 2fr auto; align-items: center; gap: var(--s-3); }
.dgc__mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgc__open { justify-self: end; font-size: var(--fs-meta); color: var(--ink-2); white-space: nowrap; }
.dgc__open.is-never { color: #D92D20; }
@media (max-width: 720px) { .dgc__people li { grid-template-columns: 10px minmax(0, 1fr); } .dgc__people li > :nth-child(n+3) { grid-column: 2; justify-self: start; } .dgc__tot { margin-left: 0; } }

/* ---- Product usage deployed on its own: views and window in the sidebar ---- */
.navitem .seg__count { margin-left: auto; }
.sidewin { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-2) 0; }
.sidewin__t { color: var(--ink-2); }
.sidewin .btn { margin-top: var(--s-2); }
.sidewin__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--r-md); }
.sidewin__item, .sidewin__item:hover { padding: 6px 0; text-align: center; border-radius: calc(var(--r-md) - 2px); color: var(--ink-2); font-size: var(--fs-label); text-decoration: none; }
.sidewin__item[aria-pressed="true"] { background: var(--canvas); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1, 0 1px 2px rgba(41, 45, 46, 0.12)); }
.shell--solo .live { margin-left: auto; }
@media (min-width: 980px) { .usage__bar--side { display: none; } }
@media (min-width: 1200px) { .shell.shell--solo { grid-template-columns: var(--side-w) minmax(0, 1fr); } }

/* ---- sign-in: form on the left, a moving picture on the right ---- */
.auth--split { padding: 0; place-items: stretch; }
.auth__side { display: grid; place-items: center; padding: var(--s-6) var(--gutter); }
.authviz { display: none; }
@media (min-width: 980px) {
  .auth--split { grid-template-columns: minmax(380px, 5fr) 7fr; }
  .authviz { display: block; position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh; color: #fff;
    background: radial-gradient(120% 90% at 72% 18%, var(--teal-deep) 0%, #06383B 62%), #06383B; }
  .authviz::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 56, 59, 0) 55%, rgba(6, 56, 59, 0.55)); }
}
.authviz__stage { position: absolute; inset: 0; }
.authviz__stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.authviz__stage.is-live canvas { opacity: 1; }
.authviz__cap { position: relative; z-index: 2; display: grid; gap: var(--s-2); }
.authviz__cap--low { position: absolute; left: 56px; bottom: 56px; max-width: 360px; }
.authviz .eyebrow { color: var(--teal-200); }
.authviz__t { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }

/* usage preview */
.authviz--usage { display: none; }
@media (min-width: 980px) {
  .authviz--usage { display: flex; flex-direction: column; justify-content: center; gap: var(--s-6); padding: var(--s-8) 56px; }
  .authviz--usage::before { content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 45%, #000, transparent); }
}
.uviz { position: relative; z-index: 1; max-width: 760px; }
.uviz__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-height: 800px) { .uviz__card--lower { display: none; } }
.uviz__card { padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-2); align-content: start; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: uviz-in 0.8s var(--ease-out) both calc(var(--i) * 0.12s), uviz-float 9s ease-in-out infinite alternate calc(var(--i) * -1.7s); }
.uviz__card--wide { grid-column: 1 / -1; }
.uviz__head { display: grid; gap: 2px; }
.uviz__head strong { font-size: 15px; font-weight: 600; }
.uviz__eyebrow { font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-200); }
.uviz__svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes uviz-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes uviz-float { from { translate: 0 -3px; } to { translate: 0 3px; } }

.uviz__link { fill: none; stroke: rgba(103, 200, 204, 0.38); opacity: 0; transition: opacity 0.9s var(--ease) var(--d, 0s); }
.uviz__link.is-stop { stroke: rgba(255, 255, 255, 0.16); }
.uviz__node { fill: var(--teal-200); transform-box: fill-box; transform-origin: center; transform: scaleY(0); transition: transform 0.7s var(--ease-out) var(--d, 0s); }
.uviz__node.is-stop { fill: rgba(255, 255, 255, 0.4); }
.uviz__flow { fill: none; stroke: #fff; stroke-linecap: round; stroke-dasharray: 0.1 18; opacity: 0; animation: uviz-flow 2.6s linear infinite; animation-delay: var(--d, 0s); transition: opacity 0.6s var(--ease) 1s; }
.uviz__lbl { fill: rgba(255, 255, 255, 0.9); font-size: 10.5px; paint-order: stroke; stroke: #06383B; stroke-width: 3px; stroke-linejoin: round; opacity: 0; transition: opacity 0.8s var(--ease) 0.6s; }
.uviz.is-live .uviz__link, .uviz.is-live .uviz__lbl { opacity: 1; }
.uviz.is-live .uviz__node { transform: none; }
.uviz.is-live .uviz__flow { opacity: 0.9; }
@keyframes uviz-flow { to { stroke-dashoffset: -18.1; } }

.uviz__funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.uviz__frow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr) 34px; align-items: center; gap: var(--s-2); font-size: var(--fs-label); color: rgba(255, 255, 255, 0.85); }
.uviz__frow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uviz__frow b { text-align: right; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.uviz__fbar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.uviz__fbar i { display: block; width: 0; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--teal-200)); transition: width 1.1s cubic-bezier(0.3, 0.7, 0.2, 1); }

.uviz__trend { min-height: 96px; }
.uviz__line { fill: none; stroke: var(--teal-200); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: uviz-draw 1.8s cubic-bezier(0.3, 0.6, 0.3, 1) forwards; }
.uviz__area { opacity: 0; animation: uviz-fade 1s var(--ease) 1.1s forwards; }
.uviz__dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(169, 235, 238, 0.9)); }
@keyframes uviz-draw { to { stroke-dashoffset: 0; } }
@keyframes uviz-fade { to { opacity: 1; } }

.uviz__bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; }
.uviz__bars i { flex: 1; height: var(--h, 0%); min-height: 3px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--teal-200), var(--teal)); transition: height 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) calc(var(--k) * 28ms); }

.uviz__donut { display: flex; align-items: center; gap: var(--s-5); }
.uviz__ring { position: relative; width: 96px; flex: none; }
.uviz__track, .uviz__seg { fill: none; stroke-width: 11; }
.uviz__track { stroke: rgba(255, 255, 255, 0.1); }
.uviz__seg { transition: stroke-dasharray 1.1s cubic-bezier(0.3, 0.7, 0.2, 1), stroke-dashoffset 1.1s cubic-bezier(0.3, 0.7, 0.2, 1); }
.uviz__seg--0, .uviz__sw--0 { stroke: var(--teal-200); background: var(--teal-200); }
.uviz__seg--1, .uviz__sw--1 { stroke: var(--teal-300); background: var(--teal-300); }
.uviz__seg--2, .uviz__sw--2 { stroke: var(--teal); background: var(--teal); }
.uviz__seg--3, .uviz__sw--3 { stroke: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.34); }
.uviz__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.uviz__center b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.uviz__center span { font-size: var(--fs-micro); color: rgba(255, 255, 255, 0.65); }
.uviz__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: var(--fs-label); color: rgba(255, 255, 255, 0.85); }
.uviz__legend li { display: flex; align-items: center; gap: 8px; }
.uviz__sw { width: 9px; height: 9px; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .uviz__card { animation: none; }
  .uviz__flow { animation: none; }
  .uviz__line { animation: none; stroke-dashoffset: 0; }
  .uviz__area { animation: none; opacity: 1; }
  .authviz__stage canvas { transition: none; }
}

/* ---- people at a company: mapped company page and "Other people" on the buying thesis ---- */
.ppl { list-style: none; margin: 0; padding: 0; display: grid; }
.ppl__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.ppl__row:last-child { border-bottom: 0; }
.ppl__who { display: grid; gap: 2px; min-width: 0; }
.ppl__name { font-weight: 600; }
.ppl__title { overflow-wrap: anywhere; }
.ppl__role { margin-left: 6px; }
.ppl__acts { display: grid; grid-template-columns: 104px 88px 34px; align-items: center; gap: var(--s-2); }
.ppl__btn { gap: 6px; justify-content: center; }
.ppl__call { color: var(--teal-deep); border: 1px solid var(--teal-200); border-radius: 50%; }
.mc__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); margin: 0; }
.mc__facts dt { font-size: var(--fs-label); color: var(--ink-2); }
.mc__facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.mc__cat { margin: 0; }
@media (max-width: 640px) { .ppl__row { grid-template-columns: 32px minmax(0, 1fr); } .ppl__acts { grid-column: 2; justify-content: start; } }

/* warm connections: red, by request */
.ppl__warm { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #D92D20; color: #fff; font-size: 12px; font-weight: 600; line-height: 18px; vertical-align: 1px; }
.ppl__via { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; border: 1px solid #D92D20; color: #B42318; font-size: 12px; font-weight: 600; line-height: 18px; vertical-align: 1px; }
.mu__nm--warm, .mu__nm--warm:hover { color: #D92D20; }
.mu__warm:has(input:checked) { border-color: #D92D20; color: #B42318; }
