/* CoWeave: the dashboards (Member, Manager, Admin). Tokens from pro.css.
   A working tool: scanned and operated, so state is shown in form (pills, counts, bars) as
   well as words. Semantic state colors are separate from the purple accent. */
:root { --ok: #2f7d55; --ok-soft: #e3f2ea; --warn: #9a6a12; --warn-soft: #f7edd8; --idle: #6b6178; --idle-soft: #eeebf2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #7fd1a3; --ok-soft: #12291d; --warn: #e2b866; --warn-soft: #2b2112; --idle: #a89cb8; --idle-soft: #1f1a26; } }
:root[data-theme="dark"] { --ok: #7fd1a3; --ok-soft: #12291d; --warn: #e2b866; --warn-soft: #2b2112; --idle: #a89cb8; --idle-soft: #1f1a26; }

.dash-body { display: block; }
.dash-bar { grid-template-columns: auto 1fr auto; }
.org { font-family: var(--serif); font-size: 1.02rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.viewas { display: flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.viewas select { font: inherit; font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; max-width: 16rem; }
.research { display: inline-flex; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); cursor: pointer; }
.research input { accent-color: var(--gold); }
.research[hidden] { display: none; }
.demo-note { margin: 0; padding: .55rem 16px; font-size: .82rem; color: var(--muted); background: var(--surface-2); text-align: center; }
.demo-note .link { font-size: .82rem; padding: 0 .2rem; }

.dash { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 2rem; max-width: 76rem; margin: 0 auto; padding: 1.6rem 16px 4rem; }
.side { display: grid; gap: .2rem; align-content: start; position: sticky; top: 4.6rem; }
.side .grp { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .3rem .8rem; }
.side button { text-align: left; background: none; border: 0; border-radius: 10px; padding: .55rem .8rem; cursor: pointer; color: var(--ink); font-size: .95rem; display: flex; justify-content: space-between; gap: .5rem; }
.side button:hover { background: var(--surface); }
.side button[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side button b { font-weight: 600; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
main.dash-main { max-width: none; margin: 0; padding: 0; min-width: 0; }
.dash-main:focus { outline: none; }
.dash-main h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.dash-main h2 { font-size: 1.25rem; margin: 2.2rem 0 .8rem; }
.dash-main .sub { color: var(--muted); margin: .4rem 0 0; max-width: 46rem; }
.role-pill { display: inline-block; font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold); vertical-align: middle; margin-left: .5rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .9rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: .9rem; }
.share { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.share h3 { margin: 0 0 .3rem; font-size: 1rem; }
.share p { margin: 0; font-size: .92rem; color: var(--muted); }
.switch { position: relative; width: 3.2rem; height: 1.8rem; border-radius: 999px; border: 0; cursor: pointer; background: var(--line); transition: background .15s; }
.switch::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"]::after { transform: translateX(1.4rem); }
.switch[disabled] { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }

.lens-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .7rem; margin-top: 1rem; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .85rem .95rem; color: inherit; text-decoration: none; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); }
.tile .k { font: 600 .68rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-family: var(--serif); font-size: 1.1rem; margin-top: .35rem; line-height: 1.25; }
.tile .s { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.decode { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .74rem; color: var(--gold); margin-top: .3rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.btn.sm { padding: .55rem 1rem; font-size: .9rem; }
a.btn { text-decoration: none; display: inline-block; }

.person { display: grid; gap: .55rem; }
.person .top { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.person .nm { font-weight: 600; }
.person .tt { font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; background: var(--bg); }
.person .acts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }

.pill { display: inline-flex; align-items: center; gap: .35rem; font: 600 .72rem/1 var(--sans); letter-spacing: .04em; padding: .32rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.pill.finished, .pill.shared { color: var(--ok); background: var(--ok-soft); }
.pill.started { color: var(--warn); background: var(--warn-soft); }
.pill.invited, .pill.joined, .pill.private { color: var(--idle); background: var(--idle-soft); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.people { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.people th { text-align: left; font: 600 .7rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .8rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.people td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.people tr:last-child td { border-bottom: 0; }
table.people td .tt { display: block; font-size: .8rem; color: var(--muted); }
table.people select { font: inherit; font-size: .88rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 .9rem; }
.filters select, .form input, .form select { font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; }
.form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.form label { display: grid; gap: .3rem; font-size: .78rem; color: var(--muted); }
.compare-bar { position: sticky; bottom: 1rem; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; background: var(--ink); color: var(--bg); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); }
.compare-bar a { color: var(--bg); }
.compare-bar .btn { background: var(--bg); color: var(--ink); }

.team { display: grid; gap: .7rem; }
.team ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.team li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .93rem; }
.team li .x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .2rem .4rem; border-radius: 6px; }
.team li .x:hover { color: var(--danger); background: var(--bg); }

.comp h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.comp .k { font: 600 .68rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .45rem; }
.split { display: grid; grid-template-columns: 6.5rem 1fr 6.5rem; align-items: center; gap: .6rem; font-size: .85rem; margin: .35rem 0; }
.split span:last-child { text-align: right; }
.split .bar2 { display: flex; height: .55rem; border-radius: 999px; overflow: hidden; background: var(--line); }
.split .bar2 i { display: block; background: var(--accent); }
.split .bar2 i + i { background: var(--gold); }
.counts { display: flex; flex-wrap: wrap; gap: .35rem; }
.counts .chip b { font-variant-numeric: tabular-nums; margin-left: .25rem; }
.notes { margin: .8rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.notes li { margin-bottom: .35rem; }
.hidden-team { color: var(--muted); font-size: .92rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; }
.stat .n { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .k { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.meter { height: .5rem; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: .6rem; }
.meter i { display: block; height: 100%; background: var(--accent); }
.danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.danger h3 { color: var(--danger); margin: 0 0 .3rem; font-size: 1rem; }

.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.empty { color: var(--muted); padding: 1rem 0; }
.callout { background: var(--surface-2); border-radius: 12px; padding: .9rem 1rem; font-size: .9rem; color: var(--muted); margin-top: 1rem; }

dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 1.4rem 1.5rem; width: min(36rem, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 8, 14, .55); }
dialog h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
dialog p { color: var(--muted); }
dialog .actions { margin-top: 1.2rem; }

@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; }
  .side { position: static; display: flex; overflow-x: auto; gap: .3rem; padding-bottom: .3rem; }
  .side .grp { display: none; }
  .side button { white-space: nowrap; }
  .dash-bar { grid-template-columns: auto 1fr; }
  .org { display: none; }
  .who { grid-column: 1 / -1; justify-content: flex-start; }
  .log li { grid-template-columns: 1fr; gap: .2rem; }
  .split { grid-template-columns: 5rem 1fr 5rem; }
}

.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; margin: 0;
  background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ── Company switcher ── */
.company { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.company select { font: inherit; font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; }

/* ── Perspectives in team composition ── */
.pc { margin: .5rem 0 .9rem; }
.pc-t { font-size: .82rem; font-weight: 600; margin-bottom: .3rem; }
.pc-row { display: grid; grid-template-columns: 6.5rem 1fr 1.2rem; gap: .5rem; align-items: center; font-size: .82rem; margin: .18rem 0; }
.pc-bar { height: .45rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.pc-row b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ── The Perspective maps ── */
.pmap { margin: 1.4rem 0; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pmap figcaption { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.pmap figcaption b { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; margin-right: .5rem; }
.pm-research { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .7rem; color: var(--gold); font-weight: 400; margin-top: .2rem; letter-spacing: 0; text-transform: none; }
.pm-people { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .45rem; }
.pm-chip { font-size: .72rem; padding: .15rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pm-none { font-size: .75rem; color: var(--muted); }
.pm-scroll { overflow-x: auto; }
table.pm-grid { border-collapse: separate; border-spacing: 0; min-width: 52rem; width: 100%; font-size: .82rem; }
table.pm-grid th, table.pm-grid td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
table.pm-grid thead th { border-bottom: 0; }
table.pm-grid th[scope=row] { color: var(--muted); font-weight: 600; font-size: .74rem; letter-spacing: .04em; width: 8rem; }
.pm-band { text-align: center !important; font: 600 .68rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line) !important; }
.pm-col { font-family: var(--serif); font-size: 1rem; color: var(--ink); border-top: 3px solid var(--accent); }
.pm-col:nth-child(2) { border-top-color: color-mix(in srgb, var(--accent) 35%, var(--gold)); }
.pm-col:nth-child(3) { border-top-color: color-mix(in srgb, var(--accent) 55%, var(--gold)); }
.pm-col:nth-child(4) { border-top-color: color-mix(in srgb, var(--accent) 70%, var(--gold)); }
.pm-col:nth-child(5) { border-top-color: color-mix(in srgb, var(--accent) 85%, var(--gold)); }
.pm-team td { background: var(--bg); }
.pm-wv { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr); gap: 1.4rem; align-items: start; }
.pm-wv > div:first-child { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; }
.pm-groups { display: grid; grid-template-rows: 1fr 2fr 3fr; gap: .4rem; }
.pm-groups span { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 .64rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-left: 2px solid var(--line); padding-left: .25rem; text-align: center; grid-row: span 1; }
.pm-groups span:nth-child(1) { order: 0; } 
.pm-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pm-row { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.pm-bar { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 60%, transparent), color-mix(in srgb, var(--accent) 70%, transparent)); border-radius: 10px; padding: .55rem .7rem; width: var(--w); min-width: 5.5rem; margin: 0 auto; text-align: center; color: var(--ink); }
.pm-bar .pm-name { font-family: var(--serif); font-weight: 700; }
.pm-desc p { margin: 0 0 .2rem; font-size: .84rem; }
.pm-concern { color: var(--muted); }
.pm-circles svg { width: 100%; max-width: 15rem; display: block; margin: 0 auto; }
.pm-ring { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: var(--accent); stroke-opacity: .5; stroke-width: 1; }
.pm-ring.r0 { fill: color-mix(in srgb, var(--gold) 30%, transparent); }
.pm-ring-label { font: 600 8px/1 var(--sans); fill: var(--muted); letter-spacing: .02em; }
.pm-circles p { font-size: .82rem; color: var(--muted); text-align: center; }
.pm-circles .pm-research { text-align: center; }
/* The research tiers along the foot of the Self and Worldview maps (Admins, research view on). */
table.pm-grid tfoot th, table.pm-grid tfoot td { border-bottom: 0; padding-top: .7rem; }
.pm-arc { text-align: center !important; }
.pm-arc svg { display: block; width: 100%; height: .9rem; overflow: visible; }
.pm-arc path, .pm-tier-arc { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pm-arc span { display: block; margin-top: .3rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.pm-arc.t1 path, .pm-tier-arc.t1 { stroke: var(--gold); }
.pm-arc.t2 path, .pm-tier-arc.t2 { stroke: color-mix(in srgb, var(--accent) 60%, var(--gold)); }
.pm-arc.t3 path, .pm-tier-arc.t3 { stroke: var(--accent); }
.pm-tier-label { font: 500 7px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; fill: var(--gold); }
.pm-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 1.2rem; }
.pm-cols h4 { margin: 0 0 .6rem; font: 600 .7rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.pm-cols ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pm-cols section:last-child ol { grid-template-columns: 1fr 1fr; }
.pm-card { display: grid; grid-template-columns: 2.6rem 1fr; gap: .7rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.pm-glyph { width: 2.6rem; height: 2.6rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pm-card .pm-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.pm-card p { margin: .25rem 0 0; font-size: .82rem; }
.pm-words { color: var(--muted); font-style: italic; }

/* ── The Meta-Admin console ── */
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.company-card .k { font: 600 .68rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: .6rem 0 .3rem; }
.company-card .v { font-size: .95rem; }
ul.admins { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .3rem; }
ul.admins li { display: flex; align-items: center; gap: .6rem; font-size: .93rem; }
ul.admins .x, .team li .x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .2rem .4rem; border-radius: 6px; }
ul.admins .x:hover { color: var(--danger); background: var(--bg); }
.danger-link { color: var(--danger) !important; }
/* ── Team maps: the tabs, and the four lens maps beside the Perspectives ── */
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs [role=tab] { font: inherit; font-size: .92rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: .65rem .8rem; cursor: pointer; white-space: nowrap; }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs [role=tab]:hover { color: var(--accent); }
.tabs [role=tab]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pm-how { font-size: .9rem; color: var(--muted); max-width: 48rem; margin: 0 0 1.1rem; }
.pmap h4, .pm-h4 { margin: 1.4rem 0 .6rem; font: 600 .7rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.pm-sub { font-size: .8rem; color: var(--muted); }
.pm-notes { margin-top: 1.2rem; padding: .9rem 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.pm-notes h4 { margin: 0 0 .4rem; }
.pm-notes ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .9rem; }
.pm-notes p { margin: 0; font-size: .9rem; }
.pm-split { position: relative; height: .55rem; border-radius: 999px; background: color-mix(in srgb, var(--gold) 45%, var(--surface)); overflow: hidden; display: flex; justify-content: space-between; }
.pm-split i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 999px 0 0 999px; }
.pm-split span { display: none; }
.pm-split.sm { height: .4rem; background: var(--surface-2); }
table.pm-sixteen { min-width: 46rem; }
table.pm-sixteen td { width: 22%; }
table.pm-sixteen td.on { background: var(--accent-soft); }
table.pm-sixteen .pm-name { font-family: var(--serif); font-weight: 700; font-size: .95rem; }
table.pm-sixteen thead th { font-size: .78rem; color: var(--muted); font-weight: 600; font-family: var(--sans); }
.pm-axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem 1.6rem; margin-top: 1.2rem; }
.pm-axis-h { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; margin-bottom: .3rem; }
.pm-axis-h b { font: 600 .66rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.pm-axis-t { display: flex; justify-content: space-between; gap: 1rem; font-size: .76rem; color: var(--muted); margin-top: .3rem; }
.pm-axis-t span:last-child { text-align: right; }
.pm-e { display: grid; grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.pm-ennea { width: 100%; height: auto; display: block; }
.pm-e-ring { fill: none; stroke: var(--line); stroke-width: 2; }
.pm-e-line { fill: none; stroke: var(--muted); stroke-opacity: .55; stroke-width: 1.2; }
.pm-e-pt circle:first-child { stroke-width: 2; fill: var(--surface); }
.pm-e-pt text { font: 700 14px/1 var(--sans); fill: var(--ink); }
.pm-e-pt.c-body circle:first-child { stroke: var(--gold); } .pm-e-pt.c-heart circle:first-child { stroke: var(--danger); } .pm-e-pt.c-head circle:first-child { stroke: var(--accent); }
.pm-e-pt.on.c-body circle:first-child { fill: var(--gold-soft); } .pm-e-pt.on.c-heart circle:first-child { fill: color-mix(in srgb, var(--danger) 16%, var(--surface)); } .pm-e-pt.on.c-head circle:first-child { fill: var(--accent-soft); }
.pm-e-n { fill: var(--ink); } .pm-e-nt { font: 700 10px/1 var(--sans) !important; fill: var(--surface) !important; }
.pm-e-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .76rem; color: var(--muted); margin-top: .6rem; }
.pm-e-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid currentColor; margin-right: .35rem; vertical-align: -1px; }
.pm-e-legend .c-body i { color: var(--gold); } .pm-e-legend .c-heart i { color: var(--danger); } .pm-e-legend .c-head i { color: var(--accent); }
.pm-e-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pm-e-list li { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; background: var(--bg); border-left: 3px solid var(--line); }
.pm-e-list li.c-body { border-left-color: var(--gold); } .pm-e-list li.c-heart { border-left-color: var(--danger); } .pm-e-list li.c-head { border-left-color: var(--accent); }
.pm-e-num { font: 700 1.2rem/1.3 var(--serif); color: var(--muted); }
.pm-e-list .pm-name { font-family: var(--serif); font-weight: 700; }
.pm-e-list p { margin: .1rem 0 0; font-size: .84rem; }
.pm-e-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-top: .4rem; }
.pm-e-group h4 { margin-top: .8rem; }
.pm-e-g { display: flex; justify-content: space-between; font-size: .88rem; padding: .25rem 0; border-bottom: 1px solid var(--line); }
.pm-e-g b { font-variant-numeric: tabular-nums; }
.pm-h { display: grid; grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.pm-hd { width: 100%; height: auto; display: block; }
.pm-h-ch { fill: none; stroke: var(--line); stroke-width: 4; }
.pm-h-n { font: 700 13px/1 var(--sans); fill: #1d1626; }
.pm-h-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pm-h-c { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.pm-h-c b { font-family: var(--serif); }
.pm-h-c span { font-size: .8rem; color: var(--muted); }
.pm-h-list .pm-split { margin: .3rem 0; max-width: 22rem; }
.pm-h-list p { margin: 0; font-size: .84rem; }
.pm-h-types, .pm-h-pace { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .7rem; }
.pm-h-t, .pm-h-p { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .8rem; }
.pm-h-t .pm-name, .pm-h-p .pm-name { font-family: var(--serif); font-weight: 700; }
.pm-h-t p, .pm-h-p p { margin: .25rem 0 0; font-size: .8rem; }
.pm-share { color: var(--gold); }
.pm-w { display: grid; grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.pm-wheel { width: 100%; height: auto; display: block; }
.pm-w-seg { stroke: var(--surface); stroke-width: 1.5; }
.e-fire { --el: #d0603f; } .e-earth { --el: #6e8b4a; } .e-air { --el: #c9a23a; } .e-water { --el: #3f78b5; }
.pm-w-seg { fill: color-mix(in srgb, var(--el) 22%, var(--surface)); }
.pm-w-name { font: 700 9px/1 var(--sans); letter-spacing: .08em; fill: var(--muted); }
.pm-w-inner { fill: none; stroke: var(--line); }
.pm-w-core { fill: var(--surface); stroke: var(--line); }
.pm-w-dot circle { stroke: var(--surface); stroke-width: 1.5; }
.pm-w-dot.sun circle { fill: var(--accent); } .pm-w-dot.moon circle { fill: var(--gold); }
.pm-w-dot text { font: 700 7.5px/1 var(--sans); fill: var(--surface); }
.pm-w .pm-e-legend i { border: 0; background: color-mix(in srgb, var(--el, var(--muted)) 55%, var(--surface)); }
.pm-w .pm-e-legend i.dot.sun { background: var(--accent); } .pm-w .pm-e-legend i.dot.moon { background: var(--gold); }
.pm-w-cols { display: grid; gap: 1rem; }
/* Who sits where, beneath the wheel. */
.pm-w-who { margin-top: 1.3rem; }
.pm-w-who h4 { margin: 0 0 .5rem; }
table.pm-w-tbl { min-width: 32rem; }
table.pm-w-tbl thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
table.pm-w-tbl th small { display: block; font-weight: 400; font-size: .7rem; letter-spacing: 0; color: var(--muted); }
table.pm-w-tbl tbody th[scope=row] { color: var(--ink); font-size: .84rem; letter-spacing: 0; width: auto; }
.pm-w-el { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .45rem; vertical-align: .04em; background: color-mix(in srgb, var(--el) 75%, var(--surface)); }
.pm-w-cols h4 { margin-top: 0; }
.pm-w-bal { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pm-w-bal li { display: grid; grid-template-columns: minmax(0, 1fr) 6rem 1.5rem; gap: .7rem; align-items: center; }
.pm-w-k b { font-family: var(--serif); margin-right: .5rem; }
.pm-w-k span { font-size: .82rem; color: var(--muted); }
.pm-w-c { text-align: right; font-variant-numeric: tabular-nums; }

/* ── The Penta ── */
.pp-choose .filters { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pp-pool { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.pp-pick { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; background: var(--bg); }
.pp-pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pp-pick input { accent-color: var(--accent); margin: 0; }
.pp-pick.off { opacity: .6; cursor: not-allowed; }
.pp-pick small { color: var(--muted); }
.pp-wrap { display: grid; grid-template-columns: minmax(16rem, 30rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.pp-svg { width: 100%; height: auto; display: block; }
.pp-center { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.pp-label { font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; fill: var(--muted); }
.pp-ch { stroke-width: 6; stroke-linecap: round; }
.pp-ch.none { stroke: var(--line); stroke-dasharray: 2 7; }
.pp-ch.done { stroke: var(--accent); }
.pp-g circle { stroke-width: 2; }
.pp-g.held circle { fill: var(--accent); stroke: var(--accent); }
.pp-g.gap circle { fill: var(--surface); stroke: var(--muted); stroke-dasharray: 3 3; }
.pp-g .pp-ring { fill: none !important; stroke: var(--gold) !important; stroke-width: 2.5; }
.pp-num { font: 700 12px/1 var(--sans); fill: var(--surface); }
.pp-g.gap .pp-num { fill: var(--muted); }
.pp-who { font: 700 10px/1 var(--sans); letter-spacing: .04em; fill: var(--ink); }
.pp-g.gap .pp-who { fill: var(--muted); font-weight: 400; font-style: italic; }
.pp-k { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.pp-k.held { background: var(--accent); } .pp-k.many { background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold); } .pp-k.gap { border: 2px dashed var(--muted); }
.pp-sum { font-size: .98rem; margin-top: 0; }
.pp-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.pp-part { margin-top: 1.4rem; }
.pp-part h4 span { font-weight: 400; letter-spacing: .04em; text-transform: none; margin-left: .4rem; }
.pp-about { font-size: .88rem; color: var(--muted); margin: 0 0 .7rem; max-width: 48rem; }
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: .6rem; }
.pp-list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; padding: .7rem .8rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.pp-list li.is-gap { border-style: dashed; }
.pp-n { font: 700 1.15rem/1.4 var(--serif); color: var(--accent); }
.is-gap .pp-n { color: var(--muted); }
.pp-t { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: baseline; }
.pp-t b { font-family: var(--serif); }
.pp-t span { font-size: .8rem; color: var(--accent); font-weight: 600; }
.pp-t .pp-gap { color: var(--muted); font-style: italic; font-weight: 400; }
.pp-list p { margin: .25rem 0 0; font-size: .84rem; }
.pp-without { color: var(--muted); }
.pp-without b { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) {
  .pm-wv { grid-template-columns: 1fr; }
  .pm-cols, .pm-cols section:last-child ol { grid-template-columns: 1fr; }
  .pm-row { grid-template-columns: 1fr; }
  .pm-e, .pm-h, .pm-w, .pp-wrap { grid-template-columns: 1fr; }
  .pm-e > div:first-child, .pm-h > div:first-child, .pm-w > div:first-child { max-width: 22rem; }
  .company span { display: none; }
}
.pm-notes p + ul { margin-top: .45rem; }

/* ── Signed in: the person, sign-out, offboarding and the paused notice ── */
.me { display: inline-flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--muted); }
.me[hidden], .viewas[hidden], .demo-note[hidden] { display: none; }
.row-acts { white-space: nowrap; display: flex; gap: .6rem; }
.callout.warn { background: var(--warn-soft); color: var(--ink); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.linkbox { width: 100%; font: .82rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
