/* =====================================================================
   De Constellatie van Zorg — page #/constellatie (extension, own folder)
   Uses the site tokens from assets/css/main.css; everything is scoped
   to #cvz / .cvz-* so nothing else on the site is affected.
   ===================================================================== */
#cvz{
  --cvz-access:#71717a; --cvz-emergency:#b23a1a; --cvz-care:#b7862b; --cvz-knowledge:#3867b0; --cvz-practical:#2f8a5f; --cvz-coord:#7650a8;
  --cvz-peer:#b9b9c0; --cvz-formal:var(--text);
  max-width:1180px;
}
[data-theme="dark"] #cvz{
  --cvz-access:#a1a1aa; --cvz-emergency:#e0754f; --cvz-care:#dcae55; --cvz-knowledge:#7ea6e8; --cvz-practical:#62c08e; --cvz-coord:#ad90dc;
  --cvz-peer:#55565c;
}
.cvz-view{animation:cvzIn .6s var(--ease-out) both}
@keyframes cvzIn{from{opacity:0; transform:translateY(12px)}}
#cvz .muted{color:var(--muted)}
#cvz .i{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
#cvz .btn .i{flex:none}
#cvz .btn[disabled]{opacity:.4; pointer-events:none}

/* ---------- typography ---------- */
.cvz-title{font-size:var(--fs-2xl); margin:.5rem 0 .9rem; text-wrap:balance}
.cvz-lede{font-family:var(--font-read); font-size:var(--fs-md); line-height:1.55; color:var(--text-2); max-width:60ch; margin:0 0 clamp(1.4rem,3vw,2.2rem)}
.cvz-lbl{display:block; font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600; margin:0 0 .6rem}

/* ---------- intro ---------- */
.cvz-intro{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:clamp(1.5rem,5vw,5rem); align-items:center; min-height:calc(100dvh - var(--top-h) - var(--bot-h) - 140px)}
.cvz-h1{font-size:var(--fs-hero); line-height:.95; margin:.7rem 0 1.1rem; text-wrap:balance}
.cvz-intro .page-lede{max-width:28ch; margin:0 0 1rem}
.cvz-body{font-family:var(--font-read); color:var(--text-2); max-width:56ch; margin:0 0 1.4rem}
.cvz-dot{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--accent); margin-right:.6rem; vertical-align:.1em; box-shadow:0 0 0 0 var(--accent); animation:cvzPing 2.4s infinite}
@keyframes cvzPing{70%{box-shadow:0 0 0 10px transparent}100%{box-shadow:0 0 0 0 transparent}}
.cvz-plan{list-style:none; padding:0; margin:0 0 1.6rem; display:flex; flex-wrap:wrap; gap:8px}
.cvz-plan li{display:inline-flex; align-items:center; gap:.5rem; padding:.4rem .85rem .4rem .45rem; border:1px solid var(--border); border-radius:99px; background:var(--surface); font-size:.875rem; font-weight:500}
.cvz-plan span{display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--surface-soft); font-size:.75rem; font-weight:700; color:var(--accent)}
.cvz-cta{margin-bottom:1.2rem}
.cvz-meta{display:flex; flex-wrap:wrap; gap:.4rem 1.4rem; font-size:.875rem; color:var(--muted); margin:0 0 1rem}
.cvz-meta span{display:inline-flex; align-items:center; gap:.4rem}
.cvz-meta .i{width:16px; height:16px}
.cvz-book{font-family:var(--font-read); font-style:italic; font-size:var(--fs-sm); color:var(--muted); max-width:56ch; border-left:2px solid var(--accent); padding-left:1rem; margin:0}
.cvz-intro__art{position:relative; aspect-ratio:1; max-width:560px; width:100%; justify-self:center}
.cvz-intro__art::before{content:""; position:absolute; inset:8%; border-radius:50%; background:radial-gradient(circle, var(--accent-tint), transparent 70%); filter:blur(20px)}
.cvz-svg--mini{animation:cvzSpin 120s linear infinite}
@keyframes cvzSpin{to{transform:rotate(360deg)}}
.cvz-svg--mini .you text{display:none}
.cvz-svg--mini .node .disc{animation:cvzTwinkle 4s ease-in-out infinite; animation-delay:calc(var(--i) * -.7s)}
@keyframes cvzTwinkle{50%{opacity:.55}}

/* ---------- stepper + progress ---------- */
.cvz-steps{list-style:none; display:flex; gap:6px; padding:0; margin:0 0 clamp(1.4rem,3vw,2.2rem)}
.cvz-steps li{flex:1; display:flex; align-items:center; gap:.5rem; padding-top:10px; border-top:3px solid var(--border); color:var(--muted); font-size:.8125rem; font-weight:600; transition:border-color .5s, color .5s}
.cvz-steps li span{display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--surface-soft); font-size:.7rem}
.cvz-steps li.done{border-color:color-mix(in oklab, var(--accent) 45%, var(--border))}
.cvz-steps li.on{border-color:var(--accent); color:var(--text)}
.cvz-steps li.on span, .cvz-steps li.done span{background:var(--accent); color:var(--accent-ink)}
.cvz-steps em{font-style:normal; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cvz-qbar{height:4px; border-radius:4px; background:var(--surface-soft); overflow:hidden; margin:-.6rem 0 1.4rem}
.cvz-qbar i{display:block; height:100%; background:var(--accent); border-radius:4px; transition:width .6s var(--ease-out)}

/* ---------- chips / buttons ---------- */
.cvz-chips{display:flex; flex-wrap:wrap; gap:8px}
#cvz .chip, .cvz-modal .chip{min-height:44px; padding:0 1rem; border-radius:12px; border:1px solid var(--line); background:var(--surface); font-size:.875rem; font-weight:600; color:var(--text-2); transition:background-color .25s, color .25s, border-color .25s, transform .3s var(--spring)}
#cvz .chip:hover, .cvz-modal .chip:hover{border-color:var(--accent)}
#cvz .chip:active, .cvz-modal .chip:active{transform:scale(.95)}
#cvz .chip[aria-pressed="true"], .cvz-modal .chip[aria-pressed="true"]{background:var(--text); color:var(--bg); border-color:var(--text)}
.cvz-nav{display:flex; justify-content:space-between; gap:12px; margin-top:clamp(1.6rem,4vw,2.6rem); padding-top:1.2rem; border-top:1px solid var(--border)}
.av{display:inline-grid; place-items:center; flex:none; width:36px; height:36px; border-radius:50%; background:var(--accent-tint); color:var(--accent); font-size:.75rem; font-weight:700; letter-spacing:.04em}

/* ---------- people ---------- */
.cvz-add{padding:clamp(18px,2.4vw,26px); border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); margin-bottom:1.2rem}
.cvz-add__row{display:flex; gap:10px; margin-bottom:1.1rem}
.cvz-add__row .t{flex:1; min-width:0}
.cvz-note{margin:.6rem 0 0; min-height:1.2em; font-size:.875rem; color:var(--accent)}
.cvz-people__head{display:flex; justify-content:space-between; font-size:.875rem; font-weight:600; margin-bottom:.6rem}
.cvz-plist{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:8px}
.cvz-plist li{display:flex; align-items:center; gap:.7rem; padding:6px 6px 6px 8px; border-radius:16px; background:var(--surface); border:1px solid var(--border); animation:cvzIn .4s var(--ease-out) both}
.cvz-plist li{min-width:0} .cvz-plist b{min-width:0; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cvz-plist em{font-style:normal; font-size:.8125rem; color:var(--muted); margin-right:auto; white-space:nowrap}
.cvz-plist .icon-btn{width:40px; height:40px; flex:none}
.cvz-empty{color:var(--muted); font-style:italic; font-family:var(--font-read)}

/* ---------- questions ---------- */
.cvz-q{font-family:var(--font-read); font-weight:400; font-size:clamp(1.5rem,1.1rem + 1.8vw,2.5rem); line-height:1.25; letter-spacing:-.01em; text-transform:none; margin:.5rem 0 .8rem; max-width:30ch; text-wrap:balance}
.cvz-hint{display:flex; align-items:center; gap:.5rem; color:var(--muted); font-size:.875rem; margin:0 0 1.4rem}
.dimdot{display:inline-block; width:10px; height:10px; border-radius:50%; flex:none; background:var(--muted)}
.d-access{background:var(--cvz-access)} .d-emergency{background:var(--cvz-emergency)} .d-care{background:var(--cvz-care)}
.d-knowledge{background:var(--cvz-knowledge)} .d-practical{background:var(--cvz-practical)} .d-coord{background:var(--cvz-coord)}
.cvz-pick{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr)); gap:10px; margin-bottom:1rem}
.pchip{position:relative; display:flex; align-items:center; gap:.7rem; min-height:60px; padding:10px 44px 10px 12px; border-radius:18px; background:var(--surface); border:1px solid var(--border); text-align:left; font-weight:600; transition:border-color .25s, background-color .25s, transform .35s var(--spring), box-shadow .3s}
.pchip:hover{border-color:var(--accent)}
.pchip:active{transform:scale(.97)}
.pchip .nm{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.pchip .ck{position:absolute; right:12px; width:22px; height:22px; border-radius:50%; border:1.5px solid var(--line); transition:background-color .25s, border-color .25s}
.pchip[aria-pressed="true"]{border-color:var(--accent); background:var(--accent-tint); box-shadow:0 10px 26px -18px var(--accent)}
.pchip[aria-pressed="true"] .ck{background:var(--accent); border-color:var(--accent); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); background-size:14px; background-position:center; background-repeat:no-repeat}
.pchip[aria-pressed="true"] .av{background:var(--accent); color:var(--accent-ink)}
.cvz-alt{display:flex; flex-wrap:wrap; gap:8px}

/* ---------- depth options ---------- */
.cvz-opts{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.cvz-opt{position:relative; display:grid; gap:.5rem; align-content:start; text-align:left; padding:clamp(20px,2.4vw,28px); border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); transition:border-color .3s, transform .4s var(--spring), box-shadow .4s}
.cvz-opt:hover{transform:translateY(-3px); box-shadow:var(--shadow)}
.cvz-opt[aria-pressed="true"]{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-tint)}
.cvz-opt__ico svg{width:48px; height:48px; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.cvz-opt__t{font-family:var(--font-display); font-size:var(--fs-xl); font-weight:600; text-transform:uppercase; line-height:1.05}
.cvz-opt__p{font-family:var(--font-read); color:var(--text-2); font-size:var(--fs-sm)}
.cvz-opt__m{font-size:.8125rem; color:var(--muted); font-weight:600}
.cvz-opt__ck{position:absolute; top:20px; right:20px; width:26px; height:26px; border-radius:8px; border:1.5px solid var(--line); transition:background-color .25s}
.cvz-opt[aria-pressed="true"] .cvz-opt__ck{background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat; border-color:var(--accent)}

/* ---------- peers / formal cards ---------- */
.cvz-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:12px}
.cvz-card{padding:16px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border)}
.cvz-card__h{display:flex; align-items:center; gap:.7rem; margin-bottom:.9rem}
.cvz-card__h b{font-weight:600}
.cvz-card__h em{margin-left:auto; font-style:normal; font-size:.8125rem; color:var(--muted); white-space:nowrap}
.cvz-checks{display:grid; gap:6px}
.check{display:flex; align-items:flex-start; gap:.75rem; min-height:44px; padding:10px 12px; border-radius:12px; text-align:left; font-size:.9rem; line-height:1.4; background:var(--surface-soft); border:1px solid transparent; transition:border-color .25s, background-color .25s}
.check:hover{border-color:var(--line)}
.check .box{flex:none; width:22px; height:22px; margin-top:1px; border-radius:7px; border:1.5px solid var(--line); background:var(--surface); transition:background-color .2s, border-color .2s}
.check[aria-pressed="true"]{background:var(--accent-tint); border-color:color-mix(in oklab,var(--accent) 35%,transparent)}
.check[aria-pressed="true"] .box{background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; border-color:var(--accent)}

/* ---------- result ---------- */
.cvz-demo{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; padding:12px 12px 12px 18px; border-radius:16px; background:var(--accent-tint); border:1px solid color-mix(in oklab,var(--accent) 30%,transparent); margin-bottom:1.4rem; font-weight:600; font-size:.9375rem}
.cvz-result{display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr); gap:clamp(14px,2vw,24px); align-items:start}
.cvz-stage{position:relative; border-radius:var(--r-xl); background:var(--surface); border:1px solid var(--border); padding:clamp(10px,2vw,22px); overflow:hidden}
.cvz-stage::before{content:""; position:absolute; inset:0; background:radial-gradient(circle at 50% 44%, var(--accent-tint), transparent 55%); pointer-events:none}
.cvz-canvas{position:relative; aspect-ratio:1; max-height:calc(100dvh - var(--top-h) - 120px); margin-inline:auto}
.cvz-layers{position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px}
.cvz-layers .cvz-lbl{margin:0 .3rem 0 0}
.cvz-legend{position:relative; list-style:none; padding:14px 0 0; margin:12px 0 0; border-top:1px solid var(--border); display:flex; flex-wrap:wrap; gap:6px 18px; font-size:.8125rem; color:var(--text-2)}
.cvz-legend li{display:inline-flex; align-items:center; gap:.5rem}
.lg{display:inline-block; width:26px; height:0; border-top:3px solid}
.lg-access{border-top:2.5px dashed var(--cvz-access)} .lg-emergency{border-top:4px solid var(--cvz-emergency)} .lg-care{border-color:var(--cvz-care)}
.lg-knowledge{border-top:3px dotted var(--cvz-knowledge)} .lg-practical{border-color:var(--cvz-practical)} .lg-coord{border-top:3px dashed var(--cvz-coord)}
.lg-peer{border-color:var(--cvz-peer)} .lg-formal{border-top:2px dashed var(--cvz-formal)}
.cvz-side{display:grid; gap:12px}
.cvz-panel{padding:18px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border)}
.cvz-panel h3{font-size:var(--fs-lg); margin:0 0 .8rem}
.cvz-info__hint{margin:0; color:var(--muted); font-size:.9rem; display:flex; gap:.6rem; align-items:center}
.cvz-info__hint::before{content:""; width:10px; height:10px; border-radius:50%; border:2px solid var(--accent); flex:none; animation:cvzPing 2.4s infinite}
.cvz-info__h{display:flex; align-items:center; gap:.75rem; margin-bottom:.8rem}
.cvz-info__h b{display:block; font-weight:600; font-size:1.05rem}
.cvz-info__h em{font-style:normal; font-size:.8125rem; color:var(--muted)}
.cvz-info__h .icon-btn{margin-left:auto; width:40px; height:40px}
.cvz-roles{list-style:none; padding:0; margin:0 0 .6rem; display:grid; gap:4px; font-size:.9rem}
.cvz-roles li{display:flex; align-items:center; gap:.6rem}
.cvz-info__row{margin:.5rem 0 0; font-size:.875rem; display:flex; flex-wrap:wrap; gap:.4rem; align-items:center}
.cvz-info__row > span{font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-right:.3rem}
.tag{font-style:normal; font-size:.75rem; font-weight:600; padding:.2rem .55rem; border:1px solid var(--line); border-radius:99px}
.cvz-sim__h h3{margin-bottom:.6rem}
.cvz-simsteps{list-style:none; padding:0; margin:0 0 1rem; display:grid; gap:0}
.cvz-simsteps li{position:relative; padding:0 0 .9rem 1.6rem; font-family:var(--font-read); font-size:.95rem; line-height:1.5; animation:cvzIn .5s var(--ease-out) both}
.cvz-simsteps li::before{content:""; position:absolute; left:3px; top:.45em; width:10px; height:10px; border-radius:50%; background:var(--cvz-knowledge)}
.cvz-simsteps li:not(:last-child)::after{content:""; position:absolute; left:7px; top:1.3em; bottom:0; width:2px; background:var(--border)}
.cvz-simsteps li.bad::before{background:var(--cvz-emergency)} .cvz-simsteps li.good::before{background:var(--cvz-practical)} .cvz-simsteps li.soft::before{background:var(--muted)}
.cvz-simsteps li.bad{color:var(--text)}
.cvz-sim__btns{display:flex; gap:8px; flex-wrap:wrap}
.cvz-inslist{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.ins{padding:12px 14px 12px 16px; border-radius:14px; background:var(--surface-soft); border-left:3px solid var(--accent)}
.ins--ok{border-left-color:var(--cvz-practical)} .ins--more{border-left-color:var(--muted); background:transparent; border:1px dashed var(--line); border-left:3px solid var(--muted)}
.ins b{display:block; font-family:var(--font-display); font-weight:600; font-size:1.2rem; text-transform:uppercase; line-height:1.15; margin-bottom:.3rem}
.ins p{margin:0 0 .4rem; font-size:.9rem; line-height:1.5; color:var(--text-2)}
.ins .tip{margin:0; color:var(--text)}
.ins .tip span{display:inline-block; font-size:.6875rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-right:.5rem}
.ins .btn{margin-top:.5rem}
.cvz-more{margin-top:10px; font-size:.875rem; font-weight:600; color:var(--accent); min-height:44px}
.cvz-disc{margin:.6rem 0 0; font-size:.75rem; color:var(--muted)}
.cvz-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:clamp(18px,3vw,28px)}
.cvz-foot{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin-top:clamp(22px,4vw,40px); padding-top:18px; border-top:1px solid var(--border)}
.cvz-bookcta{display:flex; align-items:center; gap:1rem; max-width:560px; padding:14px 18px; border-radius:18px; border:1px solid var(--border); background:var(--surface); transition:border-color .3s, transform .4s var(--spring)}
.cvz-bookcta:hover{border-color:var(--accent); transform:translateY(-2px)}
.cvz-bookcta b{display:block; font-weight:600}
.cvz-bookcta em{display:block; font-style:normal; font-size:.875rem; color:var(--muted)}
.cvz-bookcta .i{color:var(--accent); flex:none}
.cvz-foot__links{display:flex; gap:18px}
.cvz-foot__links button{font-size:.875rem; color:var(--muted); min-height:44px; text-decoration:underline; text-underline-offset:4px}
.cvz-foot__links button:hover{color:var(--accent)}

/* ---------- the diagram (SVG) ---------- */
.cvz-svg{display:block; width:100%; height:100%; overflow:visible}
.cvz-rings circle{fill:none; stroke:var(--line); stroke-width:1.5; stroke-dasharray:3 8}
.cvz-rings text{fill:var(--muted); font-family:var(--font-plate); font-size:17px; font-weight:600; letter-spacing:.2em; text-anchor:middle; text-transform:uppercase; paint-order:stroke; stroke:var(--surface); stroke-width:8px; stroke-linejoin:round}
.cvz-svg .e{fill:none; stroke-width:var(--w); stroke-linecap:round; transition:opacity .4s}
.cvz-svg:not(.cvz-svg--mini) .e{stroke-dasharray:1; stroke-dashoffset:1; animation:cvzDraw 1.4s var(--ease-out) forwards; animation-delay:var(--d)}
@keyframes cvzDraw{to{stroke-dashoffset:0}}
.cvz-svg .e-access{stroke:var(--cvz-access)} .cvz-svg .e-emergency{stroke:var(--cvz-emergency)} .cvz-svg .e-care{stroke:var(--cvz-care)}
.cvz-svg .e-knowledge{stroke:var(--cvz-knowledge)} .cvz-svg .e-practical{stroke:var(--cvz-practical)} .cvz-svg .e-coord{stroke:var(--cvz-coord)}
/* dash patterns only once the drawing animation is over (they share stroke-dasharray) */
.cvz-svg .e-access, .cvz-svg .e-knowledge, .cvz-svg .e-coord{animation:cvzDraw 1.4s var(--ease-out) forwards, cvzDash 0s 1.6s forwards}
.cvz-svg .e-access{--dash:.03 .026} .cvz-svg .e-knowledge{--dash:.001 .034} .cvz-svg .e-coord{--dash:.05 .02 .006 .02}
@keyframes cvzDash{to{stroke-dasharray:var(--dash); stroke-dashoffset:0}}
.cvz-svg--mini .e-access, .cvz-svg--mini .e-knowledge, .cvz-svg--mini .e-coord{stroke-dasharray:var(--dash); animation:none}
.cvz-svg .e-peer{fill:none; stroke:var(--cvz-peer); stroke-width:2.2; transition:opacity .4s, stroke .3s}
.cvz-svg .e-formal{stroke:var(--cvz-formal); stroke-width:1.6; stroke-dasharray:12 7; opacity:.55; transition:opacity .4s}
.cvz-svg .node{cursor:pointer; outline:none; animation:cvzPop .7s var(--spring) both; animation-delay:calc(var(--i) * 60ms + .2s)}
@keyframes cvzPop{from{opacity:0}}
.cvz-svg .node .disc{fill:var(--surface); stroke:var(--text); stroke-width:2; transition:fill .3s, stroke .3s, stroke-width .3s}
.cvz-svg .node.r0 .disc{fill:color-mix(in oklab, var(--accent) 14%, var(--surface)); stroke:var(--accent); stroke-width:3}
.cvz-svg .node .halo{fill:var(--accent); opacity:0; transition:opacity .35s}
.cvz-svg .node .stamp{fill:var(--text)}
.cvz-svg .node .nm{fill:var(--text); font-family:var(--font-ui); font-size:25px; font-weight:600; text-anchor:middle; paint-order:stroke; stroke:var(--surface); stroke-width:7px; stroke-linejoin:round}
.cvz-svg .node:hover .halo, .cvz-svg .node:focus-visible .halo, .cvz-svg .node.on .halo{opacity:.14}
.cvz-svg .node:focus-visible .disc{stroke:var(--accent); stroke-width:4}
.cvz-svg .you circle{fill:var(--text)}
.cvz-svg .you text{fill:var(--bg); font-family:var(--font-display); font-weight:600; font-size:30px; letter-spacing:.06em; text-anchor:middle}
/* focus on one person */
.cvz-svg.is-focus .e, .cvz-svg.is-focus .e-peer, .cvz-svg.is-focus .e-formal{opacity:.08}
.cvz-svg.is-focus .e.on, .cvz-svg.is-focus .e-formal.on{opacity:1}
.cvz-svg.is-focus .e-peer.on{opacity:1; stroke:var(--text)}
.cvz-svg.is-focus .node{opacity:.3; transition:opacity .35s}
.cvz-svg.is-focus .node.on{opacity:1}
/* layers */
.cvz-svg.hide-roles .cvz-roles, .cvz-svg.hide-peers .cvz-peers, .cvz-svg.hide-formal .cvz-formal{display:none}
.cvz-svg.hide-formal .stamp{display:none}
/* simulation */
.cvz-svg.is-sim .e, .cvz-svg.is-sim .e-formal{opacity:.06}
.cvz-svg.is-sim .e-peer{opacity:.25}
.cvz-svg.is-sim .you{opacity:.12; transition:opacity .8s}
.cvz-svg.is-sim .node{opacity:.22; transition:opacity .6s}
.cvz-svg.is-sim .node.lit{opacity:1}
.cvz-svg.is-sim .node.lit .halo{opacity:.2; animation:cvzPulse 1.6s ease-out 2}
@keyframes cvzPulse{0%{opacity:.35}100%{opacity:.12}}

/* ---------- export dialog ---------- */
.cvz-modal{position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:20px}
.cvz-modal__scrim{position:absolute; inset:0; background:rgba(var(--veil),.6); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); opacity:0; transition:opacity .3s}
.cvz-modal__card{position:relative; width:min(460px,100%); padding:24px; border-radius:var(--r-xl); background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-lg); transform:translateY(16px) scale(.98); opacity:0; transition:transform .45s var(--spring), opacity .3s}
.cvz-modal[data-open="true"] .cvz-modal__scrim{opacity:1}
.cvz-modal[data-open="true"] .cvz-modal__card{transform:none; opacity:1}
.cvz-modal__h{display:flex; align-items:center; justify-content:space-between; gap:12px}
.cvz-modal__h h2{font-size:var(--fs-xl); margin:0}
.cvz-modal p{color:var(--text-2); margin:.8rem 0}
.cvz-modal .cvz-chips{margin-bottom:1.3rem}
.cvz-modal__st{min-height:1.4em; font-size:.875rem; margin:.8rem 0 0 !important; color:var(--muted) !important}
.cvz-modal .i{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}

/* ---------- print: only the generated pages ---------- */
#cvzPrint{display:none}
@media print{
  html.cvz-printing body > *:not(#cvzPrint){display:none !important}
  html.cvz-printing body{background:#fff !important}
  html.cvz-printing #cvzPrint{display:block}
  html.cvz-printing, html.cvz-printing body{margin:0 !important; padding:0 !important; height:auto !important; overflow:visible !important}
  #cvzPrint img{display:block; width:209mm; height:296mm; object-fit:contain; margin:0 auto; break-after:page; page-break-after:always; max-width:none}
  #cvzPrint img:last-child{break-after:auto; page-break-after:auto}
  @page{size:A4; margin:0}
}

/* ---------- iPad (side rail) ---------- */
@media (min-width:768px) and (max-width:1199px){
  .cvz-intro{grid-template-columns:1fr; min-height:0}
  .cvz-intro__art{max-width:380px; order:-1; margin-bottom:-1rem}
  .cvz-result{grid-template-columns:1fr}
  .cvz-side{grid-template-columns:1fr 1fr}
  .cvz-ins{grid-column:1 / -1}
}
@media (min-width:768px) and (max-width:1199px) and (orientation:landscape){
  .cvz-intro{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); min-height:calc(100dvh - 160px)}
  .cvz-intro__art{order:0; margin:0}
  .cvz-result{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
  .cvz-side{grid-template-columns:1fr}
}
/* ---------- phone ---------- */
@media (max-width:767px){
  .cvz-intro{grid-template-columns:1fr; gap:.6rem; min-height:0}
  .cvz-intro__art{order:-1; max-width:250px; margin:-.5rem auto -.8rem}
  .cvz-h1{font-size:clamp(2.4rem,11vw,3.2rem)}
  .cvz-cta .btn{flex:1 1 100%}
  .cvz-steps em{display:none}
  .cvz-steps li{justify-content:center}
  .cvz-add__row{flex-direction:column}
  .cvz-add__row .btn{width:100%}
  .cvz-plist{grid-template-columns:minmax(0,1fr)}
  .cvz-pick{grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
  .pchip{min-height:56px; padding:8px 38px 8px 8px; border-radius:16px; font-size:.9rem}
  .pchip .av{width:32px; height:32px}
  .pchip .ck{right:10px; width:20px; height:20px}
  .cvz-opts{grid-template-columns:1fr}
  .cvz-grid{grid-template-columns:1fr}
  .cvz-nav .btn{flex:1 1 auto; padding-inline:1rem; white-space:normal; text-align:center}
  .cvz-nav .btn--ghost{flex:0 0 auto}
  .cvz-result{grid-template-columns:1fr}
  .cvz-stage{margin-inline:calc(-1 * var(--gutter) + 8px); border-radius:var(--r-lg)}
  .cvz-canvas{max-height:none}
  .cvz-svg .node .nm{font-size:31px; stroke-width:8px}
  .cvz-rings text{font-size:21px}
  .cvz-actions .btn{flex:1 1 100%; white-space:normal; text-align:center}
  .cvz-modal{align-items:end; padding:10px 10px calc(10px + var(--safe-b))}
}
@media (prefers-reduced-motion:reduce){
  .cvz-svg--mini, .cvz-dot, .cvz-info__hint::before{animation:none}
  .cvz-svg .e{animation:none !important; stroke-dashoffset:0; stroke-dasharray:none}
  .cvz-svg .e-access, .cvz-svg .e-knowledge, .cvz-svg .e-coord{stroke-dasharray:var(--dash)}
}

/* ---------- entry tile in the "Meer / More" sheet ---------- */
.tiles .tile--cvz{grid-column:1 / -1; flex-direction:row; justify-content:flex-start; gap:14px; min-height:80px; padding:14px 18px; text-align:left; background:linear-gradient(120deg, var(--accent-tint), var(--surface-soft) 70%); border-color:color-mix(in oklab, var(--accent) 30%, var(--border))}
.tiles .tile--cvz .i{width:34px; height:34px; flex:none}
.tiles .tile--cvz b{display:block; font-size:.9375rem}
.tiles .tile--cvz em{display:block; font-style:normal; font-weight:500; font-size:.8125rem; color:var(--muted)}

/* (top-bar spacing now lives in assets/css/main.css › 2026-09-26 refinements) */
/* ---------- iPad rail: one extra tab, so tabs get a little shorter on short screens ---------- */
@media (min-width:768px) and (max-width:1199px) and (max-height:900px){ .rail .tab{min-height:50px} }
@media (min-width:768px) and (max-width:1199px) and (max-height:760px){ .rail .tab{min-height:44px} .rail__tools{gap:6px; padding-top:8px} .rail__tools .icon-btn{width:42px; height:42px} }
/* headings receive focus on step changes: no ring for that programmatic focus */
#cvz h1[tabindex="-1"]:focus, #cvz h2[tabindex="-1"]:focus{outline:none}
@media (min-width:768px) and (max-width:1199px) and (max-height:700px){ .rail{padding-block:8px} .rail .tab{min-height:40px; gap:2px} .rail .brand__mark{margin-bottom:4px} .rail__tools .icon-btn{width:40px; height:40px} }

/* =====================================================================
   2026-09-26 refinements: clearer dark mode, modern cards, pills
   ===================================================================== */
[data-theme="dark"] #cvz{
  --cvz-access:#c9c9d1; --cvz-emergency:#ff6a45; --cvz-care:#ffc44d; --cvz-knowledge:#63a4ff; --cvz-practical:#3fdc8e; --cvz-coord:#c58bff;
  --cvz-peer:rgba(255,255,255,.34); --cvz-formal:#f1ece4;
}
[data-theme="dark"] .cvz-svg .e{stroke-width:calc(var(--w) * 1.35px)}
[data-theme="dark"] .cvz-svg .e-peer{stroke-width:2.6}
[data-theme="dark"] .cvz-svg .e-formal{opacity:.8}
[data-theme="dark"] .cvz-rings circle{stroke:rgba(255,255,255,.14)}
[data-theme="dark"] .cvz-svg .node .disc{fill:#1c1d20; stroke:#e9e4dc}
[data-theme="dark"] .cvz-svg .node.r0 .disc{fill:color-mix(in oklab, var(--accent) 22%, #1c1d20); stroke:var(--accent)}
[data-theme="dark"] .cvz-svg .node .nm{stroke:#161718}
[data-theme="dark"] .cvz-stage{background:radial-gradient(120% 90% at 50% 40%, #1b1c1f, #121314 70%); border-color:#2b2d30}
[data-theme="dark"] .cvz-stage::before{background:radial-gradient(circle at 50% 44%, rgba(207,118,82,.12), transparent 55%)}

/* equal, calm step labels */
.cvz-steps li{justify-content:flex-start; min-width:0}
.cvz-layers{gap:6px}
.cvz-layers .chip{min-height:38px !important; padding:0 .85rem !important; border-radius:10px !important; font-size:.8125rem !important}

/* panels: one surface language with the rest of the site */
.cvz-panel{padding:20px; border-radius:24px; background:linear-gradient(180deg, color-mix(in oklab, var(--surface) 96%, var(--text) 4%), var(--surface)); border:1px solid var(--border); box-shadow:var(--shadow)}
.cvz-panel h3{font-size:var(--fs-lg); letter-spacing:.01em}
.cvz-info__h{padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--border)}
.av--lg{width:44px; height:44px; font-size:.8125rem}
.av--xs{width:20px; height:20px; font-size:.5625rem; font-style:normal}
.cvz-relpill{display:inline-block; margin-top:4px; padding:.12rem .55rem; border-radius:99px; background:var(--surface-soft); border:1px solid var(--border); font-style:normal; font-size:.75rem; color:var(--muted)}
.cvz-sec{display:grid; gap:8px; margin-top:12px}
.cvz-sub{justify-self:start; padding:.18rem .55rem; border-radius:8px; background:var(--accent-tint); color:var(--accent); font-size:.6875rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase}
.cvz-pills{display:flex; flex-wrap:wrap; gap:6px}
.pill{display:inline-flex; align-items:center; gap:.45rem; min-height:32px; padding:.3rem .75rem .3rem .45rem; border-radius:99px; background:var(--surface-soft); border:1px solid var(--border); font-size:.8125rem; font-weight:500; line-height:1.25; color:var(--text)}
.pill .dimdot{width:9px; height:9px; margin-left:.25rem}
.pill--role{padding-left:.55rem}
.pill--formal{padding-left:.75rem; border-color:color-mix(in oklab, var(--text) 30%, var(--border)); font-weight:600}
.pill--formal::before{content:"✓"; color:var(--cvz-practical); font-weight:700}
.pill--muted{padding-left:.75rem; color:var(--muted); font-style:italic; background:transparent; border-style:dashed}
/* insights: status badge, soft surface, tip as its own island */
.cvz-inslist{gap:10px}
.ins{position:relative; padding:16px 16px 16px 56px; border-radius:18px; border:1px solid var(--border); border-left:1px solid var(--border); background:var(--surface-soft)}
.ins--more{background:transparent; border-style:dashed; border-left:1px dashed var(--line)}
.ins__badge{position:absolute; left:16px; top:15px; display:grid; place-items:center; width:26px; height:26px; border-radius:9px; font-size:.875rem; font-weight:800; background:color-mix(in oklab, var(--accent) 16%, transparent); color:var(--accent)}
.ins--ok .ins__badge{background:color-mix(in oklab, var(--cvz-practical) 18%, transparent); color:var(--cvz-practical)}
.ins--more .ins__badge{background:var(--surface-soft); color:var(--muted)}
.ins b{font-size:1.15rem; margin-bottom:.35rem}
.ins p{font-size:.875rem}
.ins .tip{margin-top:.6rem; padding:.6rem .75rem; border-radius:12px; background:color-mix(in oklab, var(--accent) 8%, var(--surface)); border:1px solid color-mix(in oklab, var(--accent) 18%, transparent); font-size:.875rem; line-height:1.5}
.ins .tip span{display:inline-block; padding:.1rem .45rem; margin-right:.45rem; border-radius:6px; background:var(--accent); color:var(--accent-ink); font-size:.625rem; letter-spacing:.12em}
[data-theme="dark"] .ins{background:#18191b}
.cvz-simsteps li{padding-bottom:1rem}
.cvz-legend{gap:8px 10px}
.cvz-legend li{padding:.3rem .65rem; border-radius:10px; background:var(--surface-soft); border:1px solid var(--border)}

/* stepper row with a visible "start over" */
.cvz-top{display:flex; align-items:flex-start; gap:14px; margin:0 0 clamp(1.4rem,3vw,2.2rem)}
.cvz-top .cvz-steps{flex:1; margin:0}
.cvz-reset{flex:none; display:inline-flex; align-items:center; gap:.45rem; min-height:40px; margin-top:-2px; padding:0 .8rem; border-radius:10px; border:1px solid var(--border); background:transparent; color:var(--muted); font-size:.8125rem; font-weight:600; transition:color .25s, border-color .25s}
.cvz-reset svg{width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.cvz-reset:hover{color:var(--text); border-color:var(--accent)}
@media (max-width:767px){ .cvz-top{gap:10px} .cvz-reset{min-height:36px; padding:0 .6rem} }
@media (max-width:420px){ .cvz-reset span, .cvz-reset{font-size:.75rem} }

/* legend chips are buttons: one kind of line for five seconds */
.cvz-legend li{padding:0 !important; border:0 !important; background:none !important}
.lgbtn{position:relative; overflow:hidden; display:inline-flex; align-items:center; gap:.5rem; min-height:34px; padding:.3rem .65rem; border-radius:10px; background:var(--surface-soft); border:1px solid var(--border); color:var(--text-2); font:inherit; cursor:pointer; transition:border-color .25s, color .25s, background-color .25s, opacity .3s}
.lgbtn:hover{border-color:color-mix(in oklab, var(--accent) 45%, var(--border)); color:var(--text)}
.lgbtn[aria-pressed="true"]{border-color:var(--accent); color:var(--text); background:color-mix(in oklab, var(--accent) 10%, var(--surface))}
.lgbtn[aria-pressed="true"]::after{content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--accent); transform-origin:left; animation:lgTimer 5s linear forwards}
.cvz-legend:has(.lgbtn[aria-pressed="true"]) .lgbtn:not([aria-pressed="true"]){opacity:.5}
@keyframes lgTimer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.cvz-svg.is-solo .cvz-roles, .cvz-svg.is-solo .cvz-peers, .cvz-svg.is-solo .cvz-formal{display:inline}
.cvz-svg.is-solo .e, .cvz-svg.is-solo .e-peer, .cvz-svg.is-solo .e-formal{opacity:.05; transition:opacity .45s}
.cvz-svg[data-solo="access"] .e-access, .cvz-svg[data-solo="emergency"] .e-emergency, .cvz-svg[data-solo="care"] .e-care,
.cvz-svg[data-solo="knowledge"] .e-knowledge, .cvz-svg[data-solo="practical"] .e-practical, .cvz-svg[data-solo="coord"] .e-coord,
.cvz-svg[data-solo="peer"] .e-peer, .cvz-svg[data-solo="formal"] .e-formal{opacity:1}

/* the TIP label breathes a little */
.ins .tip span{animation:tipPulse 2.6s ease-in-out infinite}
@keyframes tipPulse{0%,100%{box-shadow:0 0 0 0 color-mix(in oklab, var(--accent) 45%, transparent)}50%{box-shadow:0 0 0 5px color-mix(in oklab, var(--accent) 0%, transparent); transform:scale(1.06)}}

/* result actions: equal widths */
.cvz-actions{display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:10px}
.cvz-actions .btn{width:100%}
@media (max-width:767px){ .cvz-actions{grid-auto-flow:row; grid-template-columns:1fr} }

/* the book line at the bottom: a quote */
.cvz-bookq span{display:grid; gap:.3rem}
.cvz-bookq em{font-style:normal; font-size:var(--fs-xs); font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--accent)}
.cvz-bookq q{font-family:var(--font-read); font-style:italic; font-size:var(--fs-md); line-height:1.5; color:var(--text); quotes:"“" "”"}
:lang(fr) .cvz-bookq q{quotes:"« " " »"} :lang(de) .cvz-bookq q{quotes:"„" "“"}
@media (prefers-reduced-motion:reduce){ .ins .tip span, .lgbtn[aria-pressed="true"]::after{animation:none} }

/* the export dialog scrolls inside itself on short screens (phone landscape) */
.cvz-modal__card{max-height:calc(100dvh - 40px); overflow-y:auto; overscroll-behavior:contain}
